@univerjs-pro/sheets-shape-ui 1.0.0-beta.0 → 1.0.0-beta.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/types/commands/command/update-shape-data.command.d.ts +1 -0
  62. package/lib/types/commands/operations/shape-ribbon.operation.d.ts +13 -0
  63. package/lib/types/const.d.ts +7 -0
  64. package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
  65. package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
  66. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
  67. package/lib/types/controllers/ui.controller.d.ts +1 -2
  68. package/lib/types/index.d.ts +1 -1
  69. package/lib/types/locale/en-US.d.ts +1 -0
  70. package/lib/types/menu/schema.d.ts +1 -0
  71. package/lib/types/menu/shape-format-ribbon.menu.d.ts +20 -0
  72. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +2 -3
  73. package/lib/types/views/shape-format-ribbon/SheetsShapeFormatRibbonControls.d.ts +8 -0
  74. package/lib/umd/index.js +1 -1
  75. package/lib/umd/locale/ar-SA.js +1 -1
  76. package/lib/umd/locale/ca-ES.js +1 -1
  77. package/lib/umd/locale/de-DE.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/es-ES.js +1 -1
  80. package/lib/umd/locale/fa-IR.js +1 -1
  81. package/lib/umd/locale/fr-FR.js +1 -1
  82. package/lib/umd/locale/id-ID.js +1 -1
  83. package/lib/umd/locale/it-IT.js +1 -1
  84. package/lib/umd/locale/ja-JP.js +1 -1
  85. package/lib/umd/locale/ko-KR.js +1 -1
  86. package/lib/umd/locale/pl-PL.js +1 -1
  87. package/lib/umd/locale/pt-BR.js +1 -1
  88. package/lib/umd/locale/ru-RU.js +1 -1
  89. package/lib/umd/locale/sk-SK.js +1 -1
  90. package/lib/umd/locale/vi-VN.js +1 -1
  91. package/lib/umd/locale/zh-CN.js +1 -1
  92. package/lib/umd/locale/zh-HK.js +1 -1
  93. package/lib/umd/locale/zh-TW.js +1 -1
  94. package/package.json +20 -20
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25219a=_0x52a4;(function(_0x14b0a3,_0x566bb5){const _0x9d1f88=_0x52a4,_0x235449=_0x14b0a3();while(!![]){try{const _0x59d37c=parseInt(_0x9d1f88(0xeb))/0x1*(parseInt(_0x9d1f88(0x322))/0x2)+parseInt(_0x9d1f88(0x21b))/0x3*(-parseInt(_0x9d1f88(0x1a1))/0x4)+parseInt(_0x9d1f88(0x343))/0x5*(-parseInt(_0x9d1f88(0x274))/0x6)+-parseInt(_0x9d1f88(0x326))/0x7*(parseInt(_0x9d1f88(0x147))/0x8)+-parseInt(_0x9d1f88(0x245))/0x9*(parseInt(_0x9d1f88(0x1b3))/0xa)+parseInt(_0x9d1f88(0x334))/0xb+-parseInt(_0x9d1f88(0x2fd))/0xc*(-parseInt(_0x9d1f88(0x167))/0xd);if(_0x59d37c===_0x566bb5)break;else _0x235449['push'](_0x235449['shift']());}catch(_0x35dd12){_0x235449['push'](_0x235449['shift']());}}}(_0x5f35,0xd757b));import{ComponentManager as _0x21a48b,ContextMenuGroup as _0x9e0dc8,ContextMenuPosition as _0x34d07a,IMenuManagerService as _0x23b358,ISidebarService as _0x54fc19,IconManager as _0x15a7ad,MenuItemType as _0x2aaa41,RibbonInsertGroup as _0x3c626a,getMenuHiddenObservable as _0x315655,useDependency as _0x456f39,useObservable as _0x2cc2b9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0xd7d9f3,ImageSourceTypeEnum as _0x5a6853,ShapeArrowSizeEnum as _0x4caef4,ShapeArrowTypeEnum as _0x36692d,ShapeDefaultConfig as _0x373ebe,ShapeFillEnum as _0x83e268,ShapeLineTypeEnum as _0x2401bc,ShapeModel as _0x57cb5b,ShapeRenderModeEnum as _0xac9789,ShapeTypeEnum as _0x6bfff9,computeConnectorRouteLayout as _0x47fdde,getBasicShapeRotateBound as _0x10ab2a,isConnectorShape as _0x41a954,isCurvedConnectorShape as _0x5ad544,routeConnectorLineShape as _0x5d6f7b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x2c2995,UniverShapeEditorPlugin as _0x3eb575,createShapeFormulaDocument as _0x5d87c2,createShapeTextBoxShapeData as _0x597125}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x3a08e6,InsertSheetsShapeMutation as _0x55e264,RemoveSheetsShapeMutation as _0x30f07c,SetShapeDrawingDataCommand as _0x5e53bf,SheetsShapeService as _0x6985f7,ToggleSheetsShapeFlipCommand as _0x5ab636,UniverSheetsShapePlugin as _0x337d0b,UpdateConnectorRelationCommand as _0xdc15a6,UpdateLineShapeResizeCommand as _0xa01182,UpdateSheetsShapeDataMutation as _0x46a98e}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x59b698,CommandType as _0x4d8f21,DependentOn as _0x5c3761,Disposable as _0x3ba2e2,DocumentDataModel as _0x4423a6,DrawingTypeEnum as _0x161136,FOCUSING_COMMON_DRAWINGS as _0x29948b,FOCUSING_SHAPE_TEXT_EDITOR as _0x5d8f61,HorizontalAlign as _0x365b63,ICommandService as _0x16d336,IConfigService as _0x487002,IContextService as _0x334f35,IImageIoService as _0x507a28,IURLImageService as _0x157c04,IUndoRedoService as _0x54bc12,IUniverInstanceService as _0x230412,Inject as _0x396ece,Injector as _0x3cde8e,LocaleService as _0x404764,Plugin as _0x18bfbf,UniverInstanceType as _0x2e857c,VerticalAlign as _0x2c7292,createInternalEditorID as _0x5a685c,generateRandomId as _0x44c0e2,merge as _0x575e93,toDisposable as _0x2388cf,touchDependencies as _0x28631c}from'@univerjs/core';import{CopySheetCommand as _0x4c17f0,RemoveSheetCommand as _0x213d50,SheetInterceptorService as _0x2920c2,SheetPermissionCheckController as _0x5e60fd,SheetSkeletonService as _0x587a33,SheetsSelectionsService as _0x3bd43a,UniverSheetsPlugin as _0x2afa3f,WorkbookEditablePermission as _0x8641fc,WorksheetEditPermission as _0xc6d67c,attachRangeWithCoord as _0x1a0dbd,discreteRangeToRange as _0x58837b,getSheetCommandTarget as _0x4988bb}from'@univerjs/sheets';import{IDrawingManagerService as _0x492363,SetDrawingSelectedOperation as _0x4688df,UniverDrawingPlugin as _0xc0cade,getDrawingShapeKeyByDrawingSearch as _0x566164}from'@univerjs/drawing';import{CURSOR_TYPE as _0x2bcec2,Circle as _0x18400a,DRAWING_OBJECT_LAYER_INDEX as _0x22b4b7,DocumentSkeleton as _0x5c0882,DocumentViewModel as _0x208c57,Documents as _0x11f5a9,IRenderManagerService as _0x471989,Image as _0x8d12f0,RENDER_CLASS_TYPE as _0x4550bb,SHEET_VIEWPORT_KEY as _0x3ce6e8,Shape as _0x1ac658,Transform as _0x34d861,UniverRenderEnginePlugin as _0x3bc238,Vector2 as _0x48df4c}from'@univerjs/engine-render';import{COPY_TYPE as _0x4cbf87,ISheetClipboardService as _0x1249ad,PREDEFINED_HOOK_NAME as _0x339317,SheetCanvasPopManagerService as _0x40f967,SheetPrintInterceptorService as _0x5c886c,SheetScrollManagerService as _0x22e443,SheetSkeletonManagerService as _0x319c9a,UniverSheetsUIPlugin as _0x48b0fa,deriveStateFromActiveSheet$ as _0x21923c,getCurrentRangeDisable$ as _0x4a597a,getViewportByCell as _0x4f0d4b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x5935cd,EMPTY as _0x1997e0,Observable as _0x395a42,map as _0xaa4389,of as _0x36ada1,startWith as _0x4a164f,switchMap as _0x54e619}from'rxjs';import{FormulaShapeAnimationController as _0x15286d,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x40f766,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xa70bb9,ShapeEditPanel as _0x5a7a6a,ShapeFloatingToolbar as _0x472902,ShapeGroupEnum as _0x27d7db,ShapePickerDropdown as _0x28b0d3,ShapePickerPanel as _0x4d521e,ShapeTextEditorContainer as _0x425f99,ShapeTextFloatMenuRenderControllerBase as _0x4f7f46,ShapeTextFloatToolbar as _0x34b768,UniverShapeEditorUIPlugin as _0x5409b9,activateDrawingObject as _0xbe39a,buildShapeTextDataUpdate as _0x537773,clearActiveDrawingObjects as _0x397c5e,drawFormulaShapeAnimationLayers as _0xe9ad21,getDrawingTypeNameKey as _0x242d11,getTextModel as _0x68e79b,getTextStyle as _0x5eb25a,normalizeShapeTextModel as _0x503e1,plainShapeTextToDocumentData as _0x29503c,prepareShapeTextDocumentData as _0x46cada,resolveFormulaShapeAutoFitSize as _0x18b027,resolveShapeTextDocumentRenderLayout as _0x3d35ed,resolveShapeTextEditorBehaviorShapeData as _0x57ff55,resolveShapeTextEditorWrapStrategy as _0x59e15a,shouldAllowShapeTextEditorHostSizeShrink as _0x26e8db,shouldClipShapeTextDocument as _0x44ef14,useFormulaShapeToolbar as _0x2ca04c}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x2f24d8,DrawingImageClipService as _0x323084,DrawingRenderService as _0x214f7e,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x145ec1,OBJECT_LIST_FLOATING_SECTION_ID as _0x480b8f,ObjectListPanelBase as _0x29b70f,UniverDrawingUIPlugin as _0x117474,getCurrentUnitInfo as _0x19ceb1,getObjectListPanelLabels as _0x5d1b79,getObjectListPanelSectionIdForDrawingType as _0x3a38fa,getObjectListPanelTypeName as _0x5a3cf6,insertGroupObject as _0x5c5c75}from'@univerjs/drawing-ui';import{Fragment as _0x1c48da,jsx as _0x5c23f7,jsxs as _0x57d5e2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x355769}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x3a116c,UniverDocsPlugin as _0x72f746}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x45051f,DocSelectionRenderService as _0x1bed72,UniverDocsUIPlugin as _0x10fd74}from'@univerjs/docs-ui';import{DrawingApplyType as _0x34c4cd,ISheetDrawingService as _0x18f6a9,RemoveSheetDrawingCommand as _0x251e45,SetDrawingApplyMutation as _0x2118d0,SetDrawingArrangeCommand as _0x5f552c,SetSheetDrawingCommand as _0x22957d,UniverSheetsDrawingPlugin as _0x57443e,transformToAxisAlignPosition as _0x1cbaab,transformToDrawingPosition as _0x2b6fe}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0x2bf2cb,SheetsDrawingGroupCopyPasteController as _0x3ed6d2,UniverSheetsDrawingUIPlugin as _0x502bda}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x600924,FlipVerticalIcon as _0x9a7643,ObjectLayersIcon as _0x2f5e4b}from'@univerjs/icons';import{memo as _0x1b8447,useEffect as _0x329c92,useMemo as _0x4a6e48,useReducer as _0x3fe30a,useState as _0x2793a8}from'react';function kn(_0x513b43,_0x24ea92){const _0x259794=_0x52a4;let _0x38afd2={};for(let _0x4be3a3 of Object[_0x259794(0x12f)](_0x24ea92)){let _0x491147=_0x24ea92[_0x4be3a3],_0x2459c6=_0x513b43[_0x4be3a3];if(_0x491147!==void 0x0){if(_0x2459c6===void 0x0){_0x38afd2[_0x4be3a3]=void 0x0;continue;}typeof _0x491147==_0x259794(0x321)&&_0x491147&&!Array[_0x259794(0x289)](_0x491147)&&typeof _0x2459c6=='object'&&_0x2459c6&&!Array[_0x259794(0x289)](_0x2459c6)?_0x38afd2[_0x4be3a3]=kn(_0x2459c6,_0x491147):_0x38afd2[_0x4be3a3]=_0x2459c6;}}return _0x38afd2;}const An={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0xf4),'handler':(_0x4d0358,_0x4fca63)=>{const _0xc1d3e3=_0x25219a;let _0x4c7e1c=_0x4d0358[_0xc1d3e3(0x23e)](_0x6985f7),{unitId:_0x300b13,subUnitId:_0x183026,shapeType:_0x278b85,shapeId:_0x5bf86f,shapeData:_0x365d72,oldShapeJSON:_0x43d957}=_0x4fca63;if(!_0x4c7e1c[_0xc1d3e3(0x1f4)](_0x300b13,_0x183026,_0x5bf86f))return!0x1;let _0x54da24=_0x4d0358['get'](_0x16d336),_0x337600=_0x4d0358[_0xc1d3e3(0x23e)](_0x54bc12),{oldShapeType:_0x4dd95e,oldShapeData:_0x2be0b1={}}=_0x43d957,_0x2c939e=kn(_0x2be0b1,_0x365d72||{}),_0x4de356={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x278b85,'shapeData':_0x365d72}},_0x3502f6={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x4dd95e,'shapeData':_0x2c939e}};return _0x54da24[_0xc1d3e3(0x32c)](_0x4de356['id'],_0x4de356[_0xc1d3e3(0x17a)])?(_0x337600[_0xc1d3e3(0x2d1)]({'unitID':_0x300b13,'undoMutations':[_0x3502f6],'redoMutations':[_0x4de356]}),!0x0):!0x1;}};function jn(_0x349993,_0x591043,_0x4e7fd9,_0x343447,_0x41957d,_0x5ce53e){const _0x1b0131=_0x25219a;let _0x50c647={'unitId':_0x591043,'subUnitId':_0x4e7fd9,'shapeId':_0x343447,'shapeData':_0x5ce53e,'oldShapeJSON':_0x41957d};return _0x349993[_0x1b0131(0x1a6)](An['id'],_0x50c647);}function Mn(_0x5ee27b,_0x19b264,_0x553ecd,_0x1f2dcd,_0x567ce3,_0x4759a2){const _0xea842=_0x25219a;let _0x55aad1={'unitId':_0x19b264,'subUnitId':_0x553ecd,'shapeId':_0x1f2dcd,'shapeData':_0x4759a2,'oldShapeJSON':_0x567ce3};return _0x5ee27b[_0xea842(0x1a6)](An['id'],_0x55aad1);}function Nn(_0x1ca3b1){'@babel/helpers - typeof';const _0x2faf88=_0x25219a;return Nn=typeof Symbol==_0x2faf88(0x190)&&typeof Symbol[_0x2faf88(0x182)]==_0x2faf88(0xf7)?function(_0x1c0f9d){return typeof _0x1c0f9d;}:function(_0x2a9690){const _0x58f791=_0x2faf88;return _0x2a9690&&typeof Symbol=='function'&&_0x2a9690[_0x58f791(0x202)]===Symbol&&_0x2a9690!==Symbol[_0x58f791(0x129)]?_0x58f791(0xf7):typeof _0x2a9690;},Nn(_0x1ca3b1);}function Pn(_0x72e64b,_0xdfc2ab){const _0x3cd4c0=_0x25219a;if(Nn(_0x72e64b)!='object'||!_0x72e64b)return _0x72e64b;var _0x5eefaf=_0x72e64b[Symbol['toPrimitive']];if(_0x5eefaf!==void 0x0){var _0x4a1cc2=_0x5eefaf[_0x3cd4c0(0x14c)](_0x72e64b,_0xdfc2ab||_0x3cd4c0(0x293));if(Nn(_0x4a1cc2)!=_0x3cd4c0(0x321))return _0x4a1cc2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdfc2ab===_0x3cd4c0(0x216)?String:Number)(_0x72e64b);}function Fn(_0x57f7ca){const _0x196720=_0x25219a;var _0x34fbc2=Pn(_0x57f7ca,'string');return Nn(_0x34fbc2)==_0x196720(0xf7)?_0x34fbc2:_0x34fbc2+'';}function Y(_0x461dbc,_0x368a34,_0x2889d8){return(_0x368a34=Fn(_0x368a34))in _0x461dbc?Object['defineProperty'](_0x461dbc,_0x368a34,{'value':_0x2889d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x461dbc[_0x368a34]=_0x2889d8,_0x461dbc;}function In(_0x105a7d,_0x35f01c,_0x452851){const _0x1149e5=_0x25219a;let _0x192815=_0x57ff55(_0x105a7d,{..._0x35f01c,'dataModel':{..._0x35f01c[_0x1149e5(0x177)]??{},..._0x452851?{'doc':_0x452851}:null}}),_0x362327=_0x59e15a(_0x192815);return{'clip':_0x44ef14(_0x192815,_0x362327),'wrapStrategy':_0x362327};}var Ln=class extends _0x1ac658{constructor(_0x241815,_0x46fab1){const _0x1b24f0=_0x25219a;super(_0x241815,_0x46fab1),Y(this,_0x1b24f0(0x295),void 0x0),Y(this,'_formulaAnimation',new _0x15286d(()=>this['makeDirty'](!0x0),()=>this[_0x1b24f0(0xe7)]())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x1b24f0(0x203),_0x161136[_0x1b24f0(0x25c)]),Y(this,_0x1b24f0(0x125),!0x0),this['_props']={..._0x46fab1},this['_formulaAnimation'][_0x1b24f0(0x11d)](_0x46fab1[_0x1b24f0(0x2be)],_0x46fab1['animateFormulaPresentation']!==!0x1),this[_0x1b24f0(0x21c)](),this[_0x1b24f0(0xe7)]();}['_init'](){const _0x102872=_0x25219a;this[_0x102872(0x18b)][_0x102872(0x1ab)](_0x5b6b00=>{const _0x23ced5=_0x102872;this[_0x23ced5(0x197)](_0x5b6b00);});}['setPrstGeom'](_0xa0172c){const _0x769e9b=_0x25219a;this[_0x769e9b(0x295)][_0x769e9b(0x11b)]=_0xa0172c;}[_0x25219a(0x2cd)](_0x2f6d52){const _0x2fa755=_0x25219a;this['_props'][_0x2fa755(0x2a8)]=_0x2f6d52,this[_0x2fa755(0x154)](!0x0);}[_0x25219a(0x2e8)](_0x25d8e2,_0x2d06d9=!0x0){const _0x3a3c52=_0x25219a;this[_0x3a3c52(0x33f)]['setPresentation'](_0x25d8e2,_0x2d06d9),this[_0x3a3c52(0x295)]['formulaPresentation']=_0x25d8e2,this['_applyFormulaAutoFitSize'](),this[_0x3a3c52(0x154)](!0x0);}[_0x25219a(0xe7)](){const _0x2fe29f=_0x25219a;let _0x2089f8=this['_props'][_0x2fe29f(0x2ac)],_0x3cadf8=_0x2089f8[_0x2fe29f(0x2c8)](),_0x3193b5=_0x503e1(_0x3cadf8==null?void 0x0:_0x3cadf8[_0x2fe29f(0x177)]),_0x3b5053=_0x3193b5==null?void 0x0:_0x3193b5[_0x2fe29f(0x13f)],_0x217d34=this[_0x2fe29f(0x33f)][_0x2fe29f(0x1ba)]();if(!_0x3b5053||_0x217d34[_0x2fe29f(0x27a)]===0x0)return;_0x2089f8[_0x2fe29f(0x256)]({'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]});let _0x31d103=_0x18b027({'documentData':_0x217d34[_0x2fe29f(0x111)](_0xcb21fd=>_0x5d87c2(_0x3b5053,_0xcb21fd)),'height':this[_0x2fe29f(0x270)],'shapeData':_0x2089f8['getShapeData'](),'textRect':_0x2089f8[_0x2fe29f(0x2c5)]({'left':0x0,'top':0x0,'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]}),'width':this[_0x2fe29f(0x11f)]});if(_0x31d103){var _0x133ae0;this['resize'](_0x31d103[_0x2fe29f(0x11f)],_0x31d103[_0x2fe29f(0x270)]),(_0x133ae0=this[_0x2fe29f(0x1fa)]())==null||(_0x133ae0=_0x133ae0[_0x2fe29f(0x31e)]())==null||_0x133ae0[_0x2fe29f(0x164)]();}}get['unitId'](){const _0x1ccf9c=_0x25219a;return this[_0x1ccf9c(0x295)][_0x1ccf9c(0x151)];}get[_0x25219a(0x21f)](){const _0x2fdaf0=_0x25219a;return this[_0x2fdaf0(0x295)]['subUnitId'];}['_updateSrcRectByTransform'](_0x4219c6){const _0x36f346=_0x25219a;if(this[_0x36f346(0x295)]['srcRect']==null||!this[_0x36f346(0x209)])return;let {width:_0x4793a4,height:_0x4fbefc}=this,{width:_0x26d7ee=0x0,height:_0x18474c=0x0}=_0x4219c6['preValue'],{left:_0x3c357a=0x0,top:_0x32f687=0x0,right:_0x59e6c7=0x0,bottom:_0x262110=0x0}=this[_0x36f346(0x295)][_0x36f346(0x2e4)],_0x33cfe9=_0x3c357a,_0x25f15c=_0x32f687,_0x4f86aa=_0x59e6c7,_0xf608c=_0x262110,_0xb5618a=!0x1;if(_0x26d7ee!==0x0&&_0x26d7ee!==_0x4793a4){let _0x4fba2b=_0x3c357a/_0x26d7ee,_0x5456d7=_0x59e6c7/_0x26d7ee;_0x33cfe9=_0x4793a4*_0x4fba2b,_0x4f86aa=_0x4793a4*_0x5456d7,_0xb5618a=!0x0;}if(_0x18474c!==0x0&&_0x18474c!==_0x4fbefc){let _0x55e336=_0x32f687/_0x18474c,_0x338368=_0x262110/_0x18474c;_0x25f15c=_0x4fbefc*_0x55e336,_0xf608c=_0x4fbefc*_0x338368,_0xb5618a=!0x0;}_0xb5618a&&this[_0x36f346(0xea)]({'left':_0x33cfe9,'top':_0x25f15c,'right':_0x4f86aa,'bottom':_0xf608c});}[_0x25219a(0xea)](_0x49bdc9){const _0x4b9706=_0x25219a;this[_0x4b9706(0x295)][_0x4b9706(0x2e4)]=_0x49bdc9,this['makeDirty'](!0x0);}['setFillImage'](_0x25bd93){const _0x2e7594=_0x25219a;this['_props'][_0x2e7594(0x234)]=_0x25bd93,this[_0x2e7594(0x154)](!0x0);}set[_0x25219a(0x298)](_0x2db38a){const _0x4fd0d0=_0x25219a;this[_0x4fd0d0(0xf3)]=_0x2db38a;}get['transform'](){const _0x112038=_0x25219a;this[_0x112038(0xf3)]||this[_0x112038(0x112)]();let _0xa4be9a=this[_0x112038(0xf3)][_0x112038(0x1a8)]();return this[_0x112038(0x17b)](_0xa4be9a);}get[_0x25219a(0x2ac)](){const _0x12abef=_0x25219a;return this[_0x12abef(0x295)][_0x12abef(0x2ac)];}get[_0x25219a(0x25a)](){const _0x23f4eb=_0x25219a;return this['_props'][_0x23f4eb(0x25a)];}get[_0x25219a(0x26d)](){const _0x21bcba=_0x25219a;return _0x4550bb[_0x21bcba(0xec)];}[_0x25219a(0x183)](_0x44fb4f,_0x24bb81,_0x1a24ce,_0x6bafcb){const _0x3b0adc=_0x25219a;let _0x43987c=this['_props'][_0x3b0adc(0x2ac)];if(!_0x43987c||!_0x24bb81)return;let _0x286f47=_0x1a24ce??this[_0x3b0adc(0x11f)],_0xf499a3=_0x6bafcb??this['height'],_0x332399={'shapeType':_0x43987c[_0x3b0adc(0x16e)](),'width':_0x286f47,'height':_0xf499a3},_0xe5bcf2={'renderMode':_0xac9789['Path'],'oKey':this['oKey'],'image':this[_0x3b0adc(0x295)][_0x3b0adc(0x234)],'angle':this[_0x3b0adc(0x26e)]};_0x43987c['updateContext'](_0x332399),_0x44fb4f[_0x3b0adc(0x173)]();let _0x33e88f={'top':0x0,'left':0x0,'width':_0x286f47,'height':_0xf499a3},_0x34f46a=_0x43987c[_0x3b0adc(0x2e5)](_0x33e88f);_0x34f46a?this[_0x3b0adc(0x195)](_0x44fb4f,_0x34f46a,_0x3c60a3=>{const _0x2d03df=_0x3b0adc;_0x43987c[_0x2d03df(0x279)](_0x3c60a3,_0x33e88f,_0xe5bcf2);}):(this['_releaseRenderCache'](),_0x43987c[_0x3b0adc(0x279)](_0x44fb4f,_0x33e88f,_0xe5bcf2)),_0x44fb4f[_0x3b0adc(0xef)]();let _0x5cd231=_0x43987c[_0x3b0adc(0x2c8)](),_0x27263c=_0x43987c[_0x3b0adc(0x2c5)](_0x33e88f),_0x59694c=_0x43987c[_0x3b0adc(0x2bc)]();if(_0x5cd231&&_0x27263c&&!_0x59694c){_0x44fb4f['save'](),this[_0x3b0adc(0x1eb)]()['flipX']&&_0x44fb4f[_0x3b0adc(0x31c)](-0x1,0x1);let _0x484264=_0x286f47/0x2,_0x12942c=_0xf499a3/0x2;_0x44fb4f[_0x3b0adc(0x1a0)](-_0x484264,-_0x12942c),_0x44fb4f['beginPath'](),this[_0x3b0adc(0x185)](_0x44fb4f,_0x5cd231,_0x27263c),_0x44fb4f[_0x3b0adc(0xef)]();}}[_0x25219a(0x273)](_0x5f25c4){}[_0x25219a(0x185)](_0x41d97f,_0x12eba1,_0x586379){const _0x53759d=_0x25219a;var _0x4196ca;this[_0x53759d(0x295)]['isEditing']||(!((_0x4196ca=_0x12eba1[_0x53759d(0x177)])!=null&&_0x4196ca[_0x53759d(0x13f)])&&_0x53759d(0x1e6)in _0x12eba1&&_0x12eba1[_0x53759d(0x1e6)]===!0x1?this[_0x53759d(0x2f7)](_0x41d97f,_0x12eba1,_0x586379):this[_0x53759d(0x2e6)](_0x41d97f,_0x12eba1,_0x586379));}[_0x25219a(0x2f7)](_0xf08f47,_0x4c01a6,_0x7bfd7a){const _0x496698=_0x25219a;this[_0x496698(0x2e6)](_0xf08f47,{..._0x4c01a6,'text':_0x4c01a6[_0x496698(0x229)]??'','dataModel':{'doc':_0x29503c(_0x4c01a6,_0x496698(0x283)+this[_0x496698(0x161)])}},_0x7bfd7a);}[_0x25219a(0x2e6)](_0x296628,_0x29a6f0,_0x416d3c){const _0x31edac=_0x25219a;_0xe9ad21(_0x296628,this[_0x31edac(0x33f)],(_0x3a5702,_0x308717)=>{const _0x20d229=_0x31edac;this[_0x20d229(0x342)](_0x3a5702,_0x29a6f0,_0x416d3c,_0x308717);});}[_0x25219a(0x342)](_0x3a3122,_0x5e2054,_0x243b64,_0x23b334){const _0x269d84=_0x25219a;let _0xafcd6=this[_0x269d84(0x295)]['localeService'];if(!_0x5e2054[_0x269d84(0x177)]||!_0xafcd6)return;let _0x18221c=_0x503e1(_0x5e2054[_0x269d84(0x177)]);if(!_0x18221c)return;let _0x2147ec=_0x18221c['doc'];if(!_0x2147ec)return;let _0x29c912=_0x5d87c2(_0x2147ec,_0x23b334),_0x351ed1=_0x18221c['va']??_0x2c7292['TOP'],_0x10ff9e=_0x18221c['ha']??_0x365b63[_0x269d84(0x215)],_0x3b5708=In(this[_0x269d84(0x295)][_0x269d84(0x2ac)][_0x269d84(0x23b)](),_0x5e2054,_0x29c912),_0x2d73f2=_0x5e2054[_0x269d84(0x1f9)],_0x495db7=new _0x4423a6(_0x46cada(_0x29c912,{'isHorizontal':_0x2d73f2!==!0x1,'textRect':_0x243b64,'verticalAlign':_0x351ed1,'horizontalAlign':_0x10ff9e,'wrapStrategy':_0x3b5708[_0x269d84(0x1ce)]})),_0x1535e3=new _0x208c57(_0x495db7),_0x493f35=_0x5c0882[_0x269d84(0x311)](_0x1535e3,_0xafcd6);_0x493f35['calculate']();let _0x167977=_0x493f35[_0x269d84(0x217)]()[_0x269d84(0x113)],_0x2da1f3=_0x3d35ed({'contentHeight':_0x167977,'verticalAlign':_0x351ed1,'viewportHeight':_0x243b64[_0x269d84(0x270)]});_0x495db7['updateDocumentStyle']({'pageSize':{'width':_0x2d73f2===!0x1?_0x243b64[_0x269d84(0x270)]:_0x243b64[_0x269d84(0x11f)],'height':_0x2da1f3[_0x269d84(0x20d)]}}),_0x495db7[_0x269d84(0x2a2)]({'t':_0x2da1f3[_0x269d84(0x246)]}),_0x493f35[_0x269d84(0xdd)]();let _0x5b49e5=new _0x11f5a9(_0x269d84(0x31b)+this[_0x269d84(0x161)],_0x493f35,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x269d84(0x154)](!0x0)});_0x5b49e5[_0x269d84(0x33a)](_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x20d)]),_0x3a3122[_0x269d84(0x173)](),_0x3a3122[_0x269d84(0x18a)](_0x243b64[_0x269d84(0x242)],_0x243b64['top']),_0x3b5708[_0x269d84(0x33e)]&&(_0x3a3122['beginPath'](),_0x3a3122[_0x269d84(0x174)](0x0,_0x2da1f3[_0x269d84(0x118)],_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x1d0)]),_0x3a3122[_0x269d84(0x33e)]()),_0x2da1f3[_0x269d84(0x115)]&&_0x3a3122[_0x269d84(0x18a)](0x0,_0x2da1f3[_0x269d84(0x115)]),_0x5b49e5[_0x269d84(0x2f3)](_0x3a3122),_0x3a3122[_0x269d84(0xef)](),_0x5b49e5['dispose'](),_0x493f35['dispose'](),_0x1535e3[_0x269d84(0x259)](),_0x495db7[_0x269d84(0x259)]();}[_0x25219a(0x279)](_0x5e08e8,_0x55ec4f,_0x5536f1=!0x1){const _0x2c93f9=_0x25219a;if(!this[_0x2c93f9(0x1c0)])return this[_0x2c93f9(0x154)](!0x1),this;let {width:_0x22581e,height:_0x89fdd6,left:_0x3cf192,top:_0x55eb23}=this,_0x231c72=this[_0x2c93f9(0x1d4)]();if(_0x22581e=_0x231c72[_0x2c93f9(0x11f)],_0x89fdd6=_0x231c72[_0x2c93f9(0x270)],_0x3cf192=_0x231c72[_0x2c93f9(0x242)],_0x55eb23=_0x231c72[_0x2c93f9(0x1e8)],this[_0x2c93f9(0x2ca)](_0x55ec4f)){let {top:_0x8c8be7,left:_0x46a411,bottom:_0x21b6d8,right:_0x1bdbdd}=_0x55ec4f['viewBound'];if(_0x22581e+this['strokeWidth']+_0x3cf192<_0x46a411||_0x1bdbdd<_0x3cf192||_0x89fdd6+this['strokeWidth']+_0x55eb23<_0x8c8be7||_0x21b6d8<_0x55eb23)return this;}let _0x54915c=_0x3cf192+_0x22581e/0x2,_0x49a3f7=_0x55eb23+_0x89fdd6/0x2,_0x15c77b=this[_0x2c93f9(0x298)][_0x2c93f9(0x258)]();if(this[_0x2c93f9(0x295)]['isEditing']){let _0x5f325a=this[_0x2c93f9(0x1eb)](),_0x44d4c9=new _0x34d861();_0x44d4c9['composeMatrix']({..._0x5f325a}),_0x15c77b=_0x44d4c9[_0x2c93f9(0x258)]();}return _0x5e08e8['save'](),this[_0x2c93f9(0x295)][_0x2c93f9(0x2ac)][_0x2c93f9(0x110)]===!0x0||_0x5e08e8[_0x2c93f9(0x298)](_0x15c77b[0x0],_0x15c77b[0x1],_0x15c77b[0x2],_0x15c77b[0x3],_0x54915c,_0x49a3f7),this[_0x2c93f9(0x183)](_0x5e08e8,_0x55ec4f,_0x22581e,_0x89fdd6),_0x5e08e8[_0x2c93f9(0xef)](),this[_0x2c93f9(0x154)](!0x1),this;}['getInverseCoord'](_0xf6f33e){const _0x23db5d=_0x25219a;let {left:_0x1653c5,top:_0x16e782,width:_0x4c08a8,height:_0x24c0bc}=this['getRealBound'](),_0x3c18c8=this['transform'][_0x23db5d(0x258)](),_0x2be32a=_0x1653c5+_0x4c08a8/0x2,_0x54cda7=_0x16e782+_0x24c0bc/0x2,_0x1e06b1=new _0x34d861([_0x3c18c8[0x0],_0x3c18c8[0x1],_0x3c18c8[0x2],_0x3c18c8[0x3],_0x2be32a,_0x54cda7]),_0x1c0f51=this[_0x23db5d(0x28c)]();return(this[_0x23db5d(0x1f6)]&&(_0x1c0f51==null?void 0x0:_0x1c0f51[_0x23db5d(0x26d)])===_0x4550bb[_0x23db5d(0x1fd)]?_0x1c0f51[_0x23db5d(0x20c)][_0x23db5d(0x15c)](_0x1e06b1):_0x1e06b1)['invert']()[_0x23db5d(0x317)](_0xf6f33e);}['isHit'](_0x5d383b){const _0x47062b=_0x25219a;let {left:_0x4864e3,top:_0xb072a0,width:_0x603e43,height:_0x305cf6}=this['getRealBound'](),_0x43d159=_0x4864e3+_0x603e43/0x2,_0x636108=_0xb072a0+_0x305cf6/0x2,_0x24b3e2=this[_0x47062b(0x298)]['getMatrix'](),_0x1b4fb9=new _0x34d861([_0x24b3e2[0x0],_0x24b3e2[0x1],_0x24b3e2[0x2],_0x24b3e2[0x3],_0x43d159,_0x636108]),_0x4c9545=this['getParent'](),_0x413de7=(this[_0x47062b(0x1f6)]&&(_0x4c9545==null?void 0x0:_0x4c9545[_0x47062b(0x26d)])===_0x4550bb[_0x47062b(0x1fd)]?_0x4c9545['ancestorTransform'][_0x47062b(0x15c)](_0x1b4fb9):_0x1b4fb9)['invert']()['applyPoint'](_0x5d383b),_0x364893=_0x603e43/0x2,_0x33fbb3=_0x305cf6/0x2,_0x26dc94=this[_0x47062b(0x295)][_0x47062b(0x2ac)];return _0x26dc94&&_0x26dc94[_0x47062b(0x2bc)]()?_0x26dc94[_0x47062b(0x1c9)](_0x413de7['x'],_0x413de7['y'],_0x603e43,_0x305cf6):_0x413de7['x']>=-_0x364893-this[_0x47062b(0x2b7)]/0x2&&_0x413de7['x']<=_0x364893+this[_0x47062b(0x2b7)]/0x2&&_0x413de7['y']>=-_0x33fbb3-this['strokeWidth']/0x2&&_0x413de7['y']<=_0x33fbb3+this[_0x47062b(0x2b7)]/0x2;}[_0x25219a(0x259)](){const _0x510d10=_0x25219a;this[_0x510d10(0x33f)][_0x510d10(0x259)](),this['_props']['shapeModel']=null,super[_0x510d10(0x259)]();}},Rn=class extends _0x1ac658{constructor(_0x500e4b,_0x5b7d1a){const _0x326445=_0x25219a;super(_0x500e4b,_0x5b7d1a),Y(this,'_shapeId',null),Y(this,'_adjName',null),Y(this,_0x326445(0x1c5),null),Y(this,'_subUnitId',null),_0x5b7d1a&&this[_0x326445(0x2f6)](_0x5b7d1a);}[_0x25219a(0x198)](){const _0x21cd42=_0x25219a;return{'unitId':this[_0x21cd42(0x1c5)],'subUnitId':this[_0x21cd42(0x333)],'drawingId':this[_0x21cd42(0x13e)]};}['setShapeProps'](_0x3540a5){const _0x5a9bc5=_0x25219a;_0x3540a5[_0x5a9bc5(0x25a)]!==void 0x0&&(this[_0x5a9bc5(0x13e)]=_0x3540a5['shapeId']),_0x3540a5[_0x5a9bc5(0x1ae)]!==void 0x0&&(this[_0x5a9bc5(0x1b5)]=_0x3540a5[_0x5a9bc5(0x1ae)]),_0x3540a5[_0x5a9bc5(0x151)]!==void 0x0&&(this[_0x5a9bc5(0x1c5)]=_0x3540a5[_0x5a9bc5(0x151)]),_0x3540a5['subUnitId']!==void 0x0&&(this[_0x5a9bc5(0x333)]=_0x3540a5['subUnitId']),this[_0x5a9bc5(0xfd)]({'width':_0x3540a5['width'],'height':_0x3540a5[_0x5a9bc5(0x270)]});}['_draw'](_0x2ae69f){const _0x5a863e=_0x25219a;_0x18400a[_0x5a863e(0x230)](_0x2ae69f,{'radius':_0x373ebe[_0x5a863e(0x1bf)],'fill':_0x373ebe[_0x5a863e(0x238)],'stroke':_0x373ebe[_0x5a863e(0x16f)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x2dbbca,_0x2f5924){return function(_0x432245,_0x5bc01b){_0x2f5924(_0x432245,_0x5bc01b,_0x2dbbca);};}function Z(_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229){const _0x20e3a4=_0x25219a;var _0x3b96cc=arguments[_0x20e3a4(0x27a)],_0x7c70ca=_0x3b96cc<0x3?_0x284ce1:_0x2ae229===null?_0x2ae229=Object['getOwnPropertyDescriptor'](_0x284ce1,_0x1fc732):_0x2ae229,_0x4f846d;if(typeof Reflect==_0x20e3a4(0x321)&&typeof Reflect[_0x20e3a4(0x224)]==_0x20e3a4(0x190))_0x7c70ca=Reflect[_0x20e3a4(0x224)](_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229);else{for(var _0x39a06e=_0x35a01a['length']-0x1;_0x39a06e>=0x0;_0x39a06e--)(_0x4f846d=_0x35a01a[_0x39a06e])&&(_0x7c70ca=(_0x3b96cc<0x3?_0x4f846d(_0x7c70ca):_0x3b96cc>0x3?_0x4f846d(_0x284ce1,_0x1fc732,_0x7c70ca):_0x4f846d(_0x284ce1,_0x1fc732))||_0x7c70ca);}return _0x3b96cc>0x3&&_0x7c70ca&&Object[_0x20e3a4(0x251)](_0x284ce1,_0x1fc732,_0x7c70ca),_0x7c70ca;}let Q=class extends _0x3ba2e2{constructor(_0x4bc30c,_0x5b4472,_0x40765c,_0x176fd9,_0x27227a,_0x493538){const _0x14931a=_0x25219a;super(),this[_0x14931a(0x284)]=_0x4bc30c,this['_sheetsShapeService']=_0x5b4472,this[_0x14931a(0x1f0)]=_0x40765c,this[_0x14931a(0x14b)]=_0x176fd9,this['_urlImageService']=_0x27227a,this['_shapeFormulaService']=_0x493538,Y(this,_0x14931a(0x2b2),new Map()),this[_0x14931a(0x1b1)](this['_shapeFormulaService'][_0x14931a(0x14e)][_0x14931a(0x1a5)](_0x437e9c=>{const _0x33068e=_0x14931a;var _0x21a051;(_0x21a051=this[_0x33068e(0x2b2)]['get'](this[_0x33068e(0x146)](_0x437e9c[_0x33068e(0x151)],_0x437e9c[_0x33068e(0x21f)],_0x437e9c[_0x33068e(0x25a)])))==null||_0x21a051[_0x33068e(0x162)](_0x1d6733=>_0x1d6733[_0x33068e(0x2e8)](_0x437e9c['presentation'],_0x437e9c[_0x33068e(0x2c3)]));})),this[_0x14931a(0x1b1)](this[_0x14931a(0x284)][_0x14931a(0x2c0)][_0x14931a(0x1a5)](_0x2cfb3f=>{_0x2cfb3f['forEach'](_0x4276fb=>{const _0x59ef2a=_0x52a4;this['_shapeFormulaService'][_0x59ef2a(0x13a)]({'unitId':_0x4276fb[_0x59ef2a(0x151)],'subUnitId':_0x4276fb[_0x59ef2a(0x21f)],'shapeId':_0x4276fb[_0x59ef2a(0x2c2)]}),this[_0x59ef2a(0x2b2)][_0x59ef2a(0x1d3)](this[_0x59ef2a(0x146)](_0x4276fb[_0x59ef2a(0x151)],_0x4276fb[_0x59ef2a(0x21f)],_0x4276fb['drawingId']));});}));}[_0x25219a(0x32b)](_0x35645e,_0x755f8e,_0x1dbb3f){const _0x1a7269=_0x25219a;let {transform:_0x16f213,drawingType:_0x32eb98,srcRect:_0x1b6c39,prstGeom:_0x37304e,groupId:_0x38a589,unitId:_0x4d9e20,subUnitId:_0x5035f0,drawingId:_0x16fcde,isMultiTransform:_0xacf0bd,transforms:_0x3aada0,hidden:_0x3974a9,selectable:_0x109d3e}=_0x35645e;if(_0x32eb98!==_0x161136['DRAWING_SHAPE']||!this[_0x1a7269(0x284)]['getDrawingVisible']()||_0x16f213==null)return;let _0x32d9b8=this[_0x1a7269(0x284)]['getDrawingEditable']();_0x32d9b8&&_0x755f8e[_0x1a7269(0x2b5)](_0x40f766);let _0x5d7564=_0xacf0bd&&_0x3aada0?_0x3aada0:[_0x16f213],_0x320874=[];for(let _0x5a4e25 of _0x5d7564){let {left:_0x460883,top:_0x13c1e9,width:_0x48f1c8,height:_0x1f923c,angle:_0x3acc80,flipX:_0x5e2e49,flipY:_0x5ee29b,skewX:_0x6a5e10,skewY:_0x508ab3}=_0x5a4e25,_0x4b5e2f=_0x5d7564[_0x1a7269(0x20a)](_0x5a4e25),_0x587c5c=_0x566164({'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'drawingId':_0x16fcde},_0xacf0bd?_0x4b5e2f:void 0x0),_0x138c2a=_0x755f8e['getObjectIncludeInGroup'](_0x587c5c);if(_0x138c2a!=null){let _0x4f9fe3={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0x138c2a instanceof Ln&&this[_0x1a7269(0xf2)](_0x138c2a,_0x4f9fe3),_0x138c2a[_0x1a7269(0xfd)]({'left':_0x460883,'top':_0x13c1e9,'width':_0x48f1c8,'height':_0x1f923c,'angle':_0x3acc80,'flipX':_0x5e2e49,'flipY':_0x5ee29b,'skewX':_0x6a5e10,'skewY':_0x508ab3});continue;}let _0xf7fa04=this[_0x1a7269(0x284)][_0x1a7269(0x337)](_0x4d9e20,_0x5035f0),_0x4579d9=_0xf7fa04['indexOf'](_0x16fcde);if(_0x755f8e[_0x1a7269(0x15b)](_0x587c5c)||!this[_0x1a7269(0x284)]['getDrawingVisible']())continue;let _0x4ce1f8=this[_0x1a7269(0x124)][_0x1a7269(0x1f4)](_0x4d9e20,_0x5035f0,_0x16fcde);if(!_0x4ce1f8)continue;let _0x519a99=_0x41a954(_0x4ce1f8['getShapeType']()),_0xb701c6=_0x4ce1f8[_0x1a7269(0x23b)]()[_0x1a7269(0x1c6)],_0x2e6e65={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0xb701c6&&this[_0x1a7269(0x2d3)]['register'](_0x2e6e65,_0xb701c6);let _0x9f3231=new Ln(_0x587c5c,{..._0x519a99?{..._0x5a4e25,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5a4e25},'zIndex':_0x4579d9===-0x1?_0xf7fa04[_0x1a7269(0x27a)]-0x1:_0x4579d9,'shapeModel':_0x4ce1f8,'localeService':this[_0x1a7269(0x1f0)],'shapeId':_0x16fcde,'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'visible':_0x3974a9!==!0x0,'evented':_0x109d3e!==!0x1,'formulaPresentation':_0xb701c6?this['_shapeFormulaService'][_0x1a7269(0x29b)](_0x2e6e65):void 0x0,'animateFormulaPresentation':(_0xb701c6==null?void 0x0:_0xb701c6[_0x1a7269(0x2c3)])!==!0x1});if(_0xb701c6){let _0x4b54d0=this[_0x1a7269(0x146)](_0x4d9e20,_0x5035f0,_0x16fcde),_0x36492b=this['_formulaShapes'][_0x1a7269(0x23e)](_0x4b54d0)??new Set();_0x36492b[_0x1a7269(0x119)](_0x9f3231),this[_0x1a7269(0x2b2)]['set'](_0x4b54d0,_0x36492b);}_0x755f8e[_0x1a7269(0xe6)](_0x9f3231,_0x22b4b7),_0x32d9b8&&_0x755f8e[_0x1a7269(0x12d)](_0x9f3231),_0x38a589&&_0x5c5c75({'drawingId':_0x38a589,'unitId':_0x4d9e20,'subUnitId':_0x5035f0},_0x9f3231,_0x755f8e,this[_0x1a7269(0x284)]),_0x37304e!=null&&_0x9f3231[_0x1a7269(0x1f3)](_0x37304e),_0x1b6c39!=null&&_0x9f3231['setSrcRect'](_0x1b6c39);let _0x127c44=this['_loadShapePictureFill'](_0x9f3231,_0x4ce1f8[_0x1a7269(0x23b)]());if(_0x127c44){var _0x4f3de7;_0x1dbb3f==null||(_0x4f3de7=_0x1dbb3f[_0x1a7269(0x1ca)])==null||_0x4f3de7[_0x1a7269(0x119)](_0x127c44);}_0x320874[_0x1a7269(0xfc)](_0x9f3231);}return _0x320874;}[_0x25219a(0x146)](_0x48a279,_0x2436f7,_0x1e73d9){return _0x48a279+'\x00'+_0x2436f7+'\x00'+_0x1e73d9;}[_0x25219a(0xf2)](_0x5ed695,_0x263a2e){const _0x31abf4=_0x25219a;let _0x33e5ad=this['_sheetsShapeService'][_0x31abf4(0x1f4)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e[_0x31abf4(0x21f)],_0x263a2e[_0x31abf4(0x25a)]),_0x3bbd08=_0x33e5ad==null?void 0x0:_0x33e5ad[_0x31abf4(0x23b)]()[_0x31abf4(0x1c6)],_0x394eb4=this[_0x31abf4(0x146)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e['subUnitId'],_0x263a2e[_0x31abf4(0x25a)]);if(_0x3bbd08){this['_shapeFormulaService']['register'](_0x263a2e,_0x3bbd08);let _0x16917b=this['_formulaShapes'][_0x31abf4(0x23e)](_0x394eb4)??new Set();_0x16917b[_0x31abf4(0x119)](_0x5ed695),this['_formulaShapes'][_0x31abf4(0x10e)](_0x394eb4,_0x16917b);}else{var _0x2aac94;this[_0x31abf4(0x2d3)][_0x31abf4(0x13a)](_0x263a2e),(_0x2aac94=this[_0x31abf4(0x2b2)]['get'](_0x394eb4))==null||_0x2aac94[_0x31abf4(0x1d3)](_0x5ed695);}_0x5ed695[_0x31abf4(0x2e8)](_0x3bbd08?this['_shapeFormulaService'][_0x31abf4(0x29b)](_0x263a2e):void 0x0,(_0x3bbd08==null?void 0x0:_0x3bbd08[_0x31abf4(0x2c3)])!==!0x1);}[_0x25219a(0x2ba)](_0x16c845){const _0x2c385b=_0x25219a;let _0x867712=_0x16c845['shapeModel'][_0x2c385b(0x23b)](),_0x295913=_0x867712[_0x2c385b(0x233)];if(!_0x295913||_0x295913[_0x2c385b(0x178)]!==_0x83e268[_0x2c385b(0x12a)]||!_0x295913[_0x2c385b(0x181)]){_0x16c845[_0x2c385b(0x1d2)](void 0x0);return;}this['_loadShapePictureFill'](_0x16c845,_0x867712);}[_0x25219a(0x134)](_0x1033cf,_0x366877){const _0x1d390c=_0x25219a;let _0x4f9dac=_0x366877['fill'];if(!_0x4f9dac||_0x4f9dac[_0x1d390c(0x178)]!==_0x83e268[_0x1d390c(0x12a)]||!_0x4f9dac[_0x1d390c(0x181)])return;let _0x769893=_0x4f9dac[_0x1d390c(0x181)],_0x423b1b=_0x4f9dac[_0x1d390c(0x1a7)]??_0x5a6853['URL'],_0x4b60f2=this[_0x1d390c(0x14b)][_0x1d390c(0x1d6)](_0x769893,_0x423b1b);if(_0x4b60f2){_0x1033cf[_0x1d390c(0x1d2)](_0x4b60f2);return;}return this['_loadAndSetImage'](_0x1033cf,_0x769893,_0x423b1b);}async[_0x25219a(0x15f)](_0x1e21f5,_0x3d433a,_0x4b1b30){const _0x491085=_0x25219a;let _0x5342da;try{if(_0x4b1b30===_0x5a6853['UUID'])_0x5342da=await this[_0x491085(0x14b)][_0x491085(0x127)](_0x3d433a);else{if(_0x4b1b30===_0x5a6853['URL'])try{_0x5342da=await this[_0x491085(0x2e2)][_0x491085(0x127)](_0x3d433a);}catch{_0x5342da=_0x3d433a;}else _0x5342da=_0x3d433a;}}catch(_0x2bc3fa){console['error'](_0x491085(0x31d),_0x2bc3fa);return;}await new Promise(_0x5c4344=>{const _0xa2ab34=_0x491085;let _0x4a8c1e=new window['Image']();_0x4a8c1e[_0xa2ab34(0x20b)]=()=>{const _0x386c82=_0xa2ab34;this['_imageIoService'][_0x386c82(0x189)](_0x3d433a,_0x4b1b30,_0x4a8c1e),_0x1e21f5[_0x386c82(0x1d2)](_0x4a8c1e),_0x5c4344();},_0x4a8c1e[_0xa2ab34(0x21e)]=()=>{const _0x570d32=_0xa2ab34;console['error'](_0x570d32(0x1e7),_0x3d433a),_0x5c4344();},_0x4a8c1e['src']=_0x5342da;});}};Q=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x404764)),X(0x3,_0x507a28),X(0x4,_0x157c04),X(0x5,_0x396ece(_0x2c2995))],Q);let zn=class extends _0x3ba2e2{constructor(_0x34d9f6,_0x502b6b,_0x40dd65,_0x43749b,_0x14cc11,_0x594be6){const _0x55b0b3=_0x25219a;super(),this[_0x55b0b3(0x284)]=_0x34d9f6,this[_0x55b0b3(0x124)]=_0x502b6b,this[_0x55b0b3(0x145)]=_0x40dd65,this[_0x55b0b3(0x26a)]=_0x43749b,this[_0x55b0b3(0xfe)]=_0x14cc11,this[_0x55b0b3(0x2cc)]=_0x594be6,Y(this,_0x55b0b3(0x25d),null),Y(this,_0x55b0b3(0x1c5),null),Y(this,_0x55b0b3(0x333),null),Y(this,_0x55b0b3(0x1e1),void 0x0),Y(this,_0x55b0b3(0x27d),[]),Y(this,_0x55b0b3(0x179),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x55b0b3(0x2ed),0x0),Y(this,_0x55b0b3(0xf5),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,_0x55b0b3(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x55b0b3(0x22f),void 0x0),Y(this,_0x55b0b3(0x16b),void 0x0),Y(this,_0x55b0b3(0x22b),!0x1),this[_0x55b0b3(0x132)](),this[_0x55b0b3(0x231)]();}[_0x25219a(0x260)](_0xf54210,_0x4708d8,_0x208204){const _0x4dc3aa=_0x25219a;let _0x461cd2=this[_0x4dc3aa(0x124)][_0x4dc3aa(0x1f4)](_0xf54210,_0x4708d8,_0x208204);if(_0x461cd2)return _0x461cd2[_0x4dc3aa(0x273)]();}[_0x25219a(0x2e1)](){const _0x1ea52d=_0x25219a;this[_0x1ea52d(0x266)]();}[_0x25219a(0x10b)](){const _0x1f48e3=_0x25219a;this[_0x1f48e3(0x1cf)](!0x0);}[_0x25219a(0x221)](_0x4e7a7f){const _0x32085d=_0x25219a;this[_0x32085d(0x22b)]=_0x4e7a7f;}[_0x25219a(0x1d9)](_0x4c6791,_0x5a3f9f,_0x16115b,_0x403209){const _0x17e2bf=_0x25219a;let _0x4a9878=this[_0x17e2bf(0x124)][_0x17e2bf(0x1f4)](_0x4c6791,_0x5a3f9f,_0x16115b);if(_0x4a9878)return _0x4a9878[_0x17e2bf(0x1bc)](_0x403209);}[_0x25219a(0x166)](_0x4ee021=!0x1){const _0x27ea15=_0x25219a;if(this[_0x27ea15(0x1c5)]===null||this[_0x27ea15(0x333)]===null||this[_0x27ea15(0x25d)]===null)return;let _0x201bc2=this[_0x27ea15(0x145)][_0x27ea15(0x1dd)](this[_0x27ea15(0x1c5)]);if(!_0x201bc2||!_0x201bc2[_0x27ea15(0xe3)](_0x319c9a)[_0x27ea15(0xde)]())return;let {scene:_0x4970c3}=_0x201bc2,_0x2dfd17={'unitId':this[_0x27ea15(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0xa3fcd=this[_0x27ea15(0x284)][_0x27ea15(0x30c)](_0x2dfd17),{transform:_0x60fe7e}=_0xa3fcd;if(!_0x60fe7e||_0xa3fcd['drawingType']!==_0x161136[_0x27ea15(0x25c)])return;let {left:_0x69557,top:_0x1b47cc,width:_0x48c838,height:_0x67ad84,flipX:_0x2a0c5c,flipY:_0x5cc0d1,angle:_0x722cef=0x0}=_0x60fe7e;if(_0x69557===void 0x0||_0x1b47cc===void 0x0)return;if(_0x4ee021){let _0x175cbe=this[_0x27ea15(0x124)]['getShapeModel'](this[_0x27ea15(0x1c5)],this['_subUnitId'],this[_0x27ea15(0x25d)]);_0x175cbe==null||_0x175cbe['updateContext']({'width':_0x48c838??0x0,'height':_0x67ad84??0x0}),this['_activeShapeAdjustPointList']=_0x175cbe==null?void 0x0:_0x175cbe[_0x27ea15(0x273)]();}let _0x4261e0=this[_0x27ea15(0x1e1)];for(let _0x343f26=0x0;_0x343f26<_0x4261e0[_0x27ea15(0x27a)];_0x343f26++){let _0x4b99ac=_0x4261e0[_0x343f26],_0x289370=_0x4b99ac['x'],_0x17573c=_0x4b99ac['y'];if(_0x2a0c5c&&(_0x289370=(_0x48c838||0x0)-_0x289370),_0x5cc0d1&&(_0x17573c=(_0x67ad84||0x0)-_0x17573c),_0x722cef!==0x0){let _0x3e261d=(_0x48c838||0x0)/0x2,_0x2a966a=(_0x67ad84||0x0)/0x2,_0x25666d=_0x722cef*Math['PI']/0xb4,_0x3cc85b=Math[_0x27ea15(0x214)](_0x25666d),_0x153d8d=Math[_0x27ea15(0x1fc)](_0x25666d),_0x3e3d9b=_0x289370-_0x3e261d,_0x105d26=_0x17573c-_0x2a966a;_0x289370=_0x3e261d+(_0x3e3d9b*_0x3cc85b-_0x105d26*_0x153d8d),_0x17573c=_0x2a966a+(_0x3e3d9b*_0x153d8d+_0x105d26*_0x3cc85b);}let _0x406c5c={'x':_0x289370,'y':_0x17573c,'adjName':_0x4b99ac[_0x27ea15(0x1ae)]};this[_0x27ea15(0x199)](_0x4970c3,_0x406c5c,_0x406c5c[_0x27ea15(0x1ae)],_0x69557,_0x1b47cc,this[_0x27ea15(0x1c5)],this['_subUnitId']);}}[_0x25219a(0x1cf)](_0x4f09df=!0x1){const _0x12814a=_0x25219a;_0x4f09df&&(this[_0x12814a(0x266)](),this[_0x12814a(0x166)](_0x4f09df));}[_0x25219a(0x199)](_0x2d969c,_0x2676f0,_0x4157bd,_0x14cc35,_0x5333ae,_0xad8125,_0x21187f){const _0xb55ae3=_0x25219a;if(!this['_activeShapeId'])return;let _0x3be8f6=_0x2d969c[_0xb55ae3(0x15b)]('shape-adjust-point-'+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd);if(_0x3be8f6){_0x3be8f6['transformByState']({'left':_0x2676f0['x']+_0x14cc35-_0x373ebe['adjHandleSize'],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)]});return;}let _0x2dd6db={'left':_0x2676f0['x']+_0x14cc35-_0x373ebe[_0xb55ae3(0x1bf)],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)],'adjName':_0x4157bd,'shapeId':this[_0xb55ae3(0x25d)],'unitId':_0xad8125,'subUnitId':_0x21187f,'width':_0x373ebe['adjHandleSize']+0x8,'height':_0x373ebe['adjHandleSize']+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0},_0x2fc7db=new Rn(_0xb55ae3(0x220)+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd,_0x2dd6db);this['_shapes'][_0xb55ae3(0xfc)](_0x2fc7db),this[_0xb55ae3(0x272)](_0x2fc7db,_0x2d969c,_0x4157bd),_0x2d969c[_0xb55ae3(0xe6)](_0x2fc7db,_0x22b4b7+0x1);}[_0x25219a(0x266)](){const _0x17ca0d=_0x25219a;this[_0x17ca0d(0x27d)]['length']!==0x0&&(this[_0x17ca0d(0x27d)][_0x17ca0d(0x162)](_0x5825bf=>{const _0x539515=_0x17ca0d;_0x5825bf[_0x539515(0x259)]();}),this['_shapes']=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x25219a(0x314)](_0x46592a,_0x1cb353){const _0x4ea8f0=_0x25219a;var _0x26866c;let _0xb348f1={'x':0x0,'y':0x0};if(!_0x46592a||!_0x1cb353)return _0xb348f1;let _0x412f48=this['_renderManagerService'][_0x4ea8f0(0x1dd)](_0x46592a);if(!_0x412f48||!_0x412f48[_0x4ea8f0(0xe3)](_0x319c9a)[_0x4ea8f0(0x22d)](_0x1cb353))return _0xb348f1;let _0x26f928=_0x412f48[_0x4ea8f0(0xe3)](_0x22e443),_0x173495=_0x26f928==null?void 0x0:_0x26f928['getCurrentScrollState']();if(!_0x173495)return _0xb348f1;let _0x29b8fa=(_0x26866c=this[_0x4ea8f0(0xfe)][_0x4ea8f0(0x11e)](_0x46592a))==null?void 0x0:_0x26866c['getSheetBySheetId'](_0x1cb353);if(!_0x29b8fa)return _0xb348f1;let _0x54010b=_0x4f0d4b(_0x173495[_0x4ea8f0(0x1cc)],_0x173495[_0x4ea8f0(0x18c)],_0x412f48[_0x4ea8f0(0x19b)],_0x29b8fa);return _0x54010b?{'x':_0x54010b['viewportScrollX'],'y':_0x54010b[_0x4ea8f0(0x24b)]}:_0xb348f1;}[_0x25219a(0x1aa)](_0x7f89e9,_0x1f0587){const _0x204630=_0x25219a;var _0x233dcf;let _0xf9ac3f=(_0x233dcf=this[_0x204630(0xfe)][_0x204630(0x11e)](_0x7f89e9))==null?void 0x0:_0x233dcf['getSheetBySheetId'](_0x1f0587);return(_0xf9ac3f==null?void 0x0:_0xf9ac3f[_0x204630(0x310)]())??0x1;}[_0x25219a(0x272)](_0x9b606c,_0x4815ef,_0x4cc1e1){const _0x1f3241=_0x25219a;this['disposeWithMe'](_0x2388cf(_0x9b606c['onPointerDown$'][_0x1f3241(0x1ab)]((_0x4bd365,_0x7c94d0)=>{const _0x1ec54d=_0x1f3241;var _0x5a4627,_0x49903d,_0xbf0401,_0x1a1297;let _0x543881=_0x9b606c['getDrawingSearch']();this[_0x1ec54d(0x23c)]=this[_0x1ec54d(0x1d9)](_0x543881[_0x1ec54d(0x151)],_0x543881[_0x1ec54d(0x21f)],_0x543881[_0x1ec54d(0x2c2)],_0x4cc1e1),this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ec54d(0x1f4)](_0x543881['unitId'],_0x543881[_0x1ec54d(0x21f)],_0x543881['drawingId']);let _0x153765=this['_drawingManagerService'][_0x1ec54d(0x30c)]({'unitId':this[_0x1ec54d(0x1c5)],'subUnitId':this[_0x1ec54d(0x333)],'drawingId':this['_activeShapeId']}),{transform:_0x506061}=_0x153765;if(_0x506061){let {left:_0xc4b63d,top:_0x38d773,width:_0x296c68,height:_0x12d009}=_0x506061;this[_0x1ec54d(0x179)]=_0xc4b63d||0x0,this[_0x1ec54d(0x143)]=_0x38d773||0x0,this[_0x1ec54d(0x2ed)]=_0x296c68||0x0,this[_0x1ec54d(0xf5)]=_0x12d009||0x0;}let _0x22da59=!!((_0x5a4627=_0x153765[_0x1ec54d(0x298)])!=null&&_0x5a4627[_0x1ec54d(0x275)]),_0x6b0e0f=!!((_0x49903d=_0x153765['transform'])!=null&&_0x49903d[_0x1ec54d(0x1a3)]),_0x24a228=((_0xbf0401=_0x153765[_0x1ec54d(0x298)])==null?void 0x0:_0xbf0401[_0x1ec54d(0x26e)])||0x0;this[_0x1ec54d(0x2e0)]=!0x0,_0x4815ef[_0x1ec54d(0x188)]();let _0x2f09ed={...((_0x1a1297=this[_0x1ec54d(0x23c)])==null?void 0x0:_0x1a1297['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x4815ef['onPointerMove$'][_0x1ec54d(0x1ab)]((_0xfe55de,_0x559036)=>{const _0x4897b7=_0x1ec54d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2f9d20,offsetY:_0x256da0}=_0xfe55de,_0x56c472=this[_0x4897b7(0x23c)];if(this[_0x4897b7(0x16c)]&&_0x56c472){_0x4815ef['disableObjectsEvent'](),_0x4815ef[_0x4897b7(0xfb)](_0x2bcec2[_0x4897b7(0x318)]);let _0x2081ee={'left':0x0,'top':0x0,'width':this[_0x4897b7(0x2ed)],'height':this['_baseShapeHeight']},_0x5075ee=this[_0x4897b7(0x314)](this[_0x4897b7(0x1c5)],this[_0x4897b7(0x333)]),_0x43359d=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x377d6e=_0x2f9d20/_0x43359d+_0x5075ee['x']-this[_0x4897b7(0x179)],_0x3d4032=_0x256da0/_0x43359d+_0x5075ee['y']-this['_baseShapeTop'];if(_0x24a228!==0x0){let _0x3f4c0a=this[_0x4897b7(0x2ed)]/0x2,_0x1c9599=this['_baseShapeHeight']/0x2,_0x459b82=_0x24a228*Math['PI']/0xb4,_0x4a8e55=Math[_0x4897b7(0x214)](_0x459b82),_0x776dd=Math[_0x4897b7(0x1fc)](_0x459b82),_0x18df04=_0x377d6e-_0x3f4c0a,_0x3b65ab=_0x3d4032-_0x1c9599;_0x377d6e=_0x3f4c0a+(_0x18df04*_0x4a8e55+_0x3b65ab*_0x776dd),_0x3d4032=_0x1c9599+(-_0x18df04*_0x776dd+_0x3b65ab*_0x4a8e55);}_0x22da59&&(_0x377d6e=this['_baseShapeWidth']-_0x377d6e),_0x6b0e0f&&(_0x3d4032=this[_0x4897b7(0xf5)]-_0x3d4032);let _0x49ee8c={'x':_0x377d6e,'y':_0x3d4032},_0x70d7f=this[_0x4897b7(0x16c)][_0x4897b7(0x180)](_0x2081ee,_0x49ee8c,_0x56c472,_0x22da59,_0x6b0e0f);if(Object[_0x4897b7(0x12f)](_0x70d7f)[_0x4897b7(0x27a)]===0x0)return;for(let [_0x96a45c,_0x5a600b]of Object[_0x4897b7(0x277)](_0x70d7f))this['_activeShapeModel'][_0x4897b7(0x2cf)](_0x96a45c,_0x5a600b);this[_0x4897b7(0x16c)]['updateContext']({'width':this['_baseShapeWidth'],'height':this[_0x4897b7(0xf5)]});let _0x11c5c5=this[_0x4897b7(0x284)]['getDrawingByParam']({'unitId':_0x543881[_0x4897b7(0x151)],'subUnitId':_0x543881['subUnitId'],'drawingId':_0x543881['drawingId']});_0x11c5c5&&(this[_0x4897b7(0x26a)]['renderDrawingShape'](_0x11c5c5,_0x4815ef),this[_0x4897b7(0x1e1)]=this[_0x4897b7(0x260)](_0x543881[_0x4897b7(0x151)],_0x543881[_0x4897b7(0x21f)],_0x543881[_0x4897b7(0x2c2)]),this['_updateAdjustControlPositions']());}_0x559036[_0x4897b7(0x193)]();}),this['_adjHandlerPointerUp']=_0x4815ef[_0x1ec54d(0x2fc)][_0x1ec54d(0x1ab)]((_0x577969,_0x1cf7c4)=>{const _0x28437a=_0x1ec54d;this[_0x28437a(0x22f)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x4815ef[_0x28437a(0x144)]();let _0x1beb72=this[_0x28437a(0x23c)];if(_0x1beb72){let _0x291a2e=_0x543881[_0x28437a(0x151)],_0x190c16=_0x543881['subUnitId'],_0x378a99=_0x543881[_0x28437a(0x2c2)],_0x1791de={};for(let _0x578d3c of Object[_0x28437a(0x12f)](_0x1beb72['currentAdjustValues'])){var _0x5f23e7;let _0x94bdfd=(_0x5f23e7=this['_activeShapeModel'])==null?void 0x0:_0x5f23e7[_0x28437a(0x19f)](_0x578d3c);_0x94bdfd!==void 0x0&&(_0x1791de[_0x578d3c]=_0x94bdfd);}Object['keys'](_0x1791de)[_0x28437a(0x27a)]>0x0&&jn(this['_commandService'],_0x291a2e,_0x190c16,_0x378a99,{'oldShapeData':{'adjustValues':_0x2f09ed}},{'adjustValues':_0x1791de});}this['_activeAdjustInfo']=void 0x0,this[_0x28437a(0x16c)]=void 0x0,this[_0x28437a(0x2e0)]=!0x1,_0x1cf7c4[_0x28437a(0x193)](),_0x4815ef[_0x28437a(0xfa)]();}),_0x7c94d0['stopPropagation']();})));}[_0x25219a(0x231)](){const _0x3fe835=_0x25219a;let _0x4f44b2=this[_0x3fe835(0xfe)][_0x3fe835(0x1ac)](_0x2e857c[_0x3fe835(0x243)]);this['disposeWithMe'](_0x4f44b2[_0x3fe835(0x17c)](_0x54e619(_0x380292=>_0x380292?_0x380292[_0x3fe835(0x263)][_0x3fe835(0x17c)](_0x54e619(_0x2b87a4=>{const _0x2a7dcf=_0x3fe835;if(!_0x2b87a4)return _0x1997e0;let _0x51e335=_0x380292[_0x2a7dcf(0x1cd)](),_0x421a12=this['_renderManagerService'][_0x2a7dcf(0x1dd)](_0x51e335),_0x331055=_0x421a12==null?void 0x0:_0x421a12[_0x2a7dcf(0x19b)];return _0x331055?_0x36ada1(_0x331055):_0x1997e0;})):_0x1997e0))['subscribe'](_0x176142=>{const _0xb6d43b=_0x3fe835;let _0x5f1bc3=_0x176142[_0xb6d43b(0x253)]();this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x131)][_0xb6d43b(0x1ab)](()=>{const _0x240d75=_0xb6d43b;this[_0x240d75(0x22b)];})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x255)][_0xb6d43b(0x1a5)](_0x3b7895=>{const _0x494a3d=_0xb6d43b;let {objects:_0x651943}=_0x3b7895;this[_0x494a3d(0x166)](),_0x651943!==null&&_0x651943[_0x494a3d(0x32f)]===0x1&&_0x651943[_0x494a3d(0x1c8)]()[_0x494a3d(0x32d)]()[_0x494a3d(0x335)]instanceof Ln&&this[_0x494a3d(0x221)](!0x0);})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x155)][_0xb6d43b(0x1a5)](()=>{const _0xa8fab3=_0xb6d43b;this['_isShouldShowDrawingShapeAdjust']&&this[_0xa8fab3(0x266)]();})),this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x2fc)][_0xb6d43b(0x1ab)](()=>{const _0x5e793b=_0xb6d43b;this[_0x5e793b(0x22b)]&&(this['setShouldShowAdjust'](!0x1),this[_0x5e793b(0x166)]());})),this[_0xb6d43b(0x1b1)](_0x5f1bc3['changeEnd$'][_0xb6d43b(0x1a5)](()=>{const _0x2d6ec7=_0xb6d43b;this[_0x2d6ec7(0x1c5)]&&this['_subUnitId']&&this[_0x2d6ec7(0x25d)]&&this[_0x2d6ec7(0x284)][_0x2d6ec7(0x30c)]({'unitId':this[_0x2d6ec7(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this[_0x2d6ec7(0x1e1)]=this[_0x2d6ec7(0x260)](this[_0x2d6ec7(0x1c5)],this[_0x2d6ec7(0x333)],this[_0x2d6ec7(0x25d)]),this[_0x2d6ec7(0x187)]());}));}));}[_0x25219a(0x132)](){const _0x486d43=_0x25219a;this[_0x486d43(0x1b1)](this[_0x486d43(0x2cc)]['onCommandExecuted'](_0x488020=>{const _0x510c53=_0x486d43;if(_0x488020['id']!==_0x46a98e['id'])return;let {unitId:_0x18edc7,subUnitId:_0x3692e9,shapeId:_0x4e0172}=_0x488020[_0x510c53(0x17a)];_0x18edc7===this['_unitId']&&_0x3692e9===this['_subUnitId']&&_0x4e0172===this[_0x510c53(0x25d)]&&this['refreshAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x250)][_0x486d43(0x1a5)](_0x39004a=>{const _0x395274=_0x486d43;if(_0x39004a[_0x395274(0x27a)]===0x1){let _0xdb3048=_0x39004a[0x0];if(_0xdb3048[_0x395274(0x2b3)]===_0x161136[_0x395274(0x25c)]&&this[_0x395274(0xfe)]['getUnitType'](_0xdb3048[_0x395274(0x151)])===_0x2e857c[_0x395274(0x243)]){this['_activeShapeId']=_0xdb3048['drawingId'];let {unitId:_0x4a7e93,subUnitId:_0x180609}=_0xdb3048;this['_activeShapeAdjustPointList']=this[_0x395274(0x260)](_0x4a7e93,_0x180609,this[_0x395274(0x25d)]),this[_0x395274(0x1c5)]=_0x4a7e93,this[_0x395274(0x333)]=_0x180609,this[_0x395274(0x266)](),this['_createShapeAdjustControls']();return;}}this[_0x395274(0x25d)]=null,this[_0x395274(0x1e1)]=void 0x0,this[_0x395274(0x1c5)]=null,this[_0x395274(0x333)]=null,this['_clearShapeAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x22c)]['subscribe'](_0x240c9d=>{const _0x5e250c=_0x486d43;if(_0x240c9d[_0x5e250c(0x27a)]===0x1){var _0x263a6b;let _0x15a250=_0x240c9d[0x0];((_0x263a6b=this['_drawingManagerService']['getDrawingByParam'](_0x15a250))==null?void 0x0:_0x263a6b['drawingType'])===_0x161136[_0x5e250c(0x25c)]&&this[_0x5e250c(0x1cf)](!0x0);}})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x2c0)][_0x486d43(0x1a5)](_0x35999d=>{const _0x46d89a=_0x486d43;for(let _0x3e746c of _0x35999d)this[_0x46d89a(0x25d)]===_0x3e746c[_0x46d89a(0x2c2)]&&(this[_0x46d89a(0x25d)]=null,this[_0x46d89a(0x1e1)]=void 0x0,this[_0x46d89a(0x1c5)]=null,this[_0x46d89a(0x333)]=null,this[_0x46d89a(0x266)]());}));}};zn=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x396ece(Q)),X(0x4,_0x230412),X(0x5,_0x16d336)],zn);const Bn={'id':'drawing.operation.set-drawing-active','type':_0x4d8f21[_0x25219a(0x324)],'handler':(_0xacc691,_0xcc92b8)=>{const _0x2f4f2d=_0x25219a;let _0x4888c6=_0xacc691[_0x2f4f2d(0x23e)](_0x492363),_0x48b5e5=_0xacc691[_0x2f4f2d(0x23e)](_0x471989),_0x327e62=_0xacc691[_0x2f4f2d(0x23e)](zn);if(_0xcc92b8==null)return!0x0;if(_0xcc92b8['length']>0x0){var _0x37ec6a;let _0x3a2e30=(_0x37ec6a=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null?void 0x0:_0x37ec6a[_0x2f4f2d(0x19b)];if(_0x3a2e30){let {unitId:_0x2f31e9,subUnitId:_0x2a7dd5,drawingId:_0x4a7885}=_0xcc92b8[0x0],_0x51ba4e=_0x566164({'unitId':_0x2f31e9,'subUnitId':_0x2a7dd5,'drawingId':_0x4a7885},void 0x0),_0x39b993=_0x3a2e30[_0x2f4f2d(0x15b)](_0x51ba4e);if(_0x39b993){var _0x375ede;(_0x375ede=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null||(_0x375ede=_0x375ede[_0x2f4f2d(0x19b)][_0x2f4f2d(0x31e)]())==null||_0x375ede['activeAnObject'](_0x39b993);}}_0x4888c6[_0x2f4f2d(0x27f)](_0xcc92b8),_0x327e62[_0x2f4f2d(0x221)](!0x1);}return!0x0;}},Vn={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0x1ad),'handler':async(_0x1d0b81,_0x4f5ad3)=>{const _0x6f51e3=_0x25219a;let _0x38b10d=_0x4988bb(_0x1d0b81[_0x6f51e3(0x23e)](_0x230412));if(!_0x38b10d)return!0x1;let _0x445eae=_0x1d0b81['get'](_0x3bd43a)[_0x6f51e3(0x2dd)]();if(!_0x445eae)return!0x1;let _0x5a72fd=_0x1d0b81[_0x6f51e3(0x23e)](_0x16d336),{unitId:_0x302610,subUnitId:_0x308ac4}=_0x38b10d,{value:_0x1f23ca,enhanceParams:_0x489f15}=_0x4f5ad3,{range:_0x3f6348}=_0x445eae,_0x440ca4={'unitId':_0x302610,'subUnitId':_0x308ac4,'shapeType':_0x1f23ca,'range':_0x3f6348,'shapeId':_0x44c0e2()};if(_0x489f15){let _0x2b781d=_0x41a954(_0x1f23ca),_0xcc5336=_0x1f23ca===_0x6bfff9[_0x6f51e3(0x2dc)];_0x2b781d&&(_0x489f15[_0x6f51e3(0x2d0)]||_0x489f15['endArrow'])&&(_0x440ca4['shapeData']={'ln':{'startArrow':_0x489f15['startArrow']?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x1db)]}:void 0x0,'endArrow':_0x489f15[_0x6f51e3(0x13d)]?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x2bb)]}:void 0x0}}),_0xcc5336&&(_0x489f15['horizontal']||_0x489f15[_0x6f51e3(0x1ff)])&&(_0x440ca4[_0x6f51e3(0x2ae)]=_0x597125({'fill':{'fillType':_0x83e268[_0x6f51e3(0x304)],'color':'#FFFFFF'},'isHorizontal':!!_0x489f15[_0x6f51e3(0x241)],'stroke':{'lineStrokeType':_0x2401bc['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x416c2c=_0x5a72fd[_0x6f51e3(0x32c)](_0x3a08e6['id'],_0x440ca4);return setTimeout(()=>{const _0x4882fd=_0x6f51e3;_0x5a72fd['executeCommand'](Bn['id'],[{'unitId':_0x302610,'subUnitId':_0x308ac4,'drawingId':_0x440ca4[_0x4882fd(0x25a)]}]);},0xc8),_0x416c2c;}},Hn=_0x25219a(0x1ef),Un=_0x25219a(0xe8),Wn=_0x25219a(0x264),Gn=_0x5a685c(_0x25219a(0xe0)),Kn=_0x25219a(0x107),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x4d8f21[_0x25219a(0xe5)],'handler':(_0x1d9698,_0x3eb82f)=>{const _0x4a5d8b=_0x25219a;let _0x480494=_0x1d9698['get'](_0x54fc19),_0x4f0166=_0x1d9698[_0x4a5d8b(0x23e)](_0x404764),_0x2e4543=_0x1d9698[_0x4a5d8b(0x23e)](_0x230412),_0xe48b34=_0x1d9698[_0x4a5d8b(0x23e)](_0x16d336);return _0x4988bb(_0x2e4543)?(_0x3eb82f==null?void 0x0:_0x3eb82f[_0x4a5d8b(0x335)])===_0x4a5d8b(0xe9)?(_0x480494[_0x4a5d8b(0xe9)](Un),!0x0):(_0x480494[_0x4a5d8b(0x320)]({'id':Un,'header':{'title':_0x4f0166['t'](_0x4a5d8b(0x1c4))},'children':{'label':Un},'onClose':()=>{const _0x17c0e9=_0x4a5d8b;_0xe48b34[_0x17c0e9(0x32c)](_0x4688df['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x3ba2e2{constructor(_0x124cd2,_0x5713c5){const _0x5937ba=_0x25219a;super(),this[_0x5937ba(0x254)]=_0x124cd2,this['_drawingManagerService']=_0x5713c5,this['_registerImageShapeClipDelegate'](),this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x1)});}[_0x25219a(0x2b6)](){const _0x4bae8f=_0x25219a;let _0x16c547=this[_0x4bae8f(0x254)],_0xe7976d=new Map(),_0xd2e6a9=_0x16c547[_0x4bae8f(0x2fb)]((_0x15245c,_0x3b7187,_0x1cc7f8,_0x91a408,_0x252d34)=>{const _0x3d7f29=_0x4bae8f;let _0x48a105=_0x3b7187;if(_0x48a105===_0x6bfff9[_0x3d7f29(0x292)]||_0x3b7187===_0x3d7f29(0x2e3))return!0x1;try{let _0x2a9f3a=_0xe7976d[_0x3d7f29(0x23e)](_0x3b7187);return _0x2a9f3a||(_0x2a9f3a=new _0x57cb5b(_0x48a105,_0x3d7f29(0x24d)+_0x3b7187),_0xe7976d[_0x3d7f29(0x10e)](_0x3b7187,_0x2a9f3a)),_0x2a9f3a[_0x3d7f29(0x1c2)](),_0x252d34&&Object[_0x3d7f29(0x12f)](_0x252d34)[_0x3d7f29(0x27a)]>0x0&&_0x2a9f3a[_0x3d7f29(0x1e2)]({'adjustValues':_0x252d34},!0x0),_0x2a9f3a[_0x3d7f29(0x256)]({'width':_0x1cc7f8,'height':_0x91a408}),_0x2a9f3a[_0x3d7f29(0x128)](_0x15245c,{'left':0x0,'top':0x0,'width':_0x1cc7f8,'height':_0x91a408});}catch{return!0x1;}});this[_0x4bae8f(0x1b1)](_0xd2e6a9),this[_0x4bae8f(0x1b1)]({'dispose':()=>_0xe7976d[_0x4bae8f(0x1da)]()});}[_0x25219a(0x116)](_0x53f33b,_0x42a225,_0x54bf68,_0x10f6db,_0x25e551){const _0x5cd47e=_0x25219a;let _0x4ded3a=this[_0x5cd47e(0x284)][_0x5cd47e(0x296)](_0x53f33b,_0x42a225);if(!_0x4ded3a[_0x54bf68])return;let _0x16a3b1={..._0x4ded3a[_0x54bf68],'prstGeom':_0x10f6db,'adjustValues':_0x25e551};this[_0x5cd47e(0x284)][_0x5cd47e(0x339)]([_0x16a3b1]);}};Jn=Z([X(0x0,_0x396ece(_0x323084)),X(0x1,_0x396ece(_0x492363))],Jn);const Yn=_0x25219a(0x1b9),Xn=_0x25219a(0x328);function Zn({onShapeClick:_0x2ce148,excludeGroups:_0x5ebd92}){const _0x159d32=_0x25219a;return _0x5c23f7(_0x4d521e,{'excludeGroups':_0x5ebd92,'onShapeClick':_0x2ce148,'scrollContainer':_0x159d32(0x26b)});}function Qn(){const _0x40f21f=_0x25219a;let _0x10ca89=_0x456f39(_0x492363),_0xbf931e=_0x456f39(Jn);return _0x5c23f7(_0x28b0d3,{'buttonLabel':_0x40f21f(0x33d),'excludeGroups':[_0x27d7db[_0x40f21f(0x120)]],'onShapeClick':_0xbe2050=>{const _0x298d5a=_0x40f21f;let _0x552a5b=_0x10ca89['getFocusDrawings']()[_0x298d5a(0x24c)](_0xffdac9=>_0xffdac9[_0x298d5a(0x2b3)]===_0x161136[_0x298d5a(0xda)]);if(!_0x552a5b)return;let {unitId:_0x37ce76,subUnitId:_0x41726c,drawingId:_0x116d16}=_0x552a5b;_0xbf931e[_0x298d5a(0x116)](_0x37ce76,_0x41726c,_0x116d16,_0xbe2050[_0x298d5a(0x31a)]);}});}function $n(){const _0xdd37b8=_0x25219a;let _0x460df4=_0x456f39(_0x21a48b),_0x29ba9a=_0x456f39(_0x492363),_0x522874=_0x456f39(_0x230412),_0x3b1034=_0x29ba9a[_0xdd37b8(0x21a)]()[0x0],_0x293b94=_0x3b1034?_0x522874['getUnitType'](_0x3b1034[_0xdd37b8(0x151)]):void 0x0,_0x430043=_0x293b94===_0x2e857c[_0xdd37b8(0x1b7)]?'doc.image-clip.shape-picker.component':_0x293b94===_0x2e857c['UNIVER_SHEET']?Xn:void 0x0,_0x27f72b=_0x430043?_0x460df4[_0xdd37b8(0x23e)](_0x430043):void 0x0;return _0x27f72b?_0x5c23f7(_0x27f72b,{}):null;}function er(){let _0x2efa30=_0x456f39(_0x16d336);return _0x5c23f7(Zn,{'onShapeClick':_0x47a049=>{const _0x340bf3=_0x52a4;_0x2efa30[_0x340bf3(0x1a6)](Vn['id'],{'value':_0x47a049[_0x340bf3(0x31a)],'enhanceParams':{'endArrow':_0x47a049[_0x340bf3(0x13d)],'startArrow':_0x47a049[_0x340bf3(0x2d0)],'horizontal':_0x47a049['horizontal'],'vertical':_0x47a049[_0x340bf3(0x1ff)]}});}});}function tr(_0x5d17c0){const _0xc6cbc6=_0x25219a;let _0x5094bb=_0x5d17c0['get'](_0x230412);return{'id':Vn['id'],'type':_0x2aaa41[_0xc6cbc6(0x2c6)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x21923c(_0x5094bb,!0x1,()=>new _0x395a42(_0x21776d=>{const _0x53d7df=_0xc6cbc6;_0x21776d[_0x53d7df(0x32d)](!0x1);})),'hidden$':_0x315655(_0x5d17c0,_0x2e857c[_0xc6cbc6(0x243)]),'disabled$':_0x4a597a(_0x5d17c0)};}function nr(_0x4b66b9){const _0x85a82f=_0x25219a;let _0x303bbb=_0x4b66b9[_0x85a82f(0x23e)](_0x230412);return{'id':qn['id'],'type':_0x2aaa41[_0x85a82f(0x30b)],'icon':_0x85a82f(0xdc),'title':_0x85a82f(0xed),'tooltip':_0x85a82f(0xed),'activated$':_0x21923c(_0x303bbb,!0x1,()=>new _0x395a42(_0x590fc9=>{const _0x1f02d2=_0x85a82f;_0x590fc9[_0x1f02d2(0x32d)](!0x1);})),'hidden$':_0x315655(_0x4b66b9,_0x2e857c['UNIVER_SHEET']),'disabled$':_0x4a597a(_0x4b66b9)};}const rr='sheet.menu.shape.flip-horizontal',ir=_0x25219a(0x1de);function ar(_0x15b093){const _0x18d7b5=_0x25219a;let _0x56bde0=_0x15b093['get'](_0x492363)[_0x18d7b5(0x21a)]();return _0x56bde0[_0x18d7b5(0x27a)]===0x1&&_0x56bde0[0x0]['drawingType']===_0x161136[_0x18d7b5(0x25c)]?_0x56bde0[0x0]:null;}function or(_0x3f62da){const _0xbe47b=_0x25219a;let _0xcc3989=_0x3f62da[_0xbe47b(0x23e)](_0x492363);return _0xcc3989['focus$'][_0xbe47b(0x17c)](_0x4a164f(_0xcc3989[_0xbe47b(0x21a)]()),_0xaa4389(_0x416577=>_0x416577[_0xbe47b(0x27a)]!==0x1||_0x416577[0x0][_0xbe47b(0x2b3)]!==_0x161136[_0xbe47b(0x25c)]));}function sr(_0x515c42){const _0x57831c=_0x25219a;return{'id':rr,'commandId':_0x5ab636['id'],'type':_0x2aaa41['BUTTON'],'title':_0x57831c(0x194),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x57831c(0x10c),'hidden$':or(_0x515c42),'params':()=>{const _0x3ce701=_0x57831c;let _0x42976f=ar(_0x515c42);return _0x42976f?{'unitId':_0x42976f[_0x3ce701(0x151)],'subUnitId':_0x42976f['subUnitId'],'shapeId':_0x42976f[_0x3ce701(0x2c2)],'flipH':!0x0}:void 0x0;}};}function cr(_0x313608){const _0x376398=_0x25219a;return{'id':ir,'commandId':_0x5ab636['id'],'type':_0x2aaa41[_0x376398(0x30b)],'title':'sheets-shape-ui.flipVertical','tooltip':_0x376398(0x301),'icon':_0x376398(0x169),'hidden$':or(_0x313608),'params':()=>{const _0x380cfa=_0x376398;let _0xe29fd5=ar(_0x313608);return _0xe29fd5?{'unitId':_0xe29fd5['unitId'],'subUnitId':_0xe29fd5[_0x380cfa(0x21f)],'shapeId':_0xe29fd5[_0x380cfa(0x2c2)],'flipV':!0x0}:void 0x0;}};}const lr={[_0x3c626a[_0x25219a(0x2f9)]]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x3c626a[_0x25219a(0x1d1)]]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x34d07a[_0x25219a(0x211)]]:{[_0x9e0dc8[_0x25219a(0x1d1)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0x25219a(0x1dc),dr=_0x25219a(0x1e5);const fr={'type':_0x4d8f21[_0x25219a(0x324)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0x4d8f21[_0x25219a(0x324)],'id':_0x25219a(0xf6),'handler'(){return!0x0;}},mr={};function hr(_0x26550f){const _0x425823=_0x25219a;return _0x26550f[_0x425823(0x1ec)]()||void 0x0;}function gr(_0x57aa54,_0x7a70e4,_0x5d8d55){const _0x31d894=_0x25219a;var _0x250693;return((_0x250693=_0x57aa54[_0x31d894(0x32e)])==null?void 0x0:_0x250693[_0x31d894(0x1ec)]())||_0x5a3cf6(_0x5d8d55,_0x242d11(_0x57aa54[_0x31d894(0x2b3)]))+'\x20'+(_0x7a70e4+0x1);}function _r(){const _0x3f8fe8=_0x25219a;var _0x225c20;let _0x14c5b2=_0x456f39(_0x404764),_0xb9c435=_0x456f39(_0x16d336),_0x58acaf=_0x456f39(_0x230412),_0x1e612d=_0x456f39(_0x18f6a9),_0x225189=_0x456f39(_0x492363),_0x11d716=_0x456f39(_0x471989),[,_0x271748]=_0x3fe30a(_0x26ac03=>_0x26ac03+0x1,0x0),_0x472a42=_0x58acaf[_0x3f8fe8(0x228)](_0x2e857c[_0x3f8fe8(0x243)]),_0x32657d=(_0x472a42==null?void 0x0:_0x472a42[_0x3f8fe8(0x1cd)]())??'',_0x20251c=(_0x472a42==null||(_0x225c20=_0x472a42[_0x3f8fe8(0x18d)]())==null?void 0x0:_0x225c20[_0x3f8fe8(0x191)]())??'',_0x41ca6b=_0x2cc2b9(()=>_0x225189[_0x3f8fe8(0x250)],_0x225189[_0x3f8fe8(0x21a)](),!0x1,[_0x225189]);_0x329c92(()=>{const _0x473b59=_0x3f8fe8;let _0x5b8c9c=_0xb9c435[_0x473b59(0x24a)](()=>_0x271748());return()=>_0x5b8c9c[_0x473b59(0x259)]();},[_0xb9c435]);let _0x1c4bf3=_0x4a6e48(()=>_0x5d1b79(_0x14c5b2),[_0x14c5b2]),_0x9b907e=_0x32657d&&_0x20251c?_0x1e612d[_0x3f8fe8(0x296)](_0x32657d,_0x20251c):{},_0x303e91=(_0x32657d&&_0x20251c?_0x1e612d['getDrawingOrder'](_0x32657d,_0x20251c):[])[_0x3f8fe8(0x111)](_0x52a4d0=>_0x9b907e[_0x52a4d0])[_0x3f8fe8(0x291)](_0x1a6ec7=>!!_0x1a6ec7)[_0x3f8fe8(0x20f)](),_0x13839d=_0x303e91[_0x3f8fe8(0x1b0)]((_0x183aa5,_0x5e1fa7)=>(_0x183aa5[_0x3a38fa(_0x5e1fa7[_0x3f8fe8(0x2b3)])]+=0x1,_0x183aa5),{'canvas':0x0,'floating':0x0}),_0x4dc99b={'canvas':0x0,'floating':0x0},_0x2c0bc4=_0x303e91['map']((_0x500874,_0x2143e1)=>{const _0x481a4e=_0x3f8fe8;let _0x11ff7a=_0x3a38fa(_0x500874[_0x481a4e(0x2b3)]),_0x4f10bb=_0x11ff7a===_0x480b8f,_0x20372c=_0x4dc99b[_0x11ff7a]++;return{'id':_0x500874['drawingId'],'name':gr(_0x500874,_0x2143e1,_0x14c5b2),'description':_0x500874[_0x481a4e(0x29f)],'visible':_0x500874[_0x481a4e(0x160)]!==!0x0,'selectable':_0x500874[_0x481a4e(0x2ce)]!==!0x1,'sectionId':_0x11ff7a,'sectionTitle':_0x4f10bb?_0x1c4bf3['sectionFloating']:_0x1c4bf3[_0x481a4e(0x19e)],'capabilities':_0x4f10bb?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x4f10bb&&_0x20372c>0x0,'canMoveBackward':!_0x4f10bb&&_0x20372c<_0x13839d[_0x481a4e(0x208)]-0x1,'canReorder':!_0x4f10bb};}),_0x5b06ba=_0x4a6e48(()=>(_0x41ca6b??[])[_0x3f8fe8(0x291)](_0x5c6e9d=>_0x5c6e9d[_0x3f8fe8(0x151)]===_0x32657d&&_0x5c6e9d[_0x3f8fe8(0x21f)]===_0x20251c)[_0x3f8fe8(0x111)](_0x35e709=>_0x35e709['drawingId']),[_0x41ca6b,_0x20251c,_0x32657d]),_0x4b083e=_0x5b06ba[_0x5b06ba[_0x3f8fe8(0x27a)]-0x1]??null,_0x413271=_0x16c964=>_0x1e612d[_0x3f8fe8(0x30c)]({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x16c964})??null,_0x3f170b=async _0x42ec8f=>{const _0x13e5d7=_0x3f8fe8;!_0x32657d||!_0x42ec8f[_0x13e5d7(0x27a)]||await _0xb9c435[_0x13e5d7(0x1a6)](_0x22957d['id'],{'unitId':_0x32657d,'drawings':_0x42ec8f});},_0x5241b5=async(_0x4a1b83,_0x4cb85f)=>{_0x413271(_0x4a1b83)&&await _0x3f170b([{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x4a1b83,..._0x4cb85f}]);},_0x4585db=(_0x51bc9c,_0x1e2a9b)=>{const _0x367ddf=_0x3f8fe8;if(!_0x32657d||!_0x20251c)return;let _0x3712d7=_0x1e2a9b?_0x5b06ba[_0x367ddf(0x2b1)](_0x51bc9c)?_0x5b06ba['filter'](_0x448931=>_0x448931!==_0x51bc9c):[..._0x5b06ba,_0x51bc9c]:[_0x51bc9c];_0xb9c435[_0x367ddf(0x32c)](_0x4688df['id'],_0x3712d7['map'](_0x272337=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x272337})));let _0x135f08=_0x3712d7[_0x3712d7[_0x367ddf(0x27a)]-0x1];_0x135f08?_0xbe39a(_0x11d716,{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x135f08}):_0x397c5e(_0x11d716,_0x32657d);},_0x2f28d8=async(_0x1fdb2a,_0x3d1c41)=>{const _0xe25b87=_0x3f8fe8;await _0x3f170b(_0x1fdb2a['map'](_0xb5c4e9=>_0x413271(_0xb5c4e9))[_0xe25b87(0x291)](_0x4e99a7=>!!_0x4e99a7)[_0xe25b87(0x291)](_0x380f19=>_0x380f19[_0xe25b87(0x160)]!==!0x0!==_0x3d1c41)[_0xe25b87(0x111)](_0x370d5f=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x370d5f[_0xe25b87(0x2c2)],'hidden':!_0x3d1c41})));},_0x5e8ea4=async _0x484577=>{const _0x37628a=_0x3f8fe8;let _0x47cf01=_0x413271(_0x484577);_0x47cf01&&await _0x5241b5(_0x484577,{'selectable':_0x47cf01[_0x37628a(0x2ce)]===!0x1&&void 0x0});},_0x29e284=async(_0x269e9e,_0x462e86)=>{const _0x3e3efc=_0x3f8fe8;var _0x384cad;let _0x1cacf0=hr(_0x462e86);(((_0x384cad=_0x413271(_0x269e9e))==null?void 0x0:_0x384cad[_0x3e3efc(0x32e)])??void 0x0)!==_0x1cacf0&&await _0x5241b5(_0x269e9e,{'name':_0x1cacf0});},_0x2d92c5=async(_0x298078,_0x195561)=>{const _0x48e8d9=_0x3f8fe8;var _0x5f3a38;let _0x8f1869=hr(_0x195561);(((_0x5f3a38=_0x413271(_0x298078))==null?void 0x0:_0x5f3a38[_0x48e8d9(0x29f)])??void 0x0)!==_0x8f1869&&await _0x5241b5(_0x298078,{'description':_0x8f1869});},_0x5588b7=async(_0x100efd,_0x45128d)=>{const _0x902903=_0x3f8fe8;!_0x32657d||!_0x20251c||await _0xb9c435[_0x902903(0x1a6)](_0x5f552c['id'],{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingIds':[_0x100efd],'arrangeType':_0x45128d});};return!_0x32657d||!_0x20251c?_0x5c23f7(_0x3f8fe8(0x23f),{'className':_0x3f8fe8(0x1a2),'children':_0x1c4bf3[_0x3f8fe8(0x222)]}):_0x5c23f7(_0x29b70f,{'items':_0x2c0bc4,'selectedIds':_0x5b06ba,'focusedId':_0x4b083e,'labels':_0x1c4bf3,'onSelect':_0x4585db,'onSetVisible':_0x2f28d8,'onCommitName':_0x29e284,'onCommitDescription':_0x2d92c5,'onMoveForward':async _0x58d0b8=>_0x5588b7(_0x58d0b8,_0x59b698[_0x3f8fe8(0x12c)]),'onMoveBackward':async _0x5a8e9c=>_0x5588b7(_0x5a8e9c,_0x59b698[_0x3f8fe8(0x2f4)]),'onToggleSelectable':_0x5e8ea4});}let vr=class{constructor(_0x56c910){const _0x4ff471=_0x25219a;this[_0x4ff471(0x145)]=_0x56c910;}[_0x25219a(0x10d)](_0x2dfaea,_0x5deebe){const _0x4a93e8=_0x25219a;let _0x3330ec=this[_0x4a93e8(0x145)][_0x4a93e8(0x1dd)](_0x2dfaea[_0x4a93e8(0x151)]),_0x10ad75=_0x3330ec==null?void 0x0:_0x3330ec[_0x4a93e8(0x19b)];if(!_0x10ad75)return;let _0x171ad0=_0x566164(_0x2dfaea),_0xdcf40f=_0x10ad75[_0x4a93e8(0x15b)](_0x171ad0);_0xdcf40f==null||_0xdcf40f[_0x4a93e8(0x1d2)](_0x5deebe);}};vr=Z([X(0x0,_0x471989)],vr);function yr(){const _0x53b66c=_0x25219a;let _0x4c98b5=_0x456f39(_0x492363),_0x4164cf=_0x2cc2b9(()=>_0x4c98b5[_0x53b66c(0x250)],_0x4c98b5['getFocusDrawings'](),!0x1,[_0x4c98b5]);return _0x4164cf[_0x53b66c(0x27a)]===0x0?null:_0x5c23f7(_0x53b66c(0x23f),{'children':_0x57d5e2(_0x53b66c(0x23f),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[_0x5c23f7(_0x2f24d8,{'drawings':_0x4164cf,'hasCropper':!0x1}),_0x5c23f7(_0x2bf2cb,{'drawings':_0x4164cf})]})});}function br(_0x369b8f){let {unitId:_0x2a0be5,subUnitId:_0x260c5c,shapeId:_0x36d596}=_0x369b8f,_0x23b581=_0x456f39(_0x16d336),_0x90fff3=_0x456f39(vr);return _0x5c23f7(_0x5a7a6a,{..._0x369b8f,'positionEditor':_0x5c23f7(yr,{}),'onUpdateShapeData':(_0x937634,_0x1ac849)=>{jn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x937634,_0x1ac849);},'onUpdateLineShapeData':(_0x505632,_0x50686a)=>{Mn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x505632,_0x50686a);},'onUpdateShapeFillImage':_0x289d8c=>{const _0x2b42a5=_0x52a4;_0x90fff3[_0x2b42a5(0x10d)]({'unitId':_0x2a0be5,'subUnitId':_0x260c5c,'drawingId':_0x36d596},_0x289d8c);}});}function xr(_0x5a5028){const _0x4ebf42=_0x25219a;let _0x4c88f7=_0x5a5028[_0x4ebf42(0x25b)][_0x4ebf42(0x2db)];return _0x4c88f7?_0x5c23f7(Sr,{..._0x4c88f7}):null;}function Sr(_0x1daddf){const _0x3fee26=_0x25219a;let _0x2c8a6a=_0x456f39(_0x16d336),_0x1f3e3d=_0x456f39(_0x6985f7),{unitId:_0x3f0100,subUnitId:_0x3e0784,drawingId:_0x153b7b,drawingType:_0x2b6877,shapeType:_0x2f873b}=_0x1daddf,[_0x16dede,_0xdd1ba5]=_0x2793a8(_0x1daddf[_0x3fee26(0x2ae)]),_0x66991d=_0x4a6e48(()=>_0x5eb25a(_0x16dede),[_0x16dede]),_0x144659=_0x4a6e48(()=>_0x68e79b(_0x16dede),[_0x16dede]);_0x329c92(()=>{const _0x1ffaeb=_0x3fee26;let _0x252885=_0x2c8a6a[_0x1ffaeb(0x24a)](_0x491349=>{if(_0x491349['id']!==_0x46a98e['id'])return;let _0x1d8f06=_0x1f3e3d['getShapeDataById'](_0x3f0100,_0x3e0784,_0x153b7b);_0x1d8f06&&_0xdd1ba5(_0x1d8f06);});return()=>_0x252885[_0x1ffaeb(0x259)]();},[_0x2c8a6a,_0x153b7b,_0x1f3e3d,_0x3e0784,_0x3f0100]);let _0x16cebb=_0x4b3de3=>{_0xdd1ba5(_0x4c0c79=>({..._0x4c0c79,..._0x4b3de3}));},_0x24b03a=_0x204c4e=>{let _0x29a33d=_0x537773(_0x16dede,_0x204c4e);jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'shapeText':_0x16dede['shapeText']}},_0x29a33d),_0x16cebb(_0x29a33d);},_0x1af668=_0x2ca04c({'hostType':_0x2e857c[_0x3fee26(0x243)],'unitId':_0x3f0100,'subUnitId':_0x3e0784,'shapeId':_0x153b7b,'shapeData':_0x16dede,'onUpdateBinding':_0x35262d=>{const _0x1a9c1f=_0x3fee26;let _0x4d3ae2={'formulaBinding':_0x35262d};jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'formulaBinding':_0x16dede[_0x1a9c1f(0x1c6)]}},_0x4d3ae2),_0x16cebb(_0x4d3ae2);}});return _0x57d5e2(_0x1c48da,{'children':[_0x5c23f7(_0x472902,{'shapeData':_0x16dede,'shapeType':_0x2f873b,'textStyle':{'ff':_0x373ebe[_0x3fee26(0x102)]['fontFamily'],'fs':_0x373ebe[_0x3fee26(0x102)][_0x3fee26(0x213)],'cl':{'rgb':_0x373ebe['shapeText'][_0x3fee26(0x237)]},..._0x66991d},'textModel':_0x144659?{'ha':_0x144659['ha']??_0x365b63[_0x3fee26(0x215)],'va':_0x144659['va']??_0x2c7292['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x373ebe[_0x3fee26(0x233)],'defaultGradientEndColor':_0x373ebe[_0x3fee26(0x1c1)],'defaultStrokeColor':_0x373ebe[_0x3fee26(0x101)],'extensionGroups':_0x1af668[_0x3fee26(0x171)],'onUpdateShapeData':(_0x3fe33b,_0x44fe7f)=>{jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,_0x3fe33b,_0x44fe7f),_0x44fe7f&&_0x16cebb(_0x44fe7f);},'onUpdateText':_0x24b03a,'onOpenPanel':()=>{const _0x455bcb=_0x3fee26;_0x2c8a6a[_0x455bcb(0x1a6)](pr['id'],{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b});},'onDelete':()=>{const _0x4f18d1=_0x3fee26;_0x2c8a6a[_0x4f18d1(0x1a6)](_0x251e45['id'],{'unitId':_0x3f0100,'drawings':[{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b,'drawingType':_0x2b6877}]});}}),_0x1af668[_0x3fee26(0xe1)]]});}var Cr=class extends _0x3ba2e2{constructor(..._0x474db1){const _0x57a417=_0x25219a;super(..._0x474db1),Y(this,'_editingParams$',new _0x5935cd(null)),Y(this,'editingParams$',this[_0x57a417(0x219)][_0x57a417(0x2a9)]()),Y(this,'_onSavingEditorData$',new _0x5935cd(!0x1)),Y(this,_0x57a417(0x2fe),this['_onSavingEditorData$']['asObservable']());}[_0x25219a(0x259)](){const _0xee9b89=_0x25219a;this['_editingParams$'][_0xee9b89(0x32d)](null),this['_editingParams$'][_0xee9b89(0x139)](),this['_onSavingEditorData$'][_0xee9b89(0x32d)](!0x1),this['_onSavingEditorData$'][_0xee9b89(0x139)](),super[_0xee9b89(0x259)]();}['setEditing'](_0x38a5e1){const _0x4d36c0=_0x25219a;this[_0x4d36c0(0x219)][_0x4d36c0(0x32d)](_0x38a5e1),_0x38a5e1??this[_0x4d36c0(0x16a)]['next'](!0x1);}[_0x25219a(0x108)](_0xe32fb9){const _0x1b1541=_0x25219a;this['_onSavingEditorData$'][_0x1b1541(0x32d)](_0xe32fb9);}[_0x25219a(0x1d8)](){const _0x100c17=_0x25219a;return this['_editingParams$'][_0x100c17(0x2da)]();}[_0x25219a(0x28e)](_0x39905f){const _0x4aa94c=_0x25219a;this[_0x4aa94c(0x1d8)]()&&(this[_0x4aa94c(0x108)](!0x0),requestAnimationFrame(()=>{const _0x4c95ad=_0x4aa94c;this[_0x4c95ad(0x2cd)](null);}));}[_0x25219a(0x130)](){const _0x7559b9=_0x25219a;this[_0x7559b9(0x1d8)]()&&this[_0x7559b9(0x2cd)](null);}};const wr=_0x1b8447(()=>{const _0x5b732=_0x25219a;let _0x7c7d52=_0x456f39(Cr),_0x9a8c59=_0x456f39(_0x6985f7),_0x28d913=_0x456f39(_0x492363),_0xfef68e=_0x456f39(_0x16d336),_0x4d68c5=_0x456f39(_0x471989);return _0x5c23f7(_0x425f99,{'adapter':_0x4a6e48(()=>({'getShapeModel':(_0x221fb8,_0x57f48e,_0x5c8704)=>_0x9a8c59['getShapeModel'](_0x221fb8,_0x57f48e,_0x5c8704),'getShapeData':(_0x3fc70e,_0x2c6bed,_0x551659)=>_0x9a8c59[_0x5b732(0x137)](_0x3fc70e,_0x2c6bed,_0x551659),'getDrawingTransform':(_0x4e1213,_0x544dd9,_0x52c4c3)=>{const _0x96779a=_0x5b732;let _0x10677a=_0x28d913[_0x96779a(0x30c)]({'unitId':_0x4e1213,'subUnitId':_0x544dd9,'drawingId':_0x52c4c3});return _0x10677a==null?void 0x0:_0x10677a[_0x96779a(0x298)];},'updateShapeText':({unitId:_0x214697,subUnitId:_0xf95011,shapeId:_0x3c8407,shapeText:_0x2f4e19,oldShapeText:_0xad9658})=>{_0xfef68e['executeCommand'](An['id'],{'unitId':_0x214697,'subUnitId':_0xf95011,'shapeId':_0x3c8407,'shapeData':{'shapeText':_0x2f4e19},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xad9658}}});},'updateHostSize':({unitId:_0x5564ec,subUnitId:_0x532a1e,shapeId:_0x3d03c7,width:_0x2406b1,height:_0x4ce79f})=>{const _0x4c1862=_0x5b732;var _0x5f3e62;let _0x2859d4=_0x28d913[_0x4c1862(0x30c)]({'unitId':_0x5564ec,'subUnitId':_0x532a1e,'drawingId':_0x3d03c7}),_0x2d0d69=_0x2859d4==null?void 0x0:_0x2859d4['transform'];if(!_0x2859d4||!_0x2d0d69)return;let _0x1c7f66={..._0x2d0d69,'width':_0x2406b1,'height':_0x4ce79f},_0x1a4a20=(_0x5f3e62=_0x4d68c5[_0x4c1862(0x1dd)](_0x5564ec))==null||(_0x5f3e62=_0x5f3e62[_0x4c1862(0xe3)](_0x319c9a)['getSkeletonParam'](_0x532a1e))==null?void 0x0:_0x5f3e62[_0x4c1862(0x206)],_0x672f58=_0x1a4a20?_0x2b6fe(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x2a1)]:_0x2859d4[_0x4c1862(0x2a1)],_0x3d5242=_0x1a4a20?_0x1cbaab(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x28d)]:_0x2859d4[_0x4c1862(0x28d)];_0xfef68e['executeCommand'](_0x22957d['id'],{'unitId':_0x5564ec,'drawings':[{..._0x2859d4,'transform':_0x1c7f66,'sheetTransform':_0x672f58,'axisAlignSheetTransform':_0x3d5242}]});},'allowHostSizeShrink':({unitId:_0xba2141,subUnitId:_0x1f4b08,shapeId:_0x4397f1})=>_0x26e8db(_0x9a8c59[_0x5b732(0x137)](_0xba2141,_0x1f4b08,_0x4397f1))}),[_0xfef68e,_0x28d913,_0x4d68c5,_0x9a8c59]),'editingService':_0x7c7d52,'editorUnitId':Gn,'positionOptions':_0x4a6e48(()=>({'viewportKeys':{'main':_0x3ce6e8[_0x5b732(0x302)],'leftTop':_0x3ce6e8[_0x5b732(0x33b)],'top':_0x3ce6e8[_0x5b732(0x26c)],'left':_0x3ce6e8[_0x5b732(0x13c)]},'getSkeleton':(_0x59ac51,_0x59dc3e)=>{const _0x4ac485=_0x5b732;var _0xf4ff0f;return((_0xf4ff0f=_0x59ac51[_0x4ac485(0xe3)](_0x319c9a)[_0x4ac485(0x212)](_0x59dc3e['subUnitId']))==null?void 0x0:_0xf4ff0f['skeleton'])??null;}}),[])});});let Tr=class extends _0x3ba2e2{constructor(_0x3d45c0,_0x4ff01f){const _0xc2b9e4=_0x25219a;super(),this[_0xc2b9e4(0x153)]=_0x3d45c0,this['_iconManager']=_0x4ff01f,this[_0xc2b9e4(0x2f5)](),this[_0xc2b9e4(0x31f)]();}[_0x25219a(0x2f5)](){const _0x53f179=_0x25219a;this[_0x53f179(0x2bd)]['has'](_0x53f179(0xdc))||this[_0x53f179(0x1b1)](this['_iconManager'][_0x53f179(0x207)]({'ObjectLayersIcon':_0x2f5e4b})),this['_iconManager'][_0x53f179(0x135)](_0x53f179(0x10c))||this[_0x53f179(0x1b1)](this[_0x53f179(0x2bd)][_0x53f179(0x207)]({'FlipHorizontalIcon':_0x600924})),this[_0x53f179(0x2bd)][_0x53f179(0x135)](_0x53f179(0x169))||this[_0x53f179(0x1b1)](this['_iconManager']['register']({'FlipVerticalIcon':_0x9a7643}));}['_registerComponents'](){const _0x4fc160=_0x25219a;this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)]['register'](Hn,br)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](Un,_r)),this['disposeWithMe'](this['_componentManager'][_0x4fc160(0x207)](Yn,er)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Xn,Qn)),this['_componentManager'][_0x4fc160(0x23e)](_0x145ec1)||this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x145ec1,$n)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Wn,xr)),this['disposeWithMe'](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Kn,_0x34b768)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x4fc160(0x267),wr));}};Tr=Z([X(0x0,_0x396ece(_0x21a48b)),X(0x1,_0x396ece(_0x15a7ad))],Tr);function _0x5f35(){const _0x7e036e=['formulaPresentation','initShapePopupMenu','remove$','clearControl$','drawingId','animationEnabled','_getDrawingRect','getShapeTextRect','SELECTOR','_clearPopups','getShapeTextData','_disposePopups','isRender','pluginName','_commandService','setEditing','selectable','setAdjustValueByName','startArrow','pushUndoRedo','getConnectionInfo','_shapeFormulaService','_index','sqrt','order','cxnPointStroke','_initCopyPaste','_sheetInterceptorService','getValue','extraProps','Rect','getCurrentLastSelection','connector-handler-','_configService','_isStartAdjusting','clearAdjustControls','_urlImageService','custom','srcRect','getDrawingEffectBounds','_drawRichText','PRINTING_COMPONENT_COLLECT','setFormulaPresentation','setHighlighted','getAdjustNames','attachPopupToObject','_sheetBasicShapeConnectionPointController','_baseShapeWidth','copyType','_isDrawingShapePointDown','onDblclick$','_baseWidth','onReady','draw','backward','_registerIcons','setShapeProps','_drawSimpleText','cxnIndex','MEDIA','getBentTypeFromPoints','registerClipDelegate','onPointerUp$','12TrePDB','onSavingEditorData$','changeShapeType','_activeImageId','sheets-shape-ui.flipVertical','VIEW_MAIN','startY','SolidFill','setPrstGeomAdjValues','_initEditingParams','getBatchAddOp','_connectionSiteObjects','_updateTransform','worldPoint','BUTTON','getDrawingByParam','_hasReset','_commandExecutedListener','_shapeTextEditingService','getZoomRatio','create','INSERT','changeEnd$','_getScrollInfo','_registerMoveHandler','_context','applyPoint','CROSSHAIR','_executeConnectedRouteConnectionCommand','type','shape-text-','scale','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getTransformer','_registerComponents','open','object','5918lJsOOl','UPDATE','OPERATION','editingParams$','52661EtVAdQ','stringify','sheet.image-clip.shape-picker.component','_sheetDrawingService','CUT','renderDrawingShape','syncExecuteCommand','next','name','size','getSheetBySheetId','_handleConnectorPointerUp','_handleBasicShapeUpdateConnectorLineShape','_subUnitId','5360223PvMkWA','value','parse','getDrawingOrder','_isConnecting','featurePluginUpdateNotification','resize','VIEW_MAIN_LEFT_TOP','_resetState','sheets-shape-ui.imagePanel.crop.shape','clip','_formulaAnimation','add$','permissionCheckWithoutRange','_drawRichTextLayer','2885UKumCy','adjustValues','_isImagePointerDown','interceptor','DRAWING_IMAGE','_clearConnectionSites','ObjectLayersIcon','calculate','getCurrentSkeleton','_lastEditingShapeKey','SHAPE_TEXT','panel','normal','with','image-clip-adjust-point-','COMMAND','addObject','_applyFormulaAutoFitSize','sheet.shape.object-list.panel','close','setSrcRect','11qHPtDr','SHAPE','sheets-shape-ui.objectListPanel.open','rotation','restore','packageName','_handleFreeEndpointMove','refreshFormulaPresentation','_transform','sheet.command.update-shape-data','_baseShapeHeight','sheet.operation.open-sheet-shape-format-panel','symbol','endConnectionDetection','_highlightedSiteIndex','enableObjectsEvent','setCursor','push','transformByState','_univerInstanceService','_initSheetChange','getBasicShapeRelation','stroke','shapeText','_insertShapes','_sidebarService','_handleFreeEndpointPointerUp','clip-adj-','sheet.shape.text.float-menu','setOnSavingEditorData','_executeResizeCommand','start','refreshAdjustControls','FlipHorizontalIcon','updateShapeFillImage','set','setCanUseShapeClip','isRenderLinePointsMode','map','_setTransForm','actualHeight','offsetY','contentVerticalOffset','clipByShape','_getConnectionSiteAngle','clipTop','add','sheets-shape-ui.permission.editErr','prstGeom','disableShapeOption','setPresentation','getUnit','width','Line','addClipboardHook','highlighted','createControl$','_sheetsShapeService','isDrawingObject','updateConnectionDetection','getImage','buildClipPath','prototype','PictureFill','getDrawingOKey','forward','attachTransformerTo','#1a73e8','keys','cancelEditing','onPointerMove$','_registerDrawingFocusChangeHandler','slice','_loadShapePictureFill','has','cxnPointStrokeWidth','getShapeDataById','worldRect','complete','unregister','isHighlighted','VIEW_MAIN_LEFT','endArrow','_shapeId','doc','_currentUniverService','DEFAULT_PASTE','_config','_baseShapeTop','resetCursor','_renderManagerService','_formulaKey','648ESKvOp','_insertingShapeKeys','startConnectionDetection','getBatchUpdateOp','_imageIoService','call','_clearShapeConnectorHandlerObjects','presentationChanged$','getAllUnitsForType','blockExecuteWithoutPermission','unitId','_groupCopyPasteController','_componentManager','makeDirty','changing$','_executeConnectionCommand','_addShapeConnectorHandlerObject','getCurrentScrollState','_baseTop','unsubscribe','getObjectIncludeInGroup','multiply','setConfig','_getShapeInfo','_loadAndSetImage','hidden','oKey','forEach','_imageShapeClipController','debounceRefreshControls','_currentConnectionTarget','_createShapeAdjustControls','32333743vszyfm','_drawingAddListener','FlipVerticalIcon','_onSavingEditorData$','_adjHandlerPointerUp','_activeShapeModel','localToWorld','getShapeType','adjHandleStroke','point','extensionGroups','_getSceneAndTransformerByDrawingSearch','save','rect','getConnectorLinePoints','invert','dataModel','fillType','_baseShapeLeft','params','transformForAngle','pipe','objects','pick','shapeKey','calcAdjValues','fillImageSource','iterator','_draw','_attachConnectorObjectEvent','_drawShapeText','_updateImageAdjValues','_updateAdjustControlPositions','disableObjectsEvent','addImageSourceCache','translateWithPrecision','onTransformChange$','sheetViewStartColumn','getActiveSheet','onPointerDown$','abs','function','getSheetId','getDrawingDataForUnit','stopPropagation','sheets-shape-ui.flipHorizontal','_renderWithCache','_disposed','_updateSrcRectByTransform','getDrawingSearch','_addShapeAdjustControl','_rerouteConnectorLine','scene','prstGeomAdjValues','_sidebarDisposable','sectionCanvas','getAdjustValueByName','translate','16nEVEOE','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','flipY','_getOrCreateShapeModel','subscribe','executeCommand','fillImageSourceType','clone','_sheetShapeAdjustController','_getZoomRatio','subscribeEvent','getCurrentTypeOfUnit$','sheet.command.menu-insert-shape','adjName','_initSelection','reduce','disposeWithMe','worldPoints','1352140NUJlFc','_findNearestConnectionSite','_adjName','_sheetSkeletonService','UNIVER_DOC','_shapeRenderController','sheet.shape.picker.component','getAutoFitPresentations','_connectorObjects','getAdjustInfoByName','_calculateFreeEndpointAngle','_isHighlighted','adjHandleSize','visible','gradientEndColor','clearAdjustValue','_currentScene','sheets-shape-ui.objectListPanel.title','_unitId','formulaBinding','shapeType','values','isHitLine','resourceCollector','_reset','sheetViewStartRow','getUnitId','wrapStrategy','_updateShapeAdjustControls','clipHeight','OTHERS','setFillImage','delete','getRealBound','_isOpenedShapeEditPanel','getImageSourceCache','getStartConnectInfo','getEditing','_getShapeAdjustInfosById','clear','Medium','@univerjs-pro/sheets-shape-ui','getRenderUnitById','sheet.menu.shape.flip-vertical','removeLinePoints','_generatePasteMutations','_activeShapeAdjustPointList','setShapeData','_isStartConnectorPoint','intercept','1.0.0-beta.0','isRichText','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','top','_contextService','cxnPointRadius','getState','trim','_handleConnectedEndpointMove','sheets-shape-ui','sheet.shape.edit.panel','_localeService','_openShapeEditPanel','_initializedShapePopupMenu','setPrstGeom','getShapeModel','REMOVE','isInGroup','computeStraightConnectorLayout','getSelectedObjectMap','isHorizontal','getScene','_focusedDrawings','sin','GROUP','_activeAdjustPointList','vertical','_initPermission','getConnectionSiteList','constructor','_drawingType','_closeShapeEditPanel','_cxtHandlerPointerUp','skeleton','register','canvas','_transformCalculateSrcRect','indexOf','onload','ancestorTransform','contentHeight','registerFeaturePasteHook','reverse','_addShapeConnectorHandlerObjects','DRAWING','getSkeletonParam','fontSize','cos','LEFT','string','getActualSize','getShapeTypeById','_editingParams$','getFocusDrawings','124239pSjLpK','_init','onRendered','onerror','subUnitId','shape-adjust-point-','setShouldShowAdjust','title','_cxnIndex','decorate','_showConnectionSites','_sheetCanvasPopManagerService','_registerOperations','getCurrentUnitOfType','text','updateLinePoints','_isShouldShowDrawingShapeAdjust','update$','getSkeleton','_menuManagerService','_adjHandlerPointerMove','drawWith','_registerDrawingMoveHandler','_sheetClipboardService','fill','image','registerRenderModule','_sheetPrintInterceptorService','color','adjHandleFill','_targetShapeId','_executeConnectedRouteResizeCommand','getShapeData','_activeAdjustInfo','undo','get','div','getInterceptPoints','horizontal','left','UNIVER_SHEET','_initEvents','18HAmDXV','marginTop','_baseDrawingRect','_clearControls','interceptCommand','onCommandExecuted','viewportScrollY','find','clip-','version','getBatchRemoveOp','focus$','defineProperty','_getImagePrstGeom','getTransformerByCreate','_clipService','changeStart$','updateContext','_findShapeAtPoint','getMatrix','dispose','shapeId','popup','DRAWING_SHAPE','_activeShapeId','StraightConnector1','setContextValue','_getShapeAdjustPointListById','ang','_shapeService','activeSheet$','sheet.shape.floating-toolbar','from','_clearShapeAdjustControls','SheetShapeTextEditorContainer','_copyInfo','startX','_sheetDrawingShapeRenderController','parent','VIEW_MAIN_TOP','classType','angle','_initPrinting','height','_drawingRenderService','_attachAdjustEvent','getDrawingPoints','11226Acfqet','flipX','computeConnectorResizeLayout','entries','index','render','length','getEndConnectInfo','cxnPointFill','_shapes','_initialize','focusDrawing','_getConnectPointInfo','_injector','_createControls','sheets-shape-text-','_drawingManagerService','registerCommand','_baseLeft','lineShapeId','_initMenu','isArray','getObject','_generateCutPasteMutations','getParent','axisAlignSheetTransform','completeEditing','_createCopyInfoByRange','sheets-shape-ui.formatShape','filter','None','default','_popupMenuListener','_props','getDrawingData','_baseHeight','transform','_registerGroupFeaturePasteHook','connection-site-','getPresentation','SHEET_SHAPE_UI_PLUGIN','_registerFocusChangeHandler','_createShapePopupMenu','description','Arrow','sheetTransform','updateDocumentDataMargin','_activeShapeInfo','targetShapeId','_handleConnectedEndpointPointerUp','_initCommands','relation','isEditing','asObservable','_shapeEditPanelVersion','_activeTargetShapeId','shapeModel','isStartConnectorPoint','shapeData','lineType','data','includes','_formulaShapes','drawingType','_addControl','initTransformer','_registerImageShapeClipDelegate','strokeWidth','_draggingConnectorId','_getImageDrawingInfo','refreshShapeFillImage','Large','isLineShape','_iconManager'];_0x5f35=function(){return _0x7e036e;};return _0x5f35();}let Er=class extends _0x3ba2e2{constructor(_0x305edd,_0x5a69d9,_0xea83b0,_0x1cdfbd,_0x3e5369){const _0x5dd389=_0x25219a;super(),this['_context']=_0x305edd,this['_drawingManagerService']=_0x5a69d9,this[_0x5dd389(0x145)]=_0xea83b0,this[_0x5dd389(0xfe)]=_0x1cdfbd,this[_0x5dd389(0x163)]=_0x3e5369,Y(this,_0x5dd389(0x300),null),Y(this,_0x5dd389(0x1c5),null),Y(this,'_subUnitId',null),Y(this,_0x5dd389(0x1fe),void 0x0),Y(this,_0x5dd389(0x27d),[]),Y(this,_0x5dd389(0x286),0x0),Y(this,_0x5dd389(0x159),0x0),Y(this,_0x5dd389(0x2f1),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x5dd389(0x2e0),!0x1),Y(this,_0x5dd389(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x5dd389(0x22f),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x5dd389(0x345),!0x1),this[_0x5dd389(0x29d)](),this[_0x5dd389(0x315)]();}[_0x25219a(0x2e1)](){const _0x112421=_0x25219a;this[_0x112421(0x248)]();}['refreshAdjustControls'](){const _0x28c5cd=_0x25219a;this['_clearControls'](),this[_0x28c5cd(0x282)](!0x0);}['_getOrCreateShapeModel'](_0x4a204a,_0x1a30d1,_0x44d999,_0x2a0c63){const _0x15b5c2=_0x25219a;let _0xaf2b1d=_0x4a204a;if(_0xaf2b1d!==_0x6bfff9[_0x15b5c2(0x292)]&&_0x4a204a!=='custom')try{let _0x4d3484=new _0x57cb5b(_0xaf2b1d,_0x15b5c2(0x106)+_0x4a204a);return _0x2a0c63&&_0x4d3484[_0x15b5c2(0x1e2)]({'adjustValues':_0x2a0c63},!0x0),_0x4d3484['updateContext']({'width':_0x1a30d1,'height':_0x44d999}),_0x4d3484;}catch{return;}}[_0x25219a(0x2b9)](_0x26dde0,_0x57a62e,_0x32b415){const _0x5a3764=_0x25219a;let _0x485a11={'unitId':_0x26dde0,'subUnitId':_0x57a62e,'drawingId':_0x32b415},_0x2c73a0=this[_0x5a3764(0x284)]['getDrawingByParam'](_0x485a11);if(!(!_0x2c73a0||_0x2c73a0['drawingType']!==_0x161136[_0x5a3764(0xda)]))return _0x2c73a0;}[_0x25219a(0x252)](_0x42b8a9,_0x2c7a07,_0x1ba999){const _0x38de81=_0x25219a;let _0x387667=this[_0x38de81(0x145)][_0x38de81(0x1dd)](_0x42b8a9);if(!_0x387667)return;let {scene:_0x4ae30e}=_0x387667,_0x4cc9af=_0x566164({'unitId':_0x42b8a9,'subUnitId':_0x2c7a07,'drawingId':_0x1ba999}),_0x586526=_0x4ae30e[_0x38de81(0x28a)](_0x4cc9af);if(_0x586526 instanceof _0x8d12f0){let _0x4c40b0=_0x586526[_0x38de81(0x11b)];if(_0x4c40b0)return{'prstGeom':_0x4c40b0,'adjustValues':_0x586526[_0x38de81(0x19c)]};}}[_0x25219a(0x282)](_0x201de9=!0x1){const _0x59654b=_0x25219a;if(!this[_0x59654b(0x1c5)]||!this['_subUnitId']||!this[_0x59654b(0x300)])return;let _0x1bb7b3=this['_renderManagerService'][_0x59654b(0x1dd)](this[_0x59654b(0x1c5)]);if(!_0x1bb7b3||!_0x1bb7b3[_0x59654b(0xe3)](_0x319c9a)[_0x59654b(0xde)]())return;let {scene:_0xf42e70}=_0x1bb7b3,_0x50fcc5=this['_getImageDrawingInfo'](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x50fcc5)return;let {transform:_0x3dd484}=_0x50fcc5;if(!_0x3dd484)return;let {left:_0x4b1cf9,top:_0x3eb705,width:_0x37e86,height:_0x554b90,flipX:_0x3e7e1f,flipY:_0x30c71e,angle:_0xc2ae60=0x0}=_0x3dd484;if(_0x4b1cf9===void 0x0||_0x3eb705===void 0x0)return;let _0x2e147b=this[_0x59654b(0x252)](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x2e147b)return;if(_0x201de9){let _0xf31665=this[_0x59654b(0x1a4)](_0x2e147b['prstGeom'],_0x37e86||0x0,_0x554b90||0x0,_0x2e147b[_0x59654b(0x344)]);if(!_0xf31665)return;this[_0x59654b(0x1fe)]=_0xf31665[_0x59654b(0x273)]();}let _0x555f94=this['_activeAdjustPointList'];if(!(!_0x555f94||_0x555f94[_0x59654b(0x27a)]===0x0))for(let _0x22e60a=0x0;_0x22e60a<_0x555f94[_0x59654b(0x27a)];_0x22e60a++){let _0x2935e9=_0x555f94[_0x22e60a],_0x1a9454=_0x2935e9['x'],_0x1b8c97=_0x2935e9['y'];if(_0x3e7e1f&&(_0x1a9454=(_0x37e86||0x0)-_0x1a9454),_0x30c71e&&(_0x1b8c97=(_0x554b90||0x0)-_0x1b8c97),_0xc2ae60!==0x0){let _0x385474=(_0x37e86||0x0)/0x2,_0x4b8fd0=(_0x554b90||0x0)/0x2,_0x2ac99e=_0xc2ae60*Math['PI']/0xb4,_0x46f502=Math[_0x59654b(0x214)](_0x2ac99e),_0x2e47ee=Math[_0x59654b(0x1fc)](_0x2ac99e),_0x5a2aa6=_0x1a9454-_0x385474,_0xc11d4e=_0x1b8c97-_0x4b8fd0;_0x1a9454=_0x385474+(_0x5a2aa6*_0x46f502-_0xc11d4e*_0x2e47ee),_0x1b8c97=_0x4b8fd0+(_0x5a2aa6*_0x2e47ee+_0xc11d4e*_0x46f502);}let _0x388a6b={'x':_0x1a9454,'y':_0x1b8c97,'adjName':_0x2935e9['adjName']};this[_0x59654b(0x2b4)](_0xf42e70,_0x388a6b,_0x388a6b[_0x59654b(0x1ae)],_0x4b1cf9,_0x3eb705,this[_0x59654b(0x1c5)],this[_0x59654b(0x333)]);}}[_0x25219a(0x2b4)](_0x480ff2,_0x3abd88,_0x74be83,_0x3d98a9,_0x885332,_0x43a558,_0x3c967e){const _0x2bcdce=_0x25219a;if(!this[_0x2bcdce(0x300)])return;let _0x5b1a94=_0x2bcdce(0xe4)+this[_0x2bcdce(0x300)]+'-'+_0x74be83,_0x294371=_0x480ff2[_0x2bcdce(0x15b)](_0x5b1a94);if(_0x294371){_0x294371[_0x2bcdce(0xfd)]({'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe[_0x2bcdce(0x1bf)]});return;}let _0x12dce2=new Rn(_0x5b1a94,{'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe['adjHandleSize'],'adjName':_0x74be83,'shapeId':this[_0x2bcdce(0x300)],'unitId':_0x43a558,'subUnitId':_0x3c967e,'width':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'height':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this['_shapes'][_0x2bcdce(0xfc)](_0x12dce2),this['_attachAdjustEvent'](_0x12dce2,_0x480ff2,_0x74be83),_0x480ff2[_0x2bcdce(0xe6)](_0x12dce2,_0x22b4b7+0x1);}[_0x25219a(0x248)](){const _0x2b2f21=_0x25219a;this['_shapes'][_0x2b2f21(0x27a)]!==0x0&&(this[_0x2b2f21(0x27d)]['forEach'](_0x5d7a01=>_0x5d7a01[_0x2b2f21(0x259)]()),this[_0x2b2f21(0x27d)]=[]);}['_getScrollInfo'](_0x4d2df8,_0x53761b){const _0x202fda=_0x25219a;var _0x147ac4;let _0xf7527={'x':0x0,'y':0x0},_0x2e1edf=this[_0x202fda(0x145)][_0x202fda(0x1dd)](_0x4d2df8);if(!_0x2e1edf||!_0x2e1edf[_0x202fda(0xe3)](_0x319c9a)[_0x202fda(0x22d)](_0x53761b))return _0xf7527;let _0x151e9f=_0x2e1edf['with'](_0x22e443),_0x137243=_0x151e9f==null?void 0x0:_0x151e9f[_0x202fda(0x158)]();if(!_0x137243)return _0xf7527;let _0x70b087=(_0x147ac4=this[_0x202fda(0xfe)][_0x202fda(0x11e)](_0x4d2df8))==null?void 0x0:_0x147ac4[_0x202fda(0x330)](_0x53761b);if(!_0x70b087)return _0xf7527;let _0x34ca1a=_0x4f0d4b(_0x137243['sheetViewStartRow'],_0x137243[_0x202fda(0x18c)],_0x2e1edf['scene'],_0x70b087);return _0x34ca1a?{'x':_0x34ca1a['viewportScrollX'],'y':_0x34ca1a[_0x202fda(0x24b)]}:_0xf7527;}[_0x25219a(0x1aa)](_0x4f52a4,_0x54743c){const _0x2ebc0f=_0x25219a;var _0x178b4a;let _0x53d5ce=(_0x178b4a=this[_0x2ebc0f(0xfe)][_0x2ebc0f(0x11e)](_0x4f52a4))==null?void 0x0:_0x178b4a[_0x2ebc0f(0x330)](_0x54743c);return(_0x53d5ce==null?void 0x0:_0x53d5ce[_0x2ebc0f(0x310)]())??0x1;}[_0x25219a(0x272)](_0x4c9e12,_0x1aead9,_0x4bdc8f){const _0x55ef81=_0x25219a;this[_0x55ef81(0x1b1)](_0x2388cf(_0x4c9e12[_0x55ef81(0x18e)][_0x55ef81(0x1ab)]((_0x514095,_0x430f27)=>{const _0x3ab918=_0x55ef81;var _0x188552,_0x4dbb1a,_0x4a9755;let {unitId:_0x30249b,subUnitId:_0x349bcc,drawingId:_0x50d562}=_0x4c9e12[_0x3ab918(0x198)](),_0x2f1790=this[_0x3ab918(0x2b9)](_0x30249b,_0x349bcc,_0x50d562);if(!(_0x2f1790!=null&&_0x2f1790[_0x3ab918(0x298)]))return;let {left:_0x121521,top:_0x333af7,width:_0x2ae224,height:_0x3e7da3}=_0x2f1790[_0x3ab918(0x298)];this[_0x3ab918(0x286)]=_0x121521||0x0,this[_0x3ab918(0x159)]=_0x333af7||0x0,this[_0x3ab918(0x2f1)]=_0x2ae224||0x0,this[_0x3ab918(0x297)]=_0x3e7da3||0x0;let _0x506d86=!!((_0x188552=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x188552[_0x3ab918(0x275)]),_0x2f692a=!!((_0x4dbb1a=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x4dbb1a[_0x3ab918(0x1a3)]),_0xad05aa=((_0x4a9755=_0x2f1790['transform'])==null?void 0x0:_0x4a9755[_0x3ab918(0x26e)])||0x0,_0x20fb96=this[_0x3ab918(0x252)](_0x30249b,_0x349bcc,_0x50d562);if(!_0x20fb96)return;let _0x3d461a=this[_0x3ab918(0x1a4)](_0x20fb96['prstGeom'],this[_0x3ab918(0x2f1)],this[_0x3ab918(0x297)],_0x20fb96[_0x3ab918(0x344)]);if(!_0x3d461a||(this[_0x3ab918(0x16c)]=_0x3d461a,this[_0x3ab918(0x23c)]=_0x3d461a[_0x3ab918(0x1bc)](_0x4bdc8f),!this[_0x3ab918(0x23c)]))return;this[_0x3ab918(0x2e0)]=!0x0,_0x1aead9[_0x3ab918(0x188)]();let _0x51be7c=_0x20fb96['prstGeom'];this['_adjHandlerPointerMove']=_0x1aead9[_0x3ab918(0x131)][_0x3ab918(0x1ab)]((_0x1d1c27,_0x1188c7)=>{const _0x1f64d7=_0x3ab918;if(!this[_0x1f64d7(0x2e0)])return;let {offsetX:_0x53f303,offsetY:_0x29b3cd}=_0x1d1c27,_0x1a5a59=this[_0x1f64d7(0x23c)];if(!this[_0x1f64d7(0x16c)]||!_0x1a5a59)return;_0x1aead9[_0x1f64d7(0x188)](),_0x1aead9[_0x1f64d7(0xfb)](_0x2bcec2[_0x1f64d7(0x318)]);let _0xda560b={'left':0x0,'top':0x0,'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]},_0x45cd9e=this[_0x1f64d7(0x314)](_0x30249b,_0x349bcc),_0x5855a8=this[_0x1f64d7(0x1aa)](_0x30249b,_0x349bcc),_0x5d98d2=_0x53f303/_0x5855a8+_0x45cd9e['x']-this[_0x1f64d7(0x286)],_0x383337=_0x29b3cd/_0x5855a8+_0x45cd9e['y']-this[_0x1f64d7(0x159)];if(_0xad05aa!==0x0){let _0x44a03d=this[_0x1f64d7(0x2f1)]/0x2,_0x4f20ce=this[_0x1f64d7(0x297)]/0x2,_0xea9447=_0xad05aa*Math['PI']/0xb4,_0x156bf4=Math[_0x1f64d7(0x214)](_0xea9447),_0x21cdbe=Math[_0x1f64d7(0x1fc)](_0xea9447),_0x4134a5=_0x5d98d2-_0x44a03d,_0x408204=_0x383337-_0x4f20ce;_0x5d98d2=_0x44a03d+(_0x4134a5*_0x156bf4+_0x408204*_0x21cdbe),_0x383337=_0x4f20ce+(-_0x4134a5*_0x21cdbe+_0x408204*_0x156bf4);}_0x506d86&&(_0x5d98d2=this[_0x1f64d7(0x2f1)]-_0x5d98d2),_0x2f692a&&(_0x383337=this[_0x1f64d7(0x297)]-_0x383337);let _0x4f368b=this[_0x1f64d7(0x16c)]['calcAdjValues'](_0xda560b,{'x':_0x5d98d2,'y':_0x383337},_0x1a5a59,_0x506d86,_0x2f692a);if(Object[_0x1f64d7(0x12f)](_0x4f368b)[_0x1f64d7(0x27a)]!==0x0){for(let [_0x7ff096,_0x5747c4]of Object['entries'](_0x4f368b))this['_activeShapeModel']['setAdjustValueByName'](_0x7ff096,_0x5747c4);this[_0x1f64d7(0x16c)][_0x1f64d7(0x256)]({'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]}),this[_0x1f64d7(0x186)](_0x30249b,_0x349bcc,_0x50d562,_0x4f368b),this[_0x1f64d7(0x1fe)]=this[_0x1f64d7(0x16c)][_0x1f64d7(0x273)](),this['_createControls'](),_0x1188c7[_0x1f64d7(0x193)]();}}),this[_0x3ab918(0x16b)]=_0x1aead9['onPointerUp$'][_0x3ab918(0x1ab)]((_0x4a66f4,_0x268ead)=>{const _0x59a96e=_0x3ab918;if(this[_0x59a96e(0x22f)][_0x59a96e(0x15a)](),this[_0x59a96e(0x16b)][_0x59a96e(0x15a)](),_0x1aead9['resetCursor'](),this[_0x59a96e(0x16c)]){let _0x2b16ae=this[_0x59a96e(0x16c)][_0x59a96e(0x2ea)](),_0x283d54={};for(let _0x4784c6 of _0x2b16ae){let _0x463944=this[_0x59a96e(0x16c)][_0x59a96e(0x19f)](_0x4784c6);_0x463944!==void 0x0&&(_0x283d54[_0x4784c6]=_0x463944);}this['_imageShapeClipController'][_0x59a96e(0x116)](_0x30249b,_0x349bcc,_0x50d562,_0x51be7c,_0x283d54);}this[_0x59a96e(0x23c)]=void 0x0,this[_0x59a96e(0x16c)]=void 0x0,this[_0x59a96e(0x2e0)]=!0x1,_0x268ead['stopPropagation'](),_0x1aead9[_0x59a96e(0xfa)]();}),_0x430f27[_0x3ab918(0x193)]();})));}[_0x25219a(0x186)](_0x278b96,_0x5241b4,_0x19beb1,_0x2bb77a){const _0x326d9e=_0x25219a;let _0x1f82f8=this['_renderManagerService'][_0x326d9e(0x1dd)](_0x278b96);if(!_0x1f82f8)return;let {scene:_0x1373c7}=_0x1f82f8,_0x3d76ff=_0x566164({'unitId':_0x278b96,'subUnitId':_0x5241b4,'drawingId':_0x19beb1}),_0x8f963c=_0x1373c7['getObject'](_0x3d76ff);if(_0x8f963c instanceof _0x8d12f0){let _0x719e94=_0x8f963c[_0x326d9e(0x19c)]??{};_0x8f963c[_0x326d9e(0x305)]({..._0x719e94,..._0x2bb77a}),_0x8f963c[_0x326d9e(0x154)](!0x0);}}[_0x25219a(0x315)](){const _0x3649ac=_0x25219a;let _0x5035e4=this[_0x3649ac(0xfe)][_0x3649ac(0x1ac)](_0x2e857c[_0x3649ac(0x243)]);this[_0x3649ac(0x1b1)](_0x5035e4[_0x3649ac(0x17c)](_0x54e619(_0x3a1b79=>_0x3a1b79?_0x3a1b79[_0x3649ac(0x263)][_0x3649ac(0x17c)](_0x54e619(_0x18d569=>{const _0x4686f4=_0x3649ac;if(!_0x18d569)return _0x1997e0;let _0x3c452e=_0x3a1b79[_0x4686f4(0x1cd)](),_0x35d714=this['_renderManagerService']['getRenderUnitById'](_0x3c452e),_0x425aad=_0x35d714==null?void 0x0:_0x35d714[_0x4686f4(0x19b)];return _0x425aad?_0x36ada1(_0x425aad):_0x1997e0;})):_0x1997e0))[_0x3649ac(0x1a5)](_0x5674be=>{const _0x5d5f68=_0x3649ac;let _0xfc9346=_0x5674be[_0x5d5f68(0x253)]();this['disposeWithMe'](_0x5674be[_0x5d5f68(0x131)][_0x5d5f68(0x1ab)](()=>{const _0x1162af=_0x5d5f68;this[_0x1162af(0x345)]&&this['_clearControls']();})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x255)][_0x5d5f68(0x1a5)](_0x45d201=>{const _0x209879=_0x5d5f68;let {objects:_0x4627ee}=_0x45d201;if(this[_0x209879(0x282)](),_0x4627ee!==null&&_0x4627ee['size']===0x1){let _0x328e61=_0x4627ee[_0x209879(0x1c8)]()['next']()[_0x209879(0x335)];_0x328e61 instanceof _0x8d12f0&&_0x328e61[_0x209879(0x11b)]&&(this[_0x209879(0x345)]=!0x0);}})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x155)]['subscribe'](()=>{const _0x4709b8=_0x5d5f68;this[_0x4709b8(0x345)]&&this[_0x4709b8(0x248)]();})),this['disposeWithMe'](_0x5674be[_0x5d5f68(0x2fc)][_0x5d5f68(0x1ab)](()=>{const _0x3c2cf6=_0x5d5f68;this[_0x3c2cf6(0x345)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x313)]['subscribe'](()=>{const _0x538486=_0x5d5f68;if(this[_0x538486(0x1c5)]&&this[_0x538486(0x333)]&&this[_0x538486(0x300)]){let _0x37f872=this['_getImagePrstGeom'](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this[_0x538486(0x300)]);if(_0x37f872){var _0x172f6e,_0x57d99e;let _0x43bc6b=this[_0x538486(0x2b9)](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this['_activeImageId']),_0x2a529b=(_0x43bc6b==null||(_0x172f6e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x172f6e[_0x538486(0x11f)])||0x0,_0x1091f2=(_0x43bc6b==null||(_0x57d99e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x57d99e[_0x538486(0x270)])||0x0,_0x56b3a2=this[_0x538486(0x1a4)](_0x37f872[_0x538486(0x11b)],_0x2a529b,_0x1091f2,_0x37f872['adjustValues']);_0x56b3a2&&(this[_0x538486(0x1fe)]=_0x56b3a2[_0x538486(0x273)](),this['_clearControls'](),this[_0x538486(0x282)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x37a8fd=_0x25219a;this['disposeWithMe'](this[_0x37a8fd(0x284)][_0x37a8fd(0x250)][_0x37a8fd(0x1a5)](_0x45c5d7=>{const _0x5d4d5b=_0x37a8fd;if(_0x45c5d7[_0x5d4d5b(0x27a)]===0x1){let _0x5bb6af=_0x45c5d7[0x0];if(_0x5bb6af[_0x5d4d5b(0x2b3)]===_0x161136[_0x5d4d5b(0xda)]){let {unitId:_0x46879a,subUnitId:_0x36b1a3,drawingId:_0x15db14}=_0x5bb6af,_0x22d59f=this['_getImagePrstGeom'](_0x46879a,_0x36b1a3,_0x15db14);if(_0x22d59f){var _0x198481,_0x59c817;this[_0x5d4d5b(0x300)]=_0x15db14,this[_0x5d4d5b(0x1c5)]=_0x46879a,this[_0x5d4d5b(0x333)]=_0x36b1a3;let _0x1142a1=this[_0x5d4d5b(0x2b9)](_0x46879a,_0x36b1a3,_0x15db14),_0x43c470=(_0x1142a1==null||(_0x198481=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x198481['width'])||0x0,_0x582f52=(_0x1142a1==null||(_0x59c817=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x59c817[_0x5d4d5b(0x270)])||0x0,_0x64291=this[_0x5d4d5b(0x1a4)](_0x22d59f[_0x5d4d5b(0x11b)],_0x43c470,_0x582f52,_0x22d59f[_0x5d4d5b(0x344)]);_0x64291&&(this[_0x5d4d5b(0x1fe)]=_0x64291[_0x5d4d5b(0x273)]()),this[_0x5d4d5b(0x248)](),this[_0x5d4d5b(0x282)](!0x0);}else this[_0x5d4d5b(0x33c)]();}else this[_0x5d4d5b(0x33c)]();}else this['_resetState']();})),this[_0x37a8fd(0x1b1)](this['_drawingManagerService']['update$'][_0x37a8fd(0x1a5)](_0x230651=>{const _0x41310a=_0x37a8fd;if(_0x230651[_0x41310a(0x27a)]===0x1){let _0x5c5e20=_0x230651[0x0],_0x1c5a9a=this[_0x41310a(0x284)][_0x41310a(0x30c)](_0x5c5e20);(_0x1c5a9a==null?void 0x0:_0x1c5a9a[_0x41310a(0x2b3)])===_0x161136[_0x41310a(0xda)]&&this[_0x41310a(0x300)]===_0x5c5e20[_0x41310a(0x2c2)]&&(this[_0x41310a(0x248)](),this[_0x41310a(0x282)](!0x0));}})),this['disposeWithMe'](this[_0x37a8fd(0x284)]['remove$'][_0x37a8fd(0x1a5)](_0x2950d6=>{const _0x573d84=_0x37a8fd;for(let _0x4df493 of _0x2950d6)this[_0x573d84(0x300)]===_0x4df493['drawingId']&&this[_0x573d84(0x33c)]();}));}[_0x25219a(0x33c)](){const _0x3575b1=_0x25219a;this['_activeImageId']=null,this[_0x3575b1(0x1c5)]=null,this[_0x3575b1(0x333)]=null,this[_0x3575b1(0x1fe)]=void 0x0,this[_0x3575b1(0x248)]();}};Er=Z([X(0x1,_0x492363),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x230412),X(0x4,_0x396ece(Jn))],Er);let Dr=class extends _0x3ba2e2{constructor(_0x5b97f4,_0x11b73c,_0x1da71d,_0x1fec8d){const _0x7c19b0=_0x25219a;super(),this[_0x7c19b0(0xfe)]=_0x5b97f4,this[_0x7c19b0(0x2d9)]=_0x11b73c,this[_0x7c19b0(0x329)]=_0x1da71d,this['_sheetsShapeService']=_0x1fec8d,this[_0x7c19b0(0xff)]();}[_0x25219a(0xff)](){const _0x5544bc=_0x25219a;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5544bc(0x249)]({'getMutations':_0x59b06e=>{const _0x19c594=_0x5544bc;if(_0x59b06e['id']===_0x213d50['id']){let _0x508b6d=_0x4988bb(this[_0x19c594(0xfe)],_0x59b06e[_0x19c594(0x17a)]);if(!_0x508b6d)return{'redos':[],'undos':[]};let {unitId:_0x2f6928,subUnitId:_0x3e25c6}=_0x508b6d,_0x216d8d=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x2f6928,_0x3e25c6),_0x4a7569=Object[_0x19c594(0x1c8)](_0x216d8d)[_0x19c594(0x291)](_0x404f2b=>_0x404f2b['drawingType']===_0x161136[_0x19c594(0x25c)]);if(_0x4a7569[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x48c930=[],_0x5887c8=[];for(let _0x3c2180=0x0;_0x3c2180<_0x4a7569[_0x19c594(0x27a)];_0x3c2180++){let _0x27118f=_0x4a7569[_0x3c2180],_0x58c86f=this[_0x19c594(0x124)][_0x19c594(0x1f4)](_0x27118f[_0x19c594(0x151)],_0x27118f[_0x19c594(0x21f)],_0x27118f[_0x19c594(0x2c2)]);if(!_0x58c86f)continue;let {redo:_0x3f3017,undo:_0x240292,objects:_0x2ded47}=this[_0x19c594(0x329)][_0x19c594(0x24f)]([_0x27118f]);_0x48c930['push']({'id':_0x30f07c['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)]}}),_0x48c930['push']({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x3f3017,'objects':_0x2ded47}}),_0x5887c8[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd['INSERT'],'op':_0x240292,'objects':_0x2ded47}}),_0x5887c8['push']({'id':_0x55e264['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)],'shapeType':_0x58c86f[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x58c86f[_0x19c594(0x23b)]()))}});}return{'redos':_0x48c930,'undos':_0x5887c8};}else{if(_0x59b06e['id']===_0x4c17f0['id']){let {unitId:_0x1cf358,subUnitId:_0x50def6,targetSubUnitId:_0x299112}=_0x59b06e[_0x19c594(0x17a)];if(!_0x1cf358||!_0x50def6||!_0x299112)return{'redos':[],'undos':[]};let _0x1fbda8=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x1cf358,_0x50def6),_0x4de3ea=Object[_0x19c594(0x1c8)](_0x1fbda8)['filter'](_0x4fc5d0=>_0x4fc5d0[_0x19c594(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x4de3ea[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x16b52d=[],_0x3657d7=[];for(let _0x4e012a=0x0;_0x4e012a<_0x4de3ea['length'];_0x4e012a++){let _0x3e4572=_0x4de3ea[_0x4e012a],_0x340aba=this['_sheetsShapeService'][_0x19c594(0x1f4)](_0x3e4572[_0x19c594(0x151)],_0x3e4572['subUnitId'],_0x3e4572[_0x19c594(0x2c2)]);if(!_0x340aba)continue;let _0x456306=_0x44c0e2(),_0x38f18e={..._0x3e4572,'unitId':_0x1cf358,'subUnitId':_0x299112,'drawingId':_0x456306},{redo:_0x2013c7,undo:_0x341e47,objects:_0x245e15}=this[_0x19c594(0x329)][_0x19c594(0x307)]([_0x38f18e]);_0x16b52d[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x312)],'op':_0x2013c7,'objects':_0x245e15}}),_0x16b52d[_0x19c594(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306,'shapeType':_0x340aba[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x340aba[_0x19c594(0x23b)]()))}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x341e47,'objects':_0x245e15}});}return{'redos':_0x16b52d,'undos':_0x3657d7};}}return{'redos':[],'undos':[]};}}));}};Dr=Z([X(0x0,_0x396ece(_0x230412)),X(0x1,_0x396ece(_0x2920c2)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7))],Dr);let Or=class extends _0x3ba2e2{constructor(_0x22c4d9,_0xdfd53b,_0x4f1b40,_0x268f55,_0x17d424){const _0x176a80=_0x25219a;super(),this[_0x176a80(0x316)]=_0x22c4d9,this[_0x176a80(0x30f)]=_0xdfd53b,this[_0x176a80(0x284)]=_0x4f1b40,this[_0x176a80(0x1e9)]=_0x268f55,this['_sheetsShapeService']=_0x17d424,Y(this,_0x176a80(0xdf),null),this[_0x176a80(0x244)](),this[_0x176a80(0x1af)](),this[_0x176a80(0x306)]();}['_initEvents'](){const _0xdc2d1d=_0x25219a;let {scene:_0x905bb6}=this[_0xdc2d1d(0x316)];this[_0xdc2d1d(0x1b1)](_0x905bb6[_0xdc2d1d(0x2f0)][_0xdc2d1d(0x1ab)](_0x5b792e=>{const _0x3d4927=_0xdc2d1d;let {offsetX:_0x150df2,offsetY:_0x32117a}=_0x5b792e,_0x2c2062=_0x905bb6[_0x3d4927(0x17e)](_0x48df4c['FromArray']([_0x150df2,_0x32117a]));if(_0x2c2062 instanceof Ln){let _0x23b9c2=this[_0x3d4927(0x124)][_0x3d4927(0x1f4)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)]);if(_0x23b9c2!=null&&_0x23b9c2['getShapeData']()['formulaBinding']||_0x41a954(this['_sheetsShapeService'][_0x3d4927(0x16e)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)])))return;this['_shapeTextEditingService'][_0x3d4927(0x2cd)]({'visible':!0x0,'unitId':_0x2c2062['unitId'],'subUnitId':_0x2c2062[_0x3d4927(0x21f)],'shapeId':_0x2c2062[_0x3d4927(0x25a)],'shapeKey':_0x2c2062[_0x3d4927(0x161)]});}}));}['_initSelection'](){const _0x2a39f2=_0x25219a;this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)]['focus$'][_0x2a39f2(0x1a5)](_0x4103e6=>{const _0x24f7ab=_0x2a39f2;if(_0x4103e6[_0x24f7ab(0x27a)]===0x1){let _0x22dcf9=_0x4103e6[0x0],_0x197d37=this[_0x24f7ab(0x284)][_0x24f7ab(0x30c)](_0x22dcf9);if((_0x197d37==null?void 0x0:_0x197d37[_0x24f7ab(0x2b3)])===_0x161136['DRAWING_SHAPE']){var _0x463371;let _0xf2018c=this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]();if((_0xf2018c==null?void 0x0:_0xf2018c[_0x24f7ab(0x25a)])===_0x22dcf9[_0x24f7ab(0x2c2)]&&_0xf2018c[_0x24f7ab(0x1c0)])return;let _0x193f37=_0x41a954(this[_0x24f7ab(0x124)][_0x24f7ab(0x16e)](_0x22dcf9['unitId'],_0x22dcf9[_0x24f7ab(0x21f)],_0x22dcf9[_0x24f7ab(0x2c2)])),_0x3a4755=!!((_0x463371=this[_0x24f7ab(0x124)][_0x24f7ab(0x1f4)](_0x22dcf9[_0x24f7ab(0x151)],_0x22dcf9['subUnitId'],_0x22dcf9[_0x24f7ab(0x2c2)]))!=null&&_0x463371[_0x24f7ab(0x23b)]()['formulaBinding']);(_0x193f37||_0x3a4755)&&this[_0x24f7ab(0x30f)][_0x24f7ab(0x2cd)](null);}else this[_0x24f7ab(0x30f)]['getEditing']()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4f4bbe=_0x24f7ab;this[_0x4f4bbe(0x30f)]['setEditing'](null);}));}else this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x133f98=_0x24f7ab;this[_0x133f98(0x30f)][_0x133f98(0x2cd)](null);}));})),this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)][_0x2a39f2(0x2c0)][_0x2a39f2(0x1a5)](_0x3ad7bf=>{const _0x4c731e=_0x2a39f2;let _0xf12787=this[_0x4c731e(0x30f)][_0x4c731e(0x1d8)]();_0xf12787&&_0x3ad7bf['some'](_0x215830=>_0x215830[_0x4c731e(0x2c2)]===_0xf12787[_0x4c731e(0x25a)])&&this[_0x4c731e(0x30f)][_0x4c731e(0x2cd)](null);}));}[_0x25219a(0x306)](){const _0x27e143=_0x25219a;this[_0x27e143(0x1b1)](this['_shapeTextEditingService']['editingParams$'][_0x27e143(0x1a5)](_0x50c32e=>{const _0x4a10ac=_0x27e143;let {scene:_0x2a3351}=this[_0x4a10ac(0x316)];if(this[_0x4a10ac(0xdf)]){let _0x2df355=_0x2a3351[_0x4a10ac(0x15b)](this['_lastEditingShapeKey']);_0x2df355&&_0x2df355[_0x4a10ac(0x2cd)](!0x1);}if(_0x50c32e){let _0x537a0d=!!_0x50c32e[_0x4a10ac(0x1c0)],_0x21ab4d=_0x2a3351[_0x4a10ac(0x15b)](_0x50c32e['shapeKey']);_0x21ab4d&&(_0x21ab4d[_0x4a10ac(0x2cd)](_0x537a0d),this[_0x4a10ac(0xdf)]=_0x50c32e[_0x4a10ac(0x17f)]),this[_0x4a10ac(0x1e9)][_0x4a10ac(0x25f)](_0x5d8f61,_0x537a0d);}else this[_0x4a10ac(0xdf)]=null,this[_0x4a10ac(0x1e9)]['setContextValue'](_0x5d8f61,!0x1);}));}};Or=Z([X(0x1,_0x396ece(Cr)),X(0x2,_0x492363),X(0x3,_0x334f35),X(0x4,_0x396ece(_0x6985f7))],Or);let kr=class extends _0x4f7f46{constructor(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7){super(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7,{'componentKey':Kn,'editorUnitId':Gn});}};kr=Z([X(0x1,_0x396ece(_0x3a116c)),X(0x2,_0x396ece(_0x45051f)),X(0x3,_0x396ece(_0x1bed72))],kr);let Ar=class extends _0x3ba2e2{constructor(_0x30f46b,_0x12698c,_0x4766f4,_0x1d2ade,_0x5b7f8e,_0x3cae33){const _0xda95a9=_0x25219a;super(),this['_commandService']=_0x30f46b,this[_0xda95a9(0x145)]=_0x12698c,this[_0xda95a9(0x284)]=_0x4766f4,this[_0xda95a9(0x140)]=_0x1d2ade,this[_0xda95a9(0x271)]=_0x5b7f8e,this[_0xda95a9(0x26a)]=_0x3cae33,Y(this,_0xda95a9(0x148),new Set()),this[_0xda95a9(0x27e)]();}[_0x25219a(0x27e)](){const _0x1f8780=_0x25219a;this[_0x1f8780(0x168)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x25219a(0x168)](){const _0x546aee=_0x25219a;this['disposeWithMe'](this[_0x546aee(0x284)][_0x546aee(0x340)][_0x546aee(0x1a5)](_0x4f5066=>{this['_insertShapes'](_0x4f5066);}));}[_0x25219a(0x30e)](){const _0x107565=_0x25219a;this[_0x107565(0x1b1)](this[_0x107565(0x2cc)][_0x107565(0x24a)](_0x859cd4=>{const _0x536867=_0x107565;if(_0x859cd4['id']===_0x46a98e['id']){let {unitId:_0x1da3b8,subUnitId:_0x50066c,shapeId:_0x39295e}=_0x859cd4[_0x536867(0x17a)],_0x1c9eb7=this[_0x536867(0x172)](_0x1da3b8),_0x1fa16f=_0x566164({'unitId':_0x1da3b8,'subUnitId':_0x50066c,'drawingId':_0x39295e}),_0x215110=_0x1c9eb7==null?void 0x0:_0x1c9eb7[_0x536867(0x19b)]['getObjectIncludeInGroup'](_0x1fa16f);_0x215110&&(this[_0x536867(0x26a)][_0x536867(0x2ba)](_0x215110),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x215110,{'unitId':_0x1da3b8,'subUnitId':_0x50066c,'shapeId':_0x39295e}),_0x215110['makeDirty'](!0x0));return;}if(_0x859cd4['id']===_0x55e264['id']){var _0x2b1bea;let {unitId:_0x167b00,subUnitId:_0x3cad43,shapeId:_0xc5db1b}=_0x859cd4[_0x536867(0x17a)],_0x326922=this['_getSceneAndTransformerByDrawingSearch'](_0x167b00);if(_0x326922==null)return;let {scene:_0x38a81e}=_0x326922,_0x5d9014=_0x566164({'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}),_0x118f6a=_0x38a81e[_0x536867(0x15b)](_0x5d9014);if(!((_0x2b1bea=this[_0x536867(0x145)]['getRenderUnitById'](_0x167b00))!=null&&_0x2b1bea['with'](_0x319c9a)[_0x536867(0x22d)](_0x3cad43)))return!0x1;if(_0x118f6a)return;this[_0x536867(0x103)]([{'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}]);}}));}['_shapeUpdateListener'](){const _0x59d7d2=_0x25219a;this['disposeWithMe'](this[_0x59d7d2(0x284)][_0x59d7d2(0x22c)]['subscribe'](_0x3e65d7=>{const _0x5c3da3=_0x59d7d2;_0x3e65d7[_0x5c3da3(0x162)](_0x4984d2=>{const _0x4a2618=_0x5c3da3;let {unitId:_0x2c901c,subUnitId:_0xef727c,drawingId:_0x1aa195}=_0x4984d2,_0x249856=this[_0x4a2618(0x284)][_0x4a2618(0x30c)](_0x4984d2);if(_0x249856==null)return;let {transform:_0x440d98,drawingType:_0x1bf87f,srcRect:_0xe55270,prstGeom:_0x5c7153}=_0x249856;if(_0x1bf87f!==_0x161136['DRAWING_SHAPE'])return;let _0x172c1f=this[_0x4a2618(0x172)](_0x2c901c);if(_0x172c1f==null)return;let {scene:_0x2c7eeb,transformer:_0x5cdee5}=_0x172c1f;if(_0x440d98==null)return!0x0;let _0x580298=_0x566164({'unitId':_0x2c901c,'subUnitId':_0xef727c,'drawingId':_0x1aa195}),_0x346b7f=_0x2c7eeb[_0x4a2618(0x15b)](_0x580298);if(_0x346b7f==null)return!0x0;_0x346b7f['setSrcRect'](_0xe55270),_0x346b7f[_0x4a2618(0x1f3)](_0x5c7153);});}));}[_0x25219a(0x103)](_0x570959){const _0x42c7c2=_0x25219a;for(let _0x5b6fdb of _0x570959){var _0x592b13;let {unitId:_0x24dbe7,subUnitId:_0x43c156,drawingId:_0x1d1998}=_0x5b6fdb,_0x46260b=this[_0x42c7c2(0x172)](_0x24dbe7),_0x4538d1=(_0x592b13=_0x19ceb1(this[_0x42c7c2(0x140)],_0x24dbe7))==null?void 0x0:_0x592b13[_0x42c7c2(0x21f)];if(_0x46260b==null||_0x4538d1!==_0x43c156)return;let _0x41923d=_0x566164({'unitId':_0x24dbe7,'subUnitId':_0x43c156,'drawingId':_0x1d1998});if(this[_0x42c7c2(0x148)][_0x42c7c2(0x135)](_0x41923d)||_0x46260b[_0x42c7c2(0x19b)][_0x42c7c2(0x15b)](_0x41923d)!=null)return;let _0x389eda=this[_0x42c7c2(0x284)][_0x42c7c2(0x30c)](_0x5b6fdb);if(_0x389eda==null||_0x389eda['drawingType']!==_0x161136[_0x42c7c2(0x25c)])return;if(_0x41a954((_0x389eda['data']||{})[_0x42c7c2(0x1c7)])){let _0x6de38f=_0x389eda['transform'];_0x6de38f&&(_0x389eda[_0x42c7c2(0x298)]={..._0x6de38f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x42c7c2(0x148)][_0x42c7c2(0x119)](_0x41923d);try{this[_0x42c7c2(0x26a)]['renderDrawingShape'](_0x389eda,_0x46260b[_0x42c7c2(0x19b)]);}finally{this[_0x42c7c2(0x148)][_0x42c7c2(0x1d3)](_0x41923d);}queueMicrotask(()=>{const _0x2f5c04=_0x42c7c2;if(this[_0x2f5c04(0x196)])return;let _0x3d71b4=_0x566164(_0x5b6fdb);if(!_0x46260b[_0x2f5c04(0x19b)][_0x2f5c04(0x15b)](_0x3d71b4))return;let _0x4f8b81=this[_0x2f5c04(0x284)][_0x2f5c04(0x30c)](_0x5b6fdb);_0x4f8b81&&this['_drawingManagerService']['refreshTransform']([_0x4f8b81]);});}}[_0x25219a(0x172)](_0x366788){const _0x3fd5c7=_0x25219a;if(_0x366788==null)return;let _0x62d120=this['_renderManagerService'][_0x3fd5c7(0x1dd)](_0x366788),_0x118f47=_0x62d120==null?void 0x0:_0x62d120[_0x3fd5c7(0x19b)];return _0x118f47==null?null:{'scene':_0x118f47,'transformer':_0x118f47[_0x3fd5c7(0x253)]()};}};Ar=Z([X(0x0,_0x16d336),X(0x1,_0x471989),X(0x2,_0x492363),X(0x3,_0x230412),X(0x4,_0x396ece(_0x214f7e)),X(0x5,_0x396ece(Q))],Ar);function _0x52a4(_0x1f02c0,_0x2d277d){_0x1f02c0=_0x1f02c0-0xda;const _0x5f35cd=_0x5f35();let _0x52a428=_0x5f35cd[_0x1f02c0];return _0x52a428;}const jr={'normal':{'fill':_0x373ebe['cxnPointFill'],'stroke':_0x373ebe[_0x25219a(0x2d7)],'strokeWidth':_0x373ebe['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':_0x25219a(0x12e),'strokeWidth':0x2}};var Mr=class extends _0x1ac658{constructor(_0x36c286,_0x3db3ec){const _0x12f900=_0x25219a;super(_0x36c286,_0x3db3ec),Y(this,_0x12f900(0x239),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x12f900(0x1c5),''),Y(this,_0x12f900(0x333),''),Y(this,_0x12f900(0x1be),!0x1),_0x3db3ec&&this[_0x12f900(0x2f6)](_0x3db3ec);}[_0x25219a(0x2d2)](){const _0x13d0d6=_0x25219a;return{'unitId':this[_0x13d0d6(0x1c5)],'subUnitId':this[_0x13d0d6(0x333)],'shapeId':this[_0x13d0d6(0x239)],'cxnIndex':this[_0x13d0d6(0x223)]};}['setHighlighted'](_0x14fa14){const _0x14f03e=_0x25219a;this[_0x14f03e(0x1be)]!==_0x14fa14&&(this[_0x14f03e(0x1be)]=_0x14fa14,this[_0x14f03e(0x154)](!0x0));}[_0x25219a(0x13b)](){const _0x964b96=_0x25219a;return this[_0x964b96(0x1be)];}[_0x25219a(0x2f6)](_0x1afddf){const _0x51cbd8=_0x25219a;_0x1afddf[_0x51cbd8(0x2a4)]!==void 0x0&&(this[_0x51cbd8(0x239)]=_0x1afddf[_0x51cbd8(0x2a4)]),_0x1afddf['cxnIndex']!==void 0x0&&(this[_0x51cbd8(0x223)]=_0x1afddf[_0x51cbd8(0x2f8)]),_0x1afddf[_0x51cbd8(0x151)]!==void 0x0&&(this[_0x51cbd8(0x1c5)]=_0x1afddf['unitId']),_0x1afddf[_0x51cbd8(0x21f)]!==void 0x0&&(this[_0x51cbd8(0x333)]=_0x1afddf[_0x51cbd8(0x21f)]),_0x1afddf[_0x51cbd8(0x13b)]!==void 0x0&&(this[_0x51cbd8(0x1be)]=_0x1afddf[_0x51cbd8(0x13b)]),this[_0x51cbd8(0xfd)]({'width':_0x1afddf[_0x51cbd8(0x11f)]??_0x373ebe['cxnPointRadius']*0x2,'height':_0x1afddf[_0x51cbd8(0x270)]??_0x373ebe[_0x51cbd8(0x1ea)]*0x2});}[_0x25219a(0x183)](_0x5427a8){const _0x3d0993=_0x25219a;let _0x49a165=this['_isHighlighted']?jr[_0x3d0993(0x122)]:jr[_0x3d0993(0xe2)];_0x18400a[_0x3d0993(0x230)](_0x5427a8,{'radius':_0x373ebe[_0x3d0993(0x1ea)],'fill':_0x49a165[_0x3d0993(0x233)],'stroke':_0x49a165[_0x3d0993(0x101)],'strokeWidth':_0x49a165[_0x3d0993(0x2b7)],'evented':!0x0});}};let Nr=class extends _0x3ba2e2{constructor(_0x39a922,_0x16b51b,_0x201944,_0x17df06){const _0xc6c846=_0x25219a;super(),this[_0xc6c846(0x316)]=_0x39a922,this[_0xc6c846(0x145)]=_0x16b51b,this[_0xc6c846(0x284)]=_0x201944,this['_sheetsShapeService']=_0x17df06,Y(this,_0xc6c846(0x308),[]),Y(this,_0xc6c846(0x2ab),null),Y(this,_0xc6c846(0xf9),-0x1),Y(this,_0xc6c846(0x1c3),null),Y(this,_0xc6c846(0x1c5),''),Y(this,_0xc6c846(0x333),''),Y(this,_0xc6c846(0x2b8),null);}[_0x25219a(0x149)](_0x209ff4,_0x31d5ca,_0x25f24b,_0x5040fb){const _0xadd615=_0x25219a;this[_0xadd615(0x1c3)]=_0x209ff4,this['_unitId']=_0x31d5ca,this['_subUnitId']=_0x25f24b,this[_0xadd615(0x2b8)]=_0x5040fb;}['updateConnectionDetection'](_0x1f3d35){const _0x563ccd=_0x25219a;if(!this[_0x563ccd(0x1c3)])return null;let _0x4023a1=this[_0x563ccd(0x257)](_0x1f3d35);return _0x4023a1?(this[_0x563ccd(0x2ab)]!==_0x4023a1['shapeId']&&(this[_0x563ccd(0xdb)](),this[_0x563ccd(0x225)](_0x4023a1[_0x563ccd(0x25a)],_0x4023a1['shapeModel']),this[_0x563ccd(0x2ab)]=_0x4023a1['shapeId']),this[_0x563ccd(0x1b4)](_0x1f3d35)):(this[_0x563ccd(0x2ab)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}[_0x25219a(0xf8)](){const _0x4dedbe=_0x25219a;this['_clearConnectionSites'](),this[_0x4dedbe(0x1c3)]=null,this[_0x4dedbe(0x2ab)]=null,this['_highlightedSiteIndex']=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x156942=_0x25219a;return this[_0x156942(0x2ab)]===null||this[_0x156942(0xf9)]<0x0?null:{'shapeId':this[_0x156942(0x2ab)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x25219a(0x257)](_0x12e031){const _0x104610=_0x25219a;let _0x19409f=this[_0x104610(0x284)]['getDrawingData'](this[_0x104610(0x1c5)],this[_0x104610(0x333)]);for(let _0x175af4 of Object[_0x104610(0x12f)](_0x19409f)){if(_0x175af4===this[_0x104610(0x2b8)]||_0x19409f[_0x175af4]['drawingType']!==_0x161136[_0x104610(0x25c)])continue;let _0x5e74a8=this['_sheetsShapeService'][_0x104610(0x1f4)](this['_unitId'],this[_0x104610(0x333)],_0x175af4);if(!_0x5e74a8||_0x41a954(_0x5e74a8[_0x104610(0x16e)]())||_0x5e74a8[_0x104610(0x201)]()['length']===0x0||!this['_currentScene'])continue;let _0x585301=_0x566164({'unitId':this[_0x104610(0x1c5)],'subUnitId':this[_0x104610(0x333)],'drawingId':_0x175af4}),_0x9ba1a8=this[_0x104610(0x1c3)]['getObjectIncludeInGroup'](_0x585301);if(!_0x9ba1a8)continue;let {left:_0x5df6d9,top:_0x2d5155,width:_0x2115d2,height:_0x58b635}=_0x9ba1a8[_0x104610(0x1d4)](),_0x2571ad=_0x5df6d9+_0x2115d2/0x2,_0x34cb34=_0x2d5155+_0x58b635/0x2,_0x254c89=_0x9ba1a8[_0x104610(0x298)][_0x104610(0x258)](),_0x2fbee4=new _0x34d861([_0x254c89[0x0],_0x254c89[0x1],_0x254c89[0x2],_0x254c89[0x3],_0x2571ad,_0x34cb34]),_0x40d87b=_0x9ba1a8['getParent'](),_0x31f8cc=(_0x9ba1a8[_0x104610(0x1f6)]&&(_0x40d87b==null?void 0x0:_0x40d87b[_0x104610(0x26d)])===_0x4550bb['GROUP']?_0x40d87b[_0x104610(0x20c)][_0x104610(0x15c)](_0x2fbee4):_0x2fbee4)[_0x104610(0x176)]()[_0x104610(0x317)](_0x12e031),_0x41ba95=_0x2115d2/0x2,_0x5c3f03=_0x58b635/0x2;if(_0x31f8cc['x']>=-_0x41ba95-0x5&&_0x31f8cc['x']<=_0x41ba95+0x5&&_0x31f8cc['y']>=-_0x5c3f03-0x5&&_0x31f8cc['y']<=_0x5c3f03+0x5)return{'shapeId':_0x175af4,'shapeModel':_0x5e74a8};}return null;}['_showConnectionSites'](_0x2d7944,_0x35651d){const _0x586874=_0x25219a;if(!this[_0x586874(0x1c3)])return;let _0x4c99ec=_0x566164({'unitId':this['_unitId'],'subUnitId':this[_0x586874(0x333)],'drawingId':_0x2d7944}),_0x3d08ba=this[_0x586874(0x1c3)][_0x586874(0x15b)](_0x4c99ec);if(!_0x3d08ba)return;let {left:_0x1207aa,top:_0x450d62,width:_0x362189,height:_0x4d2993}=_0x3d08ba[_0x586874(0x1d4)](),_0x402e4f=_0x1207aa+_0x362189/0x2,_0x21c4fc=_0x450d62+_0x4d2993/0x2,_0x14368f=_0x3d08ba[_0x586874(0x298)][_0x586874(0x258)](),_0x3e6b62=new _0x34d861([_0x14368f[0x0],_0x14368f[0x1],_0x14368f[0x2],_0x14368f[0x3],_0x402e4f,_0x21c4fc]),_0x468ff7=_0x3d08ba['getParent'](),_0x290060=_0x3d08ba[_0x586874(0x1f6)]&&(_0x468ff7==null?void 0x0:_0x468ff7['classType'])===_0x4550bb[_0x586874(0x1fd)]?_0x468ff7[_0x586874(0x20c)][_0x586874(0x15c)](_0x3e6b62):_0x3e6b62;_0x35651d[_0x586874(0x256)]({'width':_0x362189,'height':_0x4d2993});let _0x384a4d=_0x35651d[_0x586874(0x201)]();for(let _0x40dac8 of _0x384a4d){let _0x567a72=_0x40dac8['x']-_0x362189/0x2,_0x2325d8=_0x40dac8['y']-_0x4d2993/0x2,_0xd5e7d4=_0x290060[_0x586874(0x317)]({'x':_0x567a72,'y':_0x2325d8}),_0x50f494=_0xd5e7d4['x'],_0xfd0804=_0xd5e7d4['y'],_0x4e5a4d=new Mr(_0x586874(0x29a)+_0x2d7944+'-'+_0x40dac8[_0x586874(0x278)],{'left':_0x50f494-_0x373ebe[_0x586874(0x1ea)],'top':_0xfd0804-_0x373ebe['cxnPointRadius'],'targetShapeId':_0x2d7944,'cxnIndex':_0x40dac8[_0x586874(0x278)],'unitId':this[_0x586874(0x1c5)],'subUnitId':this[_0x586874(0x333)],'width':_0x373ebe[_0x586874(0x1ea)]*0x2,'height':_0x373ebe[_0x586874(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x2,'evented':!0x1});this[_0x586874(0x308)]['push'](_0x4e5a4d),this[_0x586874(0x1c3)][_0x586874(0xe6)](_0x4e5a4d,_0x22b4b7+0x2);}}[_0x25219a(0x1b4)](_0x2d5e1b){const _0x2e38fc=_0x25219a;let _0x986d7f=null,_0x5c053c=0x1/0x0,_0x2ec94c=null;for(let _0x277485 of this[_0x2e38fc(0x308)]){let _0x1a0f7a=_0x277485[_0x2e38fc(0x242)]+_0x373ebe[_0x2e38fc(0x1ea)],_0x5adf36=_0x277485['top']+_0x373ebe[_0x2e38fc(0x1ea)],_0x335865=_0x2d5e1b['x']-_0x1a0f7a,_0x2f7d73=_0x2d5e1b['y']-_0x5adf36,_0x3c1d6d=Math[_0x2e38fc(0x2d5)](_0x335865*_0x335865+_0x2f7d73*_0x2f7d73);_0x3c1d6d<_0x5c053c&&(_0x5c053c=_0x3c1d6d,_0x986d7f=_0x277485,_0x2ec94c={'x':_0x1a0f7a,'y':_0x5adf36});}let _0x499ba3=_0x5c053c<=0xa&&_0x986d7f?_0x986d7f['getConnectionInfo']()[_0x2e38fc(0x2f8)]:-0x1;if(_0x499ba3!==this['_highlightedSiteIndex']){for(let _0xf3834e of this['_connectionSiteObjects']){let _0x3115bd=_0xf3834e[_0x2e38fc(0x2d2)]();_0xf3834e[_0x2e38fc(0x2e9)](_0x3115bd[_0x2e38fc(0x2f8)]===_0x499ba3);}this['_highlightedSiteIndex']=_0x499ba3;}if(_0x5c053c<=0xa&&_0x986d7f&&_0x2ec94c){let _0xfa08de=_0x986d7f['getConnectionInfo'](),_0x1a2490=this[_0x2e38fc(0x117)](_0xfa08de[_0x2e38fc(0x25a)],_0xfa08de['cxnIndex']);return{'shapeId':_0xfa08de[_0x2e38fc(0x25a)],'cxnIndex':_0xfa08de['cxnIndex'],'unitId':_0xfa08de[_0x2e38fc(0x151)],'subUnitId':_0xfa08de[_0x2e38fc(0x21f)],'worldPoint':_0x2ec94c,'angle':_0x1a2490};}return null;}[_0x25219a(0x117)](_0x4c0fd4,_0x23870e){const _0x30fc0e=_0x25219a;let _0x52d3b4=this[_0x30fc0e(0x124)]['getShapeModel'](this['_unitId'],this[_0x30fc0e(0x333)],_0x4c0fd4);if(!_0x52d3b4)return 0x0;let _0x55731e=this[_0x30fc0e(0x284)][_0x30fc0e(0x30c)]({'unitId':this[_0x30fc0e(0x1c5)],'subUnitId':this[_0x30fc0e(0x333)],'drawingId':_0x4c0fd4});if(!(_0x55731e!=null&&_0x55731e[_0x30fc0e(0x298)]))return 0x0;let {width:_0x4b2d1b=0x0,height:_0x407df8=0x0,flipX:_0x120ba6=!0x1,flipY:_0x514ff5=!0x1}=_0x55731e[_0x30fc0e(0x298)];_0x52d3b4[_0x30fc0e(0x256)]({'width':_0x4b2d1b,'height':_0x407df8});let _0x3ff231=_0x52d3b4[_0x30fc0e(0x201)]()[_0x30fc0e(0x24c)](_0x10e174=>_0x10e174[_0x30fc0e(0x278)]===_0x23870e);if(!_0x3ff231)return 0x0;let _0x5d15fc=_0x3ff231[_0x30fc0e(0x261)]/0xea60;return _0x120ba6&&(_0x5d15fc=0xb4-_0x5d15fc),_0x514ff5&&(_0x5d15fc=-_0x5d15fc),_0x5d15fc=(_0x5d15fc%0x168+0x168)%0x168,_0x5d15fc;}['_clearConnectionSites'](){const _0x2e3fd8=_0x25219a;for(let _0x42aa75 of this[_0x2e3fd8(0x308)])_0x42aa75[_0x2e3fd8(0x259)]();this[_0x2e3fd8(0x308)]=[],this[_0x2e3fd8(0xf9)]=-0x1;}[_0x25219a(0x259)](){const _0x5102ac=_0x25219a;this[_0x5102ac(0xdb)](),super[_0x5102ac(0x259)]();}};Nr=Z([X(0x1,_0x396ece(_0x471989)),X(0x2,_0x396ece(_0x492363)),X(0x3,_0x396ece(_0x6985f7))],Nr);let Pr=class extends _0x3ba2e2{constructor(_0x43d797,_0x531896,_0x3279e0,_0x3eac0d,_0xfa5376){const _0xc733a7=_0x25219a;super(),this[_0xc733a7(0x1b6)]=_0x43d797,this[_0xc733a7(0x232)]=_0x531896,this[_0xc733a7(0x329)]=_0x3279e0,this[_0xc733a7(0x262)]=_0x3eac0d,this[_0xc733a7(0x152)]=_0xfa5376,Y(this,'_copyInfo',void 0x0),this[_0xc733a7(0x2d8)](),this[_0xc733a7(0x299)]();}get[_0x25219a(0x1fb)](){const _0x3b4e47=_0x25219a;return this[_0x3b4e47(0x329)][_0x3b4e47(0x21a)]();}[_0x25219a(0x299)](){const _0x3c97ad=_0x25219a;this['_groupCopyPasteController'][_0x3c97ad(0x20e)](({fromUnitId:_0x244376,fromSubUnitId:_0x1a3634,toUnitId:_0x48f3fc,toSubUnitId:_0x6afdfc,idMap:_0x3a5ac8})=>{const _0x451202=_0x3c97ad;let _0x2e9f0e=[],_0x539195=[];for(let [_0x2a8f1d,_0x99040]of _0x3a5ac8['entries']()){let _0x1b6d61=this['_shapeService'][_0x451202(0x1f4)](_0x244376,_0x1a3634,_0x2a8f1d);if(!_0x1b6d61)continue;let _0x10c762=_0x1b6d61[_0x451202(0x16e)](),_0x28860c=JSON[_0x451202(0x336)](JSON[_0x451202(0x327)](_0x1b6d61['getShapeData']()));if(_0x28860c['relation']){var _0x2ab569,_0x1b705f;let _0x590e79=(_0x2ab569=_0x28860c['relation']['from'])==null?void 0x0:_0x2ab569[_0x451202(0x25a)],_0x34d317=(_0x1b705f=_0x28860c[_0x451202(0x2a7)]['to'])==null?void 0x0:_0x1b705f[_0x451202(0x25a)],_0x18a91a=!_0x590e79||_0x3a5ac8['has'](_0x590e79),_0x2e9a06=!_0x34d317||_0x3a5ac8['has'](_0x34d317);_0x18a91a&&_0x590e79&&_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]?_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]={..._0x28860c[_0x451202(0x2a7)][_0x451202(0x265)],'shapeId':_0x3a5ac8['get'](_0x590e79)}:_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]=void 0x0,_0x2e9a06&&_0x34d317&&_0x28860c[_0x451202(0x2a7)]['to']?_0x28860c['relation']['to']={..._0x28860c[_0x451202(0x2a7)]['to'],'shapeId':_0x3a5ac8[_0x451202(0x23e)](_0x34d317)}:_0x28860c[_0x451202(0x2a7)]['to']=void 0x0;}_0x2e9f0e[_0x451202(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040,'shapeType':_0x10c762,'shapeData':_0x28860c}}),_0x539195[_0x451202(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040}});}return{'redos':_0x2e9f0e,'undos':_0x539195};});}['_initCopyPaste'](){const _0x32fc15=_0x25219a;this[_0x32fc15(0x1b1)](this[_0x32fc15(0x232)][_0x32fc15(0x121)]({'id':_0x32fc15(0x1ee),'onBeforeCopy':(_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829)=>{const _0x58694b=_0x32fc15;this[_0x58694b(0x268)]=null;let _0x45c872=this[_0x58694b(0x1fb)];if(_0x45c872[_0x58694b(0x27a)]){let _0x21f5fc=_0x45c872[_0x58694b(0x291)](_0x343c8a=>_0x343c8a[_0x58694b(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x21f5fc[_0x58694b(0x27a)]===0x0)return;this[_0x58694b(0x268)]={'unitId':_0x1d8e28,'subUnitId':_0x67b073,'copyType':_0x35c829,'drawings':_0x21f5fc};}else this[_0x58694b(0x28f)](_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829);},'onPasteCells':(_0x5e5b48,_0x210df4,_0x1565e9,_0x2af5e2)=>{const _0x9276f4=_0x32fc15;if(!this[_0x9276f4(0x268)])return{'redos':[],'undos':[]};let {pasteType:_0x54b63f}=_0x2af5e2;return _0x54b63f===_0x339317[_0x9276f4(0x141)]?this[_0x9276f4(0x1e0)](_0x210df4,this[_0x9276f4(0x268)]['copyType']===_0x4cbf87[_0x9276f4(0x32a)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x398827=>this[_0x32fc15(0x268)]?this[_0x32fc15(0x1e0)](_0x398827,this['_copyInfo'][_0x32fc15(0x2ee)]===_0x4cbf87[_0x32fc15(0x32a)]):{'redos':[],'undos':[]}}));}[_0x25219a(0x28f)](_0x354138,_0xbc7b74,_0x306544,_0x4bdbee){const _0x21c7dd=_0x25219a;let _0x2ddc33=this[_0x21c7dd(0x1b6)][_0x21c7dd(0x22d)](_0x354138,_0xbc7b74);if(!_0x2ddc33)return;let _0x2d573e=_0x1a0dbd(_0x2ddc33,_0x306544);if(!_0x2d573e)return;let {startX:_0x14202c,endX:_0x230793,startY:_0x2296cc,endY:_0x33598b}=_0x2d573e,_0x331075=this['_sheetDrawingService'][_0x21c7dd(0x296)](_0x354138,_0xbc7b74),_0x49bc7b=this['_focusedDrawings'][_0x21c7dd(0x133)]();for(let [_0x20a798,_0x42eb95]of Object[_0x21c7dd(0x277)](_0x331075)){if(_0x42eb95['drawingType']!==_0x161136[_0x21c7dd(0x25c)])continue;let {transform:_0x11fc39}=_0x42eb95;if(!_0x11fc39)continue;let {left:_0x4fcd0e=0x0,top:_0x199ed2=0x0,width:_0x5a292b=0x0,height:_0x4e29af=0x0}=_0x11fc39;_0x14202c<=_0x4fcd0e&&_0x230793>=_0x4fcd0e+_0x5a292b&&_0x2296cc<=_0x199ed2&&_0x33598b>=_0x199ed2+_0x4e29af&&_0x49bc7b['push'](_0x42eb95);}_0x49bc7b['length']>0x0&&(this['_copyInfo']={'unitId':_0x354138,'subUnitId':_0xbc7b74,'copyType':_0x4bdbee,'copyRange':_0x306544,'drawings':_0x49bc7b});}[_0x25219a(0x1e0)](_0x36dcfa,_0x1578c9){const _0x54ff92=_0x25219a;let {unitId:_0x2e6df7,subUnitId:_0x3d4ae3,range:_0x169427}=_0x36dcfa,_0x52de35=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x2e6df7,_0x3d4ae3);if(!_0x52de35)return{'redos':[],'undos':[]};let _0x4be118=_0x58837b(_0x169427),{unitId:_0x534c6d,subUnitId:_0x1b8796,copyRange:_0x5866da,drawings:_0xaf5694}=this[_0x54ff92(0x268)],_0x45c35d=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x534c6d,_0x1b8796);if(!_0x45c35d)return{'redos':[],'undos':[]};let _0x52051f;if(!_0x5866da){let _0x8e5f53=0x1/0x0,_0x163da3=0x1/0x0;for(let _0x503365 of _0xaf5694){let {left:_0x41c799=0x0,top:_0x225b2a=0x0}=_0x503365[_0x54ff92(0x298)]??{};_0x41c799<_0x8e5f53&&(_0x8e5f53=_0x41c799),_0x225b2a<_0x163da3&&(_0x163da3=_0x225b2a);}_0x8e5f53!==0x1/0x0&&_0x163da3!==0x1/0x0&&(_0x52051f={'left':_0x8e5f53,'top':_0x163da3});}let _0x33605=new Map();if(!_0x1578c9){for(let _0x31b611 of _0xaf5694)_0x33605['set'](_0x31b611[_0x54ff92(0x2c2)],_0x44c0e2());}let _0x2ff846=[],_0x2f2202=[];for(let _0x48998f of _0xaf5694){let {drawingId:_0x152b26,transform:_0x20b1b1,sheetTransform:_0x3f9e83}=_0x48998f;if(!_0x20b1b1||!_0x3f9e83)continue;let _0x20b51e=this[_0x54ff92(0x309)]({'transform':_0x20b1b1,'sheetTransform':_0x3f9e83},{'skeleton':_0x45c35d,'range':_0x5866da},{'skeleton':_0x52de35,'range':_0x4be118},_0x52051f);if(_0x1578c9){let {redos:_0x3ae6cc,undos:_0x29a40c}=this[_0x54ff92(0x28b)]({'fromUnitId':_0x534c6d,'fromSubUnitId':_0x1b8796,'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e});_0x2ff846[_0x54ff92(0xfc)](..._0x3ae6cc),_0x2f2202['push'](..._0x29a40c);continue;}let {redos:_0x1601a7,undos:_0x541444}=this['_generateCopyPasteMutations']({'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e,'newDrawingId':_0x33605[_0x54ff92(0x23e)](_0x152b26),'idMap':_0x33605});_0x2ff846[_0x54ff92(0xfc)](..._0x1601a7),_0x2f2202[_0x54ff92(0xfc)](..._0x541444);}return{'redos':_0x2ff846,'undos':_0x2f2202};}[_0x25219a(0x28b)](_0x32881c){const _0x3fba68=_0x25219a;let {fromUnitId:_0x332f9a,fromSubUnitId:_0x17893d,toUnitId:_0x1a5b09,toSubUnitId:_0x121271,drawing:_0x59e16b,newTransforms:_0x4b507c}=_0x32881c,_0x980db5={..._0x59e16b,'unitId':_0x1a5b09,'subUnitId':_0x121271,'transform':_0x4b507c['transform'],'sheetTransform':_0x4b507c[_0x3fba68(0x2a1)]};if(_0x1a5b09===_0x332f9a&&_0x121271===_0x17893d){let {redo:_0x3f3e17,undo:_0x2e4d7f,objects:_0x59ef3e}=this[_0x3fba68(0x329)][_0x3fba68(0x14a)]([_0x980db5]);return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x3f3e17,'objects':_0x59ef3e}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x2e4d7f,'objects':_0x59ef3e}}]};}else{let _0x2dc92e=this[_0x3fba68(0x329)][_0x3fba68(0x24f)]([_0x59e16b]),_0x590011=this['_sheetDrawingService']['getBatchAddOp']([_0x980db5]),_0x236ced=this[_0x3fba68(0x262)]['getShapeModel'](_0x59e16b[_0x3fba68(0x151)],_0x59e16b['subUnitId'],_0x59e16b['drawingId']);if(!_0x236ced)return{'redos':[],'undos':[]};let _0x211bbb=_0x236ced[_0x3fba68(0x16e)](),_0x4a5d51=JSON[_0x3fba68(0x336)](JSON[_0x3fba68(0x327)](_0x236ced[_0x3fba68(0x23b)]()));return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x2dc92e['redo'],'objects':_0x2dc92e['objects']}},{'id':_0x30f07c['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)]}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x590011['redo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x2dc92e[_0x3fba68(0x23d)],'objects':_0x2dc92e[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x590011['undo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x30f07c['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x4fc491){const _0xc4e269=_0x25219a;let {toUnitId:_0x305f7a,toSubUnitId:_0x4c2d31,drawing:_0x400634,newTransforms:_0x3acf89,newDrawingId:_0x8726ad,idMap:_0x18fa67}=_0x4fc491,_0x3e3cb8={..._0x400634,'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'drawingId':_0x8726ad,'transform':_0x3acf89[_0xc4e269(0x298)],'sheetTransform':_0x3acf89['sheetTransform']},{redo:_0xb935d2,undo:_0x36430c,objects:_0x8045c6}=this[_0xc4e269(0x329)]['getBatchAddOp']([_0x3e3cb8]),_0x184411=this[_0xc4e269(0x262)][_0xc4e269(0x1f4)](_0x400634['unitId'],_0x400634[_0xc4e269(0x21f)],_0x400634[_0xc4e269(0x2c2)]);if(!_0x184411)return{'redos':[],'undos':[]};let _0x4c321e=_0x184411[_0xc4e269(0x16e)](),_0x469ddd=JSON['parse'](JSON[_0xc4e269(0x327)](_0x184411[_0xc4e269(0x23b)]()));if(_0x469ddd[_0xc4e269(0x2a7)]){var _0x21d83c,_0x4908cb;let _0xbf0314=(_0x21d83c=_0x469ddd['relation'][_0xc4e269(0x265)])==null?void 0x0:_0x21d83c[_0xc4e269(0x25a)],_0x74d41=(_0x4908cb=_0x469ddd[_0xc4e269(0x2a7)]['to'])==null?void 0x0:_0x4908cb[_0xc4e269(0x25a)],_0x5f330c=!_0xbf0314||_0x18fa67['has'](_0xbf0314),_0x4960eb=!_0x74d41||_0x18fa67[_0xc4e269(0x135)](_0x74d41);_0x5f330c&&_0xbf0314&&_0x469ddd['relation'][_0xc4e269(0x265)]?_0x469ddd[_0xc4e269(0x2a7)][_0xc4e269(0x265)]={..._0x469ddd[_0xc4e269(0x2a7)]['from'],'shapeId':_0x18fa67[_0xc4e269(0x23e)](_0xbf0314)}:_0x469ddd[_0xc4e269(0x2a7)]['from']=void 0x0,_0x4960eb&&_0x74d41&&_0x469ddd[_0xc4e269(0x2a7)]['to']?_0x469ddd['relation']['to']={..._0x469ddd[_0xc4e269(0x2a7)]['to'],'shapeId':_0x18fa67['get'](_0x74d41)}:_0x469ddd[_0xc4e269(0x2a7)]['to']=void 0x0;}return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x312)],'op':_0xb935d2,'objects':_0x8045c6}},{'id':_0x55e264['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad,'shapeType':_0x4c321e,'shapeData':_0x469ddd}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x1f5)],'op':_0x36430c,'objects':_0x8045c6}},{'id':_0x30f07c['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad}}]};}['_updateTransform'](_0x2a756e,_0x8ba472,_0x1cd81b,_0x2e42bf){const _0x497fea=_0x25219a;let {range:_0x238586,skeleton:_0x481441}=_0x8ba472,{range:_0x26a1af,skeleton:_0x475771}=_0x1cd81b,{transform:_0x25d96c,sheetTransform:_0x5d80df}=_0x2a756e,_0x32c65c={..._0x25d96c};if(_0x238586){let _0x189d87=_0x1a0dbd(_0x481441,_0x238586),_0x1c9164=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x189d87&&_0x1c9164){let _0x2113dd=_0x1c9164[_0x497fea(0x269)]-_0x189d87[_0x497fea(0x269)],_0x89a3e5=_0x1c9164[_0x497fea(0x303)]-_0x189d87[_0x497fea(0x303)];_0x32c65c[_0x497fea(0x242)]=(_0x32c65c[_0x497fea(0x242)]??0x0)+_0x2113dd,_0x32c65c['top']=(_0x32c65c['top']??0x0)+_0x89a3e5;}}else{let _0x45c1a9=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x2e42bf&&_0x45c1a9){let _0x4a986e=(_0x32c65c[_0x497fea(0x242)]??0x0)-_0x2e42bf[_0x497fea(0x242)],_0x4cb0f0=(_0x32c65c[_0x497fea(0x1e8)]??0x0)-_0x2e42bf[_0x497fea(0x1e8)];_0x32c65c['left']=_0x45c1a9[_0x497fea(0x269)]+_0x4a986e,_0x32c65c['top']=_0x45c1a9[_0x497fea(0x303)]+_0x4cb0f0;}else _0x32c65c[_0x497fea(0x242)]=_0x45c1a9==null?void 0x0:_0x45c1a9[_0x497fea(0x269)],_0x32c65c['top']=_0x45c1a9==null?void 0x0:_0x45c1a9['startY'];}return{'transform':_0x32c65c,'sheetTransform':_0x2b6fe(_0x32c65c,_0x475771)??_0x5d80df};}};Pr=Z([X(0x0,_0x396ece(_0x587a33)),X(0x1,_0x396ece(_0x1249ad)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x3ed6d2))],Pr);var Fr=class extends _0x1ac658{constructor(_0x5908e7,_0x28a821){const _0x54840f=_0x25219a;super(_0x5908e7,_0x28a821),Y(this,_0x54840f(0x13e),null),Y(this,_0x54840f(0x2d4),null),Y(this,_0x54840f(0x1c5),null),Y(this,_0x54840f(0x333),null),Y(this,_0x54840f(0x1e3),!0x1),_0x28a821&&this[_0x54840f(0x2f6)](_0x28a821);}['getDrawingSearch'](){const _0x4cc41a=_0x25219a;return{'unitId':this[_0x4cc41a(0x1c5)],'subUnitId':this[_0x4cc41a(0x333)],'drawingId':this[_0x4cc41a(0x13e)]};}[_0x25219a(0x2f6)](_0x227ab1){const _0x3bd6b4=_0x25219a;_0x227ab1['shapeId']!==void 0x0&&(this[_0x3bd6b4(0x13e)]=_0x227ab1['shapeId']),_0x227ab1['unitId']!==void 0x0&&(this[_0x3bd6b4(0x1c5)]=_0x227ab1[_0x3bd6b4(0x151)]),_0x227ab1[_0x3bd6b4(0x21f)]!==void 0x0&&(this['_subUnitId']=_0x227ab1[_0x3bd6b4(0x21f)]),_0x227ab1['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x227ab1[_0x3bd6b4(0x2ad)]),this['transformByState']({'width':_0x227ab1['width'],'height':_0x227ab1['height']});}[_0x25219a(0x183)](_0x137392){const _0x15b8e1=_0x25219a;_0x18400a[_0x15b8e1(0x230)](_0x137392,{'radius':_0x373ebe[_0x15b8e1(0x1ea)],'fill':_0x373ebe[_0x15b8e1(0x27c)],'stroke':_0x373ebe[_0x15b8e1(0x2d7)],'strokeWidth':_0x373ebe[_0x15b8e1(0x136)],'evented':!0x0});}};let Ir=class extends _0x3ba2e2{constructor(_0x204e92,_0x7de9ee,_0x3eb343,_0x5bba14,_0x5bf968,_0x2dc29f,_0x566533,_0x18dfe2){const _0x5c2d3d=_0x25219a;super(),this[_0x5c2d3d(0x316)]=_0x204e92,this[_0x5c2d3d(0x2cc)]=_0x7de9ee,this[_0x5c2d3d(0x145)]=_0x3eb343,this['_drawingManagerService']=_0x5bba14,this[_0x5c2d3d(0xfe)]=_0x5bf968,this[_0x5c2d3d(0x124)]=_0x2dc29f,this['_sheetShapeAdjustController']=_0x566533,this[_0x5c2d3d(0x2ec)]=_0x18dfe2,Y(this,_0x5c2d3d(0x25d),void 0x0),Y(this,_0x5c2d3d(0x1c5),void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,_0x5c2d3d(0x1bb),[]),Y(this,_0x5c2d3d(0x247),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x5c2d3d(0x16c),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0x5c2d3d(0x30d),!0x1),Y(this,'_cxtHandlerPointerMove',void 0x0),Y(this,'_cxtHandlerPointerUp',void 0x0),Y(this,'_currentConnectionTarget',null),this[_0x5c2d3d(0x27e)]();}[_0x25219a(0x27e)](){const _0x697764=_0x25219a;this[_0x697764(0x132)](),this[_0x697764(0x231)]();}[_0x25219a(0x2c4)](){const _0x39aee3=_0x25219a;if(!this[_0x39aee3(0x1c5)]||!this[_0x39aee3(0x333)]||!this['_activeShapeId'])return;let _0x1f1c91={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x2778c5}=this['_drawingManagerService']['getDrawingByParam'](_0x1f1c91);if(_0x2778c5)return{'left':_0x2778c5['left']||0x0,'top':_0x2778c5[_0x39aee3(0x1e8)]||0x0,'width':_0x2778c5[_0x39aee3(0x11f)]||0x0,'height':_0x2778c5[_0x39aee3(0x270)]||0x0,'flipX':_0x2778c5[_0x39aee3(0x275)]||!0x1,'flipY':_0x2778c5[_0x39aee3(0x1a3)]||!0x1,'angle':_0x2778c5[_0x39aee3(0x26e)]};}['_addShapeConnectorHandlerObjects'](){const _0x47445c=_0x25219a;if(this[_0x47445c(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x47445c(0x25d)]===void 0x0)return;let _0x3ab442=this[_0x47445c(0x145)][_0x47445c(0x1dd)](this[_0x47445c(0x1c5)]);if(!_0x3ab442||!_0x3ab442[_0x47445c(0xe3)](_0x319c9a)['getCurrentSkeleton']())return;let {scene:_0x47d543}=_0x3ab442,_0x4c9b99=this['_getDrawingRect']();if(!_0x4c9b99)return;let _0x54db03=this[_0x47445c(0x124)][_0x47445c(0x1f4)](this[_0x47445c(0x1c5)],this[_0x47445c(0x333)],this['_activeShapeId']);if(!_0x54db03||!_0x41a954(_0x54db03['getShapeType']()))return;let _0xde7a7f=_0x54db03['getConnectorLinePoints']();if(_0xde7a7f['length']<0x2)return;let _0x47d234=new _0xd7d9f3(_0x4c9b99),_0xc6d4cc=_0xde7a7f[0x0],_0x257f65=_0xde7a7f[_0xde7a7f[_0x47445c(0x27a)]-0x1],_0x42a9cd=_0x47d234[_0x47445c(0x16d)](_0xc6d4cc),_0x37d845=_0x47d234[_0x47445c(0x16d)](_0x257f65);this[_0x47445c(0x157)](_0x47d543,{..._0x42a9cd},!0x0),this[_0x47445c(0x157)](_0x47d543,{..._0x37d845},!0x1);}[_0x25219a(0x157)](_0x1d2cbc,_0x8069be,_0x257463){const _0x3a03a4=_0x25219a;if(this[_0x3a03a4(0x25d)]===void 0x0||this[_0x3a03a4(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2bad62=_0x3a03a4(0x2de)+this[_0x3a03a4(0x1c5)]+'-'+this[_0x3a03a4(0x333)]+'-'+this[_0x3a03a4(0x25d)]+'-'+(_0x257463?_0x3a03a4(0x10a):'end'),_0xfbe54b=_0x1d2cbc[_0x3a03a4(0x15b)](_0x2bad62);if(_0xfbe54b){_0xfbe54b[_0x3a03a4(0xfd)]({'left':_0x8069be['x']-_0x373ebe['cxnPointRadius'],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius']});return;}let _0x2441b6=new Fr(_0x2bad62,{'left':_0x8069be['x']-_0x373ebe[_0x3a03a4(0x1ea)],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius'],'shapeId':this[_0x3a03a4(0x25d)],'unitId':this[_0x3a03a4(0x1c5)],'subUnitId':this[_0x3a03a4(0x333)],'isStartConnectorPoint':_0x257463,'width':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'height':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this[_0x3a03a4(0x1bb)][_0x3a03a4(0xfc)](_0x2441b6),this['_attachConnectorObjectEvent'](_0x2441b6,_0x1d2cbc,_0x257463),_0x1d2cbc[_0x3a03a4(0xe6)](_0x2441b6,_0x22b4b7+0x1);}['_getScrollInfo'](_0x3c1c6f,_0x2c64e2){const _0x30a165=_0x25219a;var _0x2f43ed;let _0x1b17ad={'x':0x0,'y':0x0};if(!_0x3c1c6f||!_0x2c64e2)return _0x1b17ad;let _0x52f633=this[_0x30a165(0x145)][_0x30a165(0x1dd)](_0x3c1c6f);if(!_0x52f633||!_0x52f633['with'](_0x319c9a)['getSkeleton'](_0x2c64e2))return _0x1b17ad;let _0x1d3b30=_0x52f633[_0x30a165(0xe3)](_0x22e443),_0x3ab2bf=_0x1d3b30==null?void 0x0:_0x1d3b30[_0x30a165(0x158)]();if(!_0x3ab2bf)return _0x1b17ad;let _0x1f9e9c=(_0x2f43ed=this['_univerInstanceService'][_0x30a165(0x11e)](_0x3c1c6f))==null?void 0x0:_0x2f43ed[_0x30a165(0x330)](_0x2c64e2);if(!_0x1f9e9c)return _0x1b17ad;let _0x50bc10=_0x4f0d4b(_0x3ab2bf[_0x30a165(0x1cc)],_0x3ab2bf[_0x30a165(0x18c)],_0x52f633[_0x30a165(0x19b)],_0x1f9e9c);return _0x50bc10?{'x':_0x50bc10['viewportScrollX'],'y':_0x50bc10[_0x30a165(0x24b)]}:_0x1b17ad;}['_getZoomRatio'](_0x543ade,_0x4710a5){const _0x96baf6=_0x25219a;var _0xc8808b;let _0x8fbb8f=(_0xc8808b=this['_univerInstanceService'][_0x96baf6(0x11e)](_0x543ade))==null?void 0x0:_0xc8808b[_0x96baf6(0x330)](_0x4710a5);return(_0x8fbb8f==null?void 0x0:_0x8fbb8f[_0x96baf6(0x310)]())??0x1;}[_0x25219a(0x331)](_0x11a052,_0x34a837,_0x4d9f41,_0x3e01a3,_0x371a3e){const _0x37b712=_0x25219a;this['_cxtHandlerPointerMove'][_0x37b712(0x15a)](),this[_0x37b712(0x205)][_0x37b712(0x15a)](),this[_0x37b712(0x1a9)][_0x37b712(0x10b)]();let _0x3c351c=this['_currentConnectionTarget'];this[_0x37b712(0x2ec)][_0x37b712(0xf8)]();let _0x4d97f0=this[_0x37b712(0x314)](this['_unitId'],this['_subUnitId']),_0x2a622e=this['_getZoomRatio'](this[_0x37b712(0x1c5)],this['_subUnitId']),_0x15aef5={'x':_0x4d9f41['offsetX']/_0x2a622e+_0x4d97f0['x'],'y':_0x4d9f41[_0x37b712(0x114)]/_0x2a622e+_0x4d97f0['y']},_0x18058b=_0x3c351c?_0x3c351c[_0x37b712(0x30a)]:_0x15aef5,_0x337393=_0x3e01a3?this[_0x37b712(0x16c)][_0x37b712(0x27b)]():this[_0x37b712(0x16c)][_0x37b712(0x1d7)](),_0x254984=this[_0x37b712(0x16c)]['getShapeType']();_0x337393?this[_0x37b712(0x2a5)](_0x337393,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e):this[_0x37b712(0x105)](_0x34a837,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e,_0x254984),this[_0x37b712(0x338)]=!0x1,this[_0x37b712(0x30d)]=!0x1,this[_0x37b712(0x165)]=null,_0x11a052[_0x37b712(0xfa)]();}[_0x25219a(0x105)](_0x53ad17,_0x1126df,_0x32c2c9,_0x5b18b5,_0x5b724c,_0x9486e5){const _0x22279b=_0x25219a;let _0x461686=_0x9486e5===_0x6bfff9[_0x22279b(0x120)]||_0x9486e5===_0x6bfff9[_0x22279b(0x25e)],_0x3f55c8=_0x32c2c9?_0x1126df:_0x53ad17,_0x16e88b=_0x32c2c9?_0x53ad17:_0x1126df,_0x3a2603=this[_0x22279b(0x16c)][_0x22279b(0x175)](),_0x59b51f=_0x5ad544(this['_activeShapeModel'][_0x22279b(0x16e)]()),_0x59e4ef=_0xd7d9f3[_0x22279b(0x2fa)](_0x3a2603,_0x59b51f),_0x4e17d9=_0x461686?_0xd7d9f3[_0x22279b(0x1f7)](_0x3f55c8,_0x16e88b):_0xd7d9f3[_0x22279b(0x276)](_0x53ad17,_0x1126df,_0x32c2c9,_0x59e4ef);_0x5b18b5?this['_executeConnectionCommand'](_0x4e17d9,_0x5b18b5,_0x32c2c9,_0x5b724c):this[_0x22279b(0x109)](_0x4e17d9,_0x5b724c);}[_0x25219a(0x2a5)](_0x52f7c0,_0x5e4dfd,_0x12c7ad,_0x542d4c,_0x88a85b){const _0x407707=_0x25219a;let _0x38615b=this[_0x407707(0x280)](_0x52f7c0);if(!_0x38615b)return;let _0x439af3=_0x542d4c?_0x542d4c[_0x407707(0x26e)]:this[_0x407707(0x1bd)](_0x38615b[_0x407707(0x170)],_0x5e4dfd),_0x214629;if(_0x542d4c){let _0x496754=this[_0x407707(0x284)]['getDrawingByParam']({'unitId':_0x542d4c['unitId'],'subUnitId':_0x542d4c[_0x407707(0x21f)],'drawingId':_0x542d4c[_0x407707(0x25a)]});if(_0x496754!=null&&_0x496754[_0x407707(0x298)]){let {left:_0xb976a8=0x0,top:_0x5a6e85=0x0,width:_0x39729a=0x0,height:_0x4d9b81=0x0,angle:_0x46085e}=_0x496754[_0x407707(0x298)];_0x214629=_0x10ab2a({'left':_0xb976a8,'top':_0x5a6e85,'width':_0x39729a,'height':_0x4d9b81},_0x46085e||0x0);}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};let _0x1eb17c={'point':_0x5e4dfd,'angle':_0x439af3,'bounds':_0x214629},_0x58c2a3=_0x12c7ad?_0x1eb17c:_0x38615b,_0x2fd6aa=_0x12c7ad?_0x38615b:_0x1eb17c,_0x5ef655=this[_0x407707(0x16c)][_0x407707(0x16e)](),_0x49cdc1=_0x5d6f7b(_0x58c2a3,_0x2fd6aa,_0x5ef655);this['_activeShapeModel'][_0x407707(0x1df)]();let _0x38fa3d=_0x47fdde(_0x49cdc1,_0x5ef655);_0x542d4c?this[_0x407707(0x319)](_0x38fa3d,_0x542d4c,_0x52f7c0,_0x12c7ad,_0x88a85b):this[_0x407707(0x23a)](_0x38fa3d,_0x52f7c0,_0x12c7ad,_0x88a85b);}[_0x25219a(0x156)](_0x3c1e60,_0x49ca5b,_0x112027,_0x21799e){const _0x4b75bd=_0x25219a;let _0x2a5a40=this[_0x4b75bd(0x16c)][_0x4b75bd(0x23b)]()[_0x4b75bd(0x2a7)],_0x411046={..._0x2a5a40},_0x5e99dd={'shapeId':_0x49ca5b[_0x4b75bd(0x25a)],'cxnIndex':_0x49ca5b[_0x4b75bd(0x2f8)]};_0x112027?_0x411046[_0x4b75bd(0x265)]=_0x5e99dd:_0x411046['to']=_0x5e99dd;let _0x5a423e=this[_0x4b75bd(0x16c)][_0x4b75bd(0x16e)](),_0x5a2759=_0x47fdde(_0x3c1e60['worldPoints'],_0x5a423e),_0x3739f9={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x3c1e60['worldRect'][_0x4b75bd(0x11f)],'height':_0x3c1e60['worldRect'][_0x4b75bd(0x270)],'left':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x242)],'top':_0x3c1e60['worldRect'][_0x4b75bd(0x1e8)],'flipX':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x275)]||!0x1,'flipY':_0x3c1e60[_0x4b75bd(0x138)]['flipY']||!0x1,'newAdjustValues':_0x5a2759[_0x4b75bd(0x344)],'oldAdjustValues':_0x21799e,'oldRelation':_0x2a5a40,'newRelation':_0x411046,'newLineType':_0x5a2759[_0x4b75bd(0x2af)],'oldLineType':_0x5a423e};this['_commandService'][_0x4b75bd(0x1a6)](_0xdc15a6['id'],_0x3739f9);}[_0x25219a(0x109)](_0xa099ea,_0x41ead0){const _0x4857d0=_0x25219a;let _0x20ff3a=this['_activeShapeModel'][_0x4857d0(0x16e)](),_0x3f2087=_0x47fdde(_0xa099ea[_0x4857d0(0x1b2)],_0x20ff3a),_0x491785={'unitId':this[_0x4857d0(0x1c5)],'subUnitId':this[_0x4857d0(0x333)],'shapeId':this['_activeShapeId'],'width':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x11f)],'height':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x270)],'left':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x242)],'top':_0xa099ea['worldRect'][_0x4857d0(0x1e8)],'flipX':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x275)]||!0x1,'flipY':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x1a3)]||!0x1,'angle':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x26e)]||0x0,'newAdjustValues':_0x3f2087['adjustValues'],'oldAdjustValues':_0x41ead0,'newLineType':_0x3f2087[_0x4857d0(0x2af)],'oldLineType':_0x20ff3a};this[_0x4857d0(0x2cc)][_0x4857d0(0x1a6)](_0xa01182['id'],_0x491785);}[_0x25219a(0x319)](_0x5d61b0,_0x28ab68,_0x2c7981,_0xd6a8e7,_0x2b9d16){const _0x5967fe=_0x25219a;let _0x2ebe2b=this[_0x5967fe(0x16c)]['getShapeData']()['relation'],_0x5f0b59={..._0x2ebe2b},_0x309cce={'shapeId':_0x28ab68[_0x5967fe(0x25a)],'cxnIndex':_0x28ab68[_0x5967fe(0x2f8)]};_0xd6a8e7?(_0x5f0b59[_0x5967fe(0x265)]=_0x309cce,_0x5f0b59['to']=_0x2c7981):(_0x5f0b59[_0x5967fe(0x265)]=_0x2c7981,_0x5f0b59['to']=_0x309cce);let _0x283691={'unitId':this[_0x5967fe(0x1c5)],'subUnitId':this[_0x5967fe(0x333)],'connectorShapeId':this['_activeShapeId'],'width':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x11f)],'height':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x270)],'left':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x242)],'top':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x1e8)],'flipX':_0x5d61b0['worldRect'][_0x5967fe(0x275)]||!0x1,'flipY':_0x5d61b0[_0x5967fe(0x138)]['flipY']||!0x1,'oldAdjustValues':_0x2b9d16,'newAdjustValues':_0x5d61b0[_0x5967fe(0x344)],'newLineType':_0x5d61b0['lineType'],'rotation':_0x5d61b0[_0x5967fe(0xee)],'oldRelation':_0x2ebe2b,'newRelation':_0x5f0b59};this[_0x5967fe(0x2cc)][_0x5967fe(0x1a6)](_0xdc15a6['id'],_0x283691);}[_0x25219a(0x23a)](_0x364b01,_0x1bef99,_0x1cc9e3,_0x5835ab){const _0x1b710e=_0x25219a;let _0x2bc943=this['_activeShapeModel'][_0x1b710e(0x23b)]()['relation'],_0x35a0a3={};_0x1cc9e3?(_0x35a0a3['to']=_0x1bef99,_0x35a0a3[_0x1b710e(0x265)]=void 0x0):(_0x35a0a3[_0x1b710e(0x265)]=_0x1bef99,_0x35a0a3['to']=void 0x0);let _0x3c4da8={'unitId':this[_0x1b710e(0x1c5)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1b710e(0x25d)],'width':_0x364b01['worldRect'][_0x1b710e(0x11f)],'height':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x270)],'left':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x242)],'top':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1e8)],'flipX':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x275)]||!0x1,'flipY':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1a3)]||!0x1,'oldAdjustValues':_0x5835ab,'newAdjustValues':_0x364b01[_0x1b710e(0x344)],'newLineType':_0x364b01[_0x1b710e(0x2af)],'rotation':_0x364b01[_0x1b710e(0xee)],'oldRelation':_0x2bc943,'newRelation':_0x35a0a3};this[_0x1b710e(0x2cc)][_0x1b710e(0x1a6)](_0xdc15a6['id'],_0x3c4da8);}[_0x25219a(0x184)](_0x2c0497,_0x1e537d,_0x940dd4){const _0x471909=_0x25219a;this[_0x471909(0x1b1)](_0x2388cf(_0x2c0497[_0x471909(0x18e)][_0x471909(0x1ab)]((_0x28689f,_0x4c9afb)=>{const _0x2613d4=_0x471909;let _0x4f7034=_0x2c0497[_0x2613d4(0x198)]();if(this[_0x2613d4(0x16c)]=this[_0x2613d4(0x124)][_0x2613d4(0x1f4)](_0x4f7034['unitId'],_0x4f7034[_0x2613d4(0x21f)],_0x4f7034[_0x2613d4(0x2c2)]),!this[_0x2613d4(0x16c)])return;let _0x1ad11={};this[_0x2613d4(0x16c)][_0x2613d4(0x2ea)]()['forEach'](_0xb6304=>{const _0x51ed46=_0x2613d4;let _0x25153a=this[_0x51ed46(0x16c)][_0x51ed46(0x19f)](_0xb6304);_0x25153a!==void 0x0&&(_0x1ad11[_0xb6304]=_0x25153a);});let _0x5c277c=this[_0x2613d4(0x2c4)]();if(!_0x5c277c)return;this[_0x2613d4(0x247)]={..._0x5c277c};let _0x178282=new _0xd7d9f3(this['_baseDrawingRect']),_0x4d48d7=_0x566164({'unitId':this[_0x2613d4(0x1c5)],'subUnitId':this[_0x2613d4(0x333)],'drawingId':this[_0x2613d4(0x25d)]}),_0x5e7b02=_0x1e537d[_0x2613d4(0x15b)](_0x4d48d7);this['_isConnecting']=!0x0,_0x1e537d['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x2613d4(0x149)](_0x1e537d,this[_0x2613d4(0x1c5)],this[_0x2613d4(0x333)],this['_activeShapeId']),this[_0x2613d4(0x165)]=null;let _0x3a04b7=this[_0x2613d4(0x16c)]['getConnectorLinePoints'](),_0x18850e=_0x3a04b7[0x0],_0x46f1d5=_0x3a04b7[_0x3a04b7['length']-0x1],_0x3a438f=_0x940dd4?_0x178282[_0x2613d4(0x16d)](_0x46f1d5):_0x178282[_0x2613d4(0x16d)](_0x18850e);this['_cxtHandlerPointerMove']=_0x1e537d[_0x2613d4(0x131)][_0x2613d4(0x1ab)]((_0x21763b,_0x23257e)=>{const _0x2391dd=_0x2613d4;if(!this[_0x2391dd(0x338)]||!this[_0x2391dd(0x16c)])return;this['_hasReset']||=(this[_0x2391dd(0x1a9)][_0x2391dd(0x2e1)](),this[_0x2391dd(0x16c)][_0x2391dd(0x1c2)](),!0x0);let _0x39024c=this[_0x2391dd(0x314)](this[_0x2391dd(0x1c5)],this[_0x2391dd(0x333)]),_0x47dfa9=this[_0x2391dd(0x1aa)](this[_0x2391dd(0x1c5)],this['_subUnitId']),_0x19494e={'x':_0x21763b['offsetX']/_0x47dfa9+_0x39024c['x'],'y':_0x21763b[_0x2391dd(0x114)]/_0x47dfa9+_0x39024c['y']},_0x244225=this[_0x2391dd(0x2ec)][_0x2391dd(0x126)](_0x19494e);if(_0x244225){let {shapeId:_0x3e85e5,unitId:_0x5e92d5,subUnitId:_0x3b1d08}=_0x244225;if(_0x3e85e5&&_0x5e92d5&&_0x3b1d08){let _0x4ba2da=_0x566164({'unitId':_0x5e92d5,'subUnitId':_0x3b1d08,'drawingId':_0x3e85e5});_0x244225[_0x2391dd(0x26e)]=(_0x1e537d[_0x2391dd(0x15b)](_0x4ba2da)['angle']||0x0)+_0x244225[_0x2391dd(0x26e)];}}this[_0x2391dd(0x165)]=_0x244225;let _0x20a456=_0x940dd4?this[_0x2391dd(0x16c)][_0x2391dd(0x27b)]():this['_activeShapeModel'][_0x2391dd(0x1d7)]();if(_0x20a456){this[_0x2391dd(0x1ed)](_0x20a456,_0x19494e,_0x940dd4,_0x5e7b02,_0x2c0497);return;}this[_0x2391dd(0xf1)](_0x19494e,_0x3a438f,_0x940dd4,_0x5e7b02,_0x2c0497);}),this[_0x2613d4(0x205)]=_0x1e537d['onPointerUp$']['subscribeEvent']((_0x510b28,_0x4b1e98)=>{this['_handleConnectorPointerUp'](_0x1e537d,_0x3a438f,_0x510b28,_0x940dd4,_0x1ad11);}),_0x4c9afb[_0x2613d4(0x193)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x26e48c,_0x2aaf28,_0x3e95a2){const _0x11a564=_0x25219a;let _0x447f9b=this[_0x11a564(0x124)][_0x11a564(0x100)](_0x26e48c,_0x2aaf28,_0x3e95a2);if(!_0x447f9b||_0x447f9b[_0x11a564(0x27a)]===0x0)return;let _0x3f9e82=this['_renderManagerService'][_0x11a564(0x1dd)](_0x26e48c);if(!_0x3f9e82)return;let {scene:_0x1137b7}=_0x3f9e82;for(let _0x26e402 of _0x447f9b){let _0x263bad=_0x26e402[_0x11a564(0x287)],_0x5b6e97=this[_0x11a564(0x124)][_0x11a564(0x1f4)](_0x26e48c,_0x2aaf28,_0x263bad);if(!_0x5b6e97)continue;let _0x39ddb0=_0x5b6e97[_0x11a564(0x1d7)](),_0x464b90=_0x5b6e97['getEndConnectInfo'](),_0x411568=(_0x39ddb0==null?void 0x0:_0x39ddb0[_0x11a564(0x25a)])===_0x3e95a2,_0x2174ef=_0x566164({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad}),_0x2ad164=_0x1137b7[_0x11a564(0x15b)](_0x2174ef);if(!_0x2ad164)continue;let _0x3046f8=this[_0x11a564(0x284)][_0x11a564(0x30c)]({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad});_0x3046f8!=null&&_0x3046f8[_0x11a564(0x298)]&&(_0x39ddb0&&_0x464b90?this[_0x11a564(0x19a)](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x39ddb0,_0x464b90,_0x2ad164):this['_moveConnectorWithShape'](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x411568?_0x39ddb0:_0x464b90,_0x411568,_0x3046f8,_0x2ad164));}}[_0x25219a(0x19a)](_0x255b8e,_0x145a8a,_0x5777ef,_0x19b840,_0x1cbcf2,_0x4ff4c5,_0x54717e){const _0x5f4816=_0x25219a;let _0x335f6b=this[_0x5f4816(0x1c5)],_0xb2e3bb=this[_0x5f4816(0x333)];this[_0x5f4816(0x1c5)]=_0x255b8e,this[_0x5f4816(0x333)]=_0x145a8a;let _0x37675c=this['_getConnectPointInfo'](_0x1cbcf2),_0x13015b=this[_0x5f4816(0x280)](_0x4ff4c5);if(this[_0x5f4816(0x1c5)]=_0x335f6b,this[_0x5f4816(0x333)]=_0xb2e3bb,!_0x37675c||!_0x13015b)return;let _0x5a4437=_0x19b840[_0x5f4816(0x16e)](),_0x2a02a7=_0x5d6f7b(_0x37675c,_0x13015b,_0x5a4437);_0x2a02a7&&_0x19b840['updateLinePoints'](_0x2a02a7);let _0x3b543d=_0x47fdde(_0x2a02a7,_0x5a4437);_0x3b543d[_0x5f4816(0x2af)]!==_0x5a4437&&_0x19b840[_0x5f4816(0x2ff)](_0x3b543d[_0x5f4816(0x2af)]),_0x19b840[_0x5f4816(0x1c2)]();for(let [_0x1a0220,_0x1a6582]of Object['entries'](_0x3b543d[_0x5f4816(0x344)]))_0x19b840[_0x5f4816(0x2cf)](_0x1a0220,_0x1a6582);_0x19b840[_0x5f4816(0x256)]({'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)]}),_0x54717e['transformByState']({'flipX':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x275)],'flipY':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1a3)],'left':_0x3b543d[_0x5f4816(0x138)]['left'],'top':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1e8)],'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)],'angle':_0x3b543d[_0x5f4816(0xee)]}),_0x19b840[_0x5f4816(0x1df)]();}['_moveConnectorWithShape'](_0x5236fa,_0x3b1fde,_0x5a7083,_0x13cce6,_0x1221ae,_0x5b902b,_0x33f3fa,_0x4b303e){const _0x21aae7=_0x25219a;let _0x2ca978=this[_0x21aae7(0x1c5)],_0x579a5a=this[_0x21aae7(0x333)];this['_unitId']=_0x5236fa,this[_0x21aae7(0x333)]=_0x3b1fde;let _0x2a8f1e=this[_0x21aae7(0x280)](_0x1221ae);if(this[_0x21aae7(0x1c5)]=_0x2ca978,this['_subUnitId']=_0x579a5a,!_0x2a8f1e)return;let {left:_0x2ea6af=0x0,top:_0x16cd90=0x0,width:_0xcd83f=0x0,height:_0x4a79c5=0x0,flipX:_0x28b09a=!0x1,flipY:_0x3593e0=!0x1}=_0x33f3fa[_0x21aae7(0x298)],_0x206fd3=_0x13cce6[_0x21aae7(0x175)]();if(_0x206fd3[_0x21aae7(0x27a)]<0x2)return;let _0x24062a=new _0xd7d9f3({'left':_0x2ea6af,'top':_0x16cd90,'width':_0xcd83f,'height':_0x4a79c5,'flipX':_0x28b09a,'flipY':_0x3593e0}),_0x21d7f3=_0x5b902b?_0x206fd3[_0x206fd3[_0x21aae7(0x27a)]-0x1]:_0x206fd3[0x0],_0x35f161=_0x24062a[_0x21aae7(0x16d)](_0x21d7f3),_0x2576ff=_0xd7d9f3[_0x21aae7(0x276)](_0x35f161,_0x2a8f1e['point'],!_0x5b902b);_0x4b303e['transformByState']({'flipX':_0x2576ff['worldRect'][_0x21aae7(0x275)],'flipY':_0x2576ff[_0x21aae7(0x138)]['flipY'],'left':_0x2576ff['worldRect'][_0x21aae7(0x242)],'top':_0x2576ff[_0x21aae7(0x138)]['top'],'width':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x11f)],'height':_0x2576ff[_0x21aae7(0x138)]['height'],'angle':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x26e)]}),_0x4b303e[_0x21aae7(0x154)](!0x0);}[_0x25219a(0x14d)](){const _0x581b8a=_0x25219a;this[_0x581b8a(0x1bb)][_0x581b8a(0x27a)]!==0x0&&(this['_connectorObjects'][_0x581b8a(0x162)](_0xf754b3=>{_0xf754b3['dispose']();}),this[_0x581b8a(0x1bb)]=[]);}[_0x25219a(0x231)](){const _0x509c6b=_0x25219a;let _0x6dc327=this[_0x509c6b(0xfe)][_0x509c6b(0x1ac)](_0x2e857c['UNIVER_SHEET']);this['disposeWithMe'](_0x6dc327['pipe'](_0x54e619(_0x5bbc68=>_0x5bbc68?_0x5bbc68[_0x509c6b(0x263)][_0x509c6b(0x17c)](_0x54e619(_0x37a99a=>{const _0x500366=_0x509c6b;if(!_0x37a99a)return _0x1997e0;let _0x5b99da=_0x5bbc68['getUnitId'](),_0x344961=this[_0x500366(0x145)][_0x500366(0x1dd)](_0x5b99da),_0x98910b=_0x344961==null?void 0x0:_0x344961[_0x500366(0x19b)];return _0x98910b?_0x36ada1(_0x98910b):_0x1997e0;})):_0x1997e0))[_0x509c6b(0x1a5)](_0x3ffb21=>{const _0x479a02=_0x509c6b;let _0x95690c=_0x3ffb21[_0x479a02(0x253)]();this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x131)][_0x479a02(0x1ab)](_0x48281e=>{const _0x1c63aa=_0x479a02;this[_0x1c63aa(0x2ef)]&&this['_activeShapeId']&&this[_0x1c63aa(0x14d)]();})),this[_0x479a02(0x1b1)](_0x95690c['changeStart$'][_0x479a02(0x1a5)](_0x3f2969=>{const _0xa07848=_0x479a02;let {objects:_0x44e0a6}=_0x3f2969;this['_clearShapeConnectorHandlerObjects'](),_0x44e0a6!==null&&_0x44e0a6[_0xa07848(0x32f)]===0x1&&_0x44e0a6['values']()[_0xa07848(0x32d)]()[_0xa07848(0x335)]instanceof Ln&&(this[_0xa07848(0x2ef)]=!0x0);})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x155)][_0x479a02(0x1a5)](_0x3e23ec=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x2fc)]['subscribeEvent'](()=>{const _0x372ea7=_0x479a02;this[_0x372ea7(0x2ef)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x313)]['subscribe'](()=>{const _0x5d835e=_0x479a02;this['_unitId']&&this[_0x5d835e(0x333)]&&this[_0x5d835e(0x25d)]&&this[_0x5d835e(0x284)][_0x5d835e(0x30c)]({'unitId':this[_0x5d835e(0x1c5)],'subUnitId':this[_0x5d835e(0x333)],'drawingId':this[_0x5d835e(0x25d)]})&&(this[_0x5d835e(0x14d)](),this[_0x5d835e(0x210)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x10c79a=_0x25219a;this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)]['focus$'][_0x10c79a(0x1a5)](_0x304bef=>{const _0x1d4f72=_0x10c79a;if(_0x304bef['length']===0x1){let _0x3dcccc=_0x304bef[0x0];if(_0x3dcccc[_0x1d4f72(0x2b3)]===_0x161136['DRAWING_SHAPE']){let _0x3a5de4=this[_0x1d4f72(0x124)][_0x1d4f72(0x1f4)](_0x3dcccc[_0x1d4f72(0x151)],_0x3dcccc[_0x1d4f72(0x21f)],_0x3dcccc['drawingId']);if(_0x3a5de4&&_0x41a954(_0x3a5de4[_0x1d4f72(0x16e)]())){this[_0x1d4f72(0x25d)]=_0x3dcccc[_0x1d4f72(0x2c2)],this['_unitId']=_0x3dcccc[_0x1d4f72(0x151)],this[_0x1d4f72(0x333)]=_0x3dcccc[_0x1d4f72(0x21f)],this[_0x1d4f72(0x14d)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1d4f72(0x25d)]=void 0x0,this[_0x1d4f72(0x1c5)]=void 0x0,this[_0x1d4f72(0x333)]=void 0x0,this[_0x1d4f72(0x14d)]();})),this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)][_0x10c79a(0x22c)][_0x10c79a(0x1a5)](_0x196c28=>{const _0x2cd359=_0x10c79a;if(_0x196c28[_0x2cd359(0x27a)]===0x1){var _0x5a1459;let _0x8b31f6=_0x196c28[0x0],_0x5d8a41=(_0x5a1459=this[_0x2cd359(0x284)][_0x2cd359(0x30c)](_0x8b31f6))==null?void 0x0:_0x5a1459[_0x2cd359(0x2b3)];_0x5d8a41===_0x161136['DRAWING_SHAPE']&&_0x8b31f6[_0x2cd359(0x2c2)]===this[_0x2cd359(0x25d)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x2cd359(0x25d)]&&_0x5d8a41===_0x161136[_0x2cd359(0x25c)]&&this[_0x2cd359(0x332)](_0x8b31f6[_0x2cd359(0x151)],_0x8b31f6[_0x2cd359(0x21f)],_0x8b31f6['drawingId']);}})),this['disposeWithMe'](this[_0x10c79a(0x284)][_0x10c79a(0x2c0)]['subscribe'](_0x28ecca=>{const _0x50fa99=_0x10c79a;for(let _0x2002f2 of _0x28ecca){let {drawingId:_0x60569b}=_0x2002f2;if(this['_activeShapeId']===_0x60569b){this[_0x50fa99(0x1cb)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5da5bf,_0x56aae3,_0x3b3d6f,_0x2e5ee5,_0x2ac315){const _0x539b3e=_0x25219a;var _0x298e8b;if(!this[_0x539b3e(0x16c)])return;let _0x471e4c=this[_0x539b3e(0x280)](_0x5da5bf);if(!_0x471e4c)return;let _0x132ca9=this[_0x539b3e(0x165)]?this[_0x539b3e(0x165)][_0x539b3e(0x30a)]:_0x56aae3,_0x2bb865=this[_0x539b3e(0x165)]?this['_currentConnectionTarget'][_0x539b3e(0x26e)]:this[_0x539b3e(0x1bd)](_0x471e4c['point'],_0x132ca9),_0x3b88ba;if(this[_0x539b3e(0x165)]){let _0x30ac3c=this['_drawingManagerService'][_0x539b3e(0x30c)]({'unitId':this['_currentConnectionTarget'][_0x539b3e(0x151)],'subUnitId':this[_0x539b3e(0x165)]['subUnitId'],'drawingId':this[_0x539b3e(0x165)]['shapeId']});if(_0x30ac3c!=null&&_0x30ac3c[_0x539b3e(0x298)]){let {left:_0x4b0d03=0x0,top:_0x4b0f3d=0x0,width:_0x1e013b=0x0,height:_0x16ef94=0x0,angle:_0x41325b}=_0x30ac3c[_0x539b3e(0x298)];_0x3b88ba=_0x10ab2a({'left':_0x4b0d03,'top':_0x4b0f3d,'width':_0x1e013b,'height':_0x16ef94},_0x41325b||0x0);}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};let _0x3e25fc={'point':_0x132ca9,'angle':_0x2bb865,'bounds':_0x3b88ba},_0x42efa6=_0x3b3d6f?_0x3e25fc:_0x471e4c,_0x34bea4=_0x3b3d6f?_0x471e4c:_0x3e25fc,_0x5a3a3a=this[_0x539b3e(0x16c)][_0x539b3e(0x16e)](),_0x27b7e1=_0x5d6f7b(_0x42efa6,_0x34bea4,_0x5a3a3a);_0x27b7e1&&this[_0x539b3e(0x16c)][_0x539b3e(0x22a)](_0x27b7e1);let _0x622a7e=_0x47fdde(_0x27b7e1,_0x5a3a3a);_0x622a7e[_0x539b3e(0x2af)]!==_0x5a3a3a&&this[_0x539b3e(0x16c)]['changeShapeType'](_0x622a7e[_0x539b3e(0x2af)]);for(let [_0x16e430,_0x449b34]of Object[_0x539b3e(0x277)](_0x622a7e['adjustValues']))this['_activeShapeModel']['setAdjustValueByName'](_0x16e430,_0x449b34);this[_0x539b3e(0x16c)][_0x539b3e(0x256)]({'width':_0x622a7e['worldRect']['width'],'height':_0x622a7e['worldRect'][_0x539b3e(0x270)]}),_0x2e5ee5['transformByState']({'flipX':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x275)],'flipY':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x1a3)],'left':_0x622a7e[_0x539b3e(0x138)]['left'],'top':_0x622a7e['worldRect']['top'],'width':_0x622a7e[_0x539b3e(0x138)]['width'],'height':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x270)],'angle':_0x622a7e[_0x539b3e(0xee)]}),_0x2e5ee5['makeDirty'](!0x0);let _0x33f438=((_0x298e8b=this[_0x539b3e(0x165)])==null?void 0x0:_0x298e8b[_0x539b3e(0x30a)])??_0x56aae3;_0x2ac315[_0x539b3e(0xfd)]({'left':_0x33f438['x']-_0x373ebe[_0x539b3e(0x1ea)],'top':_0x33f438['y']-_0x373ebe[_0x539b3e(0x1ea)]});}['_handleFreeEndpointMove'](_0x3d3464,_0x3e6d1e,_0x1efe9c,_0x47fc4c,_0x3cd0b0){const _0x732367=_0x25219a;var _0x583d07,_0x5b6fad;let _0x529f03=((_0x583d07=this['_currentConnectionTarget'])==null?void 0x0:_0x583d07[_0x732367(0x30a)])??_0x3d3464,_0x39171c=_0xd7d9f3[_0x732367(0x276)](_0x3e6d1e,_0x529f03,_0x1efe9c);_0x47fc4c[_0x732367(0xfd)]({'flipX':_0x39171c['worldRect'][_0x732367(0x275)],'flipY':_0x39171c['worldRect'][_0x732367(0x1a3)],'left':_0x39171c[_0x732367(0x138)][_0x732367(0x242)],'top':_0x39171c[_0x732367(0x138)][_0x732367(0x1e8)],'width':_0x39171c[_0x732367(0x138)][_0x732367(0x11f)],'height':_0x39171c['worldRect'][_0x732367(0x270)],'angle':_0x39171c['worldRect'][_0x732367(0x26e)]});let _0x5a8d55=((_0x5b6fad=this[_0x732367(0x165)])==null?void 0x0:_0x5b6fad[_0x732367(0x30a)])??_0x3d3464;_0x3cd0b0[_0x732367(0xfd)]({'left':_0x5a8d55['x']-_0x373ebe[_0x732367(0x1ea)],'top':_0x5a8d55['y']-_0x373ebe[_0x732367(0x1ea)]});}[_0x25219a(0x280)](_0x6d0216){const _0x3b47d5=_0x25219a;if(!this[_0x3b47d5(0x1c5)]||!this[_0x3b47d5(0x333)])return null;let {shapeId:_0x5e83f3,cxnIndex:_0x59fe06}=_0x6d0216,_0x30512e=this[_0x3b47d5(0x124)]['getShapeModel'](this[_0x3b47d5(0x1c5)],this['_subUnitId'],_0x5e83f3);if(!_0x30512e)return null;let _0x46dc7a=this[_0x3b47d5(0x284)][_0x3b47d5(0x30c)]({'unitId':this[_0x3b47d5(0x1c5)],'subUnitId':this[_0x3b47d5(0x333)],'drawingId':_0x5e83f3});if(!(_0x46dc7a!=null&&_0x46dc7a[_0x3b47d5(0x298)]))return null;let {left:_0x290b10=0x0,top:_0x8e8ed8=0x0,width:_0x1b75da=0x0,height:_0x54535d=0x0,flipX:_0x71a023=!0x1,flipY:_0x11f914=!0x1,angle:_0x5b2f61}=_0x46dc7a[_0x3b47d5(0x298)];_0x30512e[_0x3b47d5(0x256)]({'width':_0x1b75da,'height':_0x54535d});let _0x58e7a9=_0x30512e[_0x3b47d5(0x201)]()['find'](_0xa75468=>_0xa75468[_0x3b47d5(0x278)]===_0x59fe06);if(!_0x58e7a9)return null;let _0xd1e5c8=_0x71a023?_0x1b75da-_0x58e7a9['x']:_0x58e7a9['x'],_0x5d404e=_0x11f914?_0x54535d-_0x58e7a9['y']:_0x58e7a9['y'];if(_0x5b2f61!==0x0&&_0x5b2f61!=null){let _0x2ec799=_0x5b2f61*Math['PI']/0xb4,_0x10ee58=Math[_0x3b47d5(0x214)](_0x2ec799),_0x3ed85e=Math['sin'](_0x2ec799),_0xcf082a=_0x1b75da/0x2,_0x1656e2=_0x54535d/0x2,_0x220c82=_0xd1e5c8-_0xcf082a,_0x1c75dc=_0x5d404e-_0x1656e2;_0xd1e5c8=_0xcf082a+_0x220c82*_0x10ee58-_0x1c75dc*_0x3ed85e,_0x5d404e=_0x1656e2+_0x220c82*_0x3ed85e+_0x1c75dc*_0x10ee58;}_0xd1e5c8+=_0x290b10,_0x5d404e+=_0x8e8ed8;let _0x9603d4=_0x58e7a9[_0x3b47d5(0x261)]/0xea60;_0x71a023&&(_0x9603d4=0xb4-_0x9603d4),_0x11f914&&(_0x9603d4=-_0x9603d4),_0x9603d4+=_0x5b2f61||0x0,_0x9603d4=(_0x9603d4%0x168+0x168)%0x168;let _0x9c61ad=_0x10ab2a({'left':_0x290b10,'top':_0x8e8ed8,'width':_0x1b75da,'height':_0x54535d},_0x5b2f61||0x0);return{'point':{'x':_0xd1e5c8,'y':_0x5d404e},'angle':_0x9603d4,'bounds':_0x9c61ad};}[_0x25219a(0x1bd)](_0x17dadf,_0x3f127e){const _0x4c5d60=_0x25219a;let _0x269131=_0x3f127e['x']-_0x17dadf['x'],_0x4b44a2=_0x3f127e['y']-_0x17dadf['y'];return Math[_0x4c5d60(0x18f)](_0x269131)>=Math[_0x4c5d60(0x18f)](_0x4b44a2)?_0x269131>=0x0?0xb4:0x0:_0x4b44a2>=0x0?0x10e:0x5a;}['_reset'](){const _0x191cf6=_0x25219a;this['_activeShapeId']=void 0x0,this[_0x191cf6(0x1c5)]=void 0x0,this[_0x191cf6(0x333)]=void 0x0,this[_0x191cf6(0x14d)]();}[_0x25219a(0x259)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Ir=Z([X(0x1,_0x16d336),X(0x2,_0x471989),X(0x3,_0x492363),X(0x4,_0x230412),X(0x5,_0x396ece(_0x6985f7)),X(0x6,_0x396ece(zn)),X(0x7,_0x396ece(Nr))],Ir);let Lr=class extends _0x3ba2e2{constructor(_0x25e998,_0x371f8e,_0x4773d5){const _0x313cf8=_0x25219a;super(),this[_0x313cf8(0x236)]=_0x25e998,this['_drawingManagerService']=_0x371f8e,this[_0x313cf8(0x1b8)]=_0x4773d5,this[_0x313cf8(0x26f)]();}[_0x25219a(0x26f)](){const _0x248087=_0x25219a;this['disposeWithMe'](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x1e4)](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x240)]()[_0x248087(0x2e7)],{'handler':(_0x39d2cd,_0x20c1a4,_0x34fd03)=>{const _0x393a5c=_0x248087;var _0x522f56;let {unitId:_0x2df88e,subUnitId:_0x4c5190,scene:_0x560335,resourceCollector:_0x48ecb2}=_0x20c1a4,_0xa7997=(_0x522f56=this[_0x393a5c(0x284)][_0x393a5c(0x192)](_0x2df88e))==null?void 0x0:_0x522f56[_0x4c5190];return _0xa7997==null||_0xa7997[_0x393a5c(0x2d6)][_0x393a5c(0x162)](_0x131470=>{const _0x24be87=_0x393a5c;let _0xbddaab=_0xa7997[_0x24be87(0x2b0)][_0x131470];_0xbddaab['drawingType']===_0x161136['DRAWING_SHAPE']&&!_0xbddaab[_0x24be87(0x160)]&&this[_0x24be87(0x1b8)][_0x24be87(0x32b)](_0xbddaab,_0x560335,{'resourceCollector':_0x48ecb2});}),_0x34fd03(_0x39d2cd);}}));}};Lr=Z([X(0x0,_0x396ece(_0x5c886c)),X(0x1,_0x492363),X(0x2,_0x396ece(Q))],Lr);let Rr=class extends _0x3ba2e2{constructor(_0x59098d,_0x58aa36,_0x5647a6){const _0x4124c2=_0x25219a;super(),this[_0x4124c2(0x2cc)]=_0x59098d,this[_0x4124c2(0x1f0)]=_0x58aa36,this['_sheetPermissionCheckController']=_0x5647a6,this[_0x4124c2(0x200)]();}[_0x25219a(0x200)](){const _0x2d041e=_0x25219a;this['disposeWithMe'](this[_0x2d041e(0x2cc)]['beforeCommandExecuted'](_0x205b82=>{const _0x4203e2=_0x2d041e;let _0x23aa7a,_0x179ca9;if(_0x205b82['id']===_0x3a08e6['id']||_0x205b82['id']===_0x5e53bf['id']||_0x205b82['id']===_0xdc15a6['id']){let _0x4bdf8d=_0x205b82[_0x4203e2(0x17a)];_0x23aa7a=_0x4bdf8d['unitId'],_0x179ca9=_0x4bdf8d[_0x4203e2(0x21f)];}!_0x23aa7a||!_0x179ca9||this['_sheetPermissionCheckController'][_0x4203e2(0x341)]({'workbookTypes':[_0x8641fc],'worksheetTypes':[_0xc6d67c]},_0x23aa7a,_0x179ca9)||this['_sheetPermissionCheckController'][_0x4203e2(0x150)](this[_0x4203e2(0x1f0)]['t'](_0x4203e2(0x11a)));}));}};Rr=Z([X(0x0,_0x396ece(_0x16d336)),X(0x1,_0x396ece(_0x404764)),X(0x2,_0x396ece(_0x5e60fd))],Rr);let zr=class extends _0x3ba2e2{constructor(_0x4a63fa,_0x21e6fc,_0x18b6a3,_0x233a8a,_0x502a46,_0x418aaa,_0x15ac26,_0x3c9eb3,_0x41fa5a,_0x4f8570,_0x560539){const _0x3226f7=_0x25219a;super(),this[_0x3226f7(0xfe)]=_0x4a63fa,this[_0x3226f7(0x104)]=_0x21e6fc,this[_0x3226f7(0x22e)]=_0x18b6a3,this[_0x3226f7(0x124)]=_0x233a8a,this[_0x3226f7(0x1f0)]=_0x502a46,this[_0x3226f7(0x2cc)]=_0x418aaa,this[_0x3226f7(0x284)]=_0x15ac26,this[_0x3226f7(0x226)]=_0x3c9eb3,this[_0x3226f7(0x1e9)]=_0x41fa5a,this['_renderManagerService']=_0x4f8570,this[_0x3226f7(0x30f)]=_0x560539,Y(this,_0x3226f7(0x19d),null),Y(this,_0x3226f7(0x2a3),null),Y(this,_0x3226f7(0x1d5),!0x1),Y(this,'_shapeEditPanelVersion',0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x3226f7(0x2c9),[]),this['_initMenu'](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0xfe)][_0x3226f7(0x1ac)](_0x2e857c[_0x3226f7(0x243)])[_0x3226f7(0x1a5)](_0x158b18=>{const _0x4bb559=_0x3226f7;if(!_0x158b18){var _0xc30218;(_0xc30218=this[_0x4bb559(0x19d)])==null||_0xc30218[_0x4bb559(0x259)]();return;}this['_createShapePopupMenu'](_0x158b18);})),this[_0x3226f7(0x227)](),this[_0x3226f7(0x2bf)](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0x30f)][_0x3226f7(0x325)]['subscribe'](_0xd0e5d8=>{const _0x58fae6=_0x3226f7;_0xd0e5d8&&this[_0x58fae6(0x2c7)]();}));}[_0x25219a(0x288)](){const _0x501ab3=_0x25219a;this[_0x501ab3(0x22e)]['mergeMenu'](lr);}['initShapePopupMenu'](){const _0x3098a6=_0x25219a;this[_0x3098a6(0xfe)][_0x3098a6(0x14f)](_0x2e857c['UNIVER_SHEET'])[_0x3098a6(0x162)](_0x1460ba=>this[_0x3098a6(0x29e)](_0x1460ba));}[_0x25219a(0x15e)](_0x59ae55,_0x5aed65,_0x2a6d68){const _0x4bb723=_0x25219a;let _0x4ec512=this['_sheetsShapeService'][_0x4bb723(0x218)](_0x59ae55,_0x5aed65,_0x2a6d68),_0x2d7a00=this[_0x4bb723(0x124)][_0x4bb723(0x137)](_0x59ae55,_0x5aed65,_0x2a6d68);return _0x4ec512!==void 0x0&&_0x2d7a00!==void 0x0?{'shapeData':_0x2d7a00,'shapeId':_0x2a6d68,'shapeType':_0x4ec512,'unitId':_0x59ae55,'subUnitId':_0x5aed65,'version':this[_0x4bb723(0x2aa)],'disableShapeOption':!0x1}:null;}[_0x25219a(0x29e)](_0xd6d4aa){const _0x1389cd=_0x25219a;if(!_0xd6d4aa)return;let _0x4e299f=_0xd6d4aa[_0x1389cd(0x1cd)]();this['_renderManagerService'][_0x1389cd(0x135)](_0x4e299f)&&!this[_0x1389cd(0x1f2)][_0x1389cd(0x135)](_0x4e299f)&&(this[_0x1389cd(0x294)](_0x4e299f),this[_0x1389cd(0x1f2)][_0x1389cd(0x119)](_0x4e299f));}[_0x25219a(0x2c7)](){const _0x3a496b=_0x25219a;this[_0x3a496b(0x2c9)][_0x3a496b(0x162)](_0x2d18f5=>_0x2d18f5['dispose']()),this[_0x3a496b(0x2c9)][_0x3a496b(0x27a)]=0x0;}['_popupMenuListener'](_0x300caf){const _0x559517=_0x25219a;var _0x506758;let _0x1c8bff=(_0x506758=this['_renderManagerService'][_0x559517(0x1dd)](_0x300caf))==null?void 0x0:_0x506758[_0x559517(0x19b)],_0xae563d=_0x1c8bff==null?void 0x0:_0x1c8bff[_0x559517(0x253)]();!_0x1c8bff||!_0xae563d||(this['disposeWithMe'](_0xae563d[_0x559517(0x123)]['subscribe'](()=>{const _0x5138b3=_0x559517;let _0x5c89ba=_0xae563d[_0x5138b3(0x1f8)]();if(this[_0x5138b3(0x2c7)](),this[_0x5138b3(0x1d5)]||_0x5c89ba[_0x5138b3(0x32f)]>0x1)return;let _0x516458=_0x5c89ba[_0x5138b3(0x1c8)]()[_0x5138b3(0x32d)]()[_0x5138b3(0x335)];if(!_0x516458)return;let _0x4ba2e2=this['_drawingManagerService'][_0x5138b3(0x12b)](_0x516458[_0x5138b3(0x161)]);if(!_0x4ba2e2||_0x4ba2e2[_0x5138b3(0x2b3)]!==_0x161136['DRAWING_SHAPE'])return;let {unitId:_0x3c7ef4,subUnitId:_0x52076a,drawingId:_0x3c257b,drawingType:_0x47c068}=_0x4ba2e2,_0x4b8543=this[_0x5138b3(0x15e)](_0x3c7ef4,_0x52076a,_0x3c257b);if(!_0x4b8543)return;this[_0x5138b3(0x1e9)][_0x5138b3(0x25f)](_0x29948b,!0x0);let _0x1d447a=this[_0x5138b3(0x226)][_0x5138b3(0x2eb)](_0x516458,{'componentKey':Wn,'direction':'top-center','offset':[0x0,_0xa70bb9],'extraProps':{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b,'drawingType':_0x47c068,'shapeType':_0x4b8543[_0x5138b3(0x1c7)],'shapeData':_0x4b8543['shapeData']}});this[_0x5138b3(0x2c9)][_0x5138b3(0xfc)](this[_0x5138b3(0x1b1)](_0x1d447a)),this[_0x5138b3(0x284)]['getFocusDrawings']()['find'](_0x15e027=>_0x15e027[_0x5138b3(0x151)]===_0x3c7ef4&&_0x15e027[_0x5138b3(0x21f)]===_0x52076a&&_0x15e027[_0x5138b3(0x2c2)]===_0x3c257b)||this[_0x5138b3(0x284)][_0x5138b3(0x27f)]([{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b}]);})),this['disposeWithMe'](_0xae563d[_0x559517(0x2c1)][_0x559517(0x1a5)](()=>{const _0x15f012=_0x559517;this[_0x15f012(0x2c7)](),this[_0x15f012(0x1e9)][_0x15f012(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x15f012(0x27f)](null);})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x155)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x255)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})));}[_0x25219a(0x227)](){const _0x5e4e07=_0x25219a;this[_0x5e4e07(0x1b1)](this[_0x5e4e07(0x2cc)][_0x5e4e07(0x24a)](_0xd7da00=>{const _0x569639=_0x5e4e07;if(_0xd7da00['id']===pr['id']){let {unitId:_0xd25e06,subUnitId:_0x582691,drawingId:_0x547bb9}=_0xd7da00[_0x569639(0x17a)];this[_0x569639(0x2aa)]+=0x1,this[_0x569639(0x2a3)]=this[_0x569639(0x15e)](_0xd25e06,_0x582691,_0x547bb9),this['_clearPopups'](),this[_0x569639(0x1f1)]();}if(_0xd7da00['id']===fr['id']&&(this[_0x569639(0x2a3)]=null,this[_0x569639(0x204)]()),_0xd7da00['id']===_0x46a98e['id']){let {unitId:_0x3e143b,subUnitId:_0x602add,shapeId:_0x427435}=_0xd7da00['params'];if(this[_0x569639(0x2a3)]&&this['_activeShapeInfo']['shapeId']===_0x427435){let _0x2c2397=this[_0x569639(0x15e)](_0x3e143b,_0x602add,_0x427435);_0x2c2397&&(this[_0x569639(0x2aa)]+=0x1,_0x2c2397[_0x569639(0x24e)]=this['_shapeEditPanelVersion'],this[_0x569639(0x2a3)]=_0x2c2397,this[_0x569639(0x1d5)]&&this[_0x569639(0x1f1)]());}}})),this['disposeWithMe'](this[_0x5e4e07(0x284)][_0x5e4e07(0x250)][_0x5e4e07(0x1a5)](_0x5b5443=>{const _0x2645c7=_0x5e4e07;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x5b5443['length']===0x0){this['_activeShapeInfo']=null,this[_0x2645c7(0x204)]();return;}if(_0x5b5443[_0x2645c7(0x27a)]===0x1&&_0x5b5443[0x0][_0x2645c7(0x2b3)]===_0x161136[_0x2645c7(0x25c)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0]['unitId'],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x2645c7(0x1f1)]();return;}let _0x139d61=_0x5b5443[_0x2645c7(0x291)](_0x2fb987=>_0x2fb987['drawingType']===_0x161136['DRAWING_SHAPE']);if(_0x5b5443['length']>0x1&&_0x139d61[_0x2645c7(0x27a)]===_0x5b5443[_0x2645c7(0x27a)]){if(this[_0x2645c7(0x2aa)]+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this['_activeShapeInfo']){this[_0x2645c7(0x1f1)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x2645c7(0x15e)](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0][_0x2645c7(0x21f)],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this[_0x2645c7(0x2a3)]){this[_0x2645c7(0x2a3)][_0x2645c7(0x11c)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x2645c7(0x204)]();}));}[_0x25219a(0x1f1)](){const _0x53ce0d=_0x25219a;this[_0x53ce0d(0x2a3)]&&(this[_0x53ce0d(0x19d)]=this['_sidebarService'][_0x53ce0d(0x320)]({'id':Hn,'header':{'title':this[_0x53ce0d(0x1f0)]['t'](_0x53ce0d(0x290))},'width':0x184,'children':{'label':Hn,...this[_0x53ce0d(0x2a3)]},'onClose':()=>{const _0x29eec9=_0x53ce0d;this[_0x29eec9(0x284)]['focusDrawing'](null),this[_0x29eec9(0x1e9)][_0x29eec9(0x25f)](_0x29948b,!0x1),this[_0x29eec9(0x19d)]=null;}}),this[_0x53ce0d(0x1d5)]=!0x0);}['_closeShapeEditPanel'](){const _0x3a20b5=_0x25219a;this[_0x3a20b5(0x1d5)]=!0x1,this[_0x3a20b5(0x104)][_0x3a20b5(0xe9)](Hn),this[_0x3a20b5(0x19d)]=null,this[_0x3a20b5(0x1e9)][_0x3a20b5(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x3a20b5(0x27f)](null);}};zr=Z([X(0x0,_0x230412),X(0x1,_0x396ece(_0x54fc19)),X(0x2,_0x23b358),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x404764)),X(0x5,_0x16d336),X(0x6,_0x492363),X(0x7,_0x396ece(_0x40f967)),X(0x8,_0x334f35),X(0x9,_0x471989),X(0xa,_0x396ece(Cr))],zr);let $=class extends _0x18bfbf{constructor(_0x3b9db1=mr,_0x14c648,_0x19119b,_0x37c028,_0x4cc5f5){const _0x20c8c3=_0x25219a;super(),this['_config']=_0x3b9db1,this[_0x20c8c3(0x281)]=_0x14c648,this[_0x20c8c3(0x2cc)]=_0x19119b,this[_0x20c8c3(0x2df)]=_0x37c028,this[_0x20c8c3(0x145)]=_0x4cc5f5;let {..._0x3f228f}=_0x575e93({},mr,this[_0x20c8c3(0x142)]);this['_configService'][_0x20c8c3(0x15d)]('sheets-shape-ui.config',_0x3f228f),this[_0x20c8c3(0x2a6)]();}[_0x25219a(0x21d)](){const _0x4f1ea4=_0x25219a;_0x28631c(this[_0x4f1ea4(0x281)],[[zr],[Ar],[Q],[Lr]]);}['onSteady'](){const _0x13d141=_0x25219a;this[_0x13d141(0x281)]['get'](zr)[_0x13d141(0x2bf)]();}[_0x25219a(0x2f2)](){const _0x523710=_0x25219a;[[Nr],[zn],[Pr]]['forEach'](_0x3ecfde=>this[_0x523710(0x281)][_0x523710(0x119)](_0x3ecfde)),_0x28631c(this[_0x523710(0x281)],[[Pr],[zn]]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c[_0x523710(0x243)],[Nr]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c['UNIVER_SHEET'],[Er]),this['_renderManagerService'][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Ir]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Or]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x1b7)],[kr]);}['onStarting'](){const _0x5ed3e5=_0x25219a;this[_0x5ed3e5(0x281)][_0x5ed3e5(0x119)]([Tr]),this[_0x5ed3e5(0x281)][_0x5ed3e5(0x23e)](Tr);let _0x5b8c53=this[_0x5ed3e5(0x281)];[[zr],[Ar],[Q],[Lr],[vr],[Cr],[Dr],[Jn],[Rr]][_0x5ed3e5(0x162)](_0x1105bd=>_0x5b8c53[_0x5ed3e5(0x119)](_0x1105bd)),_0x28631c(this[_0x5ed3e5(0x281)],[[zr],[Ar],[Q],[vr],[Cr],[Dr],[Jn],[Rr]]);}[_0x25219a(0x2a6)](){const _0x51a639=_0x25219a;[Vn,An,fr,pr,qn,Bn][_0x51a639(0x162)](_0x29fd3f=>this['disposeWithMe'](this[_0x51a639(0x2cc)][_0x51a639(0x285)](_0x29fd3f)));}};Y($,_0x25219a(0x31a),_0x2e857c[_0x25219a(0x243)]),Y($,_0x25219a(0x2cb),_0x25219a(0x29c)),Y($,_0x25219a(0xf0),ur),Y($,'version',dr),$=Z([_0x5c3761(_0x355769,_0x72f746,_0xc0cade,_0x117474,_0x3bc238,_0x2afa3f,_0x10fd74,_0x57443e,_0x3eb575,_0x502bda,_0x337d0b,_0x48b0fa,_0x5409b9),X(0x1,_0x396ece(_0x3cde8e)),X(0x2,_0x16d336),X(0x3,_0x487002),X(0x4,_0x471989)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0x4b851e=_0x1d1c;(function(_0x4f4a57,_0x607aa7){const _0x3d8fea=_0x1d1c,_0x568ae7=_0x4f4a57();while(!![]){try{const _0x17e85d=-parseInt(_0x3d8fea(0x210))/0x1+-parseInt(_0x3d8fea(0x140))/0x2*(-parseInt(_0x3d8fea(0x15c))/0x3)+-parseInt(_0x3d8fea(0x199))/0x4+-parseInt(_0x3d8fea(0x278))/0x5+parseInt(_0x3d8fea(0x212))/0x6*(parseInt(_0x3d8fea(0x20c))/0x7)+parseInt(_0x3d8fea(0x104))/0x8+parseInt(_0x3d8fea(0x1f4))/0x9;if(_0x17e85d===_0x607aa7)break;else _0x568ae7['push'](_0x568ae7['shift']());}catch(_0x3df823){_0x568ae7['push'](_0x568ae7['shift']());}}}(_0x1226,0x9af60));import{FormulaShapeAnimationController as _0x24c8d6,SHAPE_CHANGE_PICKER_COMPONENT as _0x3de37a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3e5d23,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xdc3205,ShapeEditPanel as _0x7c1c93,ShapeFloatingToolbar as _0x3d7c32,ShapeFloatingToolbarService as _0x49b6d5,ShapeFloatingToolbarToggleFactory as _0x2383ca,ShapeFormulaRibbonControl as _0x2667da,ShapeGroupEnum as _0x39cfae,ShapePickerDropdown as _0x212211,ShapePickerPanel as _0x31e782,ShapeQuickStyleGallery as _0x2e6418,ShapeStyleRibbonControl as _0x5e07d3,ShapeTextEditorContainer as _0x11d071,ShapeTextFloatMenuRenderControllerBase as _0x7f2b74,ShapeTextFloatToolbar as _0xdd4439,ShapeTextHyperLinkPopupService as _0x4c9b9e,ShapeTextRibbonControl as _0x433ebc,ToggleShapeFloatingToolbarOperation as _0x2e5d91,UniverShapeEditorUIPlugin as _0x2dc485,activateDrawingObject as _0x40f724,bindRenderTransformerLifecycle as _0x33aed7,buildShapeTextDataUpdate as _0x273436,clearActiveDrawingObjects as _0x1539dd,drawFormulaShapeAnimationLayers as _0x2cc10b,getDrawingTypeNameKey as _0x651274,getTextModel as _0x3f7794,getTextStyle as _0x4f2a32,normalizeShapeTextModel as _0x5c2b25,plainShapeTextToDocumentData as _0x3ec507,prepareShapeTextDocumentData as _0x12ba59,resolveFormulaShapeAutoFitSize as _0x4997b9,resolveShapeContextualRibbonHostMode as _0x3a4437,resolveShapeTextDocumentRenderLayout as _0x49c80c,resolveShapeTextEditorBehaviorShapeData as _0x60268f,resolveShapeTextEditorWrapStrategy as _0x4c6d67,shouldAllowShapeTextEditorHostSizeShrink as _0x7a8762,shouldClipShapeTextDocument as _0x1de880,useFormulaShapeToolbar as _0x2caf88}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x1b0068,ContextMenuGroup as _0x1bd38f,ContextMenuPosition as _0x50de40,IMenuManagerService as _0xa31c1,IRibbonService as _0x53b662,ISidebarService as _0x446fc5,IconManager as _0x4741f6,MenuItemType as _0x4d0911,MenuManagerPosition as _0x53d7b7,RibbonInsertGroup as _0x46a8ca,UndoRedoGroupService as _0x2752d,getMenuHiddenObservable as _0x4340d6,useDependency as _0x496f8c,useObservable as _0x1f221a}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x27802a,ImageSourceTypeEnum as _0x22d802,ShapeArrowSizeEnum as _0x4e4132,ShapeArrowTypeEnum as _0x534c3c,ShapeDefaultConfig as _0x179953,ShapeFillEnum as _0x5cb73a,ShapeLineTypeEnum as _0x480b13,ShapeModel as _0x5578df,ShapeRenderModeEnum as _0x1ebdea,ShapeTypeEnum as _0x3e1064,computeConnectorRouteLayout as _0x1fcdb8,getBasicShapeRotateBound as _0x16b583,isConnectorShape as _0x47e56f,isCurvedConnectorShape as _0x446dc5,routeConnectorLineShape as _0x4b9feb}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3c9fb4,UniverShapeEditorPlugin as _0x3edd01,applyQuickStyleToShapeData as _0x1ef8e7,cloneShapeDataForType as _0x1103bd,createShapeFormulaDocument as _0x37b416,createShapeTextBoxShapeData as _0x1688ed,getShapeQuickStylePreset as _0x4e3a43,getShapeQuickStyleType as _0x320903,resolveActiveShapeQuickStylePresetId as _0x2be9b7}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x84e7ae,InsertSheetsShapeMutation as _0x16950c,RemoveSheetsShapeMutation as _0x1d92ce,SetShapeDrawingDataCommand as _0x12f002,SheetsShapeService as _0x1bfe6b,ToggleSheetsShapeFlipCommand as _0x26e8be,UniverSheetsShapePlugin as _0x4e0dc6,UpdateConnectorRelationCommand as _0x3ac18a,UpdateLineShapeResizeCommand as _0x7c6eda,UpdateSheetsShapeDataMutation as _0x4b69e7}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5de97e,CommandType as _0x3ab13f,DependentOn as _0x152ad8,Disposable as _0x387ec6,DisposableCollection as _0x1e71f4,DocumentDataModel as _0x354220,DrawingTypeEnum as _0x514277,FOCUSING_COMMON_DRAWINGS as _0x4fe378,FOCUSING_SHAPE_TEXT_EDITOR as _0x1cdb66,HorizontalAlign as _0x4305f0,ICommandService as _0x46e4d8,IConfigService as _0x5a304f,IContextService as _0x53c8c3,IImageIoService as _0xf5ac9,IURLImageService as _0x46b574,IUndoRedoService as _0x4d8b4b,IUniverInstanceService as _0x22bed1,Inject as _0x2e2475,Injector as _0xe0fbcd,LocaleService as _0x3fae61,Plugin as _0x1dddda,UniverInstanceType as _0x2ce572,VerticalAlign as _0x43e240,createInternalEditorID as _0x35240c,generateRandomId as _0x5b0a2a,merge as _0x2d08ea,toDisposable as _0x52399e,touchDependencies as _0x3da19d}from'@univerjs/core';import{CopySheetCommand as _0x3db4a6,RemoveSheetCommand as _0x561ec6,SheetInterceptorService as _0x16be2b,SheetPermissionCheckController as _0x3aeb77,SheetSkeletonService as _0x2d0b38,SheetsSelectionsService as _0x15336e,UniverSheetsPlugin as _0x37f014,WorkbookEditablePermission as _0x35ca91,WorksheetEditPermission as _0x446d79,attachRangeWithCoord as _0x178278,discreteRangeToRange as _0x1469fd,getSheetCommandTarget as _0x4104ec}from'@univerjs/sheets';import{IDrawingManagerService as _0x1644d5,SetDrawingSelectedOperation as _0x2f07a0,UniverDrawingPlugin as _0x58177f,getDrawingShapeKeyByDrawingSearch as _0x4d60ae,getOrCreateDrawingCopyPlan as _0x108f12}from'@univerjs/drawing';import{CURSOR_TYPE as _0xa4b93e,Circle as _0xdb102c,DRAWING_OBJECT_LAYER_INDEX as _0x22719c,DocumentSkeleton as _0x43b69e,DocumentViewModel as _0x336c4f,Documents as _0x5d905b,IRenderManagerService as _0x37a074,Image as _0x5e8ac4,RENDER_CLASS_TYPE as _0x5b17f8,SHEET_VIEWPORT_KEY as _0x571719,Shape as _0x25aea5,Transform as _0x4915c5,UniverRenderEnginePlugin as _0x40bd64,Vector2 as _0x5a9bd8}from'@univerjs/engine-render';import{COPY_TYPE as _0x3ad175,ISheetClipboardService as _0xb2e7a2,PREDEFINED_HOOK_NAME as _0x5c3ee4,SheetCanvasPopManagerService as _0x4817cd,SheetPrintInterceptorService as _0x1af16d,SheetScrollManagerService as _0x51344e,SheetSkeletonManagerService as _0x58befb,UniverSheetsUIPlugin as _0x4e1ffc,deriveStateFromActiveSheet$ as _0x8b444,getCurrentRangeDisable$ as _0x19fc01,getViewportByCell as _0x23e0fe}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x377ada,EMPTY as _0x53e669,Observable as _0x14d0cd,map as _0x3ffce0,of as _0x571f73,startWith as _0xea5433,switchMap as _0x20fbec}from'rxjs';import{DrawingCommonPanel as _0x5aebc8,DrawingImageClipService as _0x1e2122,DrawingRenderService as _0x44518e,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x105c46,OBJECT_LIST_FLOATING_SECTION_ID as _0x1767bf,ObjectListPanelBase as _0x507439,UniverDrawingUIPlugin as _0x2fdd1b,getCurrentUnitInfo as _0x49ac42,getObjectListPanelLabels as _0x11fb9f,getObjectListPanelSectionIdForDrawingType as _0x19e79d,getObjectListPanelTypeName as _0x389497,insertGroupObject as _0x4aa95f}from'@univerjs/drawing-ui';import{Fragment as _0x16b2fe,jsx as _0x26713b,jsxs as _0x3acd23}from'react/jsx-runtime';import{DrawingApplyType as _0x33c6ec,ISheetDrawingService as _0x460b38,RemoveSheetDrawingCommand as _0x483709,SetDrawingApplyMutation as _0x47767d,SetDrawingArrangeCommand as _0x474f53,SetSheetDrawingCommand as _0x41f305,UniverSheetsDrawingPlugin as _0x40f2a6,transformToAxisAlignPosition as _0x1f9ea5,transformToDrawingPosition as _0x1633a2}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x24931b}from'@univerjs-pro/license';import{DocInterceptorService as _0x33e8a0,DocSelectionManagerService as _0x1c01d6,UniverDocsPlugin as _0x566abe}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x33ca8f,DocEventManagerService as _0x2c4993,DocRenderController as _0x2bef20,DocSelectionRenderService as _0x1aec61,UniverDocsUIPlugin as _0xbc67aa}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x42148c,SheetsDrawingGroupCopyPasteController as _0x3b1dfb,UniverSheetsDrawingUIPlugin as _0x1df509}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x3bd01a,FlipHorizontalIcon as _0x2f696e,FlipVerticalIcon as _0x382856,MoveDownIcon as _0x164d4d,MoveUpIcon as _0x1e4b26,ObjectLayersIcon as _0x211ee9,ShapeFormatSettingIcon as _0x2dd85d,TopmostIcon as _0xe5adf2}from'@univerjs/icons';import{memo as _0x5acb43,useEffect as _0x45ee55,useMemo as _0x2a519c,useReducer as _0x3f08fe,useState as _0x24f8d3}from'react';function ir(_0x20ddc0,_0x24e87a){const _0x46c4d4=_0x1d1c;let _0x2b8c70={};for(let _0x2a62f3 of Object['keys'](_0x24e87a)){let _0x286842=_0x24e87a[_0x2a62f3],_0x54e668=_0x20ddc0[_0x2a62f3];if(_0x286842!==void 0x0){if(_0x54e668===void 0x0){_0x2b8c70[_0x2a62f3]=void 0x0;continue;}typeof _0x286842==_0x46c4d4(0xdc)&&_0x286842&&!Array[_0x46c4d4(0x239)](_0x286842)&&typeof _0x54e668==_0x46c4d4(0xdc)&&_0x54e668&&!Array[_0x46c4d4(0x239)](_0x54e668)?_0x2b8c70[_0x2a62f3]=ir(_0x54e668,_0x286842):_0x2b8c70[_0x2a62f3]=_0x54e668;}}return _0x2b8c70;}const ar={'type':_0x3ab13f[_0x4b851e(0x95)],'id':_0x4b851e(0x1ca),'handler':(_0x45e361,_0x40de99)=>{const _0x499ef9=_0x4b851e;let _0x20ea08=_0x45e361[_0x499ef9(0x2c2)](_0x1bfe6b),{unitId:_0x191e25,subUnitId:_0x3f28e9,shapeType:_0x190326,shapeId:_0x5b0ea3,shapeData:_0x3e5958,replaceShapeData:_0x26bda1,oldShapeJSON:_0x1ec12a}=_0x40de99;if(!_0x20ea08[_0x499ef9(0x138)](_0x191e25,_0x3f28e9,_0x5b0ea3))return!0x1;let _0x3cfb5d=_0x45e361[_0x499ef9(0x2c2)](_0x46e4d8),_0x538952=_0x45e361[_0x499ef9(0x2c2)](_0x4d8b4b),{oldShapeType:_0x2a1bf3,oldShapeData:_0x9fe6f6={}}=_0x1ec12a,_0x57679c=_0x26bda1?_0x9fe6f6:ir(_0x9fe6f6,_0x3e5958||{}),_0x490fcb={'id':_0x4b69e7['id'],'params':{'unitId':_0x191e25,'subUnitId':_0x3f28e9,'shapeId':_0x5b0ea3,'shapeType':_0x190326,'shapeData':_0x3e5958,'replace':_0x26bda1}},_0x58d677={'id':_0x4b69e7['id'],'params':{'unitId':_0x191e25,'subUnitId':_0x3f28e9,'shapeId':_0x5b0ea3,'shapeType':_0x2a1bf3,'shapeData':_0x57679c,'replace':_0x26bda1}};return _0x3cfb5d[_0x499ef9(0xc3)](_0x490fcb['id'],_0x490fcb[_0x499ef9(0x29f)])?(_0x538952['pushUndoRedo']({'unitID':_0x191e25,'undoMutations':[_0x58d677],'redoMutations':[_0x490fcb]}),!0x0):!0x1;}};function or(_0x16d6d7,_0x31bfde,_0x53bdc9,_0x41d29e,_0x1202be,_0x20ef42){let _0x95a3f9={'unitId':_0x31bfde,'subUnitId':_0x53bdc9,'shapeId':_0x41d29e,'shapeData':_0x20ef42,'oldShapeJSON':_0x1202be};return _0x16d6d7['executeCommand'](ar['id'],_0x95a3f9);}function sr(_0x46dc6e,_0x3fbe74,_0x4baaa0,_0x68495b,_0x161954,_0x41543b){const _0x42b589=_0x4b851e;let _0x145693={'unitId':_0x3fbe74,'subUnitId':_0x4baaa0,'shapeId':_0x68495b,'shapeData':_0x41543b,'oldShapeJSON':_0x161954};return _0x46dc6e[_0x42b589(0x163)](ar['id'],_0x145693);}function cr(_0xcabfe4){'@babel/helpers - typeof';const _0x528130=_0x4b851e;return cr=typeof Symbol==_0x528130(0x2b7)&&typeof Symbol[_0x528130(0x217)]=='symbol'?function(_0x45e46e){return typeof _0x45e46e;}:function(_0x4ffcbc){const _0x354b37=_0x528130;return _0x4ffcbc&&typeof Symbol==_0x354b37(0x2b7)&&_0x4ffcbc['constructor']===Symbol&&_0x4ffcbc!==Symbol[_0x354b37(0x175)]?_0x354b37(0x1a8):typeof _0x4ffcbc;},cr(_0xcabfe4);}function lr(_0x9fd440,_0x2cb3ad){const _0x40dc54=_0x4b851e;if(cr(_0x9fd440)!=_0x40dc54(0xdc)||!_0x9fd440)return _0x9fd440;var _0x537b68=_0x9fd440[Symbol[_0x40dc54(0xf2)]];if(_0x537b68!==void 0x0){var _0x469b24=_0x537b68[_0x40dc54(0x276)](_0x9fd440,_0x2cb3ad||'default');if(cr(_0x469b24)!=_0x40dc54(0xdc))return _0x469b24;throw TypeError(_0x40dc54(0x2f5));}return(_0x2cb3ad===_0x40dc54(0xfc)?String:Number)(_0x9fd440);}function ur(_0x4e4096){const _0x1f8371=_0x4b851e;var _0x4e9688=lr(_0x4e4096,_0x1f8371(0xfc));return cr(_0x4e9688)==_0x1f8371(0x1a8)?_0x4e9688:_0x4e9688+'';}function Y(_0x5106c5,_0x5e0e01,_0x446d6d){const _0x59cd11=_0x4b851e;return(_0x5e0e01=ur(_0x5e0e01))in _0x5106c5?Object[_0x59cd11(0x286)](_0x5106c5,_0x5e0e01,{'value':_0x446d6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5106c5[_0x5e0e01]=_0x446d6d,_0x5106c5;}function dr(_0x4d668c,_0x1d8f79,_0x3f12b5){const _0x324c23=_0x4b851e;let _0x14632b=_0x60268f(_0x4d668c,{..._0x1d8f79,'dataModel':{..._0x1d8f79[_0x324c23(0x1ae)]??{},..._0x3f12b5?{'doc':_0x3f12b5}:null}}),_0x41d0ac=_0x4c6d67(_0x14632b);return{'clip':_0x1de880(_0x14632b,_0x41d0ac),'wrapStrategy':_0x41d0ac};}var fr=class extends _0x25aea5{constructor(_0x28a1b5,_0x43079b){const _0x15eb2f=_0x4b851e;super(_0x28a1b5,_0x43079b),Y(this,'_props',void 0x0),Y(this,'_formulaAnimation',new _0x24c8d6(()=>this[_0x15eb2f(0x2b3)](!0x0),()=>this[_0x15eb2f(0x1d1)]())),Y(this,_0x15eb2f(0x143),!0x0),Y(this,_0x15eb2f(0xda),_0x514277[_0x15eb2f(0xcb)]),Y(this,_0x15eb2f(0x204),!0x0),this['_props']={..._0x43079b},this[_0x15eb2f(0x14a)][_0x15eb2f(0x15d)](_0x43079b['formulaPresentation'],_0x43079b[_0x15eb2f(0x17f)]!==!0x1),this[_0x15eb2f(0xae)](),this['_applyFormulaAutoFitSize']();}[_0x4b851e(0xae)](){const _0x3933dc=_0x4b851e;this[_0x3933dc(0x293)][_0x3933dc(0x26b)](_0x2fe81d=>{const _0x3b63a7=_0x3933dc;this[_0x3b63a7(0x170)](_0x2fe81d);});}[_0x4b851e(0xaa)](_0x21923f){const _0xe7498b=_0x4b851e;this[_0xe7498b(0x112)]['prstGeom']=_0x21923f;}['setEditing'](_0x132f67){const _0xeebd91=_0x4b851e;this[_0xeebd91(0x112)][_0xeebd91(0x24b)]=_0x132f67,this[_0xeebd91(0x2b3)](!0x0);}[_0x4b851e(0x111)](_0xbb1f7b,_0x38b68b=!0x0){const _0x2c9ffb=_0x4b851e;this[_0x2c9ffb(0x14a)]['setPresentation'](_0xbb1f7b,_0x38b68b),this[_0x2c9ffb(0x112)][_0x2c9ffb(0x24e)]=_0xbb1f7b,this['_applyFormulaAutoFitSize'](),this[_0x2c9ffb(0x2b3)](!0x0);}[_0x4b851e(0x1d1)](){const _0x148c0b=_0x4b851e;let _0x225f0e=this[_0x148c0b(0x112)][_0x148c0b(0x197)],_0x56aa0f=_0x225f0e['getShapeTextData'](),_0x270fec=_0x5c2b25(_0x56aa0f==null?void 0x0:_0x56aa0f['dataModel']),_0x35c4f3=_0x270fec==null?void 0x0:_0x270fec[_0x148c0b(0xd3)],_0x3e8891=this[_0x148c0b(0x14a)][_0x148c0b(0x234)]();if(!_0x35c4f3||_0x3e8891[_0x148c0b(0x8c)]===0x0)return;_0x225f0e[_0x148c0b(0x113)]({'width':this[_0x148c0b(0x193)],'height':this[_0x148c0b(0x1ff)]});let _0x58842b=_0x4997b9({'documentData':_0x3e8891[_0x148c0b(0x27b)](_0xddd9e2=>_0x37b416(_0x35c4f3,_0xddd9e2)),'height':this[_0x148c0b(0x1ff)],'shapeData':_0x225f0e['getShapeData'](),'textRect':_0x225f0e[_0x148c0b(0x1aa)]({'left':0x0,'top':0x0,'width':this['width'],'height':this['height']}),'width':this['width']});if(_0x58842b){var _0x2f48bb;this['resize'](_0x58842b[_0x148c0b(0x193)],_0x58842b[_0x148c0b(0x1ff)]),(_0x2f48bb=this['getScene']())==null||(_0x2f48bb=_0x2f48bb[_0x148c0b(0x2c1)]())==null||_0x2f48bb[_0x148c0b(0x2a8)]();}}get[_0x4b851e(0x2e2)](){const _0x19bb70=_0x4b851e;return this[_0x19bb70(0x112)][_0x19bb70(0x2e2)];}get[_0x4b851e(0x20f)](){const _0x44f622=_0x4b851e;return this[_0x44f622(0x112)][_0x44f622(0x20f)];}['_updateSrcRectByTransform'](_0x5a5da2){const _0x39ed50=_0x4b851e;if(this['_props'][_0x39ed50(0x97)]==null||!this[_0x39ed50(0x143)])return;let {width:_0x3b1736,height:_0x1e0681}=this,{width:_0x3244fe=0x0,height:_0x43a4d8=0x0}=_0x5a5da2[_0x39ed50(0x7a)],{left:_0x4fc27b=0x0,top:_0x9394d7=0x0,right:_0x16db8f=0x0,bottom:_0x46ce63=0x0}=this[_0x39ed50(0x112)]['srcRect'],_0x1cf24f=_0x4fc27b,_0x1e5c2a=_0x9394d7,_0x4fd840=_0x16db8f,_0x4514a2=_0x46ce63,_0x2bcc2a=!0x1;if(_0x3244fe!==0x0&&_0x3244fe!==_0x3b1736){let _0x715e08=_0x4fc27b/_0x3244fe,_0x2aef49=_0x16db8f/_0x3244fe;_0x1cf24f=_0x3b1736*_0x715e08,_0x4fd840=_0x3b1736*_0x2aef49,_0x2bcc2a=!0x0;}if(_0x43a4d8!==0x0&&_0x43a4d8!==_0x1e0681){let _0x5ca939=_0x9394d7/_0x43a4d8,_0x43eb7a=_0x46ce63/_0x43a4d8;_0x1e5c2a=_0x1e0681*_0x5ca939,_0x4514a2=_0x1e0681*_0x43eb7a,_0x2bcc2a=!0x0;}_0x2bcc2a&&this[_0x39ed50(0x133)]({'left':_0x1cf24f,'top':_0x1e5c2a,'right':_0x4fd840,'bottom':_0x4514a2});}[_0x4b851e(0x133)](_0x56ffcc){const _0x3619b7=_0x4b851e;this[_0x3619b7(0x112)][_0x3619b7(0x97)]=_0x56ffcc,this[_0x3619b7(0x2b3)](!0x0);}[_0x4b851e(0x26d)](_0x19bda3){const _0x27e2ef=_0x4b851e;this[_0x27e2ef(0x112)][_0x27e2ef(0x76)]=_0x19bda3,this[_0x27e2ef(0x2b3)](!0x0);}set['transform'](_0xc526){const _0x3e5e75=_0x4b851e;this[_0x3e5e75(0xc5)]=_0xc526;}get[_0x4b851e(0x1c1)](){const _0x3071c3=_0x4b851e;this['_transform']||this['_setTransForm']();let _0x2dfacb=this[_0x3071c3(0xc5)][_0x3071c3(0x259)]();return this['transformForAngle'](_0x2dfacb);}get['shapeModel'](){const _0x450be7=_0x4b851e;return this[_0x450be7(0x112)]['shapeModel'];}get['shapeId'](){const _0x20f3cf=_0x4b851e;return this[_0x20f3cf(0x112)]['shapeId'];}get[_0x4b851e(0x2ee)](){return _0x5b17f8['SHAPE'];}[_0x4b851e(0x161)](_0x30a626,_0x6ab884,_0x38cac9,_0x164902){const _0x359af2=_0x4b851e;let _0x41e9d5=this[_0x359af2(0x112)]['shapeModel'];if(!_0x41e9d5||!_0x6ab884)return;let _0x250dca=_0x38cac9??this[_0x359af2(0x193)],_0x5eb7d9=_0x164902??this[_0x359af2(0x1ff)],_0x2cdf56={'shapeType':_0x41e9d5[_0x359af2(0x180)](),'width':_0x250dca,'height':_0x5eb7d9},_0x41cde8={'renderMode':_0x1ebdea['Path'],'oKey':this[_0x359af2(0x241)],'image':this[_0x359af2(0x112)][_0x359af2(0x76)],'angle':this[_0x359af2(0x2a4)]};_0x41e9d5['updateContext'](_0x2cdf56),_0x30a626[_0x359af2(0x91)]();let _0x53efc3={'top':0x0,'left':0x0,'width':_0x250dca,'height':_0x5eb7d9},_0x53cf53=_0x41e9d5['getDrawingEffectBounds'](_0x53efc3);_0x53cf53?this[_0x359af2(0x94)](_0x30a626,_0x53cf53,_0x2b1f2a=>{const _0x1e45f2=_0x359af2;_0x41e9d5[_0x1e45f2(0xc8)](_0x2b1f2a,_0x53efc3,_0x41cde8);}):(this[_0x359af2(0xea)](),_0x41e9d5['render'](_0x30a626,_0x53efc3,_0x41cde8)),_0x30a626[_0x359af2(0x108)]();let _0x27d3ef=_0x41e9d5[_0x359af2(0x155)](),_0x5f1a56=_0x41e9d5['getShapeTextRect'](_0x53efc3),_0x635734=_0x41e9d5['isLineShape']();if(_0x27d3ef&&_0x5f1a56&&!_0x635734){_0x30a626[_0x359af2(0x91)](),this[_0x359af2(0x270)]()[_0x359af2(0x2ae)]&&_0x30a626[_0x359af2(0x24a)](-0x1,0x1);let _0x48c25c=_0x250dca/0x2,_0x591a00=_0x5eb7d9/0x2;_0x30a626[_0x359af2(0x190)](-_0x48c25c,-_0x591a00),_0x30a626[_0x359af2(0x223)](),this['_drawShapeText'](_0x30a626,_0x27d3ef,_0x5f1a56),_0x30a626[_0x359af2(0x108)]();}}[_0x4b851e(0xfd)](_0x50a9cb){}[_0x4b851e(0x178)](_0x5b3416,_0x599b3c,_0x3e1b86){const _0x2af876=_0x4b851e;var _0x3a9162;this[_0x2af876(0x112)][_0x2af876(0x24b)]||(!((_0x3a9162=_0x599b3c['dataModel'])!=null&&_0x3a9162[_0x2af876(0xd3)])&&'isRichText'in _0x599b3c&&_0x599b3c['isRichText']===!0x1?this[_0x2af876(0x192)](_0x5b3416,_0x599b3c,_0x3e1b86):this[_0x2af876(0x18f)](_0x5b3416,_0x599b3c,_0x3e1b86));}[_0x4b851e(0x192)](_0x459ae2,_0x1b5032,_0x2cb3f9){const _0x446572=_0x4b851e;this[_0x446572(0x18f)](_0x459ae2,{..._0x1b5032,'text':_0x1b5032[_0x446572(0x173)]??'','dataModel':{'doc':_0x3ec507(_0x1b5032,'sheets-shape-text-'+this[_0x446572(0x241)])}},_0x2cb3f9);}[_0x4b851e(0x18f)](_0x235dd1,_0x447815,_0x14c40b){_0x2cc10b(_0x235dd1,this['_formulaAnimation'],(_0x5b44a8,_0x5674bc)=>{const _0x18faaf=_0x1d1c;this[_0x18faaf(0x1a4)](_0x5b44a8,_0x447815,_0x14c40b,_0x5674bc);});}[_0x4b851e(0x1a4)](_0x26243c,_0x282854,_0x1c3f88,_0x22f338){const _0x46464b=_0x4b851e;let _0x4759d2=this[_0x46464b(0x112)][_0x46464b(0x2b4)];if(!_0x282854['dataModel']||!_0x4759d2)return;let _0x2b3458=_0x5c2b25(_0x282854[_0x46464b(0x1ae)]);if(!_0x2b3458)return;let _0xf3ac18=_0x2b3458['doc'];if(!_0xf3ac18)return;let _0x5c6057=_0x37b416(_0xf3ac18,_0x22f338),_0x3d22ef=_0x2b3458['va']??_0x43e240['TOP'],_0x428810=_0x2b3458['ha']??_0x4305f0[_0x46464b(0x16c)],_0x484e5b=dr(this[_0x46464b(0x112)][_0x46464b(0x197)][_0x46464b(0x88)](),_0x282854,_0x5c6057),_0x59ccb3=_0x282854[_0x46464b(0x202)],_0x28e62f=new _0x354220(_0x12ba59(_0x5c6057,{'isHorizontal':_0x59ccb3!==!0x1,'textRect':_0x1c3f88,'verticalAlign':_0x3d22ef,'horizontalAlign':_0x428810,'wrapStrategy':_0x484e5b[_0x46464b(0x257)]})),_0x226234=new _0x336c4f(_0x28e62f),_0x1f4e1c=_0x43b69e['create'](_0x226234,_0x4759d2);_0x1f4e1c['calculate']();let _0x56a77e=_0x1f4e1c['getActualSize']()[_0x46464b(0xef)],_0x3da661=_0x49c80c({'contentHeight':_0x56a77e,'verticalAlign':_0x3d22ef,'viewportHeight':_0x1c3f88[_0x46464b(0x1ff)]});_0x28e62f[_0x46464b(0x9c)]({'pageSize':{'width':_0x59ccb3===!0x1?_0x1c3f88[_0x46464b(0x1ff)]:_0x1c3f88[_0x46464b(0x193)],'height':_0x3da661[_0x46464b(0x2ac)]}}),_0x28e62f[_0x46464b(0x1c4)]({'t':_0x3da661['marginTop']}),_0x1f4e1c['calculate']();let _0x7698b9=new _0x5d905b('shape-text-'+this[_0x46464b(0x241)],_0x1f4e1c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x46464b(0x2b3)](!0x0)});_0x7698b9[_0x46464b(0xee)](_0x1c3f88[_0x46464b(0x193)],_0x3da661[_0x46464b(0x2ac)]),_0x26243c[_0x46464b(0x91)](),_0x26243c[_0x46464b(0x233)](_0x1c3f88[_0x46464b(0x1d3)],_0x1c3f88[_0x46464b(0x292)]),_0x484e5b[_0x46464b(0x27e)]&&(_0x26243c['beginPath'](),_0x26243c['rect'](0x0,_0x3da661[_0x46464b(0x195)],_0x1c3f88['width'],_0x3da661[_0x46464b(0x1f9)]),_0x26243c[_0x46464b(0x27e)]()),_0x3da661[_0x46464b(0xa0)]&&_0x26243c['translateWithPrecision'](0x0,_0x3da661['contentVerticalOffset']),_0x7698b9[_0x46464b(0x7c)](_0x26243c),_0x26243c[_0x46464b(0x108)](),_0x7698b9[_0x46464b(0x254)](),_0x1f4e1c[_0x46464b(0x254)](),_0x226234[_0x46464b(0x254)](),_0x28e62f[_0x46464b(0x254)]();}['render'](_0x33bdea,_0x4af45a,_0x5015bf=!0x1){const _0x453b30=_0x4b851e;if(!this[_0x453b30(0xe4)])return this[_0x453b30(0x2b3)](!0x1),this;let {width:_0x4dbb61,height:_0x3ec1ba,left:_0x93330d,top:_0x1e1c1f}=this,_0x3ad721=this['getRealBound']();if(_0x4dbb61=_0x3ad721['width'],_0x3ec1ba=_0x3ad721[_0x453b30(0x1ff)],_0x93330d=_0x3ad721[_0x453b30(0x1d3)],_0x1e1c1f=_0x3ad721[_0x453b30(0x292)],this[_0x453b30(0x236)](_0x4af45a)){let {top:_0x1ab75b,left:_0x1d2d51,bottom:_0x680966,right:_0x294c65}=_0x4af45a[_0x453b30(0xbe)];if(_0x4dbb61+this['strokeWidth']+_0x93330d<_0x1d2d51||_0x294c65<_0x93330d||_0x3ec1ba+this[_0x453b30(0x1fc)]+_0x1e1c1f<_0x1ab75b||_0x680966<_0x1e1c1f)return this;}let _0x2848dc=_0x93330d+_0x4dbb61/0x2,_0x5b71e4=_0x1e1c1f+_0x3ec1ba/0x2,_0x56a5b7=this[_0x453b30(0x1c1)][_0x453b30(0x1c5)]();if(this[_0x453b30(0x112)][_0x453b30(0x24b)]){let _0x4bf4e3=this[_0x453b30(0x270)](),_0x2fff45=new _0x4915c5();_0x2fff45[_0x453b30(0x164)]({..._0x4bf4e3}),_0x56a5b7=_0x2fff45[_0x453b30(0x1c5)]();}return _0x33bdea[_0x453b30(0x91)](),this[_0x453b30(0x112)][_0x453b30(0x197)][_0x453b30(0x87)]===!0x0||_0x33bdea[_0x453b30(0x1c1)](_0x56a5b7[0x0],_0x56a5b7[0x1],_0x56a5b7[0x2],_0x56a5b7[0x3],_0x2848dc,_0x5b71e4),this[_0x453b30(0x161)](_0x33bdea,_0x4af45a,_0x4dbb61,_0x3ec1ba),_0x33bdea[_0x453b30(0x108)](),this[_0x453b30(0x2b3)](!0x1),this;}[_0x4b851e(0x81)](_0x130273){const _0x2858be=_0x4b851e;let {left:_0x16c5e0,top:_0x287093,width:_0x3b7b99,height:_0x1839a7}=this['getRealBound'](),_0x5d9d93=this['transform'][_0x2858be(0x1c5)](),_0x4492ff=_0x16c5e0+_0x3b7b99/0x2,_0x544606=_0x287093+_0x1839a7/0x2,_0x83bb5e=new _0x4915c5([_0x5d9d93[0x0],_0x5d9d93[0x1],_0x5d9d93[0x2],_0x5d9d93[0x3],_0x4492ff,_0x544606]),_0x3793c4=this[_0x2858be(0x250)]();return(this[_0x2858be(0x265)]&&(_0x3793c4==null?void 0x0:_0x3793c4[_0x2858be(0x2ee)])===_0x5b17f8['GROUP']?_0x3793c4['ancestorTransform']['multiply'](_0x83bb5e):_0x83bb5e)['invert']()[_0x2858be(0x74)](_0x130273);}['isHit'](_0x318d7f){const _0x12bb18=_0x4b851e;let {left:_0x3b391e,top:_0x49f6e6,width:_0x47c623,height:_0x525ec8}=this[_0x12bb18(0x237)](),_0x36c92e=_0x3b391e+_0x47c623/0x2,_0x4c3f82=_0x49f6e6+_0x525ec8/0x2,_0x26bc80=this[_0x12bb18(0x1c1)][_0x12bb18(0x1c5)](),_0x3f3b9f=new _0x4915c5([_0x26bc80[0x0],_0x26bc80[0x1],_0x26bc80[0x2],_0x26bc80[0x3],_0x36c92e,_0x4c3f82]),_0x4343c3=this[_0x12bb18(0x250)](),_0x1bc5d3=(this[_0x12bb18(0x265)]&&(_0x4343c3==null?void 0x0:_0x4343c3[_0x12bb18(0x2ee)])===_0x5b17f8[_0x12bb18(0x25f)]?_0x4343c3['ancestorTransform'][_0x12bb18(0x1ea)](_0x3f3b9f):_0x3f3b9f)[_0x12bb18(0x124)]()['applyPoint'](_0x318d7f),_0x5f5a4d=_0x47c623/0x2,_0x2b2843=_0x525ec8/0x2,_0x2264b0=this['_props'][_0x12bb18(0x197)];return _0x2264b0&&_0x2264b0[_0x12bb18(0x299)]()?_0x2264b0[_0x12bb18(0x1f1)](_0x1bc5d3['x'],_0x1bc5d3['y'],_0x47c623,_0x525ec8):_0x1bc5d3['x']>=-_0x5f5a4d-this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['x']<=_0x5f5a4d+this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['y']>=-_0x2b2843-this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['y']<=_0x2b2843+this['strokeWidth']/0x2;}[_0x4b851e(0x254)](){const _0x5a5846=_0x4b851e;this[_0x5a5846(0x14a)][_0x5a5846(0x254)](),this[_0x5a5846(0x112)]['shapeModel']=null,super[_0x5a5846(0x254)]();}},pr=class extends _0x25aea5{constructor(_0x5c84ac,_0x164355){const _0x42afa5=_0x4b851e;super(_0x5c84ac,_0x164355),Y(this,'_shapeId',null),Y(this,_0x42afa5(0x1e4),null),Y(this,_0x42afa5(0x7b),null),Y(this,_0x42afa5(0x21a),null),_0x164355&&this[_0x42afa5(0x1ec)](_0x164355);}[_0x4b851e(0x176)](){const _0x257bfe=_0x4b851e;return{'unitId':this[_0x257bfe(0x7b)],'subUnitId':this[_0x257bfe(0x21a)],'drawingId':this['_shapeId']};}[_0x4b851e(0x1ec)](_0x39b288){const _0xcf5aac=_0x4b851e;_0x39b288[_0xcf5aac(0x2e3)]!==void 0x0&&(this[_0xcf5aac(0xf4)]=_0x39b288[_0xcf5aac(0x2e3)]),_0x39b288[_0xcf5aac(0x165)]!==void 0x0&&(this[_0xcf5aac(0x1e4)]=_0x39b288['adjName']),_0x39b288[_0xcf5aac(0x2e2)]!==void 0x0&&(this[_0xcf5aac(0x7b)]=_0x39b288[_0xcf5aac(0x2e2)]),_0x39b288[_0xcf5aac(0x20f)]!==void 0x0&&(this['_subUnitId']=_0x39b288[_0xcf5aac(0x20f)]),this['transformByState']({'width':_0x39b288[_0xcf5aac(0x193)],'height':_0x39b288[_0xcf5aac(0x1ff)]});}[_0x4b851e(0x161)](_0x45f27b){const _0x44c012=_0x4b851e;_0xdb102c[_0x44c012(0x106)](_0x45f27b,{'radius':_0x179953[_0x44c012(0x162)],'fill':_0x179953[_0x44c012(0x2c8)],'stroke':_0x179953[_0x44c012(0xb8)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x4831b2,_0x4f1db0){return function(_0x87c6dd,_0x1fde21){_0x4f1db0(_0x87c6dd,_0x1fde21,_0x4831b2);};}function Z(_0x5562be,_0x22c505,_0x707c50,_0x2ebe24){const _0x1c1163=_0x4b851e;var _0x4ede51=arguments[_0x1c1163(0x8c)],_0x2ef28d=_0x4ede51<0x3?_0x22c505:_0x2ebe24===null?_0x2ebe24=Object[_0x1c1163(0xeb)](_0x22c505,_0x707c50):_0x2ebe24,_0xae1afd;if(typeof Reflect==_0x1c1163(0xdc)&&typeof Reflect[_0x1c1163(0x73)]==_0x1c1163(0x2b7))_0x2ef28d=Reflect[_0x1c1163(0x73)](_0x5562be,_0x22c505,_0x707c50,_0x2ebe24);else{for(var _0x44664a=_0x5562be['length']-0x1;_0x44664a>=0x0;_0x44664a--)(_0xae1afd=_0x5562be[_0x44664a])&&(_0x2ef28d=(_0x4ede51<0x3?_0xae1afd(_0x2ef28d):_0x4ede51>0x3?_0xae1afd(_0x22c505,_0x707c50,_0x2ef28d):_0xae1afd(_0x22c505,_0x707c50))||_0x2ef28d);}return _0x4ede51>0x3&&_0x2ef28d&&Object['defineProperty'](_0x22c505,_0x707c50,_0x2ef28d),_0x2ef28d;}let Q=class extends _0x387ec6{constructor(_0x3e186d,_0x2473c3,_0x404fd1,_0x312c43,_0x575cd3,_0x5274b6){const _0x207b36=_0x4b851e;super(),this[_0x207b36(0x9d)]=_0x3e186d,this['_sheetsShapeService']=_0x2473c3,this[_0x207b36(0x1b7)]=_0x404fd1,this[_0x207b36(0x1dd)]=_0x312c43,this[_0x207b36(0xa5)]=_0x575cd3,this[_0x207b36(0x15e)]=_0x5274b6,Y(this,'_formulaShapes',new Map()),this[_0x207b36(0x183)](this[_0x207b36(0x15e)][_0x207b36(0x22b)]['subscribe'](_0x5aca12=>{const _0x67c52e=_0x207b36;var _0x36296b;(_0x36296b=this['_formulaShapes'][_0x67c52e(0x2c2)](this['_formulaKey'](_0x5aca12[_0x67c52e(0x2e2)],_0x5aca12['subUnitId'],_0x5aca12[_0x67c52e(0x2e3)])))==null||_0x36296b['forEach'](_0x3aa420=>_0x3aa420[_0x67c52e(0x111)](_0x5aca12[_0x67c52e(0x25b)],_0x5aca12[_0x67c52e(0x15a)]));})),this[_0x207b36(0x183)](this['_drawingManagerService'][_0x207b36(0x86)][_0x207b36(0xd9)](_0x1054a2=>{const _0x5e32c7=_0x207b36;_0x1054a2[_0x5e32c7(0xd7)](_0x5b929f=>{const _0x1afac4=_0x5e32c7;this[_0x1afac4(0x15e)][_0x1afac4(0x1e0)]({'unitId':_0x5b929f[_0x1afac4(0x2e2)],'subUnitId':_0x5b929f['subUnitId'],'shapeId':_0x5b929f['drawingId']}),this['_formulaShapes']['delete'](this[_0x1afac4(0x186)](_0x5b929f['unitId'],_0x5b929f[_0x1afac4(0x20f)],_0x5b929f[_0x1afac4(0x179)]));});}));}[_0x4b851e(0x187)](_0x1b8d49,_0x17c6bb,_0x7c8d83){const _0x5f13a2=_0x4b851e;let {transform:_0x1dc410,drawingType:_0x184253,srcRect:_0x42f5d8,prstGeom:_0x2ed45a,groupId:_0x4c3007,unitId:_0x4bbeed,subUnitId:_0x117c69,drawingId:_0x3d62a9,isMultiTransform:_0x344fe0,transforms:_0x295956,hidden:_0xe945bb,selectable:_0x433472}=_0x1b8d49;if(_0x184253!==_0x514277[_0x5f13a2(0xcb)]||!this['_drawingManagerService']['getDrawingVisible']()||_0x1dc410==null)return;let _0xf9d976=this[_0x5f13a2(0x9d)][_0x5f13a2(0x118)](),_0x2fbbaf=_0x344fe0&&_0x295956?_0x295956:[_0x1dc410],_0x33f529=[];for(let _0x59a8b2 of _0x2fbbaf){let {left:_0x472f94,top:_0x198215,width:_0x22581d,height:_0x356217,angle:_0x46ece3,flipX:_0x4c147,flipY:_0x38f0b0,skewX:_0x42f100,skewY:_0x4fadfc}=_0x59a8b2,_0x2b3084=_0x2fbbaf[_0x5f13a2(0x2c5)](_0x59a8b2),_0xc3fe9d=_0x4d60ae({'unitId':_0x4bbeed,'subUnitId':_0x117c69,'drawingId':_0x3d62a9},_0x344fe0?_0x2b3084:void 0x0),_0x4d9024=_0x17c6bb['getObjectIncludeInGroup'](_0xc3fe9d);if(_0x4d9024!=null){let _0x540775={'unitId':_0x4bbeed,'subUnitId':_0x117c69,'shapeId':_0x3d62a9};_0x4d9024 instanceof fr&&this['refreshFormulaPresentation'](_0x4d9024,_0x540775),_0x4d9024[_0x5f13a2(0x1ab)]({'left':_0x472f94,'top':_0x198215,'width':_0x22581d,'height':_0x356217,'angle':_0x46ece3,'flipX':_0x4c147,'flipY':_0x38f0b0,'skewX':_0x42f100,'skewY':_0x4fadfc});continue;}let _0x549a86=this[_0x5f13a2(0x9d)]['getDrawingOrder'](_0x4bbeed,_0x117c69),_0x39aaea=_0x549a86['indexOf'](_0x3d62a9);if(_0x17c6bb[_0x5f13a2(0x2cb)](_0xc3fe9d)||!this[_0x5f13a2(0x9d)][_0x5f13a2(0xb4)]())continue;let _0x2ac0aa=this[_0x5f13a2(0x80)][_0x5f13a2(0x138)](_0x4bbeed,_0x117c69,_0x3d62a9);if(!_0x2ac0aa)continue;let _0x319b2d=_0x47e56f(_0x2ac0aa[_0x5f13a2(0x180)]())?{..._0x3e5d23,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3e5d23,_0x44729a=_0x2ac0aa[_0x5f13a2(0x88)]()['formulaBinding'],_0x30d6f8={'unitId':_0x4bbeed,'subUnitId':_0x117c69,'shapeId':_0x3d62a9};_0x44729a&&this[_0x5f13a2(0x15e)][_0x5f13a2(0x2ea)](_0x30d6f8,_0x44729a);let _0x218bad=new fr(_0xc3fe9d,{..._0x59a8b2,'zIndex':_0x39aaea===-0x1?_0x549a86[_0x5f13a2(0x8c)]-0x1:_0x39aaea,'shapeModel':_0x2ac0aa,'localeService':this['_localeService'],'shapeId':_0x3d62a9,'unitId':_0x4bbeed,'subUnitId':_0x117c69,'visible':_0xe945bb!==!0x0,'evented':_0x433472!==!0x1,'formulaPresentation':_0x44729a?this[_0x5f13a2(0x15e)]['getPresentation'](_0x30d6f8):void 0x0,'animateFormulaPresentation':(_0x44729a==null?void 0x0:_0x44729a[_0x5f13a2(0x15a)])!==!0x1,'transformerConfig':_0x319b2d});if(_0x44729a){let _0x341433=this[_0x5f13a2(0x186)](_0x4bbeed,_0x117c69,_0x3d62a9),_0x4c9377=this[_0x5f13a2(0xc1)][_0x5f13a2(0x2c2)](_0x341433)??new Set();_0x4c9377[_0x5f13a2(0x2de)](_0x218bad),this['_formulaShapes'][_0x5f13a2(0x177)](_0x341433,_0x4c9377);}_0x17c6bb[_0x5f13a2(0x2ec)](_0x218bad,_0x22719c),_0xf9d976&&_0x17c6bb[_0x5f13a2(0x290)](_0x218bad),_0x4c3007&&_0x4aa95f({'drawingId':_0x4c3007,'unitId':_0x4bbeed,'subUnitId':_0x117c69},_0x218bad,_0x17c6bb,this[_0x5f13a2(0x9d)]),_0x2ed45a!=null&&_0x218bad[_0x5f13a2(0xaa)](_0x2ed45a),_0x42f5d8!=null&&_0x218bad[_0x5f13a2(0x133)](_0x42f5d8);let _0x94aa87=this[_0x5f13a2(0x2db)](_0x218bad,_0x2ac0aa['getShapeData']());if(_0x94aa87){var _0x20ce5b;_0x7c8d83==null||(_0x20ce5b=_0x7c8d83[_0x5f13a2(0x1a5)])==null||_0x20ce5b[_0x5f13a2(0x2de)](_0x94aa87);}_0x33f529[_0x5f13a2(0x102)](_0x218bad);}return _0x33f529;}[_0x4b851e(0x186)](_0x3f10c4,_0x4e6468,_0x123700){return _0x3f10c4+'\x00'+_0x4e6468+'\x00'+_0x123700;}['refreshFormulaPresentation'](_0x3b2144,_0x13a64c){const _0x3cfe04=_0x4b851e;let _0x3f29df=this['_sheetsShapeService'][_0x3cfe04(0x138)](_0x13a64c[_0x3cfe04(0x2e2)],_0x13a64c[_0x3cfe04(0x20f)],_0x13a64c['shapeId']),_0x2b81fd=_0x3f29df==null?void 0x0:_0x3f29df[_0x3cfe04(0x88)]()[_0x3cfe04(0x2ba)],_0x100dc5=this[_0x3cfe04(0x186)](_0x13a64c[_0x3cfe04(0x2e2)],_0x13a64c['subUnitId'],_0x13a64c[_0x3cfe04(0x2e3)]);if(_0x2b81fd){this[_0x3cfe04(0x15e)][_0x3cfe04(0x2ea)](_0x13a64c,_0x2b81fd);let _0x2693a7=this[_0x3cfe04(0xc1)][_0x3cfe04(0x2c2)](_0x100dc5)??new Set();_0x2693a7['add'](_0x3b2144),this[_0x3cfe04(0xc1)][_0x3cfe04(0x177)](_0x100dc5,_0x2693a7);}else{var _0x47dbf6;this[_0x3cfe04(0x15e)]['unregister'](_0x13a64c),(_0x47dbf6=this[_0x3cfe04(0xc1)][_0x3cfe04(0x2c2)](_0x100dc5))==null||_0x47dbf6[_0x3cfe04(0x167)](_0x3b2144);}_0x3b2144[_0x3cfe04(0x111)](_0x2b81fd?this[_0x3cfe04(0x15e)][_0x3cfe04(0x2e9)](_0x13a64c):void 0x0,(_0x2b81fd==null?void 0x0:_0x2b81fd[_0x3cfe04(0x15a)])!==!0x1);}[_0x4b851e(0x2e5)](_0x7e79cf){const _0xacb004=_0x4b851e;let _0x3fd054=_0x7e79cf[_0xacb004(0x197)][_0xacb004(0x88)](),_0x1333cd=_0x3fd054[_0xacb004(0x1d4)];if(!_0x1333cd||_0x1333cd[_0xacb004(0x148)]!==_0x5cb73a['PictureFill']||!_0x1333cd[_0xacb004(0x252)]){_0x7e79cf[_0xacb004(0x26d)](void 0x0);return;}this[_0xacb004(0x2db)](_0x7e79cf,_0x3fd054);}['_loadShapePictureFill'](_0x578397,_0x1ff821){const _0x2fae11=_0x4b851e;let _0x6ee150=_0x1ff821[_0x2fae11(0x1d4)];if(!_0x6ee150||_0x6ee150['fillType']!==_0x5cb73a['PictureFill']||!_0x6ee150[_0x2fae11(0x252)])return;let _0x288df2=_0x6ee150[_0x2fae11(0x252)],_0x5aa78d=_0x6ee150[_0x2fae11(0x10b)]??_0x22d802['URL'],_0x237e4c=this[_0x2fae11(0x1dd)][_0x2fae11(0x2f3)](_0x288df2,_0x5aa78d);if(_0x237e4c){_0x578397[_0x2fae11(0x26d)](_0x237e4c);return;}return this['_loadAndSetImage'](_0x578397,_0x288df2,_0x5aa78d);}async['_loadAndSetImage'](_0x5f30fb,_0x3e74da,_0x4e2266){const _0x59a761=_0x4b851e;let _0x567f19;try{if(_0x4e2266===_0x22d802['UUID'])_0x567f19=await this['_imageIoService']['getImage'](_0x3e74da);else{if(_0x4e2266===_0x22d802[_0x59a761(0x1b2)])try{_0x567f19=await this[_0x59a761(0xa5)][_0x59a761(0x279)](_0x3e74da);}catch{_0x567f19=_0x3e74da;}else _0x567f19=_0x3e74da;}}catch(_0x2d902f){console[_0x59a761(0x151)](_0x59a761(0x100),_0x2d902f);return;}await new Promise(_0x2e6bd3=>{const _0x905d0d=_0x59a761;let _0x539f7f=new window[(_0x905d0d(0x207))]();_0x539f7f[_0x905d0d(0x216)]=()=>{const _0x31b1af=_0x905d0d;this['_imageIoService'][_0x31b1af(0x142)](_0x3e74da,_0x4e2266,_0x539f7f),_0x5f30fb[_0x31b1af(0x26d)](_0x539f7f),_0x2e6bd3();},_0x539f7f[_0x905d0d(0x18e)]=()=>{console['error']('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x3e74da),_0x2e6bd3();},_0x539f7f['src']=_0x567f19;});}};Q=Z([X(0x0,_0x1644d5),X(0x1,_0x2e2475(_0x1bfe6b)),X(0x2,_0x2e2475(_0x3fae61)),X(0x3,_0xf5ac9),X(0x4,_0x46b574),X(0x5,_0x2e2475(_0x3c9fb4))],Q);let mr=class extends _0x387ec6{constructor(_0x53281f,_0xdf9f96,_0x1cb648,_0x1aa7ea,_0x52da7a,_0x1d0e94){const _0x53120f=_0x4b851e;super(),this['_drawingManagerService']=_0x53281f,this['_sheetsShapeService']=_0xdf9f96,this[_0x53120f(0x1bb)]=_0x1cb648,this[_0x53120f(0x2f7)]=_0x1aa7ea,this[_0x53120f(0x25c)]=_0x52da7a,this[_0x53120f(0x13c)]=_0x1d0e94,Y(this,_0x53120f(0x146),null),Y(this,'_unitId',null),Y(this,_0x53120f(0x21a),null),Y(this,_0x53120f(0x149),void 0x0),Y(this,_0x53120f(0x29c),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x53120f(0x260),0x0),Y(this,_0x53120f(0x191),0x0),Y(this,_0x53120f(0x1a2),0x0),Y(this,_0x53120f(0x12f),!0x1),Y(this,_0x53120f(0x1a9),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x53120f(0xc4),void 0x0),Y(this,_0x53120f(0x2d6),void 0x0),Y(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x53120f(0xdb)](),this[_0x53120f(0x1de)]();}[_0x4b851e(0x2bc)](_0x5ae60d,_0x149880,_0x5a487b){const _0x403cde=_0x4b851e;let _0x19d8d7=this[_0x403cde(0x80)][_0x403cde(0x138)](_0x5ae60d,_0x149880,_0x5a487b);if(_0x19d8d7)return _0x19d8d7[_0x403cde(0xfd)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x4b851e(0x2d8)](){const _0x449092=_0x4b851e;this[_0x449092(0x1fb)](!0x0);}[_0x4b851e(0x1e1)](_0x3b75bb){const _0x1131d9=_0x4b851e;this[_0x1131d9(0x2f1)]=_0x3b75bb;}[_0x4b851e(0x7d)](_0x381994,_0xe1040f,_0x46b916,_0x438e93){const _0x3eb07c=_0x4b851e;let _0x5ea5ff=this[_0x3eb07c(0x80)][_0x3eb07c(0x138)](_0x381994,_0xe1040f,_0x46b916);if(_0x5ea5ff)return _0x5ea5ff['getAdjustInfoByName'](_0x438e93);}['_createShapeAdjustControls'](_0x37ff08=!0x1){const _0x571bf1=_0x4b851e;if(this[_0x571bf1(0x7b)]===null||this[_0x571bf1(0x21a)]===null||this[_0x571bf1(0x146)]===null)return;let _0xb3a1d0=this[_0x571bf1(0x1bb)]['getRenderUnitById'](this['_unitId']);if(!_0xb3a1d0||!_0xb3a1d0[_0x571bf1(0x25d)](_0x58befb)['getCurrentSkeleton']())return;let {scene:_0x244822}=_0xb3a1d0,_0x4a2432={'unitId':this[_0x571bf1(0x7b)],'subUnitId':this[_0x571bf1(0x21a)],'drawingId':this[_0x571bf1(0x146)]},_0x4ed21f=this['_drawingManagerService'][_0x571bf1(0x2cc)](_0x4a2432),{transform:_0x3572fe}=_0x4ed21f;if(!_0x3572fe||_0x4ed21f[_0x571bf1(0x14f)]!==_0x514277[_0x571bf1(0xcb)])return;let {left:_0x37d944,top:_0x2c01ca,width:_0x4cf9e9,height:_0x1db980,flipX:_0x54d87c,flipY:_0x527aca,angle:_0x33ab61=0x0}=_0x3572fe;if(_0x37d944===void 0x0||_0x2c01ca===void 0x0)return;if(_0x37ff08){let _0x2e64e5=this[_0x571bf1(0x80)][_0x571bf1(0x138)](this[_0x571bf1(0x7b)],this[_0x571bf1(0x21a)],this[_0x571bf1(0x146)]);_0x2e64e5==null||_0x2e64e5['updateContext']({'width':_0x4cf9e9??0x0,'height':_0x1db980??0x0}),this[_0x571bf1(0x149)]=_0x2e64e5==null?void 0x0:_0x2e64e5[_0x571bf1(0xfd)]();}let _0x16767f=this[_0x571bf1(0x149)];for(let _0xa4492=0x0;_0xa4492<_0x16767f['length'];_0xa4492++){let _0x5df65f=_0x16767f[_0xa4492],_0x2801c0=_0x5df65f['x'],_0x4e9a72=_0x5df65f['y'];if(_0x54d87c&&(_0x2801c0=(_0x4cf9e9||0x0)-_0x2801c0),_0x527aca&&(_0x4e9a72=(_0x1db980||0x0)-_0x4e9a72),_0x33ab61!==0x0){let _0x2919d1=(_0x4cf9e9||0x0)/0x2,_0x4c80c6=(_0x1db980||0x0)/0x2,_0xfc94be=_0x33ab61*Math['PI']/0xb4,_0x5744bb=Math['cos'](_0xfc94be),_0x37792e=Math[_0x571bf1(0x12d)](_0xfc94be),_0x420517=_0x2801c0-_0x2919d1,_0xe8c9a9=_0x4e9a72-_0x4c80c6;_0x2801c0=_0x2919d1+(_0x420517*_0x5744bb-_0xe8c9a9*_0x37792e),_0x4e9a72=_0x4c80c6+(_0x420517*_0x37792e+_0xe8c9a9*_0x5744bb);}let _0x487dfe={'x':_0x2801c0,'y':_0x4e9a72,'adjName':_0x5df65f[_0x571bf1(0x165)]};this[_0x571bf1(0x72)](_0x244822,_0x487dfe,_0x487dfe[_0x571bf1(0x165)],_0x37d944,_0x2c01ca,this[_0x571bf1(0x7b)],this[_0x571bf1(0x21a)]);}}[_0x4b851e(0x1fb)](_0x3631fc=!0x1){const _0x387ce4=_0x4b851e;_0x3631fc&&(this['_clearShapeAdjustControls'](),this[_0x387ce4(0x22c)](_0x3631fc));}['_addShapeAdjustControl'](_0x22d120,_0x5b7fe6,_0x19eb2a,_0x4327fc,_0x486048,_0x49cf2b,_0x29c43b){const _0x2f67cb=_0x4b851e;if(!this[_0x2f67cb(0x146)])return;let _0x3c193f=_0x22d120[_0x2f67cb(0x2cb)](_0x2f67cb(0x131)+this['_activeShapeId']+'-'+_0x19eb2a);if(_0x3c193f){_0x3c193f[_0x2f67cb(0x1ab)]({'left':_0x5b7fe6['x']+_0x4327fc-_0x179953['adjHandleSize'],'top':_0x5b7fe6['y']+_0x486048-_0x179953['adjHandleSize']});return;}let _0x34ab15={'left':_0x5b7fe6['x']+_0x4327fc-_0x179953['adjHandleSize'],'top':_0x5b7fe6['y']+_0x486048-_0x179953[_0x2f67cb(0x162)],'adjName':_0x19eb2a,'shapeId':this['_activeShapeId'],'unitId':_0x49cf2b,'subUnitId':_0x29c43b,'width':_0x179953[_0x2f67cb(0x162)]+0x8,'height':_0x179953[_0x2f67cb(0x162)]+0x8,'zIndex':_0x22719c+0x1,'evented':!0x0},_0x2cc9b8=new pr(_0x2f67cb(0x131)+this[_0x2f67cb(0x146)]+'-'+_0x19eb2a,_0x34ab15);this[_0x2f67cb(0x29c)]['push'](_0x2cc9b8),this[_0x2f67cb(0x2a1)](_0x2cc9b8,_0x22d120,_0x19eb2a),_0x22d120['addObject'](_0x2cc9b8,_0x22719c+0x1);}[_0x4b851e(0xcd)](){const _0x39b369=_0x4b851e;this[_0x39b369(0x29c)]['length']!==0x0&&(this['_shapes'][_0x39b369(0xd7)](_0x4c0c39=>{const _0x59d74d=_0x39b369;_0x4c0c39[_0x59d74d(0x254)]();}),this[_0x39b369(0x29c)]=[]);}[_0x4b851e(0xb5)](){const _0x58266d=_0x4b851e;this[_0x58266d(0x22c)]();}['_getScrollInfo'](_0x4364e9,_0x47e6c9){const _0x4f7684=_0x4b851e;var _0x40e216;let _0x1ab239={'x':0x0,'y':0x0};if(!_0x4364e9||!_0x47e6c9)return _0x1ab239;let _0x146303=this[_0x4f7684(0x1bb)][_0x4f7684(0x75)](_0x4364e9);if(!_0x146303||!_0x146303['with'](_0x58befb)[_0x4f7684(0x2c6)](_0x47e6c9))return _0x1ab239;let _0x383249=_0x146303['with'](_0x51344e),_0x5a5f67=_0x383249==null?void 0x0:_0x383249[_0x4f7684(0x209)]();if(!_0x5a5f67)return _0x1ab239;let _0x42600d=(_0x40e216=this[_0x4f7684(0x25c)][_0x4f7684(0x1cd)](_0x4364e9))==null?void 0x0:_0x40e216[_0x4f7684(0x136)](_0x47e6c9);if(!_0x42600d)return _0x1ab239;let _0x4fb474=_0x23e0fe(_0x5a5f67[_0x4f7684(0xde)],_0x5a5f67[_0x4f7684(0x2d0)],_0x146303[_0x4f7684(0x255)],_0x42600d);return _0x4fb474?{'x':_0x4fb474['viewportScrollX'],'y':_0x4fb474[_0x4f7684(0x1cc)]}:_0x1ab239;}[_0x4b851e(0x21e)](_0x5c96bb,_0xb80e29){const _0x749021=_0x4b851e;var _0xcb13d3;let _0x2216f5=(_0xcb13d3=this['_univerInstanceService'][_0x749021(0x1cd)](_0x5c96bb))==null?void 0x0:_0xcb13d3[_0x749021(0x136)](_0xb80e29);return(_0x2216f5==null?void 0x0:_0x2216f5['getZoomRatio']())??0x1;}[_0x4b851e(0x2a1)](_0x300d95,_0x490cd3,_0x8e982b){const _0x55ccf5=_0x4b851e;this[_0x55ccf5(0x183)](_0x52399e(_0x300d95[_0x55ccf5(0x120)][_0x55ccf5(0x26b)]((_0x55d947,_0x216709)=>{const _0x12942d=_0x55ccf5;var _0x71e853,_0x459661,_0x5ec2ed,_0x581663;let _0x17dc08=_0x300d95[_0x12942d(0x176)]();this[_0x12942d(0x1a9)]=this['_getShapeAdjustInfosById'](_0x17dc08[_0x12942d(0x2e2)],_0x17dc08[_0x12942d(0x20f)],_0x17dc08['drawingId'],_0x8e982b),this[_0x12942d(0xf7)]=this['_sheetsShapeService'][_0x12942d(0x138)](_0x17dc08[_0x12942d(0x2e2)],_0x17dc08[_0x12942d(0x20f)],_0x17dc08[_0x12942d(0x179)]);let _0x4fe3ad=this[_0x12942d(0x9d)]['getDrawingByParam']({'unitId':this[_0x12942d(0x7b)],'subUnitId':this[_0x12942d(0x21a)],'drawingId':this[_0x12942d(0x146)]}),{transform:_0x11a106}=_0x4fe3ad;if(_0x11a106){let {left:_0x3155d6,top:_0x1d9091,width:_0x354f48,height:_0x18a087}=_0x11a106;this[_0x12942d(0x1a0)]=_0x3155d6||0x0,this['_baseShapeTop']=_0x1d9091||0x0,this[_0x12942d(0x191)]=_0x354f48||0x0,this[_0x12942d(0x1a2)]=_0x18a087||0x0;}let _0x2c6dc7=!!((_0x71e853=_0x4fe3ad['transform'])!=null&&_0x71e853[_0x12942d(0x2ae)]),_0x3704f3=!!((_0x459661=_0x4fe3ad[_0x12942d(0x1c1)])!=null&&_0x459661['flipY']),_0x5edb83=((_0x5ec2ed=_0x4fe3ad[_0x12942d(0x1c1)])==null?void 0x0:_0x5ec2ed['angle'])||0x0;this[_0x12942d(0x12f)]=!0x0,_0x490cd3['disableObjectsEvent']();let _0x10a653={...((_0x581663=this[_0x12942d(0x1a9)])==null?void 0x0:_0x581663[_0x12942d(0x20b)])??{}};this[_0x12942d(0xc4)]=_0x490cd3[_0x12942d(0xe1)][_0x12942d(0x26b)]((_0x391879,_0x26101f)=>{const _0x7f0eac=_0x12942d;if(!this[_0x7f0eac(0x12f)])return;let {offsetX:_0x3b08eb,offsetY:_0x45744c}=_0x391879,_0x21d3e1=this['_activeAdjustInfo'];if(this[_0x7f0eac(0xf7)]&&_0x21d3e1){_0x490cd3[_0x7f0eac(0x1ad)](),_0x490cd3[_0x7f0eac(0x11d)](_0xa4b93e[_0x7f0eac(0xd0)]);let _0x43eb20={'left':0x0,'top':0x0,'width':this[_0x7f0eac(0x191)],'height':this[_0x7f0eac(0x1a2)]},_0x422ed0=this[_0x7f0eac(0x10e)](this[_0x7f0eac(0x7b)],this[_0x7f0eac(0x21a)]),_0x3ea420=this['_getZoomRatio'](this['_unitId'],this[_0x7f0eac(0x21a)]),_0x4b1120=_0x3b08eb/_0x3ea420+_0x422ed0['x']-this[_0x7f0eac(0x1a0)],_0x2e6efa=_0x45744c/_0x3ea420+_0x422ed0['y']-this[_0x7f0eac(0x260)];if(_0x5edb83!==0x0){let _0x34b5e4=this[_0x7f0eac(0x191)]/0x2,_0x5a5839=this[_0x7f0eac(0x1a2)]/0x2,_0x61ce9e=_0x5edb83*Math['PI']/0xb4,_0xa664da=Math[_0x7f0eac(0x20a)](_0x61ce9e),_0x3e084a=Math['sin'](_0x61ce9e),_0x50529b=_0x4b1120-_0x34b5e4,_0x405c42=_0x2e6efa-_0x5a5839;_0x4b1120=_0x34b5e4+(_0x50529b*_0xa664da+_0x405c42*_0x3e084a),_0x2e6efa=_0x5a5839+(-_0x50529b*_0x3e084a+_0x405c42*_0xa664da);}_0x2c6dc7&&(_0x4b1120=this[_0x7f0eac(0x191)]-_0x4b1120),_0x3704f3&&(_0x2e6efa=this['_baseShapeHeight']-_0x2e6efa);let _0x3179ad={'x':_0x4b1120,'y':_0x2e6efa},_0x459d6f=this['_activeShapeModel'][_0x7f0eac(0x203)](_0x43eb20,_0x3179ad,_0x21d3e1,_0x2c6dc7,_0x3704f3);if(Object[_0x7f0eac(0x12b)](_0x459d6f)[_0x7f0eac(0x8c)]===0x0)return;for(let [_0x1078da,_0x454ea6]of Object[_0x7f0eac(0x2f6)](_0x459d6f))this[_0x7f0eac(0xf7)]['setAdjustValueByName'](_0x1078da,_0x454ea6);this['_activeShapeModel'][_0x7f0eac(0x113)]({'width':this[_0x7f0eac(0x191)],'height':this['_baseShapeHeight']});let _0x4a2839=this['_drawingManagerService'][_0x7f0eac(0x2cc)]({'unitId':_0x17dc08[_0x7f0eac(0x2e2)],'subUnitId':_0x17dc08[_0x7f0eac(0x20f)],'drawingId':_0x17dc08[_0x7f0eac(0x179)]});_0x4a2839&&(this['_sheetDrawingShapeRenderController'][_0x7f0eac(0x187)](_0x4a2839,_0x490cd3),this[_0x7f0eac(0x149)]=this['_getShapeAdjustPointListById'](_0x17dc08['unitId'],_0x17dc08[_0x7f0eac(0x20f)],_0x17dc08['drawingId']),this[_0x7f0eac(0xb5)]());}_0x26101f['stopPropagation']();}),this[_0x12942d(0x2d6)]=_0x490cd3[_0x12942d(0x21c)][_0x12942d(0x26b)]((_0x551c22,_0x513a95)=>{const _0x351d35=_0x12942d;this[_0x351d35(0xc4)][_0x351d35(0x22e)](),this[_0x351d35(0x2d6)][_0x351d35(0x22e)](),_0x490cd3[_0x351d35(0x22a)]();let _0x284cf9=this[_0x351d35(0x1a9)];if(_0x284cf9){let _0x491926=_0x17dc08['unitId'],_0x74b6fc=_0x17dc08['subUnitId'],_0x4f3529=_0x17dc08[_0x351d35(0x179)],_0x587771={};for(let _0x2deb47 of Object['keys'](_0x284cf9[_0x351d35(0x20b)])){var _0x864982;let _0x4e1aa7=(_0x864982=this[_0x351d35(0xf7)])==null?void 0x0:_0x864982[_0x351d35(0x1b1)](_0x2deb47);_0x4e1aa7!==void 0x0&&(_0x587771[_0x2deb47]=_0x4e1aa7);}Object[_0x351d35(0x12b)](_0x587771)[_0x351d35(0x8c)]>0x0&&or(this['_commandService'],_0x491926,_0x74b6fc,_0x4f3529,{'oldShapeData':{'adjustValues':_0x10a653}},{'adjustValues':_0x587771});}this[_0x351d35(0x1a9)]=void 0x0,this[_0x351d35(0xf7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x513a95[_0x351d35(0x2f2)](),_0x490cd3['enableObjectsEvent']();}),_0x216709['stopPropagation']();})));}[_0x4b851e(0x1de)](){const _0x31bebd=_0x4b851e;let _0x444b8a=this[_0x31bebd(0x25c)]['getCurrentTypeOfUnit$'](_0x2ce572[_0x31bebd(0x158)]);this[_0x31bebd(0x183)](_0x444b8a['pipe'](_0x20fbec(_0x1c0562=>_0x1c0562?_0x1c0562['activeSheet$'][_0x31bebd(0x26c)](_0x20fbec(_0x1323f5=>{const _0x2c7b8a=_0x31bebd;if(!_0x1323f5)return _0x53e669;let _0x96484e=_0x1c0562['getUnitId'](),_0x4c1481=this[_0x2c7b8a(0x1bb)][_0x2c7b8a(0x75)](_0x96484e),_0x5cef18=_0x4c1481==null?void 0x0:_0x4c1481['scene'];return _0x5cef18?_0x571f73(_0x5cef18):_0x53e669;})):_0x53e669))[_0x31bebd(0xd9)](_0x1ef6ab=>{const _0x46396d=_0x31bebd;let _0x54a13c=_0x1ef6ab[_0x46396d(0x159)]();this[_0x46396d(0x183)](_0x1ef6ab[_0x46396d(0xe1)][_0x46396d(0x26b)](()=>{const _0x10e4a1=_0x46396d;this[_0x10e4a1(0x2f1)];})),this['disposeWithMe'](_0x54a13c[_0x46396d(0x1bc)][_0x46396d(0xd9)](_0x25ff23=>{const _0x300a27=_0x46396d;let {objects:_0x5f4db5}=_0x25ff23;this[_0x300a27(0x22c)](),_0x5f4db5!==null&&_0x5f4db5[_0x300a27(0x2ca)]===0x1&&_0x5f4db5[_0x300a27(0xe0)]()[_0x300a27(0x12c)]()[_0x300a27(0x214)]instanceof fr&&this[_0x300a27(0x1e1)](!0x0);})),this[_0x46396d(0x183)](_0x54a13c['changing$'][_0x46396d(0xd9)](()=>{const _0x22e39a=_0x46396d;this[_0x22e39a(0x2f1)]&&this[_0x22e39a(0xcd)]();})),this[_0x46396d(0x183)](_0x1ef6ab[_0x46396d(0x21c)]['subscribeEvent'](()=>{const _0x2456a6=_0x46396d;this[_0x2456a6(0x2f1)]&&(this[_0x2456a6(0x1e1)](!0x1),this[_0x2456a6(0x22c)]());})),this[_0x46396d(0x183)](_0x54a13c['changeEnd$'][_0x46396d(0xd9)](()=>{const _0x58cbfb=_0x46396d;this['_unitId']&&this[_0x58cbfb(0x21a)]&&this[_0x58cbfb(0x146)]&&this[_0x58cbfb(0x9d)]['getDrawingByParam']({'unitId':this[_0x58cbfb(0x7b)],'subUnitId':this[_0x58cbfb(0x21a)],'drawingId':this['_activeShapeId']})&&(this[_0x58cbfb(0x149)]=this[_0x58cbfb(0x2bc)](this[_0x58cbfb(0x7b)],this['_subUnitId'],this['_activeShapeId']),this[_0x58cbfb(0xb5)]());}));}));}[_0x4b851e(0xdb)](){const _0x4c0336=_0x4b851e;this[_0x4c0336(0x183)](this[_0x4c0336(0x13c)]['onCommandExecuted'](_0x18b51f=>{const _0x462823=_0x4c0336;if(_0x18b51f['id']!==_0x4b69e7['id'])return;let {unitId:_0x241152,subUnitId:_0x4f4fcb,shapeId:_0x6dea3d}=_0x18b51f[_0x462823(0x29f)];_0x241152===this[_0x462823(0x7b)]&&_0x4f4fcb===this[_0x462823(0x21a)]&&_0x6dea3d===this[_0x462823(0x146)]&&this[_0x462823(0x2d8)]();})),this[_0x4c0336(0x183)](this[_0x4c0336(0x9d)][_0x4c0336(0x85)][_0x4c0336(0xd9)](_0xdd3a57=>{const _0x4d3ab5=_0x4c0336;if(_0xdd3a57[_0x4d3ab5(0x8c)]===0x1){let _0x345da8=_0xdd3a57[0x0];if(_0x345da8[_0x4d3ab5(0x14f)]===_0x514277[_0x4d3ab5(0xcb)]&&this[_0x4d3ab5(0x25c)][_0x4d3ab5(0x150)](_0x345da8[_0x4d3ab5(0x2e2)])===_0x2ce572[_0x4d3ab5(0x158)]){this[_0x4d3ab5(0x146)]=_0x345da8[_0x4d3ab5(0x179)];let {unitId:_0x19bb9e,subUnitId:_0x24cb43}=_0x345da8;this[_0x4d3ab5(0x149)]=this['_getShapeAdjustPointListById'](_0x19bb9e,_0x24cb43,this['_activeShapeId']),this[_0x4d3ab5(0x7b)]=_0x19bb9e,this['_subUnitId']=_0x24cb43,this[_0x4d3ab5(0xcd)](),this[_0x4d3ab5(0x22c)]();return;}}this[_0x4d3ab5(0x146)]=null,this[_0x4d3ab5(0x149)]=void 0x0,this['_unitId']=null,this[_0x4d3ab5(0x21a)]=null,this[_0x4d3ab5(0xcd)]();})),this[_0x4c0336(0x183)](this['_drawingManagerService']['update$'][_0x4c0336(0xd9)](_0x1d6fc6=>{const _0x33fcae=_0x4c0336;if(_0x1d6fc6[_0x33fcae(0x8c)]===0x1){var _0x349ff1;let _0x2b8cdc=_0x1d6fc6[0x0];((_0x349ff1=this[_0x33fcae(0x9d)][_0x33fcae(0x2cc)](_0x2b8cdc))==null?void 0x0:_0x349ff1['drawingType'])===_0x514277['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x4c0336(0x183)](this[_0x4c0336(0x9d)][_0x4c0336(0x86)][_0x4c0336(0xd9)](_0x54bf48=>{const _0x63c736=_0x4c0336;for(let _0x753a72 of _0x54bf48)this[_0x63c736(0x146)]===_0x753a72[_0x63c736(0x179)]&&(this[_0x63c736(0x146)]=null,this[_0x63c736(0x149)]=void 0x0,this['_unitId']=null,this[_0x63c736(0x21a)]=null,this[_0x63c736(0xcd)]());}));}};mr=Z([X(0x0,_0x1644d5),X(0x1,_0x2e2475(_0x1bfe6b)),X(0x2,_0x2e2475(_0x37a074)),X(0x3,_0x2e2475(Q)),X(0x4,_0x22bed1),X(0x5,_0x46e4d8)],mr);const hr={'id':_0x4b851e(0x93),'type':_0x3ab13f[_0x4b851e(0x18a)],'handler':(_0x445eb5,_0x29d26a)=>{const _0x2f4d94=_0x4b851e;let _0x5128b4=_0x445eb5[_0x2f4d94(0x2c2)](_0x1644d5),_0x31a181=_0x445eb5['get'](_0x37a074),_0xd3c9e9=_0x445eb5[_0x2f4d94(0x2c2)](mr);if(_0x29d26a==null)return!0x0;if(_0x29d26a[_0x2f4d94(0x8c)]>0x0){var _0x3f74e5;let _0x100653=(_0x3f74e5=_0x31a181['getRenderUnitById'](_0x29d26a[0x0][_0x2f4d94(0x2e2)]))==null?void 0x0:_0x3f74e5[_0x2f4d94(0x255)];if(_0x100653){let {unitId:_0x40c5ab,subUnitId:_0x4c9dc0,drawingId:_0x302079}=_0x29d26a[0x0],_0x1e7577=_0x4d60ae({'unitId':_0x40c5ab,'subUnitId':_0x4c9dc0,'drawingId':_0x302079},void 0x0),_0x32519e=_0x100653['getObjectIncludeInGroup'](_0x1e7577);if(_0x32519e){var _0x4107fa;(_0x4107fa=_0x31a181[_0x2f4d94(0x75)](_0x29d26a[0x0]['unitId']))==null||(_0x4107fa=_0x4107fa[_0x2f4d94(0x255)]['getTransformer']())==null||_0x4107fa[_0x2f4d94(0x269)](_0x32519e);}}_0x5128b4[_0x2f4d94(0x82)](_0x29d26a),_0xd3c9e9[_0x2f4d94(0x1e1)](!0x1);}return!0x0;}},gr={'type':_0x3ab13f[_0x4b851e(0x95)],'id':_0x4b851e(0xff),'handler':async(_0x19ff89,_0x4e08b4)=>{const _0x10c23a=_0x4b851e;let _0x5ea32e=_0x4104ec(_0x19ff89[_0x10c23a(0x2c2)](_0x22bed1));if(!_0x5ea32e)return!0x1;let _0x585ca8=_0x19ff89['get'](_0x15336e)['getCurrentLastSelection']();if(!_0x585ca8)return!0x1;let _0x38c3d2=_0x19ff89[_0x10c23a(0x2c2)](_0x46e4d8),{unitId:_0xc222b2,subUnitId:_0x52338e}=_0x5ea32e,{value:_0x25db83,enhanceParams:_0x66f89a}=_0x4e08b4,{range:_0x4f51bc}=_0x585ca8,_0x5c84c7={'unitId':_0xc222b2,'subUnitId':_0x52338e,'shapeType':_0x25db83,'range':_0x4f51bc,'shapeId':_0x5b0a2a()};if(_0x66f89a){let _0x581c90=_0x47e56f(_0x25db83),_0x2e29be=_0x25db83===_0x3e1064[_0x10c23a(0x2f0)];_0x581c90&&(_0x66f89a[_0x10c23a(0x1ee)]||_0x66f89a[_0x10c23a(0x220)])&&(_0x5c84c7[_0x10c23a(0xb6)]={'ln':{'startArrow':_0x66f89a[_0x10c23a(0x1ee)]?{'type':_0x534c3c['Arrow'],'size':_0x4e4132[_0x10c23a(0x14c)]}:void 0x0,'endArrow':_0x66f89a[_0x10c23a(0x220)]?{'type':_0x534c3c[_0x10c23a(0x267)],'size':_0x4e4132[_0x10c23a(0x2ed)]}:void 0x0}}),_0x2e29be&&(_0x66f89a[_0x10c23a(0x273)]||_0x66f89a[_0x10c23a(0x206)])&&(_0x5c84c7[_0x10c23a(0xb6)]=_0x1688ed({'fill':{'fillType':_0x5cb73a[_0x10c23a(0x2be)],'color':_0x10c23a(0x16d)},'isHorizontal':!!_0x66f89a['horizontal'],'stroke':{'lineStrokeType':_0x480b13[_0x10c23a(0x7f)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1c2be0=_0x38c3d2[_0x10c23a(0xc3)](_0x84e7ae['id'],_0x5c84c7);return setTimeout(()=>{const _0x342a43=_0x10c23a;_0x38c3d2[_0x342a43(0x163)](hr['id'],[{'unitId':_0xc222b2,'subUnitId':_0x52338e,'drawingId':_0x5c84c7[_0x342a43(0x2e3)]}]);},0xc8),_0x1c2be0;}},_r=_0x4b851e(0x1a1),vr='sheet.shape.object-list.panel',yr=_0x4b851e(0x226),br=_0x4b851e(0x1d6),xr=_0x35240c('SHAPE_TEXT'),Sr=_0x4b851e(0x1d9),Cr={'id':_0x4b851e(0x99),'type':_0x3ab13f['COMMAND'],'handler':(_0x2cf59e,_0x14d433)=>{const _0x3af786=_0x4b851e;let _0xdfbb88=_0x2cf59e[_0x3af786(0x2c2)](_0x446fc5),_0x2e576c=_0x2cf59e[_0x3af786(0x2c2)](_0x3fae61),_0x1bc877=_0x2cf59e[_0x3af786(0x2c2)](_0x22bed1),_0x58f1e7=_0x2cf59e[_0x3af786(0x2c2)](_0x46e4d8);return _0x4104ec(_0x1bc877)?(_0x14d433==null?void 0x0:_0x14d433['value'])===_0x3af786(0x77)?(_0xdfbb88[_0x3af786(0x77)](vr),!0x0):(_0xdfbb88[_0x3af786(0x1c0)]({'id':vr,'header':{'title':_0x2e576c['t'](_0x3af786(0x1cf))},'children':{'label':vr},'onClose':()=>{const _0x241b5f=_0x3af786;_0x58f1e7[_0x241b5f(0xc3)](_0x2f07a0['id'],[]);},'width':0x168}),!0x0):!0x1;}},wr={'type':_0x3ab13f[_0x4b851e(0x18a)],'id':_0x4b851e(0x205),'handler'(){return!0x0;}};function Tr(_0x4ecc14){const _0x33bacc=_0x4b851e;let _0x15c9d0=_0x4ecc14[_0x33bacc(0x2c2)](_0x1644d5)[_0x33bacc(0x20e)](),_0x1b229f=_0x15c9d0[_0x33bacc(0x8c)]===0x1?_0x15c9d0[0x0]:null;if(!_0x1b229f||_0x1b229f[_0x33bacc(0x14f)]!==_0x514277[_0x33bacc(0xcb)])return null;let _0x532e9c=_0x4ecc14[_0x33bacc(0x2c2)](_0x1bfe6b),_0x72b252=_0x532e9c[_0x33bacc(0x196)](_0x1b229f[_0x33bacc(0x2e2)],_0x1b229f[_0x33bacc(0x20f)],_0x1b229f[_0x33bacc(0x179)]),_0x31f7ad=_0x532e9c['getShapeDataById'](_0x1b229f[_0x33bacc(0x2e2)],_0x1b229f['subUnitId'],_0x1b229f[_0x33bacc(0x179)]);return _0x72b252===void 0x0||!_0x31f7ad?null:{'drawing':_0x1b229f,'shapeData':_0x31f7ad,'shapeType':_0x72b252};}const Er={'id':_0x4b851e(0x18c),'type':_0x3ab13f[_0x4b851e(0x18a)],'handler':(_0xa8eb0f,_0x74a46b)=>{const _0x35ecdc=_0x4b851e;let _0x36331c=Tr(_0xa8eb0f),_0x3b9459=_0x4e3a43((_0x74a46b==null?void 0x0:_0x74a46b[_0x35ecdc(0x2bb)])??(_0x74a46b==null?void 0x0:_0x74a46b['value'])??'');if(!_0x36331c||!_0x3b9459||_0x3b9459[_0x35ecdc(0x24f)]!==_0x320903(_0x36331c[_0x35ecdc(0xb6)]))return!0x1;let _0x4cf79b=_0x1ef8e7(_0x36331c[_0x35ecdc(0xb6)],_0x3b9459);if(!_0x4cf79b)return!0x1;let {drawing:_0x1f812a}=_0x36331c;return _0xa8eb0f[_0x35ecdc(0x2c2)](_0x46e4d8)['executeCommand'](ar['id'],{'unitId':_0x1f812a['unitId'],'subUnitId':_0x1f812a[_0x35ecdc(0x20f)],'shapeId':_0x1f812a[_0x35ecdc(0x179)],'shapeData':_0x4cf79b,'oldShapeJSON':{'oldShapeData':_0x36331c['shapeData']}});}},Dr={'id':_0x4b851e(0xa1),'type':_0x3ab13f['OPERATION'],'handler':(_0x2eae35,_0x42d2bf)=>{const _0x154cea=_0x4b851e;let _0x4ce8d5=Tr(_0x2eae35),_0x45dec7=(_0x42d2bf==null?void 0x0:_0x42d2bf[_0x154cea(0x253)])??(_0x42d2bf==null?void 0x0:_0x42d2bf[_0x154cea(0x214)]);if(!_0x4ce8d5||!_0x45dec7||_0x47e56f(_0x4ce8d5[_0x154cea(0x253)])||_0x47e56f(_0x45dec7))return!0x1;let _0x3ea7f1=_0x1103bd(_0x4ce8d5[_0x154cea(0xb6)],_0x45dec7);if(!_0x3ea7f1)return!0x1;let {drawing:_0x4d0afd}=_0x4ce8d5;return _0x2eae35[_0x154cea(0x2c2)](_0x46e4d8)[_0x154cea(0x163)](ar['id'],{'unitId':_0x4d0afd[_0x154cea(0x2e2)],'subUnitId':_0x4d0afd['subUnitId'],'shapeId':_0x4d0afd['drawingId'],'shapeType':_0x45dec7,'shapeData':_0x3ea7f1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4ce8d5[_0x154cea(0x253)],'oldShapeData':_0x4ce8d5[_0x154cea(0xb6)]}});}};let Or=class extends _0x387ec6{constructor(_0x44e84a,_0x22f638){const _0x4580ad=_0x4b851e;super(),this[_0x4580ad(0x92)]=_0x44e84a,this[_0x4580ad(0x9d)]=_0x22f638,this[_0x4580ad(0x14d)](),this[_0x4580ad(0x92)][_0x4580ad(0x10a)](!0x0),this[_0x4580ad(0x183)]({'dispose':()=>this['_clipService'][_0x4580ad(0x10a)](!0x1)});}[_0x4b851e(0x14d)](){const _0x408652=_0x4b851e;let _0x5e4902=this['_clipService'],_0x4cb4c8=new Map(),_0x286463=_0x5e4902['registerClipDelegate']((_0x6614cd,_0x1529ae,_0x35d0fa,_0x1a7547,_0x2dc988)=>{const _0x54fa5c=_0x1d1c;let _0x197574=_0x1529ae;if(_0x197574===_0x3e1064['None']||_0x1529ae===_0x54fa5c(0xf6))return!0x1;try{let _0x5c71c7=_0x4cb4c8['get'](_0x1529ae);return _0x5c71c7||(_0x5c71c7=new _0x5578df(_0x197574,'clip-'+_0x1529ae),_0x4cb4c8['set'](_0x1529ae,_0x5c71c7)),_0x5c71c7[_0x54fa5c(0x11e)](),_0x2dc988&&Object[_0x54fa5c(0x12b)](_0x2dc988)[_0x54fa5c(0x8c)]>0x0&&_0x5c71c7[_0x54fa5c(0x1ef)]({'adjustValues':_0x2dc988},!0x0),_0x5c71c7[_0x54fa5c(0x113)]({'width':_0x35d0fa,'height':_0x1a7547}),_0x5c71c7[_0x54fa5c(0x1c7)](_0x6614cd,{'left':0x0,'top':0x0,'width':_0x35d0fa,'height':_0x1a7547});}catch{return!0x1;}});this[_0x408652(0x183)](_0x286463),this[_0x408652(0x183)]({'dispose':()=>_0x4cb4c8['clear']()});}['clipByShape'](_0x1fa6d6,_0x370990,_0x3fbdb2,_0x59089f,_0x2ae255){const _0x3d395a=_0x4b851e;let _0x5a8459=this[_0x3d395a(0x9d)][_0x3d395a(0x2a3)](_0x1fa6d6,_0x370990);if(!_0x5a8459[_0x3fbdb2])return;let _0xd25a57={..._0x5a8459[_0x3fbdb2],'prstGeom':_0x59089f,'adjustValues':_0x2ae255};this['_drawingManagerService'][_0x3d395a(0x114)]([_0xd25a57]);}};Or=Z([X(0x0,_0x2e2475(_0x1e2122)),X(0x1,_0x2e2475(_0x1644d5))],Or);const kr=_0x4b851e(0x238),Ar=_0x4b851e(0x2c0);function jr({onShapeClick:_0x1f0444,excludeGroups:_0x7a9f89}){const _0x4374a5=_0x4b851e;return _0x26713b(_0x31e782,{'excludeGroups':_0x7a9f89,'onShapeClick':_0x1f0444,'scrollContainer':_0x4374a5(0x8a)});}function Mr(){let _0x4e064d=_0x496f8c(_0x1644d5),_0x2240cc=_0x496f8c(Or);return _0x26713b(_0x212211,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x39cfae['Line']],'onShapeClick':_0xc6f8e4=>{const _0x5eef6d=_0x1d1c;let _0x3447a8=_0x4e064d[_0x5eef6d(0x20e)]()['find'](_0x4851ab=>_0x4851ab[_0x5eef6d(0x14f)]===_0x514277[_0x5eef6d(0x1f0)]);if(!_0x3447a8)return;let {unitId:_0x5e221d,subUnitId:_0x5792b6,drawingId:_0x47f1e8}=_0x3447a8;_0x2240cc[_0x5eef6d(0x2e8)](_0x5e221d,_0x5792b6,_0x47f1e8,_0xc6f8e4[_0x5eef6d(0x24f)]);}});}function _0x1226(){const _0x29e1a2=['endArrow','CUT','_isImagePointerDown','beginPath','_getShapeInfo','#1a73e8','sheet.shape.floating-toolbar','slice','intercept','_hide','resetCursor','presentationChanged$','_createShapeAdjustControls','startConnectionDetection','unsubscribe','setEditing','_handleBasicShapeUpdateConnectorLineShape','_registerGroupFeaturePasteHook','_highlightedSiteIndex','translateWithPrecision','getAutoFitPresentations','_currentScene','isRender','getRealBound','sheet.shape.picker.component','isArray','sheets-shape-ui.ribbon.shape-format.text-control','getUnitId','computeConnectorResizeLayout','interceptCommand','changeShapeType','_attachConnectorObjectEvent','sheets-shape-ui.ribbon.shape-format.formula-control','oKey','enableObjectsEvent','_connectorObjects','registerCommand','_sheetSkeletonService','getVisible','viewportScrollX','shape-editor-ui.toolbar.quickStyles','getCurrentUnitOfType','scale','isEditing','getAdjustInfoByName','_initCopyPaste','formulaPresentation','type','getParent','#4285f4','fillImageSource','shapeType','dispose','scene','sectionFloating','wrapStrategy','_getImagePrstGeom','clone','_resetState','presentation','_univerInstanceService','with','onRendered','GROUP','_baseShapeTop','has','setCollapsedIds','SHEET_SHAPE_UI_PLUGIN','_getConnectPointInfo','isInGroup','_generateCutPasteMutations','Arrow','lineShapeId','activeAnObject','_registerComponents','subscribeEvent','pipe','setFillImage','_context','pluginName','getState','_update','FlipHorizontalIcon','horizontal','_sidebarService','_sheetClipboardService','call','_currentUniverService','5113205WGkFVu','getImage','skeleton','map','_insertShapes','panel','clip','getCanvasElement','UNIVER_DOC','lineType','point','order','getBatchAddOp','actions','defineProperty','name','sheets-shape-ui.shape-format.text-ribbon-control','_baseTop','_clearPopups','_executeConnectedRouteResizeCommand','VIEW_MAIN_TOP','MoveDownIcon','UPDATE','_focusedDrawings','attachTransformerTo','_getSceneAndTransformerByDrawingSearch','top','onTransformChange$','ancestorTransform','getCurrentTypeOfUnit$','onReady','FromArray','_shapeEditPanelVersion','isLineShape','_calculateFreeEndpointAngle','_shapeTextEditingService','_shapes','_config','_addControl','params','@univerjs-pro/sheets-shape-ui','_attachAdjustEvent','onStarting','getDrawingData','angle','_activeTargetShapeId','image-clip-adjust-point-','sheets-shape-ui.shape-format.formula-ribbon-control','debounceRefreshControls','getConnectionInfo','_baseWidth','cxnPointRadius','contentHeight','setHighlighted','flipX','Line','VIEW_MAIN','_initEditingParams','createControl$','makeDirty','localeService','normal','forward','function','initShapePopupMenu','_getImageDrawingInfo','formulaBinding','presetId','_getShapeAdjustPointListById','stringify','SolidFill','onDblclick$','sheet.image-clip.shape-picker.component','getTransformer','get','fromChangeset','FlipVerticalIcon','indexOf','getSkeleton','asObservable','adjHandleFill','ShapeIcon','size','getObjectIncludeInGroup','getDrawingByParam','BottomIcon','_openShapeEditPanel','reverse','sheetViewStartColumn','editingParams$','shapeKey','index','_sheetPermissionCheckController','refreshTransform','_adjHandlerPointerUp','None','refreshAdjustControls','getShapeDataById','setAdjustValueByName','_loadShapePictureFill','objects','getConnectionSiteList','add','pick','getConnectorLinePoints','sheets-shape-ui.formatShape','unitId','shapeId','_configService','refreshShapeFillImage','getInterceptPoints','_hasReset','clipByShape','getPresentation','register','worldPoints','addObject','Large','classType','end','Rect','_isShouldShowDrawingShapeAdjust','stopPropagation','getImageSourceCache','_rerouteConnectorLine','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','entries','_sheetDrawingShapeRenderController','getEndConnectInfo','_currentConnectionTarget','shape-editor-ui.arrange.forward','_addShapeAdjustControl','decorate','applyPoint','getRenderUnitById','image','close','_draggingConnectorId','_generatePasteMutations','preValue','_unitId','draw','_getShapeAdjustInfosById','_componentManager','SolidLine','_sheetsShapeService','getInverseCoord','focusDrawing','isMainScene','getActiveSheet','focus$','remove$','isRenderLinePointsMode','getShapeData','vertical-center','parent','_isDrawingShapePointDown','length','univer-box-border\x20univer-px-4\x20univer-text-sm','_addShapeConnectorHandlerObject','startY','refreshFormulaPresentation','save','_clipService','drawing.operation.set-drawing-active','_renderWithCache','COMMAND','_insertingShapeKeys','srcRect','ShapeFormatSettingIcon','sheet.operation.open-shape-object-list-panel','sheets-shape-ui.flipHorizontal','_getDrawingRect','updateDocumentStyle','_drawingManagerService','_injector','mergeMenu','contentVerticalOffset','sheet.operation.update-shape-type','add$','_executeConnectedRouteConnectionCommand','SELECTOR','_urlImageService','_initEvents','_sheetPrintInterceptorService','_initPrinting','updateShapeFillImage','setPrstGeom','getCurrentSkeleton','updateLinePoints','cxnPointStroke','_init','_clearControls','getBatchUpdateOp','run','_connectionSiteObjects','_sheetInterceptorService','getDrawingVisible','_updateAdjustControlPositions','shapeData','_commandExecutedListener','adjHandleStroke','_sheetCanvasPopManagerService','_cxtHandlerPointerMove','getEditing','_executeConnectionCommand','_baseDrawingRect','viewBound','hidden','_updateImageAdjValues','_formulaShapes','color','syncExecuteCommand','_adjHandlerPointerMove','_transform','PaintIcon','_isHighlighted','render','_activeImageId','showContextualTab','DRAWING_SHAPE','_drawingRenderService','_clearShapeAdjustControls','_generateCopyPasteMutations','sheets-shape-ui.quickStyles','CROSSHAIR','engine','fontFamily','doc','shape-editor-ui.arrange.backward','_imageShapeClipController','prstGeom','forEach','_initialize','subscribe','_drawingType','_registerDrawingFocusChangeHandler','object','div','sheetViewStartRow','front','values','onPointerMove$','_cxtHandlerPointerUp','_index','visible','_initMenu','_popupMenuListener','registerRenderModule','_registerOperations','version','_releaseRenderCache','getOwnPropertyDescriptor','REMOVE','blockExecuteWithoutPermission','resize','actualHeight','_registerFocusChangeHandler','cancelEditing','toPrimitive','sheets-shape-ui.permission.editErr','_shapeId','includes','custom','_activeShapeModel','INSERT','changeEnd$','data','canvas','string','getDrawingPoints','addClipboardHook','sheet.command.menu-insert-shape','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_disposed','push','sheet.menu.shape.flip-horizontal','2862152FGAjLA','connector-handler-','drawWith','_registerIcons','restore','clearAdjustControls','setCanUseShapeClip','fillImageSourceType','computeStraightConnectorLayout','selectable','_getScrollInfo','sheets-shape-ui','sqrt','setFormulaPresentation','_props','updateContext','featurePluginUpdateNotification','_registerMoveHandler','shape-editor-ui.toolbar.changeShape','description','getDrawingEditable','_editingParams$','_shapeRenderController','worldPoint','onCommandExecuted','setCursor','clearAdjustValue','_isStartConnectorPoint','onPointerDown$','shapeText','_updateTransform','disableShapeOption','invert','from','setContextValue','_createCopyInfoByRange','changing$','getSelectedObjectMap','startX','keys','next','sin','_drawingAddListener','_isStartAdjusting','_shapePopupMenuDisposable','shape-adjust-point-','_closeShapeEditPanel','setSrcRect','sheets-shape-ui.ribbon.shape-format.arrange-forward','_isOpenedShapeEditPanel','getSheetBySheetId','onSavingEditorData$','getShapeModel','start','ang','cxnPointFill','_commandService','getValue','_sheetBasicShapeConnectionPointController','_findNearestConnectionSite','10OihxjO','StraightConnector1','addImageSourceCache','_transformCalculateSrcRect','_handleConnectedEndpointPointerUp','flatMap','_activeShapeId','_groupCopyPasteController','fillType','_activeShapeAdjustPointList','_formulaAnimation','backward','Medium','_registerImageShapeClipDelegate','filter','drawingType','getUnitType','error','_baseHeight','getStartConnectInfo','setFallbackVisible','getShapeTextData','removeLinePoints','_copyInfo','UNIVER_SHEET','getTransformerByCreate','animationEnabled','_onSavingEditorData$','14871hknEHz','setPresentation','_shapeFormulaService','worldRect','visible$','_draw','adjHandleSize','executeCommand','composeMatrix','adjName','idMap','delete','sheets-shape-contextual-ribbon','title','registerFeaturePasteHook','getDrawingOKey','LEFT','#FFFFFF','popup','setPrstGeomAdjValues','_updateSrcRectByTransform','relation','_shapeUpdateListener','text','getSkeletonParam','prototype','getDrawingSearch','set','_drawShapeText','drawingId','back','PRINTING_COMPONENT_COLLECT','rotation','extraProps','_initPermission','animateFormulaPresentation','getShapeType','_targetShapeId','_sheetShapeAdjustController','disposeWithMe','DRAWING','localToWorld','_formulaKey','renderDrawingShape','find','getZoomRatio','OPERATION','_sidebarDisposable','sheet.operation.apply-shape-quick-style','getAdjustNames','onerror','_drawRichText','translate','_baseShapeWidth','_drawSimpleText','width','_executeResizeCommand','clipTop','getShapeTypeById','shapeModel','isHighlighted','1812024LUCxVH','getConnectionRelation','_handleConnectorPointerUp','_lastEditingShapeKey','_activeAdjustPointList','_clearShapeConnectorHandlerObjects','sectionCanvas','_baseShapeLeft','sheet.shape.edit.panel','_baseShapeHeight','_handleConnectedEndpointMove','_drawRichTextLayer','resourceCollector','_baseLeft','sheets-shape-ui.ribbon.shape-format.arrange-back','symbol','_activeAdjustInfo','getShapeTextRect','transformByState','extensionGroups','disableObjectsEvent','dataModel','connection-site-','getSheetId','getAdjustValueByName','URL','sheetTransform','offsetX','isStartConnectorPoint','undo','_localeService','TopmostIcon','_findShapeAtPoint','setOnSavingEditorData','_renderManagerService','changeStart$','sheets-shape-ui.ribbon.shape-format.style-control','parse','_ribbonService','open','transform','complete','prstGeomAdjValues','updateDocumentDataMargin','getMatrix','stroke','buildClipPath','flipY','_contextService','sheet.command.update-shape-data','sheets-shape-format-font-family-menu','viewportScrollY','getUnit','BUTTON','sheets-shape-ui.objectListPanel.title','_clearConnectionSites','_applyFormulaAutoFitSize','gradientEndColor','left','fill','_menuManagerService','sheets-shape-ui.ribbon.shape-format','endConnectionDetection','_createControls','sheet.shape.text.float-menu','redo','sheets-shape-ui.config','abs','_imageIoService','_registerDrawingMoveHandler','some','unregister','setShouldShowAdjust','shape-editor-ui.arrange.back','MoveUpIcon','_adjName','adjustValues','ObjectLayersIcon','offsetY','_activeShapeInfo','_shapeFloatingToolbarService','multiply','_shapeService','setShapeProps','_showConnectionSites','startArrow','setShapeData','DRAWING_IMAGE','isHitLine','_moveConnectorWithShape','_getOrCreateShapeModel','10781676nOWPVw','getDrawingDataForUnit','_handleFreeEndpointMove','axisAlignSheetTransform','getObject','clipHeight','_visible','_updateShapeAdjustControls','strokeWidth','OTHERS','_isConnecting','height','update$','_initSelection','isHorizontal','calcAdjValues','isDrawingObject','sheet.operation.open-sheet-shape-format-panel','vertical','Image','_disposePopups','getCurrentScrollState','cos','currentAdjustValues','3558261otBbMi','_sheetDrawingService','getFocusDrawings','subUnitId','486797TMLFtK','_addShapeConnectorHandlerObjects','12eLQqyQ','_initSheetChange','value','sheets-shape-ui.flipVertical','onload','iterator','sheets-shape-ui.objectListPanel.open','_cxnIndex','_subUnitId','cxnIndex','onPointerUp$','activeSheet$','_getZoomRatio','_iconManager'];_0x1226=function(){return _0x29e1a2;};return _0x1226();}function Nr(){const _0x538b70=_0x4b851e;let _0x5d6c8d=_0x496f8c(_0x1b0068),_0x43d128=_0x496f8c(_0x1644d5),_0x1b4b9f=_0x496f8c(_0x22bed1),_0x5c36f9=_0x43d128[_0x538b70(0x20e)]()[0x0],_0x13b3a6=_0x5c36f9?_0x1b4b9f[_0x538b70(0x150)](_0x5c36f9[_0x538b70(0x2e2)]):void 0x0,_0x5d2799=_0x13b3a6===_0x2ce572[_0x538b70(0x280)]?'doc.image-clip.shape-picker.component':_0x13b3a6===_0x2ce572['UNIVER_SHEET']?Ar:void 0x0,_0x106c2e=_0x5d2799?_0x5d6c8d[_0x538b70(0x2c2)](_0x5d2799):void 0x0;return _0x106c2e?_0x26713b(_0x106c2e,{}):null;}function Pr(){let _0x52cc23=_0x496f8c(_0x46e4d8);return _0x26713b(jr,{'onShapeClick':_0x3ef1f5=>{const _0x194475=_0x1d1c;_0x52cc23[_0x194475(0x163)](gr['id'],{'value':_0x3ef1f5[_0x194475(0x24f)],'enhanceParams':{'endArrow':_0x3ef1f5[_0x194475(0x220)],'startArrow':_0x3ef1f5[_0x194475(0x1ee)],'horizontal':_0x3ef1f5[_0x194475(0x273)],'vertical':_0x3ef1f5[_0x194475(0x206)]}});}});}function Fr(_0x520d37){const _0x4a039e=_0x4b851e;let _0x459db5=_0x520d37[_0x4a039e(0x2c2)](_0x22bed1);return{'id':gr['id'],'type':_0x4d0911[_0x4a039e(0xa4)],'selections':[{'label':{'name':kr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':gr['id']}}}],'icon':_0x4a039e(0x2c9),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x8b444(_0x459db5,!0x1,()=>new _0x14d0cd(_0x565b83=>{const _0x2cd822=_0x4a039e;_0x565b83[_0x2cd822(0x12c)](!0x1);})),'hidden$':_0x4340d6(_0x520d37,_0x2ce572[_0x4a039e(0x158)]),'disabled$':_0x19fc01(_0x520d37)};}function Ir(_0x165622){const _0x4e8232=_0x4b851e;let _0x45196b=_0x165622['get'](_0x22bed1);return{'id':Cr['id'],'type':_0x4d0911[_0x4e8232(0x1ce)],'icon':_0x4e8232(0x1e6),'title':_0x4e8232(0x218),'tooltip':_0x4e8232(0x218),'activated$':_0x8b444(_0x45196b,!0x1,()=>new _0x14d0cd(_0x13ef21=>{const _0x36e59d=_0x4e8232;_0x13ef21[_0x36e59d(0x12c)](!0x1);})),'hidden$':_0x4340d6(_0x165622,_0x2ce572[_0x4e8232(0x158)]),'disabled$':_0x19fc01(_0x165622)};}const Lr=_0x4b851e(0x103),Rr='sheet.menu.shape.flip-vertical';function zr(_0x303424){const _0x82cfdc=_0x4b851e;let _0x4ea859=_0x303424[_0x82cfdc(0x2c2)](_0x1644d5)[_0x82cfdc(0x20e)]();return _0x4ea859[_0x82cfdc(0x8c)]===0x1&&_0x4ea859[0x0][_0x82cfdc(0x14f)]===_0x514277[_0x82cfdc(0xcb)]?_0x4ea859[0x0]:null;}function Br(_0x259a70){const _0x4aa703=_0x4b851e;let _0x4c983b=_0x259a70[_0x4aa703(0x2c2)](_0x1644d5);return _0x4c983b[_0x4aa703(0x85)][_0x4aa703(0x26c)](_0xea5433(_0x4c983b['getFocusDrawings']()),_0x3ffce0(_0x4762ab=>_0x4762ab[_0x4aa703(0x8c)]!==0x1||_0x4762ab[0x0][_0x4aa703(0x14f)]!==_0x514277[_0x4aa703(0xcb)]));}function Vr(_0xadfd18){const _0x1e6cd8=_0x4b851e;return{'id':Lr,'commandId':_0x26e8be['id'],'type':_0x4d0911[_0x1e6cd8(0x1ce)],'title':_0x1e6cd8(0x9a),'tooltip':_0x1e6cd8(0x9a),'icon':_0x1e6cd8(0x272),'hidden$':Br(_0xadfd18),'params':()=>{const _0xf54bd3=_0x1e6cd8;let _0x17a59c=zr(_0xadfd18);return _0x17a59c?{'unitId':_0x17a59c[_0xf54bd3(0x2e2)],'subUnitId':_0x17a59c[_0xf54bd3(0x20f)],'shapeId':_0x17a59c[_0xf54bd3(0x179)],'flipH':!0x0}:void 0x0;}};}function Hr(_0x5f08d7){const _0x713af3=_0x4b851e;return{'id':Rr,'commandId':_0x26e8be['id'],'type':_0x4d0911[_0x713af3(0x1ce)],'title':_0x713af3(0x215),'tooltip':_0x713af3(0x215),'icon':_0x713af3(0x2c4),'hidden$':Br(_0x5f08d7),'params':()=>{const _0x47ed1c=_0x713af3;let _0x387e24=zr(_0x5f08d7);return _0x387e24?{'unitId':_0x387e24[_0x47ed1c(0x2e2)],'subUnitId':_0x387e24[_0x47ed1c(0x20f)],'shapeId':_0x387e24['drawingId'],'flipV':!0x0}:void 0x0;}};}const Ur='sheets-shape-ui.shape-format.quick-style-gallery',Wr='sheets-shape-ui.shape-format.style-ribbon-control',Gr=_0x4b851e(0x288),Kr=_0x4b851e(0x2a7);function qr(){let _0x38ef6f=_0x496f8c(_0x46e4d8),_0x2e3203=_0x496f8c(_0x1644d5),_0x4201de=_0x496f8c(_0x1bfe6b),_0x50ffb7=()=>{const _0x6f937c=_0x1d1c;var _0xbae9f4;let _0x430183=_0x2e3203[_0x6f937c(0x20e)]();if(_0x430183[_0x6f937c(0x8c)]!==0x1||((_0xbae9f4=_0x430183[0x0])==null?void 0x0:_0xbae9f4[_0x6f937c(0x14f)])!==_0x514277['DRAWING_SHAPE'])return null;let {unitId:_0x2cf8cd,subUnitId:_0x49b00b,drawingId:_0x3247c0}=_0x430183[0x0],_0x496e55=_0x4201de[_0x6f937c(0x196)](_0x2cf8cd,_0x49b00b,_0x3247c0),_0x4c73e8=_0x4201de['getShapeDataById'](_0x2cf8cd,_0x49b00b,_0x3247c0);return _0x496e55===void 0x0||!_0x4c73e8?null:{'unitId':_0x2cf8cd,'subUnitId':_0x49b00b,'drawingId':_0x3247c0,'shapeType':_0x496e55,'shapeData':_0x4c73e8};},_0x2d0984=_0x1f221a(()=>new _0x14d0cd(_0x34ea9=>{const _0x1a775f=_0x1d1c;let _0x5b689a=()=>_0x34ea9[_0x1a775f(0x12c)](_0x50ffb7()),_0x439224=_0x2e3203[_0x1a775f(0x85)][_0x1a775f(0xd9)](_0x5b689a),_0x412fb9=_0x38ef6f['onCommandExecuted'](_0x559e09=>{_0x559e09['id']===_0x4b69e7['id']&&_0x5b689a();});return _0x5b689a(),()=>{const _0x4f6a3b=_0x1a775f;_0x439224[_0x4f6a3b(0x22e)](),_0x412fb9[_0x4f6a3b(0x254)]();};}),_0x50ffb7(),!0x1,[_0x38ef6f,_0x2e3203,_0x4201de]);return{'selection':_0x2d0984,'updateShapeData':_0xbf2f99=>{const _0x34ca4e=_0x1d1c;_0x2d0984&&or(_0x38ef6f,_0x2d0984['unitId'],_0x2d0984[_0x34ca4e(0x20f)],_0x2d0984[_0x34ca4e(0x179)],{'oldShapeData':_0x2d0984[_0x34ca4e(0xb6)]},_0xbf2f99);}};}function Jr(){const _0x11e1a7=_0x4b851e;let {selection:_0x394156,updateShapeData:_0x4fbeb7}=qr();return _0x394156?_0x26713b(_0x5e07d3,{'shapeData':_0x394156[_0x11e1a7(0xb6)],'shapeType':_0x394156['shapeType'],'onUpdateShapeData':_0x4fbeb7}):null;}function Yr(){const _0x50a668=_0x4b851e;let _0x326517=_0x496f8c(_0x46e4d8),_0x5094d3=_0x496f8c(_0x3fae61),{selection:_0x249e8c}=qr();return _0x249e8c?_0x26713b(_0x2e6418,{'type':_0x320903(_0x249e8c[_0x50a668(0xb6)]),'ariaLabel':_0x5094d3['t'](_0x50a668(0xcf)),'activePresetId':_0x2be9b7(_0x249e8c[_0x50a668(0xb6)]),'onSelect':_0x36f7bb=>_0x326517['executeCommand'](Er['id'],{'presetId':_0x36f7bb})}):null;}function Xr(){const _0x25f1d3=_0x4b851e;let {selection:_0x56e2f6,updateShapeData:_0x14d6aa}=qr();return _0x56e2f6?_0x26713b(_0x433ebc,{'fontFamilyPopupDataComponent':_0x25f1d3(0x1cb),'shapeData':_0x56e2f6[_0x25f1d3(0xb6)],'onUpdateShapeData':_0x14d6aa}):null;}function Zr(){const _0x26deff=_0x4b851e;var _0x50890b;let {selection:_0x4074d4,updateShapeData:_0xfe4ac6}=qr(),_0x31bcf5=_0x2caf88({'hostType':_0x2ce572['UNIVER_SHEET'],'unitId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x2e2)])??'','subUnitId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x20f)])??'','shapeId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x179)])??'','shapeData':_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0xb6)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x26cd2e=>_0xfe4ac6({'formulaBinding':_0x26cd2e})}),_0x3d65c5=((_0x50890b=_0x31bcf5[_0x26deff(0x1ac)])==null?void 0x0:_0x50890b[_0x26deff(0x145)](_0xf6b293=>_0xf6b293[_0x26deff(0x285)])[_0x26deff(0x14e)](_0x24cced=>_0x24cced[_0x26deff(0xe4)]!==!0x1))??[];return _0x4074d4!=null&&_0x4074d4[_0x26deff(0xb6)][_0x26deff(0x2ba)]?_0x26713b(_0x2667da,{'actions':_0x3d65c5,'panel':_0x31bcf5[_0x26deff(0x27d)]}):null;}const Qr=_0x4b851e(0x1bd),$r=_0x4b851e(0x23a),ei=_0x4b851e(0x240),ti=_0x4b851e(0x134),ni='sheets-shape-ui.ribbon.shape-format.arrange-backward',ri='sheets-shape-ui.ribbon.shape-format.arrange-front',ii=_0x4b851e(0x1a7);function _0x1d1c(_0x59090e,_0x2e70d6){_0x59090e=_0x59090e-0x71;const _0x1226c8=_0x1226();let _0x1d1c42=_0x1226c8[_0x59090e];return _0x1d1c42;}function ai(_0x329e10){const _0xdab236=_0x4b851e;let _0x45ffad=_0x329e10[_0xdab236(0x2c2)](_0x46e4d8),_0x15ca50=_0x329e10[_0xdab236(0x2c2)](_0x1644d5),_0x17168b=_0x329e10[_0xdab236(0x2c2)](_0x1bfe6b);return new _0x14d0cd(_0x30ea53=>{const _0x2dce0b=_0xdab236;let _0x4d6dfe=()=>{const _0x1e8f30=_0x1d1c;let _0x19a49a=oi(_0x329e10),_0x2e464d=_0x19a49a?_0x17168b['getShapeDataById'](_0x19a49a[_0x1e8f30(0x2e2)],_0x19a49a[_0x1e8f30(0x20f)],_0x19a49a[_0x1e8f30(0x179)]):null;_0x30ea53[_0x1e8f30(0x12c)](_0x2e464d?_0x2be9b7(_0x2e464d)??'':'');},_0x18a00c=_0x15ca50[_0x2dce0b(0x85)]['subscribe'](_0x4d6dfe),_0x559792=_0x45ffad[_0x2dce0b(0x11c)](_0x3f4885=>{_0x3f4885['id']===_0x4b69e7['id']&&_0x4d6dfe();});return _0x4d6dfe(),()=>{const _0x390b5b=_0x2dce0b;_0x18a00c[_0x390b5b(0x22e)](),_0x559792['dispose']();};});}function oi(_0x55dd58){const _0xcf8bdc=_0x4b851e;var _0x800059;let _0x24df5e=_0x55dd58[_0xcf8bdc(0x2c2)](_0x1644d5)[_0xcf8bdc(0x20e)]();return _0x24df5e[_0xcf8bdc(0x8c)]===0x1&&((_0x800059=_0x24df5e[0x0])==null?void 0x0:_0x800059[_0xcf8bdc(0x14f)])===_0x514277[_0xcf8bdc(0xcb)]?_0x24df5e[0x0]:null;}function si(_0x233806,_0x5d7e8a=!0x1){const _0x2c2590=_0x4b851e;let _0x2a037c=_0x233806[_0x2c2590(0x2c2)](_0x46e4d8),_0x41fe4f=_0x233806[_0x2c2590(0x2c2)](_0x1644d5),_0x9c7bb6=_0x233806[_0x2c2590(0x2c2)](_0x1bfe6b);return new _0x14d0cd(_0xb9432d=>{const _0x5bfe57=_0x2c2590;let _0x321df1=()=>{const _0x1f0c14=_0x1d1c;let _0x451935=oi(_0x233806);if(!_0x451935){_0xb9432d[_0x1f0c14(0x12c)](!0x0);return;}let _0x8debd1=_0x9c7bb6[_0x1f0c14(0x2d9)](_0x451935['unitId'],_0x451935[_0x1f0c14(0x20f)],_0x451935[_0x1f0c14(0x179)]);_0xb9432d[_0x1f0c14(0x12c)](!_0x8debd1||_0x5d7e8a&&_0x8debd1['formulaBinding']==null);},_0xf38477=_0x41fe4f[_0x5bfe57(0x85)]['subscribe'](_0x321df1),_0x59fb22=_0x2a037c[_0x5bfe57(0x11c)](_0x55ba5a=>{_0x55ba5a['id']===_0x4b69e7['id']&&_0x321df1();});return _0x321df1(),()=>{const _0x1efeb0=_0x5bfe57;_0xf38477['unsubscribe'](),_0x59fb22[_0x1efeb0(0x254)]();};});}function ci(_0x58f353){const _0x22349f=_0x4b851e;let _0x4f736a=_0x58f353[_0x22349f(0x2c2)](_0x1644d5),_0x578c7b=_0x58f353[_0x22349f(0x2c2)](_0x1bfe6b);return _0x4f736a['focus$']['pipe'](_0xea5433(_0x4f736a[_0x22349f(0x20e)]()),_0x3ffce0(()=>{const _0x53f7ca=_0x22349f;let _0x2e2c69=oi(_0x58f353),_0x24dfb2=_0x2e2c69?_0x578c7b[_0x53f7ca(0x196)](_0x2e2c69[_0x53f7ca(0x2e2)],_0x2e2c69['subUnitId'],_0x2e2c69[_0x53f7ca(0x179)]):void 0x0;return _0x24dfb2===void 0x0||_0x47e56f(_0x24dfb2);}));}function li(_0x884a25){const _0x3e8fdf=_0x4b851e;return{'id':Er['id'],'type':_0x4d0911[_0x3e8fdf(0xa4)],'icon':_0x3e8fdf(0xc6),'title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x3e8fdf(0x248),'selections':[{'label':{'name':Ur,'hoverable':!0x1,'selectable':!0x1}}],'value$':ai(_0x884a25),'hidden$':si(_0x884a25)};}function ui(_0x2800b2){const _0x7e6878=_0x4b851e;return{'id':Dr['id'],'type':_0x4d0911[_0x7e6878(0xa4)],'icon':_0x7e6878(0x2c9),'title':_0x7e6878(0x116),'tooltip':_0x7e6878(0x116),'slot':!0x0,'selections':[{'label':{'name':_0x3de37a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ci(_0x2800b2)};}function di(_0x6ab69e,_0x3265c6,_0x32c13c=!0x1){const _0x4a8eb2=_0x4b851e;return _0x16627a=>({'id':_0x6ab69e,'type':_0x4d0911[_0x4a8eb2(0x1ce)],'label':{'name':_0x3265c6,'hoverable':!0x1,'selectable':!0x1},'hidden$':si(_0x16627a,_0x32c13c)});}const fi=di(Qr,Wr),pi=di($r,Gr),mi=di(ei,Kr,!0x0);function hi(_0x179142,_0x3a0f0d,_0x30755e,_0x1377c2){return _0x5c1306=>({'id':_0x179142,'commandId':_0x474f53['id'],'type':_0x4d0911['BUTTON'],'icon':_0x30755e,'title':_0x1377c2,'tooltip':_0x1377c2,'hidden$':si(_0x5c1306),'params':()=>{const _0x3af427=_0x1d1c;let _0x1dbad3=oi(_0x5c1306);return _0x1dbad3?{'unitId':_0x1dbad3[_0x3af427(0x2e2)],'subUnitId':_0x1dbad3[_0x3af427(0x20f)],'drawingIds':[_0x1dbad3[_0x3af427(0x179)]],'arrangeType':_0x3a0f0d}:void 0x0;}});}const gi=hi(ti,_0x5de97e[_0x4b851e(0x2b6)],_0x4b851e(0x1e3),_0x4b851e(0x71)),_i=hi(ni,_0x5de97e['backward'],_0x4b851e(0x28d),_0x4b851e(0xd4)),vi=hi(ri,_0x5de97e[_0x4b851e(0xdf)],_0x4b851e(0x1b8),'shape-editor-ui.arrange.front'),yi=hi(ii,_0x5de97e[_0x4b851e(0x17a)],_0x4b851e(0x2cd),_0x4b851e(0x1e2));function bi(_0x4cc19d){const _0x1ac324=_0x4b851e;return{'id':wr['id'],'type':_0x4d0911['BUTTON'],'icon':_0x1ac324(0x98),'title':_0x1ac324(0x2e1),'tooltip':_0x1ac324(0x2e1),'hidden$':si(_0x4cc19d),'params':()=>{const _0x418124=_0x1ac324;let _0x547275=oi(_0x4cc19d);return _0x547275?{'unitId':_0x547275[_0x418124(0x2e2)],'subUnitId':_0x547275[_0x418124(0x20f)],'drawingId':_0x547275[_0x418124(0x179)]}:void 0x0;}};}const xi={[_0x53d7b7['RIBBON']]:{[br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Er['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':li},[Dr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ui}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':fi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Lr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Vr},[Rr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Hr},[ti]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':gi},[ni]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_i},[ri]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':vi},[ii]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':yi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':mi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':bi},[_0x2e5d91['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x2383ca}}}}},Si={[_0x46a8ca['MEDIA']]:{[gr['id']]:{'order':0x4,'menuItemFactory':Fr}},[_0x46a8ca[_0x4b851e(0x1fd)]]:{[Cr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Ir}},[_0x50de40[_0x4b851e(0x184)]]:{[_0x1bd38f[_0x4b851e(0x1fd)]]:{[Lr]:{'order':0x4,'menuItemFactory':Vr},[Rr]:{'order':0x5,'menuItemFactory':Hr}}}};var Ci=_0x4b851e(0x2a0),wi='1.0.0-beta.2';const Ti={'type':_0x3ab13f[_0x4b851e(0x18a)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Ei={};function Di(_0x371bf3){return _0x371bf3['trim']()||void 0x0;}function Oi(_0x3dcb01,_0x186381,_0x20fb45){const _0x7ec083=_0x4b851e;var _0x3c3fba;return((_0x3c3fba=_0x3dcb01[_0x7ec083(0x287)])==null?void 0x0:_0x3c3fba['trim']())||_0x389497(_0x20fb45,_0x651274(_0x3dcb01[_0x7ec083(0x14f)]))+'\x20'+(_0x186381+0x1);}function ki(){const _0x26d3d8=_0x4b851e;var _0x193259;let _0x1e3844=_0x496f8c(_0x3fae61),_0x197a55=_0x496f8c(_0x46e4d8),_0x3ba7a3=_0x496f8c(_0x22bed1),_0x5f04b5=_0x496f8c(_0x460b38),_0x4defd2=_0x496f8c(_0x1644d5),_0x115923=_0x496f8c(_0x37a074),[,_0x4f303c]=_0x3f08fe(_0x4b5a92=>_0x4b5a92+0x1,0x0),_0x102fb8=_0x3ba7a3[_0x26d3d8(0x249)](_0x2ce572['UNIVER_SHEET']),_0x58ad66=(_0x102fb8==null?void 0x0:_0x102fb8['getUnitId']())??'',_0x339b97=(_0x102fb8==null||(_0x193259=_0x102fb8[_0x26d3d8(0x84)]())==null?void 0x0:_0x193259[_0x26d3d8(0x1b0)]())??'',_0xc513c0=_0x1f221a(()=>_0x4defd2[_0x26d3d8(0x85)],_0x4defd2[_0x26d3d8(0x20e)](),!0x1,[_0x4defd2]);_0x45ee55(()=>{const _0x2204a2=_0x26d3d8;let _0xef1c5b=_0x197a55['onCommandExecuted'](()=>_0x4f303c());return()=>_0xef1c5b[_0x2204a2(0x254)]();},[_0x197a55]);let _0x4e2893=_0x2a519c(()=>_0x11fb9f(_0x1e3844),[_0x1e3844]),_0x52eddc=_0x58ad66&&_0x339b97?_0x5f04b5['getDrawingData'](_0x58ad66,_0x339b97):{},_0x134440=(_0x58ad66&&_0x339b97?_0x5f04b5['getDrawingOrder'](_0x58ad66,_0x339b97):[])[_0x26d3d8(0x27b)](_0x4f1680=>_0x52eddc[_0x4f1680])[_0x26d3d8(0x14e)](_0x4f43f7=>!!_0x4f43f7)[_0x26d3d8(0x2cf)](),_0x58ecfc=_0x134440['reduce']((_0x34dfc1,_0x1bc815)=>(_0x34dfc1[_0x19e79d(_0x1bc815[_0x26d3d8(0x14f)])]+=0x1,_0x34dfc1),{'canvas':0x0,'floating':0x0}),_0xb700e9={'canvas':0x0,'floating':0x0},_0x5df456=_0x134440[_0x26d3d8(0x27b)]((_0x306364,_0x597ca2)=>{const _0x2e5e83=_0x26d3d8;let _0x3b8a9a=_0x19e79d(_0x306364[_0x2e5e83(0x14f)]),_0x14d826=_0x3b8a9a===_0x1767bf,_0x29677b=_0xb700e9[_0x3b8a9a]++;return{'id':_0x306364[_0x2e5e83(0x179)],'name':Oi(_0x306364,_0x597ca2,_0x1e3844),'description':_0x306364[_0x2e5e83(0x117)],'visible':_0x306364[_0x2e5e83(0xbf)]!==!0x0,'selectable':_0x306364[_0x2e5e83(0x10d)]!==!0x1,'sectionId':_0x3b8a9a,'sectionTitle':_0x14d826?_0x4e2893[_0x2e5e83(0x256)]:_0x4e2893[_0x2e5e83(0x19f)],'capabilities':_0x14d826?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x14d826&&_0x29677b>0x0,'canMoveBackward':!_0x14d826&&_0x29677b<_0x58ecfc[_0x2e5e83(0xfb)]-0x1,'canReorder':!_0x14d826};}),_0x57bdc3=_0x2a519c(()=>(_0xc513c0??[])['filter'](_0x1f49a3=>_0x1f49a3[_0x26d3d8(0x2e2)]===_0x58ad66&&_0x1f49a3['subUnitId']===_0x339b97)[_0x26d3d8(0x27b)](_0x3dffd6=>_0x3dffd6[_0x26d3d8(0x179)]),[_0xc513c0,_0x339b97,_0x58ad66]),_0x3db694=_0x57bdc3[_0x57bdc3[_0x26d3d8(0x8c)]-0x1]??null,_0x5b879a=_0x3ff7ac=>_0x5f04b5[_0x26d3d8(0x2cc)]({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x3ff7ac})??null,_0x59e092=async _0x45ad2=>{const _0x42582c=_0x26d3d8;!_0x58ad66||!_0x45ad2[_0x42582c(0x8c)]||await _0x197a55[_0x42582c(0x163)](_0x41f305['id'],{'unitId':_0x58ad66,'drawings':_0x45ad2});},_0x213046=async(_0x161e5a,_0x52678e)=>{_0x5b879a(_0x161e5a)&&await _0x59e092([{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x161e5a,..._0x52678e}]);},_0x24f137=(_0x3a2b93,_0x94f409)=>{const _0x3483ca=_0x26d3d8;if(!_0x58ad66||!_0x339b97)return;let _0x5e84a5=_0x94f409?_0x57bdc3[_0x3483ca(0xf5)](_0x3a2b93)?_0x57bdc3[_0x3483ca(0x14e)](_0x4364da=>_0x4364da!==_0x3a2b93):[..._0x57bdc3,_0x3a2b93]:[_0x3a2b93];_0x197a55[_0x3483ca(0xc3)](_0x2f07a0['id'],_0x5e84a5['map'](_0x1f8a9b=>({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x1f8a9b})));let _0x1769bf=_0x5e84a5[_0x5e84a5['length']-0x1];_0x1769bf?_0x40f724(_0x115923,{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x1769bf}):_0x1539dd(_0x115923,_0x58ad66);},_0x1fa622=async(_0x3720d9,_0x19d2a1)=>{const _0x455d47=_0x26d3d8;await _0x59e092(_0x3720d9['map'](_0x47c6fd=>_0x5b879a(_0x47c6fd))['filter'](_0x6fa543=>!!_0x6fa543)[_0x455d47(0x14e)](_0x6d81ab=>_0x6d81ab['hidden']!==!0x0!==_0x19d2a1)['map'](_0x5822a7=>({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x5822a7[_0x455d47(0x179)],'hidden':!_0x19d2a1})));},_0x33bfca=async _0x52d800=>{let _0x36c0a9=_0x5b879a(_0x52d800);_0x36c0a9&&await _0x213046(_0x52d800,{'selectable':_0x36c0a9['selectable']===!0x1&&void 0x0});},_0x3eee9e=async(_0x20210b,_0x9acd17)=>{const _0x3e6a0d=_0x26d3d8;var _0x2a0091;let _0x1aceb3=Di(_0x9acd17);(((_0x2a0091=_0x5b879a(_0x20210b))==null?void 0x0:_0x2a0091[_0x3e6a0d(0x287)])??void 0x0)!==_0x1aceb3&&await _0x213046(_0x20210b,{'name':_0x1aceb3});},_0x24010c=async(_0xb325ee,_0x419ec3)=>{const _0x10a5ce=_0x26d3d8;var _0x523019;let _0xa87666=Di(_0x419ec3);(((_0x523019=_0x5b879a(_0xb325ee))==null?void 0x0:_0x523019[_0x10a5ce(0x117)])??void 0x0)!==_0xa87666&&await _0x213046(_0xb325ee,{'description':_0xa87666});},_0xf1b4aa=async(_0x3fbc3f,_0xf1a519)=>{!_0x58ad66||!_0x339b97||await _0x197a55['executeCommand'](_0x474f53['id'],{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingIds':[_0x3fbc3f],'arrangeType':_0xf1a519});};return!_0x58ad66||!_0x339b97?_0x26713b('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x4e2893[_0x26d3d8(0x169)]}):_0x26713b(_0x507439,{'items':_0x5df456,'selectedIds':_0x57bdc3,'focusedId':_0x3db694,'labels':_0x4e2893,'onSelect':_0x24f137,'onSetVisible':_0x1fa622,'onCommitName':_0x3eee9e,'onCommitDescription':_0x24010c,'onMoveForward':async _0x361289=>_0xf1b4aa(_0x361289,_0x5de97e[_0x26d3d8(0x2b6)]),'onMoveBackward':async _0x4d04d7=>_0xf1b4aa(_0x4d04d7,_0x5de97e[_0x26d3d8(0x14b)]),'onToggleSelectable':_0x33bfca});}let Ai=class{constructor(_0x1fcb4b){const _0x55490b=_0x4b851e;this[_0x55490b(0x1bb)]=_0x1fcb4b;}[_0x4b851e(0xa9)](_0x8c3eba,_0x2d1a68){const _0x215b67=_0x4b851e;let _0x3e4659=this[_0x215b67(0x1bb)][_0x215b67(0x75)](_0x8c3eba[_0x215b67(0x2e2)]),_0x50b05e=_0x3e4659==null?void 0x0:_0x3e4659['scene'];if(!_0x50b05e)return;let _0xdb253a=_0x4d60ae(_0x8c3eba),_0x168c20=_0x50b05e['getObjectIncludeInGroup'](_0xdb253a);_0x168c20==null||_0x168c20[_0x215b67(0x26d)](_0x2d1a68);}};Ai=Z([X(0x0,_0x37a074)],Ai);function ji(){const _0x18fdab=_0x4b851e;let _0x6f5695=_0x496f8c(_0x1644d5),_0x5459cd=_0x1f221a(()=>_0x6f5695[_0x18fdab(0x85)],_0x6f5695[_0x18fdab(0x20e)](),!0x1,[_0x6f5695]);return _0x5459cd[_0x18fdab(0x8c)]===0x0?null:_0x26713b(_0x18fdab(0xdd),{'children':_0x3acd23('div',{'className':_0x18fdab(0x8d),'children':[_0x26713b(_0x5aebc8,{'drawings':_0x5459cd,'hasCropper':!0x1}),_0x26713b(_0x42148c,{'drawings':_0x5459cd})]})});}function Mi(_0x4b6a71){let {unitId:_0x36cfb8,subUnitId:_0x5eb67e,shapeId:_0x2a0905}=_0x4b6a71,_0x1ffc51=_0x496f8c(_0x46e4d8),_0x53d953=_0x496f8c(Ai);return _0x26713b(_0x7c1c93,{..._0x4b6a71,'positionEditor':_0x26713b(ji,{}),'onUpdateShapeData':(_0x562dd3,_0x46a6e2)=>{or(_0x1ffc51,_0x36cfb8,_0x5eb67e,_0x2a0905,_0x562dd3,_0x46a6e2);},'onUpdateLineShapeData':(_0xd23a32,_0x4eae40)=>{sr(_0x1ffc51,_0x36cfb8,_0x5eb67e,_0x2a0905,_0xd23a32,_0x4eae40);},'onUpdateShapeFillImage':_0x458773=>{const _0x3fd0f8=_0x1d1c;_0x53d953[_0x3fd0f8(0xa9)]({'unitId':_0x36cfb8,'subUnitId':_0x5eb67e,'drawingId':_0x2a0905},_0x458773);}});}function Ni(_0x581aed){const _0x8d6d5f=_0x4b851e;let _0x516846=_0x496f8c(_0x49b6d5),_0x17e803=_0x1f221a(()=>_0x516846[_0x8d6d5f(0x160)],_0x516846[_0x8d6d5f(0x246)](),!0x1,[_0x516846]),_0xf14798=_0x581aed[_0x8d6d5f(0x16e)][_0x8d6d5f(0x17d)];return!_0xf14798||!_0x17e803?null:_0x26713b(Pi,{..._0xf14798,'canvasElement':_0x581aed['popup']['canvasElement']});}function Pi(_0x76f75d){const _0x17bb0b=_0x4b851e;let _0xa2b4dd=_0x496f8c(_0x46e4d8),_0x2fc944=_0x496f8c(_0x1bfe6b),{unitId:_0x25a632,subUnitId:_0x1c49f0,drawingId:_0x13cf5a,drawingType:_0x2a1c9f,shapeType:_0xe06088}=_0x76f75d,[_0x5e5e07,_0x3e8edf]=_0x24f8d3(_0x76f75d[_0x17bb0b(0xb6)]),_0x32f11f=_0x2a519c(()=>_0x4f2a32(_0x5e5e07),[_0x5e5e07]),_0x46123e=_0x2a519c(()=>_0x3f7794(_0x5e5e07),[_0x5e5e07]);_0x45ee55(()=>{const _0x3860ad=_0x17bb0b;let _0x5161c7=_0xa2b4dd[_0x3860ad(0x11c)](_0x533715=>{const _0x395137=_0x3860ad;if(_0x533715['id']!==_0x4b69e7['id'])return;let _0x3905b9=_0x2fc944[_0x395137(0x2d9)](_0x25a632,_0x1c49f0,_0x13cf5a);_0x3905b9&&_0x3e8edf(_0x3905b9);});return()=>_0x5161c7[_0x3860ad(0x254)]();},[_0xa2b4dd,_0x13cf5a,_0x2fc944,_0x1c49f0,_0x25a632]);let _0xbb4e6b=_0x10850e=>{_0x3e8edf(_0x229074=>({..._0x229074,..._0x10850e}));},_0x538012=_0x2e4e90=>{const _0x146848=_0x17bb0b;let _0x38b112=_0x273436(_0x5e5e07,_0x2e4e90);or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,{'oldShapeData':{'shapeText':_0x5e5e07[_0x146848(0x121)]}},_0x38b112),_0xbb4e6b(_0x38b112);},_0x588c2b=_0x2caf88({'hostType':_0x2ce572[_0x17bb0b(0x158)],'unitId':_0x25a632,'subUnitId':_0x1c49f0,'shapeId':_0x13cf5a,'shapeData':_0x5e5e07,'onUpdateBinding':_0x7a0e2c=>{let _0x96c6d6={'formulaBinding':_0x7a0e2c};or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,{'oldShapeData':{'formulaBinding':_0x5e5e07['formulaBinding']}},_0x96c6d6),_0xbb4e6b(_0x96c6d6);}});return _0x3acd23(_0x16b2fe,{'children':[_0x26713b(_0x3d7c32,{'canvasElement':_0x76f75d['canvasElement'],'shapeData':_0x5e5e07,'shapeType':_0xe06088,'textStyle':{'ff':_0x179953[_0x17bb0b(0x121)][_0x17bb0b(0xd2)],'fs':_0x179953[_0x17bb0b(0x121)]['fontSize'],'cl':{'rgb':_0x179953[_0x17bb0b(0x121)][_0x17bb0b(0xc2)]},..._0x32f11f},'textModel':_0x46123e?{'ha':_0x46123e['ha']??_0x4305f0[_0x17bb0b(0x16c)],'va':_0x46123e['va']??_0x43e240['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x179953[_0x17bb0b(0x1d4)],'defaultGradientEndColor':_0x179953[_0x17bb0b(0x1d2)],'defaultStrokeColor':_0x179953[_0x17bb0b(0x1c6)],'extensionGroups':_0x588c2b[_0x17bb0b(0x1ac)],'onUpdateShapeData':(_0x1ea529,_0x677e6f)=>{or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,_0x1ea529,_0x677e6f),_0x677e6f&&_0xbb4e6b(_0x677e6f);},'onUpdateText':_0x538012,'onOpenPanel':()=>{const _0x41db84=_0x17bb0b;_0xa2b4dd[_0x41db84(0x163)](wr['id'],{'unitId':_0x25a632,'subUnitId':_0x1c49f0,'drawingId':_0x13cf5a});},'onDelete':()=>{_0xa2b4dd['executeCommand'](_0x483709['id'],{'unitId':_0x25a632,'drawings':[{'unitId':_0x25a632,'subUnitId':_0x1c49f0,'drawingId':_0x13cf5a,'drawingType':_0x2a1c9f}]});}}),_0x588c2b['panel']]});}var Fi=class extends _0x387ec6{constructor(..._0x32ef6f){const _0x2a93f0=_0x4b851e;super(..._0x32ef6f),Y(this,_0x2a93f0(0x119),new _0x377ada(null)),Y(this,_0x2a93f0(0x2d1),this[_0x2a93f0(0x119)][_0x2a93f0(0x2c7)]()),Y(this,_0x2a93f0(0x15b),new _0x377ada(!0x1)),Y(this,_0x2a93f0(0x137),this[_0x2a93f0(0x15b)]['asObservable']());}[_0x4b851e(0x254)](){const _0x1b1bf5=_0x4b851e;this[_0x1b1bf5(0x119)][_0x1b1bf5(0x12c)](null),this['_editingParams$']['complete'](),this[_0x1b1bf5(0x15b)][_0x1b1bf5(0x12c)](!0x1),this[_0x1b1bf5(0x15b)][_0x1b1bf5(0x1c2)](),super[_0x1b1bf5(0x254)]();}[_0x4b851e(0x22f)](_0x579d81){const _0x175e52=_0x4b851e;this[_0x175e52(0x119)][_0x175e52(0x12c)](_0x579d81),_0x579d81??this[_0x175e52(0x15b)][_0x175e52(0x12c)](!0x1);}[_0x4b851e(0x1ba)](_0x20105c){this['_onSavingEditorData$']['next'](_0x20105c);}[_0x4b851e(0xbb)](){const _0x234d29=_0x4b851e;return this[_0x234d29(0x119)][_0x234d29(0x13d)]();}['completeEditing'](_0x526f9e){const _0x57283b=_0x4b851e;this['getEditing']()&&(this[_0x57283b(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x5dc4c5=_0x57283b;this[_0x5dc4c5(0x22f)](null);}));}[_0x4b851e(0xf1)](){const _0x4f21e2=_0x4b851e;this[_0x4f21e2(0xbb)]()&&this[_0x4f21e2(0x22f)](null);}};function Ii(_0x288c67){const _0x3b8007=_0x4b851e;return!!_0x288c67&&'axisAlignSheetTransform'in _0x288c67&&_0x3b8007(0x1b3)in _0x288c67;}const Li=_0x5acb43(()=>{const _0x37b007=_0x4b851e;let _0x4128fb=_0x496f8c(Fi),_0x279fd6=_0x496f8c(_0x1bfe6b),_0x305e8d=_0x496f8c(_0x1644d5),_0x5c516a=_0x496f8c(_0x46e4d8),_0x428edb=_0x496f8c(_0x2752d),_0x3c1581=_0x496f8c(_0x37a074);return _0x26713b(_0x11d071,{'adapter':_0x2a519c(()=>({'getShapeModel':(_0x4aee89,_0x2b2f57,_0x36b1d5)=>_0x279fd6['getShapeModel'](_0x4aee89,_0x2b2f57,_0x36b1d5),'getShapeData':(_0x17d3ad,_0x4a3d86,_0x4bed6b)=>_0x279fd6['getShapeDataById'](_0x17d3ad,_0x4a3d86,_0x4bed6b),'getDrawingTransform':(_0x23ec16,_0x57a02,_0x380994)=>{const _0x17ee89=_0x1d1c;let _0xefd01e=_0x305e8d[_0x17ee89(0x2cc)]({'unitId':_0x23ec16,'subUnitId':_0x57a02,'drawingId':_0x380994});return _0xefd01e==null?void 0x0:_0xefd01e[_0x17ee89(0x1c1)];},'updateShapeText':({unitId:_0x2bfcea,subUnitId:_0x207d90,shapeId:_0x857c7d,shapeText:_0x58a9fd,oldShapeText:_0x19bd74,hostSize:_0x4c5e5d})=>{const _0x230a05=_0x1d1c;_0x428edb[_0x230a05(0xb1)](_0x2bfcea,()=>{const _0x45e827=_0x230a05;var _0x189060;let _0x1e8dc8=_0x5c516a['syncExecuteCommand'](ar['id'],{'unitId':_0x2bfcea,'subUnitId':_0x207d90,'shapeId':_0x857c7d,'shapeData':{'shapeText':_0x58a9fd},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x19bd74}}});if(!_0x1e8dc8||!_0x4c5e5d)return _0x1e8dc8;let _0x453646=_0x305e8d['getDrawingByParam']({'unitId':_0x2bfcea,'subUnitId':_0x207d90,'drawingId':_0x857c7d}),_0x25e645=_0x453646==null?void 0x0:_0x453646['transform'];if(!Ii(_0x453646)||!_0x25e645)return!0x1;let _0x4a6b95={..._0x25e645,'width':_0x4c5e5d[_0x45e827(0x193)],'height':_0x4c5e5d[_0x45e827(0x1ff)]},_0x4bf85a=(_0x189060=_0x3c1581[_0x45e827(0x75)](_0x2bfcea))==null||(_0x189060=_0x189060[_0x45e827(0x25d)](_0x58befb)[_0x45e827(0x174)](_0x207d90))==null?void 0x0:_0x189060[_0x45e827(0x27a)];return _0x5c516a['syncExecuteCommand'](_0x41f305['id'],{'unitId':_0x2bfcea,'drawings':[{..._0x453646,'transform':_0x4a6b95,'sheetTransform':_0x4bf85a?_0x1633a2(_0x4a6b95,_0x4bf85a)??_0x453646['sheetTransform']:_0x453646[_0x45e827(0x1b3)],'axisAlignSheetTransform':_0x4bf85a?_0x1f9ea5(_0x4a6b95,_0x4bf85a)??_0x453646[_0x45e827(0x1f7)]:_0x453646[_0x45e827(0x1f7)]}]});});},'updateHostSize':({unitId:_0x1e678f,subUnitId:_0x5b88d3,shapeId:_0x37b2b8,width:_0x57a30e,height:_0x5d22f0})=>{const _0x2a7c45=_0x1d1c;var _0x235755;let _0x23561e=_0x305e8d[_0x2a7c45(0x2cc)]({'unitId':_0x1e678f,'subUnitId':_0x5b88d3,'drawingId':_0x37b2b8}),_0x1968fa=_0x23561e==null?void 0x0:_0x23561e[_0x2a7c45(0x1c1)];if(!Ii(_0x23561e)||!_0x1968fa)return;let _0x583c12={..._0x1968fa,'width':_0x57a30e,'height':_0x5d22f0},_0x44ebe0=(_0x235755=_0x3c1581[_0x2a7c45(0x75)](_0x1e678f))==null||(_0x235755=_0x235755[_0x2a7c45(0x25d)](_0x58befb)[_0x2a7c45(0x174)](_0x5b88d3))==null?void 0x0:_0x235755['skeleton'],_0x386e57=_0x44ebe0?_0x1633a2(_0x583c12,_0x44ebe0)??_0x23561e[_0x2a7c45(0x1b3)]:_0x23561e[_0x2a7c45(0x1b3)],_0x47d0ba=_0x44ebe0?_0x1f9ea5(_0x583c12,_0x44ebe0)??_0x23561e[_0x2a7c45(0x1f7)]:_0x23561e[_0x2a7c45(0x1f7)];_0x5c516a[_0x2a7c45(0x163)](_0x41f305['id'],{'unitId':_0x1e678f,'drawings':[{..._0x23561e,'transform':_0x583c12,'sheetTransform':_0x386e57,'axisAlignSheetTransform':_0x47d0ba}]});},'allowHostSizeShrink':({unitId:_0x3e0fd1,subUnitId:_0x22aeea,shapeId:_0x14c6ff})=>_0x7a8762(_0x279fd6[_0x37b007(0x2d9)](_0x3e0fd1,_0x22aeea,_0x14c6ff)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5c516a,_0x305e8d,_0x3c1581,_0x279fd6,_0x428edb]),'editingService':_0x4128fb,'editorUnitId':xr,'positionOptions':_0x2a519c(()=>({'viewportKeys':{'main':_0x571719[_0x37b007(0x2b0)],'leftTop':_0x571719['VIEW_MAIN_LEFT_TOP'],'top':_0x571719[_0x37b007(0x28c)],'left':_0x571719['VIEW_MAIN_LEFT']},'getSkeleton':(_0x100752,_0x2daaa8)=>{const _0x26e5f8=_0x37b007;var _0x641c7a;return((_0x641c7a=_0x100752['with'](_0x58befb)[_0x26e5f8(0x174)](_0x2daaa8[_0x26e5f8(0x20f)]))==null?void 0x0:_0x641c7a[_0x26e5f8(0x27a)])??null;}}),[])});});let Ri=class extends _0x387ec6{constructor(_0x4de121,_0x3840d7){const _0x1d8fe5=_0x4b851e;super(),this['_componentManager']=_0x4de121,this[_0x1d8fe5(0x21f)]=_0x3840d7,this[_0x1d8fe5(0x107)](),this[_0x1d8fe5(0x26a)]();}['_registerIcons'](){const _0x273094=_0x4b851e;this[_0x273094(0x21f)]['has']('ObjectLayersIcon')||this['disposeWithMe'](this['_iconManager'][_0x273094(0x2ea)]({'ObjectLayersIcon':_0x211ee9})),this[_0x273094(0x21f)]['has']('FlipHorizontalIcon')||this[_0x273094(0x183)](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'FlipHorizontalIcon':_0x2f696e})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x2c4))||this[_0x273094(0x183)](this[_0x273094(0x21f)]['register']({'FlipVerticalIcon':_0x382856})),this[_0x273094(0x21f)][_0x273094(0x261)]('BottomIcon')||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'BottomIcon':_0x3bd01a})),this[_0x273094(0x21f)][_0x273094(0x261)]('MoveDownIcon')||this[_0x273094(0x183)](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'MoveDownIcon':_0x164d4d})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x1e3))||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'MoveUpIcon':_0x1e4b26})),this['_iconManager'][_0x273094(0x261)](_0x273094(0x98))||this[_0x273094(0x183)](this['_iconManager'][_0x273094(0x2ea)]({'ShapeFormatSettingIcon':_0x2dd85d})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x1b8))||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'TopmostIcon':_0xe5adf2}));}[_0x4b851e(0x26a)](){const _0x2fb10d=_0x4b851e;this['disposeWithMe'](this[_0x2fb10d(0x7e)]['register'](_r,Mi)),this['disposeWithMe'](this['_componentManager'][_0x2fb10d(0x2ea)](vr,ki)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](kr,Pr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Ar,Mr)),this['_componentManager'][_0x2fb10d(0x2c2)](_0x105c46)||this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](_0x105c46,Nr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](yr,Ni)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Wr,Jr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Ur,Yr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](Gr,Xr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Kr,Zr)),this[_0x2fb10d(0x183)](this['_componentManager'][_0x2fb10d(0x2ea)](Sr,_0xdd4439)),this['disposeWithMe'](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)]('SheetShapeTextEditorContainer',Li));}};Ri=Z([X(0x0,_0x2e2475(_0x1b0068)),X(0x1,_0x2e2475(_0x4741f6))],Ri);let zi=class extends _0x387ec6{constructor(_0x49ec4c,_0x1a714e,_0x309129,_0x3df6e1,_0x14796a){const _0x4c7792=_0x4b851e;super(),this[_0x4c7792(0x26e)]=_0x49ec4c,this[_0x4c7792(0x9d)]=_0x1a714e,this[_0x4c7792(0x1bb)]=_0x309129,this[_0x4c7792(0x25c)]=_0x3df6e1,this['_imageShapeClipController']=_0x14796a,Y(this,_0x4c7792(0xc9),null),Y(this,'_unitId',null),Y(this,_0x4c7792(0x21a),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x4c7792(0x29c),[]),Y(this,_0x4c7792(0x1a6),0x0),Y(this,'_baseTop',0x0),Y(this,_0x4c7792(0x2aa),0x0),Y(this,_0x4c7792(0x152),0x0),Y(this,_0x4c7792(0x12f),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x4c7792(0xf7),void 0x0),Y(this,_0x4c7792(0xc4),void 0x0),Y(this,_0x4c7792(0x2d6),void 0x0),Y(this,'_isImagePointerDown',!0x1),this[_0x4c7792(0xf0)](),this[_0x4c7792(0x115)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x4b851e(0x2d8)](){const _0x3bc0e6=_0x4b851e;this[_0x3bc0e6(0xaf)](),this[_0x3bc0e6(0x1d8)](!0x0);}[_0x4b851e(0x1f3)](_0x46b9aa,_0x3fd630,_0x168591,_0x23717b){const _0x3c166d=_0x4b851e;let _0x50d7b0=_0x46b9aa;if(_0x50d7b0!==_0x3e1064[_0x3c166d(0x2d7)]&&_0x46b9aa!==_0x3c166d(0xf6))try{let _0x288822=new _0x5578df(_0x50d7b0,'clip-adj-'+_0x46b9aa);return _0x23717b&&_0x288822[_0x3c166d(0x1ef)]({'adjustValues':_0x23717b},!0x0),_0x288822['updateContext']({'width':_0x3fd630,'height':_0x168591}),_0x288822;}catch{return;}}[_0x4b851e(0x2b9)](_0x2970b4,_0x46b3e9,_0x1cf4b7){const _0x2fc0af=_0x4b851e;let _0xffb3f0={'unitId':_0x2970b4,'subUnitId':_0x46b3e9,'drawingId':_0x1cf4b7},_0x1365c6=this[_0x2fc0af(0x9d)][_0x2fc0af(0x2cc)](_0xffb3f0);if(!(!_0x1365c6||_0x1365c6[_0x2fc0af(0x14f)]!==_0x514277['DRAWING_IMAGE']))return _0x1365c6;}[_0x4b851e(0x258)](_0x1effd8,_0x53f507,_0x6e3fc3){const _0x25c0f0=_0x4b851e;let _0x1d4c9=this[_0x25c0f0(0x1bb)][_0x25c0f0(0x75)](_0x1effd8);if(!_0x1d4c9)return;let {scene:_0x4381fd}=_0x1d4c9,_0x2f6404=_0x4d60ae({'unitId':_0x1effd8,'subUnitId':_0x53f507,'drawingId':_0x6e3fc3}),_0x33bdb5=_0x4381fd[_0x25c0f0(0x1f8)](_0x2f6404);if(_0x33bdb5 instanceof _0x5e8ac4){let _0x52c6a3=_0x33bdb5[_0x25c0f0(0xd6)];if(_0x52c6a3)return{'prstGeom':_0x52c6a3,'adjustValues':_0x33bdb5[_0x25c0f0(0x1c3)]};}}['_createControls'](_0x5e0105=!0x1){const _0x372074=_0x4b851e;if(!this['_unitId']||!this[_0x372074(0x21a)]||!this[_0x372074(0xc9)])return;let _0x55f303=this['_renderManagerService'][_0x372074(0x75)](this['_unitId']);if(!_0x55f303||!_0x55f303[_0x372074(0x25d)](_0x58befb)['getCurrentSkeleton']())return;let {scene:_0x5c575f}=_0x55f303,_0x523c56=this['_getImageDrawingInfo'](this[_0x372074(0x7b)],this[_0x372074(0x21a)],this['_activeImageId']);if(!_0x523c56)return;let {transform:_0x155c2f}=_0x523c56;if(!_0x155c2f)return;let {left:_0xc4713b,top:_0x108329,width:_0x31a229,height:_0x400407,flipX:_0x2b307a,flipY:_0x25b93b,angle:_0x14810a=0x0}=_0x155c2f;if(_0xc4713b===void 0x0||_0x108329===void 0x0)return;let _0x24a6e6=this['_getImagePrstGeom'](this[_0x372074(0x7b)],this[_0x372074(0x21a)],this[_0x372074(0xc9)]);if(!_0x24a6e6)return;if(_0x5e0105){let _0x141270=this['_getOrCreateShapeModel'](_0x24a6e6[_0x372074(0xd6)],_0x31a229||0x0,_0x400407||0x0,_0x24a6e6[_0x372074(0x1e5)]);if(!_0x141270)return;this[_0x372074(0x19d)]=_0x141270[_0x372074(0xfd)]();}let _0x48ecec=this['_activeAdjustPointList'];if(!(!_0x48ecec||_0x48ecec['length']===0x0))for(let _0x2c9009=0x0;_0x2c9009<_0x48ecec['length'];_0x2c9009++){let _0x1dd574=_0x48ecec[_0x2c9009],_0xdfba27=_0x1dd574['x'],_0x513d72=_0x1dd574['y'];if(_0x2b307a&&(_0xdfba27=(_0x31a229||0x0)-_0xdfba27),_0x25b93b&&(_0x513d72=(_0x400407||0x0)-_0x513d72),_0x14810a!==0x0){let _0x13b247=(_0x31a229||0x0)/0x2,_0x30f6e7=(_0x400407||0x0)/0x2,_0x46f745=_0x14810a*Math['PI']/0xb4,_0x410be4=Math['cos'](_0x46f745),_0x1d9069=Math['sin'](_0x46f745),_0x2ca568=_0xdfba27-_0x13b247,_0x4b4b7f=_0x513d72-_0x30f6e7;_0xdfba27=_0x13b247+(_0x2ca568*_0x410be4-_0x4b4b7f*_0x1d9069),_0x513d72=_0x30f6e7+(_0x2ca568*_0x1d9069+_0x4b4b7f*_0x410be4);}let _0xb34a6c={'x':_0xdfba27,'y':_0x513d72,'adjName':_0x1dd574[_0x372074(0x165)]};this[_0x372074(0x29e)](_0x5c575f,_0xb34a6c,_0xb34a6c[_0x372074(0x165)],_0xc4713b,_0x108329,this[_0x372074(0x7b)],this[_0x372074(0x21a)]);}}[_0x4b851e(0x29e)](_0xbca496,_0x49bb8a,_0x13d8ec,_0x2d09d8,_0x26e414,_0x581628,_0x46d828){const _0x57994a=_0x4b851e;if(!this[_0x57994a(0xc9)])return;let _0x148a59=_0x57994a(0x2a6)+this[_0x57994a(0xc9)]+'-'+_0x13d8ec,_0x29c191=_0xbca496[_0x57994a(0x2cb)](_0x148a59);if(_0x29c191){_0x29c191[_0x57994a(0x1ab)]({'left':_0x49bb8a['x']+_0x2d09d8-_0x179953[_0x57994a(0x162)],'top':_0x49bb8a['y']+_0x26e414-_0x179953[_0x57994a(0x162)]});return;}let _0x34190c=new pr(_0x148a59,{'left':_0x49bb8a['x']+_0x2d09d8-_0x179953[_0x57994a(0x162)],'top':_0x49bb8a['y']+_0x26e414-_0x179953[_0x57994a(0x162)],'adjName':_0x13d8ec,'shapeId':this[_0x57994a(0xc9)],'unitId':_0x581628,'subUnitId':_0x46d828,'width':_0x179953['adjHandleSize']+0x8,'height':_0x179953['adjHandleSize']+0x8,'zIndex':_0x22719c+0x1,'evented':!0x0});this[_0x57994a(0x29c)][_0x57994a(0x102)](_0x34190c),this['_attachAdjustEvent'](_0x34190c,_0xbca496,_0x13d8ec),_0xbca496['addObject'](_0x34190c,_0x22719c+0x1);}[_0x4b851e(0xaf)](){const _0x5e6ef0=_0x4b851e;this[_0x5e6ef0(0x29c)][_0x5e6ef0(0x8c)]!==0x0&&(this[_0x5e6ef0(0x29c)][_0x5e6ef0(0xd7)](_0x38c2eb=>_0x38c2eb['dispose']()),this['_shapes']=[]);}['_getScrollInfo'](_0x228f34,_0xf7dcdf){const _0x348d53=_0x4b851e;var _0x40d3c9;let _0xb1b4be={'x':0x0,'y':0x0},_0x585355=this['_renderManagerService'][_0x348d53(0x75)](_0x228f34);if(!_0x585355||!_0x585355[_0x348d53(0x25d)](_0x58befb)[_0x348d53(0x2c6)](_0xf7dcdf))return _0xb1b4be;let _0x14a18c=_0x585355[_0x348d53(0x25d)](_0x51344e),_0x188503=_0x14a18c==null?void 0x0:_0x14a18c[_0x348d53(0x209)]();if(!_0x188503)return _0xb1b4be;let _0x4c9013=(_0x40d3c9=this[_0x348d53(0x25c)][_0x348d53(0x1cd)](_0x228f34))==null?void 0x0:_0x40d3c9['getSheetBySheetId'](_0xf7dcdf);if(!_0x4c9013)return _0xb1b4be;let _0xad3fb5=_0x23e0fe(_0x188503[_0x348d53(0xde)],_0x188503['sheetViewStartColumn'],_0x585355[_0x348d53(0x255)],_0x4c9013);return _0xad3fb5?{'x':_0xad3fb5[_0x348d53(0x247)],'y':_0xad3fb5[_0x348d53(0x1cc)]}:_0xb1b4be;}['_getZoomRatio'](_0x5b6d85,_0x553118){const _0x60376f=_0x4b851e;var _0x12f5ad;let _0x4a90f0=(_0x12f5ad=this[_0x60376f(0x25c)][_0x60376f(0x1cd)](_0x5b6d85))==null?void 0x0:_0x12f5ad['getSheetBySheetId'](_0x553118);return(_0x4a90f0==null?void 0x0:_0x4a90f0['getZoomRatio']())??0x1;}[_0x4b851e(0x2a1)](_0x5d5c50,_0x457649,_0x3d6f51){const _0x2de08f=_0x4b851e;this[_0x2de08f(0x183)](_0x52399e(_0x5d5c50[_0x2de08f(0x120)][_0x2de08f(0x26b)]((_0x1a3f12,_0x21d90c)=>{const _0x2e1b15=_0x2de08f;var _0x552b9d,_0x29dae5,_0x1ae0a3;let {unitId:_0x40b1f3,subUnitId:_0x4fb945,drawingId:_0x4943ab}=_0x5d5c50[_0x2e1b15(0x176)](),_0x357c9f=this[_0x2e1b15(0x2b9)](_0x40b1f3,_0x4fb945,_0x4943ab);if(!(_0x357c9f!=null&&_0x357c9f[_0x2e1b15(0x1c1)]))return;let {left:_0x3598dc,top:_0x3dbe91,width:_0x5e8f7d,height:_0x4d85c9}=_0x357c9f[_0x2e1b15(0x1c1)];this[_0x2e1b15(0x1a6)]=_0x3598dc||0x0,this[_0x2e1b15(0x289)]=_0x3dbe91||0x0,this[_0x2e1b15(0x2aa)]=_0x5e8f7d||0x0,this['_baseHeight']=_0x4d85c9||0x0;let _0xe3fd94=!!((_0x552b9d=_0x357c9f[_0x2e1b15(0x1c1)])!=null&&_0x552b9d[_0x2e1b15(0x2ae)]),_0x45aa54=!!((_0x29dae5=_0x357c9f[_0x2e1b15(0x1c1)])!=null&&_0x29dae5[_0x2e1b15(0x1c8)]),_0x40a7b9=((_0x1ae0a3=_0x357c9f['transform'])==null?void 0x0:_0x1ae0a3[_0x2e1b15(0x2a4)])||0x0,_0x34de85=this['_getImagePrstGeom'](_0x40b1f3,_0x4fb945,_0x4943ab);if(!_0x34de85)return;let _0x53986b=this[_0x2e1b15(0x1f3)](_0x34de85[_0x2e1b15(0xd6)],this[_0x2e1b15(0x2aa)],this[_0x2e1b15(0x152)],_0x34de85[_0x2e1b15(0x1e5)]);if(!_0x53986b||(this[_0x2e1b15(0xf7)]=_0x53986b,this[_0x2e1b15(0x1a9)]=_0x53986b[_0x2e1b15(0x24c)](_0x3d6f51),!this[_0x2e1b15(0x1a9)]))return;this[_0x2e1b15(0x12f)]=!0x0,_0x457649[_0x2e1b15(0x1ad)]();let _0x582601=_0x34de85['prstGeom'];this['_adjHandlerPointerMove']=_0x457649[_0x2e1b15(0xe1)][_0x2e1b15(0x26b)]((_0x1afd6a,_0x1f013e)=>{const _0x331ae0=_0x2e1b15;if(!this[_0x331ae0(0x12f)])return;let {offsetX:_0x210983,offsetY:_0x3c823f}=_0x1afd6a,_0x386996=this[_0x331ae0(0x1a9)];if(!this[_0x331ae0(0xf7)]||!_0x386996)return;_0x457649[_0x331ae0(0x1ad)](),_0x457649[_0x331ae0(0x11d)](_0xa4b93e[_0x331ae0(0xd0)]);let _0x4d0ee2={'left':0x0,'top':0x0,'width':this[_0x331ae0(0x2aa)],'height':this[_0x331ae0(0x152)]},_0x1b60d0=this[_0x331ae0(0x10e)](_0x40b1f3,_0x4fb945),_0x23aeb3=this[_0x331ae0(0x21e)](_0x40b1f3,_0x4fb945),_0x133e7e=_0x210983/_0x23aeb3+_0x1b60d0['x']-this['_baseLeft'],_0x4f2d74=_0x3c823f/_0x23aeb3+_0x1b60d0['y']-this[_0x331ae0(0x289)];if(_0x40a7b9!==0x0){let _0x54cae6=this[_0x331ae0(0x2aa)]/0x2,_0x355127=this['_baseHeight']/0x2,_0x39b922=_0x40a7b9*Math['PI']/0xb4,_0x35f785=Math[_0x331ae0(0x20a)](_0x39b922),_0x297375=Math['sin'](_0x39b922),_0x59ecbb=_0x133e7e-_0x54cae6,_0x1fd104=_0x4f2d74-_0x355127;_0x133e7e=_0x54cae6+(_0x59ecbb*_0x35f785+_0x1fd104*_0x297375),_0x4f2d74=_0x355127+(-_0x59ecbb*_0x297375+_0x1fd104*_0x35f785);}_0xe3fd94&&(_0x133e7e=this[_0x331ae0(0x2aa)]-_0x133e7e),_0x45aa54&&(_0x4f2d74=this['_baseHeight']-_0x4f2d74);let _0x8a1f70=this[_0x331ae0(0xf7)]['calcAdjValues'](_0x4d0ee2,{'x':_0x133e7e,'y':_0x4f2d74},_0x386996,_0xe3fd94,_0x45aa54);if(Object[_0x331ae0(0x12b)](_0x8a1f70)['length']!==0x0){for(let [_0x57c347,_0x3a289a]of Object[_0x331ae0(0x2f6)](_0x8a1f70))this['_activeShapeModel'][_0x331ae0(0x2da)](_0x57c347,_0x3a289a);this[_0x331ae0(0xf7)][_0x331ae0(0x113)]({'width':this['_baseWidth'],'height':this[_0x331ae0(0x152)]}),this[_0x331ae0(0xc0)](_0x40b1f3,_0x4fb945,_0x4943ab,_0x8a1f70),this['_activeAdjustPointList']=this[_0x331ae0(0xf7)][_0x331ae0(0xfd)](),this[_0x331ae0(0x1d8)](),_0x1f013e[_0x331ae0(0x2f2)]();}}),this[_0x2e1b15(0x2d6)]=_0x457649[_0x2e1b15(0x21c)][_0x2e1b15(0x26b)]((_0x376a7d,_0x2ae044)=>{const _0x572bb0=_0x2e1b15;if(this['_adjHandlerPointerMove'][_0x572bb0(0x22e)](),this['_adjHandlerPointerUp'][_0x572bb0(0x22e)](),_0x457649[_0x572bb0(0x22a)](),this[_0x572bb0(0xf7)]){let _0x49a254=this[_0x572bb0(0xf7)][_0x572bb0(0x18d)](),_0x1cff2c={};for(let _0x5cdbb8 of _0x49a254){let _0x60a44d=this[_0x572bb0(0xf7)]['getAdjustValueByName'](_0x5cdbb8);_0x60a44d!==void 0x0&&(_0x1cff2c[_0x5cdbb8]=_0x60a44d);}this[_0x572bb0(0xd5)][_0x572bb0(0x2e8)](_0x40b1f3,_0x4fb945,_0x4943ab,_0x582601,_0x1cff2c);}this[_0x572bb0(0x1a9)]=void 0x0,this[_0x572bb0(0xf7)]=void 0x0,this[_0x572bb0(0x12f)]=!0x1,_0x2ae044[_0x572bb0(0x2f2)](),_0x457649[_0x572bb0(0x242)]();}),_0x21d90c[_0x2e1b15(0x2f2)]();})));}['_updateImageAdjValues'](_0x51b69e,_0x1d45ba,_0x4990e4,_0x537442){const _0x5b4d0f=_0x4b851e;let _0x1dd799=this['_renderManagerService']['getRenderUnitById'](_0x51b69e);if(!_0x1dd799)return;let {scene:_0x37ee59}=_0x1dd799,_0x1f50a8=_0x4d60ae({'unitId':_0x51b69e,'subUnitId':_0x1d45ba,'drawingId':_0x4990e4}),_0x141ff9=_0x37ee59[_0x5b4d0f(0x1f8)](_0x1f50a8);if(_0x141ff9 instanceof _0x5e8ac4){let _0x588930=_0x141ff9[_0x5b4d0f(0x1c3)]??{};_0x141ff9[_0x5b4d0f(0x16f)]({..._0x588930,..._0x537442}),_0x141ff9[_0x5b4d0f(0x2b3)](!0x0);}}[_0x4b851e(0x115)](){const _0x1e6717=_0x4b851e;let _0x1f272f=this[_0x1e6717(0x25c)][_0x1e6717(0x295)](_0x2ce572['UNIVER_SHEET']);this['disposeWithMe'](_0x1f272f[_0x1e6717(0x26c)](_0x20fbec(_0x51ddea=>_0x51ddea?_0x51ddea[_0x1e6717(0x21d)][_0x1e6717(0x26c)](_0x20fbec(_0x4df289=>{const _0x5b8f0b=_0x1e6717;if(!_0x4df289)return _0x53e669;let _0x4468f8=_0x51ddea[_0x5b8f0b(0x23b)](),_0x4362c5=this[_0x5b8f0b(0x1bb)]['getRenderUnitById'](_0x4468f8),_0x188226=_0x4362c5==null?void 0x0:_0x4362c5[_0x5b8f0b(0x255)];return _0x188226?_0x571f73(_0x188226):_0x53e669;})):_0x53e669))[_0x1e6717(0xd9)](_0x4a4380=>{const _0x572485=_0x1e6717;let _0x34172c=_0x4a4380[_0x572485(0x159)]();this[_0x572485(0x183)](_0x4a4380[_0x572485(0xe1)][_0x572485(0x26b)](()=>{const _0x4e6400=_0x572485;this[_0x4e6400(0x222)]&&this['_clearControls']();})),this[_0x572485(0x183)](_0x34172c['changeStart$'][_0x572485(0xd9)](_0x4071a1=>{const _0x496a8a=_0x572485;let {objects:_0x152f0f}=_0x4071a1;if(this[_0x496a8a(0x1d8)](),_0x152f0f!==null&&_0x152f0f[_0x496a8a(0x2ca)]===0x1){let _0x9617e0=_0x152f0f[_0x496a8a(0xe0)]()['next']()[_0x496a8a(0x214)];_0x9617e0 instanceof _0x5e8ac4&&_0x9617e0['prstGeom']&&(this['_isImagePointerDown']=!0x0);}})),this[_0x572485(0x183)](_0x34172c[_0x572485(0x128)][_0x572485(0xd9)](()=>{const _0x490d8f=_0x572485;this[_0x490d8f(0x222)]&&this[_0x490d8f(0xaf)]();})),this[_0x572485(0x183)](_0x4a4380[_0x572485(0x21c)][_0x572485(0x26b)](()=>{this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x572485(0x183)](_0x34172c[_0x572485(0xf9)][_0x572485(0xd9)](()=>{const _0x36340c=_0x572485;if(this[_0x36340c(0x7b)]&&this[_0x36340c(0x21a)]&&this['_activeImageId']){let _0x17608a=this[_0x36340c(0x258)](this[_0x36340c(0x7b)],this['_subUnitId'],this[_0x36340c(0xc9)]);if(_0x17608a){var _0x27cfef,_0x1fa16a;let _0x3eea3c=this[_0x36340c(0x2b9)](this[_0x36340c(0x7b)],this['_subUnitId'],this['_activeImageId']),_0x1f4019=(_0x3eea3c==null||(_0x27cfef=_0x3eea3c[_0x36340c(0x1c1)])==null?void 0x0:_0x27cfef[_0x36340c(0x193)])||0x0,_0x835f8=(_0x3eea3c==null||(_0x1fa16a=_0x3eea3c[_0x36340c(0x1c1)])==null?void 0x0:_0x1fa16a[_0x36340c(0x1ff)])||0x0,_0x572182=this[_0x36340c(0x1f3)](_0x17608a[_0x36340c(0xd6)],_0x1f4019,_0x835f8,_0x17608a['adjustValues']);_0x572182&&(this[_0x36340c(0x19d)]=_0x572182[_0x36340c(0xfd)](),this['_clearControls'](),this[_0x36340c(0x1d8)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x581371=_0x4b851e;this[_0x581371(0x183)](this[_0x581371(0x9d)]['focus$'][_0x581371(0xd9)](_0x524e39=>{const _0x283971=_0x581371;if(_0x524e39[_0x283971(0x8c)]===0x1){let _0x3115d7=_0x524e39[0x0];if(_0x3115d7[_0x283971(0x14f)]===_0x514277[_0x283971(0x1f0)]){let {unitId:_0x4997d6,subUnitId:_0x37a17a,drawingId:_0x5343a1}=_0x3115d7,_0x276973=this['_getImagePrstGeom'](_0x4997d6,_0x37a17a,_0x5343a1);if(_0x276973){var _0x3bfcc6,_0x2e00fe;this[_0x283971(0xc9)]=_0x5343a1,this[_0x283971(0x7b)]=_0x4997d6,this[_0x283971(0x21a)]=_0x37a17a;let _0x2de757=this[_0x283971(0x2b9)](_0x4997d6,_0x37a17a,_0x5343a1),_0x51e62f=(_0x2de757==null||(_0x3bfcc6=_0x2de757[_0x283971(0x1c1)])==null?void 0x0:_0x3bfcc6[_0x283971(0x193)])||0x0,_0x143105=(_0x2de757==null||(_0x2e00fe=_0x2de757['transform'])==null?void 0x0:_0x2e00fe[_0x283971(0x1ff)])||0x0,_0xaa9664=this['_getOrCreateShapeModel'](_0x276973[_0x283971(0xd6)],_0x51e62f,_0x143105,_0x276973[_0x283971(0x1e5)]);_0xaa9664&&(this[_0x283971(0x19d)]=_0xaa9664[_0x283971(0xfd)]()),this[_0x283971(0xaf)](),this[_0x283971(0x1d8)](!0x0);}else this[_0x283971(0x25a)]();}else this[_0x283971(0x25a)]();}else this[_0x283971(0x25a)]();})),this[_0x581371(0x183)](this[_0x581371(0x9d)]['update$'][_0x581371(0xd9)](_0x18ed32=>{const _0x47b9a2=_0x581371;if(_0x18ed32[_0x47b9a2(0x8c)]===0x1){let _0x39c5e5=_0x18ed32[0x0],_0x1d634a=this[_0x47b9a2(0x9d)][_0x47b9a2(0x2cc)](_0x39c5e5);(_0x1d634a==null?void 0x0:_0x1d634a['drawingType'])===_0x514277[_0x47b9a2(0x1f0)]&&this[_0x47b9a2(0xc9)]===_0x39c5e5[_0x47b9a2(0x179)]&&(this[_0x47b9a2(0xaf)](),this[_0x47b9a2(0x1d8)](!0x0));}})),this[_0x581371(0x183)](this['_drawingManagerService'][_0x581371(0x86)][_0x581371(0xd9)](_0x27134f=>{const _0x44d1f2=_0x581371;for(let _0x228b8b of _0x27134f)this[_0x44d1f2(0xc9)]===_0x228b8b[_0x44d1f2(0x179)]&&this['_resetState']();}));}[_0x4b851e(0x25a)](){const _0x5072c7=_0x4b851e;this[_0x5072c7(0xc9)]=null,this[_0x5072c7(0x7b)]=null,this['_subUnitId']=null,this[_0x5072c7(0x19d)]=void 0x0,this[_0x5072c7(0xaf)]();}};zi=Z([X(0x1,_0x1644d5),X(0x2,_0x2e2475(_0x37a074)),X(0x3,_0x22bed1),X(0x4,_0x2e2475(Or))],zi);const Bi=_0x4b851e(0x168);let Vi=class extends _0x387ec6{constructor(_0x57f624,_0xe60bb4,_0x5b734e,_0x1fb74b,_0x539c7b,_0x3673de){const _0x306033=_0x4b851e;super(),this[_0x306033(0x1d5)]=_0x57f624,this[_0x306033(0x1bf)]=_0xe60bb4,this['_drawingManagerService']=_0x5b734e,this[_0x306033(0x25c)]=_0x1fb74b,this[_0x306033(0x1bb)]=_0x539c7b,this[_0x306033(0x1e9)]=_0x3673de,Y(this,'_visible',!0x1),this[_0x306033(0x1d5)]['mergeMenu'](xi),this[_0x306033(0x183)](_0x52399e(this[_0x306033(0x9d)]['focus$']['subscribe'](()=>this[_0x306033(0x271)]()))),this[_0x306033(0x271)]();}[_0x4b851e(0x254)](){const _0x111ad9=_0x4b851e;this[_0x111ad9(0x1e9)][_0x111ad9(0x154)](!0x1,Bi),this[_0x111ad9(0x229)](),super[_0x111ad9(0x254)]();}[_0x4b851e(0x271)](){const _0x108d6a=_0x4b851e;var _0x11b723;let _0x201b01=this['_drawingManagerService'][_0x108d6a(0x20e)](),_0x4345a4=_0x201b01['length']===0x1?_0x201b01[0x0]:void 0x0;if((_0x4345a4==null?void 0x0:_0x4345a4[_0x108d6a(0x14f)])!==_0x514277[_0x108d6a(0xcb)]||this[_0x108d6a(0x25c)][_0x108d6a(0x150)](_0x4345a4['unitId'])!==_0x2ce572[_0x108d6a(0x158)]){this[_0x108d6a(0x1e9)][_0x108d6a(0x154)](!0x1,Bi),this[_0x108d6a(0x229)]();return;}let _0x3baead=_0x3a4437((_0x11b723=this[_0x108d6a(0x1bb)][_0x108d6a(0x75)](_0x4345a4['unitId']))==null?void 0x0:_0x11b723[_0x108d6a(0xd1)][_0x108d6a(0x27f)]())==='isolated';if(this[_0x108d6a(0x1e9)][_0x108d6a(0x154)](_0x3baead,Bi),_0x3baead){this[_0x108d6a(0x229)]();return;}this[_0x108d6a(0x1fa)]||(this[_0x108d6a(0x1fa)]=!0x0,this['_ribbonService'][_0x108d6a(0xca)](br,{'activate':!0x0}));}['_hide'](){const _0x1bb787=_0x4b851e;this[_0x1bb787(0x1fa)]&&(this[_0x1bb787(0x1fa)]=!0x1,this[_0x1bb787(0x1bf)]['hideContextualTab'](br),this[_0x1bb787(0x1bf)][_0x1bb787(0x262)]([]));}};Vi=Z([X(0x0,_0xa31c1),X(0x1,_0x53b662),X(0x2,_0x1644d5),X(0x3,_0x22bed1),X(0x4,_0x37a074),X(0x5,_0x2e2475(_0x49b6d5))],Vi);function Hi(_0x2372ee,_0x3cc43c,_0x3b9206,_0x2f0eb0){const _0x2b4880=_0x4b851e;let _0x46ed3f=_0x108f12(_0x2372ee,_0x3cc43c,_0x3b9206),_0x1216cb=[];for(let _0x3ac158 of _0x3cc43c){let _0x3448f0=_0x46ed3f[_0x2b4880(0x166)][_0x2b4880(0x2c2)](_0x3ac158[_0x2b4880(0x179)]),_0x597726=_0x2f0eb0(_0x3ac158);!_0x3448f0||!_0x597726||_0x1216cb[_0x2b4880(0x102)]({'targetShapeId':_0x3448f0,'source':_0x597726});}return _0x1216cb;}let Ui=class extends _0x387ec6{constructor(_0x1d5325,_0x2bbaa3,_0x175ac2,_0x29a6b8){const _0x4b8480=_0x4b851e;super(),this[_0x4b8480(0x25c)]=_0x1d5325,this[_0x4b8480(0xb3)]=_0x2bbaa3,this[_0x4b8480(0x20d)]=_0x175ac2,this[_0x4b8480(0x80)]=_0x29a6b8,this['_initSheetChange']();}[_0x4b851e(0x213)](){const _0x5479fd=_0x4b851e;this[_0x5479fd(0x183)](this[_0x5479fd(0xb3)][_0x5479fd(0x23d)]({'getMutations':_0x4dfbf2=>{const _0x4922f3=_0x5479fd;if(_0x4dfbf2['id']===_0x561ec6['id']){let _0x530708=_0x4104ec(this[_0x4922f3(0x25c)],_0x4dfbf2['params']);if(!_0x530708)return{'redos':[],'undos':[]};let {unitId:_0x1bc3ee,subUnitId:_0x1e937e}=_0x530708,_0x2f62ef=this[_0x4922f3(0x20d)][_0x4922f3(0x2a3)](_0x1bc3ee,_0x1e937e),_0x24d55d=Object[_0x4922f3(0xe0)](_0x2f62ef)['filter'](_0x4594ee=>_0x4594ee[_0x4922f3(0x14f)]===_0x514277['DRAWING_SHAPE']);if(_0x24d55d[_0x4922f3(0x8c)]===0x0)return{'redos':[],'undos':[]};let _0x1122bf=[],_0x127320=[];for(let _0x5d1170=0x0;_0x5d1170<_0x24d55d[_0x4922f3(0x8c)];_0x5d1170++){let _0x49d37d=_0x24d55d[_0x5d1170],_0x204799=this[_0x4922f3(0x80)][_0x4922f3(0x138)](_0x49d37d[_0x4922f3(0x2e2)],_0x49d37d[_0x4922f3(0x20f)],_0x49d37d[_0x4922f3(0x179)]);_0x204799&&(_0x1122bf[_0x4922f3(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x1bc3ee,'subUnitId':_0x1e937e,'shapeId':_0x49d37d[_0x4922f3(0x179)]}}),_0x127320['push']({'id':_0x16950c['id'],'params':{'unitId':_0x1bc3ee,'subUnitId':_0x1e937e,'shapeId':_0x49d37d['drawingId'],'shapeType':_0x204799[_0x4922f3(0x180)](),'shapeData':JSON[_0x4922f3(0x1be)](JSON[_0x4922f3(0x2bd)](_0x204799['getShapeData']()))}}));}return{'redos':_0x1122bf,'undos':_0x127320};}else{if(_0x4dfbf2['id']===_0x3db4a6['id']){let {unitId:_0x56d2c1,subUnitId:_0x1aacf2,targetSubUnitId:_0x2c42a1,copyContext:_0x574880}=_0x4dfbf2[_0x4922f3(0x29f)];if(!_0x56d2c1||!_0x1aacf2||!_0x2c42a1)return{'redos':[],'undos':[]};let _0x57d1d7=this[_0x4922f3(0x20d)][_0x4922f3(0x2a3)](_0x56d2c1,_0x1aacf2),_0x55630b=Object[_0x4922f3(0xe0)](_0x57d1d7)['filter'](_0x408871=>_0x408871['drawingType']===_0x514277[_0x4922f3(0xcb)]);if(_0x55630b[_0x4922f3(0x8c)]===0x0)return{'redos':[],'undos':[]};let _0x2a869a=Hi(_0x574880,_0x55630b,{'unitId':_0x56d2c1,'sourceSubUnitId':_0x1aacf2,'targetSubUnitId':_0x2c42a1},_0x98a6c2=>{const _0x384762=_0x4922f3;let _0x2b330d=this['_sheetsShapeService'][_0x384762(0x138)](_0x98a6c2[_0x384762(0x2e2)],_0x98a6c2['subUnitId'],_0x98a6c2['drawingId']);if(_0x2b330d)return{'shapeType':_0x2b330d[_0x384762(0x180)](),'shapeData':JSON[_0x384762(0x1be)](JSON[_0x384762(0x2bd)](_0x2b330d[_0x384762(0x88)]()))};}),_0x4c9f4c=[],_0x4e01fb=[];for(let {targetShapeId:_0x5941dc,source:_0x32f813}of _0x2a869a)_0x4c9f4c[_0x4922f3(0x102)]({'id':_0x16950c['id'],'params':{'unitId':_0x56d2c1,'subUnitId':_0x2c42a1,'shapeId':_0x5941dc,'shapeType':_0x32f813[_0x4922f3(0x253)],'shapeData':_0x32f813[_0x4922f3(0xb6)]}}),_0x4e01fb[_0x4922f3(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x56d2c1,'subUnitId':_0x2c42a1,'shapeId':_0x5941dc}});return{'redos':_0x4c9f4c,'undos':_0x4e01fb};}}return{'redos':[],'undos':[]};}}));}};Ui=Z([X(0x0,_0x2e2475(_0x22bed1)),X(0x1,_0x2e2475(_0x16be2b)),X(0x2,_0x2e2475(_0x460b38)),X(0x3,_0x2e2475(_0x1bfe6b))],Ui);let Wi=class extends _0x387ec6{constructor(_0x54427b,_0x3364ee,_0x1f0354,_0x527a16,_0x5b4ef1){const _0x22ed48=_0x4b851e;super(),this[_0x22ed48(0x26e)]=_0x54427b,this[_0x22ed48(0x29b)]=_0x3364ee,this[_0x22ed48(0x9d)]=_0x1f0354,this[_0x22ed48(0x1c9)]=_0x527a16,this[_0x22ed48(0x80)]=_0x5b4ef1,Y(this,'_lastEditingShapeKey',null),this[_0x22ed48(0xa6)](),this['_initSelection'](),this[_0x22ed48(0x2b1)]();}[_0x4b851e(0xa6)](){const _0x5d27f6=_0x4b851e;let {scene:_0x5dab8f}=this['_context'];this[_0x5d27f6(0x183)](_0x5dab8f[_0x5d27f6(0x2bf)][_0x5d27f6(0x26b)](_0x2a4338=>{const _0x29474e=_0x5d27f6;let {offsetX:_0x34ccce,offsetY:_0x16f861}=_0x2a4338,_0x46c5fe=_0x5dab8f[_0x29474e(0x2df)](_0x5a9bd8[_0x29474e(0x297)]([_0x34ccce,_0x16f861]));if(_0x46c5fe instanceof fr){let _0x24debe=this[_0x29474e(0x80)]['getShapeModel'](_0x46c5fe['unitId'],_0x46c5fe['subUnitId'],_0x46c5fe[_0x29474e(0x2e3)]);if(_0x24debe!=null&&_0x24debe[_0x29474e(0x88)]()['formulaBinding']||_0x47e56f(this['_sheetsShapeService']['getShapeType'](_0x46c5fe[_0x29474e(0x2e2)],_0x46c5fe['subUnitId'],_0x46c5fe[_0x29474e(0x2e3)])))return;this[_0x29474e(0x29b)][_0x29474e(0x22f)]({'visible':!0x0,'unitId':_0x46c5fe[_0x29474e(0x2e2)],'subUnitId':_0x46c5fe['subUnitId'],'shapeId':_0x46c5fe[_0x29474e(0x2e3)],'shapeKey':_0x46c5fe[_0x29474e(0x241)]});}}));}[_0x4b851e(0x201)](){const _0x9dc3a4=_0x4b851e;this[_0x9dc3a4(0x183)](this[_0x9dc3a4(0x9d)]['focus$'][_0x9dc3a4(0xd9)](_0xd86cb7=>{const _0xf10aa=_0x9dc3a4;if(_0xd86cb7[_0xf10aa(0x8c)]===0x1){let _0x5763ed=_0xd86cb7[0x0],_0x2b19d8=this[_0xf10aa(0x9d)][_0xf10aa(0x2cc)](_0x5763ed);if((_0x2b19d8==null?void 0x0:_0x2b19d8[_0xf10aa(0x14f)])===_0x514277[_0xf10aa(0xcb)]){var _0x459015;let _0xf8703a=this[_0xf10aa(0x29b)][_0xf10aa(0xbb)]();if((_0xf8703a==null?void 0x0:_0xf8703a[_0xf10aa(0x2e3)])===_0x5763ed[_0xf10aa(0x179)]&&_0xf8703a[_0xf10aa(0xe4)])return;let _0x543d1d=_0x47e56f(this['_sheetsShapeService'][_0xf10aa(0x180)](_0x5763ed[_0xf10aa(0x2e2)],_0x5763ed[_0xf10aa(0x20f)],_0x5763ed[_0xf10aa(0x179)])),_0x490d79=!!((_0x459015=this[_0xf10aa(0x80)]['getShapeModel'](_0x5763ed[_0xf10aa(0x2e2)],_0x5763ed['subUnitId'],_0x5763ed[_0xf10aa(0x179)]))!=null&&_0x459015[_0xf10aa(0x88)]()[_0xf10aa(0x2ba)]);(_0x543d1d||_0x490d79)&&this[_0xf10aa(0x29b)][_0xf10aa(0x22f)](null);}else this['_shapeTextEditingService'][_0xf10aa(0xbb)]()&&(this[_0xf10aa(0x29b)][_0xf10aa(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x12fd37=_0xf10aa;this[_0x12fd37(0x29b)][_0x12fd37(0x22f)](null);}));}else this['_shapeTextEditingService'][_0xf10aa(0xbb)]()&&(this[_0xf10aa(0x29b)][_0xf10aa(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x228716=_0xf10aa;this[_0x228716(0x29b)][_0x228716(0x22f)](null);}));})),this[_0x9dc3a4(0x183)](this['_drawingManagerService'][_0x9dc3a4(0x86)][_0x9dc3a4(0xd9)](_0x5ee62d=>{const _0x26aec8=_0x9dc3a4;let _0x319b7b=this[_0x26aec8(0x29b)][_0x26aec8(0xbb)]();_0x319b7b&&_0x5ee62d[_0x26aec8(0x1df)](_0x247a2f=>_0x247a2f['drawingId']===_0x319b7b['shapeId'])&&this[_0x26aec8(0x29b)][_0x26aec8(0x22f)](null);}));}['_initEditingParams'](){const _0x5b40d9=_0x4b851e;this['disposeWithMe'](this[_0x5b40d9(0x29b)][_0x5b40d9(0x2d1)][_0x5b40d9(0xd9)](_0x3e198e=>{const _0x1630e6=_0x5b40d9;let {scene:_0x1f7416}=this[_0x1630e6(0x26e)];if(this['_lastEditingShapeKey']){let _0x32bcef=_0x1f7416[_0x1630e6(0x2cb)](this[_0x1630e6(0x19c)]);_0x32bcef&&_0x32bcef[_0x1630e6(0x22f)](!0x1);}if(_0x3e198e){let _0x1b543e=!!_0x3e198e[_0x1630e6(0xe4)],_0x5f0892=_0x1f7416[_0x1630e6(0x2cb)](_0x3e198e[_0x1630e6(0x2d2)]);_0x5f0892&&(_0x5f0892[_0x1630e6(0x22f)](_0x1b543e),this['_lastEditingShapeKey']=_0x3e198e[_0x1630e6(0x2d2)]),this[_0x1630e6(0x1c9)][_0x1630e6(0x126)](_0x1cdb66,_0x1b543e);}else this[_0x1630e6(0x19c)]=null,this[_0x1630e6(0x1c9)]['setContextValue'](_0x1cdb66,!0x1);}));}};Wi=Z([X(0x1,_0x2e2475(Fi)),X(0x2,_0x1644d5),X(0x3,_0x53c8c3),X(0x4,_0x2e2475(_0x1bfe6b))],Wi);let Gi=class extends _0x7f2b74{constructor(_0x28efbf,_0x4845b1,_0x3d895a,_0x5cb9f7,_0x1c5add,_0xbcde0c,_0x42e9d7,_0x487e7e,_0x5ee6f8){super(_0x28efbf,_0x4845b1,_0x3d895a,_0x5cb9f7,_0x1c5add,_0xbcde0c,_0x42e9d7,_0x487e7e,_0x5ee6f8,{'componentKey':Sr,'editorUnitId':xr});}};Gi=Z([X(0x1,_0x2e2475(_0x1c01d6)),X(0x2,_0x2e2475(_0x33ca8f)),X(0x3,_0x2e2475(_0x1aec61)),X(0x4,_0x46e4d8),X(0x5,_0x2e2475(_0x2c4993)),X(0x6,_0x2e2475(_0x4c9b9e)),X(0x7,_0x2e2475(_0x33e8a0)),X(0x8,_0x2e2475(_0x2bef20))],Gi);let Ki=class extends _0x387ec6{constructor(_0x19e461,_0x66cc50,_0x1a96fd,_0x5eb7d8,_0x9e3f1,_0xd62363){const _0x3aade0=_0x4b851e;super(),this[_0x3aade0(0x13c)]=_0x19e461,this[_0x3aade0(0x1bb)]=_0x66cc50,this[_0x3aade0(0x9d)]=_0x1a96fd,this[_0x3aade0(0x277)]=_0x5eb7d8,this[_0x3aade0(0xcc)]=_0x9e3f1,this[_0x3aade0(0x2f7)]=_0xd62363,Y(this,_0x3aade0(0x96),new Set()),this[_0x3aade0(0xd8)]();}[_0x4b851e(0xd8)](){const _0xb4acaf=_0x4b851e;this[_0xb4acaf(0x12e)](),this[_0xb4acaf(0xb7)](),this[_0xb4acaf(0x172)]();}[_0x4b851e(0x12e)](){const _0x2f87fe=_0x4b851e;this['disposeWithMe'](this[_0x2f87fe(0x9d)][_0x2f87fe(0xa2)][_0x2f87fe(0xd9)](_0x4068af=>{const _0x482e48=_0x2f87fe;this[_0x482e48(0x27c)](_0x4068af);}));}[_0x4b851e(0xb7)](){const _0x261814=_0x4b851e;this[_0x261814(0x183)](this[_0x261814(0x13c)]['onCommandExecuted']((_0x27341a,_0x11c5cd)=>{const _0x48ba56=_0x261814;if(_0x27341a['id']===_0x4b69e7['id']){let {unitId:_0x4b9e95,subUnitId:_0x8ef644,shapeId:_0x2d8163}=_0x27341a[_0x48ba56(0x29f)],_0x384929=this[_0x48ba56(0x291)](_0x4b9e95),_0x5984e4=_0x4d60ae({'unitId':_0x4b9e95,'subUnitId':_0x8ef644,'drawingId':_0x2d8163}),_0x4cdab7=_0x384929==null?void 0x0:_0x384929['scene'][_0x48ba56(0x2cb)](_0x5984e4);_0x4cdab7&&(this[_0x48ba56(0x2f7)][_0x48ba56(0x2e5)](_0x4cdab7),this[_0x48ba56(0x2f7)][_0x48ba56(0x90)](_0x4cdab7,{'unitId':_0x4b9e95,'subUnitId':_0x8ef644,'shapeId':_0x2d8163}),_0x4cdab7[_0x48ba56(0x2b3)](!0x0));return;}if(_0x27341a['id']===_0x16950c['id']){var _0x187ff9;let {unitId:_0xc4127,subUnitId:_0x3c665c,shapeId:_0xc500e9}=_0x27341a[_0x48ba56(0x29f)],_0x393eda=this[_0x48ba56(0x291)](_0xc4127);if(_0x393eda==null)return;let {scene:_0x8e735c}=_0x393eda,_0xc11151=_0x4d60ae({'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}),_0x8763f4=_0x8e735c['getObjectIncludeInGroup'](_0xc11151);if(!((_0x187ff9=this[_0x48ba56(0x1bb)][_0x48ba56(0x75)](_0xc4127))!=null&&_0x187ff9['with'](_0x58befb)[_0x48ba56(0x2c6)](_0x3c665c)))return!0x1;if(_0x8763f4)return;if(_0x11c5cd!=null&&_0x11c5cd[_0x48ba56(0x2c3)]){queueMicrotask(()=>{const _0x51a5a1=_0x48ba56;this[_0x51a5a1(0x101)]||this['_insertShapes']([{'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}]);});return;}this[_0x48ba56(0x27c)]([{'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}]);}}));}[_0x4b851e(0x172)](){const _0x53cc11=_0x4b851e;this[_0x53cc11(0x183)](this['_drawingManagerService'][_0x53cc11(0x200)]['subscribe'](_0xcb654b=>{const _0x43a47b=_0x53cc11;_0xcb654b[_0x43a47b(0xd7)](_0x1fa0ef=>{const _0x557270=_0x43a47b;let {unitId:_0x2369ba,subUnitId:_0x25a1bd,drawingId:_0x10ec1a}=_0x1fa0ef,_0xedf174=this[_0x557270(0x9d)][_0x557270(0x2cc)](_0x1fa0ef);if(_0xedf174==null)return;let {transform:_0x3359b4,drawingType:_0x3d295b,srcRect:_0x3e2306,prstGeom:_0x4b3119}=_0xedf174;if(_0x3d295b!==_0x514277[_0x557270(0xcb)])return;let _0x43b3c0=this[_0x557270(0x291)](_0x2369ba);if(_0x43b3c0==null)return;let {scene:_0x24fa54,transformer:_0x580fe2}=_0x43b3c0;if(_0x3359b4==null)return!0x0;let _0xce2c52=_0x4d60ae({'unitId':_0x2369ba,'subUnitId':_0x25a1bd,'drawingId':_0x10ec1a}),_0x374efd=_0x24fa54[_0x557270(0x2cb)](_0xce2c52);if(_0x374efd==null)return!0x0;_0x374efd[_0x557270(0x133)](_0x3e2306),_0x374efd['setPrstGeom'](_0x4b3119);});}));}['_insertShapes'](_0x3e4202){const _0x1983f1=_0x4b851e;for(let _0x33ada2 of _0x3e4202){var _0x227234;let {unitId:_0x2779fe,subUnitId:_0x38c65c,drawingId:_0x3e2599}=_0x33ada2,_0x15bfbd=this['_getSceneAndTransformerByDrawingSearch'](_0x2779fe),_0x55e0d5=(_0x227234=_0x49ac42(this[_0x1983f1(0x277)],_0x2779fe))==null?void 0x0:_0x227234[_0x1983f1(0x20f)];if(_0x15bfbd==null||_0x55e0d5!==_0x38c65c)return;let _0x2e3fd1=_0x4d60ae({'unitId':_0x2779fe,'subUnitId':_0x38c65c,'drawingId':_0x3e2599});if(this[_0x1983f1(0x96)][_0x1983f1(0x261)](_0x2e3fd1)||_0x15bfbd[_0x1983f1(0x255)][_0x1983f1(0x2cb)](_0x2e3fd1)!=null)return;let _0x42c1b9=this[_0x1983f1(0x9d)]['getDrawingByParam'](_0x33ada2);if(_0x42c1b9==null||_0x42c1b9[_0x1983f1(0x14f)]!==_0x514277[_0x1983f1(0xcb)])return;if(_0x47e56f((_0x42c1b9['data']||{})[_0x1983f1(0x253)])){let _0x37f9de=_0x42c1b9[_0x1983f1(0x1c1)];_0x37f9de&&(_0x42c1b9['transform']={..._0x37f9de,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x1983f1(0x2de)](_0x2e3fd1);try{this[_0x1983f1(0x2f7)][_0x1983f1(0x187)](_0x42c1b9,_0x15bfbd[_0x1983f1(0x255)]);}finally{this[_0x1983f1(0x96)][_0x1983f1(0x167)](_0x2e3fd1);}queueMicrotask(()=>{const _0x3dbcff=_0x1983f1;if(this[_0x3dbcff(0x101)])return;let _0xb8cc32=_0x4d60ae(_0x33ada2);if(!_0x15bfbd['scene'][_0x3dbcff(0x2cb)](_0xb8cc32))return;let _0x2e53ad=this[_0x3dbcff(0x9d)][_0x3dbcff(0x2cc)](_0x33ada2);_0x2e53ad&&this['_drawingManagerService'][_0x3dbcff(0x2d5)]([_0x2e53ad]);});}}[_0x4b851e(0x291)](_0x5b796a){const _0x5c00f5=_0x4b851e;if(_0x5b796a==null)return;let _0x1343c3=this[_0x5c00f5(0x1bb)][_0x5c00f5(0x75)](_0x5b796a),_0x1d6032=_0x1343c3==null?void 0x0:_0x1343c3[_0x5c00f5(0x255)];return _0x1d6032==null?null:{'scene':_0x1d6032,'transformer':_0x1d6032['getTransformerByCreate']()};}};Ki=Z([X(0x0,_0x46e4d8),X(0x1,_0x37a074),X(0x2,_0x1644d5),X(0x3,_0x22bed1),X(0x4,_0x2e2475(_0x44518e)),X(0x5,_0x2e2475(Q))],Ki);const qi={'normal':{'fill':_0x179953[_0x4b851e(0x13b)],'stroke':_0x179953[_0x4b851e(0xad)],'strokeWidth':_0x179953['cxnPointStrokeWidth']},'highlighted':{'fill':_0x4b851e(0x251),'stroke':_0x4b851e(0x225),'strokeWidth':0x2}};var Ji=class extends _0x25aea5{constructor(_0xc1a9a1,_0x5002a0){const _0xea223f=_0x4b851e;super(_0xc1a9a1,_0x5002a0),Y(this,_0xea223f(0x181),''),Y(this,_0xea223f(0x219),-0x1),Y(this,_0xea223f(0x7b),''),Y(this,'_subUnitId',''),Y(this,_0xea223f(0xc7),!0x1),_0x5002a0&&this['setShapeProps'](_0x5002a0);}[_0x4b851e(0x2a9)](){const _0x29cdfb=_0x4b851e;return{'unitId':this[_0x29cdfb(0x7b)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x29cdfb(0x181)],'cxnIndex':this[_0x29cdfb(0x219)]};}['setHighlighted'](_0x56960e){const _0x1e6e4f=_0x4b851e;this[_0x1e6e4f(0xc7)]!==_0x56960e&&(this[_0x1e6e4f(0xc7)]=_0x56960e,this[_0x1e6e4f(0x2b3)](!0x0));}['isHighlighted'](){const _0x58a044=_0x4b851e;return this[_0x58a044(0xc7)];}[_0x4b851e(0x1ec)](_0xe3b574){const _0x5f25d7=_0x4b851e;_0xe3b574['targetShapeId']!==void 0x0&&(this['_targetShapeId']=_0xe3b574['targetShapeId']),_0xe3b574[_0x5f25d7(0x21b)]!==void 0x0&&(this['_cxnIndex']=_0xe3b574[_0x5f25d7(0x21b)]),_0xe3b574['unitId']!==void 0x0&&(this[_0x5f25d7(0x7b)]=_0xe3b574['unitId']),_0xe3b574['subUnitId']!==void 0x0&&(this[_0x5f25d7(0x21a)]=_0xe3b574[_0x5f25d7(0x20f)]),_0xe3b574['isHighlighted']!==void 0x0&&(this[_0x5f25d7(0xc7)]=_0xe3b574[_0x5f25d7(0x198)]),this[_0x5f25d7(0x1ab)]({'width':_0xe3b574[_0x5f25d7(0x193)]??_0x179953[_0x5f25d7(0x2ab)]*0x2,'height':_0xe3b574[_0x5f25d7(0x1ff)]??_0x179953[_0x5f25d7(0x2ab)]*0x2});}[_0x4b851e(0x161)](_0x46f21f){const _0x51bf5a=_0x4b851e;let _0x44251c=this[_0x51bf5a(0xc7)]?qi['highlighted']:qi[_0x51bf5a(0x2b5)];_0xdb102c[_0x51bf5a(0x106)](_0x46f21f,{'radius':_0x179953[_0x51bf5a(0x2ab)],'fill':_0x44251c[_0x51bf5a(0x1d4)],'stroke':_0x44251c[_0x51bf5a(0x1c6)],'strokeWidth':_0x44251c[_0x51bf5a(0x1fc)],'evented':!0x0});}};let Yi=class extends _0x387ec6{constructor(_0x311d3f,_0x4eec2d,_0x5c3f9a,_0x462d1d){const _0x3d31e2=_0x4b851e;super(),this[_0x3d31e2(0x26e)]=_0x311d3f,this[_0x3d31e2(0x1bb)]=_0x4eec2d,this[_0x3d31e2(0x9d)]=_0x5c3f9a,this[_0x3d31e2(0x80)]=_0x462d1d,Y(this,_0x3d31e2(0xb2),[]),Y(this,'_activeTargetShapeId',null),Y(this,_0x3d31e2(0x232),-0x1),Y(this,_0x3d31e2(0x235),null),Y(this,_0x3d31e2(0x7b),''),Y(this,_0x3d31e2(0x21a),''),Y(this,_0x3d31e2(0x78),null);}[_0x4b851e(0x22d)](_0x42841c,_0x18d475,_0xa39cc1,_0x3390da){const _0x292008=_0x4b851e;this[_0x292008(0x235)]=_0x42841c,this[_0x292008(0x7b)]=_0x18d475,this[_0x292008(0x21a)]=_0xa39cc1,this[_0x292008(0x78)]=_0x3390da;}['updateConnectionDetection'](_0x125e45){const _0x1ba243=_0x4b851e;if(!this['_currentScene'])return null;let _0x38463b=this[_0x1ba243(0x1b9)](_0x125e45);return _0x38463b?(this[_0x1ba243(0x2a5)]!==_0x38463b['shapeId']&&(this['_clearConnectionSites'](),this[_0x1ba243(0x1ed)](_0x38463b[_0x1ba243(0x2e3)],_0x38463b[_0x1ba243(0x197)]),this[_0x1ba243(0x2a5)]=_0x38463b['shapeId']),this[_0x1ba243(0x13f)](_0x125e45)):(this[_0x1ba243(0x2a5)]!==null&&(this[_0x1ba243(0x1d0)](),this[_0x1ba243(0x2a5)]=null),null);}[_0x4b851e(0x1d7)](){const _0x3c2ff0=_0x4b851e;this[_0x3c2ff0(0x1d0)](),this['_currentScene']=null,this[_0x3c2ff0(0x2a5)]=null,this[_0x3c2ff0(0x232)]=-0x1,this[_0x3c2ff0(0x78)]=null;}[_0x4b851e(0x19a)](){const _0x26249e=_0x4b851e;return this['_activeTargetShapeId']===null||this[_0x26249e(0x232)]<0x0?null:{'shapeId':this[_0x26249e(0x2a5)],'cxnIndex':this[_0x26249e(0x232)]};}[_0x4b851e(0x1b9)](_0x1cf319){const _0x2c5259=_0x4b851e;let _0x4e5641=this[_0x2c5259(0x9d)]['getDrawingData'](this['_unitId'],this[_0x2c5259(0x21a)]);for(let _0x5e0141 of Object[_0x2c5259(0x12b)](_0x4e5641)){if(_0x5e0141===this['_draggingConnectorId']||_0x4e5641[_0x5e0141][_0x2c5259(0x14f)]!==_0x514277['DRAWING_SHAPE'])continue;let _0x277efa=this[_0x2c5259(0x80)][_0x2c5259(0x138)](this[_0x2c5259(0x7b)],this[_0x2c5259(0x21a)],_0x5e0141);if(!_0x277efa||_0x47e56f(_0x277efa[_0x2c5259(0x180)]())||_0x277efa[_0x2c5259(0x2dd)]()['length']===0x0||!this[_0x2c5259(0x235)])continue;let _0x557e08=_0x4d60ae({'unitId':this[_0x2c5259(0x7b)],'subUnitId':this[_0x2c5259(0x21a)],'drawingId':_0x5e0141}),_0x539bcc=this[_0x2c5259(0x235)]['getObjectIncludeInGroup'](_0x557e08);if(!_0x539bcc)continue;let {left:_0x2a9748,top:_0x5c42b7,width:_0x4fe32c,height:_0x26384f}=_0x539bcc['getRealBound'](),_0x5697fb=_0x2a9748+_0x4fe32c/0x2,_0x201921=_0x5c42b7+_0x26384f/0x2,_0x19eaae=_0x539bcc[_0x2c5259(0x1c1)][_0x2c5259(0x1c5)](),_0x531f7a=new _0x4915c5([_0x19eaae[0x0],_0x19eaae[0x1],_0x19eaae[0x2],_0x19eaae[0x3],_0x5697fb,_0x201921]),_0x40bd7f=_0x539bcc[_0x2c5259(0x250)](),_0x2ee279=(_0x539bcc[_0x2c5259(0x265)]&&(_0x40bd7f==null?void 0x0:_0x40bd7f[_0x2c5259(0x2ee)])===_0x5b17f8[_0x2c5259(0x25f)]?_0x40bd7f[_0x2c5259(0x294)][_0x2c5259(0x1ea)](_0x531f7a):_0x531f7a)[_0x2c5259(0x124)]()['applyPoint'](_0x1cf319),_0x5bba50=_0x4fe32c/0x2,_0x17853c=_0x26384f/0x2;if(_0x2ee279['x']>=-_0x5bba50-0x5&&_0x2ee279['x']<=_0x5bba50+0x5&&_0x2ee279['y']>=-_0x17853c-0x5&&_0x2ee279['y']<=_0x17853c+0x5)return{'shapeId':_0x5e0141,'shapeModel':_0x277efa};}return null;}[_0x4b851e(0x1ed)](_0x18b39c,_0x25e894){const _0x4787bc=_0x4b851e;if(!this['_currentScene'])return;let _0x34a392=_0x4d60ae({'unitId':this['_unitId'],'subUnitId':this[_0x4787bc(0x21a)],'drawingId':_0x18b39c}),_0x3a150e=this[_0x4787bc(0x235)]['getObjectIncludeInGroup'](_0x34a392);if(!_0x3a150e)return;let {left:_0x81124,top:_0xc76ed8,width:_0x1d92ff,height:_0x228c70}=_0x3a150e[_0x4787bc(0x237)](),_0x4c290c=_0x81124+_0x1d92ff/0x2,_0x2289f5=_0xc76ed8+_0x228c70/0x2,_0x2415ce=_0x3a150e[_0x4787bc(0x1c1)][_0x4787bc(0x1c5)](),_0x384d4a=new _0x4915c5([_0x2415ce[0x0],_0x2415ce[0x1],_0x2415ce[0x2],_0x2415ce[0x3],_0x4c290c,_0x2289f5]),_0x33ab2f=_0x3a150e[_0x4787bc(0x250)](),_0x2f85b2=_0x3a150e[_0x4787bc(0x265)]&&(_0x33ab2f==null?void 0x0:_0x33ab2f[_0x4787bc(0x2ee)])===_0x5b17f8[_0x4787bc(0x25f)]?_0x33ab2f['ancestorTransform']['multiply'](_0x384d4a):_0x384d4a;_0x25e894[_0x4787bc(0x113)]({'width':_0x1d92ff,'height':_0x228c70});let _0x1eac13=_0x25e894['getConnectionSiteList']();for(let _0xc88e8b of _0x1eac13){let _0x56c4aa=_0xc88e8b['x']-_0x1d92ff/0x2,_0x2be00d=_0xc88e8b['y']-_0x228c70/0x2,_0x3b7519=_0x2f85b2['applyPoint']({'x':_0x56c4aa,'y':_0x2be00d}),_0x2f87e6=_0x3b7519['x'],_0x3514d0=_0x3b7519['y'],_0x2fb121=new Ji(_0x4787bc(0x1af)+_0x18b39c+'-'+_0xc88e8b['index'],{'left':_0x2f87e6-_0x179953[_0x4787bc(0x2ab)],'top':_0x3514d0-_0x179953[_0x4787bc(0x2ab)],'targetShapeId':_0x18b39c,'cxnIndex':_0xc88e8b['index'],'unitId':this[_0x4787bc(0x7b)],'subUnitId':this[_0x4787bc(0x21a)],'width':_0x179953['cxnPointRadius']*0x2,'height':_0x179953[_0x4787bc(0x2ab)]*0x2,'zIndex':_0x22719c+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x4787bc(0x102)](_0x2fb121),this[_0x4787bc(0x235)][_0x4787bc(0x2ec)](_0x2fb121,_0x22719c+0x2);}}[_0x4b851e(0x13f)](_0x6cd3a1){const _0x1041c6=_0x4b851e;let _0x566b86=null,_0x1f0ae8=0x1/0x0,_0x729cd6=null;for(let _0x2808e2 of this[_0x1041c6(0xb2)]){let _0x51f374=_0x2808e2[_0x1041c6(0x1d3)]+_0x179953[_0x1041c6(0x2ab)],_0xbfc991=_0x2808e2[_0x1041c6(0x292)]+_0x179953[_0x1041c6(0x2ab)],_0x486502=_0x6cd3a1['x']-_0x51f374,_0x36468b=_0x6cd3a1['y']-_0xbfc991,_0x3356ba=Math[_0x1041c6(0x110)](_0x486502*_0x486502+_0x36468b*_0x36468b);_0x3356ba<_0x1f0ae8&&(_0x1f0ae8=_0x3356ba,_0x566b86=_0x2808e2,_0x729cd6={'x':_0x51f374,'y':_0xbfc991});}let _0x111f4f=_0x1f0ae8<=0xa&&_0x566b86?_0x566b86[_0x1041c6(0x2a9)]()[_0x1041c6(0x21b)]:-0x1;if(_0x111f4f!==this['_highlightedSiteIndex']){for(let _0x4b0aa1 of this[_0x1041c6(0xb2)]){let _0x2281fd=_0x4b0aa1['getConnectionInfo']();_0x4b0aa1[_0x1041c6(0x2ad)](_0x2281fd['cxnIndex']===_0x111f4f);}this[_0x1041c6(0x232)]=_0x111f4f;}if(_0x1f0ae8<=0xa&&_0x566b86&&_0x729cd6){let _0x35405f=_0x566b86[_0x1041c6(0x2a9)](),_0x26ff22=this['_getConnectionSiteAngle'](_0x35405f['shapeId'],_0x35405f['cxnIndex']);return{'shapeId':_0x35405f[_0x1041c6(0x2e3)],'cxnIndex':_0x35405f[_0x1041c6(0x21b)],'unitId':_0x35405f['unitId'],'subUnitId':_0x35405f[_0x1041c6(0x20f)],'worldPoint':_0x729cd6,'angle':_0x26ff22};}return null;}['_getConnectionSiteAngle'](_0x25e26b,_0x4be6dd){const _0x197c1b=_0x4b851e;let _0x156f7e=this[_0x197c1b(0x80)][_0x197c1b(0x138)](this['_unitId'],this[_0x197c1b(0x21a)],_0x25e26b);if(!_0x156f7e)return 0x0;let _0x375864=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x197c1b(0x7b)],'subUnitId':this[_0x197c1b(0x21a)],'drawingId':_0x25e26b});if(!(_0x375864!=null&&_0x375864[_0x197c1b(0x1c1)]))return 0x0;let {width:_0x5ef820=0x0,height:_0xa704d3=0x0,flipX:_0x401d3b=!0x1,flipY:_0x4d279f=!0x1}=_0x375864[_0x197c1b(0x1c1)];_0x156f7e['updateContext']({'width':_0x5ef820,'height':_0xa704d3});let _0x43faf6=_0x156f7e[_0x197c1b(0x2dd)]()[_0x197c1b(0x188)](_0xe262f8=>_0xe262f8['index']===_0x4be6dd);if(!_0x43faf6)return 0x0;let _0x2b9c00=_0x43faf6[_0x197c1b(0x13a)]/0xea60;return _0x401d3b&&(_0x2b9c00=0xb4-_0x2b9c00),_0x4d279f&&(_0x2b9c00=-_0x2b9c00),_0x2b9c00=(_0x2b9c00%0x168+0x168)%0x168,_0x2b9c00;}['_clearConnectionSites'](){const _0x5d7354=_0x4b851e;for(let _0x36a8d3 of this[_0x5d7354(0xb2)])_0x36a8d3['dispose']();this[_0x5d7354(0xb2)]=[],this[_0x5d7354(0x232)]=-0x1;}['dispose'](){const _0xac6a7c=_0x4b851e;this[_0xac6a7c(0x1d0)](),super['dispose']();}};Yi=Z([X(0x1,_0x2e2475(_0x37a074)),X(0x2,_0x2e2475(_0x1644d5)),X(0x3,_0x2e2475(_0x1bfe6b))],Yi);let Xi=class extends _0x387ec6{constructor(_0x42206f,_0xa91823,_0x47fb28,_0x4b49e0,_0x5b6235){const _0x48b556=_0x4b851e;super(),this[_0x48b556(0x245)]=_0x42206f,this[_0x48b556(0x275)]=_0xa91823,this[_0x48b556(0x20d)]=_0x47fb28,this['_shapeService']=_0x4b49e0,this[_0x48b556(0x147)]=_0x5b6235,Y(this,'_copyInfo',void 0x0),this[_0x48b556(0x24d)](),this[_0x48b556(0x231)]();}get['_focusedDrawings'](){const _0x25cb7e=_0x4b851e;return this['_sheetDrawingService'][_0x25cb7e(0x20e)]();}[_0x4b851e(0x231)](){const _0x1519f0=_0x4b851e;this[_0x1519f0(0x147)][_0x1519f0(0x16a)](({fromUnitId:_0x618512,fromSubUnitId:_0x1585e5,toUnitId:_0x3295f3,toSubUnitId:_0x355afe,idMap:_0x4f84a4})=>{const _0x454b18=_0x1519f0;let _0x78b328=[],_0x4b9c0c=[];for(let [_0x5cd9be,_0x5cd302]of _0x4f84a4[_0x454b18(0x2f6)]()){let _0x1284fd=this['_shapeService'][_0x454b18(0x138)](_0x618512,_0x1585e5,_0x5cd9be);if(!_0x1284fd)continue;let _0x4fc689=_0x1284fd[_0x454b18(0x180)](),_0x4e820f=JSON[_0x454b18(0x1be)](JSON[_0x454b18(0x2bd)](_0x1284fd['getShapeData']()));if(_0x4e820f[_0x454b18(0x171)]){var _0x4cb3df,_0x2788d4;let _0x278be0=(_0x4cb3df=_0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)])==null?void 0x0:_0x4cb3df[_0x454b18(0x2e3)],_0x2560c7=(_0x2788d4=_0x4e820f[_0x454b18(0x171)]['to'])==null?void 0x0:_0x2788d4[_0x454b18(0x2e3)],_0x4a15ed=!_0x278be0||_0x4f84a4[_0x454b18(0x261)](_0x278be0),_0x5bd863=!_0x2560c7||_0x4f84a4[_0x454b18(0x261)](_0x2560c7);_0x4a15ed&&_0x278be0&&_0x4e820f['relation'][_0x454b18(0x125)]?_0x4e820f['relation'][_0x454b18(0x125)]={..._0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)],'shapeId':_0x4f84a4[_0x454b18(0x2c2)](_0x278be0)}:_0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)]=void 0x0,_0x5bd863&&_0x2560c7&&_0x4e820f[_0x454b18(0x171)]['to']?_0x4e820f['relation']['to']={..._0x4e820f[_0x454b18(0x171)]['to'],'shapeId':_0x4f84a4[_0x454b18(0x2c2)](_0x2560c7)}:_0x4e820f[_0x454b18(0x171)]['to']=void 0x0;}_0x78b328['push']({'id':_0x16950c['id'],'params':{'unitId':_0x3295f3,'subUnitId':_0x355afe,'shapeId':_0x5cd302,'shapeType':_0x4fc689,'shapeData':_0x4e820f}}),_0x4b9c0c[_0x454b18(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x3295f3,'subUnitId':_0x355afe,'shapeId':_0x5cd302}});}return{'redos':_0x78b328,'undos':_0x4b9c0c};});}[_0x4b851e(0x24d)](){const _0x3438a9=_0x4b851e;this['disposeWithMe'](this[_0x3438a9(0x275)][_0x3438a9(0xfe)]({'id':_0x3438a9(0x10f),'onBeforeCopy':(_0x28aa4b,_0x4e9d5f,_0x139c59,_0x349bd9)=>{const _0x25ef12=_0x3438a9;this['_copyInfo']=null;let _0x33e669=this[_0x25ef12(0x28f)];if(_0x33e669['length']){let _0x17ccab=_0x33e669[_0x25ef12(0x14e)](_0x38c2f2=>_0x38c2f2[_0x25ef12(0x14f)]===_0x514277[_0x25ef12(0xcb)]);if(_0x17ccab['length']===0x0)return;this['_copyInfo']={'unitId':_0x28aa4b,'subUnitId':_0x4e9d5f,'copyType':_0x349bd9,'drawings':_0x17ccab};}else this['_createCopyInfoByRange'](_0x28aa4b,_0x4e9d5f,_0x139c59,_0x349bd9);},'onPasteCells':(_0x53f21d,_0x309f16,_0x53205f,_0x5cee4b)=>{const _0xb03640=_0x3438a9;if(!this[_0xb03640(0x157)])return{'redos':[],'undos':[]};let {pasteType:_0x177c56}=_0x5cee4b;return _0x177c56===_0x5c3ee4['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x309f16,this[_0xb03640(0x157)]['copyType']===_0x3ad175[_0xb03640(0x221)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x49a28e=>this[_0x3438a9(0x157)]?this[_0x3438a9(0x79)](_0x49a28e,this['_copyInfo']['copyType']===_0x3ad175['CUT']):{'redos':[],'undos':[]}}));}[_0x4b851e(0x127)](_0x275318,_0x51396c,_0xab834d,_0x29e73c){const _0x55ec1b=_0x4b851e;let _0xc942e=this[_0x55ec1b(0x245)]['getSkeleton'](_0x275318,_0x51396c);if(!_0xc942e)return;let _0x23d468=_0x178278(_0xc942e,_0xab834d);if(!_0x23d468)return;let {startX:_0x2e0a4,endX:_0x448522,startY:_0x531d54,endY:_0x38ef67}=_0x23d468,_0x463653=this[_0x55ec1b(0x20d)][_0x55ec1b(0x2a3)](_0x275318,_0x51396c),_0x1df370=this['_focusedDrawings'][_0x55ec1b(0x227)]();for(let [_0xe0d587,_0x3c603d]of Object['entries'](_0x463653)){if(_0x3c603d[_0x55ec1b(0x14f)]!==_0x514277['DRAWING_SHAPE'])continue;let {transform:_0x291b05}=_0x3c603d;if(!_0x291b05)continue;let {left:_0x5eecd6=0x0,top:_0x4faf3d=0x0,width:_0x2ed9de=0x0,height:_0x151b01=0x0}=_0x291b05;_0x2e0a4<=_0x5eecd6&&_0x448522>=_0x5eecd6+_0x2ed9de&&_0x531d54<=_0x4faf3d&&_0x38ef67>=_0x4faf3d+_0x151b01&&_0x1df370[_0x55ec1b(0x102)](_0x3c603d);}_0x1df370[_0x55ec1b(0x8c)]>0x0&&(this['_copyInfo']={'unitId':_0x275318,'subUnitId':_0x51396c,'copyType':_0x29e73c,'copyRange':_0xab834d,'drawings':_0x1df370});}[_0x4b851e(0x79)](_0x52d070,_0x47319b){const _0x2e6ccb=_0x4b851e;let {unitId:_0x6176d,subUnitId:_0x5babed,range:_0x36ac99}=_0x52d070,_0x550fa5=this[_0x2e6ccb(0x245)][_0x2e6ccb(0x2c6)](_0x6176d,_0x5babed);if(!_0x550fa5)return{'redos':[],'undos':[]};let _0x2ae3f7=_0x1469fd(_0x36ac99),{unitId:_0x580e6f,subUnitId:_0x4eb137,copyRange:_0x19a5bc,drawings:_0x46790b}=this['_copyInfo'],_0x57c025=this[_0x2e6ccb(0x245)][_0x2e6ccb(0x2c6)](_0x580e6f,_0x4eb137);if(!_0x57c025)return{'redos':[],'undos':[]};let _0x3e11e5;if(!_0x19a5bc){let _0x416ef0=0x1/0x0,_0x332eb4=0x1/0x0;for(let _0xcbbc61 of _0x46790b){let {left:_0x982002=0x0,top:_0x53a59e=0x0}=_0xcbbc61[_0x2e6ccb(0x1c1)]??{};_0x982002<_0x416ef0&&(_0x416ef0=_0x982002),_0x53a59e<_0x332eb4&&(_0x332eb4=_0x53a59e);}_0x416ef0!==0x1/0x0&&_0x332eb4!==0x1/0x0&&(_0x3e11e5={'left':_0x416ef0,'top':_0x332eb4});}let _0x13cb00=new Map();if(!_0x47319b){for(let _0x498e0d of _0x46790b)_0x13cb00[_0x2e6ccb(0x177)](_0x498e0d[_0x2e6ccb(0x179)],_0x5b0a2a());}let _0x52aee8=[],_0x3271a8=[];for(let _0x5a8f0d of _0x46790b){let {drawingId:_0x2d4b2f,transform:_0x15e57a,sheetTransform:_0x4df73a}=_0x5a8f0d;if(!_0x15e57a||!_0x4df73a)continue;let _0x496be5=this[_0x2e6ccb(0x122)]({'transform':_0x15e57a,'sheetTransform':_0x4df73a},{'skeleton':_0x57c025,'range':_0x19a5bc},{'skeleton':_0x550fa5,'range':_0x2ae3f7},_0x3e11e5);if(_0x47319b){let {redos:_0x37f4b5,undos:_0x23d3e0}=this[_0x2e6ccb(0x266)]({'fromUnitId':_0x580e6f,'fromSubUnitId':_0x4eb137,'toUnitId':_0x6176d,'toSubUnitId':_0x5babed,'drawing':_0x5a8f0d,'newTransforms':_0x496be5});_0x52aee8[_0x2e6ccb(0x102)](..._0x37f4b5),_0x3271a8[_0x2e6ccb(0x102)](..._0x23d3e0);continue;}let {redos:_0x491324,undos:_0x13da35}=this[_0x2e6ccb(0xce)]({'toUnitId':_0x6176d,'toSubUnitId':_0x5babed,'drawing':_0x5a8f0d,'newTransforms':_0x496be5,'newDrawingId':_0x13cb00[_0x2e6ccb(0x2c2)](_0x2d4b2f),'idMap':_0x13cb00});_0x52aee8['push'](..._0x491324),_0x3271a8[_0x2e6ccb(0x102)](..._0x13da35);}return{'redos':_0x52aee8,'undos':_0x3271a8};}['_generateCutPasteMutations'](_0x98ec97){const _0x4e5201=_0x4b851e;let {fromUnitId:_0x5028bf,fromSubUnitId:_0xe479d6,toUnitId:_0x3db040,toSubUnitId:_0x233a81,drawing:_0x539085,newTransforms:_0x42d005}=_0x98ec97,_0x4b0668={..._0x539085,'unitId':_0x3db040,'subUnitId':_0x233a81,'transform':_0x42d005['transform'],'sheetTransform':_0x42d005[_0x4e5201(0x1b3)]};if(_0x3db040===_0x5028bf&&_0x233a81===_0xe479d6){let {redo:_0x1067b6,undo:_0x371d21,objects:_0x4e789d}=this[_0x4e5201(0x20d)][_0x4e5201(0xb0)]([_0x4b0668]);return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0x28e)],'op':_0x1067b6,'objects':_0x4e789d}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0x28e)],'op':_0x371d21,'objects':_0x4e789d}}]};}else{let _0x5d7a9e=this[_0x4e5201(0x20d)]['getBatchRemoveOp']([_0x539085]),_0x737e5d=this[_0x4e5201(0x20d)][_0x4e5201(0x284)]([_0x4b0668]),_0x620388=this['_shapeService']['getShapeModel'](_0x539085[_0x4e5201(0x2e2)],_0x539085[_0x4e5201(0x20f)],_0x539085[_0x4e5201(0x179)]);if(!_0x620388)return{'redos':[],'undos':[]};let _0x2c807d=_0x620388[_0x4e5201(0x180)](),_0x195e6e=JSON[_0x4e5201(0x1be)](JSON['stringify'](_0x620388['getShapeData']()));return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'type':_0x33c6ec[_0x4e5201(0xec)],'op':_0x5d7a9e[_0x4e5201(0x1da)],'objects':_0x5d7a9e[_0x4e5201(0x2dc)]}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'shapeId':_0x539085[_0x4e5201(0x179)]}},{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0xf8)],'op':_0x737e5d[_0x4e5201(0x1da)],'objects':_0x737e5d['objects']}},{'id':_0x16950c['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'shapeId':_0x539085[_0x4e5201(0x179)],'shapeType':_0x2c807d,'shapeData':_0x195e6e}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'type':_0x33c6ec[_0x4e5201(0xf8)],'op':_0x5d7a9e[_0x4e5201(0x1b6)],'objects':_0x5d7a9e[_0x4e5201(0x2dc)]}},{'id':_0x16950c['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'shapeId':_0x539085[_0x4e5201(0x179)],'shapeType':_0x2c807d,'shapeData':_0x195e6e}},{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0xec)],'op':_0x737e5d['undo'],'objects':_0x737e5d['objects']}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'shapeId':_0x539085[_0x4e5201(0x179)]}}]};}}[_0x4b851e(0xce)](_0x4309fe){const _0x217575=_0x4b851e;let {toUnitId:_0x5885ef,toSubUnitId:_0x366dd2,drawing:_0x41c9e6,newTransforms:_0x518938,newDrawingId:_0x4b5129,idMap:_0x216e10}=_0x4309fe,_0x2677af={..._0x41c9e6,'unitId':_0x5885ef,'subUnitId':_0x366dd2,'drawingId':_0x4b5129,'transform':_0x518938[_0x217575(0x1c1)],'sheetTransform':_0x518938[_0x217575(0x1b3)]},{redo:_0xb989c8,undo:_0x38d0ef,objects:_0x32469e}=this['_sheetDrawingService']['getBatchAddOp']([_0x2677af]),_0x154d69=this[_0x217575(0x1eb)]['getShapeModel'](_0x41c9e6[_0x217575(0x2e2)],_0x41c9e6[_0x217575(0x20f)],_0x41c9e6[_0x217575(0x179)]);if(!_0x154d69)return{'redos':[],'undos':[]};let _0x11b2df=_0x154d69[_0x217575(0x180)](),_0x26af3f=JSON[_0x217575(0x1be)](JSON[_0x217575(0x2bd)](_0x154d69[_0x217575(0x88)]()));if(_0x26af3f[_0x217575(0x171)]){var _0x373044,_0xc7fcee;let _0x367a3d=(_0x373044=_0x26af3f[_0x217575(0x171)][_0x217575(0x125)])==null?void 0x0:_0x373044['shapeId'],_0x34a2ae=(_0xc7fcee=_0x26af3f[_0x217575(0x171)]['to'])==null?void 0x0:_0xc7fcee['shapeId'],_0x33ee29=!_0x367a3d||_0x216e10[_0x217575(0x261)](_0x367a3d),_0x1ad698=!_0x34a2ae||_0x216e10['has'](_0x34a2ae);_0x33ee29&&_0x367a3d&&_0x26af3f['relation'][_0x217575(0x125)]?_0x26af3f[_0x217575(0x171)][_0x217575(0x125)]={..._0x26af3f[_0x217575(0x171)][_0x217575(0x125)],'shapeId':_0x216e10[_0x217575(0x2c2)](_0x367a3d)}:_0x26af3f[_0x217575(0x171)][_0x217575(0x125)]=void 0x0,_0x1ad698&&_0x34a2ae&&_0x26af3f['relation']['to']?_0x26af3f[_0x217575(0x171)]['to']={..._0x26af3f[_0x217575(0x171)]['to'],'shapeId':_0x216e10[_0x217575(0x2c2)](_0x34a2ae)}:_0x26af3f[_0x217575(0x171)]['to']=void 0x0;}return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'type':_0x33c6ec[_0x217575(0xf8)],'op':_0xb989c8,'objects':_0x32469e}},{'id':_0x16950c['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'shapeId':_0x4b5129,'shapeType':_0x11b2df,'shapeData':_0x26af3f}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'type':_0x33c6ec[_0x217575(0xec)],'op':_0x38d0ef,'objects':_0x32469e}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'shapeId':_0x4b5129}}]};}['_updateTransform'](_0x845c59,_0x2276ba,_0x514b43,_0x14f840){const _0x39cc8b=_0x4b851e;let {range:_0x8bae7f,skeleton:_0x2eacbb}=_0x2276ba,{range:_0x29fc0a,skeleton:_0x438e36}=_0x514b43,{transform:_0x21869c,sheetTransform:_0x29adb6}=_0x845c59,_0x35ca3e={..._0x21869c};if(_0x8bae7f){let _0x30fcf2=_0x178278(_0x2eacbb,_0x8bae7f),_0x336354=_0x178278(_0x438e36,_0x29fc0a);if(_0x30fcf2&&_0x336354){let _0x33cc44=_0x336354[_0x39cc8b(0x12a)]-_0x30fcf2[_0x39cc8b(0x12a)],_0x277fc3=_0x336354[_0x39cc8b(0x8f)]-_0x30fcf2[_0x39cc8b(0x8f)];_0x35ca3e[_0x39cc8b(0x1d3)]=(_0x35ca3e[_0x39cc8b(0x1d3)]??0x0)+_0x33cc44,_0x35ca3e[_0x39cc8b(0x292)]=(_0x35ca3e[_0x39cc8b(0x292)]??0x0)+_0x277fc3;}}else{let _0x2a3349=_0x178278(_0x438e36,_0x29fc0a);if(_0x14f840&&_0x2a3349){let _0x2ff53f=(_0x35ca3e['left']??0x0)-_0x14f840[_0x39cc8b(0x1d3)],_0x445683=(_0x35ca3e[_0x39cc8b(0x292)]??0x0)-_0x14f840[_0x39cc8b(0x292)];_0x35ca3e[_0x39cc8b(0x1d3)]=_0x2a3349['startX']+_0x2ff53f,_0x35ca3e['top']=_0x2a3349[_0x39cc8b(0x8f)]+_0x445683;}else _0x35ca3e[_0x39cc8b(0x1d3)]=_0x2a3349==null?void 0x0:_0x2a3349[_0x39cc8b(0x12a)],_0x35ca3e[_0x39cc8b(0x292)]=_0x2a3349==null?void 0x0:_0x2a3349[_0x39cc8b(0x8f)];}return{'transform':_0x35ca3e,'sheetTransform':_0x1633a2(_0x35ca3e,_0x438e36)??_0x29adb6};}};Xi=Z([X(0x0,_0x2e2475(_0x2d0b38)),X(0x1,_0x2e2475(_0xb2e7a2)),X(0x2,_0x2e2475(_0x460b38)),X(0x3,_0x2e2475(_0x1bfe6b)),X(0x4,_0x2e2475(_0x3b1dfb))],Xi);var Zi=class extends _0x25aea5{constructor(_0x1fef9d,_0x3c9abc){const _0x52eb76=_0x4b851e;super(_0x1fef9d,_0x3c9abc),Y(this,_0x52eb76(0xf4),null),Y(this,_0x52eb76(0xe3),null),Y(this,_0x52eb76(0x7b),null),Y(this,_0x52eb76(0x21a),null),Y(this,_0x52eb76(0x11f),!0x1),_0x3c9abc&&this[_0x52eb76(0x1ec)](_0x3c9abc);}[_0x4b851e(0x176)](){const _0x3924d0=_0x4b851e;return{'unitId':this['_unitId'],'subUnitId':this[_0x3924d0(0x21a)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x4afca2){const _0x590f72=_0x4b851e;_0x4afca2[_0x590f72(0x2e3)]!==void 0x0&&(this[_0x590f72(0xf4)]=_0x4afca2[_0x590f72(0x2e3)]),_0x4afca2[_0x590f72(0x2e2)]!==void 0x0&&(this[_0x590f72(0x7b)]=_0x4afca2[_0x590f72(0x2e2)]),_0x4afca2[_0x590f72(0x20f)]!==void 0x0&&(this[_0x590f72(0x21a)]=_0x4afca2['subUnitId']),_0x4afca2[_0x590f72(0x1b5)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x4afca2[_0x590f72(0x1b5)]),this[_0x590f72(0x1ab)]({'width':_0x4afca2['width'],'height':_0x4afca2[_0x590f72(0x1ff)]});}[_0x4b851e(0x161)](_0x2c763b){const _0x2f9034=_0x4b851e;_0xdb102c[_0x2f9034(0x106)](_0x2c763b,{'radius':_0x179953['cxnPointRadius'],'fill':_0x179953[_0x2f9034(0x13b)],'stroke':_0x179953['cxnPointStroke'],'strokeWidth':_0x179953['cxnPointStrokeWidth'],'evented':!0x0});}};let Qi=class extends _0x387ec6{constructor(_0x17a327,_0x367c64,_0x4982f8,_0x50b761,_0x58d726,_0x50b9db,_0x2a722e,_0x4dd44f){const _0x618575=_0x4b851e;super(),this[_0x618575(0x26e)]=_0x17a327,this[_0x618575(0x13c)]=_0x367c64,this['_renderManagerService']=_0x4982f8,this['_drawingManagerService']=_0x50b761,this[_0x618575(0x25c)]=_0x58d726,this[_0x618575(0x80)]=_0x50b9db,this[_0x618575(0x182)]=_0x2a722e,this[_0x618575(0x13e)]=_0x4dd44f,Y(this,'_activeShapeId',void 0x0),Y(this,'_unitId',void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,'_connectorObjects',[]),Y(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x618575(0xf7),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,_0x618575(0x8b),!0x1),Y(this,_0x618575(0x2e7),!0x1),Y(this,'_cxtHandlerPointerMove',void 0x0),Y(this,_0x618575(0xe2),void 0x0),Y(this,_0x618575(0x2f9),null),this[_0x618575(0xd8)]();}[_0x4b851e(0xd8)](){const _0x462303=_0x4b851e;this[_0x462303(0xdb)](),this[_0x462303(0x1de)]();}['_getDrawingRect'](){const _0x575eeb=_0x4b851e;if(!this[_0x575eeb(0x7b)]||!this[_0x575eeb(0x21a)]||!this['_activeShapeId'])return;let _0x1e1e79={'unitId':this[_0x575eeb(0x7b)],'subUnitId':this[_0x575eeb(0x21a)],'drawingId':this['_activeShapeId']},{transform:_0x2de1d2}=this['_drawingManagerService'][_0x575eeb(0x2cc)](_0x1e1e79);if(_0x2de1d2)return{'left':_0x2de1d2[_0x575eeb(0x1d3)]||0x0,'top':_0x2de1d2[_0x575eeb(0x292)]||0x0,'width':_0x2de1d2[_0x575eeb(0x193)]||0x0,'height':_0x2de1d2[_0x575eeb(0x1ff)]||0x0,'flipX':_0x2de1d2[_0x575eeb(0x2ae)]||!0x1,'flipY':_0x2de1d2[_0x575eeb(0x1c8)]||!0x1,'angle':_0x2de1d2['angle']};}[_0x4b851e(0x211)](){const _0x4caf05=_0x4b851e;if(this['_unitId']===void 0x0||this[_0x4caf05(0x21a)]===void 0x0||this[_0x4caf05(0x146)]===void 0x0)return;let _0x4f47a5=this[_0x4caf05(0x1bb)]['getRenderUnitById'](this['_unitId']);if(!_0x4f47a5||!_0x4f47a5[_0x4caf05(0x25d)](_0x58befb)[_0x4caf05(0xab)]())return;let {scene:_0x45fb1e}=_0x4f47a5,_0x464733=this[_0x4caf05(0x9b)]();if(!_0x464733)return;let _0x3bdab4=this[_0x4caf05(0x80)][_0x4caf05(0x138)](this[_0x4caf05(0x7b)],this[_0x4caf05(0x21a)],this[_0x4caf05(0x146)]);if(!_0x3bdab4||!_0x47e56f(_0x3bdab4[_0x4caf05(0x180)]()))return;let _0x3a1175=_0x3bdab4[_0x4caf05(0x2e0)]();if(_0x3a1175['length']<0x2)return;let _0x2ccb0d=new _0x27802a(_0x464733),_0x20254c=_0x3a1175[0x0],_0x4319d8=_0x3a1175[_0x3a1175[_0x4caf05(0x8c)]-0x1],_0x1bb88c=_0x2ccb0d['localToWorld'](_0x20254c),_0x544b16=_0x2ccb0d['localToWorld'](_0x4319d8);this[_0x4caf05(0x8e)](_0x45fb1e,{..._0x1bb88c},!0x0),this[_0x4caf05(0x8e)](_0x45fb1e,{..._0x544b16},!0x1);}[_0x4b851e(0x8e)](_0x25110,_0x2d169f,_0x5319c9){const _0x47c077=_0x4b851e;if(this[_0x47c077(0x146)]===void 0x0||this['_unitId']===void 0x0||this[_0x47c077(0x21a)]===void 0x0)return;let _0x18e354=_0x47c077(0x105)+this[_0x47c077(0x7b)]+'-'+this[_0x47c077(0x21a)]+'-'+this[_0x47c077(0x146)]+'-'+(_0x5319c9?_0x47c077(0x139):_0x47c077(0x2ef)),_0x4dbdbc=_0x25110[_0x47c077(0x2cb)](_0x18e354);if(_0x4dbdbc){_0x4dbdbc[_0x47c077(0x1ab)]({'left':_0x2d169f['x']-_0x179953[_0x47c077(0x2ab)],'top':_0x2d169f['y']-_0x179953[_0x47c077(0x2ab)]});return;}let _0x31aa3e=new Zi(_0x18e354,{'left':_0x2d169f['x']-_0x179953[_0x47c077(0x2ab)],'top':_0x2d169f['y']-_0x179953['cxnPointRadius'],'shapeId':this[_0x47c077(0x146)],'unitId':this[_0x47c077(0x7b)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5319c9,'width':_0x179953[_0x47c077(0x2ab)]*0x2,'height':_0x179953[_0x47c077(0x2ab)]*0x2,'zIndex':_0x22719c+0x1,'evented':!0x0});this[_0x47c077(0x243)][_0x47c077(0x102)](_0x31aa3e),this[_0x47c077(0x23f)](_0x31aa3e,_0x25110,_0x5319c9),_0x25110[_0x47c077(0x2ec)](_0x31aa3e,_0x22719c+0x1);}[_0x4b851e(0x10e)](_0x585cbb,_0x591681){const _0x272455=_0x4b851e;var _0x27f606;let _0x1e09a0={'x':0x0,'y':0x0};if(!_0x585cbb||!_0x591681)return _0x1e09a0;let _0x329505=this['_renderManagerService'][_0x272455(0x75)](_0x585cbb);if(!_0x329505||!_0x329505['with'](_0x58befb)[_0x272455(0x2c6)](_0x591681))return _0x1e09a0;let _0x23af16=_0x329505[_0x272455(0x25d)](_0x51344e),_0xedcd5f=_0x23af16==null?void 0x0:_0x23af16[_0x272455(0x209)]();if(!_0xedcd5f)return _0x1e09a0;let _0x533679=(_0x27f606=this[_0x272455(0x25c)][_0x272455(0x1cd)](_0x585cbb))==null?void 0x0:_0x27f606[_0x272455(0x136)](_0x591681);if(!_0x533679)return _0x1e09a0;let _0x5328a0=_0x23e0fe(_0xedcd5f[_0x272455(0xde)],_0xedcd5f['sheetViewStartColumn'],_0x329505['scene'],_0x533679);return _0x5328a0?{'x':_0x5328a0[_0x272455(0x247)],'y':_0x5328a0[_0x272455(0x1cc)]}:_0x1e09a0;}['_getZoomRatio'](_0x47b2ce,_0x4942f8){const _0x4ac670=_0x4b851e;var _0x18660a;let _0x17f358=(_0x18660a=this['_univerInstanceService'][_0x4ac670(0x1cd)](_0x47b2ce))==null?void 0x0:_0x18660a['getSheetBySheetId'](_0x4942f8);return(_0x17f358==null?void 0x0:_0x17f358[_0x4ac670(0x189)]())??0x1;}[_0x4b851e(0x19b)](_0x693c87,_0x187c59,_0x15a08d,_0x588b2e,_0x471708){const _0x5564c5=_0x4b851e;this[_0x5564c5(0xba)][_0x5564c5(0x22e)](),this[_0x5564c5(0xe2)][_0x5564c5(0x22e)](),this[_0x5564c5(0x182)]['refreshAdjustControls']();let _0x358637=this[_0x5564c5(0x2f9)];this[_0x5564c5(0x13e)]['endConnectionDetection']();let _0x4609bd=this['_getScrollInfo'](this[_0x5564c5(0x7b)],this['_subUnitId']),_0x17edb7=this[_0x5564c5(0x21e)](this['_unitId'],this[_0x5564c5(0x21a)]),_0x1f80ae={'x':_0x15a08d[_0x5564c5(0x1b4)]/_0x17edb7+_0x4609bd['x'],'y':_0x15a08d[_0x5564c5(0x1e7)]/_0x17edb7+_0x4609bd['y']},_0x334f9d=_0x358637?_0x358637['worldPoint']:_0x1f80ae,_0x129b2a=_0x588b2e?this[_0x5564c5(0xf7)][_0x5564c5(0x2f8)]():this['_activeShapeModel'][_0x5564c5(0x153)](),_0xdfd82=this[_0x5564c5(0xf7)]['getShapeType']();_0x129b2a?this['_handleConnectedEndpointPointerUp'](_0x129b2a,_0x334f9d,_0x588b2e,_0x358637,_0x471708):this['_handleFreeEndpointPointerUp'](_0x187c59,_0x334f9d,_0x588b2e,_0x358637,_0x471708,_0xdfd82),this[_0x5564c5(0x1fe)]=!0x1,this['_hasReset']=!0x1,this[_0x5564c5(0x2f9)]=null,_0x693c87[_0x5564c5(0x242)]();}['_handleFreeEndpointPointerUp'](_0x4563f7,_0x289e7d,_0xb95233,_0x4fc844,_0x320e24,_0x447257){const _0x137fe1=_0x4b851e;let _0x4f0def=_0x447257===_0x3e1064[_0x137fe1(0x2af)]||_0x447257===_0x3e1064[_0x137fe1(0x141)],_0x420bcc=_0xb95233?_0x289e7d:_0x4563f7,_0x3e1273=_0xb95233?_0x4563f7:_0x289e7d,_0x85b154=this[_0x137fe1(0xf7)][_0x137fe1(0x2e0)](),_0x34dbc0=_0x446dc5(this['_activeShapeModel'][_0x137fe1(0x180)]()),_0xa1d5b4=_0x27802a['getBentTypeFromPoints'](_0x85b154,_0x34dbc0),_0x3146db=_0x4f0def?_0x27802a[_0x137fe1(0x10c)](_0x420bcc,_0x3e1273):_0x27802a[_0x137fe1(0x23c)](_0x4563f7,_0x289e7d,_0xb95233,_0xa1d5b4);_0x4fc844?this[_0x137fe1(0xbc)](_0x3146db,_0x4fc844,_0xb95233,_0x320e24):this[_0x137fe1(0x194)](_0x3146db,_0x320e24);}[_0x4b851e(0x144)](_0x16b9b8,_0x51814d,_0x442fe5,_0xfee3ee,_0x12e017){const _0x5d0543=_0x4b851e;let _0x4ea9e5=this[_0x5d0543(0x264)](_0x16b9b8);if(!_0x4ea9e5)return;let _0xc85cc6=_0xfee3ee?_0xfee3ee['angle']:this[_0x5d0543(0x29a)](_0x4ea9e5[_0x5d0543(0x282)],_0x51814d),_0x20ede6;if(_0xfee3ee){let _0x34c658=this['_drawingManagerService'][_0x5d0543(0x2cc)]({'unitId':_0xfee3ee[_0x5d0543(0x2e2)],'subUnitId':_0xfee3ee[_0x5d0543(0x20f)],'drawingId':_0xfee3ee[_0x5d0543(0x2e3)]});if(_0x34c658!=null&&_0x34c658[_0x5d0543(0x1c1)]){let {left:_0x12e1a4=0x0,top:_0x33c07f=0x0,width:_0x445c80=0x0,height:_0x1a561d=0x0,angle:_0x2f73b2}=_0x34c658[_0x5d0543(0x1c1)];_0x20ede6=_0x16b583({'left':_0x12e1a4,'top':_0x33c07f,'width':_0x445c80,'height':_0x1a561d},_0x2f73b2||0x0);}else _0x20ede6={'left':_0x51814d['x'],'top':_0x51814d['y'],'width':0x0,'height':0x0};}else _0x20ede6={'left':_0x51814d['x'],'top':_0x51814d['y'],'width':0x0,'height':0x0};let _0x2e3396={'point':_0x51814d,'angle':_0xc85cc6,'bounds':_0x20ede6},_0x1ae33d=_0x442fe5?_0x2e3396:_0x4ea9e5,_0x56bfaf=_0x442fe5?_0x4ea9e5:_0x2e3396,_0x5031bf=this['_activeShapeModel'][_0x5d0543(0x180)](),_0x52eaa7=_0x4b9feb(_0x1ae33d,_0x56bfaf,_0x5031bf);this[_0x5d0543(0xf7)][_0x5d0543(0x156)]();let _0xda56be=_0x1fcdb8(_0x52eaa7,_0x5031bf);_0xfee3ee?this[_0x5d0543(0xa3)](_0xda56be,_0xfee3ee,_0x16b9b8,_0x442fe5,_0x12e017):this[_0x5d0543(0x28b)](_0xda56be,_0x16b9b8,_0x442fe5,_0x12e017);}[_0x4b851e(0xbc)](_0x34f014,_0x4cce6b,_0x173bb7,_0xec9a67){const _0x66e8f3=_0x4b851e;let _0x361899=this['_activeShapeModel'][_0x66e8f3(0x88)]()[_0x66e8f3(0x171)],_0x4b73ef={..._0x361899},_0x12e14d={'shapeId':_0x4cce6b['shapeId'],'cxnIndex':_0x4cce6b[_0x66e8f3(0x21b)]};_0x173bb7?_0x4b73ef[_0x66e8f3(0x125)]=_0x12e14d:_0x4b73ef['to']=_0x12e14d;let _0xf4a0fa=this[_0x66e8f3(0xf7)][_0x66e8f3(0x180)](),_0x4e12b4=_0x1fcdb8(_0x34f014[_0x66e8f3(0x2eb)],_0xf4a0fa),_0x2647a6={'unitId':this[_0x66e8f3(0x7b)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x193)],'height':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1ff)],'left':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1d3)],'top':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x292)],'flipX':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x2ae)]||!0x1,'flipY':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1c8)]||!0x1,'newAdjustValues':_0x4e12b4['adjustValues'],'oldAdjustValues':_0xec9a67,'oldRelation':_0x361899,'newRelation':_0x4b73ef,'newLineType':_0x4e12b4['lineType'],'oldLineType':_0xf4a0fa};this['_commandService'][_0x66e8f3(0x163)](_0x3ac18a['id'],_0x2647a6);}[_0x4b851e(0x194)](_0x3db0d9,_0x54ac90){const _0x2808ef=_0x4b851e;let _0x11fea7=this[_0x2808ef(0xf7)][_0x2808ef(0x180)](),_0x40456b=_0x1fcdb8(_0x3db0d9[_0x2808ef(0x2eb)],_0x11fea7),_0x4619e6={'unitId':this[_0x2808ef(0x7b)],'subUnitId':this[_0x2808ef(0x21a)],'shapeId':this[_0x2808ef(0x146)],'width':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x193)],'height':_0x3db0d9[_0x2808ef(0x15f)]['height'],'left':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x1d3)],'top':_0x3db0d9['worldRect'][_0x2808ef(0x292)],'flipX':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x2ae)]||!0x1,'flipY':_0x3db0d9['worldRect']['flipY']||!0x1,'angle':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x2a4)]||0x0,'newAdjustValues':_0x40456b[_0x2808ef(0x1e5)],'oldAdjustValues':_0x54ac90,'newLineType':_0x40456b[_0x2808ef(0x281)],'oldLineType':_0x11fea7};this[_0x2808ef(0x13c)][_0x2808ef(0x163)](_0x7c6eda['id'],_0x4619e6);}[_0x4b851e(0xa3)](_0x8f167d,_0x51a47d,_0x2db3b1,_0xedb3ea,_0xf30f90){const _0x3ad51c=_0x4b851e;let _0x121797=this['_activeShapeModel'][_0x3ad51c(0x88)]()['relation'],_0x2f3021={..._0x121797},_0x1ce143={'shapeId':_0x51a47d[_0x3ad51c(0x2e3)],'cxnIndex':_0x51a47d[_0x3ad51c(0x21b)]};_0xedb3ea?(_0x2f3021[_0x3ad51c(0x125)]=_0x1ce143,_0x2f3021['to']=_0x2db3b1):(_0x2f3021[_0x3ad51c(0x125)]=_0x2db3b1,_0x2f3021['to']=_0x1ce143);let _0x31c75d={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x3ad51c(0x146)],'width':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x193)],'height':_0x8f167d[_0x3ad51c(0x15f)]['height'],'left':_0x8f167d[_0x3ad51c(0x15f)]['left'],'top':_0x8f167d['worldRect'][_0x3ad51c(0x292)],'flipX':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x2ae)]||!0x1,'flipY':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x1c8)]||!0x1,'oldAdjustValues':_0xf30f90,'newAdjustValues':_0x8f167d[_0x3ad51c(0x1e5)],'newLineType':_0x8f167d[_0x3ad51c(0x281)],'rotation':_0x8f167d[_0x3ad51c(0x17c)],'oldRelation':_0x121797,'newRelation':_0x2f3021};this[_0x3ad51c(0x13c)][_0x3ad51c(0x163)](_0x3ac18a['id'],_0x31c75d);}[_0x4b851e(0x28b)](_0x31f9a9,_0x10a1c3,_0x6803c6,_0x121db5){const _0x315c97=_0x4b851e;let _0x5cb257=this[_0x315c97(0xf7)][_0x315c97(0x88)]()[_0x315c97(0x171)],_0x411232={};_0x6803c6?(_0x411232['to']=_0x10a1c3,_0x411232['from']=void 0x0):(_0x411232[_0x315c97(0x125)]=_0x10a1c3,_0x411232['to']=void 0x0);let _0x9c9bad={'unitId':this[_0x315c97(0x7b)],'subUnitId':this[_0x315c97(0x21a)],'connectorShapeId':this[_0x315c97(0x146)],'width':_0x31f9a9[_0x315c97(0x15f)]['width'],'height':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x1ff)],'left':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x1d3)],'top':_0x31f9a9['worldRect'][_0x315c97(0x292)],'flipX':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x2ae)]||!0x1,'flipY':_0x31f9a9['worldRect'][_0x315c97(0x1c8)]||!0x1,'oldAdjustValues':_0x121db5,'newAdjustValues':_0x31f9a9[_0x315c97(0x1e5)],'newLineType':_0x31f9a9['lineType'],'rotation':_0x31f9a9[_0x315c97(0x17c)],'oldRelation':_0x5cb257,'newRelation':_0x411232};this['_commandService'][_0x315c97(0x163)](_0x3ac18a['id'],_0x9c9bad);}[_0x4b851e(0x23f)](_0x4e2ddc,_0x3dcd4d,_0x34ea3d){const _0x56f85d=_0x4b851e;this['disposeWithMe'](_0x52399e(_0x4e2ddc['onPointerDown$'][_0x56f85d(0x26b)]((_0x367d41,_0x1cd3bb)=>{const _0x708a41=_0x56f85d;let _0x16114c=_0x4e2ddc['getDrawingSearch']();if(this[_0x708a41(0xf7)]=this['_sheetsShapeService'][_0x708a41(0x138)](_0x16114c['unitId'],_0x16114c[_0x708a41(0x20f)],_0x16114c[_0x708a41(0x179)]),!this[_0x708a41(0xf7)])return;let _0x149bae={};this[_0x708a41(0xf7)][_0x708a41(0x18d)]()[_0x708a41(0xd7)](_0x403071=>{const _0x1d072f=_0x708a41;let _0x498690=this[_0x1d072f(0xf7)][_0x1d072f(0x1b1)](_0x403071);_0x498690!==void 0x0&&(_0x149bae[_0x403071]=_0x498690);});let _0x6283e2=this[_0x708a41(0x9b)]();if(!_0x6283e2)return;this[_0x708a41(0xbd)]={..._0x6283e2};let _0x447ad7=new _0x27802a(this[_0x708a41(0xbd)]),_0x5b1bb0=_0x4d60ae({'unitId':this['_unitId'],'subUnitId':this[_0x708a41(0x21a)],'drawingId':this[_0x708a41(0x146)]}),_0x4c13da=_0x3dcd4d[_0x708a41(0x2cb)](_0x5b1bb0);this[_0x708a41(0x1fe)]=!0x0,_0x3dcd4d['disableObjectsEvent'](),this[_0x708a41(0x13e)][_0x708a41(0x22d)](_0x3dcd4d,this[_0x708a41(0x7b)],this[_0x708a41(0x21a)],this[_0x708a41(0x146)]),this[_0x708a41(0x2f9)]=null;let _0x5f09ae=this[_0x708a41(0xf7)][_0x708a41(0x2e0)](),_0x5698a7=_0x5f09ae[0x0],_0x6ce914=_0x5f09ae[_0x5f09ae[_0x708a41(0x8c)]-0x1],_0x14a703=_0x34ea3d?_0x447ad7[_0x708a41(0x185)](_0x6ce914):_0x447ad7[_0x708a41(0x185)](_0x5698a7);this[_0x708a41(0xba)]=_0x3dcd4d[_0x708a41(0xe1)][_0x708a41(0x26b)]((_0x99bb7d,_0x4ab722)=>{const _0x17576e=_0x708a41;if(!this['_isConnecting']||!this[_0x17576e(0xf7)])return;this[_0x17576e(0x2e7)]||=(this['_sheetShapeAdjustController'][_0x17576e(0x109)](),this[_0x17576e(0xf7)][_0x17576e(0x11e)](),!0x0);let _0x1aef3d=this['_getScrollInfo'](this['_unitId'],this[_0x17576e(0x21a)]),_0x57d4af=this[_0x17576e(0x21e)](this[_0x17576e(0x7b)],this['_subUnitId']),_0x3b8137={'x':_0x99bb7d[_0x17576e(0x1b4)]/_0x57d4af+_0x1aef3d['x'],'y':_0x99bb7d[_0x17576e(0x1e7)]/_0x57d4af+_0x1aef3d['y']},_0x70d9c4=this[_0x17576e(0x13e)]['updateConnectionDetection'](_0x3b8137);if(_0x70d9c4){let {shapeId:_0x453ab8,unitId:_0x1c1280,subUnitId:_0x443e08}=_0x70d9c4;if(_0x453ab8&&_0x1c1280&&_0x443e08){let _0x5a5379=_0x4d60ae({'unitId':_0x1c1280,'subUnitId':_0x443e08,'drawingId':_0x453ab8});_0x70d9c4[_0x17576e(0x2a4)]=(_0x3dcd4d[_0x17576e(0x2cb)](_0x5a5379)[_0x17576e(0x2a4)]||0x0)+_0x70d9c4[_0x17576e(0x2a4)];}}this[_0x17576e(0x2f9)]=_0x70d9c4;let _0x59ea1a=_0x34ea3d?this[_0x17576e(0xf7)]['getEndConnectInfo']():this[_0x17576e(0xf7)][_0x17576e(0x153)]();if(_0x59ea1a){this[_0x17576e(0x1a3)](_0x59ea1a,_0x3b8137,_0x34ea3d,_0x4c13da,_0x4e2ddc);return;}this[_0x17576e(0x1f6)](_0x3b8137,_0x14a703,_0x34ea3d,_0x4c13da,_0x4e2ddc);}),this[_0x708a41(0xe2)]=_0x3dcd4d[_0x708a41(0x21c)][_0x708a41(0x26b)]((_0x47c49c,_0x71285b)=>{const _0xabf3ec=_0x708a41;this[_0xabf3ec(0x19b)](_0x3dcd4d,_0x14a703,_0x47c49c,_0x34ea3d,_0x149bae);}),_0x1cd3bb[_0x708a41(0x2f2)]();})));}[_0x4b851e(0x230)](_0x69ce11,_0x2fda26,_0x4c0809){const _0x3ea097=_0x4b851e;let _0x1a0e9b=this['_sheetsShapeService']['getBasicShapeRelation'](_0x69ce11,_0x2fda26,_0x4c0809);if(!_0x1a0e9b||_0x1a0e9b['length']===0x0)return;let _0x14cca8=this[_0x3ea097(0x1bb)][_0x3ea097(0x75)](_0x69ce11);if(!_0x14cca8)return;let {scene:_0x53825e}=_0x14cca8;for(let _0x41df9c of _0x1a0e9b){let _0xb1143c=_0x41df9c[_0x3ea097(0x268)],_0x395e29=this[_0x3ea097(0x80)][_0x3ea097(0x138)](_0x69ce11,_0x2fda26,_0xb1143c);if(!_0x395e29)continue;let _0x524586=_0x395e29[_0x3ea097(0x153)](),_0x4ccbda=_0x395e29[_0x3ea097(0x2f8)](),_0x3971b3=(_0x524586==null?void 0x0:_0x524586[_0x3ea097(0x2e3)])===_0x4c0809,_0x1f0565=_0x4d60ae({'unitId':_0x69ce11,'subUnitId':_0x2fda26,'drawingId':_0xb1143c}),_0x3a4484=_0x53825e[_0x3ea097(0x2cb)](_0x1f0565);if(!_0x3a4484)continue;let _0x421a14=this[_0x3ea097(0x9d)][_0x3ea097(0x2cc)]({'unitId':_0x69ce11,'subUnitId':_0x2fda26,'drawingId':_0xb1143c});_0x421a14!=null&&_0x421a14['transform']&&(_0x524586&&_0x4ccbda?this[_0x3ea097(0x2f4)](_0x69ce11,_0x2fda26,_0xb1143c,_0x395e29,_0x524586,_0x4ccbda,_0x3a4484):this[_0x3ea097(0x1f2)](_0x69ce11,_0x2fda26,_0xb1143c,_0x395e29,_0x3971b3?_0x524586:_0x4ccbda,_0x3971b3,_0x421a14,_0x3a4484));}}[_0x4b851e(0x2f4)](_0x498d92,_0x277609,_0x446bd8,_0x1cecc2,_0x11e8a5,_0x110ff0,_0x20f233){const _0x5dc37e=_0x4b851e;let _0x3da628=this[_0x5dc37e(0x7b)],_0x10ac32=this[_0x5dc37e(0x21a)];this[_0x5dc37e(0x7b)]=_0x498d92,this['_subUnitId']=_0x277609;let _0x1a43c5=this['_getConnectPointInfo'](_0x11e8a5),_0x470717=this[_0x5dc37e(0x264)](_0x110ff0);if(this[_0x5dc37e(0x7b)]=_0x3da628,this[_0x5dc37e(0x21a)]=_0x10ac32,!_0x1a43c5||!_0x470717)return;let _0x3ad03a=_0x1cecc2['getShapeType'](),_0x25cd3f=_0x4b9feb(_0x1a43c5,_0x470717,_0x3ad03a);_0x25cd3f&&_0x1cecc2[_0x5dc37e(0xac)](_0x25cd3f);let _0x34f979=_0x1fcdb8(_0x25cd3f,_0x3ad03a);_0x34f979[_0x5dc37e(0x281)]!==_0x3ad03a&&_0x1cecc2[_0x5dc37e(0x23e)](_0x34f979[_0x5dc37e(0x281)]),_0x1cecc2[_0x5dc37e(0x11e)]();for(let [_0x27befd,_0x1086c0]of Object[_0x5dc37e(0x2f6)](_0x34f979[_0x5dc37e(0x1e5)]))_0x1cecc2['setAdjustValueByName'](_0x27befd,_0x1086c0);_0x1cecc2['updateContext']({'width':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x193)],'height':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1ff)]}),_0x20f233[_0x5dc37e(0x1ab)]({'flipX':_0x34f979['worldRect'][_0x5dc37e(0x2ae)],'flipY':_0x34f979['worldRect']['flipY'],'left':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1d3)],'top':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x292)],'width':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x193)],'height':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1ff)],'angle':_0x34f979[_0x5dc37e(0x17c)]}),_0x1cecc2[_0x5dc37e(0x156)]();}[_0x4b851e(0x1f2)](_0x1a5adc,_0x3e67cb,_0x3368b2,_0x43972e,_0x19bb2f,_0x1740aa,_0x3b22ff,_0x20ab91){const _0x3513ea=_0x4b851e;let _0x3e4571=this[_0x3513ea(0x7b)],_0x468a7c=this[_0x3513ea(0x21a)];this['_unitId']=_0x1a5adc,this['_subUnitId']=_0x3e67cb;let _0x596421=this['_getConnectPointInfo'](_0x19bb2f);if(this[_0x3513ea(0x7b)]=_0x3e4571,this[_0x3513ea(0x21a)]=_0x468a7c,!_0x596421)return;let {left:_0x23ccbf=0x0,top:_0x2daa92=0x0,width:_0x4ebdce=0x0,height:_0x3dc3e2=0x0,flipX:_0x2be91f=!0x1,flipY:_0x3ef7dd=!0x1}=_0x3b22ff[_0x3513ea(0x1c1)],_0xa45759=_0x43972e[_0x3513ea(0x2e0)]();if(_0xa45759[_0x3513ea(0x8c)]<0x2)return;let _0x4f835f=new _0x27802a({'left':_0x23ccbf,'top':_0x2daa92,'width':_0x4ebdce,'height':_0x3dc3e2,'flipX':_0x2be91f,'flipY':_0x3ef7dd}),_0x3ef221=_0x1740aa?_0xa45759[_0xa45759['length']-0x1]:_0xa45759[0x0],_0x42f397=_0x4f835f[_0x3513ea(0x185)](_0x3ef221),_0x4cdec3=_0x27802a[_0x3513ea(0x23c)](_0x42f397,_0x596421[_0x3513ea(0x282)],!_0x1740aa);_0x20ab91[_0x3513ea(0x1ab)]({'flipX':_0x4cdec3['worldRect'][_0x3513ea(0x2ae)],'flipY':_0x4cdec3[_0x3513ea(0x15f)]['flipY'],'left':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x1d3)],'top':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x292)],'width':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x193)],'height':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x1ff)],'angle':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x2a4)]}),_0x20ab91[_0x3513ea(0x2b3)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x5bac0d=_0x4b851e;this[_0x5bac0d(0x243)][_0x5bac0d(0x8c)]!==0x0&&(this['_connectorObjects'][_0x5bac0d(0xd7)](_0x445432=>{const _0x18af78=_0x5bac0d;_0x445432[_0x18af78(0x254)]();}),this['_connectorObjects']=[]);}[_0x4b851e(0x1de)](){const _0xe1da4b=_0x4b851e;let _0x1aaf43=this['_univerInstanceService'][_0xe1da4b(0x295)](_0x2ce572[_0xe1da4b(0x158)]);this[_0xe1da4b(0x183)](_0x1aaf43[_0xe1da4b(0x26c)](_0x20fbec(_0x5bfea3=>_0x5bfea3?_0x5bfea3[_0xe1da4b(0x21d)][_0xe1da4b(0x26c)](_0x20fbec(_0x1f9138=>{const _0x1768f3=_0xe1da4b;if(!_0x1f9138)return _0x53e669;let _0x71ed21=_0x5bfea3[_0x1768f3(0x23b)](),_0x25d498=this['_renderManagerService'][_0x1768f3(0x75)](_0x71ed21),_0x3abc97=_0x25d498==null?void 0x0:_0x25d498[_0x1768f3(0x255)];return _0x3abc97?_0x571f73(_0x3abc97):_0x53e669;})):_0x53e669))['subscribe'](_0x13443c=>{const _0x54b79a=_0xe1da4b;let _0x2911e7=_0x13443c['getTransformerByCreate']();this[_0x54b79a(0x183)](_0x13443c[_0x54b79a(0xe1)][_0x54b79a(0x26b)](_0x376c7a=>{const _0x368eb1=_0x54b79a;this[_0x368eb1(0x8b)]&&this['_activeShapeId']&&this[_0x368eb1(0x19e)]();})),this[_0x54b79a(0x183)](_0x2911e7[_0x54b79a(0x1bc)][_0x54b79a(0xd9)](_0xaf6d33=>{const _0x58e2c5=_0x54b79a;let {objects:_0x27ad81}=_0xaf6d33;this[_0x58e2c5(0x19e)](),_0x27ad81!==null&&_0x27ad81[_0x58e2c5(0x2ca)]===0x1&&_0x27ad81[_0x58e2c5(0xe0)]()['next']()['value']instanceof fr&&(this[_0x58e2c5(0x8b)]=!0x0);})),this[_0x54b79a(0x183)](_0x2911e7[_0x54b79a(0x128)][_0x54b79a(0xd9)](_0x49cd5c=>{const _0x322107=_0x54b79a;this['_isDrawingShapePointDown']&&this[_0x322107(0x19e)]();})),this[_0x54b79a(0x183)](_0x13443c['onPointerUp$'][_0x54b79a(0x26b)](()=>{const _0x195363=_0x54b79a;this['_isDrawingShapePointDown']&&(this[_0x195363(0x8b)]=!0x1,this[_0x195363(0x211)]());})),this['disposeWithMe'](_0x2911e7['changeEnd$']['subscribe'](()=>{const _0x3e5002=_0x54b79a;this[_0x3e5002(0x7b)]&&this['_subUnitId']&&this[_0x3e5002(0x146)]&&this[_0x3e5002(0x9d)][_0x3e5002(0x2cc)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3e5002(0x146)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x3e5002(0x211)]());}));}));}[_0x4b851e(0xdb)](){const _0x4af25e=_0x4b851e;this['disposeWithMe'](this[_0x4af25e(0x9d)][_0x4af25e(0x85)][_0x4af25e(0xd9)](_0x307561=>{const _0x1e1c2f=_0x4af25e;if(_0x307561['length']===0x1){let _0x55d5f7=_0x307561[0x0];if(_0x55d5f7[_0x1e1c2f(0x14f)]===_0x514277[_0x1e1c2f(0xcb)]){let _0x233f70=this[_0x1e1c2f(0x80)][_0x1e1c2f(0x138)](_0x55d5f7[_0x1e1c2f(0x2e2)],_0x55d5f7[_0x1e1c2f(0x20f)],_0x55d5f7[_0x1e1c2f(0x179)]);if(_0x233f70&&_0x47e56f(_0x233f70[_0x1e1c2f(0x180)]())){this[_0x1e1c2f(0x146)]=_0x55d5f7[_0x1e1c2f(0x179)],this['_unitId']=_0x55d5f7[_0x1e1c2f(0x2e2)],this['_subUnitId']=_0x55d5f7['subUnitId'],this[_0x1e1c2f(0x19e)](),this[_0x1e1c2f(0x211)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x1e1c2f(0x7b)]=void 0x0,this[_0x1e1c2f(0x21a)]=void 0x0,this[_0x1e1c2f(0x19e)]();})),this[_0x4af25e(0x183)](this[_0x4af25e(0x9d)][_0x4af25e(0x200)][_0x4af25e(0xd9)](_0xc54415=>{const _0x674248=_0x4af25e;if(_0xc54415['length']===0x1){var _0x5966d4;let _0x36c4a0=_0xc54415[0x0],_0xf075d8=(_0x5966d4=this['_drawingManagerService'][_0x674248(0x2cc)](_0x36c4a0))==null?void 0x0:_0x5966d4['drawingType'];_0xf075d8===_0x514277[_0x674248(0xcb)]&&_0x36c4a0[_0x674248(0x179)]===this[_0x674248(0x146)]?(this[_0x674248(0x19e)](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0xf075d8===_0x514277['DRAWING_SHAPE']&&this[_0x674248(0x230)](_0x36c4a0[_0x674248(0x2e2)],_0x36c4a0[_0x674248(0x20f)],_0x36c4a0['drawingId']);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x4af25e(0xd9)](_0x40076a=>{const _0x533d3b=_0x4af25e;for(let _0x4ba292 of _0x40076a){let {drawingId:_0x24c0ef}=_0x4ba292;if(this[_0x533d3b(0x146)]===_0x24c0ef){this['_reset']();return;}}}));}[_0x4b851e(0x1a3)](_0x168158,_0x38eaed,_0x5d6208,_0x35e433,_0xd772ff){const _0x44e2bd=_0x4b851e;var _0x3b9590;if(!this[_0x44e2bd(0xf7)])return;let _0x52a19c=this[_0x44e2bd(0x264)](_0x168158);if(!_0x52a19c)return;let _0x58e306=this[_0x44e2bd(0x2f9)]?this[_0x44e2bd(0x2f9)][_0x44e2bd(0x11b)]:_0x38eaed,_0x52ab83=this[_0x44e2bd(0x2f9)]?this[_0x44e2bd(0x2f9)][_0x44e2bd(0x2a4)]:this[_0x44e2bd(0x29a)](_0x52a19c[_0x44e2bd(0x282)],_0x58e306),_0x52b0dd;if(this[_0x44e2bd(0x2f9)]){let _0x496fe7=this[_0x44e2bd(0x9d)]['getDrawingByParam']({'unitId':this[_0x44e2bd(0x2f9)]['unitId'],'subUnitId':this[_0x44e2bd(0x2f9)][_0x44e2bd(0x20f)],'drawingId':this[_0x44e2bd(0x2f9)]['shapeId']});if(_0x496fe7!=null&&_0x496fe7[_0x44e2bd(0x1c1)]){let {left:_0x61a0dc=0x0,top:_0x5411f9=0x0,width:_0x547023=0x0,height:_0x43f9cc=0x0,angle:_0x2b24d0}=_0x496fe7['transform'];_0x52b0dd=_0x16b583({'left':_0x61a0dc,'top':_0x5411f9,'width':_0x547023,'height':_0x43f9cc},_0x2b24d0||0x0);}else _0x52b0dd={'left':_0x58e306['x'],'top':_0x58e306['y'],'width':0x0,'height':0x0};}else _0x52b0dd={'left':_0x58e306['x'],'top':_0x58e306['y'],'width':0x0,'height':0x0};let _0x3f2334={'point':_0x58e306,'angle':_0x52ab83,'bounds':_0x52b0dd},_0x3c6811=_0x5d6208?_0x3f2334:_0x52a19c,_0x1bddfe=_0x5d6208?_0x52a19c:_0x3f2334,_0x1da918=this[_0x44e2bd(0xf7)][_0x44e2bd(0x180)](),_0x403e8e=_0x4b9feb(_0x3c6811,_0x1bddfe,_0x1da918);_0x403e8e&&this[_0x44e2bd(0xf7)][_0x44e2bd(0xac)](_0x403e8e);let _0x21e62d=_0x1fcdb8(_0x403e8e,_0x1da918);_0x21e62d[_0x44e2bd(0x281)]!==_0x1da918&&this['_activeShapeModel'][_0x44e2bd(0x23e)](_0x21e62d['lineType']);for(let [_0x2247af,_0x3916da]of Object[_0x44e2bd(0x2f6)](_0x21e62d[_0x44e2bd(0x1e5)]))this[_0x44e2bd(0xf7)][_0x44e2bd(0x2da)](_0x2247af,_0x3916da);this[_0x44e2bd(0xf7)]['updateContext']({'width':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x193)],'height':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1ff)]}),_0x35e433['transformByState']({'flipX':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x2ae)],'flipY':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1c8)],'left':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1d3)],'top':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x292)],'width':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x193)],'height':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1ff)],'angle':_0x21e62d[_0x44e2bd(0x17c)]}),_0x35e433[_0x44e2bd(0x2b3)](!0x0);let _0x3172ee=((_0x3b9590=this[_0x44e2bd(0x2f9)])==null?void 0x0:_0x3b9590[_0x44e2bd(0x11b)])??_0x38eaed;_0xd772ff['transformByState']({'left':_0x3172ee['x']-_0x179953[_0x44e2bd(0x2ab)],'top':_0x3172ee['y']-_0x179953[_0x44e2bd(0x2ab)]});}[_0x4b851e(0x1f6)](_0x123ce6,_0x38475a,_0x9c5db2,_0x1183e7,_0x10519e){const _0x4a6385=_0x4b851e;var _0x2e3114,_0x3c5f72;let _0x281a1e=((_0x2e3114=this[_0x4a6385(0x2f9)])==null?void 0x0:_0x2e3114['worldPoint'])??_0x123ce6,_0x294097=_0x27802a[_0x4a6385(0x23c)](_0x38475a,_0x281a1e,_0x9c5db2);_0x1183e7[_0x4a6385(0x1ab)]({'flipX':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x2ae)],'flipY':_0x294097['worldRect'][_0x4a6385(0x1c8)],'left':_0x294097['worldRect'][_0x4a6385(0x1d3)],'top':_0x294097['worldRect'][_0x4a6385(0x292)],'width':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x193)],'height':_0x294097['worldRect'][_0x4a6385(0x1ff)],'angle':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x2a4)]});let _0x3dbc60=((_0x3c5f72=this[_0x4a6385(0x2f9)])==null?void 0x0:_0x3c5f72['worldPoint'])??_0x123ce6;_0x10519e[_0x4a6385(0x1ab)]({'left':_0x3dbc60['x']-_0x179953[_0x4a6385(0x2ab)],'top':_0x3dbc60['y']-_0x179953['cxnPointRadius']});}[_0x4b851e(0x264)](_0x477d23){const _0x12acf2=_0x4b851e;if(!this[_0x12acf2(0x7b)]||!this[_0x12acf2(0x21a)])return null;let {shapeId:_0x788b3a,cxnIndex:_0x4652cb}=_0x477d23,_0x20eb13=this[_0x12acf2(0x80)][_0x12acf2(0x138)](this[_0x12acf2(0x7b)],this['_subUnitId'],_0x788b3a);if(!_0x20eb13)return null;let _0x35b786=this[_0x12acf2(0x9d)][_0x12acf2(0x2cc)]({'unitId':this[_0x12acf2(0x7b)],'subUnitId':this['_subUnitId'],'drawingId':_0x788b3a});if(!(_0x35b786!=null&&_0x35b786['transform']))return null;let {left:_0x3ea940=0x0,top:_0x1d9696=0x0,width:_0x246f2f=0x0,height:_0x32ec48=0x0,flipX:_0x2ff082=!0x1,flipY:_0x2dd230=!0x1,angle:_0x363dbd}=_0x35b786['transform'];_0x20eb13[_0x12acf2(0x113)]({'width':_0x246f2f,'height':_0x32ec48});let _0x37abc4=_0x20eb13[_0x12acf2(0x2dd)]()['find'](_0x36bf16=>_0x36bf16[_0x12acf2(0x2d3)]===_0x4652cb);if(!_0x37abc4)return null;let _0x32057c=_0x2ff082?_0x246f2f-_0x37abc4['x']:_0x37abc4['x'],_0x2ca6d3=_0x2dd230?_0x32ec48-_0x37abc4['y']:_0x37abc4['y'];if(_0x363dbd!==0x0&&_0x363dbd!=null){let _0x44abd3=_0x363dbd*Math['PI']/0xb4,_0xd437b9=Math['cos'](_0x44abd3),_0x3fc88a=Math['sin'](_0x44abd3),_0x5d7aa6=_0x246f2f/0x2,_0x471670=_0x32ec48/0x2,_0x184ec0=_0x32057c-_0x5d7aa6,_0x1f9dd8=_0x2ca6d3-_0x471670;_0x32057c=_0x5d7aa6+_0x184ec0*_0xd437b9-_0x1f9dd8*_0x3fc88a,_0x2ca6d3=_0x471670+_0x184ec0*_0x3fc88a+_0x1f9dd8*_0xd437b9;}_0x32057c+=_0x3ea940,_0x2ca6d3+=_0x1d9696;let _0x378171=_0x37abc4['ang']/0xea60;_0x2ff082&&(_0x378171=0xb4-_0x378171),_0x2dd230&&(_0x378171=-_0x378171),_0x378171+=_0x363dbd||0x0,_0x378171=(_0x378171%0x168+0x168)%0x168;let _0x339968=_0x16b583({'left':_0x3ea940,'top':_0x1d9696,'width':_0x246f2f,'height':_0x32ec48},_0x363dbd||0x0);return{'point':{'x':_0x32057c,'y':_0x2ca6d3},'angle':_0x378171,'bounds':_0x339968};}[_0x4b851e(0x29a)](_0x18a859,_0x38a4e0){const _0x30df3b=_0x4b851e;let _0x3da114=_0x38a4e0['x']-_0x18a859['x'],_0x3d7d32=_0x38a4e0['y']-_0x18a859['y'];return Math[_0x30df3b(0x1dc)](_0x3da114)>=Math[_0x30df3b(0x1dc)](_0x3d7d32)?_0x3da114>=0x0?0xb4:0x0:_0x3d7d32>=0x0?0x10e:0x5a;}['_reset'](){const _0x4bf0fd=_0x4b851e;this[_0x4bf0fd(0x146)]=void 0x0,this[_0x4bf0fd(0x7b)]=void 0x0,this[_0x4bf0fd(0x21a)]=void 0x0,this[_0x4bf0fd(0x19e)]();}[_0x4b851e(0x254)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Qi=Z([X(0x1,_0x46e4d8),X(0x2,_0x37a074),X(0x3,_0x1644d5),X(0x4,_0x22bed1),X(0x5,_0x2e2475(_0x1bfe6b)),X(0x6,_0x2e2475(mr)),X(0x7,_0x2e2475(Yi))],Qi);let $i=class extends _0x387ec6{constructor(_0x24324c,_0x3f7071,_0x758711){const _0x59869e=_0x4b851e;super(),this[_0x59869e(0xa7)]=_0x24324c,this['_drawingManagerService']=_0x3f7071,this[_0x59869e(0x11a)]=_0x758711,this['_initPrinting']();}[_0x4b851e(0xa8)](){const _0x1497aa=_0x4b851e;this[_0x1497aa(0x183)](this['_sheetPrintInterceptorService']['interceptor'][_0x1497aa(0x228)](this['_sheetPrintInterceptorService']['interceptor'][_0x1497aa(0x2e6)]()[_0x1497aa(0x17b)],{'handler':(_0x5de62b,_0x1606b2,_0x56220a)=>{const _0x4130f1=_0x1497aa;var _0x56e0f2;let {unitId:_0x565a41,subUnitId:_0x59fec7,scene:_0x3cceca,resourceCollector:_0x197f61}=_0x1606b2,_0x171129=(_0x56e0f2=this[_0x4130f1(0x9d)][_0x4130f1(0x1f5)](_0x565a41))==null?void 0x0:_0x56e0f2[_0x59fec7];return _0x171129==null||_0x171129[_0x4130f1(0x283)][_0x4130f1(0xd7)](_0x1c9512=>{const _0x4da743=_0x4130f1;let _0x56d57e=_0x171129[_0x4da743(0xfa)][_0x1c9512];_0x56d57e[_0x4da743(0x14f)]===_0x514277[_0x4da743(0xcb)]&&!_0x56d57e[_0x4da743(0xbf)]&&this['_shapeRenderController'][_0x4da743(0x187)](_0x56d57e,_0x3cceca,{'resourceCollector':_0x197f61});}),_0x56220a(_0x5de62b);}}));}};$i=Z([X(0x0,_0x2e2475(_0x1af16d)),X(0x1,_0x1644d5),X(0x2,_0x2e2475(Q))],$i);let ea=class extends _0x387ec6{constructor(_0xdb8b23,_0x484145,_0xa75b7a){const _0x454fba=_0x4b851e;super(),this[_0x454fba(0x13c)]=_0xdb8b23,this[_0x454fba(0x1b7)]=_0x484145,this[_0x454fba(0x2d4)]=_0xa75b7a,this[_0x454fba(0x17e)]();}[_0x4b851e(0x17e)](){const _0x59d18f=_0x4b851e;this[_0x59d18f(0x183)](this[_0x59d18f(0x13c)]['beforeCommandExecuted'](_0x3dcf11=>{const _0x9b5a55=_0x59d18f;let _0x190c77,_0x5f1644;if(_0x3dcf11['id']===_0x84e7ae['id']||_0x3dcf11['id']===_0x12f002['id']||_0x3dcf11['id']===_0x3ac18a['id']){let _0x3d530e=_0x3dcf11[_0x9b5a55(0x29f)];_0x190c77=_0x3d530e[_0x9b5a55(0x2e2)],_0x5f1644=_0x3d530e['subUnitId'];}!_0x190c77||!_0x5f1644||this[_0x9b5a55(0x2d4)]['permissionCheckWithoutRange']({'workbookTypes':[_0x35ca91],'worksheetTypes':[_0x446d79]},_0x190c77,_0x5f1644)||this[_0x9b5a55(0x2d4)][_0x9b5a55(0xed)](this['_localeService']['t'](_0x9b5a55(0xf3)));}));}};ea=Z([X(0x0,_0x2e2475(_0x46e4d8)),X(0x1,_0x2e2475(_0x3fae61)),X(0x2,_0x2e2475(_0x3aeb77))],ea);let ta=class extends _0x387ec6{constructor(_0x1b4157,_0x555956,_0x1f2388,_0x29a3a7,_0x25bb36,_0xc8c37d,_0x4a298f,_0x353db1,_0x33ddca,_0x1e3e2b,_0x3f54f0){const _0xdac203=_0x4b851e;super(),this[_0xdac203(0x25c)]=_0x1b4157,this[_0xdac203(0x274)]=_0x555956,this[_0xdac203(0x1d5)]=_0x1f2388,this[_0xdac203(0x80)]=_0x29a3a7,this[_0xdac203(0x1b7)]=_0x25bb36,this[_0xdac203(0x13c)]=_0xc8c37d,this['_drawingManagerService']=_0x4a298f,this[_0xdac203(0xb9)]=_0x353db1,this['_contextService']=_0x33ddca,this[_0xdac203(0x1bb)]=_0x1e3e2b,this[_0xdac203(0x29b)]=_0x3f54f0,Y(this,_0xdac203(0x18b),null),Y(this,_0xdac203(0x1e8),null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0xdac203(0x298),0x0),Y(this,_0xdac203(0x130),null),Y(this,_0xdac203(0x208),[]),this[_0xdac203(0xe5)](),this[_0xdac203(0x183)](this[_0xdac203(0x25c)][_0xdac203(0x295)](_0x2ce572[_0xdac203(0x158)])[_0xdac203(0xd9)](_0x1fd76e=>{const _0x77485=_0xdac203;if(!_0x1fd76e){var _0x743258;(_0x743258=this['_sidebarDisposable'])==null||_0x743258[_0x77485(0x254)]();}})),this[_0xdac203(0xe8)](),this[_0xdac203(0x2b8)](),this[_0xdac203(0x183)](this[_0xdac203(0x29b)][_0xdac203(0x2d1)][_0xdac203(0xd9)](_0x4ed4e5=>{const _0x3c2309=_0xdac203;_0x4ed4e5&&this[_0x3c2309(0x28a)]();}));}[_0x4b851e(0xe5)](){const _0x3cbe32=_0x4b851e;this[_0x3cbe32(0x1d5)][_0x3cbe32(0x9f)](Si);}['initShapePopupMenu'](){const _0x456247=_0x4b851e;this['_shapePopupMenuDisposable']||=this[_0x456247(0x183)](_0x33aed7(this[_0x456247(0x1bb)],_0x2ce572[_0x456247(0x158)],_0x373056=>this[_0x456247(0xe6)](_0x373056)));}[_0x4b851e(0x224)](_0x300460,_0x9d5abb,_0x4bc72b){const _0x2e7e27=_0x4b851e;let _0x18ee70=this['_sheetsShapeService'][_0x2e7e27(0x196)](_0x300460,_0x9d5abb,_0x4bc72b),_0x437a61=this['_sheetsShapeService'][_0x2e7e27(0x2d9)](_0x300460,_0x9d5abb,_0x4bc72b);return _0x18ee70!==void 0x0&&_0x437a61!==void 0x0?{'shapeData':_0x437a61,'shapeId':_0x4bc72b,'shapeType':_0x18ee70,'unitId':_0x300460,'subUnitId':_0x9d5abb,'version':this[_0x2e7e27(0x298)],'disableShapeOption':!0x1}:null;}[_0x4b851e(0x28a)](){const _0x380f6c=_0x4b851e;this['_disposePopups']['forEach'](_0x537057=>_0x537057['dispose']()),this['_disposePopups'][_0x380f6c(0x8c)]=0x0;}[_0x4b851e(0xe6)](_0x8d4679){const _0x57513a=_0x4b851e;let _0x5ad67d=new _0x1e71f4();return _0x5ad67d['add'](_0x8d4679[_0x57513a(0x2b2)][_0x57513a(0xd9)](()=>{const _0x2faa10=_0x57513a;let _0x9b739d=_0x8d4679[_0x2faa10(0x129)]();if(this[_0x2faa10(0x28a)](),this[_0x2faa10(0x135)]||_0x9b739d[_0x2faa10(0x2ca)]>0x1)return;let _0xceb614=_0x9b739d[_0x2faa10(0xe0)]()[_0x2faa10(0x12c)]()[_0x2faa10(0x214)];if(!_0xceb614)return;let _0x4c3303=this[_0x2faa10(0x9d)][_0x2faa10(0x16b)](_0xceb614[_0x2faa10(0x241)]);if(!_0x4c3303||_0x4c3303['drawingType']!==_0x514277['DRAWING_SHAPE'])return;let {unitId:_0x343b69,subUnitId:_0x4af560,drawingId:_0x56d673,drawingType:_0x18b60e}=_0x4c3303,_0x13c9ad=this[_0x2faa10(0x224)](_0x343b69,_0x4af560,_0x56d673);if(!_0x13c9ad)return;this[_0x2faa10(0x1c9)]['setContextValue'](_0x4fe378,!0x0);let _0x1516f5=this[_0x2faa10(0x1bb)][_0x2faa10(0x75)](_0x343b69),_0x100f33=((_0x1516f5==null?void 0x0:_0x1516f5[_0x2faa10(0x83)])===!0x1?_0x1516f5[_0x2faa10(0x25d)](_0x4817cd):this[_0x2faa10(0xb9)])['attachPopupToObject'](_0xceb614,{'componentKey':yr,'direction':_0x2faa10(0x89),'offset':[0x0,_0xdc3205],'extraProps':{'unitId':_0x343b69,'subUnitId':_0x4af560,'drawingId':_0x56d673,'drawingType':_0x18b60e,'shapeType':_0x13c9ad[_0x2faa10(0x253)],'shapeData':_0x13c9ad[_0x2faa10(0xb6)]}});this[_0x2faa10(0x208)]['push'](this[_0x2faa10(0x183)](_0x100f33)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x15af4c=>_0x15af4c[_0x2faa10(0x2e2)]===_0x343b69&&_0x15af4c['subUnitId']===_0x4af560&&_0x15af4c['drawingId']===_0x56d673)||this[_0x2faa10(0x9d)][_0x2faa10(0x82)]([{'unitId':_0x343b69,'subUnitId':_0x4af560,'drawingId':_0x56d673}]);})),_0x5ad67d['add'](_0x8d4679['clearControl$']['subscribe'](()=>{const _0x1d1bbb=_0x57513a;this['_clearPopups'](),this[_0x1d1bbb(0x1c9)][_0x1d1bbb(0x126)](_0x4fe378,!0x1),this[_0x1d1bbb(0x9d)]['focusDrawing'](null);})),_0x5ad67d[_0x57513a(0x2de)](_0x8d4679[_0x57513a(0x128)]['subscribe'](()=>{const _0x5cb299=_0x57513a;this[_0x5cb299(0x28a)]();})),_0x5ad67d[_0x57513a(0x2de)](_0x8d4679[_0x57513a(0x1bc)]['subscribe'](()=>{const _0x14561f=_0x57513a;this[_0x14561f(0x28a)]();})),_0x52399e(()=>{const _0x2a9589=_0x57513a;_0x5ad67d[_0x2a9589(0x254)](),this['_clearPopups']();});}[_0x4b851e(0xe8)](){const _0x19359f=_0x4b851e;this['disposeWithMe'](this[_0x19359f(0x13c)][_0x19359f(0x11c)](_0x19b5d5=>{const _0x5c1d44=_0x19359f;if(_0x19b5d5['id']===wr['id']){let {unitId:_0x1a8255,subUnitId:_0x2eb05d,drawingId:_0x3c8131}=_0x19b5d5[_0x5c1d44(0x29f)];this['_shapeEditPanelVersion']+=0x1,this[_0x5c1d44(0x1e8)]=this['_getShapeInfo'](_0x1a8255,_0x2eb05d,_0x3c8131),this[_0x5c1d44(0x28a)](),this[_0x5c1d44(0x2ce)]();}if(_0x19b5d5['id']===Ti['id']&&(this[_0x5c1d44(0x1e8)]=null,this[_0x5c1d44(0x132)]()),_0x19b5d5['id']===_0x4b69e7['id']){let {unitId:_0x7dbce4,subUnitId:_0x20418d,shapeId:_0x2a7f4d}=_0x19b5d5[_0x5c1d44(0x29f)];if(this[_0x5c1d44(0x1e8)]&&this[_0x5c1d44(0x1e8)][_0x5c1d44(0x2e3)]===_0x2a7f4d){let _0x4fa875=this[_0x5c1d44(0x224)](_0x7dbce4,_0x20418d,_0x2a7f4d);_0x4fa875&&(this[_0x5c1d44(0x298)]+=0x1,_0x4fa875[_0x5c1d44(0xe9)]=this[_0x5c1d44(0x298)],this[_0x5c1d44(0x1e8)]=_0x4fa875,this[_0x5c1d44(0x135)]&&this[_0x5c1d44(0x2ce)]());}}})),this[_0x19359f(0x183)](this[_0x19359f(0x9d)][_0x19359f(0x85)][_0x19359f(0xd9)](_0x354127=>{const _0x3afacc=_0x19359f;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x354127[_0x3afacc(0x8c)]===0x0){this[_0x3afacc(0x1e8)]=null,this[_0x3afacc(0x132)]();return;}if(_0x354127[_0x3afacc(0x8c)]===0x1&&_0x354127[0x0]['drawingType']===_0x514277[_0x3afacc(0xcb)]&&(this[_0x3afacc(0x298)]+=0x1,this['_activeShapeInfo']=this[_0x3afacc(0x224)](_0x354127[0x0][_0x3afacc(0x2e2)],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x5f04d6=_0x354127['filter'](_0x108adb=>_0x108adb[_0x3afacc(0x14f)]===_0x514277[_0x3afacc(0xcb)]);if(_0x354127[_0x3afacc(0x8c)]>0x1&&_0x5f04d6['length']===_0x354127[_0x3afacc(0x8c)]){if(this[_0x3afacc(0x298)]+=0x1,this[_0x3afacc(0x1e8)]=this[_0x3afacc(0x224)](_0x354127[0x0][_0x3afacc(0x2e2)],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this[_0x3afacc(0x1e8)]){this[_0x3afacc(0x2ce)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3afacc(0x224)](_0x354127[0x0]['unitId'],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this[_0x3afacc(0x1e8)]){this[_0x3afacc(0x1e8)][_0x3afacc(0x123)]=!0x0,this[_0x3afacc(0x2ce)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x449219=_0x4b851e;this['_activeShapeInfo']&&(this[_0x449219(0x18b)]=this[_0x449219(0x274)][_0x449219(0x1c0)]({'id':_r,'header':{'title':this[_0x449219(0x1b7)]['t'](_0x449219(0x2e1))},'width':0x184,'children':{'label':_r,...this[_0x449219(0x1e8)]},'onClose':()=>{const _0x15c70b=_0x449219;this[_0x15c70b(0x9d)][_0x15c70b(0x82)](null),this[_0x15c70b(0x1c9)]['setContextValue'](_0x4fe378,!0x1),this[_0x15c70b(0x18b)]=null;}}),this[_0x449219(0x135)]=!0x0);}[_0x4b851e(0x132)](){const _0x369026=_0x4b851e;this[_0x369026(0x135)]=!0x1,this[_0x369026(0x274)][_0x369026(0x77)](_r),this[_0x369026(0x18b)]=null,this[_0x369026(0x1c9)][_0x369026(0x126)](_0x4fe378,!0x1),this[_0x369026(0x9d)][_0x369026(0x82)](null);}};ta=Z([X(0x0,_0x22bed1),X(0x1,_0x2e2475(_0x446fc5)),X(0x2,_0xa31c1),X(0x3,_0x2e2475(_0x1bfe6b)),X(0x4,_0x2e2475(_0x3fae61)),X(0x5,_0x46e4d8),X(0x6,_0x1644d5),X(0x7,_0x2e2475(_0x4817cd)),X(0x8,_0x53c8c3),X(0x9,_0x37a074),X(0xa,_0x2e2475(Fi))],ta);let $=class extends _0x1dddda{constructor(_0x23bfb4=Ei,_0x209026,_0x2b8c7d,_0x8c71d2,_0x3366d6){const _0x1227e5=_0x4b851e;super(),this['_config']=_0x23bfb4,this[_0x1227e5(0x9e)]=_0x209026,this[_0x1227e5(0x13c)]=_0x2b8c7d,this[_0x1227e5(0x2e4)]=_0x8c71d2,this[_0x1227e5(0x1bb)]=_0x3366d6;let {..._0x135010}=_0x2d08ea({},Ei,this[_0x1227e5(0x29d)]);this[_0x1227e5(0x2e4)]['setConfig'](_0x1227e5(0x1db),_0x135010),this['_initCommands']();}[_0x4b851e(0x25e)](){const _0x4f82a3=_0x4b851e;this[_0x4f82a3(0x1bb)][_0x4f82a3(0xe7)](_0x2ce572[_0x4f82a3(0x280)],[Gi]),_0x3da19d(this[_0x4f82a3(0x9e)],[[ta],[Ki],[Q],[$i]]);}['onSteady'](){const _0x4b1d83=_0x4b851e;this[_0x4b1d83(0x9e)][_0x4b1d83(0x2c2)](ta)[_0x4b1d83(0x2b8)]();}[_0x4b851e(0x296)](){const _0x13f191=_0x4b851e;[[Yi],[mr],[Xi]]['forEach'](_0x65ab49=>this[_0x13f191(0x9e)]['add'](_0x65ab49)),_0x3da19d(this[_0x13f191(0x9e)],[[Xi],[mr]]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[Yi]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[zi]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[Qi]),this[_0x13f191(0x1bb)]['registerRenderModule'](_0x2ce572[_0x13f191(0x158)],[Wi]);}[_0x4b851e(0x2a2)](){const _0x4efb3a=_0x4b851e;this[_0x4efb3a(0x9e)][_0x4efb3a(0x2de)]([Ri]),this[_0x4efb3a(0x9e)]['get'](Ri);let _0x3dec5a=this[_0x4efb3a(0x9e)];[[ta],[Ki],[Q],[$i],[Ai],[Fi],[Ui],[Or],[ea],[Vi]][_0x4efb3a(0xd7)](_0xfdf595=>_0x3dec5a[_0x4efb3a(0x2de)](_0xfdf595)),_0x3da19d(this[_0x4efb3a(0x9e)],[[ta],[Ki],[Q],[Ai],[Fi],[Ui],[Or],[ea],[Vi]]);}['_initCommands'](){const _0x13ae55=_0x4b851e;[gr,ar,Ti,wr,Cr,hr,Er,Dr][_0x13ae55(0xd7)](_0xd46bdd=>this[_0x13ae55(0x183)](this[_0x13ae55(0x13c)][_0x13ae55(0x244)](_0xd46bdd)));}};Y($,_0x4b851e(0x24f),_0x2ce572[_0x4b851e(0x158)]),Y($,_0x4b851e(0x26f),_0x4b851e(0x263)),Y($,'packageName',Ci),Y($,_0x4b851e(0xe9),wi),$=Z([_0x152ad8(_0x24931b,_0x566abe,_0x58177f,_0x2fdd1b,_0x40bd64,_0x37f014,_0xbc67aa,_0x40f2a6,_0x3edd01,_0x1df509,_0x4e0dc6,_0x4e1ffc,_0x2dc485),X(0x1,_0x2e2475(_0xe0fbcd)),X(0x2,_0x46e4d8),X(0x3,_0x5a304f),X(0x4,_0x37a074)],$);export{xi as SheetsShapeUIContextualRibbonSchema,Si as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};