@univerjs-pro/sheets-shape-ui 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +5 -0
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +5 -0
- package/lib/types/commands/command/shape-doc-align.command.d.ts +10 -0
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +18 -0
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +5 -0
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +9 -0
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +9 -0
- package/lib/types/commands/operations/actvie-drawing-operation.d.ts +2 -0
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/format-painter.controller.d.ts +10 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +21 -6
- package/lib/types/controllers/sheets-shape-ui.controller.d.ts +126 -0
- package/lib/types/mobile-plugin.d.ts +1 -3
- package/lib/types/view-model/shape-data-model.d.ts +6 -0
- package/lib/types/views/ShapeOptions.d.ts +30 -0
- package/lib/types/views/object-list-panel/MobileSheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +5 -1
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +11 -0
- package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
- package/lib/types/views/shape-text-editor/Editor.d.ts +11 -0
- package/lib/types/views/shape-text-editor/ShapePositionWrapper.d.ts +15 -0
- package/lib/types/views/shape-text-editor/hooks/use-shape-position.d.ts +37 -0
- package/lib/types/views/shapes.d.ts +58 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -21
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5db5d0=_0x29aa;(function(_0x57e97a,_0x29690c){const _0x2122ae=_0x29aa,_0x22aeb6=_0x57e97a();while(!![]){try{const _0x4d0814=parseInt(_0x2122ae(0x372))/0x1+parseInt(_0x2122ae(0x10b))/0x2*(-parseInt(_0x2122ae(0x2da))/0x3)+-parseInt(_0x2122ae(0x36f))/0x4*(parseInt(_0x2122ae(0x1b7))/0x5)+-parseInt(_0x2122ae(0x347))/0x6+-parseInt(_0x2122ae(0x107))/0x7*(parseInt(_0x2122ae(0x2f3))/0x8)+parseInt(_0x2122ae(0x348))/0x9+-parseInt(_0x2122ae(0x22a))/0xa*(-parseInt(_0x2122ae(0x288))/0xb);if(_0x4d0814===_0x29690c)break;else _0x22aeb6['push'](_0x22aeb6['shift']());}catch(_0x288579){_0x22aeb6['push'](_0x22aeb6['shift']());}}}(_0x4052,0xab4d4),Object[_0x5db5d0(0x1af)](exports,Symbol[_0x5db5d0(0x206)],{'value':_0x5db5d0(0x285)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0xef507d,_0x3966d1){const _0x1412c1=_0x5db5d0;let _0x7f8428={};for(let _0x5712ec of Object['keys'](_0x3966d1)){let _0x30c8e4=_0x3966d1[_0x5712ec],_0x10ec61=_0xef507d[_0x5712ec];if(_0x30c8e4!==void 0x0){if(_0x10ec61===void 0x0){_0x7f8428[_0x5712ec]=void 0x0;continue;}typeof _0x30c8e4==_0x1412c1(0x23b)&&_0x30c8e4&&!Array[_0x1412c1(0x335)](_0x30c8e4)&&typeof _0x10ec61=='object'&&_0x10ec61&&!Array[_0x1412c1(0x335)](_0x10ec61)?_0x7f8428[_0x5712ec]=x(_0x10ec61,_0x30c8e4):_0x7f8428[_0x5712ec]=_0x10ec61;}}return _0x7f8428;}const S={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'id':_0x5db5d0(0x176),'handler':(_0x437ce9,_0x533477)=>{const _0x1040c8=_0x5db5d0;let _0x216864=_0x437ce9[_0x1040c8(0x3b6)](i['SheetsShapeService']),{unitId:_0x32fa63,subUnitId:_0x540ae8,shapeType:_0x3919b3,shapeId:_0x698963,shapeData:_0x28cd2b,replaceShapeData:_0x1b8a38,oldShapeJSON:_0x37289a}=_0x533477;if(!_0x216864[_0x1040c8(0x11e)](_0x32fa63,_0x540ae8,_0x698963))return!0x1;let _0x58ca2f=_0x437ce9[_0x1040c8(0x3b6)](a[_0x1040c8(0x2b9)]),_0x1593ee=_0x437ce9['get'](a[_0x1040c8(0x236)]),{oldShapeType:_0x16f6a5,oldShapeData:_0x3095ed={}}=_0x37289a,_0x5d4f18=_0x1b8a38?_0x3095ed:x(_0x3095ed,_0x28cd2b||{}),_0x2020e8={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x3919b3,'shapeData':_0x28cd2b,'replace':_0x1b8a38}},_0x4e5306={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x16f6a5,'shapeData':_0x5d4f18,'replace':_0x1b8a38}};return _0x58ca2f[_0x1040c8(0x3b8)](_0x2020e8['id'],_0x2020e8[_0x1040c8(0x1a0)])?(_0x1593ee[_0x1040c8(0x327)]({'unitID':_0x32fa63,'undoMutations':[_0x4e5306],'redoMutations':[_0x2020e8]}),!0x0):!0x1;}};function C(_0x545848,_0x599dff,_0x44f34d,_0x152bb2,_0x4b6a54,_0x3ac8bf){const _0x185f1f=_0x5db5d0;let _0x5fbf90={'unitId':_0x599dff,'subUnitId':_0x44f34d,'shapeId':_0x152bb2,'shapeData':_0x3ac8bf,'oldShapeJSON':_0x4b6a54};return _0x545848[_0x185f1f(0x3e5)](S['id'],_0x5fbf90);}function ee(_0x1fb605,_0x3da226,_0x596126,_0x5d6790,_0x2a59cf,_0x529a50){const _0x82e95b=_0x5db5d0;let _0x424319={'unitId':_0x3da226,'subUnitId':_0x596126,'shapeId':_0x5d6790,'shapeData':_0x529a50,'oldShapeJSON':_0x2a59cf};return _0x1fb605[_0x82e95b(0x3e5)](S['id'],_0x424319);}function w(_0x54642a){'@babel/helpers - typeof';const _0x2eadd1=_0x5db5d0;return w=typeof Symbol==_0x2eadd1(0x1f3)&&typeof Symbol[_0x2eadd1(0x282)]==_0x2eadd1(0x3ad)?function(_0x695935){return typeof _0x695935;}:function(_0x1613a1){const _0x286296=_0x2eadd1;return _0x1613a1&&typeof Symbol=='function'&&_0x1613a1['constructor']===Symbol&&_0x1613a1!==Symbol[_0x286296(0x406)]?_0x286296(0x3ad):typeof _0x1613a1;},w(_0x54642a);}function te(_0x342797,_0x64d7e3){const _0x2ce095=_0x5db5d0;if(w(_0x342797)!='object'||!_0x342797)return _0x342797;var _0x7f380b=_0x342797[Symbol['toPrimitive']];if(_0x7f380b!==void 0x0){var _0x525cb8=_0x7f380b[_0x2ce095(0x33a)](_0x342797,_0x64d7e3||'default');if(w(_0x525cb8)!=_0x2ce095(0x23b))return _0x525cb8;throw TypeError(_0x2ce095(0x323));}return(_0x64d7e3===_0x2ce095(0x40a)?String:Number)(_0x342797);}function T(_0x10cef8){const _0x10cf74=_0x5db5d0;var _0x551b9a=te(_0x10cef8,_0x10cf74(0x40a));return w(_0x551b9a)==_0x10cf74(0x3ad)?_0x551b9a:_0x551b9a+'';}function E(_0x4d2a51,_0x5539ec,_0x2fc6b2){const _0x1f090d=_0x5db5d0;return(_0x5539ec=T(_0x5539ec))in _0x4d2a51?Object[_0x1f090d(0x1af)](_0x4d2a51,_0x5539ec,{'value':_0x2fc6b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d2a51[_0x5539ec]=_0x2fc6b2,_0x4d2a51;}function D(_0x3fd9de,_0xd820bf,_0x413ae5){const _0x2f54e8=_0x5db5d0;let _0x4ace68=(0x0,e[_0x2f54e8(0x3ce)])(_0x3fd9de,{..._0xd820bf,'dataModel':{..._0xd820bf[_0x2f54e8(0x373)]??{},..._0x413ae5?{'doc':_0x413ae5}:null}}),_0x587801=(0x0,e[_0x2f54e8(0x416)])(_0x4ace68);return{'clip':(0x0,e[_0x2f54e8(0x165)])(_0x4ace68,_0x587801),'wrapStrategy':_0x587801};}function _0x4052(){const _0x245dae=['getConnectionInfo','shape-adjust-point-','mergeMenu','MobileShapeEditorService','ShapeTextRibbonControl','getInterceptPoints','_imageShapeClipController','OTHERS','getCurrentScrollState','width','BuiltInUIPart','getAdjustInfoByName','stroke','_closeShapeEditPanel','sheets-shape-ui.insertShape','isConnectorShape','ShapeDefaultConfig','hideContextualTab','_baseShapeWidth','isDrawingObject','render','ICommandService','setConfig','presentationChanged$','getCurrentSkeleton','InsertShapeCommand','getAutoFitPresentations','getAdjustNames','isRender','canvas','_groupCopyPasteController','_clearShapeAdjustControls','getRenderUnitById','presetId','_registerFocusChangeHandler','popup','clip-','sheets-shape-ui.imagePanel.crop.shape','editingParams$','_canEdit','visible','strokeWidth','isHighlighted','worldPoint','entries','getUnitId','CopySheetCommand','getDrawingDataForUnit','setPrstGeom','_transform','_updateAdjustControlPositions','drawWith','_initSelection','set','402ZXlbtU','FromArray','startWith','contentVerticalOffset','ISheetClipboardService','sheet.shape.text.float-menu','TOP','_sidebarService','clipTop','ShapeArrowTypeEnum','GROUP','setOnSavingEditorData','SHEET_SHAPE_UI_PLUGIN','scene','multiply','setCollapsedIds','_context','updateConnectionDetection','_sheetDrawingShapeRenderController','_clearConnectionSites','order','PictureFill','_sheetClipboardService','complete','normal','115176EwBErT','_sheetPermissionCheckController','worldPoints','onReady','OBJECT_LIST_FLOATING_SECTION_ID','_findNearestConnectionSite','getBatchRemoveOp','getShapeType','length','_iconManager','RemoveSheetCommand','fillType','asObservable','_formulaShapes','cancelEditing','getEditing','doc','_loadAndSetImage','sheets-shape-ui.title','forward','animateFormulaPresentation','renderDrawingShape','_releaseRenderCache','_renderWithCache','value','UniverDocsPlugin','setSrcRect','Rect','CURSOR_TYPE','removeLinePoints','plainShapeTextToDocumentData','SHAPE_TEXT','MEDIA','_shapePopupMenuDisposable','ImageSourceTypeEnum','_registerFeatureMenu','ConnectorCoordinateTransform','_getConnectionSiteAngle','UNIVER_SHEET','_initEditingParams','fill','_registerGroupFeaturePasteHook','getDrawingOrder','_rerouteConnectorLine','IConfigService','applyPoint','sheets-shape-ui.deleteShape','RemoveSheetsShapeMutation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DrawingApplyType','_currentConnectionTarget','SetDrawingArrangeCommand','pushUndoRedo','changeStart$','getTextModel','transform','_updateTransform','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getObjectListPanelSectionIdForDrawingType','activateDrawingObject','_completionFrame','_resetState','SHAPE_EDITOR_TRANSFORMER_CONFIG','SheetSkeletonService','draw','_sheetShapeAdjustController','isArray','featurePluginUpdateNotification','REMOVE','resetCursor','sheets-shape-ui.flipVertical','call','CommandType','cxnPointFill','fromChangeset','UniverRenderEnginePlugin','sheets-shape-ui.ribbon.shape-format.arrange-front','shapeId','formulaPresentation','getSkeletonParam','getDrawingData','focus$','indexOf','RemoveSheetDrawingCommand','3172194aLZtCw','10812996HhPHlv','_drawRichTextLayer','BottomIcon','InsertSheetsShapeMutation','updateShapeFillImage','_addShapeConnectorHandlerObject','vertical','_getZoomRatio','ShapeGroupEnum','_sheetCanvasPopManagerService','UniverLicensePlugin','_update','offsetY','endConnectionDetection','generateRandomId','_focusedDrawings','actualHeight','resourceCollector','with','_hasReset','description','startY','MenuItemType','_imageIoService','Circle','interceptCommand','setEditing','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','SheetSkeletonManagerService','_highlightedSiteIndex','debounceRefreshControls','_getImageDrawingInfo','beforeCommandExecuted','onPointerUp$','stringify','SheetsShapeUIContextualRibbonSchema','ToggleSheetsShapeFlipCommand','_initEvents','VIEW_MAIN_LEFT_TOP','780PKlQnq','viewportScrollY','_calculateFreeEndpointAngle','874639LbSQlv','dataModel','buildShapeTextDataUpdate','sheets-shape-ui.editText','_isShouldShowDrawingShapeAdjust','FOCUSING_COMMON_DRAWINGS','front','sheet.operation.open-mobile-shape-editor','jsx','_handleConnectedEndpointMove','_registerDrawingFocusChangeHandler','_isHighlighted','registerDependencies','DocCanvasPopManagerService','ShapeTextHyperLinkPopupService','add','useMemo','_disposed','getCurrentTypeOfUnit$','_addShapeConnectorHandlerObjects','remove$','_initMenu','_transformCalculateSrcRect','getState','ShapeFloatingToolbarService','_drawingRenderService','addClipboardHook','FlipHorizontalIcon','filter','ToggleShapeFloatingToolbarOperation','IPermissionService','resolveFormulaShapeAutoFitSize','ShapeFillEnum','_executeConnectedRouteConnectionCommand','div','EMPTY','start','useState','shapeData','UniverSheetsShapeMobileUIPlugin','DocumentViewModel','pick','_shapeFloatingToolbarService','jsxs','cos','transformToDrawingPosition','getDrawingTypeNameKey','setShapeProps','fontFamily','computeConnectorResizeLayout','setPrstGeomAdjValues','_drawingType','calculate','Shape','_draggingConnectorId','DRAWING_OBJECT_LAYER_INDEX','focusDrawing','DisposableCollection','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','symbol','values','disableShapeOption','index','_drawingManagerService','_clearPopups','clip-adj-','computeStraightConnectorLayout','RENDER_CLASS_TYPE','get','getObject','syncExecuteCommand','hidden','WorksheetEditPermission','startArrow','getShapeData','sheet.operation.open-shape-object-list-panel','IURLImageService','unitId','image-clip-adjust-point-','drawingType','VerticalAlign','preValue','sheet.command.menu-insert-shape','height','shouldAllowShapeTextEditorHostSizeShrink','ang','resize','VIEW_MAIN_TOP','updateDocumentStyle','getTransformerByCreate','sheets-shape-ui.config','sheet.menu.shape.flip-horizontal','resolveShapeTextEditorBehaviorShapeData','idMap','connectInjector','_configService','_unitId','error','composeMatrix','DEFAULT_PASTE','_disposePopups','_config','_handleBasicShapeUpdateConnectorLineShape','_sheetSkeletonService','setFormulaPresentation','setFallbackVisible','_isImagePointerDown','SetDrawingSelectedOperation','shapeText','_isConnecting','size','_getShapeAdjustPointListById','_insertingShapeKeys','drawingId','_visible','executeCommand','DrawingTypeEnum','doc.image-clip.shape-picker.component','Path','restore','actions','sheet.menu.shape.flip-vertical','DrawingImageClipService','angle','sheet.image-clip.shape-picker.component','_baseWidth','_drawShapeText','skeleton','transformToAxisAlignPosition','register','_findShapeAtPoint','_contextService','_getShapeAdjustInfosById','UniverSheetsDrawingUIPlugin','changeEnd$','ShapeFormatSettingIcon','name','open','getFocusDrawings','registerFeaturePasteHook','ContextMenuPosition','sheets-shape-ui.shape-format.formula-ribbon-control','UniverInstanceType','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','pipe','getConnectorLinePoints','getViewportByCell','_createCopyInfoByRange','prototype','sin','setShapeData','getDrawingVisible','string','Image','parse','useEffect','_connectorObjects','refreshAdjustControls','map','shape-editor-ui.arrange.forward','MenuManagerPosition','DRAWING','Arrow','RIBBON','resolveShapeTextEditorWrapStrategy','localeService','_injector','DocSelectionRenderService','initShapePopupMenu','PREDEFINED_HOOK_NAME','canvasElement','translate','UniverSheetsDrawingMobileUIPlugin','end','DocEventManagerService','SetSheetDrawingCommand','_activeAdjustPointList','_baseShapeTop','save','_editingParams$','subscribe','version','createShapeFormulaDocument','flatMap','lineShapeId','relation','useReducer','getOwnPropertyDescriptor','left','_shapeTextEditingService','next','Line','useDependency','sheets-shape-ui.ribbon.shape-format','getTextStyle','viewportScrollX','getAdjustValueByName','ComponentManager','_activeTargetShapeId','registerClipDelegate','objects','_updateShapeAdjustControls','resolveShapeContextualRibbonHostMode','_ribbonService','completeEditing','_baseShapeHeight','_sheetBasicShapeConnectionPointController','calcAdjValues','ShapeStyleRibbonControl','sheets-shape-ui.objectListPanel.open','forEach','close','update$','IContextService','cxnPointStrokeWidth','_connectionSiteObjects','wrapStrategy','ShapeQuickStyleGallery','setHighlighted','FOCUSING_SHAPE_TEXT_EDITOR','flipY','_addControl','cxnPointRadius','ContextMenuGroup','prstGeom','oKey','localToWorld','None','getCurrentRangeDisable$','_props','axisAlignSheetTransform','flipX','_copyInfo','_attachConnectorObjectEvent','_sheetPrintInterceptorService','cxnIndex','onStarting','_activeImageId','refreshShapeFillImage','_currentUniverService','changeShapeType','_renderManagerService','toDisposable','trim','581UECopC','bottom','delete','sheets-shape-ui.flipHorizontal','11622irvWIl','_drawSimpleText','IDrawingManagerService','undo','from','shapeModel','_hide','getRealBound','_isStartConnectorPoint','_executeResizeCommand','activeSheet$','selectable','SolidLine','_init','_registerImageShapeClipDelegate','_registerIcons','touchDependencies','TopmostIcon','getDrawingOKey','getShapeModel','bindRenderTransformerLifecycle','ShapeTextEditorContainer','pluginName','getShapeTextRect','getDrawingPoints','_draw','attachTransformerTo','custom','_shapeFormulaService','_sidebarDisposable','getStartConnectInfo','_activeShapeAdjustPointList','UUID','_univerInstanceService','setPresentation','getCanvasElement','_initCopyPaste','isRenderLinePointsMode','refreshTransform','getTransformer','_getDrawingRect','SheetsSelectionsService','DRAWING_IMAGE','getActiveSheet','_clearShapeConnectorHandlerObjects','onload','_attachAdjustEvent','createControl$','_onSavingEditorData$','enableObjectsEvent','_createShapeAdjustControls','SheetDrawingAnchor','_reset','_baseDrawingRect','updateContext','UniverDocsUIPlugin','getShapeTextData','DocRenderController','_getShapeInfo','getShapeQuickStyleType','deriveStateFromActiveSheet$','useObservable','sheetViewStartColumn','_isDrawingShapePointDown','_registerOperations','_uiPartsService','getActualSize','getObjectListPanelLabels','scale','ArrangeTypeEnum','subscribeEvent','text','_formulaKey','registerCommand','setCanUseShapeClip','fillImageSource','transformForAngle','ShapeFloatingToolbar','DependentOn','getDrawingByParam','isEditing','adjustValues','SetDrawingApplyMutation','_lastEditingShapeKey','stopPropagation','panel','onTransformChange$','_generateCopyPasteMutations','_registerComponents','ShapeArrowSizeEnum','shouldClipShapeTextDocument','UniverMobileUIPlugin','Injector','translateWithPrecision','getSheetCommandTarget','_currentScene','point','getUnitType','_shapeRenderController','_insertShapes','_handleConnectorPointerUp','_updateImageAdjValues','classType','IMenuManagerService','_adjHandlerPointerMove','RibbonInsertGroup','includes','sheet.command.update-shape-data','switchMap','unregister','Vector2','Plugin','onDblclick$','ancestorTransform','disposeWithMe','clip','shapeType','_applyFormulaAutoFitSize','image','_isStartAdjusting','shapeKey','_updateSrcRectByTransform','_cxtHandlerPointerUp','getConnectionSiteList','BehaviorSubject','shape-editor-ui.arrange.back','_executeConnectionCommand','ShapeFormulaService','_initCommands','onSavingEditorData$','_handleFreeEndpointPointerUp','has','color','isHitLine','_adjName','sheets-shape-ui.ribbon.shape-format.arrange-forward','insertGroupObject','sheetTransform','UNIVER_DOC','isRichText','connector-handler-','SHEET_VIEWPORT_KEY','_popupMenuListener','setAdjustValueByName','getDrawingSearch','BUTTON','DRAWING_SHAPE','sheets-shape-contextual-ribbon','isCurvedConnectorShape','params','isHit','changing$','_getOrCreateShapeModel','_addShapeAdjustControl','sheetViewStartRow','SHAPE','DrawingCommonPanel','UPDATE','_setTransForm','onCommandExecuted','transformByState','lineType','_commandService','getUnit','defineProperty','SELECTOR','sqrt','Transform','ShapePickerDropdown','startConnectionDetection','onPointerMove$','ShapeLineTypeEnum','32755CNFlwD','vertical-center','ObjectLayersIcon','IImageIoService','#1a73e8','getVisible','push','_index','#4285f4','ShapeFormulaRibbonControl','_activeShapeInfo','onPointerDown$','FlipVerticalIcon','dispose','sheets-shape-ui.permission.editErr','highlighted','activeAnObject','IUniverInstanceService','MobileShapeActionPanel','worldRect','FormulaShapeAnimationController','UniverSheetsShapePlugin','_baseLeft','refreshFormulaPresentation','ShapePickerPanel','_commandExecutedListener','_loadShapePictureFill','_formulaAnimation','Observable','merge','getObjectIncludeInGroup','onSteady','isMainScene','_openShapeEditPanel','_getConnectPointInfo','SHAPE_CHANGE_PICKER_COMPONENT','getEndConnectInfo','MoveUpIcon','UniverShapeEditorUIPlugin','setShouldShowAdjust','shape-editor-ui.arrange.front','SheetsShapeService','CUT','invert','Fragment','interceptor','clearAdjustValue','DocSelectionManagerService','_getImagePrstGeom','rotation','makeDirty','UniverSheetsPlugin','data','updateLinePoints','sectionFloating','startX','_baseTop','prstGeomAdjValues','COMMAND','_createControls','function','_shapeService','srcRect','_activeAdjustInfo','_generatePasteMutations','getDrawingShapeKeyByDrawingSearch','currentAdjustValues','clone','marginTop','shape-editor-ui.toolbar.quickStyles','PRINTING_COMPONENT_COLLECT','cxnPointStroke','Disposable','_handleFreeEndpointMove','ISheetDrawingService','getCurrentUnitInfo','some','UniverSheetsShapeUIPlugin','_drawRichText','toStringTag','FloatingObjectToolbarPosition','_handleConnectedEndpointPointerUp','sheet.operation.close-sheet-shape-format-panel','subUnitId','HorizontalAlign','sheets-shape-format-font-family-menu','permissionCheckWithoutRange','getParent','univer-box-border\x20univer-px-4\x20univer-text-sm','rect','isolated','_shapeId','resolveActiveShapeQuickStylePresetId','getShapeTypeById','UniverDrawingPlugin','getBatchAddOp','Large','beginPath','_sheetDrawingService','getCurrentLastSelection','DocumentDataModel','_registerDrawingMoveHandler','_getSceneAndTransformerByDrawingSearch','sheets-shape-ui.formatShape','clipHeight','_isOpenedShapeEditPanel','_shapes','sheets-shape-ui.shape-format.text-ribbon-control','_permissionService','_registerMoveHandler','IUIPartsService','IRenderManagerService','getImage','_executeConnectedRouteResizeCommand','getPresentation','18460kFIANa','attachRangeWithCoord','INSERT','_generateCutPasteMutations','fontSize','Inject','top','DrawingRenderService','LocaleService','getDrawingEditable','abs','IconManager','IUndoRedoService','SheetCanvasPopManagerService','formulaBinding','getBasicShapeRotateBound','getSkeleton','object','_subUnitId','_baseHeight','fillImageSourceType','type','decorate','_urlImageService','redo','ShapeModel','UpdateSheetsShapeDataMutation','_getScrollInfo','UniverDrawingUIPlugin','SheetPermissionCheckController','visible$','find','useFormulaShapeToolbar','adjName','computeConnectorRouteLayout','sheets-shape-ui.objectListPanel.title','getOrCreateDrawingCopyPlan','clearAdjustControls','extensionGroups','addObject','clearControl$','getBentTypeFromPoints','getImageSourceCache','UniverSheetsDrawingPlugin','back','memo','_activeShapeModel','ShapeTypeEnum','registerRenderModule','style','_menuManagerService','sheets-shape-ui.shape-format.style-ribbon-control','clipByShape','_initPermission','_baseShapeLeft','_drawingAddListener','sectionCanvas','SheetInterceptorService','src','DocumentSkeleton','MobileDropdown','MoveDownIcon','title','adjHandleSize','blockExecuteWithoutPermission','ShapeIcon','ShapeTextFloatMenuRenderControllerBase','getSheetBySheetId','_showConnectionSites','targetShapeId','_cxnIndex','run','_localeService','_initPrinting','getConnectionRelation','getScene','_cxtHandlerPointerMove','parent','connection-site-','sheets-shape-ui.editShape','getZoomRatio','LEFT','ISidebarService','setCursor','normalizeShapeTextModel','_sheetsShapeService','_componentManager','isLineShape','iterator','onRendered','unsubscribe','Module','packageName','getShapeDataById','14333QKTDoh','isInGroup','setContextValue','getMenuHiddenObservable','getMatrix','_clearControls','endArrow','isStartConnectorPoint','registerComponent','_clipService','_shapeEditPanelVersion','_sheetInterceptorService','ObjectListPanelBase','_clearCompletionFrame','_activeShapeId','drawing.operation.set-drawing-active','UniverSheetsUIPlugin','getSelectedObjectMap','OPERATION','UpdateConnectorRelationCommand','keys','_adjHandlerPointerUp','_initialize','horizontal','routeConnectorLineShape','disableObjectsEvent','ShapeEditPanel','setFillImage'];_0x4052=function(){return _0x245dae;};return _0x4052();}var O=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xd9fa73,_0x415cf2){const _0x571ea9=_0x5db5d0;super(_0xd9fa73,_0x415cf2),E(this,_0x571ea9(0xf8),void 0x0),E(this,'_formulaAnimation',new e[(_0x571ea9(0x1cb))](()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),E(this,_0x571ea9(0x388),!0x0),E(this,_0x571ea9(0x3a5),a[_0x571ea9(0x3e6)][_0x571ea9(0x19d)]),E(this,_0x571ea9(0x2b7),!0x0),this[_0x571ea9(0xf8)]={..._0x415cf2},this['_formulaAnimation']['setPresentation'](_0x415cf2[_0x571ea9(0x341)],_0x415cf2[_0x571ea9(0x307)]!==!0x1),this[_0x571ea9(0x118)](),this['_applyFormulaAutoFitSize']();}[_0x5db5d0(0x118)](){const _0x250df3=_0x5db5d0;this[_0x250df3(0x161)]['subscribeEvent'](_0x10c0c1=>{const _0x15aba8=_0x250df3;this[_0x15aba8(0x184)](_0x10c0c1);});}['setPrstGeom'](_0x139033){const _0x5e8dc7=_0x5db5d0;this[_0x5e8dc7(0xf8)][_0x5e8dc7(0xf3)]=_0x139033;}[_0x5db5d0(0x362)](_0x1cd12a){const _0x18d2fb=_0x5db5d0;this[_0x18d2fb(0xf8)]['isEditing']=_0x1cd12a,this[_0x18d2fb(0x1e9)](!0x0);}[_0x5db5d0(0x3da)](_0x3f836d,_0x2c8eec=!0x0){const _0x443af5=_0x5db5d0;this[_0x443af5(0x1d2)][_0x443af5(0x12d)](_0x3f836d,_0x2c8eec),this['_props']['formulaPresentation']=_0x3f836d,this[_0x443af5(0x180)](),this[_0x443af5(0x1e9)](!0x0);}[_0x5db5d0(0x180)](){const _0x2d4253=_0x5db5d0;let _0x18c4c5=this[_0x2d4253(0xf8)]['shapeModel'],_0x25f487=_0x18c4c5['getShapeTextData'](),_0x3697ca=(0x0,e[_0x2d4253(0x27e)])(_0x25f487==null?void 0x0:_0x25f487[_0x2d4253(0x373)]),_0x58bc03=_0x3697ca==null?void 0x0:_0x3697ca['doc'],_0x118d3f=this['_formulaAnimation'][_0x2d4253(0x2be)]();if(!_0x58bc03||_0x118d3f['length']===0x0)return;_0x18c4c5['updateContext']({'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]});let _0x21f78b=(0x0,e[_0x2d4253(0x391)])({'documentData':_0x118d3f['map'](_0x411997=>(0x0,r[_0x2d4253(0x428)])(_0x58bc03,_0x411997)),'height':this[_0x2d4253(0x3c5)],'shapeData':_0x18c4c5[_0x2d4253(0x3bc)](),'textRect':_0x18c4c5[_0x2d4253(0x122)]({'left':0x0,'top':0x0,'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]}),'width':this[_0x2d4253(0x2ad)]});if(_0x21f78b){var _0x3a048b;this['resize'](_0x21f78b['width'],_0x21f78b[_0x2d4253(0x3c5)]),(_0x3a048b=this[_0x2d4253(0x275)]())==null||(_0x3a048b=_0x3a048b[_0x2d4253(0x132)]())==null||_0x3a048b[_0x2d4253(0x366)]();}}get[_0x5db5d0(0x3bf)](){const _0x2f1875=_0x5db5d0;return this[_0x2f1875(0xf8)][_0x2f1875(0x3bf)];}get['subUnitId'](){const _0x5c15a0=_0x5db5d0;return this[_0x5c15a0(0xf8)][_0x5c15a0(0x20a)];}[_0x5db5d0(0x184)](_0x5db135){const _0x154cde=_0x5db5d0;if(this[_0x154cde(0xf8)][_0x154cde(0x1f5)]==null||!this[_0x154cde(0x388)])return;let {width:_0xd1b730,height:_0x2981a0}=this,{width:_0x4bcce5=0x0,height:_0x1845e4=0x0}=_0x5db135[_0x154cde(0x3c3)],{left:_0x155e59=0x0,top:_0x4f34ca=0x0,right:_0x547aef=0x0,bottom:_0x2f4d67=0x0}=this[_0x154cde(0xf8)][_0x154cde(0x1f5)],_0x59b10d=_0x155e59,_0x390ee4=_0x4f34ca,_0x4aa67c=_0x547aef,_0x26720d=_0x2f4d67,_0x32e993=!0x1;if(_0x4bcce5!==0x0&&_0x4bcce5!==_0xd1b730){let _0x56462f=_0x155e59/_0x4bcce5,_0x46bb61=_0x547aef/_0x4bcce5;_0x59b10d=_0xd1b730*_0x56462f,_0x4aa67c=_0xd1b730*_0x46bb61,_0x32e993=!0x0;}if(_0x1845e4!==0x0&&_0x1845e4!==_0x2981a0){let _0x5479f2=_0x4f34ca/_0x1845e4,_0x433c4d=_0x2f4d67/_0x1845e4;_0x390ee4=_0x2981a0*_0x5479f2,_0x26720d=_0x2981a0*_0x433c4d,_0x32e993=!0x0;}_0x32e993&&this[_0x154cde(0x30d)]({'left':_0x59b10d,'top':_0x390ee4,'right':_0x4aa67c,'bottom':_0x26720d});}['setSrcRect'](_0x1dc783){const _0x18e0c9=_0x5db5d0;this[_0x18e0c9(0xf8)][_0x18e0c9(0x1f5)]=_0x1dc783,this['makeDirty'](!0x0);}[_0x5db5d0(0x2a3)](_0x43983a){const _0x18147f=_0x5db5d0;this[_0x18147f(0xf8)][_0x18147f(0x181)]=_0x43983a,this['makeDirty'](!0x0);}set['transform'](_0x59ef2c){const _0x4fb357=_0x5db5d0;this[_0x4fb357(0x2d5)]=_0x59ef2c;}get['transform'](){const _0x1dd4dd=_0x5db5d0;this[_0x1dd4dd(0x2d5)]||this[_0x1dd4dd(0x1a9)]();let _0x51cc1e=this[_0x1dd4dd(0x2d5)][_0x1dd4dd(0x1fa)]();return this[_0x1dd4dd(0x157)](_0x51cc1e);}get[_0x5db5d0(0x110)](){const _0x4aa4ab=_0x5db5d0;return this[_0x4aa4ab(0xf8)][_0x4aa4ab(0x110)];}get[_0x5db5d0(0x340)](){const _0x1d4f09=_0x5db5d0;return this[_0x1d4f09(0xf8)]['shapeId'];}get[_0x5db5d0(0x171)](){const _0x5576ac=_0x5db5d0;return c[_0x5576ac(0x3b5)][_0x5576ac(0x1a6)];}[_0x5db5d0(0x124)](_0x5697bf,_0x3876d6,_0x4c00d2,_0x12759b){const _0x9fb9d9=_0x5db5d0;let _0x42d423=this['_props'][_0x9fb9d9(0x110)];if(!_0x42d423||!_0x3876d6)return;let _0x82f002=_0x4c00d2??this[_0x9fb9d9(0x2ad)],_0x48cf74=_0x12759b??this[_0x9fb9d9(0x3c5)],_0x55d146={'shapeType':_0x42d423[_0x9fb9d9(0x2fa)](),'width':_0x82f002,'height':_0x48cf74},_0x341902={'renderMode':n['ShapeRenderModeEnum'][_0x9fb9d9(0x3e8)],'oKey':this['oKey'],'image':this[_0x9fb9d9(0xf8)][_0x9fb9d9(0x181)],'angle':this[_0x9fb9d9(0x3ed)]};_0x42d423[_0x9fb9d9(0x141)](_0x55d146),_0x5697bf['save']();let _0x352649={'top':0x0,'left':0x0,'width':_0x82f002,'height':_0x48cf74},_0xff18f5=_0x42d423['getDrawingEffectBounds'](_0x352649);_0xff18f5?this[_0x9fb9d9(0x30a)](_0x5697bf,_0xff18f5,_0xda7ec7=>{const _0xa92a48=_0x9fb9d9;_0x42d423[_0xa92a48(0x2b8)](_0xda7ec7,_0x352649,_0x341902);}):(this[_0x9fb9d9(0x309)](),_0x42d423['render'](_0x5697bf,_0x352649,_0x341902)),_0x5697bf[_0x9fb9d9(0x3e9)]();let _0x4e106a=_0x42d423[_0x9fb9d9(0x143)](),_0x4b2903=_0x42d423['getShapeTextRect'](_0x352649),_0x3a7344=_0x42d423['isLineShape']();if(_0x4e106a&&_0x4b2903&&!_0x3a7344){_0x5697bf[_0x9fb9d9(0x424)](),this['getState']()[_0x9fb9d9(0xfa)]&&_0x5697bf[_0x9fb9d9(0x14f)](-0x1,0x1);let _0x3e0230=_0x82f002/0x2,_0x854f0=_0x48cf74/0x2;_0x5697bf[_0x9fb9d9(0x41d)](-_0x3e0230,-_0x854f0),_0x5697bf[_0x9fb9d9(0x218)](),this[_0x9fb9d9(0x3f0)](_0x5697bf,_0x4e106a,_0x4b2903),_0x5697bf[_0x9fb9d9(0x3e9)]();}}[_0x5db5d0(0x123)](_0x3debcd){}[_0x5db5d0(0x3f0)](_0x22266f,_0x97f4c2,_0x278304){const _0x1cc66e=_0x5db5d0;var _0xc8a5d3;this[_0x1cc66e(0xf8)][_0x1cc66e(0x15b)]||(!((_0xc8a5d3=_0x97f4c2['dataModel'])!=null&&_0xc8a5d3[_0x1cc66e(0x303)])&&_0x1cc66e(0x196)in _0x97f4c2&&_0x97f4c2[_0x1cc66e(0x196)]===!0x1?this[_0x1cc66e(0x10c)](_0x22266f,_0x97f4c2,_0x278304):this[_0x1cc66e(0x205)](_0x22266f,_0x97f4c2,_0x278304));}[_0x5db5d0(0x10c)](_0x3a37fb,_0x4f1f8f,_0x163ac1){const _0x163778=_0x5db5d0;this['_drawRichText'](_0x3a37fb,{..._0x4f1f8f,'text':_0x4f1f8f[_0x163778(0x152)]??'','dataModel':{'doc':(0x0,e[_0x163778(0x311)])(_0x4f1f8f,'sheets-shape-text-'+this['oKey'])}},_0x163ac1);}[_0x5db5d0(0x205)](_0x1a4af9,_0x3e62ef,_0xf13811){const _0x3ad8e8=_0x5db5d0;(0x0,e['drawFormulaShapeAnimationLayers'])(_0x1a4af9,this[_0x3ad8e8(0x1d2)],(_0x456fc5,_0x3afea9)=>{const _0x255329=_0x3ad8e8;this[_0x255329(0x349)](_0x456fc5,_0x3e62ef,_0xf13811,_0x3afea9);});}['_drawRichTextLayer'](_0x7cda5e,_0x37ef0b,_0x27b445,_0x3c1894){const _0x1e98ba=_0x5db5d0;let _0x5d99f8=this[_0x1e98ba(0xf8)][_0x1e98ba(0x417)];if(!_0x37ef0b[_0x1e98ba(0x373)]||!_0x5d99f8)return;let _0x4375f0=(0x0,e[_0x1e98ba(0x27e)])(_0x37ef0b['dataModel']);if(!_0x4375f0)return;let _0x26e2c4=_0x4375f0[_0x1e98ba(0x303)];if(!_0x26e2c4)return;let _0x561812=(0x0,r[_0x1e98ba(0x428)])(_0x26e2c4,_0x3c1894),_0x3ce2de=_0x4375f0['va']??a[_0x1e98ba(0x3c2)][_0x1e98ba(0x2e0)],_0x121a95=_0x4375f0['ha']??a[_0x1e98ba(0x20b)][_0x1e98ba(0x27b)],_0x5259cd=D(this['_props'][_0x1e98ba(0x110)][_0x1e98ba(0x3bc)](),_0x37ef0b,_0x561812),_0x3590c3=_0x37ef0b['isHorizontal'],_0x572bea=new a[(_0x1e98ba(0x21b))]((0x0,e['prepareShapeTextDocumentData'])(_0x561812,{'isHorizontal':_0x3590c3!==!0x1,'textRect':_0x27b445,'verticalAlign':_0x3ce2de,'horizontalAlign':_0x121a95,'wrapStrategy':_0x5259cd[_0x1e98ba(0xeb)]})),_0xd4f539=new c[(_0x1e98ba(0x39a))](_0x572bea),_0x45cb4b=c[_0x1e98ba(0x265)]['create'](_0xd4f539,_0x5d99f8);_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x234d0c=_0x45cb4b[_0x1e98ba(0x14d)]()[_0x1e98ba(0x358)],_0x17bad9=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x234d0c,'verticalAlign':_0x3ce2de,'viewportHeight':_0x27b445['height']});_0x572bea[_0x1e98ba(0x3ca)]({'pageSize':{'width':_0x3590c3===!0x1?_0x27b445[_0x1e98ba(0x3c5)]:_0x27b445[_0x1e98ba(0x2ad)],'height':_0x17bad9['contentHeight']}}),_0x572bea['updateDocumentDataMargin']({'t':_0x17bad9[_0x1e98ba(0x1fb)]}),_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x50e48c=new c['Documents']('shape-text-'+this[_0x1e98ba(0xf4)],_0x45cb4b,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1e98ba(0x1e9)](!0x0)});_0x50e48c[_0x1e98ba(0x3c8)](_0x27b445[_0x1e98ba(0x2ad)],_0x17bad9['contentHeight']),_0x7cda5e[_0x1e98ba(0x424)](),_0x7cda5e[_0x1e98ba(0x168)](_0x27b445[_0x1e98ba(0x42e)],_0x27b445[_0x1e98ba(0x230)]),_0x5259cd[_0x1e98ba(0x17e)]&&(_0x7cda5e[_0x1e98ba(0x218)](),_0x7cda5e[_0x1e98ba(0x210)](0x0,_0x17bad9[_0x1e98ba(0x2e2)],_0x27b445['width'],_0x17bad9[_0x1e98ba(0x21f)]),_0x7cda5e[_0x1e98ba(0x17e)]()),_0x17bad9[_0x1e98ba(0x2dd)]&&_0x7cda5e[_0x1e98ba(0x168)](0x0,_0x17bad9[_0x1e98ba(0x2dd)]),_0x50e48c[_0x1e98ba(0x333)](_0x7cda5e),_0x7cda5e[_0x1e98ba(0x3e9)](),_0x50e48c[_0x1e98ba(0x1c4)](),_0x45cb4b[_0x1e98ba(0x1c4)](),_0xd4f539[_0x1e98ba(0x1c4)](),_0x572bea['dispose']();}[_0x5db5d0(0x2b8)](_0x5c1abb,_0x2c5483,_0x229aa6=!0x1){const _0x2859b1=_0x5db5d0;if(!this[_0x2859b1(0x2cc)])return this['makeDirty'](!0x1),this;let {width:_0x3a8398,height:_0x1f9bd5,left:_0x26870d,top:_0x8da84f}=this,_0x46f4cb=this['getRealBound']();if(_0x3a8398=_0x46f4cb[_0x2859b1(0x2ad)],_0x1f9bd5=_0x46f4cb[_0x2859b1(0x3c5)],_0x26870d=_0x46f4cb[_0x2859b1(0x42e)],_0x8da84f=_0x46f4cb[_0x2859b1(0x230)],this[_0x2859b1(0x2c0)](_0x2c5483)){let {top:_0x310fb3,left:_0x55fc43,bottom:_0x22a181,right:_0x2dc222}=_0x2c5483['viewBound'];if(_0x3a8398+this['strokeWidth']+_0x26870d<_0x55fc43||_0x2dc222<_0x26870d||_0x1f9bd5+this[_0x2859b1(0x2cd)]+_0x8da84f<_0x310fb3||_0x22a181<_0x8da84f)return this;}let _0x454667=_0x26870d+_0x3a8398/0x2,_0xd06746=_0x8da84f+_0x1f9bd5/0x2,_0x3f7351=this[_0x2859b1(0x32a)][_0x2859b1(0x28c)]();if(this[_0x2859b1(0xf8)][_0x2859b1(0x15b)]){let _0x12d78=this[_0x2859b1(0x389)](),_0x5a7b7b=new c[(_0x2859b1(0x1b2))]();_0x5a7b7b[_0x2859b1(0x3d4)]({..._0x12d78}),_0x3f7351=_0x5a7b7b[_0x2859b1(0x28c)]();}return _0x5c1abb['save'](),this['_props'][_0x2859b1(0x110)][_0x2859b1(0x130)]===!0x0||_0x5c1abb[_0x2859b1(0x32a)](_0x3f7351[0x0],_0x3f7351[0x1],_0x3f7351[0x2],_0x3f7351[0x3],_0x454667,_0xd06746),this[_0x2859b1(0x124)](_0x5c1abb,_0x2c5483,_0x3a8398,_0x1f9bd5),_0x5c1abb[_0x2859b1(0x3e9)](),this[_0x2859b1(0x1e9)](!0x1),this;}['getInverseCoord'](_0x4efd7b){const _0x343cfb=_0x5db5d0;let {left:_0x17e4e6,top:_0x71dc2a,width:_0x4faef4,height:_0x44fc87}=this[_0x343cfb(0x112)](),_0x171cef=this[_0x343cfb(0x32a)]['getMatrix'](),_0x34cb2c=_0x17e4e6+_0x4faef4/0x2,_0x5a1934=_0x71dc2a+_0x44fc87/0x2,_0x51db06=new c[(_0x343cfb(0x1b2))]([_0x171cef[0x0],_0x171cef[0x1],_0x171cef[0x2],_0x171cef[0x3],_0x34cb2c,_0x5a1934]),_0x19a3ed=this[_0x343cfb(0x20e)]();return(this[_0x343cfb(0x289)]&&(_0x19a3ed==null?void 0x0:_0x19a3ed[_0x343cfb(0x171)])===c[_0x343cfb(0x3b5)][_0x343cfb(0x2e4)]?_0x19a3ed[_0x343cfb(0x17c)]['multiply'](_0x51db06):_0x51db06)[_0x343cfb(0x1e2)]()[_0x343cfb(0x320)](_0x4efd7b);}[_0x5db5d0(0x1a1)](_0x1c2ba4){const _0x3c0599=_0x5db5d0;let {left:_0x324708,top:_0x562ce6,width:_0x4c4194,height:_0x338755}=this[_0x3c0599(0x112)](),_0x2414cf=_0x324708+_0x4c4194/0x2,_0x28b3a3=_0x562ce6+_0x338755/0x2,_0x1a40a2=this[_0x3c0599(0x32a)][_0x3c0599(0x28c)](),_0x1cbc5b=new c[(_0x3c0599(0x1b2))]([_0x1a40a2[0x0],_0x1a40a2[0x1],_0x1a40a2[0x2],_0x1a40a2[0x3],_0x2414cf,_0x28b3a3]),_0x4a8590=this[_0x3c0599(0x20e)](),_0xa9f75a=(this[_0x3c0599(0x289)]&&(_0x4a8590==null?void 0x0:_0x4a8590[_0x3c0599(0x171)])===c['RENDER_CLASS_TYPE'][_0x3c0599(0x2e4)]?_0x4a8590[_0x3c0599(0x17c)]['multiply'](_0x1cbc5b):_0x1cbc5b)[_0x3c0599(0x1e2)]()['applyPoint'](_0x1c2ba4),_0x107627=_0x4c4194/0x2,_0x5db5bc=_0x338755/0x2,_0x50e7cf=this[_0x3c0599(0xf8)][_0x3c0599(0x110)];return _0x50e7cf&&_0x50e7cf[_0x3c0599(0x281)]()?_0x50e7cf[_0x3c0599(0x190)](_0xa9f75a['x'],_0xa9f75a['y'],_0x4c4194,_0x338755):_0xa9f75a['x']>=-_0x107627-this['strokeWidth']/0x2&&_0xa9f75a['x']<=_0x107627+this['strokeWidth']/0x2&&_0xa9f75a['y']>=-_0x5db5bc-this['strokeWidth']/0x2&&_0xa9f75a['y']<=_0x5db5bc+this[_0x3c0599(0x2cd)]/0x2;}[_0x5db5d0(0x1c4)](){const _0x12cd32=_0x5db5d0;this['_formulaAnimation'][_0x12cd32(0x1c4)](),this[_0x12cd32(0xf8)][_0x12cd32(0x110)]=null,super[_0x12cd32(0x1c4)]();}},k=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xf56d2c,_0x305645){const _0xaf7d21=_0x5db5d0;super(_0xf56d2c,_0x305645),E(this,_0xaf7d21(0x212),null),E(this,_0xaf7d21(0x191),null),E(this,_0xaf7d21(0x3d2),null),E(this,_0xaf7d21(0x23c),null),_0x305645&&this['setShapeProps'](_0x305645);}[_0x5db5d0(0x19b)](){const _0x904710=_0x5db5d0;return{'unitId':this[_0x904710(0x3d2)],'subUnitId':this[_0x904710(0x23c)],'drawingId':this['_shapeId']};}[_0x5db5d0(0x3a1)](_0x473758){const _0x56cc9a=_0x5db5d0;_0x473758[_0x56cc9a(0x340)]!==void 0x0&&(this[_0x56cc9a(0x212)]=_0x473758[_0x56cc9a(0x340)]),_0x473758[_0x56cc9a(0x24b)]!==void 0x0&&(this[_0x56cc9a(0x191)]=_0x473758['adjName']),_0x473758['unitId']!==void 0x0&&(this['_unitId']=_0x473758[_0x56cc9a(0x3bf)]),_0x473758['subUnitId']!==void 0x0&&(this[_0x56cc9a(0x23c)]=_0x473758['subUnitId']),this['transformByState']({'width':_0x473758[_0x56cc9a(0x2ad)],'height':_0x473758[_0x56cc9a(0x3c5)]});}['_draw'](_0xa5b53d){const _0x2e8898=_0x5db5d0;c['Circle']['drawWith'](_0xa5b53d,{'radius':n[_0x2e8898(0x2b4)][_0x2e8898(0x269)],'fill':n['ShapeDefaultConfig']['adjHandleFill'],'stroke':n[_0x2e8898(0x2b4)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x2f687a,_0x26e627){return function(_0xec30c4,_0x328301){_0x26e627(_0xec30c4,_0x328301,_0x2f687a);};}function _0x29aa(_0x37f916,_0x120a0b){_0x37f916=_0x37f916-0xd6;const _0x405240=_0x4052();let _0x29aa13=_0x405240[_0x37f916];return _0x29aa13;}function j(_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92){const _0x37ea6a=_0x5db5d0;var _0x40f8eb=arguments[_0x37ea6a(0x2fb)],_0x53b233=_0x40f8eb<0x3?_0x1e3e57:_0x1a5f92===null?_0x1a5f92=Object[_0x37ea6a(0x42d)](_0x1e3e57,_0x69226):_0x1a5f92,_0x2ff7b0;if(typeof Reflect=='object'&&typeof Reflect[_0x37ea6a(0x240)]=='function')_0x53b233=Reflect[_0x37ea6a(0x240)](_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92);else{for(var _0x25054b=_0x23c08c[_0x37ea6a(0x2fb)]-0x1;_0x25054b>=0x0;_0x25054b--)(_0x2ff7b0=_0x23c08c[_0x25054b])&&(_0x53b233=(_0x40f8eb<0x3?_0x2ff7b0(_0x53b233):_0x40f8eb>0x3?_0x2ff7b0(_0x1e3e57,_0x69226,_0x53b233):_0x2ff7b0(_0x1e3e57,_0x69226))||_0x53b233);}return _0x40f8eb>0x3&&_0x53b233&&Object[_0x37ea6a(0x1af)](_0x1e3e57,_0x69226,_0x53b233),_0x53b233;}let M=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x4db8b6,_0x316a5e,_0x5e6794,_0x25eeb2,_0x19893d,_0x1b582a){const _0x8c12d1=_0x5db5d0;super(),this[_0x8c12d1(0x3b1)]=_0x4db8b6,this[_0x8c12d1(0x27f)]=_0x316a5e,this['_localeService']=_0x5e6794,this[_0x8c12d1(0x35f)]=_0x25eeb2,this[_0x8c12d1(0x241)]=_0x19893d,this[_0x8c12d1(0x127)]=_0x1b582a,E(this,_0x8c12d1(0x300),new Map()),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x127)][_0x8c12d1(0x2bb)]['subscribe'](_0xc4d221=>{const _0x557b0b=_0x8c12d1;var _0x270187;(_0x270187=this[_0x557b0b(0x300)][_0x557b0b(0x3b6)](this[_0x557b0b(0x153)](_0xc4d221[_0x557b0b(0x3bf)],_0xc4d221[_0x557b0b(0x20a)],_0xc4d221[_0x557b0b(0x340)])))==null||_0x270187[_0x557b0b(0xe5)](_0x5d4c91=>_0x5d4c91[_0x557b0b(0x3da)](_0xc4d221['presentation'],_0xc4d221['animationEnabled']));})),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x3b1)][_0x8c12d1(0x386)][_0x8c12d1(0x426)](_0x40e0a8=>{_0x40e0a8['forEach'](_0x20ee3e=>{const _0x7e68aa=_0x29aa;this['_shapeFormulaService'][_0x7e68aa(0x178)]({'unitId':_0x20ee3e[_0x7e68aa(0x3bf)],'subUnitId':_0x20ee3e[_0x7e68aa(0x20a)],'shapeId':_0x20ee3e[_0x7e68aa(0x3e3)]}),this[_0x7e68aa(0x300)]['delete'](this['_formulaKey'](_0x20ee3e[_0x7e68aa(0x3bf)],_0x20ee3e[_0x7e68aa(0x20a)],_0x20ee3e['drawingId']));});}));}['renderDrawingShape'](_0x2c29bd,_0x21b00e,_0x2ee512){const _0x47f69f=_0x5db5d0;let {transform:_0x263f1c,drawingType:_0x399f49,srcRect:_0x540ae2,prstGeom:_0x48e809,groupId:_0x96640e,unitId:_0x4d0c53,subUnitId:_0x177163,drawingId:_0x3aa03b,isMultiTransform:_0x12bc90,transforms:_0x89bcf8,hidden:_0x21543c,selectable:_0x6d0fde}=_0x2c29bd;if(_0x399f49!==a[_0x47f69f(0x3e6)][_0x47f69f(0x19d)]||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]()||_0x263f1c==null)return;let _0x20a8ea=this[_0x47f69f(0x3b1)][_0x47f69f(0x233)](),_0x51bc3f=_0x12bc90&&_0x89bcf8?_0x89bcf8:[_0x263f1c],_0x5c5cd9=[];for(let _0x201d27 of _0x51bc3f){let {left:_0x201d3a,top:_0x558ef8,width:_0x463687,height:_0xaed204,angle:_0x19cbac,flipX:_0x225d21,flipY:_0x1c7058,skewX:_0x448fca,skewY:_0x4a4f92}=_0x201d27,_0x34a8d9=_0x51bc3f['indexOf'](_0x201d27),_0x2c8347=(0x0,s[_0x47f69f(0x1f8)])({'unitId':_0x4d0c53,'subUnitId':_0x177163,'drawingId':_0x3aa03b},_0x12bc90?_0x34a8d9:void 0x0),_0x438dfc=_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347);if(_0x438dfc!=null){let _0x54c8fe={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x438dfc instanceof O&&this['refreshFormulaPresentation'](_0x438dfc,_0x54c8fe),_0x438dfc['transformByState']({'left':_0x201d3a,'top':_0x558ef8,'width':_0x463687,'height':_0xaed204,'angle':_0x19cbac,'flipX':_0x225d21,'flipY':_0x1c7058,'skewX':_0x448fca,'skewY':_0x4a4f92});continue;}let _0x1d1fe2=this[_0x47f69f(0x3b1)]['getDrawingOrder'](_0x4d0c53,_0x177163),_0x8a569b=_0x1d1fe2[_0x47f69f(0x345)](_0x3aa03b);if(_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347)||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]())continue;let _0x234a10=this[_0x47f69f(0x27f)][_0x47f69f(0x11e)](_0x4d0c53,_0x177163,_0x3aa03b);if(!_0x234a10)continue;let _0xbc268=(0x0,n[_0x47f69f(0x2b3)])(_0x234a10[_0x47f69f(0x2fa)]())?{...e[_0x47f69f(0x331)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x47f69f(0x331)],_0x5ea7b0=_0x234a10['getShapeData']()['formulaBinding'],_0x24697f={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x5ea7b0&&this['_shapeFormulaService'][_0x47f69f(0x3f3)](_0x24697f,_0x5ea7b0);let _0x246e1f=new O(_0x2c8347,{..._0x201d27,'zIndex':_0x8a569b===-0x1?_0x1d1fe2['length']-0x1:_0x8a569b,'shapeModel':_0x234a10,'localeService':this[_0x47f69f(0x272)],'shapeId':_0x3aa03b,'unitId':_0x4d0c53,'subUnitId':_0x177163,'visible':_0x21543c!==!0x0,'evented':_0x6d0fde!==!0x1,'formulaPresentation':_0x5ea7b0?this[_0x47f69f(0x127)]['getPresentation'](_0x24697f):void 0x0,'animateFormulaPresentation':(_0x5ea7b0==null?void 0x0:_0x5ea7b0['animationEnabled'])!==!0x1,'transformerConfig':_0xbc268});if(_0x5ea7b0){let _0x5e4e8e=this[_0x47f69f(0x153)](_0x4d0c53,_0x177163,_0x3aa03b),_0x3fe4d4=this['_formulaShapes']['get'](_0x5e4e8e)??new Set();_0x3fe4d4[_0x47f69f(0x381)](_0x246e1f),this[_0x47f69f(0x300)]['set'](_0x5e4e8e,_0x3fe4d4);}_0x21b00e[_0x47f69f(0x251)](_0x246e1f,c[_0x47f69f(0x3a9)]),_0x20a8ea&&_0x21b00e[_0x47f69f(0x125)](_0x246e1f),_0x96640e&&(0x0,d[_0x47f69f(0x193)])({'drawingId':_0x96640e,'unitId':_0x4d0c53,'subUnitId':_0x177163},_0x246e1f,_0x21b00e,this['_drawingManagerService']),_0x48e809!=null&&_0x246e1f[_0x47f69f(0x2d4)](_0x48e809),_0x540ae2!=null&&_0x246e1f[_0x47f69f(0x30d)](_0x540ae2);let _0x5f1371=this[_0x47f69f(0x1d1)](_0x246e1f,_0x234a10[_0x47f69f(0x3bc)]());if(_0x5f1371){var _0x4c0b72;_0x2ee512==null||(_0x4c0b72=_0x2ee512[_0x47f69f(0x359)])==null||_0x4c0b72[_0x47f69f(0x381)](_0x5f1371);}_0x5c5cd9[_0x47f69f(0x1bd)](_0x246e1f);}return _0x5c5cd9;}['_formulaKey'](_0x46e290,_0x1cc3af,_0xe0b4be){return _0x46e290+'\x00'+_0x1cc3af+'\x00'+_0xe0b4be;}[_0x5db5d0(0x1ce)](_0x32c773,_0x37b41e){const _0xf51cd1=_0x5db5d0;let _0x1d53af=this['_sheetsShapeService'][_0xf51cd1(0x11e)](_0x37b41e[_0xf51cd1(0x3bf)],_0x37b41e['subUnitId'],_0x37b41e[_0xf51cd1(0x340)]),_0x12661a=_0x1d53af==null?void 0x0:_0x1d53af[_0xf51cd1(0x3bc)]()['formulaBinding'],_0x388763=this['_formulaKey'](_0x37b41e['unitId'],_0x37b41e[_0xf51cd1(0x20a)],_0x37b41e['shapeId']);if(_0x12661a){this['_shapeFormulaService']['register'](_0x37b41e,_0x12661a);let _0x59a433=this['_formulaShapes'][_0xf51cd1(0x3b6)](_0x388763)??new Set();_0x59a433[_0xf51cd1(0x381)](_0x32c773),this['_formulaShapes'][_0xf51cd1(0x2d9)](_0x388763,_0x59a433);}else{var _0x56409e;this[_0xf51cd1(0x127)][_0xf51cd1(0x178)](_0x37b41e),(_0x56409e=this[_0xf51cd1(0x300)]['get'](_0x388763))==null||_0x56409e[_0xf51cd1(0x109)](_0x32c773);}_0x32c773[_0xf51cd1(0x3da)](_0x12661a?this['_shapeFormulaService'][_0xf51cd1(0x229)](_0x37b41e):void 0x0,(_0x12661a==null?void 0x0:_0x12661a['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x22df70){const _0x5511c8=_0x5db5d0;let _0x329b75=_0x22df70[_0x5511c8(0x110)][_0x5511c8(0x3bc)](),_0x143534=_0x329b75[_0x5511c8(0x31b)];if(!_0x143534||_0x143534[_0x5511c8(0x2fe)]!==n[_0x5511c8(0x392)]['PictureFill']||!_0x143534[_0x5511c8(0x156)]){_0x22df70['setFillImage'](void 0x0);return;}this[_0x5511c8(0x1d1)](_0x22df70,_0x329b75);}['_loadShapePictureFill'](_0x35330c,_0x5f0f86){const _0x187c25=_0x5db5d0;let _0x290a4b=_0x5f0f86[_0x187c25(0x31b)];if(!_0x290a4b||_0x290a4b[_0x187c25(0x2fe)]!==n['ShapeFillEnum'][_0x187c25(0x2ef)]||!_0x290a4b[_0x187c25(0x156)])return;let _0xc7c73e=_0x290a4b['fillImageSource'],_0x4f79a7=_0x290a4b[_0x187c25(0x23e)]??n[_0x187c25(0x315)]['URL'],_0x3377db=this[_0x187c25(0x35f)][_0x187c25(0x254)](_0xc7c73e,_0x4f79a7);if(_0x3377db){_0x35330c[_0x187c25(0x2a3)](_0x3377db);return;}return this['_loadAndSetImage'](_0x35330c,_0xc7c73e,_0x4f79a7);}async[_0x5db5d0(0x304)](_0x47d264,_0x1df2a2,_0x38d1ce){const _0x37a69a=_0x5db5d0;let _0x23dd12;try{if(_0x38d1ce===n['ImageSourceTypeEnum'][_0x37a69a(0x12b)])_0x23dd12=await this['_imageIoService'][_0x37a69a(0x227)](_0x1df2a2);else{if(_0x38d1ce===n[_0x37a69a(0x315)]['URL'])try{_0x23dd12=await this[_0x37a69a(0x241)]['getImage'](_0x1df2a2);}catch{_0x23dd12=_0x1df2a2;}else _0x23dd12=_0x1df2a2;}}catch(_0x2a931a){console[_0x37a69a(0x3d3)](_0x37a69a(0x3ac),_0x2a931a);return;}await new Promise(_0x50863a=>{const _0x22e817=_0x37a69a;let _0x2a3dae=new window[(_0x22e817(0x40b))]();_0x2a3dae[_0x22e817(0x138)]=()=>{const _0x5ec262=_0x22e817;this[_0x5ec262(0x35f)]['addImageSourceCache'](_0x1df2a2,_0x38d1ce,_0x2a3dae),_0x47d264[_0x5ec262(0x2a3)](_0x2a3dae),_0x50863a();},_0x2a3dae['onerror']=()=>{const _0x6431a8=_0x22e817;console[_0x6431a8(0x3d3)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1df2a2),_0x50863a();},_0x2a3dae[_0x22e817(0x264)]=_0x23dd12;});}};M=j([A(0x0,s[_0x5db5d0(0x10d)]),A(0x1,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x3,a[_0x5db5d0(0x1ba)]),A(0x4,a[_0x5db5d0(0x3be)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(r[_0x5db5d0(0x18a)]))],M);let N=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x5c236e,_0x579f43,_0x9b882b,_0x5724e3,_0x1d261c,_0x383cde){const _0xc56a17=_0x5db5d0;super(),this['_drawingManagerService']=_0x5c236e,this[_0xc56a17(0x27f)]=_0x579f43,this[_0xc56a17(0x104)]=_0x9b882b,this[_0xc56a17(0x2ec)]=_0x5724e3,this[_0xc56a17(0x12c)]=_0x1d261c,this[_0xc56a17(0x1ad)]=_0x383cde,E(this,_0xc56a17(0x296),null),E(this,_0xc56a17(0x3d2),null),E(this,'_subUnitId',null),E(this,'_activeShapeAdjustPointList',void 0x0),E(this,_0xc56a17(0x221),[]),E(this,_0xc56a17(0x260),0x0),E(this,'_baseShapeTop',0x0),E(this,'_baseShapeWidth',0x0),E(this,_0xc56a17(0xe0),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0xc56a17(0x1f6),void 0x0),E(this,_0xc56a17(0x258),void 0x0),E(this,_0xc56a17(0x173),void 0x0),E(this,_0xc56a17(0x29d),void 0x0),E(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0xc56a17(0x37c)](),this[_0xc56a17(0x21c)]();}[_0x5db5d0(0x3e1)](_0x301574,_0x1e386d,_0x266bc8){const _0x2b3933=_0x5db5d0;let _0x3befdd=this[_0x2b3933(0x27f)]['getShapeModel'](_0x301574,_0x1e386d,_0x266bc8);if(_0x3befdd)return _0x3befdd[_0x2b3933(0x123)]();}['clearAdjustControls'](){const _0x171b5d=_0x5db5d0;this[_0x171b5d(0x2c3)]();}[_0x5db5d0(0x40f)](){const _0x4735d3=_0x5db5d0;this[_0x4735d3(0xdc)](!0x0);}[_0x5db5d0(0x1de)](_0x197ef2){const _0x548990=_0x5db5d0;this[_0x548990(0x376)]=_0x197ef2;}[_0x5db5d0(0x3f6)](_0x13c892,_0x5c70f7,_0x24cc91,_0xeacddd){const _0x4a6867=_0x5db5d0;let _0x42933d=this[_0x4a6867(0x27f)]['getShapeModel'](_0x13c892,_0x5c70f7,_0x24cc91);if(_0x42933d)return _0x42933d[_0x4a6867(0x2af)](_0xeacddd);}[_0x5db5d0(0x13d)](_0x3ddbf5=!0x1){const _0x299ef7=_0x5db5d0;if(this[_0x299ef7(0x3d2)]===null||this[_0x299ef7(0x23c)]===null||this[_0x299ef7(0x296)]===null)return;let _0x2e7952=this['_renderManagerService'][_0x299ef7(0x2c4)](this['_unitId']);if(!_0x2e7952||!_0x2e7952[_0x299ef7(0x35a)](l[_0x299ef7(0x364)])['getCurrentSkeleton']())return;let {scene:_0xadea2b}=_0x2e7952,_0x59dec1={'unitId':this[_0x299ef7(0x3d2)],'subUnitId':this[_0x299ef7(0x23c)],'drawingId':this['_activeShapeId']},_0x5b09e0=this[_0x299ef7(0x3b1)]['getDrawingByParam'](_0x59dec1),{transform:_0x1992ae}=_0x5b09e0;if(!_0x1992ae||_0x5b09e0['drawingType']!==a[_0x299ef7(0x3e6)][_0x299ef7(0x19d)])return;let {left:_0x37cf2e,top:_0x3ddaf3,width:_0xca45ef,height:_0x2057ac,flipX:_0x1a04e9,flipY:_0x4a814f,angle:_0x1f46c6=0x0}=_0x1992ae;if(_0x37cf2e===void 0x0||_0x3ddaf3===void 0x0)return;if(_0x3ddbf5){let _0x4e46fe=this['_sheetsShapeService'][_0x299ef7(0x11e)](this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)],this[_0x299ef7(0x296)]);_0x4e46fe==null||_0x4e46fe[_0x299ef7(0x141)]({'width':_0xca45ef??0x0,'height':_0x2057ac??0x0}),this[_0x299ef7(0x12a)]=_0x4e46fe==null?void 0x0:_0x4e46fe[_0x299ef7(0x123)]();}let _0x4dcde1=this['_activeShapeAdjustPointList'];for(let _0x4ff21b=0x0;_0x4ff21b<_0x4dcde1['length'];_0x4ff21b++){let _0x2d3e71=_0x4dcde1[_0x4ff21b],_0x8411bc=_0x2d3e71['x'],_0x2879c6=_0x2d3e71['y'];if(_0x1a04e9&&(_0x8411bc=(_0xca45ef||0x0)-_0x8411bc),_0x4a814f&&(_0x2879c6=(_0x2057ac||0x0)-_0x2879c6),_0x1f46c6!==0x0){let _0x121a4e=(_0xca45ef||0x0)/0x2,_0x1fe6d0=(_0x2057ac||0x0)/0x2,_0x5710bd=_0x1f46c6*Math['PI']/0xb4,_0x48a62a=Math[_0x299ef7(0x39e)](_0x5710bd),_0x5b3ef9=Math[_0x299ef7(0x407)](_0x5710bd),_0x4e6f0d=_0x8411bc-_0x121a4e,_0x56a61c=_0x2879c6-_0x1fe6d0;_0x8411bc=_0x121a4e+(_0x4e6f0d*_0x48a62a-_0x56a61c*_0x5b3ef9),_0x2879c6=_0x1fe6d0+(_0x4e6f0d*_0x5b3ef9+_0x56a61c*_0x48a62a);}let _0x1fd709={'x':_0x8411bc,'y':_0x2879c6,'adjName':_0x2d3e71[_0x299ef7(0x24b)]};this[_0x299ef7(0x1a4)](_0xadea2b,_0x1fd709,_0x1fd709['adjName'],_0x37cf2e,_0x3ddaf3,this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)]);}}[_0x5db5d0(0xdc)](_0x5352f3=!0x1){const _0x502400=_0x5db5d0;_0x5352f3&&(this[_0x502400(0x2c3)](),this['_createShapeAdjustControls'](_0x5352f3));}['_addShapeAdjustControl'](_0x50b39f,_0x4a2bcf,_0x26cadb,_0x17ee47,_0x15feea,_0x1cbbc1,_0x9d6fe6){const _0x593433=_0x5db5d0;if(!this[_0x593433(0x296)])return;let _0x169b6e=_0x50b39f['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x593433(0x296)]+'-'+_0x26cadb);if(_0x169b6e){_0x169b6e['transformByState']({'left':_0x4a2bcf['x']+_0x17ee47-n[_0x593433(0x2b4)]['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)]['adjHandleSize']});return;}let _0x25ee1c={'left':_0x4a2bcf['x']+_0x17ee47-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)][_0x593433(0x269)],'adjName':_0x26cadb,'shapeId':this[_0x593433(0x296)],'unitId':_0x1cbbc1,'subUnitId':_0x9d6fe6,'width':n[_0x593433(0x2b4)][_0x593433(0x269)]+0x8,'height':n[_0x593433(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x35ab7d=new k(_0x593433(0x2a5)+this['_activeShapeId']+'-'+_0x26cadb,_0x25ee1c);this[_0x593433(0x221)][_0x593433(0x1bd)](_0x35ab7d),this[_0x593433(0x139)](_0x35ab7d,_0x50b39f,_0x26cadb),_0x50b39f[_0x593433(0x251)](_0x35ab7d,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x5db5d0(0x2c3)](){const _0x4e40d3=_0x5db5d0;this[_0x4e40d3(0x221)][_0x4e40d3(0x2fb)]!==0x0&&(this[_0x4e40d3(0x221)][_0x4e40d3(0xe5)](_0x4e2fa4=>{const _0x353fde=_0x4e40d3;_0x4e2fa4[_0x353fde(0x1c4)]();}),this[_0x4e40d3(0x221)]=[]);}['_updateAdjustControlPositions'](){const _0x56d7a0=_0x5db5d0;this[_0x56d7a0(0x13d)]();}['_getScrollInfo'](_0x3b23f6,_0x232853){const _0x4c16c9=_0x5db5d0;var _0x5d4003;let _0x11a200={'x':0x0,'y':0x0};if(!_0x3b23f6||!_0x232853)return _0x11a200;let _0x2d7585=this[_0x4c16c9(0x104)][_0x4c16c9(0x2c4)](_0x3b23f6);if(!_0x2d7585||!_0x2d7585[_0x4c16c9(0x35a)](l[_0x4c16c9(0x364)])[_0x4c16c9(0x23a)](_0x232853))return _0x11a200;let _0x50ecd6=_0x2d7585[_0x4c16c9(0x35a)](l['SheetScrollManagerService']),_0x270279=_0x50ecd6==null?void 0x0:_0x50ecd6[_0x4c16c9(0x2ac)]();if(!_0x270279)return _0x11a200;let _0x52f3bb=(_0x5d4003=this[_0x4c16c9(0x12c)][_0x4c16c9(0x1ae)](_0x3b23f6))==null?void 0x0:_0x5d4003[_0x4c16c9(0x26d)](_0x232853);if(!_0x52f3bb)return _0x11a200;let _0x40f816=(0x0,l[_0x4c16c9(0x404)])(_0x270279[_0x4c16c9(0x1a5)],_0x270279[_0x4c16c9(0x149)],_0x2d7585['scene'],_0x52f3bb);return _0x40f816?{'x':_0x40f816[_0x4c16c9(0xd6)],'y':_0x40f816[_0x4c16c9(0x370)]}:_0x11a200;}[_0x5db5d0(0x34f)](_0x4be629,_0xb46b70){const _0x2dbb67=_0x5db5d0;var _0x645bf6;let _0x46efc9=(_0x645bf6=this[_0x2dbb67(0x12c)][_0x2dbb67(0x1ae)](_0x4be629))==null?void 0x0:_0x645bf6[_0x2dbb67(0x26d)](_0xb46b70);return(_0x46efc9==null?void 0x0:_0x46efc9[_0x2dbb67(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x3d2b32,_0xf53558,_0xb5a46f){const _0x9f67dd=_0x5db5d0;this[_0x9f67dd(0x17d)]((0x0,a[_0x9f67dd(0x105)])(_0x3d2b32[_0x9f67dd(0x1c2)][_0x9f67dd(0x151)]((_0x5a49f0,_0x42076d)=>{const _0x816f93=_0x9f67dd;var _0x3804a1,_0x2da439,_0x4a1659,_0x453ae5;let _0x4ac962=_0x3d2b32['getDrawingSearch']();this[_0x816f93(0x1f6)]=this[_0x816f93(0x3f6)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)],_0xb5a46f),this['_activeShapeModel']=this[_0x816f93(0x27f)][_0x816f93(0x11e)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)]);let _0x4cc543=this[_0x816f93(0x3b1)][_0x816f93(0x15a)]({'unitId':this[_0x816f93(0x3d2)],'subUnitId':this[_0x816f93(0x23c)],'drawingId':this[_0x816f93(0x296)]}),{transform:_0x413e37}=_0x4cc543;if(_0x413e37){let {left:_0x489923,top:_0x47f467,width:_0x59170d,height:_0x42017b}=_0x413e37;this[_0x816f93(0x260)]=_0x489923||0x0,this[_0x816f93(0x423)]=_0x47f467||0x0,this[_0x816f93(0x2b6)]=_0x59170d||0x0,this[_0x816f93(0xe0)]=_0x42017b||0x0;}let _0x25dc2f=!!((_0x3804a1=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x3804a1['flipX']),_0x307f8b=!!((_0x2da439=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x2da439[_0x816f93(0xef)]),_0x70b56a=((_0x4a1659=_0x4cc543[_0x816f93(0x32a)])==null?void 0x0:_0x4a1659[_0x816f93(0x3ed)])||0x0;this['_isStartAdjusting']=!0x0,_0xf53558['disableObjectsEvent']();let _0x4d1d2e={...((_0x453ae5=this[_0x816f93(0x1f6)])==null?void 0x0:_0x453ae5[_0x816f93(0x1f9)])??{}};this['_adjHandlerPointerMove']=_0xf53558[_0x816f93(0x1b5)][_0x816f93(0x151)]((_0x1d69ac,_0x935fa9)=>{const _0x3621b4=_0x816f93;if(!this['_isStartAdjusting'])return;let {offsetX:_0x26489f,offsetY:_0x576114}=_0x1d69ac,_0x294eef=this[_0x3621b4(0x1f6)];if(this['_activeShapeModel']&&_0x294eef){_0xf53558[_0x3621b4(0x2a1)](),_0xf53558[_0x3621b4(0x27d)](c[_0x3621b4(0x30f)]['CROSSHAIR']);let _0x4801fb={'left':0x0,'top':0x0,'width':this[_0x3621b4(0x2b6)],'height':this[_0x3621b4(0xe0)]},_0x21096d=this[_0x3621b4(0x245)](this['_unitId'],this[_0x3621b4(0x23c)]),_0x3ad485=this[_0x3621b4(0x34f)](this[_0x3621b4(0x3d2)],this['_subUnitId']),_0x3ca882=_0x26489f/_0x3ad485+_0x21096d['x']-this[_0x3621b4(0x260)],_0x122ec7=_0x576114/_0x3ad485+_0x21096d['y']-this[_0x3621b4(0x423)];if(_0x70b56a!==0x0){let _0x2d0f34=this[_0x3621b4(0x2b6)]/0x2,_0x24bf47=this['_baseShapeHeight']/0x2,_0x3e10d1=_0x70b56a*Math['PI']/0xb4,_0x5717c3=Math[_0x3621b4(0x39e)](_0x3e10d1),_0x355475=Math[_0x3621b4(0x407)](_0x3e10d1),_0x353c07=_0x3ca882-_0x2d0f34,_0x2dcf4d=_0x122ec7-_0x24bf47;_0x3ca882=_0x2d0f34+(_0x353c07*_0x5717c3+_0x2dcf4d*_0x355475),_0x122ec7=_0x24bf47+(-_0x353c07*_0x355475+_0x2dcf4d*_0x5717c3);}_0x25dc2f&&(_0x3ca882=this[_0x3621b4(0x2b6)]-_0x3ca882),_0x307f8b&&(_0x122ec7=this[_0x3621b4(0xe0)]-_0x122ec7);let _0x475cae={'x':_0x3ca882,'y':_0x122ec7},_0x49589f=this[_0x3621b4(0x258)][_0x3621b4(0xe2)](_0x4801fb,_0x475cae,_0x294eef,_0x25dc2f,_0x307f8b);if(Object[_0x3621b4(0x29c)](_0x49589f)[_0x3621b4(0x2fb)]===0x0)return;for(let [_0x3202ff,_0x1cbd78]of Object['entries'](_0x49589f))this['_activeShapeModel'][_0x3621b4(0x19a)](_0x3202ff,_0x1cbd78);this['_activeShapeModel'][_0x3621b4(0x141)]({'width':this[_0x3621b4(0x2b6)],'height':this['_baseShapeHeight']});let _0x59d2b1=this[_0x3621b4(0x3b1)][_0x3621b4(0x15a)]({'unitId':_0x4ac962[_0x3621b4(0x3bf)],'subUnitId':_0x4ac962[_0x3621b4(0x20a)],'drawingId':_0x4ac962[_0x3621b4(0x3e3)]});_0x59d2b1&&(this['_sheetDrawingShapeRenderController'][_0x3621b4(0x308)](_0x59d2b1,_0xf53558),this[_0x3621b4(0x12a)]=this['_getShapeAdjustPointListById'](_0x4ac962[_0x3621b4(0x3bf)],_0x4ac962['subUnitId'],_0x4ac962[_0x3621b4(0x3e3)]),this[_0x3621b4(0x2d6)]());}_0x935fa9[_0x3621b4(0x15f)]();}),this[_0x816f93(0x29d)]=_0xf53558['onPointerUp$'][_0x816f93(0x151)]((_0x2b7ab4,_0xa2664)=>{const _0x5ebef2=_0x816f93;this[_0x5ebef2(0x173)]['unsubscribe'](),this[_0x5ebef2(0x29d)][_0x5ebef2(0x284)](),_0xf53558[_0x5ebef2(0x338)]();let _0x5dd987=this[_0x5ebef2(0x1f6)];if(_0x5dd987){let _0x21a7c4=_0x4ac962[_0x5ebef2(0x3bf)],_0x4ff9d9=_0x4ac962[_0x5ebef2(0x20a)],_0x5b4677=_0x4ac962['drawingId'],_0x76a23d={};for(let _0x3d0125 of Object[_0x5ebef2(0x29c)](_0x5dd987['currentAdjustValues'])){var _0x10a983;let _0x326f02=(_0x10a983=this[_0x5ebef2(0x258)])==null?void 0x0:_0x10a983[_0x5ebef2(0xd7)](_0x3d0125);_0x326f02!==void 0x0&&(_0x76a23d[_0x3d0125]=_0x326f02);}Object['keys'](_0x76a23d)[_0x5ebef2(0x2fb)]>0x0&&C(this[_0x5ebef2(0x1ad)],_0x21a7c4,_0x4ff9d9,_0x5b4677,{'oldShapeData':{'adjustValues':_0x4d1d2e}},{'adjustValues':_0x76a23d});}this['_activeAdjustInfo']=void 0x0,this[_0x5ebef2(0x258)]=void 0x0,this[_0x5ebef2(0x182)]=!0x1,_0xa2664[_0x5ebef2(0x15f)](),_0xf53558['enableObjectsEvent']();}),_0x42076d['stopPropagation']();})));}[_0x5db5d0(0x21c)](){const _0x27b35d=_0x5db5d0;let _0x1053bf=this[_0x27b35d(0x12c)][_0x27b35d(0x384)](a['UniverInstanceType']['UNIVER_SHEET']);this[_0x27b35d(0x17d)](_0x1053bf[_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x2b3c05=>_0x2b3c05?_0x2b3c05['activeSheet$'][_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x1c7c8c=>{const _0xa4997b=_0x27b35d;if(!_0x1c7c8c)return u['EMPTY'];let _0x38ff5c=_0x2b3c05[_0xa4997b(0x2d1)](),_0x335224=this[_0xa4997b(0x104)]['getRenderUnitById'](_0x38ff5c),_0x3b45e3=_0x335224==null?void 0x0:_0x335224[_0xa4997b(0x2e7)];return _0x3b45e3?(0x0,u['of'])(_0x3b45e3):u[_0xa4997b(0x395)];})):u['EMPTY']))[_0x27b35d(0x426)](_0x34b92d=>{const _0x3d3671=_0x27b35d;let _0x300cfb=_0x34b92d[_0x3d3671(0x3cb)]();this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x1b5)][_0x3d3671(0x151)](()=>{const _0x31a611=_0x3d3671;this[_0x31a611(0x376)];})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x328)][_0x3d3671(0x426)](_0x353937=>{const _0x2357a0=_0x3d3671;let {objects:_0x3316ff}=_0x353937;this[_0x2357a0(0x13d)](),_0x3316ff!==null&&_0x3316ff['size']===0x1&&_0x3316ff[_0x2357a0(0x3ae)]()[_0x2357a0(0x430)]()[_0x2357a0(0x30b)]instanceof O&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x300cfb['changing$'][_0x3d3671(0x426)](()=>{const _0xb9e001=_0x3d3671;this[_0xb9e001(0x376)]&&this[_0xb9e001(0x2c3)]();})),this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x369)]['subscribeEvent'](()=>{const _0x26b0c5=_0x3d3671;this[_0x26b0c5(0x376)]&&(this[_0x26b0c5(0x1de)](!0x1),this[_0x26b0c5(0x13d)]());})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x3f8)][_0x3d3671(0x426)](()=>{const _0x3e779b=_0x3d3671;this[_0x3e779b(0x3d2)]&&this[_0x3e779b(0x23c)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x3e779b(0x15a)]({'unitId':this['_unitId'],'subUnitId':this[_0x3e779b(0x23c)],'drawingId':this['_activeShapeId']})&&(this[_0x3e779b(0x12a)]=this[_0x3e779b(0x3e1)](this[_0x3e779b(0x3d2)],this[_0x3e779b(0x23c)],this[_0x3e779b(0x296)]),this[_0x3e779b(0x2d6)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28bd44=_0x5db5d0;this[_0x28bd44(0x17d)](this[_0x28bd44(0x1ad)][_0x28bd44(0x1aa)](_0x594085=>{const _0xea327=_0x28bd44;if(_0x594085['id']!==i[_0xea327(0x244)]['id'])return;let {unitId:_0xdf8a2a,subUnitId:_0x391fab,shapeId:_0x302d3a}=_0x594085['params'];_0xdf8a2a===this['_unitId']&&_0x391fab===this[_0xea327(0x23c)]&&_0x302d3a===this['_activeShapeId']&&this[_0xea327(0x40f)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x344)][_0x28bd44(0x426)](_0x4f7843=>{const _0x5627f1=_0x28bd44;if(_0x4f7843[_0x5627f1(0x2fb)]===0x1){let _0x21596c=_0x4f7843[0x0];if(_0x21596c[_0x5627f1(0x3c1)]===a[_0x5627f1(0x3e6)][_0x5627f1(0x19d)]&&this[_0x5627f1(0x12c)][_0x5627f1(0x16c)](_0x21596c['unitId'])===a[_0x5627f1(0x400)]['UNIVER_SHEET']){this[_0x5627f1(0x296)]=_0x21596c[_0x5627f1(0x3e3)];let {unitId:_0x1acd31,subUnitId:_0x22137d}=_0x21596c;this[_0x5627f1(0x12a)]=this[_0x5627f1(0x3e1)](_0x1acd31,_0x22137d,this[_0x5627f1(0x296)]),this[_0x5627f1(0x3d2)]=_0x1acd31,this[_0x5627f1(0x23c)]=_0x22137d,this[_0x5627f1(0x2c3)](),this[_0x5627f1(0x13d)]();return;}}this[_0x5627f1(0x296)]=null,this[_0x5627f1(0x12a)]=void 0x0,this['_unitId']=null,this[_0x5627f1(0x23c)]=null,this[_0x5627f1(0x2c3)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)]['update$']['subscribe'](_0x5bb939=>{const _0x1d6c36=_0x28bd44;if(_0x5bb939[_0x1d6c36(0x2fb)]===0x1){var _0x5c2a26;let _0x62c74=_0x5bb939[0x0];((_0x5c2a26=this['_drawingManagerService'][_0x1d6c36(0x15a)](_0x62c74))==null?void 0x0:_0x5c2a26[_0x1d6c36(0x3c1)])===a['DrawingTypeEnum'][_0x1d6c36(0x19d)]&&this[_0x1d6c36(0xdc)](!0x0);}})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x386)][_0x28bd44(0x426)](_0x59a964=>{const _0x282dc0=_0x28bd44;for(let _0x5e9ffa of _0x59a964)this[_0x282dc0(0x296)]===_0x5e9ffa[_0x282dc0(0x3e3)]&&(this[_0x282dc0(0x296)]=null,this[_0x282dc0(0x12a)]=void 0x0,this['_unitId']=null,this[_0x282dc0(0x23c)]=null,this[_0x282dc0(0x2c3)]());}));}};N=j([A(0x0,s['IDrawingManagerService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(i['SheetsShapeService'])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c['IRenderManagerService'])),A(0x3,(0x0,a['Inject'])(M)),A(0x4,a['IUniverInstanceService']),A(0x5,a['ICommandService'])],N);const P={'id':_0x5db5d0(0x297),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x3b03a1,_0x23a133)=>{const _0x34da4e=_0x5db5d0;let _0x1b6340=_0x3b03a1[_0x34da4e(0x3b6)](s[_0x34da4e(0x10d)]),_0x2b0804=_0x3b03a1['get'](c[_0x34da4e(0x226)]),_0x50cb7d=_0x3b03a1[_0x34da4e(0x3b6)](N);if(_0x23a133==null)return!0x0;if(_0x23a133['length']>0x0){var _0x513da0;let _0x2a166a=(_0x513da0=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null?void 0x0:_0x513da0[_0x34da4e(0x2e7)];if(_0x2a166a){let {unitId:_0x1bc30c,subUnitId:_0x371878,drawingId:_0x23a108}=_0x23a133[0x0],_0x5138f8=(0x0,s[_0x34da4e(0x1f8)])({'unitId':_0x1bc30c,'subUnitId':_0x371878,'drawingId':_0x23a108},void 0x0),_0x2c8281=_0x2a166a[_0x34da4e(0x1d5)](_0x5138f8);if(_0x2c8281){var _0x26e28c;(_0x26e28c=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null||(_0x26e28c=_0x26e28c['scene']['getTransformer']())==null||_0x26e28c[_0x34da4e(0x1c7)](_0x2c8281);}}_0x1b6340[_0x34da4e(0x3aa)](_0x23a133),_0x50cb7d[_0x34da4e(0x1de)](!0x1);}return!0x0;}},F={'type':a['CommandType']['COMMAND'],'id':_0x5db5d0(0x3c4),'handler':async(_0x4380b2,_0x16ab60)=>{const _0x58c4e0=_0x5db5d0;let _0x531f2b=(0x0,o[_0x58c4e0(0x169)])(_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x1c8)]));if(!_0x531f2b)return!0x1;let _0x5d4d64=_0x4380b2[_0x58c4e0(0x3b6)](o[_0x58c4e0(0x134)])[_0x58c4e0(0x21a)]();if(!_0x5d4d64)return!0x1;let _0x423137=_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x2b9)]),{unitId:_0x4b82f1,subUnitId:_0x162f52}=_0x531f2b,{value:_0x5bed16,enhanceParams:_0x51787d}=_0x16ab60,{range:_0x4b0301}=_0x5d4d64,_0xbe6a18={'unitId':_0x4b82f1,'subUnitId':_0x162f52,'shapeType':_0x5bed16,'range':_0x4b0301,'shapeId':(0x0,a['generateRandomId'])()};if(_0x51787d){let _0x3023a6=(0x0,n[_0x58c4e0(0x2b3)])(_0x5bed16),_0x1664d3=_0x5bed16===n['ShapeTypeEnum'][_0x58c4e0(0x30e)];_0x3023a6&&(_0x51787d[_0x58c4e0(0x3bb)]||_0x51787d[_0x58c4e0(0x28e)])&&(_0xbe6a18['shapeData']={'ln':{'startArrow':_0x51787d[_0x58c4e0(0x3bb)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n[_0x58c4e0(0x164)]['Medium']}:void 0x0,'endArrow':_0x51787d[_0x58c4e0(0x28e)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n['ShapeArrowSizeEnum'][_0x58c4e0(0x217)]}:void 0x0}}),_0x1664d3&&(_0x51787d['horizontal']||_0x51787d[_0x58c4e0(0x34e)])&&(_0xbe6a18['shapeData']=(0x0,r['createShapeTextBoxShapeData'])({'fill':{'fillType':n[_0x58c4e0(0x392)]['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x51787d[_0x58c4e0(0x29f)],'stroke':{'lineStrokeType':n[_0x58c4e0(0x1b6)][_0x58c4e0(0x117)],'width':0x1,'color':'#bcbcbc'}}));}let _0x774892=_0x423137[_0x58c4e0(0x3b8)](i['InsertShapeCommand']['id'],_0xbe6a18);return setTimeout(()=>{const _0x36cd25=_0x58c4e0;_0x423137[_0x36cd25(0x3e5)](P['id'],[{'unitId':_0x4b82f1,'subUnitId':_0x162f52,'drawingId':_0xbe6a18['shapeId']}]);},0xc8),_0x774892;}},I='sheet.shape.edit.panel',L='sheet.shape.object-list.panel',R='sheet.shape.floating-toolbar',z=_0x5db5d0(0x433),ne=(0x0,a['createInternalEditorID'])(_0x5db5d0(0x312)),re=_0x5db5d0(0x2df),ie={'id':_0x5db5d0(0x3bd),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'handler':(_0x436940,_0x42bd42)=>{const _0x5a9b4a=_0x5db5d0;let _0x3a9e37=_0x436940[_0x5a9b4a(0x3b6)](t['ISidebarService']),_0x785d12=_0x436940['get'](a['LocaleService']),_0x4fff9a=_0x436940['get'](a[_0x5a9b4a(0x1c8)]),_0x542222=_0x436940[_0x5a9b4a(0x3b6)](a[_0x5a9b4a(0x2b9)]);return(0x0,o[_0x5a9b4a(0x169)])(_0x4fff9a)?(_0x42bd42==null?void 0x0:_0x42bd42['value'])==='close'?(_0x3a9e37['close'](L),!0x0):(_0x3a9e37[_0x5a9b4a(0x3fb)]({'id':L,'header':{'title':_0x785d12['t'](_0x5a9b4a(0x24d))},'children':{'label':L},'onClose':()=>{_0x542222['syncExecuteCommand'](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},B={'type':a['CommandType'][_0x5db5d0(0x29a)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function ae(_0x25c4f7){const _0x2ddd54=_0x5db5d0;let _0x3941f5=_0x25c4f7[_0x2ddd54(0x3b6)](s['IDrawingManagerService'])[_0x2ddd54(0x3fc)](),_0x56bdfa=_0x3941f5[_0x2ddd54(0x2fb)]===0x1?_0x3941f5[0x0]:null;if(!_0x56bdfa||_0x56bdfa[_0x2ddd54(0x3c1)]!==a[_0x2ddd54(0x3e6)]['DRAWING_SHAPE'])return null;let _0x164aed=_0x25c4f7[_0x2ddd54(0x3b6)](i[_0x2ddd54(0x1e0)]),_0x34b7c9=_0x164aed[_0x2ddd54(0x214)](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa[_0x2ddd54(0x20a)],_0x56bdfa[_0x2ddd54(0x3e3)]),_0x505b5f=_0x164aed['getShapeDataById'](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa['subUnitId'],_0x56bdfa[_0x2ddd54(0x3e3)]);return _0x34b7c9===void 0x0||!_0x505b5f?null:{'drawing':_0x56bdfa,'shapeData':_0x505b5f,'shapeType':_0x34b7c9};}const oe={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x2cd733,_0x452941)=>{const _0x125974=_0x5db5d0;let _0x563dea=ae(_0x2cd733),_0x391267=(0x0,r['getShapeQuickStylePreset'])((_0x452941==null?void 0x0:_0x452941[_0x125974(0x2c5)])??(_0x452941==null?void 0x0:_0x452941['value'])??'');if(!_0x563dea||!_0x391267||_0x391267[_0x125974(0x23f)]!==(0x0,r[_0x125974(0x146)])(_0x563dea['shapeData']))return!0x1;let _0x26a47c=(0x0,r['applyQuickStyleToShapeData'])(_0x563dea[_0x125974(0x398)],_0x391267);if(!_0x26a47c)return!0x1;let {drawing:_0x19877f}=_0x563dea;return _0x2cd733[_0x125974(0x3b6)](a['ICommandService'])[_0x125974(0x3e5)](S['id'],{'unitId':_0x19877f['unitId'],'subUnitId':_0x19877f[_0x125974(0x20a)],'shapeId':_0x19877f[_0x125974(0x3e3)],'shapeData':_0x26a47c,'oldShapeJSON':{'oldShapeData':_0x563dea['shapeData']}});}},se={'id':'sheet.operation.update-shape-type','type':a['CommandType']['OPERATION'],'handler':(_0x122ee3,_0x32e6e2)=>{const _0x23e181=_0x5db5d0;let _0x38ce44=ae(_0x122ee3),_0x8ddefa=(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x17f)])??(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x30b)]);if(!_0x38ce44||!_0x8ddefa||(0x0,n[_0x23e181(0x2b3)])(_0x38ce44[_0x23e181(0x17f)])||(0x0,n[_0x23e181(0x2b3)])(_0x8ddefa))return!0x1;let _0x2bbb96=(0x0,r['cloneShapeDataForType'])(_0x38ce44[_0x23e181(0x398)],_0x8ddefa);if(!_0x2bbb96)return!0x1;let {drawing:_0x2eb01e}=_0x38ce44;return _0x122ee3['get'](a['ICommandService'])[_0x23e181(0x3e5)](S['id'],{'unitId':_0x2eb01e['unitId'],'subUnitId':_0x2eb01e[_0x23e181(0x20a)],'shapeId':_0x2eb01e[_0x23e181(0x3e3)],'shapeType':_0x8ddefa,'shapeData':_0x2bbb96,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x38ce44[_0x23e181(0x17f)],'oldShapeData':_0x38ce44[_0x23e181(0x398)]}});}};let V=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x14f30c,_0x2c62b4){const _0x3a1232=_0x5db5d0;super(),this[_0x3a1232(0x291)]=_0x14f30c,this[_0x3a1232(0x3b1)]=_0x2c62b4,this[_0x3a1232(0x119)](),this['_clipService'][_0x3a1232(0x155)](!0x0),this[_0x3a1232(0x17d)]({'dispose':()=>this[_0x3a1232(0x291)]['setCanUseShapeClip'](!0x1)});}[_0x5db5d0(0x119)](){const _0x57dbab=_0x5db5d0;let _0x47d998=this[_0x57dbab(0x291)],_0x1c5fda=new Map(),_0x5d1dfe=_0x47d998[_0x57dbab(0xda)]((_0x2c5d04,_0x41b6e0,_0x5d794b,_0x4c4aa6,_0xa887d4)=>{const _0x28f115=_0x57dbab;let _0x260fbf=_0x41b6e0;if(_0x260fbf===n[_0x28f115(0x259)][_0x28f115(0xf6)]||_0x41b6e0===_0x28f115(0x126))return!0x1;try{let _0x265683=_0x1c5fda[_0x28f115(0x3b6)](_0x41b6e0);return _0x265683||(_0x265683=new n[(_0x28f115(0x243))](_0x260fbf,_0x28f115(0x2c8)+_0x41b6e0),_0x1c5fda['set'](_0x41b6e0,_0x265683)),_0x265683[_0x28f115(0x1e5)](),_0xa887d4&&Object[_0x28f115(0x29c)](_0xa887d4)[_0x28f115(0x2fb)]>0x0&&_0x265683[_0x28f115(0x408)]({'adjustValues':_0xa887d4},!0x0),_0x265683[_0x28f115(0x141)]({'width':_0x5d794b,'height':_0x4c4aa6}),_0x265683['buildClipPath'](_0x2c5d04,{'left':0x0,'top':0x0,'width':_0x5d794b,'height':_0x4c4aa6});}catch{return!0x1;}});this[_0x57dbab(0x17d)](_0x5d1dfe),this[_0x57dbab(0x17d)]({'dispose':()=>_0x1c5fda['clear']()});}['clipByShape'](_0x23aa74,_0x37af8b,_0x1635bb,_0x595934,_0x38deb4){const _0xcf57ca=_0x5db5d0;let _0x2c394c=this[_0xcf57ca(0x3b1)][_0xcf57ca(0x343)](_0x23aa74,_0x37af8b);if(!_0x2c394c[_0x1635bb])return;let _0x4de1cd={..._0x2c394c[_0x1635bb],'prstGeom':_0x595934,'adjustValues':_0x38deb4};this['_drawingManagerService'][_0xcf57ca(0x336)]([_0x4de1cd]);}};V=j([A(0x0,(0x0,a['Inject'])(d[_0x5db5d0(0x3ec)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)]))],V);const ce='sheet.shape.picker.component',le=_0x5db5d0(0x3ee);function ue({onShapeClick:_0x123916,excludeGroups:_0x31eb4c}){const _0x37f713=_0x5db5d0;return(0x0,p['jsx'])(e[_0x37f713(0x1cf)],{'excludeGroups':_0x31eb4c,'onShapeClick':_0x123916,'scrollContainer':_0x37f713(0x277)});}function de(){const _0x4e6a6e=_0x5db5d0;let _0x1cb97a=(0x0,t[_0x4e6a6e(0x432)])(s[_0x4e6a6e(0x10d)]),_0x20d684=(0x0,t['useDependency'])(V);return(0x0,p['jsx'])(e[_0x4e6a6e(0x1b3)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e['ShapeGroupEnum'][_0x4e6a6e(0x431)]],'onShapeClick':_0x19561d=>{const _0x24abff=_0x4e6a6e;let _0x3778c1=_0x1cb97a[_0x24abff(0x3fc)]()[_0x24abff(0x249)](_0x10e2cc=>_0x10e2cc[_0x24abff(0x3c1)]===a[_0x24abff(0x3e6)][_0x24abff(0x135)]);if(!_0x3778c1)return;let {unitId:_0x4a34f8,subUnitId:_0x386716,drawingId:_0x507a81}=_0x3778c1;_0x20d684['clipByShape'](_0x4a34f8,_0x386716,_0x507a81,_0x19561d['type']);}});}function fe(){const _0x16a5d4=_0x5db5d0;let _0x2ac001=(0x0,t[_0x16a5d4(0x432)])(s[_0x16a5d4(0x10d)]),_0xfd19bb=(0x0,t[_0x16a5d4(0x432)])(V);return(0x0,p[_0x16a5d4(0x37a)])(e['ShapePickerDropdown'],{'buttonLabel':_0x16a5d4(0x2c9),'excludeGroups':[e[_0x16a5d4(0x350)][_0x16a5d4(0x431)]],'DropdownComponent':f[_0x16a5d4(0x266)],'onShapeClick':_0x4820fb=>{const _0xfe3fd2=_0x16a5d4;let _0x23668a=_0x2ac001[_0xfe3fd2(0x3fc)]()['find'](_0x526c9b=>_0x526c9b['drawingType']===a[_0xfe3fd2(0x3e6)]['DRAWING_IMAGE']);if(!_0x23668a)return;let {unitId:_0x30e5,subUnitId:_0x4e93df,drawingId:_0x252818}=_0x23668a;_0xfd19bb[_0xfe3fd2(0x25e)](_0x30e5,_0x4e93df,_0x252818,_0x4820fb[_0xfe3fd2(0x23f)]);}});}function pe(){const _0x1cd864=_0x5db5d0;let _0x1b16a4=(0x0,t[_0x1cd864(0x432)])(t[_0x1cd864(0xd8)]),_0x4fc013=(0x0,t[_0x1cd864(0x432)])(s['IDrawingManagerService']),_0x3274fb=(0x0,t[_0x1cd864(0x432)])(a[_0x1cd864(0x1c8)]),_0xe04eca=_0x4fc013[_0x1cd864(0x3fc)]()[0x0],_0x6cb655=_0xe04eca?_0x3274fb[_0x1cd864(0x16c)](_0xe04eca[_0x1cd864(0x3bf)]):void 0x0,_0x18c0fe=_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_DOC']?_0x1cd864(0x3e7):_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_SHEET']?le:void 0x0,_0x2cb553=_0x18c0fe?_0x1b16a4[_0x1cd864(0x3b6)](_0x18c0fe):void 0x0;return _0x2cb553?(0x0,p[_0x1cd864(0x37a)])(_0x2cb553,{}):null;}function me(){const _0xcce9e0=_0x5db5d0;let _0x1ed19b=(0x0,t[_0xcce9e0(0x432)])(a[_0xcce9e0(0x2b9)]);return(0x0,p[_0xcce9e0(0x37a)])(ue,{'onShapeClick':_0x2433d1=>{const _0x36f103=_0xcce9e0;_0x1ed19b[_0x36f103(0x3e5)](F['id'],{'value':_0x2433d1['type'],'enhanceParams':{'endArrow':_0x2433d1['endArrow'],'startArrow':_0x2433d1[_0x36f103(0x3bb)],'horizontal':_0x2433d1[_0x36f103(0x29f)],'vertical':_0x2433d1[_0x36f103(0x34e)]}});}});}function he(){const _0x1d95c1=_0x5db5d0;return(0x0,p[_0x1d95c1(0x37a)])(me,{});}function ge(_0x104cf0){const _0x833584=_0x5db5d0;let _0x40ec6c=_0x104cf0[_0x833584(0x3b6)](a[_0x833584(0x1c8)]);return{'id':F['id'],'type':t['MenuItemType'][_0x833584(0x1b0)],'selections':[{'label':{'name':ce,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x833584(0x26b),'tooltip':_0x833584(0x2b2),'activated$':(0x0,l[_0x833584(0x147)])(_0x40ec6c,!0x1,()=>new u[(_0x833584(0x1d3))](_0x3687d6=>{const _0x2cd91c=_0x833584;_0x3687d6[_0x2cd91c(0x430)](!0x1);})),'hidden$':(0x0,t[_0x833584(0x28b)])(_0x104cf0,a['UniverInstanceType'][_0x833584(0x319)]),'disabled$':(0x0,l[_0x833584(0xf7)])(_0x104cf0)};}function _e(_0x1e8fd5){const _0x508e3d=_0x5db5d0;let _0x662a50=_0x1e8fd5[_0x508e3d(0x3b6)](a['IUniverInstanceService']);return{'id':ie['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x508e3d(0x1b9),'title':_0x508e3d(0xe4),'tooltip':_0x508e3d(0xe4),'activated$':(0x0,l[_0x508e3d(0x147)])(_0x662a50,!0x1,()=>new u['Observable'](_0x4faeee=>{const _0x5642a7=_0x508e3d;_0x4faeee[_0x5642a7(0x430)](!0x1);})),'hidden$':(0x0,t[_0x508e3d(0x28b)])(_0x1e8fd5,a[_0x508e3d(0x400)][_0x508e3d(0x319)]),'disabled$':(0x0,l[_0x508e3d(0xf7)])(_0x1e8fd5)};}const ve=_0x5db5d0(0x3cd),ye=_0x5db5d0(0x3eb);function be(_0x477a49){const _0x23dddc=_0x5db5d0;let _0x4ab12b=_0x477a49[_0x23dddc(0x3b6)](s['IDrawingManagerService'])[_0x23dddc(0x3fc)]();return _0x4ab12b[_0x23dddc(0x2fb)]===0x1&&_0x4ab12b[0x0][_0x23dddc(0x3c1)]===a[_0x23dddc(0x3e6)][_0x23dddc(0x19d)]?_0x4ab12b[0x0]:null;}function xe(_0x5335a0){const _0x217f39=_0x5db5d0;let _0x25dc71=_0x5335a0[_0x217f39(0x3b6)](s[_0x217f39(0x10d)]);return _0x25dc71['focus$'][_0x217f39(0x402)]((0x0,u[_0x217f39(0x2dc)])(_0x25dc71[_0x217f39(0x3fc)]()),(0x0,u[_0x217f39(0x410)])(_0xfe0ca4=>_0xfe0ca4['length']!==0x1||_0xfe0ca4[0x0][_0x217f39(0x3c1)]!==a['DrawingTypeEnum']['DRAWING_SHAPE']));}function Se(_0x57e9aa){const _0x5bb09e=_0x5db5d0;return{'id':ve,'commandId':i[_0x5bb09e(0x36c)]['id'],'type':t[_0x5bb09e(0x35e)][_0x5bb09e(0x19c)],'title':_0x5bb09e(0x10a),'tooltip':_0x5bb09e(0x10a),'icon':_0x5bb09e(0x38d),'hidden$':xe(_0x57e9aa),'params':()=>{const _0x4ddfeb=_0x5bb09e;let _0x28524b=be(_0x57e9aa);return _0x28524b?{'unitId':_0x28524b[_0x4ddfeb(0x3bf)],'subUnitId':_0x28524b['subUnitId'],'shapeId':_0x28524b['drawingId'],'flipH':!0x0}:void 0x0;}};}function Ce(_0x3bb372){const _0x738da9=_0x5db5d0;return{'id':ye,'commandId':i[_0x738da9(0x36c)]['id'],'type':t[_0x738da9(0x35e)][_0x738da9(0x19c)],'title':_0x738da9(0x339),'tooltip':_0x738da9(0x339),'icon':_0x738da9(0x1c3),'hidden$':xe(_0x3bb372),'params':()=>{const _0x121b05=_0x738da9;let _0xfbab1=be(_0x3bb372);return _0xfbab1?{'unitId':_0xfbab1[_0x121b05(0x3bf)],'subUnitId':_0xfbab1[_0x121b05(0x20a)],'shapeId':_0xfbab1[_0x121b05(0x3e3)],'flipV':!0x0}:void 0x0;}};}const we='sheets-shape-ui.shape-format.quick-style-gallery',Te=_0x5db5d0(0x25d),Ee=_0x5db5d0(0x222),De=_0x5db5d0(0x3ff);function Oe(){const _0x3a6e90=_0x5db5d0;let _0x64bfbc=(0x0,t[_0x3a6e90(0x432)])(a[_0x3a6e90(0x2b9)]),_0x389a7f=(0x0,t['useDependency'])(s[_0x3a6e90(0x10d)]),_0x55faf9=(0x0,t['useDependency'])(i[_0x3a6e90(0x1e0)]),_0x22eb0a=()=>{const _0x458d05=_0x3a6e90;var _0x5e7d32;let _0x158410=_0x389a7f[_0x458d05(0x3fc)]();if(_0x158410[_0x458d05(0x2fb)]!==0x1||((_0x5e7d32=_0x158410[0x0])==null?void 0x0:_0x5e7d32['drawingType'])!==a[_0x458d05(0x3e6)][_0x458d05(0x19d)])return null;let {unitId:_0x4ee30b,subUnitId:_0xea6d25,drawingId:_0x39e4e3}=_0x158410[0x0],_0x26288d=_0x55faf9[_0x458d05(0x214)](_0x4ee30b,_0xea6d25,_0x39e4e3),_0x554f46=_0x55faf9['getShapeDataById'](_0x4ee30b,_0xea6d25,_0x39e4e3);return _0x26288d===void 0x0||!_0x554f46?null:{'unitId':_0x4ee30b,'subUnitId':_0xea6d25,'drawingId':_0x39e4e3,'shapeType':_0x26288d,'shapeData':_0x554f46};},_0xf5a1b9=(0x0,t[_0x3a6e90(0x148)])(()=>new u[(_0x3a6e90(0x1d3))](_0x3b78cd=>{const _0xf683ff=_0x3a6e90;let _0x19c92c=()=>_0x3b78cd['next'](_0x22eb0a()),_0x131977=_0x389a7f[_0xf683ff(0x344)]['subscribe'](_0x19c92c),_0x43c62e=_0x64bfbc['onCommandExecuted'](_0x225f3b=>{const _0x33ddd1=_0xf683ff;_0x225f3b['id']===i[_0x33ddd1(0x244)]['id']&&_0x19c92c();});return _0x19c92c(),()=>{const _0x23a24e=_0xf683ff;_0x131977['unsubscribe'](),_0x43c62e[_0x23a24e(0x1c4)]();};}),_0x22eb0a(),!0x1,[_0x64bfbc,_0x389a7f,_0x55faf9]);return{'selection':_0xf5a1b9,'updateShapeData':_0x20335d=>{const _0x699c7c=_0x3a6e90;_0xf5a1b9&&C(_0x64bfbc,_0xf5a1b9[_0x699c7c(0x3bf)],_0xf5a1b9[_0x699c7c(0x20a)],_0xf5a1b9[_0x699c7c(0x3e3)],{'oldShapeData':_0xf5a1b9[_0x699c7c(0x398)]},_0x20335d);}};}function ke(){const _0x3e10b2=_0x5db5d0;let {selection:_0x2a4f02,updateShapeData:_0x1637c8}=Oe();return _0x2a4f02?(0x0,p[_0x3e10b2(0x37a)])(e[_0x3e10b2(0xe3)],{'shapeData':_0x2a4f02['shapeData'],'shapeType':_0x2a4f02[_0x3e10b2(0x17f)],'onUpdateShapeData':_0x1637c8}):null;}function Ae(){const _0x622ee8=_0x5db5d0;let _0x2da6cc=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x2b9)]),_0x191cd0=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x232)]),{selection:_0x5c2661}=Oe();return _0x5c2661?(0x0,p[_0x622ee8(0x37a)])(e[_0x622ee8(0xec)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x5c2661[_0x622ee8(0x398)]),'ariaLabel':_0x191cd0['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r[_0x622ee8(0x213)])(_0x5c2661['shapeData']),'onSelect':_0x917367=>_0x2da6cc[_0x622ee8(0x3e5)](oe['id'],{'presetId':_0x917367})}):null;}function je(){const _0x1a0df7=_0x5db5d0;let {selection:_0x41f0d5,updateShapeData:_0x303e75}=Oe();return _0x41f0d5?(0x0,p[_0x1a0df7(0x37a)])(e[_0x1a0df7(0x2a8)],{'fontFamilyPopupDataComponent':_0x1a0df7(0x20c),'shapeData':_0x41f0d5['shapeData'],'onUpdateShapeData':_0x303e75}):null;}function Me(){const _0x48ad11=_0x5db5d0;var _0x298cb1;let {selection:_0x79f59e,updateShapeData:_0x4a6671}=Oe(),_0x6627ff=(0x0,e['useFormulaShapeToolbar'])({'hostType':a[_0x48ad11(0x400)][_0x48ad11(0x319)],'unitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3bf)])??'','subUnitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x20a)])??'','shapeId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3e3)])??'','shapeData':_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x398)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x48ad11(0x108),'onUpdateBinding':_0x5e802d=>_0x4a6671({'formulaBinding':_0x5e802d})}),_0x1babe7=((_0x298cb1=_0x6627ff[_0x48ad11(0x250)])==null?void 0x0:_0x298cb1[_0x48ad11(0x429)](_0xaf2d7c=>_0xaf2d7c[_0x48ad11(0x3ea)])[_0x48ad11(0x38e)](_0x569208=>_0x569208[_0x48ad11(0x2cc)]!==!0x1))??[];return _0x79f59e!=null&&_0x79f59e['shapeData'][_0x48ad11(0x238)]?(0x0,p[_0x48ad11(0x37a)])(e[_0x48ad11(0x1c0)],{'actions':_0x1babe7,'panel':_0x6627ff[_0x48ad11(0x160)]}):null;}const Ne='sheets-shape-ui.ribbon.shape-format.style-control',Pe='sheets-shape-ui.ribbon.shape-format.text-control',Fe='sheets-shape-ui.ribbon.shape-format.formula-control',Ie=_0x5db5d0(0x192),Le='sheets-shape-ui.ribbon.shape-format.arrange-backward',Re=_0x5db5d0(0x33f),ze='sheets-shape-ui.ribbon.shape-format.arrange-back';function Be(_0x23f57d){const _0x3c500c=_0x5db5d0;let _0x1d6ba7=_0x23f57d[_0x3c500c(0x3b6)](a['ICommandService']),_0x25e15e=_0x23f57d[_0x3c500c(0x3b6)](s[_0x3c500c(0x10d)]),_0x483095=_0x23f57d[_0x3c500c(0x3b6)](i[_0x3c500c(0x1e0)]);return new u['Observable'](_0x41e710=>{const _0x32cf0f=_0x3c500c;let _0x17e95b=()=>{const _0x23e960=_0x29aa;let _0x5201e3=H(_0x23f57d),_0x4533cb=_0x5201e3?_0x483095[_0x23e960(0x287)](_0x5201e3['unitId'],_0x5201e3[_0x23e960(0x20a)],_0x5201e3['drawingId']):null;_0x41e710[_0x23e960(0x430)](_0x4533cb?(0x0,r[_0x23e960(0x213)])(_0x4533cb)??'':'');},_0x36c2fe=_0x25e15e[_0x32cf0f(0x344)][_0x32cf0f(0x426)](_0x17e95b),_0x375cca=_0x1d6ba7[_0x32cf0f(0x1aa)](_0x3eb978=>{const _0x1ebdd3=_0x32cf0f;_0x3eb978['id']===i[_0x1ebdd3(0x244)]['id']&&_0x17e95b();});return _0x17e95b(),()=>{const _0x2069c2=_0x32cf0f;_0x36c2fe[_0x2069c2(0x284)](),_0x375cca['dispose']();};});}function H(_0x2c9ff6){const _0x2cc988=_0x5db5d0;var _0x2acf25;let _0x1a0866=_0x2c9ff6['get'](s[_0x2cc988(0x10d)])[_0x2cc988(0x3fc)]();return _0x1a0866['length']===0x1&&((_0x2acf25=_0x1a0866[0x0])==null?void 0x0:_0x2acf25['drawingType'])===a[_0x2cc988(0x3e6)]['DRAWING_SHAPE']?_0x1a0866[0x0]:null;}function Ve(_0x313b0c,_0x234192=!0x1){const _0x2a4ae5=_0x5db5d0;let _0x24da15=_0x313b0c[_0x2a4ae5(0x3b6)](a[_0x2a4ae5(0x2b9)]),_0x2038ed=_0x313b0c[_0x2a4ae5(0x3b6)](s[_0x2a4ae5(0x10d)]),_0x22b6b3=_0x313b0c[_0x2a4ae5(0x3b6)](i[_0x2a4ae5(0x1e0)]);return new u['Observable'](_0x28c239=>{const _0xf0dd89=_0x2a4ae5;let _0x5799be=()=>{const _0x33ad39=_0x29aa;let _0x594dcd=H(_0x313b0c);if(!_0x594dcd){_0x28c239[_0x33ad39(0x430)](!0x0);return;}let _0x1e0670=_0x22b6b3[_0x33ad39(0x287)](_0x594dcd['unitId'],_0x594dcd['subUnitId'],_0x594dcd[_0x33ad39(0x3e3)]);_0x28c239[_0x33ad39(0x430)](!_0x1e0670||_0x234192&&_0x1e0670[_0x33ad39(0x238)]==null);},_0x4663b7=_0x2038ed[_0xf0dd89(0x344)]['subscribe'](_0x5799be),_0x542b0b=_0x24da15[_0xf0dd89(0x1aa)](_0x519471=>{const _0x49eab1=_0xf0dd89;_0x519471['id']===i[_0x49eab1(0x244)]['id']&&_0x5799be();});return _0x5799be(),()=>{const _0x5b8f07=_0xf0dd89;_0x4663b7[_0x5b8f07(0x284)](),_0x542b0b[_0x5b8f07(0x1c4)]();};});}function He(_0x1a5f83){const _0x15ce4f=_0x5db5d0;let _0x16f6c8=_0x1a5f83[_0x15ce4f(0x3b6)](s['IDrawingManagerService']),_0x9cf590=_0x1a5f83[_0x15ce4f(0x3b6)](i['SheetsShapeService']);return _0x16f6c8[_0x15ce4f(0x344)][_0x15ce4f(0x402)]((0x0,u[_0x15ce4f(0x2dc)])(_0x16f6c8['getFocusDrawings']()),(0x0,u['map'])(()=>{const _0x52aa77=_0x15ce4f;let _0x4efb7c=H(_0x1a5f83),_0x5849e4=_0x4efb7c?_0x9cf590[_0x52aa77(0x214)](_0x4efb7c[_0x52aa77(0x3bf)],_0x4efb7c['subUnitId'],_0x4efb7c['drawingId']):void 0x0;return _0x5849e4===void 0x0||(0x0,n[_0x52aa77(0x2b3)])(_0x5849e4);}));}function Ue(_0x5877d4){const _0x5d0670=_0x5db5d0;return{'id':oe['id'],'type':t[_0x5d0670(0x35e)][_0x5d0670(0x1b0)],'icon':'PaintIcon','title':_0x5d0670(0x1fc),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':we,'hoverable':!0x1,'selectable':!0x1}}],'value$':Be(_0x5877d4),'hidden$':Ve(_0x5877d4)};}function We(_0x2923f0){const _0x8a5d74=_0x5db5d0;return{'id':se['id'],'type':t[_0x8a5d74(0x35e)][_0x8a5d74(0x1b0)],'icon':_0x8a5d74(0x26b),'title':'shape-editor-ui.toolbar.changeShape','tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':e[_0x8a5d74(0x1da)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':He(_0x2923f0)};}function Ge(_0x1bd34d,_0x5ab42e,_0x1111df=!0x1){const _0x4d9c65=_0x5db5d0;return _0x4d5a3b=>({'id':_0x1bd34d,'type':t[_0x4d9c65(0x35e)][_0x4d9c65(0x19c)],'label':{'name':_0x5ab42e,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ve(_0x4d5a3b,_0x1111df)});}const Ke=Ge(Ne,Te),qe=Ge(Pe,Ee),Je=Ge(Fe,De,!0x0);function Ye(_0x5a0677,_0x258f32,_0x547525,_0x4575b7){const _0x5c22a6=_0x5db5d0;return _0x336118=>({'id':_0x5a0677,'commandId':m[_0x5c22a6(0x326)]['id'],'type':t[_0x5c22a6(0x35e)][_0x5c22a6(0x19c)],'icon':_0x547525,'title':_0x4575b7,'tooltip':_0x4575b7,'hidden$':Ve(_0x336118),'params':()=>{const _0x4f8a5a=_0x5c22a6;let _0x1150c4=H(_0x336118);return _0x1150c4?{'unitId':_0x1150c4['unitId'],'subUnitId':_0x1150c4[_0x4f8a5a(0x20a)],'drawingIds':[_0x1150c4[_0x4f8a5a(0x3e3)]],'arrangeType':_0x258f32}:void 0x0;}});}const Xe=Ye(Ie,a[_0x5db5d0(0x150)][_0x5db5d0(0x306)],_0x5db5d0(0x1dc),_0x5db5d0(0x411)),Ze=Ye(Le,a['ArrangeTypeEnum']['backward'],'MoveDownIcon','shape-editor-ui.arrange.backward'),Qe=Ye(Re,a[_0x5db5d0(0x150)][_0x5db5d0(0x378)],_0x5db5d0(0x11c),_0x5db5d0(0x1df)),$e=Ye(ze,a[_0x5db5d0(0x150)][_0x5db5d0(0x256)],_0x5db5d0(0x34a),_0x5db5d0(0x188));function et(_0x991484){const _0x13cde9=_0x5db5d0;return{'id':B['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x13cde9(0x3f9),'title':_0x13cde9(0x21e),'tooltip':_0x13cde9(0x21e),'hidden$':Ve(_0x991484),'params':()=>{const _0x3058f6=_0x13cde9;let _0xc67668=H(_0x991484);return _0xc67668?{'unitId':_0xc67668[_0x3058f6(0x3bf)],'subUnitId':_0xc67668[_0x3058f6(0x20a)],'drawingId':_0xc67668[_0x3058f6(0x3e3)]}:void 0x0;}};}const tt={[t[_0x5db5d0(0x412)][_0x5db5d0(0x415)]]:{[z]:{'order':0x64,'title':_0x5db5d0(0x21e),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[oe['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ue},[se['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':We}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ne]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ke}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ve]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Se},[ye]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Ce},[Ie]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Xe},[Le]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Qe},[ze]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':$e}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[B['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':et},[e[_0x5db5d0(0x38f)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},nt={[t[_0x5db5d0(0x174)][_0x5db5d0(0x313)]]:{[F['id']]:{'order':0x4,'menuItemFactory':ge}}},rt={...nt,[t['RibbonInsertGroup'][_0x5db5d0(0x2ab)]]:{[ie['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_e}},[t[_0x5db5d0(0x3fe)][_0x5db5d0(0x413)]]:{[t[_0x5db5d0(0xf2)][_0x5db5d0(0x2ab)]]:{[ve]:{'order':0x4,'menuItemFactory':Se},[ye]:{'order':0x5,'menuItemFactory':Ce}}}};var it='@univerjs-pro/sheets-shape-ui',at='1.0.0-rc.0';const ot={'id':_0x5db5d0(0x379),'type':a[_0x5db5d0(0x33b)]['OPERATION'],'handler'(_0x21d005,_0x1cb46a){const _0xb0a8ed=_0x5db5d0;return _0x1cb46a?(_0x21d005['get'](e['MobileShapeEditorService'])['open'](_0x1cb46a['mode'],{'hostType':a[_0xb0a8ed(0x400)][_0xb0a8ed(0x319)],'shapeId':_0x1cb46a['drawingId'],'subUnitId':_0x1cb46a['subUnitId'],'unitId':_0x1cb46a[_0xb0a8ed(0x3bf)]}),!0x0):!0x1;}},st=_0x5db5d0(0x3cc),ct={};let lt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x510bd1,_0x2dc074,_0x56adf1,_0x547ce7,_0x524e5d){const _0x58f8e2=_0x5db5d0;super(),this[_0x58f8e2(0x2ea)]=_0x510bd1,this[_0x58f8e2(0x3b1)]=_0x2dc074,this[_0x58f8e2(0x104)]=_0x56adf1,this[_0x58f8e2(0x12c)]=_0x547ce7,this[_0x58f8e2(0x2aa)]=_0x524e5d,E(this,_0x58f8e2(0x100),null),E(this,_0x58f8e2(0x3d2),null),E(this,_0x58f8e2(0x23c),null),E(this,'_activeAdjustPointList',void 0x0),E(this,_0x58f8e2(0x221),[]),E(this,_0x58f8e2(0x1cd),0x0),E(this,_0x58f8e2(0x1ef),0x0),E(this,_0x58f8e2(0x3ef),0x0),E(this,_0x58f8e2(0x23d),0x0),E(this,_0x58f8e2(0x182),!0x1),E(this,_0x58f8e2(0x1f6),void 0x0),E(this,_0x58f8e2(0x258),void 0x0),E(this,_0x58f8e2(0x173),void 0x0),E(this,_0x58f8e2(0x29d),void 0x0),E(this,_0x58f8e2(0x3dc),!0x1),this[_0x58f8e2(0x2c6)](),this[_0x58f8e2(0x224)]();}[_0x5db5d0(0x24f)](){this['_clearControls']();}[_0x5db5d0(0x40f)](){const _0x2bfb80=_0x5db5d0;this[_0x2bfb80(0x28d)](),this[_0x2bfb80(0x1f2)](!0x0);}[_0x5db5d0(0x1a3)](_0x3696fd,_0x439a62,_0x448433,_0x43420a){const _0x4e3f41=_0x5db5d0;let _0x3f6382=_0x3696fd;if(_0x3f6382!==n[_0x4e3f41(0x259)][_0x4e3f41(0xf6)]&&_0x3696fd!==_0x4e3f41(0x126))try{let _0x23335f=new n[(_0x4e3f41(0x243))](_0x3f6382,_0x4e3f41(0x3b3)+_0x3696fd);return _0x43420a&&_0x23335f[_0x4e3f41(0x408)]({'adjustValues':_0x43420a},!0x0),_0x23335f[_0x4e3f41(0x141)]({'width':_0x439a62,'height':_0x448433}),_0x23335f;}catch{return;}}['_getImageDrawingInfo'](_0x1abb0b,_0x45e616,_0x593430){const _0x4553e9=_0x5db5d0;let _0x163b9e={'unitId':_0x1abb0b,'subUnitId':_0x45e616,'drawingId':_0x593430},_0x4a19a3=this[_0x4553e9(0x3b1)][_0x4553e9(0x15a)](_0x163b9e);if(!(!_0x4a19a3||_0x4a19a3['drawingType']!==a[_0x4553e9(0x3e6)]['DRAWING_IMAGE']))return _0x4a19a3;}['_getImagePrstGeom'](_0xd2b67b,_0x540830,_0x436a0b){const _0x4e137d=_0x5db5d0;let _0x24381d=this[_0x4e137d(0x104)][_0x4e137d(0x2c4)](_0xd2b67b);if(!_0x24381d)return;let {scene:_0x24b927}=_0x24381d,_0x19da5e=(0x0,s[_0x4e137d(0x1f8)])({'unitId':_0xd2b67b,'subUnitId':_0x540830,'drawingId':_0x436a0b}),_0x998d57=_0x24b927[_0x4e137d(0x3b7)](_0x19da5e);if(_0x998d57 instanceof c[_0x4e137d(0x40b)]){let _0x27631e=_0x998d57[_0x4e137d(0xf3)];if(_0x27631e)return{'prstGeom':_0x27631e,'adjustValues':_0x998d57[_0x4e137d(0x1f0)]};}}[_0x5db5d0(0x1f2)](_0xb88a91=!0x1){const _0x264830=_0x5db5d0;if(!this[_0x264830(0x3d2)]||!this[_0x264830(0x23c)]||!this[_0x264830(0x100)])return;let _0x2c397e=this[_0x264830(0x104)]['getRenderUnitById'](this[_0x264830(0x3d2)]);if(!_0x2c397e||!_0x2c397e['with'](l[_0x264830(0x364)])[_0x264830(0x2bc)]())return;let {scene:_0x8d1885}=_0x2c397e,_0x58410e=this[_0x264830(0x367)](this[_0x264830(0x3d2)],this['_subUnitId'],this[_0x264830(0x100)]);if(!_0x58410e)return;let {transform:_0x89a639}=_0x58410e;if(!_0x89a639)return;let {left:_0x16e5c2,top:_0x50db28,width:_0x4df3d2,height:_0x28dac4,flipX:_0x308756,flipY:_0x262385,angle:_0x27d408=0x0}=_0x89a639;if(_0x16e5c2===void 0x0||_0x50db28===void 0x0)return;let _0x1aeecb=this[_0x264830(0x1e7)](this[_0x264830(0x3d2)],this[_0x264830(0x23c)],this[_0x264830(0x100)]);if(!_0x1aeecb)return;if(_0xb88a91){let _0x10da79=this[_0x264830(0x1a3)](_0x1aeecb[_0x264830(0xf3)],_0x4df3d2||0x0,_0x28dac4||0x0,_0x1aeecb[_0x264830(0x15c)]);if(!_0x10da79)return;this[_0x264830(0x422)]=_0x10da79[_0x264830(0x123)]();}let _0x5e6379=this[_0x264830(0x422)];if(!(!_0x5e6379||_0x5e6379[_0x264830(0x2fb)]===0x0))for(let _0x55e626=0x0;_0x55e626<_0x5e6379[_0x264830(0x2fb)];_0x55e626++){let _0x4bcabe=_0x5e6379[_0x55e626],_0x59b599=_0x4bcabe['x'],_0x45580e=_0x4bcabe['y'];if(_0x308756&&(_0x59b599=(_0x4df3d2||0x0)-_0x59b599),_0x262385&&(_0x45580e=(_0x28dac4||0x0)-_0x45580e),_0x27d408!==0x0){let _0x597b97=(_0x4df3d2||0x0)/0x2,_0x4a5a06=(_0x28dac4||0x0)/0x2,_0x2d2654=_0x27d408*Math['PI']/0xb4,_0x39384c=Math['cos'](_0x2d2654),_0x6e0854=Math['sin'](_0x2d2654),_0x4c0013=_0x59b599-_0x597b97,_0x33cea0=_0x45580e-_0x4a5a06;_0x59b599=_0x597b97+(_0x4c0013*_0x39384c-_0x33cea0*_0x6e0854),_0x45580e=_0x4a5a06+(_0x4c0013*_0x6e0854+_0x33cea0*_0x39384c);}let _0x3566ea={'x':_0x59b599,'y':_0x45580e,'adjName':_0x4bcabe[_0x264830(0x24b)]};this['_addControl'](_0x8d1885,_0x3566ea,_0x3566ea[_0x264830(0x24b)],_0x16e5c2,_0x50db28,this[_0x264830(0x3d2)],this['_subUnitId']);}}[_0x5db5d0(0xf0)](_0x486ca1,_0x4d7c23,_0x5809cb,_0x575f80,_0x39ce8f,_0x3cab13,_0x48e17b){const _0x344ff9=_0x5db5d0;if(!this[_0x344ff9(0x100)])return;let _0x2a3a19=_0x344ff9(0x3c0)+this[_0x344ff9(0x100)]+'-'+_0x5809cb,_0x247108=_0x486ca1[_0x344ff9(0x1d5)](_0x2a3a19);if(_0x247108){_0x247108['transformByState']({'left':_0x4d7c23['x']+_0x575f80-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]});return;}let _0x705774=new k(_0x2a3a19,{'left':_0x4d7c23['x']+_0x575f80-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'adjName':_0x5809cb,'shapeId':this['_activeImageId'],'unitId':_0x3cab13,'subUnitId':_0x48e17b,'width':n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]+0x8,'height':n[_0x344ff9(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x344ff9(0x221)][_0x344ff9(0x1bd)](_0x705774),this['_attachAdjustEvent'](_0x705774,_0x486ca1,_0x5809cb),_0x486ca1[_0x344ff9(0x251)](_0x705774,c[_0x344ff9(0x3a9)]+0x1);}[_0x5db5d0(0x28d)](){const _0x1e2e0b=_0x5db5d0;this['_shapes']['length']!==0x0&&(this[_0x1e2e0b(0x221)][_0x1e2e0b(0xe5)](_0x4b4ad8=>_0x4b4ad8[_0x1e2e0b(0x1c4)]()),this[_0x1e2e0b(0x221)]=[]);}[_0x5db5d0(0x245)](_0x426156,_0x3ba84b){const _0x572c26=_0x5db5d0;var _0x558886;let _0x90fa53={'x':0x0,'y':0x0},_0x12b90f=this[_0x572c26(0x104)][_0x572c26(0x2c4)](_0x426156);if(!_0x12b90f||!_0x12b90f[_0x572c26(0x35a)](l['SheetSkeletonManagerService'])[_0x572c26(0x23a)](_0x3ba84b))return _0x90fa53;let _0x5493a8=_0x12b90f[_0x572c26(0x35a)](l['SheetScrollManagerService']),_0x57a707=_0x5493a8==null?void 0x0:_0x5493a8[_0x572c26(0x2ac)]();if(!_0x57a707)return _0x90fa53;let _0x550d65=(_0x558886=this['_univerInstanceService'][_0x572c26(0x1ae)](_0x426156))==null?void 0x0:_0x558886['getSheetBySheetId'](_0x3ba84b);if(!_0x550d65)return _0x90fa53;let _0x2d8b0c=(0x0,l[_0x572c26(0x404)])(_0x57a707[_0x572c26(0x1a5)],_0x57a707['sheetViewStartColumn'],_0x12b90f[_0x572c26(0x2e7)],_0x550d65);return _0x2d8b0c?{'x':_0x2d8b0c['viewportScrollX'],'y':_0x2d8b0c[_0x572c26(0x370)]}:_0x90fa53;}[_0x5db5d0(0x34f)](_0x5241fa,_0x4bca30){const _0x297cf6=_0x5db5d0;var _0x19da28;let _0x5b6616=(_0x19da28=this[_0x297cf6(0x12c)][_0x297cf6(0x1ae)](_0x5241fa))==null?void 0x0:_0x19da28[_0x297cf6(0x26d)](_0x4bca30);return(_0x5b6616==null?void 0x0:_0x5b6616[_0x297cf6(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x2efa7f,_0x2963d0,_0x3582b8){const _0x42015d=_0x5db5d0;this[_0x42015d(0x17d)]((0x0,a[_0x42015d(0x105)])(_0x2efa7f[_0x42015d(0x1c2)][_0x42015d(0x151)]((_0xe597f2,_0x3c28ed)=>{const _0x1daff2=_0x42015d;var _0xa72104,_0x3622f7,_0x1815ed;let {unitId:_0x449f29,subUnitId:_0x2c9d98,drawingId:_0xc0a0ed}=_0x2efa7f[_0x1daff2(0x19b)](),_0x22d6bf=this[_0x1daff2(0x367)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!(_0x22d6bf!=null&&_0x22d6bf[_0x1daff2(0x32a)]))return;let {left:_0xf93943,top:_0x2844de,width:_0x58be57,height:_0x359895}=_0x22d6bf['transform'];this[_0x1daff2(0x1cd)]=_0xf93943||0x0,this[_0x1daff2(0x1ef)]=_0x2844de||0x0,this['_baseWidth']=_0x58be57||0x0,this[_0x1daff2(0x23d)]=_0x359895||0x0;let _0x16cd3a=!!((_0xa72104=_0x22d6bf['transform'])!=null&&_0xa72104[_0x1daff2(0xfa)]),_0x228438=!!((_0x3622f7=_0x22d6bf[_0x1daff2(0x32a)])!=null&&_0x3622f7[_0x1daff2(0xef)]),_0x34aa31=((_0x1815ed=_0x22d6bf[_0x1daff2(0x32a)])==null?void 0x0:_0x1815ed[_0x1daff2(0x3ed)])||0x0,_0x21ee3c=this[_0x1daff2(0x1e7)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!_0x21ee3c)return;let _0x17e961=this['_getOrCreateShapeModel'](_0x21ee3c[_0x1daff2(0xf3)],this[_0x1daff2(0x3ef)],this[_0x1daff2(0x23d)],_0x21ee3c[_0x1daff2(0x15c)]);if(!_0x17e961||(this[_0x1daff2(0x258)]=_0x17e961,this[_0x1daff2(0x1f6)]=_0x17e961[_0x1daff2(0x2af)](_0x3582b8),!this[_0x1daff2(0x1f6)]))return;this[_0x1daff2(0x182)]=!0x0,_0x2963d0['disableObjectsEvent']();let _0x43f147=_0x21ee3c[_0x1daff2(0xf3)];this[_0x1daff2(0x173)]=_0x2963d0[_0x1daff2(0x1b5)][_0x1daff2(0x151)]((_0x429986,_0xe048bb)=>{const _0x92aabe=_0x1daff2;if(!this['_isStartAdjusting'])return;let {offsetX:_0x29e85b,offsetY:_0x169928}=_0x429986,_0x183743=this[_0x92aabe(0x1f6)];if(!this[_0x92aabe(0x258)]||!_0x183743)return;_0x2963d0[_0x92aabe(0x2a1)](),_0x2963d0[_0x92aabe(0x27d)](c[_0x92aabe(0x30f)]['CROSSHAIR']);let _0x14e1e1={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x92aabe(0x23d)]},_0x31a322=this[_0x92aabe(0x245)](_0x449f29,_0x2c9d98),_0x2b41ec=this[_0x92aabe(0x34f)](_0x449f29,_0x2c9d98),_0x428fbc=_0x29e85b/_0x2b41ec+_0x31a322['x']-this[_0x92aabe(0x1cd)],_0x1d2db9=_0x169928/_0x2b41ec+_0x31a322['y']-this[_0x92aabe(0x1ef)];if(_0x34aa31!==0x0){let _0xde90b4=this[_0x92aabe(0x3ef)]/0x2,_0x1784bf=this[_0x92aabe(0x23d)]/0x2,_0x3c76da=_0x34aa31*Math['PI']/0xb4,_0x4ae7e3=Math[_0x92aabe(0x39e)](_0x3c76da),_0x56361f=Math['sin'](_0x3c76da),_0x2a562c=_0x428fbc-_0xde90b4,_0x450ca9=_0x1d2db9-_0x1784bf;_0x428fbc=_0xde90b4+(_0x2a562c*_0x4ae7e3+_0x450ca9*_0x56361f),_0x1d2db9=_0x1784bf+(-_0x2a562c*_0x56361f+_0x450ca9*_0x4ae7e3);}_0x16cd3a&&(_0x428fbc=this['_baseWidth']-_0x428fbc),_0x228438&&(_0x1d2db9=this[_0x92aabe(0x23d)]-_0x1d2db9);let _0x56d4f8=this['_activeShapeModel']['calcAdjValues'](_0x14e1e1,{'x':_0x428fbc,'y':_0x1d2db9},_0x183743,_0x16cd3a,_0x228438);if(Object[_0x92aabe(0x29c)](_0x56d4f8)[_0x92aabe(0x2fb)]!==0x0){for(let [_0x3366a4,_0x24e627]of Object[_0x92aabe(0x2d0)](_0x56d4f8))this['_activeShapeModel'][_0x92aabe(0x19a)](_0x3366a4,_0x24e627);this['_activeShapeModel'][_0x92aabe(0x141)]({'width':this[_0x92aabe(0x3ef)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x56d4f8),this[_0x92aabe(0x422)]=this[_0x92aabe(0x258)][_0x92aabe(0x123)](),this[_0x92aabe(0x1f2)](),_0xe048bb[_0x92aabe(0x15f)]();}}),this['_adjHandlerPointerUp']=_0x2963d0[_0x1daff2(0x369)]['subscribeEvent']((_0x3b321d,_0x48cd1f)=>{const _0x47909d=_0x1daff2;if(this[_0x47909d(0x173)][_0x47909d(0x284)](),this[_0x47909d(0x29d)][_0x47909d(0x284)](),_0x2963d0[_0x47909d(0x338)](),this['_activeShapeModel']){let _0x2dda1f=this[_0x47909d(0x258)]['getAdjustNames'](),_0xd90ee0={};for(let _0x4ab26a of _0x2dda1f){let _0x2608bd=this[_0x47909d(0x258)][_0x47909d(0xd7)](_0x4ab26a);_0x2608bd!==void 0x0&&(_0xd90ee0[_0x4ab26a]=_0x2608bd);}this[_0x47909d(0x2aa)][_0x47909d(0x25e)](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x43f147,_0xd90ee0);}this['_activeAdjustInfo']=void 0x0,this[_0x47909d(0x258)]=void 0x0,this[_0x47909d(0x182)]=!0x1,_0x48cd1f[_0x47909d(0x15f)](),_0x2963d0[_0x47909d(0x13c)]();}),_0x3c28ed[_0x1daff2(0x15f)]();})));}[_0x5db5d0(0x170)](_0x6a7b0b,_0x4fb708,_0x312c9f,_0x2cb53d){const _0x158561=_0x5db5d0;let _0x9df31d=this['_renderManagerService']['getRenderUnitById'](_0x6a7b0b);if(!_0x9df31d)return;let {scene:_0x349083}=_0x9df31d,_0x4de2b1=(0x0,s[_0x158561(0x1f8)])({'unitId':_0x6a7b0b,'subUnitId':_0x4fb708,'drawingId':_0x312c9f}),_0x1b56d4=_0x349083['getObject'](_0x4de2b1);if(_0x1b56d4 instanceof c[_0x158561(0x40b)]){let _0x412d5a=_0x1b56d4[_0x158561(0x1f0)]??{};_0x1b56d4[_0x158561(0x3a4)]({..._0x412d5a,..._0x2cb53d}),_0x1b56d4['makeDirty'](!0x0);}}[_0x5db5d0(0x224)](){const _0x5c4933=_0x5db5d0;let _0x269688=this[_0x5c4933(0x12c)][_0x5c4933(0x384)](a[_0x5c4933(0x400)][_0x5c4933(0x319)]);this[_0x5c4933(0x17d)](_0x269688[_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0xbb0554=>_0xbb0554?_0xbb0554[_0x5c4933(0x115)][_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0x5352e7=>{const _0x5081f5=_0x5c4933;if(!_0x5352e7)return u[_0x5081f5(0x395)];let _0x2347a1=_0xbb0554['getUnitId'](),_0x422e98=this[_0x5081f5(0x104)][_0x5081f5(0x2c4)](_0x2347a1),_0x2abe8a=_0x422e98==null?void 0x0:_0x422e98[_0x5081f5(0x2e7)];return _0x2abe8a?(0x0,u['of'])(_0x2abe8a):u[_0x5081f5(0x395)];})):u['EMPTY']))[_0x5c4933(0x426)](_0x14f71f=>{const _0xb881b0=_0x5c4933;let _0x3a27b4=_0x14f71f[_0xb881b0(0x3cb)]();this[_0xb881b0(0x17d)](_0x14f71f[_0xb881b0(0x1b5)][_0xb881b0(0x151)](()=>{const _0x4bcf8b=_0xb881b0;this[_0x4bcf8b(0x3dc)]&&this[_0x4bcf8b(0x28d)]();})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x328)][_0xb881b0(0x426)](_0x577a72=>{const _0x1d7c92=_0xb881b0;let {objects:_0x4378a6}=_0x577a72;if(this[_0x1d7c92(0x1f2)](),_0x4378a6!==null&&_0x4378a6['size']===0x1){let _0x3f7805=_0x4378a6[_0x1d7c92(0x3ae)]()[_0x1d7c92(0x430)]()['value'];_0x3f7805 instanceof c[_0x1d7c92(0x40b)]&&_0x3f7805[_0x1d7c92(0xf3)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x1a2)][_0xb881b0(0x426)](()=>{const _0x3c35dc=_0xb881b0;this['_isImagePointerDown']&&this[_0x3c35dc(0x28d)]();})),this['disposeWithMe'](_0x14f71f['onPointerUp$'][_0xb881b0(0x151)](()=>{const _0x49e199=_0xb881b0;this[_0x49e199(0x3dc)]&&(this['_isImagePointerDown']=!0x1,this[_0x49e199(0x1f2)]());})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x3f8)][_0xb881b0(0x426)](()=>{const _0x48f091=_0xb881b0;if(this[_0x48f091(0x3d2)]&&this[_0x48f091(0x23c)]&&this[_0x48f091(0x100)]){let _0x4562e5=this[_0x48f091(0x1e7)](this[_0x48f091(0x3d2)],this[_0x48f091(0x23c)],this[_0x48f091(0x100)]);if(_0x4562e5){var _0x4e7fab,_0x30c130;let _0xbf93ca=this['_getImageDrawingInfo'](this['_unitId'],this[_0x48f091(0x23c)],this['_activeImageId']),_0x1dbff1=(_0xbf93ca==null||(_0x4e7fab=_0xbf93ca[_0x48f091(0x32a)])==null?void 0x0:_0x4e7fab[_0x48f091(0x2ad)])||0x0,_0x4abf77=(_0xbf93ca==null||(_0x30c130=_0xbf93ca['transform'])==null?void 0x0:_0x30c130['height'])||0x0,_0x22b615=this[_0x48f091(0x1a3)](_0x4562e5[_0x48f091(0xf3)],_0x1dbff1,_0x4abf77,_0x4562e5[_0x48f091(0x15c)]);_0x22b615&&(this[_0x48f091(0x422)]=_0x22b615['getDrawingPoints'](),this[_0x48f091(0x28d)](),this[_0x48f091(0x1f2)](!0x0));}}}));}));}[_0x5db5d0(0x2c6)](){const _0x3560f0=_0x5db5d0;this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0x344)]['subscribe'](_0x1186f1=>{const _0x180672=_0x3560f0;if(_0x1186f1[_0x180672(0x2fb)]===0x1){let _0x4ae8a2=_0x1186f1[0x0];if(_0x4ae8a2[_0x180672(0x3c1)]===a[_0x180672(0x3e6)][_0x180672(0x135)]){let {unitId:_0x5ceedb,subUnitId:_0x22b8ab,drawingId:_0x3e1361}=_0x4ae8a2,_0x4f44e9=this[_0x180672(0x1e7)](_0x5ceedb,_0x22b8ab,_0x3e1361);if(_0x4f44e9){var _0x5b05bf,_0x564287;this['_activeImageId']=_0x3e1361,this[_0x180672(0x3d2)]=_0x5ceedb,this[_0x180672(0x23c)]=_0x22b8ab;let _0x1c7c1d=this[_0x180672(0x367)](_0x5ceedb,_0x22b8ab,_0x3e1361),_0x18d47c=(_0x1c7c1d==null||(_0x5b05bf=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x5b05bf[_0x180672(0x2ad)])||0x0,_0x5dd2e3=(_0x1c7c1d==null||(_0x564287=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x564287[_0x180672(0x3c5)])||0x0,_0x207e05=this[_0x180672(0x1a3)](_0x4f44e9['prstGeom'],_0x18d47c,_0x5dd2e3,_0x4f44e9[_0x180672(0x15c)]);_0x207e05&&(this['_activeAdjustPointList']=_0x207e05[_0x180672(0x123)]()),this['_clearControls'](),this[_0x180672(0x1f2)](!0x0);}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();})),this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0xe7)]['subscribe'](_0x38532b=>{const _0x44b8ff=_0x3560f0;if(_0x38532b[_0x44b8ff(0x2fb)]===0x1){let _0x339b46=_0x38532b[0x0],_0x4d35f5=this[_0x44b8ff(0x3b1)][_0x44b8ff(0x15a)](_0x339b46);(_0x4d35f5==null?void 0x0:_0x4d35f5['drawingType'])===a['DrawingTypeEnum'][_0x44b8ff(0x135)]&&this[_0x44b8ff(0x100)]===_0x339b46[_0x44b8ff(0x3e3)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x3560f0(0x17d)](this['_drawingManagerService'][_0x3560f0(0x386)]['subscribe'](_0x1490bd=>{const _0x423170=_0x3560f0;for(let _0x8ad254 of _0x1490bd)this['_activeImageId']===_0x8ad254[_0x423170(0x3e3)]&&this[_0x423170(0x330)]();}));}[_0x5db5d0(0x330)](){const _0x513dea=_0x5db5d0;this[_0x513dea(0x100)]=null,this[_0x513dea(0x3d2)]=null,this[_0x513dea(0x23c)]=null,this[_0x513dea(0x422)]=void 0x0,this[_0x513dea(0x28d)]();}};lt=j([A(0x1,s['IDrawingManagerService']),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c[_0x5db5d0(0x226)])),A(0x3,a['IUniverInstanceService']),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(V))],lt);let ut=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2855d3,_0x542a40){const _0x524768=_0x5db5d0;super(),this[_0x524768(0x17d)](_0x542a40[_0x524768(0x3f3)]({'BottomIcon':y[_0x524768(0x34a)],'FlipHorizontalIcon':y['FlipHorizontalIcon'],'FlipVerticalIcon':y[_0x524768(0x1c3)],'MoveDownIcon':y[_0x524768(0x267)],'MoveUpIcon':y[_0x524768(0x1dc)],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x524768(0x3f9)],'TopmostIcon':y[_0x524768(0x11c)]})),this[_0x524768(0x17d)](_0x2855d3[_0x524768(0x3f3)](ce,he)),this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](le,fe)),_0x2855d3['get'](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](d[_0x524768(0x401)],pe));}};ut=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],ut);let U=class extends a['Disposable']{constructor(_0x5c4a6b){const _0x10b09a=_0x5db5d0;super(),this[_0x10b09a(0x223)]=_0x5c4a6b,E(this,_0x10b09a(0x425),new u[(_0x10b09a(0x187))](null)),E(this,_0x10b09a(0x2ca),this['_editingParams$'][_0x10b09a(0x2ff)]()),E(this,_0x10b09a(0x13b),new u[(_0x10b09a(0x187))](!0x1)),E(this,_0x10b09a(0x18c),this[_0x10b09a(0x13b)][_0x10b09a(0x2ff)]()),E(this,'_completionFrame',void 0x0),this[_0x10b09a(0x17d)](this[_0x10b09a(0x223)]['permissionPointUpdate$'][_0x10b09a(0x426)](()=>{const _0x3480f1=_0x10b09a;let _0x11fedd=this[_0x3480f1(0x302)]();_0x11fedd!=null&&_0x11fedd[_0x3480f1(0x2cc)]&&!this[_0x3480f1(0x2cb)](_0x11fedd)&&this['setEditing'](null);}));}['dispose'](){const _0x222cc9=_0x5db5d0;this[_0x222cc9(0x295)](),this[_0x222cc9(0x425)][_0x222cc9(0x430)](null),this['_editingParams$'][_0x222cc9(0x2f1)](),this[_0x222cc9(0x13b)][_0x222cc9(0x430)](!0x1),this['_onSavingEditorData$'][_0x222cc9(0x2f1)](),super[_0x222cc9(0x1c4)]();}['setEditing'](_0x1bb58e){const _0x571978=_0x5db5d0;_0x1bb58e!=null&&_0x1bb58e[_0x571978(0x2cc)]&&!this[_0x571978(0x2cb)](_0x1bb58e)||(this[_0x571978(0x295)](),this['_editingParams$']['next'](_0x1bb58e),(_0x1bb58e==null||_0x1bb58e[_0x571978(0x2cc)]&&this[_0x571978(0x13b)]['getValue']())&&this[_0x571978(0x13b)][_0x571978(0x430)](!0x1));}[_0x5db5d0(0x2e5)](_0x3bd292){this['_onSavingEditorData$']['next'](_0x3bd292);}[_0x5db5d0(0x302)](){const _0x6aee82=_0x5db5d0;return this[_0x6aee82(0x425)]['getValue']();}[_0x5db5d0(0x2cb)](_0x313521){const _0x5a7b0e=_0x5db5d0;let _0x9eecf2=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x313521['unitId'])['id']),_0x6294d9=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o[(_0x5a7b0e(0x3ba))](_0x313521[_0x5a7b0e(0x3bf)],_0x313521[_0x5a7b0e(0x20a)])['id']);return((_0x9eecf2==null?void 0x0:_0x9eecf2[_0x5a7b0e(0x30b)])??!0x0)&&((_0x6294d9==null?void 0x0:_0x6294d9[_0x5a7b0e(0x30b)])??!0x0);}[_0x5db5d0(0xdf)](_0x5eb90e){const _0x434881=_0x5db5d0;let _0xc0b4de=this[_0x434881(0x302)]();!_0xc0b4de||this[_0x434881(0x32f)]!==void 0x0||(this['setOnSavingEditorData'](!0x0),this[_0x434881(0x32f)]=requestAnimationFrame(()=>{const _0x513ebb=_0x434881;this[_0x513ebb(0x32f)]=void 0x0,this[_0x513ebb(0x302)]()===_0xc0b4de&&this[_0x513ebb(0x362)](null);}));}[_0x5db5d0(0x295)](){const _0x240ac2=_0x5db5d0;this[_0x240ac2(0x32f)]!==void 0x0&&(cancelAnimationFrame(this[_0x240ac2(0x32f)]),this[_0x240ac2(0x32f)]=void 0x0);}[_0x5db5d0(0x301)](){const _0x679323=_0x5db5d0;this[_0x679323(0x302)]()&&this['setEditing'](null);}};U=j([A(0x0,a[_0x5db5d0(0x390)])],U);let dt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x331adf,_0xf3c76,_0x3f1400,_0x327b81,_0x2dfdc2,_0x1f86e0){const _0x437abf=_0x5db5d0;super(),this[_0x437abf(0x2ea)]=_0x331adf,this[_0x437abf(0x418)]=_0xf3c76,this[_0x437abf(0x42f)]=_0x3f1400,this['_drawingManagerService']=_0x327b81,this[_0x437abf(0x3f5)]=_0x2dfdc2,this[_0x437abf(0x27f)]=_0x1f86e0,E(this,'_lastEditingShapeKey',null),this[_0x437abf(0x36d)](),this[_0x437abf(0x2d8)](),this['_initEditingParams']();}['_initEvents'](){const _0x5a1ff3=_0x5db5d0;let {scene:_0x3d23ba}=this[_0x5a1ff3(0x2ea)];this[_0x5a1ff3(0x17d)](_0x3d23ba[_0x5a1ff3(0x17b)][_0x5a1ff3(0x151)](_0x312e4c=>{const _0x59dd92=_0x5a1ff3;let {offsetX:_0x7ffda6,offsetY:_0x56e254}=_0x312e4c,_0x568704=_0x3d23ba[_0x59dd92(0x39b)](c[_0x59dd92(0x179)][_0x59dd92(0x2db)]([_0x7ffda6,_0x56e254]));if(_0x568704 instanceof O){let _0x21ae8d=this[_0x59dd92(0x27f)][_0x59dd92(0x11e)](_0x568704[_0x59dd92(0x3bf)],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]);if((0x0,n[_0x59dd92(0x2b3)])(this[_0x59dd92(0x27f)][_0x59dd92(0x2fa)](_0x568704['unitId'],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]))||_0x21ae8d!=null&&_0x21ae8d[_0x59dd92(0x3bc)]()['formulaBinding'])return;this[_0x59dd92(0x42f)]['setEditing']({'visible':!0x0,'unitId':_0x568704[_0x59dd92(0x3bf)],'subUnitId':_0x568704[_0x59dd92(0x20a)],'shapeId':_0x568704[_0x59dd92(0x340)],'shapeKey':_0x568704[_0x59dd92(0xf4)]});}}));}[_0x5db5d0(0x2d8)](){const _0x110206=_0x5db5d0;this[_0x110206(0x17d)](this[_0x110206(0x3b1)][_0x110206(0x344)][_0x110206(0x426)](_0x497530=>{const _0x740017=_0x110206;if(_0x497530['length']===0x1){let _0x311cbf=_0x497530[0x0],_0x4e3203=this['_drawingManagerService'][_0x740017(0x15a)](_0x311cbf);if((_0x4e3203==null?void 0x0:_0x4e3203[_0x740017(0x3c1)])===a['DrawingTypeEnum'][_0x740017(0x19d)]){var _0xbb67c5;let _0x17ac26=this[_0x740017(0x42f)][_0x740017(0x302)]();if((_0x17ac26==null?void 0x0:_0x17ac26[_0x740017(0x340)])===_0x311cbf[_0x740017(0x3e3)]&&_0x17ac26['visible'])return;let _0x2d99ec=(0x0,n[_0x740017(0x2b3)])(this[_0x740017(0x27f)]['getShapeType'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf['subUnitId'],_0x311cbf['drawingId'])),_0x84fd0c=!!((_0xbb67c5=this[_0x740017(0x27f)]['getShapeModel'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf[_0x740017(0x20a)],_0x311cbf[_0x740017(0x3e3)]))!=null&&_0xbb67c5[_0x740017(0x3bc)]()['formulaBinding']);(_0x2d99ec||_0x84fd0c)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x740017(0x42f)][_0x740017(0xdf)]();}else this[_0x740017(0x42f)][_0x740017(0xdf)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x110206(0x386)][_0x110206(0x426)](_0x1f6f82=>{const _0x295d37=_0x110206;let _0x26586b=this['_shapeTextEditingService'][_0x295d37(0x302)]();_0x26586b&&_0x1f6f82[_0x295d37(0x203)](_0x4f1434=>_0x4f1434[_0x295d37(0x3e3)]===_0x26586b[_0x295d37(0x340)])&&this[_0x295d37(0x42f)][_0x295d37(0x362)](null);}));}[_0x5db5d0(0x31a)](){const _0x2bd697=_0x5db5d0;this['disposeWithMe'](this[_0x2bd697(0x42f)][_0x2bd697(0x2ca)][_0x2bd697(0x426)](_0x1454e8=>{const _0x400c50=_0x2bd697;let {scene:_0x3dfa16}=this[_0x400c50(0x2ea)];if(this[_0x400c50(0x15e)]){let _0x462736=_0x3dfa16[_0x400c50(0x1d5)](this[_0x400c50(0x15e)]);_0x462736&&_0x462736[_0x400c50(0x362)](!0x1);}if(_0x1454e8){let _0x88e21=!!_0x1454e8[_0x400c50(0x2cc)],_0x1fcf6f=_0x3dfa16[_0x400c50(0x1d5)](_0x1454e8['shapeKey']);_0x1fcf6f&&(_0x1fcf6f[_0x400c50(0x362)](_0x88e21),this[_0x400c50(0x15e)]=_0x1454e8[_0x400c50(0x183)]),this['_contextService'][_0x400c50(0x28a)](a[_0x400c50(0xee)],_0x88e21);}else this[_0x400c50(0x15e)]=null,this[_0x400c50(0x3f5)][_0x400c50(0x28a)](a['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};dt=j([A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(U)),A(0x3,s[_0x5db5d0(0x10d)]),A(0x4,a[_0x5db5d0(0xe8)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],dt);var ft=class extends dt{['_initEvents'](){const _0x1fd0a1=_0x5db5d0;let {scene:_0x38d5d0}=this['_context'],_0x4ed1be=this[_0x1fd0a1(0x418)][_0x1fd0a1(0x3b6)](e[_0x1fd0a1(0x2a7)]);this['disposeWithMe'](_0x38d5d0[_0x1fd0a1(0x17b)][_0x1fd0a1(0x151)](_0x50b97e=>{const _0x28e21e=_0x1fd0a1;let {offsetX:_0x51ce73,offsetY:_0x51931e}=_0x50b97e,_0x48166b=_0x38d5d0[_0x28e21e(0x39b)](c['Vector2'][_0x28e21e(0x2db)]([_0x51ce73,_0x51931e]));if(!(_0x48166b instanceof O))return;let _0x2f984f=this[_0x28e21e(0x27f)][_0x28e21e(0x11e)](_0x48166b['unitId'],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]);(0x0,n['isConnectorShape'])(this['_sheetsShapeService']['getShapeType'](_0x48166b[_0x28e21e(0x3bf)],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]))||_0x2f984f!=null&&_0x2f984f['getShapeData']()[_0x28e21e(0x238)]||_0x4ed1be['open']('text',{'hostType':a[_0x28e21e(0x400)]['UNIVER_SHEET'],'unitId':_0x48166b[_0x28e21e(0x3bf)],'subUnitId':_0x48166b[_0x28e21e(0x20a)],'shapeId':_0x48166b[_0x28e21e(0x340)]});}));}};const pt={...nt},mt={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'id':_0x5db5d0(0x209),'handler'(){return!0x0;}};let W=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3b672e,_0x1c03dd,_0x589307,_0x1b3d80,_0x138a9e,_0x388d26,_0x193c64,_0x40dc6c,_0x1de8ce,_0x4b271b,_0x4c8151){const _0x25556f=_0x5db5d0;super(),this[_0x25556f(0x12c)]=_0x3b672e,this['_sidebarService']=_0x1c03dd,this['_menuManagerService']=_0x589307,this[_0x25556f(0x27f)]=_0x1b3d80,this[_0x25556f(0x272)]=_0x138a9e,this[_0x25556f(0x1ad)]=_0x388d26,this['_drawingManagerService']=_0x193c64,this[_0x25556f(0x351)]=_0x40dc6c,this[_0x25556f(0x3f5)]=_0x1de8ce,this['_renderManagerService']=_0x4b271b,this[_0x25556f(0x42f)]=_0x4c8151,E(this,_0x25556f(0x128),null),E(this,_0x25556f(0x1c1),null),E(this,_0x25556f(0x220),!0x1),E(this,_0x25556f(0x292),0x0),E(this,_0x25556f(0x314),null),E(this,_0x25556f(0x3d6),[]),this[_0x25556f(0x387)](),this['disposeWithMe'](this[_0x25556f(0x12c)]['getCurrentTypeOfUnit$'](a[_0x25556f(0x400)][_0x25556f(0x319)])['subscribe'](_0x5503a3=>{const _0x5d6c9b=_0x25556f;if(!_0x5503a3){var _0x3f2c76;(_0x3f2c76=this[_0x5d6c9b(0x128)])==null||_0x3f2c76['dispose']();}})),this[_0x25556f(0x14b)](),this[_0x25556f(0x41a)](),this[_0x25556f(0x17d)](this[_0x25556f(0x42f)][_0x25556f(0x2ca)][_0x25556f(0x426)](_0x5cc0a8=>{_0x5cc0a8&&this['_clearPopups']();}));}[_0x5db5d0(0x387)](){const _0x10b012=_0x5db5d0;this[_0x10b012(0x25c)][_0x10b012(0x2a6)](rt);}[_0x5db5d0(0x41a)](){const _0x36606c=_0x5db5d0;this[_0x36606c(0x314)]||=this[_0x36606c(0x17d)]((0x0,e[_0x36606c(0x11f)])(this[_0x36606c(0x104)],a[_0x36606c(0x400)]['UNIVER_SHEET'],_0x14c08f=>this['_popupMenuListener'](_0x14c08f)));}[_0x5db5d0(0x145)](_0x37064e,_0x9b459a,_0x2b2f3b){const _0x1456c3=_0x5db5d0;let _0x58a0df=this['_sheetsShapeService'][_0x1456c3(0x214)](_0x37064e,_0x9b459a,_0x2b2f3b),_0x1fcb39=this[_0x1456c3(0x27f)][_0x1456c3(0x287)](_0x37064e,_0x9b459a,_0x2b2f3b);return _0x58a0df!==void 0x0&&_0x1fcb39!==void 0x0?{'shapeData':_0x1fcb39,'shapeId':_0x2b2f3b,'shapeType':_0x58a0df,'unitId':_0x37064e,'subUnitId':_0x9b459a,'version':this[_0x1456c3(0x292)],'disableShapeOption':!0x1}:null;}[_0x5db5d0(0x3b2)](){const _0x96ac5a=_0x5db5d0;this[_0x96ac5a(0x3d6)]['forEach'](_0x4955fc=>_0x4955fc[_0x96ac5a(0x1c4)]()),this[_0x96ac5a(0x3d6)]['length']=0x0;}[_0x5db5d0(0x199)](_0x420afa){const _0x18a7f5=_0x5db5d0;let _0x1360f5=new a[(_0x18a7f5(0x3ab))]();return _0x1360f5['add'](_0x420afa[_0x18a7f5(0x13a)][_0x18a7f5(0x426)](()=>{const _0x4d9cb5=_0x18a7f5;let _0x2acd33=_0x420afa[_0x4d9cb5(0x299)]();if(this[_0x4d9cb5(0x3b2)](),this[_0x4d9cb5(0x220)]||_0x2acd33['size']>0x1)return;let _0x2a5ec9=_0x2acd33[_0x4d9cb5(0x3ae)]()[_0x4d9cb5(0x430)]()[_0x4d9cb5(0x30b)];if(!_0x2a5ec9)return;let _0x17a0f2=this['_drawingManagerService'][_0x4d9cb5(0x11d)](_0x2a5ec9['oKey']);if(!_0x17a0f2||_0x17a0f2[_0x4d9cb5(0x3c1)]!==a[_0x4d9cb5(0x3e6)]['DRAWING_SHAPE'])return;let {unitId:_0x41f976,subUnitId:_0x575878,drawingId:_0x4b40fb,drawingType:_0x2114e7}=_0x17a0f2,_0x3ce332=this[_0x4d9cb5(0x145)](_0x41f976,_0x575878,_0x4b40fb);if(!_0x3ce332)return;this[_0x4d9cb5(0x3f5)][_0x4d9cb5(0x28a)](a[_0x4d9cb5(0x377)],!0x0);let _0x439f0f=this[_0x4d9cb5(0x104)][_0x4d9cb5(0x2c4)](_0x41f976),_0x19c7de=((_0x439f0f==null?void 0x0:_0x439f0f[_0x4d9cb5(0x1d7)])===!0x1?_0x439f0f['with'](l['SheetCanvasPopManagerService']):this[_0x4d9cb5(0x351)])['attachPopupToObject'](_0x2a5ec9,{'componentKey':R,'direction':_0x4d9cb5(0x1b8),'offset':[0x0,e[_0x4d9cb5(0x363)]],'extraProps':{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb,'drawingType':_0x2114e7,'shapeType':_0x3ce332[_0x4d9cb5(0x17f)],'shapeData':_0x3ce332[_0x4d9cb5(0x398)]}});this[_0x4d9cb5(0x3d6)][_0x4d9cb5(0x1bd)](this[_0x4d9cb5(0x17d)](_0x19c7de)),this[_0x4d9cb5(0x3b1)]['getFocusDrawings']()[_0x4d9cb5(0x249)](_0x21a829=>_0x21a829[_0x4d9cb5(0x3bf)]===_0x41f976&&_0x21a829[_0x4d9cb5(0x20a)]===_0x575878&&_0x21a829[_0x4d9cb5(0x3e3)]===_0x4b40fb)||this[_0x4d9cb5(0x3b1)]['focusDrawing']([{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb}]);})),_0x1360f5['add'](_0x420afa[_0x18a7f5(0x252)][_0x18a7f5(0x426)](()=>{const _0x55ac1e=_0x18a7f5;this[_0x55ac1e(0x3b2)](),this[_0x55ac1e(0x3f5)][_0x55ac1e(0x28a)](a[_0x55ac1e(0x377)],!0x1),this[_0x55ac1e(0x3b1)][_0x55ac1e(0x3aa)](null);})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa['changing$'][_0x18a7f5(0x426)](()=>{const _0x133be6=_0x18a7f5;this[_0x133be6(0x3b2)]();})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa[_0x18a7f5(0x328)][_0x18a7f5(0x426)](()=>{const _0x4f8c0e=_0x18a7f5;this[_0x4f8c0e(0x3b2)]();})),(0x0,a[_0x18a7f5(0x105)])(()=>{const _0x5180e8=_0x18a7f5;_0x1360f5[_0x5180e8(0x1c4)](),this['_clearPopups']();});}[_0x5db5d0(0x14b)](){const _0x4b0eac=_0x5db5d0;this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x1ad)][_0x4b0eac(0x1aa)](_0x4a3753=>{const _0x51f9f0=_0x4b0eac;if(_0x4a3753['id']===B['id']){let {unitId:_0x223f7a,subUnitId:_0x5e7774,drawingId:_0x4bf5db}=_0x4a3753['params'];this[_0x51f9f0(0x292)]+=0x1,this[_0x51f9f0(0x1c1)]=this['_getShapeInfo'](_0x223f7a,_0x5e7774,_0x4bf5db),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x4a3753['id']===mt['id']&&(this['_activeShapeInfo']=null,this[_0x51f9f0(0x2b1)]()),_0x4a3753['id']===i[_0x51f9f0(0x244)]['id']){let {unitId:_0x31c78c,subUnitId:_0x38c81d,shapeId:_0x3aba40}=_0x4a3753[_0x51f9f0(0x1a0)];if(this[_0x51f9f0(0x1c1)]&&this['_activeShapeInfo'][_0x51f9f0(0x340)]===_0x3aba40){let _0x741718=this[_0x51f9f0(0x145)](_0x31c78c,_0x38c81d,_0x3aba40);_0x741718&&(this['_shapeEditPanelVersion']+=0x1,_0x741718[_0x51f9f0(0x427)]=this[_0x51f9f0(0x292)],this[_0x51f9f0(0x1c1)]=_0x741718,this[_0x51f9f0(0x220)]&&this[_0x51f9f0(0x1d8)]());}}})),this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x3b1)][_0x4b0eac(0x344)][_0x4b0eac(0x426)](_0x542674=>{const _0x36a08a=_0x4b0eac;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x542674[_0x36a08a(0x2fb)]===0x0){this[_0x36a08a(0x1c1)]=null,this['_closeShapeEditPanel']();return;}if(_0x542674[_0x36a08a(0x2fb)]===0x1&&_0x542674[0x0][_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)][_0x36a08a(0x19d)]&&(this[_0x36a08a(0x292)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)])){this[_0x36a08a(0x1d8)]();return;}let _0x6cdc25=_0x542674[_0x36a08a(0x38e)](_0x354156=>_0x354156[_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)]['DRAWING_SHAPE']);if(_0x542674['length']>0x1&&_0x6cdc25['length']===_0x542674[_0x36a08a(0x2fb)]){if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0]['unitId'],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)]){this[_0x36a08a(0x1d8)]();return;}}else{if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0][_0x36a08a(0x3e3)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x36a08a(0x3af)]=!0x0,this[_0x36a08a(0x1d8)]();return;}}this[_0x36a08a(0x2b1)]();}));}[_0x5db5d0(0x1d8)](){const _0x44aea2=_0x5db5d0;this[_0x44aea2(0x1c1)]&&(this['_sidebarDisposable']=this[_0x44aea2(0x2e1)]['open']({'id':I,'header':{'title':this['_localeService']['t'](_0x44aea2(0x21e))},'width':0x184,'children':{'label':I,...this[_0x44aea2(0x1c1)]},'onClose':()=>{const _0x21f547=_0x44aea2;this[_0x21f547(0x3b1)][_0x21f547(0x3aa)](null),this['_contextService'][_0x21f547(0x28a)](a[_0x21f547(0x377)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x44aea2(0x220)]=!0x0);}[_0x5db5d0(0x2b1)](){const _0x595963=_0x5db5d0;this['_isOpenedShapeEditPanel']=!0x1,this[_0x595963(0x2e1)][_0x595963(0xe6)](I),this[_0x595963(0x128)]=null,this[_0x595963(0x3f5)][_0x595963(0x28a)](a[_0x595963(0x377)],!0x1),this[_0x595963(0x3b1)][_0x595963(0x3aa)](null);}};W=j([A(0x0,a['IUniverInstanceService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x27c)])),A(0x2,t[_0x5db5d0(0x172)]),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x5,a[_0x5db5d0(0x2b9)]),A(0x6,s[_0x5db5d0(0x10d)]),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(l[_0x5db5d0(0x237)])),A(0x8,a['IContextService']),A(0x9,c[_0x5db5d0(0x226)]),A(0xa,(0x0,a['Inject'])(U))],W);var ht=class extends W{[_0x5db5d0(0x387)](){const _0x3b4a94=_0x5db5d0;this[_0x3b4a94(0x25c)]['mergeMenu'](pt);}[_0x5db5d0(0x316)](){const _0x16c15d=_0x5db5d0;this[_0x16c15d(0x351)]['registerFeatureMenu'](a[_0x16c15d(0x3e6)][_0x16c15d(0x19d)],(_0xb8a060,_0x5bc2f0,_0x2f4d07,_0x2f972b)=>{const _0x4de41f=_0x16c15d;let _0x2ecb1e=this['_sheetsShapeService'][_0x4de41f(0x214)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0xa5af80=this[_0x4de41f(0x27f)][_0x4de41f(0x287)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0x619213=_0x2ecb1e!==void 0x0&&!(0x0,n[_0x4de41f(0x2b3)])(_0x2ecb1e)&&!(_0xa5af80!=null&&_0xa5af80[_0x4de41f(0x238)]);return[{'label':_0x4de41f(0x279),'index':0x0,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x25b)},'disable':!0x1},..._0x619213?[{'label':_0x4de41f(0x375),'index':0x1,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x152)},'disable':!0x1}]:[],{'label':_0x4de41f(0x321),'index':0x2,'commandId':m[_0x4de41f(0x346)]['id'],'commandParams':{'unitId':_0xb8a060,'drawings':[{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'drawingType':_0x2f972b}]},'disable':!0x1},{'label':_0x4de41f(0x10a),'index':0x3,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipH':!0x0},'disable':!0x1},{'label':_0x4de41f(0x339),'index':0x4,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipV':!0x0},'disable':!0x1}];},_0x16c15d(0x305));}[_0x5db5d0(0x199)](_0xd0132){const _0x2f7c0e=_0x5db5d0;this['_registerFeatureMenu']();let _0x569b86=new a[(_0x2f7c0e(0x3ab))](),_0x432e92=null,_0x22a651=()=>{const _0x55682b=_0x2f7c0e;if(!_0x432e92)return;let _0x472a20=this['_drawingManagerService']['getFocusDrawings'](),_0x4e2a32=_0x472a20[_0x55682b(0x2fb)]===0x0||_0x472a20[_0x55682b(0x2fb)]===0x1&&_0x472a20[_0x55682b(0x203)](_0x5cb60f=>_0x5cb60f[_0x55682b(0x3bf)]===(_0x432e92==null?void 0x0:_0x432e92['unitId'])&&_0x5cb60f[_0x55682b(0x20a)]===(_0x432e92==null?void 0x0:_0x432e92[_0x55682b(0x20a)])&&_0x5cb60f['drawingId']===(_0x432e92==null?void 0x0:_0x432e92['drawingId']));_0x432e92=null,_0x4e2a32&&(this['_contextService'][_0x55682b(0x28a)](a[_0x55682b(0x377)],!0x1),this[_0x55682b(0x3b1)][_0x55682b(0x3aa)](null));};return _0x569b86[_0x2f7c0e(0x381)](_0xd0132[_0x2f7c0e(0x13a)][_0x2f7c0e(0x426)](()=>{const _0x326ae9=_0x2f7c0e;let _0x42e1bc=_0xd0132[_0x326ae9(0x299)]();if(_0x42e1bc[_0x326ae9(0x3e0)]>0x1){_0x22a651();return;}let _0x95e6d0=_0x42e1bc['values']()[_0x326ae9(0x430)]()[_0x326ae9(0x30b)];if(!_0x95e6d0){_0x22a651();return;}let _0x47019c=this[_0x326ae9(0x3b1)][_0x326ae9(0x11d)](_0x95e6d0[_0x326ae9(0xf4)]);if(!_0x47019c||_0x47019c['drawingType']!==a[_0x326ae9(0x3e6)][_0x326ae9(0x19d)]){_0x22a651();return;}let {unitId:_0x215430,subUnitId:_0x160fe6,drawingId:_0x1a9851}=_0x47019c;_0x432e92={'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851},this[_0x326ae9(0x3f5)][_0x326ae9(0x28a)](a[_0x326ae9(0x377)],!0x0),this[_0x326ae9(0x3b1)][_0x326ae9(0x3fc)]()[_0x326ae9(0x249)](_0x549af8=>_0x549af8[_0x326ae9(0x3bf)]===_0x215430&&_0x549af8[_0x326ae9(0x20a)]===_0x160fe6&&_0x549af8[_0x326ae9(0x3e3)]===_0x1a9851)||this[_0x326ae9(0x3b1)][_0x326ae9(0x3aa)]([{'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851}]);})),_0x569b86['add'](_0xd0132[_0x2f7c0e(0x252)][_0x2f7c0e(0x426)](()=>{_0x22a651();})),(0x0,a[_0x2f7c0e(0x105)])(()=>{_0x569b86['dispose'](),_0x22a651();});}};function gt(_0x5363f4,_0x2c35e1,_0x5e63db,_0x28ac2f){const _0x58314a=_0x5db5d0;let _0x2bc670=(0x0,s[_0x58314a(0x24e)])(_0x5363f4,_0x2c35e1,_0x5e63db),_0x4ec426=[];for(let _0x470022 of _0x2c35e1){let _0x334f13=_0x2bc670[_0x58314a(0x3cf)][_0x58314a(0x3b6)](_0x470022['drawingId']),_0x1ada92=_0x28ac2f(_0x470022);!_0x334f13||!_0x1ada92||_0x4ec426[_0x58314a(0x1bd)]({'targetShapeId':_0x334f13,'source':_0x1ada92});}return _0x4ec426;}let G=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x363253,_0x1b55b3,_0x1cc450,_0x5f2e9e){const _0x19f573=_0x5db5d0;super(),this[_0x19f573(0x12c)]=_0x363253,this[_0x19f573(0x293)]=_0x1b55b3,this[_0x19f573(0x219)]=_0x1cc450,this[_0x19f573(0x27f)]=_0x5f2e9e,this['_initSheetChange']();}['_initSheetChange'](){const _0x5d75d8=_0x5db5d0;this[_0x5d75d8(0x17d)](this['_sheetInterceptorService'][_0x5d75d8(0x361)]({'getMutations':_0x309934=>{const _0x8711b6=_0x5d75d8;if(_0x309934['id']===o[_0x8711b6(0x2fd)]['id']){let _0x14296e=(0x0,o[_0x8711b6(0x169)])(this[_0x8711b6(0x12c)],_0x309934[_0x8711b6(0x1a0)]);if(!_0x14296e)return{'redos':[],'undos':[]};let {unitId:_0x1300ba,subUnitId:_0x4fe70c}=_0x14296e,_0x2d31c6=this[_0x8711b6(0x219)][_0x8711b6(0x343)](_0x1300ba,_0x4fe70c),_0x341637=Object[_0x8711b6(0x3ae)](_0x2d31c6)[_0x8711b6(0x38e)](_0x5f4aaf=>_0x5f4aaf[_0x8711b6(0x3c1)]===a[_0x8711b6(0x3e6)]['DRAWING_SHAPE']);if(_0x341637[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x4f396b=[],_0x23df5d=[];for(let _0x2a9091=0x0;_0x2a9091<_0x341637['length'];_0x2a9091++){let _0x6a92b2=_0x341637[_0x2a9091],_0x234fd4=this[_0x8711b6(0x27f)][_0x8711b6(0x11e)](_0x6a92b2[_0x8711b6(0x3bf)],_0x6a92b2[_0x8711b6(0x20a)],_0x6a92b2[_0x8711b6(0x3e3)]);_0x234fd4&&(_0x4f396b[_0x8711b6(0x1bd)]({'id':i[_0x8711b6(0x322)]['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2[_0x8711b6(0x3e3)]}}),_0x23df5d[_0x8711b6(0x1bd)]({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2['drawingId'],'shapeType':_0x234fd4[_0x8711b6(0x2fa)](),'shapeData':JSON[_0x8711b6(0x40c)](JSON[_0x8711b6(0x36a)](_0x234fd4[_0x8711b6(0x3bc)]()))}}));}return{'redos':_0x4f396b,'undos':_0x23df5d};}else{if(_0x309934['id']===o[_0x8711b6(0x2d2)]['id']){let {unitId:_0x7469e4,subUnitId:_0x4521f2,targetSubUnitId:_0x4f19f2,copyContext:_0x593388}=_0x309934['params'];if(!_0x7469e4||!_0x4521f2||!_0x4f19f2)return{'redos':[],'undos':[]};let _0x4052d6=this['_sheetDrawingService'][_0x8711b6(0x343)](_0x7469e4,_0x4521f2),_0x2fa47d=Object[_0x8711b6(0x3ae)](_0x4052d6)['filter'](_0x1cfb5c=>_0x1cfb5c[_0x8711b6(0x3c1)]===a['DrawingTypeEnum'][_0x8711b6(0x19d)]);if(_0x2fa47d[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x54600e=gt(_0x593388,_0x2fa47d,{'unitId':_0x7469e4,'sourceSubUnitId':_0x4521f2,'targetSubUnitId':_0x4f19f2},_0x397ed4=>{const _0x9ea326=_0x8711b6;let _0x5ba11d=this[_0x9ea326(0x27f)][_0x9ea326(0x11e)](_0x397ed4['unitId'],_0x397ed4[_0x9ea326(0x20a)],_0x397ed4[_0x9ea326(0x3e3)]);if(_0x5ba11d)return{'shapeType':_0x5ba11d[_0x9ea326(0x2fa)](),'shapeData':JSON[_0x9ea326(0x40c)](JSON[_0x9ea326(0x36a)](_0x5ba11d[_0x9ea326(0x3bc)]()))};}),_0x97f60c=[],_0x289222=[];for(let {targetShapeId:_0x31a7e1,source:_0x1143ee}of _0x54600e)_0x97f60c['push']({'id':i[_0x8711b6(0x34b)]['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1,'shapeType':_0x1143ee[_0x8711b6(0x17f)],'shapeData':_0x1143ee[_0x8711b6(0x398)]}}),_0x289222[_0x8711b6(0x1bd)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1}});return{'redos':_0x97f60c,'undos':_0x289222};}}return{'redos':[],'undos':[]};}}));}};G=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x1c8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x263)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m['ISheetDrawingService'])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],G);let K=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x344252,_0x203167,_0x10c88d,_0x3825f5,_0x15b87c,_0x2ab997){const _0xce577a=_0x5db5d0;super(),this[_0xce577a(0x1ad)]=_0x344252,this[_0xce577a(0x104)]=_0x203167,this[_0xce577a(0x3b1)]=_0x10c88d,this[_0xce577a(0x102)]=_0x3825f5,this[_0xce577a(0x38b)]=_0x15b87c,this['_sheetDrawingShapeRenderController']=_0x2ab997,E(this,_0xce577a(0x3e2),new Set()),this[_0xce577a(0x29e)]();}[_0x5db5d0(0x29e)](){this['_drawingAddListener'](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x5db5d0(0x261)](){const _0x30b65b=_0x5db5d0;this[_0x30b65b(0x17d)](this[_0x30b65b(0x3b1)]['add$']['subscribe'](_0xcce4f5=>{const _0x24581d=_0x30b65b;this[_0x24581d(0x16e)](_0xcce4f5);}));}[_0x5db5d0(0x1d0)](){const _0x2b3c50=_0x5db5d0;this[_0x2b3c50(0x17d)](this[_0x2b3c50(0x1ad)][_0x2b3c50(0x1aa)]((_0xdbea49,_0x38f0cb)=>{const _0xf55273=_0x2b3c50;if(_0xdbea49['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4d6411,subUnitId:_0x4233b4,shapeId:_0x4980b6}=_0xdbea49[_0xf55273(0x1a0)],_0x37e378=this['_getSceneAndTransformerByDrawingSearch'](_0x4d6411),_0x97f5d6=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x4d6411,'subUnitId':_0x4233b4,'drawingId':_0x4980b6}),_0x2849f9=_0x37e378==null?void 0x0:_0x37e378['scene'][_0xf55273(0x1d5)](_0x97f5d6);_0x2849f9&&(this[_0xf55273(0x2ec)][_0xf55273(0x101)](_0x2849f9),this[_0xf55273(0x2ec)][_0xf55273(0x1ce)](_0x2849f9,{'unitId':_0x4d6411,'subUnitId':_0x4233b4,'shapeId':_0x4980b6}),_0x2849f9[_0xf55273(0x1e9)](!0x0));return;}if(_0xdbea49['id']===i[_0xf55273(0x34b)]['id']){var _0x45b17e;let {unitId:_0x391156,subUnitId:_0x5cb063,shapeId:_0xeb4d7f}=_0xdbea49[_0xf55273(0x1a0)],_0xb7ec10=this['_getSceneAndTransformerByDrawingSearch'](_0x391156);if(_0xb7ec10==null)return;let {scene:_0xa11456}=_0xb7ec10,_0x24bb92=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}),_0x4b3d2b=_0xa11456[_0xf55273(0x1d5)](_0x24bb92);if(!((_0x45b17e=this[_0xf55273(0x104)][_0xf55273(0x2c4)](_0x391156))!=null&&_0x45b17e[_0xf55273(0x35a)](l[_0xf55273(0x364)])['getSkeleton'](_0x5cb063)))return!0x1;if(_0x4b3d2b)return;if(_0x38f0cb!=null&&_0x38f0cb[_0xf55273(0x33d)]){queueMicrotask(()=>{const _0x48aa8e=_0xf55273;this['_disposed']||this[_0x48aa8e(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);});return;}this[_0xf55273(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);}}));}['_shapeUpdateListener'](){const _0x386488=_0x5db5d0;this[_0x386488(0x17d)](this[_0x386488(0x3b1)][_0x386488(0xe7)][_0x386488(0x426)](_0x12cb2b=>{const _0x240f41=_0x386488;_0x12cb2b[_0x240f41(0xe5)](_0x2110a9=>{const _0x429ae8=_0x240f41;let {unitId:_0x3b68ae,subUnitId:_0x410c30,drawingId:_0x4c039b}=_0x2110a9,_0x26db19=this[_0x429ae8(0x3b1)][_0x429ae8(0x15a)](_0x2110a9);if(_0x26db19==null)return;let {transform:_0xe966cb,drawingType:_0x39ab4e,srcRect:_0x166b5a,prstGeom:_0x471661}=_0x26db19;if(_0x39ab4e!==a[_0x429ae8(0x3e6)][_0x429ae8(0x19d)])return;let _0x75123c=this[_0x429ae8(0x21d)](_0x3b68ae);if(_0x75123c==null)return;let {scene:_0x53f230,transformer:_0x5a8456}=_0x75123c;if(_0xe966cb==null)return!0x0;let _0x2f6339=(0x0,s[_0x429ae8(0x1f8)])({'unitId':_0x3b68ae,'subUnitId':_0x410c30,'drawingId':_0x4c039b}),_0x392f73=_0x53f230[_0x429ae8(0x1d5)](_0x2f6339);if(_0x392f73==null)return!0x0;_0x392f73[_0x429ae8(0x30d)](_0x166b5a),_0x392f73[_0x429ae8(0x2d4)](_0x471661);});}));}[_0x5db5d0(0x16e)](_0x2472cd){const _0x302e83=_0x5db5d0;for(let _0x3dd730 of _0x2472cd){var _0x3193d8;let {unitId:_0x91a924,subUnitId:_0x165142,drawingId:_0x5b78e9}=_0x3dd730,_0x4a5f6f=this[_0x302e83(0x21d)](_0x91a924),_0x26e4c0=(_0x3193d8=(0x0,d[_0x302e83(0x202)])(this[_0x302e83(0x102)],_0x91a924))==null?void 0x0:_0x3193d8[_0x302e83(0x20a)];if(_0x4a5f6f==null||_0x26e4c0!==_0x165142)return;let _0x554e57=(0x0,s[_0x302e83(0x1f8)])({'unitId':_0x91a924,'subUnitId':_0x165142,'drawingId':_0x5b78e9});if(this[_0x302e83(0x3e2)][_0x302e83(0x18e)](_0x554e57)||_0x4a5f6f['scene']['getObjectIncludeInGroup'](_0x554e57)!=null)return;let _0x5b9acf=this[_0x302e83(0x3b1)]['getDrawingByParam'](_0x3dd730);if(_0x5b9acf==null||_0x5b9acf[_0x302e83(0x3c1)]!==a[_0x302e83(0x3e6)][_0x302e83(0x19d)])return;if((0x0,n['isConnectorShape'])((_0x5b9acf[_0x302e83(0x1eb)]||{})[_0x302e83(0x17f)])){let _0x1b4c45=_0x5b9acf['transform'];_0x1b4c45&&(_0x5b9acf[_0x302e83(0x32a)]={..._0x1b4c45,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x302e83(0x381)](_0x554e57);try{this[_0x302e83(0x2ec)][_0x302e83(0x308)](_0x5b9acf,_0x4a5f6f[_0x302e83(0x2e7)]);}finally{this[_0x302e83(0x3e2)]['delete'](_0x554e57);}queueMicrotask(()=>{const _0x2411dd=_0x302e83;if(this[_0x2411dd(0x383)])return;let _0x392fea=(0x0,s[_0x2411dd(0x1f8)])(_0x3dd730);if(!_0x4a5f6f['scene'][_0x2411dd(0x1d5)](_0x392fea))return;let _0x1548fb=this[_0x2411dd(0x3b1)][_0x2411dd(0x15a)](_0x3dd730);_0x1548fb&&this[_0x2411dd(0x3b1)][_0x2411dd(0x131)]([_0x1548fb]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x2fecb8){const _0x4e455b=_0x5db5d0;if(_0x2fecb8==null)return;let _0x2c2a2a=this['_renderManagerService']['getRenderUnitById'](_0x2fecb8),_0x57ce15=_0x2c2a2a==null?void 0x0:_0x2c2a2a[_0x4e455b(0x2e7)];return _0x57ce15==null?null:{'scene':_0x57ce15,'transformer':_0x57ce15['getTransformerByCreate']()};}};K=j([A(0x0,a['ICommandService']),A(0x1,c[_0x5db5d0(0x226)]),A(0x2,s[_0x5db5d0(0x10d)]),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,(0x0,a['Inject'])(d[_0x5db5d0(0x231)])),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(M))],K);const _t={'normal':{'fill':n['ShapeDefaultConfig'][_0x5db5d0(0x33c)],'stroke':n[_0x5db5d0(0x2b4)][_0x5db5d0(0x1fe)],'strokeWidth':n[_0x5db5d0(0x2b4)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x5db5d0(0x1bf),'stroke':_0x5db5d0(0x1bb),'strokeWidth':0x2}};var vt=class extends c['Shape']{constructor(_0xed9782,_0x2a9b49){const _0x24b09c=_0x5db5d0;super(_0xed9782,_0x2a9b49),E(this,'_targetShapeId',''),E(this,_0x24b09c(0x270),-0x1),E(this,_0x24b09c(0x3d2),''),E(this,_0x24b09c(0x23c),''),E(this,_0x24b09c(0x37d),!0x1),_0x2a9b49&&this[_0x24b09c(0x3a1)](_0x2a9b49);}['getConnectionInfo'](){const _0x572f3f=_0x5db5d0;return{'unitId':this[_0x572f3f(0x3d2)],'subUnitId':this[_0x572f3f(0x23c)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x572f3f(0x270)]};}[_0x5db5d0(0xed)](_0x5cecd2){const _0x37a64f=_0x5db5d0;this['_isHighlighted']!==_0x5cecd2&&(this[_0x37a64f(0x37d)]=_0x5cecd2,this[_0x37a64f(0x1e9)](!0x0));}[_0x5db5d0(0x2ce)](){return this['_isHighlighted'];}['setShapeProps'](_0xeb10d8){const _0x536d00=_0x5db5d0;_0xeb10d8[_0x536d00(0x26f)]!==void 0x0&&(this['_targetShapeId']=_0xeb10d8['targetShapeId']),_0xeb10d8['cxnIndex']!==void 0x0&&(this[_0x536d00(0x270)]=_0xeb10d8[_0x536d00(0xfe)]),_0xeb10d8[_0x536d00(0x3bf)]!==void 0x0&&(this['_unitId']=_0xeb10d8[_0x536d00(0x3bf)]),_0xeb10d8['subUnitId']!==void 0x0&&(this[_0x536d00(0x23c)]=_0xeb10d8[_0x536d00(0x20a)]),_0xeb10d8['isHighlighted']!==void 0x0&&(this[_0x536d00(0x37d)]=_0xeb10d8['isHighlighted']),this['transformByState']({'width':_0xeb10d8[_0x536d00(0x2ad)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2,'height':_0xeb10d8[_0x536d00(0x3c5)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2});}[_0x5db5d0(0x124)](_0x3b21d2){const _0x5ead54=_0x5db5d0;let _0x2df0f8=this['_isHighlighted']?_t[_0x5ead54(0x1c6)]:_t[_0x5ead54(0x2f2)];c[_0x5ead54(0x360)][_0x5ead54(0x2d7)](_0x3b21d2,{'radius':n[_0x5ead54(0x2b4)]['cxnPointRadius'],'fill':_0x2df0f8[_0x5ead54(0x31b)],'stroke':_0x2df0f8[_0x5ead54(0x2b0)],'strokeWidth':_0x2df0f8[_0x5ead54(0x2cd)],'evented':!0x0});}};let q=class extends a['Disposable']{constructor(_0x4cb6f7,_0x414cb0,_0x14e858,_0x1b4489){const _0x941717=_0x5db5d0;super(),this[_0x941717(0x2ea)]=_0x4cb6f7,this[_0x941717(0x104)]=_0x414cb0,this['_drawingManagerService']=_0x14e858,this[_0x941717(0x27f)]=_0x1b4489,E(this,_0x941717(0xea),[]),E(this,'_activeTargetShapeId',null),E(this,_0x941717(0x365),-0x1),E(this,_0x941717(0x16a),null),E(this,_0x941717(0x3d2),''),E(this,_0x941717(0x23c),''),E(this,_0x941717(0x3a8),null);}[_0x5db5d0(0x1b4)](_0x385861,_0x168ee9,_0xf5aed1,_0x22ae72){const _0x147451=_0x5db5d0;this[_0x147451(0x16a)]=_0x385861,this[_0x147451(0x3d2)]=_0x168ee9,this[_0x147451(0x23c)]=_0xf5aed1,this[_0x147451(0x3a8)]=_0x22ae72;}['updateConnectionDetection'](_0x3604f2){const _0x1571fd=_0x5db5d0;if(!this['_currentScene'])return null;let _0x8fe3da=this['_findShapeAtPoint'](_0x3604f2);return _0x8fe3da?(this[_0x1571fd(0xd9)]!==_0x8fe3da['shapeId']&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0x26e)](_0x8fe3da[_0x1571fd(0x340)],_0x8fe3da[_0x1571fd(0x110)]),this[_0x1571fd(0xd9)]=_0x8fe3da[_0x1571fd(0x340)]),this[_0x1571fd(0x2f8)](_0x3604f2)):(this[_0x1571fd(0xd9)]!==null&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0xd9)]=null),null);}[_0x5db5d0(0x355)](){const _0x3382c2=_0x5db5d0;this[_0x3382c2(0x2ed)](),this[_0x3382c2(0x16a)]=null,this[_0x3382c2(0xd9)]=null,this[_0x3382c2(0x365)]=-0x1,this[_0x3382c2(0x3a8)]=null;}[_0x5db5d0(0x274)](){const _0x1af925=_0x5db5d0;return this[_0x1af925(0xd9)]===null||this[_0x1af925(0x365)]<0x0?null:{'shapeId':this[_0x1af925(0xd9)],'cxnIndex':this[_0x1af925(0x365)]};}[_0x5db5d0(0x3f4)](_0x1f5207){const _0x175ad0=_0x5db5d0;let _0x262dd5=this['_drawingManagerService']['getDrawingData'](this[_0x175ad0(0x3d2)],this[_0x175ad0(0x23c)]);for(let _0x533e8c of Object[_0x175ad0(0x29c)](_0x262dd5)){if(_0x533e8c===this[_0x175ad0(0x3a8)]||_0x262dd5[_0x533e8c][_0x175ad0(0x3c1)]!==a['DrawingTypeEnum'][_0x175ad0(0x19d)])continue;let _0x5abdc5=this[_0x175ad0(0x27f)][_0x175ad0(0x11e)](this[_0x175ad0(0x3d2)],this['_subUnitId'],_0x533e8c);if(!_0x5abdc5||(0x0,n[_0x175ad0(0x2b3)])(_0x5abdc5[_0x175ad0(0x2fa)]())||_0x5abdc5[_0x175ad0(0x186)]()[_0x175ad0(0x2fb)]===0x0||!this[_0x175ad0(0x16a)])continue;let _0x5dac57=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x175ad0(0x23c)],'drawingId':_0x533e8c}),_0x30515=this['_currentScene'][_0x175ad0(0x1d5)](_0x5dac57);if(!_0x30515)continue;let {left:_0x40fbd0,top:_0x57f7bb,width:_0x45883e,height:_0xa0854f}=_0x30515['getRealBound'](),_0x1e40df=_0x40fbd0+_0x45883e/0x2,_0x2be0c2=_0x57f7bb+_0xa0854f/0x2,_0x184e51=_0x30515[_0x175ad0(0x32a)][_0x175ad0(0x28c)](),_0x8454b6=new c[(_0x175ad0(0x1b2))]([_0x184e51[0x0],_0x184e51[0x1],_0x184e51[0x2],_0x184e51[0x3],_0x1e40df,_0x2be0c2]),_0x3b58c7=_0x30515['getParent'](),_0x3594e7=(_0x30515['isInGroup']&&(_0x3b58c7==null?void 0x0:_0x3b58c7[_0x175ad0(0x171)])===c[_0x175ad0(0x3b5)][_0x175ad0(0x2e4)]?_0x3b58c7[_0x175ad0(0x17c)][_0x175ad0(0x2e8)](_0x8454b6):_0x8454b6)[_0x175ad0(0x1e2)]()[_0x175ad0(0x320)](_0x1f5207),_0x26f4f5=_0x45883e/0x2,_0x5407bd=_0xa0854f/0x2;if(_0x3594e7['x']>=-_0x26f4f5-0x5&&_0x3594e7['x']<=_0x26f4f5+0x5&&_0x3594e7['y']>=-_0x5407bd-0x5&&_0x3594e7['y']<=_0x5407bd+0x5)return{'shapeId':_0x533e8c,'shapeModel':_0x5abdc5};}return null;}[_0x5db5d0(0x26e)](_0x51f646,_0x3cb5a2){const _0x2c9220=_0x5db5d0;if(!this['_currentScene'])return;let _0x2dfe7d=(0x0,s[_0x2c9220(0x1f8)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x51f646}),_0x281763=this['_currentScene'][_0x2c9220(0x1d5)](_0x2dfe7d);if(!_0x281763)return;let {left:_0x551c5a,top:_0x54f4c1,width:_0x6ef823,height:_0x2d67e6}=_0x281763[_0x2c9220(0x112)](),_0x258810=_0x551c5a+_0x6ef823/0x2,_0x5174b3=_0x54f4c1+_0x2d67e6/0x2,_0x4adbec=_0x281763[_0x2c9220(0x32a)][_0x2c9220(0x28c)](),_0x355203=new c['Transform']([_0x4adbec[0x0],_0x4adbec[0x1],_0x4adbec[0x2],_0x4adbec[0x3],_0x258810,_0x5174b3]),_0x1966d0=_0x281763[_0x2c9220(0x20e)](),_0x17e4c8=_0x281763[_0x2c9220(0x289)]&&(_0x1966d0==null?void 0x0:_0x1966d0[_0x2c9220(0x171)])===c[_0x2c9220(0x3b5)]['GROUP']?_0x1966d0[_0x2c9220(0x17c)][_0x2c9220(0x2e8)](_0x355203):_0x355203;_0x3cb5a2[_0x2c9220(0x141)]({'width':_0x6ef823,'height':_0x2d67e6});let _0xe17354=_0x3cb5a2[_0x2c9220(0x186)]();for(let _0x356827 of _0xe17354){let _0x5cf946=_0x356827['x']-_0x6ef823/0x2,_0x5f1734=_0x356827['y']-_0x2d67e6/0x2,_0x53cc8a=_0x17e4c8[_0x2c9220(0x320)]({'x':_0x5cf946,'y':_0x5f1734}),_0x45c77c=_0x53cc8a['x'],_0x360fd7=_0x53cc8a['y'],_0x46365b=new vt(_0x2c9220(0x278)+_0x51f646+'-'+_0x356827[_0x2c9220(0x3b0)],{'left':_0x45c77c-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'top':_0x360fd7-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'targetShapeId':_0x51f646,'cxnIndex':_0x356827['index'],'unitId':this[_0x2c9220(0x3d2)],'subUnitId':this['_subUnitId'],'width':n[_0x2c9220(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)]*0x2,'zIndex':c[_0x2c9220(0x3a9)]+0x2,'evented':!0x1});this[_0x2c9220(0xea)][_0x2c9220(0x1bd)](_0x46365b),this[_0x2c9220(0x16a)][_0x2c9220(0x251)](_0x46365b,c[_0x2c9220(0x3a9)]+0x2);}}[_0x5db5d0(0x2f8)](_0x4e56e2){const _0x3eac07=_0x5db5d0;let _0x1679d1=null,_0x7d2d22=0x1/0x0,_0x355c79=null;for(let _0x416373 of this['_connectionSiteObjects']){let _0x145192=_0x416373[_0x3eac07(0x42e)]+n[_0x3eac07(0x2b4)][_0x3eac07(0xf1)],_0x43c3d5=_0x416373['top']+n[_0x3eac07(0x2b4)]['cxnPointRadius'],_0x3ba901=_0x4e56e2['x']-_0x145192,_0x4e5add=_0x4e56e2['y']-_0x43c3d5,_0x467d20=Math[_0x3eac07(0x1b1)](_0x3ba901*_0x3ba901+_0x4e5add*_0x4e5add);_0x467d20<_0x7d2d22&&(_0x7d2d22=_0x467d20,_0x1679d1=_0x416373,_0x355c79={'x':_0x145192,'y':_0x43c3d5});}let _0x35583f=_0x7d2d22<=0xa&&_0x1679d1?_0x1679d1[_0x3eac07(0x2a4)]()[_0x3eac07(0xfe)]:-0x1;if(_0x35583f!==this[_0x3eac07(0x365)]){for(let _0x1c2bbb of this[_0x3eac07(0xea)]){let _0x38fa60=_0x1c2bbb[_0x3eac07(0x2a4)]();_0x1c2bbb['setHighlighted'](_0x38fa60[_0x3eac07(0xfe)]===_0x35583f);}this[_0x3eac07(0x365)]=_0x35583f;}if(_0x7d2d22<=0xa&&_0x1679d1&&_0x355c79){let _0xbfe3ef=_0x1679d1[_0x3eac07(0x2a4)](),_0xc3f12e=this[_0x3eac07(0x318)](_0xbfe3ef['shapeId'],_0xbfe3ef['cxnIndex']);return{'shapeId':_0xbfe3ef[_0x3eac07(0x340)],'cxnIndex':_0xbfe3ef['cxnIndex'],'unitId':_0xbfe3ef['unitId'],'subUnitId':_0xbfe3ef['subUnitId'],'worldPoint':_0x355c79,'angle':_0xc3f12e};}return null;}['_getConnectionSiteAngle'](_0x945b2a,_0x5aef67){const _0x1ec1c1=_0x5db5d0;let _0x112067=this[_0x1ec1c1(0x27f)][_0x1ec1c1(0x11e)](this['_unitId'],this[_0x1ec1c1(0x23c)],_0x945b2a);if(!_0x112067)return 0x0;let _0x5a61d6=this[_0x1ec1c1(0x3b1)][_0x1ec1c1(0x15a)]({'unitId':this[_0x1ec1c1(0x3d2)],'subUnitId':this[_0x1ec1c1(0x23c)],'drawingId':_0x945b2a});if(!(_0x5a61d6!=null&&_0x5a61d6[_0x1ec1c1(0x32a)]))return 0x0;let {width:_0x1252ad=0x0,height:_0x3d71ad=0x0,flipX:_0x5dc7ff=!0x1,flipY:_0x18c9db=!0x1}=_0x5a61d6[_0x1ec1c1(0x32a)];_0x112067[_0x1ec1c1(0x141)]({'width':_0x1252ad,'height':_0x3d71ad});let _0x5a91a5=_0x112067[_0x1ec1c1(0x186)]()['find'](_0x3f1312=>_0x3f1312[_0x1ec1c1(0x3b0)]===_0x5aef67);if(!_0x5a91a5)return 0x0;let _0x56affa=_0x5a91a5[_0x1ec1c1(0x3c7)]/0xea60;return _0x5dc7ff&&(_0x56affa=0xb4-_0x56affa),_0x18c9db&&(_0x56affa=-_0x56affa),_0x56affa=(_0x56affa%0x168+0x168)%0x168,_0x56affa;}[_0x5db5d0(0x2ed)](){const _0x187f19=_0x5db5d0;for(let _0x39d87d of this[_0x187f19(0xea)])_0x39d87d[_0x187f19(0x1c4)]();this[_0x187f19(0xea)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x55708b=_0x5db5d0;this['_clearConnectionSites'](),super[_0x55708b(0x1c4)]();}};q=j([A(0x1,(0x0,a['Inject'])(c[_0x5db5d0(0x226)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],q);let J=class extends a['Disposable']{constructor(_0x45758c,_0x4c21f6,_0x2ad2ef,_0x2c34a9,_0x3733c3){const _0x4395a3=_0x5db5d0;super(),this[_0x4395a3(0x3d9)]=_0x45758c,this['_sheetClipboardService']=_0x4c21f6,this[_0x4395a3(0x219)]=_0x2ad2ef,this['_shapeService']=_0x2c34a9,this[_0x4395a3(0x2c2)]=_0x3733c3,E(this,_0x4395a3(0xfb),void 0x0),this['_initCopyPaste'](),this[_0x4395a3(0x31c)]();}get[_0x5db5d0(0x357)](){const _0x3f5ece=_0x5db5d0;return this[_0x3f5ece(0x219)][_0x3f5ece(0x3fc)]();}['_registerGroupFeaturePasteHook'](){const _0x3547da=_0x5db5d0;this[_0x3547da(0x2c2)][_0x3547da(0x3fd)](({fromUnitId:_0x570e2c,fromSubUnitId:_0x25ec4b,toUnitId:_0x5342c2,toSubUnitId:_0x13f1d8,idMap:_0x369d24})=>{const _0x56e4c3=_0x3547da;let _0x24f95b=[],_0x1d4e28=[];for(let [_0x5a9799,_0x1a29ec]of _0x369d24[_0x56e4c3(0x2d0)]()){let _0x539d4e=this[_0x56e4c3(0x1f4)][_0x56e4c3(0x11e)](_0x570e2c,_0x25ec4b,_0x5a9799);if(!_0x539d4e)continue;let _0x3fcebf=_0x539d4e[_0x56e4c3(0x2fa)](),_0x11a4b3=JSON[_0x56e4c3(0x40c)](JSON[_0x56e4c3(0x36a)](_0x539d4e[_0x56e4c3(0x3bc)]()));if(_0x11a4b3[_0x56e4c3(0x42b)]){var _0x2142e1,_0x559885;let _0x5da6de=(_0x2142e1=_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)])==null?void 0x0:_0x2142e1[_0x56e4c3(0x340)],_0x50a0b5=(_0x559885=_0x11a4b3[_0x56e4c3(0x42b)]['to'])==null?void 0x0:_0x559885[_0x56e4c3(0x340)],_0x1d7059=!_0x5da6de||_0x369d24[_0x56e4c3(0x18e)](_0x5da6de),_0x32b923=!_0x50a0b5||_0x369d24['has'](_0x50a0b5);_0x1d7059&&_0x5da6de&&_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]?_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]={..._0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x5da6de)}:_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]=void 0x0,_0x32b923&&_0x50a0b5&&_0x11a4b3[_0x56e4c3(0x42b)]['to']?_0x11a4b3[_0x56e4c3(0x42b)]['to']={..._0x11a4b3[_0x56e4c3(0x42b)]['to'],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x50a0b5)}:_0x11a4b3['relation']['to']=void 0x0;}_0x24f95b['push']({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec,'shapeType':_0x3fcebf,'shapeData':_0x11a4b3}}),_0x1d4e28[_0x56e4c3(0x1bd)]({'id':i[_0x56e4c3(0x322)]['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec}});}return{'redos':_0x24f95b,'undos':_0x1d4e28};});}[_0x5db5d0(0x12f)](){const _0x3e6ca8=_0x5db5d0;this[_0x3e6ca8(0x17d)](this[_0x3e6ca8(0x2f0)][_0x3e6ca8(0x38c)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x3e456b,_0x268c27,_0x2fb0bf)=>{const _0x466b91=_0x3e6ca8;this[_0x466b91(0xfb)]=null;let _0x36c8e=this[_0x466b91(0x357)][_0x466b91(0x38e)](_0x21f694=>_0x21f694[_0x466b91(0x3c1)]===a[_0x466b91(0x3e6)]['DRAWING_SHAPE']);return _0x36c8e[_0x466b91(0x2fb)]===0x0?!0x1:(this[_0x466b91(0xfb)]={'unitId':_0x3e456b,'subUnitId':_0x268c27,'copyType':_0x2fb0bf,'drawings':_0x36c8e},!0x0);},'onBeforeCopy':(_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137)=>{const _0x463ab4=_0x3e6ca8;this['_copyInfo']=null,this[_0x463ab4(0x405)](_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137);},'onPasteCells':(_0x421dfa,_0x165bd6,_0x1533f2,_0x595f4c)=>{const _0x381b54=_0x3e6ca8;if(!_0x595f4c['copyId']||!_0x421dfa||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4c3ef6}=_0x595f4c;return _0x4c3ef6===l[_0x381b54(0x41b)][_0x381b54(0x3d5)]?this[_0x381b54(0x1f7)](_0x165bd6,this['_copyInfo']['copyType']===l['COPY_TYPE'][_0x381b54(0x1e1)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x58473f,_0x5e957b,_0x5d1c43,_0x5d7444){const _0x2ac386=_0x5db5d0;let _0x4443bd=this[_0x2ac386(0x3d9)][_0x2ac386(0x23a)](_0x58473f,_0x5e957b);if(!_0x4443bd)return;let _0x1ac8dd=(0x0,o[_0x2ac386(0x22b)])(_0x4443bd,_0x5d1c43);if(!_0x1ac8dd)return;let {startX:_0x3762ec,endX:_0x34648d,startY:_0x2f8193,endY:_0x5965ae}=_0x1ac8dd,_0x1b1fb2=this['_sheetDrawingService'][_0x2ac386(0x343)](_0x58473f,_0x5e957b),_0x350254=[];for(let [_0x1bd966,_0x19717b]of Object[_0x2ac386(0x2d0)](_0x1b1fb2)){if(_0x19717b[_0x2ac386(0x3c1)]!==a[_0x2ac386(0x3e6)][_0x2ac386(0x19d)])continue;let {transform:_0x22d9c9}=_0x19717b;if(!_0x22d9c9)continue;let {left:_0x5e33ab=0x0,top:_0x212f92=0x0,width:_0x31b7e3=0x0,height:_0x354525=0x0}=_0x22d9c9;_0x3762ec<=_0x5e33ab&&_0x34648d>=_0x5e33ab+_0x31b7e3&&_0x2f8193<=_0x212f92&&_0x5965ae>=_0x212f92+_0x354525&&_0x350254[_0x2ac386(0x1bd)](_0x19717b);}_0x350254[_0x2ac386(0x2fb)]>0x0&&(this[_0x2ac386(0xfb)]={'unitId':_0x58473f,'subUnitId':_0x5e957b,'copyType':_0x5d7444,'copyRange':_0x5d1c43,'drawings':_0x350254});}[_0x5db5d0(0x1f7)](_0x56094b,_0x24b79b){const _0x1d1201=_0x5db5d0;let {unitId:_0xf59696,subUnitId:_0x56aea0,range:_0x58e3af}=_0x56094b,_0x592e97=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0xf59696,_0x56aea0);if(!_0x592e97)return{'redos':[],'undos':[]};let _0x350f06=(0x0,o['discreteRangeToRange'])(_0x58e3af),{unitId:_0x3bb60e,subUnitId:_0x33b757,copyRange:_0x18ea96,drawings:_0x41d956}=this[_0x1d1201(0xfb)],_0x238115=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0x3bb60e,_0x33b757);if(!_0x238115)return{'redos':[],'undos':[]};let _0x401bb1;if(!_0x18ea96){let _0x1e3605=0x1/0x0,_0x1078fe=0x1/0x0;for(let _0x14fe45 of _0x41d956){let {left:_0x1de61a=0x0,top:_0x4911d8=0x0}=_0x14fe45[_0x1d1201(0x32a)]??{};_0x1de61a<_0x1e3605&&(_0x1e3605=_0x1de61a),_0x4911d8<_0x1078fe&&(_0x1078fe=_0x4911d8);}_0x1e3605!==0x1/0x0&&_0x1078fe!==0x1/0x0&&(_0x401bb1={'left':_0x1e3605,'top':_0x1078fe});}let _0x18041a=new Map();if(!_0x24b79b){for(let _0x4f613d of _0x41d956)_0x18041a[_0x1d1201(0x2d9)](_0x4f613d['drawingId'],(0x0,a[_0x1d1201(0x356)])());}let _0x52281f=[],_0x472ccf=[];for(let _0x37ce5b of _0x41d956){let {drawingId:_0x1e204b,transform:_0x4d218a,sheetTransform:_0x1fa9f6}=_0x37ce5b;if(!_0x4d218a||!_0x1fa9f6)continue;let _0x13adfb=this[_0x1d1201(0x32b)]({'transform':_0x4d218a,'sheetTransform':_0x1fa9f6},{'skeleton':_0x238115,'range':_0x18ea96},{'skeleton':_0x592e97,'range':_0x350f06},_0x401bb1);if(_0x24b79b){let {redos:_0x355e7f,undos:_0x3bf1c2}=this[_0x1d1201(0x22d)]({'fromUnitId':_0x3bb60e,'fromSubUnitId':_0x33b757,'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb});_0x52281f['push'](..._0x355e7f),_0x472ccf[_0x1d1201(0x1bd)](..._0x3bf1c2);continue;}let {redos:_0x5f5b65,undos:_0x39d7e6}=this[_0x1d1201(0x162)]({'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb,'newDrawingId':_0x18041a[_0x1d1201(0x3b6)](_0x1e204b),'idMap':_0x18041a});_0x52281f[_0x1d1201(0x1bd)](..._0x5f5b65),_0x472ccf[_0x1d1201(0x1bd)](..._0x39d7e6);}return{'redos':_0x52281f,'undos':_0x472ccf};}[_0x5db5d0(0x22d)](_0x4bcf38){const _0x1f4543=_0x5db5d0;let {fromUnitId:_0x382dc5,fromSubUnitId:_0x463736,toUnitId:_0x23acfc,toSubUnitId:_0x1a9d43,drawing:_0x389505,newTransforms:_0x4dc81a}=_0x4bcf38,_0x3875bc={..._0x389505,'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'transform':_0x4dc81a['transform'],'sheetTransform':_0x4dc81a[_0x1f4543(0x194)]};if(_0x23acfc===_0x382dc5&&_0x1a9d43===_0x463736){let {redo:_0x1d23d2,undo:_0x50e088,objects:_0x2a27d2}=this[_0x1f4543(0x219)]['getBatchUpdateOp']([_0x3875bc]);return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType'][_0x1f4543(0x1a8)],'op':_0x1d23d2,'objects':_0x2a27d2}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x1a8)],'op':_0x50e088,'objects':_0x2a27d2}}]};}else{let _0x56266c=this['_sheetDrawingService'][_0x1f4543(0x2f9)]([_0x389505]),_0x2f1f05=this[_0x1f4543(0x219)][_0x1f4543(0x216)]([_0x3875bc]),_0x151cb3=this['_shapeService']['getShapeModel'](_0x389505[_0x1f4543(0x3bf)],_0x389505[_0x1f4543(0x20a)],_0x389505[_0x1f4543(0x3e3)]);if(!_0x151cb3)return{'redos':[],'undos':[]};let _0x2f72b3=_0x151cb3['getShapeType'](),_0xbd575e=JSON[_0x1f4543(0x40c)](JSON[_0x1f4543(0x36a)](_0x151cb3['getShapeData']()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x337)],'op':_0x56266c['redo'],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)]}},{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType']['INSERT'],'op':_0x2f1f05[_0x1f4543(0x242)],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x34b)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505['drawingId'],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x22c)],'op':_0x56266c[_0x1f4543(0x10e)],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x337)],'op':_0x2f1f05['undo'],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505[_0x1f4543(0x3e3)]}}]};}}['_generateCopyPasteMutations'](_0x3ac089){const _0x4f01c5=_0x5db5d0;let {toUnitId:_0x5c93aa,toSubUnitId:_0x157c62,drawing:_0xffc5a8,newTransforms:_0xd9aed2,newDrawingId:_0x215aea,idMap:_0x50a7f8}=_0x3ac089,_0xf492d0={..._0xffc5a8,'unitId':_0x5c93aa,'subUnitId':_0x157c62,'drawingId':_0x215aea,'transform':_0xd9aed2['transform'],'sheetTransform':_0xd9aed2['sheetTransform']},{redo:_0x1909bb,undo:_0x33d481,objects:_0x1922de}=this[_0x4f01c5(0x219)][_0x4f01c5(0x216)]([_0xf492d0]),_0x50810d=this[_0x4f01c5(0x1f4)][_0x4f01c5(0x11e)](_0xffc5a8[_0x4f01c5(0x3bf)],_0xffc5a8[_0x4f01c5(0x20a)],_0xffc5a8[_0x4f01c5(0x3e3)]);if(!_0x50810d)return{'redos':[],'undos':[]};let _0x2a2ca0=_0x50810d[_0x4f01c5(0x2fa)](),_0x447fc2=JSON[_0x4f01c5(0x40c)](JSON[_0x4f01c5(0x36a)](_0x50810d[_0x4f01c5(0x3bc)]()));if(_0x447fc2[_0x4f01c5(0x42b)]){var _0x4eed77,_0x2fd8b9;let _0x444356=(_0x4eed77=_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)])==null?void 0x0:_0x4eed77[_0x4f01c5(0x340)],_0x3e565b=(_0x2fd8b9=_0x447fc2[_0x4f01c5(0x42b)]['to'])==null?void 0x0:_0x2fd8b9[_0x4f01c5(0x340)],_0xb4458b=!_0x444356||_0x50a7f8[_0x4f01c5(0x18e)](_0x444356),_0x501ac3=!_0x3e565b||_0x50a7f8['has'](_0x3e565b);_0xb4458b&&_0x444356&&_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)]?_0x447fc2['relation']['from']={..._0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)],'shapeId':_0x50a7f8[_0x4f01c5(0x3b6)](_0x444356)}:_0x447fc2[_0x4f01c5(0x42b)]['from']=void 0x0,_0x501ac3&&_0x3e565b&&_0x447fc2[_0x4f01c5(0x42b)]['to']?_0x447fc2[_0x4f01c5(0x42b)]['to']={..._0x447fc2['relation']['to'],'shapeId':_0x50a7f8['get'](_0x3e565b)}:_0x447fc2['relation']['to']=void 0x0;}return{'redos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x22c)],'op':_0x1909bb,'objects':_0x1922de}},{'id':i[_0x4f01c5(0x34b)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea,'shapeType':_0x2a2ca0,'shapeData':_0x447fc2}}],'undos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x337)],'op':_0x33d481,'objects':_0x1922de}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea}}]};}[_0x5db5d0(0x32b)](_0x552e1e,_0x3a3b54,_0x251848,_0xe79e86){const _0x8108c7=_0x5db5d0;let {range:_0x3bace4,skeleton:_0x1ad58c}=_0x3a3b54,{range:_0x49f6d8,skeleton:_0x3fefdd}=_0x251848,{transform:_0x10ef59,sheetTransform:_0x16afde}=_0x552e1e,_0x3b4ca4={..._0x10ef59};if(_0x3bace4){let _0x2e2cc6=(0x0,o['attachRangeWithCoord'])(_0x1ad58c,_0x3bace4),_0x2e99bb=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0x2e2cc6&&_0x2e99bb){let _0x19e197=_0x2e99bb[_0x8108c7(0x1ee)]-_0x2e2cc6[_0x8108c7(0x1ee)],_0x206283=_0x2e99bb[_0x8108c7(0x35d)]-_0x2e2cc6[_0x8108c7(0x35d)];_0x3b4ca4[_0x8108c7(0x42e)]=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)+_0x19e197,_0x3b4ca4[_0x8108c7(0x230)]=(_0x3b4ca4[_0x8108c7(0x230)]??0x0)+_0x206283;}}else{let _0x179191=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0xe79e86&&_0x179191){let _0x18b461=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)-_0xe79e86['left'],_0x22c8bf=(_0x3b4ca4['top']??0x0)-_0xe79e86[_0x8108c7(0x230)];_0x3b4ca4[_0x8108c7(0x42e)]=_0x179191[_0x8108c7(0x1ee)]+_0x18b461,_0x3b4ca4[_0x8108c7(0x230)]=_0x179191[_0x8108c7(0x35d)]+_0x22c8bf;}else _0x3b4ca4['left']=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x1ee)],_0x3b4ca4[_0x8108c7(0x230)]=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x35d)];}return{'transform':_0x3b4ca4,'sheetTransform':(0x0,m[_0x8108c7(0x39f)])(_0x3b4ca4,_0x3fefdd)??_0x16afde};}};J=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x332)])),A(0x1,(0x0,a['Inject'])(l[_0x5db5d0(0x2de)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m[_0x5db5d0(0x201)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(v['SheetsDrawingGroupCopyPasteController']))],J);var yt=class extends c[_0x5db5d0(0x3a7)]{constructor(_0x4602be,_0x11b382){const _0x349094=_0x5db5d0;super(_0x4602be,_0x11b382),E(this,'_shapeId',null),E(this,_0x349094(0x1be),null),E(this,_0x349094(0x3d2),null),E(this,'_subUnitId',null),E(this,_0x349094(0x113),!0x1),_0x11b382&&this[_0x349094(0x3a1)](_0x11b382);}[_0x5db5d0(0x19b)](){const _0x18ee06=_0x5db5d0;return{'unitId':this[_0x18ee06(0x3d2)],'subUnitId':this[_0x18ee06(0x23c)],'drawingId':this[_0x18ee06(0x212)]};}[_0x5db5d0(0x3a1)](_0x257fcd){const _0x56b9bf=_0x5db5d0;_0x257fcd['shapeId']!==void 0x0&&(this['_shapeId']=_0x257fcd[_0x56b9bf(0x340)]),_0x257fcd['unitId']!==void 0x0&&(this[_0x56b9bf(0x3d2)]=_0x257fcd[_0x56b9bf(0x3bf)]),_0x257fcd[_0x56b9bf(0x20a)]!==void 0x0&&(this['_subUnitId']=_0x257fcd['subUnitId']),_0x257fcd[_0x56b9bf(0x28f)]!==void 0x0&&(this[_0x56b9bf(0x113)]=_0x257fcd['isStartConnectorPoint']),this[_0x56b9bf(0x1ab)]({'width':_0x257fcd[_0x56b9bf(0x2ad)],'height':_0x257fcd['height']});}[_0x5db5d0(0x124)](_0x39223e){const _0x47f00e=_0x5db5d0;c[_0x47f00e(0x360)][_0x47f00e(0x2d7)](_0x39223e,{'radius':n[_0x47f00e(0x2b4)][_0x47f00e(0xf1)],'fill':n[_0x47f00e(0x2b4)][_0x47f00e(0x33c)],'stroke':n[_0x47f00e(0x2b4)]['cxnPointStroke'],'strokeWidth':n[_0x47f00e(0x2b4)][_0x47f00e(0xe9)],'evented':!0x0});}};let bt=class extends a['Disposable']{constructor(_0x5c09c2,_0x564412,_0x20da0d,_0x462ff0,_0x51d241,_0xe2f647,_0xf1add6,_0x391e8d){const _0x69acad=_0x5db5d0;super(),this[_0x69acad(0x2ea)]=_0x5c09c2,this[_0x69acad(0x1ad)]=_0x564412,this[_0x69acad(0x104)]=_0x20da0d,this['_drawingManagerService']=_0x462ff0,this[_0x69acad(0x12c)]=_0x51d241,this[_0x69acad(0x27f)]=_0xe2f647,this[_0x69acad(0x334)]=_0xf1add6,this[_0x69acad(0xe1)]=_0x391e8d,E(this,_0x69acad(0x296),void 0x0),E(this,_0x69acad(0x3d2),void 0x0),E(this,_0x69acad(0x23c),void 0x0),E(this,_0x69acad(0x40e),[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x69acad(0x258),void 0x0),E(this,'_isConnecting',!0x1),E(this,_0x69acad(0x14a),!0x1),E(this,_0x69acad(0x35b),!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,_0x69acad(0x185),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x69acad(0x29e)]();}['_initialize'](){const _0x113346=_0x5db5d0;this[_0x113346(0x37c)](),this[_0x113346(0x21c)]();}[_0x5db5d0(0x133)](){const _0x245365=_0x5db5d0;if(!this[_0x245365(0x3d2)]||!this[_0x245365(0x23c)]||!this['_activeShapeId'])return;let _0x48183a={'unitId':this[_0x245365(0x3d2)],'subUnitId':this[_0x245365(0x23c)],'drawingId':this[_0x245365(0x296)]},{transform:_0x2c53a8}=this[_0x245365(0x3b1)][_0x245365(0x15a)](_0x48183a);if(_0x2c53a8)return{'left':_0x2c53a8['left']||0x0,'top':_0x2c53a8['top']||0x0,'width':_0x2c53a8[_0x245365(0x2ad)]||0x0,'height':_0x2c53a8[_0x245365(0x3c5)]||0x0,'flipX':_0x2c53a8['flipX']||!0x1,'flipY':_0x2c53a8[_0x245365(0xef)]||!0x1,'angle':_0x2c53a8[_0x245365(0x3ed)]};}[_0x5db5d0(0x385)](){const _0x3dc226=_0x5db5d0;if(this['_unitId']===void 0x0||this[_0x3dc226(0x23c)]===void 0x0||this[_0x3dc226(0x296)]===void 0x0)return;let _0x4d5bff=this['_renderManagerService'][_0x3dc226(0x2c4)](this['_unitId']);if(!_0x4d5bff||!_0x4d5bff['with'](l[_0x3dc226(0x364)])[_0x3dc226(0x2bc)]())return;let {scene:_0x1ab8c7}=_0x4d5bff,_0x5da104=this[_0x3dc226(0x133)]();if(!_0x5da104)return;let _0x21a5df=this[_0x3dc226(0x27f)][_0x3dc226(0x11e)](this[_0x3dc226(0x3d2)],this['_subUnitId'],this[_0x3dc226(0x296)]);if(!_0x21a5df||!(0x0,n[_0x3dc226(0x2b3)])(_0x21a5df[_0x3dc226(0x2fa)]()))return;let _0x3714ed=_0x21a5df[_0x3dc226(0x403)]();if(_0x3714ed[_0x3dc226(0x2fb)]<0x2)return;let _0x11de4a=new n[(_0x3dc226(0x317))](_0x5da104),_0x3c6eb5=_0x3714ed[0x0],_0x27c993=_0x3714ed[_0x3714ed[_0x3dc226(0x2fb)]-0x1],_0xa0629=_0x11de4a[_0x3dc226(0xf5)](_0x3c6eb5),_0x720561=_0x11de4a[_0x3dc226(0xf5)](_0x27c993);this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0xa0629},!0x0),this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0x720561},!0x1);}[_0x5db5d0(0x34d)](_0x99b8a0,_0x39bd77,_0x2ccdb3){const _0x708d91=_0x5db5d0;if(this['_activeShapeId']===void 0x0||this[_0x708d91(0x3d2)]===void 0x0||this[_0x708d91(0x23c)]===void 0x0)return;let _0xb8bc1d=_0x708d91(0x197)+this[_0x708d91(0x3d2)]+'-'+this[_0x708d91(0x23c)]+'-'+this['_activeShapeId']+'-'+(_0x2ccdb3?_0x708d91(0x396):_0x708d91(0x41f)),_0x454c55=_0x99b8a0[_0x708d91(0x1d5)](_0xb8bc1d);if(_0x454c55){_0x454c55['transformByState']({'left':_0x39bd77['x']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'top':_0x39bd77['y']-n['ShapeDefaultConfig'][_0x708d91(0xf1)]});return;}let _0x124ece=new yt(_0xb8bc1d,{'left':_0x39bd77['x']-n['ShapeDefaultConfig'][_0x708d91(0xf1)],'top':_0x39bd77['y']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'shapeId':this[_0x708d91(0x296)],'unitId':this[_0x708d91(0x3d2)],'subUnitId':this[_0x708d91(0x23c)],'isStartConnectorPoint':_0x2ccdb3,'width':n[_0x708d91(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x708d91(0x2b4)][_0x708d91(0xf1)]*0x2,'zIndex':c[_0x708d91(0x3a9)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x708d91(0x1bd)](_0x124ece),this[_0x708d91(0xfc)](_0x124ece,_0x99b8a0,_0x2ccdb3),_0x99b8a0['addObject'](_0x124ece,c[_0x708d91(0x3a9)]+0x1);}[_0x5db5d0(0x245)](_0x4622c7,_0x55dee8){const _0x47fbbd=_0x5db5d0;var _0x363819;let _0x1d6fda={'x':0x0,'y':0x0};if(!_0x4622c7||!_0x55dee8)return _0x1d6fda;let _0x26f492=this['_renderManagerService']['getRenderUnitById'](_0x4622c7);if(!_0x26f492||!_0x26f492['with'](l[_0x47fbbd(0x364)])[_0x47fbbd(0x23a)](_0x55dee8))return _0x1d6fda;let _0x59a454=_0x26f492[_0x47fbbd(0x35a)](l['SheetScrollManagerService']),_0x44d063=_0x59a454==null?void 0x0:_0x59a454[_0x47fbbd(0x2ac)]();if(!_0x44d063)return _0x1d6fda;let _0x1130d4=(_0x363819=this['_univerInstanceService'][_0x47fbbd(0x1ae)](_0x4622c7))==null?void 0x0:_0x363819[_0x47fbbd(0x26d)](_0x55dee8);if(!_0x1130d4)return _0x1d6fda;let _0x25307d=(0x0,l['getViewportByCell'])(_0x44d063[_0x47fbbd(0x1a5)],_0x44d063[_0x47fbbd(0x149)],_0x26f492['scene'],_0x1130d4);return _0x25307d?{'x':_0x25307d[_0x47fbbd(0xd6)],'y':_0x25307d[_0x47fbbd(0x370)]}:_0x1d6fda;}[_0x5db5d0(0x34f)](_0x2fc0fd,_0x2ba3e8){const _0x3d4119=_0x5db5d0;var _0x78f144;let _0x70c56a=(_0x78f144=this[_0x3d4119(0x12c)][_0x3d4119(0x1ae)](_0x2fc0fd))==null?void 0x0:_0x78f144[_0x3d4119(0x26d)](_0x2ba3e8);return(_0x70c56a==null?void 0x0:_0x70c56a[_0x3d4119(0x27a)]())??0x1;}[_0x5db5d0(0x16f)](_0x1619ed,_0x4d2ed8,_0x4eef2d,_0x285f2f,_0x1ac399){const _0x5d2ee1=_0x5db5d0;this[_0x5d2ee1(0x276)]['unsubscribe'](),this[_0x5d2ee1(0x185)][_0x5d2ee1(0x284)](),this[_0x5d2ee1(0x334)][_0x5d2ee1(0x40f)]();let _0x4ab25e=this[_0x5d2ee1(0x325)];this[_0x5d2ee1(0xe1)][_0x5d2ee1(0x355)]();let _0x3dca58=this[_0x5d2ee1(0x245)](this[_0x5d2ee1(0x3d2)],this[_0x5d2ee1(0x23c)]),_0x2c0170=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0xcb6f85={'x':_0x4eef2d['offsetX']/_0x2c0170+_0x3dca58['x'],'y':_0x4eef2d[_0x5d2ee1(0x354)]/_0x2c0170+_0x3dca58['y']},_0x596078=_0x4ab25e?_0x4ab25e['worldPoint']:_0xcb6f85,_0x4021d4=_0x285f2f?this[_0x5d2ee1(0x258)][_0x5d2ee1(0x1db)]():this['_activeShapeModel']['getStartConnectInfo'](),_0x2a20eb=this[_0x5d2ee1(0x258)]['getShapeType']();_0x4021d4?this[_0x5d2ee1(0x208)](_0x4021d4,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399):this[_0x5d2ee1(0x18d)](_0x4d2ed8,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399,_0x2a20eb),this[_0x5d2ee1(0x3df)]=!0x1,this['_hasReset']=!0x1,this[_0x5d2ee1(0x325)]=null,_0x1619ed['enableObjectsEvent']();}[_0x5db5d0(0x18d)](_0x38a471,_0x328092,_0x475152,_0x5991a4,_0x5bf316,_0x2b7988){const _0x3e9342=_0x5db5d0;let _0x4537d9=_0x2b7988===n['ShapeTypeEnum'][_0x3e9342(0x431)]||_0x2b7988===n['ShapeTypeEnum']['StraightConnector1'],_0x3ed72b=_0x475152?_0x328092:_0x38a471,_0x125e2b=_0x475152?_0x38a471:_0x328092,_0x4b1b51=this[_0x3e9342(0x258)]['getConnectorLinePoints'](),_0x337122=(0x0,n[_0x3e9342(0x19f)])(this[_0x3e9342(0x258)][_0x3e9342(0x2fa)]()),_0x1b6bd9=n[_0x3e9342(0x317)][_0x3e9342(0x253)](_0x4b1b51,_0x337122),_0x5d6866=_0x4537d9?n['ConnectorCoordinateTransform'][_0x3e9342(0x3b4)](_0x3ed72b,_0x125e2b):n[_0x3e9342(0x317)]['computeConnectorResizeLayout'](_0x38a471,_0x328092,_0x475152,_0x1b6bd9);_0x5991a4?this['_executeConnectionCommand'](_0x5d6866,_0x5991a4,_0x475152,_0x5bf316):this[_0x3e9342(0x114)](_0x5d6866,_0x5bf316);}[_0x5db5d0(0x208)](_0x4c0a72,_0x1c2d4c,_0x54bc42,_0x449a61,_0x50487e){const _0x21ab5a=_0x5db5d0;let _0x31fd0a=this[_0x21ab5a(0x1d9)](_0x4c0a72);if(!_0x31fd0a)return;let _0x4b8fc1=_0x449a61?_0x449a61[_0x21ab5a(0x3ed)]:this[_0x21ab5a(0x371)](_0x31fd0a['point'],_0x1c2d4c),_0x58fa3f;if(_0x449a61){let _0x72b6cb=this[_0x21ab5a(0x3b1)]['getDrawingByParam']({'unitId':_0x449a61[_0x21ab5a(0x3bf)],'subUnitId':_0x449a61['subUnitId'],'drawingId':_0x449a61['shapeId']});if(_0x72b6cb!=null&&_0x72b6cb[_0x21ab5a(0x32a)]){let {left:_0x165581=0x0,top:_0x57e005=0x0,width:_0x807b51=0x0,height:_0x146eb7=0x0,angle:_0x468785}=_0x72b6cb[_0x21ab5a(0x32a)];_0x58fa3f=(0x0,n['getBasicShapeRotateBound'])({'left':_0x165581,'top':_0x57e005,'width':_0x807b51,'height':_0x146eb7},_0x468785||0x0);}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};let _0x2d0e3c={'point':_0x1c2d4c,'angle':_0x4b8fc1,'bounds':_0x58fa3f},_0x3fa0b2=_0x54bc42?_0x2d0e3c:_0x31fd0a,_0x149e27=_0x54bc42?_0x31fd0a:_0x2d0e3c,_0x23cf60=this['_activeShapeModel'][_0x21ab5a(0x2fa)](),_0x46659b=(0x0,n[_0x21ab5a(0x2a0)])(_0x3fa0b2,_0x149e27,_0x23cf60);this[_0x21ab5a(0x258)][_0x21ab5a(0x310)]();let _0x3d4e92=(0x0,n[_0x21ab5a(0x24c)])(_0x46659b,_0x23cf60);_0x449a61?this[_0x21ab5a(0x393)](_0x3d4e92,_0x449a61,_0x4c0a72,_0x54bc42,_0x50487e):this[_0x21ab5a(0x228)](_0x3d4e92,_0x4c0a72,_0x54bc42,_0x50487e);}[_0x5db5d0(0x189)](_0x300bfb,_0x209db8,_0x3523e6,_0x1be060){const _0x45e212=_0x5db5d0;let _0x5ac07d=this[_0x45e212(0x258)][_0x45e212(0x3bc)]()[_0x45e212(0x42b)],_0x28a48b={..._0x5ac07d},_0x525772={'shapeId':_0x209db8[_0x45e212(0x340)],'cxnIndex':_0x209db8[_0x45e212(0xfe)]};_0x3523e6?_0x28a48b[_0x45e212(0x10f)]=_0x525772:_0x28a48b['to']=_0x525772;let _0x2664e7=this[_0x45e212(0x258)][_0x45e212(0x2fa)](),_0x546568=(0x0,n[_0x45e212(0x24c)])(_0x300bfb[_0x45e212(0x2f5)],_0x2664e7),_0x5f23c7={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x45e212(0x296)],'width':_0x300bfb[_0x45e212(0x1ca)]['width'],'height':_0x300bfb[_0x45e212(0x1ca)]['height'],'left':_0x300bfb['worldRect'][_0x45e212(0x42e)],'top':_0x300bfb['worldRect'][_0x45e212(0x230)],'flipX':_0x300bfb[_0x45e212(0x1ca)][_0x45e212(0xfa)]||!0x1,'flipY':_0x300bfb[_0x45e212(0x1ca)]['flipY']||!0x1,'newAdjustValues':_0x546568[_0x45e212(0x15c)],'oldAdjustValues':_0x1be060,'oldRelation':_0x5ac07d,'newRelation':_0x28a48b,'newLineType':_0x546568['lineType'],'oldLineType':_0x2664e7};this[_0x45e212(0x1ad)][_0x45e212(0x3e5)](i[_0x45e212(0x29b)]['id'],_0x5f23c7);}['_executeResizeCommand'](_0x2bff09,_0x3b896d){const _0x372685=_0x5db5d0;let _0x415ad0=this[_0x372685(0x258)]['getShapeType'](),_0xec1e4d=(0x0,n[_0x372685(0x24c)])(_0x2bff09[_0x372685(0x2f5)],_0x415ad0),_0x2d63b2={'unitId':this[_0x372685(0x3d2)],'subUnitId':this[_0x372685(0x23c)],'shapeId':this['_activeShapeId'],'width':_0x2bff09['worldRect'][_0x372685(0x2ad)],'height':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x3c5)],'left':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x42e)],'top':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x230)],'flipX':_0x2bff09[_0x372685(0x1ca)][_0x372685(0xfa)]||!0x1,'flipY':_0x2bff09[_0x372685(0x1ca)]['flipY']||!0x1,'angle':_0x2bff09['worldRect'][_0x372685(0x3ed)]||0x0,'newAdjustValues':_0xec1e4d[_0x372685(0x15c)],'oldAdjustValues':_0x3b896d,'newLineType':_0xec1e4d[_0x372685(0x1ac)],'oldLineType':_0x415ad0};this[_0x372685(0x1ad)]['executeCommand'](i['UpdateLineShapeResizeCommand']['id'],_0x2d63b2);}[_0x5db5d0(0x393)](_0x151d5b,_0x536b37,_0x267ff3,_0x2e2b72,_0x771bbd){const _0x57f1ff=_0x5db5d0;let _0x4942d5=this[_0x57f1ff(0x258)][_0x57f1ff(0x3bc)]()['relation'],_0x4ec192={..._0x4942d5},_0x539ba7={'shapeId':_0x536b37[_0x57f1ff(0x340)],'cxnIndex':_0x536b37[_0x57f1ff(0xfe)]};_0x2e2b72?(_0x4ec192[_0x57f1ff(0x10f)]=_0x539ba7,_0x4ec192['to']=_0x267ff3):(_0x4ec192['from']=_0x267ff3,_0x4ec192['to']=_0x539ba7);let _0x4ab75b={'unitId':this[_0x57f1ff(0x3d2)],'subUnitId':this[_0x57f1ff(0x23c)],'connectorShapeId':this[_0x57f1ff(0x296)],'width':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x2ad)],'height':_0x151d5b[_0x57f1ff(0x1ca)]['height'],'left':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x42e)],'top':_0x151d5b[_0x57f1ff(0x1ca)]['top'],'flipX':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xfa)]||!0x1,'flipY':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xef)]||!0x1,'oldAdjustValues':_0x771bbd,'newAdjustValues':_0x151d5b[_0x57f1ff(0x15c)],'newLineType':_0x151d5b['lineType'],'rotation':_0x151d5b[_0x57f1ff(0x1e8)],'oldRelation':_0x4942d5,'newRelation':_0x4ec192};this[_0x57f1ff(0x1ad)][_0x57f1ff(0x3e5)](i['UpdateConnectorRelationCommand']['id'],_0x4ab75b);}[_0x5db5d0(0x228)](_0x54a2c0,_0x3bd547,_0x7afb57,_0x53e7d5){const _0x2a26f6=_0x5db5d0;let _0x1b8054=this[_0x2a26f6(0x258)][_0x2a26f6(0x3bc)]()[_0x2a26f6(0x42b)],_0x4dd3d0={};_0x7afb57?(_0x4dd3d0['to']=_0x3bd547,_0x4dd3d0[_0x2a26f6(0x10f)]=void 0x0):(_0x4dd3d0[_0x2a26f6(0x10f)]=_0x3bd547,_0x4dd3d0['to']=void 0x0);let _0x67f65f={'unitId':this[_0x2a26f6(0x3d2)],'subUnitId':this[_0x2a26f6(0x23c)],'connectorShapeId':this[_0x2a26f6(0x296)],'width':_0x54a2c0['worldRect']['width'],'height':_0x54a2c0[_0x2a26f6(0x1ca)]['height'],'left':_0x54a2c0[_0x2a26f6(0x1ca)]['left'],'top':_0x54a2c0['worldRect'][_0x2a26f6(0x230)],'flipX':_0x54a2c0['worldRect'][_0x2a26f6(0xfa)]||!0x1,'flipY':_0x54a2c0[_0x2a26f6(0x1ca)][_0x2a26f6(0xef)]||!0x1,'oldAdjustValues':_0x53e7d5,'newAdjustValues':_0x54a2c0[_0x2a26f6(0x15c)],'newLineType':_0x54a2c0[_0x2a26f6(0x1ac)],'rotation':_0x54a2c0[_0x2a26f6(0x1e8)],'oldRelation':_0x1b8054,'newRelation':_0x4dd3d0};this[_0x2a26f6(0x1ad)][_0x2a26f6(0x3e5)](i[_0x2a26f6(0x29b)]['id'],_0x67f65f);}[_0x5db5d0(0xfc)](_0x5ee4c8,_0x4a3712,_0x2f3de3){const _0x2d9104=_0x5db5d0;this[_0x2d9104(0x17d)]((0x0,a[_0x2d9104(0x105)])(_0x5ee4c8['onPointerDown$'][_0x2d9104(0x151)]((_0x2b09e0,_0x2cb2a3)=>{const _0x2554a6=_0x2d9104;let _0x796429=_0x5ee4c8[_0x2554a6(0x19b)]();if(this['_activeShapeModel']=this[_0x2554a6(0x27f)][_0x2554a6(0x11e)](_0x796429['unitId'],_0x796429[_0x2554a6(0x20a)],_0x796429['drawingId']),!this[_0x2554a6(0x258)])return;let _0x222336={};this[_0x2554a6(0x258)][_0x2554a6(0x2bf)]()[_0x2554a6(0xe5)](_0x372284=>{const _0x1d3848=_0x2554a6;let _0x39cd4d=this[_0x1d3848(0x258)][_0x1d3848(0xd7)](_0x372284);_0x39cd4d!==void 0x0&&(_0x222336[_0x372284]=_0x39cd4d);});let _0x4574c7=this[_0x2554a6(0x133)]();if(!_0x4574c7)return;this[_0x2554a6(0x140)]={..._0x4574c7};let _0x3b2ab0=new n['ConnectorCoordinateTransform'](this[_0x2554a6(0x140)]),_0x249e77=(0x0,s[_0x2554a6(0x1f8)])({'unitId':this[_0x2554a6(0x3d2)],'subUnitId':this[_0x2554a6(0x23c)],'drawingId':this[_0x2554a6(0x296)]}),_0x313bf2=_0x4a3712[_0x2554a6(0x1d5)](_0x249e77);this['_isConnecting']=!0x0,_0x4a3712[_0x2554a6(0x2a1)](),this[_0x2554a6(0xe1)][_0x2554a6(0x1b4)](_0x4a3712,this['_unitId'],this[_0x2554a6(0x23c)],this[_0x2554a6(0x296)]),this[_0x2554a6(0x325)]=null;let _0xc17000=this[_0x2554a6(0x258)][_0x2554a6(0x403)](),_0xc0595b=_0xc17000[0x0],_0x4c218a=_0xc17000[_0xc17000['length']-0x1],_0x3eaea9=_0x2f3de3?_0x3b2ab0[_0x2554a6(0xf5)](_0x4c218a):_0x3b2ab0[_0x2554a6(0xf5)](_0xc0595b);this['_cxtHandlerPointerMove']=_0x4a3712['onPointerMove$']['subscribeEvent']((_0x50b7ec,_0x51cb03)=>{const _0x3eb120=_0x2554a6;if(!this[_0x3eb120(0x3df)]||!this[_0x3eb120(0x258)])return;this[_0x3eb120(0x35b)]||=(this[_0x3eb120(0x334)][_0x3eb120(0x24f)](),this[_0x3eb120(0x258)][_0x3eb120(0x1e5)](),!0x0);let _0x304da1=this['_getScrollInfo'](this[_0x3eb120(0x3d2)],this['_subUnitId']),_0x3201d7=this[_0x3eb120(0x34f)](this[_0x3eb120(0x3d2)],this[_0x3eb120(0x23c)]),_0x1c751f={'x':_0x50b7ec['offsetX']/_0x3201d7+_0x304da1['x'],'y':_0x50b7ec[_0x3eb120(0x354)]/_0x3201d7+_0x304da1['y']},_0x386bd0=this[_0x3eb120(0xe1)][_0x3eb120(0x2eb)](_0x1c751f);if(_0x386bd0){let {shapeId:_0x207dd7,unitId:_0x3abab9,subUnitId:_0x464a5c}=_0x386bd0;if(_0x207dd7&&_0x3abab9&&_0x464a5c){let _0x230905=(0x0,s[_0x3eb120(0x1f8)])({'unitId':_0x3abab9,'subUnitId':_0x464a5c,'drawingId':_0x207dd7});_0x386bd0[_0x3eb120(0x3ed)]=(_0x4a3712[_0x3eb120(0x1d5)](_0x230905)[_0x3eb120(0x3ed)]||0x0)+_0x386bd0[_0x3eb120(0x3ed)];}}this[_0x3eb120(0x325)]=_0x386bd0;let _0x10c481=_0x2f3de3?this['_activeShapeModel'][_0x3eb120(0x1db)]():this['_activeShapeModel'][_0x3eb120(0x129)]();if(_0x10c481){this[_0x3eb120(0x37b)](_0x10c481,_0x1c751f,_0x2f3de3,_0x313bf2,_0x5ee4c8);return;}this[_0x3eb120(0x200)](_0x1c751f,_0x3eaea9,_0x2f3de3,_0x313bf2,_0x5ee4c8);}),this[_0x2554a6(0x185)]=_0x4a3712[_0x2554a6(0x369)][_0x2554a6(0x151)]((_0x8cacfe,_0x5bd5c4)=>{const _0x2a3907=_0x2554a6;this[_0x2a3907(0x16f)](_0x4a3712,_0x3eaea9,_0x8cacfe,_0x2f3de3,_0x222336);}),_0x2cb2a3[_0x2554a6(0x15f)]();})));}[_0x5db5d0(0x3d8)](_0x923cc2,_0x3d6dda,_0x37d9f2){const _0x1cf22f=_0x5db5d0;let _0x2323df=this[_0x1cf22f(0x27f)]['getBasicShapeRelation'](_0x923cc2,_0x3d6dda,_0x37d9f2);if(!_0x2323df||_0x2323df[_0x1cf22f(0x2fb)]===0x0)return;let _0x452084=this['_renderManagerService']['getRenderUnitById'](_0x923cc2);if(!_0x452084)return;let {scene:_0x476246}=_0x452084;for(let _0x3e4097 of _0x2323df){let _0x17e7f7=_0x3e4097[_0x1cf22f(0x42a)],_0x228b25=this[_0x1cf22f(0x27f)]['getShapeModel'](_0x923cc2,_0x3d6dda,_0x17e7f7);if(!_0x228b25)continue;let _0xb5a8b4=_0x228b25[_0x1cf22f(0x129)](),_0x74d93e=_0x228b25[_0x1cf22f(0x1db)](),_0x33c2b6=(_0xb5a8b4==null?void 0x0:_0xb5a8b4[_0x1cf22f(0x340)])===_0x37d9f2,_0x38026a=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7}),_0xff39c2=_0x476246[_0x1cf22f(0x1d5)](_0x38026a);if(!_0xff39c2)continue;let _0x1ea585=this[_0x1cf22f(0x3b1)][_0x1cf22f(0x15a)]({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7});_0x1ea585!=null&&_0x1ea585[_0x1cf22f(0x32a)]&&(_0xb5a8b4&&_0x74d93e?this[_0x1cf22f(0x31e)](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0xb5a8b4,_0x74d93e,_0xff39c2):this['_moveConnectorWithShape'](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0x33c2b6?_0xb5a8b4:_0x74d93e,_0x33c2b6,_0x1ea585,_0xff39c2));}}[_0x5db5d0(0x31e)](_0x435bf5,_0x1585a0,_0x367306,_0x880075,_0x11efd6,_0x5c3811,_0x4fdc51){const _0x22baf0=_0x5db5d0;let _0x47399b=this[_0x22baf0(0x3d2)],_0x14e342=this[_0x22baf0(0x23c)];this[_0x22baf0(0x3d2)]=_0x435bf5,this[_0x22baf0(0x23c)]=_0x1585a0;let _0x463539=this[_0x22baf0(0x1d9)](_0x11efd6),_0x11ad60=this[_0x22baf0(0x1d9)](_0x5c3811);if(this[_0x22baf0(0x3d2)]=_0x47399b,this[_0x22baf0(0x23c)]=_0x14e342,!_0x463539||!_0x11ad60)return;let _0x514176=_0x880075[_0x22baf0(0x2fa)](),_0x1d67f9=(0x0,n[_0x22baf0(0x2a0)])(_0x463539,_0x11ad60,_0x514176);_0x1d67f9&&_0x880075[_0x22baf0(0x1ec)](_0x1d67f9);let _0x4f8ed0=(0x0,n[_0x22baf0(0x24c)])(_0x1d67f9,_0x514176);_0x4f8ed0['lineType']!==_0x514176&&_0x880075[_0x22baf0(0x103)](_0x4f8ed0[_0x22baf0(0x1ac)]),_0x880075[_0x22baf0(0x1e5)]();for(let [_0x21c011,_0x4a0c16]of Object[_0x22baf0(0x2d0)](_0x4f8ed0[_0x22baf0(0x15c)]))_0x880075[_0x22baf0(0x19a)](_0x21c011,_0x4a0c16);_0x880075['updateContext']({'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)]}),_0x4fdc51['transformByState']({'flipX':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xfa)],'flipY':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xef)],'left':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x42e)],'top':_0x4f8ed0[_0x22baf0(0x1ca)]['top'],'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)],'angle':_0x4f8ed0['rotation']}),_0x880075[_0x22baf0(0x310)]();}['_moveConnectorWithShape'](_0x1e2e69,_0x4d9c4a,_0x45f284,_0x3cddbb,_0x5c7170,_0x5831dc,_0x51babe,_0x49ba5b){const _0xfcb160=_0x5db5d0;let _0x32c359=this[_0xfcb160(0x3d2)],_0xb79c8=this['_subUnitId'];this[_0xfcb160(0x3d2)]=_0x1e2e69,this[_0xfcb160(0x23c)]=_0x4d9c4a;let _0x2bdbbf=this[_0xfcb160(0x1d9)](_0x5c7170);if(this[_0xfcb160(0x3d2)]=_0x32c359,this[_0xfcb160(0x23c)]=_0xb79c8,!_0x2bdbbf)return;let {left:_0xcaa62=0x0,top:_0x21b508=0x0,width:_0x558a96=0x0,height:_0x5000d2=0x0,flipX:_0x22c736=!0x1,flipY:_0x5bb873=!0x1}=_0x51babe['transform'],_0x59f170=_0x3cddbb[_0xfcb160(0x403)]();if(_0x59f170[_0xfcb160(0x2fb)]<0x2)return;let _0x2ecd7b=new n[(_0xfcb160(0x317))]({'left':_0xcaa62,'top':_0x21b508,'width':_0x558a96,'height':_0x5000d2,'flipX':_0x22c736,'flipY':_0x5bb873}),_0x474178=_0x5831dc?_0x59f170[_0x59f170[_0xfcb160(0x2fb)]-0x1]:_0x59f170[0x0],_0x44b169=_0x2ecd7b[_0xfcb160(0xf5)](_0x474178),_0x353697=n[_0xfcb160(0x317)][_0xfcb160(0x3a3)](_0x44b169,_0x2bdbbf[_0xfcb160(0x16b)],!_0x5831dc);_0x49ba5b[_0xfcb160(0x1ab)]({'flipX':_0x353697['worldRect'][_0xfcb160(0xfa)],'flipY':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0xef)],'left':_0x353697['worldRect']['left'],'top':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x230)],'width':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x2ad)],'height':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x3c5)],'angle':_0x353697['worldRect'][_0xfcb160(0x3ed)]}),_0x49ba5b[_0xfcb160(0x1e9)](!0x0);}[_0x5db5d0(0x137)](){const _0x4c969a=_0x5db5d0;this['_connectorObjects'][_0x4c969a(0x2fb)]!==0x0&&(this['_connectorObjects'][_0x4c969a(0xe5)](_0x4acc4c=>{_0x4acc4c['dispose']();}),this[_0x4c969a(0x40e)]=[]);}['_registerDrawingMoveHandler'](){const _0x483b19=_0x5db5d0;let _0x256ea1=this[_0x483b19(0x12c)]['getCurrentTypeOfUnit$'](a[_0x483b19(0x400)][_0x483b19(0x319)]);this['disposeWithMe'](_0x256ea1[_0x483b19(0x402)]((0x0,u['switchMap'])(_0x2174e3=>_0x2174e3?_0x2174e3['activeSheet$'][_0x483b19(0x402)]((0x0,u['switchMap'])(_0x1a3147=>{const _0x97ec42=_0x483b19;if(!_0x1a3147)return u[_0x97ec42(0x395)];let _0x37a112=_0x2174e3[_0x97ec42(0x2d1)](),_0x3c670d=this[_0x97ec42(0x104)]['getRenderUnitById'](_0x37a112),_0x15696b=_0x3c670d==null?void 0x0:_0x3c670d[_0x97ec42(0x2e7)];return _0x15696b?(0x0,u['of'])(_0x15696b):u[_0x97ec42(0x395)];})):u[_0x483b19(0x395)]))[_0x483b19(0x426)](_0x34ae9a=>{const _0xd9799a=_0x483b19;let _0x21b0f1=_0x34ae9a[_0xd9799a(0x3cb)]();this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x1b5)][_0xd9799a(0x151)](_0xbf06ac=>{const _0x326b28=_0xd9799a;this[_0x326b28(0x14a)]&&this[_0x326b28(0x296)]&&this[_0x326b28(0x137)]();})),this['disposeWithMe'](_0x21b0f1[_0xd9799a(0x328)][_0xd9799a(0x426)](_0x2ad1a4=>{const _0x30158=_0xd9799a;let {objects:_0x148f12}=_0x2ad1a4;this['_clearShapeConnectorHandlerObjects'](),_0x148f12!==null&&_0x148f12[_0x30158(0x3e0)]===0x1&&_0x148f12[_0x30158(0x3ae)]()['next']()[_0x30158(0x30b)]instanceof O&&(this[_0x30158(0x14a)]=!0x0);})),this['disposeWithMe'](_0x21b0f1['changing$'][_0xd9799a(0x426)](_0x6f07e4=>{const _0xb9f064=_0xd9799a;this[_0xb9f064(0x14a)]&&this[_0xb9f064(0x137)]();})),this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x369)][_0xd9799a(0x151)](()=>{const _0x4ccd5c=_0xd9799a;this[_0x4ccd5c(0x14a)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xd9799a(0x17d)](_0x21b0f1[_0xd9799a(0x3f8)][_0xd9799a(0x426)](()=>{const _0x24733c=_0xd9799a;this[_0x24733c(0x3d2)]&&this[_0x24733c(0x23c)]&&this[_0x24733c(0x296)]&&this[_0x24733c(0x3b1)]['getDrawingByParam']({'unitId':this[_0x24733c(0x3d2)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x24733c(0x296)]})&&(this[_0x24733c(0x137)](),this[_0x24733c(0x385)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x48c7fb=_0x5db5d0;this[_0x48c7fb(0x17d)](this['_drawingManagerService']['focus$'][_0x48c7fb(0x426)](_0x444141=>{const _0x31ee48=_0x48c7fb;if(_0x444141[_0x31ee48(0x2fb)]===0x1){let _0x21a9dd=_0x444141[0x0];if(_0x21a9dd[_0x31ee48(0x3c1)]===a[_0x31ee48(0x3e6)]['DRAWING_SHAPE']){let _0x2630a1=this['_sheetsShapeService'][_0x31ee48(0x11e)](_0x21a9dd['unitId'],_0x21a9dd[_0x31ee48(0x20a)],_0x21a9dd[_0x31ee48(0x3e3)]);if(_0x2630a1&&(0x0,n[_0x31ee48(0x2b3)])(_0x2630a1[_0x31ee48(0x2fa)]())){this[_0x31ee48(0x296)]=_0x21a9dd[_0x31ee48(0x3e3)],this[_0x31ee48(0x3d2)]=_0x21a9dd[_0x31ee48(0x3bf)],this[_0x31ee48(0x23c)]=_0x21a9dd[_0x31ee48(0x20a)],this[_0x31ee48(0x137)](),this[_0x31ee48(0x385)]();return;}}}this[_0x31ee48(0x296)]=void 0x0,this[_0x31ee48(0x3d2)]=void 0x0,this[_0x31ee48(0x23c)]=void 0x0,this[_0x31ee48(0x137)]();})),this[_0x48c7fb(0x17d)](this[_0x48c7fb(0x3b1)][_0x48c7fb(0xe7)][_0x48c7fb(0x426)](_0x43fbf0=>{const _0x473918=_0x48c7fb;if(_0x43fbf0[_0x473918(0x2fb)]===0x1){var _0x5bdf9e;let _0x3c1406=_0x43fbf0[0x0],_0x49b227=(_0x5bdf9e=this['_drawingManagerService'][_0x473918(0x15a)](_0x3c1406))==null?void 0x0:_0x5bdf9e[_0x473918(0x3c1)];_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&_0x3c1406[_0x473918(0x3e3)]===this[_0x473918(0x296)]?(this[_0x473918(0x137)](),this[_0x473918(0x385)]()):!this[_0x473918(0x296)]&&_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&this[_0x473918(0x3d8)](_0x3c1406[_0x473918(0x3bf)],_0x3c1406['subUnitId'],_0x3c1406[_0x473918(0x3e3)]);}})),this['disposeWithMe'](this[_0x48c7fb(0x3b1)][_0x48c7fb(0x386)][_0x48c7fb(0x426)](_0x49b4f6=>{const _0x11db29=_0x48c7fb;for(let _0x4375b1 of _0x49b4f6){let {drawingId:_0x5f1195}=_0x4375b1;if(this[_0x11db29(0x296)]===_0x5f1195){this[_0x11db29(0x13f)]();return;}}}));}[_0x5db5d0(0x37b)](_0x346aef,_0x5761dd,_0x477660,_0x4cbbea,_0x2ca154){const _0x2aa3ff=_0x5db5d0;var _0x33d901;if(!this[_0x2aa3ff(0x258)])return;let _0x362e79=this['_getConnectPointInfo'](_0x346aef);if(!_0x362e79)return;let _0x903ace=this['_currentConnectionTarget']?this[_0x2aa3ff(0x325)][_0x2aa3ff(0x2cf)]:_0x5761dd,_0x1238f2=this[_0x2aa3ff(0x325)]?this['_currentConnectionTarget']['angle']:this[_0x2aa3ff(0x371)](_0x362e79[_0x2aa3ff(0x16b)],_0x903ace),_0x460c18;if(this['_currentConnectionTarget']){let _0x59f4e6=this[_0x2aa3ff(0x3b1)][_0x2aa3ff(0x15a)]({'unitId':this[_0x2aa3ff(0x325)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x2aa3ff(0x20a)],'drawingId':this[_0x2aa3ff(0x325)][_0x2aa3ff(0x340)]});if(_0x59f4e6!=null&&_0x59f4e6[_0x2aa3ff(0x32a)]){let {left:_0x38d2b7=0x0,top:_0x3d5512=0x0,width:_0xe80c20=0x0,height:_0x6790f7=0x0,angle:_0x47b290}=_0x59f4e6[_0x2aa3ff(0x32a)];_0x460c18=(0x0,n[_0x2aa3ff(0x239)])({'left':_0x38d2b7,'top':_0x3d5512,'width':_0xe80c20,'height':_0x6790f7},_0x47b290||0x0);}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};let _0x31b5c6={'point':_0x903ace,'angle':_0x1238f2,'bounds':_0x460c18},_0x5d8176=_0x477660?_0x31b5c6:_0x362e79,_0x2305a3=_0x477660?_0x362e79:_0x31b5c6,_0x351337=this[_0x2aa3ff(0x258)]['getShapeType'](),_0xed955b=(0x0,n['routeConnectorLineShape'])(_0x5d8176,_0x2305a3,_0x351337);_0xed955b&&this[_0x2aa3ff(0x258)]['updateLinePoints'](_0xed955b);let _0x4bf561=(0x0,n[_0x2aa3ff(0x24c)])(_0xed955b,_0x351337);_0x4bf561['lineType']!==_0x351337&&this[_0x2aa3ff(0x258)][_0x2aa3ff(0x103)](_0x4bf561['lineType']);for(let [_0xc4cacc,_0x50c8e9]of Object[_0x2aa3ff(0x2d0)](_0x4bf561[_0x2aa3ff(0x15c)]))this[_0x2aa3ff(0x258)][_0x2aa3ff(0x19a)](_0xc4cacc,_0x50c8e9);this['_activeShapeModel']['updateContext']({'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)]['height']}),_0x4cbbea[_0x2aa3ff(0x1ab)]({'flipX':_0x4bf561[_0x2aa3ff(0x1ca)]['flipX'],'flipY':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0xef)],'left':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x42e)],'top':_0x4bf561[_0x2aa3ff(0x1ca)]['top'],'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x3c5)],'angle':_0x4bf561[_0x2aa3ff(0x1e8)]}),_0x4cbbea['makeDirty'](!0x0);let _0xbdf79f=((_0x33d901=this['_currentConnectionTarget'])==null?void 0x0:_0x33d901['worldPoint'])??_0x5761dd;_0x2ca154['transformByState']({'left':_0xbdf79f['x']-n[_0x2aa3ff(0x2b4)][_0x2aa3ff(0xf1)],'top':_0xbdf79f['y']-n[_0x2aa3ff(0x2b4)]['cxnPointRadius']});}[_0x5db5d0(0x200)](_0x552152,_0x4815a4,_0x2c8de4,_0x28aa8e,_0x3390e0){const _0x556bd7=_0x5db5d0;var _0x592957,_0xd2b56c;let _0x1ec3df=((_0x592957=this[_0x556bd7(0x325)])==null?void 0x0:_0x592957['worldPoint'])??_0x552152,_0x308f69=n[_0x556bd7(0x317)][_0x556bd7(0x3a3)](_0x4815a4,_0x1ec3df,_0x2c8de4);_0x28aa8e[_0x556bd7(0x1ab)]({'flipX':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0xfa)],'flipY':_0x308f69['worldRect']['flipY'],'left':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x42e)],'top':_0x308f69[_0x556bd7(0x1ca)]['top'],'width':_0x308f69['worldRect'][_0x556bd7(0x2ad)],'height':_0x308f69['worldRect']['height'],'angle':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x3ed)]});let _0x62141b=((_0xd2b56c=this[_0x556bd7(0x325)])==null?void 0x0:_0xd2b56c['worldPoint'])??_0x552152;_0x3390e0['transformByState']({'left':_0x62141b['x']-n[_0x556bd7(0x2b4)]['cxnPointRadius'],'top':_0x62141b['y']-n['ShapeDefaultConfig'][_0x556bd7(0xf1)]});}[_0x5db5d0(0x1d9)](_0x29f097){const _0xa66680=_0x5db5d0;if(!this[_0xa66680(0x3d2)]||!this[_0xa66680(0x23c)])return null;let {shapeId:_0x4ff6a6,cxnIndex:_0x3578c9}=_0x29f097,_0x589ca6=this[_0xa66680(0x27f)][_0xa66680(0x11e)](this[_0xa66680(0x3d2)],this[_0xa66680(0x23c)],_0x4ff6a6);if(!_0x589ca6)return null;let _0x4cce28=this['_drawingManagerService'][_0xa66680(0x15a)]({'unitId':this[_0xa66680(0x3d2)],'subUnitId':this[_0xa66680(0x23c)],'drawingId':_0x4ff6a6});if(!(_0x4cce28!=null&&_0x4cce28[_0xa66680(0x32a)]))return null;let {left:_0x1c2e89=0x0,top:_0x48bd43=0x0,width:_0x21d1ec=0x0,height:_0xb9519d=0x0,flipX:_0x30c47d=!0x1,flipY:_0x4a1e69=!0x1,angle:_0x55ea61}=_0x4cce28[_0xa66680(0x32a)];_0x589ca6[_0xa66680(0x141)]({'width':_0x21d1ec,'height':_0xb9519d});let _0x2cc4ce=_0x589ca6[_0xa66680(0x186)]()[_0xa66680(0x249)](_0x19c6db=>_0x19c6db[_0xa66680(0x3b0)]===_0x3578c9);if(!_0x2cc4ce)return null;let _0x5e8193=_0x30c47d?_0x21d1ec-_0x2cc4ce['x']:_0x2cc4ce['x'],_0x367114=_0x4a1e69?_0xb9519d-_0x2cc4ce['y']:_0x2cc4ce['y'];if(_0x55ea61!==0x0&&_0x55ea61!=null){let _0x216fba=_0x55ea61*Math['PI']/0xb4,_0x4a48e5=Math['cos'](_0x216fba),_0x598ed5=Math['sin'](_0x216fba),_0x1804ad=_0x21d1ec/0x2,_0xca3c95=_0xb9519d/0x2,_0x332cb7=_0x5e8193-_0x1804ad,_0x11cabd=_0x367114-_0xca3c95;_0x5e8193=_0x1804ad+_0x332cb7*_0x4a48e5-_0x11cabd*_0x598ed5,_0x367114=_0xca3c95+_0x332cb7*_0x598ed5+_0x11cabd*_0x4a48e5;}_0x5e8193+=_0x1c2e89,_0x367114+=_0x48bd43;let _0x4bee40=_0x2cc4ce[_0xa66680(0x3c7)]/0xea60;_0x30c47d&&(_0x4bee40=0xb4-_0x4bee40),_0x4a1e69&&(_0x4bee40=-_0x4bee40),_0x4bee40+=_0x55ea61||0x0,_0x4bee40=(_0x4bee40%0x168+0x168)%0x168;let _0x1b65f3=(0x0,n[_0xa66680(0x239)])({'left':_0x1c2e89,'top':_0x48bd43,'width':_0x21d1ec,'height':_0xb9519d},_0x55ea61||0x0);return{'point':{'x':_0x5e8193,'y':_0x367114},'angle':_0x4bee40,'bounds':_0x1b65f3};}[_0x5db5d0(0x371)](_0x37de8d,_0x1c23bf){const _0x4bc3a2=_0x5db5d0;let _0x148874=_0x1c23bf['x']-_0x37de8d['x'],_0x111663=_0x1c23bf['y']-_0x37de8d['y'];return Math[_0x4bc3a2(0x234)](_0x148874)>=Math[_0x4bc3a2(0x234)](_0x111663)?_0x148874>=0x0?0xb4:0x0:_0x111663>=0x0?0x10e:0x5a;}[_0x5db5d0(0x13f)](){const _0x185082=_0x5db5d0;this['_activeShapeId']=void 0x0,this[_0x185082(0x3d2)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x185082(0x137)]();}[_0x5db5d0(0x1c4)](){const _0x8385d4=_0x5db5d0;this[_0x8385d4(0x137)](),super['dispose']();}};bt=j([A(0x1,a[_0x5db5d0(0x2b9)]),A(0x2,c[_0x5db5d0(0x226)]),A(0x3,s['IDrawingManagerService']),A(0x4,a[_0x5db5d0(0x1c8)]),A(0x5,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x6,(0x0,a['Inject'])(N)),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(q))],bt);let Y=class extends a['Disposable']{constructor(_0xa8c5d,_0xd2b554,_0x484b7a){const _0x1ff54c=_0x5db5d0;super(),this[_0x1ff54c(0xfd)]=_0xa8c5d,this[_0x1ff54c(0x3b1)]=_0xd2b554,this[_0x1ff54c(0x16d)]=_0x484b7a,this['_initPrinting']();}[_0x5db5d0(0x273)](){const _0x4aeb66=_0x5db5d0;this[_0x4aeb66(0x17d)](this['_sheetPrintInterceptorService'][_0x4aeb66(0x1e4)]['intercept'](this[_0x4aeb66(0xfd)][_0x4aeb66(0x1e4)][_0x4aeb66(0x2a9)]()[_0x4aeb66(0x1fd)],{'handler':(_0x10c37e,_0x2a04cd,_0xafc51a)=>{const _0x3cc7aa=_0x4aeb66;var _0x337fe4;let {unitId:_0x2d2972,subUnitId:_0x2e4c5d,scene:_0xe799c8,resourceCollector:_0x158038}=_0x2a04cd,_0x5de664=(_0x337fe4=this['_drawingManagerService'][_0x3cc7aa(0x2d3)](_0x2d2972))==null?void 0x0:_0x337fe4[_0x2e4c5d];return _0x5de664==null||_0x5de664[_0x3cc7aa(0x2ee)][_0x3cc7aa(0xe5)](_0x4b07d3=>{const _0x2f68b3=_0x3cc7aa;let _0x37d0d0=_0x5de664['data'][_0x4b07d3];_0x37d0d0[_0x2f68b3(0x3c1)]===a[_0x2f68b3(0x3e6)][_0x2f68b3(0x19d)]&&!_0x37d0d0[_0x2f68b3(0x3b9)]&&this[_0x2f68b3(0x16d)][_0x2f68b3(0x308)](_0x37d0d0,_0xe799c8,{'resourceCollector':_0x158038});}),_0xafc51a(_0x10c37e);}}));}};Y=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(l['SheetPrintInterceptorService'])),A(0x1,s[_0x5db5d0(0x10d)]),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(M))],Y);let X=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2e6842,_0x291348,_0x42b988){const _0x5ea235=_0x5db5d0;super(),this[_0x5ea235(0x1ad)]=_0x2e6842,this[_0x5ea235(0x272)]=_0x291348,this[_0x5ea235(0x2f4)]=_0x42b988,this[_0x5ea235(0x25f)]();}[_0x5db5d0(0x25f)](){const _0x24005a=_0x5db5d0;this[_0x24005a(0x17d)](this[_0x24005a(0x1ad)][_0x24005a(0x368)](_0x443ce0=>{const _0x4001cf=_0x24005a;let _0x58d5d3,_0xae2f3d;if(_0x443ce0['id']===i[_0x4001cf(0x2bd)]['id']||_0x443ce0['id']===i['SetShapeDrawingDataCommand']['id']||_0x443ce0['id']===i[_0x4001cf(0x29b)]['id']){let _0x90e6d0=_0x443ce0[_0x4001cf(0x1a0)];_0x58d5d3=_0x90e6d0[_0x4001cf(0x3bf)],_0xae2f3d=_0x90e6d0[_0x4001cf(0x20a)];}!_0x58d5d3||!_0xae2f3d||this['_sheetPermissionCheckController'][_0x4001cf(0x20d)]({'workbookTypes':[o['WorkbookEditablePermission']],'worksheetTypes':[o['WorksheetEditPermission']]},_0x58d5d3,_0xae2f3d)||this[_0x4001cf(0x2f4)][_0x4001cf(0x26a)](this[_0x4001cf(0x272)]['t'](_0x4001cf(0x1c5)));}));}};X=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x2b9)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x2,(0x0,a['Inject'])(o[_0x5db5d0(0x247)]))],X);let Z=class{constructor(_0x1799d0){const _0x37f03b=_0x5db5d0;this[_0x37f03b(0x104)]=_0x1799d0;}[_0x5db5d0(0x34c)](_0x4421c1,_0x2ca133){const _0x9adbf2=_0x5db5d0;let _0xb2e800=this[_0x9adbf2(0x104)][_0x9adbf2(0x2c4)](_0x4421c1['unitId']),_0x4d4187=_0xb2e800==null?void 0x0:_0xb2e800[_0x9adbf2(0x2e7)];if(!_0x4d4187)return;let _0x2ade55=(0x0,s[_0x9adbf2(0x1f8)])(_0x4421c1),_0x175fc8=_0x4d4187[_0x9adbf2(0x1d5)](_0x2ade55);_0x175fc8==null||_0x175fc8['setFillImage'](_0x2ca133);}};Z=j([A(0x0,c['IRenderManagerService'])],Z);let Q=class extends a['Plugin']{constructor(_0x1028ee=ct,_0x5eb5f9,_0x3295f9,_0x57c185,_0x3e00e9,_0x1df249){const _0x3d1574=_0x5db5d0;super(),this[_0x3d1574(0x3d7)]=_0x1028ee,this[_0x3d1574(0x418)]=_0x5eb5f9,this['_commandService']=_0x3295f9,this[_0x3d1574(0x3d1)]=_0x57c185,this[_0x3d1574(0x104)]=_0x3e00e9,this['_uiPartsService']=_0x1df249;let {..._0x4d9814}=(0x0,a[_0x3d1574(0x1d4)])({},ct,this[_0x3d1574(0x3d7)]);this[_0x3d1574(0x3d1)][_0x3d1574(0x2ba)](st,_0x4d9814),this['_initCommands']();}[_0x5db5d0(0xff)](){const _0x209493=_0x5db5d0;this[_0x209493(0x418)][_0x209493(0x381)]([ut]),this[_0x209493(0x418)][_0x209493(0x3b6)](ut),(0x0,a['registerDependencies'])(this[_0x209493(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x2f6)](){const _0x5c1504=_0x5db5d0;(0x0,a[_0x5c1504(0x37e)])(this[_0x5c1504(0x418)],[[q],[N],[J]]),(0x0,a['touchDependencies'])(this['_injector'],[[J],[N]]),[[q],[lt],[bt],[ft]]['forEach'](_0x2907a8=>{const _0x23f5ac=_0x5c1504;this['disposeWithMe'](this[_0x23f5ac(0x104)]['registerRenderModule'](a[_0x23f5ac(0x400)][_0x23f5ac(0x319)],_0x2907a8));}),this[_0x5c1504(0x17d)](this[_0x5c1504(0x14c)][_0x5c1504(0x290)](t[_0x5c1504(0x2ae)]['FOOTER'],()=>(0x0,t[_0x5c1504(0x3d0)])(e[_0x5c1504(0x1c9)],this[_0x5c1504(0x418)])));}[_0x5db5d0(0x283)](){const _0x478069=_0x5db5d0;(0x0,a['touchDependencies'])(this[_0x478069(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x1d6)](){const _0x23bca7=_0x5db5d0;this[_0x23bca7(0x418)]['get'](ht)[_0x23bca7(0x41a)]();}[_0x5db5d0(0x18b)](){const _0xe6b026=_0x5db5d0;[F,S,P,ot][_0xe6b026(0xe5)](_0x1be916=>this[_0xe6b026(0x17d)](this['_commandService']['registerCommand'](_0x1be916)));}};E(Q,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E(Q,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E(Q,_0x5db5d0(0x286),it),E(Q,_0x5db5d0(0x427),at),Q=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g['UniverDocsPlugin'],s['UniverDrawingPlugin'],c['UniverRenderEnginePlugin'],o[_0x5db5d0(0x1ea)],_[_0x5db5d0(0x142)],m[_0x5db5d0(0x255)],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x41e)],i[_0x5db5d0(0x1cc)],l['UniverSheetsMobileUIPlugin'],e['UniverShapeEditorMobileUIPlugin'],t[_0x5db5d0(0x166)]),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a['Injector'])),A(0x2,a[_0x5db5d0(0x2b9)]),A(0x3,a[_0x5db5d0(0x31f)]),A(0x4,c[_0x5db5d0(0x226)]),A(0x5,t[_0x5db5d0(0x225)])],Q);function xt(_0x12273f){const _0x229e2f=_0x5db5d0;return _0x12273f[_0x229e2f(0x106)]()||void 0x0;}function St(_0x3f35c0,_0x4f8f18,_0x412c3e){const _0x5234c0=_0x5db5d0;var _0x4b7841;return((_0x4b7841=_0x3f35c0[_0x5234c0(0x3fa)])==null?void 0x0:_0x4b7841[_0x5234c0(0x106)]())||(0x0,d['getObjectListPanelTypeName'])(_0x412c3e,(0x0,e[_0x5234c0(0x3a0)])(_0x3f35c0[_0x5234c0(0x3c1)]))+'\x20'+(_0x4f8f18+0x1);}function Ct(){const _0x4cf398=_0x5db5d0;var _0x3eb2bf;let _0x239272=(0x0,t[_0x4cf398(0x432)])(a['LocaleService']),_0x4812c9=(0x0,t[_0x4cf398(0x432)])(a[_0x4cf398(0x2b9)]),_0x32b671=(0x0,t[_0x4cf398(0x432)])(a['IUniverInstanceService']),_0x1ddc19=(0x0,t['useDependency'])(m[_0x4cf398(0x201)]),_0x5e5dce=(0x0,t[_0x4cf398(0x432)])(s['IDrawingManagerService']),_0x14fa69=(0x0,t['useDependency'])(c[_0x4cf398(0x226)]),[,_0x18d9f6]=(0x0,b[_0x4cf398(0x42c)])(_0x244ce3=>_0x244ce3+0x1,0x0),_0xa8ac51=_0x32b671['getCurrentUnitOfType'](a[_0x4cf398(0x400)][_0x4cf398(0x319)]),_0x3f956b=(_0xa8ac51==null?void 0x0:_0xa8ac51[_0x4cf398(0x2d1)]())??'',_0x3f108e=(_0xa8ac51==null||(_0x3eb2bf=_0xa8ac51[_0x4cf398(0x136)]())==null?void 0x0:_0x3eb2bf['getSheetId']())??'',_0x4a2b24=(0x0,t['useObservable'])(()=>_0x5e5dce[_0x4cf398(0x344)],_0x5e5dce['getFocusDrawings'](),!0x1,[_0x5e5dce]);(0x0,b[_0x4cf398(0x40d)])(()=>{const _0x218eba=_0x4cf398;let _0x4524ae=_0x4812c9['onCommandExecuted'](()=>_0x18d9f6());return()=>_0x4524ae[_0x218eba(0x1c4)]();},[_0x4812c9]);let _0x5143f2=(0x0,b[_0x4cf398(0x382)])(()=>(0x0,d[_0x4cf398(0x14e)])(_0x239272),[_0x239272]),_0x3bfb44=_0x3f956b&&_0x3f108e?_0x1ddc19['getDrawingData'](_0x3f956b,_0x3f108e):{},_0x539897=(_0x3f956b&&_0x3f108e?_0x1ddc19[_0x4cf398(0x31d)](_0x3f956b,_0x3f108e):[])[_0x4cf398(0x410)](_0x20f534=>_0x3bfb44[_0x20f534])['filter'](_0x437838=>!!_0x437838)['reverse'](),_0x2d1039=_0x539897['reduce']((_0x453abb,_0x5745eb)=>(_0x453abb[(0x0,d[_0x4cf398(0x32d)])(_0x5745eb['drawingType'])]+=0x1,_0x453abb),{'canvas':0x0,'floating':0x0}),_0x252df0={'canvas':0x0,'floating':0x0},_0x309749=_0x539897[_0x4cf398(0x410)]((_0x38a796,_0x56cb9d)=>{const _0x222437=_0x4cf398;let _0x1b2b5b=(0x0,d[_0x222437(0x32d)])(_0x38a796[_0x222437(0x3c1)]),_0x116a84=_0x1b2b5b===d[_0x222437(0x2f7)],_0x66deab=_0x252df0[_0x1b2b5b]++;return{'id':_0x38a796[_0x222437(0x3e3)],'name':St(_0x38a796,_0x56cb9d,_0x239272),'description':_0x38a796[_0x222437(0x35c)],'visible':_0x38a796[_0x222437(0x3b9)]!==!0x0,'selectable':_0x38a796[_0x222437(0x116)]!==!0x1,'sectionId':_0x1b2b5b,'sectionTitle':_0x116a84?_0x5143f2[_0x222437(0x1ed)]:_0x5143f2[_0x222437(0x262)],'capabilities':_0x116a84?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x116a84&&_0x66deab>0x0,'canMoveBackward':!_0x116a84&&_0x66deab<_0x2d1039[_0x222437(0x2c1)]-0x1,'canReorder':!_0x116a84};}),_0x297d8d=(0x0,b[_0x4cf398(0x382)])(()=>(_0x4a2b24??[])[_0x4cf398(0x38e)](_0x3c1782=>_0x3c1782[_0x4cf398(0x3bf)]===_0x3f956b&&_0x3c1782['subUnitId']===_0x3f108e)[_0x4cf398(0x410)](_0x231e14=>_0x231e14[_0x4cf398(0x3e3)]),[_0x4a2b24,_0x3f108e,_0x3f956b]),_0x4e8fd2=_0x297d8d[_0x297d8d[_0x4cf398(0x2fb)]-0x1]??null,_0x455eed=_0x3b19e0=>_0x1ddc19['getDrawingByParam']({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3b19e0})??null,_0x82e3b3=async _0x30cd36=>{const _0x282097=_0x4cf398;!_0x3f956b||!_0x30cd36[_0x282097(0x2fb)]||await _0x4812c9['executeCommand'](m[_0x282097(0x421)]['id'],{'unitId':_0x3f956b,'drawings':_0x30cd36});},_0x369a96=async(_0x49237e,_0x22ee22)=>{_0x455eed(_0x49237e)&&await _0x82e3b3([{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x49237e,..._0x22ee22}]);},_0x5e5c9a=(_0x7b96d7,_0x249541)=>{const _0x1da828=_0x4cf398;if(!_0x3f956b||!_0x3f108e)return;let _0x47bf28=_0x249541?_0x297d8d[_0x1da828(0x175)](_0x7b96d7)?_0x297d8d['filter'](_0x273edc=>_0x273edc!==_0x7b96d7):[..._0x297d8d,_0x7b96d7]:[_0x7b96d7];_0x4812c9[_0x1da828(0x3b8)](s[_0x1da828(0x3dd)]['id'],_0x47bf28['map'](_0x501a8f=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x501a8f})));let _0x1b3a75=_0x47bf28[_0x47bf28[_0x1da828(0x2fb)]-0x1];_0x1b3a75?(0x0,e[_0x1da828(0x32e)])(_0x14fa69,{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x1b3a75}):(0x0,e['clearActiveDrawingObjects'])(_0x14fa69,_0x3f956b);},_0x160d5c=async(_0x203e8b,_0x5973ef)=>{const _0x4d314a=_0x4cf398;await _0x82e3b3(_0x203e8b[_0x4d314a(0x410)](_0x3dc742=>_0x455eed(_0x3dc742))[_0x4d314a(0x38e)](_0x35e088=>!!_0x35e088)[_0x4d314a(0x38e)](_0x1bacc9=>_0x1bacc9['hidden']!==!0x0!==_0x5973ef)[_0x4d314a(0x410)](_0x3d6bad=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3d6bad[_0x4d314a(0x3e3)],'hidden':!_0x5973ef})));},_0xdb59f5=async(_0x40f914,_0x2f916c)=>{const _0x453980=_0x4cf398;await _0x82e3b3(_0x40f914['map'](_0x3ebee5=>_0x455eed(_0x3ebee5))[_0x453980(0x38e)](_0x39fc34=>!!_0x39fc34)['filter'](_0x454964=>_0x454964[_0x453980(0x116)]!==!0x1!==_0x2f916c)['map'](_0x5772ff=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x5772ff['drawingId'],'selectable':_0x2f916c})));},_0x254547=_0x2b6898=>{const _0x549eec=_0x4cf398;let _0x876f09=_0x455eed(_0x2b6898);if(_0x876f09)return _0xdb59f5([_0x2b6898],_0x876f09[_0x549eec(0x116)]===!0x1);},_0x4602c7=async(_0x9fd6df,_0x1c5100)=>{const _0x5af92f=_0x4cf398;var _0xdf1ac7;let _0x2ae9cf=xt(_0x1c5100);(((_0xdf1ac7=_0x455eed(_0x9fd6df))==null?void 0x0:_0xdf1ac7[_0x5af92f(0x3fa)])??void 0x0)!==_0x2ae9cf&&await _0x369a96(_0x9fd6df,{'name':_0x2ae9cf});},_0xea3835=async(_0x2b584c,_0x496296)=>{const _0x4997cc=_0x4cf398;var _0x5771be;let _0x463c0e=xt(_0x496296);(((_0x5771be=_0x455eed(_0x2b584c))==null?void 0x0:_0x5771be[_0x4997cc(0x35c)])??void 0x0)!==_0x463c0e&&await _0x369a96(_0x2b584c,{'description':_0x463c0e});},_0x30c4f6=async(_0x44892a,_0xfe7982)=>{const _0x281761=_0x4cf398;!_0x3f956b||!_0x3f108e||await _0x4812c9[_0x281761(0x3e5)](m[_0x281761(0x326)]['id'],{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingIds':[_0x44892a],'arrangeType':_0xfe7982});};return!_0x3f956b||!_0x3f108e?(0x0,p[_0x4cf398(0x37a)])(_0x4cf398(0x394),{'className':_0x4cf398(0x32c),'children':_0x5143f2[_0x4cf398(0x268)]}):(0x0,p['jsx'])(d[_0x4cf398(0x294)],{'items':_0x309749,'selectedIds':_0x297d8d,'focusedId':_0x4e8fd2,'labels':_0x5143f2,'showHeader':!0x1,'onSelect':_0x5e5c9a,'onSetVisible':_0x160d5c,'onSetSelectable':_0xdb59f5,'onCommitName':_0x4602c7,'onCommitDescription':_0xea3835,'onMoveForward':async _0x7ae4d5=>_0x30c4f6(_0x7ae4d5,a[_0x4cf398(0x150)][_0x4cf398(0x306)]),'onMoveBackward':async _0x1001de=>_0x30c4f6(_0x1001de,a[_0x4cf398(0x150)]['backward']),'onToggleSelectable':_0x254547});}function wt(){const _0x38229e=_0x5db5d0;let _0x17c9d8=(0x0,t['useDependency'])(s[_0x38229e(0x10d)]),_0x3a506d=(0x0,t[_0x38229e(0x148)])(()=>_0x17c9d8[_0x38229e(0x344)],_0x17c9d8[_0x38229e(0x3fc)](),!0x1,[_0x17c9d8]);return _0x3a506d[_0x38229e(0x2fb)]===0x0?null:(0x0,p['jsx'])(_0x38229e(0x394),{'children':(0x0,p[_0x38229e(0x39d)])(_0x38229e(0x394),{'className':_0x38229e(0x20f),'children':[(0x0,p['jsx'])(d[_0x38229e(0x1a7)],{'drawings':_0x3a506d,'hasCropper':!0x1}),(0x0,p[_0x38229e(0x37a)])(v[_0x38229e(0x13e)],{'drawings':_0x3a506d})]})});}function Tt(_0x481269){const _0x2f05ac=_0x5db5d0;let {unitId:_0xbe9989,subUnitId:_0x1c1d7d,shapeId:_0x269846}=_0x481269,_0x35bbe8=(0x0,t[_0x2f05ac(0x432)])(a['ICommandService']),_0x3d36de=(0x0,t['useDependency'])(Z);return(0x0,p[_0x2f05ac(0x37a)])(e[_0x2f05ac(0x2a2)],{..._0x481269,'positionEditor':(0x0,p[_0x2f05ac(0x37a)])(wt,{}),'onUpdateShapeData':(_0x3fc726,_0x15523e)=>{C(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0x3fc726,_0x15523e);},'onUpdateLineShapeData':(_0xa813de,_0x399bf9)=>{ee(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0xa813de,_0x399bf9);},'onUpdateShapeFillImage':_0x41c126=>{_0x3d36de['updateShapeFillImage']({'unitId':_0xbe9989,'subUnitId':_0x1c1d7d,'drawingId':_0x269846},_0x41c126);}});}function Et(_0x10e0fd){const _0x2a7064=_0x5db5d0;let _0x5d85c4=(0x0,t[_0x2a7064(0x432)])(e[_0x2a7064(0x38a)]),_0x283429=(0x0,t['useObservable'])(()=>_0x5d85c4[_0x2a7064(0x248)],_0x5d85c4[_0x2a7064(0x1bc)](),!0x1,[_0x5d85c4]),_0xe7d298=_0x10e0fd[_0x2a7064(0x2c7)]['extraProps'];return!_0xe7d298||!_0x283429?null:(0x0,p['jsx'])(Dt,{..._0xe7d298,'canvasElement':_0x10e0fd[_0x2a7064(0x2c7)][_0x2a7064(0x41c)]});}function Dt(_0x3e7a61){const _0x26b297=_0x5db5d0;let _0x3cbd74=(0x0,t[_0x26b297(0x432)])(a[_0x26b297(0x2b9)]),_0x1660c5=(0x0,t[_0x26b297(0x432)])(i[_0x26b297(0x1e0)]),{unitId:_0x1307b8,subUnitId:_0x5591a1,drawingId:_0x4872be,drawingType:_0x4ad896,shapeType:_0x3c5d9b}=_0x3e7a61,[_0x52c097,_0xfe55d1]=(0x0,b[_0x26b297(0x397)])(_0x3e7a61[_0x26b297(0x398)]),_0x40180b=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x434)])(_0x52c097),[_0x52c097]),_0x5977f5=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x329)])(_0x52c097),[_0x52c097]);(0x0,b[_0x26b297(0x40d)])(()=>{const _0x3f26f0=_0x26b297;let _0x366790=_0x3cbd74[_0x3f26f0(0x1aa)](_0x285c36=>{const _0x59e04d=_0x3f26f0;if(_0x285c36['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let _0x5b8de6=_0x1660c5[_0x59e04d(0x287)](_0x1307b8,_0x5591a1,_0x4872be);_0x5b8de6&&_0xfe55d1(_0x5b8de6);});return()=>_0x366790[_0x3f26f0(0x1c4)]();},[_0x3cbd74,_0x4872be,_0x1660c5,_0x5591a1,_0x1307b8]);let _0x3b40a1=_0x5ba2d3=>{_0xfe55d1(_0x44c5cd=>({..._0x44c5cd,..._0x5ba2d3}));},_0x38afe2=_0x47d916=>{const _0xfacbb0=_0x26b297;let _0x269d78=(0x0,e[_0xfacbb0(0x374)])(_0x52c097,_0x47d916);C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'shapeText':_0x52c097[_0xfacbb0(0x3de)]}},_0x269d78),_0x3b40a1(_0x269d78);},_0x421141=(0x0,e[_0x26b297(0x24a)])({'hostType':a[_0x26b297(0x400)]['UNIVER_SHEET'],'unitId':_0x1307b8,'subUnitId':_0x5591a1,'shapeId':_0x4872be,'shapeData':_0x52c097,'onUpdateBinding':_0x2a8bf1=>{const _0x2a9e1e=_0x26b297;let _0x23d3c6={'formulaBinding':_0x2a8bf1};C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'formulaBinding':_0x52c097[_0x2a9e1e(0x238)]}},_0x23d3c6),_0x3b40a1(_0x23d3c6);}});return(0x0,p[_0x26b297(0x39d)])(p[_0x26b297(0x1e3)],{'children':[(0x0,p[_0x26b297(0x37a)])(e[_0x26b297(0x158)],{'canvasElement':_0x3e7a61[_0x26b297(0x41c)],'shapeData':_0x52c097,'shapeType':_0x3c5d9b,'textStyle':{'ff':n[_0x26b297(0x2b4)][_0x26b297(0x3de)][_0x26b297(0x3a2)],'fs':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x22e)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x18f)]},..._0x40180b},'textModel':_0x5977f5?{'ha':_0x5977f5['ha']??a[_0x26b297(0x20b)][_0x26b297(0x27b)],'va':_0x5977f5['va']??a[_0x26b297(0x3c2)][_0x26b297(0x2e0)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x26b297(0x2b4)]['fill'],'defaultGradientEndColor':n[_0x26b297(0x2b4)]['gradientEndColor'],'defaultStrokeColor':n[_0x26b297(0x2b4)][_0x26b297(0x2b0)],'extensionGroups':_0x421141[_0x26b297(0x250)],'floatingObjectToolbarPosition':t[_0x26b297(0x207)]['SHEET'],'onUpdateShapeData':(_0x209397,_0x199fd5)=>{C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,_0x209397,_0x199fd5),_0x199fd5&&_0x3b40a1(_0x199fd5);},'onUpdateText':_0x38afe2,'onOpenPanel':()=>{const _0x7895f=_0x26b297;_0x3cbd74[_0x7895f(0x3e5)](B['id'],{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be});},'onDelete':()=>{const _0xc3e302=_0x26b297;_0x3cbd74['executeCommand'](m[_0xc3e302(0x346)]['id'],{'unitId':_0x1307b8,'drawings':[{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be,'drawingType':_0x4ad896}]});}}),_0x421141[_0x26b297(0x160)]]});}function Ot(_0x14ad00){const _0x11915f=_0x5db5d0;return!!_0x14ad00&&'axisAlignSheetTransform'in _0x14ad00&&_0x11915f(0x194)in _0x14ad00;}const kt=(0x0,b[_0x5db5d0(0x257)])(()=>{const _0x6f0f21=_0x5db5d0;let _0x4c433a=(0x0,t['useDependency'])(U),_0x403692=(0x0,t[_0x6f0f21(0x432)])(i['SheetsShapeService']),_0x1fd6b1=(0x0,t['useDependency'])(s[_0x6f0f21(0x10d)]),_0x3ccc3e=(0x0,t[_0x6f0f21(0x432)])(a[_0x6f0f21(0x2b9)]),_0x18a881=(0x0,t[_0x6f0f21(0x432)])(t['UndoRedoGroupService']),_0x3edfe0=(0x0,t['useDependency'])(c[_0x6f0f21(0x226)]);return(0x0,p['jsx'])(e[_0x6f0f21(0x120)],{'adapter':(0x0,b[_0x6f0f21(0x382)])(()=>({'getShapeModel':(_0x2a0907,_0x355b71,_0x2fd3f1)=>_0x403692[_0x6f0f21(0x11e)](_0x2a0907,_0x355b71,_0x2fd3f1),'getShapeData':(_0x318545,_0x164a45,_0x4ab0dc)=>_0x403692[_0x6f0f21(0x287)](_0x318545,_0x164a45,_0x4ab0dc),'getDrawingTransform':(_0x1de989,_0x9ca176,_0xf3dd3e)=>{const _0x241ad9=_0x6f0f21;let _0x384939=_0x1fd6b1[_0x241ad9(0x15a)]({'unitId':_0x1de989,'subUnitId':_0x9ca176,'drawingId':_0xf3dd3e});return _0x384939==null?void 0x0:_0x384939[_0x241ad9(0x32a)];},'updateShapeText':({unitId:_0x25c071,subUnitId:_0x5743a6,shapeId:_0x109267,shapeText:_0x3f5cb1,oldShapeText:_0x470132,hostSize:_0x1e7767})=>{const _0x463ef1=_0x6f0f21;_0x18a881[_0x463ef1(0x271)](_0x25c071,()=>{const _0x573203=_0x463ef1;var _0x225d82;let _0x1c96c8=_0x3ccc3e[_0x573203(0x3b8)](S['id'],{'unitId':_0x25c071,'subUnitId':_0x5743a6,'shapeId':_0x109267,'shapeData':{'shapeText':_0x3f5cb1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x470132}}});if(!_0x1c96c8||!_0x1e7767)return _0x1c96c8;let _0x515541=_0x1fd6b1[_0x573203(0x15a)]({'unitId':_0x25c071,'subUnitId':_0x5743a6,'drawingId':_0x109267}),_0x33fcab=_0x515541==null?void 0x0:_0x515541['transform'];if(!Ot(_0x515541)||!_0x33fcab)return!0x1;let _0x494696={..._0x33fcab,'width':_0x1e7767[_0x573203(0x2ad)],'height':_0x1e7767[_0x573203(0x3c5)]},_0x5a7f40=(_0x225d82=_0x3edfe0[_0x573203(0x2c4)](_0x25c071))==null||(_0x225d82=_0x225d82['with'](l[_0x573203(0x364)])[_0x573203(0x342)](_0x5743a6))==null?void 0x0:_0x225d82['skeleton'];return _0x3ccc3e[_0x573203(0x3b8)](m[_0x573203(0x421)]['id'],{'unitId':_0x25c071,'drawings':[{..._0x515541,'transform':_0x494696,'sheetTransform':_0x5a7f40?(0x0,m['transformToDrawingPosition'])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0x194)]:_0x515541[_0x573203(0x194)],'axisAlignSheetTransform':_0x5a7f40?(0x0,m[_0x573203(0x3f2)])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0xf9)]:_0x515541[_0x573203(0xf9)]}]});});},'updateHostSize':({unitId:_0x213966,subUnitId:_0x3b9191,shapeId:_0x2c7255,width:_0x4350db,height:_0x509480})=>{const _0x33b2bd=_0x6f0f21;var _0x5053de;let _0x5b5706=_0x1fd6b1[_0x33b2bd(0x15a)]({'unitId':_0x213966,'subUnitId':_0x3b9191,'drawingId':_0x2c7255}),_0x38b5eb=_0x5b5706==null?void 0x0:_0x5b5706['transform'];if(!Ot(_0x5b5706)||!_0x38b5eb)return;let _0x413706={..._0x38b5eb,'width':_0x4350db,'height':_0x509480},_0x476bb3=(_0x5053de=_0x3edfe0['getRenderUnitById'](_0x213966))==null||(_0x5053de=_0x5053de[_0x33b2bd(0x35a)](l[_0x33b2bd(0x364)])[_0x33b2bd(0x342)](_0x3b9191))==null?void 0x0:_0x5053de[_0x33b2bd(0x3f1)],_0x234390=_0x476bb3?(0x0,m[_0x33b2bd(0x39f)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0x194)]:_0x5b5706[_0x33b2bd(0x194)],_0x32cacc=_0x476bb3?(0x0,m[_0x33b2bd(0x3f2)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0xf9)]:_0x5b5706[_0x33b2bd(0xf9)];_0x3ccc3e['executeCommand'](m[_0x33b2bd(0x421)]['id'],{'unitId':_0x213966,'drawings':[{..._0x5b5706,'transform':_0x413706,'sheetTransform':_0x234390,'axisAlignSheetTransform':_0x32cacc}]});},'allowHostSizeShrink':({unitId:_0x127292,subUnitId:_0x21d729,shapeId:_0x436288})=>(0x0,e[_0x6f0f21(0x3c6)])(_0x403692[_0x6f0f21(0x287)](_0x127292,_0x21d729,_0x436288)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3ccc3e,_0x1fd6b1,_0x3edfe0,_0x403692,_0x18a881]),'editingService':_0x4c433a,'editorUnitId':ne,'positionOptions':(0x0,b['useMemo'])(()=>({'viewportKeys':{'main':c[_0x6f0f21(0x198)]['VIEW_MAIN'],'leftTop':c[_0x6f0f21(0x198)][_0x6f0f21(0x36e)],'top':c['SHEET_VIEWPORT_KEY'][_0x6f0f21(0x3c9)],'left':c[_0x6f0f21(0x198)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x5ae672,_0xd1adee)=>{const _0x30d518=_0x6f0f21;var _0x2ccdbf;return((_0x2ccdbf=_0x5ae672[_0x30d518(0x35a)](l[_0x30d518(0x364)])[_0x30d518(0x342)](_0xd1adee[_0x30d518(0x20a)]))==null?void 0x0:_0x2ccdbf[_0x30d518(0x3f1)])??null;}}),[])});});let At=class extends a['Disposable']{constructor(_0x3fb35a,_0x568b90){const _0xdda604=_0x5db5d0;super(),this[_0xdda604(0x280)]=_0x3fb35a,this['_iconManager']=_0x568b90,this[_0xdda604(0x11a)](),this[_0xdda604(0x163)]();}[_0x5db5d0(0x11a)](){const _0xf2eb79=_0x5db5d0;this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1b9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)]['register']({'ObjectLayersIcon':y[_0xf2eb79(0x1b9)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x38d))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipHorizontalIcon':y[_0xf2eb79(0x38d)]})),this[_0xf2eb79(0x2fc)]['has'](_0xf2eb79(0x1c3))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipVerticalIcon':y['FlipVerticalIcon']})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x34a))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'BottomIcon':y[_0xf2eb79(0x34a)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x267))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)]['register']({'MoveDownIcon':y[_0xf2eb79(0x267)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1dc))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'MoveUpIcon':y[_0xf2eb79(0x1dc)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x3f9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'ShapeFormatSettingIcon':y[_0xf2eb79(0x3f9)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x11c))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'TopmostIcon':y[_0xf2eb79(0x11c)]}));}[_0x5db5d0(0x163)](){const _0x48d75a=_0x5db5d0;this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](I,Tt)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](L,Ct)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](ce,me)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](le,de)),this[_0x48d75a(0x280)][_0x48d75a(0x3b6)](d[_0x48d75a(0x401)])||this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](d[_0x48d75a(0x401)],pe)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](R,Et)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Te,ke)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](we,Ae)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Ee,je)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](De,Me)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](re,e['ShapeTextFloatToolbar'])),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register']('SheetShapeTextEditorContainer',kt));}};At=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],At);const jt=_0x5db5d0(0x19e);let Mt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3be93c,_0x443268,_0x374f64,_0x371607,_0x59b40b,_0x5861b4){const _0x4c9c32=_0x5db5d0;super(),this[_0x4c9c32(0x25c)]=_0x3be93c,this['_ribbonService']=_0x443268,this[_0x4c9c32(0x3b1)]=_0x374f64,this[_0x4c9c32(0x12c)]=_0x371607,this[_0x4c9c32(0x104)]=_0x59b40b,this['_shapeFloatingToolbarService']=_0x5861b4,E(this,_0x4c9c32(0x3e4),!0x1),this[_0x4c9c32(0x25c)][_0x4c9c32(0x2a6)](tt),this[_0x4c9c32(0x17d)]((0x0,a['toDisposable'])(this[_0x4c9c32(0x3b1)][_0x4c9c32(0x344)]['subscribe'](()=>this['_update']()))),this['_update']();}['dispose'](){const _0x1da6ea=_0x5db5d0;this[_0x1da6ea(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0x1da6ea(0x111)](),super[_0x1da6ea(0x1c4)]();}[_0x5db5d0(0x353)](){const _0xc7a9de=_0x5db5d0;var _0x4d5f46;let _0x243ea3=this[_0xc7a9de(0x3b1)][_0xc7a9de(0x3fc)](),_0xd73dec=_0x243ea3['length']===0x1?_0x243ea3[0x0]:void 0x0;if((_0xd73dec==null?void 0x0:_0xd73dec[_0xc7a9de(0x3c1)])!==a['DrawingTypeEnum'][_0xc7a9de(0x19d)]||this[_0xc7a9de(0x12c)][_0xc7a9de(0x16c)](_0xd73dec[_0xc7a9de(0x3bf)])!==a['UniverInstanceType'][_0xc7a9de(0x319)]){this[_0xc7a9de(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0xc7a9de(0x111)]();return;}let _0x5a7d69=(0x0,e[_0xc7a9de(0xdd)])((_0x4d5f46=this['_renderManagerService'][_0xc7a9de(0x2c4)](_0xd73dec[_0xc7a9de(0x3bf)]))==null?void 0x0:_0x4d5f46['engine'][_0xc7a9de(0x12e)]())===_0xc7a9de(0x211);if(this[_0xc7a9de(0x39c)][_0xc7a9de(0x3db)](_0x5a7d69,jt),_0x5a7d69){this[_0xc7a9de(0x111)]();return;}this[_0xc7a9de(0x3e4)]||(this[_0xc7a9de(0x3e4)]=!0x0,this[_0xc7a9de(0xde)]['showContextualTab'](z,{'activate':!0x0}));}['_hide'](){const _0x8ee407=_0x5db5d0;this[_0x8ee407(0x3e4)]&&(this[_0x8ee407(0x3e4)]=!0x1,this[_0x8ee407(0xde)][_0x8ee407(0x2b5)](z),this[_0x8ee407(0xde)][_0x8ee407(0x2e9)]([]));}};Mt=j([A(0x0,t[_0x5db5d0(0x172)]),A(0x1,t['IRibbonService']),A(0x2,s['IDrawingManagerService']),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,c['IRenderManagerService']),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x38a)]))],Mt);let Nt=class extends e[_0x5db5d0(0x26c)]{constructor(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066){super(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066,{'componentKey':re,'editorUnitId':ne});}};Nt=j([A(0x1,(0x0,a[_0x5db5d0(0x22f)])(g[_0x5db5d0(0x1e6)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(_[_0x5db5d0(0x37f)])),A(0x3,(0x0,a['Inject'])(_[_0x5db5d0(0x419)])),A(0x4,a[_0x5db5d0(0x2b9)]),A(0x5,(0x0,a['Inject'])(_[_0x5db5d0(0x420)])),A(0x6,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x380)])),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(g['DocInterceptorService'])),A(0x8,(0x0,a['Inject'])(_[_0x5db5d0(0x144)])),A(0x9,(0x0,a[_0x5db5d0(0x22f)])(U))],Nt);let $=class extends a[_0x5db5d0(0x17a)]{constructor(_0x5209f5=ct,_0x4cc0b2,_0x4abd0a,_0x2ed204,_0x3ce49f){const _0x308cba=_0x5db5d0;super(),this[_0x308cba(0x3d7)]=_0x5209f5,this[_0x308cba(0x418)]=_0x4cc0b2,this[_0x308cba(0x1ad)]=_0x4abd0a,this['_configService']=_0x2ed204,this[_0x308cba(0x104)]=_0x3ce49f;let {..._0x38675f}=(0x0,a[_0x308cba(0x1d4)])({},ct,this['_config']);this[_0x308cba(0x3d1)][_0x308cba(0x2ba)](st,_0x38675f),this[_0x308cba(0x18b)]();}[_0x5db5d0(0x283)](){const _0x460313=_0x5db5d0;this['_renderManagerService'][_0x460313(0x25a)](a[_0x460313(0x400)][_0x460313(0x195)],[Nt]),(0x0,a[_0x460313(0x11b)])(this[_0x460313(0x418)],[[W],[K],[M],[Y]]);}['onSteady'](){const _0x1e2412=_0x5db5d0;this['_injector']['get'](W)[_0x1e2412(0x41a)]();}[_0x5db5d0(0x2f6)](){const _0x11f39f=_0x5db5d0;[[q],[N],[J]][_0x11f39f(0xe5)](_0x3a5a6=>this[_0x11f39f(0x418)][_0x11f39f(0x381)](_0x3a5a6)),(0x0,a['touchDependencies'])(this[_0x11f39f(0x418)],[[J],[N]]),this[_0x11f39f(0x104)]['registerRenderModule'](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[q]),this['_renderManagerService'][_0x11f39f(0x25a)](a['UniverInstanceType']['UNIVER_SHEET'],[lt]),this['_renderManagerService'][_0x11f39f(0x25a)](a[_0x11f39f(0x400)][_0x11f39f(0x319)],[bt]),this[_0x11f39f(0x104)][_0x11f39f(0x25a)](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[dt]);}[_0x5db5d0(0xff)](){const _0x2f0bc2=_0x5db5d0;this['_injector']['add']([At]),this[_0x2f0bc2(0x418)][_0x2f0bc2(0x3b6)](At);let _0x591144=this['_injector'];[[W],[K],[M],[Y],[Z],[U],[G],[V],[X],[Mt]][_0x2f0bc2(0xe5)](_0x454272=>_0x591144[_0x2f0bc2(0x381)](_0x454272)),(0x0,a[_0x2f0bc2(0x11b)])(this[_0x2f0bc2(0x418)],[[W],[K],[M],[Z],[U],[G],[V],[X],[Mt]]);}[_0x5db5d0(0x18b)](){const _0x492b13=_0x5db5d0;[F,S,mt,B,ie,P,oe,se][_0x492b13(0xe5)](_0x405de2=>this[_0x492b13(0x17d)](this[_0x492b13(0x1ad)][_0x492b13(0x154)](_0x405de2)));}};E($,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E($,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E($,_0x5db5d0(0x286),it),E($,_0x5db5d0(0x427),at),$=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g[_0x5db5d0(0x30c)],s[_0x5db5d0(0x215)],d[_0x5db5d0(0x246)],c[_0x5db5d0(0x33e)],o[_0x5db5d0(0x1ea)],_['UniverDocsUIPlugin'],m['UniverSheetsDrawingPlugin'],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x3f7)],i['UniverSheetsShapePlugin'],l[_0x5db5d0(0x298)],e[_0x5db5d0(0x1dd)]),A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,a['ICommandService']),A(0x3,a['IConfigService']),A(0x4,c[_0x5db5d0(0x226)])],$),exports[_0x5db5d0(0x36b)]=tt,exports['SheetsShapeUIMenuSchema']=rt,Object['defineProperty'](exports,_0x5db5d0(0x399),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x5db5d0(0x204),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x275262=_0x4387;(function(_0xae89d7,_0x234512){const _0x1360a2=_0x4387,_0x527dc9=_0xae89d7();while(!![]){try{const _0x57f792=-parseInt(_0x1360a2(0x132))/0x1*(-parseInt(_0x1360a2(0x29c))/0x2)+parseInt(_0x1360a2(0x238))/0x3+parseInt(_0x1360a2(0x256))/0x4*(-parseInt(_0x1360a2(0x2b0))/0x5)+parseInt(_0x1360a2(0x33b))/0x6+parseInt(_0x1360a2(0xf4))/0x7*(parseInt(_0x1360a2(0x39b))/0x8)+parseInt(_0x1360a2(0x24b))/0x9*(-parseInt(_0x1360a2(0x374))/0xa)+parseInt(_0x1360a2(0x31b))/0xb*(-parseInt(_0x1360a2(0x3d9))/0xc);if(_0x57f792===_0x234512)break;else _0x527dc9['push'](_0x527dc9['shift']());}catch(_0x8ca3a0){_0x527dc9['push'](_0x527dc9['shift']());}}}(_0x102a,0x23e95),Object[_0x275262(0x3b2)](exports,Symbol[_0x275262(0x2d4)],{'value':_0x275262(0x264)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0xa48f5c,_0x514220){const _0x42c5a3=_0x275262;let _0x3eaa97={};for(let _0x539f53 of Object[_0x42c5a3(0x23c)](_0x514220)){let _0xb7ad43=_0x514220[_0x539f53],_0x22f122=_0xa48f5c[_0x539f53];if(_0x22f122===void 0x0){_0x3eaa97[_0x539f53]=void 0x0;continue;}_0x3eaa97[_0x539f53]=typeof _0xb7ad43=='object'&&_0xb7ad43&&!Array['isArray'](_0xb7ad43)&&typeof _0x22f122=='object'&&_0x22f122&&!Array[_0x42c5a3(0x417)](_0x22f122)?x(_0x22f122,_0xb7ad43):_0x22f122;}return _0x3eaa97;}const S={'type':a[_0x275262(0x195)][_0x275262(0x1ea)],'id':'sheet.command.update-shape-data','handler':(_0x5d2a47,_0x2cd3f4)=>{const _0x3e53c6=_0x275262;let _0x389ed=_0x5d2a47['get'](i[_0x3e53c6(0xf3)]),{unitId:_0x2d90af,subUnitId:_0x3ae04f,shapeType:_0x3705e5,shapeId:_0x102487,shapeData:_0x18893a,replaceShapeData:_0xb838f7,oldShapeJSON:_0x43424c}=_0x2cd3f4;if(!_0x389ed[_0x3e53c6(0x3c8)](_0x2d90af,_0x3ae04f,_0x102487))return!0x1;let _0x53eb17=_0x5d2a47[_0x3e53c6(0x421)](a['ICommandService']),_0x38678a=_0x5d2a47[_0x3e53c6(0x421)](a[_0x3e53c6(0x3d6)]),{oldShapeType:_0x1cec63,oldShapeData:_0x46f3c0={}}=_0x43424c,_0x5d35b4=_0xb838f7?_0x46f3c0:x(_0x46f3c0,_0x18893a||{}),_0x594267={'id':i[_0x3e53c6(0x3d0)]['id'],'params':{'unitId':_0x2d90af,'subUnitId':_0x3ae04f,'shapeId':_0x102487,'shapeType':_0x3705e5,'shapeData':_0x18893a,'replace':_0xb838f7}},_0x144fc0={'id':i[_0x3e53c6(0x3d0)]['id'],'params':{'unitId':_0x2d90af,'subUnitId':_0x3ae04f,'shapeId':_0x102487,'shapeType':_0x1cec63,'shapeData':_0x5d35b4,'replace':_0xb838f7}};return _0x53eb17[_0x3e53c6(0x3dc)](_0x594267['id'],_0x594267['params'])?(_0x38678a['pushUndoRedo']({'unitID':_0x2d90af,'undoMutations':[_0x144fc0],'redoMutations':[_0x594267]}),!0x0):!0x1;}};function C(_0x473d8a,_0x172b26,_0x12d96b,_0x458e8d,_0x599933,_0x5a4cf6){let _0x1933c2={'unitId':_0x172b26,'subUnitId':_0x12d96b,'shapeId':_0x458e8d,'shapeData':_0x5a4cf6,'oldShapeJSON':_0x599933};return _0x473d8a['executeCommand'](S['id'],_0x1933c2);}function w(_0x422941,_0x255b0b,_0x2e3761,_0x3b208e,_0x21f6e5,_0x4ec654){const _0x5b058f=_0x275262;let _0x1988e6={'unitId':_0x255b0b,'subUnitId':_0x2e3761,'shapeId':_0x3b208e,'shapeData':_0x4ec654,'oldShapeJSON':_0x21f6e5};return _0x422941[_0x5b058f(0x136)](S['id'],_0x1988e6);}function T(_0x3df097){'@babel/helpers - typeof';const _0x7bfec3=_0x275262;return T=typeof Symbol==_0x7bfec3(0x174)&&typeof Symbol[_0x7bfec3(0x110)]=='symbol'?function(_0x47acae){return typeof _0x47acae;}:function(_0xf70e6e){const _0x3902c4=_0x7bfec3;return _0xf70e6e&&typeof Symbol==_0x3902c4(0x174)&&_0xf70e6e[_0x3902c4(0x19a)]===Symbol&&_0xf70e6e!==Symbol[_0x3902c4(0x100)]?_0x3902c4(0xc0):typeof _0xf70e6e;},T(_0x3df097);}function ee(_0x5e0be3,_0x14e3ca){const _0x2c80d8=_0x275262;if(T(_0x5e0be3)!='object'||!_0x5e0be3)return _0x5e0be3;var _0x5f5177=_0x5e0be3[Symbol['toPrimitive']];if(_0x5f5177!==void 0x0){var _0x1683ea=_0x5f5177[_0x2c80d8(0x1a2)](_0x5e0be3,_0x14e3ca||'default');if(T(_0x1683ea)!=_0x2c80d8(0x403))return _0x1683ea;throw TypeError(_0x2c80d8(0x2b8));}return(_0x14e3ca===_0x2c80d8(0x3f1)?String:Number)(_0x5e0be3);}function te(_0x7786fe){var _0x3ff9d5=ee(_0x7786fe,'string');return T(_0x3ff9d5)=='symbol'?_0x3ff9d5:_0x3ff9d5+'';}function E(_0x4b4982,_0x3aa312,_0x53a8a7){const _0x2ef23e=_0x275262;return(_0x3aa312=te(_0x3aa312))in _0x4b4982?Object[_0x2ef23e(0x3b2)](_0x4b4982,_0x3aa312,{'value':_0x53a8a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b4982[_0x3aa312]=_0x53a8a7,_0x4b4982;}function ne(_0x548a6a,_0x57d0c3,_0x4aa6f3){const _0x5ac490=_0x275262;let _0x32a847={..._0x57d0c3,'dataModel':{..._0x57d0c3['dataModel']??{},..._0x4aa6f3?{'doc':_0x4aa6f3}:null}},_0x443c9c=(0x0,e[_0x5ac490(0x1cc)])(_0x548a6a,_0x32a847),_0x109b50=(0x0,e[_0x5ac490(0x3bb)])(_0x443c9c);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x443c9c,_0x109b50),'wrapStrategy':_0x109b50};}var D=class extends c['Shape']{constructor(_0x359cb7,_0x45781b){const _0xa8cef9=_0x275262;super(_0x359cb7,_0x45781b),E(this,_0xa8cef9(0x2b7),void 0x0),E(this,_0xa8cef9(0x202),new e[(_0xa8cef9(0xc2))](()=>this[_0xa8cef9(0x31f)](!0x0),()=>this[_0xa8cef9(0x175)]())),E(this,_0xa8cef9(0xed),!0x0),E(this,'_drawingType',a[_0xa8cef9(0x3cc)][_0xa8cef9(0x2bd)]),E(this,_0xa8cef9(0x3c5),!0x0),this[_0xa8cef9(0x2b7)]={..._0x45781b},this[_0xa8cef9(0x202)][_0xa8cef9(0x16d)](_0x45781b['formulaPresentation'],_0x45781b[_0xa8cef9(0x3d4)]!==!0x1),this[_0xa8cef9(0x198)](),this[_0xa8cef9(0x175)]();}[_0x275262(0x198)](){const _0x50a4e2=_0x275262;this[_0x50a4e2(0x41c)][_0x50a4e2(0x401)](_0x1d7015=>{const _0xf697ac=_0x50a4e2;this[_0xf697ac(0x1ac)](_0x1d7015);});}[_0x275262(0x232)](_0x5f2e32){const _0x3dfcb3=_0x275262;this[_0x3dfcb3(0x2b7)][_0x3dfcb3(0x362)]=_0x5f2e32;}[_0x275262(0x156)](_0x2f9d0b){const _0x4bbb35=_0x275262;this['_props']['isEditing']=_0x2f9d0b,this[_0x4bbb35(0x31f)](!0x0);}[_0x275262(0x38a)](_0x18e30f,_0x3a6993=!0x0){const _0x4d6954=_0x275262;this['_formulaAnimation'][_0x4d6954(0x16d)](_0x18e30f,_0x3a6993),this[_0x4d6954(0x2b7)][_0x4d6954(0x40c)]=_0x18e30f,this['_applyFormulaAutoFitSize'](),this[_0x4d6954(0x31f)](!0x0);}[_0x275262(0x175)](){const _0x5e35d0=_0x275262;let _0x47b6e9=this['_props'][_0x5e35d0(0xee)],_0x13904d=_0x47b6e9[_0x5e35d0(0x1ae)](),_0x15b65a=(0x0,e[_0x5e35d0(0x1da)])(_0x13904d==null?void 0x0:_0x13904d[_0x5e35d0(0x392)]),_0x3bbff5=_0x15b65a==null?void 0x0:_0x15b65a['doc'],_0x2f7abc=this['_formulaAnimation'][_0x5e35d0(0x42a)]();if(!_0x3bbff5||_0x2f7abc['length']===0x0)return;_0x47b6e9[_0x5e35d0(0x290)]({'width':this[_0x5e35d0(0x40e)],'height':this['height']});let _0x15675f=(0x0,e[_0x5e35d0(0x34b)])({'documentData':_0x2f7abc[_0x5e35d0(0x19f)](_0x1eece6=>(0x0,r[_0x5e35d0(0x2e9)])(_0x3bbff5,_0x1eece6)),'height':this[_0x5e35d0(0x2ad)],'shapeData':_0x47b6e9[_0x5e35d0(0x223)](),'textRect':_0x47b6e9['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x5e35d0(0x40e)],'height':this[_0x5e35d0(0x2ad)]}),'width':this[_0x5e35d0(0x40e)]});if(_0x15675f){var _0x3ac3f8;this[_0x5e35d0(0x181)](_0x15675f['width'],_0x15675f[_0x5e35d0(0x2ad)]),(_0x3ac3f8=this['getScene']())==null||(_0x3ac3f8=_0x3ac3f8['getTransformer']())==null||_0x3ac3f8[_0x5e35d0(0x187)]();}}get[_0x275262(0x19e)](){const _0x3ab78f=_0x275262;return this[_0x3ab78f(0x2b7)][_0x3ab78f(0x19e)];}get[_0x275262(0x2a3)](){const _0x115692=_0x275262;return this[_0x115692(0x2b7)]['subUnitId'];}[_0x275262(0x1ac)](_0x29ec50){const _0x3a7275=_0x275262;if(this[_0x3a7275(0x2b7)]['srcRect']==null||!this[_0x3a7275(0xed)])return;let {width:_0x10d368,height:_0xf5a600}=this,{width:_0x390f74=0x0,height:_0x518d4e=0x0}=_0x29ec50[_0x3a7275(0x42f)],{left:_0x13596a=0x0,top:_0x2c0dc2=0x0,right:_0xfd6b6e=0x0,bottom:_0x104c28=0x0}=this[_0x3a7275(0x2b7)]['srcRect'],_0x30ac79=_0x13596a,_0x341ae4=_0x2c0dc2,_0x4e778f=_0xfd6b6e,_0x1dd75f=_0x104c28,_0x1fdfd6=!0x1;if(_0x390f74!==0x0&&_0x390f74!==_0x10d368){let _0x46453e=_0x13596a/_0x390f74,_0x5f223f=_0xfd6b6e/_0x390f74;_0x30ac79=_0x10d368*_0x46453e,_0x4e778f=_0x10d368*_0x5f223f,_0x1fdfd6=!0x0;}if(_0x518d4e!==0x0&&_0x518d4e!==_0xf5a600){let _0x2cac23=_0x2c0dc2/_0x518d4e,_0x4ea948=_0x104c28/_0x518d4e;_0x341ae4=_0xf5a600*_0x2cac23,_0x1dd75f=_0xf5a600*_0x4ea948,_0x1fdfd6=!0x0;}_0x1fdfd6&&this['setSrcRect']({'left':_0x30ac79,'top':_0x341ae4,'right':_0x4e778f,'bottom':_0x1dd75f});}[_0x275262(0x147)](_0x5eaf61){const _0x140a69=_0x275262;this[_0x140a69(0x2b7)][_0x140a69(0x363)]=_0x5eaf61,this[_0x140a69(0x31f)](!0x0);}['setFillImage'](_0x1288e0){const _0x54f972=_0x275262;this[_0x54f972(0x2b7)][_0x54f972(0x106)]=_0x1288e0,this['makeDirty'](!0x0);}set[_0x275262(0x391)](_0x4288bd){const _0x504c92=_0x275262;this[_0x504c92(0x1f8)]=_0x4288bd;}get['transform'](){const _0x352fe3=_0x275262;this[_0x352fe3(0x1f8)]||this[_0x352fe3(0x178)]();let _0x4c59e8=this[_0x352fe3(0x1f8)]['clone']();return this[_0x352fe3(0x326)](_0x4c59e8);}get[_0x275262(0xee)](){const _0x57958f=_0x275262;return this[_0x57958f(0x2b7)][_0x57958f(0xee)];}get[_0x275262(0x330)](){const _0x363bbd=_0x275262;return this[_0x363bbd(0x2b7)][_0x363bbd(0x330)];}get[_0x275262(0x214)](){const _0x343b6e=_0x275262;return c[_0x343b6e(0xf8)][_0x343b6e(0x3ce)];}[_0x275262(0x2c8)](_0x2f199c,_0x917507,_0x57f088,_0x385a8f){const _0x437a32=_0x275262;let _0x2532c5=this[_0x437a32(0x2b7)][_0x437a32(0xee)];if(!_0x2532c5||!_0x917507)return;let _0x2e24b5=_0x57f088??this['width'],_0x16419b=_0x385a8f??this[_0x437a32(0x2ad)],_0x1316ae={'shapeType':_0x2532c5['getShapeType'](),'width':_0x2e24b5,'height':_0x16419b},_0x446316={'renderMode':n[_0x437a32(0x1cb)]['Path'],'oKey':this[_0x437a32(0x240)],'image':this['_props'][_0x437a32(0x106)],'angle':this['angle']};_0x2532c5[_0x437a32(0x290)](_0x1316ae),_0x2f199c[_0x437a32(0x2c4)]();let _0x433020={'top':0x0,'left':0x0,'width':_0x2e24b5,'height':_0x16419b},_0xbf7d9b=_0x2532c5[_0x437a32(0x3eb)](_0x433020);_0xbf7d9b?this[_0x437a32(0x1e8)](_0x2f199c,_0xbf7d9b,_0x4ff07e=>{_0x2532c5['render'](_0x4ff07e,_0x433020,_0x446316);}):(this[_0x437a32(0x1ad)](),_0x2532c5[_0x437a32(0x3cd)](_0x2f199c,_0x433020,_0x446316)),_0x2f199c[_0x437a32(0x37b)]();let _0x1ee6a4=_0x2532c5[_0x437a32(0x1ae)](),_0x3636c0=_0x2532c5[_0x437a32(0x1f5)](_0x433020),_0xb90b07=_0x2532c5[_0x437a32(0x36f)]();if(_0x1ee6a4&&_0x3636c0&&!_0xb90b07){_0x2f199c[_0x437a32(0x2c4)](),this[_0x437a32(0x28c)]()[_0x437a32(0x387)]&&_0x2f199c['scale'](-0x1,0x1);let _0x3b5252=_0x2e24b5/0x2,_0x4d054e=_0x16419b/0x2;_0x2f199c[_0x437a32(0x1f6)](-_0x3b5252,-_0x4d054e),_0x2f199c['beginPath'](),this[_0x437a32(0x1c8)](_0x2f199c,_0x1ee6a4,_0x3636c0),_0x2f199c[_0x437a32(0x37b)]();}}[_0x275262(0x29f)](_0x25e40c){}[_0x275262(0x1c8)](_0x50b40a,_0x8f2195,_0x2c4530){const _0x30a071=_0x275262;var _0x38b697;this[_0x30a071(0x2b7)][_0x30a071(0x21e)]||(!((_0x38b697=_0x8f2195[_0x30a071(0x392)])!=null&&_0x38b697[_0x30a071(0x287)])&&_0x30a071(0x277)in _0x8f2195&&_0x8f2195[_0x30a071(0x277)]===!0x1?this[_0x30a071(0x2e7)](_0x50b40a,_0x8f2195,_0x2c4530):this['_drawRichText'](_0x50b40a,_0x8f2195,_0x2c4530));}[_0x275262(0x2e7)](_0x21b6de,_0x3aa99d,_0x2d10d1){const _0x366f27=_0x275262;this[_0x366f27(0x21b)](_0x21b6de,{..._0x3aa99d,'text':_0x3aa99d[_0x366f27(0x3e1)]??'','dataModel':{'doc':(0x0,e['plainShapeTextToDocumentData'])(_0x3aa99d,_0x366f27(0x113)+this[_0x366f27(0x240)])}},_0x2d10d1);}['_drawRichText'](_0x3d2405,_0x4c6ad2,_0x3be0cd){const _0x97badc=_0x275262;(0x0,e[_0x97badc(0x35f)])(_0x3d2405,this[_0x97badc(0x202)],(_0x41075b,_0x1b919e)=>{const _0x141ce2=_0x97badc;this[_0x141ce2(0x3ac)](_0x41075b,_0x4c6ad2,_0x3be0cd,_0x1b919e);});}[_0x275262(0x3ac)](_0x1390d1,_0xc17115,_0x107711,_0x32f231){const _0x4c32a7=_0x275262;let _0x1e677c=this['_props']['localeService'];if(!_0xc17115[_0x4c32a7(0x392)]||!_0x1e677c)return;let _0x485927=(0x0,e['normalizeShapeTextModel'])(_0xc17115['dataModel']);if(!_0x485927)return;let _0x3c22ec=_0x485927[_0x4c32a7(0x287)];if(!_0x3c22ec)return;let _0x3044a5=(0x0,r[_0x4c32a7(0x2e9)])(_0x3c22ec,_0x32f231),_0x2da354=_0x485927['va']??a[_0x4c32a7(0x179)][_0x4c32a7(0x17e)],_0x2103cb=_0x485927['ha']??a['HorizontalAlign'][_0x4c32a7(0x3bf)],_0x1a88b6=ne(this['_props'][_0x4c32a7(0xee)]['getShapeData'](),_0xc17115,_0x3044a5),_0x3207f8=_0xc17115[_0x4c32a7(0xce)],_0x4b5eb5=(0x0,e[_0x4c32a7(0x328)])(_0x3044a5,{'isHorizontal':_0x3207f8!==!0x1,'textRect':_0x107711,'verticalAlign':_0x2da354,'horizontalAlign':_0x2103cb,'wrapStrategy':_0x1a88b6['wrapStrategy']}),_0x1da233=new a[(_0x4c32a7(0xe4))](_0x4b5eb5),_0xf1431a=new c[(_0x4c32a7(0x348))](_0x1da233),_0x51e043=c[_0x4c32a7(0x20d)]['create'](_0xf1431a,_0x1e677c);_0x51e043['calculate']();let _0xff34f=_0x51e043['getActualSize']()[_0x4c32a7(0xc6)],_0x4de570=(0x0,e[_0x4c32a7(0x38b)])({'contentHeight':_0xff34f,'verticalAlign':_0x2da354,'viewportHeight':_0x107711['height']});_0x1da233[_0x4c32a7(0x3b6)]({'pageSize':{'width':_0x3207f8===!0x1?_0x107711['height']:_0x107711[_0x4c32a7(0x40e)],'height':(0x0,e[_0x4c32a7(0x3ff)])(_0x3044a5,_0x4de570[_0x4c32a7(0x3c6)])}}),_0x1da233[_0x4c32a7(0x337)]({'t':_0x4de570[_0x4c32a7(0x271)]}),_0x51e043[_0x4c32a7(0x1b3)]();let _0x360816=new c[(_0x4c32a7(0x378))]('shape-text-'+this[_0x4c32a7(0x240)],_0x51e043,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4c32a7(0x31f)](!0x0)});_0x360816[_0x4c32a7(0x181)](_0x107711[_0x4c32a7(0x40e)],_0x4de570['contentHeight']),_0x1390d1[_0x4c32a7(0x2c4)](),_0x1390d1[_0x4c32a7(0xe7)](_0x107711[_0x4c32a7(0x18e)],_0x107711[_0x4c32a7(0x3a8)]),_0x1a88b6[_0x4c32a7(0x26d)]&&(_0x1390d1[_0x4c32a7(0x2ba)](),_0x1390d1[_0x4c32a7(0x359)](0x0,_0x4de570[_0x4c32a7(0x2f3)],_0x107711[_0x4c32a7(0x40e)],_0x4de570[_0x4c32a7(0x315)]),_0x1390d1[_0x4c32a7(0x26d)]()),_0x4de570[_0x4c32a7(0x1f3)]&&_0x1390d1[_0x4c32a7(0xe7)](0x0,_0x4de570[_0x4c32a7(0x1f3)]),_0x360816[_0x4c32a7(0x438)](_0x1390d1),_0x1390d1[_0x4c32a7(0x37b)](),_0x360816['dispose'](),_0x51e043[_0x4c32a7(0x24e)](),_0xf1431a['dispose'](),_0x1da233[_0x4c32a7(0x24e)]();}[_0x275262(0x3cd)](_0x45047f,_0x2225ea,_0x30e61d=!0x1){const _0x2ae95e=_0x275262;if(!this[_0x2ae95e(0x250)])return this[_0x2ae95e(0x31f)](!0x1),this;let {width:_0x8c7613,height:_0x216d56,left:_0x1adaf2,top:_0x21e30f}=this,_0x337973=this[_0x2ae95e(0x393)]();if(_0x8c7613=_0x337973[_0x2ae95e(0x40e)],_0x216d56=_0x337973[_0x2ae95e(0x2ad)],_0x1adaf2=_0x337973['left'],_0x21e30f=_0x337973[_0x2ae95e(0x3a8)],this[_0x2ae95e(0x22b)](_0x2225ea)){let {top:_0x166573,left:_0x14baba,bottom:_0x4a40bd,right:_0x3cc723}=_0x2225ea[_0x2ae95e(0x103)];if(_0x8c7613+this[_0x2ae95e(0x288)]+_0x1adaf2<_0x14baba||_0x3cc723<_0x1adaf2||_0x216d56+this[_0x2ae95e(0x288)]+_0x21e30f<_0x166573||_0x4a40bd<_0x21e30f)return this;}let _0x2374b0=_0x1adaf2+_0x8c7613/0x2,_0x32e4f7=_0x21e30f+_0x216d56/0x2,_0x35b38e=this[_0x2ae95e(0x391)][_0x2ae95e(0x39d)]();if(this[_0x2ae95e(0x2b7)][_0x2ae95e(0x21e)]){let _0x44ad05=this[_0x2ae95e(0x28c)](),_0x27bc07=new c[(_0x2ae95e(0x3ea))]();_0x27bc07[_0x2ae95e(0x15f)]({..._0x44ad05}),_0x35b38e=_0x27bc07['getMatrix']();}return _0x45047f[_0x2ae95e(0x2c4)](),this[_0x2ae95e(0x2b7)][_0x2ae95e(0xee)]['isRenderLinePointsMode']===!0x0||_0x45047f[_0x2ae95e(0x391)](_0x35b38e[0x0],_0x35b38e[0x1],_0x35b38e[0x2],_0x35b38e[0x3],_0x2374b0,_0x32e4f7),this[_0x2ae95e(0x2c8)](_0x45047f,_0x2225ea,_0x8c7613,_0x216d56),_0x45047f[_0x2ae95e(0x37b)](),this[_0x2ae95e(0x31f)](!0x1),this;}[_0x275262(0x1bf)](_0x3c9b64){const _0x1a5f36=_0x275262;let {left:_0x583279,top:_0x5a8f99,width:_0x10012d,height:_0x15534e}=this[_0x1a5f36(0x393)](),_0xb1e855=this[_0x1a5f36(0x391)][_0x1a5f36(0x39d)](),_0xe75663=_0x583279+_0x10012d/0x2,_0x5786a7=_0x5a8f99+_0x15534e/0x2,_0xd01f1a=new c['Transform']([_0xb1e855[0x0],_0xb1e855[0x1],_0xb1e855[0x2],_0xb1e855[0x3],_0xe75663,_0x5786a7]),_0x1a133d=this[_0x1a5f36(0x3fe)]();return(this['isInGroup']&&(_0x1a133d==null?void 0x0:_0x1a133d['classType'])===c[_0x1a5f36(0xf8)][_0x1a5f36(0x2ee)]?_0x1a133d['ancestorTransform'][_0x1a5f36(0x2f9)](_0xd01f1a):_0xd01f1a)[_0x1a5f36(0x2d3)]()['applyPoint'](_0x3c9b64);}['isHit'](_0x5a322b){const _0x5f08a5=_0x275262;let {left:_0x491e38,top:_0x4aed38,width:_0x59afcc,height:_0x2143f4}=this[_0x5f08a5(0x393)](),_0x3985bf=_0x491e38+_0x59afcc/0x2,_0x4d6b4d=_0x4aed38+_0x2143f4/0x2,_0x50b828=this[_0x5f08a5(0x391)][_0x5f08a5(0x39d)](),_0x185162=new c[(_0x5f08a5(0x3ea))]([_0x50b828[0x0],_0x50b828[0x1],_0x50b828[0x2],_0x50b828[0x3],_0x3985bf,_0x4d6b4d]),_0x4c7b41=this[_0x5f08a5(0x3fe)](),_0xd5a127=(this[_0x5f08a5(0x11e)]&&(_0x4c7b41==null?void 0x0:_0x4c7b41[_0x5f08a5(0x214)])===c[_0x5f08a5(0xf8)][_0x5f08a5(0x2ee)]?_0x4c7b41[_0x5f08a5(0x280)][_0x5f08a5(0x2f9)](_0x185162):_0x185162)['invert']()['applyPoint'](_0x5a322b),_0x15ca43=_0x59afcc/0x2,_0x275028=_0x2143f4/0x2,_0x29e03c=this['_props']['shapeModel'];return _0x29e03c&&_0x29e03c['isLineShape']()?_0x29e03c['isHitLine'](_0xd5a127['x'],_0xd5a127['y'],_0x59afcc,_0x2143f4):_0xd5a127['x']>=-_0x15ca43-this[_0x5f08a5(0x288)]/0x2&&_0xd5a127['x']<=_0x15ca43+this['strokeWidth']/0x2&&_0xd5a127['y']>=-_0x275028-this[_0x5f08a5(0x288)]/0x2&&_0xd5a127['y']<=_0x275028+this[_0x5f08a5(0x288)]/0x2;}['dispose'](){const _0x3d2386=_0x275262;this[_0x3d2386(0x202)][_0x3d2386(0x24e)](),this[_0x3d2386(0x2b7)][_0x3d2386(0xee)]=null,super[_0x3d2386(0x24e)]();}},O=class extends c[_0x275262(0x33d)]{constructor(_0x380c4d,_0x274480){const _0x68276=_0x275262;super(_0x380c4d,_0x274480),E(this,'_shapeId',null),E(this,_0x68276(0x3b7),null),E(this,_0x68276(0x309),null),E(this,_0x68276(0x267),null),_0x274480&&this[_0x68276(0x333)](_0x274480);}[_0x275262(0x18f)](){const _0x59d151=_0x275262;return{'unitId':this[_0x59d151(0x309)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x59d151(0x2dd)]};}['setShapeProps'](_0x23fbd6){const _0x3156e6=_0x275262;_0x23fbd6['shapeId']!==void 0x0&&(this['_shapeId']=_0x23fbd6[_0x3156e6(0x330)]),_0x23fbd6[_0x3156e6(0x10c)]!==void 0x0&&(this['_adjName']=_0x23fbd6[_0x3156e6(0x10c)]),_0x23fbd6['unitId']!==void 0x0&&(this[_0x3156e6(0x309)]=_0x23fbd6[_0x3156e6(0x19e)]),_0x23fbd6['subUnitId']!==void 0x0&&(this[_0x3156e6(0x267)]=_0x23fbd6[_0x3156e6(0x2a3)]),this[_0x3156e6(0x31d)]({'width':_0x23fbd6['width'],'height':_0x23fbd6[_0x3156e6(0x2ad)]});}[_0x275262(0x2c8)](_0x123dd6){const _0x240ab0=_0x275262;c[_0x240ab0(0x325)][_0x240ab0(0xe3)](_0x123dd6,{'radius':n[_0x240ab0(0x376)]['adjHandleSize'],'fill':n[_0x240ab0(0x376)][_0x240ab0(0x1aa)],'stroke':n[_0x240ab0(0x376)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x14602e,_0x4908fc){return function(_0x1315b8,_0x194c86){_0x4908fc(_0x1315b8,_0x194c86,_0x14602e);};}function A(_0x3d862b,_0x428cb5,_0x2af7e2,_0x3a3bab){const _0x2a159b=_0x275262;var _0x2018ba=arguments[_0x2a159b(0x385)],_0xb3f1ad=_0x2018ba<0x3?_0x428cb5:_0x3a3bab===null?_0x3a3bab=Object[_0x2a159b(0x148)](_0x428cb5,_0x2af7e2):_0x3a3bab,_0x4f3bb6;if(typeof Reflect==_0x2a159b(0x403)&&typeof Reflect[_0x2a159b(0xd3)]==_0x2a159b(0x174))_0xb3f1ad=Reflect['decorate'](_0x3d862b,_0x428cb5,_0x2af7e2,_0x3a3bab);else{for(var _0x3f2646=_0x3d862b[_0x2a159b(0x385)]-0x1;_0x3f2646>=0x0;_0x3f2646--)(_0x4f3bb6=_0x3d862b[_0x3f2646])&&(_0xb3f1ad=(_0x2018ba<0x3?_0x4f3bb6(_0xb3f1ad):_0x2018ba>0x3?_0x4f3bb6(_0x428cb5,_0x2af7e2,_0xb3f1ad):_0x4f3bb6(_0x428cb5,_0x2af7e2))||_0xb3f1ad);}return _0x2018ba>0x3&&_0xb3f1ad&&Object[_0x2a159b(0x3b2)](_0x428cb5,_0x2af7e2,_0xb3f1ad),_0xb3f1ad;}let j=class extends a[_0x275262(0x284)]{constructor(_0x204815,_0x43fb6c,_0x56944c,_0x291480,_0x1a680e,_0x4b2c2b){const _0x293bc2=_0x275262;super(),this[_0x293bc2(0x41a)]=_0x204815,this[_0x293bc2(0x1de)]=_0x43fb6c,this[_0x293bc2(0xd8)]=_0x56944c,this[_0x293bc2(0x1ed)]=_0x291480,this[_0x293bc2(0x361)]=_0x1a680e,this[_0x293bc2(0x128)]=_0x4b2c2b,E(this,_0x293bc2(0x32d),new Map()),this[_0x293bc2(0x177)](this[_0x293bc2(0x128)][_0x293bc2(0xd0)][_0x293bc2(0x279)](_0x40d4bb=>{const _0x1bb45d=_0x293bc2;var _0x3332b1;(_0x3332b1=this[_0x1bb45d(0x32d)][_0x1bb45d(0x421)](this['_formulaKey'](_0x40d4bb[_0x1bb45d(0x19e)],_0x40d4bb[_0x1bb45d(0x2a3)],_0x40d4bb[_0x1bb45d(0x330)])))==null||_0x3332b1[_0x1bb45d(0x3b3)](_0x1c8f37=>_0x1c8f37[_0x1bb45d(0x38a)](_0x40d4bb[_0x1bb45d(0x23d)],_0x40d4bb[_0x1bb45d(0x14e)]));})),this[_0x293bc2(0x177)](this[_0x293bc2(0x41a)][_0x293bc2(0xd6)][_0x293bc2(0x279)](_0x293d74=>{const _0xa41502=_0x293bc2;_0x293d74[_0xa41502(0x3b3)](_0x2ed020=>{const _0x4706c8=_0xa41502;this[_0x4706c8(0x128)][_0x4706c8(0x1ec)]({'unitId':_0x2ed020[_0x4706c8(0x19e)],'subUnitId':_0x2ed020['subUnitId'],'shapeId':_0x2ed020[_0x4706c8(0x25c)]}),this['_formulaShapes'][_0x4706c8(0x3a9)](this['_formulaKey'](_0x2ed020[_0x4706c8(0x19e)],_0x2ed020['subUnitId'],_0x2ed020['drawingId']));});}));}[_0x275262(0x1c2)](_0x3d3dba,_0x196878,_0x1e2672){const _0xbbecad=_0x275262;let {transform:_0xaf2ddf,drawingType:_0x2f4f79,srcRect:_0x1c316d,prstGeom:_0x2fd0d8,groupId:_0x5e1ca7,unitId:_0x4598cb,subUnitId:_0xbb84bf,drawingId:_0x1024bc,isMultiTransform:_0x4ee735,transforms:_0x2fef1d,hidden:_0x1eee1b,selectable:_0xc0050b}=_0x3d3dba;if(_0x2f4f79!==a['DrawingTypeEnum'][_0xbbecad(0x2bd)]||!this[_0xbbecad(0x41a)][_0xbbecad(0x346)]()||_0xaf2ddf==null)return;let _0x5689b5=this[_0xbbecad(0x41a)][_0xbbecad(0x2e8)](),_0x1b1a48=_0x4ee735&&_0x2fef1d?_0x2fef1d:[_0xaf2ddf],_0x4ee433=[];for(let _0x5270f7 of _0x1b1a48){let {left:_0x5842bd,top:_0x3f4202,width:_0x5d1c7b,height:_0x59865e,angle:_0x79faac,flipX:_0x54a9a3,flipY:_0xabad93,skewX:_0x57843d,skewY:_0x266ba}=_0x5270f7,_0x3b4dbd=_0x1b1a48[_0xbbecad(0x117)](_0x5270f7),_0x3dd9a8=(0x0,s[_0xbbecad(0x18c)])({'unitId':_0x4598cb,'subUnitId':_0xbb84bf,'drawingId':_0x1024bc},_0x4ee735?_0x3b4dbd:void 0x0),_0x423a03=_0x196878[_0xbbecad(0x367)](_0x3dd9a8);if(_0x423a03!=null){let _0x508e08={'unitId':_0x4598cb,'subUnitId':_0xbb84bf,'shapeId':_0x1024bc};_0x423a03 instanceof D&&this[_0xbbecad(0x259)](_0x423a03,_0x508e08),_0x423a03[_0xbbecad(0x31d)]({'left':_0x5842bd,'top':_0x3f4202,'width':_0x5d1c7b,'height':_0x59865e,'angle':_0x79faac,'flipX':_0x54a9a3,'flipY':_0xabad93,'skewX':_0x57843d,'skewY':_0x266ba});continue;}let _0x30bd9b=this[_0xbbecad(0x41a)]['getDrawingOrder'](_0x4598cb,_0xbb84bf),_0x679864=_0x30bd9b['indexOf'](_0x1024bc);if(_0x196878[_0xbbecad(0x367)](_0x3dd9a8)||!this[_0xbbecad(0x41a)][_0xbbecad(0x346)]())continue;let _0x39fd97=this[_0xbbecad(0x1de)][_0xbbecad(0x3c8)](_0x4598cb,_0xbb84bf,_0x1024bc);if(!_0x39fd97)continue;let _0x3eed6f=(0x0,n[_0xbbecad(0x265)])(_0x39fd97[_0xbbecad(0x349)]())?{...e[_0xbbecad(0x1cf)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0xbbecad(0x1cf)],_0x25c66f=_0x39fd97[_0xbbecad(0x223)]()[_0xbbecad(0x327)],_0x294bd5={'unitId':_0x4598cb,'subUnitId':_0xbb84bf,'shapeId':_0x1024bc};_0x25c66f&&this['_shapeFormulaService'][_0xbbecad(0x215)](_0x294bd5,_0x25c66f);let _0x333606=new D(_0x3dd9a8,{..._0x5270f7,'zIndex':_0x679864===-0x1?_0x30bd9b[_0xbbecad(0x385)]-0x1:_0x679864,'shapeModel':_0x39fd97,'localeService':this[_0xbbecad(0xd8)],'shapeId':_0x1024bc,'unitId':_0x4598cb,'subUnitId':_0xbb84bf,'visible':_0x1eee1b!==!0x0,'evented':_0xc0050b!==!0x1,'formulaPresentation':_0x25c66f?this[_0xbbecad(0x128)][_0xbbecad(0x2f0)](_0x294bd5):void 0x0,'animateFormulaPresentation':(_0x25c66f==null?void 0x0:_0x25c66f[_0xbbecad(0x14e)])!==!0x1,'transformerConfig':_0x3eed6f});if(_0x25c66f){let _0x5e5425=this['_formulaKey'](_0x4598cb,_0xbb84bf,_0x1024bc),_0x876557=this[_0xbbecad(0x32d)][_0xbbecad(0x421)](_0x5e5425)??new Set();_0x876557['add'](_0x333606),this[_0xbbecad(0x32d)]['set'](_0x5e5425,_0x876557);}_0x196878[_0xbbecad(0x2a5)](_0x333606,c[_0xbbecad(0x436)]),_0x5689b5&&_0x196878[_0xbbecad(0x37d)](_0x333606),_0x5e1ca7&&(0x0,d[_0xbbecad(0x424)])({'drawingId':_0x5e1ca7,'unitId':_0x4598cb,'subUnitId':_0xbb84bf},_0x333606,_0x196878,this[_0xbbecad(0x41a)]),_0x2fd0d8!=null&&_0x333606[_0xbbecad(0x232)](_0x2fd0d8),_0x1c316d!=null&&_0x333606[_0xbbecad(0x147)](_0x1c316d);let _0x4c9179=this['_loadShapePictureFill'](_0x333606,_0x39fd97[_0xbbecad(0x223)]());if(_0x4c9179){var _0x1267c4;_0x1e2672==null||(_0x1267c4=_0x1e2672[_0xbbecad(0x14f)])==null||_0x1267c4['add'](_0x4c9179);}_0x4ee433['push'](_0x333606);}return _0x4ee433;}[_0x275262(0x270)](_0xe45f4d,_0x17ef3d,_0x594a78){return _0xe45f4d+'\x00'+_0x17ef3d+'\x00'+_0x594a78;}[_0x275262(0x259)](_0x5c280c,_0x8f2948){const _0x48f6f1=_0x275262;let _0x3fa2ca=this['_sheetsShapeService'][_0x48f6f1(0x3c8)](_0x8f2948[_0x48f6f1(0x19e)],_0x8f2948[_0x48f6f1(0x2a3)],_0x8f2948[_0x48f6f1(0x330)]),_0x5ef8f4=_0x3fa2ca==null?void 0x0:_0x3fa2ca['getShapeData']()['formulaBinding'],_0x7d5ef8=this[_0x48f6f1(0x270)](_0x8f2948['unitId'],_0x8f2948[_0x48f6f1(0x2a3)],_0x8f2948['shapeId']);if(_0x5ef8f4){this['_shapeFormulaService'][_0x48f6f1(0x215)](_0x8f2948,_0x5ef8f4);let _0x33236c=this[_0x48f6f1(0x32d)][_0x48f6f1(0x421)](_0x7d5ef8)??new Set();_0x33236c[_0x48f6f1(0xfd)](_0x5c280c),this[_0x48f6f1(0x32d)][_0x48f6f1(0x3b4)](_0x7d5ef8,_0x33236c);}else{var _0x4ef8bf;this[_0x48f6f1(0x128)][_0x48f6f1(0x1ec)](_0x8f2948),(_0x4ef8bf=this[_0x48f6f1(0x32d)][_0x48f6f1(0x421)](_0x7d5ef8))==null||_0x4ef8bf[_0x48f6f1(0x3a9)](_0x5c280c);}_0x5c280c['setFormulaPresentation'](_0x5ef8f4?this[_0x48f6f1(0x128)]['getPresentation'](_0x8f2948):void 0x0,(_0x5ef8f4==null?void 0x0:_0x5ef8f4[_0x48f6f1(0x14e)])!==!0x1);}[_0x275262(0x358)](_0x607f7a){const _0x837a04=_0x275262;let _0x3664a8=_0x607f7a['shapeModel'][_0x837a04(0x223)](),_0x33f4b5=_0x3664a8['fill'];if(!_0x33f4b5||_0x33f4b5['fillType']!==n[_0x837a04(0x1b7)][_0x837a04(0x429)]||!_0x33f4b5[_0x837a04(0x227)]){_0x607f7a[_0x837a04(0xfe)](void 0x0);return;}this[_0x837a04(0xc8)](_0x607f7a,_0x3664a8);}[_0x275262(0xc8)](_0x57e0ef,_0x96091b){const _0x39e7f3=_0x275262;let _0x58bc75=_0x96091b[_0x39e7f3(0x157)];if(!_0x58bc75||_0x58bc75[_0x39e7f3(0x3aa)]!==n[_0x39e7f3(0x1b7)]['PictureFill']||!_0x58bc75[_0x39e7f3(0x227)])return;let _0x1fdf2d=_0x58bc75[_0x39e7f3(0x227)],_0x58e6b6=_0x58bc75[_0x39e7f3(0x163)]??n[_0x39e7f3(0x222)][_0x39e7f3(0x2e1)],_0x44c7dd=this['_imageIoService']['getImageSourceCache'](_0x1fdf2d,_0x58e6b6);if(_0x44c7dd){_0x57e0ef['setFillImage'](_0x44c7dd);return;}return this['_loadAndSetImage'](_0x57e0ef,_0x1fdf2d,_0x58e6b6);}async['_loadAndSetImage'](_0xba1a74,_0x43ab67,_0x1da63d){const _0x5c455e=_0x275262;let _0x21c23d;try{if(_0x1da63d===n[_0x5c455e(0x222)][_0x5c455e(0x12f)])_0x21c23d=await this['_imageIoService']['getImage'](_0x43ab67);else{if(_0x1da63d===n[_0x5c455e(0x222)][_0x5c455e(0x2e1)])try{_0x21c23d=await this[_0x5c455e(0x361)][_0x5c455e(0x21f)](_0x43ab67);}catch{_0x21c23d=_0x43ab67;}else _0x21c23d=_0x43ab67;}}catch(_0xe5a7b6){console[_0x5c455e(0x25d)](_0x5c455e(0x2fe),_0xe5a7b6);return;}await new Promise(_0x1edd4a=>{const _0x504ff8=_0x5c455e;let _0x3c2a64=new window[(_0x504ff8(0x217))]();_0x3c2a64[_0x504ff8(0x1d7)]=()=>{const _0x4e75b8=_0x504ff8;this[_0x4e75b8(0x1ed)][_0x4e75b8(0x3e8)](_0x43ab67,_0x1da63d,_0x3c2a64),_0xba1a74['setFillImage'](_0x3c2a64),_0x1edd4a();},_0x3c2a64[_0x504ff8(0x27f)]=()=>{const _0x232e87=_0x504ff8;console[_0x232e87(0x25d)](_0x232e87(0x422),_0x43ab67),_0x1edd4a();},_0x3c2a64[_0x504ff8(0x369)]=_0x21c23d;});}};j=A([k(0x0,s[_0x275262(0x3a2)]),k(0x1,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x2,(0x0,a[_0x275262(0x15b)])(a['LocaleService'])),k(0x3,a[_0x275262(0x2de)]),k(0x4,a[_0x275262(0x1ab)]),k(0x5,(0x0,a[_0x275262(0x15b)])(r[_0x275262(0x244)]))],j);let M=class extends a[_0x275262(0x284)]{constructor(_0x46dbba,_0x35f434,_0xe5d9f3,_0x3b8eec,_0x4d93bc,_0x30cc01){const _0x511cd9=_0x275262;super(),this[_0x511cd9(0x41a)]=_0x46dbba,this[_0x511cd9(0x1de)]=_0x35f434,this['_renderManagerService']=_0xe5d9f3,this[_0x511cd9(0x33c)]=_0x3b8eec,this['_univerInstanceService']=_0x4d93bc,this[_0x511cd9(0x278)]=_0x30cc01,E(this,'_activeShapeId',null),E(this,_0x511cd9(0x309),null),E(this,_0x511cd9(0x267),null),E(this,_0x511cd9(0x318),void 0x0),E(this,_0x511cd9(0xca),[]),E(this,'_baseShapeLeft',0x0),E(this,_0x511cd9(0x2bc),0x0),E(this,_0x511cd9(0x1e2),0x0),E(this,'_baseShapeHeight',0x0),E(this,_0x511cd9(0x2cb),!0x1),E(this,_0x511cd9(0x291),void 0x0),E(this,_0x511cd9(0x3ed),void 0x0),E(this,_0x511cd9(0x427),void 0x0),E(this,_0x511cd9(0x3a5),void 0x0),E(this,_0x511cd9(0x3c9),!0x1),this[_0x511cd9(0x1a9)](),this[_0x511cd9(0x1fc)]();}[_0x275262(0x1e0)](_0x223da9,_0x107c4c,_0x15ce86){const _0x4cbd2a=_0x275262;let _0x472d8b=this[_0x4cbd2a(0x1de)]['getShapeModel'](_0x223da9,_0x107c4c,_0x15ce86);if(_0x472d8b)return _0x472d8b['getDrawingPoints']();}[_0x275262(0x2dc)](){const _0x305d8e=_0x275262;this[_0x305d8e(0x2a6)]();}[_0x275262(0x1c9)](){const _0x1b1d81=_0x275262;this[_0x1b1d81(0x356)](!0x0);}['setShouldShowAdjust'](_0x2ec0c0){const _0x5870a5=_0x275262;this[_0x5870a5(0x3c9)]=_0x2ec0c0;}['_getShapeAdjustInfosById'](_0x155ad2,_0xa15927,_0xe5ba82,_0x3d9119){const _0x25604a=_0x275262;let _0x3a2703=this[_0x25604a(0x1de)][_0x25604a(0x3c8)](_0x155ad2,_0xa15927,_0xe5ba82);if(_0x3a2703)return _0x3a2703[_0x25604a(0x320)](_0x3d9119);}[_0x275262(0x1a8)](_0x36a604=!0x1){const _0x4888d1=_0x275262;if(this[_0x4888d1(0x309)]===null||this[_0x4888d1(0x267)]===null||this['_activeShapeId']===null)return;let _0x67563c=this['_renderManagerService'][_0x4888d1(0x30b)](this[_0x4888d1(0x309)]);if(!_0x67563c||!_0x67563c[_0x4888d1(0x2f5)](l[_0x4888d1(0x20c)])[_0x4888d1(0x32e)]())return;let {scene:_0x5dae68}=_0x67563c,_0xa1307e={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0x2637f9=this['_drawingManagerService'][_0x4888d1(0x125)](_0xa1307e),{transform:_0x59302c}=_0x2637f9;if(!_0x59302c||_0x2637f9[_0x4888d1(0x133)]!==a[_0x4888d1(0x3cc)]['DRAWING_SHAPE'])return;let {left:_0x5c4c40,top:_0x158188,width:_0x1add29,height:_0x5d912e,flipX:_0x138286,flipY:_0xf0dfa4,angle:_0x320488=0x0}=_0x59302c;if(_0x5c4c40===void 0x0||_0x158188===void 0x0)return;if(_0x36a604){let _0x249c45=this['_sheetsShapeService']['getShapeModel'](this[_0x4888d1(0x309)],this[_0x4888d1(0x267)],this[_0x4888d1(0x397)]);_0x249c45==null||_0x249c45[_0x4888d1(0x290)]({'width':_0x1add29??0x0,'height':_0x5d912e??0x0}),this[_0x4888d1(0x318)]=_0x249c45==null?void 0x0:_0x249c45[_0x4888d1(0x29f)]();}let _0x259110=this[_0x4888d1(0x318)];for(let _0x4639f8=0x0;_0x4639f8<_0x259110[_0x4888d1(0x385)];_0x4639f8++){let _0x25a77f=_0x259110[_0x4639f8],_0x226d41=_0x25a77f['x'],_0x45ef4d=_0x25a77f['y'];if(_0x138286&&(_0x226d41=(_0x1add29||0x0)-_0x226d41),_0xf0dfa4&&(_0x45ef4d=(_0x5d912e||0x0)-_0x45ef4d),_0x320488!==0x0){let _0x91c182=(_0x1add29||0x0)/0x2,_0x40e028=(_0x5d912e||0x0)/0x2,_0x55c9e0=_0x320488*Math['PI']/0xb4,_0x39fe59=Math[_0x4888d1(0x1c6)](_0x55c9e0),_0x59e944=Math[_0x4888d1(0x312)](_0x55c9e0),_0x4ad54d=_0x226d41-_0x91c182,_0x1317ce=_0x45ef4d-_0x40e028;_0x226d41=_0x91c182+(_0x4ad54d*_0x39fe59-_0x1317ce*_0x59e944),_0x45ef4d=_0x40e028+(_0x4ad54d*_0x59e944+_0x1317ce*_0x39fe59);}let _0x162fd2={'x':_0x226d41,'y':_0x45ef4d,'adjName':_0x25a77f[_0x4888d1(0x10c)]};this[_0x4888d1(0x2a4)](_0x5dae68,_0x162fd2,_0x162fd2[_0x4888d1(0x10c)],_0x5c4c40,_0x158188,this[_0x4888d1(0x309)],this[_0x4888d1(0x267)]);}}[_0x275262(0x356)](_0x790a68=!0x1){const _0x49b295=_0x275262;_0x790a68&&(this[_0x49b295(0x2a6)](),this[_0x49b295(0x1a8)](_0x790a68));}[_0x275262(0x2a4)](_0x475ffb,_0x315c68,_0x52fade,_0x24a211,_0x1d6bf2,_0x42f946,_0x69eab4){const _0x595375=_0x275262;if(!this[_0x595375(0x397)])return;let _0x518c56=_0x475ffb[_0x595375(0x367)](_0x595375(0x1dd)+this['_activeShapeId']+'-'+_0x52fade);if(_0x518c56){_0x518c56[_0x595375(0x31d)]({'left':_0x315c68['x']+_0x24a211-n[_0x595375(0x376)][_0x595375(0x1d5)],'top':_0x315c68['y']+_0x1d6bf2-n[_0x595375(0x376)]['adjHandleSize']});return;}let _0x2a14ed={'left':_0x315c68['x']+_0x24a211-n[_0x595375(0x376)][_0x595375(0x1d5)],'top':_0x315c68['y']+_0x1d6bf2-n[_0x595375(0x376)][_0x595375(0x1d5)],'adjName':_0x52fade,'shapeId':this[_0x595375(0x397)],'unitId':_0x42f946,'subUnitId':_0x69eab4,'width':n[_0x595375(0x376)][_0x595375(0x1d5)]+0x8,'height':n[_0x595375(0x376)]['adjHandleSize']+0x8,'zIndex':c[_0x595375(0x436)]+0x1,'evented':!0x0},_0x7eca55=new O(_0x595375(0x1dd)+this['_activeShapeId']+'-'+_0x52fade,_0x2a14ed);this[_0x595375(0xca)]['push'](_0x7eca55),this[_0x595375(0x1f4)](_0x7eca55,_0x475ffb,_0x52fade),_0x475ffb[_0x595375(0x2a5)](_0x7eca55,c[_0x595375(0x436)]+0x1);}['_clearShapeAdjustControls'](){const _0x56328e=_0x275262;this[_0x56328e(0xca)][_0x56328e(0x385)]!==0x0&&(this[_0x56328e(0xca)][_0x56328e(0x3b3)](_0x1840ac=>{const _0x2a0092=_0x56328e;_0x1840ac[_0x2a0092(0x24e)]();}),this[_0x56328e(0xca)]=[]);}[_0x275262(0x293)](){const _0x2ea8f9=_0x275262;this[_0x2ea8f9(0x1a8)]();}[_0x275262(0x13a)](_0x511743,_0x12381e){const _0x4ae747=_0x275262;var _0x11df47;let _0x1076a9={'x':0x0,'y':0x0};if(!_0x511743||!_0x12381e)return _0x1076a9;let _0x3621c1=this[_0x4ae747(0x2c5)][_0x4ae747(0x30b)](_0x511743);if(!_0x3621c1||!_0x3621c1[_0x4ae747(0x2f5)](l[_0x4ae747(0x20c)])[_0x4ae747(0x1df)](_0x12381e))return _0x1076a9;let _0x1e2433=_0x3621c1[_0x4ae747(0x2f5)](l[_0x4ae747(0x23f)]),_0x212b98=_0x1e2433==null?void 0x0:_0x1e2433[_0x4ae747(0x2ce)]();if(!_0x212b98)return _0x1076a9;let _0x53d7ff=(_0x11df47=this['_univerInstanceService']['getUnit'](_0x511743))==null?void 0x0:_0x11df47[_0x4ae747(0xf0)](_0x12381e);if(!_0x53d7ff)return _0x1076a9;let _0x392854=(0x0,l[_0x4ae747(0x17a)])(_0x212b98['sheetViewStartRow'],_0x212b98[_0x4ae747(0x343)],_0x3621c1[_0x4ae747(0x419)],_0x53d7ff);return _0x392854?{'x':_0x392854[_0x4ae747(0x3d2)],'y':_0x392854[_0x4ae747(0x300)]}:_0x1076a9;}[_0x275262(0x368)](_0x4aa0a4,_0x20e44e){const _0x1fa072=_0x275262;var _0xb73554;let _0x646a14=(_0xb73554=this[_0x1fa072(0x407)][_0x1fa072(0x257)](_0x4aa0a4))==null?void 0x0:_0xb73554['getSheetBySheetId'](_0x20e44e);return(_0x646a14==null?void 0x0:_0x646a14[_0x1fa072(0x1be)]())??0x1;}[_0x275262(0x1f4)](_0x558365,_0x364c30,_0x71c96f){const _0x42de86=_0x275262;this[_0x42de86(0x177)]((0x0,a['toDisposable'])(_0x558365['onPointerDown$'][_0x42de86(0x401)]((_0x33cdab,_0x3922a0)=>{const _0x5f48ae=_0x42de86;var _0x19eb70,_0x13940c,_0x36ca70,_0x2c08f0;let _0xf31d72=_0x558365['getDrawingSearch']();this[_0x5f48ae(0x291)]=this[_0x5f48ae(0x239)](_0xf31d72['unitId'],_0xf31d72['subUnitId'],_0xf31d72[_0x5f48ae(0x25c)],_0x71c96f),this['_activeShapeModel']=this[_0x5f48ae(0x1de)][_0x5f48ae(0x3c8)](_0xf31d72['unitId'],_0xf31d72[_0x5f48ae(0x2a3)],_0xf31d72[_0x5f48ae(0x25c)]);let _0x48df21=this[_0x5f48ae(0x41a)][_0x5f48ae(0x125)]({'unitId':this[_0x5f48ae(0x309)],'subUnitId':this[_0x5f48ae(0x267)],'drawingId':this['_activeShapeId']}),{transform:_0x34a41b}=_0x48df21;if(_0x34a41b){let {left:_0x26ab4d,top:_0x2aadbb,width:_0x519e0a,height:_0xe1eb64}=_0x34a41b;this[_0x5f48ae(0x40d)]=_0x26ab4d||0x0,this['_baseShapeTop']=_0x2aadbb||0x0,this[_0x5f48ae(0x1e2)]=_0x519e0a||0x0,this[_0x5f48ae(0x43b)]=_0xe1eb64||0x0;}let _0x4855c7=!!((_0x19eb70=_0x48df21[_0x5f48ae(0x391)])!=null&&_0x19eb70[_0x5f48ae(0x387)]),_0x456295=!!((_0x13940c=_0x48df21['transform'])!=null&&_0x13940c['flipY']),_0x48a826=((_0x36ca70=_0x48df21['transform'])==null?void 0x0:_0x36ca70[_0x5f48ae(0x3e0)])||0x0;this['_isStartAdjusting']=!0x0,_0x364c30[_0x5f48ae(0x213)]();let _0x3fcc7e={...((_0x2c08f0=this[_0x5f48ae(0x291)])==null?void 0x0:_0x2c08f0['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x364c30[_0x5f48ae(0x366)][_0x5f48ae(0x401)]((_0x57f7e4,_0x2430f7)=>{const _0x44ed13=_0x5f48ae;if(!this['_isStartAdjusting'])return;let {offsetX:_0x540db0,offsetY:_0x2a2f9b}=_0x57f7e4,_0x1f8c78=this[_0x44ed13(0x291)];if(this[_0x44ed13(0x3ed)]&&_0x1f8c78){_0x364c30[_0x44ed13(0x213)](),_0x364c30['setCursor'](c[_0x44ed13(0xea)][_0x44ed13(0xcd)]);let _0x293803={'left':0x0,'top':0x0,'width':this[_0x44ed13(0x1e2)],'height':this[_0x44ed13(0x43b)]},_0x1baf41=this[_0x44ed13(0x13a)](this[_0x44ed13(0x309)],this[_0x44ed13(0x267)]),_0x521e5c=this[_0x44ed13(0x368)](this[_0x44ed13(0x309)],this[_0x44ed13(0x267)]),_0x2df032=_0x540db0/_0x521e5c+_0x1baf41['x']-this[_0x44ed13(0x40d)],_0x35776f=_0x2a2f9b/_0x521e5c+_0x1baf41['y']-this[_0x44ed13(0x2bc)];if(_0x48a826!==0x0){let _0x15f7c9=this[_0x44ed13(0x1e2)]/0x2,_0x2bfe4e=this['_baseShapeHeight']/0x2,_0x3f3ce3=_0x48a826*Math['PI']/0xb4,_0x278e3a=Math[_0x44ed13(0x1c6)](_0x3f3ce3),_0x5c147c=Math[_0x44ed13(0x312)](_0x3f3ce3),_0x422482=_0x2df032-_0x15f7c9,_0x5be37d=_0x35776f-_0x2bfe4e;_0x2df032=_0x15f7c9+(_0x422482*_0x278e3a+_0x5be37d*_0x5c147c),_0x35776f=_0x2bfe4e+(-_0x422482*_0x5c147c+_0x5be37d*_0x278e3a);}_0x4855c7&&(_0x2df032=this['_baseShapeWidth']-_0x2df032),_0x456295&&(_0x35776f=this[_0x44ed13(0x43b)]-_0x35776f);let _0x1f7cbf={'x':_0x2df032,'y':_0x35776f},_0x1ecc79=this['_activeShapeModel'][_0x44ed13(0x340)](_0x293803,_0x1f7cbf,_0x1f8c78,_0x4855c7,_0x456295);if(Object[_0x44ed13(0x23c)](_0x1ecc79)[_0x44ed13(0x385)]===0x0)return;for(let [_0x47fc7f,_0x223440]of Object[_0x44ed13(0x3fc)](_0x1ecc79))this[_0x44ed13(0x3ed)][_0x44ed13(0x32f)](_0x47fc7f,_0x223440);this[_0x44ed13(0x3ed)][_0x44ed13(0x290)]({'width':this[_0x44ed13(0x1e2)],'height':this[_0x44ed13(0x43b)]});let _0x207287=this[_0x44ed13(0x41a)]['getDrawingByParam']({'unitId':_0xf31d72[_0x44ed13(0x19e)],'subUnitId':_0xf31d72['subUnitId'],'drawingId':_0xf31d72[_0x44ed13(0x25c)]});_0x207287&&(this[_0x44ed13(0x33c)][_0x44ed13(0x1c2)](_0x207287,_0x364c30),this[_0x44ed13(0x318)]=this[_0x44ed13(0x1e0)](_0xf31d72[_0x44ed13(0x19e)],_0xf31d72[_0x44ed13(0x2a3)],_0xf31d72['drawingId']),this[_0x44ed13(0x293)]());}_0x2430f7[_0x44ed13(0x25e)]();}),this[_0x5f48ae(0x3a5)]=_0x364c30['onPointerUp$'][_0x5f48ae(0x401)]((_0x2fd1ba,_0x454fec)=>{const _0x202b71=_0x5f48ae;this[_0x202b71(0x427)][_0x202b71(0x186)](),this[_0x202b71(0x3a5)][_0x202b71(0x186)](),_0x364c30[_0x202b71(0x35c)]();let _0xdf00ef=this['_activeAdjustInfo'];if(_0xdf00ef){let _0x213b37=_0xf31d72[_0x202b71(0x19e)],_0x1832d2=_0xf31d72[_0x202b71(0x2a3)],_0x45a17f=_0xf31d72[_0x202b71(0x25c)],_0x48f386={};for(let _0x427d5f of Object[_0x202b71(0x23c)](_0xdf00ef[_0x202b71(0x2bf)])){var _0x5b77eb;let _0x202a7e=(_0x5b77eb=this[_0x202b71(0x3ed)])==null?void 0x0:_0x5b77eb[_0x202b71(0x2a2)](_0x427d5f);_0x202a7e!==void 0x0&&(_0x48f386[_0x427d5f]=_0x202a7e);}Object['keys'](_0x48f386)[_0x202b71(0x385)]>0x0&&C(this[_0x202b71(0x278)],_0x213b37,_0x1832d2,_0x45a17f,{'oldShapeData':{'adjustValues':_0x3fcc7e}},{'adjustValues':_0x48f386});}this[_0x202b71(0x291)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x202b71(0x2cb)]=!0x1,_0x454fec[_0x202b71(0x25e)](),_0x364c30[_0x202b71(0x31a)]();}),_0x3922a0[_0x5f48ae(0x25e)]();})));}[_0x275262(0x1fc)](){const _0x53b481=_0x275262;let _0x588f6a=this[_0x53b481(0x407)][_0x53b481(0x2b2)](a[_0x53b481(0x412)][_0x53b481(0x306)]);this[_0x53b481(0x177)](_0x588f6a[_0x53b481(0xe2)]((0x0,u[_0x53b481(0xe5)])(_0x4925e0=>_0x4925e0?_0x4925e0[_0x53b481(0x1e5)][_0x53b481(0xe2)]((0x0,u['switchMap'])(_0x41d57a=>{const _0x50c699=_0x53b481;if(!_0x41d57a)return u['EMPTY'];let _0x52d30b=_0x4925e0[_0x50c699(0x111)](),_0x3399dd=this[_0x50c699(0x2c5)][_0x50c699(0x30b)](_0x52d30b),_0xfa5fc6=_0x3399dd==null?void 0x0:_0x3399dd[_0x50c699(0x419)];return _0xfa5fc6?(0x0,u['of'])(_0xfa5fc6):u[_0x50c699(0x1ca)];})):u['EMPTY']))[_0x53b481(0x279)](_0x420dc9=>{const _0x445fc6=_0x53b481;let _0x5f03af=_0x420dc9[_0x445fc6(0x10b)]();this[_0x445fc6(0x177)](_0x420dc9['onPointerMove$']['subscribeEvent'](()=>{const _0x308caa=_0x445fc6;this[_0x308caa(0x3c9)];})),this[_0x445fc6(0x177)](_0x5f03af[_0x445fc6(0x2d0)][_0x445fc6(0x279)](_0x1847cd=>{const _0x4356ca=_0x445fc6;let {objects:_0x3d3e49}=_0x1847cd;this[_0x4356ca(0x1a8)](),_0x3d3e49!==null&&_0x3d3e49[_0x4356ca(0x3f9)]===0x1&&_0x3d3e49[_0x4356ca(0x247)]()['next']()[_0x4356ca(0x307)]instanceof D&&this[_0x4356ca(0x12b)](!0x0);})),this['disposeWithMe'](_0x5f03af['changing$']['subscribe'](()=>{const _0x48efbc=_0x445fc6;this['_isShouldShowDrawingShapeAdjust']&&this[_0x48efbc(0x2a6)]();})),this[_0x445fc6(0x177)](_0x420dc9['onPointerUp$'][_0x445fc6(0x401)](()=>{const _0x313723=_0x445fc6;this[_0x313723(0x3c9)]&&(this[_0x313723(0x12b)](!0x1),this[_0x313723(0x1a8)]());})),this[_0x445fc6(0x177)](_0x5f03af[_0x445fc6(0x281)][_0x445fc6(0x279)](()=>{const _0x397a2a=_0x445fc6;this[_0x397a2a(0x309)]&&this['_subUnitId']&&this[_0x397a2a(0x397)]&&this['_drawingManagerService'][_0x397a2a(0x125)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x397a2a(0x397)]})&&(this[_0x397a2a(0x318)]=this[_0x397a2a(0x1e0)](this['_unitId'],this[_0x397a2a(0x267)],this['_activeShapeId']),this[_0x397a2a(0x293)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x1812f3=_0x275262;this[_0x1812f3(0x177)](this[_0x1812f3(0x278)][_0x1812f3(0x3cf)](_0x441795=>{const _0x38fc5a=_0x1812f3;if(_0x441795['id']!==i[_0x38fc5a(0x3d0)]['id'])return;let {unitId:_0x3bf498,subUnitId:_0x32f2c3,shapeId:_0x2350fb}=_0x441795[_0x38fc5a(0x27b)];_0x3bf498===this[_0x38fc5a(0x309)]&&_0x32f2c3===this['_subUnitId']&&_0x2350fb===this[_0x38fc5a(0x397)]&&this['refreshAdjustControls']();})),this[_0x1812f3(0x177)](this['_drawingManagerService'][_0x1812f3(0xcf)][_0x1812f3(0x279)](_0x366514=>{const _0x284d38=_0x1812f3;if(_0x366514['length']===0x1){let _0x912190=_0x366514[0x0];if(_0x912190[_0x284d38(0x133)]===a[_0x284d38(0x3cc)]['DRAWING_SHAPE']&&this[_0x284d38(0x407)]['getUnitType'](_0x912190[_0x284d38(0x19e)])===a[_0x284d38(0x412)][_0x284d38(0x306)]){this[_0x284d38(0x397)]=_0x912190[_0x284d38(0x25c)];let {unitId:_0x116f42,subUnitId:_0x3db342}=_0x912190;this[_0x284d38(0x318)]=this['_getShapeAdjustPointListById'](_0x116f42,_0x3db342,this[_0x284d38(0x397)]),this[_0x284d38(0x309)]=_0x116f42,this[_0x284d38(0x267)]=_0x3db342,this[_0x284d38(0x2a6)](),this['_createShapeAdjustControls']();return;}}this['_activeShapeId']=null,this[_0x284d38(0x318)]=void 0x0,this[_0x284d38(0x309)]=null,this[_0x284d38(0x267)]=null,this[_0x284d38(0x2a6)]();})),this[_0x1812f3(0x177)](this[_0x1812f3(0x41a)][_0x1812f3(0x43d)][_0x1812f3(0x279)](_0x9792c3=>{const _0x1d1b73=_0x1812f3;if(_0x9792c3['length']===0x1){var _0x310ce5;let _0x53528f=_0x9792c3[0x0];((_0x310ce5=this[_0x1d1b73(0x41a)][_0x1d1b73(0x125)](_0x53528f))==null?void 0x0:_0x310ce5['drawingType'])===a[_0x1d1b73(0x3cc)][_0x1d1b73(0x2bd)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x1812f3(0x177)](this[_0x1812f3(0x41a)][_0x1812f3(0xd6)][_0x1812f3(0x279)](_0x2b9598=>{const _0xe02c42=_0x1812f3;for(let _0x138289 of _0x2b9598)this[_0xe02c42(0x397)]===_0x138289[_0xe02c42(0x25c)]&&(this['_activeShapeId']=null,this[_0xe02c42(0x318)]=void 0x0,this[_0xe02c42(0x309)]=null,this[_0xe02c42(0x267)]=null,this[_0xe02c42(0x2a6)]());}));}};M=A([k(0x0,s['IDrawingManagerService']),k(0x1,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x2,(0x0,a[_0x275262(0x15b)])(c[_0x275262(0x2a9)])),k(0x3,(0x0,a[_0x275262(0x15b)])(j)),k(0x4,a['IUniverInstanceService']),k(0x5,a[_0x275262(0x173)])],M);const N={'id':'drawing.operation.set-drawing-active','type':a[_0x275262(0x195)]['OPERATION'],'handler':(_0x252741,_0x2bf8a8)=>{const _0x1c4878=_0x275262;let _0x35bcd2=_0x252741[_0x1c4878(0x421)](s[_0x1c4878(0x3a2)]),_0x39a484=_0x252741[_0x1c4878(0x421)](c['IRenderManagerService']),_0x12ae0a=_0x252741[_0x1c4878(0x421)](M);if(_0x2bf8a8==null)return!0x0;if(_0x2bf8a8[_0x1c4878(0x385)]>0x0){var _0x482d4a;let _0x5db715=(_0x482d4a=_0x39a484[_0x1c4878(0x30b)](_0x2bf8a8[0x0][_0x1c4878(0x19e)]))==null?void 0x0:_0x482d4a['scene'];if(_0x5db715){let {unitId:_0x19f3dc,subUnitId:_0x1d864c,drawingId:_0x51a0b9}=_0x2bf8a8[0x0],_0x16b63f=(0x0,s[_0x1c4878(0x18c)])({'unitId':_0x19f3dc,'subUnitId':_0x1d864c,'drawingId':_0x51a0b9},void 0x0),_0x25df7f=_0x5db715['getObjectIncludeInGroup'](_0x16b63f);if(_0x25df7f){var _0x44228d;(_0x44228d=_0x39a484['getRenderUnitById'](_0x2bf8a8[0x0][_0x1c4878(0x19e)]))==null||(_0x44228d=_0x44228d[_0x1c4878(0x419)][_0x1c4878(0x408)]())==null||_0x44228d[_0x1c4878(0x345)](_0x25df7f);}}_0x35bcd2['focusDrawing'](_0x2bf8a8),_0x12ae0a['setShouldShowAdjust'](!0x1);}return!0x0;}},P={'type':a[_0x275262(0x195)][_0x275262(0x1ea)],'id':'sheet.command.menu-insert-shape','handler':async(_0x50e39f,_0x20637c)=>{const _0x52a086=_0x275262;let _0x17b121=(0x0,o['getSheetCommandTarget'])(_0x50e39f[_0x52a086(0x421)](a['IUniverInstanceService']));if(!_0x17b121)return!0x1;let _0x11c699=_0x50e39f[_0x52a086(0x421)](o['SheetsSelectionsService'])[_0x52a086(0x209)]();if(!_0x11c699)return!0x1;let _0x236ec6=_0x50e39f[_0x52a086(0x421)](a[_0x52a086(0x173)]),{unitId:_0x7a7c16,subUnitId:_0x133e7d}=_0x17b121,{value:_0x39f28a,enhanceParams:_0x506279}=_0x20637c,{range:_0x565ab0}=_0x11c699,_0x1f0638={'unitId':_0x7a7c16,'subUnitId':_0x133e7d,'shapeType':_0x39f28a,'range':_0x565ab0,'shapeId':(0x0,a[_0x52a086(0x382)])()};if(_0x506279){let _0x2a64c4=(0x0,n[_0x52a086(0x265)])(_0x39f28a),_0x5f27da=_0x39f28a===n[_0x52a086(0x295)][_0x52a086(0x144)];_0x2a64c4&&(_0x506279[_0x52a086(0x405)]||_0x506279[_0x52a086(0x2f4)])&&(_0x1f0638[_0x52a086(0x3f8)]={'ln':{'startArrow':_0x506279[_0x52a086(0x405)]?{'type':n[_0x52a086(0x41f)][_0x52a086(0x341)],'size':n[_0x52a086(0x1ee)]['Medium']}:void 0x0,'endArrow':_0x506279[_0x52a086(0x2f4)]?{'type':n[_0x52a086(0x41f)]['Arrow'],'size':n[_0x52a086(0x1ee)][_0x52a086(0x2fd)]}:void 0x0}}),_0x5f27da&&(_0x506279[_0x52a086(0x107)]||_0x506279[_0x52a086(0xe1)])&&(_0x1f0638[_0x52a086(0x3f8)]=(0x0,r[_0x52a086(0x273)])({'fill':{'fillType':n[_0x52a086(0x1b7)]['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x506279[_0x52a086(0x107)],'stroke':{'lineStrokeType':n[_0x52a086(0x360)][_0x52a086(0x16c)],'width':0x1,'color':_0x52a086(0xdf)}}));}let _0xa38e45=_0x236ec6[_0x52a086(0x3dc)](i[_0x52a086(0x184)]['id'],_0x1f0638);return setTimeout(()=>{const _0xb81525=_0x52a086;_0x236ec6[_0xb81525(0x136)](N['id'],[{'unitId':_0x7a7c16,'subUnitId':_0x133e7d,'drawingId':_0x1f0638[_0xb81525(0x330)]}]);},0xc8),_0xa38e45;}},F='sheet.shape.edit.panel',I=_0x275262(0x335),L='sheet.shape.floating-toolbar',R=_0x275262(0x414),re=(0x0,a[_0x275262(0x2df)])(_0x275262(0x437)),ie=_0x275262(0x2eb),ae={'id':_0x275262(0x29b),'type':a[_0x275262(0x195)][_0x275262(0x1ea)],'handler':(_0x432fce,_0x223441)=>{const _0x537316=_0x275262;let _0x295ca7=_0x432fce[_0x537316(0x421)](t[_0x537316(0x26c)]),_0x42bc4b=_0x432fce['get'](a['LocaleService']),_0x16eccd=_0x432fce[_0x537316(0x421)](a[_0x537316(0x30c)]),_0x12e647=_0x432fce['get'](a[_0x537316(0x173)]);return(0x0,o[_0x537316(0x251)])(_0x16eccd)?(_0x223441==null?void 0x0:_0x223441[_0x537316(0x307)])===_0x537316(0x380)?(_0x295ca7['close'](I),!0x0):(_0x295ca7[_0x537316(0x2d5)]({'id':I,'header':{'title':_0x42bc4b['t'](_0x537316(0x252))},'children':{'label':I},'onClose':()=>{const _0x49e95b=_0x537316;_0x12e647['syncExecuteCommand'](s[_0x49e95b(0xff)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x275262(0x195)][_0x275262(0x2f6)],'id':_0x275262(0x16f),'handler'(){return!0x0;}};function oe(_0x160ae2){const _0x1016a1=_0x275262;let _0x52a047=_0x160ae2['get'](s[_0x1016a1(0x3a2)])[_0x1016a1(0x304)](),_0xc5f3b7=_0x52a047[_0x1016a1(0x385)]===0x1?_0x52a047[0x0]:null;if(!_0xc5f3b7||_0xc5f3b7[_0x1016a1(0x133)]!==a[_0x1016a1(0x3cc)][_0x1016a1(0x2bd)])return null;let _0x53dd93=_0x160ae2[_0x1016a1(0x421)](i[_0x1016a1(0xf3)]),_0x23abea=_0x53dd93[_0x1016a1(0x375)](_0xc5f3b7[_0x1016a1(0x19e)],_0xc5f3b7[_0x1016a1(0x2a3)],_0xc5f3b7[_0x1016a1(0x25c)]),_0x3b08de=_0x53dd93['getShapeDataById'](_0xc5f3b7[_0x1016a1(0x19e)],_0xc5f3b7[_0x1016a1(0x2a3)],_0xc5f3b7[_0x1016a1(0x25c)]);return _0x23abea===void 0x0||!_0x3b08de?null:{'drawing':_0xc5f3b7,'shapeData':_0x3b08de,'shapeType':_0x23abea};}const se={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x275262(0x195)][_0x275262(0x2f6)],'handler':(_0x5127da,_0x4339f4)=>{const _0x35dcfb=_0x275262;let _0x50fd69=oe(_0x5127da),_0x1eeded=(0x0,r[_0x35dcfb(0x373)])((_0x4339f4==null?void 0x0:_0x4339f4['presetId'])??(_0x4339f4==null?void 0x0:_0x4339f4[_0x35dcfb(0x307)])??'');if(!_0x50fd69||!_0x1eeded||_0x1eeded['type']!==(0x0,r[_0x35dcfb(0x180)])(_0x50fd69['shapeData']))return!0x1;let _0x561603=(0x0,r['applyQuickStyleToShapeData'])(_0x50fd69[_0x35dcfb(0x3f8)],_0x1eeded);if(!_0x561603)return!0x1;let {drawing:_0x5c8230}=_0x50fd69;return _0x5127da[_0x35dcfb(0x421)](a[_0x35dcfb(0x173)])['executeCommand'](S['id'],{'unitId':_0x5c8230['unitId'],'subUnitId':_0x5c8230[_0x35dcfb(0x2a3)],'shapeId':_0x5c8230[_0x35dcfb(0x25c)],'shapeData':_0x561603,'oldShapeJSON':{'oldShapeData':_0x50fd69['shapeData']}});}},ce={'id':_0x275262(0x2b3),'type':a[_0x275262(0x195)][_0x275262(0x2f6)],'handler':(_0x49d044,_0x17905d)=>{const _0x1519ac=_0x275262;let _0x101039=oe(_0x49d044),_0x44994a=(_0x17905d==null?void 0x0:_0x17905d[_0x1519ac(0x172)])??(_0x17905d==null?void 0x0:_0x17905d[_0x1519ac(0x307)]);if(!_0x101039||!_0x44994a||(0x0,n['isConnectorShape'])(_0x101039['shapeType'])||(0x0,n[_0x1519ac(0x265)])(_0x44994a))return!0x1;let _0x455876=(0x0,r[_0x1519ac(0x3d8)])(_0x101039[_0x1519ac(0x3f8)],_0x44994a);if(!_0x455876)return!0x1;let {drawing:_0x3bd021}=_0x101039;return _0x49d044[_0x1519ac(0x421)](a[_0x1519ac(0x173)])[_0x1519ac(0x136)](S['id'],{'unitId':_0x3bd021[_0x1519ac(0x19e)],'subUnitId':_0x3bd021['subUnitId'],'shapeId':_0x3bd021[_0x1519ac(0x25c)],'shapeType':_0x44994a,'shapeData':_0x455876,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x101039['shapeType'],'oldShapeData':_0x101039['shapeData']}});}};let B=class extends a[_0x275262(0x284)]{constructor(_0x51601d,_0x2521ac){const _0x21ab5d=_0x275262;super(),this[_0x21ab5d(0x319)]=_0x51601d,this['_drawingManagerService']=_0x2521ac,this[_0x21ab5d(0x176)](),this[_0x21ab5d(0x319)]['setCanUseShapeClip'](!0x0),this[_0x21ab5d(0x177)]({'dispose':()=>this['_clipService'][_0x21ab5d(0x43a)](!0x1)});}[_0x275262(0x176)](){const _0x128c5d=_0x275262;let _0x12c282=this[_0x128c5d(0x319)],_0x7961cd=new Map(),_0x3a098b=_0x12c282[_0x128c5d(0x400)]((_0x2041ad,_0x4be350,_0x4f794a,_0x213dd7,_0x346d09)=>{const _0x49b922=_0x128c5d;let _0x19139c=_0x4be350;if(_0x19139c===n['ShapeTypeEnum'][_0x49b922(0x420)]||_0x4be350===_0x49b922(0xf9))return!0x1;try{let _0x33734c=_0x7961cd[_0x49b922(0x421)](_0x4be350);return _0x33734c||(_0x33734c=new n[(_0x49b922(0x255))](_0x19139c,_0x49b922(0x384)+_0x4be350),_0x7961cd[_0x49b922(0x3b4)](_0x4be350,_0x33734c)),_0x33734c[_0x49b922(0x122)](),_0x346d09&&Object[_0x49b922(0x23c)](_0x346d09)[_0x49b922(0x385)]>0x0&&_0x33734c[_0x49b922(0x2e0)]({'adjustValues':_0x346d09},!0x0),_0x33734c[_0x49b922(0x290)]({'width':_0x4f794a,'height':_0x213dd7}),_0x33734c[_0x49b922(0x1c4)](_0x2041ad,{'left':0x0,'top':0x0,'width':_0x4f794a,'height':_0x213dd7});}catch{return!0x1;}});this[_0x128c5d(0x177)](_0x3a098b),this['disposeWithMe']({'dispose':()=>_0x7961cd[_0x128c5d(0x3c7)]()});}[_0x275262(0x416)](_0x53aad0,_0x31625a,_0x26b542,_0x25a230,_0x351040){const _0x46ed91=_0x275262;let _0x3c2403=this[_0x46ed91(0x41a)]['getDrawingData'](_0x53aad0,_0x31625a);if(!_0x3c2403[_0x26b542])return;let _0x22f33f={..._0x3c2403[_0x26b542],'prstGeom':_0x25a230,'adjustValues':_0x351040};this[_0x46ed91(0x41a)][_0x46ed91(0x230)]([_0x22f33f]);}};B=A([k(0x0,(0x0,a[_0x275262(0x15b)])(d[_0x275262(0x115)])),k(0x1,(0x0,a[_0x275262(0x15b)])(s[_0x275262(0x3a2)]))],B);const le='sheet.shape.picker.component',ue='sheet.image-clip.shape-picker.component';function de({onShapeClick:_0x58f6bb,excludeGroups:_0x7fee02}){const _0x39db41=_0x275262;return(0x0,p[_0x39db41(0x182)])(e['ShapePickerPanel'],{'excludeGroups':_0x7fee02,'onShapeClick':_0x58f6bb,'scrollContainer':_0x39db41(0x1dc)});}function fe(){const _0x26ec4e=_0x275262;let _0x1256b9=(0x0,t['useDependency'])(s[_0x26ec4e(0x3a2)]),_0x48386b=(0x0,t['useDependency'])(B);return(0x0,p[_0x26ec4e(0x182)])(e[_0x26ec4e(0x3e2)],{'buttonLabel':_0x26ec4e(0xe0),'excludeGroups':[e['ShapeGroupEnum'][_0x26ec4e(0x20f)]],'onShapeClick':_0x5318bd=>{const _0x1d6a32=_0x26ec4e;let _0x88193e=_0x1256b9[_0x1d6a32(0x304)]()[_0x1d6a32(0x336)](_0x5421d8=>_0x5421d8[_0x1d6a32(0x133)]===a[_0x1d6a32(0x3cc)]['DRAWING_IMAGE']);if(!_0x88193e)return;let {unitId:_0x31c108,subUnitId:_0x3371bf,drawingId:_0x33f28c}=_0x88193e;_0x48386b[_0x1d6a32(0x416)](_0x31c108,_0x3371bf,_0x33f28c,_0x5318bd['type']);}});}function pe(){const _0xf6eb12=_0x275262;let _0x25f8b6=(0x0,t[_0xf6eb12(0x1fa)])(s[_0xf6eb12(0x3a2)]),_0x4c5fa6=(0x0,t[_0xf6eb12(0x1fa)])(B);return(0x0,p[_0xf6eb12(0x182)])(e[_0xf6eb12(0x3e2)],{'buttonLabel':_0xf6eb12(0xe0),'excludeGroups':[e['ShapeGroupEnum'][_0xf6eb12(0x20f)]],'DropdownComponent':f['MobileDropdown'],'onShapeClick':_0x479907=>{const _0x3f17ff=_0xf6eb12;let _0x19e1c4=_0x25f8b6['getFocusDrawings']()[_0x3f17ff(0x336)](_0x1949de=>_0x1949de['drawingType']===a[_0x3f17ff(0x3cc)]['DRAWING_IMAGE']);if(!_0x19e1c4)return;let {unitId:_0x265f6b,subUnitId:_0x339418,drawingId:_0x49e718}=_0x19e1c4;_0x4c5fa6[_0x3f17ff(0x416)](_0x265f6b,_0x339418,_0x49e718,_0x479907[_0x3f17ff(0x268)]);}});}function me(){const _0x27d564=_0x275262;let _0x4eeaa4=(0x0,t[_0x27d564(0x1fa)])(t[_0x27d564(0x23b)]),_0x4b6059=(0x0,t[_0x27d564(0x1fa)])(s[_0x27d564(0x3a2)]),_0x53184a=(0x0,t[_0x27d564(0x1fa)])(a[_0x27d564(0x30c)]),_0x302042=_0x4b6059[_0x27d564(0x304)]()[0x0],_0x534e70=_0x302042?_0x53184a[_0x27d564(0x2d1)](_0x302042[_0x27d564(0x19e)]):void 0x0,_0x4f9825=_0x534e70===a[_0x27d564(0x412)]['UNIVER_DOC']?_0x27d564(0x151):_0x534e70===a[_0x27d564(0x412)][_0x27d564(0x306)]?ue:void 0x0,_0x5a7d0e=_0x4f9825?_0x4eeaa4[_0x27d564(0x421)](_0x4f9825):void 0x0;return _0x5a7d0e?(0x0,p['jsx'])(_0x5a7d0e,{}):null;}function he(){const _0x1b6e5b=_0x275262;let _0xc06a6=(0x0,t[_0x1b6e5b(0x1fa)])(a['ICommandService']);return(0x0,p['jsx'])(de,{'onShapeClick':_0x3c553c=>{const _0xb1e2b2=_0x1b6e5b;_0xc06a6[_0xb1e2b2(0x136)](P['id'],{'value':_0x3c553c[_0xb1e2b2(0x268)],'enhanceParams':{'endArrow':_0x3c553c[_0xb1e2b2(0x2f4)],'startArrow':_0x3c553c[_0xb1e2b2(0x405)],'horizontal':_0x3c553c[_0xb1e2b2(0x107)],'vertical':_0x3c553c[_0xb1e2b2(0xe1)]}});}});}function ge(){return(0x0,p['jsx'])(he,{});}function _e(_0xdf08a6){const _0x12aac3=_0x275262;let _0x9a8134=_0xdf08a6['get'](a[_0x12aac3(0x30c)]);return{'id':P['id'],'type':t[_0x12aac3(0xde)][_0x12aac3(0x3f7)],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x12aac3(0x1d6),'tooltip':_0x12aac3(0x10e),'activated$':(0x0,l['deriveStateFromActiveSheet$'])(_0x9a8134,!0x1,()=>new u['Observable'](_0x4eb0f2=>{const _0x434cbb=_0x12aac3;_0x4eb0f2[_0x434cbb(0x25b)](!0x1);})),'hidden$':(0x0,t[_0x12aac3(0x145)])(_0xdf08a6,a[_0x12aac3(0x412)]['UNIVER_SHEET']),'disabled$':(0x0,l[_0x12aac3(0x126)])(_0xdf08a6)};}function ve(_0x56cff4){const _0x2df50=_0x275262;let _0x4c5d22=_0x56cff4[_0x2df50(0x421)](a[_0x2df50(0x30c)]);return{'id':ae['id'],'type':t[_0x2df50(0xde)][_0x2df50(0x3e3)],'icon':_0x2df50(0x3a6),'title':_0x2df50(0x28b),'tooltip':_0x2df50(0x28b),'activated$':(0x0,l[_0x2df50(0x17c)])(_0x4c5d22,!0x1,()=>new u[(_0x2df50(0x3af))](_0x4e4df8=>{const _0x58d1cc=_0x2df50;_0x4e4df8[_0x58d1cc(0x25b)](!0x1);})),'hidden$':(0x0,t[_0x2df50(0x145)])(_0x56cff4,a[_0x2df50(0x412)][_0x2df50(0x306)]),'disabled$':(0x0,l[_0x2df50(0x126)])(_0x56cff4)};}const ye=_0x275262(0xc4),be=_0x275262(0x245);function xe(_0x44eec6){const _0x1e2c09=_0x275262;let _0x8171fb=_0x44eec6[_0x1e2c09(0x421)](s['IDrawingManagerService'])[_0x1e2c09(0x304)]();return _0x8171fb[_0x1e2c09(0x385)]===0x1&&_0x8171fb[0x0][_0x1e2c09(0x133)]===a[_0x1e2c09(0x3cc)][_0x1e2c09(0x2bd)]?_0x8171fb[0x0]:null;}function Se(_0x472d96){const _0x53c5d0=_0x275262;let _0x55f168=_0x472d96[_0x53c5d0(0x421)](s[_0x53c5d0(0x3a2)]);return _0x55f168[_0x53c5d0(0xcf)][_0x53c5d0(0xe2)]((0x0,u[_0x53c5d0(0x313)])(_0x55f168[_0x53c5d0(0x304)]()),(0x0,u[_0x53c5d0(0x19f)])(_0x96c7a3=>_0x96c7a3[_0x53c5d0(0x385)]!==0x1||_0x96c7a3[0x0][_0x53c5d0(0x133)]!==a['DrawingTypeEnum'][_0x53c5d0(0x2bd)]));}function Ce(_0x228817){const _0x191909=_0x275262;return{'id':ye,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t[_0x191909(0xde)][_0x191909(0x3e3)],'title':'sheets-shape-ui.flipHorizontal','tooltip':'sheets-shape-ui.flipHorizontal','icon':'FlipHorizontalIcon','hidden$':Se(_0x228817),'params':()=>{const _0x1f3031=_0x191909;let _0x450d6b=xe(_0x228817);return _0x450d6b?{'unitId':_0x450d6b[_0x1f3031(0x19e)],'subUnitId':_0x450d6b[_0x1f3031(0x2a3)],'shapeId':_0x450d6b[_0x1f3031(0x25c)],'flipH':!0x0}:void 0x0;}};}function we(_0x3a1637){const _0x290bd0=_0x275262;return{'id':be,'commandId':i[_0x290bd0(0x229)]['id'],'type':t[_0x290bd0(0xde)][_0x290bd0(0x3e3)],'title':_0x290bd0(0x29a),'tooltip':_0x290bd0(0x29a),'icon':_0x290bd0(0x143),'hidden$':Se(_0x3a1637),'params':()=>{const _0x1d49a5=_0x290bd0;let _0x73d283=xe(_0x3a1637);return _0x73d283?{'unitId':_0x73d283[_0x1d49a5(0x19e)],'subUnitId':_0x73d283[_0x1d49a5(0x2a3)],'shapeId':_0x73d283['drawingId'],'flipV':!0x0}:void 0x0;}};}const Te=_0x275262(0x102),Ee='sheets-shape-ui.shape-format.style-ribbon-control',De=_0x275262(0x390),Oe=_0x275262(0x3ba);function ke(){const _0x5a31c0=_0x275262;let _0x13fe71=(0x0,t[_0x5a31c0(0x1fa)])(a[_0x5a31c0(0x173)]),_0x1bd2cf=(0x0,t[_0x5a31c0(0x1fa)])(s[_0x5a31c0(0x3a2)]),_0x2de80e=(0x0,t[_0x5a31c0(0x1fa)])(i[_0x5a31c0(0xf3)]),_0x47d878=()=>{const _0x65c690=_0x5a31c0;var _0x278e15;let _0x428839=_0x1bd2cf['getFocusDrawings']();if(_0x428839[_0x65c690(0x385)]!==0x1||((_0x278e15=_0x428839[0x0])==null?void 0x0:_0x278e15[_0x65c690(0x133)])!==a[_0x65c690(0x3cc)][_0x65c690(0x2bd)])return null;let {unitId:_0x44b4bd,subUnitId:_0x454d50,drawingId:_0x27bf18}=_0x428839[0x0],_0x46c66d=_0x2de80e[_0x65c690(0x375)](_0x44b4bd,_0x454d50,_0x27bf18),_0x237d59=_0x2de80e[_0x65c690(0x3b5)](_0x44b4bd,_0x454d50,_0x27bf18);return _0x46c66d===void 0x0||!_0x237d59?null:{'unitId':_0x44b4bd,'subUnitId':_0x454d50,'drawingId':_0x27bf18,'shapeType':_0x46c66d,'shapeData':_0x237d59};},_0x5c2de6=(0x0,t[_0x5a31c0(0x351)])(()=>new u[(_0x5a31c0(0x3af))](_0x290fe5=>{const _0x40120d=_0x5a31c0;let _0xa01a8=()=>_0x290fe5[_0x40120d(0x25b)](_0x47d878()),_0x53da17=_0x1bd2cf[_0x40120d(0xcf)]['subscribe'](_0xa01a8),_0x112400=_0x13fe71[_0x40120d(0x3cf)](_0x552135=>{const _0xe6bb9b=_0x40120d;_0x552135['id']===i[_0xe6bb9b(0x3d0)]['id']&&_0xa01a8();});return _0xa01a8(),()=>{const _0x25033a=_0x40120d;_0x53da17[_0x25033a(0x186)](),_0x112400[_0x25033a(0x24e)]();};}),_0x47d878(),!0x1,[_0x13fe71,_0x1bd2cf,_0x2de80e]);return{'selection':_0x5c2de6,'updateShapeData':_0x1c1e43=>{const _0x48b90b=_0x5a31c0;_0x5c2de6&&C(_0x13fe71,_0x5c2de6[_0x48b90b(0x19e)],_0x5c2de6[_0x48b90b(0x2a3)],_0x5c2de6['drawingId'],{'oldShapeData':_0x5c2de6['shapeData']},_0x1c1e43);}};}function Ae(){const _0x1409ca=_0x275262;let {selection:_0x46d615,updateShapeData:_0x4a9608}=ke();return _0x46d615?(0x0,p['jsx'])(e[_0x1409ca(0x168)],{'shapeData':_0x46d615[_0x1409ca(0x3f8)],'shapeType':_0x46d615['shapeType'],'onUpdateShapeData':_0x4a9608}):null;}function _0x4387(_0x1bf076,_0x2de6e3){_0x1bf076=_0x1bf076-0xc0;const _0x102a3b=_0x102a();let _0x43875c=_0x102a3b[_0x1bf076];return _0x43875c;}function je(){const _0x1f39b2=_0x275262;let _0x4a4472=(0x0,t[_0x1f39b2(0x1fa)])(a[_0x1f39b2(0x173)]),_0x331f77=(0x0,t[_0x1f39b2(0x1fa)])(a[_0x1f39b2(0x413)]),{selection:_0x15040e}=ke();return _0x15040e?(0x0,p['jsx'])(e[_0x1f39b2(0x439)],{'type':(0x0,r[_0x1f39b2(0x180)])(_0x15040e[_0x1f39b2(0x3f8)]),'ariaLabel':_0x331f77['t'](_0x1f39b2(0x2e3)),'activePresetId':(0x0,r[_0x1f39b2(0x169)])(_0x15040e['shapeData']),'onSelect':_0x100c4e=>_0x4a4472[_0x1f39b2(0x136)](se['id'],{'presetId':_0x100c4e})}):null;}function Me(){const _0x389330=_0x275262;let {selection:_0x2279fc,updateShapeData:_0xae9f5}=ke();return _0x2279fc?(0x0,p[_0x389330(0x182)])(e[_0x389330(0x20e)],{'fontFamilyPopupDataComponent':_0x389330(0x189),'shapeData':_0x2279fc['shapeData'],'onUpdateShapeData':_0xae9f5}):null;}function Ne(){const _0x49965b=_0x275262;var _0x4411bc;let {selection:_0x1aae8f,updateShapeData:_0x28b97f}=ke(),_0x4438bb=(0x0,e[_0x49965b(0x22f)])({'hostType':a[_0x49965b(0x412)][_0x49965b(0x306)],'unitId':(_0x1aae8f==null?void 0x0:_0x1aae8f[_0x49965b(0x19e)])??'','subUnitId':(_0x1aae8f==null?void 0x0:_0x1aae8f[_0x49965b(0x2a3)])??'','shapeId':(_0x1aae8f==null?void 0x0:_0x1aae8f[_0x49965b(0x25c)])??'','shapeData':_0x1aae8f==null?void 0x0:_0x1aae8f['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x49965b(0x13d),'onUpdateBinding':_0x5a1ca9=>_0x28b97f({'formulaBinding':_0x5a1ca9})}),_0x179a56=((_0x4411bc=_0x4438bb[_0x49965b(0x15a)])==null?void 0x0:_0x4411bc[_0x49965b(0x1d8)](_0x5879e7=>_0x5879e7[_0x49965b(0x34e)])['filter'](_0x5011e5=>_0x5011e5[_0x49965b(0x250)]!==!0x1))??[];return _0x1aae8f!=null&&_0x1aae8f['shapeData'][_0x49965b(0x327)]?(0x0,p[_0x49965b(0x182)])(e[_0x49965b(0x2f7)],{'actions':_0x179a56,'panel':_0x4438bb[_0x49965b(0x2fa)]}):null;}const Pe='sheets-shape-ui.ribbon.shape-format.style-control',Fe=_0x275262(0x275),Ie=_0x275262(0x355),Le='sheets-shape-ui.ribbon.shape-format.arrange-forward',Re='sheets-shape-ui.ribbon.shape-format.arrange-backward',ze=_0x275262(0x3f5),Be=_0x275262(0x1ef);function Ve(_0x422311){const _0x282abc=_0x275262;let _0x3373ac=_0x422311[_0x282abc(0x421)](a['ICommandService']),_0x5263ae=_0x422311[_0x282abc(0x421)](s['IDrawingManagerService']),_0x3bc5cb=_0x422311[_0x282abc(0x421)](i[_0x282abc(0xf3)]);return new u[(_0x282abc(0x3af))](_0xad0e18=>{const _0x2d4d95=_0x282abc;let _0x4cea68=()=>{const _0x41fdc9=_0x4387;let _0x1e06c7=V(_0x422311),_0x1c0fe9=_0x1e06c7?_0x3bc5cb[_0x41fdc9(0x3b5)](_0x1e06c7[_0x41fdc9(0x19e)],_0x1e06c7[_0x41fdc9(0x2a3)],_0x1e06c7['drawingId']):null;_0xad0e18[_0x41fdc9(0x25b)](_0x1c0fe9?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x1c0fe9)??'':'');},_0xc800da=_0x5263ae[_0x2d4d95(0xcf)][_0x2d4d95(0x279)](_0x4cea68),_0x50ed23=_0x3373ac[_0x2d4d95(0x3cf)](_0x38e6f2=>{const _0x43a8ad=_0x2d4d95;_0x38e6f2['id']===i[_0x43a8ad(0x3d0)]['id']&&_0x4cea68();});return _0x4cea68(),()=>{const _0x29a4a3=_0x2d4d95;_0xc800da[_0x29a4a3(0x186)](),_0x50ed23[_0x29a4a3(0x24e)]();};});}function V(_0x2806ba){const _0x51d43e=_0x275262;var _0x11c318;let _0x3e8d30=_0x2806ba['get'](s[_0x51d43e(0x3a2)])['getFocusDrawings']();return _0x3e8d30[_0x51d43e(0x385)]===0x1&&((_0x11c318=_0x3e8d30[0x0])==null?void 0x0:_0x11c318[_0x51d43e(0x133)])===a[_0x51d43e(0x3cc)][_0x51d43e(0x2bd)]?_0x3e8d30[0x0]:null;}function He(_0x56cbd7,_0x5561c8=!0x1){const _0x45a8bf=_0x275262;let _0x270034=_0x56cbd7[_0x45a8bf(0x421)](a[_0x45a8bf(0x173)]),_0x1eb3d1=_0x56cbd7[_0x45a8bf(0x421)](s[_0x45a8bf(0x3a2)]),_0x401261=_0x56cbd7['get'](i[_0x45a8bf(0xf3)]);return new u[(_0x45a8bf(0x3af))](_0x6a3425=>{const _0x39e680=_0x45a8bf;let _0x10cf5a=()=>{const _0x1868b5=_0x4387;let _0x177d30=V(_0x56cbd7);if(!_0x177d30){_0x6a3425[_0x1868b5(0x25b)](!0x0);return;}let _0x20204f=_0x401261[_0x1868b5(0x3b5)](_0x177d30[_0x1868b5(0x19e)],_0x177d30[_0x1868b5(0x2a3)],_0x177d30[_0x1868b5(0x25c)]);_0x6a3425[_0x1868b5(0x25b)](!_0x20204f||_0x5561c8&&_0x20204f[_0x1868b5(0x327)]==null);},_0x4be069=_0x1eb3d1['focus$'][_0x39e680(0x279)](_0x10cf5a),_0x491294=_0x270034[_0x39e680(0x3cf)](_0x34f0e9=>{const _0x165452=_0x39e680;_0x34f0e9['id']===i[_0x165452(0x3d0)]['id']&&_0x10cf5a();});return _0x10cf5a(),()=>{const _0x4eb5c3=_0x39e680;_0x4be069[_0x4eb5c3(0x186)](),_0x491294['dispose']();};});}function Ue(_0x4c4c28){const _0x53d1e9=_0x275262;let _0x8d4301=_0x4c4c28[_0x53d1e9(0x421)](s['IDrawingManagerService']),_0x392e9b=_0x4c4c28[_0x53d1e9(0x421)](i[_0x53d1e9(0xf3)]);return _0x8d4301[_0x53d1e9(0xcf)][_0x53d1e9(0xe2)]((0x0,u['startWith'])(_0x8d4301[_0x53d1e9(0x304)]()),(0x0,u[_0x53d1e9(0x19f)])(()=>{const _0x51df35=_0x53d1e9;let _0x30194d=V(_0x4c4c28),_0x36caf8=_0x30194d?_0x392e9b[_0x51df35(0x375)](_0x30194d[_0x51df35(0x19e)],_0x30194d[_0x51df35(0x2a3)],_0x30194d['drawingId']):void 0x0;return _0x36caf8===void 0x0||(0x0,n[_0x51df35(0x265)])(_0x36caf8);}));}function We(_0x8173b){const _0x38154e=_0x275262;return{'id':se['id'],'type':t[_0x38154e(0xde)]['SELECTOR'],'icon':_0x38154e(0x3ca),'title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x38154e(0x396),'selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x8173b),'hidden$':He(_0x8173b)};}function Ge(_0x381860){const _0x3c2a83=_0x275262;return{'id':ce['id'],'type':t[_0x3c2a83(0xde)][_0x3c2a83(0x3f7)],'icon':_0x3c2a83(0x1d6),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3c2a83(0x40b),'slot':!0x0,'selections':[{'label':{'name':e[_0x3c2a83(0x324)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x381860)};}function Ke(_0x3ca97a,_0x42a5f2,_0x543b08=!0x1){const _0x27fbc5=_0x275262;return _0x22cf35=>({'id':_0x3ca97a,'type':t[_0x27fbc5(0xde)][_0x27fbc5(0x3e3)],'label':{'name':_0x42a5f2,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x22cf35,_0x543b08)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x72a12,_0x39bd54,_0x402fbe,_0x39cd6c){const _0x58ed86=_0x275262;return _0x1b5fdf=>({'id':_0x72a12,'commandId':m['SetDrawingArrangeCommand']['id'],'type':t[_0x58ed86(0xde)][_0x58ed86(0x3e3)],'icon':_0x402fbe,'title':_0x39cd6c,'tooltip':_0x39cd6c,'hidden$':He(_0x1b5fdf),'params':()=>{const _0x53cae7=_0x58ed86;let _0x29b0ac=V(_0x1b5fdf);return _0x29b0ac?{'unitId':_0x29b0ac['unitId'],'subUnitId':_0x29b0ac[_0x53cae7(0x2a3)],'drawingIds':[_0x29b0ac[_0x53cae7(0x25c)]],'arrangeType':_0x39bd54}:void 0x0;}});}const Ze=Xe(Le,a[_0x275262(0x206)][_0x275262(0x183)],_0x275262(0x30f),_0x275262(0x1fe)),Qe=Xe(Re,a[_0x275262(0x206)][_0x275262(0x388)],_0x275262(0x249),'shape-editor-ui.arrange.backward'),$e=Xe(ze,a[_0x275262(0x206)]['front'],_0x275262(0xeb),_0x275262(0x395)),et=Xe(Be,a['ArrangeTypeEnum']['back'],'BottomIcon',_0x275262(0xfa));function tt(_0x2984b1){const _0x47f3b7=_0x275262;return{'id':z['id'],'type':t['MenuItemType']['BUTTON'],'icon':'ShapeFormatSettingIcon','title':_0x47f3b7(0x37c),'tooltip':_0x47f3b7(0x37c),'hidden$':He(_0x2984b1),'params':()=>{const _0x4638a3=_0x47f3b7;let _0x50c029=V(_0x2984b1);return _0x50c029?{'unitId':_0x50c029[_0x4638a3(0x19e)],'subUnitId':_0x50c029['subUnitId'],'drawingId':_0x50c029[_0x4638a3(0x25c)]}:void 0x0;}};}const nt={[t[_0x275262(0x161)]['RIBBON']]:{[R]:{'order':0x64,'title':_0x275262(0x37c),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e[_0x275262(0x301)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x275262(0x379)]}}}}},rt={[t[_0x275262(0x2c3)][_0x275262(0x266)]]:{[P['id']]:{'order':0x4,'menuItemFactory':_e}}},it={...rt,[t['RibbonInsertGroup'][_0x275262(0x121)]]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t['ContextMenuPosition'][_0x275262(0x42b)]]:{[t[_0x275262(0x201)][_0x275262(0x121)]]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at='@univerjs-pro/sheets-shape-ui',ot=_0x275262(0x404);const st={'id':_0x275262(0xf6),'type':a['CommandType'][_0x275262(0x2f6)],'handler'(_0x27b7d5,_0x50827f){const _0x43306c=_0x275262;return _0x50827f?(_0x27b7d5[_0x43306c(0x421)](e[_0x43306c(0x2ef)])['open'](_0x50827f['mode'],{'hostType':a[_0x43306c(0x412)][_0x43306c(0x306)],'shapeId':_0x50827f[_0x43306c(0x25c)],'subUnitId':_0x50827f[_0x43306c(0x2a3)],'unitId':_0x50827f[_0x43306c(0x19e)]}),!0x0):!0x1;}},ct=_0x275262(0x10d),lt={};let ut=class extends a['Disposable']{constructor(_0x2e5ba5,_0x56e479,_0x2ad2a1,_0x169a08,_0x1ccb96){const _0x2aa5d6=_0x275262;super(),this[_0x2aa5d6(0x2a8)]=_0x2e5ba5,this['_drawingManagerService']=_0x56e479,this[_0x2aa5d6(0x2c5)]=_0x2ad2a1,this['_univerInstanceService']=_0x169a08,this[_0x2aa5d6(0x2a0)]=_0x1ccb96,E(this,_0x2aa5d6(0x3be),null),E(this,_0x2aa5d6(0x309),null),E(this,'_subUnitId',null),E(this,_0x2aa5d6(0x2b6),void 0x0),E(this,'_shapes',[]),E(this,_0x2aa5d6(0x3fb),0x0),E(this,_0x2aa5d6(0x1d3),0x0),E(this,_0x2aa5d6(0x1b9),0x0),E(this,'_baseHeight',0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x2aa5d6(0x291),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,_0x2aa5d6(0x3a5),void 0x0),E(this,_0x2aa5d6(0x146),!0x1),this[_0x2aa5d6(0x1b1)](),this['_registerMoveHandler']();}['clearAdjustControls'](){const _0x248c05=_0x275262;this[_0x248c05(0x25f)]();}[_0x275262(0x1c9)](){const _0x5a036b=_0x275262;this[_0x5a036b(0x25f)](),this[_0x5a036b(0x27d)](!0x0);}['_getOrCreateShapeModel'](_0x3bc5a9,_0x38c3c9,_0x2e218e,_0x370990){const _0x2b3a95=_0x275262;let _0x5071b6=_0x3bc5a9;if(_0x5071b6!==n[_0x2b3a95(0x295)][_0x2b3a95(0x420)]&&_0x3bc5a9!=='custom')try{let _0x340175=new n['ShapeModel'](_0x5071b6,'clip-adj-'+_0x3bc5a9);return _0x370990&&_0x340175[_0x2b3a95(0x2e0)]({'adjustValues':_0x370990},!0x0),_0x340175['updateContext']({'width':_0x38c3c9,'height':_0x2e218e}),_0x340175;}catch{return;}}[_0x275262(0x1af)](_0x428c47,_0x2529b0,_0x3ba153){const _0x44f3ab=_0x275262;let _0x25446e={'unitId':_0x428c47,'subUnitId':_0x2529b0,'drawingId':_0x3ba153},_0x29afe7=this[_0x44f3ab(0x41a)]['getDrawingByParam'](_0x25446e);if(_0x29afe7&&_0x29afe7['drawingType']===a[_0x44f3ab(0x3cc)]['DRAWING_IMAGE'])return _0x29afe7;}['_getImagePrstGeom'](_0x5da580,_0x2e6b0f,_0x28dcc8){const _0xc1cf61=_0x275262;let _0x4a925d=this[_0xc1cf61(0x2c5)][_0xc1cf61(0x30b)](_0x5da580);if(!_0x4a925d)return;let {scene:_0x3007fb}=_0x4a925d,_0x358d0d=(0x0,s[_0xc1cf61(0x18c)])({'unitId':_0x5da580,'subUnitId':_0x2e6b0f,'drawingId':_0x28dcc8}),_0x2e4f69=_0x3007fb[_0xc1cf61(0x15c)](_0x358d0d);if(_0x2e4f69 instanceof c['Image']){let _0x5bab48=_0x2e4f69['prstGeom'];if(_0x5bab48)return{'prstGeom':_0x5bab48,'adjustValues':_0x2e4f69[_0xc1cf61(0x339)]};}}[_0x275262(0x27d)](_0x54733c=!0x1){const _0xbee2bc=_0x275262;if(!this['_unitId']||!this[_0xbee2bc(0x267)]||!this[_0xbee2bc(0x3be)])return;let _0x546a57=this[_0xbee2bc(0x2c5)]['getRenderUnitById'](this[_0xbee2bc(0x309)]);if(!_0x546a57||!_0x546a57['with'](l[_0xbee2bc(0x20c)])[_0xbee2bc(0x32e)]())return;let {scene:_0x1ecb33}=_0x546a57,_0x6cb942=this[_0xbee2bc(0x1af)](this[_0xbee2bc(0x309)],this[_0xbee2bc(0x267)],this[_0xbee2bc(0x3be)]);if(!_0x6cb942)return;let {transform:_0x3c328f}=_0x6cb942;if(!_0x3c328f)return;let {left:_0xe9598a,top:_0x84f994,width:_0x4537a1,height:_0x2a380c,flipX:_0x456e5e,flipY:_0x3a910c,angle:_0x5ae224=0x0}=_0x3c328f;if(_0xe9598a===void 0x0||_0x84f994===void 0x0)return;let _0x138d1d=this[_0xbee2bc(0x1b0)](this[_0xbee2bc(0x309)],this['_subUnitId'],this[_0xbee2bc(0x3be)]);if(!_0x138d1d)return;if(_0x54733c){let _0x9c3475=this[_0xbee2bc(0x386)](_0x138d1d['prstGeom'],_0x4537a1||0x0,_0x2a380c||0x0,_0x138d1d[_0xbee2bc(0x27e)]);if(!_0x9c3475)return;this[_0xbee2bc(0x2b6)]=_0x9c3475['getDrawingPoints']();}let _0x3c593b=this[_0xbee2bc(0x2b6)];if(_0x3c593b&&_0x3c593b[_0xbee2bc(0x385)]!==0x0)for(let _0x1bf121=0x0;_0x1bf121<_0x3c593b[_0xbee2bc(0x385)];_0x1bf121++){let _0x387b91=_0x3c593b[_0x1bf121],_0x44f354=_0x387b91['x'],_0x425ba9=_0x387b91['y'];if(_0x456e5e&&(_0x44f354=(_0x4537a1||0x0)-_0x44f354),_0x3a910c&&(_0x425ba9=(_0x2a380c||0x0)-_0x425ba9),_0x5ae224!==0x0){let _0x4d96d6=(_0x4537a1||0x0)/0x2,_0x395b92=(_0x2a380c||0x0)/0x2,_0x301f5c=_0x5ae224*Math['PI']/0xb4,_0x29c5ab=Math[_0xbee2bc(0x1c6)](_0x301f5c),_0x6924d8=Math[_0xbee2bc(0x312)](_0x301f5c),_0x359132=_0x44f354-_0x4d96d6,_0x13df5c=_0x425ba9-_0x395b92;_0x44f354=_0x4d96d6+(_0x359132*_0x29c5ab-_0x13df5c*_0x6924d8),_0x425ba9=_0x395b92+(_0x359132*_0x6924d8+_0x13df5c*_0x29c5ab);}let _0x1ef5b9={'x':_0x44f354,'y':_0x425ba9,'adjName':_0x387b91['adjName']};this['_addControl'](_0x1ecb33,_0x1ef5b9,_0x1ef5b9[_0xbee2bc(0x10c)],_0xe9598a,_0x84f994,this['_unitId'],this[_0xbee2bc(0x267)]);}}[_0x275262(0x24d)](_0xa6a2e2,_0x5a0454,_0x4d9ead,_0x3bbcdb,_0x4b5f69,_0x5c07f6,_0x2104ca){const _0x7cc73=_0x275262;if(!this[_0x7cc73(0x3be)])return;let _0x453d5c=_0x7cc73(0x294)+this[_0x7cc73(0x3be)]+'-'+_0x4d9ead,_0x4055f3=_0xa6a2e2[_0x7cc73(0x367)](_0x453d5c);if(_0x4055f3){_0x4055f3[_0x7cc73(0x31d)]({'left':_0x5a0454['x']+_0x3bbcdb-n['ShapeDefaultConfig'][_0x7cc73(0x1d5)],'top':_0x5a0454['y']+_0x4b5f69-n[_0x7cc73(0x376)][_0x7cc73(0x1d5)]});return;}let _0x2af074=new O(_0x453d5c,{'left':_0x5a0454['x']+_0x3bbcdb-n[_0x7cc73(0x376)][_0x7cc73(0x1d5)],'top':_0x5a0454['y']+_0x4b5f69-n['ShapeDefaultConfig'][_0x7cc73(0x1d5)],'adjName':_0x4d9ead,'shapeId':this[_0x7cc73(0x3be)],'unitId':_0x5c07f6,'subUnitId':_0x2104ca,'width':n['ShapeDefaultConfig']['adjHandleSize']+0x8,'height':n[_0x7cc73(0x376)]['adjHandleSize']+0x8,'zIndex':c[_0x7cc73(0x436)]+0x1,'evented':!0x0});this[_0x7cc73(0xca)][_0x7cc73(0x130)](_0x2af074),this[_0x7cc73(0x1f4)](_0x2af074,_0xa6a2e2,_0x4d9ead),_0xa6a2e2['addObject'](_0x2af074,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x275262(0x25f)](){const _0x152924=_0x275262;this['_shapes']['length']!==0x0&&(this['_shapes'][_0x152924(0x3b3)](_0x4082dd=>_0x4082dd[_0x152924(0x24e)]()),this[_0x152924(0xca)]=[]);}[_0x275262(0x13a)](_0x235f4f,_0x244e50){const _0x1566ff=_0x275262;var _0x3e192a;let _0x4ea601={'x':0x0,'y':0x0},_0x3971da=this[_0x1566ff(0x2c5)][_0x1566ff(0x30b)](_0x235f4f);if(!_0x3971da||!_0x3971da[_0x1566ff(0x2f5)](l[_0x1566ff(0x20c)])[_0x1566ff(0x1df)](_0x244e50))return _0x4ea601;let _0x167357=_0x3971da[_0x1566ff(0x2f5)](l[_0x1566ff(0x23f)]),_0x5077c3=_0x167357==null?void 0x0:_0x167357['getCurrentScrollState']();if(!_0x5077c3)return _0x4ea601;let _0x346b59=(_0x3e192a=this[_0x1566ff(0x407)][_0x1566ff(0x257)](_0x235f4f))==null?void 0x0:_0x3e192a[_0x1566ff(0xf0)](_0x244e50);if(!_0x346b59)return _0x4ea601;let _0x10914d=(0x0,l['getViewportByCell'])(_0x5077c3[_0x1566ff(0x18a)],_0x5077c3[_0x1566ff(0x343)],_0x3971da[_0x1566ff(0x419)],_0x346b59);return _0x10914d?{'x':_0x10914d[_0x1566ff(0x3d2)],'y':_0x10914d[_0x1566ff(0x300)]}:_0x4ea601;}[_0x275262(0x368)](_0x7d0aae,_0x3bdcce){const _0x273d07=_0x275262;var _0x35c25d;let _0x100354=(_0x35c25d=this[_0x273d07(0x407)][_0x273d07(0x257)](_0x7d0aae))==null?void 0x0:_0x35c25d['getSheetBySheetId'](_0x3bdcce);return(_0x100354==null?void 0x0:_0x100354[_0x273d07(0x1be)]())??0x1;}[_0x275262(0x1f4)](_0x5f016c,_0xd38f87,_0x167e78){const _0x5f50e1=_0x275262;this[_0x5f50e1(0x177)]((0x0,a[_0x5f50e1(0x14b)])(_0x5f016c[_0x5f50e1(0x3ad)][_0x5f50e1(0x401)]((_0xe3bb29,_0x429196)=>{const _0x4cb76b=_0x5f50e1;var _0x53da3b,_0x549b82,_0x58271b;let {unitId:_0x5863f3,subUnitId:_0x29fd53,drawingId:_0x783979}=_0x5f016c[_0x4cb76b(0x18f)](),_0x4cbfd8=this[_0x4cb76b(0x1af)](_0x5863f3,_0x29fd53,_0x783979);if(!(_0x4cbfd8!=null&&_0x4cbfd8['transform']))return;let {left:_0x1890d3,top:_0x41811f,width:_0x39bd6b,height:_0x2f1748}=_0x4cbfd8[_0x4cb76b(0x391)];this['_baseLeft']=_0x1890d3||0x0,this[_0x4cb76b(0x1d3)]=_0x41811f||0x0,this[_0x4cb76b(0x1b9)]=_0x39bd6b||0x0,this[_0x4cb76b(0x30a)]=_0x2f1748||0x0;let _0xe47f11=!!((_0x53da3b=_0x4cbfd8['transform'])!=null&&_0x53da3b[_0x4cb76b(0x387)]),_0x253b02=!!((_0x549b82=_0x4cbfd8[_0x4cb76b(0x391)])!=null&&_0x549b82[_0x4cb76b(0xc3)]),_0x4e0e1d=((_0x58271b=_0x4cbfd8['transform'])==null?void 0x0:_0x58271b[_0x4cb76b(0x3e0)])||0x0,_0x3f53f6=this[_0x4cb76b(0x1b0)](_0x5863f3,_0x29fd53,_0x783979);if(!_0x3f53f6)return;let _0x47645e=this[_0x4cb76b(0x386)](_0x3f53f6[_0x4cb76b(0x362)],this[_0x4cb76b(0x1b9)],this['_baseHeight'],_0x3f53f6[_0x4cb76b(0x27e)]);if(!_0x47645e||(this[_0x4cb76b(0x3ed)]=_0x47645e,this[_0x4cb76b(0x291)]=_0x47645e[_0x4cb76b(0x320)](_0x167e78),!this[_0x4cb76b(0x291)]))return;this[_0x4cb76b(0x2cb)]=!0x0,_0xd38f87['disableObjectsEvent']();let _0x3ece0e=_0x3f53f6[_0x4cb76b(0x362)];this['_adjHandlerPointerMove']=_0xd38f87[_0x4cb76b(0x366)][_0x4cb76b(0x401)]((_0x4f4fec,_0x5bbcdb)=>{const _0x6d37ac=_0x4cb76b;if(!this[_0x6d37ac(0x2cb)])return;let {offsetX:_0x4e14ec,offsetY:_0x4cb177}=_0x4f4fec,_0x388f88=this[_0x6d37ac(0x291)];if(!this['_activeShapeModel']||!_0x388f88)return;_0xd38f87[_0x6d37ac(0x213)](),_0xd38f87[_0x6d37ac(0x30e)](c['CURSOR_TYPE'][_0x6d37ac(0xcd)]);let _0x5672c9={'left':0x0,'top':0x0,'width':this[_0x6d37ac(0x1b9)],'height':this[_0x6d37ac(0x30a)]},_0x550ad0=this[_0x6d37ac(0x13a)](_0x5863f3,_0x29fd53),_0xa7f74a=this['_getZoomRatio'](_0x5863f3,_0x29fd53),_0x5c51bb=_0x4e14ec/_0xa7f74a+_0x550ad0['x']-this['_baseLeft'],_0x21de8a=_0x4cb177/_0xa7f74a+_0x550ad0['y']-this['_baseTop'];if(_0x4e0e1d!==0x0){let _0x273f37=this[_0x6d37ac(0x1b9)]/0x2,_0x3c04b4=this[_0x6d37ac(0x30a)]/0x2,_0x24a912=_0x4e0e1d*Math['PI']/0xb4,_0x5b0680=Math[_0x6d37ac(0x1c6)](_0x24a912),_0x4a3829=Math[_0x6d37ac(0x312)](_0x24a912),_0x228853=_0x5c51bb-_0x273f37,_0x1780b8=_0x21de8a-_0x3c04b4;_0x5c51bb=_0x273f37+(_0x228853*_0x5b0680+_0x1780b8*_0x4a3829),_0x21de8a=_0x3c04b4+(-_0x228853*_0x4a3829+_0x1780b8*_0x5b0680);}_0xe47f11&&(_0x5c51bb=this['_baseWidth']-_0x5c51bb),_0x253b02&&(_0x21de8a=this['_baseHeight']-_0x21de8a);let _0x585fdb=this[_0x6d37ac(0x3ed)][_0x6d37ac(0x340)](_0x5672c9,{'x':_0x5c51bb,'y':_0x21de8a},_0x388f88,_0xe47f11,_0x253b02);if(Object['keys'](_0x585fdb)[_0x6d37ac(0x385)]!==0x0){for(let [_0x2cef04,_0x2a16b1]of Object[_0x6d37ac(0x3fc)](_0x585fdb))this[_0x6d37ac(0x3ed)][_0x6d37ac(0x32f)](_0x2cef04,_0x2a16b1);this[_0x6d37ac(0x3ed)][_0x6d37ac(0x290)]({'width':this[_0x6d37ac(0x1b9)],'height':this[_0x6d37ac(0x30a)]}),this[_0x6d37ac(0x114)](_0x5863f3,_0x29fd53,_0x783979,_0x585fdb),this[_0x6d37ac(0x2b6)]=this[_0x6d37ac(0x3ed)][_0x6d37ac(0x29f)](),this[_0x6d37ac(0x27d)](),_0x5bbcdb[_0x6d37ac(0x25e)]();}}),this[_0x4cb76b(0x3a5)]=_0xd38f87[_0x4cb76b(0x19b)]['subscribeEvent']((_0x15c339,_0x364e3d)=>{const _0x455c79=_0x4cb76b;if(this[_0x455c79(0x427)][_0x455c79(0x186)](),this['_adjHandlerPointerUp'][_0x455c79(0x186)](),_0xd38f87['resetCursor'](),this['_activeShapeModel']){let _0x103001=this[_0x455c79(0x3ed)][_0x455c79(0x26e)](),_0x1b041a={};for(let _0x4ee206 of _0x103001){let _0x23e33b=this[_0x455c79(0x3ed)][_0x455c79(0x2a2)](_0x4ee206);_0x23e33b!==void 0x0&&(_0x1b041a[_0x4ee206]=_0x23e33b);}this[_0x455c79(0x2a0)][_0x455c79(0x416)](_0x5863f3,_0x29fd53,_0x783979,_0x3ece0e,_0x1b041a);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x455c79(0x2cb)]=!0x1,_0x364e3d[_0x455c79(0x25e)](),_0xd38f87[_0x455c79(0x31a)]();}),_0x429196[_0x4cb76b(0x25e)]();})));}['_updateImageAdjValues'](_0x144efd,_0x235e15,_0x59c1a4,_0x44ab0d){const _0x595850=_0x275262;let _0x1acb07=this[_0x595850(0x2c5)][_0x595850(0x30b)](_0x144efd);if(!_0x1acb07)return;let {scene:_0x2c920f}=_0x1acb07,_0x1bb53f=(0x0,s[_0x595850(0x18c)])({'unitId':_0x144efd,'subUnitId':_0x235e15,'drawingId':_0x59c1a4}),_0x1c3716=_0x2c920f[_0x595850(0x15c)](_0x1bb53f);if(_0x1c3716 instanceof c[_0x595850(0x217)]){let _0x2679df=_0x1c3716[_0x595850(0x339)]??{};_0x1c3716[_0x595850(0x19d)]({..._0x2679df,..._0x44ab0d}),_0x1c3716[_0x595850(0x31f)](!0x0);}}['_registerMoveHandler'](){const _0x2784c0=_0x275262;let _0x488469=this['_univerInstanceService'][_0x2784c0(0x2b2)](a[_0x2784c0(0x412)]['UNIVER_SHEET']);this[_0x2784c0(0x177)](_0x488469[_0x2784c0(0xe2)]((0x0,u[_0x2784c0(0xe5)])(_0x1b144e=>_0x1b144e?_0x1b144e['activeSheet$'][_0x2784c0(0xe2)]((0x0,u[_0x2784c0(0xe5)])(_0x2a582d=>{const _0x5b20ad=_0x2784c0;if(!_0x2a582d)return u[_0x5b20ad(0x1ca)];let _0xb0dafd=_0x1b144e[_0x5b20ad(0x111)](),_0x3cf125=this[_0x5b20ad(0x2c5)][_0x5b20ad(0x30b)](_0xb0dafd),_0x5b355a=_0x3cf125==null?void 0x0:_0x3cf125[_0x5b20ad(0x419)];return _0x5b355a?(0x0,u['of'])(_0x5b355a):u[_0x5b20ad(0x1ca)];})):u[_0x2784c0(0x1ca)]))['subscribe'](_0xd4d738=>{const _0x4574c4=_0x2784c0;let _0x50d34e=_0xd4d738[_0x4574c4(0x10b)]();this['disposeWithMe'](_0xd4d738[_0x4574c4(0x366)][_0x4574c4(0x401)](()=>{const _0x573f39=_0x4574c4;this[_0x573f39(0x146)]&&this['_clearControls']();})),this[_0x4574c4(0x177)](_0x50d34e['changeStart$'][_0x4574c4(0x279)](_0x5c87b5=>{const _0x14a6c7=_0x4574c4;let {objects:_0x1c22af}=_0x5c87b5;if(this[_0x14a6c7(0x27d)](),_0x1c22af!==null&&_0x1c22af[_0x14a6c7(0x3f9)]===0x1){let _0x12a8ec=_0x1c22af[_0x14a6c7(0x247)]()['next']()[_0x14a6c7(0x307)];_0x12a8ec instanceof c[_0x14a6c7(0x217)]&&_0x12a8ec[_0x14a6c7(0x362)]&&(this[_0x14a6c7(0x146)]=!0x0);}})),this[_0x4574c4(0x177)](_0x50d34e[_0x4574c4(0x116)][_0x4574c4(0x279)](()=>{const _0x840d7b=_0x4574c4;this[_0x840d7b(0x146)]&&this[_0x840d7b(0x25f)]();})),this['disposeWithMe'](_0xd4d738[_0x4574c4(0x19b)][_0x4574c4(0x401)](()=>{const _0x25b362=_0x4574c4;this[_0x25b362(0x146)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this['disposeWithMe'](_0x50d34e[_0x4574c4(0x281)]['subscribe'](()=>{const _0xdea485=_0x4574c4;if(this[_0xdea485(0x309)]&&this[_0xdea485(0x267)]&&this[_0xdea485(0x3be)]){let _0x514335=this[_0xdea485(0x1b0)](this[_0xdea485(0x309)],this[_0xdea485(0x267)],this[_0xdea485(0x3be)]);if(_0x514335){var _0x1a73c8,_0x4ce0eb;let _0x27a853=this[_0xdea485(0x1af)](this[_0xdea485(0x309)],this['_subUnitId'],this[_0xdea485(0x3be)]),_0x82235=(_0x27a853==null||(_0x1a73c8=_0x27a853[_0xdea485(0x391)])==null?void 0x0:_0x1a73c8[_0xdea485(0x40e)])||0x0,_0x14915b=(_0x27a853==null||(_0x4ce0eb=_0x27a853[_0xdea485(0x391)])==null?void 0x0:_0x4ce0eb[_0xdea485(0x2ad)])||0x0,_0x3f0ee8=this[_0xdea485(0x386)](_0x514335['prstGeom'],_0x82235,_0x14915b,_0x514335['adjustValues']);_0x3f0ee8&&(this[_0xdea485(0x2b6)]=_0x3f0ee8[_0xdea485(0x29f)](),this[_0xdea485(0x25f)](),this[_0xdea485(0x27d)](!0x0));}}}));}));}[_0x275262(0x1b1)](){const _0x23b17c=_0x275262;this[_0x23b17c(0x177)](this['_drawingManagerService']['focus$'][_0x23b17c(0x279)](_0x3b149f=>{const _0x2a8658=_0x23b17c;if(_0x3b149f[_0x2a8658(0x385)]===0x1){let _0x55f425=_0x3b149f[0x0];if(_0x55f425[_0x2a8658(0x133)]===a[_0x2a8658(0x3cc)][_0x2a8658(0x2b4)]){let {unitId:_0x5bfe78,subUnitId:_0x3a2351,drawingId:_0x47c1bc}=_0x55f425,_0x2f96ef=this[_0x2a8658(0x1b0)](_0x5bfe78,_0x3a2351,_0x47c1bc);if(_0x2f96ef){var _0x36bf78,_0x546dc9;this[_0x2a8658(0x3be)]=_0x47c1bc,this['_unitId']=_0x5bfe78,this['_subUnitId']=_0x3a2351;let _0x1fd29f=this['_getImageDrawingInfo'](_0x5bfe78,_0x3a2351,_0x47c1bc),_0x2056a0=(_0x1fd29f==null||(_0x36bf78=_0x1fd29f[_0x2a8658(0x391)])==null?void 0x0:_0x36bf78[_0x2a8658(0x40e)])||0x0,_0x4233f1=(_0x1fd29f==null||(_0x546dc9=_0x1fd29f[_0x2a8658(0x391)])==null?void 0x0:_0x546dc9[_0x2a8658(0x2ad)])||0x0,_0xf6b788=this[_0x2a8658(0x386)](_0x2f96ef[_0x2a8658(0x362)],_0x2056a0,_0x4233f1,_0x2f96ef[_0x2a8658(0x27e)]);_0xf6b788&&(this[_0x2a8658(0x2b6)]=_0xf6b788['getDrawingPoints']()),this[_0x2a8658(0x25f)](),this['_createControls'](!0x0);}else this[_0x2a8658(0x342)]();}else this[_0x2a8658(0x342)]();}else this['_resetState']();})),this[_0x23b17c(0x177)](this['_drawingManagerService']['update$'][_0x23b17c(0x279)](_0x5950b2=>{const _0x2ac4f2=_0x23b17c;if(_0x5950b2['length']===0x1){let _0x33af2b=_0x5950b2[0x0],_0xb0fc5c=this[_0x2ac4f2(0x41a)][_0x2ac4f2(0x125)](_0x33af2b);(_0xb0fc5c==null?void 0x0:_0xb0fc5c[_0x2ac4f2(0x133)])===a['DrawingTypeEnum'][_0x2ac4f2(0x2b4)]&&this[_0x2ac4f2(0x3be)]===_0x33af2b[_0x2ac4f2(0x25c)]&&(this[_0x2ac4f2(0x25f)](),this[_0x2ac4f2(0x27d)](!0x0));}})),this[_0x23b17c(0x177)](this[_0x23b17c(0x41a)][_0x23b17c(0xd6)][_0x23b17c(0x279)](_0x551bd5=>{const _0x2f24cc=_0x23b17c;for(let _0x1f25fa of _0x551bd5)this[_0x2f24cc(0x3be)]===_0x1f25fa['drawingId']&&this['_resetState']();}));}[_0x275262(0x342)](){const _0x193ac6=_0x275262;this['_activeImageId']=null,this[_0x193ac6(0x309)]=null,this['_subUnitId']=null,this[_0x193ac6(0x2b6)]=void 0x0,this['_clearControls']();}};ut=A([k(0x1,s[_0x275262(0x3a2)]),k(0x2,(0x0,a[_0x275262(0x15b)])(c['IRenderManagerService'])),k(0x3,a[_0x275262(0x30c)]),k(0x4,(0x0,a[_0x275262(0x15b)])(B))],ut);function dt(_0x219c5b){return _0x219c5b['trim']()||void 0x0;}function ft(_0x49bb3f,_0x287eee,_0xc17059){const _0x5989f3=_0x275262;var _0x1652a7;return((_0x1652a7=_0x49bb3f['name'])==null?void 0x0:_0x1652a7[_0x5989f3(0x10a)]())||_0xc17059['t']('drawing-ui.objectListPanel.typeNames.'+(0x0,e['getDrawingTypeNameKey'])(_0x49bb3f[_0x5989f3(0x133)]))+'\x20'+(_0x287eee+0x1);}function pt({PanelComponent:_0x81f840=d[_0x275262(0xc1)]}){const _0x59733a=_0x275262;var _0x42c434;let _0x50ad9b=(0x0,t[_0x59733a(0x1fa)])(a[_0x59733a(0x413)]),_0x318e4e={'title':_0x50ad9b['t']('drawing-ui.objectListPanel.title'),'empty':_0x50ad9b['t'](_0x59733a(0x22a)),'showAll':_0x50ad9b['t'](_0x59733a(0x38c)),'hideAll':_0x50ad9b['t'](_0x59733a(0x191)),'lockAll':_0x50ad9b['t'](_0x59733a(0x26b)),'unlockAll':_0x50ad9b['t'](_0x59733a(0x22d)),'moveForward':_0x50ad9b['t'](_0x59733a(0x220)),'moveBackward':_0x50ad9b['t'](_0x59733a(0x3d3)),'close':_0x50ad9b['t'](_0x59733a(0x16a)),'show':_0x50ad9b['t']('drawing-ui.objectListPanel.show'),'hide':_0x50ad9b['t'](_0x59733a(0x332)),'lock':_0x50ad9b['t'](_0x59733a(0x210)),'unlock':_0x50ad9b['t'](_0x59733a(0x2e2)),'lockHint':_0x50ad9b['t'](_0x59733a(0x434)),'unlockHint':_0x50ad9b['t'](_0x59733a(0x1a4)),'name':_0x50ad9b['t'](_0x59733a(0x226)),'nameInput':_0x50ad9b['t'](_0x59733a(0x263)),'description':_0x50ad9b['t'](_0x59733a(0x158)),'descriptionPlaceholder':_0x50ad9b['t'](_0x59733a(0x3a4)),'details':_0x50ad9b['t'](_0x59733a(0xfb)),'noSelection':_0x50ad9b['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x50ad9b['t'](_0x59733a(0x260)),'expand':_0x50ad9b['t'](_0x59733a(0x34d)),'collapse':_0x50ad9b['t'](_0x59733a(0xf7)),'dragToReorder':_0x50ad9b['t'](_0x59733a(0x276)),'search':_0x50ad9b['t'](_0x59733a(0x43c)),'filterAll':_0x50ad9b['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x50ad9b['t'](_0x59733a(0x24c)),'filterLocked':_0x50ad9b['t'](_0x59733a(0x20b)),'sectionCanvas':_0x50ad9b['t'](_0x59733a(0x193)),'sectionFloating':_0x50ad9b['t'](_0x59733a(0x1b8))},_0x509b1a=(0x0,t[_0x59733a(0x1fa)])(a[_0x59733a(0x173)]),_0x56188b=(0x0,t[_0x59733a(0x1fa)])(a[_0x59733a(0x30c)]),_0x130c64=(0x0,t[_0x59733a(0x1fa)])(m['ISheetDrawingService']),_0x1a82da=(0x0,t['useDependency'])(s[_0x59733a(0x3a2)]),_0x3549ff=(0x0,t[_0x59733a(0x1fa)])(c[_0x59733a(0x2a9)]),[,_0x1b5aa4]=(0x0,b[_0x59733a(0x12d)])(_0x51a70f=>_0x51a70f+0x1,0x0),_0x1f38b8=_0x56188b[_0x59733a(0x253)](a['UniverInstanceType']['UNIVER_SHEET']),_0x1b2c04=(_0x1f38b8==null?void 0x0:_0x1f38b8['getUnitId']())??'',_0x3bb1f2=(_0x1f38b8==null||(_0x42c434=_0x1f38b8[_0x59733a(0x254)]())==null?void 0x0:_0x42c434[_0x59733a(0x37e)]())??'',_0x1d0ac5=(0x0,t['useObservable'])(()=>_0x1a82da[_0x59733a(0xcf)],_0x1a82da['getFocusDrawings'](),!0x1,[_0x1a82da]);(0x0,b[_0x59733a(0x3a7)])(()=>{const _0x34db25=_0x59733a;let _0x172d3d=_0x509b1a[_0x34db25(0x3cf)](()=>_0x1b5aa4());return()=>_0x172d3d[_0x34db25(0x24e)]();},[_0x509b1a]);let _0x40ae6d=_0x1b2c04&&_0x3bb1f2?_0x130c64[_0x59733a(0x3b1)](_0x1b2c04,_0x3bb1f2):{},_0x2af1f7=(_0x1b2c04&&_0x3bb1f2?_0x130c64[_0x59733a(0x231)](_0x1b2c04,_0x3bb1f2):[])[_0x59733a(0x19f)](_0x57d5c1=>_0x40ae6d[_0x57d5c1])[_0x59733a(0x31e)](_0x4975d9=>!!_0x4975d9)['reverse'](),_0x561f49=_0x2af1f7[_0x59733a(0x22c)]((_0x325b5c,_0x3b0459)=>(_0x325b5c[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x3b0459[_0x59733a(0x133)])]+=0x1,_0x325b5c),{'canvas':0x0,'floating':0x0}),_0x36fc05={'canvas':0x0,'floating':0x0},_0x2f2b8a=_0x2af1f7[_0x59733a(0x19f)]((_0x206676,_0x4ac97b)=>{const _0x1cc1c5=_0x59733a;let _0x2b9c8b=(0x0,d[_0x1cc1c5(0x224)])(_0x206676[_0x1cc1c5(0x133)]),_0x82b653=_0x2b9c8b===d['OBJECT_LIST_FLOATING_SECTION_ID'],_0x5f19fc=_0x36fc05[_0x2b9c8b]++;return{'id':_0x206676[_0x1cc1c5(0x25c)],'name':ft(_0x206676,_0x4ac97b,_0x50ad9b),'description':_0x206676['description'],'visible':_0x206676[_0x1cc1c5(0x22e)]!==!0x0,'selectable':_0x206676[_0x1cc1c5(0x1c1)]!==!0x1,'sectionId':_0x2b9c8b,'sectionTitle':_0x82b653?_0x318e4e[_0x1cc1c5(0x1cd)]:_0x318e4e[_0x1cc1c5(0x2d8)],'capabilities':_0x82b653?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x82b653&&_0x5f19fc>0x0,'canMoveBackward':!_0x82b653&&_0x5f19fc<_0x561f49[_0x1cc1c5(0x1fd)]-0x1,'canReorder':!_0x82b653};}),_0x2b3f9c=(0x0,b[_0x59733a(0x286)])(()=>(_0x1d0ac5??[])['filter'](_0x4d4d91=>_0x4d4d91[_0x59733a(0x19e)]===_0x1b2c04&&_0x4d4d91[_0x59733a(0x2a3)]===_0x3bb1f2)['map'](_0x39d815=>_0x39d815['drawingId']),[_0x1d0ac5,_0x3bb1f2,_0x1b2c04]),_0x4c8aae=_0x2b3f9c[_0x2b3f9c['length']-0x1]??null,_0x9d5eee=_0x2ad547=>_0x130c64[_0x59733a(0x125)]({'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x2ad547})??null,_0x341e5f=async _0x2ed164=>{const _0x1206f4=_0x59733a;_0x1b2c04&&_0x2ed164[_0x1206f4(0x385)]&&await _0x509b1a[_0x1206f4(0x136)](m[_0x1206f4(0xc7)]['id'],{'unitId':_0x1b2c04,'drawings':_0x2ed164});},_0x35d39a=async(_0x398388,_0xf0337f)=>{_0x9d5eee(_0x398388)&&await _0x341e5f([{'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x398388,..._0xf0337f}]);},_0x2ffc9e=(_0x264202,_0x32f3de)=>{const _0x4d51dc=_0x59733a;if(!_0x1b2c04||!_0x3bb1f2)return;let _0x33fd29=_0x32f3de?_0x2b3f9c[_0x4d51dc(0x1b2)](_0x264202)?_0x2b3f9c[_0x4d51dc(0x31e)](_0x2504aa=>_0x2504aa!==_0x264202):[..._0x2b3f9c,_0x264202]:[_0x264202];_0x509b1a[_0x4d51dc(0x3dc)](s['SetDrawingSelectedOperation']['id'],_0x33fd29[_0x4d51dc(0x19f)](_0x2acb81=>({'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x2acb81})));let _0x57b56e=_0x33fd29[_0x33fd29['length']-0x1];_0x57b56e?(0x0,e[_0x4d51dc(0x1e7)])(_0x3549ff,{'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x57b56e}):(0x0,e['clearActiveDrawingObjects'])(_0x3549ff,_0x1b2c04);},_0x5450a3=async(_0x47c44a,_0x42b8d1)=>{const _0x22c2a4=_0x59733a;await _0x341e5f(_0x47c44a[_0x22c2a4(0x19f)](_0x3c3944=>_0x9d5eee(_0x3c3944))[_0x22c2a4(0x31e)](_0x3a86bc=>!!_0x3a86bc)[_0x22c2a4(0x31e)](_0x2e8746=>_0x2e8746[_0x22c2a4(0x22e)]!==!0x0!==_0x42b8d1)[_0x22c2a4(0x19f)](_0x4586db=>({'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x4586db['drawingId'],'hidden':!_0x42b8d1})));},_0x3b720d=async(_0xb0d429,_0x11af54)=>{const _0x82f5e7=_0x59733a;await _0x341e5f(_0xb0d429['map'](_0x463630=>_0x9d5eee(_0x463630))[_0x82f5e7(0x31e)](_0x370364=>!!_0x370364)[_0x82f5e7(0x31e)](_0x237523=>_0x237523[_0x82f5e7(0x1c1)]!==!0x1!==_0x11af54)['map'](_0x15fae8=>({'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingId':_0x15fae8['drawingId'],'selectable':_0x11af54})));},_0x1cd596=_0x51f177=>{const _0x598a16=_0x59733a;let _0x7b477b=_0x9d5eee(_0x51f177);if(_0x7b477b)return _0x3b720d([_0x51f177],_0x7b477b[_0x598a16(0x1c1)]===!0x1);},_0x262d78=async(_0x470c8d,_0x335d6f)=>{const _0x4a9705=_0x59733a;var _0x2f83ed;let _0x4157d3=dt(_0x335d6f);(((_0x2f83ed=_0x9d5eee(_0x470c8d))==null?void 0x0:_0x2f83ed[_0x4a9705(0x2c7)])??void 0x0)!==_0x4157d3&&await _0x35d39a(_0x470c8d,{'name':_0x4157d3});},_0x1fc62d=async(_0xe81d06,_0x47bea8)=>{const _0x2769fe=_0x59733a;var _0x19f221;let _0x21a753=dt(_0x47bea8);(((_0x19f221=_0x9d5eee(_0xe81d06))==null?void 0x0:_0x19f221[_0x2769fe(0x2ed)])??void 0x0)!==_0x21a753&&await _0x35d39a(_0xe81d06,{'description':_0x21a753});},_0x1fc37e=async(_0x54dd7e,_0x233790)=>{const _0x304330=_0x59733a;_0x1b2c04&&_0x3bb1f2&&await _0x509b1a[_0x304330(0x136)](m[_0x304330(0x2cf)]['id'],{'unitId':_0x1b2c04,'subUnitId':_0x3bb1f2,'drawingIds':[_0x54dd7e],'arrangeType':_0x233790});};return!_0x1b2c04||!_0x3bb1f2?(0x0,p[_0x59733a(0x182)])(_0x59733a(0x26f),{'className':_0x59733a(0x2aa),'children':_0x318e4e['title']}):(0x0,p[_0x59733a(0x182)])(_0x81f840,{'labels':_0x318e4e,'items':_0x2f2b8a,'selectedIds':_0x2b3f9c,'focusedId':_0x4c8aae,'showHeader':!0x1,'onSelect':_0x2ffc9e,'onSetVisible':_0x5450a3,'onSetSelectable':_0x3b720d,'onCommitName':_0x262d78,'onCommitDescription':_0x1fc62d,'onMoveForward':async _0x254c65=>_0x1fc37e(_0x254c65,a['ArrangeTypeEnum'][_0x59733a(0x183)]),'onMoveBackward':async _0x251a7b=>_0x1fc37e(_0x251a7b,a[_0x59733a(0x206)][_0x59733a(0x388)]),'onToggleSelectable':_0x1cd596});}function mt(){const _0x361a9f=_0x275262;return(0x0,p['jsx'])(pt,{'PanelComponent':d[_0x361a9f(0x33e)]});}let ht=class extends a[_0x275262(0x284)]{constructor(_0x4472ce,_0x168643){const _0x3c4f4b=_0x275262;super(),this[_0x3c4f4b(0x177)](_0x4472ce[_0x3c4f4b(0x215)](I,mt)),this[_0x3c4f4b(0x177)](_0x168643[_0x3c4f4b(0x215)]({'BottomIcon':y[_0x3c4f4b(0x350)],'FlipHorizontalIcon':y['FlipHorizontalIcon'],'FlipVerticalIcon':y[_0x3c4f4b(0x143)],'MoveDownIcon':y[_0x3c4f4b(0x249)],'MoveUpIcon':y[_0x3c4f4b(0x30f)],'ObjectLayersIcon':y[_0x3c4f4b(0x3a6)],'ShapeFormatSettingIcon':y[_0x3c4f4b(0x2b1)],'TopmostIcon':y[_0x3c4f4b(0xeb)]})),this[_0x3c4f4b(0x177)](_0x4472ce[_0x3c4f4b(0x215)](le,ge)),this['disposeWithMe'](_0x4472ce[_0x3c4f4b(0x215)](ue,pe)),_0x4472ce['get'](d[_0x3c4f4b(0x2ae)])||this[_0x3c4f4b(0x177)](_0x4472ce[_0x3c4f4b(0x215)](d[_0x3c4f4b(0x2ae)],me));}};ht=A([k(0x0,(0x0,a[_0x275262(0x15b)])(t['ComponentManager'])),k(0x1,(0x0,a[_0x275262(0x15b)])(t[_0x275262(0x415)]))],ht);let H=class extends a[_0x275262(0x284)]{constructor(_0x29bd72){const _0x2cb8b2=_0x275262;super(),this[_0x2cb8b2(0x3c1)]=_0x29bd72,E(this,_0x2cb8b2(0x17b),new u[(_0x2cb8b2(0x370))](null)),E(this,_0x2cb8b2(0x188),this[_0x2cb8b2(0x17b)][_0x2cb8b2(0x19c)]()),E(this,_0x2cb8b2(0x190),new u[(_0x2cb8b2(0x370))](!0x1)),E(this,_0x2cb8b2(0x1a3),this['_onSavingEditorData$'][_0x2cb8b2(0x19c)]()),E(this,_0x2cb8b2(0x39c),void 0x0),this[_0x2cb8b2(0x177)](this[_0x2cb8b2(0x3c1)]['permissionPointUpdate$'][_0x2cb8b2(0x279)](()=>{const _0xad7a95=_0x2cb8b2;let _0x19283c=this['getEditing']();_0x19283c!=null&&_0x19283c[_0xad7a95(0x250)]&&!this['_canEdit'](_0x19283c)&&this['setEditing'](null);}));}[_0x275262(0x24e)](){const _0x4de2f1=_0x275262;this[_0x4de2f1(0x409)](),this[_0x4de2f1(0x17b)][_0x4de2f1(0x25b)](null),this['_editingParams$'][_0x4de2f1(0x205)](),this[_0x4de2f1(0x190)][_0x4de2f1(0x25b)](!0x1),this[_0x4de2f1(0x190)]['complete'](),super[_0x4de2f1(0x24e)]();}[_0x275262(0x156)](_0xde4dc){const _0xe6779d=_0x275262;(_0xde4dc==null||!_0xde4dc['visible']||this[_0xe6779d(0x119)](_0xde4dc))&&(this['_clearCompletionFrame'](),this[_0xe6779d(0x17b)][_0xe6779d(0x25b)](_0xde4dc),(_0xde4dc==null||_0xde4dc[_0xe6779d(0x250)]&&this[_0xe6779d(0x190)][_0xe6779d(0x3f2)]())&&this[_0xe6779d(0x190)][_0xe6779d(0x25b)](!0x1));}[_0x275262(0x35d)](_0x31f1fa){const _0x217da8=_0x275262;this[_0x217da8(0x190)][_0x217da8(0x25b)](_0x31f1fa);}[_0x275262(0x1d4)](){const _0x498a9d=_0x275262;return this[_0x498a9d(0x17b)][_0x498a9d(0x3f2)]();}[_0x275262(0x119)](_0x70a8cf){const _0x2fbc38=_0x275262;let _0x1bd321=this['_permissionService'][_0x2fbc38(0x1eb)](new o[(_0x2fbc38(0x262))](_0x70a8cf[_0x2fbc38(0x19e)])['id']),_0x464e41=this[_0x2fbc38(0x3c1)][_0x2fbc38(0x1eb)](new o[(_0x2fbc38(0x23e))](_0x70a8cf[_0x2fbc38(0x19e)],_0x70a8cf[_0x2fbc38(0x2a3)])['id']);return((_0x1bd321==null?void 0x0:_0x1bd321[_0x2fbc38(0x307)])??!0x0)&&((_0x464e41==null?void 0x0:_0x464e41[_0x2fbc38(0x307)])??!0x0);}['completeEditing'](_0x36d22f){const _0x42c7c1=_0x275262;let _0x83dee3=this[_0x42c7c1(0x1d4)]();_0x83dee3&&this[_0x42c7c1(0x39c)]===void 0x0&&(this[_0x42c7c1(0x35d)](!0x0),this[_0x42c7c1(0x39c)]=requestAnimationFrame(()=>{const _0x1b554f=_0x42c7c1;this['_completionFrame']=void 0x0,this[_0x1b554f(0x1d4)]()===_0x83dee3&&this['setEditing'](null);}));}[_0x275262(0x409)](){const _0x17877d=_0x275262;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x17877d(0x39c)]),this[_0x17877d(0x39c)]=void 0x0);}[_0x275262(0x398)](){const _0x2f3342=_0x275262;this[_0x2f3342(0x1d4)]()&&this[_0x2f3342(0x156)](null);}};H=A([k(0x0,a[_0x275262(0x39f)])],H);let gt=class extends a[_0x275262(0x284)]{constructor(_0x305b9e,_0x484b2f,_0x1f384e,_0x3f4756,_0x437e43,_0xe844f9){const _0x208d99=_0x275262;super(),this['_context']=_0x305b9e,this['_injector']=_0x484b2f,this[_0x208d99(0x30d)]=_0x1f384e,this[_0x208d99(0x41a)]=_0x3f4756,this['_contextService']=_0x437e43,this[_0x208d99(0x1de)]=_0xe844f9,E(this,_0x208d99(0x334),null),this[_0x208d99(0x118)](),this[_0x208d99(0x41b)](),this[_0x208d99(0x138)]();}[_0x275262(0x118)](){const _0x411ed8=_0x275262;let {scene:_0x5ec1bf}=this['_context'];this[_0x411ed8(0x177)](_0x5ec1bf[_0x411ed8(0x11f)][_0x411ed8(0x401)](_0x1c7713=>{const _0x80a04d=_0x411ed8;let {offsetX:_0x3f2141,offsetY:_0x1cb599}=_0x1c7713,_0x1496e0=_0x5ec1bf[_0x80a04d(0x108)](c['Vector2'][_0x80a04d(0x2d7)]([_0x3f2141,_0x1cb599]));if(_0x1496e0 instanceof D){let _0x4c5251=this[_0x80a04d(0x1de)]['getShapeModel'](_0x1496e0[_0x80a04d(0x19e)],_0x1496e0[_0x80a04d(0x2a3)],_0x1496e0[_0x80a04d(0x330)]);if((0x0,n[_0x80a04d(0x265)])(this['_sheetsShapeService'][_0x80a04d(0x349)](_0x1496e0[_0x80a04d(0x19e)],_0x1496e0['subUnitId'],_0x1496e0[_0x80a04d(0x330)]))||_0x4c5251!=null&&_0x4c5251[_0x80a04d(0x223)]()['formulaBinding'])return;this[_0x80a04d(0x30d)][_0x80a04d(0x156)]({'visible':!0x0,'unitId':_0x1496e0['unitId'],'subUnitId':_0x1496e0[_0x80a04d(0x2a3)],'shapeId':_0x1496e0['shapeId'],'shapeKey':_0x1496e0[_0x80a04d(0x240)]});}}));}[_0x275262(0x41b)](){const _0x497e36=_0x275262;this[_0x497e36(0x177)](this[_0x497e36(0x41a)][_0x497e36(0xcf)]['subscribe'](_0x7e10c2=>{const _0x25de17=_0x497e36;if(_0x7e10c2[_0x25de17(0x385)]===0x1){let _0x4a1b25=_0x7e10c2[0x0],_0x4fa276=this[_0x25de17(0x41a)]['getDrawingByParam'](_0x4a1b25);if((_0x4fa276==null?void 0x0:_0x4fa276['drawingType'])===a[_0x25de17(0x3cc)][_0x25de17(0x2bd)]){var _0x19ad68;let _0x47fd6b=this['_shapeTextEditingService'][_0x25de17(0x1d4)]();if((_0x47fd6b==null?void 0x0:_0x47fd6b['shapeId'])===_0x4a1b25[_0x25de17(0x25c)]&&_0x47fd6b[_0x25de17(0x250)])return;let _0x54fb4f=(0x0,n[_0x25de17(0x265)])(this[_0x25de17(0x1de)]['getShapeType'](_0x4a1b25[_0x25de17(0x19e)],_0x4a1b25['subUnitId'],_0x4a1b25['drawingId'])),_0x2e35a5=!!((_0x19ad68=this[_0x25de17(0x1de)][_0x25de17(0x3c8)](_0x4a1b25[_0x25de17(0x19e)],_0x4a1b25[_0x25de17(0x2a3)],_0x4a1b25[_0x25de17(0x25c)]))!=null&&_0x19ad68['getShapeData']()[_0x25de17(0x327)]);(_0x54fb4f||_0x2e35a5)&&this[_0x25de17(0x30d)][_0x25de17(0x156)](null);}else this['_shapeTextEditingService'][_0x25de17(0x426)]();}else this[_0x25de17(0x30d)][_0x25de17(0x426)]();})),this[_0x497e36(0x177)](this['_drawingManagerService'][_0x497e36(0xd6)][_0x497e36(0x279)](_0x46a557=>{const _0x4665b1=_0x497e36;let _0x274e0d=this[_0x4665b1(0x30d)][_0x4665b1(0x1d4)]();_0x274e0d&&_0x46a557[_0x4665b1(0x225)](_0x57cee4=>_0x57cee4[_0x4665b1(0x25c)]===_0x274e0d[_0x4665b1(0x330)])&&this[_0x4665b1(0x30d)]['setEditing'](null);}));}[_0x275262(0x138)](){const _0x7a5cc5=_0x275262;this[_0x7a5cc5(0x177)](this['_shapeTextEditingService'][_0x7a5cc5(0x188)][_0x7a5cc5(0x279)](_0x14398d=>{const _0x3e7058=_0x7a5cc5;let {scene:_0xf1d24b}=this[_0x3e7058(0x2a8)];if(this[_0x3e7058(0x334)]){let _0xa10f1b=_0xf1d24b[_0x3e7058(0x367)](this[_0x3e7058(0x334)]);_0xa10f1b&&_0xa10f1b[_0x3e7058(0x156)](!0x1);}if(_0x14398d){let _0x51e514=!!_0x14398d['visible'],_0x1af5f9=_0xf1d24b['getObjectIncludeInGroup'](_0x14398d[_0x3e7058(0x2af)]);_0x1af5f9&&(_0x1af5f9[_0x3e7058(0x156)](_0x51e514),this[_0x3e7058(0x334)]=_0x14398d['shapeKey']),this[_0x3e7058(0x167)][_0x3e7058(0x15d)](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x51e514);}else this['_lastEditingShapeKey']=null,this[_0x3e7058(0x167)][_0x3e7058(0x15d)](a[_0x3e7058(0x236)],!0x1);}));}};gt=A([k(0x1,(0x0,a[_0x275262(0x15b)])(a[_0x275262(0x32a)])),k(0x2,(0x0,a[_0x275262(0x15b)])(H)),k(0x3,s[_0x275262(0x3a2)]),k(0x4,a[_0x275262(0x192)]),k(0x5,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)]))],gt);var _t=class extends gt{['_initEvents'](){const _0x2173fa=_0x275262;let {scene:_0x48b935}=this[_0x2173fa(0x2a8)],_0x4f0074=this[_0x2173fa(0x381)][_0x2173fa(0x421)](e[_0x2173fa(0x2ef)]);this[_0x2173fa(0x177)](_0x48b935['onDblclick$'][_0x2173fa(0x401)](_0x5b8503=>{const _0x406e8c=_0x2173fa;let {offsetX:_0xb4b7d1,offsetY:_0x2818b6}=_0x5b8503,_0x448d4e=_0x48b935['pick'](c[_0x406e8c(0x435)]['FromArray']([_0xb4b7d1,_0x2818b6]));if(!(_0x448d4e instanceof D))return;let _0x3b2654=this[_0x406e8c(0x1de)][_0x406e8c(0x3c8)](_0x448d4e[_0x406e8c(0x19e)],_0x448d4e[_0x406e8c(0x2a3)],_0x448d4e[_0x406e8c(0x330)]);(0x0,n[_0x406e8c(0x265)])(this[_0x406e8c(0x1de)][_0x406e8c(0x349)](_0x448d4e[_0x406e8c(0x19e)],_0x448d4e[_0x406e8c(0x2a3)],_0x448d4e[_0x406e8c(0x330)]))||_0x3b2654!=null&&_0x3b2654[_0x406e8c(0x223)]()[_0x406e8c(0x327)]||_0x4f0074[_0x406e8c(0x2d5)](_0x406e8c(0x3e1),{'hostType':a[_0x406e8c(0x412)]['UNIVER_SHEET'],'unitId':_0x448d4e['unitId'],'subUnitId':_0x448d4e[_0x406e8c(0x2a3)],'shapeId':_0x448d4e[_0x406e8c(0x330)]});}));}};const vt={...rt};let U=class extends a['Disposable']{constructor(_0x4a35d9,_0x4dfce1,_0x55a7b0,_0xdd577e,_0x40a6fb,_0x2a8315,_0x2bd4e4,_0x1bb3c4){const _0x5e6b92=_0x275262;super(),this[_0x5e6b92(0xc9)]=_0x4a35d9,this[_0x5e6b92(0x1de)]=_0x4dfce1,this[_0x5e6b92(0x278)]=_0x55a7b0,this[_0x5e6b92(0x41a)]=_0xdd577e,this[_0x5e6b92(0x3db)]=_0x40a6fb,this[_0x5e6b92(0x167)]=_0x2a8315,this[_0x5e6b92(0x2c5)]=_0x2bd4e4,this[_0x5e6b92(0x30d)]=_0x1bb3c4,E(this,_0x5e6b92(0x394),null),this[_0x5e6b92(0xc9)]['mergeMenu'](vt),this[_0x5e6b92(0x165)](),this['disposeWithMe'](this[_0x5e6b92(0x30d)]['editingParams$'][_0x5e6b92(0x279)](_0x4e804f=>{const _0x4d13d8=_0x5e6b92;_0x4e804f&&this[_0x4d13d8(0x39a)]();}));}[_0x275262(0xdb)](){const _0x289dfe=_0x275262;this['_shapePopupMenuDisposable']||=this[_0x289dfe(0x177)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0x289dfe(0x2c5)],a[_0x289dfe(0x412)][_0x289dfe(0x306)],_0x4e4eb5=>this[_0x289dfe(0x1d1)](_0x4e4eb5)));}[_0x275262(0x165)](){const _0x4223d=_0x275262;this[_0x4223d(0x3db)][_0x4223d(0x1fb)](a[_0x4223d(0x3cc)][_0x4223d(0x2bd)],(_0x27491e,_0x53dd44,_0x51b93b,_0x2fdd9a)=>{const _0x521a78=_0x4223d;let _0x390150=this[_0x521a78(0x1de)][_0x521a78(0x375)](_0x27491e,_0x53dd44,_0x51b93b),_0x5e4d50=this[_0x521a78(0x1de)][_0x521a78(0x3b5)](_0x27491e,_0x53dd44,_0x51b93b),_0x13a276=_0x390150!==void 0x0&&!(0x0,n[_0x521a78(0x265)])(_0x390150)&&!(_0x5e4d50!=null&&_0x5e4d50['formulaBinding']);return[{'label':_0x521a78(0x3b8),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x27491e,'subUnitId':_0x53dd44,'drawingId':_0x51b93b,'mode':_0x521a78(0x123)},'disable':!0x1},..._0x13a276?[{'label':_0x521a78(0x221),'index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x27491e,'subUnitId':_0x53dd44,'drawingId':_0x51b93b,'mode':'text'},'disable':!0x1}]:[],{'label':_0x521a78(0x430),'index':0x2,'commandId':m[_0x521a78(0x149)]['id'],'commandParams':{'unitId':_0x27491e,'drawings':[{'unitId':_0x27491e,'subUnitId':_0x53dd44,'drawingId':_0x51b93b,'drawingType':_0x2fdd9a}]},'disable':!0x1},{'label':_0x521a78(0x406),'index':0x3,'commandId':i[_0x521a78(0x229)]['id'],'commandParams':{'unitId':_0x27491e,'subUnitId':_0x53dd44,'shapeId':_0x51b93b,'flipH':!0x0},'disable':!0x1},{'label':_0x521a78(0x29a),'index':0x4,'commandId':i[_0x521a78(0x229)]['id'],'commandParams':{'unitId':_0x27491e,'subUnitId':_0x53dd44,'shapeId':_0x51b93b,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x275262(0x1d1)](_0x21fbdd){const _0x4096b3=_0x275262;let _0x2b7479=new a[(_0x4096b3(0x134))](),_0x26664d=null,_0x5d886e=()=>{const _0xe82493=_0x4096b3;if(!_0x26664d)return;let _0x490a76=this[_0xe82493(0x41a)]['getFocusDrawings'](),_0x2c0036=_0x490a76[_0xe82493(0x385)]===0x0||_0x490a76[_0xe82493(0x385)]===0x1&&_0x490a76[_0xe82493(0x225)](_0x5e03d5=>_0x5e03d5[_0xe82493(0x19e)]===(_0x26664d==null?void 0x0:_0x26664d[_0xe82493(0x19e)])&&_0x5e03d5['subUnitId']===(_0x26664d==null?void 0x0:_0x26664d[_0xe82493(0x2a3)])&&_0x5e03d5[_0xe82493(0x25c)]===(_0x26664d==null?void 0x0:_0x26664d[_0xe82493(0x25c)]));_0x26664d=null,_0x2c0036&&(this['_contextService'][_0xe82493(0x15d)](a[_0xe82493(0x423)],!0x1),this[_0xe82493(0x41a)][_0xe82493(0x302)](null));};return _0x2b7479[_0x4096b3(0xfd)](_0x21fbdd[_0x4096b3(0xd7)][_0x4096b3(0x279)](()=>{const _0x64ab1f=_0x4096b3;let _0x1d8941=_0x21fbdd[_0x64ab1f(0x41d)]();if(_0x1d8941[_0x64ab1f(0x3f9)]>0x1){_0x5d886e();return;}let _0x570c22=_0x1d8941[_0x64ab1f(0x247)]()['next']()[_0x64ab1f(0x307)];if(!_0x570c22){_0x5d886e();return;}let _0x596043=this[_0x64ab1f(0x41a)][_0x64ab1f(0x1f2)](_0x570c22[_0x64ab1f(0x240)]);if(!_0x596043||_0x596043[_0x64ab1f(0x133)]!==a['DrawingTypeEnum']['DRAWING_SHAPE']){_0x5d886e();return;}let {unitId:_0x166d20,subUnitId:_0x1baf43,drawingId:_0x351016}=_0x596043;_0x26664d={'unitId':_0x166d20,'subUnitId':_0x1baf43,'drawingId':_0x351016},this[_0x64ab1f(0x167)][_0x64ab1f(0x15d)](a['FOCUSING_COMMON_DRAWINGS'],!0x0),this[_0x64ab1f(0x41a)]['getFocusDrawings']()[_0x64ab1f(0x336)](_0x458630=>_0x458630[_0x64ab1f(0x19e)]===_0x166d20&&_0x458630[_0x64ab1f(0x2a3)]===_0x1baf43&&_0x458630['drawingId']===_0x351016)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x166d20,'subUnitId':_0x1baf43,'drawingId':_0x351016}]);})),_0x2b7479[_0x4096b3(0xfd)](_0x21fbdd[_0x4096b3(0x1ff)][_0x4096b3(0x279)](()=>{_0x5d886e();})),(0x0,a[_0x4096b3(0x14b)])(()=>{const _0x1d0f7=_0x4096b3;_0x2b7479[_0x1d0f7(0x24e)](),_0x5d886e();});}[_0x275262(0x39a)](){const _0x2a0c7c=_0x275262;this[_0x2a0c7c(0x167)][_0x2a0c7c(0x15d)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x2a0c7c(0x41a)][_0x2a0c7c(0x302)](null);}};U=A([k(0x0,t[_0x275262(0x258)]),k(0x1,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x2,a[_0x275262(0x173)]),k(0x3,s[_0x275262(0x3a2)]),k(0x4,(0x0,a[_0x275262(0x15b)])(l[_0x275262(0xe6)])),k(0x5,a['IContextService']),k(0x6,c[_0x275262(0x2a9)]),k(0x7,(0x0,a[_0x275262(0x15b)])(H))],U);function yt(_0x1df6f6,_0x213aa8,_0x59ccba,_0x5b9d15){const _0x13f057=_0x275262;let _0x32df31=(0x0,s[_0x13f057(0x2d9)])(_0x1df6f6,_0x213aa8,_0x59ccba),_0x18c14e=[];for(let _0x1f5717 of _0x213aa8){let _0xd855c3=_0x32df31['idMap'][_0x13f057(0x421)](_0x1f5717[_0x13f057(0x25c)]),_0x3b4222=_0x5b9d15(_0x1f5717);_0xd855c3&&_0x3b4222&&_0x18c14e[_0x13f057(0x130)]({'targetShapeId':_0xd855c3,'source':_0x3b4222});}return _0x18c14e;}let W=class extends a[_0x275262(0x284)]{constructor(_0x432d4b,_0x591500,_0x467816,_0x271520){const _0x2749b5=_0x275262;super(),this['_univerInstanceService']=_0x432d4b,this[_0x2749b5(0x331)]=_0x591500,this[_0x2749b5(0x35e)]=_0x467816,this[_0x2749b5(0x1de)]=_0x271520,this[_0x2749b5(0xdd)]();}['_initSheetChange'](){const _0x405f98=_0x275262;this[_0x405f98(0x177)](this[_0x405f98(0x331)][_0x405f98(0xd5)]({'getMutations':_0x515096=>{const _0x3fe1ab=_0x405f98;if(_0x515096['id']===o[_0x3fe1ab(0x3b0)]['id']){let _0x3923d7=(0x0,o[_0x3fe1ab(0x251)])(this['_univerInstanceService'],_0x515096[_0x3fe1ab(0x27b)]);if(!_0x3923d7)return{'redos':[],'undos':[]};let {unitId:_0x14df4d,subUnitId:_0x2cd773}=_0x3923d7,_0x23d253=this['_sheetDrawingService'][_0x3fe1ab(0x3b1)](_0x14df4d,_0x2cd773),_0x1c7fef=Object['values'](_0x23d253)[_0x3fe1ab(0x31e)](_0x3df442=>_0x3df442['drawingType']===a[_0x3fe1ab(0x3cc)][_0x3fe1ab(0x2bd)]);if(_0x1c7fef[_0x3fe1ab(0x385)]===0x0)return{'redos':[],'undos':[]};let _0x2f805b=[],_0x4936c2=[];for(let _0x2863de=0x0;_0x2863de<_0x1c7fef['length'];_0x2863de++){let _0x41cb02=_0x1c7fef[_0x2863de],_0x31f7e5=this['_sheetsShapeService']['getShapeModel'](_0x41cb02['unitId'],_0x41cb02['subUnitId'],_0x41cb02[_0x3fe1ab(0x25c)]);_0x31f7e5&&(_0x2f805b[_0x3fe1ab(0x130)]({'id':i[_0x3fe1ab(0x274)]['id'],'params':{'unitId':_0x14df4d,'subUnitId':_0x2cd773,'shapeId':_0x41cb02[_0x3fe1ab(0x25c)]}}),_0x4936c2[_0x3fe1ab(0x130)]({'id':i[_0x3fe1ab(0x197)]['id'],'params':{'unitId':_0x14df4d,'subUnitId':_0x2cd773,'shapeId':_0x41cb02['drawingId'],'shapeType':_0x31f7e5[_0x3fe1ab(0x349)](),'shapeData':JSON[_0x3fe1ab(0x246)](JSON[_0x3fe1ab(0x43f)](_0x31f7e5[_0x3fe1ab(0x223)]()))}}));}return{'redos':_0x2f805b,'undos':_0x4936c2};}if(_0x515096['id']===o[_0x3fe1ab(0x261)]['id']){let {unitId:_0x4fa220,subUnitId:_0x2701e7,targetSubUnitId:_0xad10ae,copyContext:_0x2b493b}=_0x515096[_0x3fe1ab(0x27b)];if(!_0x4fa220||!_0x2701e7||!_0xad10ae)return{'redos':[],'undos':[]};let _0x44e06b=this[_0x3fe1ab(0x35e)][_0x3fe1ab(0x3b1)](_0x4fa220,_0x2701e7),_0x3eca89=Object['values'](_0x44e06b)[_0x3fe1ab(0x31e)](_0x1a6dd5=>_0x1a6dd5[_0x3fe1ab(0x133)]===a[_0x3fe1ab(0x3cc)][_0x3fe1ab(0x2bd)]);if(_0x3eca89[_0x3fe1ab(0x385)]===0x0)return{'redos':[],'undos':[]};let _0x199cf0=yt(_0x2b493b,_0x3eca89,{'unitId':_0x4fa220,'sourceSubUnitId':_0x2701e7,'targetSubUnitId':_0xad10ae},_0x445e49=>{const _0x4002fa=_0x3fe1ab;let _0x4cf784=this['_sheetsShapeService'][_0x4002fa(0x3c8)](_0x445e49[_0x4002fa(0x19e)],_0x445e49[_0x4002fa(0x2a3)],_0x445e49[_0x4002fa(0x25c)]);if(_0x4cf784)return{'shapeType':_0x4cf784[_0x4002fa(0x349)](),'shapeData':JSON[_0x4002fa(0x246)](JSON['stringify'](_0x4cf784['getShapeData']()))};}),_0x4e1583=[],_0x56efc8=[];for(let {targetShapeId:_0x2506ec,source:_0x38c70c}of _0x199cf0)_0x4e1583[_0x3fe1ab(0x130)]({'id':i[_0x3fe1ab(0x197)]['id'],'params':{'unitId':_0x4fa220,'subUnitId':_0xad10ae,'shapeId':_0x2506ec,'shapeType':_0x38c70c[_0x3fe1ab(0x172)],'shapeData':_0x38c70c['shapeData']}}),_0x56efc8[_0x3fe1ab(0x130)]({'id':i[_0x3fe1ab(0x274)]['id'],'params':{'unitId':_0x4fa220,'subUnitId':_0xad10ae,'shapeId':_0x2506ec}});return{'redos':_0x4e1583,'undos':_0x56efc8};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a[_0x275262(0x15b)])(a['IUniverInstanceService'])),k(0x1,(0x0,a[_0x275262(0x15b)])(o['SheetInterceptorService'])),k(0x2,(0x0,a['Inject'])(m[_0x275262(0x2d2)])),k(0x3,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)]))],W);let G=class extends a[_0x275262(0x284)]{constructor(_0x282944,_0x1644b8,_0x42b1c9,_0x4299c1,_0x301be9,_0x410df0){const _0x31c37=_0x275262;super(),this[_0x31c37(0x278)]=_0x282944,this[_0x31c37(0x2c5)]=_0x1644b8,this[_0x31c37(0x41a)]=_0x42b1c9,this[_0x31c37(0x233)]=_0x4299c1,this[_0x31c37(0x316)]=_0x301be9,this[_0x31c37(0x33c)]=_0x410df0,E(this,_0x31c37(0xc5),new Set()),this[_0x31c37(0x41e)]();}['_initialize'](){const _0x554f0c=_0x275262;this[_0x554f0c(0x317)](),this[_0x554f0c(0x352)](),this[_0x554f0c(0x418)]();}['_drawingAddListener'](){const _0x17d48f=_0x275262;this[_0x17d48f(0x177)](this[_0x17d48f(0x41a)][_0x17d48f(0x1bd)]['subscribe'](_0x33bc31=>{const _0x1bba50=_0x17d48f;this[_0x1bba50(0x40a)](_0x33bc31);}));}[_0x275262(0x352)](){const _0x50650a=_0x275262;this[_0x50650a(0x177)](this[_0x50650a(0x278)][_0x50650a(0x3cf)]((_0x365bd5,_0x297a44)=>{const _0xa8b7d2=_0x50650a;if(_0x365bd5['id']===i[_0xa8b7d2(0x3d0)]['id']){let {unitId:_0x4accc4,subUnitId:_0x17ffe2,shapeId:_0x27f5e4}=_0x365bd5[_0xa8b7d2(0x27b)],_0x4c61dc=this[_0xa8b7d2(0x1a7)](_0x4accc4),_0x18d0f4=(0x0,s[_0xa8b7d2(0x18c)])({'unitId':_0x4accc4,'subUnitId':_0x17ffe2,'drawingId':_0x27f5e4}),_0x216aac=_0x4c61dc==null?void 0x0:_0x4c61dc[_0xa8b7d2(0x419)]['getObjectIncludeInGroup'](_0x18d0f4);_0x216aac&&(this[_0xa8b7d2(0x33c)][_0xa8b7d2(0x358)](_0x216aac),this[_0xa8b7d2(0x33c)][_0xa8b7d2(0x259)](_0x216aac,{'unitId':_0x4accc4,'subUnitId':_0x17ffe2,'shapeId':_0x27f5e4}),_0x216aac[_0xa8b7d2(0x31f)](!0x0));return;}if(_0x365bd5['id']===i[_0xa8b7d2(0x197)]['id']){var _0x490c6f;let {unitId:_0x2007e4,subUnitId:_0x931390,shapeId:_0x2dcd49}=_0x365bd5[_0xa8b7d2(0x27b)],_0x4556e3=this[_0xa8b7d2(0x1a7)](_0x2007e4);if(_0x4556e3==null)return;let {scene:_0x46be63}=_0x4556e3,_0x3f3203=(0x0,s[_0xa8b7d2(0x18c)])({'unitId':_0x2007e4,'subUnitId':_0x931390,'drawingId':_0x2dcd49}),_0x4957e8=_0x46be63['getObjectIncludeInGroup'](_0x3f3203);if(!((_0x490c6f=this[_0xa8b7d2(0x2c5)][_0xa8b7d2(0x30b)](_0x2007e4))!=null&&_0x490c6f[_0xa8b7d2(0x2f5)](l[_0xa8b7d2(0x20c)])[_0xa8b7d2(0x1df)](_0x931390)))return!0x1;if(_0x4957e8)return;if(_0x297a44!=null&&_0x297a44[_0xa8b7d2(0x234)]){queueMicrotask(()=>{const _0x3bb407=_0xa8b7d2;this[_0x3bb407(0xe8)]||this[_0x3bb407(0x40a)]([{'unitId':_0x2007e4,'subUnitId':_0x931390,'drawingId':_0x2dcd49}]);});return;}this['_insertShapes']([{'unitId':_0x2007e4,'subUnitId':_0x931390,'drawingId':_0x2dcd49}]);}}));}[_0x275262(0x418)](){const _0x4cde92=_0x275262;this[_0x4cde92(0x177)](this[_0x4cde92(0x41a)]['update$'][_0x4cde92(0x279)](_0x3509df=>{_0x3509df['forEach'](_0x1d9a50=>{const _0x1b8a8d=_0x4387;let {unitId:_0x57c999,subUnitId:_0x252dfd,drawingId:_0x5dad9f}=_0x1d9a50,_0x5bad8b=this['_drawingManagerService'][_0x1b8a8d(0x125)](_0x1d9a50);if(_0x5bad8b==null)return;let {transform:_0x229c0c,drawingType:_0x4f5149,srcRect:_0x143b5c,prstGeom:_0xe4e455}=_0x5bad8b;if(_0x4f5149!==a['DrawingTypeEnum'][_0x1b8a8d(0x2bd)])return;let _0x5b852f=this[_0x1b8a8d(0x1a7)](_0x57c999);if(_0x5b852f==null)return;let {scene:_0x535668,transformer:_0x2ec580}=_0x5b852f;if(_0x229c0c==null)return!0x0;let _0x3c1bae=(0x0,s[_0x1b8a8d(0x18c)])({'unitId':_0x57c999,'subUnitId':_0x252dfd,'drawingId':_0x5dad9f}),_0xcec4d1=_0x535668[_0x1b8a8d(0x367)](_0x3c1bae);if(_0xcec4d1==null)return!0x0;_0xcec4d1[_0x1b8a8d(0x147)](_0x143b5c),_0xcec4d1['setPrstGeom'](_0xe4e455);});}));}['_insertShapes'](_0x1e7090){const _0x329100=_0x275262;for(let _0x56b90f of _0x1e7090){var _0x2953d7;let {unitId:_0x57022a,subUnitId:_0x4c989c,drawingId:_0x37bd57}=_0x56b90f,_0x344d85=this[_0x329100(0x1a7)](_0x57022a),_0x46b323=(_0x2953d7=(0x0,d[_0x329100(0x2cc)])(this['_currentUniverService'],_0x57022a))==null?void 0x0:_0x2953d7[_0x329100(0x2a3)];if(_0x344d85==null||_0x46b323!==_0x4c989c)return;let _0x2417c5=(0x0,s[_0x329100(0x18c)])({'unitId':_0x57022a,'subUnitId':_0x4c989c,'drawingId':_0x37bd57});if(this[_0x329100(0xc5)][_0x329100(0x2e6)](_0x2417c5)||_0x344d85[_0x329100(0x419)]['getObjectIncludeInGroup'](_0x2417c5)!=null)return;let _0x5e0d7e=this[_0x329100(0x41a)][_0x329100(0x125)](_0x56b90f);if(_0x5e0d7e==null||_0x5e0d7e[_0x329100(0x133)]!==a[_0x329100(0x3cc)][_0x329100(0x2bd)])return;let _0x25edf9=_0x5e0d7e['data']||{};if((0x0,n[_0x329100(0x265)])(_0x25edf9[_0x329100(0x172)])){let _0x5abeee=_0x5e0d7e[_0x329100(0x391)];_0x5abeee&&(_0x5e0d7e[_0x329100(0x391)]={..._0x5abeee,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x329100(0xc5)][_0x329100(0xfd)](_0x2417c5);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x5e0d7e,_0x344d85[_0x329100(0x419)]);}finally{this[_0x329100(0xc5)][_0x329100(0x3a9)](_0x2417c5);}queueMicrotask(()=>{const _0x182c9b=_0x329100;if(this[_0x182c9b(0xe8)])return;let _0x1f4fb2=(0x0,s[_0x182c9b(0x18c)])(_0x56b90f);if(!_0x344d85[_0x182c9b(0x419)][_0x182c9b(0x367)](_0x1f4fb2))return;let _0x2c9e37=this[_0x182c9b(0x41a)][_0x182c9b(0x125)](_0x56b90f);_0x2c9e37&&this[_0x182c9b(0x41a)][_0x182c9b(0x10f)]([_0x2c9e37]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x53d656){const _0x1f7ab7=_0x275262;if(_0x53d656==null)return;let _0x3cff71=this[_0x1f7ab7(0x2c5)]['getRenderUnitById'](_0x53d656),_0x3995f6=_0x3cff71==null?void 0x0:_0x3cff71[_0x1f7ab7(0x419)];return _0x3995f6==null?null:{'scene':_0x3995f6,'transformer':_0x3995f6[_0x1f7ab7(0x10b)]()};}};G=A([k(0x0,a[_0x275262(0x173)]),k(0x1,c[_0x275262(0x2a9)]),k(0x2,s[_0x275262(0x3a2)]),k(0x3,a[_0x275262(0x30c)]),k(0x4,(0x0,a[_0x275262(0x15b)])(d[_0x275262(0x354)])),k(0x5,(0x0,a['Inject'])(j))],G);const bt={'normal':{'fill':n[_0x275262(0x376)][_0x275262(0x433)],'stroke':n['ShapeDefaultConfig'][_0x275262(0x141)],'strokeWidth':n[_0x275262(0x376)][_0x275262(0x212)]},'highlighted':{'fill':_0x275262(0x292),'stroke':_0x275262(0x3ae),'strokeWidth':0x2}};var xt=class extends c['Shape']{constructor(_0x35082a,_0x25c05b){const _0x3095a0=_0x275262;super(_0x35082a,_0x25c05b),E(this,_0x3095a0(0x3e9),''),E(this,_0x3095a0(0x296),-0x1),E(this,_0x3095a0(0x309),''),E(this,_0x3095a0(0x267),''),E(this,_0x3095a0(0x29e),!0x1),_0x25c05b&&this[_0x3095a0(0x333)](_0x25c05b);}['getConnectionInfo'](){const _0x1fb48a=_0x275262;return{'unitId':this['_unitId'],'subUnitId':this[_0x1fb48a(0x267)],'shapeId':this[_0x1fb48a(0x3e9)],'cxnIndex':this[_0x1fb48a(0x296)]};}[_0x275262(0x241)](_0x308f17){const _0x5e57e9=_0x275262;this['_isHighlighted']!==_0x308f17&&(this[_0x5e57e9(0x29e)]=_0x308f17,this[_0x5e57e9(0x31f)](!0x0));}[_0x275262(0x428)](){const _0x4f419b=_0x275262;return this[_0x4f419b(0x29e)];}[_0x275262(0x333)](_0x1fc7d4){const _0x177826=_0x275262;_0x1fc7d4[_0x177826(0x3da)]!==void 0x0&&(this[_0x177826(0x3e9)]=_0x1fc7d4['targetShapeId']),_0x1fc7d4[_0x177826(0x1f7)]!==void 0x0&&(this['_cxnIndex']=_0x1fc7d4[_0x177826(0x1f7)]),_0x1fc7d4['unitId']!==void 0x0&&(this[_0x177826(0x309)]=_0x1fc7d4[_0x177826(0x19e)]),_0x1fc7d4[_0x177826(0x2a3)]!==void 0x0&&(this['_subUnitId']=_0x1fc7d4[_0x177826(0x2a3)]),_0x1fc7d4['isHighlighted']!==void 0x0&&(this[_0x177826(0x29e)]=_0x1fc7d4[_0x177826(0x428)]),this[_0x177826(0x31d)]({'width':_0x1fc7d4[_0x177826(0x40e)]??n[_0x177826(0x376)][_0x177826(0x2c9)]*0x2,'height':_0x1fc7d4[_0x177826(0x2ad)]??n[_0x177826(0x376)][_0x177826(0x2c9)]*0x2});}['_draw'](_0x10f39a){const _0x51a4f6=_0x275262;let _0x27d892=this[_0x51a4f6(0x29e)]?bt['highlighted']:bt[_0x51a4f6(0x38d)];c[_0x51a4f6(0x325)][_0x51a4f6(0xe3)](_0x10f39a,{'radius':n[_0x51a4f6(0x376)]['cxnPointRadius'],'fill':_0x27d892['fill'],'stroke':_0x27d892[_0x51a4f6(0x199)],'strokeWidth':_0x27d892[_0x51a4f6(0x288)],'evented':!0x0});}};let K=class extends a[_0x275262(0x284)]{constructor(_0x5f4645,_0x284caf,_0x17da6a,_0x447313){const _0x37e2d3=_0x275262;super(),this[_0x37e2d3(0x2a8)]=_0x5f4645,this['_renderManagerService']=_0x284caf,this['_drawingManagerService']=_0x17da6a,this[_0x37e2d3(0x1de)]=_0x447313,E(this,'_connectionSiteObjects',[]),E(this,_0x37e2d3(0x109),null),E(this,_0x37e2d3(0x3fd),-0x1),E(this,_0x37e2d3(0x1ba),null),E(this,_0x37e2d3(0x309),''),E(this,_0x37e2d3(0x267),''),E(this,_0x37e2d3(0x1c0),null);}[_0x275262(0x13b)](_0x462fca,_0x49152e,_0x1a33f4,_0x3dc586){const _0x57efe5=_0x275262;this[_0x57efe5(0x1ba)]=_0x462fca,this[_0x57efe5(0x309)]=_0x49152e,this[_0x57efe5(0x267)]=_0x1a33f4,this[_0x57efe5(0x1c0)]=_0x3dc586;}['updateConnectionDetection'](_0x128ac1){const _0x2f4cad=_0x275262;if(!this['_currentScene'])return null;let _0xf5f31a=this['_findShapeAtPoint'](_0x128ac1);return _0xf5f31a?(this[_0x2f4cad(0x109)]!==_0xf5f31a[_0x2f4cad(0x330)]&&(this[_0x2f4cad(0x353)](),this[_0x2f4cad(0x204)](_0xf5f31a[_0x2f4cad(0x330)],_0xf5f31a[_0x2f4cad(0xee)]),this['_activeTargetShapeId']=_0xf5f31a[_0x2f4cad(0x330)]),this[_0x2f4cad(0x207)](_0x128ac1)):(this[_0x2f4cad(0x109)]!==null&&(this[_0x2f4cad(0x353)](),this[_0x2f4cad(0x109)]=null),null);}['endConnectionDetection'](){const _0x56eb68=_0x275262;this['_clearConnectionSites'](),this[_0x56eb68(0x1ba)]=null,this[_0x56eb68(0x109)]=null,this[_0x56eb68(0x3fd)]=-0x1,this['_draggingConnectorId']=null;}[_0x275262(0x235)](){const _0x1ce509=_0x275262;return this['_activeTargetShapeId']===null||this[_0x1ce509(0x3fd)]<0x0?null:{'shapeId':this[_0x1ce509(0x109)],'cxnIndex':this[_0x1ce509(0x3fd)]};}[_0x275262(0x219)](_0x175d80){const _0x444223=_0x275262;let _0x44ea79=this[_0x444223(0x41a)][_0x444223(0x3b1)](this[_0x444223(0x309)],this['_subUnitId']);for(let _0x4dd8bc of Object[_0x444223(0x23c)](_0x44ea79)){if(_0x4dd8bc===this[_0x444223(0x1c0)]||_0x44ea79[_0x4dd8bc][_0x444223(0x133)]!==a[_0x444223(0x3cc)][_0x444223(0x2bd)])continue;let _0x3ab6a8=this['_sheetsShapeService'][_0x444223(0x3c8)](this[_0x444223(0x309)],this[_0x444223(0x267)],_0x4dd8bc);if(!_0x3ab6a8||(0x0,n[_0x444223(0x265)])(_0x3ab6a8[_0x444223(0x349)]())||_0x3ab6a8['getConnectionSiteList']()[_0x444223(0x385)]===0x0||!this['_currentScene'])continue;let _0x560238=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x444223(0x309)],'subUnitId':this[_0x444223(0x267)],'drawingId':_0x4dd8bc}),_0x394481=this[_0x444223(0x1ba)][_0x444223(0x367)](_0x560238);if(!_0x394481)continue;let {left:_0x4b7943,top:_0x32a49f,width:_0x489174,height:_0x1595c4}=_0x394481[_0x444223(0x393)](),_0x321ef6=_0x4b7943+_0x489174/0x2,_0x281ccb=_0x32a49f+_0x1595c4/0x2,_0x24e266=_0x394481[_0x444223(0x391)][_0x444223(0x39d)](),_0x1894ce=new c['Transform']([_0x24e266[0x0],_0x24e266[0x1],_0x24e266[0x2],_0x24e266[0x3],_0x321ef6,_0x281ccb]),_0x15bff5=_0x394481['getParent'](),_0x3cc24d=(_0x394481[_0x444223(0x11e)]&&(_0x15bff5==null?void 0x0:_0x15bff5['classType'])===c[_0x444223(0xf8)]['GROUP']?_0x15bff5[_0x444223(0x280)][_0x444223(0x2f9)](_0x1894ce):_0x1894ce)[_0x444223(0x2d3)]()['applyPoint'](_0x175d80),_0x2004b7=_0x489174/0x2,_0x557143=_0x1595c4/0x2;if(_0x3cc24d['x']>=-_0x2004b7-0x5&&_0x3cc24d['x']<=_0x2004b7+0x5&&_0x3cc24d['y']>=-_0x557143-0x5&&_0x3cc24d['y']<=_0x557143+0x5)return{'shapeId':_0x4dd8bc,'shapeModel':_0x3ab6a8};}return null;}[_0x275262(0x204)](_0x2d787d,_0x31eef1){const _0x19eb8c=_0x275262;if(!this[_0x19eb8c(0x1ba)])return;let _0x417fa2=(0x0,s[_0x19eb8c(0x18c)])({'unitId':this[_0x19eb8c(0x309)],'subUnitId':this[_0x19eb8c(0x267)],'drawingId':_0x2d787d}),_0x4887fa=this[_0x19eb8c(0x1ba)]['getObjectIncludeInGroup'](_0x417fa2);if(!_0x4887fa)return;let {left:_0x39fbbc,top:_0x42208d,width:_0x3f3b2f,height:_0x1ab879}=_0x4887fa['getRealBound'](),_0x381b91=_0x39fbbc+_0x3f3b2f/0x2,_0x5d32c8=_0x42208d+_0x1ab879/0x2,_0x49750d=_0x4887fa['transform'][_0x19eb8c(0x39d)](),_0x1db137=new c['Transform']([_0x49750d[0x0],_0x49750d[0x1],_0x49750d[0x2],_0x49750d[0x3],_0x381b91,_0x5d32c8]),_0x2cfc3e=_0x4887fa[_0x19eb8c(0x3fe)](),_0x19cd62=_0x4887fa[_0x19eb8c(0x11e)]&&(_0x2cfc3e==null?void 0x0:_0x2cfc3e[_0x19eb8c(0x214)])===c[_0x19eb8c(0xf8)][_0x19eb8c(0x2ee)]?_0x2cfc3e[_0x19eb8c(0x280)][_0x19eb8c(0x2f9)](_0x1db137):_0x1db137;_0x31eef1[_0x19eb8c(0x290)]({'width':_0x3f3b2f,'height':_0x1ab879});let _0x31f21e=_0x31eef1['getConnectionSiteList']();for(let _0x86c2b8 of _0x31f21e){let _0x4b1500=_0x86c2b8['x']-_0x3f3b2f/0x2,_0x478ee9=_0x86c2b8['y']-_0x1ab879/0x2,_0x2fff75=_0x19cd62[_0x19eb8c(0x194)]({'x':_0x4b1500,'y':_0x478ee9}),_0x2e224a=_0x2fff75['x'],_0x4f24da=_0x2fff75['y'],_0x1472c9=new xt(_0x19eb8c(0x13f)+_0x2d787d+'-'+_0x86c2b8[_0x19eb8c(0x364)],{'left':_0x2e224a-n[_0x19eb8c(0x376)][_0x19eb8c(0x2c9)],'top':_0x4f24da-n[_0x19eb8c(0x376)][_0x19eb8c(0x2c9)],'targetShapeId':_0x2d787d,'cxnIndex':_0x86c2b8[_0x19eb8c(0x364)],'unitId':this['_unitId'],'subUnitId':this[_0x19eb8c(0x267)],'width':n[_0x19eb8c(0x376)]['cxnPointRadius']*0x2,'height':n[_0x19eb8c(0x376)][_0x19eb8c(0x2c9)]*0x2,'zIndex':c[_0x19eb8c(0x436)]+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x19eb8c(0x130)](_0x1472c9),this['_currentScene']['addObject'](_0x1472c9,c['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x275262(0x207)](_0x18a53b){const _0x38f801=_0x275262;let _0x1fd0dc=null,_0x5f4fb2=0x1/0x0,_0x150e1e=null;for(let _0x41f766 of this['_connectionSiteObjects']){let _0x4be45d=_0x41f766[_0x38f801(0x18e)]+n[_0x38f801(0x376)][_0x38f801(0x2c9)],_0x5b2c56=_0x41f766[_0x38f801(0x3a8)]+n[_0x38f801(0x376)][_0x38f801(0x2c9)],_0x17b9ab=_0x18a53b['x']-_0x4be45d,_0x1b6b8b=_0x18a53b['y']-_0x5b2c56,_0x11a87a=Math[_0x38f801(0x185)](_0x17b9ab*_0x17b9ab+_0x1b6b8b*_0x1b6b8b);_0x11a87a<_0x5f4fb2&&(_0x5f4fb2=_0x11a87a,_0x1fd0dc=_0x41f766,_0x150e1e={'x':_0x4be45d,'y':_0x5b2c56});}let _0x29b008=_0x5f4fb2<=0xa&&_0x1fd0dc?_0x1fd0dc[_0x38f801(0xef)]()[_0x38f801(0x1f7)]:-0x1;if(_0x29b008!==this[_0x38f801(0x3fd)]){for(let _0x364cb8 of this[_0x38f801(0x2fc)]){let _0x59783f=_0x364cb8[_0x38f801(0xef)]();_0x364cb8[_0x38f801(0x241)](_0x59783f[_0x38f801(0x1f7)]===_0x29b008);}this[_0x38f801(0x3fd)]=_0x29b008;}if(_0x5f4fb2<=0xa&&_0x1fd0dc&&_0x150e1e){let _0x35937e=_0x1fd0dc[_0x38f801(0xef)](),_0x30586c=this[_0x38f801(0x11a)](_0x35937e[_0x38f801(0x330)],_0x35937e[_0x38f801(0x1f7)]);return{'shapeId':_0x35937e['shapeId'],'cxnIndex':_0x35937e[_0x38f801(0x1f7)],'unitId':_0x35937e[_0x38f801(0x19e)],'subUnitId':_0x35937e[_0x38f801(0x2a3)],'worldPoint':_0x150e1e,'angle':_0x30586c};}return null;}[_0x275262(0x11a)](_0x83eb39,_0x2b7c2c){const _0x469742=_0x275262;let _0x8a3d0f=this[_0x469742(0x1de)][_0x469742(0x3c8)](this[_0x469742(0x309)],this[_0x469742(0x267)],_0x83eb39);if(!_0x8a3d0f)return 0x0;let _0x1f2365=this[_0x469742(0x41a)][_0x469742(0x125)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x83eb39});if(!(_0x1f2365!=null&&_0x1f2365[_0x469742(0x391)]))return 0x0;let {width:_0x307900=0x0,height:_0x313746=0x0,flipX:_0x3fe106=!0x1,flipY:_0x57be24=!0x1}=_0x1f2365[_0x469742(0x391)];_0x8a3d0f[_0x469742(0x290)]({'width':_0x307900,'height':_0x313746});let _0x21e00f=_0x8a3d0f[_0x469742(0x2fb)]()[_0x469742(0x336)](_0x31f74e=>_0x31f74e['index']===_0x2b7c2c);if(!_0x21e00f)return 0x0;let _0x3f1188=_0x21e00f[_0x469742(0x18b)]/0xea60;return _0x3fe106&&(_0x3f1188=0xb4-_0x3f1188),_0x57be24&&(_0x3f1188=-_0x3f1188),_0x3f1188=(_0x3f1188%0x168+0x168)%0x168,_0x3f1188;}[_0x275262(0x353)](){const _0x265a62=_0x275262;for(let _0x2b574b of this[_0x265a62(0x2fc)])_0x2b574b[_0x265a62(0x24e)]();this['_connectionSiteObjects']=[],this[_0x265a62(0x3fd)]=-0x1;}[_0x275262(0x24e)](){const _0x571332=_0x275262;this[_0x571332(0x353)](),super[_0x571332(0x24e)]();}};K=A([k(0x1,(0x0,a[_0x275262(0x15b)])(c[_0x275262(0x2a9)])),k(0x2,(0x0,a['Inject'])(s['IDrawingManagerService'])),k(0x3,(0x0,a['Inject'])(i['SheetsShapeService']))],K);let q=class extends a[_0x275262(0x284)]{constructor(_0x25e62b,_0x31ab78,_0x50cf4f,_0x4bdae1,_0x4a2eb8){const _0x349788=_0x275262;super(),this[_0x349788(0x33f)]=_0x25e62b,this[_0x349788(0x338)]=_0x31ab78,this[_0x349788(0x35e)]=_0x50cf4f,this[_0x349788(0x1e1)]=_0x4bdae1,this['_groupCopyPasteController']=_0x4a2eb8,E(this,'_copyInfo',void 0x0),this[_0x349788(0x1c3)](),this[_0x349788(0x28d)]();}get['_focusedDrawings'](){const _0x5e9c2a=_0x275262;return this[_0x5e9c2a(0x35e)][_0x5e9c2a(0x304)]();}[_0x275262(0x28d)](){const _0x4ce4f9=_0x275262;this[_0x4ce4f9(0x402)][_0x4ce4f9(0x3a0)](({fromUnitId:_0x32d5aa,fromSubUnitId:_0x35fe37,toUnitId:_0x4ec70d,toSubUnitId:_0x24c3e9,idMap:_0x4d8852})=>{const _0x581745=_0x4ce4f9;let _0x31c869=[],_0x1a7d5d=[];for(let [_0x8f9270,_0x111179]of _0x4d8852[_0x581745(0x3fc)]()){let _0x393e52=this[_0x581745(0x1e1)][_0x581745(0x3c8)](_0x32d5aa,_0x35fe37,_0x8f9270);if(!_0x393e52)continue;let _0x4c395a=_0x393e52[_0x581745(0x349)](),_0x5bbf30=JSON[_0x581745(0x246)](JSON[_0x581745(0x43f)](_0x393e52['getShapeData']()));if(_0x5bbf30['relation']){var _0x11fd57,_0x3d1244;let _0x52b9da=(_0x11fd57=_0x5bbf30[_0x581745(0x272)][_0x581745(0x2e4)])==null?void 0x0:_0x11fd57[_0x581745(0x330)],_0x5f5c4d=(_0x3d1244=_0x5bbf30[_0x581745(0x272)]['to'])==null?void 0x0:_0x3d1244[_0x581745(0x330)],_0x476e98=!_0x52b9da||_0x4d8852[_0x581745(0x2e6)](_0x52b9da),_0x185d82=!_0x5f5c4d||_0x4d8852[_0x581745(0x2e6)](_0x5f5c4d);_0x476e98&&_0x52b9da&&_0x5bbf30['relation'][_0x581745(0x2e4)]?_0x5bbf30[_0x581745(0x272)][_0x581745(0x2e4)]={..._0x5bbf30[_0x581745(0x272)][_0x581745(0x2e4)],'shapeId':_0x4d8852[_0x581745(0x421)](_0x52b9da)}:_0x5bbf30[_0x581745(0x272)][_0x581745(0x2e4)]=void 0x0,_0x185d82&&_0x5f5c4d&&_0x5bbf30[_0x581745(0x272)]['to']?_0x5bbf30['relation']['to']={..._0x5bbf30[_0x581745(0x272)]['to'],'shapeId':_0x4d8852['get'](_0x5f5c4d)}:_0x5bbf30[_0x581745(0x272)]['to']=void 0x0;}_0x31c869[_0x581745(0x130)]({'id':i[_0x581745(0x197)]['id'],'params':{'unitId':_0x4ec70d,'subUnitId':_0x24c3e9,'shapeId':_0x111179,'shapeType':_0x4c395a,'shapeData':_0x5bbf30}}),_0x1a7d5d[_0x581745(0x130)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4ec70d,'subUnitId':_0x24c3e9,'shapeId':_0x111179}});}return{'redos':_0x31c869,'undos':_0x1a7d5d};});}[_0x275262(0x1c3)](){const _0x429d82=_0x275262;this['disposeWithMe'](this[_0x429d82(0x338)][_0x429d82(0x1a1)]({'id':_0x429d82(0x15e),'onBeforeCopyFocusedObject':(_0x5134eb,_0x652790,_0x39bf7d)=>{const _0x473f3c=_0x429d82;this[_0x473f3c(0x1e6)]=null;let _0x5e1bbb=this[_0x473f3c(0x36a)][_0x473f3c(0x31e)](_0x318657=>_0x318657['drawingType']===a[_0x473f3c(0x3cc)][_0x473f3c(0x2bd)]);return _0x5e1bbb[_0x473f3c(0x385)]!==0x0&&(this['_copyInfo']={'unitId':_0x5134eb,'subUnitId':_0x652790,'copyType':_0x39bf7d,'drawings':_0x5e1bbb},!0x0);},'onBeforeCopy':(_0x5b090b,_0x45fe82,_0x344b19,_0x1a426d)=>{const _0x70f228=_0x429d82;this[_0x70f228(0x1e6)]=null,this[_0x70f228(0x35b)](_0x5b090b,_0x45fe82,_0x344b19,_0x1a426d);},'onPasteCells':(_0x21856f,_0x3f796c,_0x1cad10,_0x58adc7)=>{const _0x5df074=_0x429d82;if(!_0x58adc7[_0x5df074(0x38f)]||!_0x21856f||!this[_0x5df074(0x1e6)])return{'redos':[],'undos':[]};let {pasteType:_0x4df171}=_0x58adc7;return _0x4df171===l[_0x5df074(0x3ab)][_0x5df074(0x2b5)]?this['_generatePasteMutations'](_0x3f796c,this[_0x5df074(0x1e6)]['copyType']===l['COPY_TYPE'][_0x5df074(0x24a)]):{'redos':[],'undos':[]};}}));}[_0x275262(0x35b)](_0x87ae15,_0x24ab1e,_0x1e9583,_0x155398){const _0x5c99eb=_0x275262;let _0x34b0fd=this[_0x5c99eb(0x33f)][_0x5c99eb(0x1df)](_0x87ae15,_0x24ab1e);if(!_0x34b0fd)return;let _0x1cc166=(0x0,o['attachRangeWithCoord'])(_0x34b0fd,_0x1e9583);if(!_0x1cc166)return;let {startX:_0x27c6d6,endX:_0x58ebcc,startY:_0x17557a,endY:_0x2f0527}=_0x1cc166,_0x1f623c=this[_0x5c99eb(0x35e)][_0x5c99eb(0x3b1)](_0x87ae15,_0x24ab1e),_0x117e2e=[];for(let [_0x5d454b,_0x22960d]of Object[_0x5c99eb(0x3fc)](_0x1f623c)){if(_0x22960d['drawingType']!==a[_0x5c99eb(0x3cc)][_0x5c99eb(0x2bd)])continue;let {transform:_0x4b0030}=_0x22960d;if(!_0x4b0030)continue;let {left:_0x3d3807=0x0,top:_0x400fa0=0x0,width:_0x3153b3=0x0,height:_0x269711=0x0}=_0x4b0030;_0x27c6d6<=_0x3d3807&&_0x58ebcc>=_0x3d3807+_0x3153b3&&_0x17557a<=_0x400fa0&&_0x2f0527>=_0x400fa0+_0x269711&&_0x117e2e[_0x5c99eb(0x130)](_0x22960d);}_0x117e2e[_0x5c99eb(0x385)]>0x0&&(this[_0x5c99eb(0x1e6)]={'unitId':_0x87ae15,'subUnitId':_0x24ab1e,'copyType':_0x155398,'copyRange':_0x1e9583,'drawings':_0x117e2e});}[_0x275262(0x1d0)](_0x354659,_0x1489d7){const _0x4031cc=_0x275262;let {unitId:_0x8edb5a,subUnitId:_0x2e7eb3,range:_0x33dba0}=_0x354659,_0x3d8f51=this[_0x4031cc(0x33f)][_0x4031cc(0x1df)](_0x8edb5a,_0x2e7eb3);if(!_0x3d8f51)return{'redos':[],'undos':[]};let _0x515bff=(0x0,o[_0x4031cc(0x2a7)])(_0x33dba0),{unitId:_0x19e658,subUnitId:_0x4ab0d6,copyRange:_0x202864,drawings:_0x46c64b}=this[_0x4031cc(0x1e6)],_0x1e7717=this[_0x4031cc(0x33f)][_0x4031cc(0x1df)](_0x19e658,_0x4ab0d6);if(!_0x1e7717)return{'redos':[],'undos':[]};let _0x45514c;if(!_0x202864){let _0x59e313=0x1/0x0,_0x1e67f5=0x1/0x0;for(let _0x3438c3 of _0x46c64b){let {left:_0x469ad8=0x0,top:_0x2d0960=0x0}=_0x3438c3['transform']??{};_0x469ad8<_0x59e313&&(_0x59e313=_0x469ad8),_0x2d0960<_0x1e67f5&&(_0x1e67f5=_0x2d0960);}_0x59e313!==0x1/0x0&&_0x1e67f5!==0x1/0x0&&(_0x45514c={'left':_0x59e313,'top':_0x1e67f5});}let _0x3eae66=new Map();if(!_0x1489d7){for(let _0x25f864 of _0x46c64b)_0x3eae66['set'](_0x25f864[_0x4031cc(0x25c)],(0x0,a[_0x4031cc(0x382)])());}let _0x52ad45=[],_0x28cbcb=[];for(let _0xca9a5c of _0x46c64b){let {drawingId:_0x36db61,transform:_0x18f13e,sheetTransform:_0x26b47e}=_0xca9a5c;if(!_0x18f13e||!_0x26b47e)continue;let _0x14d4c8=this[_0x4031cc(0x25a)]({'transform':_0x18f13e,'sheetTransform':_0x26b47e},{'skeleton':_0x1e7717,'range':_0x202864},{'skeleton':_0x3d8f51,'range':_0x515bff},_0x45514c);if(_0x1489d7){let {redos:_0x3e140a,undos:_0x11b877}=this['_generateCutPasteMutations']({'fromUnitId':_0x19e658,'fromSubUnitId':_0x4ab0d6,'toUnitId':_0x8edb5a,'toSubUnitId':_0x2e7eb3,'drawing':_0xca9a5c,'newTransforms':_0x14d4c8});_0x52ad45[_0x4031cc(0x130)](..._0x3e140a),_0x28cbcb[_0x4031cc(0x130)](..._0x11b877);continue;}let {redos:_0x1dbe9d,undos:_0x593c15}=this[_0x4031cc(0x216)]({'toUnitId':_0x8edb5a,'toSubUnitId':_0x2e7eb3,'drawing':_0xca9a5c,'newTransforms':_0x14d4c8,'newDrawingId':_0x3eae66['get'](_0x36db61),'idMap':_0x3eae66});_0x52ad45[_0x4031cc(0x130)](..._0x1dbe9d),_0x28cbcb[_0x4031cc(0x130)](..._0x593c15);}return{'redos':_0x52ad45,'undos':_0x28cbcb};}[_0x275262(0x285)](_0x5b4f51){const _0x296929=_0x275262;let {fromUnitId:_0x31d54b,fromSubUnitId:_0x47fccd,toUnitId:_0x51974b,toSubUnitId:_0x22c029,drawing:_0x5e7073,newTransforms:_0x5da168}=_0x5b4f51,_0x2da78d={..._0x5e7073,'unitId':_0x51974b,'subUnitId':_0x22c029,'transform':_0x5da168[_0x296929(0x391)],'sheetTransform':_0x5da168[_0x296929(0x431)]};if(_0x51974b===_0x31d54b&&_0x22c029===_0x47fccd){let {redo:_0x3d6013,undo:_0x1f3092,objects:_0x144615}=this[_0x296929(0x35e)][_0x296929(0x3e6)]([_0x2da78d]);return{'redos':[{'id':m[_0x296929(0x211)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'type':m['DrawingApplyType']['UPDATE'],'op':_0x3d6013,'objects':_0x144615}}],'undos':[{'id':m[_0x296929(0x211)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'type':m[_0x296929(0x124)][_0x296929(0xec)],'op':_0x1f3092,'objects':_0x144615}}]};}{let _0x52b8ce=this[_0x296929(0x35e)][_0x296929(0xd1)]([_0x5e7073]),_0x5560bd=this['_sheetDrawingService'][_0x296929(0x3bd)]([_0x2da78d]),_0x526d99=this[_0x296929(0x1e1)][_0x296929(0x3c8)](_0x5e7073[_0x296929(0x19e)],_0x5e7073[_0x296929(0x2a3)],_0x5e7073[_0x296929(0x25c)]);if(!_0x526d99)return{'redos':[],'undos':[]};let _0x2434c6=_0x526d99[_0x296929(0x349)](),_0x485a51=JSON['parse'](JSON[_0x296929(0x43f)](_0x526d99[_0x296929(0x223)]()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x31d54b,'subUnitId':_0x47fccd,'type':m[_0x296929(0x124)][_0x296929(0x3ef)],'op':_0x52b8ce[_0x296929(0x129)],'objects':_0x52b8ce[_0x296929(0x37a)]}},{'id':i[_0x296929(0x274)]['id'],'params':{'unitId':_0x31d54b,'subUnitId':_0x47fccd,'shapeId':_0x5e7073[_0x296929(0x25c)]}},{'id':m[_0x296929(0x211)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'type':m[_0x296929(0x124)][_0x296929(0x3f3)],'op':_0x5560bd[_0x296929(0x129)],'objects':_0x5560bd[_0x296929(0x37a)]}},{'id':i[_0x296929(0x197)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'shapeId':_0x5e7073[_0x296929(0x25c)],'shapeType':_0x2434c6,'shapeData':_0x485a51}}],'undos':[{'id':m[_0x296929(0x211)]['id'],'params':{'unitId':_0x31d54b,'subUnitId':_0x47fccd,'type':m[_0x296929(0x124)]['INSERT'],'op':_0x52b8ce[_0x296929(0x321)],'objects':_0x52b8ce[_0x296929(0x37a)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x31d54b,'subUnitId':_0x47fccd,'shapeId':_0x5e7073[_0x296929(0x25c)],'shapeType':_0x2434c6,'shapeData':_0x485a51}},{'id':m[_0x296929(0x211)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'type':m[_0x296929(0x124)]['REMOVE'],'op':_0x5560bd[_0x296929(0x321)],'objects':_0x5560bd[_0x296929(0x37a)]}},{'id':i[_0x296929(0x274)]['id'],'params':{'unitId':_0x51974b,'subUnitId':_0x22c029,'shapeId':_0x5e7073[_0x296929(0x25c)]}}]};}}['_generateCopyPasteMutations'](_0x3ab4da){const _0x4c6ae0=_0x275262;let {toUnitId:_0x1d0c7e,toSubUnitId:_0x50a00c,drawing:_0x461486,newTransforms:_0x4ed270,newDrawingId:_0x10c259,idMap:_0x20c698}=_0x3ab4da,_0x273dfd={..._0x461486,'unitId':_0x1d0c7e,'subUnitId':_0x50a00c,'drawingId':_0x10c259,'transform':_0x4ed270[_0x4c6ae0(0x391)],'sheetTransform':_0x4ed270['sheetTransform']},{redo:_0x130b63,undo:_0x19926e,objects:_0x2697ee}=this['_sheetDrawingService'][_0x4c6ae0(0x3bd)]([_0x273dfd]),_0x287ed6=this[_0x4c6ae0(0x1e1)][_0x4c6ae0(0x3c8)](_0x461486['unitId'],_0x461486[_0x4c6ae0(0x2a3)],_0x461486['drawingId']);if(!_0x287ed6)return{'redos':[],'undos':[]};let _0x5d9c64=_0x287ed6[_0x4c6ae0(0x349)](),_0x367a2e=JSON['parse'](JSON[_0x4c6ae0(0x43f)](_0x287ed6[_0x4c6ae0(0x223)]()));if(_0x367a2e[_0x4c6ae0(0x272)]){var _0x172597,_0x4c47a4;let _0x263b0a=(_0x172597=_0x367a2e[_0x4c6ae0(0x272)][_0x4c6ae0(0x2e4)])==null?void 0x0:_0x172597['shapeId'],_0x4ca074=(_0x4c47a4=_0x367a2e[_0x4c6ae0(0x272)]['to'])==null?void 0x0:_0x4c47a4[_0x4c6ae0(0x330)],_0x2d7b14=!_0x263b0a||_0x20c698[_0x4c6ae0(0x2e6)](_0x263b0a),_0x55b194=!_0x4ca074||_0x20c698[_0x4c6ae0(0x2e6)](_0x4ca074);_0x2d7b14&&_0x263b0a&&_0x367a2e[_0x4c6ae0(0x272)][_0x4c6ae0(0x2e4)]?_0x367a2e['relation'][_0x4c6ae0(0x2e4)]={..._0x367a2e[_0x4c6ae0(0x272)]['from'],'shapeId':_0x20c698[_0x4c6ae0(0x421)](_0x263b0a)}:_0x367a2e[_0x4c6ae0(0x272)][_0x4c6ae0(0x2e4)]=void 0x0,_0x55b194&&_0x4ca074&&_0x367a2e[_0x4c6ae0(0x272)]['to']?_0x367a2e[_0x4c6ae0(0x272)]['to']={..._0x367a2e[_0x4c6ae0(0x272)]['to'],'shapeId':_0x20c698[_0x4c6ae0(0x421)](_0x4ca074)}:_0x367a2e[_0x4c6ae0(0x272)]['to']=void 0x0;}return{'redos':[{'id':m[_0x4c6ae0(0x211)]['id'],'params':{'unitId':_0x1d0c7e,'subUnitId':_0x50a00c,'type':m[_0x4c6ae0(0x124)][_0x4c6ae0(0x3f3)],'op':_0x130b63,'objects':_0x2697ee}},{'id':i[_0x4c6ae0(0x197)]['id'],'params':{'unitId':_0x1d0c7e,'subUnitId':_0x50a00c,'shapeId':_0x10c259,'shapeType':_0x5d9c64,'shapeData':_0x367a2e}}],'undos':[{'id':m[_0x4c6ae0(0x211)]['id'],'params':{'unitId':_0x1d0c7e,'subUnitId':_0x50a00c,'type':m[_0x4c6ae0(0x124)][_0x4c6ae0(0x3ef)],'op':_0x19926e,'objects':_0x2697ee}},{'id':i[_0x4c6ae0(0x274)]['id'],'params':{'unitId':_0x1d0c7e,'subUnitId':_0x50a00c,'shapeId':_0x10c259}}]};}[_0x275262(0x25a)](_0x4bebb8,_0x2b4421,_0x2624f8,_0x8b498){const _0x4e518b=_0x275262;let {range:_0x456d43,skeleton:_0x155090}=_0x2b4421,{range:_0x555d83,skeleton:_0x2b4dea}=_0x2624f8,{transform:_0x442df9,sheetTransform:_0x53c4e6}=_0x4bebb8,_0x2f4d06={..._0x442df9};if(_0x456d43){let _0x39642d=(0x0,o[_0x4e518b(0x282)])(_0x155090,_0x456d43),_0x13dbee=(0x0,o[_0x4e518b(0x282)])(_0x2b4dea,_0x555d83);if(_0x39642d&&_0x13dbee){let _0x3964e0=_0x13dbee['startX']-_0x39642d[_0x4e518b(0x243)],_0xd62084=_0x13dbee[_0x4e518b(0x1c7)]-_0x39642d[_0x4e518b(0x1c7)];_0x2f4d06[_0x4e518b(0x18e)]=(_0x2f4d06['left']??0x0)+_0x3964e0,_0x2f4d06['top']=(_0x2f4d06[_0x4e518b(0x3a8)]??0x0)+_0xd62084;}}else{let _0x1d0df0=(0x0,o[_0x4e518b(0x282)])(_0x2b4dea,_0x555d83);if(_0x8b498&&_0x1d0df0){let _0x422aab=(_0x2f4d06['left']??0x0)-_0x8b498[_0x4e518b(0x18e)],_0x438ec6=(_0x2f4d06['top']??0x0)-_0x8b498['top'];_0x2f4d06[_0x4e518b(0x18e)]=_0x1d0df0['startX']+_0x422aab,_0x2f4d06[_0x4e518b(0x3a8)]=_0x1d0df0[_0x4e518b(0x1c7)]+_0x438ec6;}else _0x2f4d06[_0x4e518b(0x18e)]=_0x1d0df0==null?void 0x0:_0x1d0df0['startX'],_0x2f4d06['top']=_0x1d0df0==null?void 0x0:_0x1d0df0[_0x4e518b(0x1c7)];}return{'transform':_0x2f4d06,'sheetTransform':(0x0,m[_0x4e518b(0x2ab)])(_0x2f4d06,_0x2b4dea)??_0x53c4e6};}};q=A([k(0x0,(0x0,a['Inject'])(o[_0x275262(0x162)])),k(0x1,(0x0,a['Inject'])(l[_0x275262(0x152)])),k(0x2,(0x0,a['Inject'])(m[_0x275262(0x2d2)])),k(0x3,(0x0,a['Inject'])(i[_0x275262(0xf3)])),k(0x4,(0x0,a['Inject'])(v[_0x275262(0x357)]))],q);var St=class extends c[_0x275262(0x33d)]{constructor(_0x2ad16f,_0x139d17){const _0x3ad61b=_0x275262;super(_0x2ad16f,_0x139d17),E(this,_0x3ad61b(0x2dd),null),E(this,_0x3ad61b(0x2ca),null),E(this,'_unitId',null),E(this,_0x3ad61b(0x267),null),E(this,'_isStartConnectorPoint',!0x1),_0x139d17&&this[_0x3ad61b(0x333)](_0x139d17);}['getDrawingSearch'](){const _0x51c294=_0x275262;return{'unitId':this[_0x51c294(0x309)],'subUnitId':this[_0x51c294(0x267)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x4a5608){const _0x1622a2=_0x275262;_0x4a5608[_0x1622a2(0x330)]!==void 0x0&&(this[_0x1622a2(0x2dd)]=_0x4a5608['shapeId']),_0x4a5608[_0x1622a2(0x19e)]!==void 0x0&&(this['_unitId']=_0x4a5608['unitId']),_0x4a5608[_0x1622a2(0x2a3)]!==void 0x0&&(this[_0x1622a2(0x267)]=_0x4a5608[_0x1622a2(0x2a3)]),_0x4a5608['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x4a5608['isStartConnectorPoint']),this['transformByState']({'width':_0x4a5608['width'],'height':_0x4a5608[_0x1622a2(0x2ad)]});}[_0x275262(0x2c8)](_0xf419d7){const _0x5bc870=_0x275262;c[_0x5bc870(0x325)][_0x5bc870(0xe3)](_0xf419d7,{'radius':n[_0x5bc870(0x376)][_0x5bc870(0x2c9)],'fill':n[_0x5bc870(0x376)][_0x5bc870(0x433)],'stroke':n[_0x5bc870(0x376)][_0x5bc870(0x141)],'strokeWidth':n[_0x5bc870(0x376)][_0x5bc870(0x212)],'evented':!0x0});}};let Ct=class extends a[_0x275262(0x284)]{constructor(_0x50ae28,_0x687634,_0xd531fd,_0x57fd2c,_0x478536,_0x5dce3b,_0x3bc2d5,_0xf99279){const _0x2655c0=_0x275262;super(),this['_context']=_0x50ae28,this['_commandService']=_0x687634,this[_0x2655c0(0x2c5)]=_0xd531fd,this['_drawingManagerService']=_0x57fd2c,this[_0x2655c0(0x407)]=_0x478536,this['_sheetsShapeService']=_0x5dce3b,this[_0x2655c0(0x322)]=_0x3bc2d5,this['_sheetBasicShapeConnectionPointController']=_0xf99279,E(this,_0x2655c0(0x397),void 0x0),E(this,'_unitId',void 0x0),E(this,_0x2655c0(0x267),void 0x0),E(this,'_connectorObjects',[]),E(this,_0x2655c0(0x166),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,'_isConnecting',!0x1),E(this,_0x2655c0(0x2c2),!0x1),E(this,'_hasReset',!0x1),E(this,_0x2655c0(0x23a),void 0x0),E(this,_0x2655c0(0x28e),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x2655c0(0x41e)]();}[_0x275262(0x41e)](){const _0x1ffa2d=_0x275262;this[_0x1ffa2d(0x1a9)](),this[_0x1ffa2d(0x1fc)]();}[_0x275262(0x411)](){const _0x3f3a1c=_0x275262;if(!this[_0x3f3a1c(0x309)]||!this[_0x3f3a1c(0x267)]||!this[_0x3f3a1c(0x397)])return;let _0x3a8620={'unitId':this[_0x3f3a1c(0x309)],'subUnitId':this[_0x3f3a1c(0x267)],'drawingId':this['_activeShapeId']},{transform:_0x40ac66}=this[_0x3f3a1c(0x41a)][_0x3f3a1c(0x125)](_0x3a8620);if(_0x40ac66)return{'left':_0x40ac66[_0x3f3a1c(0x18e)]||0x0,'top':_0x40ac66[_0x3f3a1c(0x3a8)]||0x0,'width':_0x40ac66['width']||0x0,'height':_0x40ac66[_0x3f3a1c(0x2ad)]||0x0,'flipX':_0x40ac66[_0x3f3a1c(0x387)]||!0x1,'flipY':_0x40ac66[_0x3f3a1c(0xc3)]||!0x1,'angle':_0x40ac66[_0x3f3a1c(0x3e0)]};}['_addShapeConnectorHandlerObjects'](){const _0x1907ae=_0x275262;if(this[_0x1907ae(0x309)]===void 0x0||this[_0x1907ae(0x267)]===void 0x0||this[_0x1907ae(0x397)]===void 0x0)return;let _0x46e6ab=this['_renderManagerService'][_0x1907ae(0x30b)](this[_0x1907ae(0x309)]);if(!_0x46e6ab||!_0x46e6ab[_0x1907ae(0x2f5)](l[_0x1907ae(0x20c)])[_0x1907ae(0x32e)]())return;let {scene:_0x144f92}=_0x46e6ab,_0x5c760d=this['_getDrawingRect']();if(!_0x5c760d)return;let _0x29c89e=this[_0x1907ae(0x1de)][_0x1907ae(0x3c8)](this[_0x1907ae(0x309)],this['_subUnitId'],this[_0x1907ae(0x397)]);if(!_0x29c89e||!(0x0,n['isConnectorShape'])(_0x29c89e[_0x1907ae(0x349)]()))return;let _0x44638a=_0x29c89e[_0x1907ae(0x1a6)]();if(_0x44638a[_0x1907ae(0x385)]<0x2)return;let _0x7b54c8=new n[(_0x1907ae(0x3e4))](_0x5c760d),_0x15980c=_0x44638a[0x0],_0x8a7a41=_0x44638a[_0x44638a[_0x1907ae(0x385)]-0x1],_0x37b197=_0x7b54c8[_0x1907ae(0x2c0)](_0x15980c),_0x9b00e7=_0x7b54c8[_0x1907ae(0x2c0)](_0x8a7a41);this['_addShapeConnectorHandlerObject'](_0x144f92,{..._0x37b197},!0x0),this[_0x1907ae(0xd2)](_0x144f92,{..._0x9b00e7},!0x1);}[_0x275262(0xd2)](_0x531417,_0xfaeb33,_0xacbc60){const _0x2e8e85=_0x275262;if(this['_activeShapeId']===void 0x0||this[_0x2e8e85(0x309)]===void 0x0||this[_0x2e8e85(0x267)]===void 0x0)return;let _0x4d242f=_0x2e8e85(0x200)+this['_unitId']+'-'+this[_0x2e8e85(0x267)]+'-'+this['_activeShapeId']+'-'+(_0xacbc60?'start':'end'),_0x5dd904=_0x531417['getObjectIncludeInGroup'](_0x4d242f);if(_0x5dd904){_0x5dd904[_0x2e8e85(0x31d)]({'left':_0xfaeb33['x']-n[_0x2e8e85(0x376)][_0x2e8e85(0x2c9)],'top':_0xfaeb33['y']-n[_0x2e8e85(0x376)]['cxnPointRadius']});return;}let _0x5b922c=new St(_0x4d242f,{'left':_0xfaeb33['x']-n[_0x2e8e85(0x376)][_0x2e8e85(0x2c9)],'top':_0xfaeb33['y']-n[_0x2e8e85(0x376)]['cxnPointRadius'],'shapeId':this[_0x2e8e85(0x397)],'unitId':this[_0x2e8e85(0x309)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0xacbc60,'width':n[_0x2e8e85(0x376)][_0x2e8e85(0x2c9)]*0x2,'height':n[_0x2e8e85(0x376)]['cxnPointRadius']*0x2,'zIndex':c[_0x2e8e85(0x436)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x2e8e85(0x130)](_0x5b922c),this['_attachConnectorObjectEvent'](_0x5b922c,_0x531417,_0xacbc60),_0x531417['addObject'](_0x5b922c,c[_0x2e8e85(0x436)]+0x1);}[_0x275262(0x13a)](_0x3d49b3,_0x47d81d){const _0x412397=_0x275262;var _0x2f3d19;let _0x294fdb={'x':0x0,'y':0x0};if(!_0x3d49b3||!_0x47d81d)return _0x294fdb;let _0x5b1ac3=this[_0x412397(0x2c5)][_0x412397(0x30b)](_0x3d49b3);if(!_0x5b1ac3||!_0x5b1ac3['with'](l[_0x412397(0x20c)])[_0x412397(0x1df)](_0x47d81d))return _0x294fdb;let _0x51ee87=_0x5b1ac3['with'](l['SheetScrollManagerService']),_0x20e291=_0x51ee87==null?void 0x0:_0x51ee87[_0x412397(0x2ce)]();if(!_0x20e291)return _0x294fdb;let _0x5465ea=(_0x2f3d19=this[_0x412397(0x407)][_0x412397(0x257)](_0x3d49b3))==null?void 0x0:_0x2f3d19[_0x412397(0xf0)](_0x47d81d);if(!_0x5465ea)return _0x294fdb;let _0x33d78d=(0x0,l[_0x412397(0x17a)])(_0x20e291['sheetViewStartRow'],_0x20e291[_0x412397(0x343)],_0x5b1ac3[_0x412397(0x419)],_0x5465ea);return _0x33d78d?{'x':_0x33d78d['viewportScrollX'],'y':_0x33d78d['viewportScrollY']}:_0x294fdb;}[_0x275262(0x368)](_0x17e76d,_0x5e7687){const _0x1d1b42=_0x275262;var _0xfa3028;let _0x12557a=(_0xfa3028=this[_0x1d1b42(0x407)][_0x1d1b42(0x257)](_0x17e76d))==null?void 0x0:_0xfa3028[_0x1d1b42(0xf0)](_0x5e7687);return(_0x12557a==null?void 0x0:_0x12557a['getZoomRatio']())??0x1;}[_0x275262(0xcb)](_0x964dc9,_0x1268cb,_0x174257,_0x33ae38,_0x91f61){const _0x78b978=_0x275262;this[_0x78b978(0x23a)][_0x78b978(0x186)](),this['_cxtHandlerPointerUp'][_0x78b978(0x186)](),this[_0x78b978(0x322)][_0x78b978(0x1c9)]();let _0x1fa406=this['_currentConnectionTarget'];this[_0x78b978(0x12a)][_0x78b978(0x21c)]();let _0x591742=this[_0x78b978(0x13a)](this[_0x78b978(0x309)],this['_subUnitId']),_0x145f55=this[_0x78b978(0x368)](this['_unitId'],this[_0x78b978(0x267)]),_0x5a2b12={'x':_0x174257['offsetX']/_0x145f55+_0x591742['x'],'y':_0x174257['offsetY']/_0x145f55+_0x591742['y']},_0x50ff85=_0x1fa406?_0x1fa406[_0x78b978(0x2d6)]:_0x5a2b12,_0x8ad503=_0x33ae38?this[_0x78b978(0x3ed)]['getEndConnectInfo']():this[_0x78b978(0x3ed)][_0x78b978(0xd4)](),_0x48da20=this[_0x78b978(0x3ed)]['getShapeType']();_0x8ad503?this['_handleConnectedEndpointPointerUp'](_0x8ad503,_0x50ff85,_0x33ae38,_0x1fa406,_0x91f61):this['_handleFreeEndpointPointerUp'](_0x1268cb,_0x50ff85,_0x33ae38,_0x1fa406,_0x91f61,_0x48da20),this[_0x78b978(0x29d)]=!0x1,this[_0x78b978(0x36d)]=!0x1,this[_0x78b978(0x1a0)]=null,_0x964dc9[_0x78b978(0x31a)]();}[_0x275262(0x196)](_0x41b6d3,_0x8f494c,_0x409f4f,_0x1acbf1,_0x3ae8f1,_0x2c2e9e){const _0x14922e=_0x275262;let _0x40fc4c=_0x2c2e9e===n[_0x14922e(0x295)][_0x14922e(0x20f)]||_0x2c2e9e===n[_0x14922e(0x295)][_0x14922e(0x155)],_0x265b7=_0x409f4f?_0x8f494c:_0x41b6d3,_0x4140b1=_0x409f4f?_0x41b6d3:_0x8f494c,_0x36ca64=this[_0x14922e(0x3ed)]['getConnectorLinePoints'](),_0x85d060=this[_0x14922e(0x3ed)]['getShapeType'](),_0x1064b8=(0x0,n[_0x14922e(0xcc)])(_0x85d060),_0x58e6cf=n[_0x14922e(0x3e4)][_0x14922e(0x2bb)](_0x36ca64,_0x1064b8),_0xd1a52e=_0x40fc4c?n[_0x14922e(0x3e4)]['computeStraightConnectorLayout'](_0x265b7,_0x4140b1):n['ConnectorCoordinateTransform'][_0x14922e(0x228)](_0x41b6d3,_0x8f494c,_0x409f4f,_0x58e6cf);_0x1acbf1?this[_0x14922e(0x2c1)](_0xd1a52e,_0x1acbf1,_0x409f4f,_0x3ae8f1):this['_executeResizeCommand'](_0xd1a52e,_0x3ae8f1);}[_0x275262(0x1a5)](_0x445260,_0xd6b7e3,_0x2ee995,_0x36ca32,_0x1edaea){const _0x390312=_0x275262;let _0x5a7de9=this[_0x390312(0x37f)](_0x445260);if(!_0x5a7de9)return;let _0x1f0f74=_0x36ca32?_0x36ca32['angle']:this['_calculateFreeEndpointAngle'](_0x5a7de9[_0x390312(0x31c)],_0xd6b7e3),_0x28ee8f;if(_0x36ca32){let _0x4019c6=this['_drawingManagerService'][_0x390312(0x125)]({'unitId':_0x36ca32[_0x390312(0x19e)],'subUnitId':_0x36ca32[_0x390312(0x2a3)],'drawingId':_0x36ca32[_0x390312(0x330)]});if(_0x4019c6!=null&&_0x4019c6[_0x390312(0x391)]){let {left:_0x434994=0x0,top:_0x4ea4aa=0x0,width:_0x4bdde5=0x0,height:_0x44e69b=0x0,angle:_0x56dfc8}=_0x4019c6[_0x390312(0x391)];_0x28ee8f=(0x0,n['getBasicShapeRotateBound'])({'left':_0x434994,'top':_0x4ea4aa,'width':_0x4bdde5,'height':_0x44e69b},_0x56dfc8||0x0);}else _0x28ee8f={'left':_0xd6b7e3['x'],'top':_0xd6b7e3['y'],'width':0x0,'height':0x0};}else _0x28ee8f={'left':_0xd6b7e3['x'],'top':_0xd6b7e3['y'],'width':0x0,'height':0x0};let _0x5cc1cb={'point':_0xd6b7e3,'angle':_0x1f0f74,'bounds':_0x28ee8f},_0x28e2f2=_0x2ee995?_0x5cc1cb:_0x5a7de9,_0x16f4d0=_0x2ee995?_0x5a7de9:_0x5cc1cb,_0x551efc=this[_0x390312(0x3ed)][_0x390312(0x349)](),_0x3024d6=(0x0,n[_0x390312(0x112)])(_0x28e2f2,_0x16f4d0,_0x551efc);this[_0x390312(0x3ed)][_0x390312(0xf5)]();let _0x3bc81d=(0x0,n['computeConnectorRouteLayout'])(_0x3024d6,_0x551efc);_0x36ca32?this[_0x390312(0x34a)](_0x3bc81d,_0x36ca32,_0x445260,_0x2ee995,_0x1edaea):this[_0x390312(0x3ee)](_0x3bc81d,_0x445260,_0x2ee995,_0x1edaea);}[_0x275262(0x2c1)](_0x2d7432,_0x474699,_0x31470e,_0x45822f){const _0x34642c=_0x275262;let _0x41ced8=this['_activeShapeModel'][_0x34642c(0x223)]()[_0x34642c(0x272)],_0x2df0d2={..._0x41ced8},_0x7343b0={'shapeId':_0x474699[_0x34642c(0x330)],'cxnIndex':_0x474699[_0x34642c(0x1f7)]};_0x31470e?_0x2df0d2[_0x34642c(0x2e4)]=_0x7343b0:_0x2df0d2['to']=_0x7343b0;let _0x396686=this[_0x34642c(0x3ed)][_0x34642c(0x349)](),_0x345e53=(0x0,n[_0x34642c(0x372)])(_0x2d7432[_0x34642c(0x2da)],_0x396686),_0x40a01c={'unitId':this[_0x34642c(0x309)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x2d7432['worldRect'][_0x34642c(0x40e)],'height':_0x2d7432['worldRect'][_0x34642c(0x2ad)],'left':_0x2d7432[_0x34642c(0x311)]['left'],'top':_0x2d7432[_0x34642c(0x311)]['top'],'flipX':_0x2d7432[_0x34642c(0x311)]['flipX']||!0x1,'flipY':_0x2d7432[_0x34642c(0x311)]['flipY']||!0x1,'newAdjustValues':_0x345e53[_0x34642c(0x27e)],'oldAdjustValues':_0x45822f,'oldRelation':_0x41ced8,'newRelation':_0x2df0d2,'newLineType':_0x345e53[_0x34642c(0x11c)],'oldLineType':_0x396686};this['_commandService']['executeCommand'](i[_0x34642c(0xe9)]['id'],_0x40a01c);}[_0x275262(0x14d)](_0x219661,_0x5681e0){const _0x40d71e=_0x275262;let _0x26b038=this[_0x40d71e(0x3ed)][_0x40d71e(0x349)](),_0x377fc9=(0x0,n[_0x40d71e(0x372)])(_0x219661[_0x40d71e(0x2da)],_0x26b038),_0x9d62cb={'unitId':this[_0x40d71e(0x309)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x40d71e(0x397)],'width':_0x219661[_0x40d71e(0x311)][_0x40d71e(0x40e)],'height':_0x219661[_0x40d71e(0x311)][_0x40d71e(0x2ad)],'left':_0x219661[_0x40d71e(0x311)][_0x40d71e(0x18e)],'top':_0x219661[_0x40d71e(0x311)][_0x40d71e(0x3a8)],'flipX':_0x219661[_0x40d71e(0x311)][_0x40d71e(0x387)]||!0x1,'flipY':_0x219661['worldRect'][_0x40d71e(0xc3)]||!0x1,'angle':_0x219661['worldRect'][_0x40d71e(0x3e0)]||0x0,'newAdjustValues':_0x377fc9[_0x40d71e(0x27e)],'oldAdjustValues':_0x5681e0,'newLineType':_0x377fc9[_0x40d71e(0x11c)],'oldLineType':_0x26b038};this[_0x40d71e(0x278)][_0x40d71e(0x136)](i[_0x40d71e(0x28f)]['id'],_0x9d62cb);}['_executeConnectedRouteConnectionCommand'](_0x1b713a,_0x557570,_0x50314a,_0x43141a,_0x35c9dc){const _0x31fb14=_0x275262;let _0x4c1ee8=this['_activeShapeModel']['getShapeData']()[_0x31fb14(0x272)],_0x371c5a={..._0x4c1ee8},_0x400478={'shapeId':_0x557570['shapeId'],'cxnIndex':_0x557570[_0x31fb14(0x1f7)]};_0x43141a?(_0x371c5a['from']=_0x400478,_0x371c5a['to']=_0x50314a):(_0x371c5a[_0x31fb14(0x2e4)]=_0x50314a,_0x371c5a['to']=_0x400478);let _0x2c1e96={'unitId':this[_0x31fb14(0x309)],'subUnitId':this[_0x31fb14(0x267)],'connectorShapeId':this[_0x31fb14(0x397)],'width':_0x1b713a[_0x31fb14(0x311)][_0x31fb14(0x40e)],'height':_0x1b713a[_0x31fb14(0x311)]['height'],'left':_0x1b713a['worldRect'][_0x31fb14(0x18e)],'top':_0x1b713a[_0x31fb14(0x311)][_0x31fb14(0x3a8)],'flipX':_0x1b713a[_0x31fb14(0x311)]['flipX']||!0x1,'flipY':_0x1b713a[_0x31fb14(0x311)]['flipY']||!0x1,'oldAdjustValues':_0x35c9dc,'newAdjustValues':_0x1b713a[_0x31fb14(0x27e)],'newLineType':_0x1b713a[_0x31fb14(0x11c)],'rotation':_0x1b713a[_0x31fb14(0x32b)],'oldRelation':_0x4c1ee8,'newRelation':_0x371c5a};this[_0x31fb14(0x278)]['executeCommand'](i[_0x31fb14(0xe9)]['id'],_0x2c1e96);}['_executeConnectedRouteResizeCommand'](_0x29d91a,_0xa65938,_0x1efc59,_0x4c0590){const _0x23fad6=_0x275262;let _0x123c86=this['_activeShapeModel'][_0x23fad6(0x223)]()['relation'],_0x462ecd={};_0x1efc59?(_0x462ecd['to']=_0xa65938,_0x462ecd['from']=void 0x0):(_0x462ecd[_0x23fad6(0x2e4)]=_0xa65938,_0x462ecd['to']=void 0x0);let _0x2e11c7={'unitId':this[_0x23fad6(0x309)],'subUnitId':this[_0x23fad6(0x267)],'connectorShapeId':this[_0x23fad6(0x397)],'width':_0x29d91a[_0x23fad6(0x311)][_0x23fad6(0x40e)],'height':_0x29d91a[_0x23fad6(0x311)][_0x23fad6(0x2ad)],'left':_0x29d91a['worldRect'][_0x23fad6(0x18e)],'top':_0x29d91a[_0x23fad6(0x311)][_0x23fad6(0x3a8)],'flipX':_0x29d91a[_0x23fad6(0x311)][_0x23fad6(0x387)]||!0x1,'flipY':_0x29d91a[_0x23fad6(0x311)][_0x23fad6(0xc3)]||!0x1,'oldAdjustValues':_0x4c0590,'newAdjustValues':_0x29d91a[_0x23fad6(0x27e)],'newLineType':_0x29d91a[_0x23fad6(0x11c)],'rotation':_0x29d91a[_0x23fad6(0x32b)],'oldRelation':_0x123c86,'newRelation':_0x462ecd};this['_commandService'][_0x23fad6(0x136)](i[_0x23fad6(0xe9)]['id'],_0x2e11c7);}[_0x275262(0x432)](_0x138af4,_0x22502e,_0x2a5cea){const _0x2e93db=_0x275262;this['disposeWithMe']((0x0,a['toDisposable'])(_0x138af4[_0x2e93db(0x3ad)][_0x2e93db(0x401)]((_0x29a90b,_0x5e7ce9)=>{const _0x169b4a=_0x2e93db;let _0x813279=_0x138af4[_0x169b4a(0x18f)]();if(this[_0x169b4a(0x3ed)]=this[_0x169b4a(0x1de)][_0x169b4a(0x3c8)](_0x813279[_0x169b4a(0x19e)],_0x813279[_0x169b4a(0x2a3)],_0x813279[_0x169b4a(0x25c)]),!this[_0x169b4a(0x3ed)])return;let _0x15a4fb={};this[_0x169b4a(0x3ed)][_0x169b4a(0x26e)]()[_0x169b4a(0x3b3)](_0x1e37b1=>{const _0x2db413=_0x169b4a;let _0x31f93b=this[_0x2db413(0x3ed)][_0x2db413(0x2a2)](_0x1e37b1);_0x31f93b!==void 0x0&&(_0x15a4fb[_0x1e37b1]=_0x31f93b);});let _0x42bdd9=this['_getDrawingRect']();if(!_0x42bdd9)return;this['_baseDrawingRect']={..._0x42bdd9};let _0x7ce404=new n[(_0x169b4a(0x3e4))](this[_0x169b4a(0x166)]),_0x48e792=(0x0,s[_0x169b4a(0x18c)])({'unitId':this[_0x169b4a(0x309)],'subUnitId':this[_0x169b4a(0x267)],'drawingId':this[_0x169b4a(0x397)]}),_0x2b5978=_0x22502e[_0x169b4a(0x367)](_0x48e792);this[_0x169b4a(0x29d)]=!0x0,_0x22502e[_0x169b4a(0x213)](),this[_0x169b4a(0x12a)][_0x169b4a(0x13b)](_0x22502e,this[_0x169b4a(0x309)],this[_0x169b4a(0x267)],this[_0x169b4a(0x397)]),this[_0x169b4a(0x1a0)]=null;let _0x359caf=this['_activeShapeModel'][_0x169b4a(0x1a6)](),_0x21ca1c=_0x359caf[0x0],_0x10137b=_0x359caf[_0x359caf[_0x169b4a(0x385)]-0x1],_0x3e3521=_0x2a5cea?_0x7ce404[_0x169b4a(0x2c0)](_0x10137b):_0x7ce404[_0x169b4a(0x2c0)](_0x21ca1c);this[_0x169b4a(0x23a)]=_0x22502e[_0x169b4a(0x366)][_0x169b4a(0x401)]((_0x53fff8,_0xeb3b81)=>{const _0x424c52=_0x169b4a;if(!this[_0x424c52(0x29d)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x424c52(0x322)]['clearAdjustControls'](),this[_0x424c52(0x3ed)][_0x424c52(0x122)](),!0x0);let _0x3a8107=this[_0x424c52(0x13a)](this[_0x424c52(0x309)],this['_subUnitId']),_0x2aa3a2=this[_0x424c52(0x368)](this[_0x424c52(0x309)],this[_0x424c52(0x267)]),_0x1b87f3={'x':_0x53fff8[_0x424c52(0x2ea)]/_0x2aa3a2+_0x3a8107['x'],'y':_0x53fff8['offsetY']/_0x2aa3a2+_0x3a8107['y']},_0x2fb0ce=this[_0x424c52(0x12a)][_0x424c52(0x150)](_0x1b87f3);if(_0x2fb0ce){let {shapeId:_0x5ac54d,unitId:_0x54dbe1,subUnitId:_0x8f1cb8}=_0x2fb0ce;if(_0x5ac54d&&_0x54dbe1&&_0x8f1cb8){let _0x126a02=(0x0,s[_0x424c52(0x18c)])({'unitId':_0x54dbe1,'subUnitId':_0x8f1cb8,'drawingId':_0x5ac54d});_0x2fb0ce['angle']=(_0x22502e[_0x424c52(0x367)](_0x126a02)['angle']||0x0)+_0x2fb0ce[_0x424c52(0x3e0)];}}this[_0x424c52(0x1a0)]=_0x2fb0ce;let _0x5a812b=_0x2a5cea?this[_0x424c52(0x3ed)]['getEndConnectInfo']():this[_0x424c52(0x3ed)]['getStartConnectInfo']();if(_0x5a812b){this['_handleConnectedEndpointMove'](_0x5a812b,_0x1b87f3,_0x2a5cea,_0x2b5978,_0x138af4);return;}this[_0x424c52(0x344)](_0x1b87f3,_0x3e3521,_0x2a5cea,_0x2b5978,_0x138af4);}),this[_0x169b4a(0x28e)]=_0x22502e['onPointerUp$'][_0x169b4a(0x401)]((_0x52eba8,_0x287be0)=>{const _0x20a6f3=_0x169b4a;this[_0x20a6f3(0xcb)](_0x22502e,_0x3e3521,_0x52eba8,_0x2a5cea,_0x15a4fb);}),_0x5e7ce9['stopPropagation']();})));}[_0x275262(0x159)](_0x3e1359,_0x4cbc49,_0x418856){const _0x591692=_0x275262;let _0x2cbf3f=this[_0x591692(0x1de)]['getBasicShapeRelation'](_0x3e1359,_0x4cbc49,_0x418856);if(!_0x2cbf3f||_0x2cbf3f[_0x591692(0x385)]===0x0)return;let _0x4542a2=this[_0x591692(0x2c5)][_0x591692(0x30b)](_0x3e1359);if(!_0x4542a2)return;let {scene:_0x44535b}=_0x4542a2;for(let _0x33425b of _0x2cbf3f){let _0x631d7f=_0x33425b[_0x591692(0x14a)],_0x317289=this[_0x591692(0x1de)]['getShapeModel'](_0x3e1359,_0x4cbc49,_0x631d7f);if(!_0x317289)continue;let _0x307726=_0x317289[_0x591692(0xd4)](),_0x1f68b7=_0x317289[_0x591692(0x104)](),_0xd12d4=(_0x307726==null?void 0x0:_0x307726[_0x591692(0x330)])===_0x418856,_0x4a22fe=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3e1359,'subUnitId':_0x4cbc49,'drawingId':_0x631d7f}),_0x35d58b=_0x44535b[_0x591692(0x367)](_0x4a22fe);if(!_0x35d58b)continue;let _0x2f80e0=this[_0x591692(0x41a)][_0x591692(0x125)]({'unitId':_0x3e1359,'subUnitId':_0x4cbc49,'drawingId':_0x631d7f});_0x2f80e0!=null&&_0x2f80e0['transform']&&(_0x307726&&_0x1f68b7?this[_0x591692(0x305)](_0x3e1359,_0x4cbc49,_0x631d7f,_0x317289,_0x307726,_0x1f68b7,_0x35d58b):this[_0x591692(0x203)](_0x3e1359,_0x4cbc49,_0x631d7f,_0x317289,_0xd12d4?_0x307726:_0x1f68b7,_0xd12d4,_0x2f80e0,_0x35d58b));}}[_0x275262(0x305)](_0x211489,_0x54e4bf,_0x13dab0,_0x169cb,_0x59b610,_0x27edc2,_0x586631){const _0x37c591=_0x275262;let _0x3d3bb0=this[_0x37c591(0x309)],_0x4254f6=this[_0x37c591(0x267)];this[_0x37c591(0x309)]=_0x211489,this[_0x37c591(0x267)]=_0x54e4bf;let _0x461c1f=this[_0x37c591(0x37f)](_0x59b610),_0x111c86=this['_getConnectPointInfo'](_0x27edc2);if(this[_0x37c591(0x309)]=_0x3d3bb0,this[_0x37c591(0x267)]=_0x4254f6,!_0x461c1f||!_0x111c86)return;let _0x2cd381=_0x169cb[_0x37c591(0x349)](),_0x7a331d=(0x0,n[_0x37c591(0x112)])(_0x461c1f,_0x111c86,_0x2cd381);_0x7a331d&&_0x169cb[_0x37c591(0x1ce)](_0x7a331d);let _0x3c931b=(0x0,n['computeConnectorRouteLayout'])(_0x7a331d,_0x2cd381);_0x3c931b[_0x37c591(0x11c)]!==_0x2cd381&&_0x169cb[_0x37c591(0x3e7)](_0x3c931b[_0x37c591(0x11c)]),_0x169cb[_0x37c591(0x122)]();for(let [_0x81559d,_0xbea347]of Object[_0x37c591(0x3fc)](_0x3c931b[_0x37c591(0x27e)]))_0x169cb[_0x37c591(0x32f)](_0x81559d,_0xbea347);_0x169cb[_0x37c591(0x290)]({'width':_0x3c931b[_0x37c591(0x311)]['width'],'height':_0x3c931b['worldRect']['height']}),_0x586631[_0x37c591(0x31d)]({'flipX':_0x3c931b['worldRect']['flipX'],'flipY':_0x3c931b['worldRect'][_0x37c591(0xc3)],'left':_0x3c931b[_0x37c591(0x311)][_0x37c591(0x18e)],'top':_0x3c931b[_0x37c591(0x311)][_0x37c591(0x3a8)],'width':_0x3c931b['worldRect']['width'],'height':_0x3c931b['worldRect'][_0x37c591(0x2ad)],'angle':_0x3c931b[_0x37c591(0x32b)]}),_0x169cb[_0x37c591(0xf5)]();}['_moveConnectorWithShape'](_0x2e8c40,_0x560502,_0x2593a0,_0xfe825d,_0x588e64,_0x38006e,_0x28e280,_0x5ac1c0){const _0x534768=_0x275262;let _0x2810f4=this[_0x534768(0x309)],_0x1a8ccb=this[_0x534768(0x267)];this[_0x534768(0x309)]=_0x2e8c40,this[_0x534768(0x267)]=_0x560502;let _0x4c6b51=this['_getConnectPointInfo'](_0x588e64);if(this[_0x534768(0x309)]=_0x2810f4,this['_subUnitId']=_0x1a8ccb,!_0x4c6b51)return;let {left:_0x2dfaa8=0x0,top:_0x2ceb40=0x0,width:_0x539fad=0x0,height:_0x293e8b=0x0,flipX:_0x3fd03f=!0x1,flipY:_0x50fbe7=!0x1}=_0x28e280['transform'],_0x5ad1b6=_0xfe825d[_0x534768(0x1a6)]();if(_0x5ad1b6[_0x534768(0x385)]<0x2)return;let _0xbde33b=new n[(_0x534768(0x3e4))]({'left':_0x2dfaa8,'top':_0x2ceb40,'width':_0x539fad,'height':_0x293e8b,'flipX':_0x3fd03f,'flipY':_0x50fbe7}),_0x41fa8f=_0x38006e?_0x5ad1b6[_0x5ad1b6['length']-0x1]:_0x5ad1b6[0x0],_0x438896=_0xbde33b[_0x534768(0x2c0)](_0x41fa8f),_0x49b4c8=n[_0x534768(0x3e4)][_0x534768(0x228)](_0x438896,_0x4c6b51[_0x534768(0x31c)],!_0x38006e);_0x5ac1c0[_0x534768(0x31d)]({'flipX':_0x49b4c8[_0x534768(0x311)]['flipX'],'flipY':_0x49b4c8[_0x534768(0x311)][_0x534768(0xc3)],'left':_0x49b4c8[_0x534768(0x311)][_0x534768(0x18e)],'top':_0x49b4c8['worldRect'][_0x534768(0x3a8)],'width':_0x49b4c8[_0x534768(0x311)][_0x534768(0x40e)],'height':_0x49b4c8['worldRect'][_0x534768(0x2ad)],'angle':_0x49b4c8['worldRect'][_0x534768(0x3e0)]}),_0x5ac1c0['makeDirty'](!0x0);}[_0x275262(0x425)](){const _0x1aa1b0=_0x275262;this[_0x1aa1b0(0x1b6)][_0x1aa1b0(0x385)]!==0x0&&(this[_0x1aa1b0(0x1b6)][_0x1aa1b0(0x3b3)](_0x2910b2=>{_0x2910b2['dispose']();}),this[_0x1aa1b0(0x1b6)]=[]);}[_0x275262(0x1fc)](){const _0x494db2=_0x275262;let _0x192a2b=this[_0x494db2(0x407)][_0x494db2(0x2b2)](a[_0x494db2(0x412)][_0x494db2(0x306)]);this[_0x494db2(0x177)](_0x192a2b[_0x494db2(0xe2)]((0x0,u[_0x494db2(0xe5)])(_0x41c7f8=>_0x41c7f8?_0x41c7f8[_0x494db2(0x1e5)][_0x494db2(0xe2)]((0x0,u[_0x494db2(0xe5)])(_0x2661fa=>{const _0x11b09b=_0x494db2;if(!_0x2661fa)return u[_0x11b09b(0x1ca)];let _0x291b88=_0x41c7f8['getUnitId'](),_0x52cb97=this[_0x11b09b(0x2c5)]['getRenderUnitById'](_0x291b88),_0x27bb5b=_0x52cb97==null?void 0x0:_0x52cb97[_0x11b09b(0x419)];return _0x27bb5b?(0x0,u['of'])(_0x27bb5b):u[_0x11b09b(0x1ca)];})):u[_0x494db2(0x1ca)]))[_0x494db2(0x279)](_0x3e743e=>{const _0x2ede6e=_0x494db2;let _0x135000=_0x3e743e[_0x2ede6e(0x10b)]();this['disposeWithMe'](_0x3e743e['onPointerMove$'][_0x2ede6e(0x401)](_0x3151ff=>{const _0x2438f2=_0x2ede6e;this[_0x2438f2(0x2c2)]&&this['_activeShapeId']&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x135000[_0x2ede6e(0x2d0)]['subscribe'](_0x4dba12=>{const _0x490a6b=_0x2ede6e;let {objects:_0x53510f}=_0x4dba12;this[_0x490a6b(0x425)](),_0x53510f!==null&&_0x53510f[_0x490a6b(0x3f9)]===0x1&&_0x53510f[_0x490a6b(0x247)]()[_0x490a6b(0x25b)]()['value']instanceof D&&(this[_0x490a6b(0x2c2)]=!0x0);})),this[_0x2ede6e(0x177)](_0x135000[_0x2ede6e(0x116)][_0x2ede6e(0x279)](_0x13c4c2=>{const _0x466ae5=_0x2ede6e;this[_0x466ae5(0x2c2)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x2ede6e(0x177)](_0x3e743e[_0x2ede6e(0x19b)][_0x2ede6e(0x401)](()=>{const _0x4b9851=_0x2ede6e;this[_0x4b9851(0x2c2)]&&(this[_0x4b9851(0x2c2)]=!0x1,this[_0x4b9851(0x135)]());})),this[_0x2ede6e(0x177)](_0x135000[_0x2ede6e(0x281)]['subscribe'](()=>{const _0x4367fe=_0x2ede6e;this[_0x4367fe(0x309)]&&this[_0x4367fe(0x267)]&&this['_activeShapeId']&&this[_0x4367fe(0x41a)][_0x4367fe(0x125)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4367fe(0x397)]})&&(this[_0x4367fe(0x425)](),this[_0x4367fe(0x135)]());}));}));}[_0x275262(0x1a9)](){const _0x3bc2e4=_0x275262;this['disposeWithMe'](this['_drawingManagerService']['focus$'][_0x3bc2e4(0x279)](_0x28bb37=>{const _0x5dd1e5=_0x3bc2e4;if(_0x28bb37['length']===0x1){let _0x22e77d=_0x28bb37[0x0];if(_0x22e77d['drawingType']===a[_0x5dd1e5(0x3cc)]['DRAWING_SHAPE']){let _0x9c7dd8=this[_0x5dd1e5(0x1de)][_0x5dd1e5(0x3c8)](_0x22e77d[_0x5dd1e5(0x19e)],_0x22e77d[_0x5dd1e5(0x2a3)],_0x22e77d['drawingId']);if(_0x9c7dd8&&(0x0,n[_0x5dd1e5(0x265)])(_0x9c7dd8[_0x5dd1e5(0x349)]())){this[_0x5dd1e5(0x397)]=_0x22e77d['drawingId'],this[_0x5dd1e5(0x309)]=_0x22e77d[_0x5dd1e5(0x19e)],this[_0x5dd1e5(0x267)]=_0x22e77d[_0x5dd1e5(0x2a3)],this[_0x5dd1e5(0x425)](),this[_0x5dd1e5(0x135)]();return;}}}this[_0x5dd1e5(0x397)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x5dd1e5(0x425)]();})),this['disposeWithMe'](this[_0x3bc2e4(0x41a)][_0x3bc2e4(0x43d)][_0x3bc2e4(0x279)](_0x5f1765=>{const _0x3abc10=_0x3bc2e4;if(_0x5f1765['length']===0x1){var _0x346b91;let _0x369e8a=_0x5f1765[0x0],_0x2eea4c=(_0x346b91=this['_drawingManagerService']['getDrawingByParam'](_0x369e8a))==null?void 0x0:_0x346b91['drawingType'];_0x2eea4c===a[_0x3abc10(0x3cc)][_0x3abc10(0x2bd)]&&_0x369e8a[_0x3abc10(0x25c)]===this['_activeShapeId']?(this[_0x3abc10(0x425)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x3abc10(0x397)]&&_0x2eea4c===a[_0x3abc10(0x3cc)][_0x3abc10(0x2bd)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x369e8a[_0x3abc10(0x19e)],_0x369e8a[_0x3abc10(0x2a3)],_0x369e8a[_0x3abc10(0x25c)]);}})),this[_0x3bc2e4(0x177)](this[_0x3bc2e4(0x41a)]['remove$'][_0x3bc2e4(0x279)](_0x1d0065=>{const _0x2968be=_0x3bc2e4;for(let _0x59fff1 of _0x1d0065){let {drawingId:_0xd376b5}=_0x59fff1;if(this[_0x2968be(0x397)]===_0xd376b5){this[_0x2968be(0x3c2)]();return;}}}));}['_handleConnectedEndpointMove'](_0x390036,_0x2d662e,_0x5c39fa,_0x42486d,_0x11fb6b){const _0xc94dfd=_0x275262;var _0x3430f7;if(!this['_activeShapeModel'])return;let _0x461d94=this['_getConnectPointInfo'](_0x390036);if(!_0x461d94)return;let _0x5ee591=this[_0xc94dfd(0x1a0)]?this['_currentConnectionTarget'][_0xc94dfd(0x2d6)]:_0x2d662e,_0x35422f=this[_0xc94dfd(0x1a0)]?this[_0xc94dfd(0x1a0)]['angle']:this['_calculateFreeEndpointAngle'](_0x461d94[_0xc94dfd(0x31c)],_0x5ee591),_0x3bfdb7;if(this[_0xc94dfd(0x1a0)]){let _0x8280ed=this[_0xc94dfd(0x41a)][_0xc94dfd(0x125)]({'unitId':this[_0xc94dfd(0x1a0)][_0xc94dfd(0x19e)],'subUnitId':this[_0xc94dfd(0x1a0)][_0xc94dfd(0x2a3)],'drawingId':this[_0xc94dfd(0x1a0)][_0xc94dfd(0x330)]});if(_0x8280ed!=null&&_0x8280ed[_0xc94dfd(0x391)]){let {left:_0x949a5b=0x0,top:_0x1cdb6a=0x0,width:_0x4df698=0x0,height:_0x1bf1f3=0x0,angle:_0x2699a5}=_0x8280ed[_0xc94dfd(0x391)];_0x3bfdb7=(0x0,n['getBasicShapeRotateBound'])({'left':_0x949a5b,'top':_0x1cdb6a,'width':_0x4df698,'height':_0x1bf1f3},_0x2699a5||0x0);}else _0x3bfdb7={'left':_0x5ee591['x'],'top':_0x5ee591['y'],'width':0x0,'height':0x0};}else _0x3bfdb7={'left':_0x5ee591['x'],'top':_0x5ee591['y'],'width':0x0,'height':0x0};let _0x45b078={'point':_0x5ee591,'angle':_0x35422f,'bounds':_0x3bfdb7},_0x46c215=_0x5c39fa?_0x45b078:_0x461d94,_0x47aa35=_0x5c39fa?_0x461d94:_0x45b078,_0x2f551a=this['_activeShapeModel'][_0xc94dfd(0x349)](),_0x583066=(0x0,n[_0xc94dfd(0x112)])(_0x46c215,_0x47aa35,_0x2f551a);_0x583066&&this[_0xc94dfd(0x3ed)][_0xc94dfd(0x1ce)](_0x583066);let _0x282986=(0x0,n[_0xc94dfd(0x372)])(_0x583066,_0x2f551a);_0x282986[_0xc94dfd(0x11c)]!==_0x2f551a&&this['_activeShapeModel'][_0xc94dfd(0x3e7)](_0x282986['lineType']);for(let [_0x47ec42,_0x19d158]of Object[_0xc94dfd(0x3fc)](_0x282986[_0xc94dfd(0x27e)]))this[_0xc94dfd(0x3ed)][_0xc94dfd(0x32f)](_0x47ec42,_0x19d158);this[_0xc94dfd(0x3ed)][_0xc94dfd(0x290)]({'width':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x40e)],'height':_0x282986['worldRect']['height']}),_0x42486d[_0xc94dfd(0x31d)]({'flipX':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x387)],'flipY':_0x282986[_0xc94dfd(0x311)]['flipY'],'left':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x18e)],'top':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x3a8)],'width':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x40e)],'height':_0x282986[_0xc94dfd(0x311)][_0xc94dfd(0x2ad)],'angle':_0x282986[_0xc94dfd(0x32b)]}),_0x42486d[_0xc94dfd(0x31f)](!0x0);let _0x35872b=((_0x3430f7=this['_currentConnectionTarget'])==null?void 0x0:_0x3430f7[_0xc94dfd(0x2d6)])??_0x2d662e;_0x11fb6b[_0xc94dfd(0x31d)]({'left':_0x35872b['x']-n[_0xc94dfd(0x376)][_0xc94dfd(0x2c9)],'top':_0x35872b['y']-n[_0xc94dfd(0x376)][_0xc94dfd(0x2c9)]});}[_0x275262(0x344)](_0x5708f4,_0x1bfd55,_0x41e210,_0x6b8577,_0x5f299c){const _0x743c11=_0x275262;var _0x4e680f,_0x23bb3b;let _0x7a7ae3=((_0x4e680f=this[_0x743c11(0x1a0)])==null?void 0x0:_0x4e680f[_0x743c11(0x2d6)])??_0x5708f4,_0x3dfa8e=n[_0x743c11(0x3e4)][_0x743c11(0x228)](_0x1bfd55,_0x7a7ae3,_0x41e210);_0x6b8577[_0x743c11(0x31d)]({'flipX':_0x3dfa8e[_0x743c11(0x311)][_0x743c11(0x387)],'flipY':_0x3dfa8e['worldRect'][_0x743c11(0xc3)],'left':_0x3dfa8e[_0x743c11(0x311)][_0x743c11(0x18e)],'top':_0x3dfa8e[_0x743c11(0x311)][_0x743c11(0x3a8)],'width':_0x3dfa8e[_0x743c11(0x311)][_0x743c11(0x40e)],'height':_0x3dfa8e[_0x743c11(0x311)][_0x743c11(0x2ad)],'angle':_0x3dfa8e['worldRect'][_0x743c11(0x3e0)]});let _0x2a9fc9=((_0x23bb3b=this[_0x743c11(0x1a0)])==null?void 0x0:_0x23bb3b[_0x743c11(0x2d6)])??_0x5708f4;_0x5f299c[_0x743c11(0x31d)]({'left':_0x2a9fc9['x']-n['ShapeDefaultConfig'][_0x743c11(0x2c9)],'top':_0x2a9fc9['y']-n[_0x743c11(0x376)][_0x743c11(0x2c9)]});}[_0x275262(0x37f)](_0x3c3761){const _0x2a989a=_0x275262;if(!this['_unitId']||!this[_0x2a989a(0x267)])return null;let {shapeId:_0x4c1e15,cxnIndex:_0x395d4c}=_0x3c3761,_0x361e86=this[_0x2a989a(0x1de)][_0x2a989a(0x3c8)](this[_0x2a989a(0x309)],this['_subUnitId'],_0x4c1e15);if(!_0x361e86)return null;let _0x586829=this[_0x2a989a(0x41a)][_0x2a989a(0x125)]({'unitId':this[_0x2a989a(0x309)],'subUnitId':this[_0x2a989a(0x267)],'drawingId':_0x4c1e15});if(!(_0x586829!=null&&_0x586829['transform']))return null;let {left:_0x1941e6=0x0,top:_0x1d885b=0x0,width:_0x7f47d7=0x0,height:_0x40b6fa=0x0,flipX:_0x53781e=!0x1,flipY:_0x30ce93=!0x1,angle:_0x1be8fd}=_0x586829[_0x2a989a(0x391)];_0x361e86['updateContext']({'width':_0x7f47d7,'height':_0x40b6fa});let _0x3ab688=_0x361e86[_0x2a989a(0x2fb)]()['find'](_0xcff627=>_0xcff627[_0x2a989a(0x364)]===_0x395d4c);if(!_0x3ab688)return null;let _0x5eb3db=_0x53781e?_0x7f47d7-_0x3ab688['x']:_0x3ab688['x'],_0x2b69ed=_0x30ce93?_0x40b6fa-_0x3ab688['y']:_0x3ab688['y'];if(_0x1be8fd!==0x0&&_0x1be8fd!=null){let _0x48724e=_0x1be8fd*Math['PI']/0xb4,_0x3cdd14=Math[_0x2a989a(0x1c6)](_0x48724e),_0xb23669=Math['sin'](_0x48724e),_0x443a7e=_0x7f47d7/0x2,_0x346238=_0x40b6fa/0x2,_0x42b01b=_0x5eb3db-_0x443a7e,_0x500426=_0x2b69ed-_0x346238;_0x5eb3db=_0x443a7e+_0x42b01b*_0x3cdd14-_0x500426*_0xb23669,_0x2b69ed=_0x346238+_0x42b01b*_0xb23669+_0x500426*_0x3cdd14;}_0x5eb3db+=_0x1941e6,_0x2b69ed+=_0x1d885b;let _0x5e4adc=_0x3ab688[_0x2a989a(0x18b)]/0xea60;_0x53781e&&(_0x5e4adc=0xb4-_0x5e4adc),_0x30ce93&&(_0x5e4adc=-_0x5e4adc),_0x5e4adc+=_0x1be8fd||0x0,_0x5e4adc=(_0x5e4adc%0x168+0x168)%0x168;let _0x838a73=(0x0,n['getBasicShapeRotateBound'])({'left':_0x1941e6,'top':_0x1d885b,'width':_0x7f47d7,'height':_0x40b6fa},_0x1be8fd||0x0);return{'point':{'x':_0x5eb3db,'y':_0x2b69ed},'angle':_0x5e4adc,'bounds':_0x838a73};}[_0x275262(0x3cb)](_0x2b6779,_0x50c211){const _0x3844d8=_0x275262;let _0x4e3dba=_0x50c211['x']-_0x2b6779['x'],_0xdb1621=_0x50c211['y']-_0x2b6779['y'];return Math[_0x3844d8(0x3de)](_0x4e3dba)>=Math[_0x3844d8(0x3de)](_0xdb1621)?_0x4e3dba>=0x0?0xb4:0x0:_0xdb1621>=0x0?0x10e:0x5a;}[_0x275262(0x3c2)](){const _0x48af59=_0x275262;this[_0x48af59(0x397)]=void 0x0,this[_0x48af59(0x309)]=void 0x0,this[_0x48af59(0x267)]=void 0x0,this[_0x48af59(0x425)]();}[_0x275262(0x24e)](){const _0x3258c9=_0x275262;this[_0x3258c9(0x425)](),super[_0x3258c9(0x24e)]();}};Ct=A([k(0x1,a[_0x275262(0x173)]),k(0x2,c[_0x275262(0x2a9)]),k(0x3,s[_0x275262(0x3a2)]),k(0x4,a[_0x275262(0x30c)]),k(0x5,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x6,(0x0,a[_0x275262(0x15b)])(M)),k(0x7,(0x0,a[_0x275262(0x15b)])(K))],Ct);let J=class extends a[_0x275262(0x284)]{constructor(_0x1db378,_0x14583a,_0x23a828){const _0x4b5bd9=_0x275262;super(),this['_sheetPrintInterceptorService']=_0x1db378,this[_0x4b5bd9(0x41a)]=_0x14583a,this[_0x4b5bd9(0x377)]=_0x23a828,this[_0x4b5bd9(0x1e3)]();}[_0x275262(0x1e3)](){const _0x4902b7=_0x275262;this['disposeWithMe'](this['_sheetPrintInterceptorService'][_0x4902b7(0x2db)][_0x4902b7(0x283)](this['_sheetPrintInterceptorService']['interceptor'][_0x4902b7(0x20a)]()[_0x4902b7(0x26a)],{'handler':(_0x40120f,_0x37dafb,_0x1a1015)=>{const _0x3bc41c=_0x4902b7;var _0x2655b1;let {unitId:_0x585e43,subUnitId:_0x7f6657,scene:_0xe7749b,resourceCollector:_0x7c315}=_0x37dafb,_0x191f42=(_0x2655b1=this[_0x3bc41c(0x41a)][_0x3bc41c(0x298)](_0x585e43))==null?void 0x0:_0x2655b1[_0x7f6657];return _0x191f42==null||_0x191f42[_0x3bc41c(0x3a3)][_0x3bc41c(0x3b3)](_0x4fb1f0=>{const _0xa467f0=_0x3bc41c;let _0xd0e986=_0x191f42[_0xa467f0(0x3c4)][_0x4fb1f0];_0xd0e986[_0xa467f0(0x133)]===a[_0xa467f0(0x3cc)][_0xa467f0(0x2bd)]&&!_0xd0e986['hidden']&&this['_shapeRenderController'][_0xa467f0(0x1c2)](_0xd0e986,_0xe7749b,{'resourceCollector':_0x7c315});}),_0x1a1015(_0x40120f);}}));}};J=A([k(0x0,(0x0,a[_0x275262(0x15b)])(l['SheetPrintInterceptorService'])),k(0x1,s['IDrawingManagerService']),k(0x2,(0x0,a[_0x275262(0x15b)])(j))],J);let Y=class extends a[_0x275262(0x284)]{constructor(_0x1b0db9,_0xe9ee4a,_0x1862aa){const _0x2340c0=_0x275262;super(),this[_0x2340c0(0x278)]=_0x1b0db9,this[_0x2340c0(0xd8)]=_0xe9ee4a,this['_sheetPermissionCheckController']=_0x1862aa,this[_0x2340c0(0x3df)]();}['_initPermission'](){const _0x274ebb=_0x275262;this[_0x274ebb(0x177)](this['_commandService'][_0x274ebb(0x2be)](_0x8b7975=>{const _0xb1fdc1=_0x274ebb;let _0x18836c,_0x406bd1;if(_0x8b7975['id']===i[_0xb1fdc1(0x184)]['id']||_0x8b7975['id']===i['SetShapeDrawingDataCommand']['id']||_0x8b7975['id']===i[_0xb1fdc1(0xe9)]['id']){let _0x81983=_0x8b7975['params'];_0x18836c=_0x81983[_0xb1fdc1(0x19e)],_0x406bd1=_0x81983[_0xb1fdc1(0x2a3)];}_0x18836c&&_0x406bd1&&(this[_0xb1fdc1(0x32c)][_0xb1fdc1(0x40f)]({'workbookTypes':[o['WorkbookEditablePermission']],'worksheetTypes':[o[_0xb1fdc1(0x23e)]]},_0x18836c,_0x406bd1)||this[_0xb1fdc1(0x32c)][_0xb1fdc1(0x1c5)](this[_0xb1fdc1(0xd8)]['t'](_0xb1fdc1(0x137))));}));}};Y=A([k(0x0,(0x0,a[_0x275262(0x15b)])(a[_0x275262(0x173)])),k(0x1,(0x0,a['Inject'])(a[_0x275262(0x413)])),k(0x2,(0x0,a[_0x275262(0x15b)])(o['SheetPermissionCheckController']))],Y);let X=class{constructor(_0x45cc60){const _0x56c15d=_0x275262;this[_0x56c15d(0x2c5)]=_0x45cc60;}[_0x275262(0x11b)](_0x2ea090,_0x70f1d5){const _0x61d9b0=_0x275262;let _0x4a5210=this[_0x61d9b0(0x2c5)][_0x61d9b0(0x30b)](_0x2ea090[_0x61d9b0(0x19e)]),_0x3ff200=_0x4a5210==null?void 0x0:_0x4a5210[_0x61d9b0(0x419)];if(!_0x3ff200)return;let _0x36f2f0=(0x0,s['getDrawingShapeKeyByDrawingSearch'])(_0x2ea090),_0x25de8e=_0x3ff200[_0x61d9b0(0x367)](_0x36f2f0);_0x25de8e==null||_0x25de8e[_0x61d9b0(0xfe)](_0x70f1d5);}};X=A([k(0x0,c['IRenderManagerService'])],X);let Z=class extends a['Plugin']{constructor(_0x11baac=lt,_0x367fef,_0x172626,_0x31117c,_0x55bcce){const _0x134645=_0x275262;super(),this['_config']=_0x11baac,this['_injector']=_0x367fef,this[_0x134645(0x278)]=_0x172626,this[_0x134645(0x3f6)]=_0x31117c,this[_0x134645(0x2c5)]=_0x55bcce;let {..._0xdc817d}=(0x0,a['merge'])({},lt,this[_0x134645(0x18d)]);this[_0x134645(0x3f6)][_0x134645(0x120)](ct,_0xdc817d),this[_0x134645(0x35a)]();}[_0x275262(0x248)](){const _0x47e60f=_0x275262;this['_injector'][_0x47e60f(0xfd)]([ht]),this[_0x47e60f(0x381)][_0x47e60f(0x421)](ht),(0x0,a[_0x47e60f(0x39e)])(this[_0x47e60f(0x381)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x275262(0x2c6)](){const _0x5a72db=_0x275262;(0x0,a[_0x5a72db(0x39e)])(this[_0x5a72db(0x381)],[[K],[M],[q]]),(0x0,a['touchDependencies'])(this[_0x5a72db(0x381)],[[q],[M]]),[[K],[ut],[Ct],[_t]]['forEach'](_0x947d36=>{const _0x44348c=_0x5a72db;this[_0x44348c(0x177)](this[_0x44348c(0x2c5)][_0x44348c(0xdc)](a[_0x44348c(0x412)][_0x44348c(0x306)],_0x947d36));});}['onRendered'](){const _0x436047=_0x275262;(0x0,a[_0x436047(0x12c)])(this[_0x436047(0x381)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onSteady'](){const _0x1918e7=_0x275262;this[_0x1918e7(0x381)][_0x1918e7(0x421)](U)[_0x1918e7(0xdb)]();}[_0x275262(0x35a)](){const _0x13d228=_0x275262;[P,S,N,st][_0x13d228(0x3b3)](_0x5ee4b3=>this[_0x13d228(0x177)](this['_commandService'][_0x13d228(0x1b5)](_0x5ee4b3)));}};E(Z,_0x275262(0x268),a[_0x275262(0x412)][_0x275262(0x306)]),E(Z,_0x275262(0x43e),_0x275262(0x164)),E(Z,_0x275262(0xf1),at),E(Z,_0x275262(0x1d2),ot),Z=A([(0x0,a[_0x275262(0x2ac)])(h[_0x275262(0x42e)],g['UniverDocsPlugin'],s[_0x275262(0x329)],c[_0x275262(0x36c)],o[_0x275262(0x218)],_['UniverDocsUIPlugin'],m[_0x275262(0x153)],r[_0x275262(0x42c)],v[_0x275262(0x3d5)],i[_0x275262(0x13c)],l['UniverSheetsMobileUIPlugin'],e['UniverShapeEditorMobileUIPlugin'],t[_0x275262(0xf2)]),k(0x1,(0x0,a[_0x275262(0x15b)])(a[_0x275262(0x32a)])),k(0x2,a['ICommandService']),k(0x3,a[_0x275262(0x17f)]),k(0x4,c['IRenderManagerService'])],Z);const wt={'type':a['CommandType']['OPERATION'],'id':_0x275262(0x3a1),'handler'(){return!0x0;}};function Tt(){const _0x5b060f=_0x275262;let _0x261969=(0x0,t[_0x5b060f(0x1fa)])(s[_0x5b060f(0x3a2)]),_0x24d938=(0x0,t['useObservable'])(()=>_0x261969[_0x5b060f(0xcf)],_0x261969[_0x5b060f(0x304)](),!0x1,[_0x261969]);return _0x24d938[_0x5b060f(0x385)]===0x0?null:(0x0,p['jsx'])('div',{'children':(0x0,p[_0x5b060f(0x303)])(_0x5b060f(0x26f),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,p[_0x5b060f(0x182)])(d['DrawingCommonPanel'],{'drawings':_0x24d938,'hasCropper':!0x1}),(0x0,p[_0x5b060f(0x182)])(v[_0x5b060f(0x13e)],{'drawings':_0x24d938})]})});}function Et(_0x2dc153){const _0x1c6bef=_0x275262;let {unitId:_0x460273,subUnitId:_0x438f90,shapeId:_0x527465}=_0x2dc153,_0x8853d7=(0x0,t['useDependency'])(a[_0x1c6bef(0x173)]),_0x1bd9f8=(0x0,t[_0x1c6bef(0x1fa)])(X);return(0x0,p[_0x1c6bef(0x182)])(e[_0x1c6bef(0x1db)],{..._0x2dc153,'positionEditor':(0x0,p[_0x1c6bef(0x182)])(Tt,{}),'onUpdateShapeData':(_0x3e76a2,_0x171912)=>{C(_0x8853d7,_0x460273,_0x438f90,_0x527465,_0x3e76a2,_0x171912);},'onUpdateLineShapeData':(_0x2ad29c,_0x5ad932)=>{w(_0x8853d7,_0x460273,_0x438f90,_0x527465,_0x2ad29c,_0x5ad932);},'onUpdateShapeFillImage':_0x65b781=>{const _0xb68697=_0x1c6bef;_0x1bd9f8[_0xb68697(0x11b)]({'unitId':_0x460273,'subUnitId':_0x438f90,'drawingId':_0x527465},_0x65b781);}});}function Dt(_0x58ed36){const _0x1970e5=_0x275262;let _0x29b389=(0x0,t['useDependency'])(e[_0x1970e5(0xfc)]),_0x2df5f5=(0x0,t['useObservable'])(()=>_0x29b389[_0x1970e5(0x127)],_0x29b389[_0x1970e5(0x314)](),!0x1,[_0x29b389]),_0xef6767=_0x58ed36['popup'][_0x1970e5(0x3dd)];return!_0xef6767||!_0x2df5f5?null:(0x0,p[_0x1970e5(0x182)])(Ot,{..._0xef6767,'canvasElement':_0x58ed36['popup'][_0x1970e5(0xd9)]});}function Ot(_0x227151){const _0x45646e=_0x275262;let _0x11c56f=(0x0,t['useDependency'])(a[_0x45646e(0x173)]),_0x377f7b=(0x0,t[_0x45646e(0x1fa)])(i[_0x45646e(0xf3)]),{unitId:_0x133092,subUnitId:_0x7e053,drawingId:_0x362e2f,drawingType:_0x2513c0,shapeType:_0x25b446}=_0x227151,[_0x11638a,_0x191fda]=(0x0,b[_0x45646e(0x3fa)])(_0x227151['shapeData']),_0x47b513=(0x0,b[_0x45646e(0x286)])(()=>(0x0,e[_0x45646e(0x38e)])(_0x11638a),[_0x11638a]),_0x47ab9a=(0x0,b[_0x45646e(0x286)])(()=>(0x0,e[_0x45646e(0x1bc)])(_0x11638a),[_0x11638a]);(0x0,b[_0x45646e(0x3a7)])(()=>{const _0x559465=_0x45646e;let _0x2f702d=_0x11c56f[_0x559465(0x3cf)](_0x1c5be8=>{const _0xa14c10=_0x559465;if(_0x1c5be8['id']!==i[_0xa14c10(0x3d0)]['id'])return;let _0x563604=_0x377f7b[_0xa14c10(0x3b5)](_0x133092,_0x7e053,_0x362e2f);_0x563604&&_0x191fda(_0x563604);});return()=>_0x2f702d['dispose']();},[_0x11c56f,_0x362e2f,_0x377f7b,_0x7e053,_0x133092]);let _0x1b843e=_0x42b6fb=>{_0x191fda(_0x1b0d79=>({..._0x1b0d79,..._0x42b6fb}));},_0x1df99c=_0x37c136=>{const _0x5807cd=_0x45646e;let _0xdb73ed=(0x0,e[_0x5807cd(0x1e4)])(_0x11638a,_0x37c136);C(_0x11c56f,_0x133092,_0x7e053,_0x362e2f,{'oldShapeData':{'shapeText':_0x11638a[_0x5807cd(0x365)]}},_0xdb73ed),_0x1b843e(_0xdb73ed);},_0x559426=(0x0,e[_0x45646e(0x22f)])({'hostType':a[_0x45646e(0x412)][_0x45646e(0x306)],'unitId':_0x133092,'subUnitId':_0x7e053,'shapeId':_0x362e2f,'shapeData':_0x11638a,'onUpdateBinding':_0x12754c=>{const _0x3ccc4b=_0x45646e;let _0x119175={'formulaBinding':_0x12754c};C(_0x11c56f,_0x133092,_0x7e053,_0x362e2f,{'oldShapeData':{'formulaBinding':_0x11638a[_0x3ccc4b(0x327)]}},_0x119175),_0x1b843e(_0x119175);}});return(0x0,p[_0x45646e(0x303)])(p[_0x45646e(0x3b9)],{'children':[(0x0,p[_0x45646e(0x182)])(e['ShapeFloatingToolbar'],{'canvasElement':_0x227151['canvasElement'],'shapeData':_0x11638a,'shapeType':_0x25b446,'textStyle':{'ff':n[_0x45646e(0x376)][_0x45646e(0x365)]['fontFamily'],'fs':n[_0x45646e(0x376)][_0x45646e(0x365)][_0x45646e(0x1f9)],'cl':{'rgb':n[_0x45646e(0x376)][_0x45646e(0x365)]['color']},..._0x47b513},'textModel':_0x47ab9a?{'ha':_0x47ab9a['ha']??a['HorizontalAlign'][_0x45646e(0x3bf)],'va':_0x47ab9a['va']??a[_0x45646e(0x179)][_0x45646e(0x17e)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x45646e(0x376)][_0x45646e(0x157)],'defaultGradientEndColor':n['ShapeDefaultConfig'][_0x45646e(0x410)],'defaultStrokeColor':n[_0x45646e(0x376)]['stroke'],'extensionGroups':_0x559426[_0x45646e(0x15a)],'floatingObjectToolbarPosition':t['FloatingObjectToolbarPosition'][_0x45646e(0x33a)],'onUpdateShapeData':(_0x44c024,_0xc2a64e)=>{C(_0x11c56f,_0x133092,_0x7e053,_0x362e2f,_0x44c024,_0xc2a64e),_0xc2a64e&&_0x1b843e(_0xc2a64e);},'onUpdateText':_0x1df99c,'onOpenPanel':()=>{const _0x12e384=_0x45646e;_0x11c56f[_0x12e384(0x136)](z['id'],{'unitId':_0x133092,'subUnitId':_0x7e053,'drawingId':_0x362e2f});},'onDelete':()=>{const _0xbbe7ec=_0x45646e;_0x11c56f[_0xbbe7ec(0x136)](m[_0xbbe7ec(0x149)]['id'],{'unitId':_0x133092,'drawings':[{'unitId':_0x133092,'subUnitId':_0x7e053,'drawingId':_0x362e2f,'drawingType':_0x2513c0}]});}}),_0x559426['panel']]});}function kt(_0x3b28f0){const _0x3c131d=_0x275262;return!!_0x3b28f0&&_0x3c131d(0x2b9)in _0x3b28f0&&_0x3c131d(0x431)in _0x3b28f0;}const At=(0x0,b[_0x275262(0x1f1)])(()=>{const _0x117906=_0x275262;let _0x55b1d9=(0x0,t[_0x117906(0x1fa)])(H),_0x40ee1d=(0x0,t[_0x117906(0x1fa)])(i['SheetsShapeService']),_0x3f9e30=(0x0,t['useDependency'])(s[_0x117906(0x3a2)]),_0x24f1d4=(0x0,t[_0x117906(0x1fa)])(a['ICommandService']),_0x165031=(0x0,t[_0x117906(0x1fa)])(t['UndoRedoGroupService']),_0x58f01e=(0x0,t[_0x117906(0x1fa)])(c[_0x117906(0x2a9)]),_0x116330=(0x0,b[_0x117906(0x286)])(()=>({'getShapeModel':(_0x13cdbb,_0x1d9338,_0xda100c)=>_0x40ee1d[_0x117906(0x3c8)](_0x13cdbb,_0x1d9338,_0xda100c),'getShapeData':(_0x420ada,_0x10c946,_0x4e4355)=>_0x40ee1d[_0x117906(0x3b5)](_0x420ada,_0x10c946,_0x4e4355),'getDrawingTransform':(_0x54ebf5,_0x3460cb,_0xedf025)=>{const _0x3958f6=_0x117906;let _0x359b36=_0x3f9e30[_0x3958f6(0x125)]({'unitId':_0x54ebf5,'subUnitId':_0x3460cb,'drawingId':_0xedf025});return _0x359b36==null?void 0x0:_0x359b36[_0x3958f6(0x391)];},'updateShapeText':({unitId:_0x5f188d,subUnitId:_0x2868a3,shapeId:_0x2f2254,shapeText:_0x2c0300,oldShapeText:_0x507c1e,hostSize:_0x1be914})=>{const _0x4a7f8e=_0x117906;_0x165031[_0x4a7f8e(0x101)](_0x5f188d,()=>{const _0x1d100e=_0x4a7f8e;var _0x4c3cac;let _0x16c2d1=_0x24f1d4[_0x1d100e(0x3dc)](S['id'],{'unitId':_0x5f188d,'subUnitId':_0x2868a3,'shapeId':_0x2f2254,'shapeData':{'shapeText':_0x2c0300},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x507c1e}}});if(!_0x16c2d1||!_0x1be914)return _0x16c2d1;let _0x3b2a9f=_0x3f9e30[_0x1d100e(0x125)]({'unitId':_0x5f188d,'subUnitId':_0x2868a3,'drawingId':_0x2f2254}),_0x510aa7=_0x3b2a9f==null?void 0x0:_0x3b2a9f[_0x1d100e(0x391)];if(!kt(_0x3b2a9f)||!_0x510aa7)return!0x1;let _0x57c653={..._0x510aa7,'width':_0x1be914[_0x1d100e(0x40e)],'height':_0x1be914['height']},_0x4952e5=(_0x4c3cac=_0x58f01e[_0x1d100e(0x30b)](_0x5f188d))==null||(_0x4c3cac=_0x4c3cac['with'](l['SheetSkeletonManagerService'])[_0x1d100e(0x308)](_0x2868a3))==null?void 0x0:_0x4c3cac[_0x1d100e(0x2cd)];return _0x24f1d4[_0x1d100e(0x3dc)](m[_0x1d100e(0xc7)]['id'],{'unitId':_0x5f188d,'drawings':[{..._0x3b2a9f,'transform':_0x57c653,'sheetTransform':_0x4952e5?(0x0,m[_0x1d100e(0x2ab)])(_0x57c653,_0x4952e5)??_0x3b2a9f['sheetTransform']:_0x3b2a9f[_0x1d100e(0x431)],'axisAlignSheetTransform':_0x4952e5?(0x0,m['transformToAxisAlignPosition'])(_0x57c653,_0x4952e5)??_0x3b2a9f[_0x1d100e(0x2b9)]:_0x3b2a9f[_0x1d100e(0x2b9)]}]});});},'updateHostSize':({unitId:_0x3ad957,subUnitId:_0x134e5e,shapeId:_0x18de89,width:_0x2ed2e5,height:_0x2893a7})=>{const _0x8be3e6=_0x117906;var _0xf23928;let _0x5a3752=_0x3f9e30['getDrawingByParam']({'unitId':_0x3ad957,'subUnitId':_0x134e5e,'drawingId':_0x18de89}),_0x5f397c=_0x5a3752==null?void 0x0:_0x5a3752[_0x8be3e6(0x391)];if(!kt(_0x5a3752)||!_0x5f397c)return;let _0x4223e0={..._0x5f397c,'width':_0x2ed2e5,'height':_0x2893a7},_0x5009a7=(_0xf23928=_0x58f01e[_0x8be3e6(0x30b)](_0x3ad957))==null||(_0xf23928=_0xf23928[_0x8be3e6(0x2f5)](l['SheetSkeletonManagerService'])['getSkeletonParam'](_0x134e5e))==null?void 0x0:_0xf23928['skeleton'],_0x44b672=_0x5009a7?(0x0,m['transformToDrawingPosition'])(_0x4223e0,_0x5009a7)??_0x5a3752[_0x8be3e6(0x431)]:_0x5a3752['sheetTransform'],_0x13136e=_0x5009a7?(0x0,m[_0x8be3e6(0x3e5)])(_0x4223e0,_0x5009a7)??_0x5a3752['axisAlignSheetTransform']:_0x5a3752[_0x8be3e6(0x2b9)];_0x24f1d4[_0x8be3e6(0x136)](m[_0x8be3e6(0xc7)]['id'],{'unitId':_0x3ad957,'drawings':[{..._0x5a3752,'transform':_0x4223e0,'sheetTransform':_0x44b672,'axisAlignSheetTransform':_0x13136e}]});},'allowHostSizeShrink':({unitId:_0x5f43fe,subUnitId:_0x2d67f4,shapeId:_0x4c7b5c})=>(0x0,e[_0x117906(0x2ec)])(_0x40ee1d['getShapeDataById'](_0x5f43fe,_0x2d67f4,_0x4c7b5c)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x24f1d4,_0x3f9e30,_0x58f01e,_0x40ee1d,_0x165031]),_0x1e4575=(0x0,b[_0x117906(0x286)])(()=>({'viewportKeys':{'main':c[_0x117906(0x170)][_0x117906(0x299)],'leftTop':c[_0x117906(0x170)][_0x117906(0x140)],'top':c[_0x117906(0x170)]['VIEW_MAIN_TOP'],'left':c[_0x117906(0x170)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x18c3ed,_0x255b4c)=>{const _0x54b18d=_0x117906;var _0x5a14d2;return((_0x5a14d2=_0x18c3ed[_0x54b18d(0x2f5)](l[_0x54b18d(0x20c)])[_0x54b18d(0x308)](_0x255b4c[_0x54b18d(0x2a3)]))==null?void 0x0:_0x5a14d2['skeleton'])??null;}}),[]);return(0x0,p[_0x117906(0x182)])(e[_0x117906(0x34f)],{'adapter':_0x116330,'editingService':_0x55b1d9,'editorUnitId':re,'positionOptions':_0x1e4575});});let jt=class extends a['Disposable']{constructor(_0x10cc3c,_0x5acd26){const _0x21ffdb=_0x275262;super(),this[_0x21ffdb(0x12e)]=_0x10cc3c,this[_0x21ffdb(0x1b4)]=_0x5acd26,this[_0x21ffdb(0x269)](),this[_0x21ffdb(0x242)]();}[_0x275262(0x269)](){const _0x5f549b=_0x275262;this['_iconManager'][_0x5f549b(0x2e6)](_0x5f549b(0x3a6))||this[_0x5f549b(0x177)](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'ObjectLayersIcon':y[_0x5f549b(0x3a6)]})),this[_0x5f549b(0x1b4)]['has'](_0x5f549b(0x24f))||this[_0x5f549b(0x177)](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'FlipHorizontalIcon':y[_0x5f549b(0x24f)]})),this['_iconManager'][_0x5f549b(0x2e6)]('FlipVerticalIcon')||this[_0x5f549b(0x177)](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'FlipVerticalIcon':y[_0x5f549b(0x143)]})),this[_0x5f549b(0x1b4)][_0x5f549b(0x2e6)](_0x5f549b(0x350))||this[_0x5f549b(0x177)](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'BottomIcon':y[_0x5f549b(0x350)]})),this[_0x5f549b(0x1b4)][_0x5f549b(0x2e6)](_0x5f549b(0x249))||this[_0x5f549b(0x177)](this['_iconManager'][_0x5f549b(0x215)]({'MoveDownIcon':y[_0x5f549b(0x249)]})),this['_iconManager'][_0x5f549b(0x2e6)](_0x5f549b(0x30f))||this['disposeWithMe'](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'MoveUpIcon':y[_0x5f549b(0x30f)]})),this['_iconManager'][_0x5f549b(0x2e6)](_0x5f549b(0x2b1))||this[_0x5f549b(0x177)](this[_0x5f549b(0x1b4)][_0x5f549b(0x215)]({'ShapeFormatSettingIcon':y['ShapeFormatSettingIcon']})),this['_iconManager'][_0x5f549b(0x2e6)](_0x5f549b(0xeb))||this[_0x5f549b(0x177)](this['_iconManager']['register']({'TopmostIcon':y[_0x5f549b(0xeb)]}));}[_0x275262(0x242)](){const _0x2e72ff=_0x275262;this['disposeWithMe'](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](F,Et)),this['disposeWithMe'](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](I,pt)),this[_0x2e72ff(0x177)](this['_componentManager'][_0x2e72ff(0x215)](le,he)),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](ue,fe)),this[_0x2e72ff(0x12e)]['get'](d[_0x2e72ff(0x2ae)])||this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],me)),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)]['register'](L,Dt)),this['disposeWithMe'](this[_0x2e72ff(0x12e)]['register'](Ee,Ae)),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](Te,je)),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)]['register'](De,Me)),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](Oe,Ne)),this['disposeWithMe'](this[_0x2e72ff(0x12e)][_0x2e72ff(0x215)](ie,e['ShapeTextFloatToolbar'])),this[_0x2e72ff(0x177)](this[_0x2e72ff(0x12e)]['register'](_0x2e72ff(0x3ec),At));}};jt=A([k(0x0,(0x0,a['Inject'])(t['ComponentManager'])),k(0x1,(0x0,a['Inject'])(t['IconManager']))],jt);let Mt=class extends a[_0x275262(0x284)]{constructor(_0x2b21fd,_0x2b5fd9,_0x57c1b6,_0x421462,_0x46b552,_0x3a4a6c,_0x5e9c56,_0xf07826,_0x23a0ac){const _0x42b968=_0x275262;super();let _0x12a4bb=_0x32bd39=>{const _0x5cab33=_0x4387;var _0x34d55c,_0x426846;return(((_0x34d55c=_0xf07826['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x32bd39[_0x5cab33(0x19e)])['id']))==null?void 0x0:_0x34d55c[_0x5cab33(0x307)])??!0x0)&&(((_0x426846=_0xf07826[_0x5cab33(0x1eb)](new o[(_0x5cab33(0x23e))](_0x32bd39[_0x5cab33(0x19e)],_0x32bd39[_0x5cab33(0x2a3)])['id']))==null?void 0x0:_0x426846['value'])??!0x0);},_0x4372b7=_0x423de1=>_0x423de1['shapeId']&&_0x12a4bb(_0x423de1)?_0x57c1b6[_0x42b968(0x3b5)](_0x423de1[_0x42b968(0x19e)],_0x423de1['subUnitId'],_0x423de1[_0x42b968(0x330)])??null:null,_0x232c8e=()=>{const _0x231f56=_0x42b968;let _0x5ce350=_0x46b552[_0x231f56(0x304)](),_0x5dfd3b=_0x5ce350[_0x231f56(0x385)]===0x1?_0x5ce350[0x0]:null;return(_0x5dfd3b==null?void 0x0:_0x5dfd3b[_0x231f56(0x133)])===a[_0x231f56(0x3cc)][_0x231f56(0x2bd)]&&_0x5dfd3b[_0x231f56(0x19e)]===_0x2b21fd[_0x231f56(0x19e)]?{'unitId':_0x5dfd3b[_0x231f56(0x19e)],'subUnitId':_0x5dfd3b[_0x231f56(0x2a3)],'shapeId':_0x5dfd3b[_0x231f56(0x25c)]}:null;};this[_0x42b968(0x177)]((0x0,e['registerShapeFormatPainter'])(_0x2b21fd,_0x2b5fd9,{'changes$':(0x0,u['merge'])(_0x46b552[_0x42b968(0xcf)],_0x421462[_0x42b968(0x188)],_0xf07826[_0x42b968(0x105)]),'isActive':()=>{const _0x24c7f7=_0x42b968;var _0x3832e9;return((_0x3832e9=_0x3a4a6c['getFocusedUnit']())==null?void 0x0:_0x3832e9[_0x24c7f7(0x111)]())===_0x2b21fd['unitId']&&!_0x5e9c56[_0x24c7f7(0x2f8)](a[_0x24c7f7(0x236)])&&_0x46b552[_0x24c7f7(0x304)]()['some'](_0x2e0fcd=>_0x2e0fcd[_0x24c7f7(0x19e)]===_0x2b21fd[_0x24c7f7(0x19e)]);},'getSelectedTarget':_0x232c8e,'getSource':()=>{let _0x220327=_0x232c8e();return _0x220327?_0x4372b7(_0x220327):null;},'getTarget':_0x443d98=>{const _0x362e73=_0x42b968;let _0x3b3f63=_0x2b21fd['scene'][_0x362e73(0x108)](new c['Vector2'](_0x443d98[_0x362e73(0x2ea)],_0x443d98[_0x362e73(0x2f1)]));if(!(_0x3b3f63 instanceof D))return null;let _0x950f22={'unitId':_0x2b21fd[_0x362e73(0x19e)],'subUnitId':_0x3b3f63[_0x362e73(0x2a3)],'shapeId':_0x3b3f63[_0x362e73(0x330)]};return _0x12a4bb(_0x950f22)?_0x950f22:null;},'getShape':_0x4372b7,'update':(_0x22af46,_0x5dcdbb,_0x1143e5)=>_0x23a0ac['executeCommand'](S['id'],{..._0x22af46,'shapeData':_0x1143e5,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x5dcdbb}})}));}};Mt=A([k(0x1,(0x0,a[_0x275262(0x15b)])(t[_0x275262(0x2ff)])),k(0x2,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x3,(0x0,a[_0x275262(0x15b)])(H)),k(0x4,s[_0x275262(0x3a2)]),k(0x5,a[_0x275262(0x30c)]),k(0x6,a[_0x275262(0x192)]),k(0x7,a[_0x275262(0x39f)]),k(0x8,a[_0x275262(0x173)])],Mt);const Nt=_0x275262(0x11d);function _0x102a(){const _0x5ec5ba=['onPointerMove$','getObjectIncludeInGroup','_getZoomRatio','src','_focusedDrawings','SheetsShapeUIContextualRibbonSchema','UniverRenderEnginePlugin','_hasReset','_clearPopups','isLineShape','BehaviorSubject','attachPopupToObject','computeConnectorRouteLayout','getShapeQuickStylePreset','20vswtBH','getShapeTypeById','ShapeDefaultConfig','_shapeRenderController','Documents','ShapeFloatingToolbarToggleFactory','objects','restore','sheets-shape-ui.formatShape','attachTransformerTo','getSheetId','_getConnectPointInfo','close','_injector','generateRandomId','DocEventManagerService','clip-','length','_getOrCreateShapeModel','flipX','backward','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','setFormulaPresentation','resolveShapeTextDocumentRenderLayout','drawing-ui.objectListPanel.showAll','normal','getTextStyle','copyId','sheets-shape-ui.shape-format.text-ribbon-control','transform','dataModel','getRealBound','_shapePopupMenuDisposable','shape-editor-ui.arrange.front','shape-editor-ui.toolbar.quickStyles','_activeShapeId','cancelEditing','disableShapeOption','_clearFocusedShape','1408552XfgxdJ','_completionFrame','getMatrix','registerDependencies','IPermissionService','registerFeaturePasteHook','sheet.operation.close-sheet-shape-format-panel','IDrawingManagerService','order','drawing-ui.objectListPanel.descriptionPlaceholder','_adjHandlerPointerUp','ObjectLayersIcon','useEffect','top','delete','fillType','PREDEFINED_HOOK_NAME','_drawRichTextLayer','onPointerDown$','#1a73e8','Observable','RemoveSheetCommand','getDrawingData','defineProperty','forEach','set','getShapeDataById','updateDocumentStyle','_adjName','sheets-shape-ui.editShape','Fragment','sheets-shape-ui.shape-format.formula-ribbon-control','resolveShapeTextEditorWrapStrategy','IRibbonService','getBatchAddOp','_activeImageId','LEFT','DocCanvasPopManagerService','_permissionService','_reset','_hide','data','isDrawingObject','contentHeight','clear','getShapeModel','_isShouldShowDrawingShapeAdjust','PaintIcon','_calculateFreeEndpointAngle','DrawingTypeEnum','render','SHAPE','onCommandExecuted','UpdateSheetsShapeDataMutation','merge','viewportScrollX','drawing-ui.objectListPanel.moveBackward','animateFormulaPresentation','UniverSheetsDrawingMobileUIPlugin','IUndoRedoService','DocRenderController','cloneShapeDataForType','1310076ejldgf','targetShapeId','_sheetCanvasPopManagerService','syncExecuteCommand','extraProps','abs','_initPermission','angle','text','ShapePickerDropdown','BUTTON','ConnectorCoordinateTransform','transformToAxisAlignPosition','getBatchUpdateOp','changeShapeType','addImageSourceCache','_targetShapeId','Transform','getDrawingEffectBounds','SheetShapeTextEditorContainer','_activeShapeModel','_executeConnectedRouteResizeCommand','REMOVE','isMainScene','string','getValue','INSERT','DocSelectionRenderService','sheets-shape-ui.ribbon.shape-format.arrange-front','_configService','SELECTOR','shapeData','size','useState','_baseLeft','entries','_highlightedSiteIndex','getParent','resolveShapeTextDocumentPageHeight','registerClipDelegate','subscribeEvent','_groupCopyPasteController','object','1.0.0','startArrow','sheets-shape-ui.flipHorizontal','_univerInstanceService','getTransformer','_clearCompletionFrame','_insertShapes','shape-editor-ui.toolbar.changeShape','formulaPresentation','_baseShapeLeft','width','permissionCheckWithoutRange','gradientEndColor','_getDrawingRect','UniverInstanceType','LocaleService','sheets-shape-ui.ribbon.shape-format','IconManager','clipByShape','isArray','_shapeUpdateListener','scene','_drawingManagerService','_initSelection','onTransformChange$','getSelectedObjectMap','_initialize','ShapeArrowTypeEnum','None','get','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','FOCUSING_COMMON_DRAWINGS','insertGroupObject','_clearShapeConnectorHandlerObjects','completeEditing','_adjHandlerPointerMove','isHighlighted','PictureFill','getAutoFitPresentations','DRAWING','UniverShapeEditorPlugin','_closeShapeEditPanel','UniverLicensePlugin','preValue','sheets-shape-ui.deleteShape','sheetTransform','_attachConnectorObjectEvent','cxnPointFill','drawing-ui.objectListPanel.lockHint','Vector2','DRAWING_OBJECT_LAYER_INDEX','SHAPE_TEXT','draw','ShapeQuickStyleGallery','setCanUseShapeClip','_baseShapeHeight','drawing-ui.objectListPanel.search','update$','pluginName','stringify','symbol','ObjectListPanelBase','FormulaShapeAnimationController','flipY','sheet.menu.shape.flip-horizontal','_insertingShapeKeys','actualHeight','SetSheetDrawingCommand','_loadShapePictureFill','_menuManagerService','_shapes','_handleConnectorPointerUp','isCurvedConnectorShape','CROSSHAIR','isHorizontal','focus$','presentationChanged$','getBatchRemoveOp','_addShapeConnectorHandlerObject','decorate','getStartConnectInfo','interceptCommand','remove$','createControl$','_localeService','canvasElement','DocInterceptorService','initShapePopupMenu','registerRenderModule','_initSheetChange','MenuItemType','#bcbcbc','sheets-shape-ui.imagePanel.crop.shape','vertical','pipe','drawWith','DocumentDataModel','switchMap','SheetCanvasPopManagerService','translateWithPrecision','_disposed','UpdateConnectorRelationCommand','CURSOR_TYPE','TopmostIcon','UPDATE','_transformCalculateSrcRect','shapeModel','getConnectionInfo','getSheetBySheetId','packageName','UniverMobileUIPlugin','SheetsShapeService','7OPfBnJ','removeLinePoints','sheet.operation.open-mobile-shape-editor','drawing-ui.objectListPanel.collapse','RENDER_CLASS_TYPE','custom','shape-editor-ui.arrange.back','drawing-ui.objectListPanel.details','ShapeFloatingToolbarService','add','setFillImage','SetDrawingSelectedOperation','prototype','run','sheets-shape-ui.shape-format.quick-style-gallery','viewBound','getEndConnectInfo','permissionPointUpdate$','image','horizontal','pick','_activeTargetShapeId','trim','getTransformerByCreate','adjName','sheets-shape-ui.config','sheets-shape-ui.insertShape','refreshTransform','iterator','getUnitId','routeConnectorLineShape','sheets-shape-text-','_updateImageAdjValues','DrawingImageClipService','changing$','indexOf','_initEvents','_canEdit','_getConnectionSiteAngle','updateShapeFillImage','lineType','sheets-shape-contextual-ribbon','isInGroup','onDblclick$','setConfig','OTHERS','clearAdjustValue','style','DrawingApplyType','getDrawingByParam','getCurrentRangeDisable$','visible$','_shapeFormulaService','redo','_sheetBasicShapeConnectionPointController','setShouldShowAdjust','touchDependencies','useReducer','_componentManager','UUID','push','_shapeFloatingToolbarService','58633WTRTMB','drawingType','DisposableCollection','_addShapeConnectorHandlerObjects','executeCommand','sheets-shape-ui.permission.editErr','_initEditingParams','bindRenderTransformerLifecycle','_getScrollInfo','startConnectionDetection','UniverSheetsShapePlugin','bottom','SheetDrawingAnchor','connection-site-','VIEW_MAIN_LEFT_TOP','cxnPointStroke','_sidebarService','FlipVerticalIcon','Rect','getMenuHiddenObservable','_isImagePointerDown','setSrcRect','getOwnPropertyDescriptor','RemoveSheetDrawingCommand','lineShapeId','toDisposable','engine','_executeResizeCommand','animationEnabled','resourceCollector','updateConnectionDetection','doc.image-clip.shape-picker.component','ISheetClipboardService','UniverSheetsDrawingPlugin','UniverDocsUIPlugin','StraightConnector1','setEditing','fill','drawing-ui.objectListPanel.description','_handleBasicShapeUpdateConnectorLineShape','extensionGroups','Inject','getObject','setContextValue','sheets-shape-ui','composeMatrix','_isOpenedShapeEditPanel','MenuManagerPosition','SheetSkeletonService','fillImageSourceType','SHEET_SHAPE_UI_PLUGIN','_registerFeatureMenu','_baseDrawingRect','_contextService','ShapeStyleRibbonControl','resolveActiveShapeQuickStylePresetId','drawing-ui.objectListPanel.close','_shapeEditPanelVersion','SolidLine','setPresentation','ShapeTextHyperLinkPopupService','sheet.operation.open-sheet-shape-format-panel','SHEET_VIEWPORT_KEY','UniverSheetsShapeUIPlugin','shapeType','ICommandService','function','_applyFormulaAutoFitSize','_registerImageShapeClipDelegate','disposeWithMe','_setTransForm','VerticalAlign','getViewportByCell','_editingParams$','deriveStateFromActiveSheet$','UniverSheetsDrawingUIPlugin','TOP','IConfigService','getShapeQuickStyleType','resize','jsx','forward','InsertShapeCommand','sqrt','unsubscribe','debounceRefreshControls','editingParams$','sheets-shape-format-font-family-menu','sheetViewStartRow','ang','getDrawingShapeKeyByDrawingSearch','_config','left','getDrawingSearch','_onSavingEditorData$','drawing-ui.objectListPanel.hideAll','IContextService','drawing-ui.objectListPanel.sectionCanvas','applyPoint','CommandType','_handleFreeEndpointPointerUp','InsertSheetsShapeMutation','_init','stroke','constructor','onPointerUp$','asObservable','setPrstGeomAdjValues','unitId','map','_currentConnectionTarget','addClipboardHook','call','onSavingEditorData$','drawing-ui.objectListPanel.unlockHint','_handleConnectedEndpointPointerUp','getConnectorLinePoints','_getSceneAndTransformerByDrawingSearch','_createShapeAdjustControls','_registerDrawingFocusChangeHandler','adjHandleFill','IURLImageService','_updateSrcRectByTransform','_releaseRenderCache','getShapeTextData','_getImageDrawingInfo','_getImagePrstGeom','_registerFocusChangeHandler','includes','calculate','_iconManager','registerCommand','_connectorObjects','ShapeFillEnum','drawing-ui.objectListPanel.sectionFloating','_baseWidth','_currentScene','hideContextualTab','getTextModel','add$','getZoomRatio','getInverseCoord','_draggingConnectorId','selectable','renderDrawingShape','_initCopyPaste','buildClipPath','blockExecuteWithoutPermission','cos','startY','_drawShapeText','refreshAdjustControls','EMPTY','ShapeRenderModeEnum','resolveShapeTextEditorBehaviorShapeData','sectionFloating','updateLinePoints','SHAPE_EDITOR_TRANSFORMER_CONFIG','_generatePasteMutations','_popupMenuListener','version','_baseTop','getEditing','adjHandleSize','ShapeIcon','onload','flatMap','_initMenu','normalizeShapeTextModel','ShapeEditPanel','parent','shape-adjust-point-','_sheetsShapeService','getSkeleton','_getShapeAdjustPointListById','_shapeService','_baseShapeWidth','_initPrinting','buildShapeTextDataUpdate','activeSheet$','_copyInfo','activateDrawingObject','_renderWithCache','_ribbonService','COMMAND','getPermissionPoint','unregister','_imageIoService','ShapeArrowSizeEnum','sheets-shape-ui.ribbon.shape-format.arrange-back','_sidebarDisposable','memo','getDrawingOKey','contentVerticalOffset','_attachAdjustEvent','getShapeTextRect','translate','cxnIndex','_transform','fontSize','useDependency','registerFeatureMenu','_registerDrawingMoveHandler','canvas','shape-editor-ui.arrange.forward','clearControl$','connector-handler-','ContextMenuGroup','_formulaAnimation','_moveConnectorWithShape','_showConnectionSites','complete','ArrangeTypeEnum','_findNearestConnectionSite','_visible','getCurrentLastSelection','getInterceptPoints','drawing-ui.objectListPanel.filterLocked','SheetSkeletonManagerService','DocumentSkeleton','ShapeTextRibbonControl','Line','drawing-ui.objectListPanel.lock','SetDrawingApplyMutation','cxnPointStrokeWidth','disableObjectsEvent','classType','register','_generateCopyPasteMutations','Image','UniverSheetsPlugin','_findShapeAtPoint','_registerOperations','_drawRichText','endConnectionDetection','UniverDocsPlugin','isEditing','getImage','drawing-ui.objectListPanel.moveForward','sheets-shape-ui.editText','ImageSourceTypeEnum','getShapeData','getObjectListPanelSectionIdForDrawingType','some','drawing-ui.objectListPanel.name','fillImageSource','computeConnectorResizeLayout','ToggleSheetsShapeFlipCommand','drawing-ui.objectListPanel.empty','isRender','reduce','drawing-ui.objectListPanel.unlockAll','hidden','useFormulaShapeToolbar','featurePluginUpdateNotification','getDrawingOrder','setPrstGeom','_currentUniverService','fromChangeset','getConnectionRelation','FOCUSING_SHAPE_TEXT_EDITOR','UniverSheetsShapeMobileUIPlugin','296235dNerLA','_getShapeAdjustInfosById','_cxtHandlerPointerMove','ComponentManager','keys','presentation','WorksheetEditPermission','SheetScrollManagerService','oKey','setHighlighted','_registerComponents','startX','ShapeFormulaService','sheet.menu.shape.flip-vertical','parse','values','onStarting','MoveDownIcon','CUT','54765ipFuKU','drawing-ui.objectListPanel.filterHidden','_addControl','dispose','FlipHorizontalIcon','visible','getSheetCommandTarget','sheets-shape-ui.objectListPanel.title','getCurrentUnitOfType','getActiveSheet','ShapeModel','596mNIVmr','getUnit','IMenuManagerService','refreshFormulaPresentation','_updateTransform','next','drawingId','error','stopPropagation','_clearControls','drawing-ui.objectListPanel.locate','CopySheetCommand','WorkbookEditablePermission','drawing-ui.objectListPanel.nameInput','Module','isConnectorShape','MEDIA','_subUnitId','type','_registerIcons','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.lockAll','ISidebarService','clip','getAdjustNames','div','_formulaKey','marginTop','relation','createShapeTextBoxShapeData','RemoveSheetsShapeMutation','sheets-shape-ui.ribbon.shape-format.text-control','drawing-ui.objectListPanel.dragToReorder','isRichText','_commandService','subscribe','_update','params','UniverDrawingUIPlugin','_createControls','adjustValues','onerror','ancestorTransform','changeEnd$','attachRangeWithCoord','intercept','Disposable','_generateCutPasteMutations','useMemo','doc','strokeWidth','_openShapeEditPanel','ShapeTextFloatMenuRenderControllerBase','sheets-shape-ui.objectListPanel.open','getState','_registerGroupFeaturePasteHook','_cxtHandlerPointerUp','UpdateLineShapeResizeCommand','updateContext','_activeAdjustInfo','#4285f4','_updateAdjustControlPositions','image-clip-adjust-point-','ShapeTypeEnum','_cxnIndex','_disposePopups','getDrawingDataForUnit','VIEW_MAIN','sheets-shape-ui.flipVertical','sheet.operation.open-shape-object-list-panel','2DXKRnC','_isConnecting','_isHighlighted','getDrawingPoints','_imageShapeClipController','setFallbackVisible','getAdjustValueByName','subUnitId','_addShapeAdjustControl','addObject','_clearShapeAdjustControls','discreteRangeToRange','_context','IRenderManagerService','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','transformToDrawingPosition','DependentOn','height','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','shapeKey','2615vadEgb','ShapeFormatSettingIcon','getCurrentTypeOfUnit$','sheet.operation.update-shape-type','DRAWING_IMAGE','DEFAULT_PASTE','_activeAdjustPointList','_props','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','axisAlignSheetTransform','beginPath','getBentTypeFromPoints','_baseShapeTop','DRAWING_SHAPE','beforeCommandExecuted','currentAdjustValues','localToWorld','_executeConnectionCommand','_isDrawingShapePointDown','RibbonInsertGroup','save','_renderManagerService','onReady','name','_draw','cxnPointRadius','_index','_isStartAdjusting','getCurrentUnitInfo','skeleton','getCurrentScrollState','SetDrawingArrangeCommand','changeStart$','getUnitType','ISheetDrawingService','invert','toStringTag','open','worldPoint','FromArray','sectionCanvas','getOrCreateDrawingCopyPlan','worldPoints','interceptor','clearAdjustControls','_shapeId','IImageIoService','createInternalEditorID','setShapeData','URL','drawing-ui.objectListPanel.unlock','sheets-shape-ui.quickStyles','from','mergeMenu','has','_drawSimpleText','getDrawingEditable','createShapeFormulaDocument','offsetX','sheet.shape.text.float-menu','shouldAllowShapeTextEditorHostSizeShrink','description','GROUP','MobileShapeEditorService','getPresentation','offsetY','Plugin','clipTop','endArrow','with','OPERATION','ShapeFormulaRibbonControl','getContextValue','multiply','panel','getConnectionSiteList','_connectionSiteObjects','Large','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','FormatPainterSessionService','viewportScrollY','ToggleShapeFloatingToolbarOperation','focusDrawing','jsxs','getFocusDrawings','_rerouteConnectorLine','UNIVER_SHEET','value','getSkeletonParam','_unitId','_baseHeight','getRenderUnitById','IUniverInstanceService','_shapeTextEditingService','setCursor','MoveUpIcon','_getShapeInfo','worldRect','sin','startWith','getVisible','clipHeight','_drawingRenderService','_drawingAddListener','_activeShapeAdjustPointList','_clipService','enableObjectsEvent','11tdZXwm','point','transformByState','filter','makeDirty','getAdjustInfoByName','undo','_sheetShapeAdjustController','_activeShapeInfo','SHAPE_CHANGE_PICKER_COMPONENT','Circle','transformForAngle','formulaBinding','prepareShapeTextDocumentData','UniverDrawingPlugin','Injector','rotation','_sheetPermissionCheckController','_formulaShapes','getCurrentSkeleton','setAdjustValueByName','shapeId','_sheetInterceptorService','drawing-ui.objectListPanel.hide','setShapeProps','_lastEditingShapeKey','sheet.shape.object-list.panel','find','updateDocumentDataMargin','_sheetClipboardService','prstGeomAdjValues','SHEET','77496WBWkDK','_sheetDrawingShapeRenderController','Shape','MobileObjectListPanel','_sheetSkeletonService','calcAdjValues','Arrow','_resetState','sheetViewStartColumn','_handleFreeEndpointMove','activeAnObject','getDrawingVisible','UniverShapeEditorUIPlugin','DocumentViewModel','getShapeType','_executeConnectedRouteConnectionCommand','resolveFormulaShapeAutoFitSize','setCollapsedIds','drawing-ui.objectListPanel.expand','actions','ShapeTextEditorContainer','BottomIcon','useObservable','_commandExecutedListener','_clearConnectionSites','DrawingRenderService','sheets-shape-ui.ribbon.shape-format.formula-control','_updateShapeAdjustControls','SheetsDrawingGroupCopyPasteController','refreshShapeFillImage','rect','_initCommands','_createCopyInfoByRange','resetCursor','setOnSavingEditorData','_sheetDrawingService','drawFormulaShapeAnimationLayers','ShapeLineTypeEnum','_urlImageService','prstGeom','srcRect','index','shapeText'];_0x102a=function(){return _0x5ec5ba;};return _0x102a();}let Pt=class extends a[_0x275262(0x284)]{constructor(_0x2e09bc,_0x4e6edd,_0x4750cb,_0x477c2a,_0xb87172,_0x14ca4d){const _0x294fcd=_0x275262;super(),this[_0x294fcd(0xc9)]=_0x2e09bc,this['_ribbonService']=_0x4e6edd,this[_0x294fcd(0x41a)]=_0x4750cb,this[_0x294fcd(0x407)]=_0x477c2a,this[_0x294fcd(0x2c5)]=_0xb87172,this[_0x294fcd(0x131)]=_0x14ca4d,E(this,'_visible',!0x1),this[_0x294fcd(0xc9)][_0x294fcd(0x2e5)](nt),this[_0x294fcd(0x177)]((0x0,a[_0x294fcd(0x14b)])(this[_0x294fcd(0x41a)][_0x294fcd(0xcf)][_0x294fcd(0x279)](()=>this[_0x294fcd(0x27a)]()))),this['_update']();}[_0x275262(0x24e)](){const _0x1e52a3=_0x275262;this[_0x1e52a3(0x131)][_0x1e52a3(0x2a1)](!0x1,Nt),this[_0x1e52a3(0x3c3)](),super[_0x1e52a3(0x24e)]();}['_update'](){const _0x520655=_0x275262;var _0x5e18f2;let _0x53953d=this['_drawingManagerService'][_0x520655(0x304)](),_0x45de9b=_0x53953d[_0x520655(0x385)]===0x1?_0x53953d[0x0]:void 0x0;if((_0x45de9b==null?void 0x0:_0x45de9b['drawingType'])!==a[_0x520655(0x3cc)][_0x520655(0x2bd)]||this['_univerInstanceService']['getUnitType'](_0x45de9b['unitId'])!==a[_0x520655(0x412)][_0x520655(0x306)]){this[_0x520655(0x131)][_0x520655(0x2a1)](!0x1,Nt),this['_hide']();return;}let _0x36d61c=(_0x5e18f2=this['_renderManagerService'][_0x520655(0x30b)](_0x45de9b[_0x520655(0x19e)]))==null?void 0x0:_0x5e18f2[_0x520655(0x14c)]['getCanvasElement'](),_0x341963=(0x0,e['resolveShapeContextualRibbonHostMode'])(_0x36d61c)==='isolated';if(this[_0x520655(0x131)]['setFallbackVisible'](_0x341963,Nt),_0x341963){this[_0x520655(0x3c3)]();return;}this[_0x520655(0x208)]||(this[_0x520655(0x208)]=!0x0,this['_ribbonService']['showContextualTab'](R,{'activate':!0x0}));}['_hide'](){const _0xa8f985=_0x275262;this[_0xa8f985(0x208)]&&(this[_0xa8f985(0x208)]=!0x1,this[_0xa8f985(0x1e9)][_0xa8f985(0x1bb)](R),this[_0xa8f985(0x1e9)][_0xa8f985(0x34c)]([]));}};Pt=A([k(0x0,t[_0x275262(0x258)]),k(0x1,t[_0x275262(0x3bc)]),k(0x2,s['IDrawingManagerService']),k(0x3,a[_0x275262(0x30c)]),k(0x4,c['IRenderManagerService']),k(0x5,(0x0,a[_0x275262(0x15b)])(e[_0x275262(0xfc)]))],Pt);let Ft=class extends e[_0x275262(0x28a)]{constructor(_0xbc6823,_0x309b8e,_0x10b3f4,_0x156093,_0x58a6c3,_0x34dd83,_0xac1431,_0x4079d0,_0x471889,_0x511c80){super(_0xbc6823,_0x309b8e,_0x10b3f4,_0x156093,_0x58a6c3,_0x34dd83,_0xac1431,_0x4079d0,_0x471889,_0x511c80,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a[_0x275262(0x15b)])(g['DocSelectionManagerService'])),k(0x2,(0x0,a[_0x275262(0x15b)])(_[_0x275262(0x3c0)])),k(0x3,(0x0,a[_0x275262(0x15b)])(_[_0x275262(0x3f4)])),k(0x4,a[_0x275262(0x173)]),k(0x5,(0x0,a[_0x275262(0x15b)])(_[_0x275262(0x383)])),k(0x6,(0x0,a[_0x275262(0x15b)])(e[_0x275262(0x16e)])),k(0x7,(0x0,a[_0x275262(0x15b)])(g[_0x275262(0xda)])),k(0x8,(0x0,a[_0x275262(0x15b)])(_[_0x275262(0x3d7)])),k(0x9,(0x0,a[_0x275262(0x15b)])(H))],Ft);let Q=class extends a[_0x275262(0x284)]{constructor(_0x7477e2,_0x38c395,_0x404091,_0x2a56d4,_0x15af28,_0x3f8919,_0xe519e3,_0x22eac7,_0x493142,_0x4fce77,_0x5b5848){const _0x4dbf76=_0x275262;super(),this[_0x4dbf76(0x407)]=_0x7477e2,this[_0x4dbf76(0x142)]=_0x38c395,this['_menuManagerService']=_0x404091,this[_0x4dbf76(0x1de)]=_0x2a56d4,this[_0x4dbf76(0xd8)]=_0x15af28,this[_0x4dbf76(0x278)]=_0x3f8919,this[_0x4dbf76(0x41a)]=_0xe519e3,this[_0x4dbf76(0x3db)]=_0x22eac7,this['_contextService']=_0x493142,this[_0x4dbf76(0x2c5)]=_0x4fce77,this['_shapeTextEditingService']=_0x5b5848,E(this,'_sidebarDisposable',null),E(this,_0x4dbf76(0x323),null),E(this,_0x4dbf76(0x160),!0x1),E(this,_0x4dbf76(0x16b),0x0),E(this,'_shapePopupMenuDisposable',null),E(this,_0x4dbf76(0x297),[]),this[_0x4dbf76(0x1d9)](),this[_0x4dbf76(0x177)](this[_0x4dbf76(0x407)]['getCurrentTypeOfUnit$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x4dbf76(0x279)](_0x1b1e04=>{const _0x34fff5=_0x4dbf76;if(!_0x1b1e04){var _0x32e5d5;(_0x32e5d5=this[_0x34fff5(0x1f0)])==null||_0x32e5d5[_0x34fff5(0x24e)]();}})),this[_0x4dbf76(0x21a)](),this[_0x4dbf76(0xdb)](),this[_0x4dbf76(0x177)](this[_0x4dbf76(0x30d)][_0x4dbf76(0x188)]['subscribe'](_0x260383=>{_0x260383&&this['_clearPopups']();}));}[_0x275262(0x1d9)](){const _0xdc5312=_0x275262;this[_0xdc5312(0xc9)]['mergeMenu'](it);}[_0x275262(0xdb)](){const _0xe34b2d=_0x275262;this[_0xe34b2d(0x394)]||=this[_0xe34b2d(0x177)]((0x0,e[_0xe34b2d(0x139)])(this[_0xe34b2d(0x2c5)],a[_0xe34b2d(0x412)][_0xe34b2d(0x306)],_0x157001=>this[_0xe34b2d(0x1d1)](_0x157001)));}[_0x275262(0x310)](_0x27858e,_0x98277f,_0x3cf330){const _0x4581c1=_0x275262;let _0x3b0937=this[_0x4581c1(0x1de)][_0x4581c1(0x375)](_0x27858e,_0x98277f,_0x3cf330),_0x3559e4=this['_sheetsShapeService'][_0x4581c1(0x3b5)](_0x27858e,_0x98277f,_0x3cf330);return _0x3b0937!==void 0x0&&_0x3559e4!==void 0x0?{'shapeData':_0x3559e4,'shapeId':_0x3cf330,'shapeType':_0x3b0937,'unitId':_0x27858e,'subUnitId':_0x98277f,'version':this[_0x4581c1(0x16b)],'disableShapeOption':!0x1}:null;}[_0x275262(0x36e)](){const _0x33942d=_0x275262;this[_0x33942d(0x297)][_0x33942d(0x3b3)](_0x307985=>_0x307985[_0x33942d(0x24e)]()),this[_0x33942d(0x297)]['length']=0x0;}[_0x275262(0x1d1)](_0x339c10){const _0x22add7=_0x275262;let _0x528495=new a[(_0x22add7(0x134))]();return _0x528495[_0x22add7(0xfd)](_0x339c10[_0x22add7(0xd7)][_0x22add7(0x279)](()=>{const _0x1c7cf1=_0x22add7;let _0x524da6=_0x339c10[_0x1c7cf1(0x41d)]();if(this[_0x1c7cf1(0x36e)](),this[_0x1c7cf1(0x160)]||_0x524da6[_0x1c7cf1(0x3f9)]>0x1)return;let _0x11cc51=_0x524da6[_0x1c7cf1(0x247)]()[_0x1c7cf1(0x25b)]()[_0x1c7cf1(0x307)];if(!_0x11cc51)return;let _0x396963=this['_drawingManagerService'][_0x1c7cf1(0x1f2)](_0x11cc51['oKey']);if(!_0x396963||_0x396963['drawingType']!==a['DrawingTypeEnum'][_0x1c7cf1(0x2bd)])return;let {unitId:_0x44aacb,subUnitId:_0x19adc0,drawingId:_0x25ccd7,drawingType:_0x1b0f6e}=_0x396963,_0x2fb449=this[_0x1c7cf1(0x310)](_0x44aacb,_0x19adc0,_0x25ccd7);if(!_0x2fb449)return;this['_contextService'][_0x1c7cf1(0x15d)](a[_0x1c7cf1(0x423)],!0x0);let _0x29e616=this[_0x1c7cf1(0x2c5)][_0x1c7cf1(0x30b)](_0x44aacb),_0x22eb2d=((_0x29e616==null?void 0x0:_0x29e616[_0x1c7cf1(0x3f0)])===!0x1?_0x29e616[_0x1c7cf1(0x2f5)](l[_0x1c7cf1(0xe6)]):this[_0x1c7cf1(0x3db)])[_0x1c7cf1(0x371)](_0x11cc51,{'componentKey':L,'direction':'vertical-center','offset':[0x0,e[_0x1c7cf1(0x389)]],'extraProps':{'unitId':_0x44aacb,'subUnitId':_0x19adc0,'drawingId':_0x25ccd7,'drawingType':_0x1b0f6e,'shapeType':_0x2fb449['shapeType'],'shapeData':_0x2fb449[_0x1c7cf1(0x3f8)]}});this['_disposePopups']['push'](this['disposeWithMe'](_0x22eb2d)),this['_drawingManagerService']['getFocusDrawings']()[_0x1c7cf1(0x336)](_0x562d25=>_0x562d25[_0x1c7cf1(0x19e)]===_0x44aacb&&_0x562d25[_0x1c7cf1(0x2a3)]===_0x19adc0&&_0x562d25[_0x1c7cf1(0x25c)]===_0x25ccd7)||this[_0x1c7cf1(0x41a)][_0x1c7cf1(0x302)]([{'unitId':_0x44aacb,'subUnitId':_0x19adc0,'drawingId':_0x25ccd7}]);})),_0x528495[_0x22add7(0xfd)](_0x339c10[_0x22add7(0x1ff)][_0x22add7(0x279)](()=>{const _0x4fe6f5=_0x22add7;this[_0x4fe6f5(0x36e)](),this[_0x4fe6f5(0x167)]['setContextValue'](a[_0x4fe6f5(0x423)],!0x1),this[_0x4fe6f5(0x41a)][_0x4fe6f5(0x302)](null);})),_0x528495[_0x22add7(0xfd)](_0x339c10[_0x22add7(0x116)]['subscribe'](()=>{this['_clearPopups']();})),_0x528495['add'](_0x339c10[_0x22add7(0x2d0)][_0x22add7(0x279)](()=>{const _0x3cb75f=_0x22add7;this[_0x3cb75f(0x36e)]();})),(0x0,a['toDisposable'])(()=>{const _0x3aaf39=_0x22add7;_0x528495['dispose'](),this[_0x3aaf39(0x36e)]();});}['_registerOperations'](){const _0x2fc14c=_0x275262;this[_0x2fc14c(0x177)](this[_0x2fc14c(0x278)][_0x2fc14c(0x3cf)](_0x5af587=>{const _0x3810c8=_0x2fc14c;if(_0x5af587['id']===z['id']){let {unitId:_0x4f8b27,subUnitId:_0x338fb8,drawingId:_0x2cbf22}=_0x5af587[_0x3810c8(0x27b)];this[_0x3810c8(0x16b)]+=0x1,this[_0x3810c8(0x323)]=this[_0x3810c8(0x310)](_0x4f8b27,_0x338fb8,_0x2cbf22),this[_0x3810c8(0x36e)](),this[_0x3810c8(0x289)]();}if(_0x5af587['id']===wt['id']&&(this[_0x3810c8(0x323)]=null,this[_0x3810c8(0x42d)]()),_0x5af587['id']===i[_0x3810c8(0x3d0)]['id']){let {unitId:_0x1e94d9,subUnitId:_0x3286c4,shapeId:_0x3ddb97}=_0x5af587['params'];if(this[_0x3810c8(0x323)]&&this[_0x3810c8(0x323)][_0x3810c8(0x330)]===_0x3ddb97){let _0x249317=this[_0x3810c8(0x310)](_0x1e94d9,_0x3286c4,_0x3ddb97);_0x249317&&(this['_shapeEditPanelVersion']+=0x1,_0x249317[_0x3810c8(0x1d2)]=this[_0x3810c8(0x16b)],this[_0x3810c8(0x323)]=_0x249317,this[_0x3810c8(0x160)]&&this[_0x3810c8(0x289)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x2fc14c(0xcf)][_0x2fc14c(0x279)](_0x456130=>{const _0x16228d=_0x2fc14c;if(this[_0x16228d(0x160)]===!0x1)return;if(_0x456130[_0x16228d(0x385)]===0x0){this[_0x16228d(0x323)]=null,this[_0x16228d(0x42d)]();return;}if(_0x456130['length']===0x1&&_0x456130[0x0][_0x16228d(0x133)]===a[_0x16228d(0x3cc)]['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x16228d(0x310)](_0x456130[0x0][_0x16228d(0x19e)],_0x456130[0x0][_0x16228d(0x2a3)],_0x456130[0x0]['drawingId']),this[_0x16228d(0x323)])){this[_0x16228d(0x289)]();return;}let _0x18a618=_0x456130[_0x16228d(0x31e)](_0x160b86=>_0x160b86[_0x16228d(0x133)]===a[_0x16228d(0x3cc)]['DRAWING_SHAPE']);if(_0x456130[_0x16228d(0x385)]>0x1&&_0x18a618[_0x16228d(0x385)]===_0x456130[_0x16228d(0x385)]){if(this[_0x16228d(0x16b)]+=0x1,this[_0x16228d(0x323)]=this[_0x16228d(0x310)](_0x456130[0x0][_0x16228d(0x19e)],_0x456130[0x0]['subUnitId'],_0x456130[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x16228d(0x289)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x16228d(0x323)]=this[_0x16228d(0x310)](_0x456130[0x0][_0x16228d(0x19e)],_0x456130[0x0][_0x16228d(0x2a3)],_0x456130[0x0][_0x16228d(0x25c)]),this[_0x16228d(0x323)]){this[_0x16228d(0x323)][_0x16228d(0x399)]=!0x0,this[_0x16228d(0x289)]();return;}}this[_0x16228d(0x42d)]();}));}[_0x275262(0x289)](){const _0x5a97d1=_0x275262;this[_0x5a97d1(0x323)]&&(this[_0x5a97d1(0x1f0)]=this[_0x5a97d1(0x142)][_0x5a97d1(0x2d5)]({'id':F,'header':{'title':this[_0x5a97d1(0xd8)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':F,...this['_activeShapeInfo']},'onClose':()=>{const _0x4ea541=_0x5a97d1;this[_0x4ea541(0x41a)][_0x4ea541(0x302)](null),this[_0x4ea541(0x167)][_0x4ea541(0x15d)](a[_0x4ea541(0x423)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x5a97d1(0x160)]=!0x0);}[_0x275262(0x42d)](){const _0x1c0653=_0x275262;this[_0x1c0653(0x160)]=!0x1,this[_0x1c0653(0x142)][_0x1c0653(0x380)](F),this[_0x1c0653(0x1f0)]=null,this[_0x1c0653(0x167)][_0x1c0653(0x15d)](a[_0x1c0653(0x423)],!0x1),this[_0x1c0653(0x41a)]['focusDrawing'](null);}};Q=A([k(0x0,a[_0x275262(0x30c)]),k(0x1,(0x0,a[_0x275262(0x15b)])(t[_0x275262(0x26c)])),k(0x2,t[_0x275262(0x258)]),k(0x3,(0x0,a[_0x275262(0x15b)])(i[_0x275262(0xf3)])),k(0x4,(0x0,a[_0x275262(0x15b)])(a[_0x275262(0x413)])),k(0x5,a[_0x275262(0x173)]),k(0x6,s[_0x275262(0x3a2)]),k(0x7,(0x0,a[_0x275262(0x15b)])(l[_0x275262(0xe6)])),k(0x8,a[_0x275262(0x192)]),k(0x9,c[_0x275262(0x2a9)]),k(0xa,(0x0,a[_0x275262(0x15b)])(H))],Q);let $=class extends a[_0x275262(0x2f2)]{constructor(_0xa0e3cf=lt,_0x5d9cb2,_0x488c7f,_0x575d5a,_0x53f043){const _0x41db9b=_0x275262;super(),this['_config']=_0xa0e3cf,this[_0x41db9b(0x381)]=_0x5d9cb2,this[_0x41db9b(0x278)]=_0x488c7f,this[_0x41db9b(0x3f6)]=_0x575d5a,this['_renderManagerService']=_0x53f043;let {..._0x3e3e7e}=(0x0,a[_0x41db9b(0x3d1)])({},lt,this[_0x41db9b(0x18d)]);this['_configService']['setConfig'](ct,_0x3e3e7e),this[_0x41db9b(0x35a)]();}['onRendered'](){const _0x20f4bf=_0x275262;this[_0x20f4bf(0x2c5)][_0x20f4bf(0xdc)](a[_0x20f4bf(0x412)]['UNIVER_DOC'],[Ft]),(0x0,a[_0x20f4bf(0x12c)])(this[_0x20f4bf(0x381)],[[Q],[G],[j],[J]]);}['onSteady'](){const _0x3ef238=_0x275262;this[_0x3ef238(0x381)][_0x3ef238(0x421)](Q)[_0x3ef238(0xdb)]();}['onReady'](){const _0x898d1c=_0x275262;[[K],[M],[q]][_0x898d1c(0x3b3)](_0xe889e3=>this[_0x898d1c(0x381)][_0x898d1c(0xfd)](_0xe889e3)),(0x0,a[_0x898d1c(0x12c)])(this[_0x898d1c(0x381)],[[q],[M]]),this[_0x898d1c(0x2c5)]['registerRenderModule'](a[_0x898d1c(0x412)][_0x898d1c(0x306)],[K]),this[_0x898d1c(0x2c5)]['registerRenderModule'](a[_0x898d1c(0x412)][_0x898d1c(0x306)],[ut]),this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x898d1c(0x306)],[Ct]),this[_0x898d1c(0x2c5)][_0x898d1c(0xdc)](a[_0x898d1c(0x412)]['UNIVER_SHEET'],[gt]),this[_0x898d1c(0x177)](this[_0x898d1c(0x2c5)][_0x898d1c(0xdc)](a[_0x898d1c(0x412)][_0x898d1c(0x306)],[Mt]));}['onStarting'](){const _0x428d61=_0x275262;this[_0x428d61(0x381)][_0x428d61(0xfd)]([jt]),this[_0x428d61(0x381)]['get'](jt);let _0x33b885=this['_injector'];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x428d61(0x3b3)](_0x585454=>_0x33b885[_0x428d61(0xfd)](_0x585454)),(0x0,a[_0x428d61(0x12c)])(this[_0x428d61(0x381)],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}['_initCommands'](){const _0x40e691=_0x275262;[P,S,wt,z,ae,N,se,ce]['forEach'](_0x139080=>this['disposeWithMe'](this[_0x40e691(0x278)][_0x40e691(0x1b5)](_0x139080)));}};E($,_0x275262(0x268),a[_0x275262(0x412)][_0x275262(0x306)]),E($,_0x275262(0x43e),'SHEET_SHAPE_UI_PLUGIN'),E($,'packageName',at),E($,_0x275262(0x1d2),ot),$=A([(0x0,a['DependentOn'])(h[_0x275262(0x42e)],g[_0x275262(0x21d)],s[_0x275262(0x329)],d[_0x275262(0x27c)],c[_0x275262(0x36c)],o[_0x275262(0x218)],_[_0x275262(0x154)],m[_0x275262(0x153)],r['UniverShapeEditorPlugin'],v[_0x275262(0x17d)],i[_0x275262(0x13c)],l['UniverSheetsUIPlugin'],e[_0x275262(0x347)]),k(0x1,(0x0,a[_0x275262(0x15b)])(a[_0x275262(0x32a)])),k(0x2,a[_0x275262(0x173)]),k(0x3,a[_0x275262(0x17f)]),k(0x4,c['IRenderManagerService'])],$),exports[_0x275262(0x36b)]=nt,exports['SheetsShapeUIMenuSchema']=it,Object[_0x275262(0x3b2)](exports,_0x275262(0x237),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x275262(0x171),{'enumerable':!0x0,'get':function(){return $;}});
|