@univerjs-pro/sheets-shape-ui 1.0.0-alpha.8 → 1.0.0-beta.1

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 (92) 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/locale/en-US.d.ts +1 -0
  66. package/lib/types/menu/schema.d.ts +1 -0
  67. package/lib/types/menu/shape-format-ribbon.menu.d.ts +20 -0
  68. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +2 -3
  69. package/lib/types/views/shape-format-ribbon/SheetsShapeFormatRibbonControls.d.ts +8 -0
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +20 -20
  91. package/lib/types/views/ShapeOptions.d.ts +0 -26
  92. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xcb6cbb=_0x5971;(function(_0x593b39,_0x57c682){const _0x432504=_0x5971,_0xcd9ef8=_0x593b39();while(!![]){try{const _0x589a54=parseInt(_0x432504(0x2a3))/0x1+-parseInt(_0x432504(0x100))/0x2*(parseInt(_0x432504(0x21e))/0x3)+-parseInt(_0x432504(0x192))/0x4*(parseInt(_0x432504(0x30a))/0x5)+parseInt(_0x432504(0x2df))/0x6+parseInt(_0x432504(0xbf))/0x7*(parseInt(_0x432504(0x19f))/0x8)+parseInt(_0x432504(0x174))/0x9+-parseInt(_0x432504(0x21b))/0xa*(-parseInt(_0x432504(0x261))/0xb);if(_0x589a54===_0x57c682)break;else _0xcd9ef8['push'](_0xcd9ef8['shift']());}catch(_0xd70729){_0xcd9ef8['push'](_0xcd9ef8['shift']());}}}(_0x10e2,0x41949));import{ComponentManager as _0x3e4916,ContextMenuGroup as _0x5e3670,ContextMenuPosition as _0x19ebdc,IMenuManagerService as _0x1aa6d4,ISidebarService as _0x4770b9,IconManager as _0x302aca,MenuItemType as _0x187ab3,RibbonInsertGroup as _0x99ab95,UniverUIPlugin as _0x2863d5,getMenuHiddenObservable as _0x54d985,useDependency as _0x5ead04,useObservable as _0x3e0fd9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x4d85c6,ImageSourceTypeEnum as _0x1d28e9,ShapeArrowSizeEnum as _0x483edf,ShapeArrowTypeEnum as _0x443563,ShapeDefaultConfig as _0x3cbe53,ShapeFillEnum as _0x208105,ShapeLineTypeEnum as _0x3e780b,ShapeModel as _0x508f4b,ShapeRenderModeEnum as _0x30553a,ShapeTypeEnum as _0x4c4784,computeConnectorRouteLayout as _0x5d79b3,getBasicShapeRotateBound as _0x202bf2,isConnectorShape as _0x286130,isCurvedConnectorShape as _0x5b9030,routeConnectorLineShape as _0x502b11}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x246f9b,UniverShapeEditorPlugin as _0x4efd70,createShapeFormulaDocument as _0x267ca5,createShapeTextBoxShapeData as _0x38899d}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x5268cc,InsertSheetsShapeMutation as _0x314d59,RemoveSheetsShapeMutation as _0x1fd47e,SetShapeDrawingDataCommand as _0x28ec43,SheetsShapeService as _0x231cef,ToggleSheetsShapeFlipCommand as _0x44c026,UniverSheetsShapePlugin as _0x47b64b,UpdateConnectorRelationCommand as _0x1ae360,UpdateLineShapeResizeCommand as _0x15b46f,UpdateSheetsShapeDataMutation as _0x528850}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x22122b,CommandType as _0xd030d0,DependentOn as _0x4a9068,Disposable as _0x444b76,DocumentDataModel as _0x1c3437,DrawingTypeEnum as _0x55872c,FOCUSING_COMMON_DRAWINGS as _0x5c6846,FOCUSING_SHAPE_TEXT_EDITOR as _0x2bcc42,HorizontalAlign as _0x166f93,ICommandService as _0x3a72b1,IConfigService as _0x7ad4a5,IContextService as _0x34c0f6,IImageIoService as _0x5939d4,IURLImageService as _0x379500,IUndoRedoService as _0x476dff,IUniverInstanceService as _0x1af83c,Inject as _0x25d6be,Injector as _0x3ca189,LocaleService as _0x498c36,Plugin as _0x325a4b,UniverInstanceType as _0x593ef9,VerticalAlign as _0x4874a7,createInternalEditorID as _0x3ca21e,generateRandomId as _0xf6c8c4,merge as _0x5ed21a,toDisposable as _0x452c8c,touchDependencies as _0x1f2515}from'@univerjs/core';import{CopySheetCommand as _0x5249ee,RemoveSheetCommand as _0x130616,SheetInterceptorService as _0x555ec8,SheetPermissionCheckController as _0x4bb7c3,SheetSkeletonService as _0x414a67,SheetsSelectionsService as _0x2c9660,UniverSheetsPlugin as _0x5dd7ab,WorkbookEditablePermission as _0x3a8356,WorksheetEditPermission as _0x521940,attachRangeWithCoord as _0x2cf26d,discreteRangeToRange as _0xe86510,getSheetCommandTarget as _0x5f445e}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a1ed0,SetDrawingSelectedOperation as _0xc56e65,UniverDrawingPlugin as _0x37224d,getDrawingShapeKeyByDrawingSearch as _0x4f98bd}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1bae0e,Circle as _0x38d822,DRAWING_OBJECT_LAYER_INDEX as _0x338629,DocumentSkeleton as _0xd9ea3b,DocumentViewModel as _0x2f24ed,Documents as _0x189c29,IRenderManagerService as _0x297a94,Image as _0x2c6b0b,RENDER_CLASS_TYPE as _0x407a18,SHEET_VIEWPORT_KEY as _0x61ec49,Shape as _0x30d1c4,Transform as _0x3bab71,UniverRenderEnginePlugin as _0x4579a4,Vector2 as _0x304485}from'@univerjs/engine-render';import{COPY_TYPE as _0xf143f2,ISheetClipboardService as _0x165587,PREDEFINED_HOOK_NAME as _0x403204,SheetCanvasPopManagerService as _0x38b394,SheetPrintInterceptorService as _0x1c54e8,SheetScrollManagerService as _0x3e3bbb,SheetSkeletonManagerService as _0x48c126,UniverSheetsUIPlugin as _0x1d8391,deriveStateFromActiveSheet$ as _0x525c18,getCurrentRangeDisable$ as _0x26b975,getViewportByCell as _0x3dd685}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2c970e,EMPTY as _0x1198ce,Observable as _0x243af9,map as _0x30d3f5,of as _0x9a150f,startWith as _0x3992d1,switchMap as _0x11d4bf}from'rxjs';import{FormulaShapeAnimationController as _0x2acab2,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2b7ae2,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x2a48ef,ShapeEditPanel as _0x369510,ShapeFloatingToolbar as _0xb6f545,ShapeGroupEnum as _0x176d3f,ShapePickerDropdown as _0x29e80a,ShapePickerPanel as _0x41d5aa,ShapeTextEditorContainer as _0x2189a3,ShapeTextFloatMenuRenderControllerBase as _0x4ab995,ShapeTextFloatToolbar as _0x5181cc,UniverShapeEditorUIPlugin as _0x1ee45e,activateDrawingObject as _0x185eb9,buildShapeTextDataUpdate as _0x25c3c6,clearActiveDrawingObjects as _0x5b4b31,drawFormulaShapeAnimationLayers as _0x2e8049,getTextModel as _0x54d766,getTextStyle as _0x5e4bce,normalizeShapeTextModel as _0x5e40d7,plainShapeTextToDocumentData as _0x420376,prepareShapeTextDocumentData as _0x2e4371,resolveFormulaShapeAutoFitSize as _0x46175e,resolveShapeTextDocumentRenderLayout as _0x189c4a,resolveShapeTextEditorBehaviorShapeData as _0x4d5687,resolveShapeTextEditorWrapStrategy as _0x2ad013,shouldAllowShapeTextEditorHostSizeShrink as _0x4f6d3a,shouldClipShapeTextDocument as _0xf99043,useFormulaShapeToolbar as _0x14e335}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x5f53ae,DrawingImageClipService as _0x5773e2,DrawingRenderService as _0x56246f,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3d27a0,OBJECT_LIST_FLOATING_SECTION_ID as _0x5a455a,ObjectListPanelBase as _0x155589,UniverDrawingUIPlugin as _0x1485ee,getCurrentUnitInfo as _0x38af4c,getObjectListPanelLabels as _0x5ac108,getObjectListPanelSectionIdForDrawingType as _0x67bdd6,getObjectListPanelTypeName as _0x2b9a99,insertGroupObject as _0x57d837}from'@univerjs/drawing-ui';import{Fragment as _0x1370ea,jsx as _0x49d3c9,jsxs as _0x568cbe}from'react/jsx-runtime';import{UniverLicensePlugin as _0x573913}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x1d0921,UniverDocsPlugin as _0x449d42}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x2a16ba,DocSelectionRenderService as _0x4b8e76,UniverDocsUIPlugin as _0xd4f97b}from'@univerjs/docs-ui';import{DrawingApplyType as _0x11752e,ISheetDrawingService as _0x2a99b6,RemoveSheetDrawingCommand as _0x535cd6,SetDrawingApplyMutation as _0x555349,SetDrawingArrangeCommand as _0xb4ccfa,SetSheetDrawingCommand as _0x2cc676,UniverSheetsDrawingPlugin as _0x57144b,transformToAxisAlignPosition as _0x5aa2b7,transformToDrawingPosition as _0x43002e}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0xdce9e4,SheetsDrawingGroupCopyPasteController as _0x47dae5,UniverSheetsDrawingUIPlugin as _0x56149f}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x473587,FlipVerticalIcon as _0x1155bd,ObjectLayersIcon as _0x41a10e}from'@univerjs/icons';import{memo as _0x315608,useEffect as _0x2f51d2,useMemo as _0xfae447,useReducer as _0x10f2b3,useState as _0x115a69}from'react';function kn(_0x1e2ef8,_0x370fe7){const _0x4ff1a6=_0x5971;let _0xf86625={};for(let _0x220cb3 of Object[_0x4ff1a6(0x29e)](_0x370fe7)){let _0x49cc52=_0x370fe7[_0x220cb3],_0x3906d9=_0x1e2ef8[_0x220cb3];if(_0x49cc52!==void 0x0){if(_0x3906d9===void 0x0){_0xf86625[_0x220cb3]=void 0x0;continue;}typeof _0x49cc52==_0x4ff1a6(0x21a)&&_0x49cc52&&!Array[_0x4ff1a6(0x2f0)](_0x49cc52)&&typeof _0x3906d9==_0x4ff1a6(0x21a)&&_0x3906d9&&!Array['isArray'](_0x3906d9)?_0xf86625[_0x220cb3]=kn(_0x3906d9,_0x49cc52):_0xf86625[_0x220cb3]=_0x3906d9;}}return _0xf86625;}const An={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x10d),'handler':(_0x4960ed,_0x799bda)=>{const _0x10502c=_0xcb6cbb;let _0x3de65f=_0x4960ed[_0x10502c(0x2da)](_0x231cef),{unitId:_0x1dfe7c,subUnitId:_0x2d64b6,shapeType:_0x570b99,shapeId:_0x4adb29,shapeData:_0x5e2fb8,oldShapeJSON:_0x587b03}=_0x799bda;if(!_0x3de65f[_0x10502c(0x2c4)](_0x1dfe7c,_0x2d64b6,_0x4adb29))return!0x1;let _0x56182b=_0x4960ed['get'](_0x3a72b1),_0x4b8b85=_0x4960ed['get'](_0x476dff),{oldShapeType:_0x45ba37,oldShapeData:_0x631b85={}}=_0x587b03,_0x50a758=kn(_0x631b85,_0x5e2fb8||{}),_0x45a26b={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x570b99,'shapeData':_0x5e2fb8}},_0x4b10e3={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x45ba37,'shapeData':_0x50a758}};return _0x56182b[_0x10502c(0xdc)](_0x45a26b['id'],_0x45a26b['params'])?(_0x4b8b85[_0x10502c(0x2cc)]({'unitID':_0x1dfe7c,'undoMutations':[_0x4b10e3],'redoMutations':[_0x45a26b]}),!0x0):!0x1;}};function _0x5971(_0x5262b0,_0x763d72){_0x5262b0=_0x5262b0-0xb6;const _0x10e225=_0x10e2();let _0x59718e=_0x10e225[_0x5262b0];return _0x59718e;}function jn(_0x2a3349,_0x285fe6,_0x2d0f82,_0x58809d,_0x47b65e,_0x19eb8a){const _0x1b595d=_0xcb6cbb;let _0x3c350e={'unitId':_0x285fe6,'subUnitId':_0x2d0f82,'shapeId':_0x58809d,'shapeData':_0x19eb8a,'oldShapeJSON':_0x47b65e};return _0x2a3349[_0x1b595d(0x29b)](An['id'],_0x3c350e);}function Mn(_0x3d1ed3,_0x5b2c33,_0x346796,_0x74db9a,_0x5f07eb,_0x490762){let _0x562e11={'unitId':_0x5b2c33,'subUnitId':_0x346796,'shapeId':_0x74db9a,'shapeData':_0x490762,'oldShapeJSON':_0x5f07eb};return _0x3d1ed3['executeCommand'](An['id'],_0x562e11);}function Nn(_0x2aaebc){'@babel/helpers - typeof';const _0x4acd06=_0xcb6cbb;return Nn=typeof Symbol=='function'&&typeof Symbol[_0x4acd06(0x175)]==_0x4acd06(0x2b1)?function(_0x199d48){return typeof _0x199d48;}:function(_0x564792){const _0x4b98bd=_0x4acd06;return _0x564792&&typeof Symbol=='function'&&_0x564792[_0x4b98bd(0xbc)]===Symbol&&_0x564792!==Symbol[_0x4b98bd(0xdb)]?_0x4b98bd(0x2b1):typeof _0x564792;},Nn(_0x2aaebc);}function Pn(_0x386c4d,_0xb4a917){const _0x526c48=_0xcb6cbb;if(Nn(_0x386c4d)!='object'||!_0x386c4d)return _0x386c4d;var _0x37aaed=_0x386c4d[Symbol['toPrimitive']];if(_0x37aaed!==void 0x0){var _0x2c27d5=_0x37aaed[_0x526c48(0x25a)](_0x386c4d,_0xb4a917||_0x526c48(0x14b));if(Nn(_0x2c27d5)!=_0x526c48(0x21a))return _0x2c27d5;throw TypeError(_0x526c48(0x1df));}return(_0xb4a917==='string'?String:Number)(_0x386c4d);}function Fn(_0x392155){const _0x3fb1fe=_0xcb6cbb;var _0x1e3d1d=Pn(_0x392155,_0x3fb1fe(0x2ad));return Nn(_0x1e3d1d)=='symbol'?_0x1e3d1d:_0x1e3d1d+'';}function Y(_0x408bd2,_0x1aac38,_0x218ff0){const _0x5c35bb=_0xcb6cbb;return(_0x1aac38=Fn(_0x1aac38))in _0x408bd2?Object[_0x5c35bb(0x12b)](_0x408bd2,_0x1aac38,{'value':_0x218ff0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x408bd2[_0x1aac38]=_0x218ff0,_0x408bd2;}function In(_0x438dcc,_0x2fddb1,_0x12d4ec){const _0x3ff638=_0xcb6cbb;var _0x1e7862;let _0x303fae=_0x4d5687(_0x438dcc,{..._0x2fddb1,'dataModel':{...(_0x1e7862=_0x2fddb1[_0x3ff638(0x24f)])==null?{}:_0x1e7862,..._0x12d4ec?{'doc':_0x12d4ec}:null}}),_0x5c51d1=_0x2ad013(_0x303fae);return{'clip':_0xf99043(_0x303fae,_0x5c51d1),'wrapStrategy':_0x5c51d1};}var Ln=class extends _0x30d1c4{constructor(_0x114fbc,_0x3787b7){const _0x500017=_0xcb6cbb;super(_0x114fbc,_0x3787b7),Y(this,_0x500017(0x243),void 0x0),Y(this,_0x500017(0x28d),new _0x2acab2(()=>this[_0x500017(0x1dd)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x500017(0x27d),_0x55872c[_0x500017(0x1ce)]),Y(this,_0x500017(0x202),!0x0),this['_props']={..._0x3787b7},this[_0x500017(0x28d)][_0x500017(0x2c5)](_0x3787b7[_0x500017(0x148)],_0x3787b7['animateFormulaPresentation']!==!0x1),this[_0x500017(0x316)](),this['_applyFormulaAutoFitSize']();}[_0xcb6cbb(0x316)](){const _0x46c468=_0xcb6cbb;this[_0x46c468(0x27c)][_0x46c468(0x2fe)](_0x33d9b9=>{const _0x2db8d9=_0x46c468;this[_0x2db8d9(0x215)](_0x33d9b9);});}[_0xcb6cbb(0x268)](_0x8003f1){const _0x56ab76=_0xcb6cbb;this[_0x56ab76(0x243)][_0x56ab76(0x2db)]=_0x8003f1;}[_0xcb6cbb(0x285)](_0x986cb2){const _0x164fcd=_0xcb6cbb;this[_0x164fcd(0x243)][_0x164fcd(0xfd)]=_0x986cb2,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x4729b1,_0x16fbc1=!0x0){const _0x3abb0a=_0xcb6cbb;this['_formulaAnimation'][_0x3abb0a(0x2c5)](_0x4729b1,_0x16fbc1),this[_0x3abb0a(0x243)][_0x3abb0a(0x148)]=_0x4729b1,this['_applyFormulaAutoFitSize'](),this[_0x3abb0a(0x1dd)](!0x0);}[_0xcb6cbb(0x210)](){const _0x23b420=_0xcb6cbb;let _0x32a8a5=this[_0x23b420(0x243)][_0x23b420(0x279)],_0x6a7d75=_0x32a8a5[_0x23b420(0x19d)](),_0x3b4c8c=_0x5e40d7(_0x6a7d75==null?void 0x0:_0x6a7d75[_0x23b420(0x24f)]),_0x894940=_0x3b4c8c==null?void 0x0:_0x3b4c8c[_0x23b420(0x185)],_0x1a928f=this[_0x23b420(0x28d)]['getAutoFitPresentations']();if(!_0x894940||_0x1a928f[_0x23b420(0x25d)]===0x0)return;_0x32a8a5['updateContext']({'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]});let _0x34da03=_0x46175e({'documentData':_0x1a928f['map'](_0xf70dbb=>_0x267ca5(_0x894940,_0xf70dbb)),'height':this[_0x23b420(0x123)],'shapeData':_0x32a8a5[_0x23b420(0x113)](),'textRect':_0x32a8a5[_0x23b420(0x26b)]({'left':0x0,'top':0x0,'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]}),'width':this[_0x23b420(0x1fb)]});if(_0x34da03){var _0xc6b3ef;this['resize'](_0x34da03[_0x23b420(0x1fb)],_0x34da03[_0x23b420(0x123)]),(_0xc6b3ef=this[_0x23b420(0xe6)]())==null||(_0xc6b3ef=_0xc6b3ef['getTransformer']())==null||_0xc6b3ef[_0x23b420(0x128)]();}}get['unitId'](){const _0x51683f=_0xcb6cbb;return this[_0x51683f(0x243)][_0x51683f(0x241)];}get[_0xcb6cbb(0x281)](){const _0x12ecc6=_0xcb6cbb;return this['_props'][_0x12ecc6(0x281)];}[_0xcb6cbb(0x215)](_0x3d79f6){const _0x5327ab=_0xcb6cbb;if(this[_0x5327ab(0x243)][_0x5327ab(0x200)]==null||!this[_0x5327ab(0x325)])return;let {width:_0x2de1c5,height:_0x59e524}=this,{width:_0x3ef4ff=0x0,height:_0x440159=0x0}=_0x3d79f6['preValue'],{left:_0x39265d=0x0,top:_0x9ab6aa=0x0,right:_0x9dcd14=0x0,bottom:_0x1b0d71=0x0}=this[_0x5327ab(0x243)][_0x5327ab(0x200)],_0x1553a0=_0x39265d,_0x2823a3=_0x9ab6aa,_0x41e8e5=_0x9dcd14,_0x1a7072=_0x1b0d71,_0x465307=!0x1;if(_0x3ef4ff!==0x0&&_0x3ef4ff!==_0x2de1c5){let _0x337bfd=_0x39265d/_0x3ef4ff,_0x544288=_0x9dcd14/_0x3ef4ff;_0x1553a0=_0x2de1c5*_0x337bfd,_0x41e8e5=_0x2de1c5*_0x544288,_0x465307=!0x0;}if(_0x440159!==0x0&&_0x440159!==_0x59e524){let _0x83074f=_0x9ab6aa/_0x440159,_0x56dc31=_0x1b0d71/_0x440159;_0x2823a3=_0x59e524*_0x83074f,_0x1a7072=_0x59e524*_0x56dc31,_0x465307=!0x0;}_0x465307&&this[_0x5327ab(0xc3)]({'left':_0x1553a0,'top':_0x2823a3,'right':_0x41e8e5,'bottom':_0x1a7072});}['setSrcRect'](_0x2fca13){const _0x202ab1=_0xcb6cbb;this[_0x202ab1(0x243)][_0x202ab1(0x200)]=_0x2fca13,this[_0x202ab1(0x1dd)](!0x0);}[_0xcb6cbb(0x245)](_0x483acd){const _0xe3a2d5=_0xcb6cbb;this[_0xe3a2d5(0x243)][_0xe3a2d5(0xf9)]=_0x483acd,this[_0xe3a2d5(0x1dd)](!0x0);}set['transform'](_0x1b1462){const _0x120435=_0xcb6cbb;this[_0x120435(0x2b5)]=_0x1b1462;}get['transform'](){const _0x861fdb=_0xcb6cbb;this[_0x861fdb(0x2b5)]||this[_0x861fdb(0x2ae)]();let _0x37c486=this['_transform'][_0x861fdb(0x2d1)]();return this[_0x861fdb(0x271)](_0x37c486);}get[_0xcb6cbb(0x279)](){const _0x3497a0=_0xcb6cbb;return this[_0x3497a0(0x243)]['shapeModel'];}get[_0xcb6cbb(0x124)](){const _0x1a795a=_0xcb6cbb;return this[_0x1a795a(0x243)][_0x1a795a(0x124)];}get[_0xcb6cbb(0x213)](){return _0x407a18['SHAPE'];}[_0xcb6cbb(0x2d9)](_0x137e31,_0x2bcf61,_0x395043,_0x12cf09){const _0x6760f8=_0xcb6cbb;let _0x5eee64=this[_0x6760f8(0x243)][_0x6760f8(0x279)];if(!_0x5eee64||!_0x2bcf61)return;let _0x35004b=_0x395043==null?this[_0x6760f8(0x1fb)]:_0x395043,_0xbec58e=_0x12cf09==null?this['height']:_0x12cf09,_0x3c3383={'shapeType':_0x5eee64[_0x6760f8(0xb7)](),'width':_0x35004b,'height':_0xbec58e},_0xda0381={'renderMode':_0x30553a[_0x6760f8(0x282)],'oKey':this['oKey'],'image':this[_0x6760f8(0x243)][_0x6760f8(0xf9)],'angle':this[_0x6760f8(0x31f)]};_0x5eee64['updateContext'](_0x3c3383),_0x137e31[_0x6760f8(0x321)]();let _0x70b2dc={'top':0x0,'left':0x0,'width':_0x35004b,'height':_0xbec58e},_0x31da19=_0x5eee64[_0x6760f8(0x308)](_0x70b2dc);_0x31da19?this['_renderWithCache'](_0x137e31,_0x31da19,_0x263890=>{const _0x468b6b=_0x6760f8;_0x5eee64[_0x468b6b(0x327)](_0x263890,_0x70b2dc,_0xda0381);}):(this[_0x6760f8(0x2dc)](),_0x5eee64[_0x6760f8(0x327)](_0x137e31,_0x70b2dc,_0xda0381)),_0x137e31[_0x6760f8(0x267)]();let _0x2247c9=_0x5eee64[_0x6760f8(0x19d)](),_0x234f56=_0x5eee64['getShapeTextRect'](_0x70b2dc),_0x19c29f=_0x5eee64[_0x6760f8(0x1ef)]();if(_0x2247c9&&_0x234f56&&!_0x19c29f){_0x137e31['save'](),this[_0x6760f8(0x2e0)]()['flipX']&&_0x137e31[_0x6760f8(0x21c)](-0x1,0x1);let _0x45156f=_0x35004b/0x2,_0x36570c=_0xbec58e/0x2;_0x137e31[_0x6760f8(0xfa)](-_0x45156f,-_0x36570c),_0x137e31[_0x6760f8(0xb8)](),this[_0x6760f8(0x18f)](_0x137e31,_0x2247c9,_0x234f56),_0x137e31['restore']();}}[_0xcb6cbb(0x13c)](_0x3a7989){}[_0xcb6cbb(0x18f)](_0x7d94c1,_0x5b4304,_0x48c77f){const _0x3a480d=_0xcb6cbb;var _0x45b084;this['_props'][_0x3a480d(0xfd)]||(!((_0x45b084=_0x5b4304[_0x3a480d(0x24f)])!=null&&_0x45b084['doc'])&&_0x3a480d(0x2fc)in _0x5b4304&&_0x5b4304[_0x3a480d(0x2fc)]===!0x1?this[_0x3a480d(0x1b3)](_0x7d94c1,_0x5b4304,_0x48c77f):this[_0x3a480d(0x159)](_0x7d94c1,_0x5b4304,_0x48c77f));}[_0xcb6cbb(0x1b3)](_0x3b3f81,_0x11a73e,_0x596db2){const _0x15034f=_0xcb6cbb;var _0x5a5ce2;this[_0x15034f(0x159)](_0x3b3f81,{..._0x11a73e,'text':(_0x5a5ce2=_0x11a73e[_0x15034f(0x207)])==null?'':_0x5a5ce2,'dataModel':{'doc':_0x420376(_0x11a73e,_0x15034f(0x1dc)+this['oKey'])}},_0x596db2);}['_drawRichText'](_0xbe77ab,_0x22da18,_0x1ff41b){const _0x318c59=_0xcb6cbb;_0x2e8049(_0xbe77ab,this[_0x318c59(0x28d)],(_0x40b08d,_0x3ad778)=>{const _0x3e70f3=_0x318c59;this[_0x3e70f3(0x197)](_0x40b08d,_0x22da18,_0x1ff41b,_0x3ad778);});}[_0xcb6cbb(0x197)](_0x34dc32,_0x194cf7,_0x40f0c4,_0x2198f7){const _0x20c688=_0xcb6cbb;var _0x550211,_0x24f2b4;let _0x1f00be=this[_0x20c688(0x243)][_0x20c688(0x27f)];if(!_0x194cf7['dataModel']||!_0x1f00be)return;let _0x50f3ef=_0x5e40d7(_0x194cf7[_0x20c688(0x24f)]);if(!_0x50f3ef)return;let _0x261525=_0x50f3ef['doc'];if(!_0x261525)return;let _0x49e00c=_0x267ca5(_0x261525,_0x2198f7),_0x2fea4b=(_0x550211=_0x50f3ef['va'])==null?_0x4874a7[_0x20c688(0x23a)]:_0x550211,_0x4d7341=(_0x24f2b4=_0x50f3ef['ha'])==null?_0x166f93[_0x20c688(0xd2)]:_0x24f2b4,_0x3f7a17=In(this[_0x20c688(0x243)][_0x20c688(0x279)][_0x20c688(0x113)](),_0x194cf7,_0x49e00c),_0x3b4d17=_0x194cf7[_0x20c688(0x195)],_0x21f171=new _0x1c3437(_0x2e4371(_0x49e00c,{'isHorizontal':_0x3b4d17!==!0x1,'textRect':_0x40f0c4,'verticalAlign':_0x2fea4b,'horizontalAlign':_0x4d7341,'wrapStrategy':_0x3f7a17[_0x20c688(0x102)]})),_0x226805=new _0x2f24ed(_0x21f171),_0x88f2e2=_0xd9ea3b[_0x20c688(0x1bb)](_0x226805,_0x1f00be);_0x88f2e2['calculate']();let _0x3a3fd0=_0x88f2e2[_0x20c688(0x2c0)]()['actualHeight'],_0x2b6f31=_0x189c4a({'contentHeight':_0x3a3fd0,'verticalAlign':_0x2fea4b,'viewportHeight':_0x40f0c4['height']});_0x21f171['updateDocumentStyle']({'pageSize':{'width':_0x3b4d17===!0x1?_0x40f0c4[_0x20c688(0x123)]:_0x40f0c4[_0x20c688(0x1fb)],'height':_0x2b6f31[_0x20c688(0x170)]}}),_0x21f171[_0x20c688(0x103)]({'t':_0x2b6f31[_0x20c688(0x22e)]}),_0x88f2e2['calculate']();let _0x4a63c0=new _0x189c29(_0x20c688(0x1cb)+this[_0x20c688(0x303)],_0x88f2e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x20c688(0x1dd)](!0x0)});_0x4a63c0[_0x20c688(0x10a)](_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31[_0x20c688(0x170)]),_0x34dc32[_0x20c688(0x321)](),_0x34dc32[_0x20c688(0x313)](_0x40f0c4[_0x20c688(0x1db)],_0x40f0c4[_0x20c688(0x163)]),_0x3f7a17['clip']&&(_0x34dc32[_0x20c688(0xb8)](),_0x34dc32['rect'](0x0,_0x2b6f31[_0x20c688(0xcb)],_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31['clipHeight']),_0x34dc32[_0x20c688(0x10b)]()),_0x2b6f31['contentVerticalOffset']&&_0x34dc32[_0x20c688(0x313)](0x0,_0x2b6f31[_0x20c688(0x110)]),_0x4a63c0['draw'](_0x34dc32),_0x34dc32[_0x20c688(0x267)](),_0x4a63c0[_0x20c688(0x20e)](),_0x88f2e2[_0x20c688(0x20e)](),_0x226805['dispose'](),_0x21f171['dispose']();}['render'](_0x14a44f,_0x426efd,_0x83d178=!0x1){const _0xa71962=_0xcb6cbb;if(!this[_0xa71962(0x1f5)])return this[_0xa71962(0x1dd)](!0x1),this;let {width:_0x3d7864,height:_0x11b01d,left:_0xa5d8ab,top:_0x17f6d0}=this,_0x8b1643=this[_0xa71962(0x1f3)]();if(_0x3d7864=_0x8b1643[_0xa71962(0x1fb)],_0x11b01d=_0x8b1643[_0xa71962(0x123)],_0xa5d8ab=_0x8b1643['left'],_0x17f6d0=_0x8b1643[_0xa71962(0x163)],this[_0xa71962(0x324)](_0x426efd)){let {top:_0x56b129,left:_0x3e1da0,bottom:_0xc3248e,right:_0x382fdb}=_0x426efd[_0xa71962(0xf8)];if(_0x3d7864+this['strokeWidth']+_0xa5d8ab<_0x3e1da0||_0x382fdb<_0xa5d8ab||_0x11b01d+this[_0xa71962(0x189)]+_0x17f6d0<_0x56b129||_0xc3248e<_0x17f6d0)return this;}let _0x4ed66b=_0xa5d8ab+_0x3d7864/0x2,_0x36a838=_0x17f6d0+_0x11b01d/0x2,_0x1e84a4=this[_0xa71962(0xce)][_0xa71962(0x1c9)]();if(this[_0xa71962(0x243)][_0xa71962(0xfd)]){let _0x1d9681=this[_0xa71962(0x2e0)](),_0x5f16af=new _0x3bab71();_0x5f16af[_0xa71962(0x1d9)]({..._0x1d9681}),_0x1e84a4=_0x5f16af['getMatrix']();}return _0x14a44f[_0xa71962(0x321)](),this[_0xa71962(0x243)][_0xa71962(0x279)][_0xa71962(0x306)]===!0x0||_0x14a44f['transform'](_0x1e84a4[0x0],_0x1e84a4[0x1],_0x1e84a4[0x2],_0x1e84a4[0x3],_0x4ed66b,_0x36a838),this[_0xa71962(0x2d9)](_0x14a44f,_0x426efd,_0x3d7864,_0x11b01d),_0x14a44f[_0xa71962(0x267)](),this[_0xa71962(0x1dd)](!0x1),this;}[_0xcb6cbb(0x242)](_0x3ab02c){const _0x120a12=_0xcb6cbb;let {left:_0x169c80,top:_0x6f015b,width:_0x3942a0,height:_0x2cafee}=this[_0x120a12(0x1f3)](),_0x37cbdc=this['transform'][_0x120a12(0x1c9)](),_0x5b6692=_0x169c80+_0x3942a0/0x2,_0x15c4d9=_0x6f015b+_0x2cafee/0x2,_0x395448=new _0x3bab71([_0x37cbdc[0x0],_0x37cbdc[0x1],_0x37cbdc[0x2],_0x37cbdc[0x3],_0x5b6692,_0x15c4d9]),_0x150033=this[_0x120a12(0x19c)]();return(this[_0x120a12(0x2a0)]&&(_0x150033==null?void 0x0:_0x150033[_0x120a12(0x213)])===_0x407a18[_0x120a12(0x2c8)]?_0x150033[_0x120a12(0x262)][_0x120a12(0xe1)](_0x395448):_0x395448)['invert']()[_0x120a12(0x235)](_0x3ab02c);}['isHit'](_0x472c85){const _0x1a82bf=_0xcb6cbb;let {left:_0x2f0d3f,top:_0x55dfb7,width:_0x5c1e9d,height:_0x35c913}=this['getRealBound'](),_0x20c2e5=_0x2f0d3f+_0x5c1e9d/0x2,_0x92c4a=_0x55dfb7+_0x35c913/0x2,_0x3cadd2=this['transform'][_0x1a82bf(0x1c9)](),_0x410361=new _0x3bab71([_0x3cadd2[0x0],_0x3cadd2[0x1],_0x3cadd2[0x2],_0x3cadd2[0x3],_0x20c2e5,_0x92c4a]),_0x11555a=this[_0x1a82bf(0x19c)](),_0x291ac1=(this[_0x1a82bf(0x2a0)]&&(_0x11555a==null?void 0x0:_0x11555a[_0x1a82bf(0x213)])===_0x407a18[_0x1a82bf(0x2c8)]?_0x11555a[_0x1a82bf(0x262)][_0x1a82bf(0xe1)](_0x410361):_0x410361)['invert']()['applyPoint'](_0x472c85),_0x49b70f=_0x5c1e9d/0x2,_0x5276de=_0x35c913/0x2,_0x147532=this[_0x1a82bf(0x243)][_0x1a82bf(0x279)];return _0x147532&&_0x147532[_0x1a82bf(0x1ef)]()?_0x147532[_0x1a82bf(0x209)](_0x291ac1['x'],_0x291ac1['y'],_0x5c1e9d,_0x35c913):_0x291ac1['x']>=-_0x49b70f-this['strokeWidth']/0x2&&_0x291ac1['x']<=_0x49b70f+this['strokeWidth']/0x2&&_0x291ac1['y']>=-_0x5276de-this[_0x1a82bf(0x189)]/0x2&&_0x291ac1['y']<=_0x5276de+this['strokeWidth']/0x2;}[_0xcb6cbb(0x20e)](){const _0x4ad48c=_0xcb6cbb;this[_0x4ad48c(0x28d)][_0x4ad48c(0x20e)](),this[_0x4ad48c(0x243)][_0x4ad48c(0x279)]=null,super['dispose']();}},Rn=class extends _0x30d1c4{constructor(_0x5dbefc,_0x359a29){const _0x1a6f6e=_0xcb6cbb;super(_0x5dbefc,_0x359a29),Y(this,_0x1a6f6e(0x252),null),Y(this,_0x1a6f6e(0x275),null),Y(this,'_unitId',null),Y(this,_0x1a6f6e(0x13b),null),_0x359a29&&this[_0x1a6f6e(0x315)](_0x359a29);}[_0xcb6cbb(0x23d)](){const _0x96573e=_0xcb6cbb;return{'unitId':this[_0x96573e(0x2aa)],'subUnitId':this[_0x96573e(0x13b)],'drawingId':this[_0x96573e(0x252)]};}[_0xcb6cbb(0x315)](_0x2d448c){const _0x4b00ab=_0xcb6cbb;_0x2d448c[_0x4b00ab(0x124)]!==void 0x0&&(this[_0x4b00ab(0x252)]=_0x2d448c[_0x4b00ab(0x124)]),_0x2d448c[_0x4b00ab(0x2bc)]!==void 0x0&&(this[_0x4b00ab(0x275)]=_0x2d448c[_0x4b00ab(0x2bc)]),_0x2d448c[_0x4b00ab(0x241)]!==void 0x0&&(this['_unitId']=_0x2d448c[_0x4b00ab(0x241)]),_0x2d448c[_0x4b00ab(0x281)]!==void 0x0&&(this[_0x4b00ab(0x13b)]=_0x2d448c[_0x4b00ab(0x281)]),this[_0x4b00ab(0xdd)]({'width':_0x2d448c[_0x4b00ab(0x1fb)],'height':_0x2d448c[_0x4b00ab(0x123)]});}[_0xcb6cbb(0x2d9)](_0x2cb7a9){const _0x490517=_0xcb6cbb;_0x38d822[_0x490517(0x264)](_0x2cb7a9,{'radius':_0x3cbe53[_0x490517(0xf0)],'fill':_0x3cbe53['adjHandleFill'],'stroke':_0x3cbe53[_0x490517(0x217)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x3335bd,_0x444e31){return function(_0x5f174e,_0x4072fd){_0x444e31(_0x5f174e,_0x4072fd,_0x3335bd);};}function Z(_0x25adef,_0x16c74f,_0x53b56d,_0x141024){const _0x35550d=_0xcb6cbb;var _0x79103e=arguments[_0x35550d(0x25d)],_0x9a7d94=_0x79103e<0x3?_0x16c74f:_0x141024===null?_0x141024=Object[_0x35550d(0x1fe)](_0x16c74f,_0x53b56d):_0x141024,_0x379af6;if(typeof Reflect==_0x35550d(0x21a)&&typeof Reflect['decorate']=='function')_0x9a7d94=Reflect[_0x35550d(0x218)](_0x25adef,_0x16c74f,_0x53b56d,_0x141024);else{for(var _0x359bf3=_0x25adef[_0x35550d(0x25d)]-0x1;_0x359bf3>=0x0;_0x359bf3--)(_0x379af6=_0x25adef[_0x359bf3])&&(_0x9a7d94=(_0x79103e<0x3?_0x379af6(_0x9a7d94):_0x79103e>0x3?_0x379af6(_0x16c74f,_0x53b56d,_0x9a7d94):_0x379af6(_0x16c74f,_0x53b56d))||_0x9a7d94);}return _0x79103e>0x3&&_0x9a7d94&&Object[_0x35550d(0x12b)](_0x16c74f,_0x53b56d,_0x9a7d94),_0x9a7d94;}let Q=class extends _0x444b76{constructor(_0x4c374d,_0x1dde68,_0x2f8fe2,_0x4ea707,_0x52c811,_0x3fbd68){const _0x32be1c=_0xcb6cbb;super(),this[_0x32be1c(0x1ad)]=_0x4c374d,this['_sheetsShapeService']=_0x1dde68,this['_localeService']=_0x2f8fe2,this[_0x32be1c(0x317)]=_0x4ea707,this[_0x32be1c(0x145)]=_0x52c811,this[_0x32be1c(0x2ce)]=_0x3fbd68,Y(this,_0x32be1c(0x164),new Map()),this[_0x32be1c(0x2d6)](this['_shapeFormulaService'][_0x32be1c(0x18b)][_0x32be1c(0x2f7)](_0x51559e=>{const _0x5e2ad1=_0x32be1c;var _0x6335b;(_0x6335b=this['_formulaShapes'][_0x5e2ad1(0x2da)](this[_0x5e2ad1(0x105)](_0x51559e[_0x5e2ad1(0x241)],_0x51559e[_0x5e2ad1(0x281)],_0x51559e[_0x5e2ad1(0x124)])))==null||_0x6335b[_0x5e2ad1(0x26a)](_0x5e120a=>_0x5e120a['setFormulaPresentation'](_0x51559e[_0x5e2ad1(0xe0)],_0x51559e['animationEnabled']));})),this[_0x32be1c(0x2d6)](this[_0x32be1c(0x1ad)]['remove$'][_0x32be1c(0x2f7)](_0x2bb53d=>{const _0x3c0927=_0x32be1c;_0x2bb53d[_0x3c0927(0x26a)](_0x5351b8=>{const _0x1f9a4c=_0x3c0927;this[_0x1f9a4c(0x2ce)][_0x1f9a4c(0xff)]({'unitId':_0x5351b8[_0x1f9a4c(0x241)],'subUnitId':_0x5351b8[_0x1f9a4c(0x281)],'shapeId':_0x5351b8[_0x1f9a4c(0x10e)]}),this[_0x1f9a4c(0x164)][_0x1f9a4c(0x2a6)](this[_0x1f9a4c(0x105)](_0x5351b8[_0x1f9a4c(0x241)],_0x5351b8[_0x1f9a4c(0x281)],_0x5351b8[_0x1f9a4c(0x10e)]));});}));}[_0xcb6cbb(0x1f9)](_0x294da3,_0x50b2f5,_0x27a4c6){const _0x266e10=_0xcb6cbb;let {transform:_0x543189,drawingType:_0xa63eed,srcRect:_0x59042e,prstGeom:_0x32517b,groupId:_0x1b1643,unitId:_0x51ae52,subUnitId:_0x52f980,drawingId:_0x2a761d,isMultiTransform:_0x54cc99,transforms:_0x1cf848,hidden:_0xc70a49,selectable:_0x5254ba}=_0x294da3;if(_0xa63eed!==_0x55872c[_0x266e10(0x1ce)]||!this['_drawingManagerService'][_0x266e10(0x2ef)]()||_0x543189==null)return;let _0x1f12f3=this[_0x266e10(0x1ad)][_0x266e10(0x1e6)]();_0x1f12f3&&_0x50b2f5[_0x266e10(0x2ee)](_0x2b7ae2);let _0x219575=_0x54cc99&&_0x1cf848?_0x1cf848:[_0x543189],_0x21303e=[];for(let _0x1667b0 of _0x219575){let {left:_0x44372f,top:_0x252a3d,width:_0x284fb2,height:_0x541411,angle:_0x575f32,flipX:_0x314ca2,flipY:_0x3c2e75,skewX:_0x5c88f1,skewY:_0x18dd14}=_0x1667b0,_0x2bc4c2=_0x219575[_0x266e10(0xd1)](_0x1667b0),_0x49050d=_0x4f98bd({'unitId':_0x51ae52,'subUnitId':_0x52f980,'drawingId':_0x2a761d},_0x54cc99?_0x2bc4c2:void 0x0),_0x302e76=_0x50b2f5[_0x266e10(0x114)](_0x49050d);if(_0x302e76!=null){let _0x215e82={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x302e76 instanceof Ln&&this[_0x266e10(0x129)](_0x302e76,_0x215e82),_0x302e76[_0x266e10(0xdd)]({'left':_0x44372f,'top':_0x252a3d,'width':_0x284fb2,'height':_0x541411,'angle':_0x575f32,'flipX':_0x314ca2,'flipY':_0x3c2e75,'skewX':_0x5c88f1,'skewY':_0x18dd14});continue;}let _0x5cdfb4=this[_0x266e10(0x1ad)][_0x266e10(0x14a)](_0x51ae52,_0x52f980),_0x387a5d=_0x5cdfb4[_0x266e10(0xd1)](_0x2a761d);if(_0x50b2f5['getObjectIncludeInGroup'](_0x49050d)||!this[_0x266e10(0x1ad)][_0x266e10(0x2ef)]())continue;let _0x381f5c=this[_0x266e10(0x287)][_0x266e10(0x2c4)](_0x51ae52,_0x52f980,_0x2a761d);if(!_0x381f5c)continue;let _0x40cd98=_0x286130(_0x381f5c[_0x266e10(0xb7)]()),_0x3ca477=_0x381f5c['getShapeData']()[_0x266e10(0x138)],_0x4a111e={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x3ca477&&this[_0x266e10(0x2ce)][_0x266e10(0xfb)](_0x4a111e,_0x3ca477);let _0x5ea9b2=new Ln(_0x49050d,{..._0x40cd98?{..._0x1667b0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x1667b0},'zIndex':_0x387a5d===-0x1?_0x5cdfb4[_0x266e10(0x25d)]-0x1:_0x387a5d,'shapeModel':_0x381f5c,'localeService':this[_0x266e10(0x158)],'shapeId':_0x2a761d,'unitId':_0x51ae52,'subUnitId':_0x52f980,'visible':_0xc70a49!==!0x0,'evented':_0x5254ba!==!0x1,'formulaPresentation':_0x3ca477?this['_shapeFormulaService'][_0x266e10(0x1f4)](_0x4a111e):void 0x0,'animateFormulaPresentation':(_0x3ca477==null?void 0x0:_0x3ca477[_0x266e10(0x1a3)])!==!0x1});if(_0x3ca477){var _0x540411;let _0x409220=this[_0x266e10(0x105)](_0x51ae52,_0x52f980,_0x2a761d),_0x3f4098=(_0x540411=this[_0x266e10(0x164)][_0x266e10(0x2da)](_0x409220))==null?new Set():_0x540411;_0x3f4098['add'](_0x5ea9b2),this['_formulaShapes'][_0x266e10(0x26e)](_0x409220,_0x3f4098);}_0x50b2f5[_0x266e10(0x212)](_0x5ea9b2,_0x338629),_0x1f12f3&&_0x50b2f5['attachTransformerTo'](_0x5ea9b2),_0x1b1643&&_0x57d837({'drawingId':_0x1b1643,'unitId':_0x51ae52,'subUnitId':_0x52f980},_0x5ea9b2,_0x50b2f5,this['_drawingManagerService']),_0x32517b!=null&&_0x5ea9b2['setPrstGeom'](_0x32517b),_0x59042e!=null&&_0x5ea9b2[_0x266e10(0xc3)](_0x59042e);let _0x184ff5=this[_0x266e10(0x1e5)](_0x5ea9b2,_0x381f5c[_0x266e10(0x113)]());if(_0x184ff5){var _0x12a0cf;_0x27a4c6==null||(_0x12a0cf=_0x27a4c6[_0x266e10(0x1ba)])==null||_0x12a0cf[_0x266e10(0x1b9)](_0x184ff5);}_0x21303e[_0x266e10(0x311)](_0x5ea9b2);}return _0x21303e;}[_0xcb6cbb(0x105)](_0x5a1c04,_0xbb7090,_0x4f9770){return _0x5a1c04+'\x00'+_0xbb7090+'\x00'+_0x4f9770;}[_0xcb6cbb(0x129)](_0x1b0437,_0x1a3097){const _0x1f9746=_0xcb6cbb;let _0x35ef15=this['_sheetsShapeService'][_0x1f9746(0x2c4)](_0x1a3097['unitId'],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]),_0x4ec5d5=_0x35ef15==null?void 0x0:_0x35ef15[_0x1f9746(0x113)]()[_0x1f9746(0x138)],_0x44f65a=this[_0x1f9746(0x105)](_0x1a3097[_0x1f9746(0x241)],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]);if(_0x4ec5d5){var _0x5a9aaa;this[_0x1f9746(0x2ce)][_0x1f9746(0xfb)](_0x1a3097,_0x4ec5d5);let _0x5d3d0c=(_0x5a9aaa=this[_0x1f9746(0x164)][_0x1f9746(0x2da)](_0x44f65a))==null?new Set():_0x5a9aaa;_0x5d3d0c['add'](_0x1b0437),this[_0x1f9746(0x164)][_0x1f9746(0x26e)](_0x44f65a,_0x5d3d0c);}else{var _0x2a9a4a;this[_0x1f9746(0x2ce)][_0x1f9746(0xff)](_0x1a3097),(_0x2a9a4a=this[_0x1f9746(0x164)]['get'](_0x44f65a))==null||_0x2a9a4a[_0x1f9746(0x2a6)](_0x1b0437);}_0x1b0437['setFormulaPresentation'](_0x4ec5d5?this[_0x1f9746(0x2ce)][_0x1f9746(0x1f4)](_0x1a3097):void 0x0,(_0x4ec5d5==null?void 0x0:_0x4ec5d5[_0x1f9746(0x1a3)])!==!0x1);}[_0xcb6cbb(0x15c)](_0x55eecc){const _0x2ce339=_0xcb6cbb;let _0x1f9cf2=_0x55eecc['shapeModel'][_0x2ce339(0x113)](),_0x1a359b=_0x1f9cf2[_0x2ce339(0x2e6)];if(!_0x1a359b||_0x1a359b[_0x2ce339(0x22a)]!==_0x208105[_0x2ce339(0x14c)]||!_0x1a359b['fillImageSource']){_0x55eecc['setFillImage'](void 0x0);return;}this[_0x2ce339(0x1e5)](_0x55eecc,_0x1f9cf2);}[_0xcb6cbb(0x1e5)](_0x1ee015,_0x5695ee){const _0x2709cc=_0xcb6cbb;var _0x11cff2;let _0x7f5bc9=_0x5695ee[_0x2709cc(0x2e6)];if(!_0x7f5bc9||_0x7f5bc9[_0x2709cc(0x22a)]!==_0x208105[_0x2709cc(0x14c)]||!_0x7f5bc9[_0x2709cc(0xbd)])return;let _0x5338ee=_0x7f5bc9['fillImageSource'],_0x5ba108=(_0x11cff2=_0x7f5bc9[_0x2709cc(0xcf)])==null?_0x1d28e9[_0x2709cc(0x2af)]:_0x11cff2,_0x4e972d=this['_imageIoService'][_0x2709cc(0x297)](_0x5338ee,_0x5ba108);if(_0x4e972d){_0x1ee015[_0x2709cc(0x245)](_0x4e972d);return;}return this[_0x2709cc(0x223)](_0x1ee015,_0x5338ee,_0x5ba108);}async[_0xcb6cbb(0x223)](_0x319bdf,_0x2d067f,_0x3e5a58){const _0x3be791=_0xcb6cbb;let _0x21f6f1;try{if(_0x3e5a58===_0x1d28e9['UUID'])_0x21f6f1=await this[_0x3be791(0x317)][_0x3be791(0x11e)](_0x2d067f);else{if(_0x3e5a58===_0x1d28e9[_0x3be791(0x2af)])try{_0x21f6f1=await this[_0x3be791(0x145)][_0x3be791(0x11e)](_0x2d067f);}catch{_0x21f6f1=_0x2d067f;}else _0x21f6f1=_0x2d067f;}}catch(_0x123a81){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x123a81);return;}await new Promise(_0x3811b8=>{const _0x202f90=_0x3be791;let _0x5dd550=new window[(_0x202f90(0x155))]();_0x5dd550[_0x202f90(0x238)]=()=>{const _0x2d6e8d=_0x202f90;this[_0x2d6e8d(0x317)][_0x2d6e8d(0x2bb)](_0x2d067f,_0x3e5a58,_0x5dd550),_0x319bdf[_0x2d6e8d(0x245)](_0x5dd550),_0x3811b8();},_0x5dd550['onerror']=()=>{const _0x37be4f=_0x202f90;console[_0x37be4f(0x176)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x2d067f),_0x3811b8();},_0x5dd550[_0x202f90(0x2d4)]=_0x21f6f1;});}};Q=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x498c36)),X(0x3,_0x5939d4),X(0x4,_0x379500),X(0x5,_0x25d6be(_0x246f9b))],Q);let zn=class extends _0x444b76{constructor(_0x5c0355,_0x39feaa,_0x1ec9f7,_0x43156b,_0x3865ee,_0x470c70){const _0x5d43ba=_0xcb6cbb;super(),this[_0x5d43ba(0x1ad)]=_0x5c0355,this[_0x5d43ba(0x287)]=_0x39feaa,this[_0x5d43ba(0x154)]=_0x1ec9f7,this['_sheetDrawingShapeRenderController']=_0x43156b,this[_0x5d43ba(0x23f)]=_0x3865ee,this[_0x5d43ba(0x300)]=_0x470c70,Y(this,_0x5d43ba(0x2c1),null),Y(this,_0x5d43ba(0x2aa),null),Y(this,_0x5d43ba(0x13b),null),Y(this,_0x5d43ba(0xfe),void 0x0),Y(this,_0x5d43ba(0x1e9),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x5d43ba(0x277),0x0),Y(this,_0x5d43ba(0x2a4),0x0),Y(this,_0x5d43ba(0x198),0x0),Y(this,_0x5d43ba(0x2e3),!0x1),Y(this,_0x5d43ba(0x2f5),void 0x0),Y(this,_0x5d43ba(0xf6),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,_0x5d43ba(0x17a),void 0x0),Y(this,_0x5d43ba(0x1c5),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0xcb6cbb(0xf4)](_0x1c0ee9,_0x3838f0,_0x3dac05){const _0x1bc536=_0xcb6cbb;let _0x481314=this[_0x1bc536(0x287)][_0x1bc536(0x2c4)](_0x1c0ee9,_0x3838f0,_0x3dac05);if(_0x481314)return _0x481314['getDrawingPoints']();}[_0xcb6cbb(0x24b)](){const _0x1b55a9=_0xcb6cbb;this[_0x1b55a9(0x1a5)]();}[_0xcb6cbb(0x2b3)](){const _0x5eaa84=_0xcb6cbb;this[_0x5eaa84(0x151)](!0x0);}[_0xcb6cbb(0x28c)](_0x722a45){const _0x8f011b=_0xcb6cbb;this[_0x8f011b(0x1c5)]=_0x722a45;}[_0xcb6cbb(0x2a9)](_0x82f24c,_0x54ddbd,_0x33da8b,_0x2395ef){const _0x30463e=_0xcb6cbb;let _0x34f0e4=this['_sheetsShapeService'][_0x30463e(0x2c4)](_0x82f24c,_0x54ddbd,_0x33da8b);if(_0x34f0e4)return _0x34f0e4['getAdjustInfoByName'](_0x2395ef);}['_createShapeAdjustControls'](_0x292658=!0x1){const _0x488004=_0xcb6cbb;if(this[_0x488004(0x2aa)]===null||this['_subUnitId']===null||this[_0x488004(0x2c1)]===null)return;let _0xcbc70d=this[_0x488004(0x154)]['getRenderUnitById'](this['_unitId']);if(!_0xcbc70d||!_0xcbc70d[_0x488004(0x2dd)](_0x48c126)[_0x488004(0x146)]())return;let {scene:_0x1fab8d}=_0xcbc70d,_0x16bee6={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x488004(0x2c1)]},_0x5bf21d=this[_0x488004(0x1ad)][_0x488004(0x16d)](_0x16bee6),{transform:_0x504336}=_0x5bf21d;if(!_0x504336||_0x5bf21d[_0x488004(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;let {left:_0x524474,top:_0x2ad9c3,width:_0x2df0b9,height:_0x3b8491,flipX:_0x508b1f,flipY:_0x12ab3b,angle:_0x326ec4=0x0}=_0x504336;if(_0x524474===void 0x0||_0x2ad9c3===void 0x0)return;if(_0x292658){let _0x4daf7b=this[_0x488004(0x287)][_0x488004(0x2c4)](this[_0x488004(0x2aa)],this[_0x488004(0x13b)],this[_0x488004(0x2c1)]);_0x4daf7b==null||_0x4daf7b[_0x488004(0x1d6)]({'width':_0x2df0b9==null?0x0:_0x2df0b9,'height':_0x3b8491==null?0x0:_0x3b8491}),this[_0x488004(0xfe)]=_0x4daf7b==null?void 0x0:_0x4daf7b[_0x488004(0x13c)]();}let _0x1f5ba0=this[_0x488004(0xfe)];for(let _0x2ccd61=0x0;_0x2ccd61<_0x1f5ba0[_0x488004(0x25d)];_0x2ccd61++){let _0x367ecf=_0x1f5ba0[_0x2ccd61],_0x4e6d44=_0x367ecf['x'],_0x1ea037=_0x367ecf['y'];if(_0x508b1f&&(_0x4e6d44=(_0x2df0b9||0x0)-_0x4e6d44),_0x12ab3b&&(_0x1ea037=(_0x3b8491||0x0)-_0x1ea037),_0x326ec4!==0x0){let _0x207c3c=(_0x2df0b9||0x0)/0x2,_0x930e35=(_0x3b8491||0x0)/0x2,_0xe38a26=_0x326ec4*Math['PI']/0xb4,_0x425e26=Math[_0x488004(0x20b)](_0xe38a26),_0x3df39d=Math['sin'](_0xe38a26),_0x1944da=_0x4e6d44-_0x207c3c,_0x344faa=_0x1ea037-_0x930e35;_0x4e6d44=_0x207c3c+(_0x1944da*_0x425e26-_0x344faa*_0x3df39d),_0x1ea037=_0x930e35+(_0x1944da*_0x3df39d+_0x344faa*_0x425e26);}let _0x219062={'x':_0x4e6d44,'y':_0x1ea037,'adjName':_0x367ecf['adjName']};this[_0x488004(0x1a8)](_0x1fab8d,_0x219062,_0x219062[_0x488004(0x2bc)],_0x524474,_0x2ad9c3,this['_unitId'],this[_0x488004(0x13b)]);}}[_0xcb6cbb(0x151)](_0x237d30=!0x1){const _0x1f3410=_0xcb6cbb;_0x237d30&&(this[_0x1f3410(0x1a5)](),this[_0x1f3410(0x1d8)](_0x237d30));}['_addShapeAdjustControl'](_0x45ef51,_0x8b708a,_0x1ba220,_0x2b3f46,_0xc115dd,_0xa47f28,_0x4eae92){const _0x59fb99=_0xcb6cbb;if(!this[_0x59fb99(0x2c1)])return;let _0x2bebc0=_0x45ef51[_0x59fb99(0x114)](_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220);if(_0x2bebc0){_0x2bebc0[_0x59fb99(0xdd)]({'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53['adjHandleSize']});return;}let _0x1c2ca2={'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53[_0x59fb99(0xf0)],'adjName':_0x1ba220,'shapeId':this[_0x59fb99(0x2c1)],'unitId':_0xa47f28,'subUnitId':_0x4eae92,'width':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'height':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0},_0x5854b5=new Rn(_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220,_0x1c2ca2);this[_0x59fb99(0x1e9)]['push'](_0x5854b5),this['_attachAdjustEvent'](_0x5854b5,_0x45ef51,_0x1ba220),_0x45ef51[_0x59fb99(0x212)](_0x5854b5,_0x338629+0x1);}[_0xcb6cbb(0x1a5)](){const _0x456d5f=_0xcb6cbb;this[_0x456d5f(0x1e9)][_0x456d5f(0x25d)]!==0x0&&(this['_shapes']['forEach'](_0x281c5b=>{const _0x634b0f=_0x456d5f;_0x281c5b[_0x634b0f(0x20e)]();}),this[_0x456d5f(0x1e9)]=[]);}[_0xcb6cbb(0x119)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x4a815d,_0x54e862){const _0x12c73b=_0xcb6cbb;var _0x1ad493;let _0x46134d={'x':0x0,'y':0x0};if(!_0x4a815d||!_0x54e862)return _0x46134d;let _0x2f2e03=this[_0x12c73b(0x154)][_0x12c73b(0x133)](_0x4a815d);if(!_0x2f2e03||!_0x2f2e03[_0x12c73b(0x2dd)](_0x48c126)[_0x12c73b(0x1bf)](_0x54e862))return _0x46134d;let _0x231658=_0x2f2e03['with'](_0x3e3bbb),_0x38cce5=_0x231658==null?void 0x0:_0x231658[_0x12c73b(0x244)]();if(!_0x38cce5)return _0x46134d;let _0x42fa94=(_0x1ad493=this[_0x12c73b(0x23f)][_0x12c73b(0x187)](_0x4a815d))==null?void 0x0:_0x1ad493[_0x12c73b(0x26d)](_0x54e862);if(!_0x42fa94)return _0x46134d;let _0x4e8999=_0x3dd685(_0x38cce5[_0x12c73b(0x2f9)],_0x38cce5[_0x12c73b(0x234)],_0x2f2e03['scene'],_0x42fa94);return _0x4e8999?{'x':_0x4e8999[_0x12c73b(0x1c4)],'y':_0x4e8999[_0x12c73b(0x1e0)]}:_0x46134d;}[_0xcb6cbb(0xc4)](_0x6c55df,_0x338e8a){const _0x15e996=_0xcb6cbb;var _0x38421b,_0x2ee625;let _0x5a58d5=(_0x38421b=this[_0x15e996(0x23f)][_0x15e996(0x187)](_0x6c55df))==null?void 0x0:_0x38421b[_0x15e996(0x26d)](_0x338e8a);return(_0x2ee625=_0x5a58d5==null?void 0x0:_0x5a58d5['getZoomRatio']())==null?0x1:_0x2ee625;}[_0xcb6cbb(0x131)](_0x1c2e95,_0x379a05,_0x450b1b){const _0x57cf75=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1c2e95[_0x57cf75(0xc9)][_0x57cf75(0x2fe)]((_0x148485,_0x11ead4)=>{const _0xbccabf=_0x57cf75;var _0x38a364,_0x4611ed,_0x39acf0,_0x1b23c2,_0x45802a;let _0x31cc59=_0x1c2e95[_0xbccabf(0x23d)]();this[_0xbccabf(0x2f5)]=this[_0xbccabf(0x2a9)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)],_0x450b1b),this[_0xbccabf(0xf6)]=this['_sheetsShapeService'][_0xbccabf(0x2c4)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)]);let _0x421d64=this[_0xbccabf(0x1ad)][_0xbccabf(0x16d)]({'unitId':this[_0xbccabf(0x2aa)],'subUnitId':this[_0xbccabf(0x13b)],'drawingId':this['_activeShapeId']}),{transform:_0xaca16b}=_0x421d64;if(_0xaca16b){let {left:_0x48d401,top:_0x12e013,width:_0x48601f,height:_0x5b8bfa}=_0xaca16b;this[_0xbccabf(0x20a)]=_0x48d401||0x0,this[_0xbccabf(0x277)]=_0x12e013||0x0,this['_baseShapeWidth']=_0x48601f||0x0,this[_0xbccabf(0x198)]=_0x5b8bfa||0x0;}let _0x137e57=!!((_0x38a364=_0x421d64['transform'])!=null&&_0x38a364[_0xbccabf(0x16c)]),_0x40158b=!!((_0x4611ed=_0x421d64[_0xbccabf(0xce)])!=null&&_0x4611ed[_0xbccabf(0x1a0)]),_0xf9e414=((_0x39acf0=_0x421d64[_0xbccabf(0xce)])==null?void 0x0:_0x39acf0[_0xbccabf(0x31f)])||0x0;this[_0xbccabf(0x2e3)]=!0x0,_0x379a05[_0xbccabf(0x31c)]();let _0x204d5f={...(_0x1b23c2=(_0x45802a=this[_0xbccabf(0x2f5)])==null?void 0x0:_0x45802a['currentAdjustValues'])==null?{}:_0x1b23c2};this[_0xbccabf(0x191)]=_0x379a05[_0xbccabf(0x291)][_0xbccabf(0x2fe)]((_0x3f9587,_0x1274a)=>{const _0x33abde=_0xbccabf;if(!this[_0x33abde(0x2e3)])return;let {offsetX:_0x3feb78,offsetY:_0x274889}=_0x3f9587,_0x2548e6=this[_0x33abde(0x2f5)];if(this['_activeShapeModel']&&_0x2548e6){_0x379a05['disableObjectsEvent'](),_0x379a05[_0x33abde(0x328)](_0x1bae0e[_0x33abde(0x194)]);let _0x4be1d7={'left':0x0,'top':0x0,'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]},_0x5e9639=this[_0x33abde(0x1ed)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0xfdc66b=this[_0x33abde(0xc4)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0x5796b1=_0x3feb78/_0xfdc66b+_0x5e9639['x']-this['_baseShapeLeft'],_0x1df73e=_0x274889/_0xfdc66b+_0x5e9639['y']-this[_0x33abde(0x277)];if(_0xf9e414!==0x0){let _0x2ae654=this['_baseShapeWidth']/0x2,_0x503ce5=this[_0x33abde(0x198)]/0x2,_0x7d9892=_0xf9e414*Math['PI']/0xb4,_0x4533da=Math['cos'](_0x7d9892),_0xd780f1=Math[_0x33abde(0x2d3)](_0x7d9892),_0x427a79=_0x5796b1-_0x2ae654,_0x53df50=_0x1df73e-_0x503ce5;_0x5796b1=_0x2ae654+(_0x427a79*_0x4533da+_0x53df50*_0xd780f1),_0x1df73e=_0x503ce5+(-_0x427a79*_0xd780f1+_0x53df50*_0x4533da);}_0x137e57&&(_0x5796b1=this[_0x33abde(0x2a4)]-_0x5796b1),_0x40158b&&(_0x1df73e=this[_0x33abde(0x198)]-_0x1df73e);let _0x3ca650={'x':_0x5796b1,'y':_0x1df73e},_0x27dc25=this[_0x33abde(0xf6)][_0x33abde(0xbb)](_0x4be1d7,_0x3ca650,_0x2548e6,_0x137e57,_0x40158b);if(Object[_0x33abde(0x29e)](_0x27dc25)['length']===0x0)return;for(let [_0x2732af,_0x2ac89f]of Object['entries'](_0x27dc25))this['_activeShapeModel']['setAdjustValueByName'](_0x2732af,_0x2ac89f);this['_activeShapeModel'][_0x33abde(0x1d6)]({'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]});let _0x2a773b=this[_0x33abde(0x1ad)][_0x33abde(0x16d)]({'unitId':_0x31cc59[_0x33abde(0x241)],'subUnitId':_0x31cc59[_0x33abde(0x281)],'drawingId':_0x31cc59[_0x33abde(0x10e)]});_0x2a773b&&(this[_0x33abde(0x1b2)]['renderDrawingShape'](_0x2a773b,_0x379a05),this[_0x33abde(0xfe)]=this['_getShapeAdjustPointListById'](_0x31cc59[_0x33abde(0x241)],_0x31cc59[_0x33abde(0x281)],_0x31cc59[_0x33abde(0x10e)]),this[_0x33abde(0x119)]());}_0x1274a[_0x33abde(0x2c3)]();}),this['_adjHandlerPointerUp']=_0x379a05[_0xbccabf(0x24e)][_0xbccabf(0x2fe)]((_0x2636b7,_0x4e0d56)=>{const _0x237ec4=_0xbccabf;this[_0x237ec4(0x191)]['unsubscribe'](),this[_0x237ec4(0x17a)][_0x237ec4(0x22f)](),_0x379a05['resetCursor']();let _0x4ae9ec=this[_0x237ec4(0x2f5)];if(_0x4ae9ec){let _0x53ab13=_0x31cc59['unitId'],_0x2d89cb=_0x31cc59[_0x237ec4(0x281)],_0x55633a=_0x31cc59['drawingId'],_0x13262f={};for(let _0x16d11c of Object['keys'](_0x4ae9ec['currentAdjustValues'])){var _0x5bbc6d;let _0x4bb3b1=(_0x5bbc6d=this[_0x237ec4(0xf6)])==null?void 0x0:_0x5bbc6d['getAdjustValueByName'](_0x16d11c);_0x4bb3b1!==void 0x0&&(_0x13262f[_0x16d11c]=_0x4bb3b1);}Object[_0x237ec4(0x29e)](_0x13262f)['length']>0x0&&jn(this[_0x237ec4(0x300)],_0x53ab13,_0x2d89cb,_0x55633a,{'oldShapeData':{'adjustValues':_0x204d5f}},{'adjustValues':_0x13262f});}this[_0x237ec4(0x2f5)]=void 0x0,this[_0x237ec4(0xf6)]=void 0x0,this[_0x237ec4(0x2e3)]=!0x1,_0x4e0d56[_0x237ec4(0x2c3)](),_0x379a05['enableObjectsEvent']();}),_0x11ead4[_0xbccabf(0x2c3)]();})));}[_0xcb6cbb(0x1ae)](){const _0x1b4d4d=_0xcb6cbb;let _0x2940df=this[_0x1b4d4d(0x23f)]['getCurrentTypeOfUnit$'](_0x593ef9[_0x1b4d4d(0x298)]);this[_0x1b4d4d(0x2d6)](_0x2940df[_0x1b4d4d(0x23e)](_0x11d4bf(_0x49c6e7=>_0x49c6e7?_0x49c6e7[_0x1b4d4d(0x10c)][_0x1b4d4d(0x23e)](_0x11d4bf(_0x444dac=>{const _0x2a4cff=_0x1b4d4d;if(!_0x444dac)return _0x1198ce;let _0x25e8af=_0x49c6e7[_0x2a4cff(0x181)](),_0x2a4739=this['_renderManagerService'][_0x2a4cff(0x133)](_0x25e8af),_0x218080=_0x2a4739==null?void 0x0:_0x2a4739[_0x2a4cff(0x1f6)];return _0x218080?_0x9a150f(_0x218080):_0x1198ce;})):_0x1198ce))[_0x1b4d4d(0x2f7)](_0x1a54be=>{const _0x577a8b=_0x1b4d4d;let _0xa12488=_0x1a54be[_0x577a8b(0x24a)]();this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x291)][_0x577a8b(0x2fe)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0x12d)][_0x577a8b(0x2f7)](_0x968e00=>{const _0x5a4b8e=_0x577a8b;let {objects:_0x2004ca}=_0x968e00;this['_createShapeAdjustControls'](),_0x2004ca!==null&&_0x2004ca[_0x5a4b8e(0x1e1)]===0x1&&_0x2004ca[_0x5a4b8e(0x1c7)]()['next']()['value']instanceof Ln&&this[_0x5a4b8e(0x28c)](!0x0);})),this['disposeWithMe'](_0xa12488[_0x577a8b(0x27e)][_0x577a8b(0x2f7)](()=>{const _0x53ac25=_0x577a8b;this[_0x53ac25(0x1c5)]&&this['_clearShapeAdjustControls']();})),this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x24e)]['subscribeEvent'](()=>{const _0x30c7a6=_0x577a8b;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x30c7a6(0x28c)](!0x1),this[_0x30c7a6(0x1d8)]());})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0xeb)][_0x577a8b(0x2f7)](()=>{const _0x6dd3da=_0x577a8b;this[_0x6dd3da(0x2aa)]&&this[_0x6dd3da(0x13b)]&&this[_0x6dd3da(0x2c1)]&&this['_drawingManagerService'][_0x6dd3da(0x16d)]({'unitId':this[_0x6dd3da(0x2aa)],'subUnitId':this[_0x6dd3da(0x13b)],'drawingId':this['_activeShapeId']})&&(this[_0x6dd3da(0xfe)]=this[_0x6dd3da(0xf4)](this[_0x6dd3da(0x2aa)],this[_0x6dd3da(0x13b)],this[_0x6dd3da(0x2c1)]),this[_0x6dd3da(0x119)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x197062=_0xcb6cbb;this[_0x197062(0x2d6)](this[_0x197062(0x300)][_0x197062(0x165)](_0x54c3ce=>{const _0x4bfe36=_0x197062;if(_0x54c3ce['id']!==_0x528850['id'])return;let {unitId:_0x6d268,subUnitId:_0x3ee462,shapeId:_0x246793}=_0x54c3ce['params'];_0x6d268===this[_0x4bfe36(0x2aa)]&&_0x3ee462===this[_0x4bfe36(0x13b)]&&_0x246793===this['_activeShapeId']&&this[_0x4bfe36(0x2b3)]();})),this['disposeWithMe'](this[_0x197062(0x1ad)]['focus$'][_0x197062(0x2f7)](_0x582135=>{const _0x3830b4=_0x197062;if(_0x582135[_0x3830b4(0x25d)]===0x1){let _0x4f39d7=_0x582135[0x0];if(_0x4f39d7['drawingType']===_0x55872c[_0x3830b4(0x1ce)]){this[_0x3830b4(0x2c1)]=_0x4f39d7[_0x3830b4(0x10e)];let {unitId:_0x57353d,subUnitId:_0x47e275}=_0x4f39d7;this[_0x3830b4(0xfe)]=this['_getShapeAdjustPointListById'](_0x57353d,_0x47e275,this[_0x3830b4(0x2c1)]),this['_unitId']=_0x57353d,this[_0x3830b4(0x13b)]=_0x47e275,this['_clearShapeAdjustControls'](),this[_0x3830b4(0x1d8)]();}else this[_0x3830b4(0x2c1)]=null,this[_0x3830b4(0xfe)]=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this['_clearShapeAdjustControls']();}(_0x582135['length']>0x1||_0x582135['length']===0x0)&&(this[_0x3830b4(0x2c1)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this[_0x3830b4(0x1a5)]());})),this[_0x197062(0x2d6)](this['_drawingManagerService'][_0x197062(0x1de)][_0x197062(0x2f7)](_0x1447cd=>{const _0x1ada67=_0x197062;if(_0x1447cd[_0x1ada67(0x25d)]===0x1){var _0x4febec;let _0x4bcf67=_0x1447cd[0x0];((_0x4febec=this['_drawingManagerService'][_0x1ada67(0x16d)](_0x4bcf67))==null?void 0x0:_0x4febec[_0x1ada67(0x1c2)])===_0x55872c['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x197062(0x2d6)](this[_0x197062(0x1ad)][_0x197062(0x304)][_0x197062(0x2f7)](_0x234c58=>{const _0x2399e7=_0x197062;for(let _0x6f8669 of _0x234c58)this[_0x2399e7(0x2c1)]===_0x6f8669[_0x2399e7(0x10e)]&&(this[_0x2399e7(0x2c1)]=null,this[_0x2399e7(0xfe)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x2399e7(0x1a5)]());}));}};zn=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x25d6be(Q)),X(0x4,_0x1af83c),X(0x5,_0x3a72b1)],zn);const Bn={'id':_0xcb6cbb(0x1d5),'type':_0xd030d0[_0xcb6cbb(0xc2)],'handler':(_0x2f189b,_0x1f76e7)=>{const _0xc10afc=_0xcb6cbb;let _0xa3952f=_0x2f189b['get'](_0x5a1ed0),_0x10088d=_0x2f189b[_0xc10afc(0x2da)](_0x297a94),_0x3b5bf2=_0x2f189b['get'](zn);if(_0x1f76e7==null)return!0x0;if(_0x1f76e7[_0xc10afc(0x25d)]>0x0){var _0x152983;let _0x1d0c0f=(_0x152983=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null?void 0x0:_0x152983[_0xc10afc(0x1f6)];if(_0x1d0c0f){let {unitId:_0x1c7dfb,subUnitId:_0x5cf259,drawingId:_0x1be161}=_0x1f76e7[0x0],_0x1d9dc1=_0x4f98bd({'unitId':_0x1c7dfb,'subUnitId':_0x5cf259,'drawingId':_0x1be161},void 0x0),_0x4be1b6=_0x1d0c0f[_0xc10afc(0x114)](_0x1d9dc1);if(_0x4be1b6){var _0x1d1a01;(_0x1d1a01=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null||(_0x1d1a01=_0x1d1a01[_0xc10afc(0x1f6)][_0xc10afc(0xde)]())==null||_0x1d1a01[_0xc10afc(0x201)](_0x4be1b6);}}_0xa3952f[_0xc10afc(0x257)](_0x1f76e7),_0x3b5bf2[_0xc10afc(0x28c)](!0x1);}return!0x0;}},Vn={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x20f),'handler':async(_0x4590a0,_0x4340df)=>{const _0x4777e1=_0xcb6cbb;let _0x3c45df=_0x5f445e(_0x4590a0['get'](_0x1af83c));if(!_0x3c45df)return!0x1;let _0x68c966=_0x4590a0[_0x4777e1(0x2da)](_0x2c9660)[_0x4777e1(0x239)]();if(!_0x68c966)return!0x1;let _0x88dc12=_0x4590a0[_0x4777e1(0x2da)](_0x3a72b1),{unitId:_0x1faba2,subUnitId:_0x4f070b}=_0x3c45df,{value:_0xcf4ef7,enhanceParams:_0x17ad4d}=_0x4340df,{range:_0x2eb11e}=_0x68c966,_0x441025={'unitId':_0x1faba2,'subUnitId':_0x4f070b,'shapeType':_0xcf4ef7,'range':_0x2eb11e,'shapeId':_0xf6c8c4()};if(_0x17ad4d){let _0x403cbc=_0x286130(_0xcf4ef7),_0x763fec=_0xcf4ef7===_0x4c4784[_0x4777e1(0x193)];_0x403cbc&&(_0x17ad4d['startArrow']||_0x17ad4d[_0x4777e1(0x2e1)])&&(_0x441025['shapeData']={'ln':{'startArrow':_0x17ad4d['startArrow']?{'type':_0x443563['Arrow'],'size':_0x483edf['Medium']}:void 0x0,'endArrow':_0x17ad4d[_0x4777e1(0x2e1)]?{'type':_0x443563['Arrow'],'size':_0x483edf[_0x4777e1(0x320)]}:void 0x0}}),_0x763fec&&(_0x17ad4d[_0x4777e1(0x21f)]||_0x17ad4d['vertical'])&&(_0x441025[_0x4777e1(0x18a)]=_0x38899d({'fill':{'fillType':_0x208105['SolidFill'],'color':_0x4777e1(0x2f3)},'isHorizontal':!!_0x17ad4d['horizontal'],'stroke':{'lineStrokeType':_0x3e780b[_0x4777e1(0x292)],'width':0x1,'color':_0x4777e1(0xdf)}}));}let _0x593f49=_0x88dc12[_0x4777e1(0xdc)](_0x5268cc['id'],_0x441025);return setTimeout(()=>{const _0x385b5f=_0x4777e1;_0x88dc12[_0x385b5f(0x29b)](Bn['id'],[{'unitId':_0x1faba2,'subUnitId':_0x4f070b,'drawingId':_0x441025[_0x385b5f(0x124)]}]);},0xc8),_0x593f49;}},Hn=_0xcb6cbb(0x171),Un=_0xcb6cbb(0x12c),Wn=_0xcb6cbb(0x177),Gn=_0x3ca21e(_0xcb6cbb(0x227)),Kn=_0xcb6cbb(0x188),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0xd030d0[_0xcb6cbb(0x1fd)],'handler':(_0x4baf60,_0x45eb6f)=>{const _0x186e00=_0xcb6cbb;let _0x21fea8=_0x4baf60[_0x186e00(0x2da)](_0x4770b9),_0xc2cf82=_0x4baf60[_0x186e00(0x2da)](_0x498c36),_0x25786d=_0x4baf60[_0x186e00(0x2da)](_0x1af83c),_0x11cdd1=_0x4baf60[_0x186e00(0x2da)](_0x3a72b1);return _0x5f445e(_0x25786d)?(_0x45eb6f==null?void 0x0:_0x45eb6f[_0x186e00(0x274)])===_0x186e00(0x233)?(_0x21fea8[_0x186e00(0x233)](Un),!0x0):(_0x21fea8[_0x186e00(0x122)]({'id':Un,'header':{'title':_0xc2cf82['t'](_0x186e00(0x2cf))},'children':{'label':Un},'onClose':()=>{const _0x5205bc=_0x186e00;_0x11cdd1[_0x5205bc(0xdc)](_0xc56e65['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x444b76{constructor(_0xd147dd,_0x38e038){const _0x1072b8=_0xcb6cbb;super(),this['_clipService']=_0xd147dd,this[_0x1072b8(0x1ad)]=_0x38e038,this[_0x1072b8(0xe7)](),this['_clipService'][_0x1072b8(0x2cb)](!0x0),this[_0x1072b8(0x2d6)]({'dispose':()=>this['_clipService'][_0x1072b8(0x2cb)](!0x1)});}[_0xcb6cbb(0xe7)](){const _0x410837=_0xcb6cbb;let _0x5b0a0a=this[_0x410837(0xef)],_0x53335a=new Map(),_0x3a1ba6=_0x5b0a0a[_0x410837(0x246)]((_0x379638,_0x376082,_0x5e76eb,_0x1f9c30,_0xa5857a)=>{const _0x14b382=_0x410837;let _0x1a4167=_0x376082;if(_0x1a4167===_0x4c4784['None']||_0x376082===_0x14b382(0x180))return!0x1;try{let _0x5a907e=_0x53335a[_0x14b382(0x2da)](_0x376082);return _0x5a907e||(_0x5a907e=new _0x508f4b(_0x1a4167,_0x14b382(0x2bd)+_0x376082),_0x53335a[_0x14b382(0x26e)](_0x376082,_0x5a907e)),_0x5a907e['clearAdjustValue'](),_0xa5857a&&Object[_0x14b382(0x29e)](_0xa5857a)['length']>0x0&&_0x5a907e[_0x14b382(0x1fa)]({'adjustValues':_0xa5857a},!0x0),_0x5a907e['updateContext']({'width':_0x5e76eb,'height':_0x1f9c30}),_0x5a907e[_0x14b382(0x26c)](_0x379638,{'left':0x0,'top':0x0,'width':_0x5e76eb,'height':_0x1f9c30});}catch{return!0x1;}});this[_0x410837(0x2d6)](_0x3a1ba6),this[_0x410837(0x2d6)]({'dispose':()=>_0x53335a[_0x410837(0x205)]()});}['clipByShape'](_0x213091,_0x5a70d3,_0x6d6936,_0x4b124f,_0x2d631d){const _0x286ec1=_0xcb6cbb;let _0x3ed4cd=this[_0x286ec1(0x1ad)][_0x286ec1(0x127)](_0x213091,_0x5a70d3);if(!_0x3ed4cd[_0x6d6936])return;let _0x16a7a7={..._0x3ed4cd[_0x6d6936],'prstGeom':_0x4b124f,'adjustValues':_0x2d631d};this[_0x286ec1(0x1ad)]['featurePluginUpdateNotification']([_0x16a7a7]);}};Jn=Z([X(0x0,_0x25d6be(_0x5773e2)),X(0x1,_0x25d6be(_0x5a1ed0))],Jn);const Yn='sheet.shape.picker.component',Xn=_0xcb6cbb(0x204);function Zn({onShapeClick:_0x2df1fd,excludeGroups:_0x4a19c0}){const _0x2fd9ec=_0xcb6cbb;return _0x49d3c9(_0x41d5aa,{'excludeGroups':_0x4a19c0,'onShapeClick':_0x2df1fd,'scrollContainer':_0x2fd9ec(0x135)});}function Qn(){const _0x5ed456=_0xcb6cbb;let _0x1cb978=_0x5ead04(_0x5a1ed0),_0x5c5518=_0x5ead04(Jn);return _0x49d3c9(_0x29e80a,{'buttonLabel':_0x5ed456(0x23b),'excludeGroups':[_0x176d3f[_0x5ed456(0x265)]],'onShapeClick':_0x4f2413=>{const _0x2280b3=_0x5ed456;let _0x124c0b=_0x1cb978[_0x2280b3(0x2e9)]()['find'](_0x44f5de=>_0x44f5de[_0x2280b3(0x1c2)]===_0x55872c[_0x2280b3(0x172)]);if(!_0x124c0b)return;let {unitId:_0x59b06f,subUnitId:_0xf777cd,drawingId:_0x405c20}=_0x124c0b;_0x5c5518[_0x2280b3(0x173)](_0x59b06f,_0xf777cd,_0x405c20,_0x4f2413[_0x2280b3(0x27b)]);}});}function $n(){const _0x5a7b6f=_0xcb6cbb;let _0x1fcb78=_0x5ead04(_0x3e4916),_0x2e58ae=_0x5ead04(_0x5a1ed0),_0xef155b=_0x5ead04(_0x1af83c),_0x45c624=_0x2e58ae[_0x5a7b6f(0x2e9)]()[0x0],_0x5b0068=_0x45c624?_0xef155b[_0x5a7b6f(0x11f)](_0x45c624['unitId']):void 0x0,_0x137d82=_0x5b0068===_0x593ef9[_0x5a7b6f(0xb9)]?_0x5a7b6f(0x156):_0x5b0068===_0x593ef9[_0x5a7b6f(0x298)]?Xn:void 0x0,_0x2de214=_0x137d82?_0x1fcb78[_0x5a7b6f(0x2da)](_0x137d82):void 0x0;return _0x2de214?_0x49d3c9(_0x2de214,{}):null;}function er(){let _0xad461=_0x5ead04(_0x3a72b1);return _0x49d3c9(Zn,{'onShapeClick':_0x475557=>{const _0x2cb0f7=_0x5971;_0xad461['executeCommand'](Vn['id'],{'value':_0x475557[_0x2cb0f7(0x27b)],'enhanceParams':{'endArrow':_0x475557[_0x2cb0f7(0x2e1)],'startArrow':_0x475557['startArrow'],'horizontal':_0x475557[_0x2cb0f7(0x21f)],'vertical':_0x475557['vertical']}});}});}function tr(_0x55380e){const _0x157b4e=_0xcb6cbb;let _0x17f46f=_0x55380e[_0x157b4e(0x2da)](_0x1af83c);return{'id':Vn['id'],'type':_0x187ab3[_0x157b4e(0x11b)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':_0x157b4e(0xd7),'tooltip':_0x157b4e(0x137),'activated$':_0x525c18(_0x17f46f,!0x1,()=>new _0x243af9(_0x20a53e=>{const _0x3667c9=_0x157b4e;_0x20a53e[_0x3667c9(0x152)](!0x1);})),'hidden$':_0x54d985(_0x55380e,_0x593ef9[_0x157b4e(0x298)]),'disabled$':_0x26b975(_0x55380e)};}function nr(_0x4a73cc){const _0x4fc8ab=_0xcb6cbb;let _0x196abf=_0x4a73cc[_0x4fc8ab(0x2da)](_0x1af83c);return{'id':qn['id'],'type':_0x187ab3[_0x4fc8ab(0x130)],'icon':_0x4fc8ab(0xe8),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x4fc8ab(0x302),'activated$':_0x525c18(_0x196abf,!0x1,()=>new _0x243af9(_0x4c6650=>{const _0x345e99=_0x4fc8ab;_0x4c6650[_0x345e99(0x152)](!0x1);})),'hidden$':_0x54d985(_0x4a73cc,_0x593ef9[_0x4fc8ab(0x298)]),'disabled$':_0x26b975(_0x4a73cc)};}const rr=_0xcb6cbb(0x160),ir=_0xcb6cbb(0x259);function ar(_0x4c7b06){const _0x3ce9dc=_0xcb6cbb;let _0x3492d2=_0x4c7b06[_0x3ce9dc(0x2da)](_0x5a1ed0)['getFocusDrawings']();return _0x3492d2['length']===0x1&&_0x3492d2[0x0][_0x3ce9dc(0x1c2)]===_0x55872c[_0x3ce9dc(0x1ce)]?_0x3492d2[0x0]:null;}function or(_0x1af0a1){const _0x3a7b6e=_0xcb6cbb;let _0xcdca3f=_0x1af0a1[_0x3a7b6e(0x2da)](_0x5a1ed0);return _0xcdca3f[_0x3a7b6e(0xed)]['pipe'](_0x3992d1(_0xcdca3f[_0x3a7b6e(0x2e9)]()),_0x30d3f5(_0x40eb1=>_0x40eb1[_0x3a7b6e(0x25d)]!==0x1||_0x40eb1[0x0][_0x3a7b6e(0x1c2)]!==_0x55872c['DRAWING_SHAPE']));}function sr(_0x43011e){const _0x7ed9b4=_0xcb6cbb;return{'id':rr,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x7ed9b4(0x221),'icon':'FlipHorizontalIcon','hidden$':or(_0x43011e),'params':()=>{const _0x5daea7=_0x7ed9b4;let _0x475e96=ar(_0x43011e);return _0x475e96?{'unitId':_0x475e96[_0x5daea7(0x241)],'subUnitId':_0x475e96[_0x5daea7(0x281)],'shapeId':_0x475e96[_0x5daea7(0x10e)],'flipH':!0x0}:void 0x0;}};}function cr(_0x55d105){const _0x5e370f=_0xcb6cbb;return{'id':ir,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':_0x5e370f(0xc0),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x5e370f(0x1f8),'hidden$':or(_0x55d105),'params':()=>{const _0x57afe2=_0x5e370f;let _0x42eaee=ar(_0x55d105);return _0x42eaee?{'unitId':_0x42eaee[_0x57afe2(0x241)],'subUnitId':_0x42eaee[_0x57afe2(0x281)],'shapeId':_0x42eaee['drawingId'],'flipV':!0x0}:void 0x0;}};}const lr={[_0x99ab95['MEDIA']]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x99ab95['OTHERS']]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x19ebdc[_0xcb6cbb(0x2c9)]]:{[_0x5e3670[_0xcb6cbb(0x15f)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0xcb6cbb(0xd8),dr='1.0.0-alpha.8';const fr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':_0xcb6cbb(0x142),'handler'(){return!0x0;}},mr={};function hr(_0x2562b4){const _0x4a1d77=_0xcb6cbb;return _0x2562b4[_0x4a1d77(0x162)]()||void 0x0;}function gr(_0x48f0c7){const _0x57b71f=_0xcb6cbb;switch(_0x48f0c7[_0x57b71f(0x1c2)]){case _0x55872c[_0x57b71f(0x172)]:return _0x57b71f(0xf9);case _0x55872c['DRAWING_CHART']:return _0x57b71f(0x182);case _0x55872c[_0x57b71f(0x310)]:return _0x57b71f(0xc1);case _0x55872c[_0x57b71f(0xec)]:return _0x57b71f(0x1ca);case _0x55872c[_0x57b71f(0x13f)]:return _0x57b71f(0x1af);case _0x55872c[_0x57b71f(0x2e2)]:return _0x57b71f(0x228);case _0x55872c[_0x57b71f(0x199)]:return _0x57b71f(0x1c3);case _0x55872c[_0x57b71f(0x1be)]:return _0x57b71f(0x1d3);case _0x55872c[_0x57b71f(0x1ce)]:return _0x57b71f(0x186);default:return _0x57b71f(0x21a);}}function _r(_0x1ca6b6,_0x480272,_0x34449c){const _0x22d55f=_0xcb6cbb;var _0x4bcaca;return((_0x4bcaca=_0x1ca6b6[_0x22d55f(0x22d)])==null?void 0x0:_0x4bcaca[_0x22d55f(0x162)]())||_0x2b9a99(_0x34449c,gr(_0x1ca6b6))+'\x20'+(_0x480272+0x1);}function vr(){const _0x16d1da=_0xcb6cbb;var _0x160b9f,_0x5c523d,_0x35179a,_0x5d9ba5;let _0x2685a0=_0x5ead04(_0x498c36),_0x2f65fe=_0x5ead04(_0x3a72b1),_0x5b859a=_0x5ead04(_0x1af83c),_0x348422=_0x5ead04(_0x2a99b6),_0x4d7a74=_0x5ead04(_0x5a1ed0),_0x3d7758=_0x5ead04(_0x297a94),[,_0x2d5a9c]=_0x10f2b3(_0x262b5a=>_0x262b5a+0x1,0x0),_0x50f294=_0x5b859a['getCurrentUnitOfType'](_0x593ef9['UNIVER_SHEET']),_0x508c4a=(_0x160b9f=_0x50f294==null?void 0x0:_0x50f294[_0x16d1da(0x181)]())==null?'':_0x160b9f,_0x1d9049=(_0x5c523d=_0x50f294==null||(_0x35179a=_0x50f294[_0x16d1da(0x284)]())==null?void 0x0:_0x35179a['getSheetId']())==null?'':_0x5c523d,_0x5b7e62=_0x3e0fd9(()=>_0x4d7a74[_0x16d1da(0xed)],_0x4d7a74['getFocusDrawings'](),!0x1,[_0x4d7a74]);_0x2f51d2(()=>{const _0x44fc76=_0x16d1da;let _0x5e2305=_0x2f65fe[_0x44fc76(0x165)](()=>_0x2d5a9c());return()=>_0x5e2305[_0x44fc76(0x20e)]();},[_0x2f65fe]);let _0x26eed7=_0x508c4a&&_0x1d9049?_0x348422[_0x16d1da(0x127)](_0x508c4a,_0x1d9049):{},_0x3a4578=_0x508c4a&&_0x1d9049?_0x348422['getDrawingOrder'](_0x508c4a,_0x1d9049):[],_0x5ced42=_0xfae447(()=>_0x5ac108(_0x2685a0),[_0x2685a0]),_0x1d596c=_0xfae447(()=>{const _0x5612a2=_0x16d1da;let _0x482ef3=_0x3a4578[_0x5612a2(0x1c1)](_0x1caaf9=>_0x26eed7[_0x1caaf9])[_0x5612a2(0x2b4)](_0x5db8da=>!!_0x5db8da)[_0x5612a2(0x263)](),_0x3d84eb=_0x482ef3[_0x5612a2(0x2f8)]((_0x3bd4ca,_0x21fc00)=>(_0x3bd4ca[_0x67bdd6(_0x21fc00[_0x5612a2(0x1c2)])]+=0x1,_0x3bd4ca),{'canvas':0x0,'floating':0x0}),_0x18d9ea={'canvas':0x0,'floating':0x0};return _0x482ef3[_0x5612a2(0x1c1)]((_0x146ffb,_0x4a97c5)=>{const _0x238de2=_0x5612a2;let _0x5b29ba=_0x67bdd6(_0x146ffb[_0x238de2(0x1c2)]),_0x3f4472=_0x5b29ba===_0x5a455a,_0x3be224=_0x18d9ea[_0x5b29ba]++;return{'id':_0x146ffb[_0x238de2(0x10e)],'name':_r(_0x146ffb,_0x4a97c5,_0x2685a0),'description':_0x146ffb[_0x238de2(0x301)],'visible':_0x146ffb[_0x238de2(0x237)]!==!0x0,'selectable':_0x146ffb['selectable']!==!0x1,'sectionId':_0x5b29ba,'sectionTitle':_0x3f4472?_0x5ced42['sectionFloating']:_0x5ced42[_0x238de2(0x167)],'capabilities':_0x3f4472?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3f4472&&_0x3be224>0x0,'canMoveBackward':!_0x3f4472&&_0x3be224<_0x3d84eb[_0x238de2(0x115)]-0x1,'canReorder':!_0x3f4472};});},[_0x26eed7,_0x3a4578,_0x5ced42[_0x16d1da(0x167)],_0x5ced42[_0x16d1da(0x2d7)],_0x2685a0]),_0x50e24c=_0xfae447(()=>(_0x5b7e62==null?[]:_0x5b7e62)[_0x16d1da(0x2b4)](_0x164a62=>_0x164a62['unitId']===_0x508c4a&&_0x164a62[_0x16d1da(0x281)]===_0x1d9049)[_0x16d1da(0x1c1)](_0x230da9=>_0x230da9['drawingId']),[_0x5b7e62,_0x1d9049,_0x508c4a]),_0x55969c=(_0x5d9ba5=_0x50e24c[_0x50e24c['length']-0x1])==null?null:_0x5d9ba5,_0x5021c7=_0x2c1932=>{const _0x151a18=_0x16d1da;var _0x41281c;return(_0x41281c=_0x348422[_0x151a18(0x16d)]({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2c1932}))==null?null:_0x41281c;},_0x54cbb0=_0x15e6ce=>{const _0x385b41=_0x16d1da;!_0x508c4a||!_0x15e6ce[_0x385b41(0x25d)]||_0x2f65fe[_0x385b41(0x29b)](_0x2cc676['id'],{'unitId':_0x508c4a,'drawings':_0x15e6ce});},_0x455cc8=(_0x4b60df,_0x27e46c)=>{_0x5021c7(_0x4b60df)&&_0x54cbb0([{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x4b60df,..._0x27e46c}]);},_0x2716c7=(_0xba14ec,_0xfc2db0)=>{const _0xa8b248=_0x16d1da;if(!_0x508c4a||!_0x1d9049)return;let _0x93c7f0=_0xfc2db0?_0x50e24c[_0xa8b248(0x15b)](_0xba14ec)?_0x50e24c[_0xa8b248(0x2b4)](_0x394683=>_0x394683!==_0xba14ec):[..._0x50e24c,_0xba14ec]:[_0xba14ec];_0x2f65fe[_0xa8b248(0xdc)](_0xc56e65['id'],_0x93c7f0['map'](_0x2ef6a4=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2ef6a4})));let _0x444803=_0x93c7f0[_0x93c7f0[_0xa8b248(0x25d)]-0x1];_0x444803?_0x185eb9(_0x3d7758,{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x444803}):_0x5b4b31(_0x3d7758,_0x508c4a);},_0x5e00cd=(_0x16d897,_0x44d2a8)=>{const _0x470832=_0x16d1da;_0x54cbb0(_0x16d897[_0x470832(0x1c1)](_0x1fae56=>_0x5021c7(_0x1fae56))[_0x470832(0x2b4)](_0x44bfd9=>!!_0x44bfd9)[_0x470832(0x2b4)](_0x4d8759=>_0x4d8759[_0x470832(0x237)]!==!0x0!==_0x44d2a8)[_0x470832(0x1c1)](_0x3e4cdf=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x3e4cdf['drawingId'],'hidden':!_0x44d2a8})));},_0x3b8f78=_0x56401b=>{const _0x289176=_0x16d1da;let _0x218ca1=_0x5021c7(_0x56401b);_0x218ca1&&_0x455cc8(_0x56401b,{'selectable':_0x218ca1[_0x289176(0x1e7)]===!0x1&&void 0x0});},_0x586839=(_0x31d215,_0x1791ad)=>{var _0x3ecf44,_0x516598;let _0x376897=hr(_0x1791ad);((_0x3ecf44=(_0x516598=_0x5021c7(_0x31d215))==null?void 0x0:_0x516598['name'])==null?void 0x0:_0x3ecf44)!==_0x376897&&_0x455cc8(_0x31d215,{'name':_0x376897});},_0x3c0c4a=(_0x36cace,_0x18fd79)=>{const _0x7fe1d1=_0x16d1da;var _0x42f18d,_0x17d9b5;let _0x202171=hr(_0x18fd79);((_0x42f18d=(_0x17d9b5=_0x5021c7(_0x36cace))==null?void 0x0:_0x17d9b5[_0x7fe1d1(0x301)])==null?void 0x0:_0x42f18d)!==_0x202171&&_0x455cc8(_0x36cace,{'description':_0x202171});},_0x494d81=(_0x278194,_0x2a759b)=>{!_0x508c4a||!_0x1d9049||_0x2f65fe['executeCommand'](_0xb4ccfa['id'],{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingIds':[_0x278194],'arrangeType':_0x2a759b});};return!_0x508c4a||!_0x1d9049?_0x49d3c9(_0x16d1da(0xca),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5ced42[_0x16d1da(0x326)]}):_0x49d3c9(_0x155589,{'items':_0x1d596c,'selectedIds':_0x50e24c,'focusedId':_0x55969c,'labels':_0x5ced42,'onSelect':_0x2716c7,'onSetVisible':_0x5e00cd,'onCommitName':_0x586839,'onCommitDescription':_0x3c0c4a,'onMoveForward':_0x4519c4=>_0x494d81(_0x4519c4,_0x22122b['forward']),'onMoveBackward':_0x5561e0=>_0x494d81(_0x5561e0,_0x22122b[_0x16d1da(0x225)]),'onToggleSelectable':_0x3b8f78});}let yr=class{constructor(_0x3e52bd){this['_renderManagerService']=_0x3e52bd;}['updateShapeFillImage'](_0x23b576,_0x1e071c){const _0x489923=_0xcb6cbb;let _0xc53ba9=this[_0x489923(0x154)]['getRenderUnitById'](_0x23b576[_0x489923(0x241)]),_0x39d4ae=_0xc53ba9==null?void 0x0:_0xc53ba9[_0x489923(0x1f6)];if(!_0x39d4ae)return;let _0xbecec0=_0x4f98bd(_0x23b576),_0x53ec7f=_0x39d4ae['getObjectIncludeInGroup'](_0xbecec0);_0x53ec7f==null||_0x53ec7f[_0x489923(0x245)](_0x1e071c);}};yr=Z([X(0x0,_0x297a94)],yr);function br(){const _0x3273bf=_0xcb6cbb;let _0x3a720d=_0x5ead04(_0x5a1ed0),_0x5e01bf=_0x3e0fd9(()=>_0x3a720d[_0x3273bf(0xed)],_0x3a720d[_0x3273bf(0x2e9)](),!0x1,[_0x3a720d]);return _0x5e01bf[_0x3273bf(0x25d)]===0x0?null:_0x49d3c9(_0x3273bf(0xca),{'children':_0x568cbe(_0x3273bf(0xca),{'className':_0x3273bf(0x22b),'children':[_0x49d3c9(_0x5f53ae,{'drawings':_0x5e01bf,'hasCropper':!0x1}),_0x49d3c9(_0xdce9e4,{'drawings':_0x5e01bf})]})});}function xr(_0x14b829){let {unitId:_0x5a0aee,subUnitId:_0x1f136e,shapeId:_0x1dd856}=_0x14b829,_0x1a33df=_0x5ead04(_0x3a72b1),_0x558590=_0x5ead04(yr);return _0x49d3c9(_0x369510,{..._0x14b829,'positionEditor':_0x49d3c9(br,{}),'onUpdateShapeData':(_0x27b6,_0x324c22)=>{jn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x27b6,_0x324c22);},'onUpdateLineShapeData':(_0x1e01e1,_0x3f7921)=>{Mn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x1e01e1,_0x3f7921);},'onUpdateShapeFillImage':_0x139d63=>{const _0x4b9e79=_0x5971;_0x558590[_0x4b9e79(0x153)]({'unitId':_0x5a0aee,'subUnitId':_0x1f136e,'drawingId':_0x1dd856},_0x139d63);}});}function Sr(_0x571f6f){const _0x586d74=_0xcb6cbb;let _0x16bd5f=_0x571f6f['popup'][_0x586d74(0x2ac)];return _0x16bd5f?_0x49d3c9(Cr,{..._0x16bd5f}):null;}function Cr(_0x4361c0){const _0x25dfb6=_0xcb6cbb;var _0xbe9f66,_0x280ccf;let _0x4cb65d=_0x5ead04(_0x3a72b1),_0x4804ad=_0x5ead04(_0x231cef),{unitId:_0xc4e331,subUnitId:_0x33a4a3,drawingId:_0x37c5a2,drawingType:_0x22c05a,shapeType:_0x15d939}=_0x4361c0,[_0x580167,_0x59ddbd]=_0x115a69(_0x4361c0['shapeData']),_0x44af7d=_0xfae447(()=>_0x5e4bce(_0x580167),[_0x580167]),_0x171df4=_0xfae447(()=>_0x54d766(_0x580167),[_0x580167]);_0x2f51d2(()=>{let _0x1da0d0=_0x4cb65d['onCommandExecuted'](_0x525ec5=>{if(_0x525ec5['id']!==_0x528850['id'])return;let _0x47e1fa=_0x4804ad['getShapeDataById'](_0xc4e331,_0x33a4a3,_0x37c5a2);_0x47e1fa&&_0x59ddbd(_0x47e1fa);});return()=>_0x1da0d0['dispose']();},[_0x4cb65d,_0x37c5a2,_0x4804ad,_0x33a4a3,_0xc4e331]);let _0x20afe4=_0x343c13=>{_0x59ddbd(_0x3ca47c=>({..._0x3ca47c,..._0x343c13}));},_0x176cb7=_0x37a0aa=>{let _0x8db3eb=_0x25c3c6(_0x580167,_0x37a0aa);jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'shapeText':_0x580167['shapeText']}},_0x8db3eb),_0x20afe4(_0x8db3eb);},_0x45c3a3=_0x14e335({'hostType':_0x593ef9['UNIVER_SHEET'],'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'shapeId':_0x37c5a2,'shapeData':_0x580167,'onUpdateBinding':_0x5113e2=>{const _0x1f717d=_0x5971;let _0x3aff8c={'formulaBinding':_0x5113e2};jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'formulaBinding':_0x580167[_0x1f717d(0x138)]}},_0x3aff8c),_0x20afe4(_0x3aff8c);}});return _0x568cbe(_0x1370ea,{'children':[_0x49d3c9(_0xb6f545,{'shapeData':_0x580167,'shapeType':_0x15d939,'textStyle':{'ff':_0x3cbe53['shapeText']['fontFamily'],'fs':_0x3cbe53[_0x25dfb6(0x1b0)][_0x25dfb6(0x2fb)],'cl':{'rgb':_0x3cbe53[_0x25dfb6(0x1b0)]['color']},..._0x44af7d},'textModel':_0x171df4?{'ha':(_0xbe9f66=_0x171df4['ha'])==null?_0x166f93[_0x25dfb6(0xd2)]:_0xbe9f66,'va':(_0x280ccf=_0x171df4['va'])==null?_0x4874a7['TOP']:_0x280ccf}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3cbe53[_0x25dfb6(0x2e6)],'defaultGradientEndColor':_0x3cbe53[_0x25dfb6(0x251)],'defaultStrokeColor':_0x3cbe53['stroke'],'extensionGroups':_0x45c3a3['extensionGroups'],'onUpdateShapeData':(_0x444ded,_0x224e4e)=>{jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,_0x444ded,_0x224e4e),_0x224e4e&&_0x20afe4(_0x224e4e);},'onUpdateText':_0x176cb7,'onOpenPanel':()=>{_0x4cb65d['executeCommand'](pr['id'],{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2});},'onDelete':()=>{_0x4cb65d['executeCommand'](_0x535cd6['id'],{'unitId':_0xc4e331,'drawings':[{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2,'drawingType':_0x22c05a}]});}}),_0x45c3a3[_0x25dfb6(0x2c7)]]});}var wr=class extends _0x444b76{constructor(..._0x5e2c57){const _0x154397=_0xcb6cbb;super(..._0x5e2c57),Y(this,_0x154397(0x2b7),new _0x2c970e(null)),Y(this,_0x154397(0x1ac),this[_0x154397(0x2b7)]['asObservable']()),Y(this,_0x154397(0x1d4),new _0x2c970e(!0x1)),Y(this,'onSavingEditorData$',this[_0x154397(0x1d4)][_0x154397(0x1f0)]());}['dispose'](){const _0x286e31=_0xcb6cbb;this[_0x286e31(0x2b7)][_0x286e31(0x152)](null),this['_editingParams$'][_0x286e31(0x1da)](),this[_0x286e31(0x1d4)]['next'](!0x1),this['_onSavingEditorData$'][_0x286e31(0x1da)](),super[_0x286e31(0x20e)]();}[_0xcb6cbb(0x285)](_0x58d5ef){const _0x4ebad2=_0xcb6cbb;this[_0x4ebad2(0x2b7)][_0x4ebad2(0x152)](_0x58d5ef),_0x58d5ef==null&&this[_0x4ebad2(0x1d4)][_0x4ebad2(0x152)](!0x1);}[_0xcb6cbb(0x247)](_0x48eec0){const _0x1bfbd0=_0xcb6cbb;this[_0x1bfbd0(0x1d4)]['next'](_0x48eec0);}['getEditing'](){const _0x23f72c=_0xcb6cbb;return this['_editingParams$'][_0x23f72c(0x23c)]();}['completeEditing'](_0xc13550){const _0x4da2f3=_0xcb6cbb;this['getEditing']()&&(this[_0x4da2f3(0x247)](!0x0),requestAnimationFrame(()=>{const _0x4302bb=_0x4da2f3;this[_0x4302bb(0x285)](null);}));}['cancelEditing'](){const _0x36c2ae=_0xcb6cbb;this[_0x36c2ae(0x1e8)]()&&this[_0x36c2ae(0x285)](null);}};const Tr=_0x315608(()=>{const _0x4b6b3f=_0xcb6cbb;let _0x265d42=_0x5ead04(wr),_0x3cd1ef=_0x5ead04(_0x231cef),_0x1911e9=_0x5ead04(_0x5a1ed0),_0xb91e75=_0x5ead04(_0x3a72b1),_0x3a399f=_0x5ead04(_0x297a94);return _0x49d3c9(_0x2189a3,{'adapter':_0xfae447(()=>({'getShapeModel':(_0x5b1b1d,_0x1c4522,_0x42c035)=>_0x3cd1ef[_0x4b6b3f(0x2c4)](_0x5b1b1d,_0x1c4522,_0x42c035),'getShapeData':(_0x1e2a3b,_0x34f073,_0x356cc5)=>_0x3cd1ef['getShapeDataById'](_0x1e2a3b,_0x34f073,_0x356cc5),'getDrawingTransform':(_0x2968fc,_0x3a2a5f,_0x34aee9)=>{const _0x57e8c1=_0x4b6b3f;let _0x4591fc=_0x1911e9['getDrawingByParam']({'unitId':_0x2968fc,'subUnitId':_0x3a2a5f,'drawingId':_0x34aee9});return _0x4591fc==null?void 0x0:_0x4591fc[_0x57e8c1(0xce)];},'updateShapeText':({unitId:_0x101f4e,subUnitId:_0x37c4cf,shapeId:_0x49952d,shapeText:_0x228f00,oldShapeText:_0x527152})=>{_0xb91e75['executeCommand'](An['id'],{'unitId':_0x101f4e,'subUnitId':_0x37c4cf,'shapeId':_0x49952d,'shapeData':{'shapeText':_0x228f00},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x527152}}});},'updateHostSize':({unitId:_0x3b9957,subUnitId:_0x132da6,shapeId:_0x52e8ed,width:_0x28c894,height:_0x478b54})=>{const _0x1dc346=_0x4b6b3f;var _0x2a7ebd,_0xf725be,_0x1fa295;let _0x2bdc06=_0x1911e9['getDrawingByParam']({'unitId':_0x3b9957,'subUnitId':_0x132da6,'drawingId':_0x52e8ed}),_0x1a29f2=_0x2bdc06==null?void 0x0:_0x2bdc06[_0x1dc346(0xce)];if(!_0x2bdc06||!_0x1a29f2)return;let _0x77c763={..._0x1a29f2,'width':_0x28c894,'height':_0x478b54},_0x3df686=(_0x2a7ebd=_0x3a399f['getRenderUnitById'](_0x3b9957))==null||(_0x2a7ebd=_0x2a7ebd[_0x1dc346(0x2dd)](_0x48c126)['getSkeletonParam'](_0x132da6))==null?void 0x0:_0x2a7ebd[_0x1dc346(0x11c)],_0x2664bd=_0x3df686?(_0xf725be=_0x43002e(_0x77c763,_0x3df686))==null?_0x2bdc06['sheetTransform']:_0xf725be:_0x2bdc06[_0x1dc346(0x31a)],_0x14cebd=_0x3df686?(_0x1fa295=_0x5aa2b7(_0x77c763,_0x3df686))==null?_0x2bdc06[_0x1dc346(0x2b2)]:_0x1fa295:_0x2bdc06[_0x1dc346(0x2b2)];_0xb91e75['executeCommand'](_0x2cc676['id'],{'unitId':_0x3b9957,'drawings':[{..._0x2bdc06,'transform':_0x77c763,'sheetTransform':_0x2664bd,'axisAlignSheetTransform':_0x14cebd}]});},'allowHostSizeShrink':({unitId:_0x112302,subUnitId:_0x33de3f,shapeId:_0x3ebb8c})=>_0x4f6d3a(_0x3cd1ef[_0x4b6b3f(0xd4)](_0x112302,_0x33de3f,_0x3ebb8c))}),[_0xb91e75,_0x1911e9,_0x3a399f,_0x3cd1ef]),'editingService':_0x265d42,'editorUnitId':Gn,'positionOptions':_0xfae447(()=>({'viewportKeys':{'main':_0x61ec49[_0x4b6b3f(0x19a)],'leftTop':_0x61ec49[_0x4b6b3f(0x29d)],'top':_0x61ec49[_0x4b6b3f(0xc5)],'left':_0x61ec49[_0x4b6b3f(0x2e4)]},'getSkeleton':(_0x21a055,_0x1fbedb)=>{const _0x3596d6=_0x4b6b3f;var _0x5394ec,_0x1f33b4;return(_0x5394ec=(_0x1f33b4=_0x21a055[_0x3596d6(0x2dd)](_0x48c126)[_0x3596d6(0x11d)](_0x1fbedb['subUnitId']))==null?void 0x0:_0x1f33b4['skeleton'])==null?null:_0x5394ec;}}),[])});});let Er=class extends _0x444b76{constructor(_0x159561,_0x218afb){const _0x3b7eaa=_0xcb6cbb;super(),this['_componentManager']=_0x159561,this['_iconManager']=_0x218afb,this[_0x3b7eaa(0xe2)](),this[_0x3b7eaa(0x2a7)]();}['_registerIcons'](){const _0x1e9fc2=_0xcb6cbb;this[_0x1e9fc2(0xea)]['has']('ObjectLayersIcon')||this[_0x1e9fc2(0x2d6)](this['_iconManager']['register']({'ObjectLayersIcon':_0x41a10e})),this[_0x1e9fc2(0xea)][_0x1e9fc2(0x1cf)](_0x1e9fc2(0xcc))||this['disposeWithMe'](this['_iconManager']['register']({'FlipHorizontalIcon':_0x473587})),this[_0x1e9fc2(0xea)]['has'](_0x1e9fc2(0x1f8))||this[_0x1e9fc2(0x2d6)](this[_0x1e9fc2(0xea)][_0x1e9fc2(0xfb)]({'FlipVerticalIcon':_0x1155bd}));}[_0xcb6cbb(0x2a7)](){const _0x17dd4a=_0xcb6cbb;this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Hn,xr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](Un,vr)),this[_0x17dd4a(0x2d6)](this['_componentManager']['register'](Yn,er)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Xn,Qn)),this[_0x17dd4a(0x16a)][_0x17dd4a(0x2da)](_0x3d27a0)||this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x3d27a0,$n)),this[_0x17dd4a(0x2d6)](this['_componentManager'][_0x17dd4a(0xfb)](Wn,Sr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Kn,_0x5181cc)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x17dd4a(0x2d5),Tr));}};Er=Z([X(0x0,_0x25d6be(_0x3e4916)),X(0x1,_0x25d6be(_0x302aca))],Er);let Dr=class extends _0x444b76{constructor(_0x4cb247,_0x6f5d4a,_0x20b299,_0x1e98de,_0x2dd32b){const _0x3115a1=_0xcb6cbb;super(),this[_0x3115a1(0x2ea)]=_0x4cb247,this['_drawingManagerService']=_0x6f5d4a,this[_0x3115a1(0x154)]=_0x20b299,this[_0x3115a1(0x23f)]=_0x1e98de,this[_0x3115a1(0x104)]=_0x2dd32b,Y(this,'_activeImageId',null),Y(this,_0x3115a1(0x2aa),null),Y(this,_0x3115a1(0x13b),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x3115a1(0x1e9),[]),Y(this,_0x3115a1(0x1a6),0x0),Y(this,_0x3115a1(0x139),0x0),Y(this,'_baseWidth',0x0),Y(this,_0x3115a1(0x14d),0x0),Y(this,_0x3115a1(0x2e3),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x3115a1(0x191),void 0x0),Y(this,_0x3115a1(0x17a),void 0x0),Y(this,_0x3115a1(0xe3),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}['clearAdjustControls'](){const _0x28136f=_0xcb6cbb;this[_0x28136f(0x2f6)]();}[_0xcb6cbb(0x2b3)](){const _0x58e79e=_0xcb6cbb;this[_0x58e79e(0x2f6)](),this[_0x58e79e(0x126)](!0x0);}[_0xcb6cbb(0x272)](_0x41678b,_0x7119a7,_0x4ac725,_0x3a47b7){const _0x1d7f1b=_0xcb6cbb;let _0x23b538=_0x41678b;if(_0x23b538!==_0x4c4784['None']&&_0x41678b!=='custom')try{let _0x2d535e=new _0x508f4b(_0x23b538,_0x1d7f1b(0xe4)+_0x41678b);return _0x3a47b7&&_0x2d535e[_0x1d7f1b(0x1fa)]({'adjustValues':_0x3a47b7},!0x0),_0x2d535e[_0x1d7f1b(0x1d6)]({'width':_0x7119a7,'height':_0x4ac725}),_0x2d535e;}catch{return;}}['_getImageDrawingInfo'](_0x45f7d9,_0x314a84,_0x5c9ac2){const _0x1004f3=_0xcb6cbb;let _0x53d7e3={'unitId':_0x45f7d9,'subUnitId':_0x314a84,'drawingId':_0x5c9ac2},_0x1a893e=this['_drawingManagerService'][_0x1004f3(0x16d)](_0x53d7e3);if(!(!_0x1a893e||_0x1a893e['drawingType']!==_0x55872c[_0x1004f3(0x172)]))return _0x1a893e;}['_getImagePrstGeom'](_0x2b36c6,_0x22ff11,_0x1aa40b){const _0x1e1088=_0xcb6cbb;let _0x1721f8=this['_renderManagerService'][_0x1e1088(0x133)](_0x2b36c6);if(!_0x1721f8)return;let {scene:_0x3b9365}=_0x1721f8,_0xc24149=_0x4f98bd({'unitId':_0x2b36c6,'subUnitId':_0x22ff11,'drawingId':_0x1aa40b}),_0x51d90a=_0x3b9365[_0x1e1088(0x1a2)](_0xc24149);if(_0x51d90a instanceof _0x2c6b0b){let _0x1aac40=_0x51d90a[_0x1e1088(0x2db)];if(_0x1aac40)return{'prstGeom':_0x1aac40,'adjustValues':_0x51d90a[_0x1e1088(0x278)]};}}[_0xcb6cbb(0x126)](_0x52210b=!0x1){const _0x35937d=_0xcb6cbb;if(!this[_0x35937d(0x2aa)]||!this[_0x35937d(0x13b)]||!this[_0x35937d(0x15d)])return;let _0x3c802f=this[_0x35937d(0x154)]['getRenderUnitById'](this[_0x35937d(0x2aa)]);if(!_0x3c802f||!_0x3c802f['with'](_0x48c126)[_0x35937d(0x146)]())return;let {scene:_0x5e631a}=_0x3c802f,_0x1e2dbc=this[_0x35937d(0x31e)](this[_0x35937d(0x2aa)],this['_subUnitId'],this[_0x35937d(0x15d)]);if(!_0x1e2dbc)return;let {transform:_0x192b39}=_0x1e2dbc;if(!_0x192b39)return;let {left:_0x5784ad,top:_0x1eecaf,width:_0x2c712d,height:_0x5804cb,flipX:_0x1cbd26,flipY:_0xaf338e,angle:_0x36dcda=0x0}=_0x192b39;if(_0x5784ad===void 0x0||_0x1eecaf===void 0x0)return;let _0x4f35ec=this['_getImagePrstGeom'](this['_unitId'],this[_0x35937d(0x13b)],this[_0x35937d(0x15d)]);if(!_0x4f35ec)return;if(_0x52210b){let _0x204138=this[_0x35937d(0x272)](_0x4f35ec[_0x35937d(0x2db)],_0x2c712d||0x0,_0x5804cb||0x0,_0x4f35ec[_0x35937d(0x260)]);if(!_0x204138)return;this[_0x35937d(0x143)]=_0x204138['getDrawingPoints']();}let _0x1d5e9e=this[_0x35937d(0x143)];if(!(!_0x1d5e9e||_0x1d5e9e[_0x35937d(0x25d)]===0x0))for(let _0x54e8eb=0x0;_0x54e8eb<_0x1d5e9e[_0x35937d(0x25d)];_0x54e8eb++){let _0x5e8250=_0x1d5e9e[_0x54e8eb],_0x385672=_0x5e8250['x'],_0x1122b7=_0x5e8250['y'];if(_0x1cbd26&&(_0x385672=(_0x2c712d||0x0)-_0x385672),_0xaf338e&&(_0x1122b7=(_0x5804cb||0x0)-_0x1122b7),_0x36dcda!==0x0){let _0x54a947=(_0x2c712d||0x0)/0x2,_0xe75a45=(_0x5804cb||0x0)/0x2,_0xe681b9=_0x36dcda*Math['PI']/0xb4,_0x4797d7=Math[_0x35937d(0x20b)](_0xe681b9),_0x4c87f1=Math[_0x35937d(0x2d3)](_0xe681b9),_0x3139bd=_0x385672-_0x54a947,_0x21b479=_0x1122b7-_0xe75a45;_0x385672=_0x54a947+(_0x3139bd*_0x4797d7-_0x21b479*_0x4c87f1),_0x1122b7=_0xe75a45+(_0x3139bd*_0x4c87f1+_0x21b479*_0x4797d7);}let _0x197f8f={'x':_0x385672,'y':_0x1122b7,'adjName':_0x5e8250[_0x35937d(0x2bc)]};this[_0x35937d(0x18e)](_0x5e631a,_0x197f8f,_0x197f8f['adjName'],_0x5784ad,_0x1eecaf,this[_0x35937d(0x2aa)],this[_0x35937d(0x13b)]);}}[_0xcb6cbb(0x18e)](_0x21f874,_0x37a9d6,_0x41c92f,_0x42f3b7,_0x9b5f6d,_0x5cfd4d,_0x5c32ab){const _0x54cc8a=_0xcb6cbb;if(!this[_0x54cc8a(0x15d)])return;let _0x160e5c='image-clip-adjust-point-'+this[_0x54cc8a(0x15d)]+'-'+_0x41c92f,_0x19b536=_0x21f874[_0x54cc8a(0x114)](_0x160e5c);if(_0x19b536){_0x19b536[_0x54cc8a(0xdd)]({'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)]});return;}let _0x315308=new Rn(_0x160e5c,{'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)],'adjName':_0x41c92f,'shapeId':this[_0x54cc8a(0x15d)],'unitId':_0x5cfd4d,'subUnitId':_0x5c32ab,'width':_0x3cbe53['adjHandleSize']+0x8,'height':_0x3cbe53[_0x54cc8a(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0});this['_shapes'][_0x54cc8a(0x311)](_0x315308),this[_0x54cc8a(0x131)](_0x315308,_0x21f874,_0x41c92f),_0x21f874[_0x54cc8a(0x212)](_0x315308,_0x338629+0x1);}[_0xcb6cbb(0x2f6)](){const _0x211a98=_0xcb6cbb;this[_0x211a98(0x1e9)]['length']!==0x0&&(this['_shapes'][_0x211a98(0x26a)](_0x5e7e8a=>_0x5e7e8a['dispose']()),this[_0x211a98(0x1e9)]=[]);}[_0xcb6cbb(0x1ed)](_0x29f80e,_0x35c7db){const _0x2ff573=_0xcb6cbb;var _0x3730d5;let _0x386cdf={'x':0x0,'y':0x0},_0x1f209c=this[_0x2ff573(0x154)]['getRenderUnitById'](_0x29f80e);if(!_0x1f209c||!_0x1f209c[_0x2ff573(0x2dd)](_0x48c126)['getSkeleton'](_0x35c7db))return _0x386cdf;let _0x47b7a3=_0x1f209c[_0x2ff573(0x2dd)](_0x3e3bbb),_0x13f273=_0x47b7a3==null?void 0x0:_0x47b7a3[_0x2ff573(0x244)]();if(!_0x13f273)return _0x386cdf;let _0x306379=(_0x3730d5=this['_univerInstanceService'][_0x2ff573(0x187)](_0x29f80e))==null?void 0x0:_0x3730d5[_0x2ff573(0x26d)](_0x35c7db);if(!_0x306379)return _0x386cdf;let _0x12f578=_0x3dd685(_0x13f273[_0x2ff573(0x2f9)],_0x13f273[_0x2ff573(0x234)],_0x1f209c['scene'],_0x306379);return _0x12f578?{'x':_0x12f578[_0x2ff573(0x1c4)],'y':_0x12f578['viewportScrollY']}:_0x386cdf;}['_getZoomRatio'](_0xc55ee6,_0x115b7a){const _0x1b987c=_0xcb6cbb;var _0x421f33,_0x45ff6e;let _0x43d94c=(_0x421f33=this[_0x1b987c(0x23f)][_0x1b987c(0x187)](_0xc55ee6))==null?void 0x0:_0x421f33['getSheetBySheetId'](_0x115b7a);return(_0x45ff6e=_0x43d94c==null?void 0x0:_0x43d94c[_0x1b987c(0x2d2)]())==null?0x1:_0x45ff6e;}[_0xcb6cbb(0x131)](_0x1257dd,_0x53b286,_0x386349){const _0xd59c20=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1257dd[_0xd59c20(0xc9)][_0xd59c20(0x2fe)]((_0x3fcceb,_0x478fa1)=>{const _0x186ff1=_0xd59c20;var _0x5c1c9b,_0x39d006,_0x219e15;let {unitId:_0x255fbe,subUnitId:_0x228d0f,drawingId:_0x2fc253}=_0x1257dd[_0x186ff1(0x23d)](),_0x268f0b=this[_0x186ff1(0x31e)](_0x255fbe,_0x228d0f,_0x2fc253);if(!(_0x268f0b!=null&&_0x268f0b[_0x186ff1(0xce)]))return;let {left:_0x2addeb,top:_0x48e9e4,width:_0x44aa71,height:_0x259712}=_0x268f0b[_0x186ff1(0xce)];this[_0x186ff1(0x1a6)]=_0x2addeb||0x0,this[_0x186ff1(0x139)]=_0x48e9e4||0x0,this[_0x186ff1(0x17c)]=_0x44aa71||0x0,this['_baseHeight']=_0x259712||0x0;let _0x52eba0=!!((_0x5c1c9b=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x5c1c9b[_0x186ff1(0x16c)]),_0x1f8e4a=!!((_0x39d006=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x39d006['flipY']),_0x47226f=((_0x219e15=_0x268f0b[_0x186ff1(0xce)])==null?void 0x0:_0x219e15[_0x186ff1(0x31f)])||0x0,_0x599d21=this[_0x186ff1(0x266)](_0x255fbe,_0x228d0f,_0x2fc253);if(!_0x599d21)return;let _0x2762ec=this[_0x186ff1(0x272)](_0x599d21[_0x186ff1(0x2db)],this[_0x186ff1(0x17c)],this[_0x186ff1(0x14d)],_0x599d21[_0x186ff1(0x260)]);if(!_0x2762ec||(this[_0x186ff1(0xf6)]=_0x2762ec,this[_0x186ff1(0x2f5)]=_0x2762ec[_0x186ff1(0x1a4)](_0x386349),!this['_activeAdjustInfo']))return;this[_0x186ff1(0x2e3)]=!0x0,_0x53b286['disableObjectsEvent']();let _0x592869=_0x599d21[_0x186ff1(0x2db)];this['_adjHandlerPointerMove']=_0x53b286[_0x186ff1(0x291)]['subscribeEvent']((_0x4e3a6f,_0x448a68)=>{const _0x20cd52=_0x186ff1;if(!this[_0x20cd52(0x2e3)])return;let {offsetX:_0x531459,offsetY:_0x1775e1}=_0x4e3a6f,_0x373d2b=this['_activeAdjustInfo'];if(!this[_0x20cd52(0xf6)]||!_0x373d2b)return;_0x53b286[_0x20cd52(0x31c)](),_0x53b286[_0x20cd52(0x328)](_0x1bae0e[_0x20cd52(0x194)]);let _0x292599={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x20cd52(0x14d)]},_0x214e20=this[_0x20cd52(0x1ed)](_0x255fbe,_0x228d0f),_0x5a5dbc=this[_0x20cd52(0xc4)](_0x255fbe,_0x228d0f),_0x57d4f7=_0x531459/_0x5a5dbc+_0x214e20['x']-this[_0x20cd52(0x1a6)],_0x1ce65b=_0x1775e1/_0x5a5dbc+_0x214e20['y']-this[_0x20cd52(0x139)];if(_0x47226f!==0x0){let _0x2ea799=this[_0x20cd52(0x17c)]/0x2,_0x2d114e=this[_0x20cd52(0x14d)]/0x2,_0x4e4232=_0x47226f*Math['PI']/0xb4,_0x3f2fd5=Math['cos'](_0x4e4232),_0x25ad79=Math[_0x20cd52(0x2d3)](_0x4e4232),_0x4797f9=_0x57d4f7-_0x2ea799,_0x68e255=_0x1ce65b-_0x2d114e;_0x57d4f7=_0x2ea799+(_0x4797f9*_0x3f2fd5+_0x68e255*_0x25ad79),_0x1ce65b=_0x2d114e+(-_0x4797f9*_0x25ad79+_0x68e255*_0x3f2fd5);}_0x52eba0&&(_0x57d4f7=this[_0x20cd52(0x17c)]-_0x57d4f7),_0x1f8e4a&&(_0x1ce65b=this[_0x20cd52(0x14d)]-_0x1ce65b);let _0x37233c=this['_activeShapeModel'][_0x20cd52(0xbb)](_0x292599,{'x':_0x57d4f7,'y':_0x1ce65b},_0x373d2b,_0x52eba0,_0x1f8e4a);if(Object['keys'](_0x37233c)[_0x20cd52(0x25d)]!==0x0){for(let [_0x27c94b,_0x2cd2ce]of Object[_0x20cd52(0x1c8)](_0x37233c))this[_0x20cd52(0xf6)][_0x20cd52(0xda)](_0x27c94b,_0x2cd2ce);this[_0x20cd52(0xf6)][_0x20cd52(0x1d6)]({'width':this[_0x20cd52(0x17c)],'height':this[_0x20cd52(0x14d)]}),this[_0x20cd52(0x2f2)](_0x255fbe,_0x228d0f,_0x2fc253,_0x37233c),this[_0x20cd52(0x143)]=this[_0x20cd52(0xf6)][_0x20cd52(0x13c)](),this[_0x20cd52(0x126)](),_0x448a68[_0x20cd52(0x2c3)]();}}),this[_0x186ff1(0x17a)]=_0x53b286[_0x186ff1(0x24e)][_0x186ff1(0x2fe)]((_0x46a751,_0x204573)=>{const _0x220c97=_0x186ff1;if(this['_adjHandlerPointerMove'][_0x220c97(0x22f)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x53b286['resetCursor'](),this['_activeShapeModel']){let _0x54bf7e=this[_0x220c97(0xf6)][_0x220c97(0x111)](),_0x4188c3={};for(let _0x11aa58 of _0x54bf7e){let _0x4d1b93=this[_0x220c97(0xf6)]['getAdjustValueByName'](_0x11aa58);_0x4d1b93!==void 0x0&&(_0x4188c3[_0x11aa58]=_0x4d1b93);}this[_0x220c97(0x104)][_0x220c97(0x173)](_0x255fbe,_0x228d0f,_0x2fc253,_0x592869,_0x4188c3);}this['_activeAdjustInfo']=void 0x0,this[_0x220c97(0xf6)]=void 0x0,this[_0x220c97(0x2e3)]=!0x1,_0x204573['stopPropagation'](),_0x53b286['enableObjectsEvent']();}),_0x478fa1[_0x186ff1(0x2c3)]();})));}[_0xcb6cbb(0x2f2)](_0x139748,_0xa65c53,_0x56f2b8,_0x5236c2){const _0x2c4003=_0xcb6cbb;let _0xc9ee7d=this[_0x2c4003(0x154)][_0x2c4003(0x133)](_0x139748);if(!_0xc9ee7d)return;let {scene:_0x26a9d4}=_0xc9ee7d,_0x2c31b9=_0x4f98bd({'unitId':_0x139748,'subUnitId':_0xa65c53,'drawingId':_0x56f2b8}),_0x4b9023=_0x26a9d4['getObject'](_0x2c31b9);if(_0x4b9023 instanceof _0x2c6b0b){var _0x2cc9fb;let _0x2b253d=(_0x2cc9fb=_0x4b9023['prstGeomAdjValues'])==null?{}:_0x2cc9fb;_0x4b9023[_0x2c4003(0xd3)]({..._0x2b253d,..._0x5236c2}),_0x4b9023[_0x2c4003(0x1dd)](!0x0);}}[_0xcb6cbb(0x19b)](){const _0x5b994d=_0xcb6cbb;let _0x580c0e=this['_univerInstanceService'][_0x5b994d(0x1e2)](_0x593ef9[_0x5b994d(0x298)]);this['disposeWithMe'](_0x580c0e[_0x5b994d(0x23e)](_0x11d4bf(_0xab1079=>_0xab1079?_0xab1079[_0x5b994d(0x10c)]['pipe'](_0x11d4bf(_0x3c4906=>{const _0x5c57bc=_0x5b994d;if(!_0x3c4906)return _0x1198ce;let _0x2ab006=_0xab1079['getUnitId'](),_0x422210=this[_0x5c57bc(0x154)][_0x5c57bc(0x133)](_0x2ab006),_0x33b4af=_0x422210==null?void 0x0:_0x422210['scene'];return _0x33b4af?_0x9a150f(_0x33b4af):_0x1198ce;})):_0x1198ce))[_0x5b994d(0x2f7)](_0xa73dd7=>{const _0x209e42=_0x5b994d;let _0x319181=_0xa73dd7['getTransformerByCreate']();this[_0x209e42(0x2d6)](_0xa73dd7['onPointerMove$'][_0x209e42(0x2fe)](()=>{const _0x5d6874=_0x209e42;this['_isImagePointerDown']&&this[_0x5d6874(0x2f6)]();})),this[_0x209e42(0x2d6)](_0x319181['changeStart$'][_0x209e42(0x2f7)](_0x54cd17=>{const _0xa31fb0=_0x209e42;let {objects:_0x21bab1}=_0x54cd17;if(this[_0xa31fb0(0x126)](),_0x21bab1!==null&&_0x21bab1[_0xa31fb0(0x1e1)]===0x1){let _0x2d7f57=_0x21bab1['values']()['next']()['value'];_0x2d7f57 instanceof _0x2c6b0b&&_0x2d7f57[_0xa31fb0(0x2db)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x209e42(0x2d6)](_0x319181[_0x209e42(0x27e)][_0x209e42(0x2f7)](()=>{const _0x5392e8=_0x209e42;this['_isImagePointerDown']&&this[_0x5392e8(0x2f6)]();})),this[_0x209e42(0x2d6)](_0xa73dd7[_0x209e42(0x24e)][_0x209e42(0x2fe)](()=>{const _0xd6dddc=_0x209e42;this['_isImagePointerDown']&&(this[_0xd6dddc(0xe3)]=!0x1,this[_0xd6dddc(0x126)]());})),this['disposeWithMe'](_0x319181[_0x209e42(0xeb)][_0x209e42(0x2f7)](()=>{const _0x2909e6=_0x209e42;if(this['_unitId']&&this['_subUnitId']&&this[_0x2909e6(0x15d)]){let _0x53e620=this[_0x2909e6(0x266)](this['_unitId'],this[_0x2909e6(0x13b)],this['_activeImageId']);if(_0x53e620){var _0x3da8fd,_0x28c2f3;let _0x113646=this[_0x2909e6(0x31e)](this[_0x2909e6(0x2aa)],this[_0x2909e6(0x13b)],this[_0x2909e6(0x15d)]),_0x2e361d=(_0x113646==null||(_0x3da8fd=_0x113646['transform'])==null?void 0x0:_0x3da8fd['width'])||0x0,_0x564b3c=(_0x113646==null||(_0x28c2f3=_0x113646['transform'])==null?void 0x0:_0x28c2f3['height'])||0x0,_0x1ec05d=this[_0x2909e6(0x272)](_0x53e620[_0x2909e6(0x2db)],_0x2e361d,_0x564b3c,_0x53e620[_0x2909e6(0x260)]);_0x1ec05d&&(this[_0x2909e6(0x143)]=_0x1ec05d['getDrawingPoints'](),this[_0x2909e6(0x2f6)](),this[_0x2909e6(0x126)](!0x0));}}}));}));}[_0xcb6cbb(0x16e)](){const _0x1044af=_0xcb6cbb;this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)][_0x1044af(0xed)]['subscribe'](_0x50c5c6=>{const _0x3ea417=_0x1044af;if(_0x50c5c6[_0x3ea417(0x25d)]===0x1){let _0x4749a0=_0x50c5c6[0x0];if(_0x4749a0['drawingType']===_0x55872c[_0x3ea417(0x172)]){let {unitId:_0x1e57a9,subUnitId:_0x13223c,drawingId:_0x481de2}=_0x4749a0,_0x244c41=this['_getImagePrstGeom'](_0x1e57a9,_0x13223c,_0x481de2);if(_0x244c41){var _0x298532,_0x2d7ebb;this[_0x3ea417(0x15d)]=_0x481de2,this['_unitId']=_0x1e57a9,this[_0x3ea417(0x13b)]=_0x13223c;let _0xa8f814=this[_0x3ea417(0x31e)](_0x1e57a9,_0x13223c,_0x481de2),_0x133d2d=(_0xa8f814==null||(_0x298532=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x298532[_0x3ea417(0x1fb)])||0x0,_0x5a9737=(_0xa8f814==null||(_0x2d7ebb=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x2d7ebb['height'])||0x0,_0x5dc3c7=this[_0x3ea417(0x272)](_0x244c41[_0x3ea417(0x2db)],_0x133d2d,_0x5a9737,_0x244c41[_0x3ea417(0x260)]);_0x5dc3c7&&(this[_0x3ea417(0x143)]=_0x5dc3c7[_0x3ea417(0x13c)]()),this[_0x3ea417(0x2f6)](),this[_0x3ea417(0x126)](!0x0);}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();})),this[_0x1044af(0x2d6)](this['_drawingManagerService'][_0x1044af(0x1de)][_0x1044af(0x2f7)](_0x2f997d=>{const _0x28c496=_0x1044af;if(_0x2f997d[_0x28c496(0x25d)]===0x1){let _0x591dac=_0x2f997d[0x0],_0x14c4ad=this[_0x28c496(0x1ad)]['getDrawingByParam'](_0x591dac);(_0x14c4ad==null?void 0x0:_0x14c4ad[_0x28c496(0x1c2)])===_0x55872c[_0x28c496(0x172)]&&this[_0x28c496(0x15d)]===_0x591dac[_0x28c496(0x10e)]&&(this[_0x28c496(0x2f6)](),this['_createControls'](!0x0));}})),this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)]['remove$'][_0x1044af(0x2f7)](_0x346400=>{const _0xcff95e=_0x1044af;for(let _0x37bdc9 of _0x346400)this['_activeImageId']===_0x37bdc9[_0xcff95e(0x10e)]&&this['_resetState']();}));}[_0xcb6cbb(0x13a)](){const _0x1e49b0=_0xcb6cbb;this[_0x1e49b0(0x15d)]=null,this[_0x1e49b0(0x2aa)]=null,this['_subUnitId']=null,this[_0x1e49b0(0x143)]=void 0x0,this[_0x1e49b0(0x2f6)]();}};Dr=Z([X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x1af83c),X(0x4,_0x25d6be(Jn))],Dr);let Or=class extends _0x444b76{constructor(_0x2cb114,_0xbaef66,_0x4e19f5,_0x53a23b){const _0x359f7b=_0xcb6cbb;super(),this[_0x359f7b(0x23f)]=_0x2cb114,this[_0x359f7b(0x1d7)]=_0xbaef66,this[_0x359f7b(0x1b7)]=_0x4e19f5,this[_0x359f7b(0x287)]=_0x53a23b,this[_0x359f7b(0xb6)]();}[_0xcb6cbb(0xb6)](){const _0xa46382=_0xcb6cbb;this[_0xa46382(0x2d6)](this[_0xa46382(0x1d7)][_0xa46382(0xcd)]({'getMutations':_0x1c6c27=>{const _0x2c5833=_0xa46382;if(_0x1c6c27['id']===_0x130616['id']){let _0x4896a3=_0x5f445e(this['_univerInstanceService'],_0x1c6c27[_0x2c5833(0x24d)]);if(!_0x4896a3)return{'redos':[],'undos':[]};let {unitId:_0x4cd9d4,subUnitId:_0xdb827b}=_0x4896a3,_0x24494b=this[_0x2c5833(0x1b7)]['getDrawingData'](_0x4cd9d4,_0xdb827b),_0xbee42c=Object[_0x2c5833(0x1c7)](_0x24494b)[_0x2c5833(0x2b4)](_0x2f826a=>_0x2f826a[_0x2c5833(0x1c2)]===_0x55872c['DRAWING_SHAPE']);if(_0xbee42c[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0xc18a3c=[],_0x464090=[];for(let _0x23a3b1=0x0;_0x23a3b1<_0xbee42c[_0x2c5833(0x25d)];_0x23a3b1++){let _0x4979f1=_0xbee42c[_0x23a3b1],_0x22eabe=this[_0x2c5833(0x287)][_0x2c5833(0x2c4)](_0x4979f1[_0x2c5833(0x241)],_0x4979f1['subUnitId'],_0x4979f1['drawingId']);if(!_0x22eabe)continue;let {redo:_0x6f2326,undo:_0x56c30e,objects:_0x5b5006}=this[_0x2c5833(0x1b7)][_0x2c5833(0x1b1)]([_0x4979f1]);_0xc18a3c[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1[_0x2c5833(0x10e)]}}),_0xc18a3c['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e['REMOVE'],'op':_0x6f2326,'objects':_0x5b5006}}),_0x464090['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x56c30e,'objects':_0x5b5006}}),_0x464090[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1['drawingId'],'shapeType':_0x22eabe['getShapeType'](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x22eabe[_0x2c5833(0x113)]()))}});}return{'redos':_0xc18a3c,'undos':_0x464090};}else{if(_0x1c6c27['id']===_0x5249ee['id']){let {unitId:_0x101cc2,subUnitId:_0x2e6fe2,targetSubUnitId:_0x1cd677}=_0x1c6c27[_0x2c5833(0x24d)];if(!_0x101cc2||!_0x2e6fe2||!_0x1cd677)return{'redos':[],'undos':[]};let _0xa6e4ea=this[_0x2c5833(0x1b7)][_0x2c5833(0x127)](_0x101cc2,_0x2e6fe2),_0x4a41a4=Object[_0x2c5833(0x1c7)](_0xa6e4ea)[_0x2c5833(0x2b4)](_0x4bbe29=>_0x4bbe29['drawingType']===_0x55872c[_0x2c5833(0x1ce)]);if(_0x4a41a4[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0x16d187=[],_0x5f331b=[];for(let _0xfa56ef=0x0;_0xfa56ef<_0x4a41a4[_0x2c5833(0x25d)];_0xfa56ef++){let _0x1d4306=_0x4a41a4[_0xfa56ef],_0x13f2bb=this['_sheetsShapeService'][_0x2c5833(0x2c4)](_0x1d4306[_0x2c5833(0x241)],_0x1d4306[_0x2c5833(0x281)],_0x1d4306[_0x2c5833(0x10e)]);if(!_0x13f2bb)continue;let _0x3d4581=_0xf6c8c4(),_0x282169={..._0x1d4306,'unitId':_0x101cc2,'subUnitId':_0x1cd677,'drawingId':_0x3d4581},{redo:_0x59c180,undo:_0x34dc03,objects:_0x595757}=this['_sheetDrawingService'][_0x2c5833(0x2bf)]([_0x282169]);_0x16d187[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x59c180,'objects':_0x595757}}),_0x16d187[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581,'shapeType':_0x13f2bb[_0x2c5833(0xb7)](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x13f2bb[_0x2c5833(0x113)]()))}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x29c)],'op':_0x34dc03,'objects':_0x595757}});}return{'redos':_0x16d187,'undos':_0x5f331b};}}return{'redos':[],'undos':[]};}}));}};Or=Z([X(0x0,_0x25d6be(_0x1af83c)),X(0x1,_0x25d6be(_0x555ec8)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef))],Or);let kr=class extends _0x444b76{constructor(_0xe3879f,_0x51a412,_0xc62ff1,_0x10b4f6,_0xf1524d){const _0x4cbd30=_0xcb6cbb;super(),this[_0x4cbd30(0x2ea)]=_0xe3879f,this[_0x4cbd30(0x161)]=_0x51a412,this[_0x4cbd30(0x1ad)]=_0xc62ff1,this[_0x4cbd30(0x14f)]=_0x10b4f6,this[_0x4cbd30(0x287)]=_0xf1524d,Y(this,_0x4cbd30(0x280),null),this['_initEvents'](),this[_0x4cbd30(0x211)](),this[_0x4cbd30(0xd0)]();}[_0xcb6cbb(0xf3)](){const _0x242c33=_0xcb6cbb;let {scene:_0x27f938}=this['_context'];this[_0x242c33(0x2d6)](_0x27f938['onDblclick$'][_0x242c33(0x2fe)](_0x5ed27d=>{const _0x573db7=_0x242c33;let {offsetX:_0x43ebe3,offsetY:_0x1edc92}=_0x5ed27d,_0x2ed5e3=_0x27f938[_0x573db7(0x1eb)](_0x304485[_0x573db7(0x1e3)]([_0x43ebe3,_0x1edc92]));if(_0x2ed5e3 instanceof Ln){let _0x584683=this[_0x573db7(0x287)]['getShapeModel'](_0x2ed5e3[_0x573db7(0x241)],_0x2ed5e3[_0x573db7(0x281)],_0x2ed5e3[_0x573db7(0x124)]);if(_0x584683!=null&&_0x584683[_0x573db7(0x113)]()[_0x573db7(0x138)]||_0x286130(this[_0x573db7(0x287)][_0x573db7(0xb7)](_0x2ed5e3['unitId'],_0x2ed5e3['subUnitId'],_0x2ed5e3[_0x573db7(0x124)])))return;this[_0x573db7(0x161)][_0x573db7(0x285)]({'visible':!0x0,'unitId':_0x2ed5e3[_0x573db7(0x241)],'subUnitId':_0x2ed5e3['subUnitId'],'shapeId':_0x2ed5e3[_0x573db7(0x124)],'shapeKey':_0x2ed5e3[_0x573db7(0x303)]});}}));}[_0xcb6cbb(0x211)](){const _0xc0243d=_0xcb6cbb;this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0xed)][_0xc0243d(0x2f7)](_0x5cb6a4=>{const _0x541d45=_0xc0243d;if(_0x5cb6a4[_0x541d45(0x25d)]===0x1){let _0x4c3c46=_0x5cb6a4[0x0],_0x45be9f=this[_0x541d45(0x1ad)][_0x541d45(0x16d)](_0x4c3c46);if((_0x45be9f==null?void 0x0:_0x45be9f[_0x541d45(0x1c2)])===_0x55872c[_0x541d45(0x1ce)]){var _0x5e4673;let _0x51e3e6=this['_shapeTextEditingService'][_0x541d45(0x1e8)]();if((_0x51e3e6==null?void 0x0:_0x51e3e6[_0x541d45(0x124)])===_0x4c3c46[_0x541d45(0x10e)]&&_0x51e3e6[_0x541d45(0x1f5)])return;let _0x20e9f9=_0x286130(this[_0x541d45(0x287)][_0x541d45(0xb7)](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)])),_0x604ab3=!!((_0x5e4673=this[_0x541d45(0x287)]['getShapeModel'](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)]))!=null&&_0x5e4673[_0x541d45(0x113)]()[_0x541d45(0x138)]);(_0x20e9f9||_0x604ab3)&&this[_0x541d45(0x161)][_0x541d45(0x285)](null);}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this['_shapeTextEditingService'][_0x541d45(0x247)](!0x0),requestAnimationFrame(()=>{const _0x385d75=_0x541d45;this[_0x385d75(0x161)][_0x385d75(0x285)](null);}));}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this[_0x541d45(0x161)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ba355=_0x541d45;this[_0x1ba355(0x161)][_0x1ba355(0x285)](null);}));})),this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0x304)]['subscribe'](_0x2361d5=>{const _0x1231b0=_0xc0243d;let _0x40be36=this['_shapeTextEditingService'][_0x1231b0(0x1e8)]();_0x40be36&&_0x2361d5[_0x1231b0(0x230)](_0x2a2e47=>_0x2a2e47[_0x1231b0(0x10e)]===_0x40be36[_0x1231b0(0x124)])&&this['_shapeTextEditingService'][_0x1231b0(0x285)](null);}));}[_0xcb6cbb(0xd0)](){const _0x444656=_0xcb6cbb;this[_0x444656(0x2d6)](this[_0x444656(0x161)][_0x444656(0x1ac)][_0x444656(0x2f7)](_0x2000ff=>{const _0x4b493b=_0x444656;let {scene:_0x1c1d5b}=this[_0x4b493b(0x2ea)];if(this['_lastEditingShapeKey']){let _0x349517=_0x1c1d5b[_0x4b493b(0x114)](this[_0x4b493b(0x280)]);_0x349517&&_0x349517['setEditing'](!0x1);}if(_0x2000ff){let _0x3564d1=!!_0x2000ff[_0x4b493b(0x1f5)],_0x56b75d=_0x1c1d5b[_0x4b493b(0x114)](_0x2000ff[_0x4b493b(0x2fd)]);_0x56b75d&&(_0x56b75d[_0x4b493b(0x285)](_0x3564d1),this[_0x4b493b(0x280)]=_0x2000ff[_0x4b493b(0x2fd)]),this[_0x4b493b(0x14f)][_0x4b493b(0x1ea)](_0x2bcc42,_0x3564d1);}else this[_0x4b493b(0x280)]=null,this['_contextService'][_0x4b493b(0x1ea)](_0x2bcc42,!0x1);}));}};kr=Z([X(0x1,_0x25d6be(wr)),X(0x2,_0x5a1ed0),X(0x3,_0x34c0f6),X(0x4,_0x25d6be(_0x231cef))],kr);let Ar=class extends _0x4ab995{constructor(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352){super(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352,{'componentKey':Kn,'editorUnitId':Gn});}};Ar=Z([X(0x1,_0x25d6be(_0x1d0921)),X(0x2,_0x25d6be(_0x2a16ba)),X(0x3,_0x25d6be(_0x4b8e76))],Ar);let jr=class extends _0x444b76{constructor(_0x4f55b3,_0x4744a8,_0x2c27e5,_0x5dd76e,_0x21e1c3,_0x5e71e9){const _0x10a2f1=_0xcb6cbb;super(),this[_0x10a2f1(0x300)]=_0x4f55b3,this['_renderManagerService']=_0x4744a8,this[_0x10a2f1(0x1ad)]=_0x2c27e5,this[_0x10a2f1(0x20c)]=_0x5dd76e,this[_0x10a2f1(0x222)]=_0x21e1c3,this[_0x10a2f1(0x1b2)]=_0x5e71e9,Y(this,_0x10a2f1(0x1c0),new Set()),this[_0x10a2f1(0x318)]();}[_0xcb6cbb(0x318)](){const _0x57d749=_0xcb6cbb;this[_0x57d749(0xee)](),this[_0x57d749(0x2a1)](),this[_0x57d749(0x2ff)]();}[_0xcb6cbb(0xee)](){const _0x3b2ca8=_0xcb6cbb;this[_0x3b2ca8(0x2d6)](this['_drawingManagerService'][_0x3b2ca8(0x253)][_0x3b2ca8(0x2f7)](_0x16763b=>{const _0x41fe24=_0x3b2ca8;this[_0x41fe24(0x29a)](_0x16763b);}));}[_0xcb6cbb(0x2a1)](){const _0x548666=_0xcb6cbb;this[_0x548666(0x2d6)](this[_0x548666(0x300)]['onCommandExecuted'](_0x3d54b3=>{const _0x3f406a=_0x548666;if(_0x3d54b3['id']===_0x528850['id']){let {unitId:_0x25c4d9,subUnitId:_0x1a1749,shapeId:_0x405fba}=_0x3d54b3['params'],_0x130ee9=this['_getSceneAndTransformerByDrawingSearch'](_0x25c4d9),_0x578732=_0x4f98bd({'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'drawingId':_0x405fba}),_0x2048b2=_0x130ee9==null?void 0x0:_0x130ee9[_0x3f406a(0x1f6)]['getObjectIncludeInGroup'](_0x578732);_0x2048b2&&(this[_0x3f406a(0x1b2)]['refreshShapeFillImage'](_0x2048b2),this[_0x3f406a(0x1b2)][_0x3f406a(0x129)](_0x2048b2,{'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'shapeId':_0x405fba}),_0x2048b2[_0x3f406a(0x1dd)](!0x0));return;}if(_0x3d54b3['id']===_0x314d59['id']){var _0x32306a;let {unitId:_0x208c25,subUnitId:_0x2199b2,shapeId:_0x4ee8cb}=_0x3d54b3[_0x3f406a(0x24d)],_0x2e88f6=this[_0x3f406a(0x1aa)](_0x208c25);if(_0x2e88f6==null)return;let {scene:_0x2cfcb6}=_0x2e88f6,_0x16991e=_0x4f98bd({'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}),_0x5e27cd=_0x2cfcb6['getObjectIncludeInGroup'](_0x16991e);if(!((_0x32306a=this[_0x3f406a(0x154)][_0x3f406a(0x133)](_0x208c25))!=null&&_0x32306a[_0x3f406a(0x2dd)](_0x48c126)[_0x3f406a(0x1bf)](_0x2199b2)))return!0x1;if(_0x5e27cd)return;this[_0x3f406a(0x29a)]([{'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}]);}}));}[_0xcb6cbb(0x2ff)](){const _0x473ba1=_0xcb6cbb;this[_0x473ba1(0x2d6)](this[_0x473ba1(0x1ad)]['update$'][_0x473ba1(0x2f7)](_0x1e0747=>{const _0x30004c=_0x473ba1;_0x1e0747[_0x30004c(0x26a)](_0x19b652=>{const _0x4dcf05=_0x30004c;let {unitId:_0x544858,subUnitId:_0x39d38c,drawingId:_0x835248}=_0x19b652,_0x336854=this[_0x4dcf05(0x1ad)][_0x4dcf05(0x16d)](_0x19b652);if(_0x336854==null)return;let {transform:_0x38e70e,drawingType:_0x4eb525,srcRect:_0x250bdc,prstGeom:_0x5f0fc1}=_0x336854;if(_0x4eb525!==_0x55872c[_0x4dcf05(0x1ce)])return;let _0x2c9cae=this['_getSceneAndTransformerByDrawingSearch'](_0x544858);if(_0x2c9cae==null)return;let {scene:_0x34d5e0,transformer:_0x347d7a}=_0x2c9cae;if(_0x38e70e==null)return!0x0;let _0x23c0ef=_0x4f98bd({'unitId':_0x544858,'subUnitId':_0x39d38c,'drawingId':_0x835248}),_0x5645ce=_0x34d5e0[_0x4dcf05(0x114)](_0x23c0ef);if(_0x5645ce==null)return!0x0;_0x5645ce[_0x4dcf05(0xc3)](_0x250bdc),_0x5645ce[_0x4dcf05(0x268)](_0x5f0fc1);});}));}[_0xcb6cbb(0x29a)](_0x47ef13){const _0x110251=_0xcb6cbb;for(let _0x2f492c of _0x47ef13){var _0x58eeb8;let {unitId:_0x1817c6,subUnitId:_0x430205,drawingId:_0x35145e}=_0x2f492c,_0x31b6bd=this['_getSceneAndTransformerByDrawingSearch'](_0x1817c6),_0x254bd6=(_0x58eeb8=_0x38af4c(this[_0x110251(0x20c)],_0x1817c6))==null?void 0x0:_0x58eeb8[_0x110251(0x281)];if(_0x31b6bd==null||_0x254bd6!==_0x430205)return;let _0x4a93dd=_0x4f98bd({'unitId':_0x1817c6,'subUnitId':_0x430205,'drawingId':_0x35145e});if(this[_0x110251(0x1c0)]['has'](_0x4a93dd)||_0x31b6bd['scene'][_0x110251(0x114)](_0x4a93dd)!=null)return;let _0x115646=this[_0x110251(0x1ad)][_0x110251(0x16d)](_0x2f492c);if(_0x115646==null||_0x115646[_0x110251(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;if(_0x286130((_0x115646['data']||{})['shapeType'])){let _0x5629b3=_0x115646['transform'];_0x5629b3&&(_0x115646[_0x110251(0xce)]={..._0x5629b3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x110251(0x1c0)][_0x110251(0x1b9)](_0x4a93dd);try{this[_0x110251(0x1b2)][_0x110251(0x1f9)](_0x115646,_0x31b6bd['scene']);}finally{this[_0x110251(0x1c0)][_0x110251(0x2a6)](_0x4a93dd);}queueMicrotask(()=>{const _0x25df83=_0x110251;if(this[_0x25df83(0x1bc)])return;let _0x2f1265=_0x4f98bd(_0x2f492c);if(!_0x31b6bd['scene'][_0x25df83(0x114)](_0x2f1265))return;let _0x546204=this[_0x25df83(0x1ad)][_0x25df83(0x16d)](_0x2f492c);_0x546204&&this[_0x25df83(0x1ad)][_0x25df83(0x134)]([_0x546204]);});}}[_0xcb6cbb(0x1aa)](_0x5766a8){const _0x4ea100=_0xcb6cbb;if(_0x5766a8==null)return;let _0x343012=this[_0x4ea100(0x154)]['getRenderUnitById'](_0x5766a8),_0x8a725b=_0x343012==null?void 0x0:_0x343012[_0x4ea100(0x1f6)];return _0x8a725b==null?null:{'scene':_0x8a725b,'transformer':_0x8a725b[_0x4ea100(0x24a)]()};}};jr=Z([X(0x0,_0x3a72b1),X(0x1,_0x297a94),X(0x2,_0x5a1ed0),X(0x3,_0x1af83c),X(0x4,_0x25d6be(_0x56246f)),X(0x5,_0x25d6be(Q))],jr);const Mr={'normal':{'fill':_0x3cbe53['cxnPointFill'],'stroke':_0x3cbe53[_0xcb6cbb(0x206)],'strokeWidth':_0x3cbe53[_0xcb6cbb(0xe9)]},'highlighted':{'fill':_0xcb6cbb(0x256),'stroke':_0xcb6cbb(0x30e),'strokeWidth':0x2}};var Nr=class extends _0x30d1c4{constructor(_0x235594,_0x34adb1){const _0x38204d=_0xcb6cbb;super(_0x235594,_0x34adb1),Y(this,_0x38204d(0x2f1),''),Y(this,_0x38204d(0x30b),-0x1),Y(this,_0x38204d(0x2aa),''),Y(this,_0x38204d(0x13b),''),Y(this,_0x38204d(0xf1),!0x1),_0x34adb1&&this[_0x38204d(0x315)](_0x34adb1);}[_0xcb6cbb(0x120)](){const _0xa90140=_0xcb6cbb;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0xa90140(0x30b)]};}[_0xcb6cbb(0x1f7)](_0x13e473){const _0x2d5e10=_0xcb6cbb;this[_0x2d5e10(0xf1)]!==_0x13e473&&(this[_0x2d5e10(0xf1)]=_0x13e473,this[_0x2d5e10(0x1dd)](!0x0));}[_0xcb6cbb(0x25b)](){const _0x123790=_0xcb6cbb;return this[_0x123790(0xf1)];}[_0xcb6cbb(0x315)](_0x424fba){const _0x472df4=_0xcb6cbb;var _0x2b4096,_0x3b97ae;_0x424fba[_0x472df4(0x240)]!==void 0x0&&(this[_0x472df4(0x2f1)]=_0x424fba['targetShapeId']),_0x424fba[_0x472df4(0xc7)]!==void 0x0&&(this[_0x472df4(0x30b)]=_0x424fba[_0x472df4(0xc7)]),_0x424fba[_0x472df4(0x241)]!==void 0x0&&(this[_0x472df4(0x2aa)]=_0x424fba[_0x472df4(0x241)]),_0x424fba['subUnitId']!==void 0x0&&(this[_0x472df4(0x13b)]=_0x424fba[_0x472df4(0x281)]),_0x424fba[_0x472df4(0x25b)]!==void 0x0&&(this[_0x472df4(0xf1)]=_0x424fba['isHighlighted']),this[_0x472df4(0xdd)]({'width':(_0x2b4096=_0x424fba['width'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x2b4096,'height':(_0x3b97ae=_0x424fba['height'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x3b97ae});}[_0xcb6cbb(0x2d9)](_0x15e2f7){const _0x39a129=_0xcb6cbb;let _0x19eba7=this[_0x39a129(0xf1)]?Mr[_0x39a129(0xba)]:Mr['normal'];_0x38d822['drawWith'](_0x15e2f7,{'radius':_0x3cbe53['cxnPointRadius'],'fill':_0x19eba7[_0x39a129(0x2e6)],'stroke':_0x19eba7[_0x39a129(0x1c6)],'strokeWidth':_0x19eba7[_0x39a129(0x189)],'evented':!0x0});}};let Pr=class extends _0x444b76{constructor(_0x48be72,_0x463997,_0x589749,_0x19d866){const _0xbc04a0=_0xcb6cbb;super(),this[_0xbc04a0(0x2ea)]=_0x48be72,this[_0xbc04a0(0x154)]=_0x463997,this[_0xbc04a0(0x1ad)]=_0x589749,this[_0xbc04a0(0x287)]=_0x19d866,Y(this,_0xbc04a0(0x2c2),[]),Y(this,'_activeTargetShapeId',null),Y(this,_0xbc04a0(0x16f),-0x1),Y(this,_0xbc04a0(0x293),null),Y(this,_0xbc04a0(0x2aa),''),Y(this,'_subUnitId',''),Y(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x15c70e,_0x47e404,_0xdd2ece,_0x5828eb){const _0x2b63f3=_0xcb6cbb;this[_0x2b63f3(0x293)]=_0x15c70e,this[_0x2b63f3(0x2aa)]=_0x47e404,this[_0x2b63f3(0x13b)]=_0xdd2ece,this[_0x2b63f3(0x294)]=_0x5828eb;}[_0xcb6cbb(0x121)](_0x57d103){const _0x15269a=_0xcb6cbb;if(!this[_0x15269a(0x293)])return null;let _0x3a127e=this['_findShapeAtPoint'](_0x57d103);return _0x3a127e?(this[_0x15269a(0x1bd)]!==_0x3a127e[_0x15269a(0x124)]&&(this['_clearConnectionSites'](),this[_0x15269a(0x1b8)](_0x3a127e[_0x15269a(0x124)],_0x3a127e[_0x15269a(0x279)]),this[_0x15269a(0x1bd)]=_0x3a127e['shapeId']),this['_findNearestConnectionSite'](_0x57d103)):(this[_0x15269a(0x1bd)]!==null&&(this[_0x15269a(0x196)](),this[_0x15269a(0x1bd)]=null),null);}[_0xcb6cbb(0x2fa)](){const _0x451ba1=_0xcb6cbb;this[_0x451ba1(0x196)](),this[_0x451ba1(0x293)]=null,this[_0x451ba1(0x1bd)]=null,this[_0x451ba1(0x16f)]=-0x1,this[_0x451ba1(0x294)]=null;}[_0xcb6cbb(0x18c)](){const _0x117154=_0xcb6cbb;return this[_0x117154(0x1bd)]===null||this[_0x117154(0x16f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x117154(0x16f)]};}[_0xcb6cbb(0x1ec)](_0x39d89e){const _0x202ecd=_0xcb6cbb;let _0x4c08e2=this[_0x202ecd(0x1ad)]['getDrawingData'](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)]);for(let _0x41d463 of Object['keys'](_0x4c08e2)){if(_0x41d463===this[_0x202ecd(0x294)]||_0x4c08e2[_0x41d463]['drawingType']!==_0x55872c['DRAWING_SHAPE'])continue;let _0x52d27c=this[_0x202ecd(0x287)][_0x202ecd(0x2c4)](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)],_0x41d463);if(!_0x52d27c||_0x286130(_0x52d27c[_0x202ecd(0xb7)]())||_0x52d27c[_0x202ecd(0x2cd)]()[_0x202ecd(0x25d)]===0x0||!this[_0x202ecd(0x293)])continue;let _0x3825b2=_0x4f98bd({'unitId':this[_0x202ecd(0x2aa)],'subUnitId':this[_0x202ecd(0x13b)],'drawingId':_0x41d463}),_0x1222a4=this[_0x202ecd(0x293)][_0x202ecd(0x114)](_0x3825b2);if(!_0x1222a4)continue;let {left:_0x310095,top:_0x3fa879,width:_0x2d1cbd,height:_0x22c507}=_0x1222a4['getRealBound'](),_0x413fca=_0x310095+_0x2d1cbd/0x2,_0x266cc6=_0x3fa879+_0x22c507/0x2,_0x2309de=_0x1222a4[_0x202ecd(0xce)][_0x202ecd(0x1c9)](),_0x58cb58=new _0x3bab71([_0x2309de[0x0],_0x2309de[0x1],_0x2309de[0x2],_0x2309de[0x3],_0x413fca,_0x266cc6]),_0x27779b=_0x1222a4[_0x202ecd(0x19c)](),_0x2d26a=(_0x1222a4[_0x202ecd(0x2a0)]&&(_0x27779b==null?void 0x0:_0x27779b[_0x202ecd(0x213)])===_0x407a18['GROUP']?_0x27779b['ancestorTransform'][_0x202ecd(0xe1)](_0x58cb58):_0x58cb58)['invert']()[_0x202ecd(0x235)](_0x39d89e),_0x203d87=_0x2d1cbd/0x2,_0x26b090=_0x22c507/0x2;if(_0x2d26a['x']>=-_0x203d87-0x5&&_0x2d26a['x']<=_0x203d87+0x5&&_0x2d26a['y']>=-_0x26b090-0x5&&_0x2d26a['y']<=_0x26b090+0x5)return{'shapeId':_0x41d463,'shapeModel':_0x52d27c};}return null;}[_0xcb6cbb(0x1b8)](_0x44b739,_0x50fe9b){const _0x21101f=_0xcb6cbb;if(!this[_0x21101f(0x293)])return;let _0x3ea957=_0x4f98bd({'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'drawingId':_0x44b739}),_0x53ee07=this[_0x21101f(0x293)][_0x21101f(0x114)](_0x3ea957);if(!_0x53ee07)return;let {left:_0x2e325b,top:_0x2346d1,width:_0x154a8a,height:_0x3a8768}=_0x53ee07['getRealBound'](),_0x36e9c5=_0x2e325b+_0x154a8a/0x2,_0x5d46af=_0x2346d1+_0x3a8768/0x2,_0x347420=_0x53ee07[_0x21101f(0xce)][_0x21101f(0x1c9)](),_0x3e41a4=new _0x3bab71([_0x347420[0x0],_0x347420[0x1],_0x347420[0x2],_0x347420[0x3],_0x36e9c5,_0x5d46af]),_0x5c923b=_0x53ee07[_0x21101f(0x19c)](),_0xc1a149=_0x53ee07[_0x21101f(0x2a0)]&&(_0x5c923b==null?void 0x0:_0x5c923b[_0x21101f(0x213)])===_0x407a18[_0x21101f(0x2c8)]?_0x5c923b[_0x21101f(0x262)]['multiply'](_0x3e41a4):_0x3e41a4;_0x50fe9b['updateContext']({'width':_0x154a8a,'height':_0x3a8768});let _0x2072a0=_0x50fe9b[_0x21101f(0x2cd)]();for(let _0xa8d8d5 of _0x2072a0){let _0x4d4279=_0xa8d8d5['x']-_0x154a8a/0x2,_0x4bff7f=_0xa8d8d5['y']-_0x3a8768/0x2,_0x27d8d9=_0xc1a149[_0x21101f(0x235)]({'x':_0x4d4279,'y':_0x4bff7f}),_0x98180c=_0x27d8d9['x'],_0x10c9dd=_0x27d8d9['y'],_0x518202=new Nr(_0x21101f(0x30f)+_0x44b739+'-'+_0xa8d8d5[_0x21101f(0x1cc)],{'left':_0x98180c-_0x3cbe53['cxnPointRadius'],'top':_0x10c9dd-_0x3cbe53[_0x21101f(0x27a)],'targetShapeId':_0x44b739,'cxnIndex':_0xa8d8d5[_0x21101f(0x1cc)],'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'width':_0x3cbe53[_0x21101f(0x27a)]*0x2,'height':_0x3cbe53['cxnPointRadius']*0x2,'zIndex':_0x338629+0x2,'evented':!0x1});this[_0x21101f(0x2c2)][_0x21101f(0x311)](_0x518202),this['_currentScene'][_0x21101f(0x212)](_0x518202,_0x338629+0x2);}}['_findNearestConnectionSite'](_0x55c523){const _0x3717b8=_0xcb6cbb;let _0x109622=null,_0x5a318e=0x1/0x0,_0x4012cf=null;for(let _0x35c329 of this[_0x3717b8(0x2c2)]){let _0xc7cf28=_0x35c329['left']+_0x3cbe53[_0x3717b8(0x27a)],_0x8732b1=_0x35c329['top']+_0x3cbe53[_0x3717b8(0x27a)],_0x40239a=_0x55c523['x']-_0xc7cf28,_0x1668bd=_0x55c523['y']-_0x8732b1,_0x484ebe=Math[_0x3717b8(0x2ca)](_0x40239a*_0x40239a+_0x1668bd*_0x1668bd);_0x484ebe<_0x5a318e&&(_0x5a318e=_0x484ebe,_0x109622=_0x35c329,_0x4012cf={'x':_0xc7cf28,'y':_0x8732b1});}let _0x1cedb0=_0x5a318e<=0xa&&_0x109622?_0x109622['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x1cedb0!==this['_highlightedSiteIndex']){for(let _0x59876d of this[_0x3717b8(0x2c2)]){let _0x17a93c=_0x59876d[_0x3717b8(0x120)]();_0x59876d['setHighlighted'](_0x17a93c['cxnIndex']===_0x1cedb0);}this['_highlightedSiteIndex']=_0x1cedb0;}if(_0x5a318e<=0xa&&_0x109622&&_0x4012cf){let _0xc9207c=_0x109622['getConnectionInfo'](),_0x335cf3=this[_0x3717b8(0x2b8)](_0xc9207c[_0x3717b8(0x124)],_0xc9207c['cxnIndex']);return{'shapeId':_0xc9207c[_0x3717b8(0x124)],'cxnIndex':_0xc9207c[_0x3717b8(0xc7)],'unitId':_0xc9207c[_0x3717b8(0x241)],'subUnitId':_0xc9207c[_0x3717b8(0x281)],'worldPoint':_0x4012cf,'angle':_0x335cf3};}return null;}[_0xcb6cbb(0x2b8)](_0x42b77d,_0x13d159){const _0x2337c2=_0xcb6cbb;let _0x2347e3=this[_0x2337c2(0x287)][_0x2337c2(0x2c4)](this[_0x2337c2(0x2aa)],this[_0x2337c2(0x13b)],_0x42b77d);if(!_0x2347e3)return 0x0;let _0xaf6ee2=this[_0x2337c2(0x1ad)][_0x2337c2(0x16d)]({'unitId':this[_0x2337c2(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':_0x42b77d});if(!(_0xaf6ee2!=null&&_0xaf6ee2[_0x2337c2(0xce)]))return 0x0;let {width:_0x5dd98c=0x0,height:_0x5be815=0x0,flipX:_0x23184d=!0x1,flipY:_0xc655ca=!0x1}=_0xaf6ee2[_0x2337c2(0xce)];_0x2347e3[_0x2337c2(0x1d6)]({'width':_0x5dd98c,'height':_0x5be815});let _0x4c42bd=_0x2347e3[_0x2337c2(0x2cd)]()[_0x2337c2(0x2e5)](_0x10e55e=>_0x10e55e[_0x2337c2(0x1cc)]===_0x13d159);if(!_0x4c42bd)return 0x0;let _0x3fde12=_0x4c42bd['ang']/0xea60;return _0x23184d&&(_0x3fde12=0xb4-_0x3fde12),_0xc655ca&&(_0x3fde12=-_0x3fde12),_0x3fde12=(_0x3fde12%0x168+0x168)%0x168,_0x3fde12;}[_0xcb6cbb(0x196)](){const _0x1509f0=_0xcb6cbb;for(let _0x14b02e of this[_0x1509f0(0x2c2)])_0x14b02e[_0x1509f0(0x20e)]();this[_0x1509f0(0x2c2)]=[],this[_0x1509f0(0x16f)]=-0x1;}[_0xcb6cbb(0x20e)](){const _0x1fd33b=_0xcb6cbb;this['_clearConnectionSites'](),super[_0x1fd33b(0x20e)]();}};Pr=Z([X(0x1,_0x25d6be(_0x297a94)),X(0x2,_0x25d6be(_0x5a1ed0)),X(0x3,_0x25d6be(_0x231cef))],Pr);let Fr=class extends _0x444b76{constructor(_0x939328,_0x4aafee,_0x4d942f,_0x22c80e,_0x282900){const _0x40ec97=_0xcb6cbb;super(),this['_sheetSkeletonService']=_0x939328,this[_0x40ec97(0x125)]=_0x4aafee,this[_0x40ec97(0x1b7)]=_0x4d942f,this['_shapeService']=_0x22c80e,this[_0x40ec97(0x214)]=_0x282900,Y(this,_0x40ec97(0x25e),void 0x0),this[_0x40ec97(0x314)](),this[_0x40ec97(0x178)]();}get[_0xcb6cbb(0x1f2)](){const _0x3c8778=_0xcb6cbb;return this[_0x3c8778(0x1b7)][_0x3c8778(0x2e9)]();}['_registerGroupFeaturePasteHook'](){const _0x5667ad=_0xcb6cbb;this[_0x5667ad(0x214)]['registerFeaturePasteHook'](({fromUnitId:_0x1dbcb5,fromSubUnitId:_0x1d589f,toUnitId:_0x4bdf9a,toSubUnitId:_0x375f3c,idMap:_0xc01cd8})=>{const _0x27fb65=_0x5667ad;let _0x3240b5=[],_0x19fa65=[];for(let [_0x1df21b,_0x2e59ee]of _0xc01cd8[_0x27fb65(0x1c8)]()){let _0x3980c2=this[_0x27fb65(0x26f)][_0x27fb65(0x2c4)](_0x1dbcb5,_0x1d589f,_0x1df21b);if(!_0x3980c2)continue;let _0xf95a70=_0x3980c2[_0x27fb65(0xb7)](),_0x2d95fb=JSON[_0x27fb65(0x226)](JSON[_0x27fb65(0x276)](_0x3980c2[_0x27fb65(0x113)]()));if(_0x2d95fb[_0x27fb65(0x12f)]){var _0x56b59e,_0x3dd889;let _0x34dddc=(_0x56b59e=_0x2d95fb[_0x27fb65(0x12f)][_0x27fb65(0x30c)])==null?void 0x0:_0x56b59e[_0x27fb65(0x124)],_0x51c96a=(_0x3dd889=_0x2d95fb[_0x27fb65(0x12f)]['to'])==null?void 0x0:_0x3dd889[_0x27fb65(0x124)],_0x5c9bd6=!_0x34dddc||_0xc01cd8[_0x27fb65(0x1cf)](_0x34dddc),_0x5dc614=!_0x51c96a||_0xc01cd8[_0x27fb65(0x1cf)](_0x51c96a);_0x5c9bd6&&_0x34dddc&&_0x2d95fb['relation']['from']?_0x2d95fb['relation'][_0x27fb65(0x30c)]={..._0x2d95fb[_0x27fb65(0x12f)]['from'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x34dddc)}:_0x2d95fb[_0x27fb65(0x12f)]['from']=void 0x0,_0x5dc614&&_0x51c96a&&_0x2d95fb[_0x27fb65(0x12f)]['to']?_0x2d95fb[_0x27fb65(0x12f)]['to']={..._0x2d95fb['relation']['to'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x51c96a)}:_0x2d95fb[_0x27fb65(0x12f)]['to']=void 0x0;}_0x3240b5['push']({'id':_0x314d59['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee,'shapeType':_0xf95a70,'shapeData':_0x2d95fb}}),_0x19fa65[_0x27fb65(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee}});}return{'redos':_0x3240b5,'undos':_0x19fa65};});}[_0xcb6cbb(0x314)](){const _0x2cbfa4=_0xcb6cbb;this[_0x2cbfa4(0x2d6)](this[_0x2cbfa4(0x125)][_0x2cbfa4(0x13e)]({'id':_0x2cbfa4(0x2ec),'onBeforeCopy':(_0x31e34b,_0x4683a9,_0x53553b,_0xde0465)=>{const _0x20a781=_0x2cbfa4;this['_copyInfo']=null;let _0x31f16b=this[_0x20a781(0x1f2)];if(_0x31f16b[_0x20a781(0x25d)]){let _0x18e7d2=_0x31f16b[_0x20a781(0x2b4)](_0x38a6a9=>_0x38a6a9['drawingType']===_0x55872c[_0x20a781(0x1ce)]);if(_0x18e7d2[_0x20a781(0x25d)]===0x0)return;this[_0x20a781(0x25e)]={'unitId':_0x31e34b,'subUnitId':_0x4683a9,'copyType':_0xde0465,'drawings':_0x18e7d2};}else this[_0x20a781(0x109)](_0x31e34b,_0x4683a9,_0x53553b,_0xde0465);},'onPasteCells':(_0x5476fe,_0x568a89,_0x57a126,_0x1f5cc3)=>{const _0x1a2e2e=_0x2cbfa4;if(!this[_0x1a2e2e(0x25e)])return{'redos':[],'undos':[]};let {pasteType:_0x242531}=_0x1f5cc3;return _0x242531===_0x403204[_0x1a2e2e(0x2d0)]?this[_0x1a2e2e(0x25f)](_0x568a89,this[_0x1a2e2e(0x25e)]['copyType']===_0xf143f2['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x494c81=>this[_0x2cbfa4(0x25e)]?this[_0x2cbfa4(0x25f)](_0x494c81,this['_copyInfo'][_0x2cbfa4(0x296)]===_0xf143f2[_0x2cbfa4(0x203)]):{'redos':[],'undos':[]}}));}[_0xcb6cbb(0x109)](_0x400851,_0x27dd16,_0x137774,_0x1b7e5d){const _0x2d7246=_0xcb6cbb;let _0xb838c5=this[_0x2d7246(0x224)]['getSkeleton'](_0x400851,_0x27dd16);if(!_0xb838c5)return;let _0x1d4d27=_0x2cf26d(_0xb838c5,_0x137774);if(!_0x1d4d27)return;let {startX:_0xa25c97,endX:_0x23c167,startY:_0x58d818,endY:_0x44b86c}=_0x1d4d27,_0x169b94=this[_0x2d7246(0x1b7)]['getDrawingData'](_0x400851,_0x27dd16),_0x41de78=this['_focusedDrawings'][_0x2d7246(0x216)]();for(let [_0x2d4b8d,_0xd1cc24]of Object[_0x2d7246(0x1c8)](_0x169b94)){if(_0xd1cc24[_0x2d7246(0x1c2)]!==_0x55872c[_0x2d7246(0x1ce)])continue;let {transform:_0x3b4b76}=_0xd1cc24;if(!_0x3b4b76)continue;let {left:_0x4d7dd9=0x0,top:_0x5aaedb=0x0,width:_0x4fe8d9=0x0,height:_0x4d0974=0x0}=_0x3b4b76;_0xa25c97<=_0x4d7dd9&&_0x23c167>=_0x4d7dd9+_0x4fe8d9&&_0x58d818<=_0x5aaedb&&_0x44b86c>=_0x5aaedb+_0x4d0974&&_0x41de78['push'](_0xd1cc24);}_0x41de78[_0x2d7246(0x25d)]>0x0&&(this['_copyInfo']={'unitId':_0x400851,'subUnitId':_0x27dd16,'copyType':_0x1b7e5d,'copyRange':_0x137774,'drawings':_0x41de78});}[_0xcb6cbb(0x25f)](_0x331f91,_0x1a3c30){const _0x5c4003=_0xcb6cbb;let {unitId:_0x135678,subUnitId:_0x5f1298,range:_0x2337e9}=_0x331f91,_0x1b1742=this[_0x5c4003(0x224)]['getSkeleton'](_0x135678,_0x5f1298);if(!_0x1b1742)return{'redos':[],'undos':[]};let _0x177c68=_0xe86510(_0x2337e9),{unitId:_0x8d289b,subUnitId:_0x18a28f,copyRange:_0x39e841,drawings:_0x395a37}=this[_0x5c4003(0x25e)],_0x4bd039=this[_0x5c4003(0x224)]['getSkeleton'](_0x8d289b,_0x18a28f);if(!_0x4bd039)return{'redos':[],'undos':[]};let _0x37e8f6;if(!_0x39e841){let _0x50b0e5=0x1/0x0,_0x4f83c3=0x1/0x0;for(let _0x55885b of _0x395a37){var _0x4184d5;let {left:_0x49bacc=0x0,top:_0x470575=0x0}=(_0x4184d5=_0x55885b[_0x5c4003(0xce)])==null?{}:_0x4184d5;_0x49bacc<_0x50b0e5&&(_0x50b0e5=_0x49bacc),_0x470575<_0x4f83c3&&(_0x4f83c3=_0x470575);}_0x50b0e5!==0x1/0x0&&_0x4f83c3!==0x1/0x0&&(_0x37e8f6={'left':_0x50b0e5,'top':_0x4f83c3});}let _0x532fbb=new Map();if(!_0x1a3c30){for(let _0x2d5ed3 of _0x395a37)_0x532fbb[_0x5c4003(0x26e)](_0x2d5ed3[_0x5c4003(0x10e)],_0xf6c8c4());}let _0x2d8fe0=[],_0x275ad6=[];for(let _0x2cde14 of _0x395a37){let {drawingId:_0x522667,transform:_0x46ab9e,sheetTransform:_0x54b870}=_0x2cde14;if(!_0x46ab9e||!_0x54b870)continue;let _0x38b2d8=this['_updateTransform']({'transform':_0x46ab9e,'sheetTransform':_0x54b870},{'skeleton':_0x4bd039,'range':_0x39e841},{'skeleton':_0x1b1742,'range':_0x177c68},_0x37e8f6);if(_0x1a3c30){let {redos:_0x2dfa18,undos:_0xbb6c0}=this['_generateCutPasteMutations']({'fromUnitId':_0x8d289b,'fromSubUnitId':_0x18a28f,'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8});_0x2d8fe0[_0x5c4003(0x311)](..._0x2dfa18),_0x275ad6[_0x5c4003(0x311)](..._0xbb6c0);continue;}let {redos:_0x1f1b41,undos:_0x2fbdbc}=this[_0x5c4003(0xd9)]({'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8,'newDrawingId':_0x532fbb[_0x5c4003(0x2da)](_0x522667),'idMap':_0x532fbb});_0x2d8fe0[_0x5c4003(0x311)](..._0x1f1b41),_0x275ad6[_0x5c4003(0x311)](..._0x2fbdbc);}return{'redos':_0x2d8fe0,'undos':_0x275ad6};}[_0xcb6cbb(0x15e)](_0x284aa2){const _0x23b4e3=_0xcb6cbb;let {fromUnitId:_0xb87577,fromSubUnitId:_0x322923,toUnitId:_0x5967ca,toSubUnitId:_0x5efa5e,drawing:_0x4c26e9,newTransforms:_0x30ec5a}=_0x284aa2,_0x4119d4={..._0x4c26e9,'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'transform':_0x30ec5a[_0x23b4e3(0xce)],'sheetTransform':_0x30ec5a[_0x23b4e3(0x31a)]};if(_0x5967ca===_0xb87577&&_0x5efa5e===_0x322923){let {redo:_0x42094e,undo:_0x3028b3,objects:_0x544681}=this[_0x23b4e3(0x1b7)][_0x23b4e3(0xf2)]([_0x4119d4]);return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x42094e,'objects':_0x544681}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x3028b3,'objects':_0x544681}}]};}else{let _0x54abea=this[_0x23b4e3(0x1b7)][_0x23b4e3(0x1b1)]([_0x4c26e9]),_0x14eef5=this[_0x23b4e3(0x1b7)]['getBatchAddOp']([_0x4119d4]),_0x1da10c=this[_0x23b4e3(0x26f)][_0x23b4e3(0x2c4)](_0x4c26e9[_0x23b4e3(0x241)],_0x4c26e9['subUnitId'],_0x4c26e9[_0x23b4e3(0x10e)]);if(!_0x1da10c)return{'redos':[],'undos':[]};let _0x2cfae5=_0x1da10c[_0x23b4e3(0xb7)](),_0x15d6ab=JSON[_0x23b4e3(0x226)](JSON[_0x23b4e3(0x276)](_0x1da10c[_0x23b4e3(0x113)]()));return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x54abea[_0x23b4e3(0x220)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x1fd47e['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9['drawingId']}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e['INSERT'],'op':_0x14eef5[_0x23b4e3(0x220)],'objects':_0x14eef5[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9['drawingId'],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e['INSERT'],'op':_0x54abea[_0x23b4e3(0x1d2)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x14eef5['undo'],'objects':_0x14eef5['objects']}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)]}}]};}}[_0xcb6cbb(0xd9)](_0x3c5a64){const _0x3fd7ef=_0xcb6cbb;let {toUnitId:_0x570305,toSubUnitId:_0x55492a,drawing:_0x4e600e,newTransforms:_0x5e6ad3,newDrawingId:_0x973cb6,idMap:_0x285592}=_0x3c5a64,_0x419fbd={..._0x4e600e,'unitId':_0x570305,'subUnitId':_0x55492a,'drawingId':_0x973cb6,'transform':_0x5e6ad3[_0x3fd7ef(0xce)],'sheetTransform':_0x5e6ad3[_0x3fd7ef(0x31a)]},{redo:_0x1332df,undo:_0x5e99e9,objects:_0x1dbbaa}=this[_0x3fd7ef(0x1b7)][_0x3fd7ef(0x2bf)]([_0x419fbd]),_0x145e03=this[_0x3fd7ef(0x26f)][_0x3fd7ef(0x2c4)](_0x4e600e[_0x3fd7ef(0x241)],_0x4e600e['subUnitId'],_0x4e600e[_0x3fd7ef(0x10e)]);if(!_0x145e03)return{'redos':[],'undos':[]};let _0x214edd=_0x145e03[_0x3fd7ef(0xb7)](),_0x4ad627=JSON['parse'](JSON[_0x3fd7ef(0x276)](_0x145e03['getShapeData']()));if(_0x4ad627[_0x3fd7ef(0x12f)]){var _0x16ad7f,_0x5bf8d4;let _0x275075=(_0x16ad7f=_0x4ad627[_0x3fd7ef(0x12f)]['from'])==null?void 0x0:_0x16ad7f[_0x3fd7ef(0x124)],_0x55d468=(_0x5bf8d4=_0x4ad627[_0x3fd7ef(0x12f)]['to'])==null?void 0x0:_0x5bf8d4['shapeId'],_0x34fb83=!_0x275075||_0x285592[_0x3fd7ef(0x1cf)](_0x275075),_0x412d22=!_0x55d468||_0x285592[_0x3fd7ef(0x1cf)](_0x55d468);_0x34fb83&&_0x275075&&_0x4ad627[_0x3fd7ef(0x12f)]['from']?_0x4ad627[_0x3fd7ef(0x12f)]['from']={..._0x4ad627['relation'][_0x3fd7ef(0x30c)],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x275075)}:_0x4ad627['relation'][_0x3fd7ef(0x30c)]=void 0x0,_0x412d22&&_0x55d468&&_0x4ad627['relation']['to']?_0x4ad627[_0x3fd7ef(0x12f)]['to']={..._0x4ad627['relation']['to'],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x55d468)}:_0x4ad627[_0x3fd7ef(0x12f)]['to']=void 0x0;}return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x101)],'op':_0x1332df,'objects':_0x1dbbaa}},{'id':_0x314d59['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6,'shapeType':_0x214edd,'shapeData':_0x4ad627}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x29c)],'op':_0x5e99e9,'objects':_0x1dbbaa}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6}}]};}[_0xcb6cbb(0xf7)](_0x1f28e7,_0x3602b9,_0x4232cb,_0x55b693){const _0x300bcb=_0xcb6cbb;var _0x270cb4;let {range:_0x3352d9,skeleton:_0x18a067}=_0x3602b9,{range:_0x5de3f7,skeleton:_0x6f4068}=_0x4232cb,{transform:_0x1b677c,sheetTransform:_0x5790a5}=_0x1f28e7,_0x1bad47={..._0x1b677c};if(_0x3352d9){let _0x4788b1=_0x2cf26d(_0x18a067,_0x3352d9),_0x5c5051=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x4788b1&&_0x5c5051){var _0x40f34a,_0x9e936a;let _0x531567=_0x5c5051[_0x300bcb(0x28f)]-_0x4788b1[_0x300bcb(0x28f)],_0x5ce4aa=_0x5c5051[_0x300bcb(0x28b)]-_0x4788b1[_0x300bcb(0x28b)];_0x1bad47[_0x300bcb(0x1db)]=((_0x40f34a=_0x1bad47['left'])==null?0x0:_0x40f34a)+_0x531567,_0x1bad47[_0x300bcb(0x163)]=((_0x9e936a=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x9e936a)+_0x5ce4aa;}}else{let _0x521d9a=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x55b693&&_0x521d9a){var _0xe91523,_0x36bd09;let _0xea04e3=((_0xe91523=_0x1bad47[_0x300bcb(0x1db)])==null?0x0:_0xe91523)-_0x55b693['left'],_0x391b98=((_0x36bd09=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x36bd09)-_0x55b693[_0x300bcb(0x163)];_0x1bad47['left']=_0x521d9a[_0x300bcb(0x28f)]+_0xea04e3,_0x1bad47[_0x300bcb(0x163)]=_0x521d9a[_0x300bcb(0x28b)]+_0x391b98;}else _0x1bad47['left']=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28f)],_0x1bad47[_0x300bcb(0x163)]=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28b)];}return{'transform':_0x1bad47,'sheetTransform':(_0x270cb4=_0x43002e(_0x1bad47,_0x6f4068))==null?_0x5790a5:_0x270cb4};}};Fr=Z([X(0x0,_0x25d6be(_0x414a67)),X(0x1,_0x25d6be(_0x165587)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x47dae5))],Fr);var Ir=class extends _0x30d1c4{constructor(_0x16a80c,_0x2651e4){const _0x29efc0=_0xcb6cbb;super(_0x16a80c,_0x2651e4),Y(this,_0x29efc0(0x252),null),Y(this,'_index',null),Y(this,_0x29efc0(0x2aa),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x2651e4&&this['setShapeProps'](_0x2651e4);}['getDrawingSearch'](){const _0x36247d=_0xcb6cbb;return{'unitId':this[_0x36247d(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x36247d(0x252)]};}['setShapeProps'](_0x28890a){const _0x250f4b=_0xcb6cbb;_0x28890a[_0x250f4b(0x124)]!==void 0x0&&(this[_0x250f4b(0x252)]=_0x28890a[_0x250f4b(0x124)]),_0x28890a[_0x250f4b(0x241)]!==void 0x0&&(this[_0x250f4b(0x2aa)]=_0x28890a[_0x250f4b(0x241)]),_0x28890a[_0x250f4b(0x281)]!==void 0x0&&(this[_0x250f4b(0x13b)]=_0x28890a[_0x250f4b(0x281)]),_0x28890a[_0x250f4b(0x10f)]!==void 0x0&&(this[_0x250f4b(0x231)]=_0x28890a[_0x250f4b(0x10f)]),this[_0x250f4b(0xdd)]({'width':_0x28890a['width'],'height':_0x28890a[_0x250f4b(0x123)]});}[_0xcb6cbb(0x2d9)](_0x5d1942){const _0x398b11=_0xcb6cbb;_0x38d822[_0x398b11(0x264)](_0x5d1942,{'radius':_0x3cbe53[_0x398b11(0x27a)],'fill':_0x3cbe53[_0x398b11(0x2a5)],'stroke':_0x3cbe53[_0x398b11(0x206)],'strokeWidth':_0x3cbe53[_0x398b11(0xe9)],'evented':!0x0});}};function _0x10e2(){const _0x908c05=['FlipVerticalIcon','renderDrawingShape','setShapeData','width','shape-adjust-point-','COMMAND','getOwnPropertyDescriptor','_shapeEditPanelVersion','srcRect','activeAnObject','isDrawingObject','CUT','sheet.image-clip.shape-picker.component','clear','cxnPointStroke','text','_hasReset','isHitLine','_baseShapeLeft','cos','_currentUniverService','_addShapeConnectorHandlerObject','dispose','sheet.command.menu-insert-shape','_applyFormulaAutoFitSize','_initSelection','addObject','classType','_groupCopyPasteController','_updateSrcRectByTransform','slice','adjHandleStroke','decorate','_executeResizeCommand','object','12690IErqir','scale','_baseDrawingRect','1020432CmkDns','horizontal','redo','sheets-shape-ui.flipHorizontal','_drawingRenderService','_loadAndSetImage','_sheetSkeletonService','backward','parse','SHAPE_TEXT','group','PRINTING_COMPONENT_COLLECT','fillType','univer-box-border\x20univer-px-4\x20univer-text-sm','computeConnectorResizeLayout','name','marginTop','unsubscribe','some','_isStartConnectorPoint','onRendered','close','sheetViewStartColumn','applyPoint','_isConnecting','hidden','onload','getCurrentLastSelection','TOP','sheets-shape-ui.imagePanel.crop.shape','getValue','getDrawingSearch','pipe','_univerInstanceService','targetShapeId','unitId','getInverseCoord','_props','getCurrentScrollState','setFillImage','registerClipDelegate','setOnSavingEditorData','_injector','_config','getTransformerByCreate','clearAdjustControls','getStartConnectInfo','params','onPointerUp$','dataModel','_moveConnectorWithShape','gradientEndColor','_shapeId','add$','_menuManagerService','setConfig','#4285f4','focusDrawing','packageName','sheet.menu.shape.flip-vertical','call','isHighlighted','_getShapeInfo','length','_copyInfo','_generatePasteMutations','adjustValues','2937qQsBKW','ancestorTransform','reverse','drawWith','Line','_getImagePrstGeom','restore','setPrstGeom','disableShapeOption','forEach','getShapeTextRect','buildClipPath','getSheetBySheetId','set','_shapeService','_initMenu','transformForAngle','_getOrCreateShapeModel','order','value','_adjName','stringify','_baseShapeTop','prstGeomAdjValues','shapeModel','cxnPointRadius','type','onTransformChange$','_drawingType','changing$','localeService','_lastEditingShapeKey','subUnitId','Path','getInterceptPoints','getActiveSheet','setEditing','registerRenderModule','_sheetsShapeService','_calculateFreeEndpointAngle','end','version','startY','setShouldShowAdjust','_formulaAnimation','_handleBasicShapeUpdateConnectorLineShape','startX','_handleFreeEndpointPointerUp','onPointerMove$','SolidLine','_currentScene','_draggingConnectorId','_configService','copyType','getImageSourceCache','UNIVER_SHEET','offsetY','_insertShapes','executeCommand','REMOVE','VIEW_MAIN_LEFT_TOP','keys','permissionCheckWithoutRange','isInGroup','_commandExecutedListener','_attachConnectorObjectEvent','73136hQbGTJ','_baseShapeWidth','cxnPointFill','delete','_registerComponents','_registerDrawingFocusChangeHandler','_getShapeAdjustInfosById','_unitId','getDrawingOKey','extraProps','string','_setTransForm','URL','lineType','symbol','axisAlignSheetTransform','refreshAdjustControls','filter','_transform','blockExecuteWithoutPermission','_editingParams$','_getConnectionSiteAngle','_cxtHandlerPointerUp','SHEET_SHAPE_UI_PLUGIN','addImageSourceCache','adjName','clip-','_initPermission','getBatchAddOp','getActualSize','_activeShapeId','_connectionSiteObjects','stopPropagation','getShapeModel','setPresentation','initShapePopupMenu','panel','GROUP','DRAWING','sqrt','setCanUseShapeClip','pushUndoRedo','getConnectionSiteList','_shapeFormulaService','sheets-shape-ui.objectListPanel.title','DEFAULT_PASTE','clone','getZoomRatio','sin','src','SheetShapeTextEditorContainer','disposeWithMe','sectionFloating','getBasicShapeRelation','_draw','get','prstGeom','_releaseRenderCache','with','_getDrawingRect','1402446hTIRfh','getState','endArrow','DRAWING_GROUP','_isStartAdjusting','VIEW_MAIN_LEFT','find','fill','sheets-shape-ui.config','_shapeRenderController','getFocusDrawings','_context','_openShapeEditPanel','sheets-shape-ui','removeLinePoints','initTransformer','getDrawingVisible','isArray','_targetShapeId','_updateImageAdjValues','#FFFFFF','getEndConnectInfo','_activeAdjustInfo','_clearControls','subscribe','reduce','sheetViewStartRow','endConnectionDetection','fontSize','isRichText','shapeKey','subscribeEvent','_shapeUpdateListener','_commandService','description','sheets-shape-ui.objectListPanel.open','oKey','remove$','_activeShapeInfo','isRenderLinePointsMode','offsetX','getDrawingEffectBounds','_disposePopups','20IsWKqU','_cxnIndex','from','lineShapeId','#1a73e8','connection-site-','DRAWING_TABLE','push','shapeType','translateWithPrecision','_initCopyPaste','setShapeProps','_init','_imageIoService','_initialize','_rerouteConnectorLine','sheetTransform','rotation','disableObjectsEvent','enableObjectsEvent','_getImageDrawingInfo','angle','Large','save','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','isRender','_transformCalculateSrcRect','title','render','setCursor','_initSheetChange','getShapeType','beginPath','UNIVER_DOC','highlighted','calcAdjValues','constructor','fillImageSource','_isDrawingShapePointDown','238CAsHEs','sheets-shape-ui.flipVertical','table','OPERATION','setSrcRect','_getZoomRatio','VIEW_MAIN_TOP','getAdjustValueByName','cxnIndex','interceptor','onPointerDown$','div','clipTop','FlipHorizontalIcon','interceptCommand','transform','fillImageSourceType','_initEditingParams','indexOf','LEFT','setPrstGeomAdjValues','getShapeDataById','onStarting','_currentConnectionTarget','ShapeIcon','@univerjs-pro/sheets-shape-ui','_generateCopyPasteMutations','setAdjustValueByName','prototype','syncExecuteCommand','transformByState','getTransformer','#bcbcbc','presentation','multiply','_registerIcons','_isImagePointerDown','clip-adj-','_executeConnectedRouteConnectionCommand','getScene','_registerImageShapeClipDelegate','ObjectLayersIcon','cxnPointStrokeWidth','_iconManager','changeEnd$','DRAWING_SMART_ART','focus$','_drawingAddListener','_clipService','adjHandleSize','_isHighlighted','getBatchUpdateOp','_initEvents','_getShapeAdjustPointListById','_popupMenuListener','_activeShapeModel','_updateTransform','viewBound','image','translate','register','ang','isEditing','_activeShapeAdjustPointList','unregister','2XVbgzd','INSERT','wrapStrategy','updateDocumentDataMargin','_imageShapeClipController','_formulaKey','computeStraightConnectorLayout','_handleFreeEndpointMove','getSelectedObjectMap','_createCopyInfoByRange','resize','clip','activeSheet$','sheet.command.update-shape-data','drawingId','isStartConnectorPoint','contentVerticalOffset','getAdjustNames','UPDATE','getShapeData','getObjectIncludeInGroup','canvas','_initCommands','pluginName','point','_updateAdjustControlPositions','clearControl$','SELECTOR','skeleton','getSkeletonParam','getImage','getUnitType','getConnectionInfo','updateConnectionDetection','open','height','shapeId','_sheetClipboardService','_createControls','getDrawingData','debounceRefreshControls','refreshFormulaPresentation','localToWorld','defineProperty','sheet.shape.object-list.panel','changeStart$','_closeShapeEditPanel','relation','BUTTON','_attachAdjustEvent','_sheetShapeAdjustController','getRenderUnitById','refreshTransform','parent','getBentTypeFromPoints','sheets-shape-ui.insertShape','formulaBinding','_baseTop','_resetState','_subUnitId','getDrawingPoints','objects','addClipboardHook','DRAWING_VIDEO','beforeCommandExecuted','worldPoints','sheet.operation.open-sheet-shape-format-panel','_activeAdjustPointList','_clearShapeConnectorHandlerObjects','_urlImageService','getCurrentSkeleton','_handleConnectorPointerUp','formulaPresentation','_sheetPermissionCheckController','getDrawingOrder','default','PictureFill','_baseHeight','onReady','_contextService','_sheetCanvasPopManagerService','_updateShapeAdjustControls','next','updateShapeFillImage','_renderManagerService','Image','doc.image-clip.shape-picker.component','connector-handler-','_localeService','_drawRichText','getShapeTypeById','includes','refreshShapeFillImage','_activeImageId','_generateCutPasteMutations','OTHERS','sheet.menu.shape.flip-horizontal','_shapeTextEditingService','trim','top','_formulaShapes','onCommandExecuted','_addShapeConnectorHandlerObjects','sectionCanvas','top-center','getConnectorLinePoints','_componentManager','_cxtHandlerPointerMove','flipX','getDrawingByParam','_registerFocusChangeHandler','_highlightedSiteIndex','contentHeight','sheet.shape.edit.panel','DRAWING_IMAGE','clipByShape','859923kJNssL','iterator','error','sheet.shape.floating-toolbar','_registerGroupFeaturePasteHook','_connectorObjects','_adjHandlerPointerUp','_sidebarDisposable','_baseWidth','worldRect','createControl$','_executeConnectionCommand','custom','getUnitId','chart','worldPoint','_sheetPrintInterceptorService','doc','shape','getUnit','sheet.shape.text.float-menu','strokeWidth','shapeData','presentationChanged$','getConnectionRelation','onSteady','_addControl','_drawShapeText','_initializedShapePopupMenu','_adjHandlerPointerMove','205892BIwznn','Rect','CROSSHAIR','isHorizontal','_clearConnectionSites','_drawRichTextLayer','_baseShapeHeight','DRAWING_UNIT','VIEW_MAIN','_registerMoveHandler','getParent','getShapeTextData','_sidebarService','17272LPslNd','flipY','_handleConnectedEndpointPointerUp','getObject','animationEnabled','getAdjustInfoByName','_clearShapeAdjustControls','_baseLeft','_isOpenedShapeEditPanel','_addShapeAdjustControl','changeShapeType','_getSceneAndTransformerByDrawingSearch','abs','editingParams$','_drawingManagerService','_registerDrawingMoveHandler','video','shapeText','getBatchRemoveOp','_sheetDrawingShapeRenderController','_drawSimpleText','_executeConnectedRouteResizeCommand','updateLinePoints','_sheetBasicShapeConnectionPointController','_sheetDrawingService','_showConnectionSites','add','resourceCollector','create','_disposed','_activeTargetShapeId','DRAWING_DOM','getSkeleton','_insertingShapeKeys','map','drawingType','unit','viewportScrollX','_isShouldShowDrawingShapeAdjust','stroke','values','entries','getMatrix','smartArt','shape-text-','index','_reset','DRAWING_SHAPE','has','_createShapePopupMenu','data','undo','dom','_onSavingEditorData$','drawing.operation.set-drawing-active','updateContext','_sheetInterceptorService','_createShapeAdjustControls','composeMatrix','complete','left','sheets-shape-text-','makeDirty','update$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','viewportScrollY','size','getCurrentTypeOfUnit$','FromArray','intercept','_loadShapePictureFill','getDrawingEditable','selectable','getEditing','_shapes','setContextValue','pick','_findShapeAtPoint','_getScrollInfo','_getConnectPointInfo','isLineShape','asObservable','_clearPopups','_focusedDrawings','getRealBound','getPresentation','visible','scene','setHighlighted'];_0x10e2=function(){return _0x908c05;};return _0x10e2();}let Lr=class extends _0x444b76{constructor(_0x1849c3,_0x4245f8,_0x258af3,_0x16eaa8,_0x52e14d,_0x376dfb,_0x157c34,_0x2a7a59){const _0x51ccc3=_0xcb6cbb;super(),this[_0x51ccc3(0x2ea)]=_0x1849c3,this[_0x51ccc3(0x300)]=_0x4245f8,this['_renderManagerService']=_0x258af3,this[_0x51ccc3(0x1ad)]=_0x16eaa8,this[_0x51ccc3(0x23f)]=_0x52e14d,this[_0x51ccc3(0x287)]=_0x376dfb,this[_0x51ccc3(0x132)]=_0x157c34,this[_0x51ccc3(0x1b6)]=_0x2a7a59,Y(this,_0x51ccc3(0x2c1),void 0x0),Y(this,_0x51ccc3(0x2aa),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,_0x51ccc3(0xf6),void 0x0),Y(this,_0x51ccc3(0x236),!0x1),Y(this,_0x51ccc3(0xbe),!0x1),Y(this,_0x51ccc3(0x208),!0x1),Y(this,_0x51ccc3(0x16b),void 0x0),Y(this,_0x51ccc3(0x2b9),void 0x0),Y(this,_0x51ccc3(0xd6),null),this[_0x51ccc3(0x318)]();}[_0xcb6cbb(0x318)](){const _0x4e362f=_0xcb6cbb;this[_0x4e362f(0x2a8)](),this[_0x4e362f(0x1ae)]();}['_getDrawingRect'](){const _0x3c0830=_0xcb6cbb;if(!this[_0x3c0830(0x2aa)]||!this['_subUnitId']||!this[_0x3c0830(0x2c1)])return;let _0x546881={'unitId':this[_0x3c0830(0x2aa)],'subUnitId':this[_0x3c0830(0x13b)],'drawingId':this[_0x3c0830(0x2c1)]},{transform:_0x792dd0}=this['_drawingManagerService'][_0x3c0830(0x16d)](_0x546881);if(_0x792dd0)return{'left':_0x792dd0['left']||0x0,'top':_0x792dd0['top']||0x0,'width':_0x792dd0['width']||0x0,'height':_0x792dd0['height']||0x0,'flipX':_0x792dd0['flipX']||!0x1,'flipY':_0x792dd0[_0x3c0830(0x1a0)]||!0x1,'angle':_0x792dd0[_0x3c0830(0x31f)]};}[_0xcb6cbb(0x166)](){const _0x26f78b=_0xcb6cbb;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x26f78b(0x2c1)]===void 0x0)return;let _0x1858f9=this[_0x26f78b(0x154)]['getRenderUnitById'](this[_0x26f78b(0x2aa)]);if(!_0x1858f9||!_0x1858f9[_0x26f78b(0x2dd)](_0x48c126)['getCurrentSkeleton']())return;let {scene:_0x191e2b}=_0x1858f9,_0x34559e=this[_0x26f78b(0x2de)]();if(!_0x34559e)return;let _0x28bc32=this['_sheetsShapeService']['getShapeModel'](this[_0x26f78b(0x2aa)],this['_subUnitId'],this[_0x26f78b(0x2c1)]);if(!_0x28bc32||!_0x286130(_0x28bc32[_0x26f78b(0xb7)]()))return;let _0x402553=_0x28bc32['getConnectorLinePoints']();if(_0x402553[_0x26f78b(0x25d)]<0x2)return;let _0x22fadc=new _0x4d85c6(_0x34559e),_0x54d46c=_0x402553[0x0],_0x332b35=_0x402553[_0x402553[_0x26f78b(0x25d)]-0x1],_0xb23eed=_0x22fadc[_0x26f78b(0x12a)](_0x54d46c),_0x3efb80=_0x22fadc[_0x26f78b(0x12a)](_0x332b35);this[_0x26f78b(0x20d)](_0x191e2b,{..._0xb23eed},!0x0),this[_0x26f78b(0x20d)](_0x191e2b,{..._0x3efb80},!0x1);}['_addShapeConnectorHandlerObject'](_0x25a96d,_0x3f120b,_0x22cf74){const _0x26cf11=_0xcb6cbb;if(this[_0x26cf11(0x2c1)]===void 0x0||this[_0x26cf11(0x2aa)]===void 0x0||this[_0x26cf11(0x13b)]===void 0x0)return;let _0x52de05=_0x26cf11(0x157)+this['_unitId']+'-'+this[_0x26cf11(0x13b)]+'-'+this[_0x26cf11(0x2c1)]+'-'+(_0x22cf74?'start':_0x26cf11(0x289)),_0x5abbbd=_0x25a96d['getObjectIncludeInGroup'](_0x52de05);if(_0x5abbbd){_0x5abbbd[_0x26cf11(0xdd)]({'left':_0x3f120b['x']-_0x3cbe53['cxnPointRadius'],'top':_0x3f120b['y']-_0x3cbe53['cxnPointRadius']});return;}let _0x3a5a2d=new Ir(_0x52de05,{'left':_0x3f120b['x']-_0x3cbe53[_0x26cf11(0x27a)],'top':_0x3f120b['y']-_0x3cbe53[_0x26cf11(0x27a)],'shapeId':this[_0x26cf11(0x2c1)],'unitId':this[_0x26cf11(0x2aa)],'subUnitId':this[_0x26cf11(0x13b)],'isStartConnectorPoint':_0x22cf74,'width':_0x3cbe53['cxnPointRadius']*0x2,'height':_0x3cbe53[_0x26cf11(0x27a)]*0x2,'zIndex':_0x338629+0x1,'evented':!0x0});this['_connectorObjects'][_0x26cf11(0x311)](_0x3a5a2d),this[_0x26cf11(0x2a2)](_0x3a5a2d,_0x25a96d,_0x22cf74),_0x25a96d[_0x26cf11(0x212)](_0x3a5a2d,_0x338629+0x1);}[_0xcb6cbb(0x1ed)](_0x511683,_0x26d793){const _0x485a0f=_0xcb6cbb;var _0x5cb1dd;let _0x57eefb={'x':0x0,'y':0x0};if(!_0x511683||!_0x26d793)return _0x57eefb;let _0x3e2be9=this[_0x485a0f(0x154)][_0x485a0f(0x133)](_0x511683);if(!_0x3e2be9||!_0x3e2be9[_0x485a0f(0x2dd)](_0x48c126)[_0x485a0f(0x1bf)](_0x26d793))return _0x57eefb;let _0x425828=_0x3e2be9['with'](_0x3e3bbb),_0x2d4408=_0x425828==null?void 0x0:_0x425828[_0x485a0f(0x244)]();if(!_0x2d4408)return _0x57eefb;let _0x2fa344=(_0x5cb1dd=this[_0x485a0f(0x23f)][_0x485a0f(0x187)](_0x511683))==null?void 0x0:_0x5cb1dd[_0x485a0f(0x26d)](_0x26d793);if(!_0x2fa344)return _0x57eefb;let _0x3b7449=_0x3dd685(_0x2d4408[_0x485a0f(0x2f9)],_0x2d4408[_0x485a0f(0x234)],_0x3e2be9['scene'],_0x2fa344);return _0x3b7449?{'x':_0x3b7449[_0x485a0f(0x1c4)],'y':_0x3b7449[_0x485a0f(0x1e0)]}:_0x57eefb;}[_0xcb6cbb(0xc4)](_0x369166,_0x251817){const _0x4886fb=_0xcb6cbb;var _0x4073fe,_0x37e40f;let _0x13f04f=(_0x4073fe=this[_0x4886fb(0x23f)]['getUnit'](_0x369166))==null?void 0x0:_0x4073fe[_0x4886fb(0x26d)](_0x251817);return(_0x37e40f=_0x13f04f==null?void 0x0:_0x13f04f['getZoomRatio']())==null?0x1:_0x37e40f;}[_0xcb6cbb(0x147)](_0x155f37,_0x2396ed,_0x3aa0da,_0xd4a3d5,_0xc9ce1c){const _0x1a8c91=_0xcb6cbb;this[_0x1a8c91(0x16b)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x2b9)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x132)][_0x1a8c91(0x2b3)]();let _0x218290=this[_0x1a8c91(0xd6)];this[_0x1a8c91(0x1b6)][_0x1a8c91(0x2fa)]();let _0x105e1d=this['_getScrollInfo'](this[_0x1a8c91(0x2aa)],this[_0x1a8c91(0x13b)]),_0x5caf14=this[_0x1a8c91(0xc4)](this[_0x1a8c91(0x2aa)],this['_subUnitId']),_0x3f835d={'x':_0x3aa0da[_0x1a8c91(0x307)]/_0x5caf14+_0x105e1d['x'],'y':_0x3aa0da[_0x1a8c91(0x299)]/_0x5caf14+_0x105e1d['y']},_0xd383a1=_0x218290?_0x218290[_0x1a8c91(0x183)]:_0x3f835d,_0x7d6dac=_0xd4a3d5?this[_0x1a8c91(0xf6)][_0x1a8c91(0x2f4)]():this[_0x1a8c91(0xf6)][_0x1a8c91(0x24c)](),_0x395173=this[_0x1a8c91(0xf6)][_0x1a8c91(0xb7)]();_0x7d6dac?this[_0x1a8c91(0x1a1)](_0x7d6dac,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c):this[_0x1a8c91(0x290)](_0x2396ed,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c,_0x395173),this[_0x1a8c91(0x236)]=!0x1,this['_hasReset']=!0x1,this[_0x1a8c91(0xd6)]=null,_0x155f37[_0x1a8c91(0x31d)]();}[_0xcb6cbb(0x290)](_0xe23237,_0xec6e33,_0x257783,_0x147834,_0x270ee4,_0x51a86b){const _0x707b40=_0xcb6cbb;let _0x25444a=_0x51a86b===_0x4c4784['Line']||_0x51a86b===_0x4c4784['StraightConnector1'],_0x4d9463=_0x257783?_0xec6e33:_0xe23237,_0x2ba413=_0x257783?_0xe23237:_0xec6e33,_0x23e8b7=this['_activeShapeModel'][_0x707b40(0x169)](),_0x10cfc2=_0x5b9030(this[_0x707b40(0xf6)][_0x707b40(0xb7)]()),_0x4d70ff=_0x4d85c6[_0x707b40(0x136)](_0x23e8b7,_0x10cfc2),_0x404b26=_0x25444a?_0x4d85c6[_0x707b40(0x106)](_0x4d9463,_0x2ba413):_0x4d85c6[_0x707b40(0x22c)](_0xe23237,_0xec6e33,_0x257783,_0x4d70ff);_0x147834?this['_executeConnectionCommand'](_0x404b26,_0x147834,_0x257783,_0x270ee4):this[_0x707b40(0x219)](_0x404b26,_0x270ee4);}[_0xcb6cbb(0x1a1)](_0xb15545,_0xca3800,_0x15b722,_0x4bc3f9,_0x1ec190){const _0xb7614a=_0xcb6cbb;let _0x3db9f9=this[_0xb7614a(0x1ee)](_0xb15545);if(!_0x3db9f9)return;let _0x198265=_0x4bc3f9?_0x4bc3f9['angle']:this[_0xb7614a(0x288)](_0x3db9f9['point'],_0xca3800),_0x95c946;if(_0x4bc3f9){let _0x208958=this[_0xb7614a(0x1ad)][_0xb7614a(0x16d)]({'unitId':_0x4bc3f9[_0xb7614a(0x241)],'subUnitId':_0x4bc3f9[_0xb7614a(0x281)],'drawingId':_0x4bc3f9[_0xb7614a(0x124)]});if(_0x208958!=null&&_0x208958[_0xb7614a(0xce)]){let {left:_0x2368ff=0x0,top:_0x521bac=0x0,width:_0x3ed718=0x0,height:_0x34fbb5=0x0,angle:_0x3c5e31}=_0x208958[_0xb7614a(0xce)];_0x95c946=_0x202bf2({'left':_0x2368ff,'top':_0x521bac,'width':_0x3ed718,'height':_0x34fbb5},_0x3c5e31||0x0);}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};let _0x30e5ed={'point':_0xca3800,'angle':_0x198265,'bounds':_0x95c946},_0x2923ef=_0x15b722?_0x30e5ed:_0x3db9f9,_0x58803a=_0x15b722?_0x3db9f9:_0x30e5ed,_0x25dbdb=this['_activeShapeModel'][_0xb7614a(0xb7)](),_0x5c24bb=_0x502b11(_0x2923ef,_0x58803a,_0x25dbdb);this[_0xb7614a(0xf6)]['removeLinePoints']();let _0x19885c=_0x5d79b3(_0x5c24bb,_0x25dbdb);_0x4bc3f9?this[_0xb7614a(0xe5)](_0x19885c,_0x4bc3f9,_0xb15545,_0x15b722,_0x1ec190):this[_0xb7614a(0x1b4)](_0x19885c,_0xb15545,_0x15b722,_0x1ec190);}[_0xcb6cbb(0x17f)](_0x2a3fbc,_0x5f5a3c,_0x328e5a,_0x33c836){const _0x5980e1=_0xcb6cbb;let _0x36822a=this[_0x5980e1(0xf6)]['getShapeData']()[_0x5980e1(0x12f)],_0x41a180={..._0x36822a},_0x10f2bf={'shapeId':_0x5f5a3c['shapeId'],'cxnIndex':_0x5f5a3c[_0x5980e1(0xc7)]};_0x328e5a?_0x41a180[_0x5980e1(0x30c)]=_0x10f2bf:_0x41a180['to']=_0x10f2bf;let _0x200afe=this[_0x5980e1(0xf6)][_0x5980e1(0xb7)](),_0x425bc3=_0x5d79b3(_0x2a3fbc[_0x5980e1(0x141)],_0x200afe),_0x4dd4d6={'unitId':this[_0x5980e1(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5980e1(0x2c1)],'width':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1fb)],'height':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x123)],'left':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1db)],'top':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x163)],'flipX':_0x2a3fbc['worldRect']['flipX']||!0x1,'flipY':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1a0)]||!0x1,'newAdjustValues':_0x425bc3[_0x5980e1(0x260)],'oldAdjustValues':_0x33c836,'oldRelation':_0x36822a,'newRelation':_0x41a180,'newLineType':_0x425bc3[_0x5980e1(0x2b0)],'oldLineType':_0x200afe};this[_0x5980e1(0x300)]['executeCommand'](_0x1ae360['id'],_0x4dd4d6);}['_executeResizeCommand'](_0x4cc97d,_0x48d031){const _0x4d55f6=_0xcb6cbb;let _0x5bd869=this[_0x4d55f6(0xf6)][_0x4d55f6(0xb7)](),_0x388bc4=_0x5d79b3(_0x4cc97d[_0x4d55f6(0x141)],_0x5bd869),_0x22bbe5={'unitId':this[_0x4d55f6(0x2aa)],'subUnitId':this[_0x4d55f6(0x13b)],'shapeId':this[_0x4d55f6(0x2c1)],'width':_0x4cc97d['worldRect'][_0x4d55f6(0x1fb)],'height':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x123)],'left':_0x4cc97d['worldRect'][_0x4d55f6(0x1db)],'top':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x163)],'flipX':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x16c)]||!0x1,'flipY':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x1a0)]||!0x1,'angle':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x31f)]||0x0,'newAdjustValues':_0x388bc4['adjustValues'],'oldAdjustValues':_0x48d031,'newLineType':_0x388bc4[_0x4d55f6(0x2b0)],'oldLineType':_0x5bd869};this[_0x4d55f6(0x300)][_0x4d55f6(0x29b)](_0x15b46f['id'],_0x22bbe5);}[_0xcb6cbb(0xe5)](_0x3c38f3,_0x4b4cf7,_0x4f4eab,_0xcb68a8,_0x1cfbf9){const _0x27ea7a=_0xcb6cbb;let _0x414166=this[_0x27ea7a(0xf6)][_0x27ea7a(0x113)]()[_0x27ea7a(0x12f)],_0x3b9d7c={..._0x414166},_0x3aa156={'shapeId':_0x4b4cf7[_0x27ea7a(0x124)],'cxnIndex':_0x4b4cf7[_0x27ea7a(0xc7)]};_0xcb68a8?(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x3aa156,_0x3b9d7c['to']=_0x4f4eab):(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x4f4eab,_0x3b9d7c['to']=_0x3aa156);let _0x452b28={'unitId':this[_0x27ea7a(0x2aa)],'subUnitId':this[_0x27ea7a(0x13b)],'connectorShapeId':this['_activeShapeId'],'width':_0x3c38f3['worldRect'][_0x27ea7a(0x1fb)],'height':_0x3c38f3['worldRect'][_0x27ea7a(0x123)],'left':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x1db)],'top':_0x3c38f3[_0x27ea7a(0x17d)]['top'],'flipX':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x16c)]||!0x1,'flipY':_0x3c38f3[_0x27ea7a(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x1cfbf9,'newAdjustValues':_0x3c38f3[_0x27ea7a(0x260)],'newLineType':_0x3c38f3[_0x27ea7a(0x2b0)],'rotation':_0x3c38f3[_0x27ea7a(0x31b)],'oldRelation':_0x414166,'newRelation':_0x3b9d7c};this[_0x27ea7a(0x300)][_0x27ea7a(0x29b)](_0x1ae360['id'],_0x452b28);}[_0xcb6cbb(0x1b4)](_0x362d7c,_0x579362,_0x2b8553,_0x2035a7){const _0x4e0118=_0xcb6cbb;let _0x3d5205=this[_0x4e0118(0xf6)]['getShapeData']()['relation'],_0x5ab6e4={};_0x2b8553?(_0x5ab6e4['to']=_0x579362,_0x5ab6e4[_0x4e0118(0x30c)]=void 0x0):(_0x5ab6e4['from']=_0x579362,_0x5ab6e4['to']=void 0x0);let _0xe2c4bb={'unitId':this[_0x4e0118(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4e0118(0x2c1)],'width':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1fb)],'height':_0x362d7c[_0x4e0118(0x17d)]['height'],'left':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1db)],'top':_0x362d7c[_0x4e0118(0x17d)]['top'],'flipX':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x16c)]||!0x1,'flipY':_0x362d7c[_0x4e0118(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x2035a7,'newAdjustValues':_0x362d7c[_0x4e0118(0x260)],'newLineType':_0x362d7c[_0x4e0118(0x2b0)],'rotation':_0x362d7c[_0x4e0118(0x31b)],'oldRelation':_0x3d5205,'newRelation':_0x5ab6e4};this[_0x4e0118(0x300)][_0x4e0118(0x29b)](_0x1ae360['id'],_0xe2c4bb);}['_attachConnectorObjectEvent'](_0x1d7e1e,_0x1d7164,_0x47bdf9){const _0x423326=_0xcb6cbb;this[_0x423326(0x2d6)](_0x452c8c(_0x1d7e1e[_0x423326(0xc9)][_0x423326(0x2fe)]((_0x390c8c,_0x11136b)=>{const _0x2f9fdd=_0x423326;let _0x15c568=_0x1d7e1e[_0x2f9fdd(0x23d)]();if(this[_0x2f9fdd(0xf6)]=this[_0x2f9fdd(0x287)]['getShapeModel'](_0x15c568['unitId'],_0x15c568['subUnitId'],_0x15c568[_0x2f9fdd(0x10e)]),!this[_0x2f9fdd(0xf6)])return;let _0x4cf1af={};this['_activeShapeModel'][_0x2f9fdd(0x111)]()[_0x2f9fdd(0x26a)](_0x16bbc4=>{const _0x1e779f=_0x2f9fdd;let _0x2ce4e2=this[_0x1e779f(0xf6)][_0x1e779f(0xc6)](_0x16bbc4);_0x2ce4e2!==void 0x0&&(_0x4cf1af[_0x16bbc4]=_0x2ce4e2);});let _0x231be5=this[_0x2f9fdd(0x2de)]();if(!_0x231be5)return;this[_0x2f9fdd(0x21d)]={..._0x231be5};let _0x36ea37=new _0x4d85c6(this[_0x2f9fdd(0x21d)]),_0x3b57d2=_0x4f98bd({'unitId':this[_0x2f9fdd(0x2aa)],'subUnitId':this[_0x2f9fdd(0x13b)],'drawingId':this[_0x2f9fdd(0x2c1)]}),_0x2213e5=_0x1d7164[_0x2f9fdd(0x114)](_0x3b57d2);this[_0x2f9fdd(0x236)]=!0x0,_0x1d7164['disableObjectsEvent'](),this[_0x2f9fdd(0x1b6)]['startConnectionDetection'](_0x1d7164,this['_unitId'],this[_0x2f9fdd(0x13b)],this[_0x2f9fdd(0x2c1)]),this[_0x2f9fdd(0xd6)]=null;let _0xf48e89=this[_0x2f9fdd(0xf6)][_0x2f9fdd(0x169)](),_0x2954c0=_0xf48e89[0x0],_0x405922=_0xf48e89[_0xf48e89[_0x2f9fdd(0x25d)]-0x1],_0x537bad=_0x47bdf9?_0x36ea37['localToWorld'](_0x405922):_0x36ea37['localToWorld'](_0x2954c0);this[_0x2f9fdd(0x16b)]=_0x1d7164['onPointerMove$'][_0x2f9fdd(0x2fe)]((_0x1d4688,_0x183f3b)=>{const _0x5d1262=_0x2f9fdd;if(!this[_0x5d1262(0x236)]||!this[_0x5d1262(0xf6)])return;this[_0x5d1262(0x208)]||(this[_0x5d1262(0x132)][_0x5d1262(0x24b)](),this[_0x5d1262(0xf6)]['clearAdjustValue'](),this[_0x5d1262(0x208)]=!0x0);let _0x41022c=this[_0x5d1262(0x1ed)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x467ac8=this[_0x5d1262(0xc4)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x56716f={'x':_0x1d4688['offsetX']/_0x467ac8+_0x41022c['x'],'y':_0x1d4688[_0x5d1262(0x299)]/_0x467ac8+_0x41022c['y']},_0x3dc7ad=this[_0x5d1262(0x1b6)][_0x5d1262(0x121)](_0x56716f);if(_0x3dc7ad){let {shapeId:_0x399d0c,unitId:_0xabeb09,subUnitId:_0x386235}=_0x3dc7ad;if(_0x399d0c&&_0xabeb09&&_0x386235){let _0x375292=_0x4f98bd({'unitId':_0xabeb09,'subUnitId':_0x386235,'drawingId':_0x399d0c});_0x3dc7ad[_0x5d1262(0x31f)]=(_0x1d7164[_0x5d1262(0x114)](_0x375292)[_0x5d1262(0x31f)]||0x0)+_0x3dc7ad[_0x5d1262(0x31f)];}}this[_0x5d1262(0xd6)]=_0x3dc7ad;let _0xa184af=_0x47bdf9?this[_0x5d1262(0xf6)][_0x5d1262(0x2f4)]():this['_activeShapeModel'][_0x5d1262(0x24c)]();if(_0xa184af){this['_handleConnectedEndpointMove'](_0xa184af,_0x56716f,_0x47bdf9,_0x2213e5,_0x1d7e1e);return;}this[_0x5d1262(0x107)](_0x56716f,_0x537bad,_0x47bdf9,_0x2213e5,_0x1d7e1e);}),this[_0x2f9fdd(0x2b9)]=_0x1d7164[_0x2f9fdd(0x24e)]['subscribeEvent']((_0x596504,_0x5418ba)=>{const _0x29bc61=_0x2f9fdd;this[_0x29bc61(0x147)](_0x1d7164,_0x537bad,_0x596504,_0x47bdf9,_0x4cf1af);}),_0x11136b[_0x2f9fdd(0x2c3)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2959e3,_0x577cbe,_0x12dea1){const _0x42ee20=_0xcb6cbb;let _0x1b8dc2=this[_0x42ee20(0x287)][_0x42ee20(0x2d8)](_0x2959e3,_0x577cbe,_0x12dea1);if(!_0x1b8dc2||_0x1b8dc2['length']===0x0)return;let _0x104019=this[_0x42ee20(0x154)]['getRenderUnitById'](_0x2959e3);if(!_0x104019)return;let {scene:_0x71ffa2}=_0x104019;for(let _0xdb2ef7 of _0x1b8dc2){let _0x196763=_0xdb2ef7[_0x42ee20(0x30d)],_0x526746=this['_sheetsShapeService'][_0x42ee20(0x2c4)](_0x2959e3,_0x577cbe,_0x196763);if(!_0x526746)continue;let _0x5e01b7=_0x526746[_0x42ee20(0x24c)](),_0xd83fb1=_0x526746[_0x42ee20(0x2f4)](),_0x3ed863=(_0x5e01b7==null?void 0x0:_0x5e01b7[_0x42ee20(0x124)])===_0x12dea1,_0x41209b=_0x4f98bd({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763}),_0x3f1a4c=_0x71ffa2[_0x42ee20(0x114)](_0x41209b);if(!_0x3f1a4c)continue;let _0x263e8a=this[_0x42ee20(0x1ad)][_0x42ee20(0x16d)]({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763});_0x263e8a!=null&&_0x263e8a['transform']&&(_0x5e01b7&&_0xd83fb1?this[_0x42ee20(0x319)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x5e01b7,_0xd83fb1,_0x3f1a4c):this[_0x42ee20(0x250)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x3ed863?_0x5e01b7:_0xd83fb1,_0x3ed863,_0x263e8a,_0x3f1a4c));}}['_rerouteConnectorLine'](_0x23eae9,_0x41490d,_0x40a89c,_0x331887,_0x2b034c,_0xb4f7ad,_0x52adf3){const _0x9594df=_0xcb6cbb;let _0x2f78f8=this[_0x9594df(0x2aa)],_0xef3231=this['_subUnitId'];this[_0x9594df(0x2aa)]=_0x23eae9,this[_0x9594df(0x13b)]=_0x41490d;let _0x486210=this[_0x9594df(0x1ee)](_0x2b034c),_0x25a977=this[_0x9594df(0x1ee)](_0xb4f7ad);if(this[_0x9594df(0x2aa)]=_0x2f78f8,this[_0x9594df(0x13b)]=_0xef3231,!_0x486210||!_0x25a977)return;let _0x1ece45=_0x331887[_0x9594df(0xb7)](),_0x12077f=_0x502b11(_0x486210,_0x25a977,_0x1ece45);_0x12077f&&_0x331887[_0x9594df(0x1b5)](_0x12077f);let _0x3c73d1=_0x5d79b3(_0x12077f,_0x1ece45);_0x3c73d1[_0x9594df(0x2b0)]!==_0x1ece45&&_0x331887[_0x9594df(0x1a9)](_0x3c73d1[_0x9594df(0x2b0)]),_0x331887['clearAdjustValue']();for(let [_0x4b5d5d,_0x345581]of Object['entries'](_0x3c73d1[_0x9594df(0x260)]))_0x331887[_0x9594df(0xda)](_0x4b5d5d,_0x345581);_0x331887[_0x9594df(0x1d6)]({'width':_0x3c73d1['worldRect'][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x123)]}),_0x52adf3[_0x9594df(0xdd)]({'flipX':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x16c)],'flipY':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1a0)],'left':_0x3c73d1['worldRect'][_0x9594df(0x1db)],'top':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x163)],'width':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)]['height'],'angle':_0x3c73d1[_0x9594df(0x31b)]}),_0x331887[_0x9594df(0x2ed)]();}[_0xcb6cbb(0x250)](_0x3ff80a,_0x504cfa,_0x347f0d,_0xf3aad1,_0x464fd3,_0x873434,_0x3ba130,_0x4348aa){const _0x57d75b=_0xcb6cbb;let _0x2012ec=this['_unitId'],_0x4a70e1=this[_0x57d75b(0x13b)];this['_unitId']=_0x3ff80a,this['_subUnitId']=_0x504cfa;let _0x37720c=this['_getConnectPointInfo'](_0x464fd3);if(this['_unitId']=_0x2012ec,this[_0x57d75b(0x13b)]=_0x4a70e1,!_0x37720c)return;let {left:_0x2c680b=0x0,top:_0x2dad0b=0x0,width:_0x4669a5=0x0,height:_0x1040ca=0x0,flipX:_0x5071c4=!0x1,flipY:_0x1f3c04=!0x1}=_0x3ba130['transform'],_0xe520fd=_0xf3aad1[_0x57d75b(0x169)]();if(_0xe520fd['length']<0x2)return;let _0x1a5e53=new _0x4d85c6({'left':_0x2c680b,'top':_0x2dad0b,'width':_0x4669a5,'height':_0x1040ca,'flipX':_0x5071c4,'flipY':_0x1f3c04}),_0x418efd=_0x873434?_0xe520fd[_0xe520fd[_0x57d75b(0x25d)]-0x1]:_0xe520fd[0x0],_0x3cc2f1=_0x1a5e53[_0x57d75b(0x12a)](_0x418efd),_0x200e45=_0x4d85c6[_0x57d75b(0x22c)](_0x3cc2f1,_0x37720c[_0x57d75b(0x118)],!_0x873434);_0x4348aa[_0x57d75b(0xdd)]({'flipX':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x16c)],'flipY':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1a0)],'left':_0x200e45['worldRect'][_0x57d75b(0x1db)],'top':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x163)],'width':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1fb)],'height':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x123)],'angle':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x31f)]}),_0x4348aa[_0x57d75b(0x1dd)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x3bf7ee=_0xcb6cbb;this['_connectorObjects'][_0x3bf7ee(0x25d)]!==0x0&&(this[_0x3bf7ee(0x179)][_0x3bf7ee(0x26a)](_0x11947a=>{const _0xe31895=_0x3bf7ee;_0x11947a[_0xe31895(0x20e)]();}),this[_0x3bf7ee(0x179)]=[]);}['_registerDrawingMoveHandler'](){const _0x482655=_0xcb6cbb;let _0x3323d8=this[_0x482655(0x23f)][_0x482655(0x1e2)](_0x593ef9[_0x482655(0x298)]);this[_0x482655(0x2d6)](_0x3323d8[_0x482655(0x23e)](_0x11d4bf(_0x4e81fa=>_0x4e81fa?_0x4e81fa[_0x482655(0x10c)][_0x482655(0x23e)](_0x11d4bf(_0x5be07e=>{const _0x34ed35=_0x482655;if(!_0x5be07e)return _0x1198ce;let _0x574125=_0x4e81fa[_0x34ed35(0x181)](),_0x54c865=this[_0x34ed35(0x154)][_0x34ed35(0x133)](_0x574125),_0x20f063=_0x54c865==null?void 0x0:_0x54c865[_0x34ed35(0x1f6)];return _0x20f063?_0x9a150f(_0x20f063):_0x1198ce;})):_0x1198ce))[_0x482655(0x2f7)](_0x4eb93d=>{const _0x358f5e=_0x482655;let _0x239303=_0x4eb93d[_0x358f5e(0x24a)]();this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x291)][_0x358f5e(0x2fe)](_0x45b6e9=>{const _0x5eb53f=_0x358f5e;this[_0x5eb53f(0xbe)]&&this[_0x5eb53f(0x2c1)]&&this[_0x5eb53f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x239303['changeStart$'][_0x358f5e(0x2f7)](_0x3cbaf5=>{const _0x35490d=_0x358f5e;let {objects:_0x5462b2}=_0x3cbaf5;this['_clearShapeConnectorHandlerObjects'](),_0x5462b2!==null&&_0x5462b2['size']===0x1&&_0x5462b2['values']()[_0x35490d(0x152)]()[_0x35490d(0x274)]instanceof Ln&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x358f5e(0x2d6)](_0x239303['changing$'][_0x358f5e(0x2f7)](_0x2fa120=>{const _0x6e560f=_0x358f5e;this[_0x6e560f(0xbe)]&&this[_0x6e560f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x24e)][_0x358f5e(0x2fe)](()=>{const _0x363d49=_0x358f5e;this[_0x363d49(0xbe)]&&(this[_0x363d49(0xbe)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x358f5e(0x2d6)](_0x239303[_0x358f5e(0xeb)][_0x358f5e(0x2f7)](()=>{const _0x1d1cf3=_0x358f5e;this[_0x1d1cf3(0x2aa)]&&this[_0x1d1cf3(0x13b)]&&this['_activeShapeId']&&this[_0x1d1cf3(0x1ad)][_0x1d1cf3(0x16d)]({'unitId':this['_unitId'],'subUnitId':this[_0x1d1cf3(0x13b)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x1d1cf3(0x166)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x392ee9=_0xcb6cbb;this['disposeWithMe'](this[_0x392ee9(0x1ad)]['focus$']['subscribe'](_0x566015=>{const _0x36560a=_0x392ee9;if(_0x566015[_0x36560a(0x25d)]===0x1){let _0x556d24=_0x566015[0x0];if(_0x556d24['drawingType']===_0x55872c[_0x36560a(0x1ce)]){let _0x376b1d=this[_0x36560a(0x287)]['getShapeModel'](_0x556d24[_0x36560a(0x241)],_0x556d24[_0x36560a(0x281)],_0x556d24[_0x36560a(0x10e)]);if(_0x376b1d&&_0x286130(_0x376b1d['getShapeType']())){this['_activeShapeId']=_0x556d24[_0x36560a(0x10e)],this[_0x36560a(0x2aa)]=_0x556d24[_0x36560a(0x241)],this[_0x36560a(0x13b)]=_0x556d24[_0x36560a(0x281)],this[_0x36560a(0x144)](),this[_0x36560a(0x166)]();return;}}}this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x36560a(0x13b)]=void 0x0,this[_0x36560a(0x144)]();})),this['disposeWithMe'](this[_0x392ee9(0x1ad)][_0x392ee9(0x1de)]['subscribe'](_0x3530d0=>{const _0x19cbc0=_0x392ee9;if(_0x3530d0[_0x19cbc0(0x25d)]===0x1){var _0x35d8e0;let _0x45de55=_0x3530d0[0x0],_0x425c66=(_0x35d8e0=this[_0x19cbc0(0x1ad)][_0x19cbc0(0x16d)](_0x45de55))==null?void 0x0:_0x35d8e0[_0x19cbc0(0x1c2)];_0x425c66===_0x55872c[_0x19cbc0(0x1ce)]&&_0x45de55['drawingId']===this[_0x19cbc0(0x2c1)]?(this[_0x19cbc0(0x144)](),this[_0x19cbc0(0x166)]()):!this['_activeShapeId']&&_0x425c66===_0x55872c['DRAWING_SHAPE']&&this[_0x19cbc0(0x28e)](_0x45de55[_0x19cbc0(0x241)],_0x45de55['subUnitId'],_0x45de55[_0x19cbc0(0x10e)]);}})),this[_0x392ee9(0x2d6)](this['_drawingManagerService'][_0x392ee9(0x304)][_0x392ee9(0x2f7)](_0x1c868b=>{const _0x5347cc=_0x392ee9;for(let _0x336762 of _0x1c868b){let {drawingId:_0x4e84fd}=_0x336762;if(this[_0x5347cc(0x2c1)]===_0x4e84fd){this[_0x5347cc(0x1cd)]();return;}}}));}['_handleConnectedEndpointMove'](_0x349ba8,_0x1539c3,_0x182ea6,_0x4888cf,_0x8ccec3){const _0x4046b3=_0xcb6cbb;var _0x2e56d0,_0x346a85;if(!this[_0x4046b3(0xf6)])return;let _0x305ce1=this[_0x4046b3(0x1ee)](_0x349ba8);if(!_0x305ce1)return;let _0x43a4e7=this[_0x4046b3(0xd6)]?this[_0x4046b3(0xd6)]['worldPoint']:_0x1539c3,_0x54c3ca=this[_0x4046b3(0xd6)]?this['_currentConnectionTarget']['angle']:this['_calculateFreeEndpointAngle'](_0x305ce1['point'],_0x43a4e7),_0x1406f8;if(this['_currentConnectionTarget']){let _0x4caa54=this[_0x4046b3(0x1ad)]['getDrawingByParam']({'unitId':this[_0x4046b3(0xd6)]['unitId'],'subUnitId':this[_0x4046b3(0xd6)][_0x4046b3(0x281)],'drawingId':this[_0x4046b3(0xd6)][_0x4046b3(0x124)]});if(_0x4caa54!=null&&_0x4caa54[_0x4046b3(0xce)]){let {left:_0x3b2b15=0x0,top:_0x8498af=0x0,width:_0x1c71bb=0x0,height:_0x28bda5=0x0,angle:_0xe4cb0b}=_0x4caa54[_0x4046b3(0xce)];_0x1406f8=_0x202bf2({'left':_0x3b2b15,'top':_0x8498af,'width':_0x1c71bb,'height':_0x28bda5},_0xe4cb0b||0x0);}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};let _0x37aa72={'point':_0x43a4e7,'angle':_0x54c3ca,'bounds':_0x1406f8},_0x168785=_0x182ea6?_0x37aa72:_0x305ce1,_0x556907=_0x182ea6?_0x305ce1:_0x37aa72,_0x31caa6=this['_activeShapeModel'][_0x4046b3(0xb7)](),_0x57db43=_0x502b11(_0x168785,_0x556907,_0x31caa6);_0x57db43&&this[_0x4046b3(0xf6)][_0x4046b3(0x1b5)](_0x57db43);let _0x4c72af=_0x5d79b3(_0x57db43,_0x31caa6);_0x4c72af[_0x4046b3(0x2b0)]!==_0x31caa6&&this[_0x4046b3(0xf6)][_0x4046b3(0x1a9)](_0x4c72af[_0x4046b3(0x2b0)]);for(let [_0x366763,_0xeaf365]of Object['entries'](_0x4c72af[_0x4046b3(0x260)]))this[_0x4046b3(0xf6)][_0x4046b3(0xda)](_0x366763,_0xeaf365);this[_0x4046b3(0xf6)][_0x4046b3(0x1d6)]({'width':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect'][_0x4046b3(0x123)]}),_0x4888cf[_0x4046b3(0xdd)]({'flipX':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x16c)],'flipY':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1a0)],'left':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1db)],'top':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x163)],'width':_0x4c72af['worldRect'][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect']['height'],'angle':_0x4c72af[_0x4046b3(0x31b)]}),_0x4888cf['makeDirty'](!0x0);let _0x2f9f20=(_0x2e56d0=(_0x346a85=this[_0x4046b3(0xd6)])==null?void 0x0:_0x346a85[_0x4046b3(0x183)])==null?_0x1539c3:_0x2e56d0;_0x8ccec3[_0x4046b3(0xdd)]({'left':_0x2f9f20['x']-_0x3cbe53[_0x4046b3(0x27a)],'top':_0x2f9f20['y']-_0x3cbe53['cxnPointRadius']});}['_handleFreeEndpointMove'](_0x523cf1,_0x423eb7,_0x3fc83c,_0x1adeea,_0x4a06cf){const _0x254203=_0xcb6cbb;var _0xcc9b70,_0x430b4e,_0x2ee96f,_0x529e76;let _0x1235fe=(_0xcc9b70=(_0x430b4e=this[_0x254203(0xd6)])==null?void 0x0:_0x430b4e[_0x254203(0x183)])==null?_0x523cf1:_0xcc9b70,_0x427702=_0x4d85c6[_0x254203(0x22c)](_0x423eb7,_0x1235fe,_0x3fc83c);_0x1adeea[_0x254203(0xdd)]({'flipX':_0x427702['worldRect'][_0x254203(0x16c)],'flipY':_0x427702['worldRect'][_0x254203(0x1a0)],'left':_0x427702['worldRect']['left'],'top':_0x427702['worldRect'][_0x254203(0x163)],'width':_0x427702[_0x254203(0x17d)][_0x254203(0x1fb)],'height':_0x427702[_0x254203(0x17d)][_0x254203(0x123)],'angle':_0x427702[_0x254203(0x17d)][_0x254203(0x31f)]});let _0xe11dbe=(_0x2ee96f=(_0x529e76=this[_0x254203(0xd6)])==null?void 0x0:_0x529e76['worldPoint'])==null?_0x523cf1:_0x2ee96f;_0x4a06cf[_0x254203(0xdd)]({'left':_0xe11dbe['x']-_0x3cbe53['cxnPointRadius'],'top':_0xe11dbe['y']-_0x3cbe53['cxnPointRadius']});}[_0xcb6cbb(0x1ee)](_0x5343f5){const _0x4b676d=_0xcb6cbb;if(!this['_unitId']||!this[_0x4b676d(0x13b)])return null;let {shapeId:_0x5d0e62,cxnIndex:_0x28b17d}=_0x5343f5,_0x35ff8b=this[_0x4b676d(0x287)][_0x4b676d(0x2c4)](this[_0x4b676d(0x2aa)],this['_subUnitId'],_0x5d0e62);if(!_0x35ff8b)return null;let _0xc82a69=this[_0x4b676d(0x1ad)][_0x4b676d(0x16d)]({'unitId':this[_0x4b676d(0x2aa)],'subUnitId':this[_0x4b676d(0x13b)],'drawingId':_0x5d0e62});if(!(_0xc82a69!=null&&_0xc82a69[_0x4b676d(0xce)]))return null;let {left:_0xe4d350=0x0,top:_0x5477e7=0x0,width:_0x38a9f2=0x0,height:_0x52c11d=0x0,flipX:_0x1162f9=!0x1,flipY:_0x3a78a6=!0x1,angle:_0x21e35d}=_0xc82a69[_0x4b676d(0xce)];_0x35ff8b['updateContext']({'width':_0x38a9f2,'height':_0x52c11d});let _0x204a57=_0x35ff8b[_0x4b676d(0x2cd)]()[_0x4b676d(0x2e5)](_0x29839f=>_0x29839f[_0x4b676d(0x1cc)]===_0x28b17d);if(!_0x204a57)return null;let _0x259b74=_0x1162f9?_0x38a9f2-_0x204a57['x']:_0x204a57['x'],_0x39bb75=_0x3a78a6?_0x52c11d-_0x204a57['y']:_0x204a57['y'];if(_0x21e35d!==0x0&&_0x21e35d!=null){let _0x189c46=_0x21e35d*Math['PI']/0xb4,_0x688171=Math[_0x4b676d(0x20b)](_0x189c46),_0x5e803f=Math[_0x4b676d(0x2d3)](_0x189c46),_0x37a533=_0x38a9f2/0x2,_0x28d355=_0x52c11d/0x2,_0x216f14=_0x259b74-_0x37a533,_0x445032=_0x39bb75-_0x28d355;_0x259b74=_0x37a533+_0x216f14*_0x688171-_0x445032*_0x5e803f,_0x39bb75=_0x28d355+_0x216f14*_0x5e803f+_0x445032*_0x688171;}_0x259b74+=_0xe4d350,_0x39bb75+=_0x5477e7;let _0x57478d=_0x204a57[_0x4b676d(0xfc)]/0xea60;_0x1162f9&&(_0x57478d=0xb4-_0x57478d),_0x3a78a6&&(_0x57478d=-_0x57478d),_0x57478d+=_0x21e35d||0x0,_0x57478d=(_0x57478d%0x168+0x168)%0x168;let _0x3fdf70=_0x202bf2({'left':_0xe4d350,'top':_0x5477e7,'width':_0x38a9f2,'height':_0x52c11d},_0x21e35d||0x0);return{'point':{'x':_0x259b74,'y':_0x39bb75},'angle':_0x57478d,'bounds':_0x3fdf70};}[_0xcb6cbb(0x288)](_0x83e341,_0x5116c1){const _0x1f0bf2=_0xcb6cbb;let _0x19ce13=_0x5116c1['x']-_0x83e341['x'],_0x1f14a8=_0x5116c1['y']-_0x83e341['y'];return Math['abs'](_0x19ce13)>=Math[_0x1f0bf2(0x1ab)](_0x1f14a8)?_0x19ce13>=0x0?0xb4:0x0:_0x1f14a8>=0x0?0x10e:0x5a;}[_0xcb6cbb(0x1cd)](){const _0xc3f090=_0xcb6cbb;this[_0xc3f090(0x2c1)]=void 0x0,this[_0xc3f090(0x2aa)]=void 0x0,this[_0xc3f090(0x13b)]=void 0x0,this[_0xc3f090(0x144)]();}[_0xcb6cbb(0x20e)](){const _0x71a8b5=_0xcb6cbb;this['_clearShapeConnectorHandlerObjects'](),super[_0x71a8b5(0x20e)]();}};Lr=Z([X(0x1,_0x3a72b1),X(0x2,_0x297a94),X(0x3,_0x5a1ed0),X(0x4,_0x1af83c),X(0x5,_0x25d6be(_0x231cef)),X(0x6,_0x25d6be(zn)),X(0x7,_0x25d6be(Pr))],Lr);let Rr=class extends _0x444b76{constructor(_0x5d9179,_0x432d65,_0x49b1f6){const _0x20b0ee=_0xcb6cbb;super(),this[_0x20b0ee(0x184)]=_0x5d9179,this[_0x20b0ee(0x1ad)]=_0x432d65,this[_0x20b0ee(0x2e8)]=_0x49b1f6,this['_initPrinting']();}['_initPrinting'](){const _0x52c93d=_0xcb6cbb;this['disposeWithMe'](this['_sheetPrintInterceptorService'][_0x52c93d(0xc8)][_0x52c93d(0x1e4)](this[_0x52c93d(0x184)]['interceptor'][_0x52c93d(0x283)]()[_0x52c93d(0x229)],{'handler':(_0x4e96e9,_0x1be76a,_0x579b18)=>{const _0x7d23f0=_0x52c93d;var _0x561861;let {unitId:_0x578bf8,subUnitId:_0x1353d0,scene:_0x409fc1,resourceCollector:_0x2d5595}=_0x1be76a,_0x380e50=(_0x561861=this[_0x7d23f0(0x1ad)]['getDrawingDataForUnit'](_0x578bf8))==null?void 0x0:_0x561861[_0x1353d0];return _0x380e50==null||_0x380e50[_0x7d23f0(0x273)][_0x7d23f0(0x26a)](_0x1064ec=>{const _0x270a2b=_0x7d23f0;let _0x25503f=_0x380e50[_0x270a2b(0x1d1)][_0x1064ec];_0x25503f[_0x270a2b(0x1c2)]===_0x55872c[_0x270a2b(0x1ce)]&&!_0x25503f[_0x270a2b(0x237)]&&this[_0x270a2b(0x2e8)][_0x270a2b(0x1f9)](_0x25503f,_0x409fc1,{'resourceCollector':_0x2d5595});}),_0x579b18(_0x4e96e9);}}));}};Rr=Z([X(0x0,_0x25d6be(_0x1c54e8)),X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(Q))],Rr);let zr=class extends _0x444b76{constructor(_0x57f836,_0x4f42ae,_0x54c19a){const _0x5485fe=_0xcb6cbb;super(),this[_0x5485fe(0x300)]=_0x57f836,this[_0x5485fe(0x158)]=_0x4f42ae,this['_sheetPermissionCheckController']=_0x54c19a,this[_0x5485fe(0x2be)]();}[_0xcb6cbb(0x2be)](){const _0x47bc2c=_0xcb6cbb;this[_0x47bc2c(0x2d6)](this[_0x47bc2c(0x300)][_0x47bc2c(0x140)](_0x1e5e86=>{const _0x2f8c69=_0x47bc2c;let _0x15292f,_0x326f8b;if(_0x1e5e86['id']===_0x5268cc['id']||_0x1e5e86['id']===_0x28ec43['id']||_0x1e5e86['id']===_0x1ae360['id']){let _0x7180f=_0x1e5e86[_0x2f8c69(0x24d)];_0x15292f=_0x7180f[_0x2f8c69(0x241)],_0x326f8b=_0x7180f[_0x2f8c69(0x281)];}!_0x15292f||!_0x326f8b||this[_0x2f8c69(0x149)][_0x2f8c69(0x29f)]({'workbookTypes':[_0x3a8356],'worksheetTypes':[_0x521940]},_0x15292f,_0x326f8b)||this[_0x2f8c69(0x149)][_0x2f8c69(0x2b6)](this[_0x2f8c69(0x158)]['t'](_0x2f8c69(0x322)));}));}};zr=Z([X(0x0,_0x25d6be(_0x3a72b1)),X(0x1,_0x25d6be(_0x498c36)),X(0x2,_0x25d6be(_0x4bb7c3))],zr);let Br=class extends _0x444b76{constructor(_0x4f46c5,_0x623522,_0x33d5a6,_0x53e410,_0x53f906,_0x11204a,_0x54ef4b,_0x4de0c6,_0x167cf6,_0x4bb31,_0x201aa7){const _0x21fcbd=_0xcb6cbb;super(),this[_0x21fcbd(0x23f)]=_0x4f46c5,this[_0x21fcbd(0x19e)]=_0x623522,this[_0x21fcbd(0x254)]=_0x33d5a6,this['_sheetsShapeService']=_0x53e410,this[_0x21fcbd(0x158)]=_0x53f906,this[_0x21fcbd(0x300)]=_0x11204a,this['_drawingManagerService']=_0x54ef4b,this[_0x21fcbd(0x150)]=_0x4de0c6,this[_0x21fcbd(0x14f)]=_0x167cf6,this['_renderManagerService']=_0x4bb31,this[_0x21fcbd(0x161)]=_0x201aa7,Y(this,_0x21fcbd(0x17b),null),Y(this,'_activeShapeInfo',null),Y(this,_0x21fcbd(0x1a7),!0x1),Y(this,_0x21fcbd(0x1ff),0x0),Y(this,_0x21fcbd(0x190),new Set()),Y(this,_0x21fcbd(0x309),[]),this[_0x21fcbd(0x270)](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x23f)][_0x21fcbd(0x1e2)](_0x593ef9['UNIVER_SHEET'])['subscribe'](_0x39142e=>{const _0x1e2ad8=_0x21fcbd;if(!_0x39142e){var _0x59551e;(_0x59551e=this[_0x1e2ad8(0x17b)])==null||_0x59551e[_0x1e2ad8(0x20e)]();return;}this[_0x1e2ad8(0x1d0)](_0x39142e);})),this['_registerOperations'](),this['initShapePopupMenu'](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x161)][_0x21fcbd(0x1ac)][_0x21fcbd(0x2f7)](_0xb17033=>{const _0x402800=_0x21fcbd;_0xb17033&&this[_0x402800(0x1f1)]();}));}[_0xcb6cbb(0x270)](){this['_menuManagerService']['mergeMenu'](lr);}[_0xcb6cbb(0x2c6)](){const _0x5ab52=_0xcb6cbb;this['_univerInstanceService']['getAllUnitsForType'](_0x593ef9[_0x5ab52(0x298)])['forEach'](_0x1b3273=>this[_0x5ab52(0x1d0)](_0x1b3273));}[_0xcb6cbb(0x25c)](_0x2a245c,_0x5ba4f1,_0x5dd22d){const _0xf425ae=_0xcb6cbb;let _0x5bb3ed=this['_sheetsShapeService'][_0xf425ae(0x15a)](_0x2a245c,_0x5ba4f1,_0x5dd22d),_0x4f011a=this[_0xf425ae(0x287)][_0xf425ae(0xd4)](_0x2a245c,_0x5ba4f1,_0x5dd22d);return _0x5bb3ed!==void 0x0&&_0x4f011a!==void 0x0?{'shapeData':_0x4f011a,'shapeId':_0x5dd22d,'shapeType':_0x5bb3ed,'unitId':_0x2a245c,'subUnitId':_0x5ba4f1,'version':this[_0xf425ae(0x1ff)],'disableShapeOption':!0x1}:null;}[_0xcb6cbb(0x1d0)](_0x34805a){const _0x1d5847=_0xcb6cbb;if(!_0x34805a)return;let _0x18e705=_0x34805a[_0x1d5847(0x181)]();this[_0x1d5847(0x154)][_0x1d5847(0x1cf)](_0x18e705)&&!this['_initializedShapePopupMenu'][_0x1d5847(0x1cf)](_0x18e705)&&(this[_0x1d5847(0xf5)](_0x18e705),this['_initializedShapePopupMenu'][_0x1d5847(0x1b9)](_0x18e705));}['_clearPopups'](){const _0x276c56=_0xcb6cbb;this[_0x276c56(0x309)][_0x276c56(0x26a)](_0x28b2f5=>_0x28b2f5[_0x276c56(0x20e)]()),this[_0x276c56(0x309)][_0x276c56(0x25d)]=0x0;}[_0xcb6cbb(0xf5)](_0x3cf68e){const _0x13bb86=_0xcb6cbb;var _0x205569;let _0x234b15=(_0x205569=this[_0x13bb86(0x154)][_0x13bb86(0x133)](_0x3cf68e))==null?void 0x0:_0x205569[_0x13bb86(0x1f6)],_0x226c81=_0x234b15==null?void 0x0:_0x234b15['getTransformerByCreate']();!_0x234b15||!_0x226c81||(this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x17e)][_0x13bb86(0x2f7)](()=>{const _0x4ab151=_0x13bb86;let _0x55a093=_0x226c81[_0x4ab151(0x108)]();if(this[_0x4ab151(0x1f1)](),this['_isOpenedShapeEditPanel']||_0x55a093[_0x4ab151(0x1e1)]>0x1)return;let _0x1a9459=_0x55a093[_0x4ab151(0x1c7)]()[_0x4ab151(0x152)]()[_0x4ab151(0x274)];if(!_0x1a9459)return;let _0xc69b8=this['_drawingManagerService'][_0x4ab151(0x2ab)](_0x1a9459[_0x4ab151(0x303)]);if(!_0xc69b8||_0xc69b8[_0x4ab151(0x1c2)]!==_0x55872c[_0x4ab151(0x1ce)])return;let {unitId:_0x1e3d98,subUnitId:_0x56e97b,drawingId:_0x853caa,drawingType:_0x154b4e}=_0xc69b8,_0x3fb1c2=this[_0x4ab151(0x25c)](_0x1e3d98,_0x56e97b,_0x853caa);if(!_0x3fb1c2)return;this[_0x4ab151(0x14f)]['setContextValue'](_0x5c6846,!0x0);let _0x130f70=this[_0x4ab151(0x150)]['attachPopupToObject'](_0x1a9459,{'componentKey':Wn,'direction':_0x4ab151(0x168),'offset':[0x0,_0x2a48ef],'extraProps':{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa,'drawingType':_0x154b4e,'shapeType':_0x3fb1c2[_0x4ab151(0x312)],'shapeData':_0x3fb1c2[_0x4ab151(0x18a)]}});this[_0x4ab151(0x309)]['push'](this[_0x4ab151(0x2d6)](_0x130f70)),this[_0x4ab151(0x1ad)]['getFocusDrawings']()[_0x4ab151(0x2e5)](_0x157f8f=>_0x157f8f[_0x4ab151(0x241)]===_0x1e3d98&&_0x157f8f['subUnitId']===_0x56e97b&&_0x157f8f[_0x4ab151(0x10e)]===_0x853caa)||this[_0x4ab151(0x1ad)][_0x4ab151(0x257)]([{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa}]);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x11a)]['subscribe'](()=>{const _0x4548a0=_0x13bb86;this['_clearPopups'](),this[_0x4548a0(0x14f)][_0x4548a0(0x1ea)](_0x5c6846,!0x1),this['_drawingManagerService'][_0x4548a0(0x257)](null);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x27e)][_0x13bb86(0x2f7)](()=>{const _0x181b93=_0x13bb86;this[_0x181b93(0x1f1)]();})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x12d)][_0x13bb86(0x2f7)](()=>{const _0x296172=_0x13bb86;this[_0x296172(0x1f1)]();})));}['_registerOperations'](){const _0x4e2b36=_0xcb6cbb;this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x300)]['onCommandExecuted'](_0x5c87c7=>{const _0x291e3e=_0x4e2b36;if(_0x5c87c7['id']===pr['id']){let {unitId:_0x1e33d6,subUnitId:_0x4ff00d,drawingId:_0x5ac332}=_0x5c87c7[_0x291e3e(0x24d)];this['_shapeEditPanelVersion']+=0x1,this[_0x291e3e(0x305)]=this[_0x291e3e(0x25c)](_0x1e33d6,_0x4ff00d,_0x5ac332),this[_0x291e3e(0x1f1)](),this[_0x291e3e(0x2eb)]();}if(_0x5c87c7['id']===fr['id']&&(this[_0x291e3e(0x305)]=null,this[_0x291e3e(0x12e)]()),_0x5c87c7['id']===_0x528850['id']){let {unitId:_0x59fc02,subUnitId:_0x184f47,shapeId:_0x58765}=_0x5c87c7[_0x291e3e(0x24d)];if(this[_0x291e3e(0x305)]&&this[_0x291e3e(0x305)][_0x291e3e(0x124)]===_0x58765){let _0x433ed1=this[_0x291e3e(0x25c)](_0x59fc02,_0x184f47,_0x58765);_0x433ed1&&(this[_0x291e3e(0x1ff)]+=0x1,_0x433ed1[_0x291e3e(0x28a)]=this['_shapeEditPanelVersion'],this[_0x291e3e(0x305)]=_0x433ed1,this[_0x291e3e(0x1a7)]&&this[_0x291e3e(0x2eb)]());}}})),this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x1ad)][_0x4e2b36(0xed)]['subscribe'](_0x438be8=>{const _0x11db1b=_0x4e2b36;if(this[_0x11db1b(0x1a7)]===!0x1)return;if(_0x438be8[_0x11db1b(0x25d)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x438be8['length']===0x1&&_0x438be8[0x0][_0x11db1b(0x1c2)]===_0x55872c['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0x11db1b(0x305)]=this[_0x11db1b(0x25c)](_0x438be8[0x0]['unitId'],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)])){this[_0x11db1b(0x2eb)]();return;}let _0xfc87b2=_0x438be8['filter'](_0x5f495c=>_0x5f495c[_0x11db1b(0x1c2)]===_0x55872c[_0x11db1b(0x1ce)]);if(_0x438be8[_0x11db1b(0x25d)]>0x1&&_0xfc87b2[_0x11db1b(0x25d)]===_0x438be8[_0x11db1b(0x25d)]){if(this[_0x11db1b(0x1ff)]+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this['_activeShapeInfo']){this[_0x11db1b(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)]){this[_0x11db1b(0x305)][_0x11db1b(0x269)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x11db1b(0x12e)]();}));}[_0xcb6cbb(0x2eb)](){const _0x69541=_0xcb6cbb;this[_0x69541(0x305)]&&(this['_sidebarDisposable']=this[_0x69541(0x19e)]['open']({'id':Hn,'header':{'title':this[_0x69541(0x158)]['t'](_0x69541(0x323))},'width':0x184,'children':{'label':Hn,...this['_activeShapeInfo']},'onClose':()=>{const _0xeea0f2=_0x69541;this[_0xeea0f2(0x1ad)][_0xeea0f2(0x257)](null),this[_0xeea0f2(0x14f)][_0xeea0f2(0x1ea)](_0x5c6846,!0x1),this[_0xeea0f2(0x17b)]=null;}}),this[_0x69541(0x1a7)]=!0x0);}[_0xcb6cbb(0x12e)](){const _0x4ff757=_0xcb6cbb;this['_isOpenedShapeEditPanel']=!0x1,this[_0x4ff757(0x19e)][_0x4ff757(0x233)](Hn),this['_sidebarDisposable']=null,this['_contextService'][_0x4ff757(0x1ea)](_0x5c6846,!0x1),this[_0x4ff757(0x1ad)][_0x4ff757(0x257)](null);}};Br=Z([X(0x0,_0x1af83c),X(0x1,_0x25d6be(_0x4770b9)),X(0x2,_0x1aa6d4),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x498c36)),X(0x5,_0x3a72b1),X(0x6,_0x5a1ed0),X(0x7,_0x25d6be(_0x38b394)),X(0x8,_0x34c0f6),X(0x9,_0x297a94),X(0xa,_0x25d6be(wr))],Br);let $=class extends _0x325a4b{constructor(_0x5b1933=mr,_0x37b5b5,_0x44069b,_0x2c0069,_0x42ce62){const _0x21191b=_0xcb6cbb;super(),this[_0x21191b(0x249)]=_0x5b1933,this[_0x21191b(0x248)]=_0x37b5b5,this['_commandService']=_0x44069b,this['_configService']=_0x2c0069,this[_0x21191b(0x154)]=_0x42ce62;let {..._0x48cc8f}=_0x5ed21a({},mr,this[_0x21191b(0x249)]);this[_0x21191b(0x295)][_0x21191b(0x255)](_0x21191b(0x2e7),_0x48cc8f),this[_0x21191b(0x116)]();}[_0xcb6cbb(0x232)](){const _0x785fa7=_0xcb6cbb;_0x1f2515(this[_0x785fa7(0x248)],[[Br],[jr],[Q],[Rr]]);}[_0xcb6cbb(0x18d)](){const _0x53bb23=_0xcb6cbb;this['_injector']['get'](Br)[_0x53bb23(0x2c6)]();}[_0xcb6cbb(0x14e)](){const _0x56f31e=_0xcb6cbb;[[Pr],[zn],[Fr]][_0x56f31e(0x26a)](_0x40404b=>this[_0x56f31e(0x248)][_0x56f31e(0x1b9)](_0x40404b)),_0x1f2515(this['_injector'],[[Fr],[zn]]),this['_renderManagerService'][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Pr]),this[_0x56f31e(0x154)][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Dr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[Lr]),this['_renderManagerService']['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[kr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9[_0x56f31e(0xb9)],[Ar]);}[_0xcb6cbb(0xd5)](){const _0x3ada53=_0xcb6cbb;this[_0x3ada53(0x248)][_0x3ada53(0x1b9)]([Er]),this['_injector']['get'](Er);let _0x4906f1=this[_0x3ada53(0x248)];[[Br],[jr],[Q],[Rr],[yr],[wr],[Or],[Jn],[zr]]['forEach'](_0x4a351b=>_0x4906f1[_0x3ada53(0x1b9)](_0x4a351b)),_0x1f2515(this[_0x3ada53(0x248)],[[Br],[jr],[Q],[yr],[wr],[Or],[Jn],[zr]]);}['_initCommands'](){const _0x2f5ddf=_0xcb6cbb;[Vn,An,fr,pr,qn,Bn][_0x2f5ddf(0x26a)](_0x4623c0=>this['disposeWithMe'](this[_0x2f5ddf(0x300)]['registerCommand'](_0x4623c0)));}};Y($,_0xcb6cbb(0x27b),_0x593ef9[_0xcb6cbb(0x298)]),Y($,_0xcb6cbb(0x117),_0xcb6cbb(0x2ba)),Y($,_0xcb6cbb(0x258),ur),Y($,_0xcb6cbb(0x28a),dr),$=Z([_0x4a9068(_0x573913,_0x449d42,_0x37224d,_0x1485ee,_0x4579a4,_0x5dd7ab,_0xd4f97b,_0x57144b,_0x2863d5,_0x4efd70,_0x56149f,_0x47b64b,_0x1d8391,_0x1ee45e),X(0x1,_0x25d6be(_0x3ca189)),X(0x2,_0x3a72b1),X(0x3,_0x7ad4a5),X(0x4,_0x297a94)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0x1a57e9=_0x4a8a;(function(_0x5afab3,_0x322898){const _0x3121f5=_0x4a8a,_0x2911d3=_0x5afab3();while(!![]){try{const _0x43d3ab=parseInt(_0x3121f5(0x263))/0x1+parseInt(_0x3121f5(0x10c))/0x2*(parseInt(_0x3121f5(0x119))/0x3)+parseInt(_0x3121f5(0x143))/0x4*(-parseInt(_0x3121f5(0x365))/0x5)+parseInt(_0x3121f5(0x20b))/0x6*(-parseInt(_0x3121f5(0x1a8))/0x7)+parseInt(_0x3121f5(0x30e))/0x8+-parseInt(_0x3121f5(0x2e6))/0x9*(-parseInt(_0x3121f5(0x188))/0xa)+-parseInt(_0x3121f5(0x2ac))/0xb;if(_0x43d3ab===_0x322898)break;else _0x2911d3['push'](_0x2911d3['shift']());}catch(_0x558b35){_0x2911d3['push'](_0x2911d3['shift']());}}}(_0x2ae2,0x8d796));import{FormulaShapeAnimationController as _0xf4b281,SHAPE_CHANGE_PICKER_COMPONENT as _0x27ef7f,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x41e007,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x295cb8,ShapeEditPanel as _0x3b0964,ShapeFloatingToolbar as _0x9de617,ShapeFloatingToolbarService as _0x23dc66,ShapeFloatingToolbarToggleFactory as _0x5de80e,ShapeFormulaRibbonControl as _0x58ba9f,ShapeGroupEnum as _0x5254a4,ShapePickerDropdown as _0x4951a2,ShapePickerPanel as _0x55a6fc,ShapeQuickStyleGallery as _0xd337d7,ShapeStyleRibbonControl as _0x324497,ShapeTextEditorContainer as _0x15f4f4,ShapeTextFloatMenuRenderControllerBase as _0xc831bf,ShapeTextFloatToolbar as _0x2bc136,ShapeTextRibbonControl as _0x39ec8e,ToggleShapeFloatingToolbarOperation as _0x4879d7,UniverShapeEditorUIPlugin as _0x478c15,activateDrawingObject as _0x4d4798,buildShapeTextDataUpdate as _0x39d59f,clearActiveDrawingObjects as _0x4b95c2,drawFormulaShapeAnimationLayers as _0x3cbb8e,getDrawingTypeNameKey as _0x2a725c,getTextModel as _0x5702b3,getTextStyle as _0xf96880,normalizeShapeTextModel as _0x172b29,plainShapeTextToDocumentData as _0x109756,prepareShapeTextDocumentData as _0x3a9712,resolveFormulaShapeAutoFitSize as _0x38f6df,resolveShapeContextualRibbonHostMode as _0x1dcf15,resolveShapeTextDocumentRenderLayout as _0x507478,resolveShapeTextEditorBehaviorShapeData as _0x11b25b,resolveShapeTextEditorWrapStrategy as _0x15bc5a,shouldAllowShapeTextEditorHostSizeShrink as _0x5e39fb,shouldClipShapeTextDocument as _0x4b8f9a,useFormulaShapeToolbar as _0x34ed3a}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x3377c6,ContextMenuGroup as _0x5e36e3,ContextMenuPosition as _0x40b403,IMenuManagerService as _0x430f90,IRibbonService as _0xb3cad2,ISidebarService as _0xaf9369,IconManager as _0x5e4ceb,MenuItemType as _0x870bc4,MenuManagerPosition as _0x38bf7b,RibbonInsertGroup as _0x624e4b,UndoRedoGroupService as _0x59f03b,getMenuHiddenObservable as _0x472593,useDependency as _0x5ee9a9,useObservable as _0x263d75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x34939a,ImageSourceTypeEnum as _0x55a71c,ShapeArrowSizeEnum as _0x505688,ShapeArrowTypeEnum as _0xb46528,ShapeDefaultConfig as _0x496afe,ShapeFillEnum as _0x478734,ShapeLineTypeEnum as _0x14ebc6,ShapeModel as _0x300a94,ShapeRenderModeEnum as _0x15c78e,ShapeTypeEnum as _0x2d2111,computeConnectorRouteLayout as _0x3225ee,getBasicShapeRotateBound as _0x23a439,isConnectorShape as _0x3863ab,isCurvedConnectorShape as _0x338f6a,routeConnectorLineShape as _0x22ac34}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3f61b0,UniverShapeEditorPlugin as _0x1c59b7,applyQuickStyleToShapeData as _0x1c41c8,cloneShapeDataForType as _0x4ebde1,createShapeFormulaDocument as _0x1b2670,createShapeTextBoxShapeData as _0x294eed,getShapeQuickStylePreset as _0x36420e,getShapeQuickStyleType as _0x38830c,resolveActiveShapeQuickStylePresetId as _0x33cca3}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2f0bb2,InsertSheetsShapeMutation as _0x3b9418,RemoveSheetsShapeMutation as _0x642eb,SetShapeDrawingDataCommand as _0x457236,SheetsShapeService as _0x434a53,ToggleSheetsShapeFlipCommand as _0x219c9d,UniverSheetsShapePlugin as _0x30de56,UpdateConnectorRelationCommand as _0x2a81d3,UpdateLineShapeResizeCommand as _0x569950,UpdateSheetsShapeDataMutation as _0x926363}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x292bd6,CommandType as _0x42d4f6,DependentOn as _0x2c3830,Disposable as _0x458cfa,DocumentDataModel as _0xa70116,DrawingTypeEnum as _0x3a939e,FOCUSING_COMMON_DRAWINGS as _0x4f1989,FOCUSING_SHAPE_TEXT_EDITOR as _0x5efdd2,HorizontalAlign as _0x59b547,ICommandService as _0x1b8f46,IConfigService as _0x7f334e,IContextService as _0x593690,IImageIoService as _0x2f32ce,IURLImageService as _0x5b58f3,IUndoRedoService as _0x43ae7b,IUniverInstanceService as _0x4b61f3,Inject as _0x236d5e,Injector as _0x8c9613,LocaleService as _0x1d78e7,Plugin as _0x50de7b,UniverInstanceType as _0x3d832c,VerticalAlign as _0x12d55d,createInternalEditorID as _0x5dbcda,generateRandomId as _0xa48e11,merge as _0x5e4367,toDisposable as _0x3ee632,touchDependencies as _0xaddeba}from'@univerjs/core';import{CopySheetCommand as _0x2bae38,RemoveSheetCommand as _0x12e6cd,SheetInterceptorService as _0x9bde8a,SheetPermissionCheckController as _0x2c3559,SheetSkeletonService as _0x3bd31c,SheetsSelectionsService as _0x17030f,UniverSheetsPlugin as _0x5e916d,WorkbookEditablePermission as _0x386d00,WorksheetEditPermission as _0x18e121,attachRangeWithCoord as _0x4da051,discreteRangeToRange as _0x2b7982,getSheetCommandTarget as _0x5a285c}from'@univerjs/sheets';import{IDrawingManagerService as _0x3398d1,SetDrawingSelectedOperation as _0x158934,UniverDrawingPlugin as _0x915f2c,getDrawingShapeKeyByDrawingSearch as _0x238087}from'@univerjs/drawing';import{CURSOR_TYPE as _0xee2861,Circle as _0x20c694,DRAWING_OBJECT_LAYER_INDEX as _0x5ad001,DocumentSkeleton as _0x5bc5b7,DocumentViewModel as _0x927fe0,Documents as _0x8ae97c,IRenderManagerService as _0xebded9,Image as _0x5621f4,RENDER_CLASS_TYPE as _0x2b860b,SHEET_VIEWPORT_KEY as _0x3bda53,Shape as _0x38cc74,Transform as _0x228916,UniverRenderEnginePlugin as _0x6f6e81,Vector2 as _0x1cc756}from'@univerjs/engine-render';import{COPY_TYPE as _0x1b2302,ISheetClipboardService as _0x21ba5b,PREDEFINED_HOOK_NAME as _0x375ec3,SheetCanvasPopManagerService as _0x5d6395,SheetPrintInterceptorService as _0x3dbf35,SheetScrollManagerService as _0x56e08d,SheetSkeletonManagerService as _0x2bd201,UniverSheetsUIPlugin as _0x13359c,deriveStateFromActiveSheet$ as _0x3c15b6,getCurrentRangeDisable$ as _0x5052c4,getViewportByCell as _0x56ed68}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x266901,EMPTY as _0x3b0f55,Observable as _0x96c1cf,map as _0x1e6cce,of as _0x36bcf9,startWith as _0x49a949,switchMap as _0x1990de}from'rxjs';import{DrawingCommonPanel as _0x31e0d1,DrawingImageClipService as _0x5ae22a,DrawingRenderService as _0xe6009a,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x5f0802,OBJECT_LIST_FLOATING_SECTION_ID as _0x182658,ObjectListPanelBase as _0x3b8f7e,UniverDrawingUIPlugin as _0x1d6e19,getCurrentUnitInfo as _0x31acf7,getObjectListPanelLabels as _0x5dfe29,getObjectListPanelSectionIdForDrawingType as _0x4c8a2b,getObjectListPanelTypeName as _0x5163f8,insertGroupObject as _0x1dfb81}from'@univerjs/drawing-ui';import{Fragment as _0x8b4743,jsx as _0x16ab0d,jsxs as _0x3ef962}from'react/jsx-runtime';import{DrawingApplyType as _0x40c976,ISheetDrawingService as _0x456a1c,RemoveSheetDrawingCommand as _0x475856,SetDrawingApplyMutation as _0x46897e,SetDrawingArrangeCommand as _0x2b3290,SetSheetDrawingCommand as _0x5613c7,UniverSheetsDrawingPlugin as _0x1297cb,transformToAxisAlignPosition as _0x2e83e9,transformToDrawingPosition as _0x15b6d5}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3cc57f}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x55f526,UniverDocsPlugin as _0x1ed1eb}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5a3f85,DocSelectionRenderService as _0x240358,UniverDocsUIPlugin as _0xff5f03}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5c8aef,SheetsDrawingGroupCopyPasteController as _0x12abb0,UniverSheetsDrawingUIPlugin as _0x52f323}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x4b6104,FlipHorizontalIcon as _0x30efc9,FlipVerticalIcon as _0x1612fb,MoveDownIcon as _0x5775eb,MoveUpIcon as _0x4ab29f,ObjectLayersIcon as _0x2546c5,ShapeFormatSettingIcon as _0x2b4e9a,TopmostIcon as _0x11f074}from'@univerjs/icons';import{memo as _0x42eeaf,useEffect as _0x219537,useMemo as _0xf2a45c,useReducer as _0x4911df,useState as _0x440ee1}from'react';function Zn(_0x2eba50,_0xa30fca){const _0x4b42c2=_0x4a8a;let _0x2e35ac={};for(let _0x5e016c of Object['keys'](_0xa30fca)){let _0x348816=_0xa30fca[_0x5e016c],_0x154961=_0x2eba50[_0x5e016c];if(_0x348816!==void 0x0){if(_0x154961===void 0x0){_0x2e35ac[_0x5e016c]=void 0x0;continue;}typeof _0x348816=='object'&&_0x348816&&!Array[_0x4b42c2(0x111)](_0x348816)&&typeof _0x154961==_0x4b42c2(0x368)&&_0x154961&&!Array[_0x4b42c2(0x111)](_0x154961)?_0x2e35ac[_0x5e016c]=Zn(_0x154961,_0x348816):_0x2e35ac[_0x5e016c]=_0x154961;}}return _0x2e35ac;}const Qn={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x1b9),'handler':(_0x3d71f2,_0x56418c)=>{const _0x2e5772=_0x1a57e9;let _0x5cde9c=_0x3d71f2[_0x2e5772(0x272)](_0x434a53),{unitId:_0x149961,subUnitId:_0x363eeb,shapeType:_0x545ea4,shapeId:_0x4abc95,shapeData:_0x5c9077,replaceShapeData:_0x8f2715,oldShapeJSON:_0xa6ae8c}=_0x56418c;if(!_0x5cde9c[_0x2e5772(0x29e)](_0x149961,_0x363eeb,_0x4abc95))return!0x1;let _0x3839cb=_0x3d71f2[_0x2e5772(0x272)](_0x1b8f46),_0x3491fc=_0x3d71f2['get'](_0x43ae7b),{oldShapeType:_0x58258e,oldShapeData:_0x2284af={}}=_0xa6ae8c,_0x5bf00a=_0x8f2715?_0x2284af:Zn(_0x2284af,_0x5c9077||{}),_0x3d33bc={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x545ea4,'shapeData':_0x5c9077,'replace':_0x8f2715}},_0x33cc09={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x58258e,'shapeData':_0x5bf00a,'replace':_0x8f2715}};return _0x3839cb[_0x2e5772(0x297)](_0x3d33bc['id'],_0x3d33bc['params'])?(_0x3491fc[_0x2e5772(0x153)]({'unitID':_0x149961,'undoMutations':[_0x33cc09],'redoMutations':[_0x3d33bc]}),!0x0):!0x1;}};function $n(_0x133894,_0x4426b4,_0x5743cd,_0x1c0c4c,_0x5d7e7d,_0x225f70){const _0x28174a=_0x1a57e9;let _0xc9749e={'unitId':_0x4426b4,'subUnitId':_0x5743cd,'shapeId':_0x1c0c4c,'shapeData':_0x225f70,'oldShapeJSON':_0x5d7e7d};return _0x133894[_0x28174a(0x311)](Qn['id'],_0xc9749e);}function er(_0x1a2f1a,_0x5aad47,_0x196d65,_0x1626ad,_0x2ece04,_0x462c90){const _0x462861=_0x1a57e9;let _0x42d689={'unitId':_0x5aad47,'subUnitId':_0x196d65,'shapeId':_0x1626ad,'shapeData':_0x462c90,'oldShapeJSON':_0x2ece04};return _0x1a2f1a[_0x462861(0x311)](Qn['id'],_0x42d689);}function tr(_0x245222){'@babel/helpers - typeof';const _0x353775=_0x1a57e9;return tr=typeof Symbol==_0x353775(0xfa)&&typeof Symbol[_0x353775(0x190)]==_0x353775(0x1c5)?function(_0x30529d){return typeof _0x30529d;}:function(_0x5d43a1){const _0x19f5a5=_0x353775;return _0x5d43a1&&typeof Symbol==_0x19f5a5(0xfa)&&_0x5d43a1[_0x19f5a5(0x2fc)]===Symbol&&_0x5d43a1!==Symbol['prototype']?'symbol':typeof _0x5d43a1;},tr(_0x245222);}function nr(_0x2fff67,_0xbf1849){const _0x486775=_0x1a57e9;if(tr(_0x2fff67)!=_0x486775(0x368)||!_0x2fff67)return _0x2fff67;var _0x16dc24=_0x2fff67[Symbol['toPrimitive']];if(_0x16dc24!==void 0x0){var _0xce4ffa=_0x16dc24['call'](_0x2fff67,_0xbf1849||_0x486775(0x24d));if(tr(_0xce4ffa)!=_0x486775(0x368))return _0xce4ffa;throw TypeError(_0x486775(0x235));}return(_0xbf1849===_0x486775(0x371)?String:Number)(_0x2fff67);}function rr(_0x246aed){const _0x3652ce=_0x1a57e9;var _0x4cf070=nr(_0x246aed,_0x3652ce(0x371));return tr(_0x4cf070)==_0x3652ce(0x1c5)?_0x4cf070:_0x4cf070+'';}function Y(_0x1861fe,_0x2c9cf0,_0x4cf036){const _0x35bf29=_0x1a57e9;return(_0x2c9cf0=rr(_0x2c9cf0))in _0x1861fe?Object[_0x35bf29(0x319)](_0x1861fe,_0x2c9cf0,{'value':_0x4cf036,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1861fe[_0x2c9cf0]=_0x4cf036,_0x1861fe;}function ir(_0x2c7b64,_0x2ad47b,_0x101728){const _0x10fd0d=_0x1a57e9;let _0x2faf94=_0x11b25b(_0x2c7b64,{..._0x2ad47b,'dataModel':{..._0x2ad47b[_0x10fd0d(0x2c8)]??{},..._0x101728?{'doc':_0x101728}:null}}),_0x246b97=_0x15bc5a(_0x2faf94);return{'clip':_0x4b8f9a(_0x2faf94,_0x246b97),'wrapStrategy':_0x246b97};}var ar=class extends _0x38cc74{constructor(_0x2a2d65,_0x393d38){const _0x35bd38=_0x1a57e9;super(_0x2a2d65,_0x393d38),Y(this,'_props',void 0x0),Y(this,_0x35bd38(0x318),new _0xf4b281(()=>this[_0x35bd38(0x2bc)](!0x0),()=>this[_0x35bd38(0x284)]())),Y(this,_0x35bd38(0x13d),!0x0),Y(this,_0x35bd38(0x25f),_0x3a939e[_0x35bd38(0x35c)]),Y(this,'isDrawingObject',!0x0),this['_props']={..._0x393d38},this['_formulaAnimation'][_0x35bd38(0x21a)](_0x393d38[_0x35bd38(0x367)],_0x393d38[_0x35bd38(0x2b9)]!==!0x1),this['_init'](),this[_0x35bd38(0x284)]();}[_0x1a57e9(0x338)](){const _0x54d36f=_0x1a57e9;this[_0x54d36f(0x2b8)][_0x54d36f(0x18f)](_0x3b4254=>{const _0x2ee36f=_0x54d36f;this[_0x2ee36f(0x278)](_0x3b4254);});}[_0x1a57e9(0x2df)](_0x14110d){const _0x239e32=_0x1a57e9;this[_0x239e32(0x104)]['prstGeom']=_0x14110d;}['setEditing'](_0x3549bb){const _0x3dda2f=_0x1a57e9;this[_0x3dda2f(0x104)][_0x3dda2f(0x36f)]=_0x3549bb,this[_0x3dda2f(0x2bc)](!0x0);}['setFormulaPresentation'](_0x322b14,_0x44d8dd=!0x0){const _0x366576=_0x1a57e9;this[_0x366576(0x318)]['setPresentation'](_0x322b14,_0x44d8dd),this[_0x366576(0x104)]['formulaPresentation']=_0x322b14,this['_applyFormulaAutoFitSize'](),this[_0x366576(0x2bc)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x6f2c1c=_0x1a57e9;let _0x198309=this[_0x6f2c1c(0x104)]['shapeModel'],_0x3b4918=_0x198309[_0x6f2c1c(0x1a2)](),_0x4b9f99=_0x172b29(_0x3b4918==null?void 0x0:_0x3b4918['dataModel']),_0x43515d=_0x4b9f99==null?void 0x0:_0x4b9f99[_0x6f2c1c(0x197)],_0x1ef064=this[_0x6f2c1c(0x318)][_0x6f2c1c(0x32f)]();if(!_0x43515d||_0x1ef064['length']===0x0)return;_0x198309[_0x6f2c1c(0x216)]({'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]});let _0x1e15c4=_0x38f6df({'documentData':_0x1ef064[_0x6f2c1c(0x1a6)](_0x3b9007=>_0x1b2670(_0x43515d,_0x3b9007)),'height':this[_0x6f2c1c(0x2f9)],'shapeData':_0x198309[_0x6f2c1c(0x2c4)](),'textRect':_0x198309[_0x6f2c1c(0x16c)]({'left':0x0,'top':0x0,'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]}),'width':this[_0x6f2c1c(0x1a3)]});if(_0x1e15c4){var _0xc1aace;this[_0x6f2c1c(0x2d9)](_0x1e15c4[_0x6f2c1c(0x1a3)],_0x1e15c4['height']),(_0xc1aace=this[_0x6f2c1c(0x183)]())==null||(_0xc1aace=_0xc1aace[_0x6f2c1c(0x1da)]())==null||_0xc1aace[_0x6f2c1c(0x2a2)]();}}get[_0x1a57e9(0x264)](){const _0x22b8c4=_0x1a57e9;return this[_0x22b8c4(0x104)]['unitId'];}get[_0x1a57e9(0x29a)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x225b0c){const _0x3ca25e=_0x1a57e9;if(this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)]==null||!this[_0x3ca25e(0x13d)])return;let {width:_0x4c4a40,height:_0x447924}=this,{width:_0x573b04=0x0,height:_0x2cf647=0x0}=_0x225b0c[_0x3ca25e(0x249)],{left:_0xc6d852=0x0,top:_0x1c118f=0x0,right:_0x3aba1c=0x0,bottom:_0x4b0f08=0x0}=this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)],_0x2c87cb=_0xc6d852,_0x547d27=_0x1c118f,_0x53daad=_0x3aba1c,_0x191563=_0x4b0f08,_0x2e624c=!0x1;if(_0x573b04!==0x0&&_0x573b04!==_0x4c4a40){let _0x2b6a78=_0xc6d852/_0x573b04,_0xe71aad=_0x3aba1c/_0x573b04;_0x2c87cb=_0x4c4a40*_0x2b6a78,_0x53daad=_0x4c4a40*_0xe71aad,_0x2e624c=!0x0;}if(_0x2cf647!==0x0&&_0x2cf647!==_0x447924){let _0x4e8401=_0x1c118f/_0x2cf647,_0x1cabbf=_0x4b0f08/_0x2cf647;_0x547d27=_0x447924*_0x4e8401,_0x191563=_0x447924*_0x1cabbf,_0x2e624c=!0x0;}_0x2e624c&&this[_0x3ca25e(0x1c9)]({'left':_0x2c87cb,'top':_0x547d27,'right':_0x53daad,'bottom':_0x191563});}[_0x1a57e9(0x1c9)](_0x4b0829){const _0x42ad11=_0x1a57e9;this[_0x42ad11(0x104)]['srcRect']=_0x4b0829,this[_0x42ad11(0x2bc)](!0x0);}[_0x1a57e9(0xf1)](_0x2b3392){const _0x261dd6=_0x1a57e9;this[_0x261dd6(0x104)]['image']=_0x2b3392,this[_0x261dd6(0x2bc)](!0x0);}set[_0x1a57e9(0x2b2)](_0x1387dd){this['_transform']=_0x1387dd;}get['transform'](){const _0x399f4b=_0x1a57e9;this[_0x399f4b(0x176)]||this[_0x399f4b(0x1f6)]();let _0x5595b3=this[_0x399f4b(0x176)][_0x399f4b(0x238)]();return this[_0x399f4b(0x34d)](_0x5595b3);}get['shapeModel'](){const _0x4a5f61=_0x1a57e9;return this[_0x4a5f61(0x104)]['shapeModel'];}get['shapeId'](){const _0x35fab7=_0x1a57e9;return this[_0x35fab7(0x104)][_0x35fab7(0x2e2)];}get[_0x1a57e9(0x142)](){return _0x2b860b['SHAPE'];}[_0x1a57e9(0x1f5)](_0x243659,_0x5e423a,_0x41f494,_0x5e5296){const _0x262d98=_0x1a57e9;let _0x34a5e6=this[_0x262d98(0x104)]['shapeModel'];if(!_0x34a5e6||!_0x5e423a)return;let _0x3aac4e=_0x41f494??this[_0x262d98(0x1a3)],_0x557e96=_0x5e5296??this[_0x262d98(0x2f9)],_0x3a2e5c={'shapeType':_0x34a5e6[_0x262d98(0x2b3)](),'width':_0x3aac4e,'height':_0x557e96},_0x18b8d5={'renderMode':_0x15c78e['Path'],'oKey':this['oKey'],'image':this[_0x262d98(0x104)]['image'],'angle':this[_0x262d98(0x10a)]};_0x34a5e6['updateContext'](_0x3a2e5c),_0x243659[_0x262d98(0x125)]();let _0x2c0489={'top':0x0,'left':0x0,'width':_0x3aac4e,'height':_0x557e96},_0xefc284=_0x34a5e6['getDrawingEffectBounds'](_0x2c0489);_0xefc284?this[_0x262d98(0x20f)](_0x243659,_0xefc284,_0x49028d=>{const _0x309b88=_0x262d98;_0x34a5e6[_0x309b88(0x25b)](_0x49028d,_0x2c0489,_0x18b8d5);}):(this['_releaseRenderCache'](),_0x34a5e6['render'](_0x243659,_0x2c0489,_0x18b8d5)),_0x243659[_0x262d98(0x1a5)]();let _0x307bc5=_0x34a5e6['getShapeTextData'](),_0x50d9c9=_0x34a5e6['getShapeTextRect'](_0x2c0489),_0x56dd2a=_0x34a5e6[_0x262d98(0x2e0)]();if(_0x307bc5&&_0x50d9c9&&!_0x56dd2a){_0x243659[_0x262d98(0x125)](),this[_0x262d98(0x2ad)]()[_0x262d98(0xfd)]&&_0x243659['scale'](-0x1,0x1);let _0x40fdbd=_0x3aac4e/0x2,_0x32f3da=_0x557e96/0x2;_0x243659['translate'](-_0x40fdbd,-_0x32f3da),_0x243659[_0x262d98(0x16b)](),this[_0x262d98(0x1e8)](_0x243659,_0x307bc5,_0x50d9c9),_0x243659[_0x262d98(0x1a5)]();}}['getDrawingPoints'](_0x50d9db){}[_0x1a57e9(0x1e8)](_0x2ce260,_0x1e4585,_0x483939){const _0x2be608=_0x1a57e9;var _0x403ea6;this[_0x2be608(0x104)][_0x2be608(0x36f)]||(!((_0x403ea6=_0x1e4585[_0x2be608(0x2c8)])!=null&&_0x403ea6[_0x2be608(0x197)])&&_0x2be608(0x33c)in _0x1e4585&&_0x1e4585[_0x2be608(0x33c)]===!0x1?this['_drawSimpleText'](_0x2ce260,_0x1e4585,_0x483939):this[_0x2be608(0x1ba)](_0x2ce260,_0x1e4585,_0x483939));}[_0x1a57e9(0x1b4)](_0x41abca,_0xa96e50,_0x3f29fd){const _0x3cc8b5=_0x1a57e9;this[_0x3cc8b5(0x1ba)](_0x41abca,{..._0xa96e50,'text':_0xa96e50[_0x3cc8b5(0x164)]??'','dataModel':{'doc':_0x109756(_0xa96e50,_0x3cc8b5(0x36c)+this['oKey'])}},_0x3f29fd);}[_0x1a57e9(0x1ba)](_0xf92455,_0x1a6d6d,_0x59026d){const _0x1d6575=_0x1a57e9;_0x3cbb8e(_0xf92455,this[_0x1d6575(0x318)],(_0x528b2b,_0x31f806)=>{const _0x3842b2=_0x1d6575;this[_0x3842b2(0x291)](_0x528b2b,_0x1a6d6d,_0x59026d,_0x31f806);});}[_0x1a57e9(0x291)](_0x1834cb,_0x2c1758,_0x2414ca,_0x399c27){const _0x11e2ba=_0x1a57e9;let _0x3d4479=this[_0x11e2ba(0x104)][_0x11e2ba(0x2a1)];if(!_0x2c1758[_0x11e2ba(0x2c8)]||!_0x3d4479)return;let _0x39e695=_0x172b29(_0x2c1758['dataModel']);if(!_0x39e695)return;let _0x280d20=_0x39e695[_0x11e2ba(0x197)];if(!_0x280d20)return;let _0x78e58a=_0x1b2670(_0x280d20,_0x399c27),_0x2b65d7=_0x39e695['va']??_0x12d55d[_0x11e2ba(0x2eb)],_0x59c75c=_0x39e695['ha']??_0x59b547['LEFT'],_0x36202b=ir(this[_0x11e2ba(0x104)][_0x11e2ba(0x31f)][_0x11e2ba(0x2c4)](),_0x2c1758,_0x78e58a),_0x2f0cb2=_0x2c1758[_0x11e2ba(0x260)],_0xe52a2c=new _0xa70116(_0x3a9712(_0x78e58a,{'isHorizontal':_0x2f0cb2!==!0x1,'textRect':_0x2414ca,'verticalAlign':_0x2b65d7,'horizontalAlign':_0x59c75c,'wrapStrategy':_0x36202b[_0x11e2ba(0x13e)]})),_0x3806c6=new _0x927fe0(_0xe52a2c),_0x22789a=_0x5bc5b7[_0x11e2ba(0x296)](_0x3806c6,_0x3d4479);_0x22789a['calculate']();let _0x43ae7e=_0x22789a[_0x11e2ba(0x21f)]()[_0x11e2ba(0x137)],_0x383884=_0x507478({'contentHeight':_0x43ae7e,'verticalAlign':_0x2b65d7,'viewportHeight':_0x2414ca['height']});_0xe52a2c[_0x11e2ba(0x1e7)]({'pageSize':{'width':_0x2f0cb2===!0x1?_0x2414ca[_0x11e2ba(0x2f9)]:_0x2414ca[_0x11e2ba(0x1a3)],'height':_0x383884[_0x11e2ba(0x14a)]}}),_0xe52a2c[_0x11e2ba(0x2f5)]({'t':_0x383884[_0x11e2ba(0x288)]}),_0x22789a[_0x11e2ba(0x12d)]();let _0x442e9a=new _0x8ae97c(_0x11e2ba(0x229)+this['oKey'],_0x22789a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x11e2ba(0x2bc)](!0x0)});_0x442e9a['resize'](_0x2414ca['width'],_0x383884[_0x11e2ba(0x14a)]),_0x1834cb[_0x11e2ba(0x125)](),_0x1834cb['translateWithPrecision'](_0x2414ca['left'],_0x2414ca[_0x11e2ba(0x333)]),_0x36202b[_0x11e2ba(0x108)]&&(_0x1834cb[_0x11e2ba(0x16b)](),_0x1834cb[_0x11e2ba(0x1b1)](0x0,_0x383884[_0x11e2ba(0x1f3)],_0x2414ca[_0x11e2ba(0x1a3)],_0x383884[_0x11e2ba(0x25a)]),_0x1834cb[_0x11e2ba(0x108)]()),_0x383884['contentVerticalOffset']&&_0x1834cb[_0x11e2ba(0xe9)](0x0,_0x383884[_0x11e2ba(0x35d)]),_0x442e9a[_0x11e2ba(0x1aa)](_0x1834cb),_0x1834cb['restore'](),_0x442e9a['dispose'](),_0x22789a['dispose'](),_0x3806c6[_0x11e2ba(0x32d)](),_0xe52a2c[_0x11e2ba(0x32d)]();}[_0x1a57e9(0x25b)](_0x433f63,_0x18256e,_0x248175=!0x1){const _0x38fbda=_0x1a57e9;if(!this[_0x38fbda(0x285)])return this[_0x38fbda(0x2bc)](!0x1),this;let {width:_0x37d05b,height:_0x45066c,left:_0x51a018,top:_0x434a27}=this,_0x9dbbe7=this[_0x38fbda(0x1f4)]();if(_0x37d05b=_0x9dbbe7[_0x38fbda(0x1a3)],_0x45066c=_0x9dbbe7[_0x38fbda(0x2f9)],_0x51a018=_0x9dbbe7[_0x38fbda(0x257)],_0x434a27=_0x9dbbe7[_0x38fbda(0x333)],this['isRender'](_0x18256e)){let {top:_0x204afd,left:_0x209c10,bottom:_0x221ff7,right:_0x2fa5fa}=_0x18256e[_0x38fbda(0x310)];if(_0x37d05b+this[_0x38fbda(0x2af)]+_0x51a018<_0x209c10||_0x2fa5fa<_0x51a018||_0x45066c+this[_0x38fbda(0x2af)]+_0x434a27<_0x204afd||_0x221ff7<_0x434a27)return this;}let _0x12d390=_0x51a018+_0x37d05b/0x2,_0x53e810=_0x434a27+_0x45066c/0x2,_0x546f62=this[_0x38fbda(0x2b2)][_0x38fbda(0x16d)]();if(this[_0x38fbda(0x104)][_0x38fbda(0x36f)]){let _0x28bc85=this['getState'](),_0x363ab0=new _0x228916();_0x363ab0[_0x38fbda(0x1e3)]({..._0x28bc85}),_0x546f62=_0x363ab0[_0x38fbda(0x16d)]();}return _0x433f63[_0x38fbda(0x125)](),this[_0x38fbda(0x104)]['shapeModel']['isRenderLinePointsMode']===!0x0||_0x433f63[_0x38fbda(0x2b2)](_0x546f62[0x0],_0x546f62[0x1],_0x546f62[0x2],_0x546f62[0x3],_0x12d390,_0x53e810),this['_draw'](_0x433f63,_0x18256e,_0x37d05b,_0x45066c),_0x433f63[_0x38fbda(0x1a5)](),this[_0x38fbda(0x2bc)](!0x1),this;}['getInverseCoord'](_0x31662c){const _0xed5966=_0x1a57e9;let {left:_0x2fb674,top:_0x267934,width:_0x3ed134,height:_0x3db44e}=this['getRealBound'](),_0xa94b8e=this['transform'][_0xed5966(0x16d)](),_0x15315f=_0x2fb674+_0x3ed134/0x2,_0x313c68=_0x267934+_0x3db44e/0x2,_0x323b27=new _0x228916([_0xa94b8e[0x0],_0xa94b8e[0x1],_0xa94b8e[0x2],_0xa94b8e[0x3],_0x15315f,_0x313c68]),_0x4e0e99=this[_0xed5966(0x208)]();return(this[_0xed5966(0x30f)]&&(_0x4e0e99==null?void 0x0:_0x4e0e99['classType'])===_0x2b860b[_0xed5966(0x14c)]?_0x4e0e99[_0xed5966(0xff)][_0xed5966(0x348)](_0x323b27):_0x323b27)[_0xed5966(0x1c0)]()[_0xed5966(0x1f7)](_0x31662c);}[_0x1a57e9(0x28d)](_0x36da8a){const _0x479fa4=_0x1a57e9;let {left:_0x164c4d,top:_0x55eb28,width:_0x43fdc6,height:_0x2e38af}=this['getRealBound'](),_0x101439=_0x164c4d+_0x43fdc6/0x2,_0x245969=_0x55eb28+_0x2e38af/0x2,_0x5cd2d4=this[_0x479fa4(0x2b2)][_0x479fa4(0x16d)](),_0x23ae96=new _0x228916([_0x5cd2d4[0x0],_0x5cd2d4[0x1],_0x5cd2d4[0x2],_0x5cd2d4[0x3],_0x101439,_0x245969]),_0x58084c=this['getParent'](),_0x22a0d8=(this[_0x479fa4(0x30f)]&&(_0x58084c==null?void 0x0:_0x58084c['classType'])===_0x2b860b['GROUP']?_0x58084c[_0x479fa4(0xff)][_0x479fa4(0x348)](_0x23ae96):_0x23ae96)['invert']()[_0x479fa4(0x1f7)](_0x36da8a),_0x370ea6=_0x43fdc6/0x2,_0x4e357b=_0x2e38af/0x2,_0x336b65=this[_0x479fa4(0x104)]['shapeModel'];return _0x336b65&&_0x336b65[_0x479fa4(0x2e0)]()?_0x336b65[_0x479fa4(0x11c)](_0x22a0d8['x'],_0x22a0d8['y'],_0x43fdc6,_0x2e38af):_0x22a0d8['x']>=-_0x370ea6-this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['x']<=_0x370ea6+this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['y']>=-_0x4e357b-this['strokeWidth']/0x2&&_0x22a0d8['y']<=_0x4e357b+this['strokeWidth']/0x2;}['dispose'](){const _0x5acea6=_0x1a57e9;this['_formulaAnimation'][_0x5acea6(0x32d)](),this['_props'][_0x5acea6(0x31f)]=null,super[_0x5acea6(0x32d)]();}},or=class extends _0x38cc74{constructor(_0x3ad8cd,_0xf9869f){const _0x12c941=_0x1a57e9;super(_0x3ad8cd,_0xf9869f),Y(this,_0x12c941(0x29f),null),Y(this,_0x12c941(0x1fb),null),Y(this,_0x12c941(0xec),null),Y(this,_0x12c941(0x283),null),_0xf9869f&&this[_0x12c941(0x2cd)](_0xf9869f);}[_0x1a57e9(0x2e8)](){const _0x580e2c=_0x1a57e9;return{'unitId':this[_0x580e2c(0xec)],'subUnitId':this[_0x580e2c(0x283)],'drawingId':this[_0x580e2c(0x29f)]};}[_0x1a57e9(0x2cd)](_0x37bec1){const _0x25eb80=_0x1a57e9;_0x37bec1[_0x25eb80(0x2e2)]!==void 0x0&&(this['_shapeId']=_0x37bec1[_0x25eb80(0x2e2)]),_0x37bec1[_0x25eb80(0x18a)]!==void 0x0&&(this['_adjName']=_0x37bec1[_0x25eb80(0x18a)]),_0x37bec1['unitId']!==void 0x0&&(this[_0x25eb80(0xec)]=_0x37bec1[_0x25eb80(0x264)]),_0x37bec1['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x37bec1['subUnitId']),this[_0x25eb80(0x20e)]({'width':_0x37bec1[_0x25eb80(0x1a3)],'height':_0x37bec1[_0x25eb80(0x2f9)]});}['_draw'](_0x1a5c4f){const _0x197b3f=_0x1a57e9;_0x20c694[_0x197b3f(0x2e4)](_0x1a5c4f,{'radius':_0x496afe[_0x197b3f(0x373)],'fill':_0x496afe['adjHandleFill'],'stroke':_0x496afe[_0x197b3f(0x25d)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x5c0193,_0x45be31){return function(_0x3d6a11,_0x223797){_0x45be31(_0x3d6a11,_0x223797,_0x5c0193);};}function Z(_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2){const _0x1522a5=_0x1a57e9;var _0x2e3903=arguments[_0x1522a5(0x321)],_0x20358e=_0x2e3903<0x3?_0x1995ae:_0x3658d2===null?_0x3658d2=Object[_0x1522a5(0x110)](_0x1995ae,_0x5d3ce1):_0x3658d2,_0x595364;if(typeof Reflect==_0x1522a5(0x368)&&typeof Reflect[_0x1522a5(0x308)]==_0x1522a5(0xfa))_0x20358e=Reflect[_0x1522a5(0x308)](_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2);else{for(var _0x37f834=_0x537931['length']-0x1;_0x37f834>=0x0;_0x37f834--)(_0x595364=_0x537931[_0x37f834])&&(_0x20358e=(_0x2e3903<0x3?_0x595364(_0x20358e):_0x2e3903>0x3?_0x595364(_0x1995ae,_0x5d3ce1,_0x20358e):_0x595364(_0x1995ae,_0x5d3ce1))||_0x20358e);}return _0x2e3903>0x3&&_0x20358e&&Object[_0x1522a5(0x319)](_0x1995ae,_0x5d3ce1,_0x20358e),_0x20358e;}let Q=class extends _0x458cfa{constructor(_0x5bfd70,_0x13b8bf,_0xaedead,_0x1c89b5,_0x46c4f6,_0x221e76){const _0x2691e2=_0x1a57e9;super(),this[_0x2691e2(0x218)]=_0x5bfd70,this[_0x2691e2(0x35e)]=_0x13b8bf,this[_0x2691e2(0x15b)]=_0xaedead,this[_0x2691e2(0x1ab)]=_0x1c89b5,this[_0x2691e2(0x1f1)]=_0x46c4f6,this[_0x2691e2(0x1fe)]=_0x221e76,Y(this,_0x2691e2(0x20d),new Map()),this[_0x2691e2(0x2db)](this[_0x2691e2(0x1fe)]['presentationChanged$']['subscribe'](_0x25dc9b=>{const _0x2018c1=_0x2691e2;var _0x26229f;(_0x26229f=this[_0x2018c1(0x20d)][_0x2018c1(0x272)](this[_0x2018c1(0x17c)](_0x25dc9b['unitId'],_0x25dc9b[_0x2018c1(0x29a)],_0x25dc9b[_0x2018c1(0x2e2)])))==null||_0x26229f['forEach'](_0x192567=>_0x192567[_0x2018c1(0x267)](_0x25dc9b['presentation'],_0x25dc9b[_0x2018c1(0x1d1)]));})),this[_0x2691e2(0x2db)](this[_0x2691e2(0x218)][_0x2691e2(0x10f)][_0x2691e2(0x23b)](_0x1559f2=>{const _0x4bd404=_0x2691e2;_0x1559f2[_0x4bd404(0x21e)](_0x49391f=>{const _0x1a05a8=_0x4bd404;this[_0x1a05a8(0x1fe)][_0x1a05a8(0x326)]({'unitId':_0x49391f[_0x1a05a8(0x264)],'subUnitId':_0x49391f['subUnitId'],'shapeId':_0x49391f[_0x1a05a8(0x175)]}),this[_0x1a05a8(0x20d)][_0x1a05a8(0x152)](this[_0x1a05a8(0x17c)](_0x49391f['unitId'],_0x49391f[_0x1a05a8(0x29a)],_0x49391f[_0x1a05a8(0x175)]));});}));}[_0x1a57e9(0x221)](_0x801a86,_0x428f97,_0x31d9c0){const _0x19ac89=_0x1a57e9;let {transform:_0x514bf5,drawingType:_0x59c838,srcRect:_0xb88ed7,prstGeom:_0x201807,groupId:_0x3c2071,unitId:_0x4d26b9,subUnitId:_0x15c767,drawingId:_0x4307c5,isMultiTransform:_0xc0f0d2,transforms:_0x33ee01,hidden:_0x21107e,selectable:_0x1bf6be}=_0x801a86;if(_0x59c838!==_0x3a939e['DRAWING_SHAPE']||!this[_0x19ac89(0x218)]['getDrawingVisible']()||_0x514bf5==null)return;let _0x5e3228=this[_0x19ac89(0x218)]['getDrawingEditable']();_0x5e3228&&_0x428f97['initTransformer'](_0x41e007);let _0x1c849e=_0xc0f0d2&&_0x33ee01?_0x33ee01:[_0x514bf5],_0x360982=[];for(let _0x47381a of _0x1c849e){let {left:_0x31d9f1,top:_0x5eeb94,width:_0x20e625,height:_0x1f3a40,angle:_0x9890bd,flipX:_0xe35412,flipY:_0xa4d99f,skewX:_0x52b555,skewY:_0x37546a}=_0x47381a,_0x2ae09b=_0x1c849e['indexOf'](_0x47381a),_0x3162e7=_0x238087({'unitId':_0x4d26b9,'subUnitId':_0x15c767,'drawingId':_0x4307c5},_0xc0f0d2?_0x2ae09b:void 0x0),_0x186878=_0x428f97[_0x19ac89(0x14f)](_0x3162e7);if(_0x186878!=null){let _0x12afde={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x186878 instanceof ar&&this['refreshFormulaPresentation'](_0x186878,_0x12afde),_0x186878[_0x19ac89(0x20e)]({'left':_0x31d9f1,'top':_0x5eeb94,'width':_0x20e625,'height':_0x1f3a40,'angle':_0x9890bd,'flipX':_0xe35412,'flipY':_0xa4d99f,'skewX':_0x52b555,'skewY':_0x37546a});continue;}let _0x4df47a=this[_0x19ac89(0x218)]['getDrawingOrder'](_0x4d26b9,_0x15c767),_0x41e471=_0x4df47a[_0x19ac89(0x2fb)](_0x4307c5);if(_0x428f97[_0x19ac89(0x14f)](_0x3162e7)||!this[_0x19ac89(0x218)][_0x19ac89(0x27c)]())continue;let _0x38ede6=this['_sheetsShapeService']['getShapeModel'](_0x4d26b9,_0x15c767,_0x4307c5);if(!_0x38ede6)continue;let _0x22b25e=_0x3863ab(_0x38ede6[_0x19ac89(0x2b3)]()),_0x20e82a=_0x38ede6[_0x19ac89(0x2c4)]()[_0x19ac89(0x192)],_0x4b72c9={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x20e82a&&this[_0x19ac89(0x1fe)][_0x19ac89(0x168)](_0x4b72c9,_0x20e82a);let _0x343ed1=new ar(_0x3162e7,{..._0x22b25e?{..._0x47381a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x47381a},'zIndex':_0x41e471===-0x1?_0x4df47a['length']-0x1:_0x41e471,'shapeModel':_0x38ede6,'localeService':this[_0x19ac89(0x15b)],'shapeId':_0x4307c5,'unitId':_0x4d26b9,'subUnitId':_0x15c767,'visible':_0x21107e!==!0x0,'evented':_0x1bf6be!==!0x1,'formulaPresentation':_0x20e82a?this[_0x19ac89(0x1fe)]['getPresentation'](_0x4b72c9):void 0x0,'animateFormulaPresentation':(_0x20e82a==null?void 0x0:_0x20e82a['animationEnabled'])!==!0x1});if(_0x20e82a){let _0x518992=this[_0x19ac89(0x17c)](_0x4d26b9,_0x15c767,_0x4307c5),_0x1ccf3a=this[_0x19ac89(0x20d)][_0x19ac89(0x272)](_0x518992)??new Set();_0x1ccf3a[_0x19ac89(0x18e)](_0x343ed1),this['_formulaShapes'][_0x19ac89(0x181)](_0x518992,_0x1ccf3a);}_0x428f97[_0x19ac89(0x199)](_0x343ed1,_0x5ad001),_0x5e3228&&_0x428f97[_0x19ac89(0x2f3)](_0x343ed1),_0x3c2071&&_0x1dfb81({'drawingId':_0x3c2071,'unitId':_0x4d26b9,'subUnitId':_0x15c767},_0x343ed1,_0x428f97,this[_0x19ac89(0x218)]),_0x201807!=null&&_0x343ed1[_0x19ac89(0x2df)](_0x201807),_0xb88ed7!=null&&_0x343ed1[_0x19ac89(0x1c9)](_0xb88ed7);let _0x14ffe7=this[_0x19ac89(0xfc)](_0x343ed1,_0x38ede6[_0x19ac89(0x2c4)]());if(_0x14ffe7){var _0x33012d;_0x31d9c0==null||(_0x33012d=_0x31d9c0[_0x19ac89(0x30b)])==null||_0x33012d[_0x19ac89(0x18e)](_0x14ffe7);}_0x360982['push'](_0x343ed1);}return _0x360982;}[_0x1a57e9(0x17c)](_0x3f6431,_0x31faf2,_0x5a8cb7){return _0x3f6431+'\x00'+_0x31faf2+'\x00'+_0x5a8cb7;}[_0x1a57e9(0x194)](_0x3d69f3,_0xeb6296){const _0x3578b0=_0x1a57e9;let _0x34af27=this[_0x3578b0(0x35e)][_0x3578b0(0x29e)](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296['shapeId']),_0x20f67a=_0x34af27==null?void 0x0:_0x34af27[_0x3578b0(0x2c4)]()[_0x3578b0(0x192)],_0x694ace=this['_formulaKey'](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296[_0x3578b0(0x2e2)]);if(_0x20f67a){this[_0x3578b0(0x1fe)][_0x3578b0(0x168)](_0xeb6296,_0x20f67a);let _0x25bc2f=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace)??new Set();_0x25bc2f['add'](_0x3d69f3),this[_0x3578b0(0x20d)][_0x3578b0(0x181)](_0x694ace,_0x25bc2f);}else{var _0xd47868;this[_0x3578b0(0x1fe)]['unregister'](_0xeb6296),(_0xd47868=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace))==null||_0xd47868['delete'](_0x3d69f3);}_0x3d69f3['setFormulaPresentation'](_0x20f67a?this[_0x3578b0(0x1fe)][_0x3578b0(0x292)](_0xeb6296):void 0x0,(_0x20f67a==null?void 0x0:_0x20f67a['animationEnabled'])!==!0x1);}[_0x1a57e9(0x360)](_0x526678){const _0x2ae14d=_0x1a57e9;let _0x30c75c=_0x526678[_0x2ae14d(0x31f)][_0x2ae14d(0x2c4)](),_0x4dc59c=_0x30c75c['fill'];if(!_0x4dc59c||_0x4dc59c[_0x2ae14d(0x2b1)]!==_0x478734[_0x2ae14d(0x1e1)]||!_0x4dc59c[_0x2ae14d(0x22f)]){_0x526678[_0x2ae14d(0xf1)](void 0x0);return;}this['_loadShapePictureFill'](_0x526678,_0x30c75c);}[_0x1a57e9(0xfc)](_0x56503b,_0x3cac05){const _0x54a657=_0x1a57e9;let _0x19392c=_0x3cac05['fill'];if(!_0x19392c||_0x19392c['fillType']!==_0x478734[_0x54a657(0x1e1)]||!_0x19392c[_0x54a657(0x22f)])return;let _0x322809=_0x19392c[_0x54a657(0x22f)],_0x13dc69=_0x19392c['fillImageSourceType']??_0x55a71c[_0x54a657(0x29d)],_0x1f43ab=this[_0x54a657(0x1ab)]['getImageSourceCache'](_0x322809,_0x13dc69);if(_0x1f43ab){_0x56503b[_0x54a657(0xf1)](_0x1f43ab);return;}return this[_0x54a657(0x148)](_0x56503b,_0x322809,_0x13dc69);}async[_0x1a57e9(0x148)](_0x430c43,_0x35cd5c,_0x4bf52c){const _0x446d6a=_0x1a57e9;let _0x19e509;try{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x27f)])_0x19e509=await this[_0x446d6a(0x1ab)][_0x446d6a(0x1b6)](_0x35cd5c);else{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x29d)])try{_0x19e509=await this[_0x446d6a(0x1f1)][_0x446d6a(0x1b6)](_0x35cd5c);}catch{_0x19e509=_0x35cd5c;}else _0x19e509=_0x35cd5c;}}catch(_0x197103){console['error'](_0x446d6a(0x15c),_0x197103);return;}await new Promise(_0x3bc5b3=>{const _0x4d06b1=_0x446d6a;let _0x35baa3=new window[(_0x4d06b1(0x277))]();_0x35baa3['onload']=()=>{const _0x1401af=_0x4d06b1;this[_0x1401af(0x1ab)]['addImageSourceCache'](_0x35cd5c,_0x4bf52c,_0x35baa3),_0x430c43[_0x1401af(0xf1)](_0x35baa3),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x178)]=()=>{const _0x5cddf8=_0x4d06b1;console[_0x5cddf8(0x1fc)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x35cd5c),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x32a)]=_0x19e509;});}};Q=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0x1d78e7)),X(0x3,_0x2f32ce),X(0x4,_0x5b58f3),X(0x5,_0x236d5e(_0x3f61b0))],Q);let sr=class extends _0x458cfa{constructor(_0x586b28,_0x466400,_0x5ae22d,_0x1a3f07,_0x18641d,_0x3c37f5){const _0x40f5f7=_0x1a57e9;super(),this[_0x40f5f7(0x218)]=_0x586b28,this[_0x40f5f7(0x35e)]=_0x466400,this[_0x40f5f7(0x12c)]=_0x5ae22d,this['_sheetDrawingShapeRenderController']=_0x1a3f07,this['_univerInstanceService']=_0x18641d,this[_0x40f5f7(0x27a)]=_0x3c37f5,Y(this,_0x40f5f7(0x1c7),null),Y(this,_0x40f5f7(0xec),null),Y(this,'_subUnitId',null),Y(this,_0x40f5f7(0x12e),void 0x0),Y(this,_0x40f5f7(0x243),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x40f5f7(0x363),0x0),Y(this,'_baseShapeWidth',0x0),Y(this,_0x40f5f7(0x118),0x0),Y(this,_0x40f5f7(0x328),!0x1),Y(this,_0x40f5f7(0x35f),void 0x0),Y(this,_0x40f5f7(0x295),void 0x0),Y(this,_0x40f5f7(0x2a6),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x40f5f7(0xe7),!0x1),this[_0x40f5f7(0x180)](),this[_0x40f5f7(0x287)]();}[_0x1a57e9(0x209)](_0x17a0fc,_0x432d59,_0x229275){const _0x245478=_0x1a57e9;let _0x37247a=this[_0x245478(0x35e)][_0x245478(0x29e)](_0x17a0fc,_0x432d59,_0x229275);if(_0x37247a)return _0x37247a[_0x245478(0x18d)]();}[_0x1a57e9(0x2bb)](){const _0x203871=_0x1a57e9;this[_0x203871(0x32c)]();}[_0x1a57e9(0x270)](){const _0x668d96=_0x1a57e9;this[_0x668d96(0x24b)](!0x0);}[_0x1a57e9(0x274)](_0x2a4350){this['_isShouldShowDrawingShapeAdjust']=_0x2a4350;}[_0x1a57e9(0x2da)](_0x1c824b,_0x5cdb8d,_0x1872a1,_0x41c8e8){const _0x271077=_0x1a57e9;let _0xcf7d1f=this[_0x271077(0x35e)][_0x271077(0x29e)](_0x1c824b,_0x5cdb8d,_0x1872a1);if(_0xcf7d1f)return _0xcf7d1f[_0x271077(0x261)](_0x41c8e8);}[_0x1a57e9(0x364)](_0x635bff=!0x1){const _0xf620b1=_0x1a57e9;if(this[_0xf620b1(0xec)]===null||this[_0xf620b1(0x283)]===null||this[_0xf620b1(0x1c7)]===null)return;let _0x51d4ea=this['_renderManagerService'][_0xf620b1(0x174)](this[_0xf620b1(0xec)]);if(!_0x51d4ea||!_0x51d4ea['with'](_0x2bd201)[_0xf620b1(0x16a)]())return;let {scene:_0xff0c0a}=_0x51d4ea,_0x342759={'unitId':this[_0xf620b1(0xec)],'subUnitId':this[_0xf620b1(0x283)],'drawingId':this[_0xf620b1(0x1c7)]},_0x40dd22=this[_0xf620b1(0x218)][_0xf620b1(0x223)](_0x342759),{transform:_0x20ad6b}=_0x40dd22;if(!_0x20ad6b||_0x40dd22[_0xf620b1(0x130)]!==_0x3a939e[_0xf620b1(0x35c)])return;let {left:_0x5e40af,top:_0x2e0333,width:_0xcaee73,height:_0xf8b446,flipX:_0x520b58,flipY:_0x11a6cf,angle:_0x9c7499=0x0}=_0x20ad6b;if(_0x5e40af===void 0x0||_0x2e0333===void 0x0)return;if(_0x635bff){let _0x3b3b7a=this[_0xf620b1(0x35e)][_0xf620b1(0x29e)](this[_0xf620b1(0xec)],this[_0xf620b1(0x283)],this[_0xf620b1(0x1c7)]);_0x3b3b7a==null||_0x3b3b7a[_0xf620b1(0x216)]({'width':_0xcaee73??0x0,'height':_0xf8b446??0x0}),this[_0xf620b1(0x12e)]=_0x3b3b7a==null?void 0x0:_0x3b3b7a[_0xf620b1(0x18d)]();}let _0x75b3c8=this[_0xf620b1(0x12e)];for(let _0x24e59b=0x0;_0x24e59b<_0x75b3c8['length'];_0x24e59b++){let _0x33fe8b=_0x75b3c8[_0x24e59b],_0x48a6e0=_0x33fe8b['x'],_0x8c192f=_0x33fe8b['y'];if(_0x520b58&&(_0x48a6e0=(_0xcaee73||0x0)-_0x48a6e0),_0x11a6cf&&(_0x8c192f=(_0xf8b446||0x0)-_0x8c192f),_0x9c7499!==0x0){let _0x57780c=(_0xcaee73||0x0)/0x2,_0x2840a9=(_0xf8b446||0x0)/0x2,_0x1372ae=_0x9c7499*Math['PI']/0xb4,_0xc276f3=Math[_0xf620b1(0x316)](_0x1372ae),_0x5dd8f5=Math[_0xf620b1(0x334)](_0x1372ae),_0x200510=_0x48a6e0-_0x57780c,_0x3a3a62=_0x8c192f-_0x2840a9;_0x48a6e0=_0x57780c+(_0x200510*_0xc276f3-_0x3a3a62*_0x5dd8f5),_0x8c192f=_0x2840a9+(_0x200510*_0x5dd8f5+_0x3a3a62*_0xc276f3);}let _0xa512b0={'x':_0x48a6e0,'y':_0x8c192f,'adjName':_0x33fe8b[_0xf620b1(0x18a)]};this['_addShapeAdjustControl'](_0xff0c0a,_0xa512b0,_0xa512b0['adjName'],_0x5e40af,_0x2e0333,this[_0xf620b1(0xec)],this[_0xf620b1(0x283)]);}}['_updateShapeAdjustControls'](_0x41d8d1=!0x1){const _0x557345=_0x1a57e9;_0x41d8d1&&(this[_0x557345(0x32c)](),this[_0x557345(0x364)](_0x41d8d1));}['_addShapeAdjustControl'](_0x1642ce,_0xbc6022,_0x1478aa,_0xcef490,_0x4bf797,_0x457214,_0x5b5a9d){const _0x471702=_0x1a57e9;if(!this[_0x471702(0x1c7)])return;let _0xb3c609=_0x1642ce[_0x471702(0x14f)](_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa);if(_0xb3c609){_0xb3c609[_0x471702(0x20e)]({'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe[_0x471702(0x373)]});return;}let _0x549052={'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe['adjHandleSize'],'adjName':_0x1478aa,'shapeId':this[_0x471702(0x1c7)],'unitId':_0x457214,'subUnitId':_0x5b5a9d,'width':_0x496afe['adjHandleSize']+0x8,'height':_0x496afe[_0x471702(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0},_0x26665c=new or(_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa,_0x549052);this[_0x471702(0x243)]['push'](_0x26665c),this[_0x471702(0x1e5)](_0x26665c,_0x1642ce,_0x1478aa),_0x1642ce[_0x471702(0x199)](_0x26665c,_0x5ad001+0x1);}[_0x1a57e9(0x32c)](){const _0x463a39=_0x1a57e9;this['_shapes'][_0x463a39(0x321)]!==0x0&&(this[_0x463a39(0x243)][_0x463a39(0x21e)](_0x5c35fc=>{const _0x4c6dd9=_0x463a39;_0x5c35fc[_0x4c6dd9(0x32d)]();}),this[_0x463a39(0x243)]=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x1a57e9(0x248)](_0x25dd4e,_0x288b2a){const _0x215da5=_0x1a57e9;var _0x368159;let _0x32987f={'x':0x0,'y':0x0};if(!_0x25dd4e||!_0x288b2a)return _0x32987f;let _0x1a0ae0=this['_renderManagerService'][_0x215da5(0x174)](_0x25dd4e);if(!_0x1a0ae0||!_0x1a0ae0['with'](_0x2bd201)['getSkeleton'](_0x288b2a))return _0x32987f;let _0x36a83a=_0x1a0ae0[_0x215da5(0x346)](_0x56e08d),_0x327e70=_0x36a83a==null?void 0x0:_0x36a83a[_0x215da5(0x36e)]();if(!_0x327e70)return _0x32987f;let _0x5836e3=(_0x368159=this['_univerInstanceService'][_0x215da5(0x2d8)](_0x25dd4e))==null?void 0x0:_0x368159['getSheetBySheetId'](_0x288b2a);if(!_0x5836e3)return _0x32987f;let _0x551aa9=_0x56ed68(_0x327e70['sheetViewStartRow'],_0x327e70[_0x215da5(0x34c)],_0x1a0ae0[_0x215da5(0x21b)],_0x5836e3);return _0x551aa9?{'x':_0x551aa9[_0x215da5(0x2b5)],'y':_0x551aa9[_0x215da5(0x195)]}:_0x32987f;}[_0x1a57e9(0x225)](_0x573347,_0x283e3a){const _0x2129e0=_0x1a57e9;var _0x5e2733;let _0x33676b=(_0x5e2733=this[_0x2129e0(0x224)][_0x2129e0(0x2d8)](_0x573347))==null?void 0x0:_0x5e2733[_0x2129e0(0x1bc)](_0x283e3a);return(_0x33676b==null?void 0x0:_0x33676b['getZoomRatio']())??0x1;}[_0x1a57e9(0x1e5)](_0x2ea2d1,_0x273942,_0x567c2a){const _0x13cd1a=_0x1a57e9;this[_0x13cd1a(0x2db)](_0x3ee632(_0x2ea2d1['onPointerDown$'][_0x13cd1a(0x18f)]((_0x5e8a22,_0x579170)=>{const _0x143afe=_0x13cd1a;var _0x1b55ac,_0x3b1c63,_0x5dac89,_0xb8d104;let _0x4f07eb=_0x2ea2d1[_0x143afe(0x2e8)]();this[_0x143afe(0x35f)]=this['_getShapeAdjustInfosById'](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)],_0x567c2a),this['_activeShapeModel']=this[_0x143afe(0x35e)][_0x143afe(0x29e)](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)]);let _0x19b953=this[_0x143afe(0x218)][_0x143afe(0x223)]({'unitId':this[_0x143afe(0xec)],'subUnitId':this[_0x143afe(0x283)],'drawingId':this['_activeShapeId']}),{transform:_0x49abef}=_0x19b953;if(_0x49abef){let {left:_0x3d818e,top:_0x367f10,width:_0x28f624,height:_0x1b835b}=_0x49abef;this[_0x143afe(0x1cb)]=_0x3d818e||0x0,this[_0x143afe(0x363)]=_0x367f10||0x0,this[_0x143afe(0x1e4)]=_0x28f624||0x0,this[_0x143afe(0x118)]=_0x1b835b||0x0;}let _0x5905de=!!((_0x1b55ac=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x1b55ac[_0x143afe(0xfd)]),_0x356ee9=!!((_0x3b1c63=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x3b1c63['flipY']),_0x1df3aa=((_0x5dac89=_0x19b953[_0x143afe(0x2b2)])==null?void 0x0:_0x5dac89[_0x143afe(0x10a)])||0x0;this[_0x143afe(0x328)]=!0x0,_0x273942[_0x143afe(0x2e3)]();let _0x117e11={...((_0xb8d104=this[_0x143afe(0x35f)])==null?void 0x0:_0xb8d104[_0x143afe(0x303)])??{}};this[_0x143afe(0x2a6)]=_0x273942['onPointerMove$'][_0x143afe(0x18f)]((_0x3f12e4,_0x5addd6)=>{const _0x497f73=_0x143afe;if(!this[_0x497f73(0x328)])return;let {offsetX:_0x1c3b36,offsetY:_0x5e10df}=_0x3f12e4,_0x54084e=this[_0x497f73(0x35f)];if(this['_activeShapeModel']&&_0x54084e){_0x273942[_0x497f73(0x2e3)](),_0x273942[_0x497f73(0x227)](_0xee2861['CROSSHAIR']);let _0x318eec={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x743116=this[_0x497f73(0x248)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x4ad528=this[_0x497f73(0x225)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x41e9fb=_0x1c3b36/_0x4ad528+_0x743116['x']-this[_0x497f73(0x1cb)],_0x4682cd=_0x5e10df/_0x4ad528+_0x743116['y']-this[_0x497f73(0x363)];if(_0x1df3aa!==0x0){let _0x4c2f60=this['_baseShapeWidth']/0x2,_0x2f4e37=this[_0x497f73(0x118)]/0x2,_0x6a449f=_0x1df3aa*Math['PI']/0xb4,_0x295a6d=Math[_0x497f73(0x316)](_0x6a449f),_0x47957a=Math[_0x497f73(0x334)](_0x6a449f),_0x3ec8c9=_0x41e9fb-_0x4c2f60,_0x4f6141=_0x4682cd-_0x2f4e37;_0x41e9fb=_0x4c2f60+(_0x3ec8c9*_0x295a6d+_0x4f6141*_0x47957a),_0x4682cd=_0x2f4e37+(-_0x3ec8c9*_0x47957a+_0x4f6141*_0x295a6d);}_0x5905de&&(_0x41e9fb=this[_0x497f73(0x1e4)]-_0x41e9fb),_0x356ee9&&(_0x4682cd=this[_0x497f73(0x118)]-_0x4682cd);let _0x310bf1={'x':_0x41e9fb,'y':_0x4682cd},_0x5116c1=this[_0x497f73(0x295)][_0x497f73(0x236)](_0x318eec,_0x310bf1,_0x54084e,_0x5905de,_0x356ee9);if(Object[_0x497f73(0x20a)](_0x5116c1)[_0x497f73(0x321)]===0x0)return;for(let [_0x26312d,_0x131d94]of Object['entries'](_0x5116c1))this[_0x497f73(0x295)][_0x497f73(0x2dc)](_0x26312d,_0x131d94);this[_0x497f73(0x295)][_0x497f73(0x216)]({'width':this[_0x497f73(0x1e4)],'height':this[_0x497f73(0x118)]});let _0x402a52=this[_0x497f73(0x218)][_0x497f73(0x223)]({'unitId':_0x4f07eb[_0x497f73(0x264)],'subUnitId':_0x4f07eb[_0x497f73(0x29a)],'drawingId':_0x4f07eb[_0x497f73(0x175)]});_0x402a52&&(this[_0x497f73(0x237)]['renderDrawingShape'](_0x402a52,_0x273942),this[_0x497f73(0x12e)]=this['_getShapeAdjustPointListById'](_0x4f07eb['unitId'],_0x4f07eb[_0x497f73(0x29a)],_0x4f07eb['drawingId']),this[_0x497f73(0x109)]());}_0x5addd6[_0x497f73(0x207)]();}),this['_adjHandlerPointerUp']=_0x273942['onPointerUp$']['subscribeEvent']((_0x122fd2,_0x4f1efb)=>{const _0x278183=_0x143afe;this[_0x278183(0x2a6)][_0x278183(0x2b4)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x273942[_0x278183(0x327)]();let _0xf58c97=this[_0x278183(0x35f)];if(_0xf58c97){let _0x317308=_0x4f07eb[_0x278183(0x264)],_0x20443d=_0x4f07eb['subUnitId'],_0x5eb09d=_0x4f07eb[_0x278183(0x175)],_0x46baeb={};for(let _0x4f8740 of Object['keys'](_0xf58c97['currentAdjustValues'])){var _0x30dc14;let _0xc96259=(_0x30dc14=this[_0x278183(0x295)])==null?void 0x0:_0x30dc14[_0x278183(0x33d)](_0x4f8740);_0xc96259!==void 0x0&&(_0x46baeb[_0x4f8740]=_0xc96259);}Object[_0x278183(0x20a)](_0x46baeb)[_0x278183(0x321)]>0x0&&$n(this[_0x278183(0x27a)],_0x317308,_0x20443d,_0x5eb09d,{'oldShapeData':{'adjustValues':_0x117e11}},{'adjustValues':_0x46baeb});}this[_0x278183(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x278183(0x328)]=!0x1,_0x4f1efb[_0x278183(0x207)](),_0x273942[_0x278183(0x115)]();}),_0x579170[_0x143afe(0x207)]();})));}[_0x1a57e9(0x287)](){const _0x4ccfd0=_0x1a57e9;let _0x3802f3=this[_0x4ccfd0(0x224)][_0x4ccfd0(0x1ed)](_0x3d832c[_0x4ccfd0(0xf3)]);this['disposeWithMe'](_0x3802f3['pipe'](_0x1990de(_0x240a21=>_0x240a21?_0x240a21[_0x4ccfd0(0x21c)]['pipe'](_0x1990de(_0x36979e=>{const _0x3ca709=_0x4ccfd0;if(!_0x36979e)return _0x3b0f55;let _0xb77bb5=_0x240a21[_0x3ca709(0x1e2)](),_0x3b5264=this['_renderManagerService']['getRenderUnitById'](_0xb77bb5),_0x6ba610=_0x3b5264==null?void 0x0:_0x3b5264['scene'];return _0x6ba610?_0x36bcf9(_0x6ba610):_0x3b0f55;})):_0x3b0f55))['subscribe'](_0x362169=>{const _0x1f0fed=_0x4ccfd0;let _0x55f11e=_0x362169['getTransformerByCreate']();this['disposeWithMe'](_0x362169[_0x1f0fed(0x117)][_0x1f0fed(0x18f)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x1b3)][_0x1f0fed(0x23b)](_0x1fc991=>{const _0x3c42a7=_0x1f0fed;let {objects:_0x2d790c}=_0x1fc991;this[_0x3c42a7(0x364)](),_0x2d790c!==null&&_0x2d790c[_0x3c42a7(0x11a)]===0x1&&_0x2d790c[_0x3c42a7(0x193)]()['next']()[_0x3c42a7(0x2de)]instanceof ar&&this[_0x3c42a7(0x274)](!0x0);})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x2d3)]['subscribe'](()=>{const _0x4e2973=_0x1f0fed;this[_0x4e2973(0xe7)]&&this['_clearShapeAdjustControls']();})),this[_0x1f0fed(0x2db)](_0x362169['onPointerUp$'][_0x1f0fed(0x18f)](()=>{const _0x2c7a57=_0x1f0fed;this[_0x2c7a57(0xe7)]&&(this[_0x2c7a57(0x274)](!0x1),this[_0x2c7a57(0x364)]());})),this['disposeWithMe'](_0x55f11e[_0x1f0fed(0x12a)][_0x1f0fed(0x23b)](()=>{const _0x102907=_0x1f0fed;this[_0x102907(0xec)]&&this[_0x102907(0x283)]&&this[_0x102907(0x1c7)]&&this[_0x102907(0x218)][_0x102907(0x223)]({'unitId':this[_0x102907(0xec)],'subUnitId':this[_0x102907(0x283)],'drawingId':this['_activeShapeId']})&&(this[_0x102907(0x12e)]=this[_0x102907(0x209)](this[_0x102907(0xec)],this[_0x102907(0x283)],this[_0x102907(0x1c7)]),this[_0x102907(0x109)]());}));}));}[_0x1a57e9(0x180)](){const _0x446468=_0x1a57e9;this[_0x446468(0x2db)](this['_commandService'][_0x446468(0x13f)](_0xb8a180=>{const _0x13bb86=_0x446468;if(_0xb8a180['id']!==_0x926363['id'])return;let {unitId:_0x22ecb8,subUnitId:_0x327f91,shapeId:_0x4df982}=_0xb8a180[_0x13bb86(0x374)];_0x22ecb8===this[_0x13bb86(0xec)]&&_0x327f91===this[_0x13bb86(0x283)]&&_0x4df982===this[_0x13bb86(0x1c7)]&&this['refreshAdjustControls']();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x268)][_0x446468(0x23b)](_0xc85ec6=>{const _0x5504f4=_0x446468;if(_0xc85ec6[_0x5504f4(0x321)]===0x1){let _0x4f1642=_0xc85ec6[0x0];if(_0x4f1642[_0x5504f4(0x130)]===_0x3a939e[_0x5504f4(0x35c)]&&this['_univerInstanceService'][_0x5504f4(0x10d)](_0x4f1642[_0x5504f4(0x264)])===_0x3d832c[_0x5504f4(0xf3)]){this['_activeShapeId']=_0x4f1642[_0x5504f4(0x175)];let {unitId:_0x39c55a,subUnitId:_0x7a8a5d}=_0x4f1642;this[_0x5504f4(0x12e)]=this[_0x5504f4(0x209)](_0x39c55a,_0x7a8a5d,this[_0x5504f4(0x1c7)]),this['_unitId']=_0x39c55a,this['_subUnitId']=_0x7a8a5d,this[_0x5504f4(0x32c)](),this[_0x5504f4(0x364)]();return;}}this[_0x5504f4(0x1c7)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x5504f4(0x283)]=null,this[_0x5504f4(0x32c)]();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x1d3)][_0x446468(0x23b)](_0x5c60c2=>{const _0x21cffb=_0x446468;if(_0x5c60c2[_0x21cffb(0x321)]===0x1){var _0x1dcb2b;let _0x20da9b=_0x5c60c2[0x0];((_0x1dcb2b=this[_0x21cffb(0x218)]['getDrawingByParam'](_0x20da9b))==null?void 0x0:_0x1dcb2b[_0x21cffb(0x130)])===_0x3a939e[_0x21cffb(0x35c)]&&this[_0x21cffb(0x24b)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService'][_0x446468(0x10f)][_0x446468(0x23b)](_0x4721f6=>{const _0x227ef7=_0x446468;for(let _0x503bd8 of _0x4721f6)this[_0x227ef7(0x1c7)]===_0x503bd8[_0x227ef7(0x175)]&&(this[_0x227ef7(0x1c7)]=null,this[_0x227ef7(0x12e)]=void 0x0,this['_unitId']=null,this[_0x227ef7(0x283)]=null,this['_clearShapeAdjustControls']());}));}};sr=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x236d5e(Q)),X(0x4,_0x4b61f3),X(0x5,_0x1b8f46)],sr);const cr={'id':'drawing.operation.set-drawing-active','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1605fc,_0x464f90)=>{const _0x421a81=_0x1a57e9;let _0x5cc7bf=_0x1605fc[_0x421a81(0x272)](_0x3398d1),_0x4834a4=_0x1605fc[_0x421a81(0x272)](_0xebded9),_0x12461a=_0x1605fc[_0x421a81(0x272)](sr);if(_0x464f90==null)return!0x0;if(_0x464f90[_0x421a81(0x321)]>0x0){var _0x123b71;let _0x5bce8d=(_0x123b71=_0x4834a4[_0x421a81(0x174)](_0x464f90[0x0][_0x421a81(0x264)]))==null?void 0x0:_0x123b71[_0x421a81(0x21b)];if(_0x5bce8d){let {unitId:_0x17aa24,subUnitId:_0x34c154,drawingId:_0x171b9a}=_0x464f90[0x0],_0x3717c6=_0x238087({'unitId':_0x17aa24,'subUnitId':_0x34c154,'drawingId':_0x171b9a},void 0x0),_0x24283d=_0x5bce8d[_0x421a81(0x14f)](_0x3717c6);if(_0x24283d){var _0x2e273b;(_0x2e273b=_0x4834a4['getRenderUnitById'](_0x464f90[0x0][_0x421a81(0x264)]))==null||(_0x2e273b=_0x2e273b[_0x421a81(0x21b)][_0x421a81(0x1da)]())==null||_0x2e273b[_0x421a81(0x324)](_0x24283d);}}_0x5cc7bf[_0x421a81(0x2ff)](_0x464f90),_0x12461a[_0x421a81(0x274)](!0x1);}return!0x0;}},lr={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x305),'handler':async(_0x243f33,_0x1cf66e)=>{const _0x237f81=_0x1a57e9;let _0x21d82f=_0x5a285c(_0x243f33[_0x237f81(0x272)](_0x4b61f3));if(!_0x21d82f)return!0x1;let _0x5424e6=_0x243f33[_0x237f81(0x272)](_0x17030f)['getCurrentLastSelection']();if(!_0x5424e6)return!0x1;let _0x2c46d3=_0x243f33[_0x237f81(0x272)](_0x1b8f46),{unitId:_0x472dd8,subUnitId:_0x44c222}=_0x21d82f,{value:_0x5989cc,enhanceParams:_0x331745}=_0x1cf66e,{range:_0x57e279}=_0x5424e6,_0x418bdc={'unitId':_0x472dd8,'subUnitId':_0x44c222,'shapeType':_0x5989cc,'range':_0x57e279,'shapeId':_0xa48e11()};if(_0x331745){let _0x1d08fc=_0x3863ab(_0x5989cc),_0xf4115e=_0x5989cc===_0x2d2111[_0x237f81(0x14e)];_0x1d08fc&&(_0x331745[_0x237f81(0xf8)]||_0x331745[_0x237f81(0x23a)])&&(_0x418bdc[_0x237f81(0xee)]={'ln':{'startArrow':_0x331745[_0x237f81(0xf8)]?{'type':_0xb46528['Arrow'],'size':_0x505688[_0x237f81(0x2c3)]}:void 0x0,'endArrow':_0x331745['endArrow']?{'type':_0xb46528[_0x237f81(0x345)],'size':_0x505688['Large']}:void 0x0}}),_0xf4115e&&(_0x331745[_0x237f81(0x28e)]||_0x331745[_0x237f81(0x112)])&&(_0x418bdc['shapeData']=_0x294eed({'fill':{'fillType':_0x478734[_0x237f81(0x129)],'color':'#FFFFFF'},'isHorizontal':!!_0x331745['horizontal'],'stroke':{'lineStrokeType':_0x14ebc6[_0x237f81(0x1a4)],'width':0x1,'color':_0x237f81(0x24c)}}));}let _0x5b7a52=_0x2c46d3[_0x237f81(0x297)](_0x2f0bb2['id'],_0x418bdc);return setTimeout(()=>{const _0x50f6dc=_0x237f81;_0x2c46d3[_0x50f6dc(0x311)](cr['id'],[{'unitId':_0x472dd8,'subUnitId':_0x44c222,'drawingId':_0x418bdc[_0x50f6dc(0x2e2)]}]);},0xc8),_0x5b7a52;}},ur=_0x1a57e9(0x158),dr=_0x1a57e9(0x22d),fr=_0x1a57e9(0x166),pr='sheets-shape-ui.ribbon.shape-format',mr=_0x5dbcda('SHAPE_TEXT'),hr=_0x1a57e9(0xf7),gr={'id':_0x1a57e9(0x2f7),'type':_0x42d4f6[_0x1a57e9(0x1c3)],'handler':(_0x401dd4,_0x589788)=>{const _0x3e2af9=_0x1a57e9;let _0x56abfb=_0x401dd4[_0x3e2af9(0x272)](_0xaf9369),_0x31c33b=_0x401dd4['get'](_0x1d78e7),_0x39e7fa=_0x401dd4['get'](_0x4b61f3),_0x409748=_0x401dd4[_0x3e2af9(0x272)](_0x1b8f46);return _0x5a285c(_0x39e7fa)?(_0x589788==null?void 0x0:_0x589788[_0x3e2af9(0x2de)])===_0x3e2af9(0x155)?(_0x56abfb[_0x3e2af9(0x155)](dr),!0x0):(_0x56abfb[_0x3e2af9(0x241)]({'id':dr,'header':{'title':_0x31c33b['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':dr},'onClose':()=>{const _0x238f56=_0x3e2af9;_0x409748[_0x238f56(0x297)](_0x158934['id'],[]);},'width':0x168}),!0x0):!0x1;}},_r={'type':_0x42d4f6[_0x1a57e9(0x250)],'id':_0x1a57e9(0x19c),'handler'(){return!0x0;}};function vr(_0x53a6c5){const _0x139fcc=_0x1a57e9;let _0x564a3e=_0x53a6c5[_0x139fcc(0x272)](_0x3398d1)[_0x139fcc(0x15d)](),_0x45e27a=_0x564a3e[_0x139fcc(0x321)]===0x1?_0x564a3e[0x0]:null;if(!_0x45e27a||_0x45e27a[_0x139fcc(0x130)]!==_0x3a939e[_0x139fcc(0x35c)])return null;let _0x5e85df=_0x53a6c5[_0x139fcc(0x272)](_0x434a53),_0x2b20dd=_0x5e85df['getShapeTypeById'](_0x45e27a['unitId'],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]),_0x4aca41=_0x5e85df['getShapeDataById'](_0x45e27a[_0x139fcc(0x264)],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]);return _0x2b20dd===void 0x0||!_0x4aca41?null:{'drawing':_0x45e27a,'shapeData':_0x4aca41,'shapeType':_0x2b20dd};}const yr={'id':_0x1a57e9(0x26c),'type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1ccf3f,_0x4dad11)=>{const _0x36c829=_0x1a57e9;let _0x4b1ad7=vr(_0x1ccf3f),_0x2e6e4a=_0x36420e((_0x4dad11==null?void 0x0:_0x4dad11[_0x36c829(0x172)])??(_0x4dad11==null?void 0x0:_0x4dad11['value'])??'');if(!_0x4b1ad7||!_0x2e6e4a||_0x2e6e4a[_0x36c829(0x2c0)]!==_0x38830c(_0x4b1ad7[_0x36c829(0xee)]))return!0x1;let _0x302864=_0x1c41c8(_0x4b1ad7['shapeData'],_0x2e6e4a);if(!_0x302864)return!0x1;let {drawing:_0x556349}=_0x4b1ad7;return _0x1ccf3f[_0x36c829(0x272)](_0x1b8f46)[_0x36c829(0x311)](Qn['id'],{'unitId':_0x556349[_0x36c829(0x264)],'subUnitId':_0x556349['subUnitId'],'shapeId':_0x556349[_0x36c829(0x175)],'shapeData':_0x302864,'oldShapeJSON':{'oldShapeData':_0x4b1ad7['shapeData']}});}},br={'id':'sheet.operation.update-shape-type','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1dae44,_0x4a0ad9)=>{const _0x47236c=_0x1a57e9;let _0x3c172a=vr(_0x1dae44),_0xfdc60f=(_0x4a0ad9==null?void 0x0:_0x4a0ad9['shapeType'])??(_0x4a0ad9==null?void 0x0:_0x4a0ad9[_0x47236c(0x2de)]);if(!_0x3c172a||!_0xfdc60f||_0x3863ab(_0x3c172a[_0x47236c(0x2fd)])||_0x3863ab(_0xfdc60f))return!0x1;let _0x4d6d06=_0x4ebde1(_0x3c172a[_0x47236c(0xee)],_0xfdc60f);if(!_0x4d6d06)return!0x1;let {drawing:_0x15571d}=_0x3c172a;return _0x1dae44['get'](_0x1b8f46)[_0x47236c(0x311)](Qn['id'],{'unitId':_0x15571d['unitId'],'subUnitId':_0x15571d[_0x47236c(0x29a)],'shapeId':_0x15571d[_0x47236c(0x175)],'shapeType':_0xfdc60f,'shapeData':_0x4d6d06,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3c172a[_0x47236c(0x2fd)],'oldShapeData':_0x3c172a[_0x47236c(0xee)]}});}};let xr=class extends _0x458cfa{constructor(_0x420fe0,_0x2ccc29){const _0x1dd545=_0x1a57e9;super(),this[_0x1dd545(0x359)]=_0x420fe0,this[_0x1dd545(0x218)]=_0x2ccc29,this[_0x1dd545(0x1a0)](),this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x0),this[_0x1dd545(0x2db)]({'dispose':()=>this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x1)});}[_0x1a57e9(0x1a0)](){const _0x4bbb22=_0x1a57e9;let _0x129d28=this[_0x4bbb22(0x359)],_0xf807af=new Map(),_0x251a36=_0x129d28[_0x4bbb22(0x134)]((_0x27c2e7,_0x5a4c21,_0x513853,_0x5d447c,_0x5a6d04)=>{const _0x4e726a=_0x4bbb22;let _0x2cc0cd=_0x5a4c21;if(_0x2cc0cd===_0x2d2111[_0x4e726a(0x102)]||_0x5a4c21===_0x4e726a(0x2e1))return!0x1;try{let _0xa64c31=_0xf807af[_0x4e726a(0x272)](_0x5a4c21);return _0xa64c31||(_0xa64c31=new _0x300a94(_0x2cc0cd,_0x4e726a(0x1b5)+_0x5a4c21),_0xf807af[_0x4e726a(0x181)](_0x5a4c21,_0xa64c31)),_0xa64c31[_0x4e726a(0x17b)](),_0x5a6d04&&Object['keys'](_0x5a6d04)[_0x4e726a(0x321)]>0x0&&_0xa64c31['setShapeData']({'adjustValues':_0x5a6d04},!0x0),_0xa64c31[_0x4e726a(0x216)]({'width':_0x513853,'height':_0x5d447c}),_0xa64c31[_0x4e726a(0x34a)](_0x27c2e7,{'left':0x0,'top':0x0,'width':_0x513853,'height':_0x5d447c});}catch{return!0x1;}});this[_0x4bbb22(0x2db)](_0x251a36),this[_0x4bbb22(0x2db)]({'dispose':()=>_0xf807af['clear']()});}[_0x1a57e9(0x1bb)](_0x8a36a8,_0x248f34,_0x225ee4,_0x1cb156,_0x196557){const _0x55c2d9=_0x1a57e9;let _0x11c80b=this[_0x55c2d9(0x218)][_0x55c2d9(0x35a)](_0x8a36a8,_0x248f34);if(!_0x11c80b[_0x225ee4])return;let _0x3dd822={..._0x11c80b[_0x225ee4],'prstGeom':_0x1cb156,'adjustValues':_0x196557};this[_0x55c2d9(0x218)][_0x55c2d9(0x16e)]([_0x3dd822]);}};xr=Z([X(0x0,_0x236d5e(_0x5ae22a)),X(0x1,_0x236d5e(_0x3398d1))],xr);const Sr=_0x1a57e9(0x1e6),Cr=_0x1a57e9(0x1d2);function wr({onShapeClick:_0x4a44f3,excludeGroups:_0x460056}){const _0x3dc7f3=_0x1a57e9;return _0x16ab0d(_0x55a6fc,{'excludeGroups':_0x460056,'onShapeClick':_0x4a44f3,'scrollContainer':_0x3dc7f3(0x232)});}function Tr(){const _0x417306=_0x1a57e9;let _0x20cb5c=_0x5ee9a9(_0x3398d1),_0x1e5824=_0x5ee9a9(xr);return _0x16ab0d(_0x4951a2,{'buttonLabel':_0x417306(0x228),'excludeGroups':[_0x5254a4['Line']],'onShapeClick':_0x5070aa=>{const _0x19dc3b=_0x417306;let _0x24e0e5=_0x20cb5c['getFocusDrawings']()[_0x19dc3b(0x26b)](_0xa47e76=>_0xa47e76[_0x19dc3b(0x130)]===_0x3a939e[_0x19dc3b(0x162)]);if(!_0x24e0e5)return;let {unitId:_0x548677,subUnitId:_0x49c389,drawingId:_0x46c0fa}=_0x24e0e5;_0x1e5824[_0x19dc3b(0x1bb)](_0x548677,_0x49c389,_0x46c0fa,_0x5070aa[_0x19dc3b(0x2c0)]);}});}function Er(){const _0x5ed4df=_0x1a57e9;let _0x22a66b=_0x5ee9a9(_0x3377c6),_0x37b0e3=_0x5ee9a9(_0x3398d1),_0x5920d2=_0x5ee9a9(_0x4b61f3),_0xd9cb9a=_0x37b0e3[_0x5ed4df(0x15d)]()[0x0],_0xc5f67e=_0xd9cb9a?_0x5920d2['getUnitType'](_0xd9cb9a[_0x5ed4df(0x264)]):void 0x0,_0x26ccad=_0xc5f67e===_0x3d832c[_0x5ed4df(0x1d6)]?'doc.image-clip.shape-picker.component':_0xc5f67e===_0x3d832c[_0x5ed4df(0xf3)]?Cr:void 0x0,_0x511f93=_0x26ccad?_0x22a66b['get'](_0x26ccad):void 0x0;return _0x511f93?_0x16ab0d(_0x511f93,{}):null;}function Dr(){let _0x30264e=_0x5ee9a9(_0x1b8f46);return _0x16ab0d(wr,{'onShapeClick':_0x3e684c=>{const _0x5331eb=_0x4a8a;_0x30264e[_0x5331eb(0x311)](lr['id'],{'value':_0x3e684c[_0x5331eb(0x2c0)],'enhanceParams':{'endArrow':_0x3e684c[_0x5331eb(0x23a)],'startArrow':_0x3e684c[_0x5331eb(0xf8)],'horizontal':_0x3e684c[_0x5331eb(0x28e)],'vertical':_0x3e684c[_0x5331eb(0x112)]}});}});}function Or(_0x460f4e){const _0x465fe5=_0x1a57e9;let _0x3640eb=_0x460f4e['get'](_0x4b61f3);return{'id':lr['id'],'type':_0x870bc4[_0x465fe5(0x251)],'selections':[{'label':{'name':Sr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':lr['id']}}}],'icon':_0x465fe5(0x342),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x3c15b6(_0x3640eb,!0x1,()=>new _0x96c1cf(_0x42d6b7=>{const _0x374dfc=_0x465fe5;_0x42d6b7[_0x374dfc(0x18c)](!0x1);})),'hidden$':_0x472593(_0x460f4e,_0x3d832c[_0x465fe5(0xf3)]),'disabled$':_0x5052c4(_0x460f4e)};}function kr(_0x46fa8e){const _0x37bf83=_0x1a57e9;let _0x45bf72=_0x46fa8e['get'](_0x4b61f3);return{'id':gr['id'],'type':_0x870bc4[_0x37bf83(0x1d9)],'icon':'ObjectLayersIcon','title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x37bf83(0x247),'activated$':_0x3c15b6(_0x45bf72,!0x1,()=>new _0x96c1cf(_0x2e1c0f=>{const _0x181982=_0x37bf83;_0x2e1c0f[_0x181982(0x18c)](!0x1);})),'hidden$':_0x472593(_0x46fa8e,_0x3d832c['UNIVER_SHEET']),'disabled$':_0x5052c4(_0x46fa8e)};}const Ar=_0x1a57e9(0x34b),jr='sheet.menu.shape.flip-vertical';function Mr(_0x11bc69){const _0x5ca3ca=_0x1a57e9;let _0x236e07=_0x11bc69['get'](_0x3398d1)['getFocusDrawings']();return _0x236e07[_0x5ca3ca(0x321)]===0x1&&_0x236e07[0x0][_0x5ca3ca(0x130)]===_0x3a939e[_0x5ca3ca(0x35c)]?_0x236e07[0x0]:null;}function Nr(_0x522df4){const _0x282acc=_0x1a57e9;let _0x166e0d=_0x522df4['get'](_0x3398d1);return _0x166e0d[_0x282acc(0x268)][_0x282acc(0x15e)](_0x49a949(_0x166e0d['getFocusDrawings']()),_0x1e6cce(_0x32bb9c=>_0x32bb9c[_0x282acc(0x321)]!==0x1||_0x32bb9c[0x0][_0x282acc(0x130)]!==_0x3a939e[_0x282acc(0x35c)]));}function Pr(_0x16e8cc){const _0x317f82=_0x1a57e9;return{'id':Ar,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x317f82(0x1d9)],'title':_0x317f82(0x144),'tooltip':'sheets-shape-ui.flipHorizontal','icon':'FlipHorizontalIcon','hidden$':Nr(_0x16e8cc),'params':()=>{const _0x2bc9a6=_0x317f82;let _0x4199a1=Mr(_0x16e8cc);return _0x4199a1?{'unitId':_0x4199a1[_0x2bc9a6(0x264)],'subUnitId':_0x4199a1[_0x2bc9a6(0x29a)],'shapeId':_0x4199a1[_0x2bc9a6(0x175)],'flipH':!0x0}:void 0x0;}};}function Fr(_0x26f4a3){const _0x1ba8c8=_0x1a57e9;return{'id':jr,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x1ba8c8(0x1d9)],'title':_0x1ba8c8(0x331),'tooltip':_0x1ba8c8(0x331),'icon':_0x1ba8c8(0x19f),'hidden$':Nr(_0x26f4a3),'params':()=>{const _0x220f27=_0x1ba8c8;let _0x12850b=Mr(_0x26f4a3);return _0x12850b?{'unitId':_0x12850b[_0x220f27(0x264)],'subUnitId':_0x12850b[_0x220f27(0x29a)],'shapeId':_0x12850b['drawingId'],'flipV':!0x0}:void 0x0;}};}const Ir=_0x1a57e9(0x124),Lr=_0x1a57e9(0x2d2),Rr='sheets-shape-ui.shape-format.text-ribbon-control',zr='sheets-shape-ui.shape-format.formula-ribbon-control';function Br(){let _0x50db26=_0x5ee9a9(_0x1b8f46),_0x17e2c6=_0x5ee9a9(_0x3398d1),_0x38fc48=_0x5ee9a9(_0x434a53),_0x2bccad=()=>{const _0xc65a0f=_0x4a8a;var _0x5a569a;let _0x59c3a7=_0x17e2c6[_0xc65a0f(0x15d)]();if(_0x59c3a7[_0xc65a0f(0x321)]!==0x1||((_0x5a569a=_0x59c3a7[0x0])==null?void 0x0:_0x5a569a[_0xc65a0f(0x130)])!==_0x3a939e['DRAWING_SHAPE'])return null;let {unitId:_0x1d6c83,subUnitId:_0xa2c1e6,drawingId:_0x1da4c4}=_0x59c3a7[0x0],_0x109054=_0x38fc48[_0xc65a0f(0x34e)](_0x1d6c83,_0xa2c1e6,_0x1da4c4),_0x4180ac=_0x38fc48[_0xc65a0f(0x335)](_0x1d6c83,_0xa2c1e6,_0x1da4c4);return _0x109054===void 0x0||!_0x4180ac?null:{'unitId':_0x1d6c83,'subUnitId':_0xa2c1e6,'drawingId':_0x1da4c4,'shapeType':_0x109054,'shapeData':_0x4180ac};},_0x149fd3=_0x263d75(()=>new _0x96c1cf(_0x3f8997=>{const _0x7c6e24=_0x4a8a;let _0x119693=()=>_0x3f8997[_0x7c6e24(0x18c)](_0x2bccad()),_0x423eeb=_0x17e2c6[_0x7c6e24(0x268)][_0x7c6e24(0x23b)](_0x119693),_0x1d0fe2=_0x50db26['onCommandExecuted'](_0x6b8ecc=>{_0x6b8ecc['id']===_0x926363['id']&&_0x119693();});return _0x119693(),()=>{const _0x2af919=_0x7c6e24;_0x423eeb[_0x2af919(0x2b4)](),_0x1d0fe2['dispose']();};}),_0x2bccad(),!0x1,[_0x50db26,_0x17e2c6,_0x38fc48]);return{'selection':_0x149fd3,'updateShapeData':_0x58613c=>{const _0x58cfbc=_0x4a8a;_0x149fd3&&$n(_0x50db26,_0x149fd3[_0x58cfbc(0x264)],_0x149fd3[_0x58cfbc(0x29a)],_0x149fd3[_0x58cfbc(0x175)],{'oldShapeData':_0x149fd3[_0x58cfbc(0xee)]},_0x58613c);}};}function Vr(){let {selection:_0x58328d,updateShapeData:_0x367ef5}=Br();return _0x58328d?_0x16ab0d(_0x324497,{'shapeData':_0x58328d['shapeData'],'shapeType':_0x58328d['shapeType'],'onUpdateShapeData':_0x367ef5}):null;}function Hr(){const _0x43c2bd=_0x1a57e9;let _0x243f09=_0x5ee9a9(_0x1b8f46),_0x3777f5=_0x5ee9a9(_0x1d78e7),{selection:_0x5a44b5}=Br();return _0x5a44b5?_0x16ab0d(_0xd337d7,{'type':_0x38830c(_0x5a44b5[_0x43c2bd(0xee)]),'ariaLabel':_0x3777f5['t'](_0x43c2bd(0x26d)),'activePresetId':_0x33cca3(_0x5a44b5['shapeData']),'onSelect':_0x34dae2=>_0x243f09[_0x43c2bd(0x311)](yr['id'],{'presetId':_0x34dae2})}):null;}function Ur(){const _0x4e2331=_0x1a57e9;let {selection:_0x2901ce,updateShapeData:_0x40fc62}=Br();return _0x2901ce?_0x16ab0d(_0x39ec8e,{'fontFamilyPopupDataComponent':_0x4e2331(0x1ce),'shapeData':_0x2901ce[_0x4e2331(0xee)],'onUpdateShapeData':_0x40fc62}):null;}function Wr(){const _0x494650=_0x1a57e9;var _0x15b183;let {selection:_0x4cb841,updateShapeData:_0x320e09}=Br(),_0x39833d=_0x34ed3a({'hostType':_0x3d832c[_0x494650(0xf3)],'unitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x264)])??'','subUnitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x29a)])??'','shapeId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x175)])??'','shapeData':_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0xee)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x494650(0x2f4),'onUpdateBinding':_0x10db37=>_0x320e09({'formulaBinding':_0x10db37})}),_0x5652d8=((_0x15b183=_0x39833d['extensionGroups'])==null?void 0x0:_0x15b183[_0x494650(0x198)](_0x49e25b=>_0x49e25b[_0x494650(0x36d)])[_0x494650(0xeb)](_0x10d6b7=>_0x10d6b7[_0x494650(0x285)]!==!0x1))??[];return _0x4cb841!=null&&_0x4cb841[_0x494650(0xee)]['formulaBinding']?_0x16ab0d(_0x58ba9f,{'actions':_0x5652d8,'panel':_0x39833d['panel']}):null;}const Gr=_0x1a57e9(0x15a),Kr=_0x1a57e9(0x33a),qr=_0x1a57e9(0x2ef),Jr=_0x1a57e9(0x2cc),Yr=_0x1a57e9(0x1f9),Xr='sheets-shape-ui.ribbon.shape-format.arrange-front',Zr='sheets-shape-ui.ribbon.shape-format.arrange-back';function Qr(_0x3c8098){const _0x2abce5=_0x1a57e9;let _0x3f143b=_0x3c8098['get'](_0x1b8f46),_0x2d9606=_0x3c8098[_0x2abce5(0x272)](_0x3398d1),_0x32c7da=_0x3c8098[_0x2abce5(0x272)](_0x434a53);return new _0x96c1cf(_0x5c6983=>{const _0x28b007=_0x2abce5;let _0x53efce=()=>{const _0x5c8bf4=_0x4a8a;let _0x26b951=$r(_0x3c8098),_0x23f3ab=_0x26b951?_0x32c7da['getShapeDataById'](_0x26b951[_0x5c8bf4(0x264)],_0x26b951[_0x5c8bf4(0x29a)],_0x26b951[_0x5c8bf4(0x175)]):null;_0x5c6983[_0x5c8bf4(0x18c)](_0x23f3ab?_0x33cca3(_0x23f3ab)??'':'');},_0x1392fe=_0x2d9606[_0x28b007(0x268)][_0x28b007(0x23b)](_0x53efce),_0x570392=_0x3f143b[_0x28b007(0x13f)](_0x47001d=>{_0x47001d['id']===_0x926363['id']&&_0x53efce();});return _0x53efce(),()=>{const _0x11ca40=_0x28b007;_0x1392fe[_0x11ca40(0x2b4)](),_0x570392[_0x11ca40(0x32d)]();};});}function $r(_0x5b7438){const _0xc99882=_0x1a57e9;var _0x44f0eb;let _0x5f4889=_0x5b7438[_0xc99882(0x272)](_0x3398d1)[_0xc99882(0x15d)]();return _0x5f4889[_0xc99882(0x321)]===0x1&&((_0x44f0eb=_0x5f4889[0x0])==null?void 0x0:_0x44f0eb[_0xc99882(0x130)])===_0x3a939e[_0xc99882(0x35c)]?_0x5f4889[0x0]:null;}function ei(_0x230b3c,_0x389ab3=!0x1){const _0x2bbb32=_0x1a57e9;let _0x3cfb05=_0x230b3c['get'](_0x1b8f46),_0x376bc2=_0x230b3c[_0x2bbb32(0x272)](_0x3398d1),_0x16862c=_0x230b3c[_0x2bbb32(0x272)](_0x434a53);return new _0x96c1cf(_0x426859=>{const _0x3ba974=_0x2bbb32;let _0x1b2a8e=()=>{const _0x15e412=_0x4a8a;let _0xdd4e53=$r(_0x230b3c);if(!_0xdd4e53){_0x426859['next'](!0x0);return;}let _0x120dd5=_0x16862c[_0x15e412(0x335)](_0xdd4e53[_0x15e412(0x264)],_0xdd4e53[_0x15e412(0x29a)],_0xdd4e53[_0x15e412(0x175)]);_0x426859[_0x15e412(0x18c)](!_0x120dd5||_0x389ab3&&_0x120dd5[_0x15e412(0x192)]==null);},_0x1790da=_0x376bc2[_0x3ba974(0x268)][_0x3ba974(0x23b)](_0x1b2a8e),_0x767938=_0x3cfb05['onCommandExecuted'](_0x3b22a1=>{_0x3b22a1['id']===_0x926363['id']&&_0x1b2a8e();});return _0x1b2a8e(),()=>{const _0x5c39ff=_0x3ba974;_0x1790da['unsubscribe'](),_0x767938[_0x5c39ff(0x32d)]();};});}function ti(_0xd86885){const _0x77d7f0=_0x1a57e9;let _0x268e82=_0xd86885[_0x77d7f0(0x272)](_0x3398d1),_0x573d68=_0xd86885[_0x77d7f0(0x272)](_0x434a53);return _0x268e82[_0x77d7f0(0x268)][_0x77d7f0(0x15e)](_0x49a949(_0x268e82['getFocusDrawings']()),_0x1e6cce(()=>{const _0x3336be=_0x77d7f0;let _0x24ddee=$r(_0xd86885),_0x1bba53=_0x24ddee?_0x573d68[_0x3336be(0x34e)](_0x24ddee[_0x3336be(0x264)],_0x24ddee[_0x3336be(0x29a)],_0x24ddee['drawingId']):void 0x0;return _0x1bba53===void 0x0||_0x3863ab(_0x1bba53);}));}function ni(_0x54fed3){const _0xb58711=_0x1a57e9;return{'id':yr['id'],'type':_0x870bc4['SELECTOR'],'icon':_0xb58711(0x154),'title':_0xb58711(0x273),'tooltip':_0xb58711(0x273),'selections':[{'label':{'name':Ir,'hoverable':!0x1,'selectable':!0x1}}],'value$':Qr(_0x54fed3),'hidden$':ei(_0x54fed3)};}function ri(_0x1f2aff){const _0x4c3ecc=_0x1a57e9;return{'id':br['id'],'type':_0x870bc4[_0x4c3ecc(0x251)],'icon':_0x4c3ecc(0x342),'title':_0x4c3ecc(0x315),'tooltip':_0x4c3ecc(0x315),'slot':!0x0,'selections':[{'label':{'name':_0x27ef7f,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ti(_0x1f2aff)};}function ii(_0x21c7fe,_0x4eba13,_0x5d6aec=!0x1){const _0x5576c8=_0x1a57e9;return _0x569443=>({'id':_0x21c7fe,'type':_0x870bc4[_0x5576c8(0x1d9)],'label':{'name':_0x4eba13,'hoverable':!0x1,'selectable':!0x1},'hidden$':ei(_0x569443,_0x5d6aec)});}const ai=ii(Gr,Lr),oi=ii(Kr,Rr),si=ii(qr,zr,!0x0);function ci(_0x16acf2,_0x3c1b61,_0x3d09ce,_0x327ca2){const _0x69fc4d=_0x1a57e9;return _0x513dbd=>({'id':_0x16acf2,'commandId':_0x2b3290['id'],'type':_0x870bc4[_0x69fc4d(0x1d9)],'icon':_0x3d09ce,'title':_0x327ca2,'tooltip':_0x327ca2,'hidden$':ei(_0x513dbd),'params':()=>{const _0x4ce2fe=_0x69fc4d;let _0x468127=$r(_0x513dbd);return _0x468127?{'unitId':_0x468127[_0x4ce2fe(0x264)],'subUnitId':_0x468127[_0x4ce2fe(0x29a)],'drawingIds':[_0x468127[_0x4ce2fe(0x175)]],'arrangeType':_0x3c1b61}:void 0x0;}});}const li=ci(Jr,_0x292bd6[_0x1a57e9(0x2ea)],_0x1a57e9(0x1df),_0x1a57e9(0x1ea)),ui=ci(Yr,_0x292bd6[_0x1a57e9(0x12b)],'MoveDownIcon',_0x1a57e9(0x106)),di=ci(Xr,_0x292bd6[_0x1a57e9(0x2ee)],_0x1a57e9(0x372),_0x1a57e9(0x254)),fi=ci(Zr,_0x292bd6[_0x1a57e9(0x2b6)],_0x1a57e9(0x2d4),_0x1a57e9(0x29c));function pi(_0x5853b8){const _0x1e7385=_0x1a57e9;return{'id':_r['id'],'type':_0x870bc4[_0x1e7385(0x1d9)],'icon':_0x1e7385(0x271),'title':_0x1e7385(0x2d6),'tooltip':_0x1e7385(0x2d6),'hidden$':ei(_0x5853b8),'params':()=>{const _0x45d8ca=_0x1e7385;let _0x27134b=$r(_0x5853b8);return _0x27134b?{'unitId':_0x27134b['unitId'],'subUnitId':_0x27134b['subUnitId'],'drawingId':_0x27134b[_0x45d8ca(0x175)]}:void 0x0;}};}const mi={[_0x38bf7b[_0x1a57e9(0x127)]]:{[pr]:{'order':0x64,'title':_0x1a57e9(0x2d6),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[yr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':ni},[br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ri}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Gr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':ai}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Kr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':oi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ar]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Pr},[jr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Fr},[Jr]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':li},[Yr]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ui},[Xr]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':di},[Zr]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':fi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':si}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_r['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[_0x4879d7['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5de80e}}}}},hi={[_0x624e4b[_0x1a57e9(0x23f)]]:{[lr['id']]:{'order':0x4,'menuItemFactory':Or}},[_0x624e4b[_0x1a57e9(0x1c4)]]:{[gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':kr}},[_0x40b403['DRAWING']]:{[_0x5e36e3['OTHERS']]:{[Ar]:{'order':0x4,'menuItemFactory':Pr},[jr]:{'order':0x5,'menuItemFactory':Fr}}}};var gi=_0x1a57e9(0x336),_i=_0x1a57e9(0x146);const vi={'type':_0x42d4f6['OPERATION'],'id':_0x1a57e9(0x2f8),'handler'(){return!0x0;}},yi={};function bi(_0x3ac5d7){const _0x58a190=_0x1a57e9;return _0x3ac5d7[_0x58a190(0x22a)]()||void 0x0;}function xi(_0x2588fc,_0x5641ad,_0x4bb902){const _0x19879b=_0x1a57e9;var _0x5ca49b;return((_0x5ca49b=_0x2588fc[_0x19879b(0x313)])==null?void 0x0:_0x5ca49b[_0x19879b(0x22a)]())||_0x5163f8(_0x4bb902,_0x2a725c(_0x2588fc[_0x19879b(0x130)]))+'\x20'+(_0x5641ad+0x1);}function Si(){const _0x402bd1=_0x1a57e9;var _0x4a4d97;let _0x428338=_0x5ee9a9(_0x1d78e7),_0x1175e5=_0x5ee9a9(_0x1b8f46),_0x5740ed=_0x5ee9a9(_0x4b61f3),_0x241e80=_0x5ee9a9(_0x456a1c),_0x294940=_0x5ee9a9(_0x3398d1),_0x4b0e4f=_0x5ee9a9(_0xebded9),[,_0x3d3679]=_0x4911df(_0x2310f8=>_0x2310f8+0x1,0x0),_0x1c5af3=_0x5740ed['getCurrentUnitOfType'](_0x3d832c[_0x402bd1(0xf3)]),_0x28342f=(_0x1c5af3==null?void 0x0:_0x1c5af3['getUnitId']())??'',_0x2d6b28=(_0x1c5af3==null||(_0x4a4d97=_0x1c5af3[_0x402bd1(0x19e)]())==null?void 0x0:_0x4a4d97[_0x402bd1(0x369)]())??'',_0x53bfba=_0x263d75(()=>_0x294940[_0x402bd1(0x268)],_0x294940[_0x402bd1(0x15d)](),!0x1,[_0x294940]);_0x219537(()=>{const _0x5663ed=_0x402bd1;let _0x3a90e8=_0x1175e5['onCommandExecuted'](()=>_0x3d3679());return()=>_0x3a90e8[_0x5663ed(0x32d)]();},[_0x1175e5]);let _0x233557=_0xf2a45c(()=>_0x5dfe29(_0x428338),[_0x428338]),_0x160c55=_0x28342f&&_0x2d6b28?_0x241e80[_0x402bd1(0x35a)](_0x28342f,_0x2d6b28):{},_0x32f183=(_0x28342f&&_0x2d6b28?_0x241e80['getDrawingOrder'](_0x28342f,_0x2d6b28):[])['map'](_0xe80634=>_0x160c55[_0xe80634])['filter'](_0x15bb15=>!!_0x15bb15)[_0x402bd1(0x140)](),_0x3586a3=_0x32f183[_0x402bd1(0x31b)]((_0xe1eca5,_0x1c6940)=>(_0xe1eca5[_0x4c8a2b(_0x1c6940[_0x402bd1(0x130)])]+=0x1,_0xe1eca5),{'canvas':0x0,'floating':0x0}),_0x3bdf4a={'canvas':0x0,'floating':0x0},_0x1f12fe=_0x32f183[_0x402bd1(0x1a6)]((_0x311c06,_0x22bd93)=>{const _0x51da71=_0x402bd1;let _0x2155db=_0x4c8a2b(_0x311c06[_0x51da71(0x130)]),_0x58e494=_0x2155db===_0x182658,_0x43c294=_0x3bdf4a[_0x2155db]++;return{'id':_0x311c06[_0x51da71(0x175)],'name':xi(_0x311c06,_0x22bd93,_0x428338),'description':_0x311c06[_0x51da71(0x28c)],'visible':_0x311c06[_0x51da71(0x276)]!==!0x0,'selectable':_0x311c06[_0x51da71(0x317)]!==!0x1,'sectionId':_0x2155db,'sectionTitle':_0x58e494?_0x233557[_0x51da71(0x101)]:_0x233557['sectionCanvas'],'capabilities':_0x58e494?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x58e494&&_0x43c294>0x0,'canMoveBackward':!_0x58e494&&_0x43c294<_0x3586a3[_0x51da71(0x258)]-0x1,'canReorder':!_0x58e494};}),_0x39d96e=_0xf2a45c(()=>(_0x53bfba??[])[_0x402bd1(0xeb)](_0x225aa3=>_0x225aa3['unitId']===_0x28342f&&_0x225aa3[_0x402bd1(0x29a)]===_0x2d6b28)[_0x402bd1(0x1a6)](_0x45034f=>_0x45034f[_0x402bd1(0x175)]),[_0x53bfba,_0x2d6b28,_0x28342f]),_0x396715=_0x39d96e[_0x39d96e[_0x402bd1(0x321)]-0x1]??null,_0x2dad32=_0x174835=>_0x241e80[_0x402bd1(0x223)]({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x174835})??null,_0x291ef3=async _0x30a65e=>{const _0x3841e6=_0x402bd1;!_0x28342f||!_0x30a65e['length']||await _0x1175e5[_0x3841e6(0x311)](_0x5613c7['id'],{'unitId':_0x28342f,'drawings':_0x30a65e});},_0x167dff=async(_0x439e42,_0x4b62be)=>{_0x2dad32(_0x439e42)&&await _0x291ef3([{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x439e42,..._0x4b62be}]);},_0x4de035=(_0x717bf3,_0x36871b)=>{const _0x14ece1=_0x402bd1;if(!_0x28342f||!_0x2d6b28)return;let _0x1de075=_0x36871b?_0x39d96e[_0x14ece1(0x14d)](_0x717bf3)?_0x39d96e[_0x14ece1(0xeb)](_0x64b8b=>_0x64b8b!==_0x717bf3):[..._0x39d96e,_0x717bf3]:[_0x717bf3];_0x1175e5[_0x14ece1(0x297)](_0x158934['id'],_0x1de075[_0x14ece1(0x1a6)](_0x145b43=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x145b43})));let _0x1d8fcf=_0x1de075[_0x1de075['length']-0x1];_0x1d8fcf?_0x4d4798(_0x4b0e4f,{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x1d8fcf}):_0x4b95c2(_0x4b0e4f,_0x28342f);},_0x1e4dd5=async(_0x880a1c,_0x3a439b)=>{const _0x5f07d5=_0x402bd1;await _0x291ef3(_0x880a1c['map'](_0x510661=>_0x2dad32(_0x510661))['filter'](_0x1f7982=>!!_0x1f7982)[_0x5f07d5(0xeb)](_0x2107e5=>_0x2107e5['hidden']!==!0x0!==_0x3a439b)['map'](_0x4257ec=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x4257ec[_0x5f07d5(0x175)],'hidden':!_0x3a439b})));},_0x1d59ff=async _0x120aec=>{const _0x1da605=_0x402bd1;let _0x281fd4=_0x2dad32(_0x120aec);_0x281fd4&&await _0x167dff(_0x120aec,{'selectable':_0x281fd4[_0x1da605(0x317)]===!0x1&&void 0x0});},_0x326c77=async(_0x7d5db4,_0x5c6a74)=>{const _0x126773=_0x402bd1;var _0x17a62f;let _0x3cf3c2=bi(_0x5c6a74);(((_0x17a62f=_0x2dad32(_0x7d5db4))==null?void 0x0:_0x17a62f[_0x126773(0x313)])??void 0x0)!==_0x3cf3c2&&await _0x167dff(_0x7d5db4,{'name':_0x3cf3c2});},_0x4ad53b=async(_0xb1d397,_0x43b07b)=>{const _0x3d23f0=_0x402bd1;var _0x1d4989;let _0x447e06=bi(_0x43b07b);(((_0x1d4989=_0x2dad32(_0xb1d397))==null?void 0x0:_0x1d4989[_0x3d23f0(0x28c)])??void 0x0)!==_0x447e06&&await _0x167dff(_0xb1d397,{'description':_0x447e06});},_0x262fb3=async(_0x13c7e3,_0x53b16c)=>{const _0x363993=_0x402bd1;!_0x28342f||!_0x2d6b28||await _0x1175e5[_0x363993(0x311)](_0x2b3290['id'],{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingIds':[_0x13c7e3],'arrangeType':_0x53b16c});};return!_0x28342f||!_0x2d6b28?_0x16ab0d(_0x402bd1(0x269),{'className':_0x402bd1(0x253),'children':_0x233557[_0x402bd1(0x196)]}):_0x16ab0d(_0x3b8f7e,{'items':_0x1f12fe,'selectedIds':_0x39d96e,'focusedId':_0x396715,'labels':_0x233557,'onSelect':_0x4de035,'onSetVisible':_0x1e4dd5,'onCommitName':_0x326c77,'onCommitDescription':_0x4ad53b,'onMoveForward':async _0x531ce0=>_0x262fb3(_0x531ce0,_0x292bd6[_0x402bd1(0x2ea)]),'onMoveBackward':async _0x35318d=>_0x262fb3(_0x35318d,_0x292bd6[_0x402bd1(0x12b)]),'onToggleSelectable':_0x1d59ff});}let Ci=class{constructor(_0x39e744){const _0x1067b0=_0x1a57e9;this[_0x1067b0(0x12c)]=_0x39e744;}['updateShapeFillImage'](_0x177a1b,_0x57ab7c){const _0x532c23=_0x1a57e9;let _0xe4966b=this[_0x532c23(0x12c)]['getRenderUnitById'](_0x177a1b[_0x532c23(0x264)]),_0xee2b7d=_0xe4966b==null?void 0x0:_0xe4966b[_0x532c23(0x21b)];if(!_0xee2b7d)return;let _0x458588=_0x238087(_0x177a1b),_0x2d3fb0=_0xee2b7d[_0x532c23(0x14f)](_0x458588);_0x2d3fb0==null||_0x2d3fb0[_0x532c23(0xf1)](_0x57ab7c);}};Ci=Z([X(0x0,_0xebded9)],Ci);function wi(){const _0x294d61=_0x1a57e9;let _0xcac702=_0x5ee9a9(_0x3398d1),_0x5e28e2=_0x263d75(()=>_0xcac702[_0x294d61(0x268)],_0xcac702[_0x294d61(0x15d)](),!0x1,[_0xcac702]);return _0x5e28e2['length']===0x0?null:_0x16ab0d('div',{'children':_0x3ef962(_0x294d61(0x269),{'className':_0x294d61(0x12f),'children':[_0x16ab0d(_0x31e0d1,{'drawings':_0x5e28e2,'hasCropper':!0x1}),_0x16ab0d(_0x5c8aef,{'drawings':_0x5e28e2})]})});}function Ti(_0x1ebb90){let {unitId:_0x5247c7,subUnitId:_0x156933,shapeId:_0xc21fa}=_0x1ebb90,_0x1f67f0=_0x5ee9a9(_0x1b8f46),_0x1a9491=_0x5ee9a9(Ci);return _0x16ab0d(_0x3b0964,{..._0x1ebb90,'positionEditor':_0x16ab0d(wi,{}),'onUpdateShapeData':(_0x4c78ee,_0x3faec1)=>{$n(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x4c78ee,_0x3faec1);},'onUpdateLineShapeData':(_0x2b3ccf,_0xe548c4)=>{er(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x2b3ccf,_0xe548c4);},'onUpdateShapeFillImage':_0x149497=>{const _0x5a3311=_0x4a8a;_0x1a9491[_0x5a3311(0x356)]({'unitId':_0x5247c7,'subUnitId':_0x156933,'drawingId':_0xc21fa},_0x149497);}});}function Ei(_0x306392){const _0x4d57b5=_0x1a57e9;let _0x5c191c=_0x5ee9a9(_0x23dc66),_0x22d5cb=_0x263d75(()=>_0x5c191c[_0x4d57b5(0x220)],_0x5c191c[_0x4d57b5(0x170)](),!0x1,[_0x5c191c]),_0x3e8ff4=_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x132)];return!_0x3e8ff4||!_0x22d5cb?null:_0x16ab0d(Di,{..._0x3e8ff4,'canvasElement':_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x18b)]});}function Di(_0x4594b7){const _0x5a0936=_0x1a57e9;let _0x4dbd15=_0x5ee9a9(_0x1b8f46),_0x48430c=_0x5ee9a9(_0x434a53),{unitId:_0x1bb0cc,subUnitId:_0x39ba9f,drawingId:_0x4ce723,drawingType:_0x266799,shapeType:_0x5b5fd3}=_0x4594b7,[_0x5f118d,_0x50e987]=_0x440ee1(_0x4594b7['shapeData']),_0x5ad70c=_0xf2a45c(()=>_0xf96880(_0x5f118d),[_0x5f118d]),_0x319153=_0xf2a45c(()=>_0x5702b3(_0x5f118d),[_0x5f118d]);_0x219537(()=>{const _0x36339=_0x4a8a;let _0x193106=_0x4dbd15[_0x36339(0x13f)](_0x5048f3=>{const _0x598462=_0x36339;if(_0x5048f3['id']!==_0x926363['id'])return;let _0x2aba53=_0x48430c[_0x598462(0x335)](_0x1bb0cc,_0x39ba9f,_0x4ce723);_0x2aba53&&_0x50e987(_0x2aba53);});return()=>_0x193106['dispose']();},[_0x4dbd15,_0x4ce723,_0x48430c,_0x39ba9f,_0x1bb0cc]);let _0xa1a541=_0xc3a7ab=>{_0x50e987(_0x2208e3=>({..._0x2208e3,..._0xc3a7ab}));},_0x51b521=_0x95e109=>{const _0x342437=_0x4a8a;let _0x43ffc7=_0x39d59f(_0x5f118d,_0x95e109);$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'shapeText':_0x5f118d[_0x342437(0x1b2)]}},_0x43ffc7),_0xa1a541(_0x43ffc7);},_0x11916f=_0x34ed3a({'hostType':_0x3d832c['UNIVER_SHEET'],'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'shapeId':_0x4ce723,'shapeData':_0x5f118d,'onUpdateBinding':_0x3a9522=>{const _0x5b5dbb=_0x4a8a;let _0x487f29={'formulaBinding':_0x3a9522};$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'formulaBinding':_0x5f118d[_0x5b5dbb(0x192)]}},_0x487f29),_0xa1a541(_0x487f29);}});return _0x3ef962(_0x8b4743,{'children':[_0x16ab0d(_0x9de617,{'canvasElement':_0x4594b7[_0x5a0936(0x18b)],'shapeData':_0x5f118d,'shapeType':_0x5b5fd3,'textStyle':{'ff':_0x496afe[_0x5a0936(0x1b2)][_0x5a0936(0x33f)],'fs':_0x496afe['shapeText']['fontSize'],'cl':{'rgb':_0x496afe[_0x5a0936(0x1b2)]['color']},..._0x5ad70c},'textModel':_0x319153?{'ha':_0x319153['ha']??_0x59b547[_0x5a0936(0x357)],'va':_0x319153['va']??_0x12d55d[_0x5a0936(0x2eb)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x496afe[_0x5a0936(0x244)],'defaultGradientEndColor':_0x496afe[_0x5a0936(0x25e)],'defaultStrokeColor':_0x496afe[_0x5a0936(0x24e)],'extensionGroups':_0x11916f[_0x5a0936(0x17f)],'onUpdateShapeData':(_0x4b7b87,_0x228b8b)=>{$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,_0x4b7b87,_0x228b8b),_0x228b8b&&_0xa1a541(_0x228b8b);},'onUpdateText':_0x51b521,'onOpenPanel':()=>{const _0x51ac5c=_0x5a0936;_0x4dbd15[_0x51ac5c(0x311)](_r['id'],{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723});},'onDelete':()=>{_0x4dbd15['executeCommand'](_0x475856['id'],{'unitId':_0x1bb0cc,'drawings':[{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723,'drawingType':_0x266799}]});}}),_0x11916f['panel']]});}var Oi=class extends _0x458cfa{constructor(..._0x5cf9fe){const _0x33b0ab=_0x1a57e9;super(..._0x5cf9fe),Y(this,_0x33b0ab(0x2ba),new _0x266901(null)),Y(this,_0x33b0ab(0x31d),this[_0x33b0ab(0x2ba)][_0x33b0ab(0x1ad)]()),Y(this,_0x33b0ab(0x17e),new _0x266901(!0x1)),Y(this,_0x33b0ab(0x350),this[_0x33b0ab(0x17e)]['asObservable']());}['dispose'](){const _0x4cf892=_0x1a57e9;this[_0x4cf892(0x2ba)][_0x4cf892(0x18c)](null),this[_0x4cf892(0x2ba)][_0x4cf892(0x1af)](),this['_onSavingEditorData$'][_0x4cf892(0x18c)](!0x1),this[_0x4cf892(0x17e)][_0x4cf892(0x1af)](),super[_0x4cf892(0x32d)]();}[_0x1a57e9(0x289)](_0x23dafc){const _0x29e6f7=_0x1a57e9;this['_editingParams$'][_0x29e6f7(0x18c)](_0x23dafc),_0x23dafc??this[_0x29e6f7(0x17e)][_0x29e6f7(0x18c)](!0x1);}['setOnSavingEditorData'](_0x30558f){const _0x3bf4d5=_0x1a57e9;this['_onSavingEditorData$'][_0x3bf4d5(0x18c)](_0x30558f);}[_0x1a57e9(0x1ac)](){const _0x8a3f10=_0x1a57e9;return this['_editingParams$'][_0x8a3f10(0x211)]();}[_0x1a57e9(0x358)](_0x7323dd){const _0x557c98=_0x1a57e9;this[_0x557c98(0x1ac)]()&&(this[_0x557c98(0x34f)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x1a57e9(0x252)](){const _0x1e4c4f=_0x1a57e9;this[_0x1e4c4f(0x1ac)]()&&this[_0x1e4c4f(0x289)](null);}};function ki(_0x1b6fa7){const _0x4d88c3=_0x1a57e9;return!!_0x1b6fa7&&_0x4d88c3(0x2d5)in _0x1b6fa7&&'sheetTransform'in _0x1b6fa7;}const Ai=_0x42eeaf(()=>{const _0xae26b2=_0x1a57e9;let _0x1a493f=_0x5ee9a9(Oi),_0x7abe41=_0x5ee9a9(_0x434a53),_0x497d1f=_0x5ee9a9(_0x3398d1),_0x3b9949=_0x5ee9a9(_0x1b8f46),_0x518a50=_0x5ee9a9(_0x59f03b),_0x2125dd=_0x5ee9a9(_0xebded9);return _0x16ab0d(_0x15f4f4,{'adapter':_0xf2a45c(()=>({'getShapeModel':(_0x378f8a,_0x436d5f,_0x38ae43)=>_0x7abe41[_0xae26b2(0x29e)](_0x378f8a,_0x436d5f,_0x38ae43),'getShapeData':(_0x4a5e2c,_0x4a4f2a,_0x4afa7c)=>_0x7abe41['getShapeDataById'](_0x4a5e2c,_0x4a4f2a,_0x4afa7c),'getDrawingTransform':(_0x513bf7,_0x3e30c,_0x54f56d)=>{const _0x49146f=_0xae26b2;let _0x5ab555=_0x497d1f[_0x49146f(0x223)]({'unitId':_0x513bf7,'subUnitId':_0x3e30c,'drawingId':_0x54f56d});return _0x5ab555==null?void 0x0:_0x5ab555['transform'];},'updateShapeText':({unitId:_0x220ec8,subUnitId:_0x3710e1,shapeId:_0x48b7ac,shapeText:_0x5547ab,oldShapeText:_0x68d619,hostSize:_0x868461})=>{_0x518a50['run'](_0x220ec8,()=>{const _0x49f6b8=_0x4a8a;var _0x463bca;let _0x27e00d=_0x3b9949[_0x49f6b8(0x297)](Qn['id'],{'unitId':_0x220ec8,'subUnitId':_0x3710e1,'shapeId':_0x48b7ac,'shapeData':{'shapeText':_0x5547ab},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x68d619}}});if(!_0x27e00d||!_0x868461)return _0x27e00d;let _0xe40a41=_0x497d1f[_0x49f6b8(0x223)]({'unitId':_0x220ec8,'subUnitId':_0x3710e1,'drawingId':_0x48b7ac}),_0x161015=_0xe40a41==null?void 0x0:_0xe40a41[_0x49f6b8(0x2b2)];if(!ki(_0xe40a41)||!_0x161015)return!0x1;let _0x535344={..._0x161015,'width':_0x868461[_0x49f6b8(0x1a3)],'height':_0x868461['height']},_0x3fae86=(_0x463bca=_0x2125dd['getRenderUnitById'](_0x220ec8))==null||(_0x463bca=_0x463bca[_0x49f6b8(0x346)](_0x2bd201)['getSkeletonParam'](_0x3710e1))==null?void 0x0:_0x463bca[_0x49f6b8(0x27d)];return _0x3b9949[_0x49f6b8(0x297)](_0x5613c7['id'],{'unitId':_0x220ec8,'drawings':[{..._0xe40a41,'transform':_0x535344,'sheetTransform':_0x3fae86?_0x15b6d5(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x173)]:_0xe40a41[_0x49f6b8(0x173)],'axisAlignSheetTransform':_0x3fae86?_0x2e83e9(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x2d5)]:_0xe40a41[_0x49f6b8(0x2d5)]}]});});},'updateHostSize':({unitId:_0x1fda02,subUnitId:_0x254974,shapeId:_0x3671c5,width:_0x59b238,height:_0x346735})=>{const _0x11b236=_0xae26b2;var _0x789757;let _0x2bb51d=_0x497d1f[_0x11b236(0x223)]({'unitId':_0x1fda02,'subUnitId':_0x254974,'drawingId':_0x3671c5}),_0x5a52d7=_0x2bb51d==null?void 0x0:_0x2bb51d['transform'];if(!ki(_0x2bb51d)||!_0x5a52d7)return;let _0x9752b3={..._0x5a52d7,'width':_0x59b238,'height':_0x346735},_0x2b7e77=(_0x789757=_0x2125dd[_0x11b236(0x174)](_0x1fda02))==null||(_0x789757=_0x789757[_0x11b236(0x346)](_0x2bd201)['getSkeletonParam'](_0x254974))==null?void 0x0:_0x789757[_0x11b236(0x27d)],_0x58557d=_0x2b7e77?_0x15b6d5(_0x9752b3,_0x2b7e77)??_0x2bb51d['sheetTransform']:_0x2bb51d[_0x11b236(0x173)],_0x260536=_0x2b7e77?_0x2e83e9(_0x9752b3,_0x2b7e77)??_0x2bb51d['axisAlignSheetTransform']:_0x2bb51d[_0x11b236(0x2d5)];_0x3b9949[_0x11b236(0x311)](_0x5613c7['id'],{'unitId':_0x1fda02,'drawings':[{..._0x2bb51d,'transform':_0x9752b3,'sheetTransform':_0x58557d,'axisAlignSheetTransform':_0x260536}]});},'allowHostSizeShrink':({unitId:_0x569884,subUnitId:_0x26cf34,shapeId:_0x24b67e})=>_0x5e39fb(_0x7abe41['getShapeDataById'](_0x569884,_0x26cf34,_0x24b67e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3b9949,_0x497d1f,_0x2125dd,_0x7abe41,_0x518a50]),'editingService':_0x1a493f,'editorUnitId':mr,'positionOptions':_0xf2a45c(()=>({'viewportKeys':{'main':_0x3bda53[_0xae26b2(0x28b)],'leftTop':_0x3bda53[_0xae26b2(0x20c)],'top':_0x3bda53[_0xae26b2(0x245)],'left':_0x3bda53[_0xae26b2(0x234)]},'getSkeleton':(_0x4fc364,_0x56630e)=>{const _0x31d640=_0xae26b2;var _0x38468a;return((_0x38468a=_0x4fc364[_0x31d640(0x346)](_0x2bd201)[_0x31d640(0xe8)](_0x56630e[_0x31d640(0x29a)]))==null?void 0x0:_0x38468a[_0x31d640(0x27d)])??null;}}),[])});});let ji=class extends _0x458cfa{constructor(_0xab53e4,_0x21181a){const _0x454688=_0x1a57e9;super(),this['_componentManager']=_0xab53e4,this[_0x454688(0x2f2)]=_0x21181a,this['_registerIcons'](),this[_0x454688(0x299)]();}['_registerIcons'](){const _0x1d8069=_0x1a57e9;this['_iconManager'][_0x1d8069(0x32e)]('ObjectLayersIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'ObjectLayersIcon':_0x2546c5})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)](_0x1d8069(0x1de))||this[_0x1d8069(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x30efc9})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x19f))||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)]['register']({'FlipVerticalIcon':_0x1612fb})),this[_0x1d8069(0x2f2)]['has']('BottomIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'BottomIcon':_0x4b6104})),this['_iconManager']['has']('MoveDownIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'MoveDownIcon':_0x5775eb})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)]('MoveUpIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'MoveUpIcon':_0x4ab29f})),this['_iconManager'][_0x1d8069(0x32e)](_0x1d8069(0x271))||this['disposeWithMe'](this['_iconManager'][_0x1d8069(0x168)]({'ShapeFormatSettingIcon':_0x2b4e9a})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x372))||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'TopmostIcon':_0x11f074}));}[_0x1a57e9(0x299)](){const _0x3e68e8=_0x1a57e9;this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](ur,Ti)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)]['register'](dr,Si)),this['disposeWithMe'](this['_componentManager'][_0x3e68e8(0x168)](Sr,Dr)),this[_0x3e68e8(0x2db)](this['_componentManager']['register'](Cr,Tr)),this['_componentManager'][_0x3e68e8(0x272)](_0x5f0802)||this['disposeWithMe'](this[_0x3e68e8(0x35b)]['register'](_0x5f0802,Er)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](fr,Ei)),this['disposeWithMe'](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Lr,Vr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Ir,Hr)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](Rr,Ur)),this['disposeWithMe'](this['_componentManager']['register'](zr,Wr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](hr,_0x2bc136)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](_0x3e68e8(0x201),Ai));}};ji=Z([X(0x0,_0x236d5e(_0x3377c6)),X(0x1,_0x236d5e(_0x5e4ceb))],ji);let Mi=class extends _0x458cfa{constructor(_0x14b179,_0x3ed721,_0x1d5257,_0x230346,_0x19a17b){const _0x150254=_0x1a57e9;super(),this[_0x150254(0x339)]=_0x14b179,this[_0x150254(0x218)]=_0x3ed721,this['_renderManagerService']=_0x1d5257,this[_0x150254(0x224)]=_0x230346,this[_0x150254(0x1cf)]=_0x19a17b,Y(this,'_activeImageId',null),Y(this,'_unitId',null),Y(this,_0x150254(0x283),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x150254(0x243),[]),Y(this,_0x150254(0x1c8),0x0),Y(this,'_baseTop',0x0),Y(this,_0x150254(0x135),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x150254(0x328),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x150254(0x2a6),void 0x0),Y(this,_0x150254(0x281),void 0x0),Y(this,_0x150254(0x2f0),!0x1),this[_0x150254(0x361)](),this[_0x150254(0x27b)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x1a57e9(0x270)](){const _0x127f52=_0x1a57e9;this['_clearControls'](),this[_0x127f52(0x2ec)](!0x0);}[_0x1a57e9(0x31e)](_0x11a3a9,_0x315a27,_0x46f92b,_0x1b7dcf){const _0x8c1cc8=_0x1a57e9;let _0x453100=_0x11a3a9;if(_0x453100!==_0x2d2111['None']&&_0x11a3a9!==_0x8c1cc8(0x2e1))try{let _0xdbd11=new _0x300a94(_0x453100,_0x8c1cc8(0x362)+_0x11a3a9);return _0x1b7dcf&&_0xdbd11[_0x8c1cc8(0x182)]({'adjustValues':_0x1b7dcf},!0x0),_0xdbd11[_0x8c1cc8(0x216)]({'width':_0x315a27,'height':_0x46f92b}),_0xdbd11;}catch{return;}}[_0x1a57e9(0x330)](_0x334e51,_0x4820ee,_0x4ab1e1){const _0x8d97a1=_0x1a57e9;let _0x299437={'unitId':_0x334e51,'subUnitId':_0x4820ee,'drawingId':_0x4ab1e1},_0x2a632d=this[_0x8d97a1(0x218)][_0x8d97a1(0x223)](_0x299437);if(!(!_0x2a632d||_0x2a632d[_0x8d97a1(0x130)]!==_0x3a939e[_0x8d97a1(0x162)]))return _0x2a632d;}[_0x1a57e9(0x1f0)](_0x3eca34,_0x12c9a4,_0x4277b5){const _0x6f108c=_0x1a57e9;let _0x8cf830=this[_0x6f108c(0x12c)][_0x6f108c(0x174)](_0x3eca34);if(!_0x8cf830)return;let {scene:_0x22864}=_0x8cf830,_0x279f95=_0x238087({'unitId':_0x3eca34,'subUnitId':_0x12c9a4,'drawingId':_0x4277b5}),_0x125297=_0x22864[_0x6f108c(0x33b)](_0x279f95);if(_0x125297 instanceof _0x5621f4){let _0x217ad1=_0x125297[_0x6f108c(0x11e)];if(_0x217ad1)return{'prstGeom':_0x217ad1,'adjustValues':_0x125297[_0x6f108c(0x30a)]};}}[_0x1a57e9(0x2ec)](_0x393fba=!0x1){const _0x453742=_0x1a57e9;if(!this[_0x453742(0xec)]||!this['_subUnitId']||!this[_0x453742(0x2bf)])return;let _0x29a7a6=this['_renderManagerService']['getRenderUnitById'](this[_0x453742(0xec)]);if(!_0x29a7a6||!_0x29a7a6[_0x453742(0x346)](_0x2bd201)[_0x453742(0x16a)]())return;let {scene:_0x33e408}=_0x29a7a6,_0x38a3cf=this[_0x453742(0x330)](this[_0x453742(0xec)],this[_0x453742(0x283)],this['_activeImageId']);if(!_0x38a3cf)return;let {transform:_0x2b0253}=_0x38a3cf;if(!_0x2b0253)return;let {left:_0x1e2b3c,top:_0x938a7b,width:_0x59f993,height:_0x2e1cbc,flipX:_0x3a40d2,flipY:_0x5b55af,angle:_0x2f35a8=0x0}=_0x2b0253;if(_0x1e2b3c===void 0x0||_0x938a7b===void 0x0)return;let _0x294a82=this[_0x453742(0x1f0)](this[_0x453742(0xec)],this['_subUnitId'],this[_0x453742(0x2bf)]);if(!_0x294a82)return;if(_0x393fba){let _0x45dd24=this[_0x453742(0x31e)](_0x294a82[_0x453742(0x11e)],_0x59f993||0x0,_0x2e1cbc||0x0,_0x294a82[_0x453742(0x184)]);if(!_0x45dd24)return;this[_0x453742(0x2c6)]=_0x45dd24[_0x453742(0x18d)]();}let _0xa23e20=this[_0x453742(0x2c6)];if(!(!_0xa23e20||_0xa23e20['length']===0x0))for(let _0x423102=0x0;_0x423102<_0xa23e20[_0x453742(0x321)];_0x423102++){let _0x12f027=_0xa23e20[_0x423102],_0x4f9bf7=_0x12f027['x'],_0x4529ee=_0x12f027['y'];if(_0x3a40d2&&(_0x4f9bf7=(_0x59f993||0x0)-_0x4f9bf7),_0x5b55af&&(_0x4529ee=(_0x2e1cbc||0x0)-_0x4529ee),_0x2f35a8!==0x0){let _0x44d778=(_0x59f993||0x0)/0x2,_0x581067=(_0x2e1cbc||0x0)/0x2,_0x17098c=_0x2f35a8*Math['PI']/0xb4,_0x5367f4=Math['cos'](_0x17098c),_0x12c4e9=Math[_0x453742(0x334)](_0x17098c),_0x4b00b7=_0x4f9bf7-_0x44d778,_0x4d7dd9=_0x4529ee-_0x581067;_0x4f9bf7=_0x44d778+(_0x4b00b7*_0x5367f4-_0x4d7dd9*_0x12c4e9),_0x4529ee=_0x581067+(_0x4b00b7*_0x12c4e9+_0x4d7dd9*_0x5367f4);}let _0x38fc45={'x':_0x4f9bf7,'y':_0x4529ee,'adjName':_0x12f027[_0x453742(0x18a)]};this['_addControl'](_0x33e408,_0x38fc45,_0x38fc45[_0x453742(0x18a)],_0x1e2b3c,_0x938a7b,this[_0x453742(0xec)],this['_subUnitId']);}}[_0x1a57e9(0x275)](_0x225e60,_0x21d17b,_0x58eea0,_0x23245c,_0x4789e6,_0x519653,_0x23604e){const _0x296c1a=_0x1a57e9;if(!this[_0x296c1a(0x2bf)])return;let _0x202d86='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x58eea0,_0x3dc58f=_0x225e60[_0x296c1a(0x14f)](_0x202d86);if(_0x3dc58f){_0x3dc58f[_0x296c1a(0x20e)]({'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe['adjHandleSize']});return;}let _0x5107fc=new or(_0x202d86,{'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe[_0x296c1a(0x373)],'adjName':_0x58eea0,'shapeId':this['_activeImageId'],'unitId':_0x519653,'subUnitId':_0x23604e,'width':_0x496afe[_0x296c1a(0x373)]+0x8,'height':_0x496afe[_0x296c1a(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x296c1a(0x243)]['push'](_0x5107fc),this[_0x296c1a(0x1e5)](_0x5107fc,_0x225e60,_0x58eea0),_0x225e60[_0x296c1a(0x199)](_0x5107fc,_0x5ad001+0x1);}[_0x1a57e9(0x2a9)](){const _0x2551a4=_0x1a57e9;this['_shapes'][_0x2551a4(0x321)]!==0x0&&(this[_0x2551a4(0x243)][_0x2551a4(0x21e)](_0x9d536b=>_0x9d536b[_0x2551a4(0x32d)]()),this[_0x2551a4(0x243)]=[]);}['_getScrollInfo'](_0x1823e7,_0x315429){const _0x1c770f=_0x1a57e9;var _0x393a07;let _0xceb5d5={'x':0x0,'y':0x0},_0x501e7c=this[_0x1c770f(0x12c)][_0x1c770f(0x174)](_0x1823e7);if(!_0x501e7c||!_0x501e7c[_0x1c770f(0x346)](_0x2bd201)['getSkeleton'](_0x315429))return _0xceb5d5;let _0x19e5a1=_0x501e7c[_0x1c770f(0x346)](_0x56e08d),_0x135bf9=_0x19e5a1==null?void 0x0:_0x19e5a1[_0x1c770f(0x36e)]();if(!_0x135bf9)return _0xceb5d5;let _0x2a9d49=(_0x393a07=this[_0x1c770f(0x224)][_0x1c770f(0x2d8)](_0x1823e7))==null?void 0x0:_0x393a07[_0x1c770f(0x1bc)](_0x315429);if(!_0x2a9d49)return _0xceb5d5;let _0x30db06=_0x56ed68(_0x135bf9[_0x1c770f(0x2b0)],_0x135bf9[_0x1c770f(0x34c)],_0x501e7c[_0x1c770f(0x21b)],_0x2a9d49);return _0x30db06?{'x':_0x30db06[_0x1c770f(0x2b5)],'y':_0x30db06[_0x1c770f(0x195)]}:_0xceb5d5;}[_0x1a57e9(0x225)](_0x45506d,_0x5bf8ab){const _0x406340=_0x1a57e9;var _0x5e6dc0;let _0x39109b=(_0x5e6dc0=this['_univerInstanceService'][_0x406340(0x2d8)](_0x45506d))==null?void 0x0:_0x5e6dc0[_0x406340(0x1bc)](_0x5bf8ab);return(_0x39109b==null?void 0x0:_0x39109b[_0x406340(0x242)]())??0x1;}[_0x1a57e9(0x1e5)](_0x390ef1,_0x241770,_0x1350ea){const _0x47055f=_0x1a57e9;this[_0x47055f(0x2db)](_0x3ee632(_0x390ef1['onPointerDown$'][_0x47055f(0x18f)]((_0x2694c0,_0x503e0e)=>{const _0x1ddf29=_0x47055f;var _0x8c4e80,_0x21e2f0,_0xe9703;let {unitId:_0x322583,subUnitId:_0x506cf1,drawingId:_0x3db7d6}=_0x390ef1[_0x1ddf29(0x2e8)](),_0x2bc7ba=this[_0x1ddf29(0x330)](_0x322583,_0x506cf1,_0x3db7d6);if(!(_0x2bc7ba!=null&&_0x2bc7ba['transform']))return;let {left:_0x53bd8d,top:_0x37a88d,width:_0x2cd662,height:_0x6f0b8c}=_0x2bc7ba['transform'];this[_0x1ddf29(0x1c8)]=_0x53bd8d||0x0,this[_0x1ddf29(0x145)]=_0x37a88d||0x0,this[_0x1ddf29(0x135)]=_0x2cd662||0x0,this[_0x1ddf29(0x2c2)]=_0x6f0b8c||0x0;let _0x269deb=!!((_0x8c4e80=_0x2bc7ba[_0x1ddf29(0x2b2)])!=null&&_0x8c4e80[_0x1ddf29(0xfd)]),_0x491b23=!!((_0x21e2f0=_0x2bc7ba['transform'])!=null&&_0x21e2f0[_0x1ddf29(0x352)]),_0x240633=((_0xe9703=_0x2bc7ba[_0x1ddf29(0x2b2)])==null?void 0x0:_0xe9703['angle'])||0x0,_0x28d1e7=this['_getImagePrstGeom'](_0x322583,_0x506cf1,_0x3db7d6);if(!_0x28d1e7)return;let _0x49ef13=this[_0x1ddf29(0x31e)](_0x28d1e7['prstGeom'],this[_0x1ddf29(0x135)],this[_0x1ddf29(0x2c2)],_0x28d1e7[_0x1ddf29(0x184)]);if(!_0x49ef13||(this['_activeShapeModel']=_0x49ef13,this['_activeAdjustInfo']=_0x49ef13[_0x1ddf29(0x261)](_0x1350ea),!this[_0x1ddf29(0x35f)]))return;this[_0x1ddf29(0x328)]=!0x0,_0x241770[_0x1ddf29(0x2e3)]();let _0x3a34ac=_0x28d1e7['prstGeom'];this[_0x1ddf29(0x2a6)]=_0x241770[_0x1ddf29(0x117)][_0x1ddf29(0x18f)]((_0x1a7d30,_0x55afd8)=>{const _0x528ea4=_0x1ddf29;if(!this[_0x528ea4(0x328)])return;let {offsetX:_0x1ab73e,offsetY:_0x3e40fa}=_0x1a7d30,_0x175a01=this[_0x528ea4(0x35f)];if(!this[_0x528ea4(0x295)]||!_0x175a01)return;_0x241770[_0x528ea4(0x2e3)](),_0x241770['setCursor'](_0xee2861[_0x528ea4(0x266)]);let _0x38a1ae={'left':0x0,'top':0x0,'width':this[_0x528ea4(0x135)],'height':this[_0x528ea4(0x2c2)]},_0x525d7a=this[_0x528ea4(0x248)](_0x322583,_0x506cf1),_0x3be621=this[_0x528ea4(0x225)](_0x322583,_0x506cf1),_0x4b9a00=_0x1ab73e/_0x3be621+_0x525d7a['x']-this['_baseLeft'],_0x3ac7bf=_0x3e40fa/_0x3be621+_0x525d7a['y']-this[_0x528ea4(0x145)];if(_0x240633!==0x0){let _0x436222=this[_0x528ea4(0x135)]/0x2,_0x458bb1=this[_0x528ea4(0x2c2)]/0x2,_0x19d5c2=_0x240633*Math['PI']/0xb4,_0x11ccc6=Math[_0x528ea4(0x316)](_0x19d5c2),_0x323d3c=Math[_0x528ea4(0x334)](_0x19d5c2),_0x1f849f=_0x4b9a00-_0x436222,_0x45d2b4=_0x3ac7bf-_0x458bb1;_0x4b9a00=_0x436222+(_0x1f849f*_0x11ccc6+_0x45d2b4*_0x323d3c),_0x3ac7bf=_0x458bb1+(-_0x1f849f*_0x323d3c+_0x45d2b4*_0x11ccc6);}_0x269deb&&(_0x4b9a00=this['_baseWidth']-_0x4b9a00),_0x491b23&&(_0x3ac7bf=this[_0x528ea4(0x2c2)]-_0x3ac7bf);let _0x26be93=this[_0x528ea4(0x295)][_0x528ea4(0x236)](_0x38a1ae,{'x':_0x4b9a00,'y':_0x3ac7bf},_0x175a01,_0x269deb,_0x491b23);if(Object[_0x528ea4(0x20a)](_0x26be93)['length']!==0x0){for(let [_0x3f0979,_0x5a769d]of Object[_0x528ea4(0x262)](_0x26be93))this[_0x528ea4(0x295)]['setAdjustValueByName'](_0x3f0979,_0x5a769d);this[_0x528ea4(0x295)][_0x528ea4(0x216)]({'width':this[_0x528ea4(0x135)],'height':this['_baseHeight']}),this[_0x528ea4(0x1e0)](_0x322583,_0x506cf1,_0x3db7d6,_0x26be93),this[_0x528ea4(0x2c6)]=this[_0x528ea4(0x295)]['getDrawingPoints'](),this[_0x528ea4(0x2ec)](),_0x55afd8[_0x528ea4(0x207)]();}}),this[_0x1ddf29(0x281)]=_0x241770[_0x1ddf29(0x31a)][_0x1ddf29(0x18f)]((_0x282e70,_0x3bffe3)=>{const _0x5688f0=_0x1ddf29;if(this['_adjHandlerPointerMove'][_0x5688f0(0x2b4)](),this[_0x5688f0(0x281)][_0x5688f0(0x2b4)](),_0x241770[_0x5688f0(0x327)](),this[_0x5688f0(0x295)]){let _0x680317=this[_0x5688f0(0x295)][_0x5688f0(0x212)](),_0x360070={};for(let _0x3c787e of _0x680317){let _0x3b824a=this[_0x5688f0(0x295)][_0x5688f0(0x33d)](_0x3c787e);_0x3b824a!==void 0x0&&(_0x360070[_0x3c787e]=_0x3b824a);}this[_0x5688f0(0x1cf)][_0x5688f0(0x1bb)](_0x322583,_0x506cf1,_0x3db7d6,_0x3a34ac,_0x360070);}this[_0x5688f0(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5688f0(0x328)]=!0x1,_0x3bffe3['stopPropagation'](),_0x241770['enableObjectsEvent']();}),_0x503e0e[_0x1ddf29(0x207)]();})));}['_updateImageAdjValues'](_0x48aba6,_0x29bdd5,_0x4b48c9,_0x3a279f){const _0x378039=_0x1a57e9;let _0x1cdf04=this[_0x378039(0x12c)][_0x378039(0x174)](_0x48aba6);if(!_0x1cdf04)return;let {scene:_0x5dd47a}=_0x1cdf04,_0x325cea=_0x238087({'unitId':_0x48aba6,'subUnitId':_0x29bdd5,'drawingId':_0x4b48c9}),_0x4c8b00=_0x5dd47a[_0x378039(0x33b)](_0x325cea);if(_0x4c8b00 instanceof _0x5621f4){let _0x583141=_0x4c8b00[_0x378039(0x30a)]??{};_0x4c8b00[_0x378039(0x304)]({..._0x583141,..._0x3a279f}),_0x4c8b00[_0x378039(0x2bc)](!0x0);}}[_0x1a57e9(0x27b)](){const _0x395ce6=_0x1a57e9;let _0x3ad432=this[_0x395ce6(0x224)][_0x395ce6(0x1ed)](_0x3d832c['UNIVER_SHEET']);this[_0x395ce6(0x2db)](_0x3ad432[_0x395ce6(0x15e)](_0x1990de(_0x206a92=>_0x206a92?_0x206a92[_0x395ce6(0x21c)][_0x395ce6(0x15e)](_0x1990de(_0x31ab4f=>{const _0x2ea144=_0x395ce6;if(!_0x31ab4f)return _0x3b0f55;let _0x81d32f=_0x206a92['getUnitId'](),_0x36a2d4=this['_renderManagerService'][_0x2ea144(0x174)](_0x81d32f),_0x1ef42e=_0x36a2d4==null?void 0x0:_0x36a2d4[_0x2ea144(0x21b)];return _0x1ef42e?_0x36bcf9(_0x1ef42e):_0x3b0f55;})):_0x3b0f55))[_0x395ce6(0x23b)](_0x46eaf7=>{const _0x14c8b5=_0x395ce6;let _0xc582c7=_0x46eaf7[_0x14c8b5(0x113)]();this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x117)][_0x14c8b5(0x18f)](()=>{const _0x4e5dbe=_0x14c8b5;this[_0x4e5dbe(0x2f0)]&&this[_0x4e5dbe(0x2a9)]();})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x1b3)]['subscribe'](_0x363eea=>{const _0x1644cd=_0x14c8b5;let {objects:_0x497087}=_0x363eea;if(this['_createControls'](),_0x497087!==null&&_0x497087[_0x1644cd(0x11a)]===0x1){let _0x1c8ff8=_0x497087[_0x1644cd(0x193)]()[_0x1644cd(0x18c)]()[_0x1644cd(0x2de)];_0x1c8ff8 instanceof _0x5621f4&&_0x1c8ff8[_0x1644cd(0x11e)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x2d3)][_0x14c8b5(0x23b)](()=>{const _0x38082b=_0x14c8b5;this[_0x38082b(0x2f0)]&&this['_clearControls']();})),this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x31a)][_0x14c8b5(0x18f)](()=>{const _0x2dce34=_0x14c8b5;this[_0x2dce34(0x2f0)]&&(this[_0x2dce34(0x2f0)]=!0x1,this[_0x2dce34(0x2ec)]());})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x12a)][_0x14c8b5(0x23b)](()=>{const _0x5887f3=_0x14c8b5;if(this[_0x5887f3(0xec)]&&this[_0x5887f3(0x283)]&&this[_0x5887f3(0x2bf)]){let _0x2e00dc=this[_0x5887f3(0x1f0)](this[_0x5887f3(0xec)],this[_0x5887f3(0x283)],this[_0x5887f3(0x2bf)]);if(_0x2e00dc){var _0x47368f,_0x574e92;let _0x1c645e=this[_0x5887f3(0x330)](this['_unitId'],this[_0x5887f3(0x283)],this['_activeImageId']),_0x1344ab=(_0x1c645e==null||(_0x47368f=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x47368f['width'])||0x0,_0x2a9dfe=(_0x1c645e==null||(_0x574e92=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x574e92[_0x5887f3(0x2f9)])||0x0,_0x3d8f98=this[_0x5887f3(0x31e)](_0x2e00dc[_0x5887f3(0x11e)],_0x1344ab,_0x2a9dfe,_0x2e00dc[_0x5887f3(0x184)]);_0x3d8f98&&(this['_activeAdjustPointList']=_0x3d8f98[_0x5887f3(0x18d)](),this[_0x5887f3(0x2a9)](),this[_0x5887f3(0x2ec)](!0x0));}}}));}));}[_0x1a57e9(0x361)](){const _0x26dadc=_0x1a57e9;this['disposeWithMe'](this['_drawingManagerService'][_0x26dadc(0x268)][_0x26dadc(0x23b)](_0x1211f0=>{const _0x334b6d=_0x26dadc;if(_0x1211f0[_0x334b6d(0x321)]===0x1){let _0x510816=_0x1211f0[0x0];if(_0x510816[_0x334b6d(0x130)]===_0x3a939e[_0x334b6d(0x162)]){let {unitId:_0x4f8eec,subUnitId:_0x4f921a,drawingId:_0x25518d}=_0x510816,_0x36f032=this[_0x334b6d(0x1f0)](_0x4f8eec,_0x4f921a,_0x25518d);if(_0x36f032){var _0xa43ce4,_0x19e6c2;this[_0x334b6d(0x2bf)]=_0x25518d,this[_0x334b6d(0xec)]=_0x4f8eec,this[_0x334b6d(0x283)]=_0x4f921a;let _0x440fba=this[_0x334b6d(0x330)](_0x4f8eec,_0x4f921a,_0x25518d),_0x229542=(_0x440fba==null||(_0xa43ce4=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0xa43ce4[_0x334b6d(0x1a3)])||0x0,_0x59f2e1=(_0x440fba==null||(_0x19e6c2=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0x19e6c2[_0x334b6d(0x2f9)])||0x0,_0x3d13a2=this[_0x334b6d(0x31e)](_0x36f032[_0x334b6d(0x11e)],_0x229542,_0x59f2e1,_0x36f032[_0x334b6d(0x184)]);_0x3d13a2&&(this['_activeAdjustPointList']=_0x3d13a2[_0x334b6d(0x18d)]()),this[_0x334b6d(0x2a9)](),this[_0x334b6d(0x2ec)](!0x0);}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x1d3)][_0x26dadc(0x23b)](_0x2fed22=>{const _0x45ecef=_0x26dadc;if(_0x2fed22[_0x45ecef(0x321)]===0x1){let _0x57acef=_0x2fed22[0x0],_0x462e52=this[_0x45ecef(0x218)]['getDrawingByParam'](_0x57acef);(_0x462e52==null?void 0x0:_0x462e52[_0x45ecef(0x130)])===_0x3a939e[_0x45ecef(0x162)]&&this[_0x45ecef(0x2bf)]===_0x57acef[_0x45ecef(0x175)]&&(this['_clearControls'](),this[_0x45ecef(0x2ec)](!0x0));}})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x10f)][_0x26dadc(0x23b)](_0x2266c5=>{const _0x130521=_0x26dadc;for(let _0x46b623 of _0x2266c5)this['_activeImageId']===_0x46b623[_0x130521(0x175)]&&this['_resetState']();}));}[_0x1a57e9(0x329)](){const _0x39c39d=_0x1a57e9;this['_activeImageId']=null,this[_0x39c39d(0xec)]=null,this[_0x39c39d(0x283)]=null,this[_0x39c39d(0x2c6)]=void 0x0,this[_0x39c39d(0x2a9)]();}};Mi=Z([X(0x1,_0x3398d1),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(xr))],Mi);const Ni=_0x1a57e9(0x151);let Pi=class extends _0x458cfa{constructor(_0x1cbbf0,_0x2684e0,_0x2951b9,_0x3d8fd6,_0x65f72e,_0x26c53d){const _0xdcdb8=_0x1a57e9;super(),this[_0xdcdb8(0x215)]=_0x1cbbf0,this[_0xdcdb8(0x136)]=_0x2684e0,this[_0xdcdb8(0x218)]=_0x2951b9,this['_univerInstanceService']=_0x3d8fd6,this[_0xdcdb8(0x12c)]=_0x65f72e,this[_0xdcdb8(0x2f1)]=_0x26c53d,Y(this,_0xdcdb8(0x107),!0x1),this[_0xdcdb8(0x215)][_0xdcdb8(0x2ca)](mi),this[_0xdcdb8(0x2db)](_0x3ee632(this[_0xdcdb8(0x218)][_0xdcdb8(0x268)][_0xdcdb8(0x23b)](()=>this['_update']()))),this[_0xdcdb8(0x294)]();}[_0x1a57e9(0x32d)](){const _0x3b7cc2=_0x1a57e9;this[_0x3b7cc2(0x2f1)][_0x3b7cc2(0x353)](!0x1,Ni),this[_0x3b7cc2(0x10b)](),super[_0x3b7cc2(0x32d)]();}[_0x1a57e9(0x294)](){const _0x11f155=_0x1a57e9;var _0x409634;let _0x7fc957=this[_0x11f155(0x218)]['getFocusDrawings'](),_0x38ba74=_0x7fc957[_0x11f155(0x321)]===0x1?_0x7fc957[0x0]:void 0x0;if((_0x38ba74==null?void 0x0:_0x38ba74[_0x11f155(0x130)])!==_0x3a939e[_0x11f155(0x35c)]||this['_univerInstanceService'][_0x11f155(0x10d)](_0x38ba74[_0x11f155(0x264)])!==_0x3d832c['UNIVER_SHEET']){this[_0x11f155(0x2f1)][_0x11f155(0x353)](!0x1,Ni),this['_hide']();return;}let _0x276005=_0x1dcf15((_0x409634=this[_0x11f155(0x12c)][_0x11f155(0x174)](_0x38ba74[_0x11f155(0x264)]))==null?void 0x0:_0x409634['engine'][_0x11f155(0x24f)]())===_0x11f155(0x2a4);if(this['_shapeFloatingToolbarService'][_0x11f155(0x353)](_0x276005,Ni),_0x276005){this['_hide']();return;}this[_0x11f155(0x107)]||(this[_0x11f155(0x107)]=!0x0,this[_0x11f155(0x136)][_0x11f155(0x2e9)](pr,{'activate':!0x0}));}[_0x1a57e9(0x10b)](){const _0x3a8b18=_0x1a57e9;this[_0x3a8b18(0x107)]&&(this[_0x3a8b18(0x107)]=!0x1,this[_0x3a8b18(0x136)][_0x3a8b18(0x1db)](pr),this[_0x3a8b18(0x136)][_0x3a8b18(0x2c1)]([]));}};Pi=Z([X(0x0,_0x430f90),X(0x1,_0xb3cad2),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0xebded9),X(0x5,_0x236d5e(_0x23dc66))],Pi);let Fi=class extends _0x458cfa{constructor(_0x5888cd,_0x2bf82c,_0x141766,_0x5cdf36){const _0xbf68ed=_0x1a57e9;super(),this[_0xbf68ed(0x224)]=_0x5888cd,this[_0xbf68ed(0x206)]=_0x2bf82c,this['_sheetDrawingService']=_0x141766,this['_sheetsShapeService']=_0x5cdf36,this[_0xbf68ed(0x1fd)]();}[_0x1a57e9(0x1fd)](){const _0x5685c6=_0x1a57e9;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5685c6(0x160)]({'getMutations':_0xf4d306=>{const _0x4037ea=_0x5685c6;if(_0xf4d306['id']===_0x12e6cd['id']){let _0x2b58cb=_0x5a285c(this['_univerInstanceService'],_0xf4d306[_0x4037ea(0x374)]);if(!_0x2b58cb)return{'redos':[],'undos':[]};let {unitId:_0x1c0500,subUnitId:_0x5a9038}=_0x2b58cb,_0x55d975=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x1c0500,_0x5a9038),_0x3ca133=Object[_0x4037ea(0x193)](_0x55d975)[_0x4037ea(0xeb)](_0x3d57e0=>_0x3d57e0[_0x4037ea(0x130)]===_0x3a939e[_0x4037ea(0x35c)]);if(_0x3ca133[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0xe56682=[],_0x81f4d2=[];for(let _0x8b708c=0x0;_0x8b708c<_0x3ca133[_0x4037ea(0x321)];_0x8b708c++){let _0xd2a2e1=_0x3ca133[_0x8b708c],_0x3b8ad2=this[_0x4037ea(0x35e)]['getShapeModel'](_0xd2a2e1['unitId'],_0xd2a2e1['subUnitId'],_0xd2a2e1[_0x4037ea(0x175)]);if(!_0x3b8ad2)continue;let {redo:_0x25171d,undo:_0x3553e4,objects:_0x10abff}=this[_0x4037ea(0x1f8)][_0x4037ea(0x1f2)]([_0xd2a2e1]);_0xe56682[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1['drawingId']}}),_0xe56682[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x25171d,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x3553e4,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1[_0x4037ea(0x175)],'shapeType':_0x3b8ad2[_0x4037ea(0x2b3)](),'shapeData':JSON[_0x4037ea(0x2ed)](JSON[_0x4037ea(0xf4)](_0x3b8ad2[_0x4037ea(0x2c4)]()))}});}return{'redos':_0xe56682,'undos':_0x81f4d2};}else{if(_0xf4d306['id']===_0x2bae38['id']){let {unitId:_0x28dca2,subUnitId:_0x207771,targetSubUnitId:_0x2cb30d}=_0xf4d306[_0x4037ea(0x374)];if(!_0x28dca2||!_0x207771||!_0x2cb30d)return{'redos':[],'undos':[]};let _0x1416e3=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x28dca2,_0x207771),_0x397f24=Object['values'](_0x1416e3)[_0x4037ea(0xeb)](_0x38cb5e=>_0x38cb5e['drawingType']===_0x3a939e[_0x4037ea(0x35c)]);if(_0x397f24[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0x2a7160=[],_0x5c69d4=[];for(let _0x41b7de=0x0;_0x41b7de<_0x397f24[_0x4037ea(0x321)];_0x41b7de++){let _0x5323be=_0x397f24[_0x41b7de],_0x17c990=this[_0x4037ea(0x35e)][_0x4037ea(0x29e)](_0x5323be[_0x4037ea(0x264)],_0x5323be[_0x4037ea(0x29a)],_0x5323be[_0x4037ea(0x175)]);if(!_0x17c990)continue;let _0x2600f3=_0xa48e11(),_0x38b061={..._0x5323be,'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'drawingId':_0x2600f3},{redo:_0x33cd58,undo:_0x4a1132,objects:_0x363f4c}=this[_0x4037ea(0x1f8)][_0x4037ea(0x2e7)]([_0x38b061]);_0x2a7160['push']({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x33cd58,'objects':_0x363f4c}}),_0x2a7160[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3,'shapeType':_0x17c990[_0x4037ea(0x2b3)](),'shapeData':JSON['parse'](JSON['stringify'](_0x17c990[_0x4037ea(0x2c4)]()))}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x4a1132,'objects':_0x363f4c}});}return{'redos':_0x2a7160,'undos':_0x5c69d4};}}return{'redos':[],'undos':[]};}}));}};Fi=Z([X(0x0,_0x236d5e(_0x4b61f3)),X(0x1,_0x236d5e(_0x9bde8a)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53))],Fi);let Ii=class extends _0x458cfa{constructor(_0x9149a8,_0x3459a3,_0x203430,_0x559a8a,_0x34b5ff){const _0x15cd30=_0x1a57e9;super(),this[_0x15cd30(0x339)]=_0x9149a8,this[_0x15cd30(0xf0)]=_0x3459a3,this[_0x15cd30(0x218)]=_0x203430,this[_0x15cd30(0x122)]=_0x559a8a,this[_0x15cd30(0x35e)]=_0x34b5ff,Y(this,'_lastEditingShapeKey',null),this[_0x15cd30(0x28f)](),this[_0x15cd30(0x2a7)](),this['_initEditingParams']();}[_0x1a57e9(0x28f)](){const _0xc717bd=_0x1a57e9;let {scene:_0x453a8e}=this[_0xc717bd(0x339)];this[_0xc717bd(0x2db)](_0x453a8e[_0xc717bd(0x2c5)][_0xc717bd(0x18f)](_0x2617cb=>{const _0x250aef=_0xc717bd;let {offsetX:_0xd57463,offsetY:_0x382546}=_0x2617cb,_0x27d182=_0x453a8e[_0x250aef(0x123)](_0x1cc756[_0x250aef(0x1bd)]([_0xd57463,_0x382546]));if(_0x27d182 instanceof ar){let _0x3fe116=this['_sheetsShapeService'][_0x250aef(0x29e)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)]);if(_0x3fe116!=null&&_0x3fe116[_0x250aef(0x2c4)]()['formulaBinding']||_0x3863ab(this['_sheetsShapeService'][_0x250aef(0x2b3)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)])))return;this[_0x250aef(0xf0)][_0x250aef(0x289)]({'visible':!0x0,'unitId':_0x27d182[_0x250aef(0x264)],'subUnitId':_0x27d182[_0x250aef(0x29a)],'shapeId':_0x27d182[_0x250aef(0x2e2)],'shapeKey':_0x27d182[_0x250aef(0x147)]});}}));}[_0x1a57e9(0x2a7)](){const _0x3a6ab6=_0x1a57e9;this['disposeWithMe'](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x268)]['subscribe'](_0x5bd838=>{const _0x433707=_0x3a6ab6;if(_0x5bd838[_0x433707(0x321)]===0x1){let _0x22acaa=_0x5bd838[0x0],_0x22a0f8=this['_drawingManagerService'][_0x433707(0x223)](_0x22acaa);if((_0x22a0f8==null?void 0x0:_0x22a0f8[_0x433707(0x130)])===_0x3a939e['DRAWING_SHAPE']){var _0x46ce1a;let _0x1a7807=this[_0x433707(0xf0)][_0x433707(0x1ac)]();if((_0x1a7807==null?void 0x0:_0x1a7807[_0x433707(0x2e2)])===_0x22acaa[_0x433707(0x175)]&&_0x1a7807[_0x433707(0x285)])return;let _0x537a13=_0x3863ab(this[_0x433707(0x35e)]['getShapeType'](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)])),_0x459688=!!((_0x46ce1a=this[_0x433707(0x35e)][_0x433707(0x29e)](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)]))!=null&&_0x46ce1a[_0x433707(0x2c4)]()['formulaBinding']);(_0x537a13||_0x459688)&&this[_0x433707(0xf0)][_0x433707(0x289)](null);}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x45a923=_0x433707;this[_0x45a923(0xf0)][_0x45a923(0x289)](null);}));}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x4a8cba=_0x433707;this[_0x4a8cba(0xf0)][_0x4a8cba(0x289)](null);}));})),this[_0x3a6ab6(0x2db)](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x10f)][_0x3a6ab6(0x23b)](_0x421984=>{const _0x21916a=_0x3a6ab6;let _0x1f350d=this['_shapeTextEditingService'][_0x21916a(0x1ac)]();_0x1f350d&&_0x421984[_0x21916a(0x1b7)](_0x11f78f=>_0x11f78f[_0x21916a(0x175)]===_0x1f350d[_0x21916a(0x2e2)])&&this[_0x21916a(0xf0)][_0x21916a(0x289)](null);}));}['_initEditingParams'](){const _0x3020c3=_0x1a57e9;this[_0x3020c3(0x2db)](this[_0x3020c3(0xf0)][_0x3020c3(0x31d)]['subscribe'](_0x1353d1=>{const _0x1bf576=_0x3020c3;let {scene:_0x324eb9}=this['_context'];if(this[_0x1bf576(0x205)]){let _0x4969c6=_0x324eb9['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x4969c6&&_0x4969c6[_0x1bf576(0x289)](!0x1);}if(_0x1353d1){let _0x48db1f=!!_0x1353d1[_0x1bf576(0x285)],_0x4cb844=_0x324eb9[_0x1bf576(0x14f)](_0x1353d1['shapeKey']);_0x4cb844&&(_0x4cb844[_0x1bf576(0x289)](_0x48db1f),this[_0x1bf576(0x205)]=_0x1353d1[_0x1bf576(0xef)]),this[_0x1bf576(0x122)]['setContextValue'](_0x5efdd2,_0x48db1f);}else this['_lastEditingShapeKey']=null,this[_0x1bf576(0x122)][_0x1bf576(0x133)](_0x5efdd2,!0x1);}));}};Ii=Z([X(0x1,_0x236d5e(Oi)),X(0x2,_0x3398d1),X(0x3,_0x593690),X(0x4,_0x236d5e(_0x434a53))],Ii);let Li=class extends _0xc831bf{constructor(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9){super(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9,{'componentKey':hr,'editorUnitId':mr});}};Li=Z([X(0x1,_0x236d5e(_0x55f526)),X(0x2,_0x236d5e(_0x5a3f85)),X(0x3,_0x236d5e(_0x240358))],Li);let Ri=class extends _0x458cfa{constructor(_0x29f942,_0x5e10a9,_0x54a81f,_0x498bca,_0x29d6a7,_0x34a621){const _0x256858=_0x1a57e9;super(),this[_0x256858(0x27a)]=_0x29f942,this[_0x256858(0x12c)]=_0x5e10a9,this[_0x256858(0x218)]=_0x54a81f,this[_0x256858(0x1ff)]=_0x498bca,this[_0x256858(0x325)]=_0x29d6a7,this[_0x256858(0x237)]=_0x34a621,Y(this,'_insertingShapeKeys',new Set()),this['_initialize']();}[_0x1a57e9(0x120)](){const _0x430c10=_0x1a57e9;this[_0x430c10(0x1fa)](),this[_0x430c10(0x105)](),this[_0x430c10(0x2cb)]();}[_0x1a57e9(0x1fa)](){const _0x1e1bc3=_0x1a57e9;this[_0x1e1bc3(0x2db)](this[_0x1e1bc3(0x218)][_0x1e1bc3(0x366)]['subscribe'](_0x52c438=>{const _0x4a67d4=_0x1e1bc3;this[_0x4a67d4(0x19b)](_0x52c438);}));}[_0x1a57e9(0x105)](){const _0x38ebfe=_0x1a57e9;this[_0x38ebfe(0x2db)](this['_commandService']['onCommandExecuted'](_0x343130=>{const _0x4ceb4c=_0x38ebfe;if(_0x343130['id']===_0x926363['id']){let {unitId:_0xe72121,subUnitId:_0x5bd166,shapeId:_0x59fb61}=_0x343130[_0x4ceb4c(0x374)],_0x4292b9=this[_0x4ceb4c(0x26a)](_0xe72121),_0x585fa3=_0x238087({'unitId':_0xe72121,'subUnitId':_0x5bd166,'drawingId':_0x59fb61}),_0x12a8e5=_0x4292b9==null?void 0x0:_0x4292b9[_0x4ceb4c(0x21b)]['getObjectIncludeInGroup'](_0x585fa3);_0x12a8e5&&(this[_0x4ceb4c(0x237)]['refreshShapeFillImage'](_0x12a8e5),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x12a8e5,{'unitId':_0xe72121,'subUnitId':_0x5bd166,'shapeId':_0x59fb61}),_0x12a8e5[_0x4ceb4c(0x2bc)](!0x0));return;}if(_0x343130['id']===_0x3b9418['id']){var _0x1388ac;let {unitId:_0x2361a3,subUnitId:_0x727031,shapeId:_0x5b9560}=_0x343130[_0x4ceb4c(0x374)],_0xc56c0d=this[_0x4ceb4c(0x26a)](_0x2361a3);if(_0xc56c0d==null)return;let {scene:_0xcfb9e}=_0xc56c0d,_0x18043e=_0x238087({'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}),_0x353a5e=_0xcfb9e[_0x4ceb4c(0x14f)](_0x18043e);if(!((_0x1388ac=this[_0x4ceb4c(0x12c)][_0x4ceb4c(0x174)](_0x2361a3))!=null&&_0x1388ac['with'](_0x2bd201)[_0x4ceb4c(0x167)](_0x727031)))return!0x1;if(_0x353a5e)return;this[_0x4ceb4c(0x19b)]([{'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}]);}}));}[_0x1a57e9(0x2cb)](){const _0x13646d=_0x1a57e9;this[_0x13646d(0x2db)](this[_0x13646d(0x218)][_0x13646d(0x1d3)][_0x13646d(0x23b)](_0x14febc=>{const _0xdd5cd2=_0x13646d;_0x14febc[_0xdd5cd2(0x21e)](_0x464396=>{const _0x2c5764=_0xdd5cd2;let {unitId:_0x32808c,subUnitId:_0x7cff64,drawingId:_0x10c32f}=_0x464396,_0x4d9f26=this[_0x2c5764(0x218)][_0x2c5764(0x223)](_0x464396);if(_0x4d9f26==null)return;let {transform:_0x969210,drawingType:_0x94f241,srcRect:_0x510bb9,prstGeom:_0x46c012}=_0x4d9f26;if(_0x94f241!==_0x3a939e['DRAWING_SHAPE'])return;let _0x503748=this['_getSceneAndTransformerByDrawingSearch'](_0x32808c);if(_0x503748==null)return;let {scene:_0x2350c6,transformer:_0x1d7909}=_0x503748;if(_0x969210==null)return!0x0;let _0x4e4771=_0x238087({'unitId':_0x32808c,'subUnitId':_0x7cff64,'drawingId':_0x10c32f}),_0x8ccfb2=_0x2350c6['getObjectIncludeInGroup'](_0x4e4771);if(_0x8ccfb2==null)return!0x0;_0x8ccfb2[_0x2c5764(0x1c9)](_0x510bb9),_0x8ccfb2['setPrstGeom'](_0x46c012);});}));}[_0x1a57e9(0x19b)](_0x45b6ae){const _0x34cf56=_0x1a57e9;for(let _0xa1e474 of _0x45b6ae){var _0x15d9d4;let {unitId:_0x140785,subUnitId:_0x1d1550,drawingId:_0x5cfd81}=_0xa1e474,_0x2cef2e=this[_0x34cf56(0x26a)](_0x140785),_0x4b4862=(_0x15d9d4=_0x31acf7(this['_currentUniverService'],_0x140785))==null?void 0x0:_0x15d9d4[_0x34cf56(0x29a)];if(_0x2cef2e==null||_0x4b4862!==_0x1d1550)return;let _0x775fef=_0x238087({'unitId':_0x140785,'subUnitId':_0x1d1550,'drawingId':_0x5cfd81});if(this[_0x34cf56(0x2aa)][_0x34cf56(0x32e)](_0x775fef)||_0x2cef2e['scene']['getObjectIncludeInGroup'](_0x775fef)!=null)return;let _0x4c83a9=this[_0x34cf56(0x218)][_0x34cf56(0x223)](_0xa1e474);if(_0x4c83a9==null||_0x4c83a9[_0x34cf56(0x130)]!==_0x3a939e[_0x34cf56(0x35c)])return;if(_0x3863ab((_0x4c83a9[_0x34cf56(0x214)]||{})[_0x34cf56(0x2fd)])){let _0x157cf0=_0x4c83a9[_0x34cf56(0x2b2)];_0x157cf0&&(_0x4c83a9[_0x34cf56(0x2b2)]={..._0x157cf0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x34cf56(0x2aa)][_0x34cf56(0x18e)](_0x775fef);try{this[_0x34cf56(0x237)][_0x34cf56(0x221)](_0x4c83a9,_0x2cef2e[_0x34cf56(0x21b)]);}finally{this[_0x34cf56(0x2aa)]['delete'](_0x775fef);}queueMicrotask(()=>{const _0x100d44=_0x34cf56;if(this[_0x100d44(0x22b)])return;let _0x9cd6e6=_0x238087(_0xa1e474);if(!_0x2cef2e['scene'][_0x100d44(0x14f)](_0x9cd6e6))return;let _0x99e2b1=this['_drawingManagerService']['getDrawingByParam'](_0xa1e474);_0x99e2b1&&this[_0x100d44(0x218)]['refreshTransform']([_0x99e2b1]);});}}[_0x1a57e9(0x26a)](_0x4faf2d){const _0xf21208=_0x1a57e9;if(_0x4faf2d==null)return;let _0xa25aaf=this[_0xf21208(0x12c)][_0xf21208(0x174)](_0x4faf2d),_0xc31c24=_0xa25aaf==null?void 0x0:_0xa25aaf['scene'];return _0xc31c24==null?null:{'scene':_0xc31c24,'transformer':_0xc31c24[_0xf21208(0x113)]()};}};Ri=Z([X(0x0,_0x1b8f46),X(0x1,_0xebded9),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(_0xe6009a)),X(0x5,_0x236d5e(Q))],Ri);const zi={'normal':{'fill':_0x496afe['cxnPointFill'],'stroke':_0x496afe[_0x1a57e9(0x351)],'strokeWidth':_0x496afe[_0x1a57e9(0x36b)]},'highlighted':{'fill':_0x1a57e9(0x1d0),'stroke':_0x1a57e9(0x169),'strokeWidth':0x2}};var Bi=class extends _0x38cc74{constructor(_0x32b7c7,_0x20a5b5){const _0xae8fb1=_0x1a57e9;super(_0x32b7c7,_0x20a5b5),Y(this,_0xae8fb1(0x1c6),''),Y(this,_0xae8fb1(0x239),-0x1),Y(this,_0xae8fb1(0xec),''),Y(this,_0xae8fb1(0x283),''),Y(this,_0xae8fb1(0x2cf),!0x1),_0x20a5b5&&this[_0xae8fb1(0x2cd)](_0x20a5b5);}[_0x1a57e9(0x2c9)](){const _0x680857=_0x1a57e9;return{'unitId':this[_0x680857(0xec)],'subUnitId':this[_0x680857(0x283)],'shapeId':this[_0x680857(0x1c6)],'cxnIndex':this[_0x680857(0x239)]};}[_0x1a57e9(0x210)](_0x2c7a3c){const _0x234676=_0x1a57e9;this['_isHighlighted']!==_0x2c7a3c&&(this[_0x234676(0x2cf)]=_0x2c7a3c,this[_0x234676(0x2bc)](!0x0));}[_0x1a57e9(0x280)](){const _0x11348f=_0x1a57e9;return this[_0x11348f(0x2cf)];}['setShapeProps'](_0x29fd14){const _0x121aa4=_0x1a57e9;_0x29fd14[_0x121aa4(0x1ae)]!==void 0x0&&(this['_targetShapeId']=_0x29fd14[_0x121aa4(0x1ae)]),_0x29fd14[_0x121aa4(0x31c)]!==void 0x0&&(this[_0x121aa4(0x239)]=_0x29fd14[_0x121aa4(0x31c)]),_0x29fd14[_0x121aa4(0x264)]!==void 0x0&&(this['_unitId']=_0x29fd14[_0x121aa4(0x264)]),_0x29fd14['subUnitId']!==void 0x0&&(this[_0x121aa4(0x283)]=_0x29fd14[_0x121aa4(0x29a)]),_0x29fd14['isHighlighted']!==void 0x0&&(this[_0x121aa4(0x2cf)]=_0x29fd14[_0x121aa4(0x280)]),this[_0x121aa4(0x20e)]({'width':_0x29fd14[_0x121aa4(0x1a3)]??_0x496afe[_0x121aa4(0x1ee)]*0x2,'height':_0x29fd14[_0x121aa4(0x2f9)]??_0x496afe['cxnPointRadius']*0x2});}[_0x1a57e9(0x1f5)](_0x3329a4){const _0x34bfe0=_0x1a57e9;let _0x4cb0b6=this['_isHighlighted']?zi[_0x34bfe0(0x2bd)]:zi['normal'];_0x20c694[_0x34bfe0(0x2e4)](_0x3329a4,{'radius':_0x496afe[_0x34bfe0(0x1ee)],'fill':_0x4cb0b6['fill'],'stroke':_0x4cb0b6[_0x34bfe0(0x24e)],'strokeWidth':_0x4cb0b6[_0x34bfe0(0x2af)],'evented':!0x0});}};let Vi=class extends _0x458cfa{constructor(_0x5ceb56,_0x2a1cc5,_0x295bef,_0x3b5732){const _0x2479b6=_0x1a57e9;super(),this['_context']=_0x5ceb56,this['_renderManagerService']=_0x2a1cc5,this['_drawingManagerService']=_0x295bef,this[_0x2479b6(0x35e)]=_0x3b5732,Y(this,_0x2479b6(0x306),[]),Y(this,_0x2479b6(0x322),null),Y(this,'_highlightedSiteIndex',-0x1),Y(this,'_currentScene',null),Y(this,_0x2479b6(0xec),''),Y(this,_0x2479b6(0x283),''),Y(this,_0x2479b6(0xf5),null);}[_0x1a57e9(0x30c)](_0x2faee2,_0x4d251d,_0x2390b7,_0x89ea0e){const _0x57871e=_0x1a57e9;this[_0x57871e(0x320)]=_0x2faee2,this['_unitId']=_0x4d251d,this['_subUnitId']=_0x2390b7,this[_0x57871e(0xf5)]=_0x89ea0e;}[_0x1a57e9(0x309)](_0x154919){const _0x223757=_0x1a57e9;if(!this[_0x223757(0x320)])return null;let _0x4df36a=this['_findShapeAtPoint'](_0x154919);return _0x4df36a?(this[_0x223757(0x322)]!==_0x4df36a[_0x223757(0x2e2)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x4df36a['shapeId'],_0x4df36a[_0x223757(0x31f)]),this[_0x223757(0x322)]=_0x4df36a[_0x223757(0x2e2)]),this[_0x223757(0x1d5)](_0x154919)):(this['_activeTargetShapeId']!==null&&(this['_clearConnectionSites'](),this[_0x223757(0x322)]=null),null);}['endConnectionDetection'](){const _0x22ee32=_0x1a57e9;this[_0x22ee32(0x128)](),this['_currentScene']=null,this[_0x22ee32(0x322)]=null,this[_0x22ee32(0x347)]=-0x1,this[_0x22ee32(0xf5)]=null;}[_0x1a57e9(0x24a)](){const _0x82c729=_0x1a57e9;return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x82c729(0x322)],'cxnIndex':this[_0x82c729(0x347)]};}[_0x1a57e9(0x2a3)](_0x5299b3){const _0x594f3b=_0x1a57e9;let _0x15484c=this[_0x594f3b(0x218)]['getDrawingData'](this[_0x594f3b(0xec)],this[_0x594f3b(0x283)]);for(let _0x446c3d of Object[_0x594f3b(0x20a)](_0x15484c)){if(_0x446c3d===this[_0x594f3b(0xf5)]||_0x15484c[_0x446c3d][_0x594f3b(0x130)]!==_0x3a939e[_0x594f3b(0x35c)])continue;let _0x3ebe75=this['_sheetsShapeService'][_0x594f3b(0x29e)](this['_unitId'],this[_0x594f3b(0x283)],_0x446c3d);if(!_0x3ebe75||_0x3863ab(_0x3ebe75[_0x594f3b(0x2b3)]())||_0x3ebe75[_0x594f3b(0x2a8)]()[_0x594f3b(0x321)]===0x0||!this[_0x594f3b(0x320)])continue;let _0x310889=_0x238087({'unitId':this['_unitId'],'subUnitId':this[_0x594f3b(0x283)],'drawingId':_0x446c3d}),_0x1920bb=this[_0x594f3b(0x320)][_0x594f3b(0x14f)](_0x310889);if(!_0x1920bb)continue;let {left:_0x3c949b,top:_0x344508,width:_0x25fc99,height:_0x45bfa8}=_0x1920bb['getRealBound'](),_0x579751=_0x3c949b+_0x25fc99/0x2,_0xcc127f=_0x344508+_0x45bfa8/0x2,_0x33de17=_0x1920bb[_0x594f3b(0x2b2)]['getMatrix'](),_0x11180f=new _0x228916([_0x33de17[0x0],_0x33de17[0x1],_0x33de17[0x2],_0x33de17[0x3],_0x579751,_0xcc127f]),_0x5ebe16=_0x1920bb[_0x594f3b(0x208)](),_0xb014d9=(_0x1920bb[_0x594f3b(0x30f)]&&(_0x5ebe16==null?void 0x0:_0x5ebe16[_0x594f3b(0x142)])===_0x2b860b[_0x594f3b(0x14c)]?_0x5ebe16['ancestorTransform']['multiply'](_0x11180f):_0x11180f)['invert']()['applyPoint'](_0x5299b3),_0x5ce203=_0x25fc99/0x2,_0x24f271=_0x45bfa8/0x2;if(_0xb014d9['x']>=-_0x5ce203-0x5&&_0xb014d9['x']<=_0x5ce203+0x5&&_0xb014d9['y']>=-_0x24f271-0x5&&_0xb014d9['y']<=_0x24f271+0x5)return{'shapeId':_0x446c3d,'shapeModel':_0x3ebe75};}return null;}[_0x1a57e9(0x10e)](_0x5eeb54,_0x20a0c0){const _0x465f04=_0x1a57e9;if(!this[_0x465f04(0x320)])return;let _0x2958d4=_0x238087({'unitId':this[_0x465f04(0xec)],'subUnitId':this[_0x465f04(0x283)],'drawingId':_0x5eeb54}),_0x4235b2=this[_0x465f04(0x320)]['getObjectIncludeInGroup'](_0x2958d4);if(!_0x4235b2)return;let {left:_0x4c6223,top:_0x30237d,width:_0x21c6f7,height:_0x56a35f}=_0x4235b2['getRealBound'](),_0x603551=_0x4c6223+_0x21c6f7/0x2,_0x209d46=_0x30237d+_0x56a35f/0x2,_0xc7e59d=_0x4235b2[_0x465f04(0x2b2)]['getMatrix'](),_0x32d4ae=new _0x228916([_0xc7e59d[0x0],_0xc7e59d[0x1],_0xc7e59d[0x2],_0xc7e59d[0x3],_0x603551,_0x209d46]),_0x4a0aa0=_0x4235b2[_0x465f04(0x208)](),_0x55e892=_0x4235b2[_0x465f04(0x30f)]&&(_0x4a0aa0==null?void 0x0:_0x4a0aa0[_0x465f04(0x142)])===_0x2b860b[_0x465f04(0x14c)]?_0x4a0aa0['ancestorTransform'][_0x465f04(0x348)](_0x32d4ae):_0x32d4ae;_0x20a0c0['updateContext']({'width':_0x21c6f7,'height':_0x56a35f});let _0x346e0d=_0x20a0c0[_0x465f04(0x2a8)]();for(let _0x2c2834 of _0x346e0d){let _0x2b4ed3=_0x2c2834['x']-_0x21c6f7/0x2,_0x5697bf=_0x2c2834['y']-_0x56a35f/0x2,_0x2e4453=_0x55e892[_0x465f04(0x1f7)]({'x':_0x2b4ed3,'y':_0x5697bf}),_0x2c92a7=_0x2e4453['x'],_0x8ac156=_0x2e4453['y'],_0x48ab19=new Bi(_0x465f04(0x1ec)+_0x5eeb54+'-'+_0x2c2834[_0x465f04(0x2f6)],{'left':_0x2c92a7-_0x496afe[_0x465f04(0x1ee)],'top':_0x8ac156-_0x496afe[_0x465f04(0x1ee)],'targetShapeId':_0x5eeb54,'cxnIndex':_0x2c2834[_0x465f04(0x2f6)],'unitId':this['_unitId'],'subUnitId':this[_0x465f04(0x283)],'width':_0x496afe[_0x465f04(0x1ee)]*0x2,'height':_0x496afe['cxnPointRadius']*0x2,'zIndex':_0x5ad001+0x2,'evented':!0x1});this[_0x465f04(0x306)][_0x465f04(0x11f)](_0x48ab19),this[_0x465f04(0x320)]['addObject'](_0x48ab19,_0x5ad001+0x2);}}[_0x1a57e9(0x1d5)](_0x4a1790){const _0x1fae90=_0x1a57e9;let _0x5384f1=null,_0x3b1384=0x1/0x0,_0x73a42f=null;for(let _0x1e2ba1 of this[_0x1fae90(0x306)]){let _0x42fdc1=_0x1e2ba1[_0x1fae90(0x257)]+_0x496afe[_0x1fae90(0x1ee)],_0x5e9645=_0x1e2ba1['top']+_0x496afe[_0x1fae90(0x1ee)],_0x554c7b=_0x4a1790['x']-_0x42fdc1,_0x62688d=_0x4a1790['y']-_0x5e9645,_0x267d9b=Math[_0x1fae90(0x33e)](_0x554c7b*_0x554c7b+_0x62688d*_0x62688d);_0x267d9b<_0x3b1384&&(_0x3b1384=_0x267d9b,_0x5384f1=_0x1e2ba1,_0x73a42f={'x':_0x42fdc1,'y':_0x5e9645});}let _0x324ac9=_0x3b1384<=0xa&&_0x5384f1?_0x5384f1['getConnectionInfo']()[_0x1fae90(0x31c)]:-0x1;if(_0x324ac9!==this[_0x1fae90(0x347)]){for(let _0x532741 of this[_0x1fae90(0x306)]){let _0x416f64=_0x532741['getConnectionInfo']();_0x532741['setHighlighted'](_0x416f64[_0x1fae90(0x31c)]===_0x324ac9);}this[_0x1fae90(0x347)]=_0x324ac9;}if(_0x3b1384<=0xa&&_0x5384f1&&_0x73a42f){let _0x245af1=_0x5384f1[_0x1fae90(0x2c9)](),_0x2d8851=this[_0x1fae90(0x355)](_0x245af1[_0x1fae90(0x2e2)],_0x245af1[_0x1fae90(0x31c)]);return{'shapeId':_0x245af1[_0x1fae90(0x2e2)],'cxnIndex':_0x245af1[_0x1fae90(0x31c)],'unitId':_0x245af1[_0x1fae90(0x264)],'subUnitId':_0x245af1[_0x1fae90(0x29a)],'worldPoint':_0x73a42f,'angle':_0x2d8851};}return null;}['_getConnectionSiteAngle'](_0x1a2aff,_0x4f859c){const _0x1b9b6c=_0x1a57e9;let _0x3f6e60=this[_0x1b9b6c(0x35e)][_0x1b9b6c(0x29e)](this[_0x1b9b6c(0xec)],this[_0x1b9b6c(0x283)],_0x1a2aff);if(!_0x3f6e60)return 0x0;let _0x4aa9b8=this['_drawingManagerService'][_0x1b9b6c(0x223)]({'unitId':this['_unitId'],'subUnitId':this[_0x1b9b6c(0x283)],'drawingId':_0x1a2aff});if(!(_0x4aa9b8!=null&&_0x4aa9b8[_0x1b9b6c(0x2b2)]))return 0x0;let {width:_0x4e5378=0x0,height:_0x6ba44=0x0,flipX:_0x2df977=!0x1,flipY:_0x5bb8c4=!0x1}=_0x4aa9b8[_0x1b9b6c(0x2b2)];_0x3f6e60[_0x1b9b6c(0x216)]({'width':_0x4e5378,'height':_0x6ba44});let _0x5d49af=_0x3f6e60[_0x1b9b6c(0x2a8)]()['find'](_0x5d24f1=>_0x5d24f1[_0x1b9b6c(0x2f6)]===_0x4f859c);if(!_0x5d49af)return 0x0;let _0x307f7a=_0x5d49af['ang']/0xea60;return _0x2df977&&(_0x307f7a=0xb4-_0x307f7a),_0x5bb8c4&&(_0x307f7a=-_0x307f7a),_0x307f7a=(_0x307f7a%0x168+0x168)%0x168,_0x307f7a;}[_0x1a57e9(0x128)](){const _0x179cb6=_0x1a57e9;for(let _0x10bbc7 of this[_0x179cb6(0x306)])_0x10bbc7[_0x179cb6(0x32d)]();this[_0x179cb6(0x306)]=[],this[_0x179cb6(0x347)]=-0x1;}[_0x1a57e9(0x32d)](){const _0x2f1b21=_0x1a57e9;this[_0x2f1b21(0x128)](),super[_0x2f1b21(0x32d)]();}};Vi=Z([X(0x1,_0x236d5e(_0xebded9)),X(0x2,_0x236d5e(_0x3398d1)),X(0x3,_0x236d5e(_0x434a53))],Vi);let Hi=class extends _0x458cfa{constructor(_0x581832,_0x3edc90,_0x19de88,_0x4cf4d8,_0x2d4cbb){const _0x560d44=_0x1a57e9;super(),this[_0x560d44(0x2b7)]=_0x581832,this['_sheetClipboardService']=_0x3edc90,this[_0x560d44(0x1f8)]=_0x19de88,this['_shapeService']=_0x4cf4d8,this[_0x560d44(0x340)]=_0x2d4cbb,Y(this,_0x560d44(0x1ef),void 0x0),this[_0x560d44(0x231)](),this[_0x560d44(0x11d)]();}get[_0x1a57e9(0x27e)](){const _0x162b64=_0x1a57e9;return this['_sheetDrawingService'][_0x162b64(0x15d)]();}[_0x1a57e9(0x11d)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x186310,fromSubUnitId:_0xcc95a8,toUnitId:_0xd062b9,toSubUnitId:_0x1afd6b,idMap:_0x4ac5ed})=>{const _0x346b88=_0x4a8a;let _0x4e7eb3=[],_0x1b5198=[];for(let [_0x5cb943,_0x262bce]of _0x4ac5ed[_0x346b88(0x262)]()){let _0x12e4ba=this[_0x346b88(0x312)][_0x346b88(0x29e)](_0x186310,_0xcc95a8,_0x5cb943);if(!_0x12e4ba)continue;let _0x41e229=_0x12e4ba['getShapeType'](),_0x4761d8=JSON[_0x346b88(0x2ed)](JSON[_0x346b88(0xf4)](_0x12e4ba[_0x346b88(0x2c4)]()));if(_0x4761d8['relation']){var _0x4b4d10,_0x2b2d29;let _0x2463f0=(_0x4b4d10=_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)])==null?void 0x0:_0x4b4d10[_0x346b88(0x2e2)],_0x469b15=(_0x2b2d29=_0x4761d8[_0x346b88(0x204)]['to'])==null?void 0x0:_0x2b2d29[_0x346b88(0x2e2)],_0x596a8b=!_0x2463f0||_0x4ac5ed['has'](_0x2463f0),_0x11e70f=!_0x469b15||_0x4ac5ed[_0x346b88(0x32e)](_0x469b15);_0x596a8b&&_0x2463f0&&_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]?_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]={..._0x4761d8['relation'][_0x346b88(0x191)],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x2463f0)}:_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]=void 0x0,_0x11e70f&&_0x469b15&&_0x4761d8[_0x346b88(0x204)]['to']?_0x4761d8[_0x346b88(0x204)]['to']={..._0x4761d8[_0x346b88(0x204)]['to'],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x469b15)}:_0x4761d8[_0x346b88(0x204)]['to']=void 0x0;}_0x4e7eb3[_0x346b88(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce,'shapeType':_0x41e229,'shapeData':_0x4761d8}}),_0x1b5198['push']({'id':_0x642eb['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce}});}return{'redos':_0x4e7eb3,'undos':_0x1b5198};});}[_0x1a57e9(0x231)](){const _0x300fe4=_0x1a57e9;this[_0x300fe4(0x2db)](this[_0x300fe4(0x17a)][_0x300fe4(0x139)]({'id':_0x300fe4(0x26e),'onBeforeCopy':(_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9)=>{const _0x53e105=_0x300fe4;this[_0x53e105(0x1ef)]=null;let _0x25386a=this[_0x53e105(0x27e)];if(_0x25386a[_0x53e105(0x321)]){let _0x52615b=_0x25386a['filter'](_0x5bda1b=>_0x5bda1b[_0x53e105(0x130)]===_0x3a939e[_0x53e105(0x35c)]);if(_0x52615b['length']===0x0)return;this[_0x53e105(0x1ef)]={'unitId':_0x4778eb,'subUnitId':_0x469c2f,'copyType':_0x4524c9,'drawings':_0x52615b};}else this[_0x53e105(0x301)](_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9);},'onPasteCells':(_0x51083f,_0x423f66,_0x41ba70,_0x12344a)=>{const _0x5c2ea9=_0x300fe4;if(!this[_0x5c2ea9(0x1ef)])return{'redos':[],'undos':[]};let {pasteType:_0x137a73}=_0x12344a;return _0x137a73===_0x375ec3[_0x5c2ea9(0x337)]?this[_0x5c2ea9(0x114)](_0x423f66,this[_0x5c2ea9(0x1ef)][_0x5c2ea9(0x265)]===_0x1b2302[_0x5c2ea9(0x2a0)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x67683f=>this[_0x300fe4(0x1ef)]?this[_0x300fe4(0x114)](_0x67683f,this['_copyInfo'][_0x300fe4(0x265)]===_0x1b2302[_0x300fe4(0x2a0)]):{'redos':[],'undos':[]}}));}[_0x1a57e9(0x301)](_0x93feaf,_0x434bb1,_0x4bbb5c,_0x48b0fa){const _0x3906d3=_0x1a57e9;let _0x55c645=this['_sheetSkeletonService'][_0x3906d3(0x167)](_0x93feaf,_0x434bb1);if(!_0x55c645)return;let _0xb6ce90=_0x4da051(_0x55c645,_0x4bbb5c);if(!_0xb6ce90)return;let {startX:_0xd3d9,endX:_0x11527f,startY:_0x187019,endY:_0x1fc437}=_0xb6ce90,_0x1a4fce=this[_0x3906d3(0x1f8)][_0x3906d3(0x35a)](_0x93feaf,_0x434bb1),_0x23aa0b=this[_0x3906d3(0x27e)][_0x3906d3(0x323)]();for(let [_0x234cac,_0x5df823]of Object['entries'](_0x1a4fce)){if(_0x5df823[_0x3906d3(0x130)]!==_0x3a939e[_0x3906d3(0x35c)])continue;let {transform:_0x37a2af}=_0x5df823;if(!_0x37a2af)continue;let {left:_0x49cf12=0x0,top:_0xa2b9c8=0x0,width:_0x1da2cf=0x0,height:_0x5e7d26=0x0}=_0x37a2af;_0xd3d9<=_0x49cf12&&_0x11527f>=_0x49cf12+_0x1da2cf&&_0x187019<=_0xa2b9c8&&_0x1fc437>=_0xa2b9c8+_0x5e7d26&&_0x23aa0b['push'](_0x5df823);}_0x23aa0b[_0x3906d3(0x321)]>0x0&&(this[_0x3906d3(0x1ef)]={'unitId':_0x93feaf,'subUnitId':_0x434bb1,'copyType':_0x48b0fa,'copyRange':_0x4bbb5c,'drawings':_0x23aa0b});}[_0x1a57e9(0x114)](_0x5e2574,_0x21df6c){const _0x58dd18=_0x1a57e9;let {unitId:_0x533d16,subUnitId:_0x372c1d,range:_0x24a366}=_0x5e2574,_0xced308=this[_0x58dd18(0x2b7)][_0x58dd18(0x167)](_0x533d16,_0x372c1d);if(!_0xced308)return{'redos':[],'undos':[]};let _0x2448d6=_0x2b7982(_0x24a366),{unitId:_0x14342c,subUnitId:_0x88bc5,copyRange:_0x194951,drawings:_0x53c66f}=this[_0x58dd18(0x1ef)],_0x49f5a0=this[_0x58dd18(0x2b7)]['getSkeleton'](_0x14342c,_0x88bc5);if(!_0x49f5a0)return{'redos':[],'undos':[]};let _0x3a5f74;if(!_0x194951){let _0x58ccf2=0x1/0x0,_0x43ffaa=0x1/0x0;for(let _0x395165 of _0x53c66f){let {left:_0x4af5c3=0x0,top:_0x1d5d49=0x0}=_0x395165[_0x58dd18(0x2b2)]??{};_0x4af5c3<_0x58ccf2&&(_0x58ccf2=_0x4af5c3),_0x1d5d49<_0x43ffaa&&(_0x43ffaa=_0x1d5d49);}_0x58ccf2!==0x1/0x0&&_0x43ffaa!==0x1/0x0&&(_0x3a5f74={'left':_0x58ccf2,'top':_0x43ffaa});}let _0x2d78c4=new Map();if(!_0x21df6c){for(let _0x55401a of _0x53c66f)_0x2d78c4['set'](_0x55401a[_0x58dd18(0x175)],_0xa48e11());}let _0x1d6696=[],_0x17663e=[];for(let _0x584ead of _0x53c66f){let {drawingId:_0x1789b5,transform:_0x138c7a,sheetTransform:_0x388762}=_0x584ead;if(!_0x138c7a||!_0x388762)continue;let _0x4bdc72=this['_updateTransform']({'transform':_0x138c7a,'sheetTransform':_0x388762},{'skeleton':_0x49f5a0,'range':_0x194951},{'skeleton':_0xced308,'range':_0x2448d6},_0x3a5f74);if(_0x21df6c){let {redos:_0x4e2ccf,undos:_0x3f27e6}=this['_generateCutPasteMutations']({'fromUnitId':_0x14342c,'fromSubUnitId':_0x88bc5,'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72});_0x1d6696['push'](..._0x4e2ccf),_0x17663e[_0x58dd18(0x11f)](..._0x3f27e6);continue;}let {redos:_0x3bd559,undos:_0x2a65e9}=this['_generateCopyPasteMutations']({'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72,'newDrawingId':_0x2d78c4[_0x58dd18(0x272)](_0x1789b5),'idMap':_0x2d78c4});_0x1d6696[_0x58dd18(0x11f)](..._0x3bd559),_0x17663e[_0x58dd18(0x11f)](..._0x2a65e9);}return{'redos':_0x1d6696,'undos':_0x17663e};}[_0x1a57e9(0x246)](_0x451046){const _0x2acb50=_0x1a57e9;let {fromUnitId:_0x3bdbfb,fromSubUnitId:_0x42fcc0,toUnitId:_0x2a2883,toSubUnitId:_0x1237f3,drawing:_0x44fdf3,newTransforms:_0x59dfb8}=_0x451046,_0x2b2b1b={..._0x44fdf3,'unitId':_0x2a2883,'subUnitId':_0x1237f3,'transform':_0x59dfb8[_0x2acb50(0x2b2)],'sheetTransform':_0x59dfb8[_0x2acb50(0x173)]};if(_0x2a2883===_0x3bdbfb&&_0x1237f3===_0x42fcc0){let {redo:_0x250d13,undo:_0x5390cb,objects:_0x445aa7}=this['_sheetDrawingService'][_0x2acb50(0x186)]([_0x2b2b1b]);return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x250d13,'objects':_0x445aa7}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x5390cb,'objects':_0x445aa7}}]};}else{let _0x4b5e10=this[_0x2acb50(0x1f8)][_0x2acb50(0x1f2)]([_0x44fdf3]),_0x3e3b44=this['_sheetDrawingService'][_0x2acb50(0x2e7)]([_0x2b2b1b]),_0x338c08=this[_0x2acb50(0x312)][_0x2acb50(0x29e)](_0x44fdf3['unitId'],_0x44fdf3[_0x2acb50(0x29a)],_0x44fdf3[_0x2acb50(0x175)]);if(!_0x338c08)return{'redos':[],'undos':[]};let _0x2adddb=_0x338c08[_0x2acb50(0x2b3)](),_0x2cc4f2=JSON['parse'](JSON[_0x2acb50(0xf4)](_0x338c08[_0x2acb50(0x2c4)]()));return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x4b5e10[_0x2acb50(0x116)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3[_0x2acb50(0x175)]}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19d)],'op':_0x3e3b44[_0x2acb50(0x116)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3[_0x2acb50(0x175)],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976['INSERT'],'op':_0x4b5e10[_0x2acb50(0x222)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3['drawingId'],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x3e3b44[_0x2acb50(0x222)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3['drawingId']}}]};}}[_0x1a57e9(0x189)](_0x31a069){const _0x2838a8=_0x1a57e9;let {toUnitId:_0x17382a,toSubUnitId:_0x27a99a,drawing:_0x4020cf,newTransforms:_0x56963f,newDrawingId:_0x28e715,idMap:_0x8f68f0}=_0x31a069,_0x21d413={..._0x4020cf,'unitId':_0x17382a,'subUnitId':_0x27a99a,'drawingId':_0x28e715,'transform':_0x56963f[_0x2838a8(0x2b2)],'sheetTransform':_0x56963f[_0x2838a8(0x173)]},{redo:_0x2c2f93,undo:_0x5b8896,objects:_0x85d5d0}=this['_sheetDrawingService'][_0x2838a8(0x2e7)]([_0x21d413]),_0x39f209=this[_0x2838a8(0x312)][_0x2838a8(0x29e)](_0x4020cf[_0x2838a8(0x264)],_0x4020cf[_0x2838a8(0x29a)],_0x4020cf[_0x2838a8(0x175)]);if(!_0x39f209)return{'redos':[],'undos':[]};let _0x49e081=_0x39f209[_0x2838a8(0x2b3)](),_0x3e4eb4=JSON['parse'](JSON[_0x2838a8(0xf4)](_0x39f209[_0x2838a8(0x2c4)]()));if(_0x3e4eb4[_0x2838a8(0x204)]){var _0x215103,_0x4af3c6;let _0x18130d=(_0x215103=_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)])==null?void 0x0:_0x215103[_0x2838a8(0x2e2)],_0x34cc5b=(_0x4af3c6=_0x3e4eb4['relation']['to'])==null?void 0x0:_0x4af3c6[_0x2838a8(0x2e2)],_0x4ad4fb=!_0x18130d||_0x8f68f0[_0x2838a8(0x32e)](_0x18130d),_0x5a8951=!_0x34cc5b||_0x8f68f0['has'](_0x34cc5b);_0x4ad4fb&&_0x18130d&&_0x3e4eb4['relation'][_0x2838a8(0x191)]?_0x3e4eb4['relation']['from']={..._0x3e4eb4['relation'][_0x2838a8(0x191)],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x18130d)}:_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)]=void 0x0,_0x5a8951&&_0x34cc5b&&_0x3e4eb4['relation']['to']?_0x3e4eb4[_0x2838a8(0x204)]['to']={..._0x3e4eb4[_0x2838a8(0x204)]['to'],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x34cc5b)}:_0x3e4eb4['relation']['to']=void 0x0;}return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976['INSERT'],'op':_0x2c2f93,'objects':_0x85d5d0}},{'id':_0x3b9418['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715,'shapeType':_0x49e081,'shapeData':_0x3e4eb4}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976[_0x2838a8(0xf9)],'op':_0x5b8896,'objects':_0x85d5d0}},{'id':_0x642eb['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715}}]};}['_updateTransform'](_0x428ea7,_0x4c6c32,_0x2dbf58,_0x5dcd33){const _0x10d333=_0x1a57e9;let {range:_0x258cb8,skeleton:_0x83e70d}=_0x4c6c32,{range:_0x39aefc,skeleton:_0x5c7342}=_0x2dbf58,{transform:_0x3b7dd5,sheetTransform:_0xe8d86b}=_0x428ea7,_0x19bd99={..._0x3b7dd5};if(_0x258cb8){let _0x40f0f6=_0x4da051(_0x83e70d,_0x258cb8),_0x5e70c8=_0x4da051(_0x5c7342,_0x39aefc);if(_0x40f0f6&&_0x5e70c8){let _0x5e5106=_0x5e70c8['startX']-_0x40f0f6[_0x10d333(0x161)],_0xca1993=_0x5e70c8['startY']-_0x40f0f6[_0x10d333(0x349)];_0x19bd99[_0x10d333(0x257)]=(_0x19bd99[_0x10d333(0x257)]??0x0)+_0x5e5106,_0x19bd99[_0x10d333(0x333)]=(_0x19bd99['top']??0x0)+_0xca1993;}}else{let _0x4c3e1b=_0x4da051(_0x5c7342,_0x39aefc);if(_0x5dcd33&&_0x4c3e1b){let _0x300089=(_0x19bd99[_0x10d333(0x257)]??0x0)-_0x5dcd33[_0x10d333(0x257)],_0xa6719d=(_0x19bd99[_0x10d333(0x333)]??0x0)-_0x5dcd33['top'];_0x19bd99['left']=_0x4c3e1b[_0x10d333(0x161)]+_0x300089,_0x19bd99['top']=_0x4c3e1b[_0x10d333(0x349)]+_0xa6719d;}else _0x19bd99['left']=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x161)],_0x19bd99[_0x10d333(0x333)]=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x349)];}return{'transform':_0x19bd99,'sheetTransform':_0x15b6d5(_0x19bd99,_0x5c7342)??_0xe8d86b};}};Hi=Z([X(0x0,_0x236d5e(_0x3bd31c)),X(0x1,_0x236d5e(_0x21ba5b)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x12abb0))],Hi);var Ui=class extends _0x38cc74{constructor(_0x3766f3,_0x519f35){const _0x4f7360=_0x1a57e9;super(_0x3766f3,_0x519f35),Y(this,_0x4f7360(0x29f),null),Y(this,'_index',null),Y(this,_0x4f7360(0xec),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x519f35&&this[_0x4f7360(0x2cd)](_0x519f35);}[_0x1a57e9(0x2e8)](){const _0x579dfb=_0x1a57e9;return{'unitId':this[_0x579dfb(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x579dfb(0x29f)]};}['setShapeProps'](_0x413fb6){const _0x477637=_0x1a57e9;_0x413fb6['shapeId']!==void 0x0&&(this[_0x477637(0x29f)]=_0x413fb6['shapeId']),_0x413fb6[_0x477637(0x264)]!==void 0x0&&(this[_0x477637(0xec)]=_0x413fb6['unitId']),_0x413fb6['subUnitId']!==void 0x0&&(this[_0x477637(0x283)]=_0x413fb6[_0x477637(0x29a)]),_0x413fb6[_0x477637(0x21d)]!==void 0x0&&(this[_0x477637(0x256)]=_0x413fb6['isStartConnectorPoint']),this['transformByState']({'width':_0x413fb6[_0x477637(0x1a3)],'height':_0x413fb6['height']});}[_0x1a57e9(0x1f5)](_0x1b8510){const _0x9ed54=_0x1a57e9;_0x20c694[_0x9ed54(0x2e4)](_0x1b8510,{'radius':_0x496afe['cxnPointRadius'],'fill':_0x496afe[_0x9ed54(0xea)],'stroke':_0x496afe[_0x9ed54(0x351)],'strokeWidth':_0x496afe[_0x9ed54(0x36b)],'evented':!0x0});}};let Wi=class extends _0x458cfa{constructor(_0x4f8421,_0xb97e47,_0x4ef7c9,_0xb4fa,_0x348e5d,_0x5e60ba,_0x3bac6e,_0x2528d7){const _0x544cca=_0x1a57e9;super(),this[_0x544cca(0x339)]=_0x4f8421,this[_0x544cca(0x27a)]=_0xb97e47,this[_0x544cca(0x12c)]=_0x4ef7c9,this[_0x544cca(0x218)]=_0xb4fa,this[_0x544cca(0x224)]=_0x348e5d,this[_0x544cca(0x35e)]=_0x5e60ba,this[_0x544cca(0x23e)]=_0x3bac6e,this[_0x544cca(0x1e9)]=_0x2528d7,Y(this,_0x544cca(0x1c7),void 0x0),Y(this,_0x544cca(0xec),void 0x0),Y(this,_0x544cca(0x283),void 0x0),Y(this,_0x544cca(0x13a),[]),Y(this,_0x544cca(0x26f),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x544cca(0x295),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,_0x544cca(0x156),!0x1),Y(this,_0x544cca(0x23c),!0x1),Y(this,_0x544cca(0x121),void 0x0),Y(this,_0x544cca(0x307),void 0x0),Y(this,_0x544cca(0x25c),null),this[_0x544cca(0x120)]();}[_0x1a57e9(0x120)](){const _0x210ec4=_0x1a57e9;this[_0x210ec4(0x180)](),this[_0x210ec4(0x287)]();}[_0x1a57e9(0x2ae)](){const _0x2de1ba=_0x1a57e9;if(!this[_0x2de1ba(0xec)]||!this['_subUnitId']||!this[_0x2de1ba(0x1c7)])return;let _0x47046a={'unitId':this[_0x2de1ba(0xec)],'subUnitId':this[_0x2de1ba(0x283)],'drawingId':this['_activeShapeId']},{transform:_0x1a1859}=this['_drawingManagerService']['getDrawingByParam'](_0x47046a);if(_0x1a1859)return{'left':_0x1a1859[_0x2de1ba(0x257)]||0x0,'top':_0x1a1859[_0x2de1ba(0x333)]||0x0,'width':_0x1a1859[_0x2de1ba(0x1a3)]||0x0,'height':_0x1a1859[_0x2de1ba(0x2f9)]||0x0,'flipX':_0x1a1859[_0x2de1ba(0xfd)]||!0x1,'flipY':_0x1a1859[_0x2de1ba(0x352)]||!0x1,'angle':_0x1a1859['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x2cddf1=_0x1a57e9;if(this[_0x2cddf1(0xec)]===void 0x0||this[_0x2cddf1(0x283)]===void 0x0||this[_0x2cddf1(0x1c7)]===void 0x0)return;let _0x3c0943=this[_0x2cddf1(0x12c)][_0x2cddf1(0x174)](this['_unitId']);if(!_0x3c0943||!_0x3c0943[_0x2cddf1(0x346)](_0x2bd201)['getCurrentSkeleton']())return;let {scene:_0x257784}=_0x3c0943,_0x36a637=this['_getDrawingRect']();if(!_0x36a637)return;let _0x4b4d76=this['_sheetsShapeService']['getShapeModel'](this[_0x2cddf1(0xec)],this[_0x2cddf1(0x283)],this[_0x2cddf1(0x1c7)]);if(!_0x4b4d76||!_0x3863ab(_0x4b4d76['getShapeType']()))return;let _0x7e5de0=_0x4b4d76[_0x2cddf1(0x126)]();if(_0x7e5de0[_0x2cddf1(0x321)]<0x2)return;let _0x4e3e1f=new _0x34939a(_0x36a637),_0x430d26=_0x7e5de0[0x0],_0x1a6ed6=_0x7e5de0[_0x7e5de0[_0x2cddf1(0x321)]-0x1],_0x43d1cd=_0x4e3e1f[_0x2cddf1(0x259)](_0x430d26),_0x353a85=_0x4e3e1f[_0x2cddf1(0x259)](_0x1a6ed6);this[_0x2cddf1(0x131)](_0x257784,{..._0x43d1cd},!0x0),this[_0x2cddf1(0x131)](_0x257784,{..._0x353a85},!0x1);}[_0x1a57e9(0x131)](_0x12ba27,_0x42e1d4,_0x497c9f){const _0x50c2c7=_0x1a57e9;if(this[_0x50c2c7(0x1c7)]===void 0x0||this[_0x50c2c7(0xec)]===void 0x0||this[_0x50c2c7(0x283)]===void 0x0)return;let _0x28d7a8='connector-handler-'+this[_0x50c2c7(0xec)]+'-'+this[_0x50c2c7(0x283)]+'-'+this[_0x50c2c7(0x1c7)]+'-'+(_0x497c9f?_0x50c2c7(0x1b0):_0x50c2c7(0x2d7)),_0x33d181=_0x12ba27[_0x50c2c7(0x14f)](_0x28d7a8);if(_0x33d181){_0x33d181[_0x50c2c7(0x20e)]({'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe[_0x50c2c7(0x1ee)]});return;}let _0x16e404=new Ui(_0x28d7a8,{'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe['cxnPointRadius'],'shapeId':this[_0x50c2c7(0x1c7)],'unitId':this[_0x50c2c7(0xec)],'subUnitId':this[_0x50c2c7(0x283)],'isStartConnectorPoint':_0x497c9f,'width':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'height':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x50c2c7(0x13a)]['push'](_0x16e404),this[_0x50c2c7(0x213)](_0x16e404,_0x12ba27,_0x497c9f),_0x12ba27[_0x50c2c7(0x199)](_0x16e404,_0x5ad001+0x1);}[_0x1a57e9(0x248)](_0x51ff91,_0x2c9b06){const _0x40f134=_0x1a57e9;var _0x8e908a;let _0x114d20={'x':0x0,'y':0x0};if(!_0x51ff91||!_0x2c9b06)return _0x114d20;let _0x2d523e=this['_renderManagerService']['getRenderUnitById'](_0x51ff91);if(!_0x2d523e||!_0x2d523e['with'](_0x2bd201)[_0x40f134(0x167)](_0x2c9b06))return _0x114d20;let _0x723bd9=_0x2d523e[_0x40f134(0x346)](_0x56e08d),_0x44a27f=_0x723bd9==null?void 0x0:_0x723bd9[_0x40f134(0x36e)]();if(!_0x44a27f)return _0x114d20;let _0x37a831=(_0x8e908a=this[_0x40f134(0x224)][_0x40f134(0x2d8)](_0x51ff91))==null?void 0x0:_0x8e908a['getSheetBySheetId'](_0x2c9b06);if(!_0x37a831)return _0x114d20;let _0x22c59c=_0x56ed68(_0x44a27f[_0x40f134(0x2b0)],_0x44a27f[_0x40f134(0x34c)],_0x2d523e[_0x40f134(0x21b)],_0x37a831);return _0x22c59c?{'x':_0x22c59c[_0x40f134(0x2b5)],'y':_0x22c59c['viewportScrollY']}:_0x114d20;}[_0x1a57e9(0x225)](_0x1df163,_0x1f9d6f){const _0x368fae=_0x1a57e9;var _0x445a7f;let _0x5b448e=(_0x445a7f=this['_univerInstanceService'][_0x368fae(0x2d8)](_0x1df163))==null?void 0x0:_0x445a7f[_0x368fae(0x1bc)](_0x1f9d6f);return(_0x5b448e==null?void 0x0:_0x5b448e[_0x368fae(0x242)]())??0x1;}['_handleConnectorPointerUp'](_0x25df7e,_0x817244,_0x2d462b,_0x4e4b4b,_0x35db2d){const _0xb92486=_0x1a57e9;this[_0xb92486(0x121)][_0xb92486(0x2b4)](),this[_0xb92486(0x307)][_0xb92486(0x2b4)](),this[_0xb92486(0x23e)][_0xb92486(0x270)]();let _0x11ce32=this[_0xb92486(0x25c)];this[_0xb92486(0x1e9)][_0xb92486(0x290)]();let _0x2ded0b=this[_0xb92486(0x248)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x13ce94=this[_0xb92486(0x225)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x548777={'x':_0x2d462b[_0xb92486(0x13c)]/_0x13ce94+_0x2ded0b['x'],'y':_0x2d462b['offsetY']/_0x13ce94+_0x2ded0b['y']},_0x1d0c48=_0x11ce32?_0x11ce32['worldPoint']:_0x548777,_0x1dd9c1=_0x4e4b4b?this[_0xb92486(0x295)][_0xb92486(0xfb)]():this[_0xb92486(0x295)][_0xb92486(0x13b)](),_0x3cf6f3=this[_0xb92486(0x295)]['getShapeType']();_0x1dd9c1?this[_0xb92486(0x30d)](_0x1dd9c1,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d):this[_0xb92486(0x2d0)](_0x817244,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d,_0x3cf6f3),this['_isConnecting']=!0x1,this[_0xb92486(0x23c)]=!0x1,this[_0xb92486(0x25c)]=null,_0x25df7e[_0xb92486(0x115)]();}[_0x1a57e9(0x2d0)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x22dc7a,_0x4e3c13,_0x549320){const _0x5b967b=_0x1a57e9;let _0x573ab5=_0x549320===_0x2d2111[_0x5b967b(0x1cd)]||_0x549320===_0x2d2111[_0x5b967b(0x302)],_0xeb7465=_0x25fb74?_0x58dbd0:_0x6020a3,_0x595b16=_0x25fb74?_0x6020a3:_0x58dbd0,_0x3f9526=this['_activeShapeModel'][_0x5b967b(0x126)](),_0x464fd1=_0x338f6a(this['_activeShapeModel']['getShapeType']()),_0x327be3=_0x34939a[_0x5b967b(0x300)](_0x3f9526,_0x464fd1),_0x42071f=_0x573ab5?_0x34939a[_0x5b967b(0x23d)](_0xeb7465,_0x595b16):_0x34939a[_0x5b967b(0x36a)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x327be3);_0x22dc7a?this[_0x5b967b(0x343)](_0x42071f,_0x22dc7a,_0x25fb74,_0x4e3c13):this[_0x5b967b(0x286)](_0x42071f,_0x4e3c13);}[_0x1a57e9(0x30d)](_0x20ac02,_0x48edad,_0x27b001,_0x430c1d,_0x174583){const _0x54997f=_0x1a57e9;let _0x285bce=this[_0x54997f(0x2c7)](_0x20ac02);if(!_0x285bce)return;let _0x5ea8d5=_0x430c1d?_0x430c1d[_0x54997f(0x10a)]:this[_0x54997f(0x1d4)](_0x285bce[_0x54997f(0x2e5)],_0x48edad),_0x5ae741;if(_0x430c1d){let _0x4f56b5=this['_drawingManagerService'][_0x54997f(0x223)]({'unitId':_0x430c1d[_0x54997f(0x264)],'subUnitId':_0x430c1d[_0x54997f(0x29a)],'drawingId':_0x430c1d['shapeId']});if(_0x4f56b5!=null&&_0x4f56b5[_0x54997f(0x2b2)]){let {left:_0x36584f=0x0,top:_0x1a57ac=0x0,width:_0xe3c249=0x0,height:_0x3f1f55=0x0,angle:_0x4d680b}=_0x4f56b5[_0x54997f(0x2b2)];_0x5ae741=_0x23a439({'left':_0x36584f,'top':_0x1a57ac,'width':_0xe3c249,'height':_0x3f1f55},_0x4d680b||0x0);}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};let _0x28de8b={'point':_0x48edad,'angle':_0x5ea8d5,'bounds':_0x5ae741},_0x59fb78=_0x27b001?_0x28de8b:_0x285bce,_0x1a453e=_0x27b001?_0x285bce:_0x28de8b,_0x32a0b5=this[_0x54997f(0x295)][_0x54997f(0x2b3)](),_0x1b475c=_0x22ac34(_0x59fb78,_0x1a453e,_0x32a0b5);this[_0x54997f(0x295)]['removeLinePoints']();let _0x11a588=_0x3225ee(_0x1b475c,_0x32a0b5);_0x430c1d?this[_0x54997f(0x171)](_0x11a588,_0x430c1d,_0x20ac02,_0x27b001,_0x174583):this['_executeConnectedRouteResizeCommand'](_0x11a588,_0x20ac02,_0x27b001,_0x174583);}[_0x1a57e9(0x343)](_0x456c0d,_0x2c3583,_0x91dd72,_0x409b26){const _0x256f34=_0x1a57e9;let _0x515575=this[_0x256f34(0x295)]['getShapeData']()[_0x256f34(0x204)],_0x2d872c={..._0x515575},_0x26c90f={'shapeId':_0x2c3583[_0x256f34(0x2e2)],'cxnIndex':_0x2c3583['cxnIndex']};_0x91dd72?_0x2d872c['from']=_0x26c90f:_0x2d872c['to']=_0x26c90f;let _0x4ff227=this[_0x256f34(0x295)][_0x256f34(0x2b3)](),_0x2b7c40=_0x3225ee(_0x456c0d[_0x256f34(0x1bf)],_0x4ff227),_0x4fe353={'unitId':this[_0x256f34(0xec)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x256f34(0x1c7)],'width':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x1a3)],'height':_0x456c0d['worldRect']['height'],'left':_0x456c0d['worldRect'][_0x256f34(0x257)],'top':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x333)],'flipX':_0x456c0d[_0x256f34(0x22c)]['flipX']||!0x1,'flipY':_0x456c0d[_0x256f34(0x22c)]['flipY']||!0x1,'newAdjustValues':_0x2b7c40['adjustValues'],'oldAdjustValues':_0x409b26,'oldRelation':_0x515575,'newRelation':_0x2d872c,'newLineType':_0x2b7c40['lineType'],'oldLineType':_0x4ff227};this[_0x256f34(0x27a)]['executeCommand'](_0x2a81d3['id'],_0x4fe353);}[_0x1a57e9(0x286)](_0x1fd29f,_0xe915ad){const _0x183a93=_0x1a57e9;let _0x586a81=this[_0x183a93(0x295)][_0x183a93(0x2b3)](),_0x313ca3=_0x3225ee(_0x1fd29f['worldPoints'],_0x586a81),_0x18e5c3={'unitId':this[_0x183a93(0xec)],'subUnitId':this[_0x183a93(0x283)],'shapeId':this[_0x183a93(0x1c7)],'width':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x1a3)],'height':_0x1fd29f[_0x183a93(0x22c)]['height'],'left':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x257)],'top':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x333)],'flipX':_0x1fd29f['worldRect']['flipX']||!0x1,'flipY':_0x1fd29f['worldRect'][_0x183a93(0x352)]||!0x1,'angle':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x10a)]||0x0,'newAdjustValues':_0x313ca3['adjustValues'],'oldAdjustValues':_0xe915ad,'newLineType':_0x313ca3[_0x183a93(0x1a1)],'oldLineType':_0x586a81};this[_0x183a93(0x27a)][_0x183a93(0x311)](_0x569950['id'],_0x18e5c3);}['_executeConnectedRouteConnectionCommand'](_0x15cec4,_0x3b017b,_0x4c51cc,_0x2dadb6,_0x20bc01){const _0x37f731=_0x1a57e9;let _0x4181b0=this[_0x37f731(0x295)][_0x37f731(0x2c4)]()[_0x37f731(0x204)],_0x9825cc={..._0x4181b0},_0x14e780={'shapeId':_0x3b017b[_0x37f731(0x2e2)],'cxnIndex':_0x3b017b[_0x37f731(0x31c)]};_0x2dadb6?(_0x9825cc[_0x37f731(0x191)]=_0x14e780,_0x9825cc['to']=_0x4c51cc):(_0x9825cc[_0x37f731(0x191)]=_0x4c51cc,_0x9825cc['to']=_0x14e780);let _0x12937f={'unitId':this[_0x37f731(0xec)],'subUnitId':this[_0x37f731(0x283)],'connectorShapeId':this['_activeShapeId'],'width':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x1a3)],'height':_0x15cec4['worldRect'][_0x37f731(0x2f9)],'left':_0x15cec4[_0x37f731(0x22c)]['left'],'top':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x333)],'flipX':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0xfd)]||!0x1,'flipY':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x352)]||!0x1,'oldAdjustValues':_0x20bc01,'newAdjustValues':_0x15cec4[_0x37f731(0x184)],'newLineType':_0x15cec4['lineType'],'rotation':_0x15cec4[_0x37f731(0x2be)],'oldRelation':_0x4181b0,'newRelation':_0x9825cc};this[_0x37f731(0x27a)][_0x37f731(0x311)](_0x2a81d3['id'],_0x12937f);}['_executeConnectedRouteResizeCommand'](_0x5bf289,_0x6ef81,_0x50223d,_0xd7221b){const _0x3543b9=_0x1a57e9;let _0x5327c2=this[_0x3543b9(0x295)][_0x3543b9(0x2c4)]()[_0x3543b9(0x204)],_0x32bdb1={};_0x50223d?(_0x32bdb1['to']=_0x6ef81,_0x32bdb1[_0x3543b9(0x191)]=void 0x0):(_0x32bdb1[_0x3543b9(0x191)]=_0x6ef81,_0x32bdb1['to']=void 0x0);let _0x5f1ff2={'unitId':this[_0x3543b9(0xec)],'subUnitId':this[_0x3543b9(0x283)],'connectorShapeId':this[_0x3543b9(0x1c7)],'width':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x1a3)],'height':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x2f9)],'left':_0x5bf289[_0x3543b9(0x22c)]['left'],'top':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x333)],'flipX':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0xfd)]||!0x1,'flipY':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x352)]||!0x1,'oldAdjustValues':_0xd7221b,'newAdjustValues':_0x5bf289[_0x3543b9(0x184)],'newLineType':_0x5bf289[_0x3543b9(0x1a1)],'rotation':_0x5bf289['rotation'],'oldRelation':_0x5327c2,'newRelation':_0x32bdb1};this[_0x3543b9(0x27a)][_0x3543b9(0x311)](_0x2a81d3['id'],_0x5f1ff2);}['_attachConnectorObjectEvent'](_0x385427,_0x35d1b2,_0x51a9c4){const _0x4964ad=_0x1a57e9;this[_0x4964ad(0x2db)](_0x3ee632(_0x385427[_0x4964ad(0x279)][_0x4964ad(0x18f)]((_0x48702c,_0x708c2f)=>{const _0x29827b=_0x4964ad;let _0x2795eb=_0x385427['getDrawingSearch']();if(this[_0x29827b(0x295)]=this[_0x29827b(0x35e)][_0x29827b(0x29e)](_0x2795eb['unitId'],_0x2795eb[_0x29827b(0x29a)],_0x2795eb[_0x29827b(0x175)]),!this[_0x29827b(0x295)])return;let _0x5334ab={};this[_0x29827b(0x295)]['getAdjustNames']()[_0x29827b(0x21e)](_0x178022=>{let _0x25a78e=this['_activeShapeModel']['getAdjustValueByName'](_0x178022);_0x25a78e!==void 0x0&&(_0x5334ab[_0x178022]=_0x25a78e);});let _0x652a12=this[_0x29827b(0x2ae)]();if(!_0x652a12)return;this[_0x29827b(0x26f)]={..._0x652a12};let _0x38e65a=new _0x34939a(this[_0x29827b(0x26f)]),_0x10a82a=_0x238087({'unitId':this[_0x29827b(0xec)],'subUnitId':this[_0x29827b(0x283)],'drawingId':this[_0x29827b(0x1c7)]}),_0x46ff7c=_0x35d1b2[_0x29827b(0x14f)](_0x10a82a);this[_0x29827b(0xfe)]=!0x0,_0x35d1b2[_0x29827b(0x2e3)](),this[_0x29827b(0x1e9)][_0x29827b(0x30c)](_0x35d1b2,this['_unitId'],this['_subUnitId'],this[_0x29827b(0x1c7)]),this[_0x29827b(0x25c)]=null;let _0x3c5bef=this[_0x29827b(0x295)][_0x29827b(0x126)](),_0x1076ee=_0x3c5bef[0x0],_0x61caed=_0x3c5bef[_0x3c5bef[_0x29827b(0x321)]-0x1],_0x192c1e=_0x51a9c4?_0x38e65a[_0x29827b(0x259)](_0x61caed):_0x38e65a['localToWorld'](_0x1076ee);this[_0x29827b(0x121)]=_0x35d1b2[_0x29827b(0x117)][_0x29827b(0x18f)]((_0x449bf7,_0xa9b62d)=>{const _0x23f021=_0x29827b;if(!this[_0x23f021(0xfe)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x23f021(0x23e)]['clearAdjustControls'](),this[_0x23f021(0x295)][_0x23f021(0x17b)](),!0x0);let _0x6a7be5=this[_0x23f021(0x248)](this[_0x23f021(0xec)],this[_0x23f021(0x283)]),_0x42653f=this[_0x23f021(0x225)](this['_unitId'],this[_0x23f021(0x283)]),_0x45a57e={'x':_0x449bf7[_0x23f021(0x13c)]/_0x42653f+_0x6a7be5['x'],'y':_0x449bf7['offsetY']/_0x42653f+_0x6a7be5['y']},_0x39c0ba=this[_0x23f021(0x1e9)][_0x23f021(0x309)](_0x45a57e);if(_0x39c0ba){let {shapeId:_0x9265b5,unitId:_0x261494,subUnitId:_0x1a7ba5}=_0x39c0ba;if(_0x9265b5&&_0x261494&&_0x1a7ba5){let _0x258d7a=_0x238087({'unitId':_0x261494,'subUnitId':_0x1a7ba5,'drawingId':_0x9265b5});_0x39c0ba['angle']=(_0x35d1b2[_0x23f021(0x14f)](_0x258d7a)['angle']||0x0)+_0x39c0ba[_0x23f021(0x10a)];}}this[_0x23f021(0x25c)]=_0x39c0ba;let _0x5c8b9a=_0x51a9c4?this[_0x23f021(0x295)][_0x23f021(0xfb)]():this[_0x23f021(0x295)]['getStartConnectInfo']();if(_0x5c8b9a){this[_0x23f021(0x159)](_0x5c8b9a,_0x45a57e,_0x51a9c4,_0x46ff7c,_0x385427);return;}this[_0x23f021(0x187)](_0x45a57e,_0x192c1e,_0x51a9c4,_0x46ff7c,_0x385427);}),this['_cxtHandlerPointerUp']=_0x35d1b2['onPointerUp$'][_0x29827b(0x18f)]((_0x949b53,_0x242d6f)=>{this['_handleConnectorPointerUp'](_0x35d1b2,_0x192c1e,_0x949b53,_0x51a9c4,_0x5334ab);}),_0x708c2f['stopPropagation']();})));}[_0x1a57e9(0xf6)](_0x2675cf,_0x49e806,_0x1a5bd2){const _0x5bb2c0=_0x1a57e9;let _0x59cc9a=this[_0x5bb2c0(0x35e)]['getBasicShapeRelation'](_0x2675cf,_0x49e806,_0x1a5bd2);if(!_0x59cc9a||_0x59cc9a[_0x5bb2c0(0x321)]===0x0)return;let _0x37f47a=this[_0x5bb2c0(0x12c)][_0x5bb2c0(0x174)](_0x2675cf);if(!_0x37f47a)return;let {scene:_0x58ed90}=_0x37f47a;for(let _0x499751 of _0x59cc9a){let _0x1d714f=_0x499751[_0x5bb2c0(0x217)],_0x1f843d=this['_sheetsShapeService']['getShapeModel'](_0x2675cf,_0x49e806,_0x1d714f);if(!_0x1f843d)continue;let _0x4f4643=_0x1f843d[_0x5bb2c0(0x13b)](),_0x44f273=_0x1f843d[_0x5bb2c0(0xfb)](),_0x398adb=(_0x4f4643==null?void 0x0:_0x4f4643[_0x5bb2c0(0x2e2)])===_0x1a5bd2,_0x3853b9=_0x238087({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f}),_0x39bb8a=_0x58ed90[_0x5bb2c0(0x14f)](_0x3853b9);if(!_0x39bb8a)continue;let _0x22e428=this[_0x5bb2c0(0x218)]['getDrawingByParam']({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f});_0x22e428!=null&&_0x22e428[_0x5bb2c0(0x2b2)]&&(_0x4f4643&&_0x44f273?this[_0x5bb2c0(0x29b)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x4f4643,_0x44f273,_0x39bb8a):this[_0x5bb2c0(0x202)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x398adb?_0x4f4643:_0x44f273,_0x398adb,_0x22e428,_0x39bb8a));}}[_0x1a57e9(0x29b)](_0x51d900,_0x649d08,_0x4eda6a,_0x11b348,_0x2c2686,_0x3b1252,_0x2c1ec1){const _0x4994ba=_0x1a57e9;let _0x3ff6ee=this[_0x4994ba(0xec)],_0x3182ee=this['_subUnitId'];this[_0x4994ba(0xec)]=_0x51d900,this['_subUnitId']=_0x649d08;let _0x5cb462=this[_0x4994ba(0x2c7)](_0x2c2686),_0x3a8344=this[_0x4994ba(0x2c7)](_0x3b1252);if(this['_unitId']=_0x3ff6ee,this[_0x4994ba(0x283)]=_0x3182ee,!_0x5cb462||!_0x3a8344)return;let _0x3f4c78=_0x11b348[_0x4994ba(0x2b3)](),_0x157cd6=_0x22ac34(_0x5cb462,_0x3a8344,_0x3f4c78);_0x157cd6&&_0x11b348[_0x4994ba(0xed)](_0x157cd6);let _0x2d359c=_0x3225ee(_0x157cd6,_0x3f4c78);_0x2d359c[_0x4994ba(0x1a1)]!==_0x3f4c78&&_0x11b348['changeShapeType'](_0x2d359c[_0x4994ba(0x1a1)]),_0x11b348['clearAdjustValue']();for(let [_0x3abec3,_0x10c6f4]of Object[_0x4994ba(0x262)](_0x2d359c['adjustValues']))_0x11b348[_0x4994ba(0x2dc)](_0x3abec3,_0x10c6f4);_0x11b348[_0x4994ba(0x216)]({'width':_0x2d359c['worldRect']['width'],'height':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x2f9)]}),_0x2c1ec1[_0x4994ba(0x20e)]({'flipX':_0x2d359c['worldRect'][_0x4994ba(0xfd)],'flipY':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x352)],'left':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x257)],'top':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x333)],'width':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x1a3)],'height':_0x2d359c['worldRect'][_0x4994ba(0x2f9)],'angle':_0x2d359c[_0x4994ba(0x2be)]}),_0x11b348['removeLinePoints']();}[_0x1a57e9(0x202)](_0x23bed2,_0x210183,_0x39b6cf,_0x161503,_0x24b07a,_0x3f692d,_0x233b3f,_0x307c7a){const _0x129491=_0x1a57e9;let _0x1e3657=this[_0x129491(0xec)],_0x454a46=this[_0x129491(0x283)];this[_0x129491(0xec)]=_0x23bed2,this[_0x129491(0x283)]=_0x210183;let _0x1212b1=this[_0x129491(0x2c7)](_0x24b07a);if(this[_0x129491(0xec)]=_0x1e3657,this[_0x129491(0x283)]=_0x454a46,!_0x1212b1)return;let {left:_0x2ab871=0x0,top:_0x4ee4d2=0x0,width:_0x34507e=0x0,height:_0x37da5a=0x0,flipX:_0x20088a=!0x1,flipY:_0x1fc8bb=!0x1}=_0x233b3f['transform'],_0x97568c=_0x161503[_0x129491(0x126)]();if(_0x97568c['length']<0x2)return;let _0x32b170=new _0x34939a({'left':_0x2ab871,'top':_0x4ee4d2,'width':_0x34507e,'height':_0x37da5a,'flipX':_0x20088a,'flipY':_0x1fc8bb}),_0x4f7160=_0x3f692d?_0x97568c[_0x97568c[_0x129491(0x321)]-0x1]:_0x97568c[0x0],_0x9c9fdd=_0x32b170['localToWorld'](_0x4f7160),_0x5d1157=_0x34939a[_0x129491(0x36a)](_0x9c9fdd,_0x1212b1[_0x129491(0x2e5)],!_0x3f692d);_0x307c7a[_0x129491(0x20e)]({'flipX':_0x5d1157[_0x129491(0x22c)][_0x129491(0xfd)],'flipY':_0x5d1157['worldRect'][_0x129491(0x352)],'left':_0x5d1157['worldRect'][_0x129491(0x257)],'top':_0x5d1157[_0x129491(0x22c)][_0x129491(0x333)],'width':_0x5d1157[_0x129491(0x22c)][_0x129491(0x1a3)],'height':_0x5d1157[_0x129491(0x22c)][_0x129491(0x2f9)],'angle':_0x5d1157[_0x129491(0x22c)]['angle']}),_0x307c7a[_0x129491(0x2bc)](!0x0);}[_0x1a57e9(0x226)](){const _0x48a267=_0x1a57e9;this[_0x48a267(0x13a)][_0x48a267(0x321)]!==0x0&&(this[_0x48a267(0x13a)]['forEach'](_0x376be2=>{const _0x4cbff9=_0x48a267;_0x376be2[_0x4cbff9(0x32d)]();}),this[_0x48a267(0x13a)]=[]);}['_registerDrawingMoveHandler'](){const _0x148eb7=_0x1a57e9;let _0x187cb5=this[_0x148eb7(0x224)]['getCurrentTypeOfUnit$'](_0x3d832c['UNIVER_SHEET']);this['disposeWithMe'](_0x187cb5[_0x148eb7(0x15e)](_0x1990de(_0x204cfe=>_0x204cfe?_0x204cfe[_0x148eb7(0x21c)][_0x148eb7(0x15e)](_0x1990de(_0x2319f3=>{const _0x4141e4=_0x148eb7;if(!_0x2319f3)return _0x3b0f55;let _0x5dab9b=_0x204cfe['getUnitId'](),_0x12e280=this['_renderManagerService'][_0x4141e4(0x174)](_0x5dab9b),_0x3a6b50=_0x12e280==null?void 0x0:_0x12e280[_0x4141e4(0x21b)];return _0x3a6b50?_0x36bcf9(_0x3a6b50):_0x3b0f55;})):_0x3b0f55))[_0x148eb7(0x23b)](_0x2626a7=>{const _0x2ecd59=_0x148eb7;let _0x6baecb=_0x2626a7['getTransformerByCreate']();this['disposeWithMe'](_0x2626a7[_0x2ecd59(0x117)][_0x2ecd59(0x18f)](_0xc97ed=>{const _0x5a004c=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x5a004c(0x1c7)]&&this[_0x5a004c(0x226)]();})),this[_0x2ecd59(0x2db)](_0x6baecb['changeStart$']['subscribe'](_0xa5edee=>{const _0x4fb68c=_0x2ecd59;let {objects:_0x44c2e3}=_0xa5edee;this[_0x4fb68c(0x226)](),_0x44c2e3!==null&&_0x44c2e3['size']===0x1&&_0x44c2e3[_0x4fb68c(0x193)]()[_0x4fb68c(0x18c)]()[_0x4fb68c(0x2de)]instanceof ar&&(this[_0x4fb68c(0x156)]=!0x0);})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x2d3)][_0x2ecd59(0x23b)](_0x4317b1=>{const _0x776f40=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x776f40(0x226)]();})),this[_0x2ecd59(0x2db)](_0x2626a7['onPointerUp$'][_0x2ecd59(0x18f)](()=>{const _0x2280e4=_0x2ecd59;this[_0x2280e4(0x156)]&&(this[_0x2280e4(0x156)]=!0x1,this[_0x2280e4(0x1be)]());})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x12a)][_0x2ecd59(0x23b)](()=>{const _0x520eb4=_0x2ecd59;this[_0x520eb4(0xec)]&&this[_0x520eb4(0x283)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x520eb4(0x223)]({'unitId':this[_0x520eb4(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x520eb4(0x1c7)]})&&(this[_0x520eb4(0x226)](),this[_0x520eb4(0x1be)]());}));}));}[_0x1a57e9(0x180)](){const _0x4a9297=_0x1a57e9;this[_0x4a9297(0x2db)](this[_0x4a9297(0x218)][_0x4a9297(0x268)][_0x4a9297(0x23b)](_0x4b1a2f=>{const _0x53e386=_0x4a9297;if(_0x4b1a2f[_0x53e386(0x321)]===0x1){let _0x5b9343=_0x4b1a2f[0x0];if(_0x5b9343['drawingType']===_0x3a939e[_0x53e386(0x35c)]){let _0x8d9189=this[_0x53e386(0x35e)][_0x53e386(0x29e)](_0x5b9343[_0x53e386(0x264)],_0x5b9343['subUnitId'],_0x5b9343[_0x53e386(0x175)]);if(_0x8d9189&&_0x3863ab(_0x8d9189[_0x53e386(0x2b3)]())){this['_activeShapeId']=_0x5b9343[_0x53e386(0x175)],this[_0x53e386(0xec)]=_0x5b9343['unitId'],this[_0x53e386(0x283)]=_0x5b9343[_0x53e386(0x29a)],this[_0x53e386(0x226)](),this[_0x53e386(0x1be)]();return;}}}this[_0x53e386(0x1c7)]=void 0x0,this[_0x53e386(0xec)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x53e386(0x226)]();})),this[_0x4a9297(0x2db)](this['_drawingManagerService'][_0x4a9297(0x1d3)][_0x4a9297(0x23b)](_0x516648=>{const _0x5e1d95=_0x4a9297;if(_0x516648['length']===0x1){var _0x2e12e2;let _0x202e2c=_0x516648[0x0],_0x15d7da=(_0x2e12e2=this[_0x5e1d95(0x218)]['getDrawingByParam'](_0x202e2c))==null?void 0x0:_0x2e12e2[_0x5e1d95(0x130)];_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&_0x202e2c[_0x5e1d95(0x175)]===this[_0x5e1d95(0x1c7)]?(this[_0x5e1d95(0x226)](),this[_0x5e1d95(0x1be)]()):!this[_0x5e1d95(0x1c7)]&&_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x202e2c[_0x5e1d95(0x264)],_0x202e2c[_0x5e1d95(0x29a)],_0x202e2c['drawingId']);}})),this['disposeWithMe'](this[_0x4a9297(0x218)][_0x4a9297(0x10f)]['subscribe'](_0x5e8ba4=>{const _0x4e2f8b=_0x4a9297;for(let _0x38e8b4 of _0x5e8ba4){let {drawingId:_0x5ea89d}=_0x38e8b4;if(this[_0x4e2f8b(0x1c7)]===_0x5ea89d){this[_0x4e2f8b(0x219)]();return;}}}));}[_0x1a57e9(0x159)](_0x3c639f,_0x4ffbeb,_0x44f3f8,_0x5dee21,_0x1d7c35){const _0x5d7d25=_0x1a57e9;var _0x5f2491;if(!this['_activeShapeModel'])return;let _0x58aa66=this[_0x5d7d25(0x2c7)](_0x3c639f);if(!_0x58aa66)return;let _0x193671=this[_0x5d7d25(0x25c)]?this['_currentConnectionTarget']['worldPoint']:_0x4ffbeb,_0x197cdf=this[_0x5d7d25(0x25c)]?this[_0x5d7d25(0x25c)][_0x5d7d25(0x10a)]:this['_calculateFreeEndpointAngle'](_0x58aa66['point'],_0x193671),_0x2c2a29;if(this['_currentConnectionTarget']){let _0x5a21dd=this[_0x5d7d25(0x218)][_0x5d7d25(0x223)]({'unitId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x264)],'subUnitId':this['_currentConnectionTarget'][_0x5d7d25(0x29a)],'drawingId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x2e2)]});if(_0x5a21dd!=null&&_0x5a21dd['transform']){let {left:_0x32108f=0x0,top:_0x4945ad=0x0,width:_0x1d93eb=0x0,height:_0x41c3ce=0x0,angle:_0x1e14dd}=_0x5a21dd[_0x5d7d25(0x2b2)];_0x2c2a29=_0x23a439({'left':_0x32108f,'top':_0x4945ad,'width':_0x1d93eb,'height':_0x41c3ce},_0x1e14dd||0x0);}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};let _0x1b85dc={'point':_0x193671,'angle':_0x197cdf,'bounds':_0x2c2a29},_0x5ad719=_0x44f3f8?_0x1b85dc:_0x58aa66,_0x5141ad=_0x44f3f8?_0x58aa66:_0x1b85dc,_0x4b91d4=this[_0x5d7d25(0x295)][_0x5d7d25(0x2b3)](),_0xb2598a=_0x22ac34(_0x5ad719,_0x5141ad,_0x4b91d4);_0xb2598a&&this['_activeShapeModel'][_0x5d7d25(0xed)](_0xb2598a);let _0x29bdba=_0x3225ee(_0xb2598a,_0x4b91d4);_0x29bdba[_0x5d7d25(0x1a1)]!==_0x4b91d4&&this[_0x5d7d25(0x295)]['changeShapeType'](_0x29bdba[_0x5d7d25(0x1a1)]);for(let [_0x1f7ed9,_0x396009]of Object[_0x5d7d25(0x262)](_0x29bdba[_0x5d7d25(0x184)]))this[_0x5d7d25(0x295)][_0x5d7d25(0x2dc)](_0x1f7ed9,_0x396009);this[_0x5d7d25(0x295)][_0x5d7d25(0x216)]({'width':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x1a3)],'height':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x2f9)]}),_0x5dee21[_0x5d7d25(0x20e)]({'flipX':_0x29bdba['worldRect']['flipX'],'flipY':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x352)],'left':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x257)],'top':_0x29bdba['worldRect']['top'],'width':_0x29bdba['worldRect'][_0x5d7d25(0x1a3)],'height':_0x29bdba['worldRect'][_0x5d7d25(0x2f9)],'angle':_0x29bdba[_0x5d7d25(0x2be)]}),_0x5dee21[_0x5d7d25(0x2bc)](!0x0);let _0x47ebf2=((_0x5f2491=this[_0x5d7d25(0x25c)])==null?void 0x0:_0x5f2491[_0x5d7d25(0x2a5)])??_0x4ffbeb;_0x1d7c35[_0x5d7d25(0x20e)]({'left':_0x47ebf2['x']-_0x496afe[_0x5d7d25(0x1ee)],'top':_0x47ebf2['y']-_0x496afe[_0x5d7d25(0x1ee)]});}[_0x1a57e9(0x187)](_0x2825ea,_0x302de6,_0x376479,_0x5a89ba,_0x31d117){const _0x2b4837=_0x1a57e9;var _0x4cfe3c,_0x3ac6be;let _0x2b255d=((_0x4cfe3c=this['_currentConnectionTarget'])==null?void 0x0:_0x4cfe3c[_0x2b4837(0x2a5)])??_0x2825ea,_0x30521f=_0x34939a['computeConnectorResizeLayout'](_0x302de6,_0x2b255d,_0x376479);_0x5a89ba[_0x2b4837(0x20e)]({'flipX':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0xfd)],'flipY':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x352)],'left':_0x30521f[_0x2b4837(0x22c)]['left'],'top':_0x30521f[_0x2b4837(0x22c)]['top'],'width':_0x30521f[_0x2b4837(0x22c)]['width'],'height':_0x30521f[_0x2b4837(0x22c)]['height'],'angle':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x10a)]});let _0x323f29=((_0x3ac6be=this[_0x2b4837(0x25c)])==null?void 0x0:_0x3ac6be[_0x2b4837(0x2a5)])??_0x2825ea;_0x31d117[_0x2b4837(0x20e)]({'left':_0x323f29['x']-_0x496afe[_0x2b4837(0x1ee)],'top':_0x323f29['y']-_0x496afe[_0x2b4837(0x1ee)]});}[_0x1a57e9(0x2c7)](_0x314663){const _0x112ba3=_0x1a57e9;if(!this['_unitId']||!this[_0x112ba3(0x283)])return null;let {shapeId:_0x1dacb3,cxnIndex:_0x3e4450}=_0x314663,_0x534005=this[_0x112ba3(0x35e)][_0x112ba3(0x29e)](this[_0x112ba3(0xec)],this[_0x112ba3(0x283)],_0x1dacb3);if(!_0x534005)return null;let _0x49696b=this['_drawingManagerService'][_0x112ba3(0x223)]({'unitId':this[_0x112ba3(0xec)],'subUnitId':this['_subUnitId'],'drawingId':_0x1dacb3});if(!(_0x49696b!=null&&_0x49696b[_0x112ba3(0x2b2)]))return null;let {left:_0x1db43f=0x0,top:_0x1da590=0x0,width:_0x3f3cc1=0x0,height:_0xbe82ef=0x0,flipX:_0x348fbd=!0x1,flipY:_0x30c09d=!0x1,angle:_0x277b48}=_0x49696b[_0x112ba3(0x2b2)];_0x534005[_0x112ba3(0x216)]({'width':_0x3f3cc1,'height':_0xbe82ef});let _0x59d19a=_0x534005[_0x112ba3(0x2a8)]()['find'](_0x579754=>_0x579754[_0x112ba3(0x2f6)]===_0x3e4450);if(!_0x59d19a)return null;let _0x182ad1=_0x348fbd?_0x3f3cc1-_0x59d19a['x']:_0x59d19a['x'],_0x37699f=_0x30c09d?_0xbe82ef-_0x59d19a['y']:_0x59d19a['y'];if(_0x277b48!==0x0&&_0x277b48!=null){let _0x29a263=_0x277b48*Math['PI']/0xb4,_0x55e375=Math[_0x112ba3(0x316)](_0x29a263),_0x413127=Math[_0x112ba3(0x334)](_0x29a263),_0x5d0e94=_0x3f3cc1/0x2,_0x207c20=_0xbe82ef/0x2,_0x364c1f=_0x182ad1-_0x5d0e94,_0x48d11e=_0x37699f-_0x207c20;_0x182ad1=_0x5d0e94+_0x364c1f*_0x55e375-_0x48d11e*_0x413127,_0x37699f=_0x207c20+_0x364c1f*_0x413127+_0x48d11e*_0x55e375;}_0x182ad1+=_0x1db43f,_0x37699f+=_0x1da590;let _0x1dda8f=_0x59d19a['ang']/0xea60;_0x348fbd&&(_0x1dda8f=0xb4-_0x1dda8f),_0x30c09d&&(_0x1dda8f=-_0x1dda8f),_0x1dda8f+=_0x277b48||0x0,_0x1dda8f=(_0x1dda8f%0x168+0x168)%0x168;let _0x5e0201=_0x23a439({'left':_0x1db43f,'top':_0x1da590,'width':_0x3f3cc1,'height':_0xbe82ef},_0x277b48||0x0);return{'point':{'x':_0x182ad1,'y':_0x37699f},'angle':_0x1dda8f,'bounds':_0x5e0201};}['_calculateFreeEndpointAngle'](_0x5c0bec,_0x293be0){const _0x4a0be0=_0x1a57e9;let _0x59d39c=_0x293be0['x']-_0x5c0bec['x'],_0x1ed864=_0x293be0['y']-_0x5c0bec['y'];return Math[_0x4a0be0(0x341)](_0x59d39c)>=Math['abs'](_0x1ed864)?_0x59d39c>=0x0?0xb4:0x0:_0x1ed864>=0x0?0x10e:0x5a;}[_0x1a57e9(0x219)](){const _0x1983f0=_0x1a57e9;this[_0x1983f0(0x1c7)]=void 0x0,this['_unitId']=void 0x0,this[_0x1983f0(0x283)]=void 0x0,this[_0x1983f0(0x226)]();}[_0x1a57e9(0x32d)](){const _0x368d8a=_0x1a57e9;this[_0x368d8a(0x226)](),super[_0x368d8a(0x32d)]();}};Wi=Z([X(0x1,_0x1b8f46),X(0x2,_0xebded9),X(0x3,_0x3398d1),X(0x4,_0x4b61f3),X(0x5,_0x236d5e(_0x434a53)),X(0x6,_0x236d5e(sr)),X(0x7,_0x236d5e(Vi))],Wi);let Gi=class extends _0x458cfa{constructor(_0x58d554,_0x5f0ee0,_0x3dcca6){const _0x5d5441=_0x1a57e9;super(),this[_0x5d5441(0x230)]=_0x58d554,this['_drawingManagerService']=_0x5f0ee0,this['_shapeRenderController']=_0x3dcca6,this[_0x5d5441(0x1dc)]();}[_0x1a57e9(0x1dc)](){const _0x3f5e29=_0x1a57e9;this[_0x3f5e29(0x2db)](this[_0x3f5e29(0x230)]['interceptor'][_0x3f5e29(0xf2)](this['_sheetPrintInterceptorService'][_0x3f5e29(0x103)]['getInterceptPoints']()[_0x3f5e29(0x1c2)],{'handler':(_0x52bfc0,_0x340f2a,_0xa7e243)=>{const _0x54000a=_0x3f5e29;var _0x487312;let {unitId:_0x5622d3,subUnitId:_0x275e7d,scene:_0x210be8,resourceCollector:_0x46a532}=_0x340f2a,_0x5c0a44=(_0x487312=this[_0x54000a(0x218)][_0x54000a(0x2fe)](_0x5622d3))==null?void 0x0:_0x487312[_0x275e7d];return _0x5c0a44==null||_0x5c0a44[_0x54000a(0x141)][_0x54000a(0x21e)](_0x451719=>{const _0x45c568=_0x54000a;let _0x5ad22e=_0x5c0a44[_0x45c568(0x214)][_0x451719];_0x5ad22e[_0x45c568(0x130)]===_0x3a939e[_0x45c568(0x35c)]&&!_0x5ad22e[_0x45c568(0x276)]&&this[_0x45c568(0x370)][_0x45c568(0x221)](_0x5ad22e,_0x210be8,{'resourceCollector':_0x46a532});}),_0xa7e243(_0x52bfc0);}}));}};Gi=Z([X(0x0,_0x236d5e(_0x3dbf35)),X(0x1,_0x3398d1),X(0x2,_0x236d5e(Q))],Gi);function _0x4a8a(_0x1be574,_0x29db7f){_0x1be574=_0x1be574-0xe7;const _0x2ae2d6=_0x2ae2();let _0x4a8ace=_0x2ae2d6[_0x1be574];return _0x4a8ace;}let Ki=class extends _0x458cfa{constructor(_0x30e1f9,_0x1526a5,_0x3f0d39){const _0x1651ac=_0x1a57e9;super(),this[_0x1651ac(0x27a)]=_0x30e1f9,this['_localeService']=_0x1526a5,this[_0x1651ac(0x1a9)]=_0x3f0d39,this[_0x1651ac(0x179)]();}[_0x1a57e9(0x179)](){const _0x272923=_0x1a57e9;this[_0x272923(0x2db)](this[_0x272923(0x27a)][_0x272923(0x200)](_0x39c0fe=>{const _0x469bc3=_0x272923;let _0x107eb0,_0x2d1c6f;if(_0x39c0fe['id']===_0x2f0bb2['id']||_0x39c0fe['id']===_0x457236['id']||_0x39c0fe['id']===_0x2a81d3['id']){let _0x228534=_0x39c0fe[_0x469bc3(0x374)];_0x107eb0=_0x228534[_0x469bc3(0x264)],_0x2d1c6f=_0x228534[_0x469bc3(0x29a)];}!_0x107eb0||!_0x2d1c6f||this[_0x469bc3(0x1a9)][_0x469bc3(0x255)]({'workbookTypes':[_0x386d00],'worksheetTypes':[_0x18e121]},_0x107eb0,_0x2d1c6f)||this[_0x469bc3(0x1a9)]['blockExecuteWithoutPermission'](this['_localeService']['t'](_0x469bc3(0x298)));}));}};function _0x2ae2(){const _0x2ebba2=['map','_popupMenuListener','4515qxTpHK','_sheetPermissionCheckController','draw','_imageIoService','getEditing','asObservable','targetShapeId','complete','start','rect','shapeText','changeStart$','_drawSimpleText','clip-','getImage','some','setConfig','sheet.command.update-shape-data','_drawRichText','clipByShape','getSheetBySheetId','FromArray','_addShapeConnectorHandlerObjects','worldPoints','invert','shape-adjust-point-','PRINTING_COMPONENT_COLLECT','COMMAND','OTHERS','symbol','_targetShapeId','_activeShapeId','_baseLeft','setSrcRect','_initMenu','_baseShapeLeft','srcRect','Line','sheets-shape-format-font-family-menu','_imageShapeClipController','#4285f4','animationEnabled','sheet.image-clip.shape-picker.component','update$','_calculateFreeEndpointAngle','_findNearestConnectionSite','UNIVER_DOC','registerRenderModule','vertical-center','BUTTON','getTransformer','hideContextualTab','_initPrinting','_initCommands','FlipHorizontalIcon','MoveUpIcon','_updateImageAdjValues','PictureFill','getUnitId','composeMatrix','_baseShapeWidth','_attachAdjustEvent','sheet.shape.picker.component','updateDocumentStyle','_drawShapeText','_sheetBasicShapeConnectionPointController','shape-editor-ui.arrange.forward','popup','connection-site-','getCurrentTypeOfUnit$','cxnPointRadius','_copyInfo','_getImagePrstGeom','_urlImageService','getBatchRemoveOp','clipTop','getRealBound','_draw','_setTransForm','applyPoint','_sheetDrawingService','sheets-shape-ui.ribbon.shape-format.arrange-backward','_drawingAddListener','_adjName','error','_initSheetChange','_shapeFormulaService','_currentUniverService','beforeCommandExecuted','SheetShapeTextEditorContainer','_moveConnectorWithShape','_disposePopups','relation','_lastEditingShapeKey','_sheetInterceptorService','stopPropagation','getParent','_getShapeAdjustPointListById','keys','2730WdaCLn','VIEW_MAIN_LEFT_TOP','_formulaShapes','transformByState','_renderWithCache','setHighlighted','getValue','getAdjustNames','_attachConnectorObjectEvent','data','_menuManagerService','updateContext','lineShapeId','_drawingManagerService','_reset','setPresentation','scene','activeSheet$','isStartConnectorPoint','forEach','getActualSize','visible$','renderDrawingShape','undo','getDrawingByParam','_univerInstanceService','_getZoomRatio','_clearShapeConnectorHandlerObjects','setCursor','sheets-shape-ui.imagePanel.crop.shape','shape-text-','trim','_disposed','worldRect','sheet.shape.object-list.panel','_clearPopups','fillImageSource','_sheetPrintInterceptorService','_initCopyPaste','parent','_configService','VIEW_MAIN_LEFT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','calcAdjValues','_sheetDrawingShapeRenderController','clone','_cxnIndex','endArrow','subscribe','_hasReset','computeStraightConnectorLayout','_sheetShapeAdjustController','MEDIA','_openShapeEditPanel','open','getZoomRatio','_shapes','fill','VIEW_MAIN_TOP','_generateCutPasteMutations','sheets-shape-ui.objectListPanel.open','_getScrollInfo','preValue','getConnectionRelation','_updateShapeAdjustControls','#bcbcbc','default','stroke','getCanvasElement','OPERATION','SELECTOR','cancelEditing','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shape-editor-ui.arrange.front','permissionCheckWithoutRange','_isStartConnectorPoint','left','canvas','localToWorld','clipHeight','render','_currentConnectionTarget','adjHandleStroke','gradientEndColor','_drawingType','isHorizontal','getAdjustInfoByName','entries','509398othYhC','unitId','copyType','CROSSHAIR','setFormulaPresentation','focus$','div','_getSceneAndTransformerByDrawingSearch','find','sheet.operation.apply-shape-quick-style','sheets-shape-ui.quickStyles','sheets-shape-ui','_baseDrawingRect','refreshAdjustControls','ShapeFormatSettingIcon','get','shape-editor-ui.toolbar.quickStyles','setShouldShowAdjust','_addControl','hidden','Image','_updateSrcRectByTransform','onPointerDown$','_commandService','_registerMoveHandler','getDrawingVisible','skeleton','_focusedDrawings','UUID','isHighlighted','_adjHandlerPointerUp','setCanUseShapeClip','_subUnitId','_applyFormulaAutoFitSize','visible','_executeResizeCommand','_registerDrawingMoveHandler','marginTop','setEditing','_createShapePopupMenu','VIEW_MAIN','description','isHit','horizontal','_initEvents','endConnectionDetection','_drawRichTextLayer','getPresentation','_sheetCanvasPopManagerService','_update','_activeShapeModel','create','syncExecuteCommand','sheets-shape-ui.permission.editErr','_registerComponents','subUnitId','_rerouteConnectorLine','shape-editor-ui.arrange.back','URL','getShapeModel','_shapeId','CUT','localeService','debounceRefreshControls','_findShapeAtPoint','isolated','worldPoint','_adjHandlerPointerMove','_initSelection','getConnectionSiteList','_clearControls','_insertingShapeKeys','onReady','6099291bjzCdp','getState','_getDrawingRect','strokeWidth','sheetViewStartRow','fillType','transform','getShapeType','unsubscribe','viewportScrollX','back','_sheetSkeletonService','onTransformChange$','animateFormulaPresentation','_editingParams$','clearAdjustControls','makeDirty','highlighted','rotation','_activeImageId','type','setCollapsedIds','_baseHeight','Medium','getShapeData','onDblclick$','_activeAdjustPointList','_getConnectPointInfo','dataModel','getConnectionInfo','mergeMenu','_shapeUpdateListener','sheets-shape-ui.ribbon.shape-format.arrange-forward','setShapeProps','_closeShapeEditPanel','_isHighlighted','_handleFreeEndpointPointerUp','_getShapeInfo','sheets-shape-ui.shape-format.style-ribbon-control','changing$','BottomIcon','axisAlignSheetTransform','sheets-shape-ui.formatShape','end','getUnit','resize','_getShapeAdjustInfosById','disposeWithMe','setAdjustValueByName','getAllUnitsForType','value','setPrstGeom','isLineShape','custom','shapeId','disableObjectsEvent','drawWith','point','3889071MjfpOz','getBatchAddOp','getDrawingSearch','showContextualTab','forward','TOP','_createControls','parse','front','sheets-shape-ui.ribbon.shape-format.formula-control','_isImagePointerDown','_shapeFloatingToolbarService','_iconManager','attachTransformerTo','bottom','updateDocumentDataMargin','index','sheet.operation.open-shape-object-list-panel','sheet.operation.close-sheet-shape-format-panel','height','_shapeEditPanelVersion','indexOf','constructor','shapeType','getDrawingDataForUnit','focusDrawing','getBentTypeFromPoints','_createCopyInfoByRange','StraightConnector1','currentAdjustValues','setPrstGeomAdjValues','sheet.command.menu-insert-shape','_connectionSiteObjects','_cxtHandlerPointerUp','decorate','updateConnectionDetection','prstGeomAdjValues','resourceCollector','startConnectionDetection','_handleConnectedEndpointPointerUp','226712YOErJq','isInGroup','viewBound','executeCommand','_shapeService','name','_sidebarService','shape-editor-ui.toolbar.changeShape','cos','selectable','_formulaAnimation','defineProperty','onPointerUp$','reduce','cxnIndex','editingParams$','_getOrCreateShapeModel','shapeModel','_currentScene','length','_activeTargetShapeId','slice','activeAnObject','_drawingRenderService','unregister','resetCursor','_isStartAdjusting','_resetState','src','registerCommand','_clearShapeAdjustControls','dispose','has','getAutoFitPresentations','_getImageDrawingInfo','sheets-shape-ui.flipVertical','_isOpenedShapeEditPanel','top','sin','getShapeDataById','@univerjs-pro/sheets-shape-ui','DEFAULT_PASTE','_init','_context','sheets-shape-ui.ribbon.shape-format.text-control','getObject','isRichText','getAdjustValueByName','sqrt','fontFamily','_groupCopyPasteController','abs','ShapeIcon','_executeConnectionCommand','initShapePopupMenu','Arrow','with','_highlightedSiteIndex','multiply','startY','buildClipPath','sheet.menu.shape.flip-horizontal','sheetViewStartColumn','transformForAngle','getShapeTypeById','setOnSavingEditorData','onSavingEditorData$','cxnPointStroke','flipY','setFallbackVisible','getSelectedObjectMap','_getConnectionSiteAngle','updateShapeFillImage','LEFT','completeEditing','_clipService','getDrawingData','_componentManager','DRAWING_SHAPE','contentVerticalOffset','_sheetsShapeService','_activeAdjustInfo','refreshShapeFillImage','_registerFocusChangeHandler','clip-adj-','_baseShapeTop','_createShapeAdjustControls','5wVVFkx','add$','formulaPresentation','object','getSheetId','computeConnectorResizeLayout','cxnPointStrokeWidth','sheets-shape-text-','actions','getCurrentScrollState','isEditing','_shapeRenderController','string','TopmostIcon','adjHandleSize','params','_isShouldShowDrawingShapeAdjust','getSkeletonParam','translateWithPrecision','cxnPointFill','filter','_unitId','updateLinePoints','shapeData','shapeKey','_shapeTextEditingService','setFillImage','intercept','UNIVER_SHEET','stringify','_draggingConnectorId','_handleBasicShapeUpdateConnectorLineShape','sheet.shape.text.float-menu','startArrow','REMOVE','function','getEndConnectInfo','_loadShapePictureFill','flipX','_isConnecting','ancestorTransform','attachPopupToObject','sectionFloating','None','interceptor','_props','_commandExecutedListener','shape-editor-ui.arrange.backward','_visible','clip','_updateAdjustControlPositions','angle','_hide','115674jVbmMu','getUnitType','_showConnectionSites','remove$','getOwnPropertyDescriptor','isArray','vertical','getTransformerByCreate','_generatePasteMutations','enableObjectsEvent','redo','onPointerMove$','_baseShapeHeight','39NNAdoF','size','_registerOperations','isHitLine','_registerGroupFeaturePasteHook','prstGeom','push','_initialize','_cxtHandlerPointerMove','_contextService','pick','sheets-shape-ui.shape-format.quick-style-gallery','save','getConnectorLinePoints','RIBBON','_clearConnectionSites','SolidFill','changeEnd$','backward','_renderManagerService','calculate','_activeShapeAdjustPointList','univer-box-border\x20univer-px-4\x20univer-text-sm','drawingType','_addShapeConnectorHandlerObject','extraProps','setContextValue','registerClipDelegate','_baseWidth','_ribbonService','actualHeight','_activeShapeInfo','addClipboardHook','_connectorObjects','getStartConnectInfo','offsetX','_transformCalculateSrcRect','wrapStrategy','onCommandExecuted','reverse','order','classType','2905688bTmTKM','sheets-shape-ui.flipHorizontal','_baseTop','1.0.0-beta.1','oKey','_loadAndSetImage','objects','contentHeight','sheets-shape-ui.config','GROUP','includes','Rect','getObjectIncludeInGroup','_injector','sheets-shape-contextual-ribbon','delete','pushUndoRedo','PaintIcon','close','_isDrawingShapePointDown','packageName','sheet.shape.edit.panel','_handleConnectedEndpointMove','sheets-shape-ui.ribbon.shape-format.style-control','_localeService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getFocusDrawings','pipe','clearControl$','interceptCommand','startX','DRAWING_IMAGE','_config','text','version','sheet.shape.floating-toolbar','getSkeleton','register','#1a73e8','getCurrentSkeleton','beginPath','getShapeTextRect','getMatrix','featurePluginUpdateNotification','pluginName','getVisible','_executeConnectedRouteConnectionCommand','presetId','sheetTransform','getRenderUnitById','drawingId','_transform','_sidebarDisposable','onerror','_initPermission','_sheetClipboardService','clearAdjustValue','_formulaKey','_initializedShapePopupMenu','_onSavingEditorData$','extensionGroups','_registerDrawingFocusChangeHandler','set','setShapeData','getScene','adjustValues','onSteady','getBatchUpdateOp','_handleFreeEndpointMove','20VNmduY','_generateCopyPasteMutations','adjName','canvasElement','next','getDrawingPoints','add','subscribeEvent','iterator','from','formulaBinding','values','refreshFormulaPresentation','viewportScrollY','title','doc','flatMap','addObject','UPDATE','_insertShapes','sheet.operation.open-sheet-shape-format-panel','INSERT','getActiveSheet','FlipVerticalIcon','_registerImageShapeClipDelegate','lineType','getShapeTextData','width','SolidLine','restore'];_0x2ae2=function(){return _0x2ebba2;};return _0x2ae2();}Ki=Z([X(0x0,_0x236d5e(_0x1b8f46)),X(0x1,_0x236d5e(_0x1d78e7)),X(0x2,_0x236d5e(_0x2c3559))],Ki);let qi=class extends _0x458cfa{constructor(_0x28a5b7,_0x2a761d,_0x32b088,_0x277a10,_0x32b082,_0x32bf4d,_0x23336d,_0x3e2358,_0x4a6661,_0x34fd18,_0x561d07){const _0x4120a6=_0x1a57e9;super(),this[_0x4120a6(0x224)]=_0x28a5b7,this[_0x4120a6(0x314)]=_0x2a761d,this['_menuManagerService']=_0x32b088,this[_0x4120a6(0x35e)]=_0x277a10,this[_0x4120a6(0x15b)]=_0x32b082,this['_commandService']=_0x32bf4d,this[_0x4120a6(0x218)]=_0x23336d,this[_0x4120a6(0x293)]=_0x3e2358,this[_0x4120a6(0x122)]=_0x4a6661,this[_0x4120a6(0x12c)]=_0x34fd18,this[_0x4120a6(0xf0)]=_0x561d07,Y(this,_0x4120a6(0x177),null),Y(this,_0x4120a6(0x138),null),Y(this,_0x4120a6(0x332),!0x1),Y(this,_0x4120a6(0x2fa),0x0),Y(this,_0x4120a6(0x17d),new Set()),Y(this,_0x4120a6(0x203),[]),this[_0x4120a6(0x1ca)](),this['disposeWithMe'](this['_univerInstanceService'][_0x4120a6(0x1ed)](_0x3d832c[_0x4120a6(0xf3)])['subscribe'](_0x4ad682=>{const _0x3659f5=_0x4120a6;if(!_0x4ad682){var _0x3cef6a;(_0x3cef6a=this[_0x3659f5(0x177)])==null||_0x3cef6a[_0x3659f5(0x32d)]();return;}this[_0x3659f5(0x28a)](_0x4ad682);})),this[_0x4120a6(0x11b)](),this['initShapePopupMenu'](),this[_0x4120a6(0x2db)](this[_0x4120a6(0xf0)][_0x4120a6(0x31d)][_0x4120a6(0x23b)](_0x7b4199=>{const _0x4b47a2=_0x4120a6;_0x7b4199&&this[_0x4b47a2(0x22e)]();}));}[_0x1a57e9(0x1ca)](){const _0x882ac9=_0x1a57e9;this[_0x882ac9(0x215)]['mergeMenu'](hi);}[_0x1a57e9(0x344)](){const _0x283310=_0x1a57e9;this[_0x283310(0x224)][_0x283310(0x2dd)](_0x3d832c['UNIVER_SHEET'])['forEach'](_0x40e1f0=>this[_0x283310(0x28a)](_0x40e1f0));}[_0x1a57e9(0x2d1)](_0x48ee80,_0x1acb3b,_0x3b07fd){const _0xefd8a2=_0x1a57e9;let _0x3d0594=this[_0xefd8a2(0x35e)][_0xefd8a2(0x34e)](_0x48ee80,_0x1acb3b,_0x3b07fd),_0x23a4fb=this[_0xefd8a2(0x35e)][_0xefd8a2(0x335)](_0x48ee80,_0x1acb3b,_0x3b07fd);return _0x3d0594!==void 0x0&&_0x23a4fb!==void 0x0?{'shapeData':_0x23a4fb,'shapeId':_0x3b07fd,'shapeType':_0x3d0594,'unitId':_0x48ee80,'subUnitId':_0x1acb3b,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x1a57e9(0x28a)](_0x580e0d){const _0x136826=_0x1a57e9;if(!_0x580e0d)return;let _0x3f4549=_0x580e0d[_0x136826(0x1e2)]();this[_0x136826(0x12c)]['has'](_0x3f4549)&&!this[_0x136826(0x17d)][_0x136826(0x32e)](_0x3f4549)&&(this[_0x136826(0x1a7)](_0x3f4549),this[_0x136826(0x17d)][_0x136826(0x18e)](_0x3f4549));}[_0x1a57e9(0x22e)](){const _0x3897a5=_0x1a57e9;this['_disposePopups'][_0x3897a5(0x21e)](_0x51b2f3=>_0x51b2f3[_0x3897a5(0x32d)]()),this[_0x3897a5(0x203)][_0x3897a5(0x321)]=0x0;}['_popupMenuListener'](_0x1b2546){const _0x1c671e=_0x1a57e9;var _0x261133;let _0x2ea426=(_0x261133=this[_0x1c671e(0x12c)][_0x1c671e(0x174)](_0x1b2546))==null?void 0x0:_0x261133[_0x1c671e(0x21b)],_0x5a7ca8=_0x2ea426==null?void 0x0:_0x2ea426[_0x1c671e(0x113)]();!_0x2ea426||!_0x5a7ca8||(this[_0x1c671e(0x2db)](_0x5a7ca8['createControl$'][_0x1c671e(0x23b)](()=>{const _0x1f3519=_0x1c671e;let _0x1248ee=_0x5a7ca8[_0x1f3519(0x354)]();if(this[_0x1f3519(0x22e)](),this[_0x1f3519(0x332)]||_0x1248ee[_0x1f3519(0x11a)]>0x1)return;let _0x595899=_0x1248ee[_0x1f3519(0x193)]()[_0x1f3519(0x18c)]()[_0x1f3519(0x2de)];if(!_0x595899)return;let _0x42631f=this[_0x1f3519(0x218)]['getDrawingOKey'](_0x595899[_0x1f3519(0x147)]);if(!_0x42631f||_0x42631f[_0x1f3519(0x130)]!==_0x3a939e[_0x1f3519(0x35c)])return;let {unitId:_0x362e4e,subUnitId:_0x1600e2,drawingId:_0x2e8647,drawingType:_0x190efb}=_0x42631f,_0x75975a=this[_0x1f3519(0x2d1)](_0x362e4e,_0x1600e2,_0x2e8647);if(!_0x75975a)return;this['_contextService']['setContextValue'](_0x4f1989,!0x0);let _0x56826d=this[_0x1f3519(0x293)][_0x1f3519(0x100)](_0x595899,{'componentKey':fr,'direction':_0x1f3519(0x1d8),'offset':[0x0,_0x295cb8],'extraProps':{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647,'drawingType':_0x190efb,'shapeType':_0x75975a['shapeType'],'shapeData':_0x75975a[_0x1f3519(0xee)]}});this['_disposePopups']['push'](this[_0x1f3519(0x2db)](_0x56826d)),this[_0x1f3519(0x218)][_0x1f3519(0x15d)]()[_0x1f3519(0x26b)](_0x1ef017=>_0x1ef017['unitId']===_0x362e4e&&_0x1ef017[_0x1f3519(0x29a)]===_0x1600e2&&_0x1ef017[_0x1f3519(0x175)]===_0x2e8647)||this[_0x1f3519(0x218)][_0x1f3519(0x2ff)]([{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647}]);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x15f)]['subscribe'](()=>{const _0x1e0eb6=_0x1c671e;this[_0x1e0eb6(0x22e)](),this[_0x1e0eb6(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1e0eb6(0x218)][_0x1e0eb6(0x2ff)](null);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x2d3)][_0x1c671e(0x23b)](()=>{this['_clearPopups']();})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x1b3)]['subscribe'](()=>{this['_clearPopups']();})));}[_0x1a57e9(0x11b)](){const _0x17a3bb=_0x1a57e9;this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x27a)][_0x17a3bb(0x13f)](_0x308cd3=>{const _0x51237c=_0x17a3bb;if(_0x308cd3['id']===_r['id']){let {unitId:_0x4bda48,subUnitId:_0x3425f4,drawingId:_0x2b4c7b}=_0x308cd3[_0x51237c(0x374)];this['_shapeEditPanelVersion']+=0x1,this[_0x51237c(0x138)]=this['_getShapeInfo'](_0x4bda48,_0x3425f4,_0x2b4c7b),this[_0x51237c(0x22e)](),this[_0x51237c(0x240)]();}if(_0x308cd3['id']===vi['id']&&(this[_0x51237c(0x138)]=null,this[_0x51237c(0x2ce)]()),_0x308cd3['id']===_0x926363['id']){let {unitId:_0x4eea3e,subUnitId:_0x2de549,shapeId:_0x4eeaa6}=_0x308cd3[_0x51237c(0x374)];if(this[_0x51237c(0x138)]&&this[_0x51237c(0x138)][_0x51237c(0x2e2)]===_0x4eeaa6){let _0x43bfc5=this['_getShapeInfo'](_0x4eea3e,_0x2de549,_0x4eeaa6);_0x43bfc5&&(this[_0x51237c(0x2fa)]+=0x1,_0x43bfc5[_0x51237c(0x165)]=this[_0x51237c(0x2fa)],this[_0x51237c(0x138)]=_0x43bfc5,this[_0x51237c(0x332)]&&this['_openShapeEditPanel']());}}})),this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x218)][_0x17a3bb(0x268)][_0x17a3bb(0x23b)](_0x2909a0=>{const _0x319ff4=_0x17a3bb;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x2909a0[_0x319ff4(0x321)]===0x0){this[_0x319ff4(0x138)]=null,this[_0x319ff4(0x2ce)]();return;}if(_0x2909a0['length']===0x1&&_0x2909a0[0x0][_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]&&(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0]['drawingId']),this[_0x319ff4(0x138)])){this[_0x319ff4(0x240)]();return;}let _0x15d536=_0x2909a0['filter'](_0x2ea4dd=>_0x2ea4dd[_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]);if(_0x2909a0[_0x319ff4(0x321)]>0x1&&_0x15d536[_0x319ff4(0x321)]===_0x2909a0[_0x319ff4(0x321)]){if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this['_getShapeInfo'](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0][_0x319ff4(0x29a)],_0x2909a0[0x0][_0x319ff4(0x175)]),this[_0x319ff4(0x138)]){this[_0x319ff4(0x240)]();return;}}else{if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0]['unitId'],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0][_0x319ff4(0x175)]),this['_activeShapeInfo']){this[_0x319ff4(0x138)]['disableShapeOption']=!0x0,this[_0x319ff4(0x240)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1a57e9(0x240)](){const _0x41c36b=_0x1a57e9;this[_0x41c36b(0x138)]&&(this[_0x41c36b(0x177)]=this['_sidebarService'][_0x41c36b(0x241)]({'id':ur,'header':{'title':this[_0x41c36b(0x15b)]['t'](_0x41c36b(0x2d6))},'width':0x184,'children':{'label':ur,...this[_0x41c36b(0x138)]},'onClose':()=>{const _0x1c3a16=_0x41c36b;this['_drawingManagerService'][_0x1c3a16(0x2ff)](null),this[_0x1c3a16(0x122)][_0x1c3a16(0x133)](_0x4f1989,!0x1),this[_0x1c3a16(0x177)]=null;}}),this[_0x41c36b(0x332)]=!0x0);}['_closeShapeEditPanel'](){const _0x1c8bdd=_0x1a57e9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x1c8bdd(0x314)][_0x1c8bdd(0x155)](ur),this['_sidebarDisposable']=null,this[_0x1c8bdd(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1c8bdd(0x218)][_0x1c8bdd(0x2ff)](null);}};qi=Z([X(0x0,_0x4b61f3),X(0x1,_0x236d5e(_0xaf9369)),X(0x2,_0x430f90),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x1d78e7)),X(0x5,_0x1b8f46),X(0x6,_0x3398d1),X(0x7,_0x236d5e(_0x5d6395)),X(0x8,_0x593690),X(0x9,_0xebded9),X(0xa,_0x236d5e(Oi))],qi);let $=class extends _0x50de7b{constructor(_0x2797b0=yi,_0x32bec8,_0x4c440c,_0x33f65a,_0x3bb629){const _0x4b7ecb=_0x1a57e9;super(),this[_0x4b7ecb(0x163)]=_0x2797b0,this[_0x4b7ecb(0x150)]=_0x32bec8,this[_0x4b7ecb(0x27a)]=_0x4c440c,this[_0x4b7ecb(0x233)]=_0x33f65a,this['_renderManagerService']=_0x3bb629;let {..._0x75827e}=_0x5e4367({},yi,this['_config']);this[_0x4b7ecb(0x233)][_0x4b7ecb(0x1b8)](_0x4b7ecb(0x14b),_0x75827e),this[_0x4b7ecb(0x1dd)]();}['onRendered'](){const _0x119261=_0x1a57e9;_0xaddeba(this[_0x119261(0x150)],[[qi],[Ri],[Q],[Gi]]);}[_0x1a57e9(0x185)](){const _0xa26d26=_0x1a57e9;this[_0xa26d26(0x150)]['get'](qi)[_0xa26d26(0x344)]();}[_0x1a57e9(0x2ab)](){const _0x1ee84e=_0x1a57e9;[[Vi],[sr],[Hi]]['forEach'](_0x56e909=>this[_0x1ee84e(0x150)][_0x1ee84e(0x18e)](_0x56e909)),_0xaddeba(this[_0x1ee84e(0x150)],[[Hi],[sr]]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Vi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_SHEET'],[Mi]),this[_0x1ee84e(0x12c)][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Wi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Ii]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_DOC'],[Li]);}['onStarting'](){const _0x3d52ee=_0x1a57e9;this[_0x3d52ee(0x150)][_0x3d52ee(0x18e)]([ji]),this[_0x3d52ee(0x150)][_0x3d52ee(0x272)](ji);let _0x2b3ba8=this['_injector'];[[qi],[Ri],[Q],[Gi],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]][_0x3d52ee(0x21e)](_0x5e8190=>_0x2b3ba8[_0x3d52ee(0x18e)](_0x5e8190)),_0xaddeba(this['_injector'],[[qi],[Ri],[Q],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]]);}['_initCommands'](){const _0x3cd874=_0x1a57e9;[lr,Qn,vi,_r,gr,cr,yr,br][_0x3cd874(0x21e)](_0x42bcfc=>this[_0x3cd874(0x2db)](this[_0x3cd874(0x27a)][_0x3cd874(0x32b)](_0x42bcfc)));}};Y($,_0x1a57e9(0x2c0),_0x3d832c['UNIVER_SHEET']),Y($,_0x1a57e9(0x16f),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x1a57e9(0x157),gi),Y($,_0x1a57e9(0x165),_i),$=Z([_0x2c3830(_0x3cc57f,_0x1ed1eb,_0x915f2c,_0x1d6e19,_0x6f6e81,_0x5e916d,_0xff5f03,_0x1297cb,_0x1c59b7,_0x52f323,_0x30de56,_0x13359c,_0x478c15),X(0x1,_0x236d5e(_0x8c9613)),X(0x2,_0x1b8f46),X(0x3,_0x7f334e),X(0x4,_0xebded9)],$);export{hi as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};