@univerjs-pro/sheets-shape-ui 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +19 -19
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x541acc=_0x5f19;(function(_0x20fce4,_0x2fe0f8){const _0x1c086b=_0x5f19,_0x8664da=_0x20fce4();while(!![]){try{const _0x31a4c4=-parseInt(_0x1c086b(0x25e))/0x1*(parseInt(_0x1c086b(0x2de))/0x2)+-parseInt(_0x1c086b(0x275))/0x3+-parseInt(_0x1c086b(0x2ef))/0x4+-parseInt(_0x1c086b(0x378))/0x5+-parseInt(_0x1c086b(0x270))/0x6+-parseInt(_0x1c086b(0xba))/0x7*(-parseInt(_0x1c086b(0x256))/0x8)+parseInt(_0x1c086b(0xd9))/0x9;if(_0x31a4c4===_0x2fe0f8)break;else _0x8664da['push'](_0x8664da['shift']());}catch(_0x296c58){_0x8664da['push'](_0x8664da['shift']());}}}(_0x1e30,0xcd0ef));import{FormulaShapeAnimationController as _0x4951e9,MobileShapeEditorService as _0x3f0626,SHAPE_CHANGE_PICKER_COMPONENT as _0x2dcb96,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x8219d5,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x375d53,ShapeEditPanel as _0xbb7a4b,ShapeFloatingToolbar as _0x405f14,ShapeFloatingToolbarService as _0x161d03,ShapeFloatingToolbarToggleFactory as _0x4b28c5,ShapeFormulaRibbonControl as _0x173d19,ShapeGroupEnum as _0x118aec,ShapePickerDropdown as _0x5c2fb8,ShapePickerPanel as _0x471b6c,ShapeQuickStyleGallery as _0x4cdcdf,ShapeStyleRibbonControl as _0x2aace6,ShapeTextEditorContainer as _0x725664,ShapeTextFloatMenuRenderControllerBase as _0x54f80b,ShapeTextFloatToolbar as _0x1d0940,ShapeTextHyperLinkHoverController as _0x92e723,ShapeTextHyperLinkInfo as _0x190f9d,ShapeTextHyperLinkPopupService as _0x3ca8c8,ShapeTextRibbonControl as _0x5c9580,ToggleShapeFloatingToolbarOperation as _0x359d72,UniverShapeEditorMobileUIPlugin as _0x18a087,UniverShapeEditorUIPlugin as _0x12c8db,activateDrawingObject as _0x4bb030,bindRenderTransformerLifecycle as _0x360d1d,buildShapeTextDataUpdate as _0x25527e,clearActiveDrawingObjects as _0x1579d,createShapeTextHyperLinkRegions as _0x471d78,drawFormulaShapeAnimationLayers as _0x11fc5b,getDrawingTypeNameKey as _0x346ac3,getTextModel as _0x30d84a,getTextStyle as _0x2015b7,normalizeShapeTextModel as _0x41d40b,plainShapeTextToDocumentData as _0x15cc35,prepareShapeTextDocumentData as _0x3ff829,registerShapeFormatPainter as _0x54bb22,resolveFormulaShapeAutoFitSize as _0x1945a0,resolveShapeContextualRibbonHostMode as _0x34233e,resolveShapeTextDocumentPageHeight as _0x4a69d6,resolveShapeTextDocumentRenderLayout as _0x1329a2,resolveShapeTextEditorBehaviorShapeData as _0x40eba8,resolveShapeTextEditorWrapStrategy as _0x509d70,resolveShapeTextHyperLinkAt as _0x4c512c,resolveShapeTextHyperLinkObject as _0x18e584,shouldAllowShapeTextEditorHostSizeShrink as _0x62874f,shouldClipShapeTextDocument as _0x223931,useFormulaShapeToolbar as _0x3f2655}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x6cddf9,ContextMenuGroup as _0x2db674,ContextMenuPosition as _0x1e73b1,FloatingObjectToolbarPosition as _0x31530e,FormatPainterSessionService as _0x2b0b62,IMenuManagerService as _0x413bdc,IRibbonService as _0x999fc3,ISidebarService as _0x450cf3,IconManager as _0x404799,MenuItemType as _0x2d43f9,MenuManagerPosition as _0x4f409a,RibbonInsertGroup as _0x4a2c7a,UndoRedoGroupService as _0x31259f,UniverMobileUIPlugin as _0x386611,getMenuHiddenObservable as _0x1a4e26,useDependency as _0x445cf0,useObservable as _0x25afa3}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x5ed0a3,ImageSourceTypeEnum as _0x8812dd,ShapeArrowSizeEnum as _0x3c9364,ShapeArrowTypeEnum as _0x53c9fe,ShapeDefaultConfig as _0x1b524b,ShapeFillEnum as _0x1cd77e,ShapeLineTypeEnum as _0x5164fc,ShapeModel as _0x1b9e21,ShapeRenderModeEnum as _0x4a3d62,ShapeTypeEnum as _0x29a3a1,computeConnectorRouteLayout as _0x5e7985,getBasicShapeRotateBound as _0x1730d0,isConnectorShape as _0x3fd6c6,isCurvedConnectorShape as _0x1b6450,routeConnectorLineShape as _0x2ed419}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x54214a,UniverShapeEditorPlugin as _0x51e836,applyQuickStyleToShapeData as _0x31be7c,cloneShapeDataForType as _0x3062d3,createShapeFormulaDocument as _0x5bea48,createShapeTextBoxShapeData as _0xca2216,getShapeQuickStylePreset as _0x132d6c,getShapeQuickStyleType as _0x49a35b,resolveActiveShapeQuickStylePresetId as _0x3e003e}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x506353,InsertSheetsShapeMutation as _0x48b536,RemoveSheetsShapeMutation as _0x5543d5,SetShapeDrawingDataCommand as _0x3585c5,SheetsShapeService as _0x27864b,ToggleSheetsShapeFlipCommand as _0x22d960,UniverSheetsShapePlugin as _0x5f07ce,UpdateConnectorRelationCommand as _0x499afe,UpdateLineShapeResizeCommand as _0xfaf437,UpdateSheetsShapeDataMutation as _0x2a1218}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x1256c6,CommandType as _0xf8f445,DependentOn as _0x44b434,Disposable as _0x50d788,DisposableCollection as _0x1de28d,DocumentDataModel as _0x158570,DrawingTypeEnum as _0x4a245a,FOCUSING_COMMON_DRAWINGS as _0x121b13,FOCUSING_SHAPE_TEXT_EDITOR as _0x5ba962,HorizontalAlign as _0x103f4b,ICommandService as _0x2c496c,IConfigService as _0xed9cf,IContextService as _0x35ac6c,IImageIoService as _0x4be973,IPermissionService as _0x2dd2ac,IURLImageService as _0x51737c,IUndoRedoService as _0x2bd058,IUniverInstanceService as _0x43400d,Inject as _0x53ba9c,Injector as _0x3387ed,LocaleService as _0x5622d1,Plugin as _0xcbf5d3,UniverInstanceType as _0x35cbcc,VerticalAlign as _0x54d572,createInternalEditorID as _0x407a8d,generateRandomId as _0x21450c,merge as _0x29ed24,registerDependencies as _0x110449,toDisposable as _0x183b07,touchDependencies as _0x634993}from'@univerjs/core';import{CopySheetCommand as _0x583407,RemoveSheetCommand as _0x5b7bce,SheetInterceptorService as _0xcb4849,SheetPermissionCheckController as _0x28fcea,SheetSkeletonService as _0xfe3e0a,SheetsSelectionsService as _0x1f2e85,UniverSheetsPlugin as _0x59b291,WorkbookCopyPermission as _0x18f348,WorkbookEditablePermission as _0x220388,WorksheetCopyPermission as _0x37f6de,WorksheetEditPermission as _0x5d269b,attachRangeWithCoord as _0x307ceb,discreteRangeToRange as _0x1e7cec,getSheetCommandTarget as _0x88a456}from'@univerjs/sheets';import{IDrawingManagerService as _0x5399a4,SetDrawingSelectedOperation as _0x46655b,UniverDrawingPlugin as _0x237bd8,getDrawingShapeKeyByDrawingSearch as _0x191ead,getOrCreateDrawingCopyPlan as _0x25f35b}from'@univerjs/drawing';import{CURSOR_TYPE as _0x419dad,Circle as _0x4c063a,DRAWING_OBJECT_LAYER_INDEX as _0x5cbc31,DocumentSkeleton as _0x3819c6,DocumentViewModel as _0x584a8c,Documents as _0x57f2f7,IRenderManagerService as _0x22bed8,Image as _0x101755,RENDER_CLASS_TYPE as _0x2a8676,SHEET_VIEWPORT_KEY as _0x539d6e,Shape as _0x17e18a,Transform as _0x39f1ac,UniverRenderEnginePlugin as _0x4a85d4,Vector2 as _0x53a890}from'@univerjs/engine-render';import{COPY_TYPE as _0x64091e,ISheetClipboardService as _0x1b5861,PREDEFINED_HOOK_NAME as _0x501716,SheetCanvasPopManagerService as _0x5973fe,SheetPrintInterceptorService as _0x8a3389,SheetScrollManagerService as _0x2a747e,SheetSkeletonManagerService as _0x3ea870,UniverSheetsMobileUIPlugin as _0xc35d1,UniverSheetsUIPlugin as _0xad06b8,deriveStateFromActiveSheet$ as _0x1bbe6f,getCurrentRangeDisable$ as _0x565f5e,getViewportByCell as _0x1bffb4}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x207ab3,EMPTY as _0x2a9ebe,Observable as _0x1f2ab7,map as _0x5ebe2d,merge as _0x53fdee,of as _0x589e24,startWith as _0x5d81a0,switchMap as _0x4a21b4}from'rxjs';import{DrawingCommonPanel as _0x28ff69,DrawingImageClipService as _0x178ea9,DrawingRenderService as _0x4b581b,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x4939b9,MobileObjectListPanel as _0x54bd98,OBJECT_LIST_FLOATING_SECTION_ID as _0x19b8c4,ObjectListPanelBase as _0x43abaf,UniverDrawingUIPlugin as _0x1a43cb,getCurrentUnitInfo as _0x12ae77,getObjectListPanelSectionIdForDrawingType as _0x2af955,insertGroupObject as _0x4b1b7d}from'@univerjs/drawing-ui';import{MobileDropdown as _0x506d2f}from'@univerjs/design';import{Fragment as _0x465207,jsx as _0x35a023,jsxs as _0x53330b}from'react/jsx-runtime';import{DrawingApplyType as _0x50e51e,ISheetDrawingService as _0x4202dc,RemoveSheetDrawingCommand as _0x6ae2c0,SetDrawingApplyMutation as _0xc118c9,SetDrawingArrangeCommand as _0x325252,SetSheetDrawingCommand as _0x197a6a,UniverSheetsDrawingPlugin as _0x3c3e08,transformToAxisAlignPosition as _0xf9fc28,transformToDrawingPosition as _0x2bed6e}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1c43d9}from'@univerjs-pro/license';import{DocInterceptorService as _0x4ab968,DocSelectionManagerService as _0x542bad,UniverDocsPlugin as _0x442a76}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5a9bef,DocEventManagerService as _0x30789b,DocRenderController as _0x2d1c03,DocSelectionRenderService as _0x8274d6,UniverDocsUIPlugin as _0x51cee2}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5b541d,SheetsDrawingGroupCopyPasteController as _0x87ae7f,UniverSheetsDrawingMobileUIPlugin as _0x4c3ab4,UniverSheetsDrawingUIPlugin as _0x1cf3f0}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x3bd381,FlipHorizontalIcon as _0x3c9d9a,FlipVerticalIcon as _0x2efc66,MoveDownIcon as _0x1164ba,MoveUpIcon as _0x907637,ObjectLayersIcon as _0xd7ec17,ShapeFormatSettingIcon as _0x350cd9,TopmostIcon as _0x14bd06}from'@univerjs/icons';import{memo as _0x3321c3,useEffect as _0x189550,useMemo as _0x1e2218,useReducer as _0x1952c4,useState as _0x846ed7}from'react';function Er(_0x57793b,_0x3255c7){const _0x359740=_0x5f19;let _0x5a57b6={};for(let _0x43f435 of Object[_0x359740(0x21a)](_0x3255c7)){let _0x14c82b=_0x3255c7[_0x43f435],_0x36b53b=_0x57793b[_0x43f435];_0x5a57b6[_0x43f435]=_0x36b53b===void 0x0?void 0x0:typeof _0x14c82b==_0x359740(0x265)&&_0x14c82b&&!Array[_0x359740(0x225)](_0x14c82b)&&typeof _0x36b53b=='object'&&_0x36b53b&&!Array[_0x359740(0x225)](_0x36b53b)?Er(_0x36b53b,_0x14c82b):_0x36b53b;}return _0x5a57b6;}const K={'type':_0xf8f445[_0x541acc(0x254)],'id':_0x541acc(0x264),'handler':(_0x297cdf,_0x4aa9a0)=>{const _0x179a0c=_0x541acc;let _0x3d7019=_0x297cdf[_0x179a0c(0x1e8)](_0x27864b),{unitId:_0x49353f,subUnitId:_0x5c993f,shapeType:_0x48a784,shapeId:_0x14d49d,shapeData:_0x2a7d74,replaceShapeData:_0x569ded,oldShapeJSON:_0x1599b1}=_0x4aa9a0;if(!_0x3d7019[_0x179a0c(0x29b)](_0x49353f,_0x5c993f,_0x14d49d))return!0x1;let _0x26f86f=_0x297cdf[_0x179a0c(0x1e8)](_0x2c496c),_0x2daa06=_0x297cdf[_0x179a0c(0x1e8)](_0x2bd058),{oldShapeType:_0x239102,oldShapeData:_0x109776={}}=_0x1599b1,_0x4428e2=_0x569ded?_0x109776:Er(_0x109776,_0x2a7d74||{}),_0x5ac81a={'id':_0x2a1218['id'],'params':{'unitId':_0x49353f,'subUnitId':_0x5c993f,'shapeId':_0x14d49d,'shapeType':_0x48a784,'shapeData':_0x2a7d74,'replace':_0x569ded}},_0xadc419={'id':_0x2a1218['id'],'params':{'unitId':_0x49353f,'subUnitId':_0x5c993f,'shapeId':_0x14d49d,'shapeType':_0x239102,'shapeData':_0x4428e2,'replace':_0x569ded}};return _0x26f86f[_0x179a0c(0x319)](_0x5ac81a['id'],_0x5ac81a[_0x179a0c(0x152)])?(_0x2daa06[_0x179a0c(0x249)]({'unitID':_0x49353f,'undoMutations':[_0xadc419],'redoMutations':[_0x5ac81a]}),!0x0):!0x1;}};function Dr(_0x72671d,_0x30df7d,_0x5631d8,_0x3a5879,_0x167b37,_0x181008){const _0x2656cd=_0x541acc;let _0x28c55c={'unitId':_0x30df7d,'subUnitId':_0x5631d8,'shapeId':_0x3a5879,'shapeData':_0x181008,'oldShapeJSON':_0x167b37};return _0x72671d[_0x2656cd(0x1b0)](K['id'],_0x28c55c);}function Or(_0x18402a,_0x35ac4b,_0x514539,_0x143132,_0x1ac401,_0x2f81b3){const _0x209752=_0x541acc;let _0x8ab02c={'unitId':_0x35ac4b,'subUnitId':_0x514539,'shapeId':_0x143132,'shapeData':_0x2f81b3,'oldShapeJSON':_0x1ac401};return _0x18402a[_0x209752(0x1b0)](K['id'],_0x8ab02c);}function kr(_0x3e7e03){'@babel/helpers - typeof';const _0x4504e5=_0x541acc;return kr=typeof Symbol=='function'&&typeof Symbol[_0x4504e5(0x213)]==_0x4504e5(0x32d)?function(_0x52fcfe){return typeof _0x52fcfe;}:function(_0x41d944){const _0x5eb4ff=_0x4504e5;return _0x41d944&&typeof Symbol==_0x5eb4ff(0x30e)&&_0x41d944[_0x5eb4ff(0x11b)]===Symbol&&_0x41d944!==Symbol[_0x5eb4ff(0x1f5)]?_0x5eb4ff(0x32d):typeof _0x41d944;},kr(_0x3e7e03);}function Ar(_0x36a4aa,_0x1b259f){const _0x21df7c=_0x541acc;if(kr(_0x36a4aa)!='object'||!_0x36a4aa)return _0x36a4aa;var _0x43ed7b=_0x36a4aa[Symbol[_0x21df7c(0x34b)]];if(_0x43ed7b!==void 0x0){var _0x177527=_0x43ed7b[_0x21df7c(0x1b5)](_0x36a4aa,_0x1b259f||_0x21df7c(0x123));if(kr(_0x177527)!=_0x21df7c(0x265))return _0x177527;throw TypeError(_0x21df7c(0x29a));}return(_0x1b259f===_0x21df7c(0x170)?String:Number)(_0x36a4aa);}function jr(_0x23bbff){const _0x2e53c3=_0x541acc;var _0x4572f5=Ar(_0x23bbff,_0x2e53c3(0x170));return kr(_0x4572f5)==_0x2e53c3(0x32d)?_0x4572f5:_0x4572f5+'';}function q(_0x44c393,_0x3939d5,_0x264c6b){const _0x506ee7=_0x541acc;return(_0x3939d5=jr(_0x3939d5))in _0x44c393?Object[_0x506ee7(0x187)](_0x44c393,_0x3939d5,{'value':_0x264c6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44c393[_0x3939d5]=_0x264c6b,_0x44c393;}function Mr(_0x15fae5,_0x3cd023,_0x29eb3f){const _0x2b0fc6=_0x541acc;let _0x452191={..._0x3cd023,'dataModel':{..._0x3cd023[_0x2b0fc6(0x214)]??{},..._0x29eb3f?{'doc':_0x29eb3f}:null}},_0x5c4f8e=_0x40eba8(_0x15fae5,_0x452191),_0x1140d9=_0x509d70(_0x5c4f8e);return{'clip':_0x223931(_0x5c4f8e,_0x1140d9),'wrapStrategy':_0x1140d9};}var J=class extends _0x17e18a{constructor(_0x2eb19d,_0x1efe85){const _0x1a07f6=_0x541acc;super(_0x2eb19d,_0x1efe85),q(this,'_hyperLinkRegions',[]),q(this,_0x1a07f6(0x247),void 0x0),q(this,_0x1a07f6(0x316),new _0x4951e9(()=>this[_0x1a07f6(0x2ff)](!0x0),()=>this[_0x1a07f6(0x2f8)]())),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x1a07f6(0x32a),_0x4a245a[_0x1a07f6(0x1f9)]),q(this,_0x1a07f6(0x340),!0x0),this[_0x1a07f6(0x247)]={..._0x1efe85},this['_formulaAnimation'][_0x1a07f6(0x27a)](_0x1efe85['formulaPresentation'],_0x1efe85[_0x1a07f6(0x2e9)]!==!0x1),this[_0x1a07f6(0x208)](),this[_0x1a07f6(0x2f8)]();}[_0x541acc(0x208)](){const _0x4f3228=_0x541acc;this[_0x4f3228(0x1fd)]['subscribeEvent'](_0x182792=>{const _0x1b78d6=_0x4f3228;this[_0x1b78d6(0x30f)](_0x182792);});}[_0x541acc(0x176)](_0x3a21d4){const _0x58af63=_0x541acc;this[_0x58af63(0x247)]['prstGeom']=_0x3a21d4;}[_0x541acc(0x21d)](_0x307524){const _0x1129eb=_0x541acc;if(this[_0x1129eb(0x247)][_0x1129eb(0x355)])return null;let _0x1cdeb=this[_0x1129eb(0x357)](_0x307524),{width:_0x47d0c5,height:_0x1337e2}=this[_0x1129eb(0x1b8)]();return _0x4c512c(this[_0x1129eb(0x235)],{'x':(this[_0x1129eb(0x269)]?-_0x1cdeb['x']:_0x1cdeb['x'])+_0x47d0c5/0x2,'y':_0x1cdeb['y']+_0x1337e2/0x2});}['setEditing'](_0x5a989c){const _0x35fba6=_0x541acc;this[_0x35fba6(0x247)][_0x35fba6(0x355)]=_0x5a989c,this[_0x35fba6(0x2ff)](!0x0);}[_0x541acc(0x33e)](_0x2b0945,_0x17863e=!0x0){const _0x145a0e=_0x541acc;this[_0x145a0e(0x316)][_0x145a0e(0x27a)](_0x2b0945,_0x17863e),this['_props']['formulaPresentation']=_0x2b0945,this[_0x145a0e(0x2f8)](),this[_0x145a0e(0x2ff)](!0x0);}[_0x541acc(0x2f8)](){const _0x309d89=_0x541acc;let _0x52ba6e=this['_props'][_0x309d89(0x31f)],_0x37c6a2=_0x52ba6e[_0x309d89(0x211)](),_0x4c38a0=_0x41d40b(_0x37c6a2==null?void 0x0:_0x37c6a2[_0x309d89(0x214)]),_0x1176a9=_0x4c38a0==null?void 0x0:_0x4c38a0['doc'],_0xc0d031=this[_0x309d89(0x316)][_0x309d89(0x1f4)]();if(!_0x1176a9||_0xc0d031[_0x309d89(0xf6)]===0x0)return;_0x52ba6e[_0x309d89(0x26b)]({'width':this[_0x309d89(0x27b)],'height':this[_0x309d89(0x35c)]});let _0x682c05=_0x1945a0({'documentData':_0xc0d031['map'](_0x5a8ca4=>_0x5bea48(_0x1176a9,_0x5a8ca4)),'height':this[_0x309d89(0x35c)],'shapeData':_0x52ba6e['getShapeData'](),'textRect':_0x52ba6e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x309d89(0x27b)],'height':this['height']}),'width':this['width']});if(_0x682c05){var _0x51fe50;this[_0x309d89(0x2db)](_0x682c05[_0x309d89(0x27b)],_0x682c05['height']),(_0x51fe50=this[_0x309d89(0xb7)]())==null||(_0x51fe50=_0x51fe50['getTransformer']())==null||_0x51fe50[_0x309d89(0x14d)]();}}get[_0x541acc(0x2b7)](){const _0x5f0843=_0x541acc;return this['_props'][_0x5f0843(0x2b7)];}get[_0x541acc(0x32f)](){const _0x364f54=_0x541acc;return this['_props'][_0x364f54(0x32f)];}['_updateSrcRectByTransform'](_0xd58c92){const _0x3fa40c=_0x541acc;if(this[_0x3fa40c(0x247)][_0x3fa40c(0x2fa)]==null||!this[_0x3fa40c(0x2e8)])return;let {width:_0x4e9a8a,height:_0x51ecc4}=this,{width:_0x417da3=0x0,height:_0x45ee05=0x0}=_0xd58c92[_0x3fa40c(0x278)],{left:_0x35813e=0x0,top:_0x994eeb=0x0,right:_0x769cd1=0x0,bottom:_0x23400b=0x0}=this[_0x3fa40c(0x247)][_0x3fa40c(0x2fa)],_0x174ee5=_0x35813e,_0x33ea06=_0x994eeb,_0x576188=_0x769cd1,_0x1b3ccf=_0x23400b,_0xce4493=!0x1;if(_0x417da3!==0x0&&_0x417da3!==_0x4e9a8a){let _0x3ad32f=_0x35813e/_0x417da3,_0x47d9a0=_0x769cd1/_0x417da3;_0x174ee5=_0x4e9a8a*_0x3ad32f,_0x576188=_0x4e9a8a*_0x47d9a0,_0xce4493=!0x0;}if(_0x45ee05!==0x0&&_0x45ee05!==_0x51ecc4){let _0x37a5e1=_0x994eeb/_0x45ee05,_0x1d9efe=_0x23400b/_0x45ee05;_0x33ea06=_0x51ecc4*_0x37a5e1,_0x1b3ccf=_0x51ecc4*_0x1d9efe,_0xce4493=!0x0;}_0xce4493&&this[_0x3fa40c(0x276)]({'left':_0x174ee5,'top':_0x33ea06,'right':_0x576188,'bottom':_0x1b3ccf});}[_0x541acc(0x276)](_0x1699b1){const _0x5d5a3c=_0x541acc;this[_0x5d5a3c(0x247)][_0x5d5a3c(0x2fa)]=_0x1699b1,this[_0x5d5a3c(0x2ff)](!0x0);}['setFillImage'](_0x58dd85){const _0x48c223=_0x541acc;this[_0x48c223(0x247)][_0x48c223(0x30b)]=_0x58dd85,this[_0x48c223(0x2ff)](!0x0);}set[_0x541acc(0xc5)](_0x1f5f46){const _0x13526f=_0x541acc;this[_0x13526f(0x190)]=_0x1f5f46;}get[_0x541acc(0xc5)](){const _0x20b932=_0x541acc;this[_0x20b932(0x190)]||this[_0x20b932(0x360)]();let _0x505e25=this['_transform'][_0x20b932(0x140)]();return this[_0x20b932(0x1c4)](_0x505e25);}get['shapeModel'](){const _0xaa882f=_0x541acc;return this[_0xaa882f(0x247)][_0xaa882f(0x31f)];}get['shapeId'](){const _0x5bf1e5=_0x541acc;return this[_0x5bf1e5(0x247)][_0x5bf1e5(0x266)];}get[_0x541acc(0xd1)](){const _0x38f1d0=_0x541acc;return _0x2a8676[_0x38f1d0(0x228)];}[_0x541acc(0x273)](_0x5d57ea,_0x2f3f3e,_0x1224bf,_0x3aae0f){const _0x2a3285=_0x541acc;let _0x56a3ed=this[_0x2a3285(0x247)][_0x2a3285(0x31f)];if(!_0x56a3ed||!_0x2f3f3e)return;let _0x576d7c=_0x1224bf??this['width'],_0x4e9663=_0x3aae0f??this[_0x2a3285(0x35c)],_0x5167ed={'shapeType':_0x56a3ed['getShapeType'](),'width':_0x576d7c,'height':_0x4e9663},_0x5108de={'renderMode':_0x4a3d62[_0x2a3285(0x1d1)],'oKey':this['oKey'],'image':this[_0x2a3285(0x247)][_0x2a3285(0x30b)],'angle':this[_0x2a3285(0xcf)]};_0x56a3ed[_0x2a3285(0x26b)](_0x5167ed),_0x5d57ea[_0x2a3285(0x119)]();let _0xa6bc44={'top':0x0,'left':0x0,'width':_0x576d7c,'height':_0x4e9663},_0x200bfd=_0x56a3ed[_0x2a3285(0x2c8)](_0xa6bc44);_0x200bfd?this[_0x2a3285(0x150)](_0x5d57ea,_0x200bfd,_0x384e86=>{const _0xfe6295=_0x2a3285;_0x56a3ed[_0xfe6295(0x2b6)](_0x384e86,_0xa6bc44,_0x5108de);}):(this[_0x2a3285(0x177)](),_0x56a3ed['render'](_0x5d57ea,_0xa6bc44,_0x5108de)),_0x5d57ea[_0x2a3285(0x300)]();let _0x3f8cc8=_0x56a3ed[_0x2a3285(0x211)](),_0x56c8a3=_0x56a3ed['getShapeTextRect'](_0xa6bc44),_0x4a8a92=_0x56a3ed[_0x2a3285(0x241)]();if(_0x3f8cc8&&_0x56c8a3&&!_0x4a8a92){_0x5d57ea[_0x2a3285(0x119)](),this[_0x2a3285(0x19e)]()[_0x2a3285(0x269)]&&_0x5d57ea[_0x2a3285(0x186)](-0x1,0x1);let _0x4b6390=_0x576d7c/0x2,_0xc16460=_0x4e9663/0x2;_0x5d57ea[_0x2a3285(0x215)](-_0x4b6390,-_0xc16460),_0x5d57ea[_0x2a3285(0x242)](),this[_0x2a3285(0x137)](_0x5d57ea,_0x3f8cc8,_0x56c8a3),_0x5d57ea['restore']();}}[_0x541acc(0x1ef)](_0x369c59){}[_0x541acc(0x137)](_0x2b5be5,_0x5c0f10,_0x5c508b){const _0x27a5ab=_0x541acc;var _0x1aed99;this[_0x27a5ab(0x235)]=[],!this[_0x27a5ab(0x247)][_0x27a5ab(0x355)]&&(!((_0x1aed99=_0x5c0f10[_0x27a5ab(0x214)])!=null&&_0x1aed99['doc'])&&_0x27a5ab(0x180)in _0x5c0f10&&_0x5c0f10[_0x27a5ab(0x180)]===!0x1?this[_0x27a5ab(0x33d)](_0x2b5be5,_0x5c0f10,_0x5c508b):this[_0x27a5ab(0x203)](_0x2b5be5,_0x5c0f10,_0x5c508b));}[_0x541acc(0x33d)](_0x459897,_0x1d0704,_0x44bee2){const _0x4ae488=_0x541acc;this[_0x4ae488(0x203)](_0x459897,{..._0x1d0704,'text':_0x1d0704['text']??'','dataModel':{'doc':_0x15cc35(_0x1d0704,_0x4ae488(0x1a8)+this[_0x4ae488(0x22c)])}},_0x44bee2);}[_0x541acc(0x203)](_0x3f82cf,_0x1fd1d7,_0x46a045){const _0x59c062=_0x541acc;_0x11fc5b(_0x3f82cf,this[_0x59c062(0x316)],(_0x6731b9,_0x40a60e,_0x463a77)=>{const _0x27b549=_0x59c062;this[_0x27b549(0x16b)](_0x6731b9,_0x1fd1d7,_0x46a045,_0x40a60e,_0x463a77==='current');});}[_0x541acc(0x16b)](_0x354d23,_0x500a39,_0xf8b058,_0x58da2b,_0x4369c5){const _0x4c5f40=_0x541acc;let _0x222090=this[_0x4c5f40(0x247)][_0x4c5f40(0xc1)];if(!_0x500a39[_0x4c5f40(0x214)]||!_0x222090)return;let _0x2a6d24=_0x41d40b(_0x500a39[_0x4c5f40(0x214)]);if(!_0x2a6d24)return;let _0x2052a7=_0x2a6d24[_0x4c5f40(0x166)];if(!_0x2052a7)return;let _0x10c13b=_0x5bea48(_0x2052a7,_0x58da2b),_0x5a9b78=_0x2a6d24['va']??_0x54d572[_0x4c5f40(0x262)],_0xe87698=_0x2a6d24['ha']??_0x103f4b[_0x4c5f40(0x1ac)],_0x3ae3e3=Mr(this[_0x4c5f40(0x247)]['shapeModel'][_0x4c5f40(0x351)](),_0x500a39,_0x10c13b),_0x417b3e=_0x500a39['isHorizontal'],_0x4de063=_0x3ff829(_0x10c13b,{'isHorizontal':_0x417b3e!==!0x1,'textRect':_0xf8b058,'verticalAlign':_0x5a9b78,'horizontalAlign':_0xe87698,'wrapStrategy':_0x3ae3e3[_0x4c5f40(0x20b)]}),_0x2c8308=new _0x158570(_0x4de063),_0x2bf306=new _0x584a8c(_0x2c8308),_0x12ef09=_0x3819c6[_0x4c5f40(0x2e7)](_0x2bf306,_0x222090);_0x12ef09[_0x4c5f40(0x33a)]();let _0x485a64=_0x12ef09['getActualSize']()[_0x4c5f40(0xc8)],_0x4f6fef=_0x1329a2({'contentHeight':_0x485a64,'verticalAlign':_0x5a9b78,'viewportHeight':_0xf8b058[_0x4c5f40(0x35c)]});_0x2c8308[_0x4c5f40(0x23c)]({'pageSize':{'width':_0x417b3e===!0x1?_0xf8b058[_0x4c5f40(0x35c)]:_0xf8b058[_0x4c5f40(0x27b)],'height':_0x4a69d6(_0x10c13b,_0x4f6fef[_0x4c5f40(0x2c4)])}}),_0x2c8308[_0x4c5f40(0xc9)]({'t':_0x4f6fef['marginTop']}),_0x12ef09[_0x4c5f40(0x33a)]();let _0x226373=new _0x57f2f7('shape-text-'+this[_0x4c5f40(0x22c)],_0x12ef09,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4c5f40(0x2ff)](!0x0)});_0x226373[_0x4c5f40(0x2db)](_0xf8b058['width'],_0x4f6fef[_0x4c5f40(0x2c4)]),_0x354d23['save'](),_0x354d23[_0x4c5f40(0x1f3)](_0xf8b058[_0x4c5f40(0x1d7)],_0xf8b058[_0x4c5f40(0x2f1)]),_0x3ae3e3[_0x4c5f40(0x371)]&&(_0x354d23[_0x4c5f40(0x242)](),_0x354d23['rect'](0x0,_0x4f6fef['clipTop'],_0xf8b058[_0x4c5f40(0x27b)],_0x4f6fef[_0x4c5f40(0x22b)]),_0x354d23['clip']()),_0x4f6fef[_0x4c5f40(0x2d5)]&&_0x354d23['translateWithPrecision'](0x0,_0x4f6fef[_0x4c5f40(0x2d5)]),_0x226373[_0x4c5f40(0x37e)](_0x354d23),_0x4369c5&&(this[_0x4c5f40(0x235)]=_0x471d78(_0x226373,{'left':_0xf8b058['left'],'top':_0xf8b058[_0x4c5f40(0x2f1)]+_0x4f6fef[_0x4c5f40(0x2d5)]},_0x3ae3e3[_0x4c5f40(0x371)]?{'left':_0xf8b058[_0x4c5f40(0x1d7)],'right':_0xf8b058[_0x4c5f40(0x1d7)]+_0xf8b058['width'],'top':_0xf8b058[_0x4c5f40(0x2f1)]+_0x4f6fef[_0x4c5f40(0x303)],'bottom':_0xf8b058['top']+_0x4f6fef[_0x4c5f40(0x303)]+_0x4f6fef[_0x4c5f40(0x22b)]}:void 0x0)),_0x354d23[_0x4c5f40(0x300)](),_0x226373[_0x4c5f40(0x1ae)](),_0x12ef09[_0x4c5f40(0x1ae)](),_0x2bf306[_0x4c5f40(0x1ae)](),_0x2c8308['dispose']();}[_0x541acc(0x2b6)](_0xd29b6f,_0x8de08f,_0x140a3c=!0x1){const _0x5093a9=_0x541acc;if(!this[_0x5093a9(0x175)])return this[_0x5093a9(0x2ff)](!0x1),this;let {width:_0xc4c28,height:_0x396b11,left:_0x338418,top:_0x29b4a5}=this,_0x142ec8=this[_0x5093a9(0x1b8)]();if(_0xc4c28=_0x142ec8[_0x5093a9(0x27b)],_0x396b11=_0x142ec8[_0x5093a9(0x35c)],_0x338418=_0x142ec8[_0x5093a9(0x1d7)],_0x29b4a5=_0x142ec8[_0x5093a9(0x2f1)],this['isRender'](_0x8de08f)){let {top:_0x309ca6,left:_0x1c638f,bottom:_0xecf5c9,right:_0x416fdf}=_0x8de08f[_0x5093a9(0xee)];if(_0xc4c28+this[_0x5093a9(0x2ec)]+_0x338418<_0x1c638f||_0x416fdf<_0x338418||_0x396b11+this[_0x5093a9(0x2ec)]+_0x29b4a5<_0x309ca6||_0xecf5c9<_0x29b4a5)return this;}let _0x34427c=_0x338418+_0xc4c28/0x2,_0x6df9a7=_0x29b4a5+_0x396b11/0x2,_0x268072=this[_0x5093a9(0xc5)]['getMatrix']();if(this[_0x5093a9(0x247)][_0x5093a9(0x355)]){let _0x218038=this['getState'](),_0x2c3d9b=new _0x39f1ac();_0x2c3d9b['composeMatrix']({..._0x218038}),_0x268072=_0x2c3d9b[_0x5093a9(0x24e)]();}return _0xd29b6f[_0x5093a9(0x119)](),this[_0x5093a9(0x247)][_0x5093a9(0x31f)][_0x5093a9(0x246)]===!0x0||_0xd29b6f[_0x5093a9(0xc5)](_0x268072[0x0],_0x268072[0x1],_0x268072[0x2],_0x268072[0x3],_0x34427c,_0x6df9a7),this[_0x5093a9(0x273)](_0xd29b6f,_0x8de08f,_0xc4c28,_0x396b11),_0xd29b6f[_0x5093a9(0x300)](),this[_0x5093a9(0x2ff)](!0x1),this;}[_0x541acc(0x357)](_0x531fb5){const _0x1479b7=_0x541acc;let {left:_0x2c8064,top:_0x50a220,width:_0x46ea67,height:_0x36c902}=this[_0x1479b7(0x1b8)](),_0x16c26c=this[_0x1479b7(0xc5)][_0x1479b7(0x24e)](),_0x24fb6a=_0x2c8064+_0x46ea67/0x2,_0xaf11de=_0x50a220+_0x36c902/0x2,_0x5b6d80=new _0x39f1ac([_0x16c26c[0x0],_0x16c26c[0x1],_0x16c26c[0x2],_0x16c26c[0x3],_0x24fb6a,_0xaf11de]),_0x46e1b5=this[_0x1479b7(0x36c)]();return(this['isInGroup']&&(_0x46e1b5==null?void 0x0:_0x46e1b5[_0x1479b7(0xd1)])===_0x2a8676[_0x1479b7(0x2ac)]?_0x46e1b5['ancestorTransform'][_0x1479b7(0x171)](_0x5b6d80):_0x5b6d80)[_0x1479b7(0x185)]()[_0x1479b7(0x12d)](_0x531fb5);}[_0x541acc(0x1d4)](_0x118242){const _0x4bed39=_0x541acc;let {left:_0x47004a,top:_0x453487,width:_0xb86aae,height:_0x5c091e}=this['getRealBound'](),_0x5b29b6=_0x47004a+_0xb86aae/0x2,_0x2e85b4=_0x453487+_0x5c091e/0x2,_0x2e82a2=this[_0x4bed39(0xc5)]['getMatrix'](),_0x1b55eb=new _0x39f1ac([_0x2e82a2[0x0],_0x2e82a2[0x1],_0x2e82a2[0x2],_0x2e82a2[0x3],_0x5b29b6,_0x2e85b4]),_0x16792f=this[_0x4bed39(0x36c)](),_0x52f458=(this['isInGroup']&&(_0x16792f==null?void 0x0:_0x16792f['classType'])===_0x2a8676[_0x4bed39(0x2ac)]?_0x16792f[_0x4bed39(0x1d8)][_0x4bed39(0x171)](_0x1b55eb):_0x1b55eb)[_0x4bed39(0x185)]()[_0x4bed39(0x12d)](_0x118242),_0x452729=_0xb86aae/0x2,_0x58215d=_0x5c091e/0x2,_0x53d2e1=this[_0x4bed39(0x247)][_0x4bed39(0x31f)];return _0x53d2e1&&_0x53d2e1[_0x4bed39(0x241)]()?_0x53d2e1['isHitLine'](_0x52f458['x'],_0x52f458['y'],_0xb86aae,_0x5c091e):_0x52f458['x']>=-_0x452729-this[_0x4bed39(0x2ec)]/0x2&&_0x52f458['x']<=_0x452729+this[_0x4bed39(0x2ec)]/0x2&&_0x52f458['y']>=-_0x58215d-this['strokeWidth']/0x2&&_0x52f458['y']<=_0x58215d+this[_0x4bed39(0x2ec)]/0x2;}[_0x541acc(0x1ae)](){const _0x489c97=_0x541acc;this[_0x489c97(0x316)][_0x489c97(0x1ae)](),this[_0x489c97(0x247)][_0x489c97(0x31f)]=null,super[_0x489c97(0x1ae)]();}},Nr=class extends _0x17e18a{constructor(_0x338e1b,_0x351637){const _0x51a12a=_0x541acc;super(_0x338e1b,_0x351637),q(this,_0x51a12a(0x37d),null),q(this,_0x51a12a(0x2b2),null),q(this,_0x51a12a(0x1de),null),q(this,_0x51a12a(0x285),null),_0x351637&&this[_0x51a12a(0x1d3)](_0x351637);}[_0x541acc(0x105)](){const _0x15df24=_0x541acc;return{'unitId':this[_0x15df24(0x1de)],'subUnitId':this[_0x15df24(0x285)],'drawingId':this[_0x15df24(0x37d)]};}[_0x541acc(0x1d3)](_0x2e98b2){const _0x864bd2=_0x541acc;_0x2e98b2['shapeId']!==void 0x0&&(this[_0x864bd2(0x37d)]=_0x2e98b2[_0x864bd2(0x266)]),_0x2e98b2[_0x864bd2(0x1a1)]!==void 0x0&&(this['_adjName']=_0x2e98b2[_0x864bd2(0x1a1)]),_0x2e98b2[_0x864bd2(0x2b7)]!==void 0x0&&(this[_0x864bd2(0x1de)]=_0x2e98b2[_0x864bd2(0x2b7)]),_0x2e98b2[_0x864bd2(0x32f)]!==void 0x0&&(this[_0x864bd2(0x285)]=_0x2e98b2[_0x864bd2(0x32f)]),this['transformByState']({'width':_0x2e98b2[_0x864bd2(0x27b)],'height':_0x2e98b2[_0x864bd2(0x35c)]});}[_0x541acc(0x273)](_0xb617a1){const _0x1a1e62=_0x541acc;_0x4c063a[_0x1a1e62(0xb1)](_0xb617a1,{'radius':_0x1b524b['adjHandleSize'],'fill':_0x1b524b[_0x1a1e62(0x1cf)],'stroke':_0x1b524b[_0x1a1e62(0x1c9)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x5ed103,_0x59f8ed){return function(_0xf2ff51,_0x311123){_0x59f8ed(_0xf2ff51,_0x311123,_0x5ed103);};}function X(_0x56391d,_0x2d2c41,_0x258a66,_0x25a965){const _0x22e468=_0x541acc;var _0x2ad5ff=arguments[_0x22e468(0xf6)],_0x5d53c1=_0x2ad5ff<0x3?_0x2d2c41:_0x25a965===null?_0x25a965=Object[_0x22e468(0xda)](_0x2d2c41,_0x258a66):_0x25a965,_0x4acb02;if(typeof Reflect==_0x22e468(0x265)&&typeof Reflect[_0x22e468(0x181)]==_0x22e468(0x30e))_0x5d53c1=Reflect[_0x22e468(0x181)](_0x56391d,_0x2d2c41,_0x258a66,_0x25a965);else{for(var _0x481e1b=_0x56391d[_0x22e468(0xf6)]-0x1;_0x481e1b>=0x0;_0x481e1b--)(_0x4acb02=_0x56391d[_0x481e1b])&&(_0x5d53c1=(_0x2ad5ff<0x3?_0x4acb02(_0x5d53c1):_0x2ad5ff>0x3?_0x4acb02(_0x2d2c41,_0x258a66,_0x5d53c1):_0x4acb02(_0x2d2c41,_0x258a66))||_0x5d53c1);}return _0x2ad5ff>0x3&&_0x5d53c1&&Object[_0x22e468(0x187)](_0x2d2c41,_0x258a66,_0x5d53c1),_0x5d53c1;}let Z=class extends _0x50d788{constructor(_0xfe62c3,_0x5ce29d,_0x10246a,_0x4498fd,_0x50adde,_0x54c3d9){const _0x39809c=_0x541acc;super(),this['_drawingManagerService']=_0xfe62c3,this[_0x39809c(0x1da)]=_0x5ce29d,this[_0x39809c(0x2a5)]=_0x10246a,this[_0x39809c(0x141)]=_0x4498fd,this[_0x39809c(0x2f2)]=_0x50adde,this[_0x39809c(0x2f4)]=_0x54c3d9,q(this,_0x39809c(0x244),new Map()),this[_0x39809c(0x328)](this[_0x39809c(0x2f4)][_0x39809c(0xe4)][_0x39809c(0x36d)](_0x18a730=>{const _0x292cda=_0x39809c;var _0xade439;(_0xade439=this[_0x292cda(0x244)][_0x292cda(0x1e8)](this[_0x292cda(0x27e)](_0x18a730[_0x292cda(0x2b7)],_0x18a730[_0x292cda(0x32f)],_0x18a730[_0x292cda(0x266)])))==null||_0xade439[_0x292cda(0x1ba)](_0x2e0f67=>_0x2e0f67['setFormulaPresentation'](_0x18a730[_0x292cda(0x11e)],_0x18a730[_0x292cda(0x2a6)]));})),this[_0x39809c(0x328)](this['_drawingManagerService'][_0x39809c(0x24f)][_0x39809c(0x36d)](_0x185cf2=>{const _0x260b7c=_0x39809c;_0x185cf2[_0x260b7c(0x1ba)](_0x951633=>{const _0x2243bc=_0x260b7c;this[_0x2243bc(0x2f4)][_0x2243bc(0x178)]({'unitId':_0x951633[_0x2243bc(0x2b7)],'subUnitId':_0x951633[_0x2243bc(0x32f)],'shapeId':_0x951633[_0x2243bc(0x162)]}),this[_0x2243bc(0x244)][_0x2243bc(0x1ed)](this[_0x2243bc(0x27e)](_0x951633[_0x2243bc(0x2b7)],_0x951633['subUnitId'],_0x951633[_0x2243bc(0x162)]));});}));}['renderDrawingShape'](_0x59a1bf,_0x21a592,_0x1ad565){const _0x2506fe=_0x541acc;let {transform:_0x4e2bf4,drawingType:_0x299391,srcRect:_0x198cac,prstGeom:_0x126659,groupId:_0x56d6aa,unitId:_0x5876e0,subUnitId:_0x216091,drawingId:_0x2c9c04,isMultiTransform:_0x1db4e6,transforms:_0x441d8f,hidden:_0x3a52da,selectable:_0x316cb0}=_0x59a1bf;if(_0x299391!==_0x4a245a[_0x2506fe(0x1f9)]||!this[_0x2506fe(0x1b6)][_0x2506fe(0x28e)]()||_0x4e2bf4==null)return;let _0x84af63=this[_0x2506fe(0x1b6)][_0x2506fe(0x2fd)](),_0xcc25d6=_0x1db4e6&&_0x441d8f?_0x441d8f:[_0x4e2bf4],_0x412c48=[];for(let _0x5ba93d of _0xcc25d6){let {left:_0x58779f,top:_0x1b3f56,width:_0x5331e1,height:_0x451d88,angle:_0x446258,flipX:_0x260758,flipY:_0x39ee1a,skewX:_0x3e11ff,skewY:_0x3a7482}=_0x5ba93d,_0x5f300b=_0xcc25d6[_0x2506fe(0x334)](_0x5ba93d),_0x3218b4=_0x191ead({'unitId':_0x5876e0,'subUnitId':_0x216091,'drawingId':_0x2c9c04},_0x1db4e6?_0x5f300b:void 0x0),_0x54a482=_0x21a592[_0x2506fe(0x13f)](_0x3218b4);if(_0x54a482!=null){let _0x5d6d8c={'unitId':_0x5876e0,'subUnitId':_0x216091,'shapeId':_0x2c9c04};_0x54a482 instanceof J&&this[_0x2506fe(0x191)](_0x54a482,_0x5d6d8c),_0x54a482[_0x2506fe(0x26e)]({'left':_0x58779f,'top':_0x1b3f56,'width':_0x5331e1,'height':_0x451d88,'angle':_0x446258,'flipX':_0x260758,'flipY':_0x39ee1a,'skewX':_0x3e11ff,'skewY':_0x3a7482});continue;}let _0x2d6a61=this[_0x2506fe(0x1b6)][_0x2506fe(0x222)](_0x5876e0,_0x216091),_0x55e07e=_0x2d6a61[_0x2506fe(0x334)](_0x2c9c04);if(_0x21a592[_0x2506fe(0x13f)](_0x3218b4)||!this[_0x2506fe(0x1b6)]['getDrawingVisible']())continue;let _0x39b88a=this[_0x2506fe(0x1da)][_0x2506fe(0x29b)](_0x5876e0,_0x216091,_0x2c9c04);if(!_0x39b88a)continue;let _0xa5040e=_0x3fd6c6(_0x39b88a[_0x2506fe(0x259)]())?{..._0x8219d5,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x8219d5,_0x15464e=_0x39b88a[_0x2506fe(0x351)]()[_0x2506fe(0xbe)],_0x5060c3={'unitId':_0x5876e0,'subUnitId':_0x216091,'shapeId':_0x2c9c04};_0x15464e&&this[_0x2506fe(0x2f4)][_0x2506fe(0x24c)](_0x5060c3,_0x15464e);let _0xe6d286=new J(_0x3218b4,{..._0x5ba93d,'zIndex':_0x55e07e===-0x1?_0x2d6a61['length']-0x1:_0x55e07e,'shapeModel':_0x39b88a,'localeService':this['_localeService'],'shapeId':_0x2c9c04,'unitId':_0x5876e0,'subUnitId':_0x216091,'visible':_0x3a52da!==!0x0,'evented':_0x316cb0!==!0x1,'formulaPresentation':_0x15464e?this[_0x2506fe(0x2f4)]['getPresentation'](_0x5060c3):void 0x0,'animateFormulaPresentation':(_0x15464e==null?void 0x0:_0x15464e[_0x2506fe(0x2a6)])!==!0x1,'transformerConfig':_0xa5040e});if(_0x15464e){let _0x1950ad=this['_formulaKey'](_0x5876e0,_0x216091,_0x2c9c04),_0x418df3=this[_0x2506fe(0x244)][_0x2506fe(0x1e8)](_0x1950ad)??new Set();_0x418df3['add'](_0xe6d286),this[_0x2506fe(0x244)][_0x2506fe(0x21f)](_0x1950ad,_0x418df3);}_0x21a592[_0x2506fe(0x274)](_0xe6d286,_0x5cbc31),_0x84af63&&_0x21a592['attachTransformerTo'](_0xe6d286),_0x56d6aa&&_0x4b1b7d({'drawingId':_0x56d6aa,'unitId':_0x5876e0,'subUnitId':_0x216091},_0xe6d286,_0x21a592,this[_0x2506fe(0x1b6)]),_0x126659!=null&&_0xe6d286[_0x2506fe(0x176)](_0x126659),_0x198cac!=null&&_0xe6d286[_0x2506fe(0x276)](_0x198cac);let _0x122d89=this['_loadShapePictureFill'](_0xe6d286,_0x39b88a['getShapeData']());if(_0x122d89){var _0x446a4c;_0x1ad565==null||(_0x446a4c=_0x1ad565['resourceCollector'])==null||_0x446a4c['add'](_0x122d89);}_0x412c48['push'](_0xe6d286);}return _0x412c48;}[_0x541acc(0x27e)](_0x5ed719,_0x15bf58,_0x5ef8b9){return _0x5ed719+'\x00'+_0x15bf58+'\x00'+_0x5ef8b9;}['refreshFormulaPresentation'](_0x3aac35,_0x382b43){const _0x36ce2f=_0x541acc;let _0x497277=this[_0x36ce2f(0x1da)][_0x36ce2f(0x29b)](_0x382b43[_0x36ce2f(0x2b7)],_0x382b43[_0x36ce2f(0x32f)],_0x382b43[_0x36ce2f(0x266)]),_0x26a811=_0x497277==null?void 0x0:_0x497277[_0x36ce2f(0x351)]()[_0x36ce2f(0xbe)],_0x2e3265=this[_0x36ce2f(0x27e)](_0x382b43[_0x36ce2f(0x2b7)],_0x382b43[_0x36ce2f(0x32f)],_0x382b43[_0x36ce2f(0x266)]);if(_0x26a811){this[_0x36ce2f(0x2f4)]['register'](_0x382b43,_0x26a811);let _0x47abf2=this['_formulaShapes'][_0x36ce2f(0x1e8)](_0x2e3265)??new Set();_0x47abf2[_0x36ce2f(0xb5)](_0x3aac35),this['_formulaShapes'][_0x36ce2f(0x21f)](_0x2e3265,_0x47abf2);}else{var _0x3eefd8;this[_0x36ce2f(0x2f4)][_0x36ce2f(0x178)](_0x382b43),(_0x3eefd8=this[_0x36ce2f(0x244)][_0x36ce2f(0x1e8)](_0x2e3265))==null||_0x3eefd8['delete'](_0x3aac35);}_0x3aac35['setFormulaPresentation'](_0x26a811?this[_0x36ce2f(0x2f4)][_0x36ce2f(0x2fe)](_0x382b43):void 0x0,(_0x26a811==null?void 0x0:_0x26a811[_0x36ce2f(0x2a6)])!==!0x1);}[_0x541acc(0x308)](_0x507ffd){const _0x4a2d51=_0x541acc;let _0x56ad5d=_0x507ffd[_0x4a2d51(0x31f)][_0x4a2d51(0x351)](),_0x530df3=_0x56ad5d['fill'];!_0x530df3||_0x530df3[_0x4a2d51(0x277)]!==_0x1cd77e[_0x4a2d51(0x144)]||!_0x530df3['fillImageSource']?_0x507ffd[_0x4a2d51(0x206)](void 0x0):this[_0x4a2d51(0x36b)](_0x507ffd,_0x56ad5d);}['_loadShapePictureFill'](_0x24fdbe,_0x44ad6d){const _0x2cf275=_0x541acc;let _0x269c01=_0x44ad6d[_0x2cf275(0x2da)];if(!_0x269c01||_0x269c01[_0x2cf275(0x277)]!==_0x1cd77e[_0x2cf275(0x144)]||!_0x269c01['fillImageSource'])return;let _0x570b0c=_0x269c01[_0x2cf275(0x1c6)],_0x1a9db0=_0x269c01[_0x2cf275(0x2e5)]??_0x8812dd[_0x2cf275(0x132)],_0x7c012b=this[_0x2cf275(0x141)][_0x2cf275(0x207)](_0x570b0c,_0x1a9db0);if(_0x7c012b)_0x24fdbe['setFillImage'](_0x7c012b);else return this[_0x2cf275(0x20e)](_0x24fdbe,_0x570b0c,_0x1a9db0);}async[_0x541acc(0x20e)](_0xec430b,_0x1a1a20,_0x443465){const _0x2d34e0=_0x541acc;let _0x2f63c9;try{if(_0x443465===_0x8812dd[_0x2d34e0(0x148)])_0x2f63c9=await this[_0x2d34e0(0x141)]['getImage'](_0x1a1a20);else{if(_0x443465===_0x8812dd[_0x2d34e0(0x132)])try{_0x2f63c9=await this[_0x2d34e0(0x2f2)][_0x2d34e0(0x1a2)](_0x1a1a20);}catch{_0x2f63c9=_0x1a1a20;}else _0x2f63c9=_0x1a1a20;}}catch(_0x566abc){console[_0x2d34e0(0x2e3)](_0x2d34e0(0x15f),_0x566abc);return;}await new Promise(_0x293cc2=>{const _0x159b00=_0x2d34e0;let _0xb599e8=new window[(_0x159b00(0x292))]();_0xb599e8[_0x159b00(0x218)]=()=>{const _0x4bd69b=_0x159b00;this[_0x4bd69b(0x141)]['addImageSourceCache'](_0x1a1a20,_0x443465,_0xb599e8),_0xec430b[_0x4bd69b(0x206)](_0xb599e8),_0x293cc2();},_0xb599e8[_0x159b00(0x362)]=()=>{const _0x3d180a=_0x159b00;console[_0x3d180a(0x2e3)](_0x3d180a(0x12a),_0x1a1a20),_0x293cc2();},_0xb599e8[_0x159b00(0x122)]=_0x2f63c9;});}};Z=X([Y(0x0,_0x5399a4),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x53ba9c(_0x5622d1)),Y(0x3,_0x4be973),Y(0x4,_0x51737c),Y(0x5,_0x53ba9c(_0x54214a))],Z);let Pr=class extends _0x50d788{constructor(_0x49f2f1,_0x5e0783,_0x452cfd,_0x58b8c1,_0x12143a,_0x24542d){const _0x3bc184=_0x541acc;super(),this[_0x3bc184(0x1b6)]=_0x49f2f1,this[_0x3bc184(0x1da)]=_0x5e0783,this[_0x3bc184(0x232)]=_0x452cfd,this[_0x3bc184(0x33b)]=_0x58b8c1,this[_0x3bc184(0x35a)]=_0x12143a,this[_0x3bc184(0xdc)]=_0x24542d,q(this,_0x3bc184(0x26d),null),q(this,'_unitId',null),q(this,_0x3bc184(0x285),null),q(this,_0x3bc184(0x27c),void 0x0),q(this,'_shapes',[]),q(this,_0x3bc184(0x350),0x0),q(this,_0x3bc184(0x289),0x0),q(this,_0x3bc184(0x238),0x0),q(this,_0x3bc184(0x17c),0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x3bc184(0xde),void 0x0),q(this,_0x3bc184(0x113),void 0x0),q(this,_0x3bc184(0x2c3),void 0x0),q(this,_0x3bc184(0x32e),void 0x0),q(this,_0x3bc184(0x2b5),!0x1),this[_0x3bc184(0x34a)](),this[_0x3bc184(0xe9)]();}[_0x541acc(0x124)](_0xb40146,_0x40e34c,_0x5113e7){const _0x56a3b8=_0x541acc;let _0x155204=this[_0x56a3b8(0x1da)]['getShapeModel'](_0xb40146,_0x40e34c,_0x5113e7);if(_0x155204)return _0x155204['getDrawingPoints']();}[_0x541acc(0x129)](){const _0x192e69=_0x541acc;this[_0x192e69(0x2e0)]();}[_0x541acc(0x25a)](){const _0x274936=_0x541acc;this[_0x274936(0xed)](!0x0);}[_0x541acc(0x1be)](_0x10a9f2){this['_isShouldShowDrawingShapeAdjust']=_0x10a9f2;}[_0x541acc(0xbb)](_0x4827a8,_0x6f09af,_0x240327,_0x468cfa){const _0x471320=_0x541acc;let _0x41bdb6=this[_0x471320(0x1da)][_0x471320(0x29b)](_0x4827a8,_0x6f09af,_0x240327);if(_0x41bdb6)return _0x41bdb6[_0x471320(0x22a)](_0x468cfa);}[_0x541acc(0x293)](_0x251fe5=!0x1){const _0x18fbd5=_0x541acc;if(this['_unitId']===null||this['_subUnitId']===null||this[_0x18fbd5(0x26d)]===null)return;let _0x3df155=this[_0x18fbd5(0x232)][_0x18fbd5(0x365)](this[_0x18fbd5(0x1de)]);if(!_0x3df155||!_0x3df155[_0x18fbd5(0x320)](_0x3ea870)['getCurrentSkeleton']())return;let {scene:_0x2e3f1f}=_0x3df155,_0x398815={'unitId':this[_0x18fbd5(0x1de)],'subUnitId':this[_0x18fbd5(0x285)],'drawingId':this['_activeShapeId']},_0x3c292d=this[_0x18fbd5(0x1b6)][_0x18fbd5(0xb2)](_0x398815),{transform:_0x300530}=_0x3c292d;if(!_0x300530||_0x3c292d['drawingType']!==_0x4a245a['DRAWING_SHAPE'])return;let {left:_0x48a89b,top:_0x412c05,width:_0x5e3cc2,height:_0x45ba43,flipX:_0x177298,flipY:_0x1c9ee0,angle:_0x43d528=0x0}=_0x300530;if(_0x48a89b===void 0x0||_0x412c05===void 0x0)return;if(_0x251fe5){let _0x4bfb2f=this['_sheetsShapeService'][_0x18fbd5(0x29b)](this[_0x18fbd5(0x1de)],this['_subUnitId'],this[_0x18fbd5(0x26d)]);_0x4bfb2f==null||_0x4bfb2f[_0x18fbd5(0x26b)]({'width':_0x5e3cc2??0x0,'height':_0x45ba43??0x0}),this[_0x18fbd5(0x27c)]=_0x4bfb2f==null?void 0x0:_0x4bfb2f[_0x18fbd5(0x1ef)]();}let _0x5da8c8=this[_0x18fbd5(0x27c)];for(let _0x317a08=0x0;_0x317a08<_0x5da8c8['length'];_0x317a08++){let _0x4292d6=_0x5da8c8[_0x317a08],_0x291aff=_0x4292d6['x'],_0x333015=_0x4292d6['y'];if(_0x177298&&(_0x291aff=(_0x5e3cc2||0x0)-_0x291aff),_0x1c9ee0&&(_0x333015=(_0x45ba43||0x0)-_0x333015),_0x43d528!==0x0){let _0x38846e=(_0x5e3cc2||0x0)/0x2,_0x62aad2=(_0x45ba43||0x0)/0x2,_0x4452f6=_0x43d528*Math['PI']/0xb4,_0x2a9c31=Math[_0x18fbd5(0xf3)](_0x4452f6),_0xe0e64e=Math[_0x18fbd5(0x291)](_0x4452f6),_0x5cac3d=_0x291aff-_0x38846e,_0x533dc1=_0x333015-_0x62aad2;_0x291aff=_0x38846e+(_0x5cac3d*_0x2a9c31-_0x533dc1*_0xe0e64e),_0x333015=_0x62aad2+(_0x5cac3d*_0xe0e64e+_0x533dc1*_0x2a9c31);}let _0x46bd9f={'x':_0x291aff,'y':_0x333015,'adjName':_0x4292d6[_0x18fbd5(0x1a1)]};this['_addShapeAdjustControl'](_0x2e3f1f,_0x46bd9f,_0x46bd9f[_0x18fbd5(0x1a1)],_0x48a89b,_0x412c05,this[_0x18fbd5(0x1de)],this[_0x18fbd5(0x285)]);}}[_0x541acc(0xed)](_0x26607b=!0x1){const _0x228b2c=_0x541acc;_0x26607b&&(this[_0x228b2c(0x2e0)](),this[_0x228b2c(0x293)](_0x26607b));}['_addShapeAdjustControl'](_0x262d9c,_0x2a152d,_0x390d5e,_0x5f52ab,_0x95fdd6,_0x20a6e4,_0x255a82){const _0x34183a=_0x541acc;if(!this[_0x34183a(0x26d)])return;let _0x366cf0=_0x262d9c[_0x34183a(0x13f)]('shape-adjust-point-'+this[_0x34183a(0x26d)]+'-'+_0x390d5e);if(_0x366cf0){_0x366cf0['transformByState']({'left':_0x2a152d['x']+_0x5f52ab-_0x1b524b[_0x34183a(0xdd)],'top':_0x2a152d['y']+_0x95fdd6-_0x1b524b['adjHandleSize']});return;}let _0xc28548={'left':_0x2a152d['x']+_0x5f52ab-_0x1b524b[_0x34183a(0xdd)],'top':_0x2a152d['y']+_0x95fdd6-_0x1b524b['adjHandleSize'],'adjName':_0x390d5e,'shapeId':this[_0x34183a(0x26d)],'unitId':_0x20a6e4,'subUnitId':_0x255a82,'width':_0x1b524b['adjHandleSize']+0x8,'height':_0x1b524b[_0x34183a(0xdd)]+0x8,'zIndex':_0x5cbc31+0x1,'evented':!0x0},_0x27fddc=new Nr(_0x34183a(0x1f0)+this[_0x34183a(0x26d)]+'-'+_0x390d5e,_0xc28548);this[_0x34183a(0x314)][_0x34183a(0x288)](_0x27fddc),this[_0x34183a(0x364)](_0x27fddc,_0x262d9c,_0x390d5e),_0x262d9c[_0x34183a(0x274)](_0x27fddc,_0x5cbc31+0x1);}[_0x541acc(0x2e0)](){const _0x300c44=_0x541acc;this[_0x300c44(0x314)][_0x300c44(0xf6)]!==0x0&&(this[_0x300c44(0x314)][_0x300c44(0x1ba)](_0x3ddf7e=>{const _0x2a9570=_0x300c44;_0x3ddf7e[_0x2a9570(0x1ae)]();}),this[_0x300c44(0x314)]=[]);}[_0x541acc(0x252)](){const _0xd6791d=_0x541acc;this[_0xd6791d(0x293)]();}[_0x541acc(0x216)](_0x43134b,_0x2c9a5c){const _0x36618f=_0x541acc;var _0x43ee6;let _0x86ddef={'x':0x0,'y':0x0};if(!_0x43134b||!_0x2c9a5c)return _0x86ddef;let _0xa40b3b=this[_0x36618f(0x232)]['getRenderUnitById'](_0x43134b);if(!_0xa40b3b||!_0xa40b3b[_0x36618f(0x320)](_0x3ea870)[_0x36618f(0x342)](_0x2c9a5c))return _0x86ddef;let _0x5cd6fe=_0xa40b3b[_0x36618f(0x320)](_0x2a747e),_0x11bf1b=_0x5cd6fe==null?void 0x0:_0x5cd6fe[_0x36618f(0x31e)]();if(!_0x11bf1b)return _0x86ddef;let _0x50c47a=(_0x43ee6=this['_univerInstanceService'][_0x36618f(0xca)](_0x43134b))==null?void 0x0:_0x43ee6[_0x36618f(0x10f)](_0x2c9a5c);if(!_0x50c47a)return _0x86ddef;let _0x511808=_0x1bffb4(_0x11bf1b[_0x36618f(0xc3)],_0x11bf1b['sheetViewStartColumn'],_0xa40b3b[_0x36618f(0x34c)],_0x50c47a);return _0x511808?{'x':_0x511808[_0x36618f(0x26a)],'y':_0x511808[_0x36618f(0x34d)]}:_0x86ddef;}[_0x541acc(0x16c)](_0x4a00c1,_0x3d63b2){const _0x38d81d=_0x541acc;var _0x161abb;let _0x35db72=(_0x161abb=this[_0x38d81d(0x35a)][_0x38d81d(0xca)](_0x4a00c1))==null?void 0x0:_0x161abb[_0x38d81d(0x10f)](_0x3d63b2);return(_0x35db72==null?void 0x0:_0x35db72[_0x38d81d(0x37b)]())??0x1;}[_0x541acc(0x364)](_0x25e02e,_0x4dc168,_0x34f891){const _0x2dc47e=_0x541acc;this[_0x2dc47e(0x328)](_0x183b07(_0x25e02e[_0x2dc47e(0x36a)][_0x2dc47e(0x1e2)]((_0x5eb87d,_0x516c83)=>{const _0x46ef04=_0x2dc47e;var _0x262dad,_0x557219,_0x37403d,_0x580f2b;let _0x4597a6=_0x25e02e[_0x46ef04(0x105)]();this[_0x46ef04(0xde)]=this[_0x46ef04(0xbb)](_0x4597a6['unitId'],_0x4597a6[_0x46ef04(0x32f)],_0x4597a6[_0x46ef04(0x162)],_0x34f891),this[_0x46ef04(0x113)]=this[_0x46ef04(0x1da)][_0x46ef04(0x29b)](_0x4597a6[_0x46ef04(0x2b7)],_0x4597a6['subUnitId'],_0x4597a6['drawingId']);let _0x1d45c7=this[_0x46ef04(0x1b6)][_0x46ef04(0xb2)]({'unitId':this[_0x46ef04(0x1de)],'subUnitId':this[_0x46ef04(0x285)],'drawingId':this['_activeShapeId']}),{transform:_0x2c71db}=_0x1d45c7;if(_0x2c71db){let {left:_0x5400e9,top:_0x515060,width:_0x5c19a0,height:_0x2497ff}=_0x2c71db;this[_0x46ef04(0x350)]=_0x5400e9||0x0,this[_0x46ef04(0x289)]=_0x515060||0x0,this[_0x46ef04(0x238)]=_0x5c19a0||0x0,this[_0x46ef04(0x17c)]=_0x2497ff||0x0;}let _0x331b4c=!!((_0x262dad=_0x1d45c7[_0x46ef04(0xc5)])!=null&&_0x262dad[_0x46ef04(0x269)]),_0x302e3b=!!((_0x557219=_0x1d45c7[_0x46ef04(0xc5)])!=null&&_0x557219['flipY']),_0x17e4c2=((_0x37403d=_0x1d45c7[_0x46ef04(0xc5)])==null?void 0x0:_0x37403d['angle'])||0x0;this['_isStartAdjusting']=!0x0,_0x4dc168[_0x46ef04(0x359)]();let _0x2fecdf={...((_0x580f2b=this[_0x46ef04(0xde)])==null?void 0x0:_0x580f2b['currentAdjustValues'])??{}};this[_0x46ef04(0x2c3)]=_0x4dc168['onPointerMove$']['subscribeEvent']((_0x179bcb,_0x574dc1)=>{const _0x9e9ea6=_0x46ef04;if(!this[_0x9e9ea6(0x217)])return;let {offsetX:_0x5f407e,offsetY:_0x41f46a}=_0x179bcb,_0x42cc93=this[_0x9e9ea6(0xde)];if(this[_0x9e9ea6(0x113)]&&_0x42cc93){_0x4dc168[_0x9e9ea6(0x359)](),_0x4dc168[_0x9e9ea6(0x336)](_0x419dad[_0x9e9ea6(0x21c)]);let _0x29e22d={'left':0x0,'top':0x0,'width':this[_0x9e9ea6(0x238)],'height':this['_baseShapeHeight']},_0x3c7268=this[_0x9e9ea6(0x216)](this[_0x9e9ea6(0x1de)],this['_subUnitId']),_0x51d999=this['_getZoomRatio'](this[_0x9e9ea6(0x1de)],this['_subUnitId']),_0x496a93=_0x5f407e/_0x51d999+_0x3c7268['x']-this[_0x9e9ea6(0x350)],_0x17750e=_0x41f46a/_0x51d999+_0x3c7268['y']-this[_0x9e9ea6(0x289)];if(_0x17e4c2!==0x0){let _0x2c3cae=this[_0x9e9ea6(0x238)]/0x2,_0x1dfc39=this[_0x9e9ea6(0x17c)]/0x2,_0x25d17f=_0x17e4c2*Math['PI']/0xb4,_0x451003=Math[_0x9e9ea6(0xf3)](_0x25d17f),_0x2e0dcb=Math[_0x9e9ea6(0x291)](_0x25d17f),_0x14199c=_0x496a93-_0x2c3cae,_0x548b93=_0x17750e-_0x1dfc39;_0x496a93=_0x2c3cae+(_0x14199c*_0x451003+_0x548b93*_0x2e0dcb),_0x17750e=_0x1dfc39+(-_0x14199c*_0x2e0dcb+_0x548b93*_0x451003);}_0x331b4c&&(_0x496a93=this[_0x9e9ea6(0x238)]-_0x496a93),_0x302e3b&&(_0x17750e=this[_0x9e9ea6(0x17c)]-_0x17750e);let _0x17e14a={'x':_0x496a93,'y':_0x17750e},_0x3a47ee=this['_activeShapeModel']['calcAdjValues'](_0x29e22d,_0x17e14a,_0x42cc93,_0x331b4c,_0x302e3b);if(Object[_0x9e9ea6(0x21a)](_0x3a47ee)[_0x9e9ea6(0xf6)]===0x0)return;for(let [_0x2955b4,_0x3294db]of Object[_0x9e9ea6(0x17b)](_0x3a47ee))this[_0x9e9ea6(0x113)]['setAdjustValueByName'](_0x2955b4,_0x3294db);this[_0x9e9ea6(0x113)][_0x9e9ea6(0x26b)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']});let _0xf80692=this[_0x9e9ea6(0x1b6)][_0x9e9ea6(0xb2)]({'unitId':_0x4597a6['unitId'],'subUnitId':_0x4597a6['subUnitId'],'drawingId':_0x4597a6[_0x9e9ea6(0x162)]});_0xf80692&&(this['_sheetDrawingShapeRenderController'][_0x9e9ea6(0x23e)](_0xf80692,_0x4dc168),this[_0x9e9ea6(0x27c)]=this[_0x9e9ea6(0x124)](_0x4597a6[_0x9e9ea6(0x2b7)],_0x4597a6[_0x9e9ea6(0x32f)],_0x4597a6[_0x9e9ea6(0x162)]),this[_0x9e9ea6(0x252)]());}_0x574dc1[_0x9e9ea6(0x1a5)]();}),this['_adjHandlerPointerUp']=_0x4dc168[_0x46ef04(0x2cc)][_0x46ef04(0x1e2)]((_0x5ddc69,_0x3672a5)=>{const _0x56f612=_0x46ef04;this[_0x56f612(0x2c3)][_0x56f612(0x1ab)](),this['_adjHandlerPointerUp'][_0x56f612(0x1ab)](),_0x4dc168[_0x56f612(0x2b3)]();let _0x1bc2a9=this[_0x56f612(0xde)];if(_0x1bc2a9){let _0x5615cf=_0x4597a6[_0x56f612(0x2b7)],_0x4f6f69=_0x4597a6[_0x56f612(0x32f)],_0x693a64=_0x4597a6[_0x56f612(0x162)],_0x3c64a5={};for(let _0x295d44 of Object[_0x56f612(0x21a)](_0x1bc2a9[_0x56f612(0x18a)])){var _0x107423;let _0x1c595c=(_0x107423=this[_0x56f612(0x113)])==null?void 0x0:_0x107423[_0x56f612(0x2c6)](_0x295d44);_0x1c595c!==void 0x0&&(_0x3c64a5[_0x295d44]=_0x1c595c);}Object[_0x56f612(0x21a)](_0x3c64a5)[_0x56f612(0xf6)]>0x0&&Dr(this[_0x56f612(0xdc)],_0x5615cf,_0x4f6f69,_0x693a64,{'oldShapeData':{'adjustValues':_0x2fecdf}},{'adjustValues':_0x3c64a5});}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x56f612(0x217)]=!0x1,_0x3672a5[_0x56f612(0x1a5)](),_0x4dc168[_0x56f612(0x375)]();}),_0x516c83['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x34792c=_0x541acc;let _0x233153=this[_0x34792c(0x35a)]['getCurrentTypeOfUnit$'](_0x35cbcc[_0x34792c(0x164)]);this[_0x34792c(0x328)](_0x233153[_0x34792c(0x261)](_0x4a21b4(_0x55a2a8=>_0x55a2a8?_0x55a2a8[_0x34792c(0x245)][_0x34792c(0x261)](_0x4a21b4(_0x3ef626=>{const _0x3e6237=_0x34792c;if(!_0x3ef626)return _0x2a9ebe;let _0x1f10e6=_0x55a2a8[_0x3e6237(0x1f1)](),_0x129322=this[_0x3e6237(0x232)][_0x3e6237(0x365)](_0x1f10e6),_0x245ceb=_0x129322==null?void 0x0:_0x129322[_0x3e6237(0x34c)];return _0x245ceb?_0x589e24(_0x245ceb):_0x2a9ebe;})):_0x2a9ebe))['subscribe'](_0x60735a=>{const _0x1aab36=_0x34792c;let _0x278fc8=_0x60735a[_0x1aab36(0x322)]();this[_0x1aab36(0x328)](_0x60735a[_0x1aab36(0x2af)]['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1aab36(0x328)](_0x278fc8['changeStart$'][_0x1aab36(0x36d)](_0x208751=>{const _0x2fcc6b=_0x1aab36;let {objects:_0x335b0d}=_0x208751;this[_0x2fcc6b(0x293)](),_0x335b0d!==null&&_0x335b0d['size']===0x1&&_0x335b0d[_0x2fcc6b(0x370)]()[_0x2fcc6b(0x2d4)]()[_0x2fcc6b(0x156)]instanceof J&&this[_0x2fcc6b(0x1be)](!0x0);})),this[_0x1aab36(0x328)](_0x278fc8['changing$'][_0x1aab36(0x36d)](()=>{const _0x46cebf=_0x1aab36;this[_0x46cebf(0x2b5)]&&this[_0x46cebf(0x2e0)]();})),this[_0x1aab36(0x328)](_0x60735a[_0x1aab36(0x2cc)][_0x1aab36(0x1e2)](()=>{const _0x26948=_0x1aab36;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x26948(0x1be)](!0x1),this['_createShapeAdjustControls']());})),this[_0x1aab36(0x328)](_0x278fc8[_0x1aab36(0x1f8)][_0x1aab36(0x36d)](()=>{const _0x5328b0=_0x1aab36;this[_0x5328b0(0x1de)]&&this[_0x5328b0(0x285)]&&this[_0x5328b0(0x26d)]&&this[_0x5328b0(0x1b6)][_0x5328b0(0xb2)]({'unitId':this[_0x5328b0(0x1de)],'subUnitId':this[_0x5328b0(0x285)],'drawingId':this['_activeShapeId']})&&(this[_0x5328b0(0x27c)]=this[_0x5328b0(0x124)](this[_0x5328b0(0x1de)],this[_0x5328b0(0x285)],this['_activeShapeId']),this['_updateAdjustControlPositions']());}));}));}[_0x541acc(0x34a)](){const _0x3d17ac=_0x541acc;this[_0x3d17ac(0x328)](this[_0x3d17ac(0xdc)][_0x3d17ac(0x1d2)](_0x429686=>{const _0x361e6f=_0x3d17ac;if(_0x429686['id']!==_0x2a1218['id'])return;let {unitId:_0x3342b8,subUnitId:_0x150fb1,shapeId:_0x4da2ee}=_0x429686[_0x361e6f(0x152)];_0x3342b8===this[_0x361e6f(0x1de)]&&_0x150fb1===this[_0x361e6f(0x285)]&&_0x4da2ee===this[_0x361e6f(0x26d)]&&this[_0x361e6f(0x25a)]();})),this[_0x3d17ac(0x328)](this[_0x3d17ac(0x1b6)][_0x3d17ac(0x169)][_0x3d17ac(0x36d)](_0x518db2=>{const _0x49fd5b=_0x3d17ac;if(_0x518db2['length']===0x1){let _0x3b44ef=_0x518db2[0x0];if(_0x3b44ef[_0x49fd5b(0x2e1)]===_0x4a245a[_0x49fd5b(0x1f9)]&&this[_0x49fd5b(0x35a)][_0x49fd5b(0x231)](_0x3b44ef[_0x49fd5b(0x2b7)])===_0x35cbcc[_0x49fd5b(0x164)]){this[_0x49fd5b(0x26d)]=_0x3b44ef[_0x49fd5b(0x162)];let {unitId:_0x36222a,subUnitId:_0x3e968d}=_0x3b44ef;this[_0x49fd5b(0x27c)]=this['_getShapeAdjustPointListById'](_0x36222a,_0x3e968d,this[_0x49fd5b(0x26d)]),this[_0x49fd5b(0x1de)]=_0x36222a,this[_0x49fd5b(0x285)]=_0x3e968d,this[_0x49fd5b(0x2e0)](),this['_createShapeAdjustControls']();return;}}this[_0x49fd5b(0x26d)]=null,this[_0x49fd5b(0x27c)]=void 0x0,this[_0x49fd5b(0x1de)]=null,this[_0x49fd5b(0x285)]=null,this[_0x49fd5b(0x2e0)]();})),this[_0x3d17ac(0x328)](this[_0x3d17ac(0x1b6)][_0x3d17ac(0x1a7)]['subscribe'](_0x247bcd=>{const _0x3acd5a=_0x3d17ac;if(_0x247bcd[_0x3acd5a(0xf6)]===0x1){var _0x2028d1;let _0x10be9b=_0x247bcd[0x0];((_0x2028d1=this[_0x3acd5a(0x1b6)][_0x3acd5a(0xb2)](_0x10be9b))==null?void 0x0:_0x2028d1[_0x3acd5a(0x2e1)])===_0x4a245a[_0x3acd5a(0x1f9)]&&this[_0x3acd5a(0xed)](!0x0);}})),this[_0x3d17ac(0x328)](this['_drawingManagerService'][_0x3d17ac(0x24f)][_0x3d17ac(0x36d)](_0x1c2a46=>{const _0x5d7605=_0x3d17ac;for(let _0xf6cf16 of _0x1c2a46)this[_0x5d7605(0x26d)]===_0xf6cf16[_0x5d7605(0x162)]&&(this[_0x5d7605(0x26d)]=null,this[_0x5d7605(0x27c)]=void 0x0,this[_0x5d7605(0x1de)]=null,this[_0x5d7605(0x285)]=null,this['_clearShapeAdjustControls']());}));}};Pr=X([Y(0x0,_0x5399a4),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x53ba9c(_0x22bed8)),Y(0x3,_0x53ba9c(Z)),Y(0x4,_0x43400d),Y(0x5,_0x2c496c)],Pr);const Fr={'id':_0x541acc(0xe6),'type':_0xf8f445[_0x541acc(0x325)],'handler':(_0x5b0483,_0x284aa4)=>{const _0x268773=_0x541acc;let _0x3f37c7=_0x5b0483[_0x268773(0x1e8)](_0x5399a4),_0x251681=_0x5b0483[_0x268773(0x1e8)](_0x22bed8),_0x2766e7=_0x5b0483['get'](Pr);if(_0x284aa4==null)return!0x0;if(_0x284aa4[_0x268773(0xf6)]>0x0){var _0x5a037a;let _0x24e2ff=(_0x5a037a=_0x251681[_0x268773(0x365)](_0x284aa4[0x0][_0x268773(0x2b7)]))==null?void 0x0:_0x5a037a[_0x268773(0x34c)];if(_0x24e2ff){let {unitId:_0x2a11c3,subUnitId:_0x2b47fa,drawingId:_0x43370a}=_0x284aa4[0x0],_0xbbe983=_0x191ead({'unitId':_0x2a11c3,'subUnitId':_0x2b47fa,'drawingId':_0x43370a},void 0x0),_0x38682c=_0x24e2ff[_0x268773(0x13f)](_0xbbe983);if(_0x38682c){var _0x4cd6b9;(_0x4cd6b9=_0x251681[_0x268773(0x365)](_0x284aa4[0x0][_0x268773(0x2b7)]))==null||(_0x4cd6b9=_0x4cd6b9[_0x268773(0x34c)][_0x268773(0x1d9)]())==null||_0x4cd6b9[_0x268773(0x2cf)](_0x38682c);}}_0x3f37c7[_0x268773(0x1f7)](_0x284aa4),_0x2766e7[_0x268773(0x1be)](!0x1);}return!0x0;}},Ir={'type':_0xf8f445['COMMAND'],'id':_0x541acc(0x317),'handler':async(_0x5ce4bd,_0x132ea2)=>{const _0x5e38b4=_0x541acc;let _0x3b94c6=_0x88a456(_0x5ce4bd[_0x5e38b4(0x1e8)](_0x43400d));if(!_0x3b94c6)return!0x1;let _0x1f3a37=_0x5ce4bd[_0x5e38b4(0x1e8)](_0x1f2e85)[_0x5e38b4(0x21b)]();if(!_0x1f3a37)return!0x1;let _0x51b80b=_0x5ce4bd[_0x5e38b4(0x1e8)](_0x2c496c),{unitId:_0x48931f,subUnitId:_0x1ad64b}=_0x3b94c6,{value:_0x37b703,enhanceParams:_0x215e93}=_0x132ea2,{range:_0x5485d5}=_0x1f3a37,_0x56efc1={'unitId':_0x48931f,'subUnitId':_0x1ad64b,'shapeType':_0x37b703,'range':_0x5485d5,'shapeId':_0x21450c()};if(_0x215e93){let _0x425991=_0x3fd6c6(_0x37b703),_0x4a7a88=_0x37b703===_0x29a3a1[_0x5e38b4(0x224)];_0x425991&&(_0x215e93['startArrow']||_0x215e93[_0x5e38b4(0x366)])&&(_0x56efc1['shapeData']={'ln':{'startArrow':_0x215e93[_0x5e38b4(0x2f7)]?{'type':_0x53c9fe[_0x5e38b4(0x126)],'size':_0x3c9364[_0x5e38b4(0x2a9)]}:void 0x0,'endArrow':_0x215e93['endArrow']?{'type':_0x53c9fe[_0x5e38b4(0x126)],'size':_0x3c9364['Large']}:void 0x0}}),_0x4a7a88&&(_0x215e93[_0x5e38b4(0x26f)]||_0x215e93['vertical'])&&(_0x56efc1[_0x5e38b4(0x290)]=_0xca2216({'fill':{'fillType':_0x1cd77e[_0x5e38b4(0x36e)],'color':_0x5e38b4(0xf4)},'isHorizontal':!!_0x215e93[_0x5e38b4(0x26f)],'stroke':{'lineStrokeType':_0x5164fc['SolidLine'],'width':0x1,'color':_0x5e38b4(0x219)}}));}let _0x509636=_0x51b80b[_0x5e38b4(0x319)](_0x506353['id'],_0x56efc1);return setTimeout(()=>{const _0xd8add0=_0x5e38b4;_0x51b80b[_0xd8add0(0x1b0)](Fr['id'],[{'unitId':_0x48931f,'subUnitId':_0x1ad64b,'drawingId':_0x56efc1['shapeId']}]);},0xc8),_0x509636;}},Lr='sheet.shape.edit.panel',Rr=_0x541acc(0x2a1),zr='sheet.shape.floating-toolbar',Br=_0x541acc(0x237),Vr=_0x407a8d('SHAPE_TEXT'),Hr=_0x541acc(0x1cb),Ur={'id':_0x541acc(0x30d),'type':_0xf8f445[_0x541acc(0x254)],'handler':(_0x490769,_0x58d650)=>{const _0x344115=_0x541acc;let _0x3d7122=_0x490769['get'](_0x450cf3),_0x20b270=_0x490769[_0x344115(0x1e8)](_0x5622d1),_0x4c5e67=_0x490769['get'](_0x43400d),_0x4004b8=_0x490769['get'](_0x2c496c);return _0x88a456(_0x4c5e67)?(_0x58d650==null?void 0x0:_0x58d650[_0x344115(0x156)])===_0x344115(0x1bf)?(_0x3d7122[_0x344115(0x1bf)](Rr),!0x0):(_0x3d7122[_0x344115(0x36f)]({'id':Rr,'header':{'title':_0x20b270['t'](_0x344115(0x1c0))},'children':{'label':Rr},'onClose':()=>{const _0x577a2d=_0x344115;_0x4004b8[_0x577a2d(0x319)](_0x46655b['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0xf8f445[_0x541acc(0x325)],'id':_0x541acc(0xec),'handler'(){return!0x0;}};function Gr(_0x4e65c2){const _0x351e09=_0x541acc;let _0x2b2644=_0x4e65c2[_0x351e09(0x1e8)](_0x5399a4)['getFocusDrawings'](),_0x4c30b3=_0x2b2644[_0x351e09(0xf6)]===0x1?_0x2b2644[0x0]:null;if(!_0x4c30b3||_0x4c30b3[_0x351e09(0x2e1)]!==_0x4a245a[_0x351e09(0x1f9)])return null;let _0x23058d=_0x4e65c2[_0x351e09(0x1e8)](_0x27864b),_0x4f7101=_0x23058d['getShapeTypeById'](_0x4c30b3[_0x351e09(0x2b7)],_0x4c30b3['subUnitId'],_0x4c30b3['drawingId']),_0x191ad1=_0x23058d['getShapeDataById'](_0x4c30b3['unitId'],_0x4c30b3[_0x351e09(0x32f)],_0x4c30b3[_0x351e09(0x162)]);return _0x4f7101===void 0x0||!_0x191ad1?null:{'drawing':_0x4c30b3,'shapeData':_0x191ad1,'shapeType':_0x4f7101};}const Kr={'id':_0x541acc(0xe7),'type':_0xf8f445[_0x541acc(0x325)],'handler':(_0x4f89df,_0x4f3afa)=>{const _0x1fb273=_0x541acc;let _0x3492d8=Gr(_0x4f89df),_0x3a7ef=_0x132d6c((_0x4f3afa==null?void 0x0:_0x4f3afa['presetId'])??(_0x4f3afa==null?void 0x0:_0x4f3afa[_0x1fb273(0x156)])??'');if(!_0x3492d8||!_0x3a7ef||_0x3a7ef[_0x1fb273(0x189)]!==_0x49a35b(_0x3492d8[_0x1fb273(0x290)]))return!0x1;let _0x411bdb=_0x31be7c(_0x3492d8[_0x1fb273(0x290)],_0x3a7ef);if(!_0x411bdb)return!0x1;let {drawing:_0x560b18}=_0x3492d8;return _0x4f89df[_0x1fb273(0x1e8)](_0x2c496c)[_0x1fb273(0x1b0)](K['id'],{'unitId':_0x560b18[_0x1fb273(0x2b7)],'subUnitId':_0x560b18['subUnitId'],'shapeId':_0x560b18[_0x1fb273(0x162)],'shapeData':_0x411bdb,'oldShapeJSON':{'oldShapeData':_0x3492d8[_0x1fb273(0x290)]}});}},qr={'id':_0x541acc(0x326),'type':_0xf8f445['OPERATION'],'handler':(_0x495691,_0x21369d)=>{const _0x4706ac=_0x541acc;let _0x326732=Gr(_0x495691),_0x254a98=(_0x21369d==null?void 0x0:_0x21369d[_0x4706ac(0x1e4)])??(_0x21369d==null?void 0x0:_0x21369d[_0x4706ac(0x156)]);if(!_0x326732||!_0x254a98||_0x3fd6c6(_0x326732[_0x4706ac(0x1e4)])||_0x3fd6c6(_0x254a98))return!0x1;let _0x2cf05b=_0x3062d3(_0x326732[_0x4706ac(0x290)],_0x254a98);if(!_0x2cf05b)return!0x1;let {drawing:_0x48611a}=_0x326732;return _0x495691['get'](_0x2c496c)[_0x4706ac(0x1b0)](K['id'],{'unitId':_0x48611a['unitId'],'subUnitId':_0x48611a[_0x4706ac(0x32f)],'shapeId':_0x48611a[_0x4706ac(0x162)],'shapeType':_0x254a98,'shapeData':_0x2cf05b,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x326732[_0x4706ac(0x1e4)],'oldShapeData':_0x326732[_0x4706ac(0x290)]}});}};let Q=class extends _0x50d788{constructor(_0x5ee51a,_0x441ac1){const _0x4cb985=_0x541acc;super(),this[_0x4cb985(0x2dd)]=_0x5ee51a,this[_0x4cb985(0x1b6)]=_0x441ac1,this[_0x4cb985(0x26c)](),this['_clipService'][_0x4cb985(0x1d6)](!0x0),this[_0x4cb985(0x328)]({'dispose':()=>this[_0x4cb985(0x2dd)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0xc7858e=_0x541acc;let _0x19227e=this[_0xc7858e(0x2dd)],_0x2d2988=new Map(),_0x4bec98=_0x19227e[_0xc7858e(0x194)]((_0x844d91,_0x306eaf,_0x4b5c03,_0x193578,_0x3e53a5)=>{const _0x5781b8=_0xc7858e;let _0x464586=_0x306eaf;if(_0x464586===_0x29a3a1[_0x5781b8(0x332)]||_0x306eaf===_0x5781b8(0x363))return!0x1;try{let _0x6e8dca=_0x2d2988[_0x5781b8(0x1e8)](_0x306eaf);return _0x6e8dca||(_0x6e8dca=new _0x1b9e21(_0x464586,_0x5781b8(0x1dd)+_0x306eaf),_0x2d2988[_0x5781b8(0x21f)](_0x306eaf,_0x6e8dca)),_0x6e8dca[_0x5781b8(0x31a)](),_0x3e53a5&&Object['keys'](_0x3e53a5)[_0x5781b8(0xf6)]>0x0&&_0x6e8dca[_0x5781b8(0x229)]({'adjustValues':_0x3e53a5},!0x0),_0x6e8dca['updateContext']({'width':_0x4b5c03,'height':_0x193578}),_0x6e8dca[_0x5781b8(0x31c)](_0x844d91,{'left':0x0,'top':0x0,'width':_0x4b5c03,'height':_0x193578});}catch{return!0x1;}});this[_0xc7858e(0x328)](_0x4bec98),this[_0xc7858e(0x328)]({'dispose':()=>_0x2d2988['clear']()});}['clipByShape'](_0x3ffe69,_0x44bc06,_0x24910e,_0x4c25df,_0x525f1e){const _0x16b823=_0x541acc;let _0x364b72=this[_0x16b823(0x1b6)][_0x16b823(0x13b)](_0x3ffe69,_0x44bc06);if(!_0x364b72[_0x24910e])return;let _0x4696ce={..._0x364b72[_0x24910e],'prstGeom':_0x4c25df,'adjustValues':_0x525f1e};this[_0x16b823(0x1b6)][_0x16b823(0x1fc)]([_0x4696ce]);}};Q=X([Y(0x0,_0x53ba9c(_0x178ea9)),Y(0x1,_0x53ba9c(_0x5399a4))],Q);const Jr=_0x541acc(0x146),Yr=_0x541acc(0x158);function Xr({onShapeClick:_0x1553e9,excludeGroups:_0x3c90e9}){const _0x2e01a5=_0x541acc;return _0x35a023(_0x471b6c,{'excludeGroups':_0x3c90e9,'onShapeClick':_0x1553e9,'scrollContainer':_0x2e01a5(0x2eb)});}function Zr(){const _0x4aec42=_0x541acc;let _0x4f1546=_0x445cf0(_0x5399a4),_0x504c18=_0x445cf0(Q);return _0x35a023(_0x5c2fb8,{'buttonLabel':_0x4aec42(0x282),'excludeGroups':[_0x118aec[_0x4aec42(0xdb)]],'onShapeClick':_0x3d95cd=>{const _0x1539b3=_0x4aec42;let _0x977578=_0x4f1546['getFocusDrawings']()['find'](_0x5c0185=>_0x5c0185[_0x1539b3(0x2e1)]===_0x4a245a[_0x1539b3(0x1a0)]);if(!_0x977578)return;let {unitId:_0x394590,subUnitId:_0x24eebb,drawingId:_0x180dca}=_0x977578;_0x504c18[_0x1539b3(0xcd)](_0x394590,_0x24eebb,_0x180dca,_0x3d95cd['type']);}});}function Qr(){const _0x5577d6=_0x541acc;let _0x5ec22d=_0x445cf0(_0x5399a4),_0x478e6d=_0x445cf0(Q);return _0x35a023(_0x5c2fb8,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x118aec[_0x5577d6(0xdb)]],'DropdownComponent':_0x506d2f,'onShapeClick':_0x49469e=>{const _0x1c7fc9=_0x5577d6;let _0x59b6c9=_0x5ec22d[_0x1c7fc9(0x28b)]()[_0x1c7fc9(0xfd)](_0x2702c3=>_0x2702c3['drawingType']===_0x4a245a[_0x1c7fc9(0x1a0)]);if(!_0x59b6c9)return;let {unitId:_0x1d184e,subUnitId:_0x38967a,drawingId:_0x3a1111}=_0x59b6c9;_0x478e6d['clipByShape'](_0x1d184e,_0x38967a,_0x3a1111,_0x49469e[_0x1c7fc9(0x189)]);}});}function $r(){const _0x50feff=_0x541acc;let _0x2755d7=_0x445cf0(_0x6cddf9),_0x3bc407=_0x445cf0(_0x5399a4),_0x18bfdd=_0x445cf0(_0x43400d),_0xd44012=_0x3bc407[_0x50feff(0x28b)]()[0x0],_0xd0f793=_0xd44012?_0x18bfdd['getUnitType'](_0xd44012['unitId']):void 0x0,_0x266126=_0xd0f793===_0x35cbcc['UNIVER_DOC']?_0x50feff(0x1eb):_0xd0f793===_0x35cbcc[_0x50feff(0x164)]?Yr:void 0x0,_0x45a22a=_0x266126?_0x2755d7['get'](_0x266126):void 0x0;return _0x45a22a?_0x35a023(_0x45a22a,{}):null;}function ei(){let _0x1f40ae=_0x445cf0(_0x2c496c);return _0x35a023(Xr,{'onShapeClick':_0x66b437=>{const _0x19632c=_0x5f19;_0x1f40ae[_0x19632c(0x1b0)](Ir['id'],{'value':_0x66b437['type'],'enhanceParams':{'endArrow':_0x66b437[_0x19632c(0x366)],'startArrow':_0x66b437[_0x19632c(0x2f7)],'horizontal':_0x66b437[_0x19632c(0x26f)],'vertical':_0x66b437['vertical']}});}});}function ti(){return _0x35a023(ei,{});}function ni(_0x1002a9){const _0x20b818=_0x541acc;let _0x4d54ba=_0x1002a9[_0x20b818(0x1e8)](_0x43400d);return{'id':Ir['id'],'type':_0x2d43f9[_0x20b818(0x2f6)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x20b818(0x301),'tooltip':_0x20b818(0x2ba),'activated$':_0x1bbe6f(_0x4d54ba,!0x1,()=>new _0x1f2ab7(_0xa6a9e1=>{const _0x1e9d01=_0x20b818;_0xa6a9e1[_0x1e9d01(0x2d4)](!0x1);})),'hidden$':_0x1a4e26(_0x1002a9,_0x35cbcc[_0x20b818(0x164)]),'disabled$':_0x565f5e(_0x1002a9)};}function _0x5f19(_0x5498cb,_0x27fb14){_0x5498cb=_0x5498cb-0xae;const _0x1e3010=_0x1e30();let _0x5f19df=_0x1e3010[_0x5498cb];return _0x5f19df;}function ri(_0x473c0b){const _0x4b04c5=_0x541acc;let _0x148365=_0x473c0b[_0x4b04c5(0x1e8)](_0x43400d);return{'id':Ur['id'],'type':_0x2d43f9[_0x4b04c5(0x1ee)],'icon':_0x4b04c5(0x19c),'title':'sheets-shape-ui.objectListPanel.open','tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x1bbe6f(_0x148365,!0x1,()=>new _0x1f2ab7(_0x2036da=>{const _0x5e9f9d=_0x4b04c5;_0x2036da[_0x5e9f9d(0x2d4)](!0x1);})),'hidden$':_0x1a4e26(_0x473c0b,_0x35cbcc[_0x4b04c5(0x164)]),'disabled$':_0x565f5e(_0x473c0b)};}const ii=_0x541acc(0x335),ai=_0x541acc(0x11d);function oi(_0x5f185a){const _0x4774c6=_0x541acc;let _0x332c44=_0x5f185a[_0x4774c6(0x1e8)](_0x5399a4)[_0x4774c6(0x28b)]();return _0x332c44[_0x4774c6(0xf6)]===0x1&&_0x332c44[0x0]['drawingType']===_0x4a245a['DRAWING_SHAPE']?_0x332c44[0x0]:null;}function si(_0x5295c1){const _0x2a0b8e=_0x541acc;let _0x5b9faa=_0x5295c1[_0x2a0b8e(0x1e8)](_0x5399a4);return _0x5b9faa[_0x2a0b8e(0x169)]['pipe'](_0x5d81a0(_0x5b9faa[_0x2a0b8e(0x28b)]()),_0x5ebe2d(_0x4614ae=>_0x4614ae[_0x2a0b8e(0xf6)]!==0x1||_0x4614ae[0x0][_0x2a0b8e(0x2e1)]!==_0x4a245a[_0x2a0b8e(0x1f9)]));}function ci(_0x3dcf7b){const _0x942129=_0x541acc;return{'id':ii,'commandId':_0x22d960['id'],'type':_0x2d43f9['BUTTON'],'title':_0x942129(0x345),'tooltip':_0x942129(0x345),'icon':_0x942129(0x1cc),'hidden$':si(_0x3dcf7b),'params':()=>{const _0x216dd5=_0x942129;let _0x4fdc73=oi(_0x3dcf7b);return _0x4fdc73?{'unitId':_0x4fdc73[_0x216dd5(0x2b7)],'subUnitId':_0x4fdc73[_0x216dd5(0x32f)],'shapeId':_0x4fdc73['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0x37662d){const _0x56b88e=_0x541acc;return{'id':ai,'commandId':_0x22d960['id'],'type':_0x2d43f9[_0x56b88e(0x1ee)],'title':_0x56b88e(0x29d),'tooltip':_0x56b88e(0x29d),'icon':_0x56b88e(0x182),'hidden$':si(_0x37662d),'params':()=>{const _0x299a26=_0x56b88e;let _0x38dd27=oi(_0x37662d);return _0x38dd27?{'unitId':_0x38dd27[_0x299a26(0x2b7)],'subUnitId':_0x38dd27['subUnitId'],'shapeId':_0x38dd27[_0x299a26(0x162)],'flipV':!0x0}:void 0x0;}};}const ui='sheets-shape-ui.shape-format.quick-style-gallery',di=_0x541acc(0xe8),fi=_0x541acc(0x15a),pi=_0x541acc(0x11f);function mi(){let _0x1a5169=_0x445cf0(_0x2c496c),_0x2b31c6=_0x445cf0(_0x5399a4),_0xdb823=_0x445cf0(_0x27864b),_0x17fbf1=()=>{const _0x1194ac=_0x5f19;var _0x347ca5;let _0x14af07=_0x2b31c6[_0x1194ac(0x28b)]();if(_0x14af07[_0x1194ac(0xf6)]!==0x1||((_0x347ca5=_0x14af07[0x0])==null?void 0x0:_0x347ca5['drawingType'])!==_0x4a245a[_0x1194ac(0x1f9)])return null;let {unitId:_0x57eaf4,subUnitId:_0x231ab7,drawingId:_0x41cc6}=_0x14af07[0x0],_0x4b8849=_0xdb823[_0x1194ac(0x16d)](_0x57eaf4,_0x231ab7,_0x41cc6),_0xaeb676=_0xdb823['getShapeDataById'](_0x57eaf4,_0x231ab7,_0x41cc6);return _0x4b8849===void 0x0||!_0xaeb676?null:{'unitId':_0x57eaf4,'subUnitId':_0x231ab7,'drawingId':_0x41cc6,'shapeType':_0x4b8849,'shapeData':_0xaeb676};},_0x52b083=_0x25afa3(()=>new _0x1f2ab7(_0x3ec654=>{const _0x5d9ef2=_0x5f19;let _0x574203=()=>_0x3ec654[_0x5d9ef2(0x2d4)](_0x17fbf1()),_0x30e898=_0x2b31c6[_0x5d9ef2(0x169)][_0x5d9ef2(0x36d)](_0x574203),_0x38f42a=_0x1a5169[_0x5d9ef2(0x1d2)](_0x3b6951=>{_0x3b6951['id']===_0x2a1218['id']&&_0x574203();});return _0x574203(),()=>{const _0x289736=_0x5d9ef2;_0x30e898[_0x289736(0x1ab)](),_0x38f42a[_0x289736(0x1ae)]();};}),_0x17fbf1(),!0x1,[_0x1a5169,_0x2b31c6,_0xdb823]);return{'selection':_0x52b083,'updateShapeData':_0x474eba=>{const _0x3da46d=_0x5f19;_0x52b083&&Dr(_0x1a5169,_0x52b083[_0x3da46d(0x2b7)],_0x52b083[_0x3da46d(0x32f)],_0x52b083[_0x3da46d(0x162)],{'oldShapeData':_0x52b083[_0x3da46d(0x290)]},_0x474eba);}};}function hi(){const _0x9cb33e=_0x541acc;let {selection:_0x58aa7d,updateShapeData:_0x5826a7}=mi();return _0x58aa7d?_0x35a023(_0x2aace6,{'shapeData':_0x58aa7d[_0x9cb33e(0x290)],'shapeType':_0x58aa7d['shapeType'],'onUpdateShapeData':_0x5826a7}):null;}function gi(){const _0x53a343=_0x541acc;let _0x4f6790=_0x445cf0(_0x2c496c),_0x506d51=_0x445cf0(_0x5622d1),{selection:_0x2ff2cd}=mi();return _0x2ff2cd?_0x35a023(_0x4cdcdf,{'type':_0x49a35b(_0x2ff2cd[_0x53a343(0x290)]),'ariaLabel':_0x506d51['t'](_0x53a343(0x2ce)),'activePresetId':_0x3e003e(_0x2ff2cd[_0x53a343(0x290)]),'onSelect':_0x523216=>_0x4f6790[_0x53a343(0x1b0)](Kr['id'],{'presetId':_0x523216})}):null;}function _i(){let {selection:_0x172232,updateShapeData:_0x1e163c}=mi();return _0x172232?_0x35a023(_0x5c9580,{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x172232['shapeData'],'onUpdateShapeData':_0x1e163c}):null;}function vi(){const _0x57549a=_0x541acc;var _0x7edfeb;let {selection:_0x5e9fab,updateShapeData:_0x2f6a1e}=mi(),_0x260a24=_0x3f2655({'hostType':_0x35cbcc[_0x57549a(0x164)],'unitId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x2b7)])??'','subUnitId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x32f)])??'','shapeId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x162)])??'','shapeData':_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x290)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x57549a(0x1dc),'onUpdateBinding':_0x4d5aaf=>_0x2f6a1e({'formulaBinding':_0x4d5aaf})}),_0x5367c3=((_0x7edfeb=_0x260a24['extensionGroups'])==null?void 0x0:_0x7edfeb['flatMap'](_0x393ae4=>_0x393ae4[_0x57549a(0x20d)])[_0x57549a(0x305)](_0xa3f457=>_0xa3f457['visible']!==!0x1))??[];return _0x5e9fab!=null&&_0x5e9fab[_0x57549a(0x290)][_0x57549a(0xbe)]?_0x35a023(_0x173d19,{'actions':_0x5367c3,'panel':_0x260a24[_0x57549a(0xfe)]}):null;}function _0x1e30(){const _0x44cd82=['next','contentVerticalOffset','sheets-shape-ui.ribbon.shape-format.arrange-forward','_disposePopups','REMOVE','shape-editor-ui.arrange.forward','fill','resize','_baseDrawingRect','_clipService','2pJZjRz','shapeKey','_clearShapeAdjustControls','drawingType','getPermissionPoint','error','drawing-ui.objectListPanel.dragToReorder','fillImageSourceType','gradientEndColor','create','_transformCalculateSrcRect','animateFormulaPresentation','getEndConnectInfo','parent','strokeWidth','_isOpenedShapeEditPanel','top-center','707760LfbJYJ','_baseLeft','top','_urlImageService','clip-adj-','_shapeFormulaService','INSERT','SELECTOR','startArrow','_applyFormulaAutoFitSize','isMainScene','srcRect','_addShapeConnectorHandlerObject','getSheetId','getDrawingEditable','getPresentation','makeDirty','restore','ShapeIcon','index','clipTop','getBatchAddOp','filter','_attachConnectorObjectEvent','RIBBON','refreshShapeFillImage','onDblclick$','getVisible','image','_sidebarService','sheet.operation.open-shape-object-list-panel','function','_updateSrcRectByTransform','targetShapeId','_contextService','_moveConnectorWithShape','worldPoints','_shapes','prstGeom','_formulaAnimation','sheet.command.menu-insert-shape','drawing-ui.objectListPanel.collapse','syncExecuteCommand','clearAdjustValue','_insertShapes','buildClipPath','calcAdjValues','getCurrentScrollState','shapeModel','with','getConnectionInfo','getTransformerByCreate','sheets-shape-ui.ribbon.shape-format.arrange-back','_currentScene','OPERATION','sheet.operation.update-shape-type','onReady','disposeWithMe','_highlightedSiteIndex','_drawingType','registerCommand','_sidebarDisposable','symbol','_adjHandlerPointerUp','subUnitId','skeleton','_openShapeEditPanel','None','getEditing','indexOf','sheet.menu.shape.flip-horizontal','setCursor','sheetTransform','setCollapsedIds','includes','calculate','_sheetDrawingShapeRenderController','sheets-shape-ui.formatShape','_drawSimpleText','setFormulaPresentation','redo','isDrawingObject','_index','getSkeleton','_sheetShapeAdjustController','_editingParams$','sheets-shape-ui.flipHorizontal','_update','drawing-ui.objectListPanel.hideAll','order','name','_registerDrawingFocusChangeHandler','toPrimitive','scene','viewportScrollY','_cxtHandlerPointerMove','setHighlighted','_baseShapeLeft','getShapeData','setEditing','drawing-ui.objectListPanel.empty','_getImageDrawingInfo','isEditing','idMap','getInverseCoord','_createCopyInfoByRange','disableObjectsEvent','_univerInstanceService','StraightConnector1','height','onSteady','_handleConnectorPointerUp','adjustValues','_setTransForm','_initEvents','onerror','custom','_attachAdjustEvent','getRenderUnitById','endArrow','sheet.operation.close-sheet-shape-format-panel','cancelEditing','asObservable','onPointerDown$','_loadShapePictureFill','getParent','subscribe','SolidFill','open','values','clip','_sheetPermissionCheckController','fromChangeset','FromArray','enableObjectsEvent','_sheetSkeletonService','_commandExecutedListener','2552065kZGiXs','getBatchRemoveOp','front','getZoomRatio','MoveDownIcon','_shapeId','draw','worldPoint','prstGeomAdjValues','SheetShapeTextEditorContainer','permissionPointUpdate$','drawWith','getDrawingByParam','sectionFloating','_connectionSiteObjects','add','_clearCompletionFrame','getScene','_executeConnectionCommand','_currentConnectionTarget','4049542RXoDmX','_getShapeAdjustInfosById','rotation','showContextualTab','formulaBinding','_closeShapeEditPanel','_initPrinting','localeService','drawing-ui.objectListPanel.unlockAll','sheetViewStartRow','drawing-ui.objectListPanel.details','transform','_findShapeAtPoint','hideInfoPopup','actualHeight','updateDocumentDataMargin','getUnit','_sheetCanvasPopManagerService','shape-editor-ui.toolbar.quickStyles','clipByShape','transformVector2SceneCoord','angle','_initSheetChange','classType','#1a73e8','fontSize','abs','_isDrawingShapePointDown','componentKey','_currentUniverService','getConnectorLinePoints','23577444dWSTqk','getOwnPropertyDescriptor','Line','_commandService','adjHandleSize','_activeAdjustInfo','connector-handler-','interceptCommand','drawing-ui.objectListPanel.unlock','getConnectionRelation','_popupMenuListener','presentationChanged$','registerFeatureMenu','drawing.operation.set-drawing-active','sheet.operation.apply-shape-quick-style','sheets-shape-ui.shape-format.style-ribbon-control','_registerDrawingMoveHandler','sqrt','_activeImageId','sheet.operation.open-sheet-shape-format-panel','_updateShapeAdjustControls','viewBound','lineType','_baseTop','drawing-ui.objectListPanel.search','pluginName','cos','#FFFFFF','blockExecuteWithoutPermission','length','mode','UPDATE','axisAlignSheetTransform','changeStart$','localToWorld','getConnectionSiteList','find','panel','_shapeService','_config','drawing-ui.objectListPanel.expand','version','end','shape-editor-ui.arrange.front','getDrawingSearch','drawing-ui.objectListPanel.lockHint','sheets-shape-ui','updateConnectionDetection','_sheetInterceptorService','VIEW_MAIN_LEFT','setOnSavingEditorData','selectable','getInterceptPoints','_hasReset','getSheetBySheetId','_clearConnectionSites','visible$','computeStraightConnectorLayout','_activeShapeModel','_clearFocusedShape','isInGroup','_handleConnectedEndpointMove','initShapePopupMenu','TopmostIcon','save','startY','constructor','_activeAdjustPointList','sheet.menu.shape.flip-vertical','presentation','sheets-shape-ui.shape-format.formula-ribbon-control','CUT','getObject','src','default','_getShapeAdjustPointListById','_executeResizeCommand','Arrow','permissionCheckWithoutRange','backward','clearAdjustControls','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','VIEW_MAIN_TOP','some','applyPoint','setConfig','sheets-shape-ui.ribbon.shape-format.arrange-front','from','_sheetClipboardService','URL','stroke','setAdjustValueByName','_registerOperations','getBasicShapeRelation','_drawShapeText','drawing-ui.objectListPanel.noSelection','_clearPopups','shape-editor-ui.toolbar.changeShape','getDrawingData','_canEdit','sheet.operation.open-mobile-shape-editor','sheets-shape-ui.ribbon.shape-format.formula-control','getObjectIncludeInGroup','clone','_imageIoService','stringify','flipY','PictureFill','canvasElement','sheet.shape.picker.component','getCurrentSkeleton','UUID','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.hide','_permissionService','div','debounceRefreshControls','popup','onStarting','_renderWithCache','sheetViewStartColumn','params','pick','_componentManager','_addShapeConnectorHandlerObjects','value','_injector','sheet.image-clip.shape-picker.component','sheets-shape-ui.deleteShape','sheets-shape-ui.shape-format.text-ribbon-control','drawing-ui.objectListPanel.lock','packageName','_hide','_sheetDrawingService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','setPrstGeomAdjValues','_registerGroupFeaturePasteHook','drawingId','_menuManagerService','UNIVER_SHEET','sheets-shape-ui.ribbon.shape-format.arrange-backward','doc','updateShapeFillImage','getBatchUpdateOp','focus$','getStartConnectInfo','_drawRichTextLayer','_getZoomRatio','getShapeTypeById','drawing-ui.objectListPanel.showAll','_isConnecting','string','multiply','point','_getConnectionSiteAngle','undo','visible','setPrstGeom','_releaseRenderCache','unregister','_baseHeight','computeConnectorResizeLayout','entries','_baseShapeHeight','registerFeaturePasteHook','shapeText','title','isRichText','decorate','FlipVerticalIcon','_copyInfo','canvas','invert','scale','defineProperty','setFallbackVisible','type','currentAdjustValues','start','drawing-ui.objectListPanel.descriptionPlaceholder','getBentTypeFromPoints','startConnectionDetection','hidden','_transform','refreshFormulaPresentation','drawing-ui.objectListPanel.typeNames.','_initSelection','registerClipDelegate','_groupCopyPasteController','getAdjustNames','onRendered','worldRect','univer-box-border\x20univer-px-4\x20univer-text-sm','extensionGroups','cxnPointRadius','ObjectLayersIcon','_initEditingParams','getState','_generateCutPasteMutations','DRAWING_IMAGE','adjName','getImage','_shapeUpdateListener','drawing-ui.objectListPanel.sectionFloating','stopPropagation','MEDIA','update$','sheets-shape-text-','_registerMoveHandler','VIEW_MAIN','unsubscribe','LEFT','sheets-shape-ui.editShape','dispose','_shapeTextEditingService','executeCommand','forward','extraProps','_clearShapeConnectorHandlerObjects','style','call','_drawingManagerService','hasDefault','getRealBound','drawing-ui.objectListPanel.nameInput','forEach','_initMenu','_cxtHandlerPointerUp','has','setShouldShowAdjust','close','sheets-shape-ui.objectListPanel.title','SHEET','_completionFrame','_connectorObjects','transformForAngle','setContextValue','fillImageSource','highlighted','_sheetPrintInterceptorService','adjHandleStroke','getCurrentUnitOfType','sheet.shape.text.float-menu','FlipHorizontalIcon','getDrawingOKey','_isHighlighted','adjHandleFill','PRINTING_COMPONENT_COLLECT','Path','onCommandExecuted','setShapeProps','isHit','cxnPointStrokeWidth','setCanUseShapeClip','left','ancestorTransform','getTransformer','_sheetsShapeService','_getImagePrstGeom','bottom','clip-','_unitId','sheets-shape-ui.config','updateLinePoints','add$','subscribeEvent','offsetY','shapeType','_activeShapeInfo','offsetX','refreshTransform','get','OTHERS','onSavingEditorData$','doc.image-clip.shape-picker.component','_handleFreeEndpointMove','delete','BUTTON','getDrawingPoints','shape-adjust-point-','getUnitId','getActiveViewportByCoord','translateWithPrecision','getAutoFitPresentations','prototype','_drawingAddListener','focusDrawing','changeEnd$','DRAWING_SHAPE','mergeMenu','drawing-ui.objectListPanel.name','featurePluginUpdateNotification','onTransformChange$','_shapeFloatingToolbarService','getContextValue','sheets-shape-ui.ribbon.shape-format.style-control','image-clip-adjust-point-','_getDrawingRect','_drawRichText','editingParams$','BottomIcon','setFillImage','getImageSourceCache','_init','_initCommands','_resetState','wrapStrategy','unit','actions','_loadAndSetImage','shape-editor-ui.arrange.back','getSkeletonParam','getShapeTextData','cxnIndex','iterator','dataModel','translate','_getScrollInfo','_isStartAdjusting','onload','#bcbcbc','keys','getCurrentLastSelection','CROSSHAIR','resolveHyperLinkAt','copyId','set','_visible','cxnPointStroke','getDrawingOrder','DRAWING','Rect','isArray','_context','drawing-ui.objectListPanel.filterHidden','SHAPE','setShapeData','getAdjustInfoByName','clipHeight','oKey','completeEditing','normal','trim','_handleFreeEndpointPointerUp','getUnitType','_renderManagerService','startX','registerRenderModule','_hyperLinkRegions','size','sheets-shape-ui.ribbon.shape-format','_baseShapeWidth','_registerComponents','_calculateFreeEndpointAngle','hideContextualTab','updateDocumentStyle','_insertingShapeKeys','renderDrawingShape','PaintIcon','_activeTargetShapeId','isLineShape','beginPath','_focusedDrawings','_formulaShapes','activeSheet$','isRenderLinePointsMode','_props','_updateTransform','pushUndoRedo','#4285f4','clear','register','_createControls','getMatrix','remove$','_getShapeInfo','_clearControls','_updateAdjustControlPositions','_isImagePointerDown','COMMAND','getCurrentTypeOfUnit$','8mmOwup','_initPermission','getShapeDataById','getShapeType','refreshAdjustControls','getDrawingDataForUnit','parse','attachPopupToObject','70106oOgWSL','_getOrCreateShapeModel','isStartConnectorPoint','pipe','TOP','_getConnectPointInfo','sheet.command.update-shape-data','object','shapeId','_registerFocusChangeHandler','_handleBasicShapeUpdateConnectorLineShape','flipX','viewportScrollX','updateContext','_registerImageShapeClipDelegate','_activeShapeId','transformByState','horizontal','9125712oMTsIQ','_addControl','_ribbonService','_draw','addObject','239676mEpPGm','setSrcRect','fillType','preValue','_lastEditingShapeKey','setPresentation','width','_activeShapeAdjustPointList','_sheetBasicShapeConnectionPointController','_formulaKey','_handleConnectedEndpointPointerUp','ang','map','sheets-shape-ui.imagePanel.crop.shape','_reset','_initialize','_subUnitId','getValue','MoveUpIcon','push','_baseShapeTop','removeLinePoints','getFocusDrawings','_initCopyPaste','_configService','getDrawingVisible','getCanvasElement','shapeData','sin','Image','_createShapeAdjustControls','_iconManager','_executeConnectedRouteResizeCommand','drawing-ui.objectListPanel.sectionCanvas','_targetShapeId','reverse','_isStartConnectorPoint','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeModel','complete','sheets-shape-ui.flipVertical','disableShapeOption','ShapeFormatSettingIcon','_onSavingEditorData$','sheet.shape.object-list.panel','drawing-ui.objectListPanel.moveForward','@univerjs-pro/sheets-shape-ui','objects','_localeService','animationEnabled','intercept','_shapeRenderController','Medium','_registerFeatureMenu','_shapePopupMenuDisposable','GROUP','relation','_findNearestConnectionSite','onPointerMove$','drawing-ui.objectListPanel.moveBackward','_shapeEditPanelVersion','_adjName','resetCursor','endConnectionDetection','_isShouldShowDrawingShapeAdjust','render','unitId','changing$','createControl$','sheets-shape-ui.insertShape','drawing-ui.objectListPanel.title','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','drawing-ui.objectListPanel.locate','_disposed','data','isHighlighted','isolated','changeShapeType','_adjHandlerPointerMove','contentHeight','_updateImageAdjValues','getAdjustValueByName','_draggingConnectorId','getDrawingEffectBounds','sheets-shape-ui.permission.editErr','clearControl$','interceptor','onPointerUp$','_getSceneAndTransformerByDrawingSearch','sheets-shape-ui.quickStyles','activeAnObject','_baseWidth','cxnPointFill','vertical-center','_cxnIndex'];_0x1e30=function(){return _0x44cd82;};return _0x1e30();}const yi=_0x541acc(0x200),bi='sheets-shape-ui.ribbon.shape-format.text-control',xi=_0x541acc(0x13e),Si=_0x541acc(0x2d6),Ci=_0x541acc(0x165),wi=_0x541acc(0x12f),Ti=_0x541acc(0x323);function Ei(_0x12cb0c){const _0x55112a=_0x541acc;let _0x25dafc=_0x12cb0c[_0x55112a(0x1e8)](_0x2c496c),_0x26c343=_0x12cb0c['get'](_0x5399a4),_0x3f7bba=_0x12cb0c[_0x55112a(0x1e8)](_0x27864b);return new _0x1f2ab7(_0x564c61=>{const _0xd7ed60=_0x55112a;let _0x5c159b=()=>{const _0x36bfa9=_0x5f19;let _0x6ac4a9=Di(_0x12cb0c),_0x47cda2=_0x6ac4a9?_0x3f7bba['getShapeDataById'](_0x6ac4a9[_0x36bfa9(0x2b7)],_0x6ac4a9[_0x36bfa9(0x32f)],_0x6ac4a9[_0x36bfa9(0x162)]):null;_0x564c61[_0x36bfa9(0x2d4)](_0x47cda2?_0x3e003e(_0x47cda2)??'':'');},_0x4da56c=_0x26c343[_0xd7ed60(0x169)][_0xd7ed60(0x36d)](_0x5c159b),_0x1eddc4=_0x25dafc['onCommandExecuted'](_0x3683be=>{_0x3683be['id']===_0x2a1218['id']&&_0x5c159b();});return _0x5c159b(),()=>{const _0x4a5484=_0xd7ed60;_0x4da56c[_0x4a5484(0x1ab)](),_0x1eddc4['dispose']();};});}function Di(_0x3b8f32){const _0x430400=_0x541acc;var _0x562755;let _0x4820cd=_0x3b8f32[_0x430400(0x1e8)](_0x5399a4)['getFocusDrawings']();return _0x4820cd[_0x430400(0xf6)]===0x1&&((_0x562755=_0x4820cd[0x0])==null?void 0x0:_0x562755['drawingType'])===_0x4a245a[_0x430400(0x1f9)]?_0x4820cd[0x0]:null;}function Oi(_0x37456b,_0x3583ad=!0x1){const _0x27aa71=_0x541acc;let _0x5b0b2d=_0x37456b[_0x27aa71(0x1e8)](_0x2c496c),_0x466544=_0x37456b[_0x27aa71(0x1e8)](_0x5399a4),_0x42dca7=_0x37456b[_0x27aa71(0x1e8)](_0x27864b);return new _0x1f2ab7(_0x7c9e8f=>{const _0x3c3235=_0x27aa71;let _0x4440ab=()=>{const _0x61ac12=_0x5f19;let _0x31353b=Di(_0x37456b);if(!_0x31353b){_0x7c9e8f['next'](!0x0);return;}let _0xb9a88f=_0x42dca7[_0x61ac12(0x258)](_0x31353b[_0x61ac12(0x2b7)],_0x31353b[_0x61ac12(0x32f)],_0x31353b[_0x61ac12(0x162)]);_0x7c9e8f['next'](!_0xb9a88f||_0x3583ad&&_0xb9a88f[_0x61ac12(0xbe)]==null);},_0x25ed43=_0x466544['focus$'][_0x3c3235(0x36d)](_0x4440ab),_0xc7d590=_0x5b0b2d[_0x3c3235(0x1d2)](_0x33def6=>{_0x33def6['id']===_0x2a1218['id']&&_0x4440ab();});return _0x4440ab(),()=>{const _0x4c01a8=_0x3c3235;_0x25ed43[_0x4c01a8(0x1ab)](),_0xc7d590[_0x4c01a8(0x1ae)]();};});}function ki(_0x736ad1){const _0x228a65=_0x541acc;let _0x56ac7b=_0x736ad1[_0x228a65(0x1e8)](_0x5399a4),_0x2d6f7f=_0x736ad1[_0x228a65(0x1e8)](_0x27864b);return _0x56ac7b[_0x228a65(0x169)]['pipe'](_0x5d81a0(_0x56ac7b[_0x228a65(0x28b)]()),_0x5ebe2d(()=>{const _0x20a391=_0x228a65;let _0x122997=Di(_0x736ad1),_0x1fee50=_0x122997?_0x2d6f7f[_0x20a391(0x16d)](_0x122997[_0x20a391(0x2b7)],_0x122997[_0x20a391(0x32f)],_0x122997[_0x20a391(0x162)]):void 0x0;return _0x1fee50===void 0x0||_0x3fd6c6(_0x1fee50);}));}function Ai(_0xffab19){const _0x5f4c0a=_0x541acc;return{'id':Kr['id'],'type':_0x2d43f9[_0x5f4c0a(0x2f6)],'icon':_0x5f4c0a(0x23f),'title':_0x5f4c0a(0xcc),'tooltip':_0x5f4c0a(0xcc),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0xffab19),'hidden$':Oi(_0xffab19)};}function ji(_0x32f5f1){const _0x1e6b29=_0x541acc;return{'id':qr['id'],'type':_0x2d43f9['SELECTOR'],'icon':'ShapeIcon','title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x1e6b29(0x13a),'slot':!0x0,'selections':[{'label':{'name':_0x2dcb96,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x32f5f1)};}function Mi(_0x1f4462,_0x409cd4,_0x15ebac=!0x1){const _0x4d76d4=_0x541acc;return _0x44a7c2=>({'id':_0x1f4462,'type':_0x2d43f9[_0x4d76d4(0x1ee)],'label':{'name':_0x409cd4,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x44a7c2,_0x15ebac)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x3e6412,_0x28d3fa,_0x788ebd,_0x21cea6){return _0x5cc014=>({'id':_0x3e6412,'commandId':_0x325252['id'],'type':_0x2d43f9['BUTTON'],'icon':_0x788ebd,'title':_0x21cea6,'tooltip':_0x21cea6,'hidden$':Oi(_0x5cc014),'params':()=>{const _0x5cc6c8=_0x5f19;let _0x4b91b4=Di(_0x5cc014);return _0x4b91b4?{'unitId':_0x4b91b4[_0x5cc6c8(0x2b7)],'subUnitId':_0x4b91b4['subUnitId'],'drawingIds':[_0x4b91b4[_0x5cc6c8(0x162)]],'arrangeType':_0x28d3fa}:void 0x0;}});}const Li=Ii(Si,_0x1256c6[_0x541acc(0x1b1)],_0x541acc(0x287),_0x541acc(0x2d9)),Ri=Ii(Ci,_0x1256c6[_0x541acc(0x128)],'MoveDownIcon','shape-editor-ui.arrange.backward'),zi=Ii(wi,_0x1256c6[_0x541acc(0x37a)],_0x541acc(0x118),_0x541acc(0x104)),Bi=Ii(Ti,_0x1256c6['back'],_0x541acc(0x205),_0x541acc(0x20f));function Vi(_0x48493a){const _0x472e65=_0x541acc;return{'id':Wr['id'],'type':_0x2d43f9['BUTTON'],'icon':_0x472e65(0x29f),'title':'sheets-shape-ui.formatShape','tooltip':_0x472e65(0x33c),'hidden$':Oi(_0x48493a),'params':()=>{const _0x1bd30e=_0x472e65;let _0x10ce0d=Di(_0x48493a);return _0x10ce0d?{'unitId':_0x10ce0d[_0x1bd30e(0x2b7)],'subUnitId':_0x10ce0d[_0x1bd30e(0x32f)],'drawingId':_0x10ce0d[_0x1bd30e(0x162)]}:void 0x0;}};}const Hi={[_0x4f409a[_0x541acc(0x307)]]:{[Br]:{'order':0x64,'title':_0x541acc(0x33c),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x359d72['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x4b28c5}}}}},Ui={[_0x4a2c7a[_0x541acc(0x1a6)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x4a2c7a[_0x541acc(0x1e9)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x1e73b1[_0x541acc(0x223)]]:{[_0x2db674['OTHERS']]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x541acc(0x2a3),Ki='1.3.0';const qi={'id':_0x541acc(0x13d),'type':_0xf8f445[_0x541acc(0x325)],'handler'(_0x5c678e,_0x236472){const _0x44bca2=_0x541acc;return _0x236472?(_0x5c678e[_0x44bca2(0x1e8)](_0x3f0626)[_0x44bca2(0x36f)](_0x236472[_0x44bca2(0xf7)],{'hostType':_0x35cbcc[_0x44bca2(0x164)],'shapeId':_0x236472[_0x44bca2(0x162)],'subUnitId':_0x236472[_0x44bca2(0x32f)],'unitId':_0x236472['unitId']}),!0x0):!0x1;}},Ji=_0x541acc(0x1df),Yi={};let Xi=class extends _0x50d788{constructor(_0x1dad0d,_0x314771,_0x480309,_0x4e36f9,_0x27d1ae){const _0xffa5=_0x541acc;super(),this[_0xffa5(0x226)]=_0x1dad0d,this[_0xffa5(0x1b6)]=_0x314771,this[_0xffa5(0x232)]=_0x480309,this['_univerInstanceService']=_0x4e36f9,this['_imageShapeClipController']=_0x27d1ae,q(this,'_activeImageId',null),q(this,'_unitId',null),q(this,_0xffa5(0x285),null),q(this,_0xffa5(0x11c),void 0x0),q(this,_0xffa5(0x314),[]),q(this,'_baseLeft',0x0),q(this,_0xffa5(0xf0),0x0),q(this,_0xffa5(0x2d0),0x0),q(this,_0xffa5(0x179),0x0),q(this,_0xffa5(0x217),!0x1),q(this,_0xffa5(0xde),void 0x0),q(this,_0xffa5(0x113),void 0x0),q(this,_0xffa5(0x2c3),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0xffa5(0x253),!0x1),this[_0xffa5(0x267)](),this[_0xffa5(0x1a9)]();}[_0x541acc(0x129)](){const _0x452fc0=_0x541acc;this[_0x452fc0(0x251)]();}[_0x541acc(0x25a)](){const _0x54357b=_0x541acc;this[_0x54357b(0x251)](),this['_createControls'](!0x0);}[_0x541acc(0x25f)](_0x95461a,_0x165293,_0x2f107a,_0x1fd24f){const _0x3a7c5a=_0x541acc;let _0x3440f8=_0x95461a;if(_0x3440f8!==_0x29a3a1['None']&&_0x95461a!==_0x3a7c5a(0x363))try{let _0x4b5df6=new _0x1b9e21(_0x3440f8,_0x3a7c5a(0x2f3)+_0x95461a);return _0x1fd24f&&_0x4b5df6[_0x3a7c5a(0x229)]({'adjustValues':_0x1fd24f},!0x0),_0x4b5df6['updateContext']({'width':_0x165293,'height':_0x2f107a}),_0x4b5df6;}catch{return;}}[_0x541acc(0x354)](_0x51c4fb,_0x52aa99,_0x362eec){const _0x3d5698=_0x541acc;let _0x817a66={'unitId':_0x51c4fb,'subUnitId':_0x52aa99,'drawingId':_0x362eec},_0xbfb44a=this[_0x3d5698(0x1b6)][_0x3d5698(0xb2)](_0x817a66);if(_0xbfb44a&&_0xbfb44a[_0x3d5698(0x2e1)]===_0x4a245a[_0x3d5698(0x1a0)])return _0xbfb44a;}[_0x541acc(0x1db)](_0x3b2def,_0x691458,_0x41b518){const _0x4bb94f=_0x541acc;let _0x575778=this[_0x4bb94f(0x232)][_0x4bb94f(0x365)](_0x3b2def);if(!_0x575778)return;let {scene:_0x6e14b8}=_0x575778,_0x1cce43=_0x191ead({'unitId':_0x3b2def,'subUnitId':_0x691458,'drawingId':_0x41b518}),_0x51f002=_0x6e14b8[_0x4bb94f(0x121)](_0x1cce43);if(_0x51f002 instanceof _0x101755){let _0x27940f=_0x51f002[_0x4bb94f(0x315)];if(_0x27940f)return{'prstGeom':_0x27940f,'adjustValues':_0x51f002['prstGeomAdjValues']};}}[_0x541acc(0x24d)](_0x3837e9=!0x1){const _0x2aa321=_0x541acc;if(!this['_unitId']||!this[_0x2aa321(0x285)]||!this[_0x2aa321(0xeb)])return;let _0x32f78f=this[_0x2aa321(0x232)][_0x2aa321(0x365)](this[_0x2aa321(0x1de)]);if(!_0x32f78f||!_0x32f78f['with'](_0x3ea870)[_0x2aa321(0x147)]())return;let {scene:_0x57904c}=_0x32f78f,_0x594a1f=this['_getImageDrawingInfo'](this[_0x2aa321(0x1de)],this['_subUnitId'],this[_0x2aa321(0xeb)]);if(!_0x594a1f)return;let {transform:_0x10b83b}=_0x594a1f;if(!_0x10b83b)return;let {left:_0x4ef93d,top:_0x2cc8cd,width:_0x229e08,height:_0x54bd33,flipX:_0x536225,flipY:_0x557446,angle:_0x595c5d=0x0}=_0x10b83b;if(_0x4ef93d===void 0x0||_0x2cc8cd===void 0x0)return;let _0xa3c3ee=this[_0x2aa321(0x1db)](this[_0x2aa321(0x1de)],this[_0x2aa321(0x285)],this[_0x2aa321(0xeb)]);if(!_0xa3c3ee)return;if(_0x3837e9){let _0x41c95e=this[_0x2aa321(0x25f)](_0xa3c3ee[_0x2aa321(0x315)],_0x229e08||0x0,_0x54bd33||0x0,_0xa3c3ee[_0x2aa321(0x35f)]);if(!_0x41c95e)return;this[_0x2aa321(0x11c)]=_0x41c95e[_0x2aa321(0x1ef)]();}let _0x1bc219=this['_activeAdjustPointList'];if(_0x1bc219&&_0x1bc219[_0x2aa321(0xf6)]!==0x0)for(let _0x3b66b8=0x0;_0x3b66b8<_0x1bc219['length'];_0x3b66b8++){let _0x5dfa8a=_0x1bc219[_0x3b66b8],_0x4fde6e=_0x5dfa8a['x'],_0x5e112c=_0x5dfa8a['y'];if(_0x536225&&(_0x4fde6e=(_0x229e08||0x0)-_0x4fde6e),_0x557446&&(_0x5e112c=(_0x54bd33||0x0)-_0x5e112c),_0x595c5d!==0x0){let _0x24a5f0=(_0x229e08||0x0)/0x2,_0x5bcae5=(_0x54bd33||0x0)/0x2,_0x72dfe5=_0x595c5d*Math['PI']/0xb4,_0x3b4329=Math[_0x2aa321(0xf3)](_0x72dfe5),_0x30ca05=Math[_0x2aa321(0x291)](_0x72dfe5),_0x6b6ab1=_0x4fde6e-_0x24a5f0,_0x818952=_0x5e112c-_0x5bcae5;_0x4fde6e=_0x24a5f0+(_0x6b6ab1*_0x3b4329-_0x818952*_0x30ca05),_0x5e112c=_0x5bcae5+(_0x6b6ab1*_0x30ca05+_0x818952*_0x3b4329);}let _0x17ad02={'x':_0x4fde6e,'y':_0x5e112c,'adjName':_0x5dfa8a['adjName']};this[_0x2aa321(0x271)](_0x57904c,_0x17ad02,_0x17ad02[_0x2aa321(0x1a1)],_0x4ef93d,_0x2cc8cd,this[_0x2aa321(0x1de)],this[_0x2aa321(0x285)]);}}[_0x541acc(0x271)](_0x5d423b,_0x3fe269,_0x3f131f,_0x31d420,_0x385bb9,_0x148a89,_0x11de96){const _0x5161cf=_0x541acc;if(!this[_0x5161cf(0xeb)])return;let _0x110171=_0x5161cf(0x201)+this[_0x5161cf(0xeb)]+'-'+_0x3f131f,_0x5d31b2=_0x5d423b[_0x5161cf(0x13f)](_0x110171);if(_0x5d31b2){_0x5d31b2[_0x5161cf(0x26e)]({'left':_0x3fe269['x']+_0x31d420-_0x1b524b[_0x5161cf(0xdd)],'top':_0x3fe269['y']+_0x385bb9-_0x1b524b[_0x5161cf(0xdd)]});return;}let _0xd43379=new Nr(_0x110171,{'left':_0x3fe269['x']+_0x31d420-_0x1b524b[_0x5161cf(0xdd)],'top':_0x3fe269['y']+_0x385bb9-_0x1b524b[_0x5161cf(0xdd)],'adjName':_0x3f131f,'shapeId':this['_activeImageId'],'unitId':_0x148a89,'subUnitId':_0x11de96,'width':_0x1b524b[_0x5161cf(0xdd)]+0x8,'height':_0x1b524b['adjHandleSize']+0x8,'zIndex':_0x5cbc31+0x1,'evented':!0x0});this[_0x5161cf(0x314)]['push'](_0xd43379),this[_0x5161cf(0x364)](_0xd43379,_0x5d423b,_0x3f131f),_0x5d423b[_0x5161cf(0x274)](_0xd43379,_0x5cbc31+0x1);}[_0x541acc(0x251)](){const _0x55c719=_0x541acc;this['_shapes'][_0x55c719(0xf6)]!==0x0&&(this[_0x55c719(0x314)]['forEach'](_0x1ed1e8=>_0x1ed1e8[_0x55c719(0x1ae)]()),this[_0x55c719(0x314)]=[]);}[_0x541acc(0x216)](_0x66f508,_0xe60fa){const _0x8dd905=_0x541acc;var _0x28ab32;let _0x501e14={'x':0x0,'y':0x0},_0x6b274c=this[_0x8dd905(0x232)][_0x8dd905(0x365)](_0x66f508);if(!_0x6b274c||!_0x6b274c['with'](_0x3ea870)[_0x8dd905(0x342)](_0xe60fa))return _0x501e14;let _0x498901=_0x6b274c[_0x8dd905(0x320)](_0x2a747e),_0x2a438c=_0x498901==null?void 0x0:_0x498901['getCurrentScrollState']();if(!_0x2a438c)return _0x501e14;let _0x52caab=(_0x28ab32=this[_0x8dd905(0x35a)][_0x8dd905(0xca)](_0x66f508))==null?void 0x0:_0x28ab32['getSheetBySheetId'](_0xe60fa);if(!_0x52caab)return _0x501e14;let _0x237ff2=_0x1bffb4(_0x2a438c[_0x8dd905(0xc3)],_0x2a438c[_0x8dd905(0x151)],_0x6b274c[_0x8dd905(0x34c)],_0x52caab);return _0x237ff2?{'x':_0x237ff2[_0x8dd905(0x26a)],'y':_0x237ff2[_0x8dd905(0x34d)]}:_0x501e14;}['_getZoomRatio'](_0x56e3a2,_0x2e98ad){const _0x1cc089=_0x541acc;var _0xda1d69;let _0x278690=(_0xda1d69=this[_0x1cc089(0x35a)][_0x1cc089(0xca)](_0x56e3a2))==null?void 0x0:_0xda1d69[_0x1cc089(0x10f)](_0x2e98ad);return(_0x278690==null?void 0x0:_0x278690['getZoomRatio']())??0x1;}[_0x541acc(0x364)](_0x5be351,_0x4c592e,_0x5ad9a6){const _0x392f3a=_0x541acc;this[_0x392f3a(0x328)](_0x183b07(_0x5be351[_0x392f3a(0x36a)]['subscribeEvent']((_0x4db9a3,_0x107f58)=>{const _0x43287f=_0x392f3a;var _0xa69781,_0x5114b3,_0x381505;let {unitId:_0x4f4f0b,subUnitId:_0x20dcc7,drawingId:_0xdf040f}=_0x5be351[_0x43287f(0x105)](),_0x521c93=this['_getImageDrawingInfo'](_0x4f4f0b,_0x20dcc7,_0xdf040f);if(!(_0x521c93!=null&&_0x521c93[_0x43287f(0xc5)]))return;let {left:_0x38c914,top:_0x5b55ca,width:_0x120ee1,height:_0x5bf1fe}=_0x521c93['transform'];this[_0x43287f(0x2f0)]=_0x38c914||0x0,this['_baseTop']=_0x5b55ca||0x0,this['_baseWidth']=_0x120ee1||0x0,this['_baseHeight']=_0x5bf1fe||0x0;let _0x1f5c77=!!((_0xa69781=_0x521c93[_0x43287f(0xc5)])!=null&&_0xa69781['flipX']),_0x4891f5=!!((_0x5114b3=_0x521c93[_0x43287f(0xc5)])!=null&&_0x5114b3[_0x43287f(0x143)]),_0x26ccde=((_0x381505=_0x521c93[_0x43287f(0xc5)])==null?void 0x0:_0x381505[_0x43287f(0xcf)])||0x0,_0x6f70a2=this['_getImagePrstGeom'](_0x4f4f0b,_0x20dcc7,_0xdf040f);if(!_0x6f70a2)return;let _0x346855=this[_0x43287f(0x25f)](_0x6f70a2[_0x43287f(0x315)],this[_0x43287f(0x2d0)],this[_0x43287f(0x179)],_0x6f70a2['adjustValues']);if(!_0x346855||(this[_0x43287f(0x113)]=_0x346855,this['_activeAdjustInfo']=_0x346855[_0x43287f(0x22a)](_0x5ad9a6),!this[_0x43287f(0xde)]))return;this[_0x43287f(0x217)]=!0x0,_0x4c592e['disableObjectsEvent']();let _0x4ce412=_0x6f70a2['prstGeom'];this['_adjHandlerPointerMove']=_0x4c592e[_0x43287f(0x2af)]['subscribeEvent']((_0x1535a1,_0x35c07e)=>{const _0x343d2a=_0x43287f;if(!this[_0x343d2a(0x217)])return;let {offsetX:_0x5d35cb,offsetY:_0x1320c9}=_0x1535a1,_0xeb4eca=this[_0x343d2a(0xde)];if(!this[_0x343d2a(0x113)]||!_0xeb4eca)return;_0x4c592e[_0x343d2a(0x359)](),_0x4c592e[_0x343d2a(0x336)](_0x419dad[_0x343d2a(0x21c)]);let _0x559d6e={'left':0x0,'top':0x0,'width':this[_0x343d2a(0x2d0)],'height':this[_0x343d2a(0x179)]},_0x30879e=this[_0x343d2a(0x216)](_0x4f4f0b,_0x20dcc7),_0x29dc6e=this[_0x343d2a(0x16c)](_0x4f4f0b,_0x20dcc7),_0x4d41df=_0x5d35cb/_0x29dc6e+_0x30879e['x']-this[_0x343d2a(0x2f0)],_0xeb0998=_0x1320c9/_0x29dc6e+_0x30879e['y']-this[_0x343d2a(0xf0)];if(_0x26ccde!==0x0){let _0x519504=this[_0x343d2a(0x2d0)]/0x2,_0x2c95ca=this[_0x343d2a(0x179)]/0x2,_0x43a1c8=_0x26ccde*Math['PI']/0xb4,_0x4d9257=Math[_0x343d2a(0xf3)](_0x43a1c8),_0x2e0dfd=Math['sin'](_0x43a1c8),_0x329529=_0x4d41df-_0x519504,_0x3f0e4d=_0xeb0998-_0x2c95ca;_0x4d41df=_0x519504+(_0x329529*_0x4d9257+_0x3f0e4d*_0x2e0dfd),_0xeb0998=_0x2c95ca+(-_0x329529*_0x2e0dfd+_0x3f0e4d*_0x4d9257);}_0x1f5c77&&(_0x4d41df=this[_0x343d2a(0x2d0)]-_0x4d41df),_0x4891f5&&(_0xeb0998=this[_0x343d2a(0x179)]-_0xeb0998);let _0x2bd02d=this['_activeShapeModel'][_0x343d2a(0x31d)](_0x559d6e,{'x':_0x4d41df,'y':_0xeb0998},_0xeb4eca,_0x1f5c77,_0x4891f5);if(Object[_0x343d2a(0x21a)](_0x2bd02d)[_0x343d2a(0xf6)]!==0x0){for(let [_0x3baf68,_0x1fb72b]of Object['entries'](_0x2bd02d))this['_activeShapeModel'][_0x343d2a(0x134)](_0x3baf68,_0x1fb72b);this['_activeShapeModel']['updateContext']({'width':this[_0x343d2a(0x2d0)],'height':this[_0x343d2a(0x179)]}),this['_updateImageAdjValues'](_0x4f4f0b,_0x20dcc7,_0xdf040f,_0x2bd02d),this[_0x343d2a(0x11c)]=this[_0x343d2a(0x113)][_0x343d2a(0x1ef)](),this[_0x343d2a(0x24d)](),_0x35c07e['stopPropagation']();}}),this['_adjHandlerPointerUp']=_0x4c592e[_0x43287f(0x2cc)][_0x43287f(0x1e2)]((_0x259ce4,_0x2a1ee7)=>{const _0x2ff1b1=_0x43287f;if(this[_0x2ff1b1(0x2c3)][_0x2ff1b1(0x1ab)](),this[_0x2ff1b1(0x32e)][_0x2ff1b1(0x1ab)](),_0x4c592e[_0x2ff1b1(0x2b3)](),this[_0x2ff1b1(0x113)]){let _0x3e2459=this[_0x2ff1b1(0x113)][_0x2ff1b1(0x196)](),_0x3915f6={};for(let _0x401433 of _0x3e2459){let _0x5e71a6=this[_0x2ff1b1(0x113)]['getAdjustValueByName'](_0x401433);_0x5e71a6!==void 0x0&&(_0x3915f6[_0x401433]=_0x5e71a6);}this['_imageShapeClipController']['clipByShape'](_0x4f4f0b,_0x20dcc7,_0xdf040f,_0x4ce412,_0x3915f6);}this[_0x2ff1b1(0xde)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x2ff1b1(0x217)]=!0x1,_0x2a1ee7[_0x2ff1b1(0x1a5)](),_0x4c592e['enableObjectsEvent']();}),_0x107f58[_0x43287f(0x1a5)]();})));}[_0x541acc(0x2c5)](_0x50dcde,_0x53c236,_0x398ca6,_0x1d679a){const _0x5e0a07=_0x541acc;let _0x5eebdf=this[_0x5e0a07(0x232)]['getRenderUnitById'](_0x50dcde);if(!_0x5eebdf)return;let {scene:_0x275113}=_0x5eebdf,_0x13a700=_0x191ead({'unitId':_0x50dcde,'subUnitId':_0x53c236,'drawingId':_0x398ca6}),_0x4adfa5=_0x275113[_0x5e0a07(0x121)](_0x13a700);if(_0x4adfa5 instanceof _0x101755){let _0x427913=_0x4adfa5[_0x5e0a07(0xae)]??{};_0x4adfa5[_0x5e0a07(0x160)]({..._0x427913,..._0x1d679a}),_0x4adfa5[_0x5e0a07(0x2ff)](!0x0);}}['_registerMoveHandler'](){const _0x556225=_0x541acc;let _0x260f2a=this[_0x556225(0x35a)][_0x556225(0x255)](_0x35cbcc[_0x556225(0x164)]);this[_0x556225(0x328)](_0x260f2a[_0x556225(0x261)](_0x4a21b4(_0x3d77b1=>_0x3d77b1?_0x3d77b1['activeSheet$'][_0x556225(0x261)](_0x4a21b4(_0x479d8f=>{const _0x589977=_0x556225;if(!_0x479d8f)return _0x2a9ebe;let _0x3d6953=_0x3d77b1[_0x589977(0x1f1)](),_0x23d4d=this[_0x589977(0x232)][_0x589977(0x365)](_0x3d6953),_0x4debbc=_0x23d4d==null?void 0x0:_0x23d4d['scene'];return _0x4debbc?_0x589e24(_0x4debbc):_0x2a9ebe;})):_0x2a9ebe))[_0x556225(0x36d)](_0x113eee=>{const _0x1ae05e=_0x556225;let _0x2f40c9=_0x113eee[_0x1ae05e(0x322)]();this[_0x1ae05e(0x328)](_0x113eee[_0x1ae05e(0x2af)][_0x1ae05e(0x1e2)](()=>{const _0xd73983=_0x1ae05e;this['_isImagePointerDown']&&this[_0xd73983(0x251)]();})),this[_0x1ae05e(0x328)](_0x2f40c9[_0x1ae05e(0xfa)][_0x1ae05e(0x36d)](_0x459d3e=>{const _0x1a6001=_0x1ae05e;let {objects:_0x8fa76e}=_0x459d3e;if(this[_0x1a6001(0x24d)](),_0x8fa76e!==null&&_0x8fa76e[_0x1a6001(0x236)]===0x1){let _0x39822d=_0x8fa76e[_0x1a6001(0x370)]()[_0x1a6001(0x2d4)]()[_0x1a6001(0x156)];_0x39822d instanceof _0x101755&&_0x39822d['prstGeom']&&(this[_0x1a6001(0x253)]=!0x0);}})),this[_0x1ae05e(0x328)](_0x2f40c9['changing$'][_0x1ae05e(0x36d)](()=>{const _0x347cbe=_0x1ae05e;this[_0x347cbe(0x253)]&&this[_0x347cbe(0x251)]();})),this[_0x1ae05e(0x328)](_0x113eee[_0x1ae05e(0x2cc)][_0x1ae05e(0x1e2)](()=>{const _0x5c8597=_0x1ae05e;this[_0x5c8597(0x253)]&&(this[_0x5c8597(0x253)]=!0x1,this[_0x5c8597(0x24d)]());})),this[_0x1ae05e(0x328)](_0x2f40c9[_0x1ae05e(0x1f8)][_0x1ae05e(0x36d)](()=>{const _0x420ba1=_0x1ae05e;if(this[_0x420ba1(0x1de)]&&this[_0x420ba1(0x285)]&&this[_0x420ba1(0xeb)]){let _0x943b57=this[_0x420ba1(0x1db)](this[_0x420ba1(0x1de)],this['_subUnitId'],this[_0x420ba1(0xeb)]);if(_0x943b57){var _0x396b04,_0x3896fa;let _0x6dfb0=this[_0x420ba1(0x354)](this['_unitId'],this[_0x420ba1(0x285)],this[_0x420ba1(0xeb)]),_0x482d6e=(_0x6dfb0==null||(_0x396b04=_0x6dfb0[_0x420ba1(0xc5)])==null?void 0x0:_0x396b04[_0x420ba1(0x27b)])||0x0,_0xa59447=(_0x6dfb0==null||(_0x3896fa=_0x6dfb0['transform'])==null?void 0x0:_0x3896fa[_0x420ba1(0x35c)])||0x0,_0x5e0bc5=this[_0x420ba1(0x25f)](_0x943b57[_0x420ba1(0x315)],_0x482d6e,_0xa59447,_0x943b57[_0x420ba1(0x35f)]);_0x5e0bc5&&(this['_activeAdjustPointList']=_0x5e0bc5[_0x420ba1(0x1ef)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0x541acc(0x267)](){const _0x25a0ce=_0x541acc;this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)]['focus$'][_0x25a0ce(0x36d)](_0x631298=>{const _0x336da8=_0x25a0ce;if(_0x631298['length']===0x1){let _0x2a5d10=_0x631298[0x0];if(_0x2a5d10['drawingType']===_0x4a245a[_0x336da8(0x1a0)]){let {unitId:_0x561b6f,subUnitId:_0x3aabee,drawingId:_0x391a10}=_0x2a5d10,_0xb2eb4d=this[_0x336da8(0x1db)](_0x561b6f,_0x3aabee,_0x391a10);if(_0xb2eb4d){var _0x1eaed3,_0x2ee632;this[_0x336da8(0xeb)]=_0x391a10,this[_0x336da8(0x1de)]=_0x561b6f,this[_0x336da8(0x285)]=_0x3aabee;let _0x567574=this[_0x336da8(0x354)](_0x561b6f,_0x3aabee,_0x391a10),_0x509e95=(_0x567574==null||(_0x1eaed3=_0x567574[_0x336da8(0xc5)])==null?void 0x0:_0x1eaed3[_0x336da8(0x27b)])||0x0,_0x562987=(_0x567574==null||(_0x2ee632=_0x567574[_0x336da8(0xc5)])==null?void 0x0:_0x2ee632[_0x336da8(0x35c)])||0x0,_0x1bba5d=this['_getOrCreateShapeModel'](_0xb2eb4d[_0x336da8(0x315)],_0x509e95,_0x562987,_0xb2eb4d[_0x336da8(0x35f)]);_0x1bba5d&&(this[_0x336da8(0x11c)]=_0x1bba5d['getDrawingPoints']()),this[_0x336da8(0x251)](),this[_0x336da8(0x24d)](!0x0);}else this[_0x336da8(0x20a)]();}else this['_resetState']();}else this[_0x336da8(0x20a)]();})),this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)][_0x25a0ce(0x1a7)][_0x25a0ce(0x36d)](_0x2d2557=>{const _0x467e60=_0x25a0ce;if(_0x2d2557[_0x467e60(0xf6)]===0x1){let _0x4f1abb=_0x2d2557[0x0],_0xc8910e=this[_0x467e60(0x1b6)]['getDrawingByParam'](_0x4f1abb);(_0xc8910e==null?void 0x0:_0xc8910e[_0x467e60(0x2e1)])===_0x4a245a[_0x467e60(0x1a0)]&&this[_0x467e60(0xeb)]===_0x4f1abb[_0x467e60(0x162)]&&(this[_0x467e60(0x251)](),this[_0x467e60(0x24d)](!0x0));}})),this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)][_0x25a0ce(0x24f)][_0x25a0ce(0x36d)](_0x20e525=>{const _0x2b2c9b=_0x25a0ce;for(let _0x2f5496 of _0x20e525)this['_activeImageId']===_0x2f5496[_0x2b2c9b(0x162)]&&this[_0x2b2c9b(0x20a)]();}));}[_0x541acc(0x20a)](){const _0x5e0365=_0x541acc;this[_0x5e0365(0xeb)]=null,this[_0x5e0365(0x1de)]=null,this[_0x5e0365(0x285)]=null,this[_0x5e0365(0x11c)]=void 0x0,this[_0x5e0365(0x251)]();}};Xi=X([Y(0x1,_0x5399a4),Y(0x2,_0x53ba9c(_0x22bed8)),Y(0x3,_0x43400d),Y(0x4,_0x53ba9c(Q))],Xi);function Zi(_0x36c400){return _0x36c400['trim']()||void 0x0;}function Qi(_0xd1f20f,_0x3570f5,_0x206eb1){const _0x29b3fd=_0x541acc;var _0x3a025e;return((_0x3a025e=_0xd1f20f[_0x29b3fd(0x349)])==null?void 0x0:_0x3a025e[_0x29b3fd(0x22f)]())||_0x206eb1['t'](_0x29b3fd(0x192)+_0x346ac3(_0xd1f20f[_0x29b3fd(0x2e1)]))+'\x20'+(_0x3570f5+0x1);}function $i({PanelComponent:_0xcb4571=_0x43abaf}){const _0x1dfa36=_0x541acc;var _0xc615be;let _0x4647f5=_0x445cf0(_0x5622d1),_0x5d8082={'title':_0x4647f5['t'](_0x1dfa36(0x2bb)),'empty':_0x4647f5['t'](_0x1dfa36(0x353)),'showAll':_0x4647f5['t'](_0x1dfa36(0x16e)),'hideAll':_0x4647f5['t'](_0x1dfa36(0x347)),'lockAll':_0x4647f5['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x4647f5['t'](_0x1dfa36(0xc2)),'moveForward':_0x4647f5['t'](_0x1dfa36(0x2a2)),'moveBackward':_0x4647f5['t'](_0x1dfa36(0x2b0)),'close':_0x4647f5['t']('drawing-ui.objectListPanel.close'),'show':_0x4647f5['t']('drawing-ui.objectListPanel.show'),'hide':_0x4647f5['t'](_0x1dfa36(0x14a)),'lock':_0x4647f5['t'](_0x1dfa36(0x15b)),'unlock':_0x4647f5['t'](_0x1dfa36(0xe1)),'lockHint':_0x4647f5['t'](_0x1dfa36(0x106)),'unlockHint':_0x4647f5['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x4647f5['t'](_0x1dfa36(0x1fb)),'nameInput':_0x4647f5['t'](_0x1dfa36(0x1b9)),'description':_0x4647f5['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x4647f5['t'](_0x1dfa36(0x18c)),'details':_0x4647f5['t'](_0x1dfa36(0xc4)),'noSelection':_0x4647f5['t'](_0x1dfa36(0x138)),'locate':_0x4647f5['t'](_0x1dfa36(0x2bd)),'expand':_0x4647f5['t'](_0x1dfa36(0x101)),'collapse':_0x4647f5['t'](_0x1dfa36(0x318)),'dragToReorder':_0x4647f5['t'](_0x1dfa36(0x2e4)),'search':_0x4647f5['t'](_0x1dfa36(0xf1)),'filterAll':_0x4647f5['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x4647f5['t'](_0x1dfa36(0x227)),'filterLocked':_0x4647f5['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x4647f5['t'](_0x1dfa36(0x296)),'sectionFloating':_0x4647f5['t'](_0x1dfa36(0x1a4))},_0x12656a=_0x445cf0(_0x2c496c),_0x284d26=_0x445cf0(_0x43400d),_0x485511=_0x445cf0(_0x4202dc),_0x40109b=_0x445cf0(_0x5399a4),_0x44f40b=_0x445cf0(_0x22bed8),[,_0x445d26]=_0x1952c4(_0x3642e0=>_0x3642e0+0x1,0x0),_0x1b923f=_0x284d26[_0x1dfa36(0x1ca)](_0x35cbcc[_0x1dfa36(0x164)]),_0x2194f0=(_0x1b923f==null?void 0x0:_0x1b923f['getUnitId']())??'',_0xf14e5a=(_0x1b923f==null||(_0xc615be=_0x1b923f['getActiveSheet']())==null?void 0x0:_0xc615be[_0x1dfa36(0x2fc)]())??'',_0x30e27f=_0x25afa3(()=>_0x40109b[_0x1dfa36(0x169)],_0x40109b[_0x1dfa36(0x28b)](),!0x1,[_0x40109b]);_0x189550(()=>{const _0x763185=_0x1dfa36;let _0x1c41b7=_0x12656a[_0x763185(0x1d2)](()=>_0x445d26());return()=>_0x1c41b7[_0x763185(0x1ae)]();},[_0x12656a]);let _0x532bec=_0x2194f0&&_0xf14e5a?_0x485511['getDrawingData'](_0x2194f0,_0xf14e5a):{},_0x2cdd76=(_0x2194f0&&_0xf14e5a?_0x485511[_0x1dfa36(0x222)](_0x2194f0,_0xf14e5a):[])[_0x1dfa36(0x281)](_0x1e1f78=>_0x532bec[_0x1e1f78])[_0x1dfa36(0x305)](_0x86814a=>!!_0x86814a)[_0x1dfa36(0x298)](),_0x324c6e=_0x2cdd76['reduce']((_0x24a4ed,_0xdc26de)=>(_0x24a4ed[_0x2af955(_0xdc26de[_0x1dfa36(0x2e1)])]+=0x1,_0x24a4ed),{'canvas':0x0,'floating':0x0}),_0x339eb6={'canvas':0x0,'floating':0x0},_0x539e48=_0x2cdd76[_0x1dfa36(0x281)]((_0x433114,_0x3deea2)=>{const _0x2016fd=_0x1dfa36;let _0x3d5b45=_0x2af955(_0x433114[_0x2016fd(0x2e1)]),_0x41b31d=_0x3d5b45===_0x19b8c4,_0x350c77=_0x339eb6[_0x3d5b45]++;return{'id':_0x433114[_0x2016fd(0x162)],'name':Qi(_0x433114,_0x3deea2,_0x4647f5),'description':_0x433114['description'],'visible':_0x433114['hidden']!==!0x0,'selectable':_0x433114[_0x2016fd(0x10c)]!==!0x1,'sectionId':_0x3d5b45,'sectionTitle':_0x41b31d?_0x5d8082[_0x2016fd(0xb3)]:_0x5d8082['sectionCanvas'],'capabilities':_0x41b31d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x41b31d&&_0x350c77>0x0,'canMoveBackward':!_0x41b31d&&_0x350c77<_0x324c6e[_0x2016fd(0x184)]-0x1,'canReorder':!_0x41b31d};}),_0x21a3a3=_0x1e2218(()=>(_0x30e27f??[])[_0x1dfa36(0x305)](_0x3434fd=>_0x3434fd[_0x1dfa36(0x2b7)]===_0x2194f0&&_0x3434fd[_0x1dfa36(0x32f)]===_0xf14e5a)[_0x1dfa36(0x281)](_0x3585d8=>_0x3585d8[_0x1dfa36(0x162)]),[_0x30e27f,_0xf14e5a,_0x2194f0]),_0x2794c6=_0x21a3a3[_0x21a3a3[_0x1dfa36(0xf6)]-0x1]??null,_0x4a190a=_0x534f9c=>_0x485511['getDrawingByParam']({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x534f9c})??null,_0x3cb0bc=async _0x29b5d1=>{_0x2194f0&&_0x29b5d1['length']&&await _0x12656a['executeCommand'](_0x197a6a['id'],{'unitId':_0x2194f0,'drawings':_0x29b5d1});},_0x578088=async(_0x2344dc,_0x4a56cc)=>{_0x4a190a(_0x2344dc)&&await _0x3cb0bc([{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x2344dc,..._0x4a56cc}]);},_0xfdfa2=(_0x453910,_0x1ebe4d)=>{const _0x1e817f=_0x1dfa36;if(!_0x2194f0||!_0xf14e5a)return;let _0x2fe3d8=_0x1ebe4d?_0x21a3a3[_0x1e817f(0x339)](_0x453910)?_0x21a3a3[_0x1e817f(0x305)](_0x2c3247=>_0x2c3247!==_0x453910):[..._0x21a3a3,_0x453910]:[_0x453910];_0x12656a[_0x1e817f(0x319)](_0x46655b['id'],_0x2fe3d8['map'](_0x5f0388=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x5f0388})));let _0x15376a=_0x2fe3d8[_0x2fe3d8['length']-0x1];_0x15376a?_0x4bb030(_0x44f40b,{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x15376a}):_0x1579d(_0x44f40b,_0x2194f0);},_0x5c5e4e=async(_0x17a7de,_0x26212a)=>{const _0x474462=_0x1dfa36;await _0x3cb0bc(_0x17a7de[_0x474462(0x281)](_0xe62d8a=>_0x4a190a(_0xe62d8a))[_0x474462(0x305)](_0x2be191=>!!_0x2be191)[_0x474462(0x305)](_0x45f600=>_0x45f600[_0x474462(0x18f)]!==!0x0!==_0x26212a)[_0x474462(0x281)](_0x1c1eec=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x1c1eec[_0x474462(0x162)],'hidden':!_0x26212a})));},_0x585c06=async(_0x3f6949,_0x3e63f9)=>{const _0x471355=_0x1dfa36;await _0x3cb0bc(_0x3f6949[_0x471355(0x281)](_0x33960b=>_0x4a190a(_0x33960b))[_0x471355(0x305)](_0x2aae7e=>!!_0x2aae7e)[_0x471355(0x305)](_0x142624=>_0x142624[_0x471355(0x10c)]!==!0x1!==_0x3e63f9)[_0x471355(0x281)](_0x96b1c8=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x96b1c8[_0x471355(0x162)],'selectable':_0x3e63f9})));},_0x2b955e=_0x5a768c=>{const _0x427d8d=_0x1dfa36;let _0x26dcb1=_0x4a190a(_0x5a768c);if(_0x26dcb1)return _0x585c06([_0x5a768c],_0x26dcb1[_0x427d8d(0x10c)]===!0x1);},_0x46be3a=async(_0xaf8578,_0x440f81)=>{const _0x17770d=_0x1dfa36;var _0x4e90c4;let _0x15da44=Zi(_0x440f81);(((_0x4e90c4=_0x4a190a(_0xaf8578))==null?void 0x0:_0x4e90c4[_0x17770d(0x349)])??void 0x0)!==_0x15da44&&await _0x578088(_0xaf8578,{'name':_0x15da44});},_0x3bc74f=async(_0x5520e6,_0x3d736d)=>{var _0xb2f152;let _0x9ad7d0=Zi(_0x3d736d);(((_0xb2f152=_0x4a190a(_0x5520e6))==null?void 0x0:_0xb2f152['description'])??void 0x0)!==_0x9ad7d0&&await _0x578088(_0x5520e6,{'description':_0x9ad7d0});},_0x5aeaab=async(_0x3c84e6,_0x13c3aa)=>{const _0x43a58b=_0x1dfa36;_0x2194f0&&_0xf14e5a&&await _0x12656a[_0x43a58b(0x1b0)](_0x325252['id'],{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingIds':[_0x3c84e6],'arrangeType':_0x13c3aa});};return!_0x2194f0||!_0xf14e5a?_0x35a023(_0x1dfa36(0x14c),{'className':_0x1dfa36(0x2bc),'children':_0x5d8082[_0x1dfa36(0x17f)]}):_0x35a023(_0xcb4571,{'labels':_0x5d8082,'items':_0x539e48,'selectedIds':_0x21a3a3,'focusedId':_0x2794c6,'showHeader':!0x1,'onSelect':_0xfdfa2,'onSetVisible':_0x5c5e4e,'onSetSelectable':_0x585c06,'onCommitName':_0x46be3a,'onCommitDescription':_0x3bc74f,'onMoveForward':async _0x396546=>_0x5aeaab(_0x396546,_0x1256c6[_0x1dfa36(0x1b1)]),'onMoveBackward':async _0x1173b6=>_0x5aeaab(_0x1173b6,_0x1256c6[_0x1dfa36(0x128)]),'onToggleSelectable':_0x2b955e});}function ea(){return _0x35a023($i,{'PanelComponent':_0x54bd98});}let ta=class extends _0x50d788{constructor(_0x450030,_0x185109){const _0x36b807=_0x541acc;super(),this['disposeWithMe'](_0x450030['register'](Rr,ea)),this['disposeWithMe'](_0x185109[_0x36b807(0x24c)]({'BottomIcon':_0x3bd381,'FlipHorizontalIcon':_0x3c9d9a,'FlipVerticalIcon':_0x2efc66,'MoveDownIcon':_0x1164ba,'MoveUpIcon':_0x907637,'ObjectLayersIcon':_0xd7ec17,'ShapeFormatSettingIcon':_0x350cd9,'TopmostIcon':_0x14bd06})),this[_0x36b807(0x328)](_0x450030[_0x36b807(0x24c)](Jr,ti)),this['disposeWithMe'](_0x450030[_0x36b807(0x24c)](Yr,Qr)),_0x450030[_0x36b807(0x1b7)](_0x4939b9)||this[_0x36b807(0x328)](_0x450030[_0x36b807(0x24c)](_0x4939b9,$r));}};ta=X([Y(0x0,_0x53ba9c(_0x6cddf9)),Y(0x1,_0x53ba9c(_0x404799))],ta);let $=class extends _0x50d788{constructor(_0x51bad0){const _0x184fe0=_0x541acc;super(),this[_0x184fe0(0x14b)]=_0x51bad0,q(this,'_editingParams$',new _0x207ab3(null)),q(this,_0x184fe0(0x204),this[_0x184fe0(0x344)][_0x184fe0(0x369)]()),q(this,_0x184fe0(0x2a0),new _0x207ab3(!0x1)),q(this,_0x184fe0(0x1ea),this['_onSavingEditorData$'][_0x184fe0(0x369)]()),q(this,_0x184fe0(0x1c2),void 0x0),this[_0x184fe0(0x328)](this['_permissionService'][_0x184fe0(0xb0)][_0x184fe0(0x36d)](()=>{const _0xf632f8=_0x184fe0;let _0x260307=this['getEditing']();_0x260307!=null&&_0x260307[_0xf632f8(0x175)]&&!this['_canEdit'](_0x260307)&&this[_0xf632f8(0x352)](null);}));}[_0x541acc(0x1ae)](){const _0x489ad3=_0x541acc;this[_0x489ad3(0xb6)](),this[_0x489ad3(0x344)]['next'](null),this[_0x489ad3(0x344)][_0x489ad3(0x29c)](),this[_0x489ad3(0x2a0)]['next'](!0x1),this[_0x489ad3(0x2a0)][_0x489ad3(0x29c)](),super['dispose']();}['setEditing'](_0x859c2f){const _0x20c573=_0x541acc;(_0x859c2f==null||!_0x859c2f[_0x20c573(0x175)]||this[_0x20c573(0x13c)](_0x859c2f))&&(this[_0x20c573(0xb6)](),this[_0x20c573(0x344)][_0x20c573(0x2d4)](_0x859c2f),(_0x859c2f==null||_0x859c2f[_0x20c573(0x175)]&&this['_onSavingEditorData$'][_0x20c573(0x286)]())&&this[_0x20c573(0x2a0)][_0x20c573(0x2d4)](!0x1));}[_0x541acc(0x10b)](_0x2fff01){const _0x457fc6=_0x541acc;this[_0x457fc6(0x2a0)][_0x457fc6(0x2d4)](_0x2fff01);}[_0x541acc(0x333)](){const _0x2049ed=_0x541acc;return this[_0x2049ed(0x344)][_0x2049ed(0x286)]();}['_canEdit'](_0x52b079){const _0x5d5c26=_0x541acc;let _0x1a545b=this[_0x5d5c26(0x14b)][_0x5d5c26(0x2e2)](new _0x220388(_0x52b079[_0x5d5c26(0x2b7)])['id']),_0x129418=this[_0x5d5c26(0x14b)][_0x5d5c26(0x2e2)](new _0x5d269b(_0x52b079[_0x5d5c26(0x2b7)],_0x52b079['subUnitId'])['id']);return((_0x1a545b==null?void 0x0:_0x1a545b[_0x5d5c26(0x156)])??!0x0)&&((_0x129418==null?void 0x0:_0x129418[_0x5d5c26(0x156)])??!0x0);}[_0x541acc(0x22d)](_0x327bad){const _0x3700be=_0x541acc;let _0x1be82f=this[_0x3700be(0x333)]();_0x1be82f&&this[_0x3700be(0x1c2)]===void 0x0&&(this[_0x3700be(0x10b)](!0x0),this[_0x3700be(0x1c2)]=requestAnimationFrame(()=>{const _0x98745a=_0x3700be;this[_0x98745a(0x1c2)]=void 0x0,this[_0x98745a(0x333)]()===_0x1be82f&&this[_0x98745a(0x352)](null);}));}[_0x541acc(0xb6)](){const _0x2e1bc8=_0x541acc;this[_0x2e1bc8(0x1c2)]!==void 0x0&&(cancelAnimationFrame(this[_0x2e1bc8(0x1c2)]),this['_completionFrame']=void 0x0);}[_0x541acc(0x368)](){const _0x57e9cb=_0x541acc;this[_0x57e9cb(0x333)]()&&this[_0x57e9cb(0x352)](null);}};$=X([Y(0x0,_0x2dd2ac)],$);let na=class extends _0x50d788{constructor(_0x112021,_0x5bd85f,_0x15fd1e,_0x53c73a,_0x221e51,_0x2d5b07){const _0x172448=_0x541acc;super(),this[_0x172448(0x226)]=_0x112021,this['_injector']=_0x5bd85f,this['_shapeTextEditingService']=_0x15fd1e,this[_0x172448(0x1b6)]=_0x53c73a,this[_0x172448(0x311)]=_0x221e51,this[_0x172448(0x1da)]=_0x2d5b07,q(this,'_lastEditingShapeKey',null),this[_0x172448(0x361)](),this['_initSelection'](),this['_initEditingParams']();}['_initEvents'](){const _0x2da0da=_0x541acc;let {scene:_0x4706a6}=this[_0x2da0da(0x226)];this[_0x2da0da(0x328)](_0x4706a6[_0x2da0da(0x309)][_0x2da0da(0x1e2)](_0x34ec8d=>{const _0x284f99=_0x2da0da;let {offsetX:_0x519c1e,offsetY:_0x454bc8}=_0x34ec8d,_0x46b12a=_0x4706a6[_0x284f99(0x153)](_0x53a890[_0x284f99(0x374)]([_0x519c1e,_0x454bc8]));if(_0x46b12a instanceof J){let _0x4e985c=this['_sheetsShapeService'][_0x284f99(0x29b)](_0x46b12a[_0x284f99(0x2b7)],_0x46b12a[_0x284f99(0x32f)],_0x46b12a[_0x284f99(0x266)]);if(_0x3fd6c6(this[_0x284f99(0x1da)][_0x284f99(0x259)](_0x46b12a[_0x284f99(0x2b7)],_0x46b12a[_0x284f99(0x32f)],_0x46b12a['shapeId']))||_0x4e985c!=null&&_0x4e985c[_0x284f99(0x351)]()[_0x284f99(0xbe)])return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x46b12a[_0x284f99(0x2b7)],'subUnitId':_0x46b12a[_0x284f99(0x32f)],'shapeId':_0x46b12a[_0x284f99(0x266)],'shapeKey':_0x46b12a['oKey']});}}));}[_0x541acc(0x193)](){const _0x3ede29=_0x541acc;this[_0x3ede29(0x328)](this['_drawingManagerService'][_0x3ede29(0x169)][_0x3ede29(0x36d)](_0x1cfdcb=>{const _0x70c69c=_0x3ede29;if(_0x1cfdcb[_0x70c69c(0xf6)]===0x1){let _0x348b32=_0x1cfdcb[0x0],_0x134358=this[_0x70c69c(0x1b6)]['getDrawingByParam'](_0x348b32);if((_0x134358==null?void 0x0:_0x134358['drawingType'])===_0x4a245a['DRAWING_SHAPE']){var _0xb7986d;let _0xffd973=this[_0x70c69c(0x1af)][_0x70c69c(0x333)]();if((_0xffd973==null?void 0x0:_0xffd973[_0x70c69c(0x266)])===_0x348b32[_0x70c69c(0x162)]&&_0xffd973[_0x70c69c(0x175)])return;let _0x353a19=_0x3fd6c6(this[_0x70c69c(0x1da)][_0x70c69c(0x259)](_0x348b32[_0x70c69c(0x2b7)],_0x348b32[_0x70c69c(0x32f)],_0x348b32[_0x70c69c(0x162)])),_0x3ea82b=!!((_0xb7986d=this[_0x70c69c(0x1da)][_0x70c69c(0x29b)](_0x348b32[_0x70c69c(0x2b7)],_0x348b32[_0x70c69c(0x32f)],_0x348b32['drawingId']))!=null&&_0xb7986d['getShapeData']()[_0x70c69c(0xbe)]);(_0x353a19||_0x3ea82b)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x70c69c(0x1af)][_0x70c69c(0x22d)]();}else this[_0x70c69c(0x1af)]['completeEditing']();})),this[_0x3ede29(0x328)](this['_drawingManagerService']['remove$'][_0x3ede29(0x36d)](_0x56e24d=>{const _0x43fbe6=_0x3ede29;let _0x4919c7=this[_0x43fbe6(0x1af)][_0x43fbe6(0x333)]();_0x4919c7&&_0x56e24d[_0x43fbe6(0x12c)](_0x5a278a=>_0x5a278a[_0x43fbe6(0x162)]===_0x4919c7['shapeId'])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x541acc(0x19d)](){const _0x57f120=_0x541acc;this[_0x57f120(0x328)](this[_0x57f120(0x1af)][_0x57f120(0x204)]['subscribe'](_0x286e4c=>{const _0x37f0fb=_0x57f120;let {scene:_0x32ccf2}=this[_0x37f0fb(0x226)];if(this[_0x37f0fb(0x279)]){let _0x5f256f=_0x32ccf2[_0x37f0fb(0x13f)](this[_0x37f0fb(0x279)]);_0x5f256f&&_0x5f256f[_0x37f0fb(0x352)](!0x1);}if(_0x286e4c){let _0x4a51a4=!!_0x286e4c[_0x37f0fb(0x175)],_0x127e05=_0x32ccf2[_0x37f0fb(0x13f)](_0x286e4c[_0x37f0fb(0x2df)]);_0x127e05&&(_0x127e05[_0x37f0fb(0x352)](_0x4a51a4),this['_lastEditingShapeKey']=_0x286e4c[_0x37f0fb(0x2df)]),this[_0x37f0fb(0x311)][_0x37f0fb(0x1c5)](_0x5ba962,_0x4a51a4);}else this[_0x37f0fb(0x279)]=null,this[_0x37f0fb(0x311)]['setContextValue'](_0x5ba962,!0x1);}));}};na=X([Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x53ba9c($)),Y(0x3,_0x5399a4),Y(0x4,_0x35ac6c),Y(0x5,_0x53ba9c(_0x27864b))],na);var ra=class extends na{['_initEvents'](){const _0x11a003=_0x541acc;let {scene:_0x204924}=this[_0x11a003(0x226)],_0x60d7ff=this[_0x11a003(0x157)][_0x11a003(0x1e8)](_0x3f0626);this[_0x11a003(0x328)](_0x204924[_0x11a003(0x309)][_0x11a003(0x1e2)](_0x4f567b=>{const _0x2daa64=_0x11a003;let {offsetX:_0x44b26d,offsetY:_0x32522f}=_0x4f567b,_0x39f305=_0x204924[_0x2daa64(0x153)](_0x53a890[_0x2daa64(0x374)]([_0x44b26d,_0x32522f]));if(!(_0x39f305 instanceof J))return;let _0xeb1620=this[_0x2daa64(0x1da)][_0x2daa64(0x29b)](_0x39f305[_0x2daa64(0x2b7)],_0x39f305['subUnitId'],_0x39f305[_0x2daa64(0x266)]);_0x3fd6c6(this[_0x2daa64(0x1da)][_0x2daa64(0x259)](_0x39f305['unitId'],_0x39f305['subUnitId'],_0x39f305['shapeId']))||_0xeb1620!=null&&_0xeb1620['getShapeData']()[_0x2daa64(0xbe)]||_0x60d7ff[_0x2daa64(0x36f)]('text',{'hostType':_0x35cbcc[_0x2daa64(0x164)],'unitId':_0x39f305['unitId'],'subUnitId':_0x39f305[_0x2daa64(0x32f)],'shapeId':_0x39f305[_0x2daa64(0x266)]});}));}};const ia={...Ui};let aa=class extends _0x50d788{constructor(_0x3f9a46,_0x20150e,_0x2e1c79,_0x1efa7a,_0x1d1ee5,_0x88b85a,_0x2f473b,_0x273fc6){const _0x456324=_0x541acc;super(),this['_menuManagerService']=_0x3f9a46,this[_0x456324(0x1da)]=_0x20150e,this['_commandService']=_0x2e1c79,this[_0x456324(0x1b6)]=_0x1efa7a,this[_0x456324(0xcb)]=_0x1d1ee5,this['_contextService']=_0x88b85a,this[_0x456324(0x232)]=_0x2f473b,this[_0x456324(0x1af)]=_0x273fc6,q(this,'_shapePopupMenuDisposable',null),this['_menuManagerService'][_0x456324(0x1fa)](ia),this['_registerFeatureMenu'](),this['disposeWithMe'](this[_0x456324(0x1af)][_0x456324(0x204)]['subscribe'](_0x45744e=>{const _0xd8eed4=_0x456324;_0x45744e&&this[_0xd8eed4(0x114)]();}));}['initShapePopupMenu'](){const _0x2999e3=_0x541acc;this['_shapePopupMenuDisposable']||=this['disposeWithMe'](_0x360d1d(this['_renderManagerService'],_0x35cbcc[_0x2999e3(0x164)],_0x2e6597=>this[_0x2999e3(0xe3)](_0x2e6597)));}[_0x541acc(0x2aa)](){const _0xceac97=_0x541acc;this[_0xceac97(0xcb)][_0xceac97(0xe5)](_0x4a245a['DRAWING_SHAPE'],(_0x2ec573,_0x4f71ca,_0x3eccc3,_0x1f2da0)=>{const _0x1dcf7a=_0xceac97;let _0x5e0386=this[_0x1dcf7a(0x1da)][_0x1dcf7a(0x16d)](_0x2ec573,_0x4f71ca,_0x3eccc3),_0x50380b=this[_0x1dcf7a(0x1da)]['getShapeDataById'](_0x2ec573,_0x4f71ca,_0x3eccc3),_0x12c53c=_0x5e0386!==void 0x0&&!_0x3fd6c6(_0x5e0386)&&!(_0x50380b!=null&&_0x50380b[_0x1dcf7a(0xbe)]);return[{'label':_0x1dcf7a(0x1ad),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'mode':_0x1dcf7a(0x1b4)},'disable':!0x1},..._0x12c53c?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'mode':'text'},'disable':!0x1}]:[],{'label':_0x1dcf7a(0x159),'index':0x2,'commandId':_0x6ae2c0['id'],'commandParams':{'unitId':_0x2ec573,'drawings':[{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'drawingType':_0x1f2da0}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x22d960['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'shapeId':_0x3eccc3,'flipH':!0x0},'disable':!0x1},{'label':_0x1dcf7a(0x29d),'index':0x4,'commandId':_0x22d960['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'shapeId':_0x3eccc3,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}['_popupMenuListener'](_0x50b23a){const _0x4e3299=_0x541acc;let _0x453930=new _0x1de28d(),_0x526d86=null,_0x27e366=()=>{const _0x58b0a9=_0x5f19;if(!_0x526d86)return;let _0x436cb9=this[_0x58b0a9(0x1b6)][_0x58b0a9(0x28b)](),_0x48d3b9=_0x436cb9[_0x58b0a9(0xf6)]===0x0||_0x436cb9['length']===0x1&&_0x436cb9[_0x58b0a9(0x12c)](_0x4f4c21=>_0x4f4c21['unitId']===(_0x526d86==null?void 0x0:_0x526d86[_0x58b0a9(0x2b7)])&&_0x4f4c21[_0x58b0a9(0x32f)]===(_0x526d86==null?void 0x0:_0x526d86[_0x58b0a9(0x32f)])&&_0x4f4c21[_0x58b0a9(0x162)]===(_0x526d86==null?void 0x0:_0x526d86['drawingId']));_0x526d86=null,_0x48d3b9&&(this[_0x58b0a9(0x311)][_0x58b0a9(0x1c5)](_0x121b13,!0x1),this[_0x58b0a9(0x1b6)][_0x58b0a9(0x1f7)](null));};return _0x453930['add'](_0x50b23a[_0x4e3299(0x2b9)]['subscribe'](()=>{const _0xf41ac=_0x4e3299;let _0x44fafa=_0x50b23a['getSelectedObjectMap']();if(_0x44fafa[_0xf41ac(0x236)]>0x1){_0x27e366();return;}let _0x50958a=_0x44fafa['values']()[_0xf41ac(0x2d4)]()[_0xf41ac(0x156)];if(!_0x50958a){_0x27e366();return;}let _0x5d524a=this[_0xf41ac(0x1b6)][_0xf41ac(0x1cd)](_0x50958a[_0xf41ac(0x22c)]);if(!_0x5d524a||_0x5d524a['drawingType']!==_0x4a245a[_0xf41ac(0x1f9)]){_0x27e366();return;}let {unitId:_0x1eecbf,subUnitId:_0x4b0478,drawingId:_0x3f267c}=_0x5d524a;_0x526d86={'unitId':_0x1eecbf,'subUnitId':_0x4b0478,'drawingId':_0x3f267c},this[_0xf41ac(0x311)]['setContextValue'](_0x121b13,!0x0),this[_0xf41ac(0x1b6)][_0xf41ac(0x28b)]()[_0xf41ac(0xfd)](_0x1a53d6=>_0x1a53d6[_0xf41ac(0x2b7)]===_0x1eecbf&&_0x1a53d6['subUnitId']===_0x4b0478&&_0x1a53d6[_0xf41ac(0x162)]===_0x3f267c)||this['_drawingManagerService'][_0xf41ac(0x1f7)]([{'unitId':_0x1eecbf,'subUnitId':_0x4b0478,'drawingId':_0x3f267c}]);})),_0x453930['add'](_0x50b23a['clearControl$'][_0x4e3299(0x36d)](()=>{_0x27e366();})),_0x183b07(()=>{const _0x5eacca=_0x4e3299;_0x453930[_0x5eacca(0x1ae)](),_0x27e366();});}[_0x541acc(0x114)](){const _0x3a1d83=_0x541acc;this['_contextService'][_0x3a1d83(0x1c5)](_0x121b13,!0x1),this[_0x3a1d83(0x1b6)][_0x3a1d83(0x1f7)](null);}};aa=X([Y(0x0,_0x413bdc),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x2c496c),Y(0x3,_0x5399a4),Y(0x4,_0x53ba9c(_0x5973fe)),Y(0x5,_0x35ac6c),Y(0x6,_0x22bed8),Y(0x7,_0x53ba9c($))],aa);function oa(_0x121a11,_0x3846a5,_0x10da9f,_0x107b70){const _0x2231d2=_0x541acc;let _0x801332=_0x25f35b(_0x121a11,_0x3846a5,_0x10da9f),_0xac2870=[];for(let _0x176f20 of _0x3846a5){let _0x399969=_0x801332[_0x2231d2(0x356)][_0x2231d2(0x1e8)](_0x176f20[_0x2231d2(0x162)]),_0x389158=_0x107b70(_0x176f20);_0x399969&&_0x389158&&_0xac2870['push']({'targetShapeId':_0x399969,'source':_0x389158});}return _0xac2870;}let sa=class extends _0x50d788{constructor(_0x4351bb,_0x587484,_0x758359,_0x17e2a5){const _0xcc300f=_0x541acc;super(),this['_univerInstanceService']=_0x4351bb,this['_sheetInterceptorService']=_0x587484,this[_0xcc300f(0x15e)]=_0x758359,this[_0xcc300f(0x1da)]=_0x17e2a5,this[_0xcc300f(0xd0)]();}[_0x541acc(0xd0)](){const _0x4b3664=_0x541acc;this[_0x4b3664(0x328)](this[_0x4b3664(0x109)][_0x4b3664(0xe0)]({'getMutations':_0x80d212=>{const _0x369a73=_0x4b3664;if(_0x80d212['id']===_0x5b7bce['id']){let _0x4f9610=_0x88a456(this['_univerInstanceService'],_0x80d212[_0x369a73(0x152)]);if(!_0x4f9610)return{'redos':[],'undos':[]};let {unitId:_0x16d71f,subUnitId:_0x142327}=_0x4f9610,_0x4d658d=this[_0x369a73(0x15e)]['getDrawingData'](_0x16d71f,_0x142327),_0x30d1d1=Object[_0x369a73(0x370)](_0x4d658d)[_0x369a73(0x305)](_0x2d3be2=>_0x2d3be2[_0x369a73(0x2e1)]===_0x4a245a['DRAWING_SHAPE']);if(_0x30d1d1[_0x369a73(0xf6)]===0x0)return{'redos':[],'undos':[]};let _0x1f0cfc=[],_0x59a3b8=[];for(let _0x19b36a=0x0;_0x19b36a<_0x30d1d1[_0x369a73(0xf6)];_0x19b36a++){let _0xe9cc74=_0x30d1d1[_0x19b36a],_0x19a2a6=this[_0x369a73(0x1da)][_0x369a73(0x29b)](_0xe9cc74[_0x369a73(0x2b7)],_0xe9cc74[_0x369a73(0x32f)],_0xe9cc74[_0x369a73(0x162)]);_0x19a2a6&&(_0x1f0cfc[_0x369a73(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0x16d71f,'subUnitId':_0x142327,'shapeId':_0xe9cc74[_0x369a73(0x162)]}}),_0x59a3b8[_0x369a73(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0x16d71f,'subUnitId':_0x142327,'shapeId':_0xe9cc74['drawingId'],'shapeType':_0x19a2a6[_0x369a73(0x259)](),'shapeData':JSON[_0x369a73(0x25c)](JSON['stringify'](_0x19a2a6['getShapeData']()))}}));}return{'redos':_0x1f0cfc,'undos':_0x59a3b8};}if(_0x80d212['id']===_0x583407['id']){let {unitId:_0xeea99d,subUnitId:_0x48660d,targetSubUnitId:_0x172467,copyContext:_0x574e97}=_0x80d212[_0x369a73(0x152)];if(!_0xeea99d||!_0x48660d||!_0x172467)return{'redos':[],'undos':[]};let _0x4c5ec1=this['_sheetDrawingService'][_0x369a73(0x13b)](_0xeea99d,_0x48660d),_0x341e3=Object[_0x369a73(0x370)](_0x4c5ec1)[_0x369a73(0x305)](_0x1087d0=>_0x1087d0[_0x369a73(0x2e1)]===_0x4a245a[_0x369a73(0x1f9)]);if(_0x341e3[_0x369a73(0xf6)]===0x0)return{'redos':[],'undos':[]};let _0x41fbeb=oa(_0x574e97,_0x341e3,{'unitId':_0xeea99d,'sourceSubUnitId':_0x48660d,'targetSubUnitId':_0x172467},_0x62089d=>{const _0x29cfc0=_0x369a73;let _0x1c4dea=this[_0x29cfc0(0x1da)][_0x29cfc0(0x29b)](_0x62089d[_0x29cfc0(0x2b7)],_0x62089d['subUnitId'],_0x62089d['drawingId']);if(_0x1c4dea)return{'shapeType':_0x1c4dea['getShapeType'](),'shapeData':JSON[_0x29cfc0(0x25c)](JSON[_0x29cfc0(0x142)](_0x1c4dea[_0x29cfc0(0x351)]()))};}),_0x2f48f5=[],_0x5a4072=[];for(let {targetShapeId:_0x20dbc5,source:_0x2aa676}of _0x41fbeb)_0x2f48f5[_0x369a73(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0xeea99d,'subUnitId':_0x172467,'shapeId':_0x20dbc5,'shapeType':_0x2aa676[_0x369a73(0x1e4)],'shapeData':_0x2aa676['shapeData']}}),_0x5a4072[_0x369a73(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0xeea99d,'subUnitId':_0x172467,'shapeId':_0x20dbc5}});return{'redos':_0x2f48f5,'undos':_0x5a4072};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x53ba9c(_0x43400d)),Y(0x1,_0x53ba9c(_0xcb4849)),Y(0x2,_0x53ba9c(_0x4202dc)),Y(0x3,_0x53ba9c(_0x27864b))],sa);let ca=class extends _0x50d788{constructor(_0xc00458,_0x27ca6f,_0x1466bf,_0x1f6b19,_0x54ab88,_0xdb83b3){const _0x44900a=_0x541acc;super(),this[_0x44900a(0xdc)]=_0xc00458,this[_0x44900a(0x232)]=_0x27ca6f,this[_0x44900a(0x1b6)]=_0x1466bf,this[_0x44900a(0xd7)]=_0x1f6b19,this['_drawingRenderService']=_0x54ab88,this['_sheetDrawingShapeRenderController']=_0xdb83b3,q(this,'_insertingShapeKeys',new Set()),this[_0x44900a(0x284)]();}['_initialize'](){const _0x3bbf62=_0x541acc;this['_drawingAddListener'](),this[_0x3bbf62(0x377)](),this[_0x3bbf62(0x1a3)]();}[_0x541acc(0x1f6)](){const _0x184f99=_0x541acc;this[_0x184f99(0x328)](this['_drawingManagerService'][_0x184f99(0x1e1)][_0x184f99(0x36d)](_0x59a636=>{const _0x5ef965=_0x184f99;this[_0x5ef965(0x31b)](_0x59a636);}));}[_0x541acc(0x377)](){const _0x4eff75=_0x541acc;this[_0x4eff75(0x328)](this[_0x4eff75(0xdc)]['onCommandExecuted']((_0x2fafbd,_0x55d9f8)=>{const _0xca11a6=_0x4eff75;if(_0x2fafbd['id']===_0x2a1218['id']){let {unitId:_0x165290,subUnitId:_0x57f3bf,shapeId:_0x49ccc7}=_0x2fafbd[_0xca11a6(0x152)],_0x2cb3c9=this['_getSceneAndTransformerByDrawingSearch'](_0x165290),_0x30c20f=_0x191ead({'unitId':_0x165290,'subUnitId':_0x57f3bf,'drawingId':_0x49ccc7}),_0x383ff6=_0x2cb3c9==null?void 0x0:_0x2cb3c9[_0xca11a6(0x34c)][_0xca11a6(0x13f)](_0x30c20f);_0x383ff6&&(this[_0xca11a6(0x33b)][_0xca11a6(0x308)](_0x383ff6),this[_0xca11a6(0x33b)][_0xca11a6(0x191)](_0x383ff6,{'unitId':_0x165290,'subUnitId':_0x57f3bf,'shapeId':_0x49ccc7}),_0x383ff6[_0xca11a6(0x2ff)](!0x0));}else{if(_0x2fafbd['id']===_0x48b536['id']){var _0x59ed53;let {unitId:_0x18312d,subUnitId:_0x175ff9,shapeId:_0x2e8b1d}=_0x2fafbd[_0xca11a6(0x152)],_0x202965=this[_0xca11a6(0x2cd)](_0x18312d);if(_0x202965==null)return;let {scene:_0x32b9d8}=_0x202965,_0x1aeb40=_0x191ead({'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}),_0x2e43d1=_0x32b9d8[_0xca11a6(0x13f)](_0x1aeb40);if(!((_0x59ed53=this['_renderManagerService']['getRenderUnitById'](_0x18312d))!=null&&_0x59ed53[_0xca11a6(0x320)](_0x3ea870)[_0xca11a6(0x342)](_0x175ff9)))return!0x1;if(_0x2e43d1)return;if(_0x55d9f8!=null&&_0x55d9f8[_0xca11a6(0x373)]){queueMicrotask(()=>{const _0x110d8a=_0xca11a6;this[_0x110d8a(0x2be)]||this[_0x110d8a(0x31b)]([{'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}]);});return;}this[_0xca11a6(0x31b)]([{'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}]);}}}));}[_0x541acc(0x1a3)](){const _0xccaaad=_0x541acc;this['disposeWithMe'](this[_0xccaaad(0x1b6)]['update$'][_0xccaaad(0x36d)](_0x15ebf0=>{_0x15ebf0['forEach'](_0x42cc49=>{const _0x420acf=_0x5f19;let {unitId:_0x158815,subUnitId:_0x3f459a,drawingId:_0x19b1e2}=_0x42cc49,_0x7307f8=this[_0x420acf(0x1b6)][_0x420acf(0xb2)](_0x42cc49);if(_0x7307f8==null)return;let {transform:_0x4a64d5,drawingType:_0x243ee8,srcRect:_0x300c27,prstGeom:_0x40b089}=_0x7307f8;if(_0x243ee8!==_0x4a245a[_0x420acf(0x1f9)])return;let _0x498c91=this[_0x420acf(0x2cd)](_0x158815);if(_0x498c91==null)return;let {scene:_0x5d0f89,transformer:_0x48e54a}=_0x498c91;if(_0x4a64d5==null)return!0x0;let _0x5a63b3=_0x191ead({'unitId':_0x158815,'subUnitId':_0x3f459a,'drawingId':_0x19b1e2}),_0x19745e=_0x5d0f89[_0x420acf(0x13f)](_0x5a63b3);if(_0x19745e==null)return!0x0;_0x19745e[_0x420acf(0x276)](_0x300c27),_0x19745e[_0x420acf(0x176)](_0x40b089);});}));}[_0x541acc(0x31b)](_0x26a656){const _0x4c37d3=_0x541acc;for(let _0x39a246 of _0x26a656){var _0x37c24d;let {unitId:_0x3b4c09,subUnitId:_0x551939,drawingId:_0x5b3734}=_0x39a246,_0x15c9dc=this[_0x4c37d3(0x2cd)](_0x3b4c09),_0x46f321=(_0x37c24d=_0x12ae77(this[_0x4c37d3(0xd7)],_0x3b4c09))==null?void 0x0:_0x37c24d[_0x4c37d3(0x32f)];if(_0x15c9dc==null||_0x46f321!==_0x551939)return;let _0x4513a5=_0x191ead({'unitId':_0x3b4c09,'subUnitId':_0x551939,'drawingId':_0x5b3734});if(this[_0x4c37d3(0x23d)][_0x4c37d3(0x1bd)](_0x4513a5)||_0x15c9dc[_0x4c37d3(0x34c)]['getObjectIncludeInGroup'](_0x4513a5)!=null)return;let _0x2e3c93=this[_0x4c37d3(0x1b6)][_0x4c37d3(0xb2)](_0x39a246);if(_0x2e3c93==null||_0x2e3c93[_0x4c37d3(0x2e1)]!==_0x4a245a[_0x4c37d3(0x1f9)])return;let _0x1484a6=_0x2e3c93[_0x4c37d3(0x2bf)]||{};if(_0x3fd6c6(_0x1484a6[_0x4c37d3(0x1e4)])){let _0x1d4564=_0x2e3c93['transform'];_0x1d4564&&(_0x2e3c93[_0x4c37d3(0xc5)]={..._0x1d4564,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x4c37d3(0x23d)][_0x4c37d3(0xb5)](_0x4513a5);try{this[_0x4c37d3(0x33b)]['renderDrawingShape'](_0x2e3c93,_0x15c9dc[_0x4c37d3(0x34c)]);}finally{this[_0x4c37d3(0x23d)][_0x4c37d3(0x1ed)](_0x4513a5);}queueMicrotask(()=>{const _0x35db8a=_0x4c37d3;if(this['_disposed'])return;let _0x5c2982=_0x191ead(_0x39a246);if(!_0x15c9dc[_0x35db8a(0x34c)]['getObjectIncludeInGroup'](_0x5c2982))return;let _0x3daa1f=this[_0x35db8a(0x1b6)][_0x35db8a(0xb2)](_0x39a246);_0x3daa1f&&this['_drawingManagerService'][_0x35db8a(0x1e7)]([_0x3daa1f]);});}}[_0x541acc(0x2cd)](_0x51ad0d){const _0x3b5403=_0x541acc;if(_0x51ad0d==null)return;let _0x24a935=this['_renderManagerService'][_0x3b5403(0x365)](_0x51ad0d),_0x101856=_0x24a935==null?void 0x0:_0x24a935[_0x3b5403(0x34c)];return _0x101856==null?null:{'scene':_0x101856,'transformer':_0x101856[_0x3b5403(0x322)]()};}};ca=X([Y(0x0,_0x2c496c),Y(0x1,_0x22bed8),Y(0x2,_0x5399a4),Y(0x3,_0x43400d),Y(0x4,_0x53ba9c(_0x4b581b)),Y(0x5,_0x53ba9c(Z))],ca);const la={'normal':{'fill':_0x1b524b[_0x541acc(0x2d1)],'stroke':_0x1b524b[_0x541acc(0x221)],'strokeWidth':_0x1b524b[_0x541acc(0x1d5)]},'highlighted':{'fill':_0x541acc(0x24a),'stroke':_0x541acc(0xd2),'strokeWidth':0x2}};var ua=class extends _0x17e18a{constructor(_0x85e13c,_0x3428e2){const _0x213b76=_0x541acc;super(_0x85e13c,_0x3428e2),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,_0x213b76(0x1de),''),q(this,_0x213b76(0x285),''),q(this,_0x213b76(0x1ce),!0x1),_0x3428e2&&this[_0x213b76(0x1d3)](_0x3428e2);}[_0x541acc(0x321)](){const _0x4828f0=_0x541acc;return{'unitId':this['_unitId'],'subUnitId':this[_0x4828f0(0x285)],'shapeId':this[_0x4828f0(0x297)],'cxnIndex':this[_0x4828f0(0x2d3)]};}[_0x541acc(0x34f)](_0x29b8b3){const _0x504aa9=_0x541acc;this[_0x504aa9(0x1ce)]!==_0x29b8b3&&(this[_0x504aa9(0x1ce)]=_0x29b8b3,this['makeDirty'](!0x0));}[_0x541acc(0x2c0)](){const _0x38a148=_0x541acc;return this[_0x38a148(0x1ce)];}[_0x541acc(0x1d3)](_0x48808d){const _0x11b1c2=_0x541acc;_0x48808d[_0x11b1c2(0x310)]!==void 0x0&&(this[_0x11b1c2(0x297)]=_0x48808d[_0x11b1c2(0x310)]),_0x48808d['cxnIndex']!==void 0x0&&(this[_0x11b1c2(0x2d3)]=_0x48808d[_0x11b1c2(0x212)]),_0x48808d[_0x11b1c2(0x2b7)]!==void 0x0&&(this[_0x11b1c2(0x1de)]=_0x48808d['unitId']),_0x48808d['subUnitId']!==void 0x0&&(this[_0x11b1c2(0x285)]=_0x48808d[_0x11b1c2(0x32f)]),_0x48808d[_0x11b1c2(0x2c0)]!==void 0x0&&(this['_isHighlighted']=_0x48808d[_0x11b1c2(0x2c0)]),this['transformByState']({'width':_0x48808d[_0x11b1c2(0x27b)]??_0x1b524b[_0x11b1c2(0x19b)]*0x2,'height':_0x48808d[_0x11b1c2(0x35c)]??_0x1b524b[_0x11b1c2(0x19b)]*0x2});}[_0x541acc(0x273)](_0x415bdf){const _0xee7a45=_0x541acc;let _0x1c2d4c=this[_0xee7a45(0x1ce)]?la[_0xee7a45(0x1c7)]:la[_0xee7a45(0x22e)];_0x4c063a['drawWith'](_0x415bdf,{'radius':_0x1b524b['cxnPointRadius'],'fill':_0x1c2d4c[_0xee7a45(0x2da)],'stroke':_0x1c2d4c[_0xee7a45(0x133)],'strokeWidth':_0x1c2d4c[_0xee7a45(0x2ec)],'evented':!0x0});}};let da=class extends _0x50d788{constructor(_0x34c532,_0x23e493,_0x9ea36b,_0x2d1793){const _0x5918d1=_0x541acc;super(),this[_0x5918d1(0x226)]=_0x34c532,this[_0x5918d1(0x232)]=_0x23e493,this[_0x5918d1(0x1b6)]=_0x9ea36b,this[_0x5918d1(0x1da)]=_0x2d1793,q(this,'_connectionSiteObjects',[]),q(this,_0x5918d1(0x240),null),q(this,_0x5918d1(0x329),-0x1),q(this,'_currentScene',null),q(this,'_unitId',''),q(this,_0x5918d1(0x285),''),q(this,_0x5918d1(0x2c7),null);}[_0x541acc(0x18e)](_0x1d7708,_0x58c1e7,_0x56ed4b,_0xb24811){const _0x4be4d1=_0x541acc;this[_0x4be4d1(0x324)]=_0x1d7708,this['_unitId']=_0x58c1e7,this[_0x4be4d1(0x285)]=_0x56ed4b,this[_0x4be4d1(0x2c7)]=_0xb24811;}['updateConnectionDetection'](_0x50d90b){const _0x10d1f9=_0x541acc;if(!this['_currentScene'])return null;let _0x30d4db=this[_0x10d1f9(0xc6)](_0x50d90b);return _0x30d4db?(this[_0x10d1f9(0x240)]!==_0x30d4db[_0x10d1f9(0x266)]&&(this[_0x10d1f9(0x110)](),this['_showConnectionSites'](_0x30d4db[_0x10d1f9(0x266)],_0x30d4db[_0x10d1f9(0x31f)]),this[_0x10d1f9(0x240)]=_0x30d4db[_0x10d1f9(0x266)]),this[_0x10d1f9(0x2ae)](_0x50d90b)):(this[_0x10d1f9(0x240)]!==null&&(this[_0x10d1f9(0x110)](),this[_0x10d1f9(0x240)]=null),null);}[_0x541acc(0x2b4)](){const _0x1ca3dc=_0x541acc;this['_clearConnectionSites'](),this[_0x1ca3dc(0x324)]=null,this[_0x1ca3dc(0x240)]=null,this[_0x1ca3dc(0x329)]=-0x1,this['_draggingConnectorId']=null;}[_0x541acc(0xe2)](){const _0x2a285e=_0x541acc;return this[_0x2a285e(0x240)]===null||this[_0x2a285e(0x329)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x2a285e(0x329)]};}[_0x541acc(0xc6)](_0x5b74f6){const _0x9bf733=_0x541acc;let _0x308d3d=this['_drawingManagerService']['getDrawingData'](this[_0x9bf733(0x1de)],this[_0x9bf733(0x285)]);for(let _0x2f1cf9 of Object[_0x9bf733(0x21a)](_0x308d3d)){if(_0x2f1cf9===this[_0x9bf733(0x2c7)]||_0x308d3d[_0x2f1cf9][_0x9bf733(0x2e1)]!==_0x4a245a[_0x9bf733(0x1f9)])continue;let _0xd009c4=this[_0x9bf733(0x1da)][_0x9bf733(0x29b)](this['_unitId'],this['_subUnitId'],_0x2f1cf9);if(!_0xd009c4||_0x3fd6c6(_0xd009c4[_0x9bf733(0x259)]())||_0xd009c4['getConnectionSiteList']()['length']===0x0||!this[_0x9bf733(0x324)])continue;let _0xb69db0=_0x191ead({'unitId':this[_0x9bf733(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':_0x2f1cf9}),_0x4ae087=this[_0x9bf733(0x324)]['getObjectIncludeInGroup'](_0xb69db0);if(!_0x4ae087)continue;let {left:_0x39580c,top:_0x1d9d8e,width:_0x387ef0,height:_0x1d984a}=_0x4ae087['getRealBound'](),_0x5372d6=_0x39580c+_0x387ef0/0x2,_0x42e78a=_0x1d9d8e+_0x1d984a/0x2,_0x1ff30a=_0x4ae087[_0x9bf733(0xc5)][_0x9bf733(0x24e)](),_0x5468c7=new _0x39f1ac([_0x1ff30a[0x0],_0x1ff30a[0x1],_0x1ff30a[0x2],_0x1ff30a[0x3],_0x5372d6,_0x42e78a]),_0xfb7740=_0x4ae087['getParent'](),_0xec9533=(_0x4ae087[_0x9bf733(0x115)]&&(_0xfb7740==null?void 0x0:_0xfb7740[_0x9bf733(0xd1)])===_0x2a8676['GROUP']?_0xfb7740[_0x9bf733(0x1d8)]['multiply'](_0x5468c7):_0x5468c7)[_0x9bf733(0x185)]()[_0x9bf733(0x12d)](_0x5b74f6),_0x1d71bc=_0x387ef0/0x2,_0x30fe9c=_0x1d984a/0x2;if(_0xec9533['x']>=-_0x1d71bc-0x5&&_0xec9533['x']<=_0x1d71bc+0x5&&_0xec9533['y']>=-_0x30fe9c-0x5&&_0xec9533['y']<=_0x30fe9c+0x5)return{'shapeId':_0x2f1cf9,'shapeModel':_0xd009c4};}return null;}['_showConnectionSites'](_0x4b00ad,_0x3bf174){const _0x2ea1ac=_0x541acc;if(!this['_currentScene'])return;let _0x157af2=_0x191ead({'unitId':this[_0x2ea1ac(0x1de)],'subUnitId':this[_0x2ea1ac(0x285)],'drawingId':_0x4b00ad}),_0x111f5a=this['_currentScene'][_0x2ea1ac(0x13f)](_0x157af2);if(!_0x111f5a)return;let {left:_0x2112bd,top:_0x2e4c9d,width:_0x10ea74,height:_0x34d44b}=_0x111f5a[_0x2ea1ac(0x1b8)](),_0x168e93=_0x2112bd+_0x10ea74/0x2,_0x28236f=_0x2e4c9d+_0x34d44b/0x2,_0x18097b=_0x111f5a[_0x2ea1ac(0xc5)]['getMatrix'](),_0x163e92=new _0x39f1ac([_0x18097b[0x0],_0x18097b[0x1],_0x18097b[0x2],_0x18097b[0x3],_0x168e93,_0x28236f]),_0x1b2370=_0x111f5a[_0x2ea1ac(0x36c)](),_0x444f36=_0x111f5a[_0x2ea1ac(0x115)]&&(_0x1b2370==null?void 0x0:_0x1b2370[_0x2ea1ac(0xd1)])===_0x2a8676[_0x2ea1ac(0x2ac)]?_0x1b2370[_0x2ea1ac(0x1d8)][_0x2ea1ac(0x171)](_0x163e92):_0x163e92;_0x3bf174[_0x2ea1ac(0x26b)]({'width':_0x10ea74,'height':_0x34d44b});let _0xdc41c1=_0x3bf174[_0x2ea1ac(0xfc)]();for(let _0x1aeae8 of _0xdc41c1){let _0x2b4daf=_0x1aeae8['x']-_0x10ea74/0x2,_0x3120d8=_0x1aeae8['y']-_0x34d44b/0x2,_0x404135=_0x444f36[_0x2ea1ac(0x12d)]({'x':_0x2b4daf,'y':_0x3120d8}),_0x256c16=_0x404135['x'],_0x4951a5=_0x404135['y'],_0x577ab4=new ua('connection-site-'+_0x4b00ad+'-'+_0x1aeae8[_0x2ea1ac(0x302)],{'left':_0x256c16-_0x1b524b[_0x2ea1ac(0x19b)],'top':_0x4951a5-_0x1b524b['cxnPointRadius'],'targetShapeId':_0x4b00ad,'cxnIndex':_0x1aeae8[_0x2ea1ac(0x302)],'unitId':this[_0x2ea1ac(0x1de)],'subUnitId':this[_0x2ea1ac(0x285)],'width':_0x1b524b[_0x2ea1ac(0x19b)]*0x2,'height':_0x1b524b[_0x2ea1ac(0x19b)]*0x2,'zIndex':_0x5cbc31+0x2,'evented':!0x1});this[_0x2ea1ac(0xb4)][_0x2ea1ac(0x288)](_0x577ab4),this['_currentScene']['addObject'](_0x577ab4,_0x5cbc31+0x2);}}[_0x541acc(0x2ae)](_0x1ec502){const _0x38f7c8=_0x541acc;let _0x58bbc8=null,_0x4451f1=0x1/0x0,_0x3dec1f=null;for(let _0x5695cb of this['_connectionSiteObjects']){let _0x39397c=_0x5695cb['left']+_0x1b524b[_0x38f7c8(0x19b)],_0x3ee879=_0x5695cb['top']+_0x1b524b[_0x38f7c8(0x19b)],_0x34af2d=_0x1ec502['x']-_0x39397c,_0x5ccfe1=_0x1ec502['y']-_0x3ee879,_0x2bf6f1=Math[_0x38f7c8(0xea)](_0x34af2d*_0x34af2d+_0x5ccfe1*_0x5ccfe1);_0x2bf6f1<_0x4451f1&&(_0x4451f1=_0x2bf6f1,_0x58bbc8=_0x5695cb,_0x3dec1f={'x':_0x39397c,'y':_0x3ee879});}let _0x1daecc=_0x4451f1<=0xa&&_0x58bbc8?_0x58bbc8[_0x38f7c8(0x321)]()[_0x38f7c8(0x212)]:-0x1;if(_0x1daecc!==this['_highlightedSiteIndex']){for(let _0x50fe1 of this[_0x38f7c8(0xb4)]){let _0x33c608=_0x50fe1[_0x38f7c8(0x321)]();_0x50fe1[_0x38f7c8(0x34f)](_0x33c608[_0x38f7c8(0x212)]===_0x1daecc);}this[_0x38f7c8(0x329)]=_0x1daecc;}if(_0x4451f1<=0xa&&_0x58bbc8&&_0x3dec1f){let _0x319354=_0x58bbc8[_0x38f7c8(0x321)](),_0x50ebbf=this['_getConnectionSiteAngle'](_0x319354[_0x38f7c8(0x266)],_0x319354[_0x38f7c8(0x212)]);return{'shapeId':_0x319354['shapeId'],'cxnIndex':_0x319354[_0x38f7c8(0x212)],'unitId':_0x319354[_0x38f7c8(0x2b7)],'subUnitId':_0x319354[_0x38f7c8(0x32f)],'worldPoint':_0x3dec1f,'angle':_0x50ebbf};}return null;}[_0x541acc(0x173)](_0x8d5697,_0x4997a1){const _0x5d23e4=_0x541acc;let _0x329eb2=this['_sheetsShapeService']['getShapeModel'](this[_0x5d23e4(0x1de)],this[_0x5d23e4(0x285)],_0x8d5697);if(!_0x329eb2)return 0x0;let _0x4b94f5=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x5d23e4(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':_0x8d5697});if(!(_0x4b94f5!=null&&_0x4b94f5[_0x5d23e4(0xc5)]))return 0x0;let {width:_0x449a47=0x0,height:_0x1ddffc=0x0,flipX:_0x5b5ddb=!0x1,flipY:_0x4d62e8=!0x1}=_0x4b94f5['transform'];_0x329eb2[_0x5d23e4(0x26b)]({'width':_0x449a47,'height':_0x1ddffc});let _0x451f5a=_0x329eb2[_0x5d23e4(0xfc)]()['find'](_0x5e92fe=>_0x5e92fe['index']===_0x4997a1);if(!_0x451f5a)return 0x0;let _0x308cef=_0x451f5a['ang']/0xea60;return _0x5b5ddb&&(_0x308cef=0xb4-_0x308cef),_0x4d62e8&&(_0x308cef=-_0x308cef),_0x308cef=(_0x308cef%0x168+0x168)%0x168,_0x308cef;}[_0x541acc(0x110)](){const _0x37769f=_0x541acc;for(let _0x498322 of this[_0x37769f(0xb4)])_0x498322[_0x37769f(0x1ae)]();this[_0x37769f(0xb4)]=[],this[_0x37769f(0x329)]=-0x1;}[_0x541acc(0x1ae)](){const _0x198bbc=_0x541acc;this['_clearConnectionSites'](),super[_0x198bbc(0x1ae)]();}};da=X([Y(0x1,_0x53ba9c(_0x22bed8)),Y(0x2,_0x53ba9c(_0x5399a4)),Y(0x3,_0x53ba9c(_0x27864b))],da);let fa=class extends _0x50d788{constructor(_0x2d6e82,_0x42027e,_0xea1f5,_0x57beef,_0x241ec6){const _0x5a8fac=_0x541acc;super(),this[_0x5a8fac(0x376)]=_0x2d6e82,this[_0x5a8fac(0x131)]=_0x42027e,this[_0x5a8fac(0x15e)]=_0xea1f5,this[_0x5a8fac(0xff)]=_0x57beef,this['_groupCopyPasteController']=_0x241ec6,q(this,_0x5a8fac(0x183),void 0x0),this[_0x5a8fac(0x28c)](),this[_0x5a8fac(0x161)]();}get[_0x541acc(0x243)](){const _0x1f3402=_0x541acc;return this[_0x1f3402(0x15e)]['getFocusDrawings']();}[_0x541acc(0x161)](){const _0x2ea142=_0x541acc;this[_0x2ea142(0x195)][_0x2ea142(0x17d)](({fromUnitId:_0x454a7e,fromSubUnitId:_0x51d31a,toUnitId:_0x51812f,toSubUnitId:_0x31bdd0,idMap:_0x3feba5})=>{const _0x14bac2=_0x2ea142;let _0x23b0c4=[],_0x233c2f=[];for(let [_0x2fc756,_0xc387e7]of _0x3feba5[_0x14bac2(0x17b)]()){let _0xfed5b4=this[_0x14bac2(0xff)][_0x14bac2(0x29b)](_0x454a7e,_0x51d31a,_0x2fc756);if(!_0xfed5b4)continue;let _0xb2cdf2=_0xfed5b4['getShapeType'](),_0x1ae39d=JSON[_0x14bac2(0x25c)](JSON['stringify'](_0xfed5b4[_0x14bac2(0x351)]()));if(_0x1ae39d[_0x14bac2(0x2ad)]){var _0x1f7357,_0x5231d0;let _0x3ceb4c=(_0x1f7357=_0x1ae39d[_0x14bac2(0x2ad)]['from'])==null?void 0x0:_0x1f7357['shapeId'],_0x449002=(_0x5231d0=_0x1ae39d[_0x14bac2(0x2ad)]['to'])==null?void 0x0:_0x5231d0[_0x14bac2(0x266)],_0x48b789=!_0x3ceb4c||_0x3feba5[_0x14bac2(0x1bd)](_0x3ceb4c),_0x575abd=!_0x449002||_0x3feba5['has'](_0x449002);_0x48b789&&_0x3ceb4c&&_0x1ae39d['relation'][_0x14bac2(0x130)]?_0x1ae39d[_0x14bac2(0x2ad)]['from']={..._0x1ae39d['relation']['from'],'shapeId':_0x3feba5['get'](_0x3ceb4c)}:_0x1ae39d[_0x14bac2(0x2ad)]['from']=void 0x0,_0x575abd&&_0x449002&&_0x1ae39d[_0x14bac2(0x2ad)]['to']?_0x1ae39d[_0x14bac2(0x2ad)]['to']={..._0x1ae39d[_0x14bac2(0x2ad)]['to'],'shapeId':_0x3feba5[_0x14bac2(0x1e8)](_0x449002)}:_0x1ae39d[_0x14bac2(0x2ad)]['to']=void 0x0;}_0x23b0c4[_0x14bac2(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0x51812f,'subUnitId':_0x31bdd0,'shapeId':_0xc387e7,'shapeType':_0xb2cdf2,'shapeData':_0x1ae39d}}),_0x233c2f[_0x14bac2(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0x51812f,'subUnitId':_0x31bdd0,'shapeId':_0xc387e7}});}return{'redos':_0x23b0c4,'undos':_0x233c2f};});}[_0x541acc(0x28c)](){const _0x1dc797=_0x541acc;this[_0x1dc797(0x328)](this[_0x1dc797(0x131)]['addClipboardHook']({'id':_0x1dc797(0x107),'onBeforeCopyFocusedObject':(_0x1f95a6,_0xa4f86f,_0x754fd0)=>{const _0x540cd1=_0x1dc797;this[_0x540cd1(0x183)]=null;let _0x3cd993=this['_focusedDrawings'][_0x540cd1(0x305)](_0x1f5a1f=>_0x1f5a1f[_0x540cd1(0x2e1)]===_0x4a245a[_0x540cd1(0x1f9)]);return _0x3cd993[_0x540cd1(0xf6)]!==0x0&&(this['_copyInfo']={'unitId':_0x1f95a6,'subUnitId':_0xa4f86f,'copyType':_0x754fd0,'drawings':_0x3cd993},!0x0);},'onBeforeCopy':(_0x522870,_0x5edef8,_0x42f168,_0x30d067)=>{const _0x32ade5=_0x1dc797;this['_copyInfo']=null,this[_0x32ade5(0x358)](_0x522870,_0x5edef8,_0x42f168,_0x30d067);},'onPasteCells':(_0x3e8a97,_0x14eb23,_0x12cae1,_0x309185)=>{const _0x380fe2=_0x1dc797;if(!_0x309185[_0x380fe2(0x21e)]||!_0x3e8a97||!this[_0x380fe2(0x183)])return{'redos':[],'undos':[]};let {pasteType:_0x209c84}=_0x309185;return _0x209c84===_0x501716['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x14eb23,this[_0x380fe2(0x183)]['copyType']===_0x64091e[_0x380fe2(0x120)]):{'redos':[],'undos':[]};}}));}[_0x541acc(0x358)](_0x1ad4f2,_0x27b175,_0x2b9b5d,_0x40b930){const _0x3cae84=_0x541acc;let _0x29da04=this[_0x3cae84(0x376)][_0x3cae84(0x342)](_0x1ad4f2,_0x27b175);if(!_0x29da04)return;let _0x43a333=_0x307ceb(_0x29da04,_0x2b9b5d);if(!_0x43a333)return;let {startX:_0x2a0f93,endX:_0x549750,startY:_0x174aa1,endY:_0x5ab628}=_0x43a333,_0x128e10=this[_0x3cae84(0x15e)][_0x3cae84(0x13b)](_0x1ad4f2,_0x27b175),_0x2c32cb=[];for(let [_0x40b4be,_0x5e3e55]of Object[_0x3cae84(0x17b)](_0x128e10)){if(_0x5e3e55[_0x3cae84(0x2e1)]!==_0x4a245a[_0x3cae84(0x1f9)])continue;let {transform:_0x5a56af}=_0x5e3e55;if(!_0x5a56af)continue;let {left:_0x19401b=0x0,top:_0x296ac9=0x0,width:_0xd79a54=0x0,height:_0x333564=0x0}=_0x5a56af;_0x2a0f93<=_0x19401b&&_0x549750>=_0x19401b+_0xd79a54&&_0x174aa1<=_0x296ac9&&_0x5ab628>=_0x296ac9+_0x333564&&_0x2c32cb['push'](_0x5e3e55);}_0x2c32cb[_0x3cae84(0xf6)]>0x0&&(this[_0x3cae84(0x183)]={'unitId':_0x1ad4f2,'subUnitId':_0x27b175,'copyType':_0x40b930,'copyRange':_0x2b9b5d,'drawings':_0x2c32cb});}['_generatePasteMutations'](_0x8e05fa,_0x392fef){const _0xfe00e7=_0x541acc;let {unitId:_0x4d0e27,subUnitId:_0x404f5b,range:_0x1db8ea}=_0x8e05fa,_0x459134=this[_0xfe00e7(0x376)]['getSkeleton'](_0x4d0e27,_0x404f5b);if(!_0x459134)return{'redos':[],'undos':[]};let _0x5276aa=_0x1e7cec(_0x1db8ea),{unitId:_0x5e0800,subUnitId:_0x212a57,copyRange:_0x88dea5,drawings:_0x419d02}=this[_0xfe00e7(0x183)],_0x2cb0fe=this[_0xfe00e7(0x376)]['getSkeleton'](_0x5e0800,_0x212a57);if(!_0x2cb0fe)return{'redos':[],'undos':[]};let _0x3d1349;if(!_0x88dea5){let _0x3da7dc=0x1/0x0,_0x2578b1=0x1/0x0;for(let _0x2e1a2b of _0x419d02){let {left:_0x4108a1=0x0,top:_0x31f4e2=0x0}=_0x2e1a2b['transform']??{};_0x4108a1<_0x3da7dc&&(_0x3da7dc=_0x4108a1),_0x31f4e2<_0x2578b1&&(_0x2578b1=_0x31f4e2);}_0x3da7dc!==0x1/0x0&&_0x2578b1!==0x1/0x0&&(_0x3d1349={'left':_0x3da7dc,'top':_0x2578b1});}let _0x5c4b46=new Map();if(!_0x392fef){for(let _0x31b2c8 of _0x419d02)_0x5c4b46['set'](_0x31b2c8[_0xfe00e7(0x162)],_0x21450c());}let _0x4ae4d6=[],_0x13d7b4=[];for(let _0x234fd8 of _0x419d02){let {drawingId:_0x1f3158,transform:_0x42b595,sheetTransform:_0x448437}=_0x234fd8;if(!_0x42b595||!_0x448437)continue;let _0x2ff2e6=this[_0xfe00e7(0x248)]({'transform':_0x42b595,'sheetTransform':_0x448437},{'skeleton':_0x2cb0fe,'range':_0x88dea5},{'skeleton':_0x459134,'range':_0x5276aa},_0x3d1349);if(_0x392fef){let {redos:_0x208111,undos:_0x3207dd}=this[_0xfe00e7(0x19f)]({'fromUnitId':_0x5e0800,'fromSubUnitId':_0x212a57,'toUnitId':_0x4d0e27,'toSubUnitId':_0x404f5b,'drawing':_0x234fd8,'newTransforms':_0x2ff2e6});_0x4ae4d6[_0xfe00e7(0x288)](..._0x208111),_0x13d7b4[_0xfe00e7(0x288)](..._0x3207dd);continue;}let {redos:_0x596ad2,undos:_0x439a08}=this['_generateCopyPasteMutations']({'toUnitId':_0x4d0e27,'toSubUnitId':_0x404f5b,'drawing':_0x234fd8,'newTransforms':_0x2ff2e6,'newDrawingId':_0x5c4b46['get'](_0x1f3158),'idMap':_0x5c4b46});_0x4ae4d6[_0xfe00e7(0x288)](..._0x596ad2),_0x13d7b4[_0xfe00e7(0x288)](..._0x439a08);}return{'redos':_0x4ae4d6,'undos':_0x13d7b4};}[_0x541acc(0x19f)](_0x5ec95f){const _0x174e0f=_0x541acc;let {fromUnitId:_0x45aa07,fromSubUnitId:_0x347470,toUnitId:_0x1c2a7b,toSubUnitId:_0x4a9287,drawing:_0x483b6,newTransforms:_0x57df8c}=_0x5ec95f,_0xe272eb={..._0x483b6,'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'transform':_0x57df8c[_0x174e0f(0xc5)],'sheetTransform':_0x57df8c[_0x174e0f(0x337)]};if(_0x1c2a7b===_0x45aa07&&_0x4a9287===_0x347470){let {redo:_0x46594e,undo:_0x300e0d,objects:_0xeacbb}=this[_0x174e0f(0x15e)][_0x174e0f(0x168)]([_0xe272eb]);return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0xf8)],'op':_0x46594e,'objects':_0xeacbb}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0xf8)],'op':_0x300e0d,'objects':_0xeacbb}}]};}{let _0xd7d901=this[_0x174e0f(0x15e)][_0x174e0f(0x379)]([_0x483b6]),_0x57070e=this[_0x174e0f(0x15e)]['getBatchAddOp']([_0xe272eb]),_0x7ff3fd=this[_0x174e0f(0xff)][_0x174e0f(0x29b)](_0x483b6[_0x174e0f(0x2b7)],_0x483b6[_0x174e0f(0x32f)],_0x483b6[_0x174e0f(0x162)]);if(!_0x7ff3fd)return{'redos':[],'undos':[]};let _0x514148=_0x7ff3fd[_0x174e0f(0x259)](),_0x4e772e=JSON['parse'](JSON[_0x174e0f(0x142)](_0x7ff3fd[_0x174e0f(0x351)]()));return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'type':_0x50e51e[_0x174e0f(0x2d8)],'op':_0xd7d901[_0x174e0f(0x33f)],'objects':_0xd7d901[_0x174e0f(0x2a4)]}},{'id':_0x5543d5['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'shapeId':_0x483b6['drawingId']}},{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0x2f5)],'op':_0x57070e[_0x174e0f(0x33f)],'objects':_0x57070e['objects']}},{'id':_0x48b536['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'shapeId':_0x483b6[_0x174e0f(0x162)],'shapeType':_0x514148,'shapeData':_0x4e772e}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'type':_0x50e51e[_0x174e0f(0x2f5)],'op':_0xd7d901[_0x174e0f(0x174)],'objects':_0xd7d901['objects']}},{'id':_0x48b536['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'shapeId':_0x483b6['drawingId'],'shapeType':_0x514148,'shapeData':_0x4e772e}},{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0x2d8)],'op':_0x57070e[_0x174e0f(0x174)],'objects':_0x57070e['objects']}},{'id':_0x5543d5['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'shapeId':_0x483b6[_0x174e0f(0x162)]}}]};}}['_generateCopyPasteMutations'](_0x3a7a63){const _0xf22a32=_0x541acc;let {toUnitId:_0x2413bd,toSubUnitId:_0x1be749,drawing:_0x6a2a59,newTransforms:_0x58f8e4,newDrawingId:_0x4e1072,idMap:_0x217e78}=_0x3a7a63,_0x249f14={..._0x6a2a59,'unitId':_0x2413bd,'subUnitId':_0x1be749,'drawingId':_0x4e1072,'transform':_0x58f8e4[_0xf22a32(0xc5)],'sheetTransform':_0x58f8e4[_0xf22a32(0x337)]},{redo:_0x4148ac,undo:_0x2782dd,objects:_0x168cbe}=this[_0xf22a32(0x15e)][_0xf22a32(0x304)]([_0x249f14]),_0x38b1b3=this[_0xf22a32(0xff)][_0xf22a32(0x29b)](_0x6a2a59[_0xf22a32(0x2b7)],_0x6a2a59[_0xf22a32(0x32f)],_0x6a2a59[_0xf22a32(0x162)]);if(!_0x38b1b3)return{'redos':[],'undos':[]};let _0x2d8a29=_0x38b1b3['getShapeType'](),_0x32bac6=JSON[_0xf22a32(0x25c)](JSON[_0xf22a32(0x142)](_0x38b1b3[_0xf22a32(0x351)]()));if(_0x32bac6['relation']){var _0xc0f62b,_0x463538;let _0x30d219=(_0xc0f62b=_0x32bac6[_0xf22a32(0x2ad)]['from'])==null?void 0x0:_0xc0f62b[_0xf22a32(0x266)],_0x382d75=(_0x463538=_0x32bac6[_0xf22a32(0x2ad)]['to'])==null?void 0x0:_0x463538[_0xf22a32(0x266)],_0x3d0300=!_0x30d219||_0x217e78[_0xf22a32(0x1bd)](_0x30d219),_0x4514c5=!_0x382d75||_0x217e78[_0xf22a32(0x1bd)](_0x382d75);_0x3d0300&&_0x30d219&&_0x32bac6[_0xf22a32(0x2ad)]['from']?_0x32bac6[_0xf22a32(0x2ad)]['from']={..._0x32bac6['relation'][_0xf22a32(0x130)],'shapeId':_0x217e78[_0xf22a32(0x1e8)](_0x30d219)}:_0x32bac6[_0xf22a32(0x2ad)][_0xf22a32(0x130)]=void 0x0,_0x4514c5&&_0x382d75&&_0x32bac6[_0xf22a32(0x2ad)]['to']?_0x32bac6[_0xf22a32(0x2ad)]['to']={..._0x32bac6['relation']['to'],'shapeId':_0x217e78['get'](_0x382d75)}:_0x32bac6[_0xf22a32(0x2ad)]['to']=void 0x0;}return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'type':_0x50e51e[_0xf22a32(0x2f5)],'op':_0x4148ac,'objects':_0x168cbe}},{'id':_0x48b536['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'shapeId':_0x4e1072,'shapeType':_0x2d8a29,'shapeData':_0x32bac6}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'type':_0x50e51e['REMOVE'],'op':_0x2782dd,'objects':_0x168cbe}},{'id':_0x5543d5['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'shapeId':_0x4e1072}}]};}[_0x541acc(0x248)](_0x18b3bb,_0x2571ae,_0x372686,_0x488adc){const _0x492405=_0x541acc;let {range:_0x23bd9d,skeleton:_0x489144}=_0x2571ae,{range:_0x39f0d4,skeleton:_0x5f2af1}=_0x372686,{transform:_0x24613b,sheetTransform:_0x2bfd41}=_0x18b3bb,_0x46d5bb={..._0x24613b};if(_0x23bd9d){let _0x4a6b48=_0x307ceb(_0x489144,_0x23bd9d),_0x74a6c2=_0x307ceb(_0x5f2af1,_0x39f0d4);if(_0x4a6b48&&_0x74a6c2){let _0x78dde9=_0x74a6c2['startX']-_0x4a6b48[_0x492405(0x233)],_0x548abc=_0x74a6c2['startY']-_0x4a6b48[_0x492405(0x11a)];_0x46d5bb['left']=(_0x46d5bb['left']??0x0)+_0x78dde9,_0x46d5bb[_0x492405(0x2f1)]=(_0x46d5bb[_0x492405(0x2f1)]??0x0)+_0x548abc;}}else{let _0x2026da=_0x307ceb(_0x5f2af1,_0x39f0d4);if(_0x488adc&&_0x2026da){let _0x5dbddd=(_0x46d5bb[_0x492405(0x1d7)]??0x0)-_0x488adc[_0x492405(0x1d7)],_0x32c1ae=(_0x46d5bb[_0x492405(0x2f1)]??0x0)-_0x488adc['top'];_0x46d5bb['left']=_0x2026da[_0x492405(0x233)]+_0x5dbddd,_0x46d5bb[_0x492405(0x2f1)]=_0x2026da[_0x492405(0x11a)]+_0x32c1ae;}else _0x46d5bb[_0x492405(0x1d7)]=_0x2026da==null?void 0x0:_0x2026da[_0x492405(0x233)],_0x46d5bb[_0x492405(0x2f1)]=_0x2026da==null?void 0x0:_0x2026da['startY'];}return{'transform':_0x46d5bb,'sheetTransform':_0x2bed6e(_0x46d5bb,_0x5f2af1)??_0x2bfd41};}};fa=X([Y(0x0,_0x53ba9c(_0xfe3e0a)),Y(0x1,_0x53ba9c(_0x1b5861)),Y(0x2,_0x53ba9c(_0x4202dc)),Y(0x3,_0x53ba9c(_0x27864b)),Y(0x4,_0x53ba9c(_0x87ae7f))],fa);var pa=class extends _0x17e18a{constructor(_0x12b5b2,_0x38dcf5){const _0x40735d=_0x541acc;super(_0x12b5b2,_0x38dcf5),q(this,_0x40735d(0x37d),null),q(this,_0x40735d(0x341),null),q(this,_0x40735d(0x1de),null),q(this,_0x40735d(0x285),null),q(this,_0x40735d(0x299),!0x1),_0x38dcf5&&this[_0x40735d(0x1d3)](_0x38dcf5);}[_0x541acc(0x105)](){const _0x13e6c2=_0x541acc;return{'unitId':this[_0x13e6c2(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x13e6c2(0x37d)]};}['setShapeProps'](_0x323900){const _0x49e2fb=_0x541acc;_0x323900[_0x49e2fb(0x266)]!==void 0x0&&(this[_0x49e2fb(0x37d)]=_0x323900['shapeId']),_0x323900['unitId']!==void 0x0&&(this[_0x49e2fb(0x1de)]=_0x323900[_0x49e2fb(0x2b7)]),_0x323900[_0x49e2fb(0x32f)]!==void 0x0&&(this[_0x49e2fb(0x285)]=_0x323900[_0x49e2fb(0x32f)]),_0x323900[_0x49e2fb(0x260)]!==void 0x0&&(this[_0x49e2fb(0x299)]=_0x323900[_0x49e2fb(0x260)]),this[_0x49e2fb(0x26e)]({'width':_0x323900['width'],'height':_0x323900['height']});}['_draw'](_0x306a96){const _0x32fbab=_0x541acc;_0x4c063a[_0x32fbab(0xb1)](_0x306a96,{'radius':_0x1b524b['cxnPointRadius'],'fill':_0x1b524b[_0x32fbab(0x2d1)],'stroke':_0x1b524b[_0x32fbab(0x221)],'strokeWidth':_0x1b524b[_0x32fbab(0x1d5)],'evented':!0x0});}};let ma=class extends _0x50d788{constructor(_0x341c5a,_0x595d30,_0x1c919e,_0x3c0070,_0x32ac30,_0x35066d,_0x1e01c2,_0x2a9ec8){const _0x53db3c=_0x541acc;super(),this[_0x53db3c(0x226)]=_0x341c5a,this['_commandService']=_0x595d30,this['_renderManagerService']=_0x1c919e,this[_0x53db3c(0x1b6)]=_0x3c0070,this[_0x53db3c(0x35a)]=_0x32ac30,this[_0x53db3c(0x1da)]=_0x35066d,this[_0x53db3c(0x343)]=_0x1e01c2,this[_0x53db3c(0x27d)]=_0x2a9ec8,q(this,_0x53db3c(0x26d),void 0x0),q(this,_0x53db3c(0x1de),void 0x0),q(this,_0x53db3c(0x285),void 0x0),q(this,'_connectorObjects',[]),q(this,_0x53db3c(0x2dc),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x53db3c(0x113),void 0x0),q(this,_0x53db3c(0x16f),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0x53db3c(0x10e),!0x1),q(this,_0x53db3c(0x34e),void 0x0),q(this,_0x53db3c(0x1bc),void 0x0),q(this,_0x53db3c(0xb9),null),this[_0x53db3c(0x284)]();}[_0x541acc(0x284)](){const _0x2bc788=_0x541acc;this[_0x2bc788(0x34a)](),this[_0x2bc788(0xe9)]();}[_0x541acc(0x202)](){const _0x143928=_0x541acc;if(!this['_unitId']||!this[_0x143928(0x285)]||!this['_activeShapeId'])return;let _0x18fc00={'unitId':this[_0x143928(0x1de)],'subUnitId':this[_0x143928(0x285)],'drawingId':this['_activeShapeId']},{transform:_0x43200a}=this[_0x143928(0x1b6)]['getDrawingByParam'](_0x18fc00);if(_0x43200a)return{'left':_0x43200a[_0x143928(0x1d7)]||0x0,'top':_0x43200a['top']||0x0,'width':_0x43200a['width']||0x0,'height':_0x43200a['height']||0x0,'flipX':_0x43200a[_0x143928(0x269)]||!0x1,'flipY':_0x43200a[_0x143928(0x143)]||!0x1,'angle':_0x43200a[_0x143928(0xcf)]};}[_0x541acc(0x155)](){const _0x1e22ad=_0x541acc;if(this[_0x1e22ad(0x1de)]===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4a1c6c=this[_0x1e22ad(0x232)]['getRenderUnitById'](this[_0x1e22ad(0x1de)]);if(!_0x4a1c6c||!_0x4a1c6c[_0x1e22ad(0x320)](_0x3ea870)['getCurrentSkeleton']())return;let {scene:_0x2e4a8b}=_0x4a1c6c,_0x2f3f8e=this['_getDrawingRect']();if(!_0x2f3f8e)return;let _0x236f5f=this[_0x1e22ad(0x1da)][_0x1e22ad(0x29b)](this[_0x1e22ad(0x1de)],this[_0x1e22ad(0x285)],this[_0x1e22ad(0x26d)]);if(!_0x236f5f||!_0x3fd6c6(_0x236f5f[_0x1e22ad(0x259)]()))return;let _0x2bffd0=_0x236f5f['getConnectorLinePoints']();if(_0x2bffd0[_0x1e22ad(0xf6)]<0x2)return;let _0x2a7b82=new _0x5ed0a3(_0x2f3f8e),_0x125003=_0x2bffd0[0x0],_0x3e1b09=_0x2bffd0[_0x2bffd0[_0x1e22ad(0xf6)]-0x1],_0x201aeb=_0x2a7b82['localToWorld'](_0x125003),_0x542da2=_0x2a7b82['localToWorld'](_0x3e1b09);this['_addShapeConnectorHandlerObject'](_0x2e4a8b,{..._0x201aeb},!0x0),this[_0x1e22ad(0x2fb)](_0x2e4a8b,{..._0x542da2},!0x1);}['_addShapeConnectorHandlerObject'](_0x42b5f2,_0x80162f,_0x169507){const _0x3fd29d=_0x541acc;if(this[_0x3fd29d(0x26d)]===void 0x0||this['_unitId']===void 0x0||this[_0x3fd29d(0x285)]===void 0x0)return;let _0xcbd874=_0x3fd29d(0xdf)+this[_0x3fd29d(0x1de)]+'-'+this[_0x3fd29d(0x285)]+'-'+this[_0x3fd29d(0x26d)]+'-'+(_0x169507?_0x3fd29d(0x18b):_0x3fd29d(0x103)),_0xbd4dd7=_0x42b5f2[_0x3fd29d(0x13f)](_0xcbd874);if(_0xbd4dd7){_0xbd4dd7[_0x3fd29d(0x26e)]({'left':_0x80162f['x']-_0x1b524b[_0x3fd29d(0x19b)],'top':_0x80162f['y']-_0x1b524b['cxnPointRadius']});return;}let _0xcbc8a3=new pa(_0xcbd874,{'left':_0x80162f['x']-_0x1b524b[_0x3fd29d(0x19b)],'top':_0x80162f['y']-_0x1b524b[_0x3fd29d(0x19b)],'shapeId':this[_0x3fd29d(0x26d)],'unitId':this['_unitId'],'subUnitId':this[_0x3fd29d(0x285)],'isStartConnectorPoint':_0x169507,'width':_0x1b524b[_0x3fd29d(0x19b)]*0x2,'height':_0x1b524b[_0x3fd29d(0x19b)]*0x2,'zIndex':_0x5cbc31+0x1,'evented':!0x0});this['_connectorObjects'][_0x3fd29d(0x288)](_0xcbc8a3),this[_0x3fd29d(0x306)](_0xcbc8a3,_0x42b5f2,_0x169507),_0x42b5f2[_0x3fd29d(0x274)](_0xcbc8a3,_0x5cbc31+0x1);}[_0x541acc(0x216)](_0x299987,_0x177599){const _0x40a9d4=_0x541acc;var _0x5bdf9e;let _0x2f1342={'x':0x0,'y':0x0};if(!_0x299987||!_0x177599)return _0x2f1342;let _0xcc203=this[_0x40a9d4(0x232)][_0x40a9d4(0x365)](_0x299987);if(!_0xcc203||!_0xcc203[_0x40a9d4(0x320)](_0x3ea870)['getSkeleton'](_0x177599))return _0x2f1342;let _0x8dd0f3=_0xcc203[_0x40a9d4(0x320)](_0x2a747e),_0x3f3253=_0x8dd0f3==null?void 0x0:_0x8dd0f3['getCurrentScrollState']();if(!_0x3f3253)return _0x2f1342;let _0x54c4bf=(_0x5bdf9e=this[_0x40a9d4(0x35a)][_0x40a9d4(0xca)](_0x299987))==null?void 0x0:_0x5bdf9e[_0x40a9d4(0x10f)](_0x177599);if(!_0x54c4bf)return _0x2f1342;let _0x46a5b3=_0x1bffb4(_0x3f3253[_0x40a9d4(0xc3)],_0x3f3253[_0x40a9d4(0x151)],_0xcc203[_0x40a9d4(0x34c)],_0x54c4bf);return _0x46a5b3?{'x':_0x46a5b3['viewportScrollX'],'y':_0x46a5b3[_0x40a9d4(0x34d)]}:_0x2f1342;}['_getZoomRatio'](_0x2f740d,_0x155bea){const _0x41e3df=_0x541acc;var _0xa8100d;let _0x46dec7=(_0xa8100d=this[_0x41e3df(0x35a)][_0x41e3df(0xca)](_0x2f740d))==null?void 0x0:_0xa8100d[_0x41e3df(0x10f)](_0x155bea);return(_0x46dec7==null?void 0x0:_0x46dec7[_0x41e3df(0x37b)]())??0x1;}[_0x541acc(0x35e)](_0x884877,_0x9bbb47,_0x3aa005,_0x1cb1ca,_0x1925c2){const _0x3393a4=_0x541acc;this[_0x3393a4(0x34e)]['unsubscribe'](),this[_0x3393a4(0x1bc)][_0x3393a4(0x1ab)](),this[_0x3393a4(0x343)][_0x3393a4(0x25a)]();let _0x562236=this[_0x3393a4(0xb9)];this[_0x3393a4(0x27d)][_0x3393a4(0x2b4)]();let _0x26e01e=this[_0x3393a4(0x216)](this['_unitId'],this[_0x3393a4(0x285)]),_0x15ad7a=this[_0x3393a4(0x16c)](this[_0x3393a4(0x1de)],this[_0x3393a4(0x285)]),_0x182773={'x':_0x3aa005[_0x3393a4(0x1e6)]/_0x15ad7a+_0x26e01e['x'],'y':_0x3aa005[_0x3393a4(0x1e3)]/_0x15ad7a+_0x26e01e['y']},_0x282cc4=_0x562236?_0x562236[_0x3393a4(0x37f)]:_0x182773,_0x42241f=_0x1cb1ca?this[_0x3393a4(0x113)][_0x3393a4(0x2ea)]():this[_0x3393a4(0x113)][_0x3393a4(0x16a)](),_0x317de5=this['_activeShapeModel'][_0x3393a4(0x259)]();_0x42241f?this[_0x3393a4(0x27f)](_0x42241f,_0x282cc4,_0x1cb1ca,_0x562236,_0x1925c2):this[_0x3393a4(0x230)](_0x9bbb47,_0x282cc4,_0x1cb1ca,_0x562236,_0x1925c2,_0x317de5),this[_0x3393a4(0x16f)]=!0x1,this[_0x3393a4(0x10e)]=!0x1,this[_0x3393a4(0xb9)]=null,_0x884877[_0x3393a4(0x375)]();}[_0x541acc(0x230)](_0x1b5664,_0x352509,_0x4a1e86,_0x46e404,_0x119713,_0x440c33){const _0x5ca38e=_0x541acc;let _0x4ac4b7=_0x440c33===_0x29a3a1['Line']||_0x440c33===_0x29a3a1[_0x5ca38e(0x35b)],_0x4af01a=_0x4a1e86?_0x352509:_0x1b5664,_0x2a519c=_0x4a1e86?_0x1b5664:_0x352509,_0xe90da=this['_activeShapeModel'][_0x5ca38e(0xd8)](),_0x1e6d22=this['_activeShapeModel'][_0x5ca38e(0x259)](),_0x3243cc=_0x1b6450(_0x1e6d22),_0x59cea3=_0x5ed0a3[_0x5ca38e(0x18d)](_0xe90da,_0x3243cc),_0x1a08b5=_0x4ac4b7?_0x5ed0a3[_0x5ca38e(0x112)](_0x4af01a,_0x2a519c):_0x5ed0a3[_0x5ca38e(0x17a)](_0x1b5664,_0x352509,_0x4a1e86,_0x59cea3);_0x46e404?this[_0x5ca38e(0xb8)](_0x1a08b5,_0x46e404,_0x4a1e86,_0x119713):this['_executeResizeCommand'](_0x1a08b5,_0x119713);}[_0x541acc(0x27f)](_0x1a09fb,_0x586531,_0x39f70c,_0x4992de,_0x132608){const _0x4574f7=_0x541acc;let _0x45869a=this[_0x4574f7(0x263)](_0x1a09fb);if(!_0x45869a)return;let _0x3694b6=_0x4992de?_0x4992de[_0x4574f7(0xcf)]:this[_0x4574f7(0x23a)](_0x45869a[_0x4574f7(0x172)],_0x586531),_0x2c8b84;if(_0x4992de){let _0x5417af=this[_0x4574f7(0x1b6)]['getDrawingByParam']({'unitId':_0x4992de['unitId'],'subUnitId':_0x4992de[_0x4574f7(0x32f)],'drawingId':_0x4992de[_0x4574f7(0x266)]});if(_0x5417af!=null&&_0x5417af[_0x4574f7(0xc5)]){let {left:_0x1bc546=0x0,top:_0x361cd3=0x0,width:_0x3a2e49=0x0,height:_0x21faf3=0x0,angle:_0x36519c}=_0x5417af['transform'];_0x2c8b84=_0x1730d0({'left':_0x1bc546,'top':_0x361cd3,'width':_0x3a2e49,'height':_0x21faf3},_0x36519c||0x0);}else _0x2c8b84={'left':_0x586531['x'],'top':_0x586531['y'],'width':0x0,'height':0x0};}else _0x2c8b84={'left':_0x586531['x'],'top':_0x586531['y'],'width':0x0,'height':0x0};let _0x2e6a3c={'point':_0x586531,'angle':_0x3694b6,'bounds':_0x2c8b84},_0x5e782c=_0x39f70c?_0x2e6a3c:_0x45869a,_0x2b9ca3=_0x39f70c?_0x45869a:_0x2e6a3c,_0x1f5b46=this[_0x4574f7(0x113)][_0x4574f7(0x259)](),_0x52df53=_0x2ed419(_0x5e782c,_0x2b9ca3,_0x1f5b46);this['_activeShapeModel'][_0x4574f7(0x28a)]();let _0x3aee30=_0x5e7985(_0x52df53,_0x1f5b46);_0x4992de?this[_0x4574f7(0x149)](_0x3aee30,_0x4992de,_0x1a09fb,_0x39f70c,_0x132608):this[_0x4574f7(0x295)](_0x3aee30,_0x1a09fb,_0x39f70c,_0x132608);}[_0x541acc(0xb8)](_0x40fbc7,_0x57b854,_0x9c124d,_0x260a6e){const _0x5a5655=_0x541acc;let _0x15596e=this[_0x5a5655(0x113)][_0x5a5655(0x351)]()[_0x5a5655(0x2ad)],_0x31c862={..._0x15596e},_0x2209b1={'shapeId':_0x57b854[_0x5a5655(0x266)],'cxnIndex':_0x57b854[_0x5a5655(0x212)]};_0x9c124d?_0x31c862[_0x5a5655(0x130)]=_0x2209b1:_0x31c862['to']=_0x2209b1;let _0x1fd4d6=this[_0x5a5655(0x113)][_0x5a5655(0x259)](),_0x1b9f6a=_0x5e7985(_0x40fbc7[_0x5a5655(0x313)],_0x1fd4d6),_0x3b2a4c={'unitId':this[_0x5a5655(0x1de)],'subUnitId':this[_0x5a5655(0x285)],'connectorShapeId':this[_0x5a5655(0x26d)],'width':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x27b)],'height':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x35c)],'left':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x1d7)],'top':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x2f1)],'flipX':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x269)]||!0x1,'flipY':_0x40fbc7[_0x5a5655(0x198)]['flipY']||!0x1,'newAdjustValues':_0x1b9f6a[_0x5a5655(0x35f)],'oldAdjustValues':_0x260a6e,'oldRelation':_0x15596e,'newRelation':_0x31c862,'newLineType':_0x1b9f6a['lineType'],'oldLineType':_0x1fd4d6};this['_commandService'][_0x5a5655(0x1b0)](_0x499afe['id'],_0x3b2a4c);}[_0x541acc(0x125)](_0x497acc,_0x1751bd){const _0x13cae0=_0x541acc;let _0x4e3c61=this[_0x13cae0(0x113)][_0x13cae0(0x259)](),_0x213652=_0x5e7985(_0x497acc['worldPoints'],_0x4e3c61),_0x2fb49b={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this[_0x13cae0(0x26d)],'width':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x27b)],'height':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x35c)],'left':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x1d7)],'top':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x2f1)],'flipX':_0x497acc['worldRect'][_0x13cae0(0x269)]||!0x1,'flipY':_0x497acc[_0x13cae0(0x198)]['flipY']||!0x1,'angle':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0xcf)]||0x0,'newAdjustValues':_0x213652[_0x13cae0(0x35f)],'oldAdjustValues':_0x1751bd,'newLineType':_0x213652['lineType'],'oldLineType':_0x4e3c61};this['_commandService']['executeCommand'](_0xfaf437['id'],_0x2fb49b);}['_executeConnectedRouteConnectionCommand'](_0x4f8cf1,_0xf79dce,_0x4df52b,_0x303cdc,_0x10e3ce){const _0x5a5d9a=_0x541acc;let _0x524457=this[_0x5a5d9a(0x113)][_0x5a5d9a(0x351)]()[_0x5a5d9a(0x2ad)],_0x5a5e41={..._0x524457},_0x4d4903={'shapeId':_0xf79dce['shapeId'],'cxnIndex':_0xf79dce[_0x5a5d9a(0x212)]};_0x303cdc?(_0x5a5e41['from']=_0x4d4903,_0x5a5e41['to']=_0x4df52b):(_0x5a5e41[_0x5a5d9a(0x130)]=_0x4df52b,_0x5a5e41['to']=_0x4d4903);let _0x5b21b2={'unitId':this[_0x5a5d9a(0x1de)],'subUnitId':this[_0x5a5d9a(0x285)],'connectorShapeId':this[_0x5a5d9a(0x26d)],'width':_0x4f8cf1[_0x5a5d9a(0x198)]['width'],'height':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x35c)],'left':_0x4f8cf1['worldRect']['left'],'top':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x2f1)],'flipX':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x269)]||!0x1,'flipY':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x143)]||!0x1,'oldAdjustValues':_0x10e3ce,'newAdjustValues':_0x4f8cf1[_0x5a5d9a(0x35f)],'newLineType':_0x4f8cf1[_0x5a5d9a(0xef)],'rotation':_0x4f8cf1[_0x5a5d9a(0xbc)],'oldRelation':_0x524457,'newRelation':_0x5a5e41};this['_commandService'][_0x5a5d9a(0x1b0)](_0x499afe['id'],_0x5b21b2);}[_0x541acc(0x295)](_0x474a79,_0x3a0826,_0x4fa44c,_0x114270){const _0x3a8a21=_0x541acc;let _0x593471=this[_0x3a8a21(0x113)]['getShapeData']()[_0x3a8a21(0x2ad)],_0x1e5ff8={};_0x4fa44c?(_0x1e5ff8['to']=_0x3a0826,_0x1e5ff8[_0x3a8a21(0x130)]=void 0x0):(_0x1e5ff8[_0x3a8a21(0x130)]=_0x3a0826,_0x1e5ff8['to']=void 0x0);let _0x2dbd86={'unitId':this[_0x3a8a21(0x1de)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x3a8a21(0x26d)],'width':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x27b)],'height':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x35c)],'left':_0x474a79[_0x3a8a21(0x198)]['left'],'top':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x2f1)],'flipX':_0x474a79[_0x3a8a21(0x198)]['flipX']||!0x1,'flipY':_0x474a79['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x114270,'newAdjustValues':_0x474a79[_0x3a8a21(0x35f)],'newLineType':_0x474a79[_0x3a8a21(0xef)],'rotation':_0x474a79[_0x3a8a21(0xbc)],'oldRelation':_0x593471,'newRelation':_0x1e5ff8};this[_0x3a8a21(0xdc)][_0x3a8a21(0x1b0)](_0x499afe['id'],_0x2dbd86);}['_attachConnectorObjectEvent'](_0x12c023,_0x45a4ab,_0x4f6056){const _0x810f00=_0x541acc;this[_0x810f00(0x328)](_0x183b07(_0x12c023[_0x810f00(0x36a)][_0x810f00(0x1e2)]((_0x5bf242,_0x237377)=>{const _0x3dbcc8=_0x810f00;let _0x5028b3=_0x12c023[_0x3dbcc8(0x105)]();if(this[_0x3dbcc8(0x113)]=this[_0x3dbcc8(0x1da)]['getShapeModel'](_0x5028b3[_0x3dbcc8(0x2b7)],_0x5028b3[_0x3dbcc8(0x32f)],_0x5028b3[_0x3dbcc8(0x162)]),!this[_0x3dbcc8(0x113)])return;let _0x3d5b9c={};this[_0x3dbcc8(0x113)][_0x3dbcc8(0x196)]()[_0x3dbcc8(0x1ba)](_0xfb3592=>{const _0x2aa6bb=_0x3dbcc8;let _0xbc0b0d=this[_0x2aa6bb(0x113)][_0x2aa6bb(0x2c6)](_0xfb3592);_0xbc0b0d!==void 0x0&&(_0x3d5b9c[_0xfb3592]=_0xbc0b0d);});let _0x5f1c90=this['_getDrawingRect']();if(!_0x5f1c90)return;this[_0x3dbcc8(0x2dc)]={..._0x5f1c90};let _0x232721=new _0x5ed0a3(this['_baseDrawingRect']),_0x2aa9c7=_0x191ead({'unitId':this[_0x3dbcc8(0x1de)],'subUnitId':this[_0x3dbcc8(0x285)],'drawingId':this[_0x3dbcc8(0x26d)]}),_0xefe00=_0x45a4ab['getObjectIncludeInGroup'](_0x2aa9c7);this[_0x3dbcc8(0x16f)]=!0x0,_0x45a4ab[_0x3dbcc8(0x359)](),this['_sheetBasicShapeConnectionPointController'][_0x3dbcc8(0x18e)](_0x45a4ab,this[_0x3dbcc8(0x1de)],this[_0x3dbcc8(0x285)],this['_activeShapeId']),this[_0x3dbcc8(0xb9)]=null;let _0xd7cca=this[_0x3dbcc8(0x113)][_0x3dbcc8(0xd8)](),_0x3f4a60=_0xd7cca[0x0],_0x43bcad=_0xd7cca[_0xd7cca[_0x3dbcc8(0xf6)]-0x1],_0x169619=_0x4f6056?_0x232721['localToWorld'](_0x43bcad):_0x232721[_0x3dbcc8(0xfb)](_0x3f4a60);this[_0x3dbcc8(0x34e)]=_0x45a4ab[_0x3dbcc8(0x2af)][_0x3dbcc8(0x1e2)]((_0x4c93be,_0x4109c5)=>{const _0x5862ff=_0x3dbcc8;if(!this[_0x5862ff(0x16f)]||!this['_activeShapeModel'])return;this[_0x5862ff(0x10e)]||=(this[_0x5862ff(0x343)][_0x5862ff(0x129)](),this['_activeShapeModel'][_0x5862ff(0x31a)](),!0x0);let _0x40ba6e=this['_getScrollInfo'](this[_0x5862ff(0x1de)],this[_0x5862ff(0x285)]),_0x1d3208=this[_0x5862ff(0x16c)](this['_unitId'],this['_subUnitId']),_0x3878b5={'x':_0x4c93be[_0x5862ff(0x1e6)]/_0x1d3208+_0x40ba6e['x'],'y':_0x4c93be['offsetY']/_0x1d3208+_0x40ba6e['y']},_0x3ef93c=this[_0x5862ff(0x27d)][_0x5862ff(0x108)](_0x3878b5);if(_0x3ef93c){let {shapeId:_0x4bb81b,unitId:_0x206eb4,subUnitId:_0x460873}=_0x3ef93c;if(_0x4bb81b&&_0x206eb4&&_0x460873){let _0x25695b=_0x191ead({'unitId':_0x206eb4,'subUnitId':_0x460873,'drawingId':_0x4bb81b});_0x3ef93c[_0x5862ff(0xcf)]=(_0x45a4ab[_0x5862ff(0x13f)](_0x25695b)[_0x5862ff(0xcf)]||0x0)+_0x3ef93c[_0x5862ff(0xcf)];}}this[_0x5862ff(0xb9)]=_0x3ef93c;let _0x5c1609=_0x4f6056?this[_0x5862ff(0x113)][_0x5862ff(0x2ea)]():this['_activeShapeModel'][_0x5862ff(0x16a)]();_0x5c1609?this[_0x5862ff(0x116)](_0x5c1609,_0x3878b5,_0x4f6056,_0xefe00,_0x12c023):this[_0x5862ff(0x1ec)](_0x3878b5,_0x169619,_0x4f6056,_0xefe00,_0x12c023);}),this[_0x3dbcc8(0x1bc)]=_0x45a4ab['onPointerUp$'][_0x3dbcc8(0x1e2)]((_0x57e094,_0x5c072a)=>{const _0x522402=_0x3dbcc8;this[_0x522402(0x35e)](_0x45a4ab,_0x169619,_0x57e094,_0x4f6056,_0x3d5b9c);}),_0x237377[_0x3dbcc8(0x1a5)]();})));}[_0x541acc(0x268)](_0x46e1b9,_0x1e136d,_0x5a9b2c){const _0x503791=_0x541acc;let _0x497d6b=this[_0x503791(0x1da)][_0x503791(0x136)](_0x46e1b9,_0x1e136d,_0x5a9b2c);if(!_0x497d6b||_0x497d6b['length']===0x0)return;let _0x3b256d=this[_0x503791(0x232)][_0x503791(0x365)](_0x46e1b9);if(!_0x3b256d)return;let {scene:_0x13c621}=_0x3b256d;for(let _0x2b16ca of _0x497d6b){let _0x127ce2=_0x2b16ca['lineShapeId'],_0x232d53=this[_0x503791(0x1da)]['getShapeModel'](_0x46e1b9,_0x1e136d,_0x127ce2);if(!_0x232d53)continue;let _0x2c2a02=_0x232d53[_0x503791(0x16a)](),_0x5f3ebd=_0x232d53[_0x503791(0x2ea)](),_0x423ba9=(_0x2c2a02==null?void 0x0:_0x2c2a02[_0x503791(0x266)])===_0x5a9b2c,_0x326b00=_0x191ead({'unitId':_0x46e1b9,'subUnitId':_0x1e136d,'drawingId':_0x127ce2}),_0x33f983=_0x13c621[_0x503791(0x13f)](_0x326b00);if(!_0x33f983)continue;let _0x3feffa=this[_0x503791(0x1b6)][_0x503791(0xb2)]({'unitId':_0x46e1b9,'subUnitId':_0x1e136d,'drawingId':_0x127ce2});_0x3feffa!=null&&_0x3feffa[_0x503791(0xc5)]&&(_0x2c2a02&&_0x5f3ebd?this['_rerouteConnectorLine'](_0x46e1b9,_0x1e136d,_0x127ce2,_0x232d53,_0x2c2a02,_0x5f3ebd,_0x33f983):this[_0x503791(0x312)](_0x46e1b9,_0x1e136d,_0x127ce2,_0x232d53,_0x423ba9?_0x2c2a02:_0x5f3ebd,_0x423ba9,_0x3feffa,_0x33f983));}}['_rerouteConnectorLine'](_0x4202e8,_0x1f2c42,_0x19a134,_0x42cd70,_0x13f1b6,_0x5cc4f4,_0x21a863){const _0x28a941=_0x541acc;let _0x2fc35f=this[_0x28a941(0x1de)],_0x57970c=this[_0x28a941(0x285)];this[_0x28a941(0x1de)]=_0x4202e8,this[_0x28a941(0x285)]=_0x1f2c42;let _0x1afca=this[_0x28a941(0x263)](_0x13f1b6),_0x56f449=this[_0x28a941(0x263)](_0x5cc4f4);if(this['_unitId']=_0x2fc35f,this[_0x28a941(0x285)]=_0x57970c,!_0x1afca||!_0x56f449)return;let _0x1197e8=_0x42cd70[_0x28a941(0x259)](),_0x2bbd56=_0x2ed419(_0x1afca,_0x56f449,_0x1197e8);_0x2bbd56&&_0x42cd70[_0x28a941(0x1e0)](_0x2bbd56);let _0x2ad0fb=_0x5e7985(_0x2bbd56,_0x1197e8);_0x2ad0fb['lineType']!==_0x1197e8&&_0x42cd70[_0x28a941(0x2c2)](_0x2ad0fb[_0x28a941(0xef)]),_0x42cd70[_0x28a941(0x31a)]();for(let [_0x4d29b5,_0x16f889]of Object[_0x28a941(0x17b)](_0x2ad0fb[_0x28a941(0x35f)]))_0x42cd70[_0x28a941(0x134)](_0x4d29b5,_0x16f889);_0x42cd70[_0x28a941(0x26b)]({'width':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x27b)],'height':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x35c)]}),_0x21a863[_0x28a941(0x26e)]({'flipX':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x269)],'flipY':_0x2ad0fb[_0x28a941(0x198)]['flipY'],'left':_0x2ad0fb[_0x28a941(0x198)]['left'],'top':_0x2ad0fb[_0x28a941(0x198)]['top'],'width':_0x2ad0fb[_0x28a941(0x198)]['width'],'height':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x35c)],'angle':_0x2ad0fb[_0x28a941(0xbc)]}),_0x42cd70[_0x28a941(0x28a)]();}[_0x541acc(0x312)](_0x362690,_0x507e2e,_0x4bb8b8,_0x2a9cc6,_0x365c43,_0x3dd1f9,_0xee1cb7,_0x58c51c){const _0x56d2fd=_0x541acc;let _0x38fdf7=this[_0x56d2fd(0x1de)],_0x2828f6=this[_0x56d2fd(0x285)];this['_unitId']=_0x362690,this[_0x56d2fd(0x285)]=_0x507e2e;let _0x293332=this[_0x56d2fd(0x263)](_0x365c43);if(this['_unitId']=_0x38fdf7,this[_0x56d2fd(0x285)]=_0x2828f6,!_0x293332)return;let {left:_0x13dfcf=0x0,top:_0x53c415=0x0,width:_0x36fe86=0x0,height:_0x9e3dc1=0x0,flipX:_0x358926=!0x1,flipY:_0x1b3520=!0x1}=_0xee1cb7['transform'],_0x44ad69=_0x2a9cc6['getConnectorLinePoints']();if(_0x44ad69[_0x56d2fd(0xf6)]<0x2)return;let _0x3fa90b=new _0x5ed0a3({'left':_0x13dfcf,'top':_0x53c415,'width':_0x36fe86,'height':_0x9e3dc1,'flipX':_0x358926,'flipY':_0x1b3520}),_0x5f0baa=_0x3dd1f9?_0x44ad69[_0x44ad69[_0x56d2fd(0xf6)]-0x1]:_0x44ad69[0x0],_0x564828=_0x3fa90b[_0x56d2fd(0xfb)](_0x5f0baa),_0x143c5e=_0x5ed0a3['computeConnectorResizeLayout'](_0x564828,_0x293332['point'],!_0x3dd1f9);_0x58c51c[_0x56d2fd(0x26e)]({'flipX':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x269)],'flipY':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x143)],'left':_0x143c5e[_0x56d2fd(0x198)]['left'],'top':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x2f1)],'width':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x27b)],'height':_0x143c5e[_0x56d2fd(0x198)]['height'],'angle':_0x143c5e[_0x56d2fd(0x198)]['angle']}),_0x58c51c['makeDirty'](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x26a1e5=_0x541acc;this[_0x26a1e5(0x1c3)]['length']!==0x0&&(this[_0x26a1e5(0x1c3)][_0x26a1e5(0x1ba)](_0x52b062=>{const _0xb67fe=_0x26a1e5;_0x52b062[_0xb67fe(0x1ae)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x2301a8=_0x541acc;let _0x4f7ba1=this[_0x2301a8(0x35a)]['getCurrentTypeOfUnit$'](_0x35cbcc[_0x2301a8(0x164)]);this[_0x2301a8(0x328)](_0x4f7ba1[_0x2301a8(0x261)](_0x4a21b4(_0xe31f6=>_0xe31f6?_0xe31f6['activeSheet$']['pipe'](_0x4a21b4(_0x560921=>{const _0x44f1b8=_0x2301a8;if(!_0x560921)return _0x2a9ebe;let _0x520878=_0xe31f6[_0x44f1b8(0x1f1)](),_0xbdeab6=this[_0x44f1b8(0x232)][_0x44f1b8(0x365)](_0x520878),_0x57e224=_0xbdeab6==null?void 0x0:_0xbdeab6[_0x44f1b8(0x34c)];return _0x57e224?_0x589e24(_0x57e224):_0x2a9ebe;})):_0x2a9ebe))['subscribe'](_0x1c65a3=>{const _0x5103d7=_0x2301a8;let _0x2f8168=_0x1c65a3[_0x5103d7(0x322)]();this[_0x5103d7(0x328)](_0x1c65a3[_0x5103d7(0x2af)][_0x5103d7(0x1e2)](_0x43a66a=>{const _0x609905=_0x5103d7;this['_isDrawingShapePointDown']&&this[_0x609905(0x26d)]&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x2f8168[_0x5103d7(0xfa)]['subscribe'](_0x3e2e62=>{const _0x257dc4=_0x5103d7;let {objects:_0x537b10}=_0x3e2e62;this[_0x257dc4(0x1b3)](),_0x537b10!==null&&_0x537b10['size']===0x1&&_0x537b10[_0x257dc4(0x370)]()[_0x257dc4(0x2d4)]()[_0x257dc4(0x156)]instanceof J&&(this[_0x257dc4(0xd5)]=!0x0);})),this['disposeWithMe'](_0x2f8168[_0x5103d7(0x2b8)][_0x5103d7(0x36d)](_0x32af60=>{const _0x535164=_0x5103d7;this[_0x535164(0xd5)]&&this[_0x535164(0x1b3)]();})),this[_0x5103d7(0x328)](_0x1c65a3[_0x5103d7(0x2cc)][_0x5103d7(0x1e2)](()=>{const _0x18acd9=_0x5103d7;this[_0x18acd9(0xd5)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x18acd9(0x155)]());})),this[_0x5103d7(0x328)](_0x2f8168[_0x5103d7(0x1f8)][_0x5103d7(0x36d)](()=>{const _0x4589c7=_0x5103d7;this[_0x4589c7(0x1de)]&&this[_0x4589c7(0x285)]&&this[_0x4589c7(0x26d)]&&this[_0x4589c7(0x1b6)][_0x4589c7(0xb2)]({'unitId':this[_0x4589c7(0x1de)],'subUnitId':this[_0x4589c7(0x285)],'drawingId':this[_0x4589c7(0x26d)]})&&(this[_0x4589c7(0x1b3)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x541acc(0x34a)](){const _0x5e0d47=_0x541acc;this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x169)][_0x5e0d47(0x36d)](_0x38bc7f=>{const _0x554d8d=_0x5e0d47;if(_0x38bc7f[_0x554d8d(0xf6)]===0x1){let _0x3c45fa=_0x38bc7f[0x0];if(_0x3c45fa[_0x554d8d(0x2e1)]===_0x4a245a[_0x554d8d(0x1f9)]){let _0x1d0448=this['_sheetsShapeService'][_0x554d8d(0x29b)](_0x3c45fa['unitId'],_0x3c45fa[_0x554d8d(0x32f)],_0x3c45fa[_0x554d8d(0x162)]);if(_0x1d0448&&_0x3fd6c6(_0x1d0448[_0x554d8d(0x259)]())){this[_0x554d8d(0x26d)]=_0x3c45fa[_0x554d8d(0x162)],this['_unitId']=_0x3c45fa[_0x554d8d(0x2b7)],this['_subUnitId']=_0x3c45fa[_0x554d8d(0x32f)],this[_0x554d8d(0x1b3)](),this[_0x554d8d(0x155)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x554d8d(0x1de)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x554d8d(0x1b3)]();})),this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x1a7)]['subscribe'](_0x450534=>{const _0x33836b=_0x5e0d47;if(_0x450534[_0x33836b(0xf6)]===0x1){var _0x554187;let _0x277e9b=_0x450534[0x0],_0x1623a7=(_0x554187=this['_drawingManagerService']['getDrawingByParam'](_0x277e9b))==null?void 0x0:_0x554187[_0x33836b(0x2e1)];_0x1623a7===_0x4a245a[_0x33836b(0x1f9)]&&_0x277e9b[_0x33836b(0x162)]===this[_0x33836b(0x26d)]?(this[_0x33836b(0x1b3)](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0x1623a7===_0x4a245a[_0x33836b(0x1f9)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x277e9b['unitId'],_0x277e9b[_0x33836b(0x32f)],_0x277e9b['drawingId']);}})),this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x24f)][_0x5e0d47(0x36d)](_0x501126=>{const _0x506815=_0x5e0d47;for(let _0x35a9fd of _0x501126){let {drawingId:_0x25ec1d}=_0x35a9fd;if(this[_0x506815(0x26d)]===_0x25ec1d){this[_0x506815(0x283)]();return;}}}));}[_0x541acc(0x116)](_0x5ab26e,_0x474c8e,_0x46d572,_0x3a2b2c,_0x2d6221){const _0x50bdd4=_0x541acc;var _0x1ab471;if(!this[_0x50bdd4(0x113)])return;let _0x1bedc0=this[_0x50bdd4(0x263)](_0x5ab26e);if(!_0x1bedc0)return;let _0x38987e=this[_0x50bdd4(0xb9)]?this[_0x50bdd4(0xb9)][_0x50bdd4(0x37f)]:_0x474c8e,_0x4f1059=this[_0x50bdd4(0xb9)]?this[_0x50bdd4(0xb9)]['angle']:this[_0x50bdd4(0x23a)](_0x1bedc0[_0x50bdd4(0x172)],_0x38987e),_0x482c4c;if(this['_currentConnectionTarget']){let _0x24078a=this['_drawingManagerService'][_0x50bdd4(0xb2)]({'unitId':this[_0x50bdd4(0xb9)][_0x50bdd4(0x2b7)],'subUnitId':this[_0x50bdd4(0xb9)]['subUnitId'],'drawingId':this[_0x50bdd4(0xb9)][_0x50bdd4(0x266)]});if(_0x24078a!=null&&_0x24078a['transform']){let {left:_0x3368bc=0x0,top:_0x296090=0x0,width:_0x57d465=0x0,height:_0x45a334=0x0,angle:_0x478487}=_0x24078a[_0x50bdd4(0xc5)];_0x482c4c=_0x1730d0({'left':_0x3368bc,'top':_0x296090,'width':_0x57d465,'height':_0x45a334},_0x478487||0x0);}else _0x482c4c={'left':_0x38987e['x'],'top':_0x38987e['y'],'width':0x0,'height':0x0};}else _0x482c4c={'left':_0x38987e['x'],'top':_0x38987e['y'],'width':0x0,'height':0x0};let _0x3c3ea9={'point':_0x38987e,'angle':_0x4f1059,'bounds':_0x482c4c},_0x579456=_0x46d572?_0x3c3ea9:_0x1bedc0,_0x3da099=_0x46d572?_0x1bedc0:_0x3c3ea9,_0x39b22b=this[_0x50bdd4(0x113)]['getShapeType'](),_0xad0d85=_0x2ed419(_0x579456,_0x3da099,_0x39b22b);_0xad0d85&&this[_0x50bdd4(0x113)][_0x50bdd4(0x1e0)](_0xad0d85);let _0x14a151=_0x5e7985(_0xad0d85,_0x39b22b);_0x14a151['lineType']!==_0x39b22b&&this[_0x50bdd4(0x113)]['changeShapeType'](_0x14a151[_0x50bdd4(0xef)]);for(let [_0x55b7a0,_0x219238]of Object[_0x50bdd4(0x17b)](_0x14a151[_0x50bdd4(0x35f)]))this[_0x50bdd4(0x113)]['setAdjustValueByName'](_0x55b7a0,_0x219238);this['_activeShapeModel'][_0x50bdd4(0x26b)]({'width':_0x14a151['worldRect']['width'],'height':_0x14a151[_0x50bdd4(0x198)]['height']}),_0x3a2b2c[_0x50bdd4(0x26e)]({'flipX':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x269)],'flipY':_0x14a151['worldRect'][_0x50bdd4(0x143)],'left':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x1d7)],'top':_0x14a151['worldRect'][_0x50bdd4(0x2f1)],'width':_0x14a151['worldRect']['width'],'height':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x35c)],'angle':_0x14a151[_0x50bdd4(0xbc)]}),_0x3a2b2c[_0x50bdd4(0x2ff)](!0x0);let _0x20a696=((_0x1ab471=this[_0x50bdd4(0xb9)])==null?void 0x0:_0x1ab471[_0x50bdd4(0x37f)])??_0x474c8e;_0x2d6221['transformByState']({'left':_0x20a696['x']-_0x1b524b[_0x50bdd4(0x19b)],'top':_0x20a696['y']-_0x1b524b[_0x50bdd4(0x19b)]});}[_0x541acc(0x1ec)](_0x57164c,_0x21b67b,_0x11f794,_0x4344ed,_0xb3f21a){const _0x54acf8=_0x541acc;var _0x34d6f8,_0x4af38b;let _0x4d76b2=((_0x34d6f8=this['_currentConnectionTarget'])==null?void 0x0:_0x34d6f8[_0x54acf8(0x37f)])??_0x57164c,_0x4590f6=_0x5ed0a3['computeConnectorResizeLayout'](_0x21b67b,_0x4d76b2,_0x11f794);_0x4344ed['transformByState']({'flipX':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x269)],'flipY':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x143)],'left':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x1d7)],'top':_0x4590f6['worldRect'][_0x54acf8(0x2f1)],'width':_0x4590f6['worldRect'][_0x54acf8(0x27b)],'height':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x35c)],'angle':_0x4590f6[_0x54acf8(0x198)]['angle']});let _0x94fe83=((_0x4af38b=this['_currentConnectionTarget'])==null?void 0x0:_0x4af38b[_0x54acf8(0x37f)])??_0x57164c;_0xb3f21a[_0x54acf8(0x26e)]({'left':_0x94fe83['x']-_0x1b524b[_0x54acf8(0x19b)],'top':_0x94fe83['y']-_0x1b524b['cxnPointRadius']});}[_0x541acc(0x263)](_0x42c3e9){const _0x5a5c1f=_0x541acc;if(!this[_0x5a5c1f(0x1de)]||!this[_0x5a5c1f(0x285)])return null;let {shapeId:_0x6ba92a,cxnIndex:_0x49f4ad}=_0x42c3e9,_0x19b920=this[_0x5a5c1f(0x1da)][_0x5a5c1f(0x29b)](this[_0x5a5c1f(0x1de)],this[_0x5a5c1f(0x285)],_0x6ba92a);if(!_0x19b920)return null;let _0x182ca0=this[_0x5a5c1f(0x1b6)][_0x5a5c1f(0xb2)]({'unitId':this[_0x5a5c1f(0x1de)],'subUnitId':this[_0x5a5c1f(0x285)],'drawingId':_0x6ba92a});if(!(_0x182ca0!=null&&_0x182ca0[_0x5a5c1f(0xc5)]))return null;let {left:_0x5ae691=0x0,top:_0x9e2267=0x0,width:_0x541c22=0x0,height:_0x573740=0x0,flipX:_0x3fdb77=!0x1,flipY:_0x54058a=!0x1,angle:_0x5e59af}=_0x182ca0[_0x5a5c1f(0xc5)];_0x19b920[_0x5a5c1f(0x26b)]({'width':_0x541c22,'height':_0x573740});let _0x4a9d75=_0x19b920[_0x5a5c1f(0xfc)]()['find'](_0x3253c0=>_0x3253c0[_0x5a5c1f(0x302)]===_0x49f4ad);if(!_0x4a9d75)return null;let _0x287e4e=_0x3fdb77?_0x541c22-_0x4a9d75['x']:_0x4a9d75['x'],_0x5d0f7f=_0x54058a?_0x573740-_0x4a9d75['y']:_0x4a9d75['y'];if(_0x5e59af!==0x0&&_0x5e59af!=null){let _0x15d1ea=_0x5e59af*Math['PI']/0xb4,_0xca41e2=Math['cos'](_0x15d1ea),_0xa02ea2=Math['sin'](_0x15d1ea),_0x5116d3=_0x541c22/0x2,_0x59ddc9=_0x573740/0x2,_0xc9554d=_0x287e4e-_0x5116d3,_0x3e7868=_0x5d0f7f-_0x59ddc9;_0x287e4e=_0x5116d3+_0xc9554d*_0xca41e2-_0x3e7868*_0xa02ea2,_0x5d0f7f=_0x59ddc9+_0xc9554d*_0xa02ea2+_0x3e7868*_0xca41e2;}_0x287e4e+=_0x5ae691,_0x5d0f7f+=_0x9e2267;let _0x5208d1=_0x4a9d75[_0x5a5c1f(0x280)]/0xea60;_0x3fdb77&&(_0x5208d1=0xb4-_0x5208d1),_0x54058a&&(_0x5208d1=-_0x5208d1),_0x5208d1+=_0x5e59af||0x0,_0x5208d1=(_0x5208d1%0x168+0x168)%0x168;let _0x348df5=_0x1730d0({'left':_0x5ae691,'top':_0x9e2267,'width':_0x541c22,'height':_0x573740},_0x5e59af||0x0);return{'point':{'x':_0x287e4e,'y':_0x5d0f7f},'angle':_0x5208d1,'bounds':_0x348df5};}[_0x541acc(0x23a)](_0x2edfa3,_0x16c7e0){const _0x3060ef=_0x541acc;let _0x5e4d29=_0x16c7e0['x']-_0x2edfa3['x'],_0x1ccf56=_0x16c7e0['y']-_0x2edfa3['y'];return Math[_0x3060ef(0xd4)](_0x5e4d29)>=Math[_0x3060ef(0xd4)](_0x1ccf56)?_0x5e4d29>=0x0?0xb4:0x0:_0x1ccf56>=0x0?0x10e:0x5a;}[_0x541acc(0x283)](){const _0x1fef40=_0x541acc;this[_0x1fef40(0x26d)]=void 0x0,this[_0x1fef40(0x1de)]=void 0x0,this[_0x1fef40(0x285)]=void 0x0,this[_0x1fef40(0x1b3)]();}[_0x541acc(0x1ae)](){const _0x5d5095=_0x541acc;this[_0x5d5095(0x1b3)](),super[_0x5d5095(0x1ae)]();}};ma=X([Y(0x1,_0x2c496c),Y(0x2,_0x22bed8),Y(0x3,_0x5399a4),Y(0x4,_0x43400d),Y(0x5,_0x53ba9c(_0x27864b)),Y(0x6,_0x53ba9c(Pr)),Y(0x7,_0x53ba9c(da))],ma);let ha=class extends _0x50d788{constructor(_0x582e21,_0x10b2e7,_0x5b4f8f){const _0x111f34=_0x541acc;super(),this[_0x111f34(0x1c8)]=_0x582e21,this[_0x111f34(0x1b6)]=_0x10b2e7,this[_0x111f34(0x2a8)]=_0x5b4f8f,this['_initPrinting']();}[_0x541acc(0xc0)](){const _0x2a18bd=_0x541acc;this['disposeWithMe'](this[_0x2a18bd(0x1c8)]['interceptor'][_0x2a18bd(0x2a7)](this['_sheetPrintInterceptorService'][_0x2a18bd(0x2cb)][_0x2a18bd(0x10d)]()[_0x2a18bd(0x1d0)],{'handler':(_0x47a843,_0x5020de,_0x3d0ade)=>{const _0x5524e4=_0x2a18bd;var _0x257b34;let {unitId:_0x34e1ec,subUnitId:_0x17cd59,scene:_0x49ba78,resourceCollector:_0x39dd31}=_0x5020de,_0x47d7a9=(_0x257b34=this[_0x5524e4(0x1b6)][_0x5524e4(0x25b)](_0x34e1ec))==null?void 0x0:_0x257b34[_0x17cd59];return _0x47d7a9==null||_0x47d7a9[_0x5524e4(0x348)]['forEach'](_0x381c12=>{const _0x27262b=_0x5524e4;let _0x384584=_0x47d7a9['data'][_0x381c12];_0x384584[_0x27262b(0x2e1)]===_0x4a245a[_0x27262b(0x1f9)]&&!_0x384584[_0x27262b(0x18f)]&&this[_0x27262b(0x2a8)][_0x27262b(0x23e)](_0x384584,_0x49ba78,{'resourceCollector':_0x39dd31});}),_0x3d0ade(_0x47a843);}}));}};ha=X([Y(0x0,_0x53ba9c(_0x8a3389)),Y(0x1,_0x5399a4),Y(0x2,_0x53ba9c(Z))],ha);let ga=class extends _0x50d788{constructor(_0x19a0bd,_0x2f68b4,_0x374c1d){const _0x44539e=_0x541acc;super(),this[_0x44539e(0xdc)]=_0x19a0bd,this['_localeService']=_0x2f68b4,this['_sheetPermissionCheckController']=_0x374c1d,this[_0x44539e(0x257)]();}[_0x541acc(0x257)](){const _0x5d15c5=_0x541acc;this['disposeWithMe'](this[_0x5d15c5(0xdc)]['beforeCommandExecuted'](_0x27b141=>{const _0x1cba62=_0x5d15c5;let _0x5177e9,_0x4c5e5b;if(_0x27b141['id']===_0x506353['id']||_0x27b141['id']===_0x3585c5['id']||_0x27b141['id']===_0x499afe['id']){let _0x2d208c=_0x27b141[_0x1cba62(0x152)];_0x5177e9=_0x2d208c['unitId'],_0x4c5e5b=_0x2d208c[_0x1cba62(0x32f)];}_0x5177e9&&_0x4c5e5b&&(this['_sheetPermissionCheckController'][_0x1cba62(0x127)]({'workbookTypes':[_0x220388],'worksheetTypes':[_0x5d269b]},_0x5177e9,_0x4c5e5b)||this[_0x1cba62(0x372)][_0x1cba62(0xf5)](this[_0x1cba62(0x2a5)]['t'](_0x1cba62(0x2c9))));}));}};ga=X([Y(0x0,_0x53ba9c(_0x2c496c)),Y(0x1,_0x53ba9c(_0x5622d1)),Y(0x2,_0x53ba9c(_0x28fcea))],ga);let _a=class{constructor(_0x3b1e75){const _0x596a10=_0x541acc;this[_0x596a10(0x232)]=_0x3b1e75;}[_0x541acc(0x167)](_0x9e3e3a,_0x3cdfac){const _0x19906c=_0x541acc;let _0x123d2a=this[_0x19906c(0x232)]['getRenderUnitById'](_0x9e3e3a[_0x19906c(0x2b7)]),_0x31785e=_0x123d2a==null?void 0x0:_0x123d2a[_0x19906c(0x34c)];if(!_0x31785e)return;let _0x687edd=_0x191ead(_0x9e3e3a),_0x3a9dcf=_0x31785e[_0x19906c(0x13f)](_0x687edd);_0x3a9dcf==null||_0x3a9dcf[_0x19906c(0x206)](_0x3cdfac);}};_a=X([Y(0x0,_0x22bed8)],_a);let va=class extends _0xcbf5d3{constructor(_0x33caba=Yi,_0xcb088c,_0x40da46,_0x405b5d,_0x112fcb){const _0x45443e=_0x541acc;super(),this[_0x45443e(0x100)]=_0x33caba,this['_injector']=_0xcb088c,this['_commandService']=_0x40da46,this[_0x45443e(0x28d)]=_0x405b5d,this[_0x45443e(0x232)]=_0x112fcb;let {..._0x101ef8}=_0x29ed24({},Yi,this['_config']);this[_0x45443e(0x28d)]['setConfig'](Ji,_0x101ef8),this[_0x45443e(0x209)]();}['onStarting'](){const _0x5625b0=_0x541acc;this['_injector'][_0x5625b0(0xb5)]([ta]),this[_0x5625b0(0x157)][_0x5625b0(0x1e8)](ta),_0x110449(this[_0x5625b0(0x157)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x33c31d=_0x541acc;_0x110449(this[_0x33c31d(0x157)],[[da],[Pr],[fa]]),_0x634993(this[_0x33c31d(0x157)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x33c31d(0x1ba)](_0x190c30=>{const _0x20a6ff=_0x33c31d;this[_0x20a6ff(0x328)](this[_0x20a6ff(0x232)][_0x20a6ff(0x234)](_0x35cbcc[_0x20a6ff(0x164)],_0x190c30));});}['onRendered'](){const _0x59d899=_0x541acc;_0x634993(this[_0x59d899(0x157)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x541acc(0x35d)](){const _0xc3136b=_0x541acc;this[_0xc3136b(0x157)][_0xc3136b(0x1e8)](aa)[_0xc3136b(0x117)]();}[_0x541acc(0x209)](){const _0x2f1cae=_0x541acc;[Ir,K,Fr,qi][_0x2f1cae(0x1ba)](_0x366322=>this[_0x2f1cae(0x328)](this[_0x2f1cae(0xdc)][_0x2f1cae(0x32b)](_0x366322)));}};q(va,_0x541acc(0x189),_0x35cbcc['UNIVER_SHEET']),q(va,_0x541acc(0xf2),'SHEET_SHAPE_UI_PLUGIN'),q(va,'packageName',Gi),q(va,_0x541acc(0x102),Ki),va=X([_0x44b434(_0x1c43d9,_0x442a76,_0x237bd8,_0x4a85d4,_0x59b291,_0x51cee2,_0x3c3e08,_0x51e836,_0x4c3ab4,_0x5f07ce,_0xc35d1,_0x18a087,_0x386611),Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x2c496c),Y(0x3,_0xed9cf),Y(0x4,_0x22bed8)],va);const ya={'type':_0xf8f445['OPERATION'],'id':_0x541acc(0x367),'handler'(){return!0x0;}};function ba(){const _0x47bae6=_0x541acc;let _0x276807=_0x445cf0(_0x5399a4),_0x435180=_0x25afa3(()=>_0x276807[_0x47bae6(0x169)],_0x276807['getFocusDrawings'](),!0x1,[_0x276807]);return _0x435180[_0x47bae6(0xf6)]===0x0?null:_0x35a023(_0x47bae6(0x14c),{'children':_0x53330b(_0x47bae6(0x14c),{'className':_0x47bae6(0x199),'children':[_0x35a023(_0x28ff69,{'drawings':_0x435180,'hasCropper':!0x1}),_0x35a023(_0x5b541d,{'drawings':_0x435180})]})});}function xa(_0x7d88b3){let {unitId:_0x4cbf48,subUnitId:_0x284b76,shapeId:_0x570b73}=_0x7d88b3,_0x456675=_0x445cf0(_0x2c496c),_0x5367d5=_0x445cf0(_a);return _0x35a023(_0xbb7a4b,{..._0x7d88b3,'positionEditor':_0x35a023(ba,{}),'onUpdateShapeData':(_0x4d9482,_0x26b00f)=>{Dr(_0x456675,_0x4cbf48,_0x284b76,_0x570b73,_0x4d9482,_0x26b00f);},'onUpdateLineShapeData':(_0x4bed09,_0x5983f7)=>{Or(_0x456675,_0x4cbf48,_0x284b76,_0x570b73,_0x4bed09,_0x5983f7);},'onUpdateShapeFillImage':_0x297876=>{_0x5367d5['updateShapeFillImage']({'unitId':_0x4cbf48,'subUnitId':_0x284b76,'drawingId':_0x570b73},_0x297876);}});}function Sa(_0x12b84a){const _0x4d52a0=_0x541acc;let _0xf3cc1c=_0x445cf0(_0x161d03),_0x43137e=_0x25afa3(()=>_0xf3cc1c[_0x4d52a0(0x111)],_0xf3cc1c[_0x4d52a0(0x30a)](),!0x1,[_0xf3cc1c]),_0x5d5f6b=_0x12b84a[_0x4d52a0(0x14e)][_0x4d52a0(0x1b2)];return!_0x5d5f6b||!_0x43137e?null:_0x35a023(Ca,{..._0x5d5f6b,'canvasElement':_0x12b84a[_0x4d52a0(0x14e)][_0x4d52a0(0x145)]});}function Ca(_0x478ad2){const _0x592924=_0x541acc;let _0x1f2a97=_0x445cf0(_0x2c496c),_0x19850f=_0x445cf0(_0x27864b),{unitId:_0xde0634,subUnitId:_0x5b8cbd,drawingId:_0x357fa5,drawingType:_0x3c97b8,shapeType:_0x4a3e88}=_0x478ad2,[_0xaa0356,_0x315cd6]=_0x846ed7(_0x478ad2[_0x592924(0x290)]),_0x2bcf3c=_0x1e2218(()=>_0x2015b7(_0xaa0356),[_0xaa0356]),_0x5220c9=_0x1e2218(()=>_0x30d84a(_0xaa0356),[_0xaa0356]);_0x189550(()=>{const _0x57720b=_0x592924;let _0x152bac=_0x1f2a97[_0x57720b(0x1d2)](_0xd7949d=>{const _0x517c0e=_0x57720b;if(_0xd7949d['id']!==_0x2a1218['id'])return;let _0x2d1f9d=_0x19850f[_0x517c0e(0x258)](_0xde0634,_0x5b8cbd,_0x357fa5);_0x2d1f9d&&_0x315cd6(_0x2d1f9d);});return()=>_0x152bac[_0x57720b(0x1ae)]();},[_0x1f2a97,_0x357fa5,_0x19850f,_0x5b8cbd,_0xde0634]);let _0x319529=_0x346895=>{_0x315cd6(_0x2b1b2a=>({..._0x2b1b2a,..._0x346895}));},_0x28109c=_0x2dad7c=>{const _0x1e6846=_0x592924;let _0x4f9338=_0x25527e(_0xaa0356,_0x2dad7c);Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,{'oldShapeData':{'shapeText':_0xaa0356[_0x1e6846(0x17e)]}},_0x4f9338),_0x319529(_0x4f9338);},_0x593c16=_0x3f2655({'hostType':_0x35cbcc[_0x592924(0x164)],'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'shapeId':_0x357fa5,'shapeData':_0xaa0356,'onUpdateBinding':_0x350e3e=>{const _0x544a10=_0x592924;let _0x8a3a={'formulaBinding':_0x350e3e};Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,{'oldShapeData':{'formulaBinding':_0xaa0356[_0x544a10(0xbe)]}},_0x8a3a),_0x319529(_0x8a3a);}});return _0x53330b(_0x465207,{'children':[_0x35a023(_0x405f14,{'canvasElement':_0x478ad2['canvasElement'],'shapeData':_0xaa0356,'shapeType':_0x4a3e88,'textStyle':{'ff':_0x1b524b[_0x592924(0x17e)]['fontFamily'],'fs':_0x1b524b[_0x592924(0x17e)][_0x592924(0xd3)],'cl':{'rgb':_0x1b524b[_0x592924(0x17e)]['color']},..._0x2bcf3c},'textModel':_0x5220c9?{'ha':_0x5220c9['ha']??_0x103f4b[_0x592924(0x1ac)],'va':_0x5220c9['va']??_0x54d572['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1b524b[_0x592924(0x2da)],'defaultGradientEndColor':_0x1b524b[_0x592924(0x2e6)],'defaultStrokeColor':_0x1b524b[_0x592924(0x133)],'extensionGroups':_0x593c16[_0x592924(0x19a)],'floatingObjectToolbarPosition':_0x31530e[_0x592924(0x1c1)],'onUpdateShapeData':(_0x411f50,_0x10b2f9)=>{Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,_0x411f50,_0x10b2f9),_0x10b2f9&&_0x319529(_0x10b2f9);},'onUpdateText':_0x28109c,'onOpenPanel':()=>{const _0x4dc8da=_0x592924;_0x1f2a97[_0x4dc8da(0x1b0)](Wr['id'],{'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'drawingId':_0x357fa5});},'onDelete':()=>{const _0x4ab4d6=_0x592924;_0x1f2a97[_0x4ab4d6(0x1b0)](_0x6ae2c0['id'],{'unitId':_0xde0634,'drawings':[{'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'drawingId':_0x357fa5,'drawingType':_0x3c97b8}]});}}),_0x593c16[_0x592924(0xfe)]]});}function wa(_0x52643f){const _0x4a98f3=_0x541acc;return!!_0x52643f&&'axisAlignSheetTransform'in _0x52643f&&_0x4a98f3(0x337)in _0x52643f;}const Ta=_0x3321c3(()=>{const _0xf22ee4=_0x541acc;let _0x35f27a=_0x445cf0($),_0x33fb0e=_0x445cf0(_0x27864b),_0x2176ff=_0x445cf0(_0x5399a4),_0x234494=_0x445cf0(_0x2c496c),_0x185735=_0x445cf0(_0x31259f),_0x2ea775=_0x445cf0(_0x22bed8),_0x1eeb1e=_0x1e2218(()=>({'getShapeModel':(_0xd53d56,_0x1589b9,_0x41a7fb)=>_0x33fb0e[_0xf22ee4(0x29b)](_0xd53d56,_0x1589b9,_0x41a7fb),'getShapeData':(_0x5f2b51,_0x4386b3,_0x25aaea)=>_0x33fb0e[_0xf22ee4(0x258)](_0x5f2b51,_0x4386b3,_0x25aaea),'getDrawingTransform':(_0xeb4e44,_0x4e02bc,_0x44e341)=>{const _0x5d4032=_0xf22ee4;let _0x344929=_0x2176ff['getDrawingByParam']({'unitId':_0xeb4e44,'subUnitId':_0x4e02bc,'drawingId':_0x44e341});return _0x344929==null?void 0x0:_0x344929[_0x5d4032(0xc5)];},'updateShapeText':({unitId:_0x1d156d,subUnitId:_0x153a71,shapeId:_0x38a99d,shapeText:_0x364670,oldShapeText:_0x5baf9f,hostSize:_0x4296dc})=>{_0x185735['run'](_0x1d156d,()=>{const _0x41c007=_0x5f19;var _0x33b737;let _0x4f612f=_0x234494[_0x41c007(0x319)](K['id'],{'unitId':_0x1d156d,'subUnitId':_0x153a71,'shapeId':_0x38a99d,'shapeData':{'shapeText':_0x364670},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x5baf9f}}});if(!_0x4f612f||!_0x4296dc)return _0x4f612f;let _0x493ede=_0x2176ff[_0x41c007(0xb2)]({'unitId':_0x1d156d,'subUnitId':_0x153a71,'drawingId':_0x38a99d}),_0x5416e6=_0x493ede==null?void 0x0:_0x493ede[_0x41c007(0xc5)];if(!wa(_0x493ede)||!_0x5416e6)return!0x1;let _0x3bf555={..._0x5416e6,'width':_0x4296dc['width'],'height':_0x4296dc['height']},_0xebedd0=(_0x33b737=_0x2ea775[_0x41c007(0x365)](_0x1d156d))==null||(_0x33b737=_0x33b737[_0x41c007(0x320)](_0x3ea870)[_0x41c007(0x210)](_0x153a71))==null?void 0x0:_0x33b737[_0x41c007(0x330)];return _0x234494['syncExecuteCommand'](_0x197a6a['id'],{'unitId':_0x1d156d,'drawings':[{..._0x493ede,'transform':_0x3bf555,'sheetTransform':_0xebedd0?_0x2bed6e(_0x3bf555,_0xebedd0)??_0x493ede['sheetTransform']:_0x493ede[_0x41c007(0x337)],'axisAlignSheetTransform':_0xebedd0?_0xf9fc28(_0x3bf555,_0xebedd0)??_0x493ede['axisAlignSheetTransform']:_0x493ede[_0x41c007(0xf9)]}]});});},'updateHostSize':({unitId:_0x37e299,subUnitId:_0x448e55,shapeId:_0xe8eba1,width:_0x4de141,height:_0x116e48})=>{const _0x90a927=_0xf22ee4;var _0x56dfa6;let _0x24f107=_0x2176ff[_0x90a927(0xb2)]({'unitId':_0x37e299,'subUnitId':_0x448e55,'drawingId':_0xe8eba1}),_0x1deb5b=_0x24f107==null?void 0x0:_0x24f107['transform'];if(!wa(_0x24f107)||!_0x1deb5b)return;let _0x3f4037={..._0x1deb5b,'width':_0x4de141,'height':_0x116e48},_0x476319=(_0x56dfa6=_0x2ea775[_0x90a927(0x365)](_0x37e299))==null||(_0x56dfa6=_0x56dfa6[_0x90a927(0x320)](_0x3ea870)[_0x90a927(0x210)](_0x448e55))==null?void 0x0:_0x56dfa6[_0x90a927(0x330)],_0xaec74e=_0x476319?_0x2bed6e(_0x3f4037,_0x476319)??_0x24f107[_0x90a927(0x337)]:_0x24f107['sheetTransform'],_0x3f52b9=_0x476319?_0xf9fc28(_0x3f4037,_0x476319)??_0x24f107[_0x90a927(0xf9)]:_0x24f107[_0x90a927(0xf9)];_0x234494[_0x90a927(0x1b0)](_0x197a6a['id'],{'unitId':_0x37e299,'drawings':[{..._0x24f107,'transform':_0x3f4037,'sheetTransform':_0xaec74e,'axisAlignSheetTransform':_0x3f52b9}]});},'allowHostSizeShrink':({unitId:_0x3661d7,subUnitId:_0x3dca8a,shapeId:_0x3d9a99})=>_0x62874f(_0x33fb0e[_0xf22ee4(0x258)](_0x3661d7,_0x3dca8a,_0x3d9a99)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x234494,_0x2176ff,_0x2ea775,_0x33fb0e,_0x185735]),_0x2e699a=_0x1e2218(()=>({'viewportKeys':{'main':_0x539d6e[_0xf22ee4(0x1aa)],'leftTop':_0x539d6e['VIEW_MAIN_LEFT_TOP'],'top':_0x539d6e[_0xf22ee4(0x12b)],'left':_0x539d6e[_0xf22ee4(0x10a)]},'getSkeleton':(_0xf98c7e,_0x3d143b)=>{const _0x482300=_0xf22ee4;var _0x483268;return((_0x483268=_0xf98c7e['with'](_0x3ea870)[_0x482300(0x210)](_0x3d143b['subUnitId']))==null?void 0x0:_0x483268['skeleton'])??null;}}),[]);return _0x35a023(_0x725664,{'adapter':_0x1eeb1e,'editingService':_0x35f27a,'editorUnitId':Vr,'positionOptions':_0x2e699a});});let Ea=class extends _0x50d788{constructor(_0x28cd6a,_0xb5bc9c){const _0x166b87=_0x541acc;super(),this[_0x166b87(0x154)]=_0x28cd6a,this[_0x166b87(0x294)]=_0xb5bc9c,this['_registerIcons'](),this[_0x166b87(0x239)]();}['_registerIcons'](){const _0x448bb3=_0x541acc;this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x19c))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'ObjectLayersIcon':_0xd7ec17})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x1cc))||this[_0x448bb3(0x328)](this['_iconManager'][_0x448bb3(0x24c)]({'FlipHorizontalIcon':_0x3c9d9a})),this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x182))||this['disposeWithMe'](this[_0x448bb3(0x294)]['register']({'FlipVerticalIcon':_0x2efc66})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x205))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'BottomIcon':_0x3bd381})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x37c))||this[_0x448bb3(0x328)](this['_iconManager'][_0x448bb3(0x24c)]({'MoveDownIcon':_0x1164ba})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x287))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'MoveUpIcon':_0x907637})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this['disposeWithMe'](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'ShapeFormatSettingIcon':_0x350cd9})),this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x118))||this['disposeWithMe'](this['_iconManager'][_0x448bb3(0x24c)]({'TopmostIcon':_0x14bd06}));}[_0x541acc(0x239)](){const _0x1bbca3=_0x541acc;this['disposeWithMe'](this['_componentManager'][_0x1bbca3(0x24c)](Lr,xa)),this[_0x1bbca3(0x328)](this['_componentManager'][_0x1bbca3(0x24c)](Rr,$i)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](Jr,ei)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)]['register'](Yr,Zr)),this[_0x1bbca3(0x154)]['hasDefault'](_0x4939b9)||this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](_0x4939b9,$r)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)]['register'](zr,Sa)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](di,hi)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](ui,gi)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](fi,_i)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](pi,vi)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](Hr,_0x1d0940)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](_0x1bbca3(0xaf),Ta));}};Ea=X([Y(0x0,_0x53ba9c(_0x6cddf9)),Y(0x1,_0x53ba9c(_0x404799))],Ea);let Da=class extends _0x50d788{constructor(_0x1764cb,_0x18f3c8,_0x4bf469,_0x3ca67b,_0x718b95,_0x1e3494,_0x8a721d,_0x37f89a,_0x3bb4c4){const _0x2f6520=_0x541acc;super();let _0x1328d1=_0x3df90f=>{const _0x200db5=_0x5f19;var _0x2ffa61,_0x3cbe4e;return(((_0x2ffa61=_0x37f89a[_0x200db5(0x2e2)](new _0x220388(_0x3df90f[_0x200db5(0x2b7)])['id']))==null?void 0x0:_0x2ffa61[_0x200db5(0x156)])??!0x0)&&(((_0x3cbe4e=_0x37f89a[_0x200db5(0x2e2)](new _0x5d269b(_0x3df90f[_0x200db5(0x2b7)],_0x3df90f[_0x200db5(0x32f)])['id']))==null?void 0x0:_0x3cbe4e[_0x200db5(0x156)])??!0x0);},_0x13c576=_0x2486a8=>_0x2486a8['shapeId']&&_0x1328d1(_0x2486a8)?_0x4bf469[_0x2f6520(0x258)](_0x2486a8['unitId'],_0x2486a8[_0x2f6520(0x32f)],_0x2486a8[_0x2f6520(0x266)])??null:null,_0xfdf8d1=()=>{const _0x2f573c=_0x2f6520;let _0x57dfe4=_0x718b95[_0x2f573c(0x28b)](),_0x1e4f26=_0x57dfe4[_0x2f573c(0xf6)]===0x1?_0x57dfe4[0x0]:null;return(_0x1e4f26==null?void 0x0:_0x1e4f26[_0x2f573c(0x2e1)])===_0x4a245a[_0x2f573c(0x1f9)]&&_0x1e4f26[_0x2f573c(0x2b7)]===_0x1764cb[_0x2f573c(0x2b7)]?{'unitId':_0x1e4f26['unitId'],'subUnitId':_0x1e4f26[_0x2f573c(0x32f)],'shapeId':_0x1e4f26[_0x2f573c(0x162)]}:null;};this[_0x2f6520(0x328)](_0x54bb22(_0x1764cb,_0x18f3c8,{'changes$':_0x53fdee(_0x718b95[_0x2f6520(0x169)],_0x3ca67b['editingParams$'],_0x37f89a['permissionPointUpdate$']),'isActive':()=>{const _0x17877c=_0x2f6520;var _0x51d801;return((_0x51d801=_0x1e3494['getFocusedUnit']())==null?void 0x0:_0x51d801[_0x17877c(0x1f1)]())===_0x1764cb[_0x17877c(0x2b7)]&&!_0x8a721d[_0x17877c(0x1ff)](_0x5ba962)&&_0x718b95[_0x17877c(0x28b)]()[_0x17877c(0x12c)](_0x49987d=>_0x49987d[_0x17877c(0x2b7)]===_0x1764cb[_0x17877c(0x2b7)]);},'getSelectedTarget':_0xfdf8d1,'getSource':()=>{let _0x48965e=_0xfdf8d1();return _0x48965e?_0x13c576(_0x48965e):null;},'getTarget':_0x4ccc43=>{const _0x2322d6=_0x2f6520;let _0x3045a0=_0x1764cb[_0x2322d6(0x34c)]['pick'](new _0x53a890(_0x4ccc43[_0x2322d6(0x1e6)],_0x4ccc43[_0x2322d6(0x1e3)]));if(!(_0x3045a0 instanceof J))return null;let _0x346391={'unitId':_0x1764cb[_0x2322d6(0x2b7)],'subUnitId':_0x3045a0[_0x2322d6(0x32f)],'shapeId':_0x3045a0[_0x2322d6(0x266)]};return _0x1328d1(_0x346391)?_0x346391:null;},'getShape':_0x13c576,'update':(_0x21cc8b,_0x5c938f,_0x3f1dd8)=>_0x3bb4c4[_0x2f6520(0x1b0)](K['id'],{..._0x21cc8b,'shapeData':_0x3f1dd8,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x5c938f}})}));}};Da=X([Y(0x1,_0x53ba9c(_0x2b0b62)),Y(0x2,_0x53ba9c(_0x27864b)),Y(0x3,_0x53ba9c($)),Y(0x4,_0x5399a4),Y(0x5,_0x43400d),Y(0x6,_0x35ac6c),Y(0x7,_0x2dd2ac),Y(0x8,_0x2c496c)],Da);const Oa='sheets-shape-contextual-ribbon';let ka=class extends _0x50d788{constructor(_0x1de017,_0x434378,_0x2e8eb8,_0x5b5eda,_0x1b5cfd,_0x1dd7eb){const _0x51e426=_0x541acc;super(),this[_0x51e426(0x163)]=_0x1de017,this[_0x51e426(0x272)]=_0x434378,this[_0x51e426(0x1b6)]=_0x2e8eb8,this[_0x51e426(0x35a)]=_0x5b5eda,this['_renderManagerService']=_0x1b5cfd,this[_0x51e426(0x1fe)]=_0x1dd7eb,q(this,'_visible',!0x1),this[_0x51e426(0x163)][_0x51e426(0x1fa)](Hi),this['disposeWithMe'](_0x183b07(this[_0x51e426(0x1b6)][_0x51e426(0x169)][_0x51e426(0x36d)](()=>this[_0x51e426(0x346)]()))),this['_update']();}[_0x541acc(0x1ae)](){const _0x86eb57=_0x541acc;this[_0x86eb57(0x1fe)][_0x86eb57(0x188)](!0x1,Oa),this[_0x86eb57(0x15d)](),super[_0x86eb57(0x1ae)]();}[_0x541acc(0x346)](){const _0xdf5f5c=_0x541acc;var _0x1f09c0;let _0x1d6955=this[_0xdf5f5c(0x1b6)][_0xdf5f5c(0x28b)](),_0x4c5dd6=_0x1d6955[_0xdf5f5c(0xf6)]===0x1?_0x1d6955[0x0]:void 0x0;if((_0x4c5dd6==null?void 0x0:_0x4c5dd6[_0xdf5f5c(0x2e1)])!==_0x4a245a[_0xdf5f5c(0x1f9)]||this[_0xdf5f5c(0x35a)][_0xdf5f5c(0x231)](_0x4c5dd6[_0xdf5f5c(0x2b7)])!==_0x35cbcc[_0xdf5f5c(0x164)]){this[_0xdf5f5c(0x1fe)][_0xdf5f5c(0x188)](!0x1,Oa),this[_0xdf5f5c(0x15d)]();return;}let _0x29c0c6=(_0x1f09c0=this[_0xdf5f5c(0x232)]['getRenderUnitById'](_0x4c5dd6[_0xdf5f5c(0x2b7)]))==null?void 0x0:_0x1f09c0['engine'][_0xdf5f5c(0x28f)](),_0x2c0df3=_0x34233e(_0x29c0c6)===_0xdf5f5c(0x2c1);this[_0xdf5f5c(0x1fe)][_0xdf5f5c(0x188)](_0x2c0df3,Oa),_0x2c0df3?this[_0xdf5f5c(0x15d)]():this['_visible']||(this[_0xdf5f5c(0x220)]=!0x0,this[_0xdf5f5c(0x272)][_0xdf5f5c(0xbd)](Br,{'activate':!0x0}));}['_hide'](){const _0x1915b6=_0x541acc;this[_0x1915b6(0x220)]&&(this[_0x1915b6(0x220)]=!0x1,this['_ribbonService'][_0x1915b6(0x23b)](Br),this[_0x1915b6(0x272)][_0x1915b6(0x338)]([]));}};ka=X([Y(0x0,_0x413bdc),Y(0x1,_0x999fc3),Y(0x2,_0x5399a4),Y(0x3,_0x43400d),Y(0x4,_0x22bed8),Y(0x5,_0x53ba9c(_0x161d03))],ka);let Aa=class extends _0x54f80b{constructor(_0x1098a8,_0x59b5bb,_0x3a3757,_0x13e0dd,_0x3428d0,_0x4906b4,_0x1885c2,_0x53a5a7,_0x2cd686,_0x1f4d70){super(_0x1098a8,_0x59b5bb,_0x3a3757,_0x13e0dd,_0x3428d0,_0x4906b4,_0x1885c2,_0x53a5a7,_0x2cd686,_0x1f4d70,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x53ba9c(_0x542bad)),Y(0x2,_0x53ba9c(_0x5a9bef)),Y(0x3,_0x53ba9c(_0x8274d6)),Y(0x4,_0x2c496c),Y(0x5,_0x53ba9c(_0x30789b)),Y(0x6,_0x53ba9c(_0x3ca8c8)),Y(0x7,_0x53ba9c(_0x4ab968)),Y(0x8,_0x53ba9c(_0x2d1c03)),Y(0x9,_0x53ba9c($))],Aa);let ja=class extends _0x92e723{constructor(_0x3b4ce7,_0x23783f,_0x3d701d,_0x5f285c,_0x26338e){const _0x44bd22=_0x541acc;super(_0x3b4ce7,_0x23783f,{'editing$':_0x3d701d[_0x44bd22(0x204)],'resolve':_0x4d1cda=>{const _0x306230=_0x44bd22;var _0x158391,_0x1068a8,_0x2cdc5c;let _0x4b9e5c=new _0x53a890(_0x4d1cda[_0x306230(0x1e6)],_0x4d1cda['offsetY']),_0xa5f07b=((_0x158391=_0x3b4ce7['scene'][_0x306230(0x1f2)](_0x4b9e5c))==null?void 0x0:_0x158391[_0x306230(0xce)](_0x4b9e5c))??_0x4b9e5c,_0x47451f=_0x18e584(_0x3b4ce7[_0x306230(0x34c)][_0x306230(0x153)](_0x4b9e5c)??null,_0xa5f07b);if(!(_0x47451f instanceof J))return null;let _0x108d2=_0x47451f[_0x306230(0x21d)](_0xa5f07b);if(!_0x108d2)return null;let _0x5a6e79=_0x47451f,_0x46b90b={'componentKey':_0x190f9d[_0x306230(0xd6)],'direction':_0x306230(0x2ee),'offset':[0x0,0xa],'onClickOutside':()=>_0x23783f[_0x306230(0xc7)]()};return{'object':_0x47451f,'info':{..._0x108d2,'unitId':_0x47451f['unitId'],'subUnitId':_0x47451f[_0x306230(0x32f)],'shapeKey':_0x47451f[_0x306230(0x22c)],'readonly':!0x0,'copyable':((_0x1068a8=_0x26338e[_0x306230(0x2e2)](new _0x18f348(_0x47451f[_0x306230(0x2b7)])['id']))==null?void 0x0:_0x1068a8[_0x306230(0x156)])!==!0x1&&((_0x2cdc5c=_0x26338e['getPermissionPoint'](new _0x37f6de(_0x47451f['unitId'],_0x47451f[_0x306230(0x32f)])['id']))==null?void 0x0:_0x2cdc5c[_0x306230(0x156)])!==!0x1},'attachPopup':()=>_0x5f285c[_0x306230(0x25d)](_0x5a6e79,_0x46b90b)};}}),this[_0x44bd22(0x328)](_0x3b4ce7[_0x44bd22(0x20c)]['activeSheet$']['subscribe'](()=>this[_0x44bd22(0x24b)]()));}};ja=X([Y(0x1,_0x53ba9c(_0x3ca8c8)),Y(0x2,_0x53ba9c($)),Y(0x3,_0x53ba9c(_0x5973fe)),Y(0x4,_0x2dd2ac)],ja);let Ma=class extends _0x50d788{constructor(_0x442623,_0x5816a0,_0x374c59,_0x52fac1,_0x5b9f5f,_0x5f23c0,_0x6a2883,_0x43003e,_0x43d9c2,_0x25efa4,_0x2771ce){const _0x10db1c=_0x541acc;super(),this['_univerInstanceService']=_0x442623,this['_sidebarService']=_0x5816a0,this['_menuManagerService']=_0x374c59,this[_0x10db1c(0x1da)]=_0x52fac1,this[_0x10db1c(0x2a5)]=_0x5b9f5f,this[_0x10db1c(0xdc)]=_0x5f23c0,this[_0x10db1c(0x1b6)]=_0x6a2883,this[_0x10db1c(0xcb)]=_0x43003e,this[_0x10db1c(0x311)]=_0x43d9c2,this[_0x10db1c(0x232)]=_0x25efa4,this['_shapeTextEditingService']=_0x2771ce,q(this,_0x10db1c(0x32c),null),q(this,_0x10db1c(0x1e5),null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,_0x10db1c(0x2b1),0x0),q(this,_0x10db1c(0x2ab),null),q(this,_0x10db1c(0x2d7),[]),this[_0x10db1c(0x1bb)](),this[_0x10db1c(0x328)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x35cbcc[_0x10db1c(0x164)])[_0x10db1c(0x36d)](_0x47d6b5=>{const _0x2f15d3=_0x10db1c;if(!_0x47d6b5){var _0x363227;(_0x363227=this[_0x2f15d3(0x32c)])==null||_0x363227[_0x2f15d3(0x1ae)]();}})),this[_0x10db1c(0x135)](),this[_0x10db1c(0x117)](),this[_0x10db1c(0x328)](this[_0x10db1c(0x1af)][_0x10db1c(0x204)][_0x10db1c(0x36d)](_0x5e4c72=>{const _0x12fece=_0x10db1c;_0x5e4c72&&this[_0x12fece(0x139)]();}));}[_0x541acc(0x1bb)](){const _0x55fec3=_0x541acc;this[_0x55fec3(0x163)][_0x55fec3(0x1fa)](Wi);}[_0x541acc(0x117)](){const _0x462394=_0x541acc;this[_0x462394(0x2ab)]||=this[_0x462394(0x328)](_0x360d1d(this[_0x462394(0x232)],_0x35cbcc['UNIVER_SHEET'],_0x18c433=>this[_0x462394(0xe3)](_0x18c433)));}['_getShapeInfo'](_0x4e8dad,_0x4c3be5,_0x58faa7){const _0x5f3231=_0x541acc;let _0x5a9518=this[_0x5f3231(0x1da)][_0x5f3231(0x16d)](_0x4e8dad,_0x4c3be5,_0x58faa7),_0x584d94=this[_0x5f3231(0x1da)][_0x5f3231(0x258)](_0x4e8dad,_0x4c3be5,_0x58faa7);return _0x5a9518!==void 0x0&&_0x584d94!==void 0x0?{'shapeData':_0x584d94,'shapeId':_0x58faa7,'shapeType':_0x5a9518,'unitId':_0x4e8dad,'subUnitId':_0x4c3be5,'version':this[_0x5f3231(0x2b1)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x40e8f0=_0x541acc;this[_0x40e8f0(0x2d7)][_0x40e8f0(0x1ba)](_0x424450=>_0x424450[_0x40e8f0(0x1ae)]()),this[_0x40e8f0(0x2d7)][_0x40e8f0(0xf6)]=0x0;}[_0x541acc(0xe3)](_0x82a35b){const _0x323f75=_0x541acc;let _0x1555d8=new _0x1de28d();return _0x1555d8[_0x323f75(0xb5)](_0x82a35b['createControl$'][_0x323f75(0x36d)](()=>{const _0x4b00fc=_0x323f75;let _0x35160c=_0x82a35b['getSelectedObjectMap']();if(this[_0x4b00fc(0x139)](),this[_0x4b00fc(0x2ed)]||_0x35160c['size']>0x1)return;let _0x28f43b=_0x35160c[_0x4b00fc(0x370)]()[_0x4b00fc(0x2d4)]()['value'];if(!_0x28f43b)return;let _0x4026a0=this['_drawingManagerService']['getDrawingOKey'](_0x28f43b[_0x4b00fc(0x22c)]);if(!_0x4026a0||_0x4026a0['drawingType']!==_0x4a245a[_0x4b00fc(0x1f9)])return;let {unitId:_0x51e4cf,subUnitId:_0x1a8578,drawingId:_0x10ec8a,drawingType:_0x5167da}=_0x4026a0,_0x2f81e7=this[_0x4b00fc(0x250)](_0x51e4cf,_0x1a8578,_0x10ec8a);if(!_0x2f81e7)return;this[_0x4b00fc(0x311)][_0x4b00fc(0x1c5)](_0x121b13,!0x0);let _0x38dd1e=this[_0x4b00fc(0x232)][_0x4b00fc(0x365)](_0x51e4cf),_0x102ee5=((_0x38dd1e==null?void 0x0:_0x38dd1e[_0x4b00fc(0x2f9)])===!0x1?_0x38dd1e[_0x4b00fc(0x320)](_0x5973fe):this[_0x4b00fc(0xcb)])['attachPopupToObject'](_0x28f43b,{'componentKey':zr,'direction':_0x4b00fc(0x2d2),'offset':[0x0,_0x375d53],'extraProps':{'unitId':_0x51e4cf,'subUnitId':_0x1a8578,'drawingId':_0x10ec8a,'drawingType':_0x5167da,'shapeType':_0x2f81e7[_0x4b00fc(0x1e4)],'shapeData':_0x2f81e7['shapeData']}});this[_0x4b00fc(0x2d7)][_0x4b00fc(0x288)](this[_0x4b00fc(0x328)](_0x102ee5)),this[_0x4b00fc(0x1b6)][_0x4b00fc(0x28b)]()['find'](_0x3a5a21=>_0x3a5a21[_0x4b00fc(0x2b7)]===_0x51e4cf&&_0x3a5a21[_0x4b00fc(0x32f)]===_0x1a8578&&_0x3a5a21['drawingId']===_0x10ec8a)||this[_0x4b00fc(0x1b6)][_0x4b00fc(0x1f7)]([{'unitId':_0x51e4cf,'subUnitId':_0x1a8578,'drawingId':_0x10ec8a}]);})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0x2ca)][_0x323f75(0x36d)](()=>{const _0x330a86=_0x323f75;this[_0x330a86(0x139)](),this[_0x330a86(0x311)][_0x330a86(0x1c5)](_0x121b13,!0x1),this[_0x330a86(0x1b6)]['focusDrawing'](null);})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0x2b8)]['subscribe'](()=>{this['_clearPopups']();})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0xfa)]['subscribe'](()=>{const _0x548e00=_0x323f75;this[_0x548e00(0x139)]();})),_0x183b07(()=>{const _0xcc6686=_0x323f75;_0x1555d8[_0xcc6686(0x1ae)](),this[_0xcc6686(0x139)]();});}['_registerOperations'](){const _0x33d135=_0x541acc;this[_0x33d135(0x328)](this[_0x33d135(0xdc)]['onCommandExecuted'](_0x18f3cf=>{const _0x1403d7=_0x33d135;if(_0x18f3cf['id']===Wr['id']){let {unitId:_0x14790c,subUnitId:_0x913c8a,drawingId:_0x51d685}=_0x18f3cf[_0x1403d7(0x152)];this[_0x1403d7(0x2b1)]+=0x1,this[_0x1403d7(0x1e5)]=this[_0x1403d7(0x250)](_0x14790c,_0x913c8a,_0x51d685),this[_0x1403d7(0x139)](),this[_0x1403d7(0x331)]();}if(_0x18f3cf['id']===ya['id']&&(this[_0x1403d7(0x1e5)]=null,this[_0x1403d7(0xbf)]()),_0x18f3cf['id']===_0x2a1218['id']){let {unitId:_0xc53912,subUnitId:_0x2c1865,shapeId:_0x430efb}=_0x18f3cf[_0x1403d7(0x152)];if(this['_activeShapeInfo']&&this[_0x1403d7(0x1e5)][_0x1403d7(0x266)]===_0x430efb){let _0x42f282=this[_0x1403d7(0x250)](_0xc53912,_0x2c1865,_0x430efb);_0x42f282&&(this['_shapeEditPanelVersion']+=0x1,_0x42f282[_0x1403d7(0x102)]=this[_0x1403d7(0x2b1)],this[_0x1403d7(0x1e5)]=_0x42f282,this['_isOpenedShapeEditPanel']&&this[_0x1403d7(0x331)]());}}})),this[_0x33d135(0x328)](this['_drawingManagerService'][_0x33d135(0x169)]['subscribe'](_0x3c3df2=>{const _0x51fce9=_0x33d135;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x3c3df2[_0x51fce9(0xf6)]===0x0){this[_0x51fce9(0x1e5)]=null,this[_0x51fce9(0xbf)]();return;}if(_0x3c3df2[_0x51fce9(0xf6)]===0x1&&_0x3c3df2[0x0][_0x51fce9(0x2e1)]===_0x4a245a[_0x51fce9(0x1f9)]&&(this[_0x51fce9(0x2b1)]+=0x1,this[_0x51fce9(0x1e5)]=this[_0x51fce9(0x250)](_0x3c3df2[0x0][_0x51fce9(0x2b7)],_0x3c3df2[0x0]['subUnitId'],_0x3c3df2[0x0][_0x51fce9(0x162)]),this[_0x51fce9(0x1e5)])){this[_0x51fce9(0x331)]();return;}let _0x53404e=_0x3c3df2[_0x51fce9(0x305)](_0x39b0ff=>_0x39b0ff['drawingType']===_0x4a245a[_0x51fce9(0x1f9)]);if(_0x3c3df2['length']>0x1&&_0x53404e[_0x51fce9(0xf6)]===_0x3c3df2['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x51fce9(0x1e5)]=this['_getShapeInfo'](_0x3c3df2[0x0]['unitId'],_0x3c3df2[0x0][_0x51fce9(0x32f)],_0x3c3df2[0x0][_0x51fce9(0x162)]),this[_0x51fce9(0x1e5)]){this[_0x51fce9(0x331)]();return;}}else{if(this[_0x51fce9(0x2b1)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x3c3df2[0x0][_0x51fce9(0x2b7)],_0x3c3df2[0x0][_0x51fce9(0x32f)],_0x3c3df2[0x0]['drawingId']),this[_0x51fce9(0x1e5)]){this['_activeShapeInfo'][_0x51fce9(0x29e)]=!0x0,this[_0x51fce9(0x331)]();return;}}this[_0x51fce9(0xbf)]();}));}[_0x541acc(0x331)](){const _0x153d9f=_0x541acc;this[_0x153d9f(0x1e5)]&&(this[_0x153d9f(0x32c)]=this[_0x153d9f(0x30c)][_0x153d9f(0x36f)]({'id':Lr,'header':{'title':this[_0x153d9f(0x2a5)]['t'](_0x153d9f(0x33c))},'width':0x184,'children':{'label':Lr,...this[_0x153d9f(0x1e5)]},'onClose':()=>{const _0x37f4dd=_0x153d9f;this[_0x37f4dd(0x1b6)][_0x37f4dd(0x1f7)](null),this['_contextService'][_0x37f4dd(0x1c5)](_0x121b13,!0x1),this[_0x37f4dd(0x32c)]=null;}}),this[_0x153d9f(0x2ed)]=!0x0);}[_0x541acc(0xbf)](){const _0x5b6b76=_0x541acc;this[_0x5b6b76(0x2ed)]=!0x1,this[_0x5b6b76(0x30c)][_0x5b6b76(0x1bf)](Lr),this[_0x5b6b76(0x32c)]=null,this[_0x5b6b76(0x311)][_0x5b6b76(0x1c5)](_0x121b13,!0x1),this['_drawingManagerService'][_0x5b6b76(0x1f7)](null);}};Ma=X([Y(0x0,_0x43400d),Y(0x1,_0x53ba9c(_0x450cf3)),Y(0x2,_0x413bdc),Y(0x3,_0x53ba9c(_0x27864b)),Y(0x4,_0x53ba9c(_0x5622d1)),Y(0x5,_0x2c496c),Y(0x6,_0x5399a4),Y(0x7,_0x53ba9c(_0x5973fe)),Y(0x8,_0x35ac6c),Y(0x9,_0x22bed8),Y(0xa,_0x53ba9c($))],Ma);let Na=class extends _0xcbf5d3{constructor(_0x8fd97c=Yi,_0x5f5c76,_0x501fbb,_0xe79079,_0x4f5486){const _0x5cf398=_0x541acc;super(),this[_0x5cf398(0x100)]=_0x8fd97c,this[_0x5cf398(0x157)]=_0x5f5c76,this['_commandService']=_0x501fbb,this[_0x5cf398(0x28d)]=_0xe79079,this['_renderManagerService']=_0x4f5486;let {..._0x13e67a}=_0x29ed24({},Yi,this['_config']);this['_configService'][_0x5cf398(0x12e)](Ji,_0x13e67a),this[_0x5cf398(0x209)]();}[_0x541acc(0x197)](){const _0x33bbf2=_0x541acc;this[_0x33bbf2(0x232)]['registerRenderModule'](_0x35cbcc['UNIVER_DOC'],[Aa]),_0x634993(this[_0x33bbf2(0x157)],[[Ma],[ca],[Z],[ha]]);}[_0x541acc(0x35d)](){const _0x3804a3=_0x541acc;this[_0x3804a3(0x157)]['get'](Ma)[_0x3804a3(0x117)]();}[_0x541acc(0x327)](){const _0xed2a34=_0x541acc;[[da],[Pr],[fa]][_0xed2a34(0x1ba)](_0x5f1f1c=>this[_0xed2a34(0x157)][_0xed2a34(0xb5)](_0x5f1f1c)),_0x634993(this[_0xed2a34(0x157)],[[fa],[Pr]]),this['_renderManagerService'][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[da]),this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[Xi]),this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[ma]),this[_0xed2a34(0x232)]['registerRenderModule'](_0x35cbcc[_0xed2a34(0x164)],[na]),this['disposeWithMe'](this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[ja])),this['disposeWithMe'](this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[Da]));}[_0x541acc(0x14f)](){const _0x46d753=_0x541acc;this[_0x46d753(0x157)][_0x46d753(0xb5)]([Ea]),this[_0x46d753(0x157)][_0x46d753(0x1e8)](Ea);let _0x5a6659=this[_0x46d753(0x157)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x46d753(0x1ba)](_0x37ff79=>_0x5a6659[_0x46d753(0xb5)](_0x37ff79)),_0x634993(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x541acc(0x209)](){const _0x33eea5=_0x541acc;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x33eea5(0x1ba)](_0xaee7eb=>this[_0x33eea5(0x328)](this[_0x33eea5(0xdc)]['registerCommand'](_0xaee7eb)));}};q(Na,_0x541acc(0x189),_0x35cbcc[_0x541acc(0x164)]),q(Na,_0x541acc(0xf2),'SHEET_SHAPE_UI_PLUGIN'),q(Na,_0x541acc(0x15c),Gi),q(Na,'version',Ki),Na=X([_0x44b434(_0x1c43d9,_0x442a76,_0x237bd8,_0x1a43cb,_0x4a85d4,_0x59b291,_0x51cee2,_0x3c3e08,_0x51e836,_0x1cf3f0,_0x5f07ce,_0xad06b8,_0x12c8db),Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x2c496c),Y(0x3,_0xed9cf),Y(0x4,_0x22bed8)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x714ef0=_0x5396;(function(_0x2bf5d2,_0x4d17ba){const _0x21edd2=_0x5396,_0x31d8db=_0x2bf5d2();while(!![]){try{const _0x3f0fdf=-parseInt(_0x21edd2(0x429))/0x1+parseInt(_0x21edd2(0x368))/0x2+-parseInt(_0x21edd2(0x2b0))/0x3*(parseInt(_0x21edd2(0x419))/0x4)+-parseInt(_0x21edd2(0x2fb))/0x5+parseInt(_0x21edd2(0x2f8))/0x6+-parseInt(_0x21edd2(0x360))/0x7*(-parseInt(_0x21edd2(0x2bd))/0x8)+-parseInt(_0x21edd2(0x1d1))/0x9;if(_0x3f0fdf===_0x4d17ba)break;else _0x31d8db['push'](_0x31d8db['shift']());}catch(_0x54b54f){_0x31d8db['push'](_0x31d8db['shift']());}}}(_0x4ab1,0x21809));import{FormulaShapeAnimationController as _0xb6a9b5,MobileShapeEditorService as _0x9eb493,SHAPE_CHANGE_PICKER_COMPONENT as _0x549e13,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xbe6416,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x571bee,ShapeEditPanel as _0x624b40,ShapeFloatingToolbar as _0x40aecd,ShapeFloatingToolbarService as _0x21f7f2,ShapeFloatingToolbarToggleFactory as _0x5bad15,ShapeFormulaRibbonControl as _0x493081,ShapeGroupEnum as _0x2a0c3e,ShapePickerDropdown as _0x2b2e10,ShapePickerPanel as _0x3bf045,ShapeQuickStyleGallery as _0x10a63c,ShapeStyleRibbonControl as _0x52b5ae,ShapeTextEditorContainer as _0x430207,ShapeTextFloatMenuRenderControllerBase as _0x4a3283,ShapeTextFloatToolbar as _0xca529a,ShapeTextHyperLinkHoverController as _0x1a7486,ShapeTextHyperLinkInfo as _0x2c3aaf,ShapeTextHyperLinkPopupService as _0x26baa8,ShapeTextRibbonControl as _0x2a1de0,ToggleShapeFloatingToolbarOperation as _0x45fee0,UniverShapeEditorMobileUIPlugin as _0x16c905,UniverShapeEditorUIPlugin as _0x28f3b2,activateDrawingObject as _0x2179ed,bindRenderTransformerLifecycle as _0x2cfb50,buildShapeTextDataUpdate as _0x380e1e,clearActiveDrawingObjects as _0x156f61,createShapeTextHyperLinkRegions as _0x3e58b1,drawFormulaShapeAnimationLayers as _0x4a0ea2,getDrawingTypeNameKey as _0x20bb51,getTextModel as _0x109803,getTextStyle as _0x4f4448,normalizeShapeTextModel as _0x5587e4,plainShapeTextToDocumentData as _0x2287f9,prepareShapeTextDocumentData as _0x1c57ea,registerShapeFormatPainter as _0x3b4dfd,resolveFormulaShapeAutoFitSize as _0x19d060,resolveShapeContextualRibbonHostMode as _0x3bb4cc,resolveShapeTextDocumentPageHeight as _0x3d2b36,resolveShapeTextDocumentRenderLayout as _0x34246b,resolveShapeTextEditorBehaviorShapeData as _0x5d5ef9,resolveShapeTextEditorWrapStrategy as _0x1885b0,resolveShapeTextHyperLinkAt as _0x40b4a2,resolveShapeTextHyperLinkObject as _0x296a42,shouldAllowShapeTextEditorHostSizeShrink as _0x248a4d,shouldClipShapeTextDocument as _0x430642,useFormulaShapeToolbar as _0x1f34d3}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a67d0,ContextMenuGroup as _0x144ec7,ContextMenuPosition as _0x281ae1,FloatingObjectToolbarPosition as _0x2b4dd0,FormatPainterSessionService as _0x43a96f,IMenuManagerService as _0x308400,IRibbonService as _0x1dad42,ISidebarService as _0x3d8cd5,IconManager as _0x1567a8,MenuItemType as _0x507a55,MenuManagerPosition as _0x31bc17,RibbonInsertGroup as _0x3372cf,UndoRedoGroupService as _0x4605cf,UniverMobileUIPlugin as _0xdc088c,getMenuHiddenObservable as _0x1975c5,useDependency as _0x3bcf4c,useObservable as _0x54184f}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x2610e3,ImageSourceTypeEnum as _0x1a3351,ShapeArrowSizeEnum as _0x5c2abc,ShapeArrowTypeEnum as _0x2a1afb,ShapeDefaultConfig as _0x4945a0,ShapeFillEnum as _0x271926,ShapeLineTypeEnum as _0x560aad,ShapeModel as _0x573393,ShapeRenderModeEnum as _0x1a48ca,ShapeTypeEnum as _0xf1eb19,computeConnectorRouteLayout as _0x1469b5,getBasicShapeRotateBound as _0x4191f0,isConnectorShape as _0x4cb876,isCurvedConnectorShape as _0x179376,routeConnectorLineShape as _0x22d8a5}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x205d16,UniverShapeEditorPlugin as _0x2d5783,applyQuickStyleToShapeData as _0x368cae,cloneShapeDataForType as _0x56761c,createShapeFormulaDocument as _0x342a66,createShapeTextBoxShapeData as _0xa48a9d,getShapeQuickStylePreset as _0x3ceb76,getShapeQuickStyleType as _0x189f9a,resolveActiveShapeQuickStylePresetId as _0x555e02}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x166112,InsertSheetsShapeMutation as _0x269d0a,RemoveSheetsShapeMutation as _0x2506a4,SetShapeDrawingDataCommand as _0x2cc34c,SheetsShapeService as _0x5b8f71,ToggleSheetsShapeFlipCommand as _0x4b4814,UniverSheetsShapePlugin as _0x178f75,UpdateConnectorRelationCommand as _0x128516,UpdateLineShapeResizeCommand as _0x48cda4,UpdateSheetsShapeDataMutation as _0x197dab}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x426c14,CommandType as _0x4017c5,DependentOn as _0x542984,Disposable as _0xe29064,DisposableCollection as _0x5941cd,DocumentDataModel as _0x2a49c7,DrawingTypeEnum as _0x544f7a,FOCUSING_COMMON_DRAWINGS as _0x435760,FOCUSING_SHAPE_TEXT_EDITOR as _0xd91ec1,HorizontalAlign as _0x5d9043,ICommandService as _0x2b8a3e,IConfigService as _0x5f4811,IContextService as _0x3ae1e3,IImageIoService as _0x1fd21f,IPermissionService as _0x9a590e,IURLImageService as _0x427e79,IUndoRedoService as _0x335b8b,IUniverInstanceService as _0x1d15d2,Inject as _0x5c502f,Injector as _0x25a967,LocaleService as _0x30b59c,Plugin as _0x14d9ad,UniverInstanceType as _0x58aa7b,VerticalAlign as _0x4f4c88,createInternalEditorID as _0x47130c,generateRandomId as _0x2f2dbb,merge as _0x1a3e4c,registerDependencies as _0x5ee9a9,toDisposable as _0x128476,touchDependencies as _0x6cf6c}from'@univerjs/core';import{CopySheetCommand as _0x2b64f6,RemoveSheetCommand as _0x21d984,SheetInterceptorService as _0x2a88c5,SheetPermissionCheckController as _0x33b80c,SheetSkeletonService as _0x48e7a4,SheetsSelectionsService as _0x469c9d,UniverSheetsPlugin as _0x1b9900,WorkbookCopyPermission as _0x324600,WorkbookEditablePermission as _0xe0fab9,WorksheetCopyPermission as _0x51eb20,WorksheetEditPermission as _0x123e53,attachRangeWithCoord as _0x50939b,discreteRangeToRange as _0x5de548,getSheetCommandTarget as _0x510a30}from'@univerjs/sheets';import{IDrawingManagerService as _0x19d008,SetDrawingSelectedOperation as _0x2b2ec1,UniverDrawingPlugin as _0x3fbaa1,getDrawingShapeKeyByDrawingSearch as _0x562c30,getOrCreateDrawingCopyPlan as _0x16a868}from'@univerjs/drawing';import{CURSOR_TYPE as _0x141a72,Circle as _0x540920,DRAWING_OBJECT_LAYER_INDEX as _0x4232ac,DocumentSkeleton as _0x68ac11,DocumentViewModel as _0x5b1715,Documents as _0x36ba8c,IRenderManagerService as _0x1e1faa,Image as _0x230c76,RENDER_CLASS_TYPE as _0x61e19a,SHEET_VIEWPORT_KEY as _0x5b9251,Shape as _0x240da9,Transform as _0x5a3b07,UniverRenderEnginePlugin as _0x262fbb,Vector2 as _0x5be732}from'@univerjs/engine-render';import{COPY_TYPE as _0x22fdbb,ISheetClipboardService as _0x345ee2,PREDEFINED_HOOK_NAME as _0x205afc,SheetCanvasPopManagerService as _0x2373db,SheetPrintInterceptorService as _0x39aad2,SheetScrollManagerService as _0x4e89db,SheetSkeletonManagerService as _0x44086e,UniverSheetsMobileUIPlugin as _0x50669f,UniverSheetsUIPlugin as _0x1542ac,deriveStateFromActiveSheet$ as _0x5b4c60,getCurrentRangeDisable$ as _0x3afc35,getViewportByCell as _0xe31858}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x50fa27,EMPTY as _0x535914,Observable as _0x1bac00,map as _0x3fd006,merge as _0x252868,of as _0x12c65f,startWith as _0x293b44,switchMap as _0x1e4916}from'rxjs';import{DrawingCommonPanel as _0x5527d5,DrawingImageClipService as _0x1d70d0,DrawingRenderService as _0x596343,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x4fdf51,MobileObjectListPanel as _0x5174cb,OBJECT_LIST_FLOATING_SECTION_ID as _0x3904f4,ObjectListPanelBase as _0xd50128,UniverDrawingUIPlugin as _0x2cd028,getCurrentUnitInfo as _0x52a805,getObjectListPanelSectionIdForDrawingType as _0x286e3b,insertGroupObject as _0x2a3ac3}from'@univerjs/drawing-ui';import{MobileDropdown as _0x8991e2}from'@univerjs/design';import{Fragment as _0x1956c4,jsx as _0x230828,jsxs as _0x55ce9a}from'react/jsx-runtime';import{DrawingApplyType as _0x377ac1,ISheetDrawingService as _0x4ba6b3,RemoveSheetDrawingCommand as _0x3e89af,SetDrawingApplyMutation as _0x2221ab,SetDrawingArrangeCommand as _0x8e2df9,SetSheetDrawingCommand as _0x297360,UniverSheetsDrawingPlugin as _0x28c2e2,transformToAxisAlignPosition as _0x5c977a,transformToDrawingPosition as _0x33f6ee}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1b2df7}from'@univerjs-pro/license';import{DocInterceptorService as _0x18dd84,DocSelectionManagerService as _0x50e1f3,UniverDocsPlugin as _0x3444ed}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x3b5158,DocEventManagerService as _0x13e37b,DocRenderController as _0x14fc5b,DocSelectionRenderService as _0x533da4,UniverDocsUIPlugin as _0x4ebfbc}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x522516,SheetsDrawingGroupCopyPasteController as _0x5e793f,UniverSheetsDrawingMobileUIPlugin as _0x58b005,UniverSheetsDrawingUIPlugin as _0x33abc1}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5d75f2,FlipHorizontalIcon as _0x4b0f8a,FlipVerticalIcon as _0x5e2243,MoveDownIcon as _0x178ad9,MoveUpIcon as _0x1ab950,ObjectLayersIcon as _0xe11253,ShapeFormatSettingIcon as _0x1496d5,TopmostIcon as _0x215261}from'@univerjs/icons';import{memo as _0x3aaaf3,useEffect as _0x5c63a2,useMemo as _0x23fcdc,useReducer as _0x3da1b7,useState as _0x2f8af9}from'react';function Er(_0x364107,_0x35d236){const _0x5730a7=_0x5396;let _0x152535={};for(let _0x4ef89a of Object[_0x5730a7(0x1a3)](_0x35d236)){let _0x552d61=_0x35d236[_0x4ef89a],_0x1c21e4=_0x364107[_0x4ef89a];_0x152535[_0x4ef89a]=_0x1c21e4===void 0x0?void 0x0:typeof _0x552d61==_0x5730a7(0x257)&&_0x552d61&&!Array[_0x5730a7(0x246)](_0x552d61)&&typeof _0x1c21e4=='object'&&_0x1c21e4&&!Array[_0x5730a7(0x246)](_0x1c21e4)?Er(_0x1c21e4,_0x552d61):_0x1c21e4;}return _0x152535;}function _0x5396(_0x5c0ca8,_0x48764a){_0x5c0ca8=_0x5c0ca8-0x15e;const _0x4ab1e3=_0x4ab1();let _0x5396d6=_0x4ab1e3[_0x5c0ca8];return _0x5396d6;}const K={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x38d),'handler':(_0x3ed849,_0x54eacb)=>{const _0x27b374=_0x714ef0;let _0x576f34=_0x3ed849['get'](_0x5b8f71),{unitId:_0xa7a9fc,subUnitId:_0x5f4246,shapeType:_0x483d53,shapeId:_0x4795a2,shapeData:_0x4c5383,replaceShapeData:_0x3d8104,oldShapeJSON:_0x1201ba}=_0x54eacb;if(!_0x576f34[_0x27b374(0x199)](_0xa7a9fc,_0x5f4246,_0x4795a2))return!0x1;let _0x345381=_0x3ed849['get'](_0x2b8a3e),_0x3b442d=_0x3ed849['get'](_0x335b8b),{oldShapeType:_0x293959,oldShapeData:_0x595432={}}=_0x1201ba,_0x284cc5=_0x3d8104?_0x595432:Er(_0x595432,_0x4c5383||{}),_0x1ab1fc={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x483d53,'shapeData':_0x4c5383,'replace':_0x3d8104}},_0x214d01={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x293959,'shapeData':_0x284cc5,'replace':_0x3d8104}};return _0x345381[_0x27b374(0x3ca)](_0x1ab1fc['id'],_0x1ab1fc[_0x27b374(0x387)])?(_0x3b442d[_0x27b374(0x1be)]({'unitID':_0xa7a9fc,'undoMutations':[_0x214d01],'redoMutations':[_0x1ab1fc]}),!0x0):!0x1;}};function Dr(_0x198721,_0x8b1110,_0xeaa61d,_0xcb99fa,_0x587996,_0x3f2231){const _0x336be7=_0x714ef0;let _0x55bd71={'unitId':_0x8b1110,'subUnitId':_0xeaa61d,'shapeId':_0xcb99fa,'shapeData':_0x3f2231,'oldShapeJSON':_0x587996};return _0x198721[_0x336be7(0x40b)](K['id'],_0x55bd71);}function Or(_0x74a600,_0x19324d,_0x7b8c39,_0x37c2f5,_0x4f1128,_0x2efd63){const _0x1e52c8=_0x714ef0;let _0x1b9b77={'unitId':_0x19324d,'subUnitId':_0x7b8c39,'shapeId':_0x37c2f5,'shapeData':_0x2efd63,'oldShapeJSON':_0x4f1128};return _0x74a600[_0x1e52c8(0x40b)](K['id'],_0x1b9b77);}function kr(_0x4bfbc7){'@babel/helpers - typeof';const _0x1d3391=_0x714ef0;return kr=typeof Symbol=='function'&&typeof Symbol[_0x1d3391(0x2db)]==_0x1d3391(0x3ef)?function(_0x11a6a6){return typeof _0x11a6a6;}:function(_0x516e0a){const _0x3716c9=_0x1d3391;return _0x516e0a&&typeof Symbol=='function'&&_0x516e0a[_0x3716c9(0x409)]===Symbol&&_0x516e0a!==Symbol[_0x3716c9(0x22c)]?_0x3716c9(0x3ef):typeof _0x516e0a;},kr(_0x4bfbc7);}function Ar(_0x36ca3e,_0x1d440d){const _0x38520b=_0x714ef0;if(kr(_0x36ca3e)!=_0x38520b(0x257)||!_0x36ca3e)return _0x36ca3e;var _0x2f6493=_0x36ca3e[Symbol[_0x38520b(0x2bb)]];if(_0x2f6493!==void 0x0){var _0x2cc971=_0x2f6493['call'](_0x36ca3e,_0x1d440d||_0x38520b(0x2e7));if(kr(_0x2cc971)!=_0x38520b(0x257))return _0x2cc971;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d440d===_0x38520b(0x432)?String:Number)(_0x36ca3e);}function jr(_0x49d0e4){const _0x55e886=_0x714ef0;var _0x1bff42=Ar(_0x49d0e4,'string');return kr(_0x1bff42)==_0x55e886(0x3ef)?_0x1bff42:_0x1bff42+'';}function q(_0x5cda28,_0x563ea4,_0x3be3ef){const _0x1b47e7=_0x714ef0;return(_0x563ea4=jr(_0x563ea4))in _0x5cda28?Object[_0x1b47e7(0x1fe)](_0x5cda28,_0x563ea4,{'value':_0x3be3ef,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cda28[_0x563ea4]=_0x3be3ef,_0x5cda28;}function Mr(_0x255ff6,_0x3d4cc4,_0x1fd22d){const _0x17945c=_0x714ef0;let _0x414f32={..._0x3d4cc4,'dataModel':{..._0x3d4cc4[_0x17945c(0x186)]??{},..._0x1fd22d?{'doc':_0x1fd22d}:null}},_0x351bb5=_0x5d5ef9(_0x255ff6,_0x414f32),_0x1e9e53=_0x1885b0(_0x351bb5);return{'clip':_0x430642(_0x351bb5,_0x1e9e53),'wrapStrategy':_0x1e9e53};}var J=class extends _0x240da9{constructor(_0x395789,_0x223070){const _0x288b39=_0x714ef0;super(_0x395789,_0x223070),q(this,'_hyperLinkRegions',[]),q(this,'_props',void 0x0),q(this,_0x288b39(0x16d),new _0xb6a9b5(()=>this[_0x288b39(0x226)](!0x0),()=>this[_0x288b39(0x3ed)]())),q(this,_0x288b39(0x2e6),!0x0),q(this,_0x288b39(0x27d),_0x544f7a[_0x288b39(0x2c1)]),q(this,_0x288b39(0x1b5),!0x0),this[_0x288b39(0x34e)]={..._0x223070},this[_0x288b39(0x16d)]['setPresentation'](_0x223070['formulaPresentation'],_0x223070[_0x288b39(0x37c)]!==!0x1),this[_0x288b39(0x306)](),this[_0x288b39(0x3ed)]();}[_0x714ef0(0x306)](){const _0x1f976e=_0x714ef0;this[_0x1f976e(0x2c8)][_0x1f976e(0x212)](_0x35f616=>{const _0x2f409c=_0x1f976e;this[_0x2f409c(0x16b)](_0x35f616);});}[_0x714ef0(0x3b4)](_0xf01693){const _0x3c9b99=_0x714ef0;this[_0x3c9b99(0x34e)]['prstGeom']=_0xf01693;}[_0x714ef0(0x24e)](_0x3c8f13){const _0x2c09de=_0x714ef0;if(this[_0x2c09de(0x34e)]['isEditing'])return null;let _0x3c8ee5=this['getInverseCoord'](_0x3c8f13),{width:_0x4426f5,height:_0x38712e}=this[_0x2c09de(0x27e)]();return _0x40b4a2(this['_hyperLinkRegions'],{'x':(this[_0x2c09de(0x18d)]?-_0x3c8ee5['x']:_0x3c8ee5['x'])+_0x4426f5/0x2,'y':_0x3c8ee5['y']+_0x38712e/0x2});}[_0x714ef0(0x380)](_0x5d683f){const _0x14f769=_0x714ef0;this[_0x14f769(0x34e)]['isEditing']=_0x5d683f,this[_0x14f769(0x226)](!0x0);}[_0x714ef0(0x261)](_0x13d852,_0x4efde9=!0x0){const _0x19d28a=_0x714ef0;this[_0x19d28a(0x16d)][_0x19d28a(0x428)](_0x13d852,_0x4efde9),this[_0x19d28a(0x34e)][_0x19d28a(0x381)]=_0x13d852,this[_0x19d28a(0x3ed)](),this[_0x19d28a(0x226)](!0x0);}[_0x714ef0(0x3ed)](){const _0x18468c=_0x714ef0;let _0x434b8e=this[_0x18468c(0x34e)][_0x18468c(0x2e9)],_0x237be6=_0x434b8e[_0x18468c(0x33d)](),_0x11abb2=_0x5587e4(_0x237be6==null?void 0x0:_0x237be6[_0x18468c(0x186)]),_0x5e4c71=_0x11abb2==null?void 0x0:_0x11abb2[_0x18468c(0x32c)],_0x2852e1=this[_0x18468c(0x16d)][_0x18468c(0x1b2)]();if(!_0x5e4c71||_0x2852e1[_0x18468c(0x1c3)]===0x0)return;_0x434b8e[_0x18468c(0x2b8)]({'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]});let _0x9fa737=_0x19d060({'documentData':_0x2852e1[_0x18468c(0x316)](_0x1cea70=>_0x342a66(_0x5e4c71,_0x1cea70)),'height':this['height'],'shapeData':_0x434b8e['getShapeData'](),'textRect':_0x434b8e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]}),'width':this[_0x18468c(0x253)]});if(_0x9fa737){var _0x597479;this['resize'](_0x9fa737[_0x18468c(0x253)],_0x9fa737[_0x18468c(0x2d4)]),(_0x597479=this[_0x18468c(0x24c)]())==null||(_0x597479=_0x597479[_0x18468c(0x20e)]())==null||_0x597479['debounceRefreshControls']();}}get[_0x714ef0(0x277)](){const _0x3de7d9=_0x714ef0;return this['_props'][_0x3de7d9(0x277)];}get[_0x714ef0(0x3d0)](){return this['_props']['subUnitId'];}[_0x714ef0(0x16b)](_0x5e3423){const _0x130713=_0x714ef0;if(this[_0x130713(0x34e)][_0x130713(0x2cc)]==null||!this[_0x130713(0x2e6)])return;let {width:_0x74563f,height:_0x1d6893}=this,{width:_0x1d3bf3=0x0,height:_0x2a950a=0x0}=_0x5e3423[_0x130713(0x32a)],{left:_0x4b8d77=0x0,top:_0xa2b803=0x0,right:_0x53ac67=0x0,bottom:_0x480957=0x0}=this[_0x130713(0x34e)][_0x130713(0x2cc)],_0xeca028=_0x4b8d77,_0x20ae1a=_0xa2b803,_0x862f67=_0x53ac67,_0x5b404f=_0x480957,_0x217a4d=!0x1;if(_0x1d3bf3!==0x0&&_0x1d3bf3!==_0x74563f){let _0x4dd00f=_0x4b8d77/_0x1d3bf3,_0xe73a94=_0x53ac67/_0x1d3bf3;_0xeca028=_0x74563f*_0x4dd00f,_0x862f67=_0x74563f*_0xe73a94,_0x217a4d=!0x0;}if(_0x2a950a!==0x0&&_0x2a950a!==_0x1d6893){let _0x2d2244=_0xa2b803/_0x2a950a,_0x4f4c87=_0x480957/_0x2a950a;_0x20ae1a=_0x1d6893*_0x2d2244,_0x5b404f=_0x1d6893*_0x4f4c87,_0x217a4d=!0x0;}_0x217a4d&&this['setSrcRect']({'left':_0xeca028,'top':_0x20ae1a,'right':_0x862f67,'bottom':_0x5b404f});}[_0x714ef0(0x323)](_0x5ce644){const _0x5dcf91=_0x714ef0;this[_0x5dcf91(0x34e)][_0x5dcf91(0x2cc)]=_0x5ce644,this['makeDirty'](!0x0);}[_0x714ef0(0x29e)](_0xfcff69){const _0x3a8c52=_0x714ef0;this[_0x3a8c52(0x34e)][_0x3a8c52(0x333)]=_0xfcff69,this[_0x3a8c52(0x226)](!0x0);}set['transform'](_0x5f3493){this['_transform']=_0x5f3493;}get[_0x714ef0(0x29f)](){const _0x3df81e=_0x714ef0;this[_0x3df81e(0x23a)]||this[_0x3df81e(0x21e)]();let _0x7c20=this[_0x3df81e(0x23a)][_0x3df81e(0x3a0)]();return this[_0x3df81e(0x3a8)](_0x7c20);}get[_0x714ef0(0x2e9)](){const _0x29623f=_0x714ef0;return this[_0x29623f(0x34e)]['shapeModel'];}get['shapeId'](){const _0x3859a9=_0x714ef0;return this[_0x3859a9(0x34e)]['shapeId'];}get['classType'](){const _0x57021c=_0x714ef0;return _0x61e19a[_0x57021c(0x427)];}['_draw'](_0x1d297d,_0x587200,_0x5c4619,_0x94fef6){const _0x71aeab=_0x714ef0;let _0x5b0f28=this['_props'][_0x71aeab(0x2e9)];if(!_0x5b0f28||!_0x587200)return;let _0x177514=_0x5c4619??this['width'],_0x4f3d7a=_0x94fef6??this['height'],_0x5d65ec={'shapeType':_0x5b0f28[_0x71aeab(0x2fc)](),'width':_0x177514,'height':_0x4f3d7a},_0x4316d8={'renderMode':_0x1a48ca[_0x71aeab(0x2a4)],'oKey':this[_0x71aeab(0x266)],'image':this[_0x71aeab(0x34e)]['image'],'angle':this[_0x71aeab(0x2ae)]};_0x5b0f28[_0x71aeab(0x2b8)](_0x5d65ec),_0x1d297d[_0x71aeab(0x32b)]();let _0x3ac23b={'top':0x0,'left':0x0,'width':_0x177514,'height':_0x4f3d7a},_0xe16c36=_0x5b0f28[_0x71aeab(0x1a0)](_0x3ac23b);_0xe16c36?this['_renderWithCache'](_0x1d297d,_0xe16c36,_0x4226a6=>{const _0x1fec8d=_0x71aeab;_0x5b0f28[_0x1fec8d(0x2e4)](_0x4226a6,_0x3ac23b,_0x4316d8);}):(this[_0x71aeab(0x242)](),_0x5b0f28['render'](_0x1d297d,_0x3ac23b,_0x4316d8)),_0x1d297d['restore']();let _0x12d51a=_0x5b0f28['getShapeTextData'](),_0x3edf2b=_0x5b0f28[_0x71aeab(0x415)](_0x3ac23b),_0x3fdc87=_0x5b0f28['isLineShape']();if(_0x12d51a&&_0x3edf2b&&!_0x3fdc87){_0x1d297d[_0x71aeab(0x32b)](),this[_0x71aeab(0x1b4)]()[_0x71aeab(0x18d)]&&_0x1d297d[_0x71aeab(0x1d5)](-0x1,0x1);let _0x37c7e8=_0x177514/0x2,_0xaaac61=_0x4f3d7a/0x2;_0x1d297d[_0x71aeab(0x2a1)](-_0x37c7e8,-_0xaaac61),_0x1d297d[_0x71aeab(0x2f7)](),this[_0x71aeab(0x205)](_0x1d297d,_0x12d51a,_0x3edf2b),_0x1d297d[_0x71aeab(0x1eb)]();}}[_0x714ef0(0x41e)](_0x1e7932){}['_drawShapeText'](_0x26195a,_0x35f6b0,_0x1c5b69){const _0x14d908=_0x714ef0;var _0x5bf7ed;this[_0x14d908(0x339)]=[],!this[_0x14d908(0x34e)][_0x14d908(0x2d1)]&&(!((_0x5bf7ed=_0x35f6b0[_0x14d908(0x186)])!=null&&_0x5bf7ed[_0x14d908(0x32c)])&&'isRichText'in _0x35f6b0&&_0x35f6b0[_0x14d908(0x36a)]===!0x1?this['_drawSimpleText'](_0x26195a,_0x35f6b0,_0x1c5b69):this[_0x14d908(0x308)](_0x26195a,_0x35f6b0,_0x1c5b69));}['_drawSimpleText'](_0xfeafb,_0x5520df,_0x593e45){const _0x1a5eeb=_0x714ef0;this[_0x1a5eeb(0x308)](_0xfeafb,{..._0x5520df,'text':_0x5520df[_0x1a5eeb(0x281)]??'','dataModel':{'doc':_0x2287f9(_0x5520df,_0x1a5eeb(0x23f)+this[_0x1a5eeb(0x266)])}},_0x593e45);}[_0x714ef0(0x308)](_0x520e23,_0x6eee97,_0x5f151c){const _0x2299aa=_0x714ef0;_0x4a0ea2(_0x520e23,this[_0x2299aa(0x16d)],(_0x276d6b,_0x504887,_0x260e0b)=>{const _0x4bed5a=_0x2299aa;this[_0x4bed5a(0x3db)](_0x276d6b,_0x6eee97,_0x5f151c,_0x504887,_0x260e0b===_0x4bed5a(0x36d));});}['_drawRichTextLayer'](_0x1e2d4c,_0x25430c,_0x3aeff9,_0x29e7a4,_0x476c63){const _0x4a0d7e=_0x714ef0;let _0x345cbd=this['_props']['localeService'];if(!_0x25430c['dataModel']||!_0x345cbd)return;let _0x6507a1=_0x5587e4(_0x25430c['dataModel']);if(!_0x6507a1)return;let _0x5f4c66=_0x6507a1[_0x4a0d7e(0x32c)];if(!_0x5f4c66)return;let _0x3f0939=_0x342a66(_0x5f4c66,_0x29e7a4),_0x254fbd=_0x6507a1['va']??_0x4f4c88[_0x4a0d7e(0x264)],_0x546866=_0x6507a1['ha']??_0x5d9043['LEFT'],_0x495af2=Mr(this[_0x4a0d7e(0x34e)][_0x4a0d7e(0x2e9)][_0x4a0d7e(0x3c4)](),_0x25430c,_0x3f0939),_0x5fe9c3=_0x25430c[_0x4a0d7e(0x236)],_0x2e08eb=_0x1c57ea(_0x3f0939,{'isHorizontal':_0x5fe9c3!==!0x1,'textRect':_0x3aeff9,'verticalAlign':_0x254fbd,'horizontalAlign':_0x546866,'wrapStrategy':_0x495af2[_0x4a0d7e(0x293)]}),_0x40099e=new _0x2a49c7(_0x2e08eb),_0x5c9de2=new _0x5b1715(_0x40099e),_0x30d7ce=_0x68ac11['create'](_0x5c9de2,_0x345cbd);_0x30d7ce['calculate']();let _0x161355=_0x30d7ce[_0x4a0d7e(0x2ec)]()[_0x4a0d7e(0x19b)],_0x2f9ebe=_0x34246b({'contentHeight':_0x161355,'verticalAlign':_0x254fbd,'viewportHeight':_0x3aeff9['height']});_0x40099e[_0x4a0d7e(0x1fd)]({'pageSize':{'width':_0x5fe9c3===!0x1?_0x3aeff9['height']:_0x3aeff9[_0x4a0d7e(0x253)],'height':_0x3d2b36(_0x3f0939,_0x2f9ebe[_0x4a0d7e(0x239)])}}),_0x40099e[_0x4a0d7e(0x29c)]({'t':_0x2f9ebe[_0x4a0d7e(0x355)]}),_0x30d7ce[_0x4a0d7e(0x37b)]();let _0x51f5e8=new _0x36ba8c(_0x4a0d7e(0x41a)+this[_0x4a0d7e(0x266)],_0x30d7ce,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x51f5e8['resize'](_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe['contentHeight']),_0x1e2d4c['save'](),_0x1e2d4c[_0x4a0d7e(0x2ad)](_0x3aeff9[_0x4a0d7e(0x201)],_0x3aeff9['top']),_0x495af2[_0x4a0d7e(0x2e1)]&&(_0x1e2d4c[_0x4a0d7e(0x2f7)](),_0x1e2d4c[_0x4a0d7e(0x2fd)](0x0,_0x2f9ebe[_0x4a0d7e(0x233)],_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe[_0x4a0d7e(0x40a)]),_0x1e2d4c[_0x4a0d7e(0x2e1)]()),_0x2f9ebe[_0x4a0d7e(0x276)]&&_0x1e2d4c[_0x4a0d7e(0x2ad)](0x0,_0x2f9ebe[_0x4a0d7e(0x276)]),_0x51f5e8[_0x4a0d7e(0x3c2)](_0x1e2d4c),_0x476c63&&(this[_0x4a0d7e(0x339)]=_0x3e58b1(_0x51f5e8,{'left':_0x3aeff9[_0x4a0d7e(0x201)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x276)]},_0x495af2['clip']?{'left':_0x3aeff9[_0x4a0d7e(0x201)],'right':_0x3aeff9['left']+_0x3aeff9[_0x4a0d7e(0x253)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x233)],'bottom':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe['clipTop']+_0x2f9ebe[_0x4a0d7e(0x40a)]}:void 0x0)),_0x1e2d4c[_0x4a0d7e(0x1eb)](),_0x51f5e8[_0x4a0d7e(0x232)](),_0x30d7ce[_0x4a0d7e(0x232)](),_0x5c9de2[_0x4a0d7e(0x232)](),_0x40099e[_0x4a0d7e(0x232)]();}[_0x714ef0(0x2e4)](_0x5654f7,_0x18c16d,_0x3252b2=!0x1){const _0x20e743=_0x714ef0;if(!this[_0x20e743(0x206)])return this[_0x20e743(0x226)](!0x1),this;let {width:_0x34d149,height:_0x43f24f,left:_0x51946f,top:_0x1d5179}=this,_0x4da6b2=this['getRealBound']();if(_0x34d149=_0x4da6b2[_0x20e743(0x253)],_0x43f24f=_0x4da6b2[_0x20e743(0x2d4)],_0x51946f=_0x4da6b2[_0x20e743(0x201)],_0x1d5179=_0x4da6b2[_0x20e743(0x211)],this['isRender'](_0x18c16d)){let {top:_0xd610d2,left:_0xcf54c2,bottom:_0x4a2eb7,right:_0x3718d8}=_0x18c16d[_0x20e743(0x1cf)];if(_0x34d149+this[_0x20e743(0x166)]+_0x51946f<_0xcf54c2||_0x3718d8<_0x51946f||_0x43f24f+this[_0x20e743(0x166)]+_0x1d5179<_0xd610d2||_0x4a2eb7<_0x1d5179)return this;}let _0x394742=_0x51946f+_0x34d149/0x2,_0x197d36=_0x1d5179+_0x43f24f/0x2,_0x2e75e8=this['transform'][_0x20e743(0x231)]();if(this[_0x20e743(0x34e)][_0x20e743(0x2d1)]){let _0x29934f=this[_0x20e743(0x1b4)](),_0x1891d3=new _0x5a3b07();_0x1891d3[_0x20e743(0x41c)]({..._0x29934f}),_0x2e75e8=_0x1891d3[_0x20e743(0x231)]();}return _0x5654f7['save'](),this[_0x20e743(0x34e)][_0x20e743(0x2e9)][_0x20e743(0x195)]===!0x0||_0x5654f7[_0x20e743(0x29f)](_0x2e75e8[0x0],_0x2e75e8[0x1],_0x2e75e8[0x2],_0x2e75e8[0x3],_0x394742,_0x197d36),this['_draw'](_0x5654f7,_0x18c16d,_0x34d149,_0x43f24f),_0x5654f7[_0x20e743(0x1eb)](),this['makeDirty'](!0x1),this;}[_0x714ef0(0x304)](_0x5714a7){const _0x48472d=_0x714ef0;let {left:_0x82961a,top:_0x39bd28,width:_0x14522e,height:_0xc6ce51}=this[_0x48472d(0x27e)](),_0x569781=this[_0x48472d(0x29f)][_0x48472d(0x231)](),_0x1ef5a5=_0x82961a+_0x14522e/0x2,_0x4dd2fc=_0x39bd28+_0xc6ce51/0x2,_0x356e2d=new _0x5a3b07([_0x569781[0x0],_0x569781[0x1],_0x569781[0x2],_0x569781[0x3],_0x1ef5a5,_0x4dd2fc]),_0x3b4c02=this[_0x48472d(0x20a)]();return(this[_0x48472d(0x3eb)]&&(_0x3b4c02==null?void 0x0:_0x3b4c02[_0x48472d(0x3d6)])===_0x61e19a[_0x48472d(0x240)]?_0x3b4c02[_0x48472d(0x2dc)][_0x48472d(0x196)](_0x356e2d):_0x356e2d)[_0x48472d(0x265)]()[_0x48472d(0x171)](_0x5714a7);}[_0x714ef0(0x2f9)](_0x5f47b1){const _0x5b7ac8=_0x714ef0;let {left:_0x47f21c,top:_0x237d8d,width:_0x792b47,height:_0xcf78af}=this[_0x5b7ac8(0x27e)](),_0x30cc98=_0x47f21c+_0x792b47/0x2,_0x405698=_0x237d8d+_0xcf78af/0x2,_0x4a4190=this[_0x5b7ac8(0x29f)][_0x5b7ac8(0x231)](),_0x3d2d23=new _0x5a3b07([_0x4a4190[0x0],_0x4a4190[0x1],_0x4a4190[0x2],_0x4a4190[0x3],_0x30cc98,_0x405698]),_0x189a29=this[_0x5b7ac8(0x20a)](),_0x1fe4b3=(this['isInGroup']&&(_0x189a29==null?void 0x0:_0x189a29[_0x5b7ac8(0x3d6)])===_0x61e19a['GROUP']?_0x189a29[_0x5b7ac8(0x2dc)]['multiply'](_0x3d2d23):_0x3d2d23)[_0x5b7ac8(0x265)]()[_0x5b7ac8(0x171)](_0x5f47b1),_0x22ef6a=_0x792b47/0x2,_0x9c2eb4=_0xcf78af/0x2,_0x5dd38e=this['_props'][_0x5b7ac8(0x2e9)];return _0x5dd38e&&_0x5dd38e[_0x5b7ac8(0x229)]()?_0x5dd38e[_0x5b7ac8(0x345)](_0x1fe4b3['x'],_0x1fe4b3['y'],_0x792b47,_0xcf78af):_0x1fe4b3['x']>=-_0x22ef6a-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['x']<=_0x22ef6a+this['strokeWidth']/0x2&&_0x1fe4b3['y']>=-_0x9c2eb4-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['y']<=_0x9c2eb4+this[_0x5b7ac8(0x166)]/0x2;}['dispose'](){const _0x43cdcf=_0x714ef0;this[_0x43cdcf(0x16d)]['dispose'](),this[_0x43cdcf(0x34e)][_0x43cdcf(0x2e9)]=null,super[_0x43cdcf(0x232)]();}},Nr=class extends _0x240da9{constructor(_0x5e96d8,_0x482c13){const _0x349804=_0x714ef0;super(_0x5e96d8,_0x482c13),q(this,_0x349804(0x295),null),q(this,_0x349804(0x392),null),q(this,_0x349804(0x180),null),q(this,_0x349804(0x3af),null),_0x482c13&&this[_0x349804(0x30a)](_0x482c13);}[_0x714ef0(0x423)](){const _0x14fddc=_0x714ef0;return{'unitId':this[_0x14fddc(0x180)],'subUnitId':this[_0x14fddc(0x3af)],'drawingId':this[_0x14fddc(0x295)]};}[_0x714ef0(0x30a)](_0x30326b){const _0x219177=_0x714ef0;_0x30326b[_0x219177(0x21d)]!==void 0x0&&(this['_shapeId']=_0x30326b[_0x219177(0x21d)]),_0x30326b[_0x219177(0x2a3)]!==void 0x0&&(this['_adjName']=_0x30326b[_0x219177(0x2a3)]),_0x30326b[_0x219177(0x277)]!==void 0x0&&(this[_0x219177(0x180)]=_0x30326b['unitId']),_0x30326b[_0x219177(0x3d0)]!==void 0x0&&(this[_0x219177(0x3af)]=_0x30326b[_0x219177(0x3d0)]),this[_0x219177(0x1b1)]({'width':_0x30326b[_0x219177(0x253)],'height':_0x30326b[_0x219177(0x2d4)]});}['_draw'](_0x331444){const _0x5385f9=_0x714ef0;_0x540920[_0x5385f9(0x385)](_0x331444,{'radius':_0x4945a0[_0x5385f9(0x17b)],'fill':_0x4945a0[_0x5385f9(0x1ff)],'stroke':_0x4945a0[_0x5385f9(0x31a)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x78e107,_0x290331){return function(_0x21b759,_0x23d6e5){_0x290331(_0x21b759,_0x23d6e5,_0x78e107);};}function _0x4ab1(){const _0x168665=['isEditing','isStartConnectorPoint','decorate','height','copyId','selectable','_isOpenedShapeEditPanel','MEDIA','_cxtHandlerPointerUp','getDrawingByParam','iterator','ancestorTransform','get','highlighted','_getDrawingRect','OPERATION','clip','permissionCheckWithoutRange','_clearCompletionFrame','render','bottom','_transformCalculateSrcRect','default','updateConnectionDetection','shapeModel','_index','_generateCopyPasteMutations','getActualSize','shape-editor-ui.arrange.backward','_shapes','close','getSheetBySheetId','Arrow','_baseShapeWidth','_groupCopyPasteController','_shapeEditPanelVersion','_initCommands','getBasicShapeRelation','beginPath','1440876RNhCRG','isHit','sheets-shape-ui.ribbon.shape-format.style-control','677965itgDuC','getShapeType','rect','@univerjs-pro/sheets-shape-ui','_shapeFormulaService','flipY','_getConnectPointInfo','calcAdjValues','title','getInverseCoord','_popupMenuListener','_init','data','_drawRichText','offsetY','setShapeProps','_openShapeEditPanel','_registerFeatureMenu','getCurrentTypeOfUnit$','_updateTransform','_generatePasteMutations','flatMap','_shapeUpdateListener','#4285f4','value','resetCursor','_getScrollInfo','map','formulaBinding','getStartConnectInfo','getSelectedObjectMap','adjHandleStroke','getAdjustValueByName','sheets-shape-ui.flipVertical','_visible','editingParams$','INSERT','changeStart$','setCanUseShapeClip','sheet.command.menu-insert-shape','setSrcRect','shape-editor-ui.arrange.front','hideContextualTab','_permissionService','None','ShapeIcon','getConnectionRelation','preValue','save','doc','computeStraightConnectorLayout','_updateImageAdjValues','_findNearestConnectionSite','index','_localeService','reverse','image','registerCommand','_targetShapeId','_initSelection','getConnectionInfo','drawing-ui.objectListPanel.empty','_hyperLinkRegions','visible$','parse','adjustValues','getShapeTextData','prstGeom','_registerDrawingMoveHandler','endConnectionDetection','sheets-shape-ui.ribbon.shape-format.arrange-front','_clearConnectionSites','refreshShapeFillImage','drawing-ui.objectListPanel.sectionFloating','isHitLine','getUnitType','SHAPE_TEXT','worldPoints','_generateCutPasteMutations','ang','shape-editor-ui.arrange.back','cxnPointFill','_registerImageShapeClipDelegate','_props','panel','_baseShapeTop','_initEvents','drawing-ui.objectListPanel.filterHidden','_closeShapeEditPanel','_attachAdjustEvent','marginTop','registerFeatureMenu','sectionFloating','pick','CUT','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.unlockAll','blockExecuteWithoutPermission','sheets-shape-ui.formatShape','FlipVerticalIcon','_drawingAddListener','14OUcwGK','drawing-ui.objectListPanel.typeNames.','hideInfoPopup','shape-editor-ui.toolbar.quickStyles','getPresentation','clip-adj-','shape-adjust-point-','onPointerUp$','516232nyNSGE','_menuManagerService','isRichText','_cxtHandlerPointerMove','shape-editor-ui.arrange.forward','current','sqrt','focusDrawing','extraProps','pipe','attachTransformerTo','sheets-shape-ui.flipHorizontal','entries','getInterceptPoints','FlipHorizontalIcon','mergeMenu','reduce','_clipService','redo','calculate','animateFormulaPresentation','_completionFrame','#1a73e8','fillImageSourceType','setEditing','formulaPresentation','_shapeService','fromChangeset','setCursor','drawWith','drawing-ui.objectListPanel.unlock','params','viewportScrollX','cxnPointRadius','_draggingConnectorId','PRINTING_COMPONENT_COLLECT','getDrawingDataForUnit','sheet.command.update-shape-data','sheets-shape-ui.shape-format.formula-ribbon-control','_clearFocusedShape','_isConnecting','drawing-ui.objectListPanel.filterAll','_adjName','transformVector2SceneCoord','stopPropagation','Large','localToWorld','onReady','getConnectorLinePoints','startY','UUID','setShouldShowAdjust','BUTTON','_moveConnectorWithShape','_sheetPrintInterceptorService','_activeShapeInfo','clone','startX','_clearPopups','_clearShapeConnectorHandlerObjects','getShapeDataById','sheet.menu.shape.flip-vertical','ObjectLayersIcon','SheetShapeTextEditorContainer','transformForAngle','_connectorObjects','connector-handler-','_sheetShapeAdjustController','sheets-shape-ui.objectListPanel.open','_initPrinting','_registerDrawingFocusChangeHandler','_subUnitId','color','CROSSHAIR','VIEW_MAIN','RIBBON','setPrstGeom','onStarting','getObject','shapeType','back','isHighlighted','remove$','onRendered','getBatchRemoveOp','addImageSourceCache','shapeData','_isImagePointerDown','filter','_currentConnectionTarget','draw','_updateAdjustControlPositions','getShapeData','_isHighlighted','version','sheet.shape.floating-toolbar','_sidebarService','_clearControls','syncExecuteCommand','stringify','DRAWING','_sheetBasicShapeConnectionPointController','_currentScene','relation','subUnitId','unit','getPermissionPoint','_activeTargetShapeId','buildClipPath','idMap','classType','sheets-shape-ui.ribbon.shape-format.arrange-backward','drawing-ui.objectListPanel.showAll','sheetViewStartRow','clip-','_drawRichTextLayer','getFocusDrawings','backward','_activeShapeId','_createCopyInfoByRange','_adjHandlerPointerMove','_cxnIndex','_formulaShapes','getConnectionSiteList','subscribe','_baseWidth','with','PictureFill','getEndConnectInfo','doc.image-clip.shape-picker.component','_getConnectionSiteAngle','isInGroup','includes','_applyFormulaAutoFitSize','next','symbol','SolidFill','registerClipDelegate','sheetViewStartColumn','sheet.operation.update-shape-type','_isStartConnectorPoint','focus$','fill','undo','refreshAdjustControls','sheets-shape-ui.imagePanel.crop.shape','changing$','getZoomRatio','BottomIcon','_canEdit','_handleConnectedEndpointPointerUp','REMOVE','run','horizontal','drawing-ui.objectListPanel.noSelection','clipByShape','_sheetDrawingService','presetId','Medium','copyType','sheets-shape-ui.insertShape','constructor','clipHeight','executeCommand','sheets-shape-ui.title','function','onDblclick$','onCommandExecuted','rotation','startArrow','div','_loadShapePictureFill','lineType','getShapeTextRect','_sheetDrawingShapeRenderController','_getShapeInfo','connection-site-','508Wyhtnk','shape-text-','sheets-shape-format-font-family-menu','composeMatrix','_registerGroupFeaturePasteHook','getDrawingPoints','_getOrCreateShapeModel','sheets-shape-ui.config','_insertingShapeKeys','_initMenu','getDrawingSearch','ShapeFormatSettingIcon','skeleton','sheet.shape.object-list.panel','SHAPE','setPresentation','56242CawEVQ','_onSavingEditorData$','asObservable','canvasElement','UPDATE','getEditing','drawing-ui.objectListPanel.hideAll','DRAWING_IMAGE','sheetTransform','string','componentKey','activeSheet$','_update','getSheetId','set','getCurrentSkeleton','some','setPrstGeomAdjValues','MoveUpIcon','_connectionSiteObjects','strokeWidth','sheets-shape-contextual-ribbon','_getImagePrstGeom','_createShapeAdjustControls','_getZoomRatio','_updateSrcRectByTransform','setFallbackVisible','_formulaAnimation','name','sheets-shape-ui.shape-format.style-ribbon-control','sheets-shape-ui.ribbon.shape-format.arrange-forward','applyPoint','shapeKey','enableObjectsEvent','permissionPointUpdate$','changeShapeType','_showConnectionSites','initShapePopupMenu','_urlImageService','clearAdjustValue','viewportScrollY','adjHandleSize','packageName','_lastEditingShapeKey','fillImageSource','onSavingEditorData$','_unitId','push','hidden','Line','point','forEach','dataModel','unsubscribe','_highlightedSiteIndex','drawing-ui.objectListPanel.moveForward','_formulaKey','setHighlighted','description','flipX','onPointerDown$','_registerOperations','_getSceneAndTransformerByDrawingSearch','_activeShapeAdjustPointList','gradientEndColor','_getShapeAdjustPointListById','DEFAULT_PASTE','isRenderLinePointsMode','multiply','removeLinePoints','drawingType','getShapeModel','abs','actualHeight','setAdjustValueByName','_addShapeConnectorHandlerObjects','_isDrawingShapePointDown','_insertShapes','getDrawingEffectBounds','_focusedDrawings','_contextService','keys','complete','getDrawingData','drawing-ui.objectListPanel.lockAll','_commandService','unregister','presentation','fontSize','sheets-shape-ui.editText','cos','getShapeTypeById','sheet.operation.open-mobile-shape-editor','_shapePopupMenuDisposable','getUnitId','transformByState','getAutoFitPresentations','_reset','getState','isDrawingObject','_registerComponents','_handleFreeEndpointMove','LEFT','getCurrentScrollState','SHEET','offsetX','cxnIndex','_executeConnectionCommand','pushUndoRedo','_copyInfo','_isStartAdjusting','getCanvasElement','refreshFormulaPresentation','length','_drawingRenderService','createControl$','_config','_getImageDrawingInfo','start','_handleFreeEndpointPointerUp','_initPermission','_currentUniverService','_sheetSkeletonService','popup','onerror','viewBound','custom','530559InofsN','attachPopupToObject','_addControl','scene','scale','clear','_editingParams$','_sheetInterceptorService','interceptor','_initialize','_registerMoveHandler','_sidebarDisposable','_initSheetChange','_rerouteConnectorLine','VIEW_MAIN_LEFT','drawing-ui.objectListPanel.details','trim','showContextualTab','OTHERS','sheets-shape-ui.quickStyles','clearControl$','targetShapeId','_registerFocusChangeHandler','_loadAndSetImage','StraightConnector1','_getShapeAdjustInfosById','restore','_hasReset','_configService','VIEW_MAIN_LEFT_TOP','_imageShapeClipController','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','type','getImage','sheets-shape-ui.ribbon.shape-format','getSkeleton','univer-box-border\x20univer-px-4\x20univer-text-sm','add$','find','values','_initEditingParams','indexOf','drawing-ui.objectListPanel.title','setCollapsedIds','updateDocumentStyle','defineProperty','adjHandleFill','hasDefault','left','_baseShapeLeft','_activeAdjustInfo','intercept','_drawShapeText','visible','disableObjectsEvent','getDrawingOKey','drawing-ui.objectListPanel.lock','getParent','_shapeRenderController','COMMAND','_activeShapeModel','getTransformer','_drawingManagerService','_injector','top','subscribeEvent','addObject','fillType','setConfig','#bcbcbc','getValue','getTransformerByCreate','sheets-shape-ui.objectListPanel.title','Rect','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.nameInput','shapeId','_setTransForm','_componentManager','registerRenderModule','src','UNIVER_SHEET','_executeConnectedRouteResizeCommand','onPointerMove$','getVisible','makeDirty','_commandExecutedListener','startConnectionDetection','isLineShape','_context','sheet.operation.apply-shape-quick-style','prototype','_initCopyPaste','getOwnPropertyDescriptor','update$','_adjHandlerPointerUp','getMatrix','dispose','clipTop','VIEW_MAIN_TOP','drawing-ui.objectListPanel.unlockHint','isHorizontal','setContextValue','disposeWithMe','contentHeight','_transform','worldRect','_handleConnectedEndpointMove','#FFFFFF','SELECTOR','sheets-shape-text-','GROUP','getBentTypeFromPoints','_releaseRenderCache','_shapeFloatingToolbarService','SolidLine','vertical-center','isArray','_sheetCanvasPopManagerService','from','open','prstGeomAdjValues','_draw','getScene','registerFeaturePasteHook','resolveHyperLinkAt','forward','_sheetClipboardService','_sheetsShapeService','getObjectIncludeInGroup','width','URL','_hide','setShapeData','object','renderDrawingShape','_baseDrawingRect','_executeResizeCommand','_createControls','sheets-shape-ui.permission.editErr','_addShapeAdjustControl','add','1.3.1','clearAdjustControls','setFormulaPresentation','_baseShapeHeight','_baseTop','TOP','invert','oKey','sin','register','getDrawingOrder','getAdjustNames','_shapeTextEditingService','onSteady','drawing-ui.objectListPanel.sectionCanvas','_ribbonService','_findShapeAtPoint','_iconManager','FromArray','sheet.operation.open-shape-object-list-panel','animationEnabled','_imageIoService','_disposePopups','contentVerticalOffset','unitId','sheet.shape.text.float-menu','TopmostIcon','canvas','pluginName','extensionGroups','_drawingType','getRealBound','addClipboardHook','cxnPointStroke','text','currentAdjustValues','drawing-ui.objectListPanel.lockHint','getBatchUpdateOp','refreshTransform','sheet.operation.open-sheet-shape-format-panel','front','drawing-ui.objectListPanel.hide','SHEET_SHAPE_UI_PLUGIN','getCurrentUnitOfType','getDrawingEditable','_updateShapeAdjustControls','computeConnectorResizeLayout','activeAnObject','_sheetPermissionCheckController','drawingId','sheets-shape-ui.ribbon.shape-format.formula-control','drawing-ui.objectListPanel.moveBackward','wrapStrategy','_baseLeft','_shapeId','size','_baseHeight','sheets-shape-ui.deleteShape','engine','shapeText','_calculateFreeEndpointAngle','updateDocumentDataMargin','lineShapeId','setFillImage','transform','_handleConnectorPointerUp','translate','delete','adjName','Path','_addShapeConnectorHandlerObject','getUnit','_activeAdjustPointList','_resetState','drawing-ui.objectListPanel.dragToReorder','UNIVER_DOC','drawing-ui.objectListPanel.locate','_activeImageId','translateWithPrecision','angle','getRenderUnitById','2997uRbsau','getAdjustInfoByName','_clearShapeAdjustControls','sheets-shape-ui.ribbon.shape-format.arrange-back','worldPoint','updateLinePoints','_attachConnectorObjectEvent','objects','updateContext','axisAlignSheetTransform','cxnPointStrokeWidth','toPrimitive','sheet.menu.shape.flip-horizontal','66488qSmOad','_univerInstanceService','style','getCurrentLastSelection','DRAWING_SHAPE','_handleBasicShapeUpdateConnectorLineShape','getActiveViewportByCoord','sheet.shape.picker.component','_isShouldShowDrawingShapeAdjust','has','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','onTransformChange$','sectionCanvas','vertical','sheet.image-clip.shape-picker.component','srcRect','error','setOnSavingEditorData','_renderManagerService','changeEnd$'];_0x4ab1=function(){return _0x168665;};return _0x4ab1();}function X(_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316){const _0x365e1b=_0x714ef0;var _0x1af127=arguments[_0x365e1b(0x1c3)],_0x19170c=_0x1af127<0x3?_0x292b2b:_0x2ee316===null?_0x2ee316=Object[_0x365e1b(0x22e)](_0x292b2b,_0x43cd39):_0x2ee316,_0x289b5d;if(typeof Reflect==_0x365e1b(0x257)&&typeof Reflect['decorate']==_0x365e1b(0x40d))_0x19170c=Reflect[_0x365e1b(0x2d3)](_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316);else{for(var _0x34cd4b=_0x4d15c9[_0x365e1b(0x1c3)]-0x1;_0x34cd4b>=0x0;_0x34cd4b--)(_0x289b5d=_0x4d15c9[_0x34cd4b])&&(_0x19170c=(_0x1af127<0x3?_0x289b5d(_0x19170c):_0x1af127>0x3?_0x289b5d(_0x292b2b,_0x43cd39,_0x19170c):_0x289b5d(_0x292b2b,_0x43cd39))||_0x19170c);}return _0x1af127>0x3&&_0x19170c&&Object[_0x365e1b(0x1fe)](_0x292b2b,_0x43cd39,_0x19170c),_0x19170c;}let Z=class extends _0xe29064{constructor(_0x20eeaf,_0x18e8f4,_0xa1adc8,_0x574d95,_0x4e3a32,_0x55858a){const _0x1a9b71=_0x714ef0;super(),this[_0x1a9b71(0x20f)]=_0x20eeaf,this['_sheetsShapeService']=_0x18e8f4,this[_0x1a9b71(0x331)]=_0xa1adc8,this['_imageIoService']=_0x574d95,this[_0x1a9b71(0x178)]=_0x4e3a32,this[_0x1a9b71(0x2ff)]=_0x55858a,q(this,'_formulaShapes',new Map()),this[_0x1a9b71(0x238)](this[_0x1a9b71(0x2ff)]['presentationChanged$'][_0x1a9b71(0x3e4)](_0x1f0b6f=>{const _0x550e5a=_0x1a9b71;var _0x5c45f9;(_0x5c45f9=this[_0x550e5a(0x3e2)][_0x550e5a(0x2dd)](this[_0x550e5a(0x18a)](_0x1f0b6f['unitId'],_0x1f0b6f[_0x550e5a(0x3d0)],_0x1f0b6f[_0x550e5a(0x21d)])))==null||_0x5c45f9[_0x550e5a(0x185)](_0x379bf3=>_0x379bf3[_0x550e5a(0x261)](_0x1f0b6f[_0x550e5a(0x1a9)],_0x1f0b6f['animationEnabled']));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1a9b71(0x3ba)][_0x1a9b71(0x3e4)](_0x1c6add=>{const _0x4d7497=_0x1a9b71;_0x1c6add[_0x4d7497(0x185)](_0x78cae=>{const _0x3c2e83=_0x4d7497;this[_0x3c2e83(0x2ff)][_0x3c2e83(0x1a8)]({'unitId':_0x78cae[_0x3c2e83(0x277)],'subUnitId':_0x78cae[_0x3c2e83(0x3d0)],'shapeId':_0x78cae[_0x3c2e83(0x290)]}),this[_0x3c2e83(0x3e2)][_0x3c2e83(0x2a2)](this['_formulaKey'](_0x78cae[_0x3c2e83(0x277)],_0x78cae['subUnitId'],_0x78cae[_0x3c2e83(0x290)]));});}));}[_0x714ef0(0x258)](_0x5dbfa2,_0x1a1e2c,_0x554eb6){const _0x58e2ce=_0x714ef0;let {transform:_0x154810,drawingType:_0x4be4f9,srcRect:_0x5dc492,prstGeom:_0x3192d8,groupId:_0x4abb7d,unitId:_0x235b42,subUnitId:_0x232851,drawingId:_0x1ef085,isMultiTransform:_0x824495,transforms:_0x1dad6d,hidden:_0x2f6b00,selectable:_0x1d7455}=_0x5dbfa2;if(_0x4be4f9!==_0x544f7a[_0x58e2ce(0x2c1)]||!this[_0x58e2ce(0x20f)]['getDrawingVisible']()||_0x154810==null)return;let _0x497890=this[_0x58e2ce(0x20f)][_0x58e2ce(0x28b)](),_0x41c68f=_0x824495&&_0x1dad6d?_0x1dad6d:[_0x154810],_0x19a65b=[];for(let _0xab8868 of _0x41c68f){let {left:_0x8827e,top:_0x47f2d9,width:_0xe58afa,height:_0x4026e3,angle:_0x1d57d5,flipX:_0x1e514c,flipY:_0x21cadc,skewX:_0xdce19,skewY:_0x4cb11b}=_0xab8868,_0x5ce724=_0x41c68f[_0x58e2ce(0x1fa)](_0xab8868),_0xee31e5=_0x562c30({'unitId':_0x235b42,'subUnitId':_0x232851,'drawingId':_0x1ef085},_0x824495?_0x5ce724:void 0x0),_0x237cb1=_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5);if(_0x237cb1!=null){let _0x52bf8b={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x237cb1 instanceof J&&this[_0x58e2ce(0x1c2)](_0x237cb1,_0x52bf8b),_0x237cb1[_0x58e2ce(0x1b1)]({'left':_0x8827e,'top':_0x47f2d9,'width':_0xe58afa,'height':_0x4026e3,'angle':_0x1d57d5,'flipX':_0x1e514c,'flipY':_0x21cadc,'skewX':_0xdce19,'skewY':_0x4cb11b});continue;}let _0x5506b4=this['_drawingManagerService'][_0x58e2ce(0x269)](_0x235b42,_0x232851),_0x2e6da3=_0x5506b4[_0x58e2ce(0x1fa)](_0x1ef085);if(_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5)||!this[_0x58e2ce(0x20f)]['getDrawingVisible']())continue;let _0x5bce8d=this[_0x58e2ce(0x251)][_0x58e2ce(0x199)](_0x235b42,_0x232851,_0x1ef085);if(!_0x5bce8d)continue;let _0x2cdaab=_0x4cb876(_0x5bce8d[_0x58e2ce(0x2fc)]())?{..._0xbe6416,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xbe6416,_0x3f8d3a=_0x5bce8d[_0x58e2ce(0x3c4)]()[_0x58e2ce(0x317)],_0x4c8e56={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x3f8d3a&&this[_0x58e2ce(0x2ff)][_0x58e2ce(0x268)](_0x4c8e56,_0x3f8d3a);let _0x1f30bb=new J(_0xee31e5,{..._0xab8868,'zIndex':_0x2e6da3===-0x1?_0x5506b4[_0x58e2ce(0x1c3)]-0x1:_0x2e6da3,'shapeModel':_0x5bce8d,'localeService':this[_0x58e2ce(0x331)],'shapeId':_0x1ef085,'unitId':_0x235b42,'subUnitId':_0x232851,'visible':_0x2f6b00!==!0x0,'evented':_0x1d7455!==!0x1,'formulaPresentation':_0x3f8d3a?this[_0x58e2ce(0x2ff)][_0x58e2ce(0x364)](_0x4c8e56):void 0x0,'animateFormulaPresentation':(_0x3f8d3a==null?void 0x0:_0x3f8d3a[_0x58e2ce(0x273)])!==!0x1,'transformerConfig':_0x2cdaab});if(_0x3f8d3a){let _0x14b55a=this[_0x58e2ce(0x18a)](_0x235b42,_0x232851,_0x1ef085),_0x4fc7d4=this[_0x58e2ce(0x3e2)]['get'](_0x14b55a)??new Set();_0x4fc7d4[_0x58e2ce(0x25e)](_0x1f30bb),this[_0x58e2ce(0x3e2)][_0x58e2ce(0x160)](_0x14b55a,_0x4fc7d4);}_0x1a1e2c[_0x58e2ce(0x213)](_0x1f30bb,_0x4232ac),_0x497890&&_0x1a1e2c[_0x58e2ce(0x372)](_0x1f30bb),_0x4abb7d&&_0x2a3ac3({'drawingId':_0x4abb7d,'unitId':_0x235b42,'subUnitId':_0x232851},_0x1f30bb,_0x1a1e2c,this[_0x58e2ce(0x20f)]),_0x3192d8!=null&&_0x1f30bb[_0x58e2ce(0x3b4)](_0x3192d8),_0x5dc492!=null&&_0x1f30bb[_0x58e2ce(0x323)](_0x5dc492);let _0x59d6d1=this[_0x58e2ce(0x413)](_0x1f30bb,_0x5bce8d[_0x58e2ce(0x3c4)]());if(_0x59d6d1){var _0x1816f7;_0x554eb6==null||(_0x1816f7=_0x554eb6['resourceCollector'])==null||_0x1816f7['add'](_0x59d6d1);}_0x19a65b[_0x58e2ce(0x181)](_0x1f30bb);}return _0x19a65b;}[_0x714ef0(0x18a)](_0x4ea6a0,_0x148c6f,_0x1d23f4){return _0x4ea6a0+'\x00'+_0x148c6f+'\x00'+_0x1d23f4;}['refreshFormulaPresentation'](_0x5ab4bb,_0x67bcdf){const _0x3a1723=_0x714ef0;let _0x3b40a3=this['_sheetsShapeService'][_0x3a1723(0x199)](_0x67bcdf[_0x3a1723(0x277)],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]),_0x363d35=_0x3b40a3==null?void 0x0:_0x3b40a3['getShapeData']()[_0x3a1723(0x317)],_0x5de68b=this[_0x3a1723(0x18a)](_0x67bcdf['unitId'],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]);if(_0x363d35){this['_shapeFormulaService']['register'](_0x67bcdf,_0x363d35);let _0x1f3a19=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b)??new Set();_0x1f3a19[_0x3a1723(0x25e)](_0x5ab4bb),this[_0x3a1723(0x3e2)][_0x3a1723(0x160)](_0x5de68b,_0x1f3a19);}else{var _0x1369cc;this[_0x3a1723(0x2ff)][_0x3a1723(0x1a8)](_0x67bcdf),(_0x1369cc=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b))==null||_0x1369cc[_0x3a1723(0x2a2)](_0x5ab4bb);}_0x5ab4bb[_0x3a1723(0x261)](_0x363d35?this[_0x3a1723(0x2ff)][_0x3a1723(0x364)](_0x67bcdf):void 0x0,(_0x363d35==null?void 0x0:_0x363d35[_0x3a1723(0x273)])!==!0x1);}[_0x714ef0(0x343)](_0x476ef2){const _0x251ff0=_0x714ef0;let _0x3ab68d=_0x476ef2[_0x251ff0(0x2e9)]['getShapeData'](),_0x255ae4=_0x3ab68d['fill'];!_0x255ae4||_0x255ae4[_0x251ff0(0x214)]!==_0x271926[_0x251ff0(0x3e7)]||!_0x255ae4['fillImageSource']?_0x476ef2['setFillImage'](void 0x0):this['_loadShapePictureFill'](_0x476ef2,_0x3ab68d);}[_0x714ef0(0x413)](_0x599ff5,_0x518666){const _0x51ada3=_0x714ef0;let _0x1faf8a=_0x518666['fill'];if(!_0x1faf8a||_0x1faf8a[_0x51ada3(0x214)]!==_0x271926[_0x51ada3(0x3e7)]||!_0x1faf8a[_0x51ada3(0x17e)])return;let _0x90897e=_0x1faf8a[_0x51ada3(0x17e)],_0x3422ae=_0x1faf8a[_0x51ada3(0x37f)]??_0x1a3351[_0x51ada3(0x254)],_0x2660c9=this[_0x51ada3(0x274)]['getImageSourceCache'](_0x90897e,_0x3422ae);if(_0x2660c9)_0x599ff5[_0x51ada3(0x29e)](_0x2660c9);else return this['_loadAndSetImage'](_0x599ff5,_0x90897e,_0x3422ae);}async[_0x714ef0(0x1e8)](_0xf1016,_0x19e4ee,_0x38a305){const _0x16ccf3=_0x714ef0;let _0x425f7f;try{if(_0x38a305===_0x1a3351[_0x16ccf3(0x39a)])_0x425f7f=await this['_imageIoService'][_0x16ccf3(0x1f2)](_0x19e4ee);else{if(_0x38a305===_0x1a3351[_0x16ccf3(0x254)])try{_0x425f7f=await this[_0x16ccf3(0x178)][_0x16ccf3(0x1f2)](_0x19e4ee);}catch{_0x425f7f=_0x19e4ee;}else _0x425f7f=_0x19e4ee;}}catch(_0x5253d5){console[_0x16ccf3(0x2cd)](_0x16ccf3(0x1f0),_0x5253d5);return;}await new Promise(_0x28d2ae=>{const _0x348b6f=_0x16ccf3;let _0x195380=new window['Image']();_0x195380['onload']=()=>{const _0x59e47c=_0x5396;this[_0x59e47c(0x274)][_0x59e47c(0x3bd)](_0x19e4ee,_0x38a305,_0x195380),_0xf1016[_0x59e47c(0x29e)](_0x195380),_0x28d2ae();},_0x195380[_0x348b6f(0x1ce)]=()=>{const _0x5eb421=_0x348b6f;console[_0x5eb421(0x2cd)](_0x5eb421(0x2c7),_0x19e4ee),_0x28d2ae();},_0x195380[_0x348b6f(0x221)]=_0x425f7f;});}};Z=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x30b59c)),Y(0x3,_0x1fd21f),Y(0x4,_0x427e79),Y(0x5,_0x5c502f(_0x205d16))],Z);let Pr=class extends _0xe29064{constructor(_0x4daa18,_0x5f0bf0,_0x175788,_0x30aab5,_0x4af219,_0x536aa9){const _0x9270d5=_0x714ef0;super(),this['_drawingManagerService']=_0x4daa18,this['_sheetsShapeService']=_0x5f0bf0,this[_0x9270d5(0x2cf)]=_0x175788,this[_0x9270d5(0x416)]=_0x30aab5,this[_0x9270d5(0x2be)]=_0x4af219,this['_commandService']=_0x536aa9,q(this,'_activeShapeId',null),q(this,'_unitId',null),q(this,_0x9270d5(0x3af),null),q(this,_0x9270d5(0x191),void 0x0),q(this,_0x9270d5(0x2ee),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x9270d5(0x350),0x0),q(this,_0x9270d5(0x2f2),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x9270d5(0x1c0),!0x1),q(this,_0x9270d5(0x203),void 0x0),q(this,_0x9270d5(0x20d),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x9270d5(0x230),void 0x0),q(this,_0x9270d5(0x2c5),!0x1),this[_0x9270d5(0x3ae)](),this['_registerDrawingMoveHandler']();}[_0x714ef0(0x193)](_0x42c108,_0x2c815f,_0x585e15){const _0xcf9bd=_0x714ef0;let _0x39809b=this[_0xcf9bd(0x251)]['getShapeModel'](_0x42c108,_0x2c815f,_0x585e15);if(_0x39809b)return _0x39809b[_0xcf9bd(0x41e)]();}[_0x714ef0(0x260)](){const _0xfe9ff4=_0x714ef0;this[_0xfe9ff4(0x2b2)]();}[_0x714ef0(0x3f8)](){this['_updateShapeAdjustControls'](!0x0);}[_0x714ef0(0x39b)](_0x3f1afc){const _0x56ad3b=_0x714ef0;this[_0x56ad3b(0x2c5)]=_0x3f1afc;}[_0x714ef0(0x1ea)](_0x168ecb,_0x11413d,_0x522932,_0x17d806){const _0x359afb=_0x714ef0;let _0x2682d4=this[_0x359afb(0x251)]['getShapeModel'](_0x168ecb,_0x11413d,_0x522932);if(_0x2682d4)return _0x2682d4[_0x359afb(0x2b1)](_0x17d806);}[_0x714ef0(0x169)](_0x127d95=!0x1){const _0x5e9b7f=_0x714ef0;if(this[_0x5e9b7f(0x180)]===null||this[_0x5e9b7f(0x3af)]===null||this[_0x5e9b7f(0x3de)]===null)return;let _0x169053=this[_0x5e9b7f(0x2cf)]['getRenderUnitById'](this['_unitId']);if(!_0x169053||!_0x169053['with'](_0x44086e)['getCurrentSkeleton']())return;let {scene:_0x4233c4}=_0x169053,_0x152397={'unitId':this[_0x5e9b7f(0x180)],'subUnitId':this[_0x5e9b7f(0x3af)],'drawingId':this[_0x5e9b7f(0x3de)]},_0xd089e8=this[_0x5e9b7f(0x20f)]['getDrawingByParam'](_0x152397),{transform:_0x609599}=_0xd089e8;if(!_0x609599||_0xd089e8['drawingType']!==_0x544f7a[_0x5e9b7f(0x2c1)])return;let {left:_0x1302d7,top:_0x5dc07e,width:_0x2c7ecc,height:_0x5926e4,flipX:_0x3a918e,flipY:_0x5eea58,angle:_0x3412b7=0x0}=_0x609599;if(_0x1302d7===void 0x0||_0x5dc07e===void 0x0)return;if(_0x127d95){let _0x12425b=this[_0x5e9b7f(0x251)]['getShapeModel'](this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)],this['_activeShapeId']);_0x12425b==null||_0x12425b[_0x5e9b7f(0x2b8)]({'width':_0x2c7ecc??0x0,'height':_0x5926e4??0x0}),this[_0x5e9b7f(0x191)]=_0x12425b==null?void 0x0:_0x12425b['getDrawingPoints']();}let _0x4b1782=this[_0x5e9b7f(0x191)];for(let _0x229286=0x0;_0x229286<_0x4b1782[_0x5e9b7f(0x1c3)];_0x229286++){let _0x2a887c=_0x4b1782[_0x229286],_0x2bac75=_0x2a887c['x'],_0x4887b5=_0x2a887c['y'];if(_0x3a918e&&(_0x2bac75=(_0x2c7ecc||0x0)-_0x2bac75),_0x5eea58&&(_0x4887b5=(_0x5926e4||0x0)-_0x4887b5),_0x3412b7!==0x0){let _0x41d95f=(_0x2c7ecc||0x0)/0x2,_0xb30b9d=(_0x5926e4||0x0)/0x2,_0x384df7=_0x3412b7*Math['PI']/0xb4,_0x44509f=Math[_0x5e9b7f(0x1ac)](_0x384df7),_0x35940f=Math['sin'](_0x384df7),_0xac6776=_0x2bac75-_0x41d95f,_0x399c8b=_0x4887b5-_0xb30b9d;_0x2bac75=_0x41d95f+(_0xac6776*_0x44509f-_0x399c8b*_0x35940f),_0x4887b5=_0xb30b9d+(_0xac6776*_0x35940f+_0x399c8b*_0x44509f);}let _0x1f3557={'x':_0x2bac75,'y':_0x4887b5,'adjName':_0x2a887c[_0x5e9b7f(0x2a3)]};this[_0x5e9b7f(0x25d)](_0x4233c4,_0x1f3557,_0x1f3557['adjName'],_0x1302d7,_0x5dc07e,this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)]);}}['_updateShapeAdjustControls'](_0x56c8ad=!0x1){const _0x266ce8=_0x714ef0;_0x56c8ad&&(this[_0x266ce8(0x2b2)](),this[_0x266ce8(0x169)](_0x56c8ad));}[_0x714ef0(0x25d)](_0x129aab,_0x48b05a,_0x44b4a2,_0xbde929,_0x3d2f45,_0x545c8c,_0x498225){const _0x248cae=_0x714ef0;if(!this[_0x248cae(0x3de)])return;let _0x31968f=_0x129aab['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x248cae(0x3de)]+'-'+_0x44b4a2);if(_0x31968f){_0x31968f['transformByState']({'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0['adjHandleSize']});return;}let _0x4093d9={'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0[_0x248cae(0x17b)],'adjName':_0x44b4a2,'shapeId':this[_0x248cae(0x3de)],'unitId':_0x545c8c,'subUnitId':_0x498225,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x248cae(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0},_0x2a6888=new Nr(_0x248cae(0x366)+this[_0x248cae(0x3de)]+'-'+_0x44b4a2,_0x4093d9);this[_0x248cae(0x2ee)][_0x248cae(0x181)](_0x2a6888),this[_0x248cae(0x354)](_0x2a6888,_0x129aab,_0x44b4a2),_0x129aab[_0x248cae(0x213)](_0x2a6888,_0x4232ac+0x1);}[_0x714ef0(0x2b2)](){const _0x14c9f8=_0x714ef0;this['_shapes']['length']!==0x0&&(this[_0x14c9f8(0x2ee)]['forEach'](_0x8966e8=>{const _0x3f089a=_0x14c9f8;_0x8966e8[_0x3f089a(0x232)]();}),this[_0x14c9f8(0x2ee)]=[]);}['_updateAdjustControlPositions'](){const _0x39f9ef=_0x714ef0;this[_0x39f9ef(0x169)]();}['_getScrollInfo'](_0x536eae,_0x54f0fd){const _0xb0e6f2=_0x714ef0;var _0x2f7a46;let _0x3e4e2c={'x':0x0,'y':0x0};if(!_0x536eae||!_0x54f0fd)return _0x3e4e2c;let _0x34572a=this['_renderManagerService'][_0xb0e6f2(0x2af)](_0x536eae);if(!_0x34572a||!_0x34572a['with'](_0x44086e)[_0xb0e6f2(0x1f4)](_0x54f0fd))return _0x3e4e2c;let _0x4f76d8=_0x34572a[_0xb0e6f2(0x3e6)](_0x4e89db),_0x546898=_0x4f76d8==null?void 0x0:_0x4f76d8[_0xb0e6f2(0x1b9)]();if(!_0x546898)return _0x3e4e2c;let _0x48e9f3=(_0x2f7a46=this[_0xb0e6f2(0x2be)][_0xb0e6f2(0x2a6)](_0x536eae))==null?void 0x0:_0x2f7a46['getSheetBySheetId'](_0x54f0fd);if(!_0x48e9f3)return _0x3e4e2c;let _0x3e2a8f=_0xe31858(_0x546898[_0xb0e6f2(0x3d9)],_0x546898[_0xb0e6f2(0x3f2)],_0x34572a['scene'],_0x48e9f3);return _0x3e2a8f?{'x':_0x3e2a8f[_0xb0e6f2(0x388)],'y':_0x3e2a8f[_0xb0e6f2(0x17a)]}:_0x3e4e2c;}[_0x714ef0(0x16a)](_0x5c70a1,_0xb35381){const _0x297164=_0x714ef0;var _0x3d7427;let _0x32570d=(_0x3d7427=this[_0x297164(0x2be)][_0x297164(0x2a6)](_0x5c70a1))==null?void 0x0:_0x3d7427['getSheetBySheetId'](_0xb35381);return(_0x32570d==null?void 0x0:_0x32570d[_0x297164(0x3fb)]())??0x1;}['_attachAdjustEvent'](_0x589ac9,_0xae0a6a,_0x11af32){const _0x4d3d81=_0x714ef0;this['disposeWithMe'](_0x128476(_0x589ac9[_0x4d3d81(0x18e)][_0x4d3d81(0x212)]((_0x34641c,_0x512175)=>{const _0x253edb=_0x4d3d81;var _0x426876,_0x307755,_0x977880,_0x7c1e46;let _0x272ffc=_0x589ac9['getDrawingSearch']();this[_0x253edb(0x203)]=this[_0x253edb(0x1ea)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc[_0x253edb(0x290)],_0x11af32),this[_0x253edb(0x20d)]=this[_0x253edb(0x251)][_0x253edb(0x199)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc['drawingId']);let _0x1bc2c3=this['_drawingManagerService'][_0x253edb(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x253edb(0x3af)],'drawingId':this['_activeShapeId']}),{transform:_0x483b55}=_0x1bc2c3;if(_0x483b55){let {left:_0xeefbf7,top:_0x2f4fa7,width:_0x417e62,height:_0xc14098}=_0x483b55;this[_0x253edb(0x202)]=_0xeefbf7||0x0,this[_0x253edb(0x350)]=_0x2f4fa7||0x0,this['_baseShapeWidth']=_0x417e62||0x0,this[_0x253edb(0x262)]=_0xc14098||0x0;}let _0x463d9b=!!((_0x426876=_0x1bc2c3[_0x253edb(0x29f)])!=null&&_0x426876[_0x253edb(0x18d)]),_0x59c72a=!!((_0x307755=_0x1bc2c3['transform'])!=null&&_0x307755['flipY']),_0x12c47d=((_0x977880=_0x1bc2c3[_0x253edb(0x29f)])==null?void 0x0:_0x977880[_0x253edb(0x2ae)])||0x0;this[_0x253edb(0x1c0)]=!0x0,_0xae0a6a[_0x253edb(0x207)]();let _0x6df414={...((_0x7c1e46=this[_0x253edb(0x203)])==null?void 0x0:_0x7c1e46[_0x253edb(0x282)])??{}};this['_adjHandlerPointerMove']=_0xae0a6a[_0x253edb(0x224)][_0x253edb(0x212)]((_0x5d7472,_0xa4bc8)=>{const _0x1cc328=_0x253edb;if(!this['_isStartAdjusting'])return;let {offsetX:_0x268c3a,offsetY:_0x5c416e}=_0x5d7472,_0x3a2b5a=this[_0x1cc328(0x203)];if(this[_0x1cc328(0x20d)]&&_0x3a2b5a){_0xae0a6a['disableObjectsEvent'](),_0xae0a6a[_0x1cc328(0x384)](_0x141a72[_0x1cc328(0x3b1)]);let _0x5a47ac={'left':0x0,'top':0x0,'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]},_0x4d57d3=this[_0x1cc328(0x315)](this['_unitId'],this['_subUnitId']),_0x135954=this[_0x1cc328(0x16a)](this[_0x1cc328(0x180)],this['_subUnitId']),_0x5b5382=_0x268c3a/_0x135954+_0x4d57d3['x']-this['_baseShapeLeft'],_0x1d65b2=_0x5c416e/_0x135954+_0x4d57d3['y']-this[_0x1cc328(0x350)];if(_0x12c47d!==0x0){let _0x11953f=this['_baseShapeWidth']/0x2,_0x2c3fe4=this[_0x1cc328(0x262)]/0x2,_0x395d4e=_0x12c47d*Math['PI']/0xb4,_0x351e9c=Math[_0x1cc328(0x1ac)](_0x395d4e),_0x44b963=Math[_0x1cc328(0x267)](_0x395d4e),_0x3dd386=_0x5b5382-_0x11953f,_0x4938d1=_0x1d65b2-_0x2c3fe4;_0x5b5382=_0x11953f+(_0x3dd386*_0x351e9c+_0x4938d1*_0x44b963),_0x1d65b2=_0x2c3fe4+(-_0x3dd386*_0x44b963+_0x4938d1*_0x351e9c);}_0x463d9b&&(_0x5b5382=this['_baseShapeWidth']-_0x5b5382),_0x59c72a&&(_0x1d65b2=this[_0x1cc328(0x262)]-_0x1d65b2);let _0x3c18ee={'x':_0x5b5382,'y':_0x1d65b2},_0x51af81=this[_0x1cc328(0x20d)][_0x1cc328(0x302)](_0x5a47ac,_0x3c18ee,_0x3a2b5a,_0x463d9b,_0x59c72a);if(Object[_0x1cc328(0x1a3)](_0x51af81)[_0x1cc328(0x1c3)]===0x0)return;for(let [_0x172d8e,_0x27c1fc]of Object[_0x1cc328(0x374)](_0x51af81))this[_0x1cc328(0x20d)][_0x1cc328(0x19c)](_0x172d8e,_0x27c1fc);this[_0x1cc328(0x20d)]['updateContext']({'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]});let _0x477d52=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x272ffc[_0x1cc328(0x277)],'subUnitId':_0x272ffc['subUnitId'],'drawingId':_0x272ffc[_0x1cc328(0x290)]});_0x477d52&&(this['_sheetDrawingShapeRenderController'][_0x1cc328(0x258)](_0x477d52,_0xae0a6a),this[_0x1cc328(0x191)]=this['_getShapeAdjustPointListById'](_0x272ffc[_0x1cc328(0x277)],_0x272ffc['subUnitId'],_0x272ffc[_0x1cc328(0x290)]),this[_0x1cc328(0x3c3)]());}_0xa4bc8['stopPropagation']();}),this[_0x253edb(0x230)]=_0xae0a6a[_0x253edb(0x367)][_0x253edb(0x212)]((_0x2e73e9,_0x2aa271)=>{const _0x56c8d6=_0x253edb;this[_0x56c8d6(0x3e0)][_0x56c8d6(0x187)](),this['_adjHandlerPointerUp'][_0x56c8d6(0x187)](),_0xae0a6a[_0x56c8d6(0x314)]();let _0x37da9c=this[_0x56c8d6(0x203)];if(_0x37da9c){let _0x36242b=_0x272ffc[_0x56c8d6(0x277)],_0x34beaf=_0x272ffc[_0x56c8d6(0x3d0)],_0x3c6d6d=_0x272ffc['drawingId'],_0x2c71ad={};for(let _0x586c5f of Object[_0x56c8d6(0x1a3)](_0x37da9c['currentAdjustValues'])){var _0x417c37;let _0x4a961c=(_0x417c37=this[_0x56c8d6(0x20d)])==null?void 0x0:_0x417c37[_0x56c8d6(0x31b)](_0x586c5f);_0x4a961c!==void 0x0&&(_0x2c71ad[_0x586c5f]=_0x4a961c);}Object[_0x56c8d6(0x1a3)](_0x2c71ad)['length']>0x0&&Dr(this[_0x56c8d6(0x1a7)],_0x36242b,_0x34beaf,_0x3c6d6d,{'oldShapeData':{'adjustValues':_0x6df414}},{'adjustValues':_0x2c71ad});}this[_0x56c8d6(0x203)]=void 0x0,this[_0x56c8d6(0x20d)]=void 0x0,this[_0x56c8d6(0x1c0)]=!0x1,_0x2aa271[_0x56c8d6(0x394)](),_0xae0a6a[_0x56c8d6(0x173)]();}),_0x512175[_0x253edb(0x394)]();})));}[_0x714ef0(0x33f)](){const _0x5b781f=_0x714ef0;let _0x569577=this[_0x5b781f(0x2be)][_0x5b781f(0x30d)](_0x58aa7b[_0x5b781f(0x222)]);this['disposeWithMe'](_0x569577[_0x5b781f(0x371)](_0x1e4916(_0x132ffa=>_0x132ffa?_0x132ffa['activeSheet$'][_0x5b781f(0x371)](_0x1e4916(_0x5eab1b=>{const _0x560f43=_0x5b781f;if(!_0x5eab1b)return _0x535914;let _0x20da37=_0x132ffa[_0x560f43(0x1b0)](),_0x59d21f=this[_0x560f43(0x2cf)][_0x560f43(0x2af)](_0x20da37),_0x596293=_0x59d21f==null?void 0x0:_0x59d21f[_0x560f43(0x1d4)];return _0x596293?_0x12c65f(_0x596293):_0x535914;})):_0x535914))[_0x5b781f(0x3e4)](_0x393941=>{const _0x383de7=_0x5b781f;let _0x18d4a7=_0x393941[_0x383de7(0x218)]();this['disposeWithMe'](_0x393941[_0x383de7(0x224)]['subscribeEvent'](()=>{const _0x19044c=_0x383de7;this[_0x19044c(0x2c5)];})),this['disposeWithMe'](_0x18d4a7[_0x383de7(0x320)][_0x383de7(0x3e4)](_0x33323e=>{const _0x3a1eb0=_0x383de7;let {objects:_0x5beb4f}=_0x33323e;this['_createShapeAdjustControls'](),_0x5beb4f!==null&&_0x5beb4f[_0x3a1eb0(0x296)]===0x1&&_0x5beb4f[_0x3a1eb0(0x1f8)]()[_0x3a1eb0(0x3ee)]()[_0x3a1eb0(0x313)]instanceof J&&this[_0x3a1eb0(0x39b)](!0x0);})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x3fa)][_0x383de7(0x3e4)](()=>{const _0x2409a9=_0x383de7;this[_0x2409a9(0x2c5)]&&this[_0x2409a9(0x2b2)]();})),this['disposeWithMe'](_0x393941[_0x383de7(0x367)][_0x383de7(0x212)](()=>{const _0x3c29c6=_0x383de7;this[_0x3c29c6(0x2c5)]&&(this['setShouldShowAdjust'](!0x1),this['_createShapeAdjustControls']());})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x2d0)][_0x383de7(0x3e4)](()=>{const _0x32ca8e=_0x383de7;this[_0x32ca8e(0x180)]&&this[_0x32ca8e(0x3af)]&&this[_0x32ca8e(0x3de)]&&this[_0x32ca8e(0x20f)]['getDrawingByParam']({'unitId':this[_0x32ca8e(0x180)],'subUnitId':this[_0x32ca8e(0x3af)],'drawingId':this[_0x32ca8e(0x3de)]})&&(this[_0x32ca8e(0x191)]=this[_0x32ca8e(0x193)](this['_unitId'],this[_0x32ca8e(0x3af)],this[_0x32ca8e(0x3de)]),this[_0x32ca8e(0x3c3)]());}));}));}[_0x714ef0(0x3ae)](){const _0xee4d61=_0x714ef0;this[_0xee4d61(0x238)](this[_0xee4d61(0x1a7)][_0xee4d61(0x40f)](_0x3d0a6c=>{const _0x389a85=_0xee4d61;if(_0x3d0a6c['id']!==_0x197dab['id'])return;let {unitId:_0x2929cb,subUnitId:_0x5e80bf,shapeId:_0x2ffcc5}=_0x3d0a6c[_0x389a85(0x387)];_0x2929cb===this['_unitId']&&_0x5e80bf===this[_0x389a85(0x3af)]&&_0x2ffcc5===this[_0x389a85(0x3de)]&&this[_0x389a85(0x3f8)]();})),this[_0xee4d61(0x238)](this[_0xee4d61(0x20f)][_0xee4d61(0x3f5)]['subscribe'](_0x4c6438=>{const _0x31e65e=_0xee4d61;if(_0x4c6438['length']===0x1){let _0x562510=_0x4c6438[0x0];if(_0x562510['drawingType']===_0x544f7a[_0x31e65e(0x2c1)]&&this[_0x31e65e(0x2be)][_0x31e65e(0x346)](_0x562510[_0x31e65e(0x277)])===_0x58aa7b[_0x31e65e(0x222)]){this['_activeShapeId']=_0x562510[_0x31e65e(0x290)];let {unitId:_0x29ddf9,subUnitId:_0x39197c}=_0x562510;this[_0x31e65e(0x191)]=this[_0x31e65e(0x193)](_0x29ddf9,_0x39197c,this[_0x31e65e(0x3de)]),this[_0x31e65e(0x180)]=_0x29ddf9,this['_subUnitId']=_0x39197c,this[_0x31e65e(0x2b2)](),this['_createShapeAdjustControls']();return;}}this[_0x31e65e(0x3de)]=null,this[_0x31e65e(0x191)]=void 0x0,this[_0x31e65e(0x180)]=null,this['_subUnitId']=null,this[_0x31e65e(0x2b2)]();})),this[_0xee4d61(0x238)](this['_drawingManagerService'][_0xee4d61(0x22f)][_0xee4d61(0x3e4)](_0x13b412=>{const _0x34cd68=_0xee4d61;if(_0x13b412[_0x34cd68(0x1c3)]===0x1){var _0x10abc7;let _0x527719=_0x13b412[0x0];((_0x10abc7=this[_0x34cd68(0x20f)][_0x34cd68(0x2da)](_0x527719))==null?void 0x0:_0x10abc7[_0x34cd68(0x198)])===_0x544f7a['DRAWING_SHAPE']&&this[_0x34cd68(0x28c)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0xee4d61(0x3e4)](_0x27065e=>{const _0x2f1fbb=_0xee4d61;for(let _0x580592 of _0x27065e)this[_0x2f1fbb(0x3de)]===_0x580592[_0x2f1fbb(0x290)]&&(this[_0x2f1fbb(0x3de)]=null,this[_0x2f1fbb(0x191)]=void 0x0,this[_0x2f1fbb(0x180)]=null,this['_subUnitId']=null,this[_0x2f1fbb(0x2b2)]());}));}};Pr=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x5c502f(Z)),Y(0x4,_0x1d15d2),Y(0x5,_0x2b8a3e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x4017c5['OPERATION'],'handler':(_0x53860a,_0x3a1d35)=>{const _0x1d7c65=_0x714ef0;let _0x5ae3e9=_0x53860a[_0x1d7c65(0x2dd)](_0x19d008),_0x903fe8=_0x53860a[_0x1d7c65(0x2dd)](_0x1e1faa),_0x4bb80a=_0x53860a[_0x1d7c65(0x2dd)](Pr);if(_0x3a1d35==null)return!0x0;if(_0x3a1d35['length']>0x0){var _0x25792a;let _0x202749=(_0x25792a=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null?void 0x0:_0x25792a[_0x1d7c65(0x1d4)];if(_0x202749){let {unitId:_0x1f3c58,subUnitId:_0x2bb593,drawingId:_0x1322c9}=_0x3a1d35[0x0],_0x1f8d04=_0x562c30({'unitId':_0x1f3c58,'subUnitId':_0x2bb593,'drawingId':_0x1322c9},void 0x0),_0x589eba=_0x202749['getObjectIncludeInGroup'](_0x1f8d04);if(_0x589eba){var _0x402cd1;(_0x402cd1=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null||(_0x402cd1=_0x402cd1[_0x1d7c65(0x1d4)]['getTransformer']())==null||_0x402cd1[_0x1d7c65(0x28e)](_0x589eba);}}_0x5ae3e9['focusDrawing'](_0x3a1d35),_0x4bb80a[_0x1d7c65(0x39b)](!0x1);}return!0x0;}},Ir={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x322),'handler':async(_0x3e59fe,_0x214aac)=>{const _0x195e06=_0x714ef0;let _0x43a905=_0x510a30(_0x3e59fe[_0x195e06(0x2dd)](_0x1d15d2));if(!_0x43a905)return!0x1;let _0x603bb2=_0x3e59fe[_0x195e06(0x2dd)](_0x469c9d)[_0x195e06(0x2c0)]();if(!_0x603bb2)return!0x1;let _0x1776b4=_0x3e59fe[_0x195e06(0x2dd)](_0x2b8a3e),{unitId:_0x5102cb,subUnitId:_0x1468b3}=_0x43a905,{value:_0x26679f,enhanceParams:_0x489697}=_0x214aac,{range:_0x15d1cf}=_0x603bb2,_0x190b40={'unitId':_0x5102cb,'subUnitId':_0x1468b3,'shapeType':_0x26679f,'range':_0x15d1cf,'shapeId':_0x2f2dbb()};if(_0x489697){let _0x310dfd=_0x4cb876(_0x26679f),_0x70eafa=_0x26679f===_0xf1eb19[_0x195e06(0x21a)];_0x310dfd&&(_0x489697[_0x195e06(0x411)]||_0x489697['endArrow'])&&(_0x190b40[_0x195e06(0x3be)]={'ln':{'startArrow':_0x489697[_0x195e06(0x411)]?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x406)]}:void 0x0,'endArrow':_0x489697['endArrow']?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x395)]}:void 0x0}}),_0x70eafa&&(_0x489697['horizontal']||_0x489697[_0x195e06(0x2ca)])&&(_0x190b40[_0x195e06(0x3be)]=_0xa48a9d({'fill':{'fillType':_0x271926[_0x195e06(0x3f0)],'color':_0x195e06(0x23d)},'isHorizontal':!!_0x489697['horizontal'],'stroke':{'lineStrokeType':_0x560aad[_0x195e06(0x244)],'width':0x1,'color':_0x195e06(0x216)}}));}let _0x1e79ee=_0x1776b4['syncExecuteCommand'](_0x166112['id'],_0x190b40);return setTimeout(()=>{const _0x407ca2=_0x195e06;_0x1776b4[_0x407ca2(0x40b)](Fr['id'],[{'unitId':_0x5102cb,'subUnitId':_0x1468b3,'drawingId':_0x190b40['shapeId']}]);},0xc8),_0x1e79ee;}},Lr='sheet.shape.edit.panel',Rr=_0x714ef0(0x426),zr=_0x714ef0(0x3c7),Br=_0x714ef0(0x1f3),Vr=_0x47130c(_0x714ef0(0x347)),Hr=_0x714ef0(0x278),Ur={'id':_0x714ef0(0x272),'type':_0x4017c5[_0x714ef0(0x20c)],'handler':(_0xc0591d,_0x2a9381)=>{const _0x4610d3=_0x714ef0;let _0x28eebd=_0xc0591d[_0x4610d3(0x2dd)](_0x3d8cd5),_0x3f89bd=_0xc0591d[_0x4610d3(0x2dd)](_0x30b59c),_0x1b1768=_0xc0591d['get'](_0x1d15d2),_0x12f55b=_0xc0591d[_0x4610d3(0x2dd)](_0x2b8a3e);return _0x510a30(_0x1b1768)?(_0x2a9381==null?void 0x0:_0x2a9381[_0x4610d3(0x313)])===_0x4610d3(0x2ef)?(_0x28eebd['close'](Rr),!0x0):(_0x28eebd[_0x4610d3(0x249)]({'id':Rr,'header':{'title':_0x3f89bd['t'](_0x4610d3(0x219))},'children':{'label':Rr},'onClose':()=>{const _0x1673f5=_0x4610d3;_0x12f55b[_0x1673f5(0x3ca)](_0x2b2ec1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x4017c5[_0x714ef0(0x2e0)],'id':_0x714ef0(0x286),'handler'(){return!0x0;}};function Gr(_0x3d1935){const _0x2bdec9=_0x714ef0;let _0x2746d7=_0x3d1935['get'](_0x19d008)[_0x2bdec9(0x3dc)](),_0xa739a0=_0x2746d7['length']===0x1?_0x2746d7[0x0]:null;if(!_0xa739a0||_0xa739a0[_0x2bdec9(0x198)]!==_0x544f7a['DRAWING_SHAPE'])return null;let _0x3e831e=_0x3d1935['get'](_0x5b8f71),_0x3c42fb=_0x3e831e[_0x2bdec9(0x1ad)](_0xa739a0[_0x2bdec9(0x277)],_0xa739a0['subUnitId'],_0xa739a0['drawingId']),_0x322ce7=_0x3e831e[_0x2bdec9(0x3a4)](_0xa739a0['unitId'],_0xa739a0[_0x2bdec9(0x3d0)],_0xa739a0[_0x2bdec9(0x290)]);return _0x3c42fb===void 0x0||!_0x322ce7?null:{'drawing':_0xa739a0,'shapeData':_0x322ce7,'shapeType':_0x3c42fb};}const Kr={'id':_0x714ef0(0x22b),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x1d3672,_0x559c77)=>{const _0x38ed55=_0x714ef0;let _0x2db150=Gr(_0x1d3672),_0x54a61d=_0x3ceb76((_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x405)])??(_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x313)])??'');if(!_0x2db150||!_0x54a61d||_0x54a61d[_0x38ed55(0x1f1)]!==_0x189f9a(_0x2db150[_0x38ed55(0x3be)]))return!0x1;let _0x20727b=_0x368cae(_0x2db150[_0x38ed55(0x3be)],_0x54a61d);if(!_0x20727b)return!0x1;let {drawing:_0x1464eb}=_0x2db150;return _0x1d3672[_0x38ed55(0x2dd)](_0x2b8a3e)['executeCommand'](K['id'],{'unitId':_0x1464eb['unitId'],'subUnitId':_0x1464eb[_0x38ed55(0x3d0)],'shapeId':_0x1464eb['drawingId'],'shapeData':_0x20727b,'oldShapeJSON':{'oldShapeData':_0x2db150['shapeData']}});}},qr={'id':_0x714ef0(0x3f3),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x40821b,_0x2dfe03)=>{const _0x4a28a2=_0x714ef0;let _0x2f3200=Gr(_0x40821b),_0x1514c3=(_0x2dfe03==null?void 0x0:_0x2dfe03['shapeType'])??(_0x2dfe03==null?void 0x0:_0x2dfe03['value']);if(!_0x2f3200||!_0x1514c3||_0x4cb876(_0x2f3200[_0x4a28a2(0x3b7)])||_0x4cb876(_0x1514c3))return!0x1;let _0x3b8210=_0x56761c(_0x2f3200[_0x4a28a2(0x3be)],_0x1514c3);if(!_0x3b8210)return!0x1;let {drawing:_0x1c22a7}=_0x2f3200;return _0x40821b[_0x4a28a2(0x2dd)](_0x2b8a3e)[_0x4a28a2(0x40b)](K['id'],{'unitId':_0x1c22a7[_0x4a28a2(0x277)],'subUnitId':_0x1c22a7[_0x4a28a2(0x3d0)],'shapeId':_0x1c22a7[_0x4a28a2(0x290)],'shapeType':_0x1514c3,'shapeData':_0x3b8210,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2f3200[_0x4a28a2(0x3b7)],'oldShapeData':_0x2f3200[_0x4a28a2(0x3be)]}});}};let Q=class extends _0xe29064{constructor(_0x251554,_0x827a0f){const _0x156f2a=_0x714ef0;super(),this[_0x156f2a(0x379)]=_0x251554,this['_drawingManagerService']=_0x827a0f,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x156f2a(0x321)](!0x0),this[_0x156f2a(0x238)]({'dispose':()=>this[_0x156f2a(0x379)][_0x156f2a(0x321)](!0x1)});}[_0x714ef0(0x34d)](){const _0x2168ad=_0x714ef0;let _0xd2dfe6=this[_0x2168ad(0x379)],_0x192fe4=new Map(),_0x34b800=_0xd2dfe6[_0x2168ad(0x3f1)]((_0x3a2e21,_0x11e7b,_0x27ae9e,_0x7b42ef,_0x1cb846)=>{const _0xaa213b=_0x2168ad;let _0x5652b9=_0x11e7b;if(_0x5652b9===_0xf1eb19[_0xaa213b(0x327)]||_0x11e7b===_0xaa213b(0x1d0))return!0x1;try{let _0x56155d=_0x192fe4['get'](_0x11e7b);return _0x56155d||(_0x56155d=new _0x573393(_0x5652b9,_0xaa213b(0x3da)+_0x11e7b),_0x192fe4['set'](_0x11e7b,_0x56155d)),_0x56155d[_0xaa213b(0x179)](),_0x1cb846&&Object[_0xaa213b(0x1a3)](_0x1cb846)[_0xaa213b(0x1c3)]>0x0&&_0x56155d['setShapeData']({'adjustValues':_0x1cb846},!0x0),_0x56155d[_0xaa213b(0x2b8)]({'width':_0x27ae9e,'height':_0x7b42ef}),_0x56155d[_0xaa213b(0x3d4)](_0x3a2e21,{'left':0x0,'top':0x0,'width':_0x27ae9e,'height':_0x7b42ef});}catch{return!0x1;}});this[_0x2168ad(0x238)](_0x34b800),this[_0x2168ad(0x238)]({'dispose':()=>_0x192fe4[_0x2168ad(0x1d6)]()});}[_0x714ef0(0x403)](_0x28613b,_0x18b566,_0x1def61,_0x4010fe,_0x200c30){const _0x5bddbe=_0x714ef0;let _0x123a6b=this[_0x5bddbe(0x20f)][_0x5bddbe(0x1a5)](_0x28613b,_0x18b566);if(!_0x123a6b[_0x1def61])return;let _0x1dd3b8={..._0x123a6b[_0x1def61],'prstGeom':_0x4010fe,'adjustValues':_0x200c30};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x1dd3b8]);}};Q=X([Y(0x0,_0x5c502f(_0x1d70d0)),Y(0x1,_0x5c502f(_0x19d008))],Q);const Jr=_0x714ef0(0x2c4),Yr=_0x714ef0(0x2cb);function Xr({onShapeClick:_0x3c4dec,excludeGroups:_0x3803fa}){return _0x230828(_0x3bf045,{'excludeGroups':_0x3803fa,'onShapeClick':_0x3c4dec,'scrollContainer':'parent'});}function Zr(){const _0x27a378=_0x714ef0;let _0x301669=_0x3bcf4c(_0x19d008),_0x5d7816=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x27a378(0x3f9),'excludeGroups':[_0x2a0c3e['Line']],'onShapeClick':_0x31c95a=>{const _0xae6239=_0x27a378;let _0x28a3e7=_0x301669['getFocusDrawings']()['find'](_0x57c155=>_0x57c155[_0xae6239(0x198)]===_0x544f7a[_0xae6239(0x430)]);if(!_0x28a3e7)return;let {unitId:_0x3cc985,subUnitId:_0x57ad77,drawingId:_0x3968c1}=_0x28a3e7;_0x5d7816[_0xae6239(0x403)](_0x3cc985,_0x57ad77,_0x3968c1,_0x31c95a[_0xae6239(0x1f1)]);}});}function Qr(){const _0x50a7b7=_0x714ef0;let _0x38a4c4=_0x3bcf4c(_0x19d008),_0x769ea9=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x50a7b7(0x3f9),'excludeGroups':[_0x2a0c3e[_0x50a7b7(0x183)]],'DropdownComponent':_0x8991e2,'onShapeClick':_0x4fe581=>{const _0x4d7123=_0x50a7b7;let _0x26e902=_0x38a4c4[_0x4d7123(0x3dc)]()['find'](_0x532336=>_0x532336['drawingType']===_0x544f7a[_0x4d7123(0x430)]);if(!_0x26e902)return;let {unitId:_0x2cf933,subUnitId:_0x391d55,drawingId:_0x16fa58}=_0x26e902;_0x769ea9[_0x4d7123(0x403)](_0x2cf933,_0x391d55,_0x16fa58,_0x4fe581[_0x4d7123(0x1f1)]);}});}function $r(){const _0x28b719=_0x714ef0;let _0x2bda3e=_0x3bcf4c(_0x5a67d0),_0x1fe248=_0x3bcf4c(_0x19d008),_0x1a6110=_0x3bcf4c(_0x1d15d2),_0x479bf0=_0x1fe248[_0x28b719(0x3dc)]()[0x0],_0xdd48ba=_0x479bf0?_0x1a6110[_0x28b719(0x346)](_0x479bf0[_0x28b719(0x277)]):void 0x0,_0x48e737=_0xdd48ba===_0x58aa7b['UNIVER_DOC']?_0x28b719(0x3e9):_0xdd48ba===_0x58aa7b[_0x28b719(0x222)]?Yr:void 0x0,_0x59d30e=_0x48e737?_0x2bda3e[_0x28b719(0x2dd)](_0x48e737):void 0x0;return _0x59d30e?_0x230828(_0x59d30e,{}):null;}function ei(){let _0x2fcd4b=_0x3bcf4c(_0x2b8a3e);return _0x230828(Xr,{'onShapeClick':_0x373ab0=>{const _0x5dc408=_0x5396;_0x2fcd4b[_0x5dc408(0x40b)](Ir['id'],{'value':_0x373ab0[_0x5dc408(0x1f1)],'enhanceParams':{'endArrow':_0x373ab0['endArrow'],'startArrow':_0x373ab0[_0x5dc408(0x411)],'horizontal':_0x373ab0[_0x5dc408(0x401)],'vertical':_0x373ab0[_0x5dc408(0x2ca)]}});}});}function ti(){return _0x230828(ei,{});}function ni(_0xfd55e8){const _0x54625d=_0x714ef0;let _0x26887d=_0xfd55e8[_0x54625d(0x2dd)](_0x1d15d2);return{'id':Ir['id'],'type':_0x507a55[_0x54625d(0x23e)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x54625d(0x328),'tooltip':_0x54625d(0x408),'activated$':_0x5b4c60(_0x26887d,!0x1,()=>new _0x1bac00(_0x3f7ae3=>{const _0x2f39f9=_0x54625d;_0x3f7ae3[_0x2f39f9(0x3ee)](!0x1);})),'hidden$':_0x1975c5(_0xfd55e8,_0x58aa7b[_0x54625d(0x222)]),'disabled$':_0x3afc35(_0xfd55e8)};}function ri(_0x18eef5){const _0x48afe4=_0x714ef0;let _0x4bbd4d=_0x18eef5['get'](_0x1d15d2);return{'id':Ur['id'],'type':_0x507a55['BUTTON'],'icon':_0x48afe4(0x3a6),'title':_0x48afe4(0x3ac),'tooltip':_0x48afe4(0x3ac),'activated$':_0x5b4c60(_0x4bbd4d,!0x1,()=>new _0x1bac00(_0x181eaf=>{_0x181eaf['next'](!0x1);})),'hidden$':_0x1975c5(_0x18eef5,_0x58aa7b[_0x48afe4(0x222)]),'disabled$':_0x3afc35(_0x18eef5)};}const ii=_0x714ef0(0x2bc),ai=_0x714ef0(0x3a5);function oi(_0x20fcd6){const _0x1f5f66=_0x714ef0;let _0x5895c4=_0x20fcd6['get'](_0x19d008)[_0x1f5f66(0x3dc)]();return _0x5895c4[_0x1f5f66(0x1c3)]===0x1&&_0x5895c4[0x0][_0x1f5f66(0x198)]===_0x544f7a[_0x1f5f66(0x2c1)]?_0x5895c4[0x0]:null;}function si(_0x596535){const _0x24e80c=_0x714ef0;let _0x310aeb=_0x596535[_0x24e80c(0x2dd)](_0x19d008);return _0x310aeb[_0x24e80c(0x3f5)][_0x24e80c(0x371)](_0x293b44(_0x310aeb[_0x24e80c(0x3dc)]()),_0x3fd006(_0x1cc5a9=>_0x1cc5a9['length']!==0x1||_0x1cc5a9[0x0]['drawingType']!==_0x544f7a[_0x24e80c(0x2c1)]));}function ci(_0x379a8b){const _0x55f365=_0x714ef0;return{'id':ii,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x55f365(0x39c)],'title':_0x55f365(0x373),'tooltip':_0x55f365(0x373),'icon':_0x55f365(0x376),'hidden$':si(_0x379a8b),'params':()=>{const _0x1357ab=_0x55f365;let _0x3d8fac=oi(_0x379a8b);return _0x3d8fac?{'unitId':_0x3d8fac[_0x1357ab(0x277)],'subUnitId':_0x3d8fac[_0x1357ab(0x3d0)],'shapeId':_0x3d8fac['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0xce7bf){const _0x11becd=_0x714ef0;return{'id':ai,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x11becd(0x39c)],'title':_0x11becd(0x31c),'tooltip':_0x11becd(0x31c),'icon':_0x11becd(0x35e),'hidden$':si(_0xce7bf),'params':()=>{const _0x2e81a5=_0x11becd;let _0xe0938d=oi(_0xce7bf);return _0xe0938d?{'unitId':_0xe0938d[_0x2e81a5(0x277)],'subUnitId':_0xe0938d['subUnitId'],'shapeId':_0xe0938d[_0x2e81a5(0x290)],'flipV':!0x0}:void 0x0;}};}const ui='sheets-shape-ui.shape-format.quick-style-gallery',di=_0x714ef0(0x16f),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x714ef0(0x38e);function mi(){let _0x3b4f9a=_0x3bcf4c(_0x2b8a3e),_0x45ac04=_0x3bcf4c(_0x19d008),_0x5aea4f=_0x3bcf4c(_0x5b8f71),_0x4f2aed=()=>{const _0x2bf935=_0x5396;var _0xe0cf28;let _0x4e930e=_0x45ac04[_0x2bf935(0x3dc)]();if(_0x4e930e[_0x2bf935(0x1c3)]!==0x1||((_0xe0cf28=_0x4e930e[0x0])==null?void 0x0:_0xe0cf28[_0x2bf935(0x198)])!==_0x544f7a[_0x2bf935(0x2c1)])return null;let {unitId:_0x3407d5,subUnitId:_0x358b0a,drawingId:_0x5db6ee}=_0x4e930e[0x0],_0x1866cb=_0x5aea4f[_0x2bf935(0x1ad)](_0x3407d5,_0x358b0a,_0x5db6ee),_0x35384b=_0x5aea4f[_0x2bf935(0x3a4)](_0x3407d5,_0x358b0a,_0x5db6ee);return _0x1866cb===void 0x0||!_0x35384b?null:{'unitId':_0x3407d5,'subUnitId':_0x358b0a,'drawingId':_0x5db6ee,'shapeType':_0x1866cb,'shapeData':_0x35384b};},_0x482661=_0x54184f(()=>new _0x1bac00(_0x1f6a38=>{const _0x19df69=_0x5396;let _0x441452=()=>_0x1f6a38[_0x19df69(0x3ee)](_0x4f2aed()),_0x22850a=_0x45ac04['focus$'][_0x19df69(0x3e4)](_0x441452),_0x1be858=_0x3b4f9a[_0x19df69(0x40f)](_0x39ed42=>{_0x39ed42['id']===_0x197dab['id']&&_0x441452();});return _0x441452(),()=>{const _0x49acf8=_0x19df69;_0x22850a[_0x49acf8(0x187)](),_0x1be858[_0x49acf8(0x232)]();};}),_0x4f2aed(),!0x1,[_0x3b4f9a,_0x45ac04,_0x5aea4f]);return{'selection':_0x482661,'updateShapeData':_0x4a9378=>{const _0x183b14=_0x5396;_0x482661&&Dr(_0x3b4f9a,_0x482661[_0x183b14(0x277)],_0x482661['subUnitId'],_0x482661['drawingId'],{'oldShapeData':_0x482661['shapeData']},_0x4a9378);}};}function hi(){const _0x3db532=_0x714ef0;let {selection:_0x1e0b81,updateShapeData:_0x206d70}=mi();return _0x1e0b81?_0x230828(_0x52b5ae,{'shapeData':_0x1e0b81[_0x3db532(0x3be)],'shapeType':_0x1e0b81[_0x3db532(0x3b7)],'onUpdateShapeData':_0x206d70}):null;}function gi(){const _0x17f26a=_0x714ef0;let _0x1d08aa=_0x3bcf4c(_0x2b8a3e),_0x49cfac=_0x3bcf4c(_0x30b59c),{selection:_0x29b43b}=mi();return _0x29b43b?_0x230828(_0x10a63c,{'type':_0x189f9a(_0x29b43b[_0x17f26a(0x3be)]),'ariaLabel':_0x49cfac['t'](_0x17f26a(0x1e4)),'activePresetId':_0x555e02(_0x29b43b[_0x17f26a(0x3be)]),'onSelect':_0x324984=>_0x1d08aa[_0x17f26a(0x40b)](Kr['id'],{'presetId':_0x324984})}):null;}function _i(){const _0x830252=_0x714ef0;let {selection:_0x4fdbae,updateShapeData:_0x4ab41c}=mi();return _0x4fdbae?_0x230828(_0x2a1de0,{'fontFamilyPopupDataComponent':_0x830252(0x41b),'shapeData':_0x4fdbae['shapeData'],'onUpdateShapeData':_0x4ab41c}):null;}function vi(){const _0x56e956=_0x714ef0;var _0x5ca2b4;let {selection:_0x31dbd8,updateShapeData:_0x3bf4db}=mi(),_0x12a3a2=_0x1f34d3({'hostType':_0x58aa7b[_0x56e956(0x222)],'unitId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x277)])??'','subUnitId':(_0x31dbd8==null?void 0x0:_0x31dbd8['subUnitId'])??'','shapeId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x290)])??'','shapeData':_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x3be)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x56e956(0x2e5),'onUpdateBinding':_0x1d015f=>_0x3bf4db({'formulaBinding':_0x1d015f})}),_0x225f7f=((_0x5ca2b4=_0x12a3a2[_0x56e956(0x27c)])==null?void 0x0:_0x5ca2b4[_0x56e956(0x310)](_0x330f2a=>_0x330f2a['actions'])[_0x56e956(0x3c0)](_0x5b5195=>_0x5b5195['visible']!==!0x1))??[];return _0x31dbd8!=null&&_0x31dbd8[_0x56e956(0x3be)][_0x56e956(0x317)]?_0x230828(_0x493081,{'actions':_0x225f7f,'panel':_0x12a3a2['panel']}):null;}const yi=_0x714ef0(0x2fa),bi='sheets-shape-ui.ribbon.shape-format.text-control',xi=_0x714ef0(0x291),Si=_0x714ef0(0x170),Ci=_0x714ef0(0x3d7),wi=_0x714ef0(0x341),Ti=_0x714ef0(0x2b3);function Ei(_0xcdf213){let _0x19fe88=_0xcdf213['get'](_0x2b8a3e),_0x294f93=_0xcdf213['get'](_0x19d008),_0x5ab309=_0xcdf213['get'](_0x5b8f71);return new _0x1bac00(_0x1c3877=>{const _0x26ea6a=_0x5396;let _0x2bcdb0=()=>{const _0xc4e92f=_0x5396;let _0x4d2431=Di(_0xcdf213),_0x1c9304=_0x4d2431?_0x5ab309['getShapeDataById'](_0x4d2431[_0xc4e92f(0x277)],_0x4d2431['subUnitId'],_0x4d2431[_0xc4e92f(0x290)]):null;_0x1c3877['next'](_0x1c9304?_0x555e02(_0x1c9304)??'':'');},_0x5b6e68=_0x294f93[_0x26ea6a(0x3f5)][_0x26ea6a(0x3e4)](_0x2bcdb0),_0x30eaaf=_0x19fe88[_0x26ea6a(0x40f)](_0xac4b45=>{_0xac4b45['id']===_0x197dab['id']&&_0x2bcdb0();});return _0x2bcdb0(),()=>{const _0x15c6c9=_0x26ea6a;_0x5b6e68[_0x15c6c9(0x187)](),_0x30eaaf[_0x15c6c9(0x232)]();};});}function Di(_0x5e8feb){const _0xb586e5=_0x714ef0;var _0x3937db;let _0x40493c=_0x5e8feb['get'](_0x19d008)[_0xb586e5(0x3dc)]();return _0x40493c[_0xb586e5(0x1c3)]===0x1&&((_0x3937db=_0x40493c[0x0])==null?void 0x0:_0x3937db[_0xb586e5(0x198)])===_0x544f7a[_0xb586e5(0x2c1)]?_0x40493c[0x0]:null;}function Oi(_0x42fcca,_0x1e6ff6=!0x1){const _0x37ae39=_0x714ef0;let _0x2fdcec=_0x42fcca[_0x37ae39(0x2dd)](_0x2b8a3e),_0x3d4e53=_0x42fcca[_0x37ae39(0x2dd)](_0x19d008),_0x488183=_0x42fcca[_0x37ae39(0x2dd)](_0x5b8f71);return new _0x1bac00(_0x3e047c=>{const _0x14133f=_0x37ae39;let _0x3d8bf3=()=>{const _0x27c0d2=_0x5396;let _0x19bb25=Di(_0x42fcca);if(!_0x19bb25){_0x3e047c['next'](!0x0);return;}let _0x4c74d5=_0x488183[_0x27c0d2(0x3a4)](_0x19bb25[_0x27c0d2(0x277)],_0x19bb25[_0x27c0d2(0x3d0)],_0x19bb25[_0x27c0d2(0x290)]);_0x3e047c[_0x27c0d2(0x3ee)](!_0x4c74d5||_0x1e6ff6&&_0x4c74d5[_0x27c0d2(0x317)]==null);},_0x294850=_0x3d4e53[_0x14133f(0x3f5)]['subscribe'](_0x3d8bf3),_0x199816=_0x2fdcec['onCommandExecuted'](_0x4aa4f2=>{_0x4aa4f2['id']===_0x197dab['id']&&_0x3d8bf3();});return _0x3d8bf3(),()=>{const _0x14c253=_0x14133f;_0x294850[_0x14c253(0x187)](),_0x199816[_0x14c253(0x232)]();};});}function ki(_0x3a730e){const _0x567ef3=_0x714ef0;let _0x5e661e=_0x3a730e['get'](_0x19d008),_0x206534=_0x3a730e[_0x567ef3(0x2dd)](_0x5b8f71);return _0x5e661e[_0x567ef3(0x3f5)][_0x567ef3(0x371)](_0x293b44(_0x5e661e[_0x567ef3(0x3dc)]()),_0x3fd006(()=>{const _0x94a6f7=_0x567ef3;let _0x169446=Di(_0x3a730e),_0x4e9af5=_0x169446?_0x206534[_0x94a6f7(0x1ad)](_0x169446['unitId'],_0x169446[_0x94a6f7(0x3d0)],_0x169446['drawingId']):void 0x0;return _0x4e9af5===void 0x0||_0x4cb876(_0x4e9af5);}));}function Ai(_0x53cf0e){const _0x202d90=_0x714ef0;return{'id':Kr['id'],'type':_0x507a55[_0x202d90(0x23e)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x202d90(0x363),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x53cf0e),'hidden$':Oi(_0x53cf0e)};}function ji(_0x1b8c7f){const _0x344ec6=_0x714ef0;return{'id':qr['id'],'type':_0x507a55[_0x344ec6(0x23e)],'icon':_0x344ec6(0x328),'title':_0x344ec6(0x21b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x549e13,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x1b8c7f)};}function Mi(_0x516992,_0x49b129,_0x5b8868=!0x1){const _0x4acf32=_0x714ef0;return _0x2ea373=>({'id':_0x516992,'type':_0x507a55[_0x4acf32(0x39c)],'label':{'name':_0x49b129,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2ea373,_0x5b8868)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x47068d,_0x343942,_0x4e0c5c,_0x294ec7){const _0x266166=_0x714ef0;return _0x3b5cfe=>({'id':_0x47068d,'commandId':_0x8e2df9['id'],'type':_0x507a55[_0x266166(0x39c)],'icon':_0x4e0c5c,'title':_0x294ec7,'tooltip':_0x294ec7,'hidden$':Oi(_0x3b5cfe),'params':()=>{const _0x373d15=_0x266166;let _0x47f338=Di(_0x3b5cfe);return _0x47f338?{'unitId':_0x47f338['unitId'],'subUnitId':_0x47f338['subUnitId'],'drawingIds':[_0x47f338[_0x373d15(0x290)]],'arrangeType':_0x343942}:void 0x0;}});}const Li=Ii(Si,_0x426c14['forward'],_0x714ef0(0x164),_0x714ef0(0x36c)),Ri=Ii(Ci,_0x426c14['backward'],'MoveDownIcon',_0x714ef0(0x2ed)),zi=Ii(wi,_0x426c14[_0x714ef0(0x287)],_0x714ef0(0x279),_0x714ef0(0x324)),Bi=Ii(Ti,_0x426c14[_0x714ef0(0x3b8)],'BottomIcon',_0x714ef0(0x34b));function Vi(_0x486570){const _0x281969=_0x714ef0;return{'id':Wr['id'],'type':_0x507a55[_0x281969(0x39c)],'icon':_0x281969(0x424),'title':_0x281969(0x35d),'tooltip':_0x281969(0x35d),'hidden$':Oi(_0x486570),'params':()=>{const _0x47625b=_0x281969;let _0xf5e4be=Di(_0x486570);return _0xf5e4be?{'unitId':_0xf5e4be['unitId'],'subUnitId':_0xf5e4be[_0x47625b(0x3d0)],'drawingId':_0xf5e4be[_0x47625b(0x290)]}:void 0x0;}};}const Hi={[_0x31bc17[_0x714ef0(0x3b3)]]:{[Br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x45fee0['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5bad15}}}}},Ui={[_0x3372cf[_0x714ef0(0x2d8)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3372cf[_0x714ef0(0x1e3)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x281ae1[_0x714ef0(0x3cc)]]:{[_0x144ec7[_0x714ef0(0x1e3)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x714ef0(0x2fe),Ki=_0x714ef0(0x25f);const qi={'id':_0x714ef0(0x1ae),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler'(_0xea0b8e,_0x2a76e0){const _0x2b0013=_0x714ef0;return _0x2a76e0?(_0xea0b8e[_0x2b0013(0x2dd)](_0x9eb493)[_0x2b0013(0x249)](_0x2a76e0['mode'],{'hostType':_0x58aa7b[_0x2b0013(0x222)],'shapeId':_0x2a76e0[_0x2b0013(0x290)],'subUnitId':_0x2a76e0['subUnitId'],'unitId':_0x2a76e0[_0x2b0013(0x277)]}),!0x0):!0x1;}},Ji=_0x714ef0(0x420),Yi={};let Xi=class extends _0xe29064{constructor(_0x3fcce2,_0x41abff,_0x17bf19,_0x36f66f,_0x35e928){const _0x56c17d=_0x714ef0;super(),this[_0x56c17d(0x22a)]=_0x3fcce2,this['_drawingManagerService']=_0x41abff,this[_0x56c17d(0x2cf)]=_0x17bf19,this[_0x56c17d(0x2be)]=_0x36f66f,this[_0x56c17d(0x1ef)]=_0x35e928,q(this,_0x56c17d(0x2ac),null),q(this,'_unitId',null),q(this,_0x56c17d(0x3af),null),q(this,_0x56c17d(0x2a7),void 0x0),q(this,_0x56c17d(0x2ee),[]),q(this,_0x56c17d(0x294),0x0),q(this,_0x56c17d(0x263),0x0),q(this,_0x56c17d(0x3e5),0x0),q(this,_0x56c17d(0x297),0x0),q(this,_0x56c17d(0x1c0),!0x1),q(this,_0x56c17d(0x203),void 0x0),q(this,_0x56c17d(0x20d),void 0x0),q(this,_0x56c17d(0x3e0),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0x56c17d(0x3bf),!0x1),this[_0x56c17d(0x1e7)](),this['_registerMoveHandler']();}[_0x714ef0(0x260)](){const _0x3c9b25=_0x714ef0;this[_0x3c9b25(0x3c9)]();}[_0x714ef0(0x3f8)](){const _0x4c2b5d=_0x714ef0;this[_0x4c2b5d(0x3c9)](),this['_createControls'](!0x0);}[_0x714ef0(0x41f)](_0x2ce296,_0x39d500,_0x1ce1c5,_0x34bc90){const _0x4c0fae=_0x714ef0;let _0x45f7dd=_0x2ce296;if(_0x45f7dd!==_0xf1eb19['None']&&_0x2ce296!==_0x4c0fae(0x1d0))try{let _0x29d3b8=new _0x573393(_0x45f7dd,_0x4c0fae(0x365)+_0x2ce296);return _0x34bc90&&_0x29d3b8[_0x4c0fae(0x256)]({'adjustValues':_0x34bc90},!0x0),_0x29d3b8[_0x4c0fae(0x2b8)]({'width':_0x39d500,'height':_0x1ce1c5}),_0x29d3b8;}catch{return;}}[_0x714ef0(0x1c7)](_0x5a8263,_0x433fb4,_0x1eb224){const _0x32186e=_0x714ef0;let _0x1eae1a={'unitId':_0x5a8263,'subUnitId':_0x433fb4,'drawingId':_0x1eb224},_0x3cd1b7=this[_0x32186e(0x20f)][_0x32186e(0x2da)](_0x1eae1a);if(_0x3cd1b7&&_0x3cd1b7['drawingType']===_0x544f7a[_0x32186e(0x430)])return _0x3cd1b7;}[_0x714ef0(0x168)](_0x5ebc48,_0x2abf4a,_0x332211){const _0x54b6d1=_0x714ef0;let _0x13242e=this[_0x54b6d1(0x2cf)]['getRenderUnitById'](_0x5ebc48);if(!_0x13242e)return;let {scene:_0x2bdfbd}=_0x13242e,_0x42082f=_0x562c30({'unitId':_0x5ebc48,'subUnitId':_0x2abf4a,'drawingId':_0x332211}),_0x4a593d=_0x2bdfbd[_0x54b6d1(0x3b6)](_0x42082f);if(_0x4a593d instanceof _0x230c76){let _0x526d7a=_0x4a593d[_0x54b6d1(0x33e)];if(_0x526d7a)return{'prstGeom':_0x526d7a,'adjustValues':_0x4a593d[_0x54b6d1(0x24a)]};}}[_0x714ef0(0x25b)](_0x276fdb=!0x1){const _0x46072e=_0x714ef0;if(!this[_0x46072e(0x180)]||!this[_0x46072e(0x3af)]||!this['_activeImageId'])return;let _0x106656=this[_0x46072e(0x2cf)]['getRenderUnitById'](this[_0x46072e(0x180)]);if(!_0x106656||!_0x106656[_0x46072e(0x3e6)](_0x44086e)[_0x46072e(0x161)]())return;let {scene:_0x4da006}=_0x106656,_0xf5547e=this[_0x46072e(0x1c7)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0xf5547e)return;let {transform:_0x38b4a2}=_0xf5547e;if(!_0x38b4a2)return;let {left:_0x7a3559,top:_0x4d4cc9,width:_0x23b830,height:_0x587640,flipX:_0x27036a,flipY:_0x378c8a,angle:_0x3dddba=0x0}=_0x38b4a2;if(_0x7a3559===void 0x0||_0x4d4cc9===void 0x0)return;let _0x81975b=this[_0x46072e(0x168)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0x81975b)return;if(_0x276fdb){let _0x15c68b=this['_getOrCreateShapeModel'](_0x81975b[_0x46072e(0x33e)],_0x23b830||0x0,_0x587640||0x0,_0x81975b[_0x46072e(0x33c)]);if(!_0x15c68b)return;this['_activeAdjustPointList']=_0x15c68b[_0x46072e(0x41e)]();}let _0x4d2bc9=this[_0x46072e(0x2a7)];if(_0x4d2bc9&&_0x4d2bc9[_0x46072e(0x1c3)]!==0x0)for(let _0x121017=0x0;_0x121017<_0x4d2bc9[_0x46072e(0x1c3)];_0x121017++){let _0x5ec84b=_0x4d2bc9[_0x121017],_0xfa5511=_0x5ec84b['x'],_0x3d157b=_0x5ec84b['y'];if(_0x27036a&&(_0xfa5511=(_0x23b830||0x0)-_0xfa5511),_0x378c8a&&(_0x3d157b=(_0x587640||0x0)-_0x3d157b),_0x3dddba!==0x0){let _0x25bbc3=(_0x23b830||0x0)/0x2,_0x52b3cb=(_0x587640||0x0)/0x2,_0x250ebd=_0x3dddba*Math['PI']/0xb4,_0x3f3e69=Math['cos'](_0x250ebd),_0x3ae405=Math[_0x46072e(0x267)](_0x250ebd),_0x53071d=_0xfa5511-_0x25bbc3,_0x198f5f=_0x3d157b-_0x52b3cb;_0xfa5511=_0x25bbc3+(_0x53071d*_0x3f3e69-_0x198f5f*_0x3ae405),_0x3d157b=_0x52b3cb+(_0x53071d*_0x3ae405+_0x198f5f*_0x3f3e69);}let _0x56dc6d={'x':_0xfa5511,'y':_0x3d157b,'adjName':_0x5ec84b[_0x46072e(0x2a3)]};this['_addControl'](_0x4da006,_0x56dc6d,_0x56dc6d[_0x46072e(0x2a3)],_0x7a3559,_0x4d4cc9,this['_unitId'],this[_0x46072e(0x3af)]);}}[_0x714ef0(0x1d3)](_0x457661,_0x1d5169,_0x21de1a,_0x570ec3,_0x250317,_0x1d8bd9,_0x216246){const _0x6ed577=_0x714ef0;if(!this[_0x6ed577(0x2ac)])return;let _0x14bce9='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x21de1a,_0x452cca=_0x457661[_0x6ed577(0x252)](_0x14bce9);if(_0x452cca){_0x452cca[_0x6ed577(0x1b1)]({'left':_0x1d5169['x']+_0x570ec3-_0x4945a0[_0x6ed577(0x17b)],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)]});return;}let _0x37aced=new Nr(_0x14bce9,{'left':_0x1d5169['x']+_0x570ec3-_0x4945a0['adjHandleSize'],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)],'adjName':_0x21de1a,'shapeId':this['_activeImageId'],'unitId':_0x1d8bd9,'subUnitId':_0x216246,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x6ed577(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x6ed577(0x2ee)][_0x6ed577(0x181)](_0x37aced),this[_0x6ed577(0x354)](_0x37aced,_0x457661,_0x21de1a),_0x457661[_0x6ed577(0x213)](_0x37aced,_0x4232ac+0x1);}['_clearControls'](){const _0x42ff33=_0x714ef0;this[_0x42ff33(0x2ee)][_0x42ff33(0x1c3)]!==0x0&&(this['_shapes'][_0x42ff33(0x185)](_0x395514=>_0x395514[_0x42ff33(0x232)]()),this['_shapes']=[]);}['_getScrollInfo'](_0x22a1d3,_0xa5f4ee){const _0x14692e=_0x714ef0;var _0x154c3a;let _0x58f5d5={'x':0x0,'y':0x0},_0x1540ec=this[_0x14692e(0x2cf)][_0x14692e(0x2af)](_0x22a1d3);if(!_0x1540ec||!_0x1540ec[_0x14692e(0x3e6)](_0x44086e)[_0x14692e(0x1f4)](_0xa5f4ee))return _0x58f5d5;let _0x48d43b=_0x1540ec['with'](_0x4e89db),_0x4b84c3=_0x48d43b==null?void 0x0:_0x48d43b[_0x14692e(0x1b9)]();if(!_0x4b84c3)return _0x58f5d5;let _0x11524a=(_0x154c3a=this[_0x14692e(0x2be)][_0x14692e(0x2a6)](_0x22a1d3))==null?void 0x0:_0x154c3a[_0x14692e(0x2f0)](_0xa5f4ee);if(!_0x11524a)return _0x58f5d5;let _0xbe80ca=_0xe31858(_0x4b84c3[_0x14692e(0x3d9)],_0x4b84c3['sheetViewStartColumn'],_0x1540ec[_0x14692e(0x1d4)],_0x11524a);return _0xbe80ca?{'x':_0xbe80ca[_0x14692e(0x388)],'y':_0xbe80ca[_0x14692e(0x17a)]}:_0x58f5d5;}['_getZoomRatio'](_0xd4c95a,_0x503261){const _0x34b09e=_0x714ef0;var _0x5e07b3;let _0x168444=(_0x5e07b3=this[_0x34b09e(0x2be)]['getUnit'](_0xd4c95a))==null?void 0x0:_0x5e07b3[_0x34b09e(0x2f0)](_0x503261);return(_0x168444==null?void 0x0:_0x168444[_0x34b09e(0x3fb)]())??0x1;}[_0x714ef0(0x354)](_0x5cdb19,_0x5b64b3,_0x450211){const _0x139407=_0x714ef0;this[_0x139407(0x238)](_0x128476(_0x5cdb19[_0x139407(0x18e)][_0x139407(0x212)]((_0x5b1114,_0x5370e7)=>{const _0x76c6d1=_0x139407;var _0x117f31,_0x2efe98,_0x6c5c06;let {unitId:_0x20ca99,subUnitId:_0x491c14,drawingId:_0x11049a}=_0x5cdb19['getDrawingSearch'](),_0x3578dd=this[_0x76c6d1(0x1c7)](_0x20ca99,_0x491c14,_0x11049a);if(!(_0x3578dd!=null&&_0x3578dd[_0x76c6d1(0x29f)]))return;let {left:_0x386c7a,top:_0x3119a8,width:_0x167c8e,height:_0x19194a}=_0x3578dd['transform'];this['_baseLeft']=_0x386c7a||0x0,this[_0x76c6d1(0x263)]=_0x3119a8||0x0,this[_0x76c6d1(0x3e5)]=_0x167c8e||0x0,this[_0x76c6d1(0x297)]=_0x19194a||0x0;let _0x5c0c48=!!((_0x117f31=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x117f31[_0x76c6d1(0x18d)]),_0x567a6c=!!((_0x2efe98=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x2efe98['flipY']),_0x5ec8bc=((_0x6c5c06=_0x3578dd[_0x76c6d1(0x29f)])==null?void 0x0:_0x6c5c06[_0x76c6d1(0x2ae)])||0x0,_0x523492=this[_0x76c6d1(0x168)](_0x20ca99,_0x491c14,_0x11049a);if(!_0x523492)return;let _0x2b7dd0=this[_0x76c6d1(0x41f)](_0x523492[_0x76c6d1(0x33e)],this[_0x76c6d1(0x3e5)],this[_0x76c6d1(0x297)],_0x523492['adjustValues']);if(!_0x2b7dd0||(this[_0x76c6d1(0x20d)]=_0x2b7dd0,this['_activeAdjustInfo']=_0x2b7dd0[_0x76c6d1(0x2b1)](_0x450211),!this[_0x76c6d1(0x203)]))return;this[_0x76c6d1(0x1c0)]=!0x0,_0x5b64b3['disableObjectsEvent']();let _0x3b20ba=_0x523492[_0x76c6d1(0x33e)];this[_0x76c6d1(0x3e0)]=_0x5b64b3[_0x76c6d1(0x224)]['subscribeEvent']((_0x24fead,_0x295758)=>{const _0x3366b9=_0x76c6d1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x3d9a5b,offsetY:_0x3892e6}=_0x24fead,_0x3686ce=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3686ce)return;_0x5b64b3['disableObjectsEvent'](),_0x5b64b3['setCursor'](_0x141a72[_0x3366b9(0x3b1)]);let _0x29c7f3={'left':0x0,'top':0x0,'width':this[_0x3366b9(0x3e5)],'height':this[_0x3366b9(0x297)]},_0x2320f9=this[_0x3366b9(0x315)](_0x20ca99,_0x491c14),_0x5d42b7=this[_0x3366b9(0x16a)](_0x20ca99,_0x491c14),_0x295445=_0x3d9a5b/_0x5d42b7+_0x2320f9['x']-this[_0x3366b9(0x294)],_0x4649a9=_0x3892e6/_0x5d42b7+_0x2320f9['y']-this[_0x3366b9(0x263)];if(_0x5ec8bc!==0x0){let _0x524da3=this['_baseWidth']/0x2,_0x4e0fc8=this[_0x3366b9(0x297)]/0x2,_0x5a8537=_0x5ec8bc*Math['PI']/0xb4,_0x5c9d08=Math[_0x3366b9(0x1ac)](_0x5a8537),_0x486302=Math[_0x3366b9(0x267)](_0x5a8537),_0x48e834=_0x295445-_0x524da3,_0x17e6bd=_0x4649a9-_0x4e0fc8;_0x295445=_0x524da3+(_0x48e834*_0x5c9d08+_0x17e6bd*_0x486302),_0x4649a9=_0x4e0fc8+(-_0x48e834*_0x486302+_0x17e6bd*_0x5c9d08);}_0x5c0c48&&(_0x295445=this[_0x3366b9(0x3e5)]-_0x295445),_0x567a6c&&(_0x4649a9=this[_0x3366b9(0x297)]-_0x4649a9);let _0x5b7c16=this[_0x3366b9(0x20d)][_0x3366b9(0x302)](_0x29c7f3,{'x':_0x295445,'y':_0x4649a9},_0x3686ce,_0x5c0c48,_0x567a6c);if(Object[_0x3366b9(0x1a3)](_0x5b7c16)[_0x3366b9(0x1c3)]!==0x0){for(let [_0x3a5738,_0x51c9b6]of Object['entries'](_0x5b7c16))this['_activeShapeModel'][_0x3366b9(0x19c)](_0x3a5738,_0x51c9b6);this[_0x3366b9(0x20d)][_0x3366b9(0x2b8)]({'width':this['_baseWidth'],'height':this[_0x3366b9(0x297)]}),this[_0x3366b9(0x32e)](_0x20ca99,_0x491c14,_0x11049a,_0x5b7c16),this['_activeAdjustPointList']=this[_0x3366b9(0x20d)]['getDrawingPoints'](),this[_0x3366b9(0x25b)](),_0x295758[_0x3366b9(0x394)]();}}),this[_0x76c6d1(0x230)]=_0x5b64b3['onPointerUp$'][_0x76c6d1(0x212)]((_0x173787,_0x25fe12)=>{const _0x4975fe=_0x76c6d1;if(this[_0x4975fe(0x3e0)][_0x4975fe(0x187)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x5b64b3['resetCursor'](),this[_0x4975fe(0x20d)]){let _0xbbb77=this[_0x4975fe(0x20d)][_0x4975fe(0x26a)](),_0x367a3f={};for(let _0x58e869 of _0xbbb77){let _0x5c6d02=this[_0x4975fe(0x20d)][_0x4975fe(0x31b)](_0x58e869);_0x5c6d02!==void 0x0&&(_0x367a3f[_0x58e869]=_0x5c6d02);}this['_imageShapeClipController']['clipByShape'](_0x20ca99,_0x491c14,_0x11049a,_0x3b20ba,_0x367a3f);}this[_0x4975fe(0x203)]=void 0x0,this[_0x4975fe(0x20d)]=void 0x0,this[_0x4975fe(0x1c0)]=!0x1,_0x25fe12[_0x4975fe(0x394)](),_0x5b64b3[_0x4975fe(0x173)]();}),_0x5370e7[_0x76c6d1(0x394)]();})));}[_0x714ef0(0x32e)](_0x30da67,_0x6ce5a9,_0x46e6e1,_0x4fc967){const _0x381f38=_0x714ef0;let _0x484d3c=this[_0x381f38(0x2cf)][_0x381f38(0x2af)](_0x30da67);if(!_0x484d3c)return;let {scene:_0x13ad65}=_0x484d3c,_0xc59294=_0x562c30({'unitId':_0x30da67,'subUnitId':_0x6ce5a9,'drawingId':_0x46e6e1}),_0x5375e0=_0x13ad65[_0x381f38(0x3b6)](_0xc59294);if(_0x5375e0 instanceof _0x230c76){let _0x2f4576=_0x5375e0[_0x381f38(0x24a)]??{};_0x5375e0[_0x381f38(0x163)]({..._0x2f4576,..._0x4fc967}),_0x5375e0[_0x381f38(0x226)](!0x0);}}[_0x714ef0(0x1db)](){const _0x450c03=_0x714ef0;let _0x3d72ba=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x58aa7b['UNIVER_SHEET']);this['disposeWithMe'](_0x3d72ba[_0x450c03(0x371)](_0x1e4916(_0x3198c1=>_0x3198c1?_0x3198c1[_0x450c03(0x434)][_0x450c03(0x371)](_0x1e4916(_0x42818d=>{const _0x2e541=_0x450c03;if(!_0x42818d)return _0x535914;let _0x4aa288=_0x3198c1['getUnitId'](),_0x52c802=this[_0x2e541(0x2cf)]['getRenderUnitById'](_0x4aa288),_0xba93ca=_0x52c802==null?void 0x0:_0x52c802[_0x2e541(0x1d4)];return _0xba93ca?_0x12c65f(_0xba93ca):_0x535914;})):_0x535914))[_0x450c03(0x3e4)](_0xec765d=>{const _0x2caa56=_0x450c03;let _0x3d55c9=_0xec765d[_0x2caa56(0x218)]();this['disposeWithMe'](_0xec765d[_0x2caa56(0x224)][_0x2caa56(0x212)](()=>{const _0x376b9d=_0x2caa56;this[_0x376b9d(0x3bf)]&&this[_0x376b9d(0x3c9)]();})),this['disposeWithMe'](_0x3d55c9['changeStart$'][_0x2caa56(0x3e4)](_0x385779=>{const _0x3c0916=_0x2caa56;let {objects:_0x5e6e36}=_0x385779;if(this[_0x3c0916(0x25b)](),_0x5e6e36!==null&&_0x5e6e36[_0x3c0916(0x296)]===0x1){let _0x329bcf=_0x5e6e36[_0x3c0916(0x1f8)]()[_0x3c0916(0x3ee)]()[_0x3c0916(0x313)];_0x329bcf instanceof _0x230c76&&_0x329bcf[_0x3c0916(0x33e)]&&(this[_0x3c0916(0x3bf)]=!0x0);}})),this['disposeWithMe'](_0x3d55c9[_0x2caa56(0x3fa)]['subscribe'](()=>{const _0x489021=_0x2caa56;this[_0x489021(0x3bf)]&&this[_0x489021(0x3c9)]();})),this[_0x2caa56(0x238)](_0xec765d[_0x2caa56(0x367)][_0x2caa56(0x212)](()=>{const _0x59f355=_0x2caa56;this[_0x59f355(0x3bf)]&&(this[_0x59f355(0x3bf)]=!0x1,this[_0x59f355(0x25b)]());})),this[_0x2caa56(0x238)](_0x3d55c9['changeEnd$'][_0x2caa56(0x3e4)](()=>{const _0x599b10=_0x2caa56;if(this[_0x599b10(0x180)]&&this[_0x599b10(0x3af)]&&this[_0x599b10(0x2ac)]){let _0x2598cf=this[_0x599b10(0x168)](this[_0x599b10(0x180)],this['_subUnitId'],this[_0x599b10(0x2ac)]);if(_0x2598cf){var _0x35e16a,_0x2a9721;let _0x24884b=this[_0x599b10(0x1c7)](this['_unitId'],this['_subUnitId'],this[_0x599b10(0x2ac)]),_0x1ba115=(_0x24884b==null||(_0x35e16a=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x35e16a[_0x599b10(0x253)])||0x0,_0x3496d2=(_0x24884b==null||(_0x2a9721=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x2a9721['height'])||0x0,_0x3a54bd=this[_0x599b10(0x41f)](_0x2598cf[_0x599b10(0x33e)],_0x1ba115,_0x3496d2,_0x2598cf[_0x599b10(0x33c)]);_0x3a54bd&&(this['_activeAdjustPointList']=_0x3a54bd[_0x599b10(0x41e)](),this[_0x599b10(0x3c9)](),this[_0x599b10(0x25b)](!0x0));}}}));}));}[_0x714ef0(0x1e7)](){const _0x5edc6c=_0x714ef0;this['disposeWithMe'](this[_0x5edc6c(0x20f)][_0x5edc6c(0x3f5)][_0x5edc6c(0x3e4)](_0x186ab1=>{const _0x44c092=_0x5edc6c;if(_0x186ab1['length']===0x1){let _0x4687e8=_0x186ab1[0x0];if(_0x4687e8['drawingType']===_0x544f7a['DRAWING_IMAGE']){let {unitId:_0x491966,subUnitId:_0x1931eb,drawingId:_0xe0c88d}=_0x4687e8,_0x1f1229=this[_0x44c092(0x168)](_0x491966,_0x1931eb,_0xe0c88d);if(_0x1f1229){var _0x2dd6df,_0x485e24;this[_0x44c092(0x2ac)]=_0xe0c88d,this[_0x44c092(0x180)]=_0x491966,this[_0x44c092(0x3af)]=_0x1931eb;let _0x4cf1fe=this[_0x44c092(0x1c7)](_0x491966,_0x1931eb,_0xe0c88d),_0x5dccb7=(_0x4cf1fe==null||(_0x2dd6df=_0x4cf1fe['transform'])==null?void 0x0:_0x2dd6df[_0x44c092(0x253)])||0x0,_0x11a69e=(_0x4cf1fe==null||(_0x485e24=_0x4cf1fe[_0x44c092(0x29f)])==null?void 0x0:_0x485e24[_0x44c092(0x2d4)])||0x0,_0x1dd761=this[_0x44c092(0x41f)](_0x1f1229[_0x44c092(0x33e)],_0x5dccb7,_0x11a69e,_0x1f1229['adjustValues']);_0x1dd761&&(this[_0x44c092(0x2a7)]=_0x1dd761[_0x44c092(0x41e)]()),this[_0x44c092(0x3c9)](),this[_0x44c092(0x25b)](!0x0);}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();})),this[_0x5edc6c(0x238)](this[_0x5edc6c(0x20f)]['update$'][_0x5edc6c(0x3e4)](_0x1d8f2e=>{const _0x3503f0=_0x5edc6c;if(_0x1d8f2e['length']===0x1){let _0x4aae6c=_0x1d8f2e[0x0],_0x48fba0=this[_0x3503f0(0x20f)]['getDrawingByParam'](_0x4aae6c);(_0x48fba0==null?void 0x0:_0x48fba0['drawingType'])===_0x544f7a[_0x3503f0(0x430)]&&this['_activeImageId']===_0x4aae6c['drawingId']&&(this[_0x3503f0(0x3c9)](),this[_0x3503f0(0x25b)](!0x0));}})),this[_0x5edc6c(0x238)](this['_drawingManagerService']['remove$'][_0x5edc6c(0x3e4)](_0x38438f=>{const _0x1d4a69=_0x5edc6c;for(let _0x194576 of _0x38438f)this[_0x1d4a69(0x2ac)]===_0x194576[_0x1d4a69(0x290)]&&this[_0x1d4a69(0x2a8)]();}));}[_0x714ef0(0x2a8)](){const _0xf0d1d9=_0x714ef0;this[_0xf0d1d9(0x2ac)]=null,this[_0xf0d1d9(0x180)]=null,this['_subUnitId']=null,this[_0xf0d1d9(0x2a7)]=void 0x0,this[_0xf0d1d9(0x3c9)]();}};Xi=X([Y(0x1,_0x19d008),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(Q))],Xi);function Zi(_0x31402e){const _0x5374e5=_0x714ef0;return _0x31402e[_0x5374e5(0x1e1)]()||void 0x0;}function Qi(_0xdb59a7,_0x516cd2,_0x56ee7e){const _0x41d6dc=_0x714ef0;var _0x28e265;return((_0x28e265=_0xdb59a7[_0x41d6dc(0x16e)])==null?void 0x0:_0x28e265[_0x41d6dc(0x1e1)]())||_0x56ee7e['t'](_0x41d6dc(0x361)+_0x20bb51(_0xdb59a7['drawingType']))+'\x20'+(_0x516cd2+0x1);}function $i({PanelComponent:_0x45968a=_0xd50128}){const _0x3267b3=_0x714ef0;var _0x17de3d;let _0x671263=_0x3bcf4c(_0x30b59c),_0x12a4b4={'title':_0x671263['t'](_0x3267b3(0x1fb)),'empty':_0x671263['t'](_0x3267b3(0x338)),'showAll':_0x671263['t'](_0x3267b3(0x3d8)),'hideAll':_0x671263['t'](_0x3267b3(0x42f)),'lockAll':_0x671263['t'](_0x3267b3(0x1a6)),'unlockAll':_0x671263['t'](_0x3267b3(0x35b)),'moveForward':_0x671263['t'](_0x3267b3(0x189)),'moveBackward':_0x671263['t'](_0x3267b3(0x292)),'close':_0x671263['t']('drawing-ui.objectListPanel.close'),'show':_0x671263['t']('drawing-ui.objectListPanel.show'),'hide':_0x671263['t'](_0x3267b3(0x288)),'lock':_0x671263['t'](_0x3267b3(0x209)),'unlock':_0x671263['t'](_0x3267b3(0x386)),'lockHint':_0x671263['t'](_0x3267b3(0x283)),'unlockHint':_0x671263['t'](_0x3267b3(0x235)),'name':_0x671263['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x671263['t'](_0x3267b3(0x21c)),'description':_0x671263['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x671263['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x671263['t'](_0x3267b3(0x1e0)),'noSelection':_0x671263['t'](_0x3267b3(0x402)),'locate':_0x671263['t'](_0x3267b3(0x2ab)),'expand':_0x671263['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x671263['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x671263['t'](_0x3267b3(0x2a9)),'search':_0x671263['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x671263['t'](_0x3267b3(0x391)),'filterHidden':_0x671263['t'](_0x3267b3(0x352)),'filterLocked':_0x671263['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x671263['t'](_0x3267b3(0x26d)),'sectionFloating':_0x671263['t'](_0x3267b3(0x344))},_0x50d887=_0x3bcf4c(_0x2b8a3e),_0x41348d=_0x3bcf4c(_0x1d15d2),_0x3a5e19=_0x3bcf4c(_0x4ba6b3),_0x30c518=_0x3bcf4c(_0x19d008),_0x1dcb84=_0x3bcf4c(_0x1e1faa),[,_0x15519f]=_0x3da1b7(_0x5f20da=>_0x5f20da+0x1,0x0),_0xb3dbbf=_0x41348d[_0x3267b3(0x28a)](_0x58aa7b['UNIVER_SHEET']),_0x1ec76f=(_0xb3dbbf==null?void 0x0:_0xb3dbbf[_0x3267b3(0x1b0)]())??'',_0x1af784=(_0xb3dbbf==null||(_0x17de3d=_0xb3dbbf['getActiveSheet']())==null?void 0x0:_0x17de3d[_0x3267b3(0x15f)]())??'',_0x55b72b=_0x54184f(()=>_0x30c518[_0x3267b3(0x3f5)],_0x30c518['getFocusDrawings'](),!0x1,[_0x30c518]);_0x5c63a2(()=>{let _0x37517a=_0x50d887['onCommandExecuted'](()=>_0x15519f());return()=>_0x37517a['dispose']();},[_0x50d887]);let _0x4eb336=_0x1ec76f&&_0x1af784?_0x3a5e19[_0x3267b3(0x1a5)](_0x1ec76f,_0x1af784):{},_0x3f6fa5=(_0x1ec76f&&_0x1af784?_0x3a5e19['getDrawingOrder'](_0x1ec76f,_0x1af784):[])[_0x3267b3(0x316)](_0x5a9e5f=>_0x4eb336[_0x5a9e5f])['filter'](_0x2d640a=>!!_0x2d640a)[_0x3267b3(0x332)](),_0xd4d192=_0x3f6fa5[_0x3267b3(0x378)]((_0x3dc5b7,_0x63c10a)=>(_0x3dc5b7[_0x286e3b(_0x63c10a[_0x3267b3(0x198)])]+=0x1,_0x3dc5b7),{'canvas':0x0,'floating':0x0}),_0x26786b={'canvas':0x0,'floating':0x0},_0xa534ae=_0x3f6fa5[_0x3267b3(0x316)]((_0x585081,_0x11ae47)=>{const _0x4b3a51=_0x3267b3;let _0x234606=_0x286e3b(_0x585081[_0x4b3a51(0x198)]),_0x513133=_0x234606===_0x3904f4,_0x334752=_0x26786b[_0x234606]++;return{'id':_0x585081[_0x4b3a51(0x290)],'name':Qi(_0x585081,_0x11ae47,_0x671263),'description':_0x585081[_0x4b3a51(0x18c)],'visible':_0x585081[_0x4b3a51(0x182)]!==!0x0,'selectable':_0x585081['selectable']!==!0x1,'sectionId':_0x234606,'sectionTitle':_0x513133?_0x12a4b4[_0x4b3a51(0x357)]:_0x12a4b4[_0x4b3a51(0x2c9)],'capabilities':_0x513133?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x513133&&_0x334752>0x0,'canMoveBackward':!_0x513133&&_0x334752<_0xd4d192[_0x4b3a51(0x27a)]-0x1,'canReorder':!_0x513133};}),_0x51e679=_0x23fcdc(()=>(_0x55b72b??[])['filter'](_0x23a38d=>_0x23a38d[_0x3267b3(0x277)]===_0x1ec76f&&_0x23a38d[_0x3267b3(0x3d0)]===_0x1af784)[_0x3267b3(0x316)](_0x768f48=>_0x768f48['drawingId']),[_0x55b72b,_0x1af784,_0x1ec76f]),_0x1a68b5=_0x51e679[_0x51e679[_0x3267b3(0x1c3)]-0x1]??null,_0x671431=_0x4aa164=>_0x3a5e19[_0x3267b3(0x2da)]({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x4aa164})??null,_0x22fd2c=async _0x358fe3=>{const _0x410cf5=_0x3267b3;_0x1ec76f&&_0x358fe3[_0x410cf5(0x1c3)]&&await _0x50d887[_0x410cf5(0x40b)](_0x297360['id'],{'unitId':_0x1ec76f,'drawings':_0x358fe3});},_0x2278f5=async(_0x2e3886,_0x39d003)=>{_0x671431(_0x2e3886)&&await _0x22fd2c([{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x2e3886,..._0x39d003}]);},_0x1284e9=(_0x51ae9f,_0x137244)=>{const _0x4ba4db=_0x3267b3;if(!_0x1ec76f||!_0x1af784)return;let _0x307943=_0x137244?_0x51e679[_0x4ba4db(0x3ec)](_0x51ae9f)?_0x51e679[_0x4ba4db(0x3c0)](_0x121d57=>_0x121d57!==_0x51ae9f):[..._0x51e679,_0x51ae9f]:[_0x51ae9f];_0x50d887['syncExecuteCommand'](_0x2b2ec1['id'],_0x307943[_0x4ba4db(0x316)](_0x3099d7=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x3099d7})));let _0xf70dfe=_0x307943[_0x307943[_0x4ba4db(0x1c3)]-0x1];_0xf70dfe?_0x2179ed(_0x1dcb84,{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0xf70dfe}):_0x156f61(_0x1dcb84,_0x1ec76f);},_0x2bdf95=async(_0x28f07f,_0xa51f5c)=>{const _0x303c06=_0x3267b3;await _0x22fd2c(_0x28f07f[_0x303c06(0x316)](_0x1997f5=>_0x671431(_0x1997f5))[_0x303c06(0x3c0)](_0x10a5a4=>!!_0x10a5a4)['filter'](_0x172785=>_0x172785[_0x303c06(0x182)]!==!0x0!==_0xa51f5c)[_0x303c06(0x316)](_0x5ee25=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x5ee25[_0x303c06(0x290)],'hidden':!_0xa51f5c})));},_0x2641e5=async(_0x55b377,_0x2dd908)=>{const _0xbbeb69=_0x3267b3;await _0x22fd2c(_0x55b377['map'](_0x3170c2=>_0x671431(_0x3170c2))[_0xbbeb69(0x3c0)](_0x1ad0ce=>!!_0x1ad0ce)[_0xbbeb69(0x3c0)](_0x327d85=>_0x327d85['selectable']!==!0x1!==_0x2dd908)['map'](_0x281e60=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x281e60[_0xbbeb69(0x290)],'selectable':_0x2dd908})));},_0x5aba94=_0x507152=>{const _0x24a72e=_0x3267b3;let _0x395867=_0x671431(_0x507152);if(_0x395867)return _0x2641e5([_0x507152],_0x395867[_0x24a72e(0x2d6)]===!0x1);},_0x539739=async(_0x44e4f0,_0x13d387)=>{const _0x2d1497=_0x3267b3;var _0x33107;let _0x3b5539=Zi(_0x13d387);(((_0x33107=_0x671431(_0x44e4f0))==null?void 0x0:_0x33107[_0x2d1497(0x16e)])??void 0x0)!==_0x3b5539&&await _0x2278f5(_0x44e4f0,{'name':_0x3b5539});},_0x2c4232=async(_0x36d617,_0xc7fedd)=>{const _0x540dd4=_0x3267b3;var _0x4e4ae9;let _0x2c97aa=Zi(_0xc7fedd);(((_0x4e4ae9=_0x671431(_0x36d617))==null?void 0x0:_0x4e4ae9[_0x540dd4(0x18c)])??void 0x0)!==_0x2c97aa&&await _0x2278f5(_0x36d617,{'description':_0x2c97aa});},_0x2de48b=async(_0x5c0fd5,_0x4fa71a)=>{const _0x3e8fc6=_0x3267b3;_0x1ec76f&&_0x1af784&&await _0x50d887[_0x3e8fc6(0x40b)](_0x8e2df9['id'],{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingIds':[_0x5c0fd5],'arrangeType':_0x4fa71a});};return!_0x1ec76f||!_0x1af784?_0x230828(_0x3267b3(0x412),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x12a4b4[_0x3267b3(0x303)]}):_0x230828(_0x45968a,{'labels':_0x12a4b4,'items':_0xa534ae,'selectedIds':_0x51e679,'focusedId':_0x1a68b5,'showHeader':!0x1,'onSelect':_0x1284e9,'onSetVisible':_0x2bdf95,'onSetSelectable':_0x2641e5,'onCommitName':_0x539739,'onCommitDescription':_0x2c4232,'onMoveForward':async _0x376e8f=>_0x2de48b(_0x376e8f,_0x426c14[_0x3267b3(0x24f)]),'onMoveBackward':async _0x3b2f45=>_0x2de48b(_0x3b2f45,_0x426c14[_0x3267b3(0x3dd)]),'onToggleSelectable':_0x5aba94});}function ea(){return _0x230828($i,{'PanelComponent':_0x5174cb});}let ta=class extends _0xe29064{constructor(_0x27c934,_0x5ec6f7){const _0x3856f0=_0x714ef0;super(),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Rr,ea)),this[_0x3856f0(0x238)](_0x5ec6f7[_0x3856f0(0x268)]({'BottomIcon':_0x5d75f2,'FlipHorizontalIcon':_0x4b0f8a,'FlipVerticalIcon':_0x5e2243,'MoveDownIcon':_0x178ad9,'MoveUpIcon':_0x1ab950,'ObjectLayersIcon':_0xe11253,'ShapeFormatSettingIcon':_0x1496d5,'TopmostIcon':_0x215261})),this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](Jr,ti)),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Yr,Qr)),_0x27c934[_0x3856f0(0x200)](_0x4fdf51)||this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](_0x4fdf51,$r));}};ta=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],ta);let $=class extends _0xe29064{constructor(_0x1a2c0e){const _0x1c5c30=_0x714ef0;super(),this[_0x1c5c30(0x326)]=_0x1a2c0e,q(this,_0x1c5c30(0x1d7),new _0x50fa27(null)),q(this,_0x1c5c30(0x31e),this[_0x1c5c30(0x1d7)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x42a),new _0x50fa27(!0x1)),q(this,_0x1c5c30(0x17f),this[_0x1c5c30(0x42a)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x37d),void 0x0),this[_0x1c5c30(0x238)](this[_0x1c5c30(0x326)]['permissionPointUpdate$'][_0x1c5c30(0x3e4)](()=>{const _0x372e7e=_0x1c5c30;let _0x92f6d9=this[_0x372e7e(0x42e)]();_0x92f6d9!=null&&_0x92f6d9[_0x372e7e(0x206)]&&!this[_0x372e7e(0x3fd)](_0x92f6d9)&&this[_0x372e7e(0x380)](null);}));}[_0x714ef0(0x232)](){const _0x1604dc=_0x714ef0;this[_0x1604dc(0x2e3)](),this[_0x1604dc(0x1d7)]['next'](null),this[_0x1604dc(0x1d7)][_0x1604dc(0x1a4)](),this['_onSavingEditorData$'][_0x1604dc(0x3ee)](!0x1),this[_0x1604dc(0x42a)]['complete'](),super[_0x1604dc(0x232)]();}[_0x714ef0(0x380)](_0x2e0c40){const _0x193cca=_0x714ef0;(_0x2e0c40==null||!_0x2e0c40['visible']||this[_0x193cca(0x3fd)](_0x2e0c40))&&(this[_0x193cca(0x2e3)](),this[_0x193cca(0x1d7)][_0x193cca(0x3ee)](_0x2e0c40),(_0x2e0c40==null||_0x2e0c40[_0x193cca(0x206)]&&this[_0x193cca(0x42a)][_0x193cca(0x217)]())&&this['_onSavingEditorData$'][_0x193cca(0x3ee)](!0x1));}[_0x714ef0(0x2ce)](_0x512314){const _0x314f3d=_0x714ef0;this[_0x314f3d(0x42a)][_0x314f3d(0x3ee)](_0x512314);}[_0x714ef0(0x42e)](){const _0x5c44a4=_0x714ef0;return this[_0x5c44a4(0x1d7)][_0x5c44a4(0x217)]();}[_0x714ef0(0x3fd)](_0x51a91e){const _0x325379=_0x714ef0;let _0x2a8793=this[_0x325379(0x326)][_0x325379(0x3d2)](new _0xe0fab9(_0x51a91e[_0x325379(0x277)])['id']),_0xee7424=this['_permissionService']['getPermissionPoint'](new _0x123e53(_0x51a91e[_0x325379(0x277)],_0x51a91e[_0x325379(0x3d0)])['id']);return((_0x2a8793==null?void 0x0:_0x2a8793[_0x325379(0x313)])??!0x0)&&((_0xee7424==null?void 0x0:_0xee7424['value'])??!0x0);}['completeEditing'](_0x5865a6){const _0x141a8e=_0x714ef0;let _0x51eea8=this[_0x141a8e(0x42e)]();_0x51eea8&&this[_0x141a8e(0x37d)]===void 0x0&&(this[_0x141a8e(0x2ce)](!0x0),this[_0x141a8e(0x37d)]=requestAnimationFrame(()=>{const _0x493926=_0x141a8e;this['_completionFrame']=void 0x0,this[_0x493926(0x42e)]()===_0x51eea8&&this[_0x493926(0x380)](null);}));}['_clearCompletionFrame'](){const _0x29ec77=_0x714ef0;this[_0x29ec77(0x37d)]!==void 0x0&&(cancelAnimationFrame(this[_0x29ec77(0x37d)]),this[_0x29ec77(0x37d)]=void 0x0);}['cancelEditing'](){const _0x42fa64=_0x714ef0;this[_0x42fa64(0x42e)]()&&this[_0x42fa64(0x380)](null);}};$=X([Y(0x0,_0x9a590e)],$);let na=class extends _0xe29064{constructor(_0x4739b6,_0x1998c5,_0x4e8d29,_0x2db5b5,_0x405d6f,_0x562cdb){const _0x12fc48=_0x714ef0;super(),this[_0x12fc48(0x22a)]=_0x4739b6,this[_0x12fc48(0x210)]=_0x1998c5,this[_0x12fc48(0x26b)]=_0x4e8d29,this[_0x12fc48(0x20f)]=_0x2db5b5,this[_0x12fc48(0x1a2)]=_0x405d6f,this[_0x12fc48(0x251)]=_0x562cdb,q(this,_0x12fc48(0x17d),null),this['_initEvents'](),this['_initSelection'](),this[_0x12fc48(0x1f9)]();}[_0x714ef0(0x351)](){const _0x27f5b5=_0x714ef0;let {scene:_0x489fe1}=this[_0x27f5b5(0x22a)];this[_0x27f5b5(0x238)](_0x489fe1['onDblclick$'][_0x27f5b5(0x212)](_0x122bfd=>{const _0x3b33b5=_0x27f5b5;let {offsetX:_0x3da0cb,offsetY:_0x2b680a}=_0x122bfd,_0x12047d=_0x489fe1[_0x3b33b5(0x358)](_0x5be732['FromArray']([_0x3da0cb,_0x2b680a]));if(_0x12047d instanceof J){let _0x488fa0=this['_sheetsShapeService']['getShapeModel'](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]);if(_0x4cb876(this[_0x3b33b5(0x251)][_0x3b33b5(0x2fc)](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]))||_0x488fa0!=null&&_0x488fa0[_0x3b33b5(0x3c4)]()[_0x3b33b5(0x317)])return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x12047d[_0x3b33b5(0x277)],'subUnitId':_0x12047d['subUnitId'],'shapeId':_0x12047d[_0x3b33b5(0x21d)],'shapeKey':_0x12047d[_0x3b33b5(0x266)]});}}));}[_0x714ef0(0x336)](){const _0x1fe801=_0x714ef0;this[_0x1fe801(0x238)](this[_0x1fe801(0x20f)]['focus$'][_0x1fe801(0x3e4)](_0x8fa25b=>{const _0x9179ee=_0x1fe801;if(_0x8fa25b[_0x9179ee(0x1c3)]===0x1){let _0x4c1368=_0x8fa25b[0x0],_0x486204=this[_0x9179ee(0x20f)][_0x9179ee(0x2da)](_0x4c1368);if((_0x486204==null?void 0x0:_0x486204[_0x9179ee(0x198)])===_0x544f7a[_0x9179ee(0x2c1)]){var _0x39406d;let _0x1a65cc=this[_0x9179ee(0x26b)][_0x9179ee(0x42e)]();if((_0x1a65cc==null?void 0x0:_0x1a65cc[_0x9179ee(0x21d)])===_0x4c1368['drawingId']&&_0x1a65cc[_0x9179ee(0x206)])return;let _0x23e6f9=_0x4cb876(this[_0x9179ee(0x251)][_0x9179ee(0x2fc)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368[_0x9179ee(0x3d0)],_0x4c1368[_0x9179ee(0x290)])),_0x261fb6=!!((_0x39406d=this[_0x9179ee(0x251)][_0x9179ee(0x199)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368['subUnitId'],_0x4c1368['drawingId']))!=null&&_0x39406d[_0x9179ee(0x3c4)]()['formulaBinding']);(_0x23e6f9||_0x261fb6)&&this[_0x9179ee(0x26b)][_0x9179ee(0x380)](null);}else this['_shapeTextEditingService']['completeEditing']();}else this[_0x9179ee(0x26b)]['completeEditing']();})),this[_0x1fe801(0x238)](this['_drawingManagerService']['remove$'][_0x1fe801(0x3e4)](_0x30cb86=>{const _0x512c54=_0x1fe801;let _0x14d69a=this[_0x512c54(0x26b)][_0x512c54(0x42e)]();_0x14d69a&&_0x30cb86['some'](_0x13c0c0=>_0x13c0c0[_0x512c54(0x290)]===_0x14d69a[_0x512c54(0x21d)])&&this['_shapeTextEditingService'][_0x512c54(0x380)](null);}));}['_initEditingParams'](){const _0x394a31=_0x714ef0;this[_0x394a31(0x238)](this[_0x394a31(0x26b)][_0x394a31(0x31e)]['subscribe'](_0x389117=>{const _0x5016cd=_0x394a31;let {scene:_0x2ad9e8}=this[_0x5016cd(0x22a)];if(this[_0x5016cd(0x17d)]){let _0x184847=_0x2ad9e8['getObjectIncludeInGroup'](this[_0x5016cd(0x17d)]);_0x184847&&_0x184847['setEditing'](!0x1);}if(_0x389117){let _0x1c3bc9=!!_0x389117['visible'],_0x33730e=_0x2ad9e8[_0x5016cd(0x252)](_0x389117[_0x5016cd(0x172)]);_0x33730e&&(_0x33730e[_0x5016cd(0x380)](_0x1c3bc9),this[_0x5016cd(0x17d)]=_0x389117[_0x5016cd(0x172)]),this['_contextService']['setContextValue'](_0xd91ec1,_0x1c3bc9);}else this['_lastEditingShapeKey']=null,this[_0x5016cd(0x1a2)][_0x5016cd(0x237)](_0xd91ec1,!0x1);}));}};na=X([Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x5c502f($)),Y(0x3,_0x19d008),Y(0x4,_0x3ae1e3),Y(0x5,_0x5c502f(_0x5b8f71))],na);var ra=class extends na{[_0x714ef0(0x351)](){const _0x538858=_0x714ef0;let {scene:_0x208dc6}=this[_0x538858(0x22a)],_0xbfaef8=this[_0x538858(0x210)][_0x538858(0x2dd)](_0x9eb493);this['disposeWithMe'](_0x208dc6[_0x538858(0x40e)][_0x538858(0x212)](_0x37bde9=>{const _0x5cf06d=_0x538858;let {offsetX:_0x14f1c8,offsetY:_0x388c24}=_0x37bde9,_0x788583=_0x208dc6[_0x5cf06d(0x358)](_0x5be732[_0x5cf06d(0x271)]([_0x14f1c8,_0x388c24]));if(!(_0x788583 instanceof J))return;let _0x12d86c=this[_0x5cf06d(0x251)][_0x5cf06d(0x199)](_0x788583['unitId'],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]);_0x4cb876(this[_0x5cf06d(0x251)]['getShapeType'](_0x788583[_0x5cf06d(0x277)],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]))||_0x12d86c!=null&&_0x12d86c['getShapeData']()[_0x5cf06d(0x317)]||_0xbfaef8[_0x5cf06d(0x249)]('text',{'hostType':_0x58aa7b[_0x5cf06d(0x222)],'unitId':_0x788583[_0x5cf06d(0x277)],'subUnitId':_0x788583[_0x5cf06d(0x3d0)],'shapeId':_0x788583[_0x5cf06d(0x21d)]});}));}};const ia={...Ui};let aa=class extends _0xe29064{constructor(_0x4bace3,_0x154db3,_0x3d920c,_0x46f1b6,_0x1ee4a1,_0x2b5fff,_0x5f132a,_0x195a35){const _0x3e8cc2=_0x714ef0;super(),this[_0x3e8cc2(0x369)]=_0x4bace3,this[_0x3e8cc2(0x251)]=_0x154db3,this[_0x3e8cc2(0x1a7)]=_0x3d920c,this[_0x3e8cc2(0x20f)]=_0x46f1b6,this[_0x3e8cc2(0x247)]=_0x1ee4a1,this[_0x3e8cc2(0x1a2)]=_0x2b5fff,this['_renderManagerService']=_0x5f132a,this[_0x3e8cc2(0x26b)]=_0x195a35,q(this,_0x3e8cc2(0x1af),null),this[_0x3e8cc2(0x369)]['mergeMenu'](ia),this[_0x3e8cc2(0x30c)](),this[_0x3e8cc2(0x238)](this[_0x3e8cc2(0x26b)][_0x3e8cc2(0x31e)][_0x3e8cc2(0x3e4)](_0x47bbdd=>{_0x47bbdd&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x5a809c=_0x714ef0;this['_shapePopupMenuDisposable']||=this[_0x5a809c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x5a809c(0x222)],_0x42533e=>this[_0x5a809c(0x305)](_0x42533e)));}[_0x714ef0(0x30c)](){const _0x3f0876=_0x714ef0;this['_sheetCanvasPopManagerService'][_0x3f0876(0x356)](_0x544f7a[_0x3f0876(0x2c1)],(_0x749511,_0x571dbd,_0x28b2d6,_0x31ad65)=>{const _0x126512=_0x3f0876;let _0x42dc98=this['_sheetsShapeService'][_0x126512(0x1ad)](_0x749511,_0x571dbd,_0x28b2d6),_0x4ac96b=this['_sheetsShapeService'][_0x126512(0x3a4)](_0x749511,_0x571dbd,_0x28b2d6),_0x4aa28d=_0x42dc98!==void 0x0&&!_0x4cb876(_0x42dc98)&&!(_0x4ac96b!=null&&_0x4ac96b['formulaBinding']);return[{'label':'sheets-shape-ui.editShape','index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x2bf)},'disable':!0x1},..._0x4aa28d?[{'label':_0x126512(0x1ab),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x281)},'disable':!0x1}]:[],{'label':_0x126512(0x298),'index':0x2,'commandId':_0x3e89af['id'],'commandParams':{'unitId':_0x749511,'drawings':[{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'drawingType':_0x31ad65}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipH':!0x0},'disable':!0x1},{'label':_0x126512(0x31c),'index':0x4,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipV':!0x0},'disable':!0x1}];},_0x3f0876(0x40c));}['_popupMenuListener'](_0x5b3539){const _0x106e5b=_0x714ef0;let _0x59cb04=new _0x5941cd(),_0x4d07ff=null,_0x1b0f5a=()=>{const _0x336e92=_0x5396;if(!_0x4d07ff)return;let _0x59739a=this[_0x336e92(0x20f)][_0x336e92(0x3dc)](),_0x1eb578=_0x59739a[_0x336e92(0x1c3)]===0x0||_0x59739a['length']===0x1&&_0x59739a['some'](_0x5ed85a=>_0x5ed85a['unitId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x277)])&&_0x5ed85a[_0x336e92(0x3d0)]===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x3d0)])&&_0x5ed85a['drawingId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x290)]));_0x4d07ff=null,_0x1eb578&&(this['_contextService'][_0x336e92(0x237)](_0x435760,!0x1),this[_0x336e92(0x20f)]['focusDrawing'](null));};return _0x59cb04[_0x106e5b(0x25e)](_0x5b3539[_0x106e5b(0x1c5)][_0x106e5b(0x3e4)](()=>{const _0x57bda2=_0x106e5b;let _0x38eb59=_0x5b3539['getSelectedObjectMap']();if(_0x38eb59[_0x57bda2(0x296)]>0x1){_0x1b0f5a();return;}let _0x1db376=_0x38eb59[_0x57bda2(0x1f8)]()[_0x57bda2(0x3ee)]()['value'];if(!_0x1db376){_0x1b0f5a();return;}let _0x24ec04=this[_0x57bda2(0x20f)][_0x57bda2(0x208)](_0x1db376[_0x57bda2(0x266)]);if(!_0x24ec04||_0x24ec04[_0x57bda2(0x198)]!==_0x544f7a[_0x57bda2(0x2c1)]){_0x1b0f5a();return;}let {unitId:_0x39f27b,subUnitId:_0x7620cc,drawingId:_0x55e5b8}=_0x24ec04;_0x4d07ff={'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8},this[_0x57bda2(0x1a2)][_0x57bda2(0x237)](_0x435760,!0x0),this[_0x57bda2(0x20f)][_0x57bda2(0x3dc)]()[_0x57bda2(0x1f7)](_0x3cc23f=>_0x3cc23f[_0x57bda2(0x277)]===_0x39f27b&&_0x3cc23f[_0x57bda2(0x3d0)]===_0x7620cc&&_0x3cc23f[_0x57bda2(0x290)]===_0x55e5b8)||this[_0x57bda2(0x20f)][_0x57bda2(0x36f)]([{'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8}]);})),_0x59cb04['add'](_0x5b3539[_0x106e5b(0x1e5)][_0x106e5b(0x3e4)](()=>{_0x1b0f5a();})),_0x128476(()=>{const _0x4ce89a=_0x106e5b;_0x59cb04[_0x4ce89a(0x232)](),_0x1b0f5a();});}[_0x714ef0(0x38f)](){const _0xa5bb49=_0x714ef0;this[_0xa5bb49(0x1a2)][_0xa5bb49(0x237)](_0x435760,!0x1),this[_0xa5bb49(0x20f)][_0xa5bb49(0x36f)](null);}};aa=X([Y(0x0,_0x308400),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x2b8a3e),Y(0x3,_0x19d008),Y(0x4,_0x5c502f(_0x2373db)),Y(0x5,_0x3ae1e3),Y(0x6,_0x1e1faa),Y(0x7,_0x5c502f($))],aa);function oa(_0x3d34c3,_0x2df8d0,_0x2f1c2d,_0x596b80){const _0x2af13e=_0x714ef0;let _0x47b982=_0x16a868(_0x3d34c3,_0x2df8d0,_0x2f1c2d),_0x210c29=[];for(let _0x322a7b of _0x2df8d0){let _0x3266e3=_0x47b982[_0x2af13e(0x3d5)][_0x2af13e(0x2dd)](_0x322a7b[_0x2af13e(0x290)]),_0x3be3bc=_0x596b80(_0x322a7b);_0x3266e3&&_0x3be3bc&&_0x210c29[_0x2af13e(0x181)]({'targetShapeId':_0x3266e3,'source':_0x3be3bc});}return _0x210c29;}let sa=class extends _0xe29064{constructor(_0x3f5855,_0x1c46ff,_0x5a8cac,_0x4f5718){const _0x5f011b=_0x714ef0;super(),this[_0x5f011b(0x2be)]=_0x3f5855,this[_0x5f011b(0x1d8)]=_0x1c46ff,this[_0x5f011b(0x404)]=_0x5a8cac,this[_0x5f011b(0x251)]=_0x4f5718,this[_0x5f011b(0x1dd)]();}[_0x714ef0(0x1dd)](){const _0x5e859f=_0x714ef0;this[_0x5e859f(0x238)](this[_0x5e859f(0x1d8)]['interceptCommand']({'getMutations':_0x287fa9=>{const _0x1b58dd=_0x5e859f;if(_0x287fa9['id']===_0x21d984['id']){let _0x46ee9b=_0x510a30(this[_0x1b58dd(0x2be)],_0x287fa9[_0x1b58dd(0x387)]);if(!_0x46ee9b)return{'redos':[],'undos':[]};let {unitId:_0x14220c,subUnitId:_0x60e8da}=_0x46ee9b,_0x33a0c0=this[_0x1b58dd(0x404)][_0x1b58dd(0x1a5)](_0x14220c,_0x60e8da),_0x3b1599=Object[_0x1b58dd(0x1f8)](_0x33a0c0)[_0x1b58dd(0x3c0)](_0x3ae10b=>_0x3ae10b[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x3b1599[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x130a98=[],_0x21b89a=[];for(let _0x19ee2e=0x0;_0x19ee2e<_0x3b1599[_0x1b58dd(0x1c3)];_0x19ee2e++){let _0x3c4509=_0x3b1599[_0x19ee2e],_0x4378bb=this[_0x1b58dd(0x251)][_0x1b58dd(0x199)](_0x3c4509[_0x1b58dd(0x277)],_0x3c4509[_0x1b58dd(0x3d0)],_0x3c4509['drawingId']);_0x4378bb&&(_0x130a98[_0x1b58dd(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)]}}),_0x21b89a[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)],'shapeType':_0x4378bb[_0x1b58dd(0x2fc)](),'shapeData':JSON['parse'](JSON[_0x1b58dd(0x3cb)](_0x4378bb[_0x1b58dd(0x3c4)]()))}}));}return{'redos':_0x130a98,'undos':_0x21b89a};}if(_0x287fa9['id']===_0x2b64f6['id']){let {unitId:_0x43fae3,subUnitId:_0x49f897,targetSubUnitId:_0x556d3c,copyContext:_0xfe2d49}=_0x287fa9[_0x1b58dd(0x387)];if(!_0x43fae3||!_0x49f897||!_0x556d3c)return{'redos':[],'undos':[]};let _0x5d51e7=this[_0x1b58dd(0x404)]['getDrawingData'](_0x43fae3,_0x49f897),_0x5b7710=Object[_0x1b58dd(0x1f8)](_0x5d51e7)['filter'](_0x2fdfd4=>_0x2fdfd4[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x5b7710[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x56805a=oa(_0xfe2d49,_0x5b7710,{'unitId':_0x43fae3,'sourceSubUnitId':_0x49f897,'targetSubUnitId':_0x556d3c},_0x534071=>{const _0x51535b=_0x1b58dd;let _0x5c331a=this[_0x51535b(0x251)][_0x51535b(0x199)](_0x534071[_0x51535b(0x277)],_0x534071['subUnitId'],_0x534071['drawingId']);if(_0x5c331a)return{'shapeType':_0x5c331a[_0x51535b(0x2fc)](),'shapeData':JSON['parse'](JSON['stringify'](_0x5c331a[_0x51535b(0x3c4)]()))};}),_0x458585=[],_0x24ebb3=[];for(let {targetShapeId:_0x5c678f,source:_0x5479be}of _0x56805a)_0x458585[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f,'shapeType':_0x5479be[_0x1b58dd(0x3b7)],'shapeData':_0x5479be[_0x1b58dd(0x3be)]}}),_0x24ebb3['push']({'id':_0x2506a4['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f}});return{'redos':_0x458585,'undos':_0x24ebb3};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x5c502f(_0x1d15d2)),Y(0x1,_0x5c502f(_0x2a88c5)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71))],sa);let ca=class extends _0xe29064{constructor(_0x303663,_0x22633b,_0x1cf3f3,_0x5ef66e,_0x5f429a,_0x2dbf65){const _0x53a8b6=_0x714ef0;super(),this[_0x53a8b6(0x1a7)]=_0x303663,this['_renderManagerService']=_0x22633b,this[_0x53a8b6(0x20f)]=_0x1cf3f3,this[_0x53a8b6(0x1cb)]=_0x5ef66e,this[_0x53a8b6(0x1c4)]=_0x5f429a,this[_0x53a8b6(0x416)]=_0x2dbf65,q(this,_0x53a8b6(0x421),new Set()),this[_0x53a8b6(0x1da)]();}[_0x714ef0(0x1da)](){const _0x203980=_0x714ef0;this[_0x203980(0x35f)](),this[_0x203980(0x227)](),this[_0x203980(0x311)]();}[_0x714ef0(0x35f)](){const _0x4a6990=_0x714ef0;this[_0x4a6990(0x238)](this[_0x4a6990(0x20f)][_0x4a6990(0x1f6)][_0x4a6990(0x3e4)](_0x31233a=>{const _0x2a879b=_0x4a6990;this[_0x2a879b(0x19f)](_0x31233a);}));}[_0x714ef0(0x227)](){const _0x97f055=_0x714ef0;this['disposeWithMe'](this[_0x97f055(0x1a7)][_0x97f055(0x40f)]((_0x23c9f3,_0xd8fca4)=>{const _0x2129dc=_0x97f055;if(_0x23c9f3['id']===_0x197dab['id']){let {unitId:_0x71c727,subUnitId:_0xca694c,shapeId:_0x535327}=_0x23c9f3[_0x2129dc(0x387)],_0x441d62=this['_getSceneAndTransformerByDrawingSearch'](_0x71c727),_0x4f7b5f=_0x562c30({'unitId':_0x71c727,'subUnitId':_0xca694c,'drawingId':_0x535327}),_0x2a99b2=_0x441d62==null?void 0x0:_0x441d62['scene']['getObjectIncludeInGroup'](_0x4f7b5f);_0x2a99b2&&(this[_0x2129dc(0x416)]['refreshShapeFillImage'](_0x2a99b2),this['_sheetDrawingShapeRenderController'][_0x2129dc(0x1c2)](_0x2a99b2,{'unitId':_0x71c727,'subUnitId':_0xca694c,'shapeId':_0x535327}),_0x2a99b2[_0x2129dc(0x226)](!0x0));}else{if(_0x23c9f3['id']===_0x269d0a['id']){var _0x33d53b;let {unitId:_0x12d314,subUnitId:_0x21a054,shapeId:_0x14d3a6}=_0x23c9f3[_0x2129dc(0x387)],_0x147873=this[_0x2129dc(0x190)](_0x12d314);if(_0x147873==null)return;let {scene:_0x44ac10}=_0x147873,_0x1ad6e5=_0x562c30({'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}),_0x213fcc=_0x44ac10[_0x2129dc(0x252)](_0x1ad6e5);if(!((_0x33d53b=this[_0x2129dc(0x2cf)][_0x2129dc(0x2af)](_0x12d314))!=null&&_0x33d53b[_0x2129dc(0x3e6)](_0x44086e)[_0x2129dc(0x1f4)](_0x21a054)))return!0x1;if(_0x213fcc)return;if(_0xd8fca4!=null&&_0xd8fca4[_0x2129dc(0x383)]){queueMicrotask(()=>{const _0x4f0a8d=_0x2129dc;this['_disposed']||this[_0x4f0a8d(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);});return;}this[_0x2129dc(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);}}}));}[_0x714ef0(0x311)](){const _0x5d15d6=_0x714ef0;this[_0x5d15d6(0x238)](this['_drawingManagerService'][_0x5d15d6(0x22f)][_0x5d15d6(0x3e4)](_0x1b28b1=>{_0x1b28b1['forEach'](_0x54aa4d=>{const _0x5d919b=_0x5396;let {unitId:_0x443dd9,subUnitId:_0x25a842,drawingId:_0x285346}=_0x54aa4d,_0x39c7f7=this[_0x5d919b(0x20f)][_0x5d919b(0x2da)](_0x54aa4d);if(_0x39c7f7==null)return;let {transform:_0x47f08e,drawingType:_0x426d86,srcRect:_0x1f5fc2,prstGeom:_0x5de441}=_0x39c7f7;if(_0x426d86!==_0x544f7a[_0x5d919b(0x2c1)])return;let _0x589959=this[_0x5d919b(0x190)](_0x443dd9);if(_0x589959==null)return;let {scene:_0x21065b,transformer:_0x1e4a34}=_0x589959;if(_0x47f08e==null)return!0x0;let _0x192a30=_0x562c30({'unitId':_0x443dd9,'subUnitId':_0x25a842,'drawingId':_0x285346}),_0x356c82=_0x21065b[_0x5d919b(0x252)](_0x192a30);if(_0x356c82==null)return!0x0;_0x356c82[_0x5d919b(0x323)](_0x1f5fc2),_0x356c82[_0x5d919b(0x3b4)](_0x5de441);});}));}[_0x714ef0(0x19f)](_0x13fdbc){const _0x533d8d=_0x714ef0;for(let _0x3d63d1 of _0x13fdbc){var _0x58fdbc;let {unitId:_0x5efd3c,subUnitId:_0x184af9,drawingId:_0x57b4a}=_0x3d63d1,_0x54b590=this[_0x533d8d(0x190)](_0x5efd3c),_0x3ab308=(_0x58fdbc=_0x52a805(this[_0x533d8d(0x1cb)],_0x5efd3c))==null?void 0x0:_0x58fdbc[_0x533d8d(0x3d0)];if(_0x54b590==null||_0x3ab308!==_0x184af9)return;let _0x5652a0=_0x562c30({'unitId':_0x5efd3c,'subUnitId':_0x184af9,'drawingId':_0x57b4a});if(this['_insertingShapeKeys'][_0x533d8d(0x2c6)](_0x5652a0)||_0x54b590[_0x533d8d(0x1d4)]['getObjectIncludeInGroup'](_0x5652a0)!=null)return;let _0x52c277=this[_0x533d8d(0x20f)]['getDrawingByParam'](_0x3d63d1);if(_0x52c277==null||_0x52c277[_0x533d8d(0x198)]!==_0x544f7a[_0x533d8d(0x2c1)])return;let _0x66e6d3=_0x52c277[_0x533d8d(0x307)]||{};if(_0x4cb876(_0x66e6d3[_0x533d8d(0x3b7)])){let _0x221721=_0x52c277['transform'];_0x221721&&(_0x52c277[_0x533d8d(0x29f)]={..._0x221721,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x533d8d(0x25e)](_0x5652a0);try{this['_sheetDrawingShapeRenderController'][_0x533d8d(0x258)](_0x52c277,_0x54b590[_0x533d8d(0x1d4)]);}finally{this['_insertingShapeKeys'][_0x533d8d(0x2a2)](_0x5652a0);}queueMicrotask(()=>{const _0x479495=_0x533d8d;if(this['_disposed'])return;let _0x3914fe=_0x562c30(_0x3d63d1);if(!_0x54b590[_0x479495(0x1d4)][_0x479495(0x252)](_0x3914fe))return;let _0x4c35bf=this[_0x479495(0x20f)][_0x479495(0x2da)](_0x3d63d1);_0x4c35bf&&this[_0x479495(0x20f)][_0x479495(0x285)]([_0x4c35bf]);});}}[_0x714ef0(0x190)](_0x329eed){const _0x433a5b=_0x714ef0;if(_0x329eed==null)return;let _0x37bc95=this['_renderManagerService'][_0x433a5b(0x2af)](_0x329eed),_0x23159e=_0x37bc95==null?void 0x0:_0x37bc95[_0x433a5b(0x1d4)];return _0x23159e==null?null:{'scene':_0x23159e,'transformer':_0x23159e[_0x433a5b(0x218)]()};}};ca=X([Y(0x0,_0x2b8a3e),Y(0x1,_0x1e1faa),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(_0x596343)),Y(0x5,_0x5c502f(Z))],ca);const la={'normal':{'fill':_0x4945a0[_0x714ef0(0x34c)],'stroke':_0x4945a0[_0x714ef0(0x280)],'strokeWidth':_0x4945a0[_0x714ef0(0x2ba)]},'highlighted':{'fill':_0x714ef0(0x312),'stroke':_0x714ef0(0x37e),'strokeWidth':0x2}};var ua=class extends _0x240da9{constructor(_0x2a146d,_0xa67886){const _0x30aafd=_0x714ef0;super(_0x2a146d,_0xa67886),q(this,_0x30aafd(0x335),''),q(this,_0x30aafd(0x3e1),-0x1),q(this,_0x30aafd(0x180),''),q(this,_0x30aafd(0x3af),''),q(this,_0x30aafd(0x3c5),!0x1),_0xa67886&&this['setShapeProps'](_0xa67886);}[_0x714ef0(0x337)](){const _0x5b1b29=_0x714ef0;return{'unitId':this[_0x5b1b29(0x180)],'subUnitId':this[_0x5b1b29(0x3af)],'shapeId':this[_0x5b1b29(0x335)],'cxnIndex':this['_cxnIndex']};}[_0x714ef0(0x18b)](_0x41b843){const _0x6d682c=_0x714ef0;this['_isHighlighted']!==_0x41b843&&(this['_isHighlighted']=_0x41b843,this[_0x6d682c(0x226)](!0x0));}[_0x714ef0(0x3b9)](){const _0x2f9b6f=_0x714ef0;return this[_0x2f9b6f(0x3c5)];}[_0x714ef0(0x30a)](_0x322e4f){const _0x4ea83d=_0x714ef0;_0x322e4f[_0x4ea83d(0x1e6)]!==void 0x0&&(this['_targetShapeId']=_0x322e4f[_0x4ea83d(0x1e6)]),_0x322e4f[_0x4ea83d(0x1bc)]!==void 0x0&&(this['_cxnIndex']=_0x322e4f['cxnIndex']),_0x322e4f[_0x4ea83d(0x277)]!==void 0x0&&(this[_0x4ea83d(0x180)]=_0x322e4f[_0x4ea83d(0x277)]),_0x322e4f[_0x4ea83d(0x3d0)]!==void 0x0&&(this['_subUnitId']=_0x322e4f[_0x4ea83d(0x3d0)]),_0x322e4f[_0x4ea83d(0x3b9)]!==void 0x0&&(this[_0x4ea83d(0x3c5)]=_0x322e4f[_0x4ea83d(0x3b9)]),this[_0x4ea83d(0x1b1)]({'width':_0x322e4f['width']??_0x4945a0[_0x4ea83d(0x389)]*0x2,'height':_0x322e4f[_0x4ea83d(0x2d4)]??_0x4945a0[_0x4ea83d(0x389)]*0x2});}[_0x714ef0(0x24b)](_0x2bd096){const _0x49832d=_0x714ef0;let _0x45608e=this['_isHighlighted']?la[_0x49832d(0x2de)]:la['normal'];_0x540920[_0x49832d(0x385)](_0x2bd096,{'radius':_0x4945a0[_0x49832d(0x389)],'fill':_0x45608e[_0x49832d(0x3f6)],'stroke':_0x45608e['stroke'],'strokeWidth':_0x45608e[_0x49832d(0x166)],'evented':!0x0});}};let da=class extends _0xe29064{constructor(_0x3c8651,_0x12a7e9,_0x189cc3,_0x1f4cb3){const _0x3d1fac=_0x714ef0;super(),this[_0x3d1fac(0x22a)]=_0x3c8651,this[_0x3d1fac(0x2cf)]=_0x12a7e9,this[_0x3d1fac(0x20f)]=_0x189cc3,this['_sheetsShapeService']=_0x1f4cb3,q(this,_0x3d1fac(0x165),[]),q(this,_0x3d1fac(0x3d3),null),q(this,_0x3d1fac(0x188),-0x1),q(this,'_currentScene',null),q(this,_0x3d1fac(0x180),''),q(this,_0x3d1fac(0x3af),''),q(this,_0x3d1fac(0x38a),null);}['startConnectionDetection'](_0x421bda,_0x175c92,_0x65dfb2,_0x5991fe){const _0x1b9581=_0x714ef0;this[_0x1b9581(0x3ce)]=_0x421bda,this['_unitId']=_0x175c92,this[_0x1b9581(0x3af)]=_0x65dfb2,this[_0x1b9581(0x38a)]=_0x5991fe;}[_0x714ef0(0x2e8)](_0x48b561){const _0x5e52e1=_0x714ef0;if(!this[_0x5e52e1(0x3ce)])return null;let _0x170f8b=this[_0x5e52e1(0x26f)](_0x48b561);return _0x170f8b?(this[_0x5e52e1(0x3d3)]!==_0x170f8b[_0x5e52e1(0x21d)]&&(this[_0x5e52e1(0x342)](),this[_0x5e52e1(0x176)](_0x170f8b[_0x5e52e1(0x21d)],_0x170f8b[_0x5e52e1(0x2e9)]),this[_0x5e52e1(0x3d3)]=_0x170f8b[_0x5e52e1(0x21d)]),this[_0x5e52e1(0x32f)](_0x48b561)):(this['_activeTargetShapeId']!==null&&(this[_0x5e52e1(0x342)](),this['_activeTargetShapeId']=null),null);}[_0x714ef0(0x340)](){const _0xf32714=_0x714ef0;this[_0xf32714(0x342)](),this[_0xf32714(0x3ce)]=null,this[_0xf32714(0x3d3)]=null,this[_0xf32714(0x188)]=-0x1,this[_0xf32714(0x38a)]=null;}[_0x714ef0(0x329)](){const _0x23cde5=_0x714ef0;return this[_0x23cde5(0x3d3)]===null||this[_0x23cde5(0x188)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x23cde5(0x188)]};}['_findShapeAtPoint'](_0x37263d){const _0x27d820=_0x714ef0;let _0x3d0433=this[_0x27d820(0x20f)][_0x27d820(0x1a5)](this[_0x27d820(0x180)],this['_subUnitId']);for(let _0x183984 of Object[_0x27d820(0x1a3)](_0x3d0433)){if(_0x183984===this[_0x27d820(0x38a)]||_0x3d0433[_0x183984][_0x27d820(0x198)]!==_0x544f7a[_0x27d820(0x2c1)])continue;let _0x419ef6=this[_0x27d820(0x251)][_0x27d820(0x199)](this['_unitId'],this[_0x27d820(0x3af)],_0x183984);if(!_0x419ef6||_0x4cb876(_0x419ef6[_0x27d820(0x2fc)]())||_0x419ef6[_0x27d820(0x3e3)]()['length']===0x0||!this[_0x27d820(0x3ce)])continue;let _0x2d106a=_0x562c30({'unitId':this[_0x27d820(0x180)],'subUnitId':this[_0x27d820(0x3af)],'drawingId':_0x183984}),_0x42546b=this['_currentScene'][_0x27d820(0x252)](_0x2d106a);if(!_0x42546b)continue;let {left:_0x46cad6,top:_0x5c69f4,width:_0x135e7f,height:_0x2adb32}=_0x42546b[_0x27d820(0x27e)](),_0x4b1f72=_0x46cad6+_0x135e7f/0x2,_0x434554=_0x5c69f4+_0x2adb32/0x2,_0x2d3872=_0x42546b[_0x27d820(0x29f)][_0x27d820(0x231)](),_0x5bbf68=new _0x5a3b07([_0x2d3872[0x0],_0x2d3872[0x1],_0x2d3872[0x2],_0x2d3872[0x3],_0x4b1f72,_0x434554]),_0x4db4d8=_0x42546b[_0x27d820(0x20a)](),_0x2db424=(_0x42546b[_0x27d820(0x3eb)]&&(_0x4db4d8==null?void 0x0:_0x4db4d8[_0x27d820(0x3d6)])===_0x61e19a['GROUP']?_0x4db4d8[_0x27d820(0x2dc)][_0x27d820(0x196)](_0x5bbf68):_0x5bbf68)[_0x27d820(0x265)]()[_0x27d820(0x171)](_0x37263d),_0x5e3079=_0x135e7f/0x2,_0x1f01aa=_0x2adb32/0x2;if(_0x2db424['x']>=-_0x5e3079-0x5&&_0x2db424['x']<=_0x5e3079+0x5&&_0x2db424['y']>=-_0x1f01aa-0x5&&_0x2db424['y']<=_0x1f01aa+0x5)return{'shapeId':_0x183984,'shapeModel':_0x419ef6};}return null;}[_0x714ef0(0x176)](_0xe1e896,_0x488012){const _0x590e64=_0x714ef0;if(!this[_0x590e64(0x3ce)])return;let _0x5d2068=_0x562c30({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xe1e896}),_0x256fb4=this[_0x590e64(0x3ce)][_0x590e64(0x252)](_0x5d2068);if(!_0x256fb4)return;let {left:_0x3749b7,top:_0x1a9f57,width:_0x2c85d2,height:_0x1d55de}=_0x256fb4[_0x590e64(0x27e)](),_0x197800=_0x3749b7+_0x2c85d2/0x2,_0x5b54d9=_0x1a9f57+_0x1d55de/0x2,_0x54e795=_0x256fb4['transform'][_0x590e64(0x231)](),_0x1a3a5b=new _0x5a3b07([_0x54e795[0x0],_0x54e795[0x1],_0x54e795[0x2],_0x54e795[0x3],_0x197800,_0x5b54d9]),_0x28a4ff=_0x256fb4['getParent'](),_0x276dad=_0x256fb4[_0x590e64(0x3eb)]&&(_0x28a4ff==null?void 0x0:_0x28a4ff[_0x590e64(0x3d6)])===_0x61e19a['GROUP']?_0x28a4ff['ancestorTransform']['multiply'](_0x1a3a5b):_0x1a3a5b;_0x488012[_0x590e64(0x2b8)]({'width':_0x2c85d2,'height':_0x1d55de});let _0x343171=_0x488012[_0x590e64(0x3e3)]();for(let _0x52e7e4 of _0x343171){let _0x29f2d7=_0x52e7e4['x']-_0x2c85d2/0x2,_0x617d57=_0x52e7e4['y']-_0x1d55de/0x2,_0x5358ca=_0x276dad[_0x590e64(0x171)]({'x':_0x29f2d7,'y':_0x617d57}),_0x2ced0d=_0x5358ca['x'],_0x5e407e=_0x5358ca['y'],_0xc74ef6=new ua(_0x590e64(0x418)+_0xe1e896+'-'+_0x52e7e4[_0x590e64(0x330)],{'left':_0x2ced0d-_0x4945a0[_0x590e64(0x389)],'top':_0x5e407e-_0x4945a0['cxnPointRadius'],'targetShapeId':_0xe1e896,'cxnIndex':_0x52e7e4['index'],'unitId':this['_unitId'],'subUnitId':this[_0x590e64(0x3af)],'width':_0x4945a0[_0x590e64(0x389)]*0x2,'height':_0x4945a0[_0x590e64(0x389)]*0x2,'zIndex':_0x4232ac+0x2,'evented':!0x1});this[_0x590e64(0x165)][_0x590e64(0x181)](_0xc74ef6),this[_0x590e64(0x3ce)][_0x590e64(0x213)](_0xc74ef6,_0x4232ac+0x2);}}[_0x714ef0(0x32f)](_0x2b2463){const _0x19999c=_0x714ef0;let _0x284adf=null,_0x6afb36=0x1/0x0,_0x676eb8=null;for(let _0x29b54c of this[_0x19999c(0x165)]){let _0x20e1be=_0x29b54c['left']+_0x4945a0[_0x19999c(0x389)],_0x284d62=_0x29b54c[_0x19999c(0x211)]+_0x4945a0[_0x19999c(0x389)],_0x2bd119=_0x2b2463['x']-_0x20e1be,_0x1ee6f9=_0x2b2463['y']-_0x284d62,_0x24ca2e=Math[_0x19999c(0x36e)](_0x2bd119*_0x2bd119+_0x1ee6f9*_0x1ee6f9);_0x24ca2e<_0x6afb36&&(_0x6afb36=_0x24ca2e,_0x284adf=_0x29b54c,_0x676eb8={'x':_0x20e1be,'y':_0x284d62});}let _0x3f4d2b=_0x6afb36<=0xa&&_0x284adf?_0x284adf[_0x19999c(0x337)]()[_0x19999c(0x1bc)]:-0x1;if(_0x3f4d2b!==this['_highlightedSiteIndex']){for(let _0x38d25d of this['_connectionSiteObjects']){let _0x2c35b5=_0x38d25d['getConnectionInfo']();_0x38d25d[_0x19999c(0x18b)](_0x2c35b5['cxnIndex']===_0x3f4d2b);}this[_0x19999c(0x188)]=_0x3f4d2b;}if(_0x6afb36<=0xa&&_0x284adf&&_0x676eb8){let _0x2be685=_0x284adf['getConnectionInfo'](),_0x47d55e=this[_0x19999c(0x3ea)](_0x2be685['shapeId'],_0x2be685[_0x19999c(0x1bc)]);return{'shapeId':_0x2be685[_0x19999c(0x21d)],'cxnIndex':_0x2be685['cxnIndex'],'unitId':_0x2be685[_0x19999c(0x277)],'subUnitId':_0x2be685[_0x19999c(0x3d0)],'worldPoint':_0x676eb8,'angle':_0x47d55e};}return null;}['_getConnectionSiteAngle'](_0x2b2307,_0x295f4c){const _0x4a7c6d=_0x714ef0;let _0x562a4b=this[_0x4a7c6d(0x251)][_0x4a7c6d(0x199)](this[_0x4a7c6d(0x180)],this['_subUnitId'],_0x2b2307);if(!_0x562a4b)return 0x0;let _0x45d2b3=this[_0x4a7c6d(0x20f)][_0x4a7c6d(0x2da)]({'unitId':this[_0x4a7c6d(0x180)],'subUnitId':this[_0x4a7c6d(0x3af)],'drawingId':_0x2b2307});if(!(_0x45d2b3!=null&&_0x45d2b3[_0x4a7c6d(0x29f)]))return 0x0;let {width:_0x4c5d38=0x0,height:_0x53b436=0x0,flipX:_0x9ca91f=!0x1,flipY:_0x16c1f1=!0x1}=_0x45d2b3['transform'];_0x562a4b[_0x4a7c6d(0x2b8)]({'width':_0x4c5d38,'height':_0x53b436});let _0x8c6fe5=_0x562a4b[_0x4a7c6d(0x3e3)]()[_0x4a7c6d(0x1f7)](_0x5d26c8=>_0x5d26c8[_0x4a7c6d(0x330)]===_0x295f4c);if(!_0x8c6fe5)return 0x0;let _0xecc740=_0x8c6fe5[_0x4a7c6d(0x34a)]/0xea60;return _0x9ca91f&&(_0xecc740=0xb4-_0xecc740),_0x16c1f1&&(_0xecc740=-_0xecc740),_0xecc740=(_0xecc740%0x168+0x168)%0x168,_0xecc740;}[_0x714ef0(0x342)](){const _0x289d6c=_0x714ef0;for(let _0x3e5429 of this[_0x289d6c(0x165)])_0x3e5429[_0x289d6c(0x232)]();this[_0x289d6c(0x165)]=[],this[_0x289d6c(0x188)]=-0x1;}[_0x714ef0(0x232)](){const _0x134a65=_0x714ef0;this[_0x134a65(0x342)](),super[_0x134a65(0x232)]();}};da=X([Y(0x1,_0x5c502f(_0x1e1faa)),Y(0x2,_0x5c502f(_0x19d008)),Y(0x3,_0x5c502f(_0x5b8f71))],da);let fa=class extends _0xe29064{constructor(_0x57e7d1,_0x671a93,_0x5e0f92,_0x82fed5,_0x557a04){const _0x5651fb=_0x714ef0;super(),this['_sheetSkeletonService']=_0x57e7d1,this[_0x5651fb(0x250)]=_0x671a93,this[_0x5651fb(0x404)]=_0x5e0f92,this[_0x5651fb(0x382)]=_0x82fed5,this[_0x5651fb(0x2f3)]=_0x557a04,q(this,_0x5651fb(0x1bf),void 0x0),this[_0x5651fb(0x22d)](),this[_0x5651fb(0x41d)]();}get[_0x714ef0(0x1a1)](){const _0x2a4965=_0x714ef0;return this[_0x2a4965(0x404)]['getFocusDrawings']();}['_registerGroupFeaturePasteHook'](){const _0x5e1f52=_0x714ef0;this[_0x5e1f52(0x2f3)][_0x5e1f52(0x24d)](({fromUnitId:_0x2ae3aa,fromSubUnitId:_0x3edeb5,toUnitId:_0x35b744,toSubUnitId:_0x6bef68,idMap:_0x5e79fa})=>{const _0x16d4f9=_0x5e1f52;let _0xa56f1f=[],_0x2693c9=[];for(let [_0x39ac27,_0x468a5e]of _0x5e79fa[_0x16d4f9(0x374)]()){let _0x56bd30=this['_shapeService'][_0x16d4f9(0x199)](_0x2ae3aa,_0x3edeb5,_0x39ac27);if(!_0x56bd30)continue;let _0x2aaa99=_0x56bd30[_0x16d4f9(0x2fc)](),_0x513b26=JSON[_0x16d4f9(0x33b)](JSON[_0x16d4f9(0x3cb)](_0x56bd30[_0x16d4f9(0x3c4)]()));if(_0x513b26[_0x16d4f9(0x3cf)]){var _0x4d4343,_0x3a186d;let _0x2d1fec=(_0x4d4343=_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)])==null?void 0x0:_0x4d4343[_0x16d4f9(0x21d)],_0x4ee913=(_0x3a186d=_0x513b26[_0x16d4f9(0x3cf)]['to'])==null?void 0x0:_0x3a186d[_0x16d4f9(0x21d)],_0x5e6d38=!_0x2d1fec||_0x5e79fa['has'](_0x2d1fec),_0x484cd4=!_0x4ee913||_0x5e79fa[_0x16d4f9(0x2c6)](_0x4ee913);_0x5e6d38&&_0x2d1fec&&_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]?_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]={..._0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x2d1fec)}:_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]=void 0x0,_0x484cd4&&_0x4ee913&&_0x513b26[_0x16d4f9(0x3cf)]['to']?_0x513b26[_0x16d4f9(0x3cf)]['to']={..._0x513b26[_0x16d4f9(0x3cf)]['to'],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x4ee913)}:_0x513b26['relation']['to']=void 0x0;}_0xa56f1f[_0x16d4f9(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e,'shapeType':_0x2aaa99,'shapeData':_0x513b26}}),_0x2693c9[_0x16d4f9(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e}});}return{'redos':_0xa56f1f,'undos':_0x2693c9};});}[_0x714ef0(0x22d)](){const _0xf6066e=_0x714ef0;this[_0xf6066e(0x238)](this[_0xf6066e(0x250)][_0xf6066e(0x27f)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x42f87e,_0x1c19e1,_0x4efa4c)=>{const _0x1a2872=_0xf6066e;this[_0x1a2872(0x1bf)]=null;let _0x385fcf=this[_0x1a2872(0x1a1)][_0x1a2872(0x3c0)](_0x3bfa98=>_0x3bfa98['drawingType']===_0x544f7a[_0x1a2872(0x2c1)]);return _0x385fcf[_0x1a2872(0x1c3)]!==0x0&&(this[_0x1a2872(0x1bf)]={'unitId':_0x42f87e,'subUnitId':_0x1c19e1,'copyType':_0x4efa4c,'drawings':_0x385fcf},!0x0);},'onBeforeCopy':(_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632)=>{const _0x25e2b4=_0xf6066e;this['_copyInfo']=null,this[_0x25e2b4(0x3df)](_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632);},'onPasteCells':(_0x40f753,_0x4adcf1,_0x593341,_0x277cda)=>{const _0x5c0991=_0xf6066e;if(!_0x277cda[_0x5c0991(0x2d5)]||!_0x40f753||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x551911}=_0x277cda;return _0x551911===_0x205afc[_0x5c0991(0x194)]?this[_0x5c0991(0x30f)](_0x4adcf1,this['_copyInfo'][_0x5c0991(0x407)]===_0x22fdbb[_0x5c0991(0x359)]):{'redos':[],'undos':[]};}}));}[_0x714ef0(0x3df)](_0x20a1af,_0x5ab220,_0x724111,_0x1f544c){const _0x15b95f=_0x714ef0;let _0x4df965=this[_0x15b95f(0x1cc)][_0x15b95f(0x1f4)](_0x20a1af,_0x5ab220);if(!_0x4df965)return;let _0x4cc394=_0x50939b(_0x4df965,_0x724111);if(!_0x4cc394)return;let {startX:_0x4bb148,endX:_0x2510e8,startY:_0xa56980,endY:_0x2338ff}=_0x4cc394,_0x495581=this[_0x15b95f(0x404)]['getDrawingData'](_0x20a1af,_0x5ab220),_0x3308ff=[];for(let [_0x3598bf,_0x4e9e20]of Object[_0x15b95f(0x374)](_0x495581)){if(_0x4e9e20[_0x15b95f(0x198)]!==_0x544f7a[_0x15b95f(0x2c1)])continue;let {transform:_0x4694b0}=_0x4e9e20;if(!_0x4694b0)continue;let {left:_0x16f97f=0x0,top:_0x55bfeb=0x0,width:_0x250183=0x0,height:_0x181fc1=0x0}=_0x4694b0;_0x4bb148<=_0x16f97f&&_0x2510e8>=_0x16f97f+_0x250183&&_0xa56980<=_0x55bfeb&&_0x2338ff>=_0x55bfeb+_0x181fc1&&_0x3308ff[_0x15b95f(0x181)](_0x4e9e20);}_0x3308ff[_0x15b95f(0x1c3)]>0x0&&(this[_0x15b95f(0x1bf)]={'unitId':_0x20a1af,'subUnitId':_0x5ab220,'copyType':_0x1f544c,'copyRange':_0x724111,'drawings':_0x3308ff});}[_0x714ef0(0x30f)](_0xed7ca4,_0xdb6913){const _0x3c261f=_0x714ef0;let {unitId:_0x36f739,subUnitId:_0x3e0b0c,range:_0x592506}=_0xed7ca4,_0x188090=this[_0x3c261f(0x1cc)]['getSkeleton'](_0x36f739,_0x3e0b0c);if(!_0x188090)return{'redos':[],'undos':[]};let _0x5e62a3=_0x5de548(_0x592506),{unitId:_0x1d77cc,subUnitId:_0x3f8461,copyRange:_0xfc1406,drawings:_0x122404}=this['_copyInfo'],_0xc99ae4=this['_sheetSkeletonService'][_0x3c261f(0x1f4)](_0x1d77cc,_0x3f8461);if(!_0xc99ae4)return{'redos':[],'undos':[]};let _0x336704;if(!_0xfc1406){let _0x2aff55=0x1/0x0,_0x2595dd=0x1/0x0;for(let _0x183e3a of _0x122404){let {left:_0x2fef13=0x0,top:_0x31bc3a=0x0}=_0x183e3a[_0x3c261f(0x29f)]??{};_0x2fef13<_0x2aff55&&(_0x2aff55=_0x2fef13),_0x31bc3a<_0x2595dd&&(_0x2595dd=_0x31bc3a);}_0x2aff55!==0x1/0x0&&_0x2595dd!==0x1/0x0&&(_0x336704={'left':_0x2aff55,'top':_0x2595dd});}let _0x307df8=new Map();if(!_0xdb6913){for(let _0x49d8ae of _0x122404)_0x307df8[_0x3c261f(0x160)](_0x49d8ae['drawingId'],_0x2f2dbb());}let _0x69b3ac=[],_0x544fd8=[];for(let _0x5b8f9a of _0x122404){let {drawingId:_0x165a66,transform:_0x1334e2,sheetTransform:_0xf653e1}=_0x5b8f9a;if(!_0x1334e2||!_0xf653e1)continue;let _0x440699=this[_0x3c261f(0x30e)]({'transform':_0x1334e2,'sheetTransform':_0xf653e1},{'skeleton':_0xc99ae4,'range':_0xfc1406},{'skeleton':_0x188090,'range':_0x5e62a3},_0x336704);if(_0xdb6913){let {redos:_0x185c13,undos:_0xa5dbc9}=this[_0x3c261f(0x349)]({'fromUnitId':_0x1d77cc,'fromSubUnitId':_0x3f8461,'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699});_0x69b3ac[_0x3c261f(0x181)](..._0x185c13),_0x544fd8[_0x3c261f(0x181)](..._0xa5dbc9);continue;}let {redos:_0x3f389b,undos:_0x19180d}=this[_0x3c261f(0x2eb)]({'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699,'newDrawingId':_0x307df8[_0x3c261f(0x2dd)](_0x165a66),'idMap':_0x307df8});_0x69b3ac[_0x3c261f(0x181)](..._0x3f389b),_0x544fd8[_0x3c261f(0x181)](..._0x19180d);}return{'redos':_0x69b3ac,'undos':_0x544fd8};}[_0x714ef0(0x349)](_0x201935){const _0x1feb3d=_0x714ef0;let {fromUnitId:_0x2c5deb,fromSubUnitId:_0x2cb688,toUnitId:_0x6d3c25,toSubUnitId:_0x386578,drawing:_0x4c7513,newTransforms:_0x15e40e}=_0x201935,_0x5d3901={..._0x4c7513,'unitId':_0x6d3c25,'subUnitId':_0x386578,'transform':_0x15e40e[_0x1feb3d(0x29f)],'sheetTransform':_0x15e40e[_0x1feb3d(0x431)]};if(_0x6d3c25===_0x2c5deb&&_0x386578===_0x2cb688){let {redo:_0xafccb0,undo:_0x29b06f,objects:_0xe1dd33}=this['_sheetDrawingService'][_0x1feb3d(0x284)]([_0x5d3901]);return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0xafccb0,'objects':_0xe1dd33}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0x29b06f,'objects':_0xe1dd33}}]};}{let _0x165b18=this['_sheetDrawingService'][_0x1feb3d(0x3bc)]([_0x4c7513]),_0x4d18e6=this[_0x1feb3d(0x404)]['getBatchAddOp']([_0x5d3901]),_0x5ce36f=this['_shapeService'][_0x1feb3d(0x199)](_0x4c7513['unitId'],_0x4c7513[_0x1feb3d(0x3d0)],_0x4c7513[_0x1feb3d(0x290)]);if(!_0x5ce36f)return{'redos':[],'undos':[]};let _0x5e123f=_0x5ce36f[_0x1feb3d(0x2fc)](),_0x4cb204=JSON[_0x1feb3d(0x33b)](JSON['stringify'](_0x5ce36f[_0x1feb3d(0x3c4)]()));return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x165b18[_0x1feb3d(0x37a)],'objects':_0x165b18[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x4d18e6[_0x1feb3d(0x37a)],'objects':_0x4d18e6['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x165b18[_0x1feb3d(0x3f7)],'objects':_0x165b18['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x4d18e6['undo'],'objects':_0x4d18e6[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}}]};}}[_0x714ef0(0x2eb)](_0x3504de){const _0x3c83d2=_0x714ef0;let {toUnitId:_0x35c813,toSubUnitId:_0x46ae62,drawing:_0x17bca0,newTransforms:_0x101808,newDrawingId:_0x3565fc,idMap:_0x36bc3a}=_0x3504de,_0x52f5c8={..._0x17bca0,'unitId':_0x35c813,'subUnitId':_0x46ae62,'drawingId':_0x3565fc,'transform':_0x101808[_0x3c83d2(0x29f)],'sheetTransform':_0x101808[_0x3c83d2(0x431)]},{redo:_0x57980a,undo:_0x1172cb,objects:_0x3cce05}=this[_0x3c83d2(0x404)]['getBatchAddOp']([_0x52f5c8]),_0x2e3764=this[_0x3c83d2(0x382)][_0x3c83d2(0x199)](_0x17bca0[_0x3c83d2(0x277)],_0x17bca0[_0x3c83d2(0x3d0)],_0x17bca0[_0x3c83d2(0x290)]);if(!_0x2e3764)return{'redos':[],'undos':[]};let _0x4bf7ff=_0x2e3764[_0x3c83d2(0x2fc)](),_0xa07e0f=JSON[_0x3c83d2(0x33b)](JSON[_0x3c83d2(0x3cb)](_0x2e3764[_0x3c83d2(0x3c4)]()));if(_0xa07e0f['relation']){var _0x18838c,_0x4ac835;let _0x3c1987=(_0x18838c=_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)])==null?void 0x0:_0x18838c[_0x3c83d2(0x21d)],_0x371b57=(_0x4ac835=_0xa07e0f[_0x3c83d2(0x3cf)]['to'])==null?void 0x0:_0x4ac835['shapeId'],_0x10d6bd=!_0x3c1987||_0x36bc3a[_0x3c83d2(0x2c6)](_0x3c1987),_0x629665=!_0x371b57||_0x36bc3a[_0x3c83d2(0x2c6)](_0x371b57);_0x10d6bd&&_0x3c1987&&_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]?_0xa07e0f['relation']['from']={..._0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)],'shapeId':_0x36bc3a[_0x3c83d2(0x2dd)](_0x3c1987)}:_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]=void 0x0,_0x629665&&_0x371b57&&_0xa07e0f[_0x3c83d2(0x3cf)]['to']?_0xa07e0f[_0x3c83d2(0x3cf)]['to']={..._0xa07e0f[_0x3c83d2(0x3cf)]['to'],'shapeId':_0x36bc3a['get'](_0x371b57)}:_0xa07e0f[_0x3c83d2(0x3cf)]['to']=void 0x0;}return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x31f)],'op':_0x57980a,'objects':_0x3cce05}},{'id':_0x269d0a['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc,'shapeType':_0x4bf7ff,'shapeData':_0xa07e0f}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x3ff)],'op':_0x1172cb,'objects':_0x3cce05}},{'id':_0x2506a4['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc}}]};}[_0x714ef0(0x30e)](_0x5be6ff,_0x3aaa6b,_0x4a3aaf,_0x28ab4f){const _0x508fc6=_0x714ef0;let {range:_0x1d6396,skeleton:_0x28ab1f}=_0x3aaa6b,{range:_0x105c3a,skeleton:_0x113bd1}=_0x4a3aaf,{transform:_0x41b643,sheetTransform:_0x517596}=_0x5be6ff,_0x173079={..._0x41b643};if(_0x1d6396){let _0x55e9d4=_0x50939b(_0x28ab1f,_0x1d6396),_0x52acc9=_0x50939b(_0x113bd1,_0x105c3a);if(_0x55e9d4&&_0x52acc9){let _0x28d3b6=_0x52acc9['startX']-_0x55e9d4[_0x508fc6(0x3a1)],_0x57a35b=_0x52acc9[_0x508fc6(0x399)]-_0x55e9d4[_0x508fc6(0x399)];_0x173079['left']=(_0x173079[_0x508fc6(0x201)]??0x0)+_0x28d3b6,_0x173079[_0x508fc6(0x211)]=(_0x173079['top']??0x0)+_0x57a35b;}}else{let _0x5dd39e=_0x50939b(_0x113bd1,_0x105c3a);if(_0x28ab4f&&_0x5dd39e){let _0x1930d5=(_0x173079[_0x508fc6(0x201)]??0x0)-_0x28ab4f[_0x508fc6(0x201)],_0x25c1aa=(_0x173079[_0x508fc6(0x211)]??0x0)-_0x28ab4f[_0x508fc6(0x211)];_0x173079[_0x508fc6(0x201)]=_0x5dd39e[_0x508fc6(0x3a1)]+_0x1930d5,_0x173079[_0x508fc6(0x211)]=_0x5dd39e[_0x508fc6(0x399)]+_0x25c1aa;}else _0x173079[_0x508fc6(0x201)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x3a1)],_0x173079[_0x508fc6(0x211)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x399)];}return{'transform':_0x173079,'sheetTransform':_0x33f6ee(_0x173079,_0x113bd1)??_0x517596};}};fa=X([Y(0x0,_0x5c502f(_0x48e7a4)),Y(0x1,_0x5c502f(_0x345ee2)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x5e793f))],fa);var pa=class extends _0x240da9{constructor(_0x2815b2,_0x22d599){const _0x4c3402=_0x714ef0;super(_0x2815b2,_0x22d599),q(this,_0x4c3402(0x295),null),q(this,_0x4c3402(0x2ea),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x4c3402(0x3f4),!0x1),_0x22d599&&this[_0x4c3402(0x30a)](_0x22d599);}[_0x714ef0(0x423)](){const _0x3c520d=_0x714ef0;return{'unitId':this[_0x3c520d(0x180)],'subUnitId':this[_0x3c520d(0x3af)],'drawingId':this[_0x3c520d(0x295)]};}[_0x714ef0(0x30a)](_0x41f594){const _0x3aee28=_0x714ef0;_0x41f594[_0x3aee28(0x21d)]!==void 0x0&&(this[_0x3aee28(0x295)]=_0x41f594['shapeId']),_0x41f594[_0x3aee28(0x277)]!==void 0x0&&(this[_0x3aee28(0x180)]=_0x41f594[_0x3aee28(0x277)]),_0x41f594['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x41f594[_0x3aee28(0x3d0)]),_0x41f594[_0x3aee28(0x2d2)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x41f594[_0x3aee28(0x2d2)]),this['transformByState']({'width':_0x41f594[_0x3aee28(0x253)],'height':_0x41f594[_0x3aee28(0x2d4)]});}[_0x714ef0(0x24b)](_0x2af905){const _0x10a7eb=_0x714ef0;_0x540920['drawWith'](_0x2af905,{'radius':_0x4945a0['cxnPointRadius'],'fill':_0x4945a0[_0x10a7eb(0x34c)],'stroke':_0x4945a0[_0x10a7eb(0x280)],'strokeWidth':_0x4945a0[_0x10a7eb(0x2ba)],'evented':!0x0});}};let ma=class extends _0xe29064{constructor(_0x2359c9,_0xae59,_0x11b835,_0x232b67,_0x5eadc5,_0x3d82d0,_0x139029,_0x1db2cc){const _0x46380c=_0x714ef0;super(),this[_0x46380c(0x22a)]=_0x2359c9,this['_commandService']=_0xae59,this[_0x46380c(0x2cf)]=_0x11b835,this['_drawingManagerService']=_0x232b67,this[_0x46380c(0x2be)]=_0x5eadc5,this[_0x46380c(0x251)]=_0x3d82d0,this[_0x46380c(0x3ab)]=_0x139029,this[_0x46380c(0x3cd)]=_0x1db2cc,q(this,'_activeShapeId',void 0x0),q(this,_0x46380c(0x180),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x46380c(0x3a9),[]),q(this,_0x46380c(0x259),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x46380c(0x20d),void 0x0),q(this,_0x46380c(0x390),!0x1),q(this,_0x46380c(0x19e),!0x1),q(this,_0x46380c(0x1ec),!0x1),q(this,'_cxtHandlerPointerMove',void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,'_currentConnectionTarget',null),this[_0x46380c(0x1da)]();}[_0x714ef0(0x1da)](){const _0x53349f=_0x714ef0;this[_0x53349f(0x3ae)](),this['_registerDrawingMoveHandler']();}['_getDrawingRect'](){const _0x3a45ae=_0x714ef0;if(!this[_0x3a45ae(0x180)]||!this['_subUnitId']||!this['_activeShapeId'])return;let _0x1b1ed7={'unitId':this[_0x3a45ae(0x180)],'subUnitId':this[_0x3a45ae(0x3af)],'drawingId':this[_0x3a45ae(0x3de)]},{transform:_0x210093}=this['_drawingManagerService'][_0x3a45ae(0x2da)](_0x1b1ed7);if(_0x210093)return{'left':_0x210093['left']||0x0,'top':_0x210093[_0x3a45ae(0x211)]||0x0,'width':_0x210093['width']||0x0,'height':_0x210093[_0x3a45ae(0x2d4)]||0x0,'flipX':_0x210093[_0x3a45ae(0x18d)]||!0x1,'flipY':_0x210093[_0x3a45ae(0x300)]||!0x1,'angle':_0x210093['angle']};}[_0x714ef0(0x19d)](){const _0x5b4a56=_0x714ef0;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x5b4a56(0x3de)]===void 0x0)return;let _0x644ae=this[_0x5b4a56(0x2cf)][_0x5b4a56(0x2af)](this[_0x5b4a56(0x180)]);if(!_0x644ae||!_0x644ae[_0x5b4a56(0x3e6)](_0x44086e)[_0x5b4a56(0x161)]())return;let {scene:_0x50b6a8}=_0x644ae,_0xb91c4a=this[_0x5b4a56(0x2df)]();if(!_0xb91c4a)return;let _0x5736d4=this[_0x5b4a56(0x251)][_0x5b4a56(0x199)](this[_0x5b4a56(0x180)],this[_0x5b4a56(0x3af)],this[_0x5b4a56(0x3de)]);if(!_0x5736d4||!_0x4cb876(_0x5736d4[_0x5b4a56(0x2fc)]()))return;let _0x80ff5=_0x5736d4[_0x5b4a56(0x398)]();if(_0x80ff5['length']<0x2)return;let _0x4e5168=new _0x2610e3(_0xb91c4a),_0x319b42=_0x80ff5[0x0],_0x2022c8=_0x80ff5[_0x80ff5[_0x5b4a56(0x1c3)]-0x1],_0x4552c5=_0x4e5168[_0x5b4a56(0x396)](_0x319b42),_0x4c38d2=_0x4e5168['localToWorld'](_0x2022c8);this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4552c5},!0x0),this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4c38d2},!0x1);}[_0x714ef0(0x2a5)](_0x228aba,_0x17b6d9,_0x30366c){const _0x412431=_0x714ef0;if(this[_0x412431(0x3de)]===void 0x0||this[_0x412431(0x180)]===void 0x0||this[_0x412431(0x3af)]===void 0x0)return;let _0x1447d3=_0x412431(0x3aa)+this[_0x412431(0x180)]+'-'+this[_0x412431(0x3af)]+'-'+this[_0x412431(0x3de)]+'-'+(_0x30366c?_0x412431(0x1c8):'end'),_0x299505=_0x228aba['getObjectIncludeInGroup'](_0x1447d3);if(_0x299505){_0x299505[_0x412431(0x1b1)]({'left':_0x17b6d9['x']-_0x4945a0['cxnPointRadius'],'top':_0x17b6d9['y']-_0x4945a0['cxnPointRadius']});return;}let _0x300a5a=new pa(_0x1447d3,{'left':_0x17b6d9['x']-_0x4945a0[_0x412431(0x389)],'top':_0x17b6d9['y']-_0x4945a0[_0x412431(0x389)],'shapeId':this[_0x412431(0x3de)],'unitId':this[_0x412431(0x180)],'subUnitId':this[_0x412431(0x3af)],'isStartConnectorPoint':_0x30366c,'width':_0x4945a0['cxnPointRadius']*0x2,'height':_0x4945a0[_0x412431(0x389)]*0x2,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x412431(0x3a9)][_0x412431(0x181)](_0x300a5a),this[_0x412431(0x2b6)](_0x300a5a,_0x228aba,_0x30366c),_0x228aba[_0x412431(0x213)](_0x300a5a,_0x4232ac+0x1);}[_0x714ef0(0x315)](_0x4de05d,_0x83eb1c){const _0x4fd6c=_0x714ef0;var _0x3035b9;let _0x4b082d={'x':0x0,'y':0x0};if(!_0x4de05d||!_0x83eb1c)return _0x4b082d;let _0x59a8ba=this[_0x4fd6c(0x2cf)][_0x4fd6c(0x2af)](_0x4de05d);if(!_0x59a8ba||!_0x59a8ba['with'](_0x44086e)[_0x4fd6c(0x1f4)](_0x83eb1c))return _0x4b082d;let _0x66e2ac=_0x59a8ba[_0x4fd6c(0x3e6)](_0x4e89db),_0x565aad=_0x66e2ac==null?void 0x0:_0x66e2ac['getCurrentScrollState']();if(!_0x565aad)return _0x4b082d;let _0x538879=(_0x3035b9=this[_0x4fd6c(0x2be)][_0x4fd6c(0x2a6)](_0x4de05d))==null?void 0x0:_0x3035b9[_0x4fd6c(0x2f0)](_0x83eb1c);if(!_0x538879)return _0x4b082d;let _0x5f063b=_0xe31858(_0x565aad[_0x4fd6c(0x3d9)],_0x565aad[_0x4fd6c(0x3f2)],_0x59a8ba[_0x4fd6c(0x1d4)],_0x538879);return _0x5f063b?{'x':_0x5f063b[_0x4fd6c(0x388)],'y':_0x5f063b[_0x4fd6c(0x17a)]}:_0x4b082d;}[_0x714ef0(0x16a)](_0x279fdd,_0x3471c7){const _0x52bec1=_0x714ef0;var _0x8846c4;let _0x3ad12c=(_0x8846c4=this[_0x52bec1(0x2be)][_0x52bec1(0x2a6)](_0x279fdd))==null?void 0x0:_0x8846c4[_0x52bec1(0x2f0)](_0x3471c7);return(_0x3ad12c==null?void 0x0:_0x3ad12c[_0x52bec1(0x3fb)]())??0x1;}[_0x714ef0(0x2a0)](_0x430516,_0x1f3a29,_0x12a8e7,_0x2345cc,_0x1dc83d){const _0x16fb13=_0x714ef0;this[_0x16fb13(0x36b)]['unsubscribe'](),this[_0x16fb13(0x2d9)]['unsubscribe'](),this[_0x16fb13(0x3ab)]['refreshAdjustControls']();let _0x2c06f7=this[_0x16fb13(0x3c1)];this[_0x16fb13(0x3cd)]['endConnectionDetection']();let _0x286b32=this[_0x16fb13(0x315)](this[_0x16fb13(0x180)],this[_0x16fb13(0x3af)]),_0x5ac090=this[_0x16fb13(0x16a)](this[_0x16fb13(0x180)],this['_subUnitId']),_0x185a96={'x':_0x12a8e7[_0x16fb13(0x1bb)]/_0x5ac090+_0x286b32['x'],'y':_0x12a8e7[_0x16fb13(0x309)]/_0x5ac090+_0x286b32['y']},_0x21da1b=_0x2c06f7?_0x2c06f7[_0x16fb13(0x2b4)]:_0x185a96,_0x26038e=_0x2345cc?this[_0x16fb13(0x20d)][_0x16fb13(0x3e8)]():this[_0x16fb13(0x20d)]['getStartConnectInfo'](),_0x4b6635=this[_0x16fb13(0x20d)][_0x16fb13(0x2fc)]();_0x26038e?this[_0x16fb13(0x3fe)](_0x26038e,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d):this[_0x16fb13(0x1c9)](_0x1f3a29,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d,_0x4b6635),this['_isConnecting']=!0x1,this['_hasReset']=!0x1,this[_0x16fb13(0x3c1)]=null,_0x430516[_0x16fb13(0x173)]();}[_0x714ef0(0x1c9)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0x539e1e,_0x462cef,_0x2bfcc5){const _0x489ed4=_0x714ef0;let _0x500311=_0x2bfcc5===_0xf1eb19['Line']||_0x2bfcc5===_0xf1eb19[_0x489ed4(0x1e9)],_0x51c9ef=_0xc0a92c?_0x8f9226:_0x1a8bb3,_0x1d53d3=_0xc0a92c?_0x1a8bb3:_0x8f9226,_0x5ec0cc=this['_activeShapeModel'][_0x489ed4(0x398)](),_0x1a3a6=this[_0x489ed4(0x20d)]['getShapeType'](),_0x417360=_0x179376(_0x1a3a6),_0xde566c=_0x2610e3[_0x489ed4(0x241)](_0x5ec0cc,_0x417360),_0x98e86b=_0x500311?_0x2610e3[_0x489ed4(0x32d)](_0x51c9ef,_0x1d53d3):_0x2610e3[_0x489ed4(0x28d)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0xde566c);_0x539e1e?this['_executeConnectionCommand'](_0x98e86b,_0x539e1e,_0xc0a92c,_0x462cef):this[_0x489ed4(0x25a)](_0x98e86b,_0x462cef);}[_0x714ef0(0x3fe)](_0x4f2a8b,_0x4ac13a,_0x1b8dec,_0x5a08c8,_0x1f66d0){const _0x3a1a8c=_0x714ef0;let _0x44fb67=this['_getConnectPointInfo'](_0x4f2a8b);if(!_0x44fb67)return;let _0x4d5e84=_0x5a08c8?_0x5a08c8[_0x3a1a8c(0x2ae)]:this[_0x3a1a8c(0x29b)](_0x44fb67[_0x3a1a8c(0x184)],_0x4ac13a),_0x157998;if(_0x5a08c8){let _0x1aa9ab=this[_0x3a1a8c(0x20f)][_0x3a1a8c(0x2da)]({'unitId':_0x5a08c8[_0x3a1a8c(0x277)],'subUnitId':_0x5a08c8[_0x3a1a8c(0x3d0)],'drawingId':_0x5a08c8[_0x3a1a8c(0x21d)]});if(_0x1aa9ab!=null&&_0x1aa9ab[_0x3a1a8c(0x29f)]){let {left:_0x35ff28=0x0,top:_0x444958=0x0,width:_0x1fb421=0x0,height:_0x4b9b28=0x0,angle:_0xe7f338}=_0x1aa9ab[_0x3a1a8c(0x29f)];_0x157998=_0x4191f0({'left':_0x35ff28,'top':_0x444958,'width':_0x1fb421,'height':_0x4b9b28},_0xe7f338||0x0);}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};let _0x1a819d={'point':_0x4ac13a,'angle':_0x4d5e84,'bounds':_0x157998},_0x97a6c8=_0x1b8dec?_0x1a819d:_0x44fb67,_0x3020a4=_0x1b8dec?_0x44fb67:_0x1a819d,_0x5c0b2d=this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x2fc)](),_0x598a6c=_0x22d8a5(_0x97a6c8,_0x3020a4,_0x5c0b2d);this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x197)]();let _0x14f414=_0x1469b5(_0x598a6c,_0x5c0b2d);_0x5a08c8?this[_0x3a1a8c(0x35a)](_0x14f414,_0x5a08c8,_0x4f2a8b,_0x1b8dec,_0x1f66d0):this['_executeConnectedRouteResizeCommand'](_0x14f414,_0x4f2a8b,_0x1b8dec,_0x1f66d0);}[_0x714ef0(0x1bd)](_0x27058b,_0x4424dc,_0x2f7e96,_0x33dede){const _0x308a0b=_0x714ef0;let _0x4b1233=this[_0x308a0b(0x20d)]['getShapeData']()[_0x308a0b(0x3cf)],_0x77c180={..._0x4b1233},_0x29645a={'shapeId':_0x4424dc[_0x308a0b(0x21d)],'cxnIndex':_0x4424dc['cxnIndex']};_0x2f7e96?_0x77c180[_0x308a0b(0x248)]=_0x29645a:_0x77c180['to']=_0x29645a;let _0x2cf27a=this[_0x308a0b(0x20d)][_0x308a0b(0x2fc)](),_0x759ed5=_0x1469b5(_0x27058b[_0x308a0b(0x348)],_0x2cf27a),_0x512dd6={'unitId':this[_0x308a0b(0x180)],'subUnitId':this[_0x308a0b(0x3af)],'connectorShapeId':this[_0x308a0b(0x3de)],'width':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x253)],'height':_0x27058b['worldRect']['height'],'left':_0x27058b[_0x308a0b(0x23b)]['left'],'top':_0x27058b['worldRect'][_0x308a0b(0x211)],'flipX':_0x27058b['worldRect'][_0x308a0b(0x18d)]||!0x1,'flipY':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x300)]||!0x1,'newAdjustValues':_0x759ed5[_0x308a0b(0x33c)],'oldAdjustValues':_0x33dede,'oldRelation':_0x4b1233,'newRelation':_0x77c180,'newLineType':_0x759ed5[_0x308a0b(0x414)],'oldLineType':_0x2cf27a};this['_commandService'][_0x308a0b(0x40b)](_0x128516['id'],_0x512dd6);}[_0x714ef0(0x25a)](_0x424197,_0x58a726){const _0x33215b=_0x714ef0;let _0x380acd=this[_0x33215b(0x20d)][_0x33215b(0x2fc)](),_0x4c74a5=_0x1469b5(_0x424197[_0x33215b(0x348)],_0x380acd),_0x59a9c9={'unitId':this[_0x33215b(0x180)],'subUnitId':this[_0x33215b(0x3af)],'shapeId':this['_activeShapeId'],'width':_0x424197[_0x33215b(0x23b)][_0x33215b(0x253)],'height':_0x424197['worldRect'][_0x33215b(0x2d4)],'left':_0x424197['worldRect']['left'],'top':_0x424197[_0x33215b(0x23b)][_0x33215b(0x211)],'flipX':_0x424197[_0x33215b(0x23b)][_0x33215b(0x18d)]||!0x1,'flipY':_0x424197[_0x33215b(0x23b)][_0x33215b(0x300)]||!0x1,'angle':_0x424197[_0x33215b(0x23b)][_0x33215b(0x2ae)]||0x0,'newAdjustValues':_0x4c74a5[_0x33215b(0x33c)],'oldAdjustValues':_0x58a726,'newLineType':_0x4c74a5[_0x33215b(0x414)],'oldLineType':_0x380acd};this['_commandService']['executeCommand'](_0x48cda4['id'],_0x59a9c9);}[_0x714ef0(0x35a)](_0x344bc2,_0x19b3ca,_0x596bf2,_0x506766,_0x762934){const _0x43508c=_0x714ef0;let _0x5db069=this[_0x43508c(0x20d)][_0x43508c(0x3c4)]()[_0x43508c(0x3cf)],_0x2a5be7={..._0x5db069},_0xfb6777={'shapeId':_0x19b3ca[_0x43508c(0x21d)],'cxnIndex':_0x19b3ca[_0x43508c(0x1bc)]};_0x506766?(_0x2a5be7[_0x43508c(0x248)]=_0xfb6777,_0x2a5be7['to']=_0x596bf2):(_0x2a5be7['from']=_0x596bf2,_0x2a5be7['to']=_0xfb6777);let _0x2c4a78={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x253)],'height':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x2d4)],'left':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x201)],'top':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x211)],'flipX':_0x344bc2['worldRect']['flipX']||!0x1,'flipY':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x300)]||!0x1,'oldAdjustValues':_0x762934,'newAdjustValues':_0x344bc2['adjustValues'],'newLineType':_0x344bc2['lineType'],'rotation':_0x344bc2[_0x43508c(0x410)],'oldRelation':_0x5db069,'newRelation':_0x2a5be7};this[_0x43508c(0x1a7)][_0x43508c(0x40b)](_0x128516['id'],_0x2c4a78);}[_0x714ef0(0x223)](_0x552204,_0x569fd8,_0x599258,_0x23a3af){const _0x1d66ff=_0x714ef0;let _0x2bea2d=this[_0x1d66ff(0x20d)][_0x1d66ff(0x3c4)]()[_0x1d66ff(0x3cf)],_0x4ab6b2={};_0x599258?(_0x4ab6b2['to']=_0x569fd8,_0x4ab6b2[_0x1d66ff(0x248)]=void 0x0):(_0x4ab6b2[_0x1d66ff(0x248)]=_0x569fd8,_0x4ab6b2['to']=void 0x0);let _0xf49188={'unitId':this[_0x1d66ff(0x180)],'subUnitId':this[_0x1d66ff(0x3af)],'connectorShapeId':this[_0x1d66ff(0x3de)],'width':_0x552204['worldRect'][_0x1d66ff(0x253)],'height':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x2d4)],'left':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x201)],'top':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x211)],'flipX':_0x552204[_0x1d66ff(0x23b)]['flipX']||!0x1,'flipY':_0x552204[_0x1d66ff(0x23b)]['flipY']||!0x1,'oldAdjustValues':_0x23a3af,'newAdjustValues':_0x552204['adjustValues'],'newLineType':_0x552204[_0x1d66ff(0x414)],'rotation':_0x552204[_0x1d66ff(0x410)],'oldRelation':_0x2bea2d,'newRelation':_0x4ab6b2};this[_0x1d66ff(0x1a7)][_0x1d66ff(0x40b)](_0x128516['id'],_0xf49188);}[_0x714ef0(0x2b6)](_0x559dbb,_0x39b8ed,_0x34feca){const _0xdb5c84=_0x714ef0;this[_0xdb5c84(0x238)](_0x128476(_0x559dbb[_0xdb5c84(0x18e)][_0xdb5c84(0x212)]((_0x160763,_0x4f5a08)=>{const _0x2d4e77=_0xdb5c84;let _0x38b949=_0x559dbb[_0x2d4e77(0x423)]();if(this[_0x2d4e77(0x20d)]=this[_0x2d4e77(0x251)][_0x2d4e77(0x199)](_0x38b949['unitId'],_0x38b949[_0x2d4e77(0x3d0)],_0x38b949[_0x2d4e77(0x290)]),!this[_0x2d4e77(0x20d)])return;let _0x33c94e={};this[_0x2d4e77(0x20d)][_0x2d4e77(0x26a)]()['forEach'](_0xca78c2=>{const _0x326d49=_0x2d4e77;let _0x461484=this[_0x326d49(0x20d)][_0x326d49(0x31b)](_0xca78c2);_0x461484!==void 0x0&&(_0x33c94e[_0xca78c2]=_0x461484);});let _0x5367b2=this[_0x2d4e77(0x2df)]();if(!_0x5367b2)return;this[_0x2d4e77(0x259)]={..._0x5367b2};let _0x5c35c7=new _0x2610e3(this[_0x2d4e77(0x259)]),_0x231aa2=_0x562c30({'unitId':this[_0x2d4e77(0x180)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x314919=_0x39b8ed['getObjectIncludeInGroup'](_0x231aa2);this[_0x2d4e77(0x390)]=!0x0,_0x39b8ed[_0x2d4e77(0x207)](),this[_0x2d4e77(0x3cd)][_0x2d4e77(0x228)](_0x39b8ed,this[_0x2d4e77(0x180)],this[_0x2d4e77(0x3af)],this[_0x2d4e77(0x3de)]),this[_0x2d4e77(0x3c1)]=null;let _0x4e6cf9=this[_0x2d4e77(0x20d)]['getConnectorLinePoints'](),_0xdf46ed=_0x4e6cf9[0x0],_0x1b4596=_0x4e6cf9[_0x4e6cf9['length']-0x1],_0xd7a76=_0x34feca?_0x5c35c7[_0x2d4e77(0x396)](_0x1b4596):_0x5c35c7[_0x2d4e77(0x396)](_0xdf46ed);this['_cxtHandlerPointerMove']=_0x39b8ed[_0x2d4e77(0x224)][_0x2d4e77(0x212)]((_0x7783af,_0x294586)=>{const _0x365c87=_0x2d4e77;if(!this[_0x365c87(0x390)]||!this[_0x365c87(0x20d)])return;this[_0x365c87(0x1ec)]||=(this[_0x365c87(0x3ab)][_0x365c87(0x260)](),this['_activeShapeModel'][_0x365c87(0x179)](),!0x0);let _0x1f5734=this[_0x365c87(0x315)](this[_0x365c87(0x180)],this[_0x365c87(0x3af)]),_0x4144bf=this[_0x365c87(0x16a)](this['_unitId'],this[_0x365c87(0x3af)]),_0x3589dd={'x':_0x7783af[_0x365c87(0x1bb)]/_0x4144bf+_0x1f5734['x'],'y':_0x7783af[_0x365c87(0x309)]/_0x4144bf+_0x1f5734['y']},_0x14af01=this[_0x365c87(0x3cd)]['updateConnectionDetection'](_0x3589dd);if(_0x14af01){let {shapeId:_0x86c418,unitId:_0x596162,subUnitId:_0x3a4537}=_0x14af01;if(_0x86c418&&_0x596162&&_0x3a4537){let _0x4bcd31=_0x562c30({'unitId':_0x596162,'subUnitId':_0x3a4537,'drawingId':_0x86c418});_0x14af01[_0x365c87(0x2ae)]=(_0x39b8ed[_0x365c87(0x252)](_0x4bcd31)[_0x365c87(0x2ae)]||0x0)+_0x14af01[_0x365c87(0x2ae)];}}this[_0x365c87(0x3c1)]=_0x14af01;let _0x470c89=_0x34feca?this[_0x365c87(0x20d)][_0x365c87(0x3e8)]():this['_activeShapeModel'][_0x365c87(0x318)]();_0x470c89?this[_0x365c87(0x23c)](_0x470c89,_0x3589dd,_0x34feca,_0x314919,_0x559dbb):this[_0x365c87(0x1b7)](_0x3589dd,_0xd7a76,_0x34feca,_0x314919,_0x559dbb);}),this[_0x2d4e77(0x2d9)]=_0x39b8ed[_0x2d4e77(0x367)][_0x2d4e77(0x212)]((_0x2c1b7e,_0x40b059)=>{const _0x41ce4c=_0x2d4e77;this[_0x41ce4c(0x2a0)](_0x39b8ed,_0xd7a76,_0x2c1b7e,_0x34feca,_0x33c94e);}),_0x4f5a08[_0x2d4e77(0x394)]();})));}[_0x714ef0(0x2c2)](_0xc24b38,_0x515a14,_0x5a99bd){const _0x56a0a6=_0x714ef0;let _0x4abcdc=this[_0x56a0a6(0x251)][_0x56a0a6(0x2f6)](_0xc24b38,_0x515a14,_0x5a99bd);if(!_0x4abcdc||_0x4abcdc[_0x56a0a6(0x1c3)]===0x0)return;let _0x2a4243=this['_renderManagerService']['getRenderUnitById'](_0xc24b38);if(!_0x2a4243)return;let {scene:_0x1ae310}=_0x2a4243;for(let _0x4dcc34 of _0x4abcdc){let _0x3ebeae=_0x4dcc34[_0x56a0a6(0x29d)],_0x34276e=this['_sheetsShapeService']['getShapeModel'](_0xc24b38,_0x515a14,_0x3ebeae);if(!_0x34276e)continue;let _0x22e89d=_0x34276e[_0x56a0a6(0x318)](),_0x4b304b=_0x34276e['getEndConnectInfo'](),_0x437774=(_0x22e89d==null?void 0x0:_0x22e89d[_0x56a0a6(0x21d)])===_0x5a99bd,_0x46ef5c=_0x562c30({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae}),_0x258833=_0x1ae310[_0x56a0a6(0x252)](_0x46ef5c);if(!_0x258833)continue;let _0x2da1c8=this[_0x56a0a6(0x20f)][_0x56a0a6(0x2da)]({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae});_0x2da1c8!=null&&_0x2da1c8[_0x56a0a6(0x29f)]&&(_0x22e89d&&_0x4b304b?this['_rerouteConnectorLine'](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x22e89d,_0x4b304b,_0x258833):this[_0x56a0a6(0x39d)](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x437774?_0x22e89d:_0x4b304b,_0x437774,_0x2da1c8,_0x258833));}}[_0x714ef0(0x1de)](_0x54fa1b,_0x2d593d,_0x252702,_0x17c75f,_0x5a75cb,_0x4eca11,_0x22c915){const _0x5e8c62=_0x714ef0;let _0x93e6c1=this[_0x5e8c62(0x180)],_0x27f783=this[_0x5e8c62(0x3af)];this[_0x5e8c62(0x180)]=_0x54fa1b,this[_0x5e8c62(0x3af)]=_0x2d593d;let _0x38f36c=this[_0x5e8c62(0x301)](_0x5a75cb),_0x2e597d=this['_getConnectPointInfo'](_0x4eca11);if(this[_0x5e8c62(0x180)]=_0x93e6c1,this[_0x5e8c62(0x3af)]=_0x27f783,!_0x38f36c||!_0x2e597d)return;let _0x50b651=_0x17c75f[_0x5e8c62(0x2fc)](),_0x2a00cb=_0x22d8a5(_0x38f36c,_0x2e597d,_0x50b651);_0x2a00cb&&_0x17c75f[_0x5e8c62(0x2b5)](_0x2a00cb);let _0x480e7c=_0x1469b5(_0x2a00cb,_0x50b651);_0x480e7c[_0x5e8c62(0x414)]!==_0x50b651&&_0x17c75f['changeShapeType'](_0x480e7c[_0x5e8c62(0x414)]),_0x17c75f[_0x5e8c62(0x179)]();for(let [_0x50747e,_0x209b97]of Object[_0x5e8c62(0x374)](_0x480e7c[_0x5e8c62(0x33c)]))_0x17c75f[_0x5e8c62(0x19c)](_0x50747e,_0x209b97);_0x17c75f[_0x5e8c62(0x2b8)]({'width':_0x480e7c['worldRect'][_0x5e8c62(0x253)],'height':_0x480e7c['worldRect'][_0x5e8c62(0x2d4)]}),_0x22c915[_0x5e8c62(0x1b1)]({'flipX':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x18d)],'flipY':_0x480e7c['worldRect'][_0x5e8c62(0x300)],'left':_0x480e7c[_0x5e8c62(0x23b)]['left'],'top':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x211)],'width':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x253)],'height':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x2d4)],'angle':_0x480e7c[_0x5e8c62(0x410)]}),_0x17c75f[_0x5e8c62(0x197)]();}[_0x714ef0(0x39d)](_0x1e0afb,_0x73876b,_0x44856c,_0x1097e1,_0x49bffa,_0x5c61b7,_0x28438c,_0x4813df){const _0x4f9962=_0x714ef0;let _0x866ea=this[_0x4f9962(0x180)],_0x301d9c=this[_0x4f9962(0x3af)];this[_0x4f9962(0x180)]=_0x1e0afb,this[_0x4f9962(0x3af)]=_0x73876b;let _0x4e7a7a=this[_0x4f9962(0x301)](_0x49bffa);if(this[_0x4f9962(0x180)]=_0x866ea,this[_0x4f9962(0x3af)]=_0x301d9c,!_0x4e7a7a)return;let {left:_0x17d65b=0x0,top:_0x4a2d0=0x0,width:_0x19f5a4=0x0,height:_0x9f9882=0x0,flipX:_0x248a5f=!0x1,flipY:_0x1ec632=!0x1}=_0x28438c[_0x4f9962(0x29f)],_0x87ecc=_0x1097e1[_0x4f9962(0x398)]();if(_0x87ecc[_0x4f9962(0x1c3)]<0x2)return;let _0xa5043e=new _0x2610e3({'left':_0x17d65b,'top':_0x4a2d0,'width':_0x19f5a4,'height':_0x9f9882,'flipX':_0x248a5f,'flipY':_0x1ec632}),_0x184398=_0x5c61b7?_0x87ecc[_0x87ecc[_0x4f9962(0x1c3)]-0x1]:_0x87ecc[0x0],_0xa21b61=_0xa5043e['localToWorld'](_0x184398),_0x524552=_0x2610e3[_0x4f9962(0x28d)](_0xa21b61,_0x4e7a7a['point'],!_0x5c61b7);_0x4813df['transformByState']({'flipX':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x18d)],'flipY':_0x524552[_0x4f9962(0x23b)]['flipY'],'left':_0x524552[_0x4f9962(0x23b)]['left'],'top':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x211)],'width':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x253)],'height':_0x524552['worldRect']['height'],'angle':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x2ae)]}),_0x4813df[_0x4f9962(0x226)](!0x0);}[_0x714ef0(0x3a3)](){const _0xef6781=_0x714ef0;this['_connectorObjects'][_0xef6781(0x1c3)]!==0x0&&(this[_0xef6781(0x3a9)][_0xef6781(0x185)](_0x4f0011=>{const _0x461bf2=_0xef6781;_0x4f0011[_0x461bf2(0x232)]();}),this[_0xef6781(0x3a9)]=[]);}[_0x714ef0(0x33f)](){const _0x3a629f=_0x714ef0;let _0x30b402=this[_0x3a629f(0x2be)]['getCurrentTypeOfUnit$'](_0x58aa7b[_0x3a629f(0x222)]);this[_0x3a629f(0x238)](_0x30b402[_0x3a629f(0x371)](_0x1e4916(_0x20010c=>_0x20010c?_0x20010c['activeSheet$'][_0x3a629f(0x371)](_0x1e4916(_0x1186e2=>{const _0x529e6c=_0x3a629f;if(!_0x1186e2)return _0x535914;let _0xae666f=_0x20010c['getUnitId'](),_0x193a2d=this[_0x529e6c(0x2cf)][_0x529e6c(0x2af)](_0xae666f),_0x2d16ac=_0x193a2d==null?void 0x0:_0x193a2d[_0x529e6c(0x1d4)];return _0x2d16ac?_0x12c65f(_0x2d16ac):_0x535914;})):_0x535914))[_0x3a629f(0x3e4)](_0x280a90=>{const _0x4711f9=_0x3a629f;let _0xc6380b=_0x280a90[_0x4711f9(0x218)]();this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x224)][_0x4711f9(0x212)](_0x109ae4=>{const _0x1f0978=_0x4711f9;this[_0x1f0978(0x19e)]&&this[_0x1f0978(0x3de)]&&this[_0x1f0978(0x3a3)]();})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x320)][_0x4711f9(0x3e4)](_0x1e2707=>{const _0x260443=_0x4711f9;let {objects:_0x554b9c}=_0x1e2707;this['_clearShapeConnectorHandlerObjects'](),_0x554b9c!==null&&_0x554b9c['size']===0x1&&_0x554b9c[_0x260443(0x1f8)]()[_0x260443(0x3ee)]()[_0x260443(0x313)]instanceof J&&(this[_0x260443(0x19e)]=!0x0);})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x3fa)]['subscribe'](_0x4fb81a=>{const _0x46e331=_0x4711f9;this[_0x46e331(0x19e)]&&this[_0x46e331(0x3a3)]();})),this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x367)][_0x4711f9(0x212)](()=>{const _0x4a1d4e=_0x4711f9;this['_isDrawingShapePointDown']&&(this[_0x4a1d4e(0x19e)]=!0x1,this[_0x4a1d4e(0x19d)]());})),this[_0x4711f9(0x238)](_0xc6380b[_0x4711f9(0x2d0)][_0x4711f9(0x3e4)](()=>{const _0x31648e=_0x4711f9;this[_0x31648e(0x180)]&&this[_0x31648e(0x3af)]&&this[_0x31648e(0x3de)]&&this[_0x31648e(0x20f)][_0x31648e(0x2da)]({'unitId':this[_0x31648e(0x180)],'subUnitId':this[_0x31648e(0x3af)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x31648e(0x19d)]());}));}));}[_0x714ef0(0x3ae)](){const _0x16499a=_0x714ef0;this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x3f5)][_0x16499a(0x3e4)](_0x4b27f7=>{const _0x58e783=_0x16499a;if(_0x4b27f7[_0x58e783(0x1c3)]===0x1){let _0x58c06b=_0x4b27f7[0x0];if(_0x58c06b[_0x58e783(0x198)]===_0x544f7a[_0x58e783(0x2c1)]){let _0x18cf24=this['_sheetsShapeService'][_0x58e783(0x199)](_0x58c06b[_0x58e783(0x277)],_0x58c06b['subUnitId'],_0x58c06b[_0x58e783(0x290)]);if(_0x18cf24&&_0x4cb876(_0x18cf24['getShapeType']())){this['_activeShapeId']=_0x58c06b[_0x58e783(0x290)],this[_0x58e783(0x180)]=_0x58c06b[_0x58e783(0x277)],this['_subUnitId']=_0x58c06b['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x58e783(0x19d)]();return;}}}this[_0x58e783(0x3de)]=void 0x0,this['_unitId']=void 0x0,this[_0x58e783(0x3af)]=void 0x0,this[_0x58e783(0x3a3)]();})),this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x22f)][_0x16499a(0x3e4)](_0x25f551=>{const _0x3f4802=_0x16499a;if(_0x25f551[_0x3f4802(0x1c3)]===0x1){var _0x38885e;let _0x5b27b8=_0x25f551[0x0],_0x4a14b3=(_0x38885e=this[_0x3f4802(0x20f)]['getDrawingByParam'](_0x5b27b8))==null?void 0x0:_0x38885e[_0x3f4802(0x198)];_0x4a14b3===_0x544f7a['DRAWING_SHAPE']&&_0x5b27b8['drawingId']===this[_0x3f4802(0x3de)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x3f4802(0x19d)]()):!this['_activeShapeId']&&_0x4a14b3===_0x544f7a[_0x3f4802(0x2c1)]&&this[_0x3f4802(0x2c2)](_0x5b27b8[_0x3f4802(0x277)],_0x5b27b8[_0x3f4802(0x3d0)],_0x5b27b8[_0x3f4802(0x290)]);}})),this['disposeWithMe'](this[_0x16499a(0x20f)][_0x16499a(0x3ba)]['subscribe'](_0x1ac6a3=>{const _0x2e4485=_0x16499a;for(let _0x4a2e47 of _0x1ac6a3){let {drawingId:_0x1fce44}=_0x4a2e47;if(this[_0x2e4485(0x3de)]===_0x1fce44){this[_0x2e4485(0x1b3)]();return;}}}));}[_0x714ef0(0x23c)](_0x384ed8,_0x3795d3,_0x5eeecb,_0x2d1cdf,_0x3d0e7f){const _0x33f611=_0x714ef0;var _0x462039;if(!this[_0x33f611(0x20d)])return;let _0x2688a7=this['_getConnectPointInfo'](_0x384ed8);if(!_0x2688a7)return;let _0x27158c=this[_0x33f611(0x3c1)]?this[_0x33f611(0x3c1)][_0x33f611(0x2b4)]:_0x3795d3,_0x2ae661=this['_currentConnectionTarget']?this[_0x33f611(0x3c1)][_0x33f611(0x2ae)]:this[_0x33f611(0x29b)](_0x2688a7['point'],_0x27158c),_0x4ec293;if(this['_currentConnectionTarget']){let _0x164e2a=this[_0x33f611(0x20f)][_0x33f611(0x2da)]({'unitId':this[_0x33f611(0x3c1)][_0x33f611(0x277)],'subUnitId':this[_0x33f611(0x3c1)]['subUnitId'],'drawingId':this[_0x33f611(0x3c1)]['shapeId']});if(_0x164e2a!=null&&_0x164e2a['transform']){let {left:_0x2fab41=0x0,top:_0x2ebdf6=0x0,width:_0x599fda=0x0,height:_0x20537e=0x0,angle:_0x43b80e}=_0x164e2a[_0x33f611(0x29f)];_0x4ec293=_0x4191f0({'left':_0x2fab41,'top':_0x2ebdf6,'width':_0x599fda,'height':_0x20537e},_0x43b80e||0x0);}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};let _0x4bb4a4={'point':_0x27158c,'angle':_0x2ae661,'bounds':_0x4ec293},_0x3d4be2=_0x5eeecb?_0x4bb4a4:_0x2688a7,_0x33dc0c=_0x5eeecb?_0x2688a7:_0x4bb4a4,_0x401777=this[_0x33f611(0x20d)]['getShapeType'](),_0x5a989e=_0x22d8a5(_0x3d4be2,_0x33dc0c,_0x401777);_0x5a989e&&this[_0x33f611(0x20d)][_0x33f611(0x2b5)](_0x5a989e);let _0x1d11f9=_0x1469b5(_0x5a989e,_0x401777);_0x1d11f9[_0x33f611(0x414)]!==_0x401777&&this[_0x33f611(0x20d)][_0x33f611(0x175)](_0x1d11f9[_0x33f611(0x414)]);for(let [_0x4f82cc,_0x4a86b8]of Object['entries'](_0x1d11f9[_0x33f611(0x33c)]))this[_0x33f611(0x20d)][_0x33f611(0x19c)](_0x4f82cc,_0x4a86b8);this[_0x33f611(0x20d)][_0x33f611(0x2b8)]({'width':_0x1d11f9['worldRect'][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)]['height']}),_0x2d1cdf[_0x33f611(0x1b1)]({'flipX':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x18d)],'flipY':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x300)],'left':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x201)],'top':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x211)],'width':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x2d4)],'angle':_0x1d11f9['rotation']}),_0x2d1cdf[_0x33f611(0x226)](!0x0);let _0x4a8739=((_0x462039=this[_0x33f611(0x3c1)])==null?void 0x0:_0x462039[_0x33f611(0x2b4)])??_0x3795d3;_0x3d0e7f[_0x33f611(0x1b1)]({'left':_0x4a8739['x']-_0x4945a0[_0x33f611(0x389)],'top':_0x4a8739['y']-_0x4945a0['cxnPointRadius']});}[_0x714ef0(0x1b7)](_0x52844c,_0x86ac44,_0x4494cd,_0x2c177a,_0x4b78a4){const _0x22211f=_0x714ef0;var _0x30afc0,_0x751a8c;let _0x4bc1be=((_0x30afc0=this[_0x22211f(0x3c1)])==null?void 0x0:_0x30afc0[_0x22211f(0x2b4)])??_0x52844c,_0x498065=_0x2610e3['computeConnectorResizeLayout'](_0x86ac44,_0x4bc1be,_0x4494cd);_0x2c177a['transformByState']({'flipX':_0x498065[_0x22211f(0x23b)][_0x22211f(0x18d)],'flipY':_0x498065[_0x22211f(0x23b)][_0x22211f(0x300)],'left':_0x498065['worldRect'][_0x22211f(0x201)],'top':_0x498065['worldRect'][_0x22211f(0x211)],'width':_0x498065[_0x22211f(0x23b)][_0x22211f(0x253)],'height':_0x498065[_0x22211f(0x23b)]['height'],'angle':_0x498065[_0x22211f(0x23b)][_0x22211f(0x2ae)]});let _0x5b891c=((_0x751a8c=this[_0x22211f(0x3c1)])==null?void 0x0:_0x751a8c[_0x22211f(0x2b4)])??_0x52844c;_0x4b78a4['transformByState']({'left':_0x5b891c['x']-_0x4945a0[_0x22211f(0x389)],'top':_0x5b891c['y']-_0x4945a0[_0x22211f(0x389)]});}['_getConnectPointInfo'](_0x537dcf){const _0x51988c=_0x714ef0;if(!this[_0x51988c(0x180)]||!this[_0x51988c(0x3af)])return null;let {shapeId:_0x5b7b47,cxnIndex:_0x32246b}=_0x537dcf,_0x4a1748=this[_0x51988c(0x251)][_0x51988c(0x199)](this[_0x51988c(0x180)],this['_subUnitId'],_0x5b7b47);if(!_0x4a1748)return null;let _0x509770=this[_0x51988c(0x20f)][_0x51988c(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x51988c(0x3af)],'drawingId':_0x5b7b47});if(!(_0x509770!=null&&_0x509770[_0x51988c(0x29f)]))return null;let {left:_0x53d3b9=0x0,top:_0x155500=0x0,width:_0x39af5a=0x0,height:_0x39376=0x0,flipX:_0x382886=!0x1,flipY:_0x441d57=!0x1,angle:_0x403ed8}=_0x509770[_0x51988c(0x29f)];_0x4a1748[_0x51988c(0x2b8)]({'width':_0x39af5a,'height':_0x39376});let _0x116ba6=_0x4a1748[_0x51988c(0x3e3)]()[_0x51988c(0x1f7)](_0xc55927=>_0xc55927[_0x51988c(0x330)]===_0x32246b);if(!_0x116ba6)return null;let _0x54caa2=_0x382886?_0x39af5a-_0x116ba6['x']:_0x116ba6['x'],_0x3fb971=_0x441d57?_0x39376-_0x116ba6['y']:_0x116ba6['y'];if(_0x403ed8!==0x0&&_0x403ed8!=null){let _0x1e25c9=_0x403ed8*Math['PI']/0xb4,_0x131e11=Math['cos'](_0x1e25c9),_0x4de130=Math[_0x51988c(0x267)](_0x1e25c9),_0x37b987=_0x39af5a/0x2,_0x4e37df=_0x39376/0x2,_0x4bcb82=_0x54caa2-_0x37b987,_0x4c2ce2=_0x3fb971-_0x4e37df;_0x54caa2=_0x37b987+_0x4bcb82*_0x131e11-_0x4c2ce2*_0x4de130,_0x3fb971=_0x4e37df+_0x4bcb82*_0x4de130+_0x4c2ce2*_0x131e11;}_0x54caa2+=_0x53d3b9,_0x3fb971+=_0x155500;let _0x34e020=_0x116ba6[_0x51988c(0x34a)]/0xea60;_0x382886&&(_0x34e020=0xb4-_0x34e020),_0x441d57&&(_0x34e020=-_0x34e020),_0x34e020+=_0x403ed8||0x0,_0x34e020=(_0x34e020%0x168+0x168)%0x168;let _0x2c1b4b=_0x4191f0({'left':_0x53d3b9,'top':_0x155500,'width':_0x39af5a,'height':_0x39376},_0x403ed8||0x0);return{'point':{'x':_0x54caa2,'y':_0x3fb971},'angle':_0x34e020,'bounds':_0x2c1b4b};}[_0x714ef0(0x29b)](_0x5e56d0,_0x198bfd){const _0x5b3937=_0x714ef0;let _0x522880=_0x198bfd['x']-_0x5e56d0['x'],_0x3bf3d8=_0x198bfd['y']-_0x5e56d0['y'];return Math[_0x5b3937(0x19a)](_0x522880)>=Math['abs'](_0x3bf3d8)?_0x522880>=0x0?0xb4:0x0:_0x3bf3d8>=0x0?0x10e:0x5a;}[_0x714ef0(0x1b3)](){const _0x360339=_0x714ef0;this[_0x360339(0x3de)]=void 0x0,this[_0x360339(0x180)]=void 0x0,this[_0x360339(0x3af)]=void 0x0,this[_0x360339(0x3a3)]();}['dispose'](){const _0xc9169b=_0x714ef0;this['_clearShapeConnectorHandlerObjects'](),super[_0xc9169b(0x232)]();}};ma=X([Y(0x1,_0x2b8a3e),Y(0x2,_0x1e1faa),Y(0x3,_0x19d008),Y(0x4,_0x1d15d2),Y(0x5,_0x5c502f(_0x5b8f71)),Y(0x6,_0x5c502f(Pr)),Y(0x7,_0x5c502f(da))],ma);let ha=class extends _0xe29064{constructor(_0x52fff1,_0x3099ef,_0x466b05){const _0x7d1bae=_0x714ef0;super(),this['_sheetPrintInterceptorService']=_0x52fff1,this[_0x7d1bae(0x20f)]=_0x3099ef,this['_shapeRenderController']=_0x466b05,this[_0x7d1bae(0x3ad)]();}[_0x714ef0(0x3ad)](){const _0x26ba8b=_0x714ef0;this['disposeWithMe'](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x204)](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x375)]()[_0x26ba8b(0x38b)],{'handler':(_0x2050dd,_0x812099,_0x10c3fd)=>{const _0x2ffaf3=_0x26ba8b;var _0x54cd46;let {unitId:_0x2c5c37,subUnitId:_0x2b4402,scene:_0x5c943e,resourceCollector:_0x4deb93}=_0x812099,_0x575b47=(_0x54cd46=this['_drawingManagerService'][_0x2ffaf3(0x38c)](_0x2c5c37))==null?void 0x0:_0x54cd46[_0x2b4402];return _0x575b47==null||_0x575b47['order'][_0x2ffaf3(0x185)](_0x49b5bf=>{const _0xd3293d=_0x2ffaf3;let _0x3b60aa=_0x575b47[_0xd3293d(0x307)][_0x49b5bf];_0x3b60aa['drawingType']===_0x544f7a[_0xd3293d(0x2c1)]&&!_0x3b60aa['hidden']&&this[_0xd3293d(0x20b)][_0xd3293d(0x258)](_0x3b60aa,_0x5c943e,{'resourceCollector':_0x4deb93});}),_0x10c3fd(_0x2050dd);}}));}};ha=X([Y(0x0,_0x5c502f(_0x39aad2)),Y(0x1,_0x19d008),Y(0x2,_0x5c502f(Z))],ha);let ga=class extends _0xe29064{constructor(_0x19a3c0,_0x16d241,_0x15aa45){const _0xd52ef0=_0x714ef0;super(),this[_0xd52ef0(0x1a7)]=_0x19a3c0,this['_localeService']=_0x16d241,this['_sheetPermissionCheckController']=_0x15aa45,this['_initPermission']();}[_0x714ef0(0x1ca)](){const _0x27acc8=_0x714ef0;this[_0x27acc8(0x238)](this[_0x27acc8(0x1a7)]['beforeCommandExecuted'](_0x18edf0=>{const _0x511fe2=_0x27acc8;let _0x15ceb6,_0x3bc3c3;if(_0x18edf0['id']===_0x166112['id']||_0x18edf0['id']===_0x2cc34c['id']||_0x18edf0['id']===_0x128516['id']){let _0xe5ca02=_0x18edf0[_0x511fe2(0x387)];_0x15ceb6=_0xe5ca02['unitId'],_0x3bc3c3=_0xe5ca02['subUnitId'];}_0x15ceb6&&_0x3bc3c3&&(this[_0x511fe2(0x28f)][_0x511fe2(0x2e2)]({'workbookTypes':[_0xe0fab9],'worksheetTypes':[_0x123e53]},_0x15ceb6,_0x3bc3c3)||this['_sheetPermissionCheckController'][_0x511fe2(0x35c)](this['_localeService']['t'](_0x511fe2(0x25c))));}));}};ga=X([Y(0x0,_0x5c502f(_0x2b8a3e)),Y(0x1,_0x5c502f(_0x30b59c)),Y(0x2,_0x5c502f(_0x33b80c))],ga);let _a=class{constructor(_0x56e322){const _0x11633f=_0x714ef0;this[_0x11633f(0x2cf)]=_0x56e322;}['updateShapeFillImage'](_0x15abf2,_0x1c0161){const _0x3f75d3=_0x714ef0;let _0x3b43cc=this[_0x3f75d3(0x2cf)][_0x3f75d3(0x2af)](_0x15abf2[_0x3f75d3(0x277)]),_0x44edd9=_0x3b43cc==null?void 0x0:_0x3b43cc['scene'];if(!_0x44edd9)return;let _0x276636=_0x562c30(_0x15abf2),_0x3c2bb8=_0x44edd9['getObjectIncludeInGroup'](_0x276636);_0x3c2bb8==null||_0x3c2bb8['setFillImage'](_0x1c0161);}};_a=X([Y(0x0,_0x1e1faa)],_a);let va=class extends _0x14d9ad{constructor(_0x6c11a1=Yi,_0x23cb0f,_0x4f58c6,_0x4590df,_0x1ffebb){const _0x4212d7=_0x714ef0;super(),this[_0x4212d7(0x1c6)]=_0x6c11a1,this[_0x4212d7(0x210)]=_0x23cb0f,this[_0x4212d7(0x1a7)]=_0x4f58c6,this[_0x4212d7(0x1ed)]=_0x4590df,this[_0x4212d7(0x2cf)]=_0x1ffebb;let {..._0x20402d}=_0x1a3e4c({},Yi,this[_0x4212d7(0x1c6)]);this[_0x4212d7(0x1ed)][_0x4212d7(0x215)](Ji,_0x20402d),this[_0x4212d7(0x2f5)]();}[_0x714ef0(0x3b5)](){const _0x138d7f=_0x714ef0;this[_0x138d7f(0x210)][_0x138d7f(0x25e)]([ta]),this[_0x138d7f(0x210)][_0x138d7f(0x2dd)](ta),_0x5ee9a9(this[_0x138d7f(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x5d6d0f=_0x714ef0;_0x5ee9a9(this[_0x5d6d0f(0x210)],[[da],[Pr],[fa]]),_0x6cf6c(this[_0x5d6d0f(0x210)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]]['forEach'](_0x53064f=>{const _0x2b7c24=_0x5d6d0f;this['disposeWithMe'](this[_0x2b7c24(0x2cf)][_0x2b7c24(0x220)](_0x58aa7b[_0x2b7c24(0x222)],_0x53064f));});}[_0x714ef0(0x3bb)](){const _0x92c803=_0x714ef0;_0x6cf6c(this[_0x92c803(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x714ef0(0x26c)](){const _0x1c7bba=_0x714ef0;this[_0x1c7bba(0x210)]['get'](aa)[_0x1c7bba(0x177)]();}[_0x714ef0(0x2f5)](){const _0x3a606d=_0x714ef0;[Ir,K,Fr,qi][_0x3a606d(0x185)](_0x586992=>this[_0x3a606d(0x238)](this[_0x3a606d(0x1a7)][_0x3a606d(0x334)](_0x586992)));}};q(va,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(va,'pluginName',_0x714ef0(0x289)),q(va,'packageName',Gi),q(va,_0x714ef0(0x3c6),Ki),va=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x58b005,_0x178f75,_0x50669f,_0x16c905,_0xdc088c),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],va);const ya={'type':_0x4017c5['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0x101d30=_0x714ef0;let _0x4fbcaa=_0x3bcf4c(_0x19d008),_0x14d533=_0x54184f(()=>_0x4fbcaa[_0x101d30(0x3f5)],_0x4fbcaa[_0x101d30(0x3dc)](),!0x1,[_0x4fbcaa]);return _0x14d533[_0x101d30(0x1c3)]===0x0?null:_0x230828(_0x101d30(0x412),{'children':_0x55ce9a('div',{'className':_0x101d30(0x1f5),'children':[_0x230828(_0x5527d5,{'drawings':_0x14d533,'hasCropper':!0x1}),_0x230828(_0x522516,{'drawings':_0x14d533})]})});}function xa(_0x239813){let {unitId:_0x10f323,subUnitId:_0x564449,shapeId:_0x17575c}=_0x239813,_0x46ef74=_0x3bcf4c(_0x2b8a3e),_0x3794ff=_0x3bcf4c(_a);return _0x230828(_0x624b40,{..._0x239813,'positionEditor':_0x230828(ba,{}),'onUpdateShapeData':(_0x54f802,_0x5c26f7)=>{Dr(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x54f802,_0x5c26f7);},'onUpdateLineShapeData':(_0x586015,_0x2c3b51)=>{Or(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x586015,_0x2c3b51);},'onUpdateShapeFillImage':_0x5b87f4=>{_0x3794ff['updateShapeFillImage']({'unitId':_0x10f323,'subUnitId':_0x564449,'drawingId':_0x17575c},_0x5b87f4);}});}function Sa(_0x31a25f){const _0x9cdba7=_0x714ef0;let _0x42b985=_0x3bcf4c(_0x21f7f2),_0x29c827=_0x54184f(()=>_0x42b985[_0x9cdba7(0x33a)],_0x42b985[_0x9cdba7(0x225)](),!0x1,[_0x42b985]),_0xd54b46=_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x370)];return!_0xd54b46||!_0x29c827?null:_0x230828(Ca,{..._0xd54b46,'canvasElement':_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x42c)]});}function Ca(_0x35d955){const _0x393270=_0x714ef0;let _0x34b08c=_0x3bcf4c(_0x2b8a3e),_0x3b2b2b=_0x3bcf4c(_0x5b8f71),{unitId:_0x8f7fcb,subUnitId:_0x370c82,drawingId:_0x59c74c,drawingType:_0x14af29,shapeType:_0x1c8aa6}=_0x35d955,[_0x8c8e52,_0x5c8c36]=_0x2f8af9(_0x35d955[_0x393270(0x3be)]),_0x16a6d2=_0x23fcdc(()=>_0x4f4448(_0x8c8e52),[_0x8c8e52]),_0xd47344=_0x23fcdc(()=>_0x109803(_0x8c8e52),[_0x8c8e52]);_0x5c63a2(()=>{const _0x200784=_0x393270;let _0x58bedc=_0x34b08c[_0x200784(0x40f)](_0x12a124=>{const _0x556272=_0x200784;if(_0x12a124['id']!==_0x197dab['id'])return;let _0xd1add7=_0x3b2b2b[_0x556272(0x3a4)](_0x8f7fcb,_0x370c82,_0x59c74c);_0xd1add7&&_0x5c8c36(_0xd1add7);});return()=>_0x58bedc['dispose']();},[_0x34b08c,_0x59c74c,_0x3b2b2b,_0x370c82,_0x8f7fcb]);let _0x2fd58a=_0x456990=>{_0x5c8c36(_0x1cd989=>({..._0x1cd989,..._0x456990}));},_0x478da4=_0x35fb8c=>{const _0x36c0a5=_0x393270;let _0xa88880=_0x380e1e(_0x8c8e52,_0x35fb8c);Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'shapeText':_0x8c8e52[_0x36c0a5(0x29a)]}},_0xa88880),_0x2fd58a(_0xa88880);},_0x56875a=_0x1f34d3({'hostType':_0x58aa7b['UNIVER_SHEET'],'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'shapeId':_0x59c74c,'shapeData':_0x8c8e52,'onUpdateBinding':_0x25a268=>{const _0x40c5fc=_0x393270;let _0x5a5f4a={'formulaBinding':_0x25a268};Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'formulaBinding':_0x8c8e52[_0x40c5fc(0x317)]}},_0x5a5f4a),_0x2fd58a(_0x5a5f4a);}});return _0x55ce9a(_0x1956c4,{'children':[_0x230828(_0x40aecd,{'canvasElement':_0x35d955[_0x393270(0x42c)],'shapeData':_0x8c8e52,'shapeType':_0x1c8aa6,'textStyle':{'ff':_0x4945a0[_0x393270(0x29a)]['fontFamily'],'fs':_0x4945a0['shapeText'][_0x393270(0x1aa)],'cl':{'rgb':_0x4945a0[_0x393270(0x29a)][_0x393270(0x3b0)]},..._0x16a6d2},'textModel':_0xd47344?{'ha':_0xd47344['ha']??_0x5d9043[_0x393270(0x1b8)],'va':_0xd47344['va']??_0x4f4c88['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4945a0[_0x393270(0x3f6)],'defaultGradientEndColor':_0x4945a0[_0x393270(0x192)],'defaultStrokeColor':_0x4945a0['stroke'],'extensionGroups':_0x56875a[_0x393270(0x27c)],'floatingObjectToolbarPosition':_0x2b4dd0[_0x393270(0x1ba)],'onUpdateShapeData':(_0x5a1a06,_0x3a9964)=>{Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,_0x5a1a06,_0x3a9964),_0x3a9964&&_0x2fd58a(_0x3a9964);},'onUpdateText':_0x478da4,'onOpenPanel':()=>{const _0x1f9b1e=_0x393270;_0x34b08c[_0x1f9b1e(0x40b)](Wr['id'],{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c});},'onDelete':()=>{const _0x2df693=_0x393270;_0x34b08c[_0x2df693(0x40b)](_0x3e89af['id'],{'unitId':_0x8f7fcb,'drawings':[{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c,'drawingType':_0x14af29}]});}}),_0x56875a[_0x393270(0x34f)]]});}function wa(_0x4993e7){const _0x2438d1=_0x714ef0;return!!_0x4993e7&&_0x2438d1(0x2b9)in _0x4993e7&&_0x2438d1(0x431)in _0x4993e7;}const Ta=_0x3aaaf3(()=>{const _0x2cca0a=_0x714ef0;let _0x5c91a9=_0x3bcf4c($),_0x2c5900=_0x3bcf4c(_0x5b8f71),_0x462e5b=_0x3bcf4c(_0x19d008),_0x178da5=_0x3bcf4c(_0x2b8a3e),_0x3801c2=_0x3bcf4c(_0x4605cf),_0x31ebbc=_0x3bcf4c(_0x1e1faa),_0x3c2239=_0x23fcdc(()=>({'getShapeModel':(_0x4c6252,_0x5893f2,_0x128514)=>_0x2c5900[_0x2cca0a(0x199)](_0x4c6252,_0x5893f2,_0x128514),'getShapeData':(_0x2d3e49,_0x4a2e7c,_0x263be2)=>_0x2c5900[_0x2cca0a(0x3a4)](_0x2d3e49,_0x4a2e7c,_0x263be2),'getDrawingTransform':(_0x256bc8,_0x50cd26,_0x55aaf8)=>{const _0x1bd8e5=_0x2cca0a;let _0xebcccd=_0x462e5b[_0x1bd8e5(0x2da)]({'unitId':_0x256bc8,'subUnitId':_0x50cd26,'drawingId':_0x55aaf8});return _0xebcccd==null?void 0x0:_0xebcccd[_0x1bd8e5(0x29f)];},'updateShapeText':({unitId:_0x3f57ee,subUnitId:_0x363789,shapeId:_0x37452a,shapeText:_0x4d341a,oldShapeText:_0x3bb813,hostSize:_0x477a18})=>{const _0x4b6d37=_0x2cca0a;_0x3801c2[_0x4b6d37(0x400)](_0x3f57ee,()=>{const _0x4cb08a=_0x4b6d37;var _0x57cf07;let _0x574bab=_0x178da5[_0x4cb08a(0x3ca)](K['id'],{'unitId':_0x3f57ee,'subUnitId':_0x363789,'shapeId':_0x37452a,'shapeData':{'shapeText':_0x4d341a},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3bb813}}});if(!_0x574bab||!_0x477a18)return _0x574bab;let _0x237f2e=_0x462e5b[_0x4cb08a(0x2da)]({'unitId':_0x3f57ee,'subUnitId':_0x363789,'drawingId':_0x37452a}),_0x18174b=_0x237f2e==null?void 0x0:_0x237f2e[_0x4cb08a(0x29f)];if(!wa(_0x237f2e)||!_0x18174b)return!0x1;let _0x1c4678={..._0x18174b,'width':_0x477a18[_0x4cb08a(0x253)],'height':_0x477a18[_0x4cb08a(0x2d4)]},_0x46dd79=(_0x57cf07=_0x31ebbc[_0x4cb08a(0x2af)](_0x3f57ee))==null||(_0x57cf07=_0x57cf07[_0x4cb08a(0x3e6)](_0x44086e)['getSkeletonParam'](_0x363789))==null?void 0x0:_0x57cf07[_0x4cb08a(0x425)];return _0x178da5[_0x4cb08a(0x3ca)](_0x297360['id'],{'unitId':_0x3f57ee,'drawings':[{..._0x237f2e,'transform':_0x1c4678,'sheetTransform':_0x46dd79?_0x33f6ee(_0x1c4678,_0x46dd79)??_0x237f2e[_0x4cb08a(0x431)]:_0x237f2e[_0x4cb08a(0x431)],'axisAlignSheetTransform':_0x46dd79?_0x5c977a(_0x1c4678,_0x46dd79)??_0x237f2e['axisAlignSheetTransform']:_0x237f2e[_0x4cb08a(0x2b9)]}]});});},'updateHostSize':({unitId:_0x50f2c0,subUnitId:_0x13ed9b,shapeId:_0x47eae8,width:_0x2d54ae,height:_0x45fb5e})=>{const _0x590aa3=_0x2cca0a;var _0x4e2d81;let _0x365ef8=_0x462e5b['getDrawingByParam']({'unitId':_0x50f2c0,'subUnitId':_0x13ed9b,'drawingId':_0x47eae8}),_0x557dc5=_0x365ef8==null?void 0x0:_0x365ef8[_0x590aa3(0x29f)];if(!wa(_0x365ef8)||!_0x557dc5)return;let _0x3212b3={..._0x557dc5,'width':_0x2d54ae,'height':_0x45fb5e},_0x20ea66=(_0x4e2d81=_0x31ebbc[_0x590aa3(0x2af)](_0x50f2c0))==null||(_0x4e2d81=_0x4e2d81[_0x590aa3(0x3e6)](_0x44086e)['getSkeletonParam'](_0x13ed9b))==null?void 0x0:_0x4e2d81['skeleton'],_0x516eab=_0x20ea66?_0x33f6ee(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x431)]:_0x365ef8['sheetTransform'],_0x402937=_0x20ea66?_0x5c977a(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x2b9)]:_0x365ef8[_0x590aa3(0x2b9)];_0x178da5[_0x590aa3(0x40b)](_0x297360['id'],{'unitId':_0x50f2c0,'drawings':[{..._0x365ef8,'transform':_0x3212b3,'sheetTransform':_0x516eab,'axisAlignSheetTransform':_0x402937}]});},'allowHostSizeShrink':({unitId:_0x305195,subUnitId:_0x20db2e,shapeId:_0x24bd8e})=>_0x248a4d(_0x2c5900['getShapeDataById'](_0x305195,_0x20db2e,_0x24bd8e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x178da5,_0x462e5b,_0x31ebbc,_0x2c5900,_0x3801c2]),_0x3fd060=_0x23fcdc(()=>({'viewportKeys':{'main':_0x5b9251[_0x2cca0a(0x3b2)],'leftTop':_0x5b9251[_0x2cca0a(0x1ee)],'top':_0x5b9251[_0x2cca0a(0x234)],'left':_0x5b9251[_0x2cca0a(0x1df)]},'getSkeleton':(_0x77b6c6,_0x4e4c9b)=>{const _0x5e946f=_0x2cca0a;var _0x33e966;return((_0x33e966=_0x77b6c6[_0x5e946f(0x3e6)](_0x44086e)['getSkeletonParam'](_0x4e4c9b[_0x5e946f(0x3d0)]))==null?void 0x0:_0x33e966[_0x5e946f(0x425)])??null;}}),[]);return _0x230828(_0x430207,{'adapter':_0x3c2239,'editingService':_0x5c91a9,'editorUnitId':Vr,'positionOptions':_0x3fd060});});let Ea=class extends _0xe29064{constructor(_0x4eda1c,_0x495384){const _0x261d6a=_0x714ef0;super(),this['_componentManager']=_0x4eda1c,this[_0x261d6a(0x270)]=_0x495384,this['_registerIcons'](),this[_0x261d6a(0x1b6)]();}['_registerIcons'](){const _0x32c1d1=_0x714ef0;this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x3a6))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'ObjectLayersIcon':_0xe11253})),this[_0x32c1d1(0x270)]['has'](_0x32c1d1(0x376))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'FlipHorizontalIcon':_0x4b0f8a})),this['_iconManager'][_0x32c1d1(0x2c6)]('FlipVerticalIcon')||this['disposeWithMe'](this['_iconManager'][_0x32c1d1(0x268)]({'FlipVerticalIcon':_0x5e2243})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x3fc))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'BottomIcon':_0x5d75f2})),this[_0x32c1d1(0x270)]['has']('MoveDownIcon')||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)]['register']({'MoveDownIcon':_0x178ad9})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)]('MoveUpIcon')||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'MoveUpIcon':_0x1ab950})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x424))||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'ShapeFormatSettingIcon':_0x1496d5})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x279))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'TopmostIcon':_0x215261}));}[_0x714ef0(0x1b6)](){const _0x19b635=_0x714ef0;this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Lr,xa)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Rr,$i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Jr,ei)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](Yr,Zr)),this[_0x19b635(0x21f)][_0x19b635(0x200)](_0x4fdf51)||this['disposeWithMe'](this['_componentManager']['register'](_0x4fdf51,$r)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)]['register'](zr,Sa)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](di,hi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](ui,gi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](fi,_i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](pi,vi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Hr,_0xca529a)),this[_0x19b635(0x238)](this['_componentManager'][_0x19b635(0x268)](_0x19b635(0x3a7),Ta));}};Ea=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],Ea);let Da=class extends _0xe29064{constructor(_0x3af243,_0x44d1c7,_0x2480f6,_0x5a3741,_0x1ef198,_0x219aa8,_0x3c4848,_0x253023,_0x117c21){const _0x52c9fc=_0x714ef0;super();let _0x18a95b=_0x26d788=>{const _0x10d7d3=_0x5396;var _0x1ddf90,_0x19385b;return(((_0x1ddf90=_0x253023[_0x10d7d3(0x3d2)](new _0xe0fab9(_0x26d788['unitId'])['id']))==null?void 0x0:_0x1ddf90[_0x10d7d3(0x313)])??!0x0)&&(((_0x19385b=_0x253023[_0x10d7d3(0x3d2)](new _0x123e53(_0x26d788['unitId'],_0x26d788[_0x10d7d3(0x3d0)])['id']))==null?void 0x0:_0x19385b[_0x10d7d3(0x313)])??!0x0);},_0xf31427=_0x259060=>_0x259060[_0x52c9fc(0x21d)]&&_0x18a95b(_0x259060)?_0x2480f6[_0x52c9fc(0x3a4)](_0x259060[_0x52c9fc(0x277)],_0x259060['subUnitId'],_0x259060[_0x52c9fc(0x21d)])??null:null,_0xaf04d2=()=>{const _0xe1a568=_0x52c9fc;let _0x331605=_0x1ef198['getFocusDrawings'](),_0x38c548=_0x331605[_0xe1a568(0x1c3)]===0x1?_0x331605[0x0]:null;return(_0x38c548==null?void 0x0:_0x38c548['drawingType'])===_0x544f7a[_0xe1a568(0x2c1)]&&_0x38c548[_0xe1a568(0x277)]===_0x3af243[_0xe1a568(0x277)]?{'unitId':_0x38c548[_0xe1a568(0x277)],'subUnitId':_0x38c548[_0xe1a568(0x3d0)],'shapeId':_0x38c548[_0xe1a568(0x290)]}:null;};this[_0x52c9fc(0x238)](_0x3b4dfd(_0x3af243,_0x44d1c7,{'changes$':_0x252868(_0x1ef198[_0x52c9fc(0x3f5)],_0x5a3741['editingParams$'],_0x253023[_0x52c9fc(0x174)]),'isActive':()=>{const _0x2f21a1=_0x52c9fc;var _0x5c5e79;return((_0x5c5e79=_0x219aa8['getFocusedUnit']())==null?void 0x0:_0x5c5e79[_0x2f21a1(0x1b0)]())===_0x3af243[_0x2f21a1(0x277)]&&!_0x3c4848['getContextValue'](_0xd91ec1)&&_0x1ef198['getFocusDrawings']()[_0x2f21a1(0x162)](_0x2ea88d=>_0x2ea88d[_0x2f21a1(0x277)]===_0x3af243['unitId']);},'getSelectedTarget':_0xaf04d2,'getSource':()=>{let _0x4b7220=_0xaf04d2();return _0x4b7220?_0xf31427(_0x4b7220):null;},'getTarget':_0x3d70a1=>{const _0x3dfaf2=_0x52c9fc;let _0x12c5ef=_0x3af243[_0x3dfaf2(0x1d4)]['pick'](new _0x5be732(_0x3d70a1[_0x3dfaf2(0x1bb)],_0x3d70a1[_0x3dfaf2(0x309)]));if(!(_0x12c5ef instanceof J))return null;let _0x177a14={'unitId':_0x3af243[_0x3dfaf2(0x277)],'subUnitId':_0x12c5ef[_0x3dfaf2(0x3d0)],'shapeId':_0x12c5ef[_0x3dfaf2(0x21d)]};return _0x18a95b(_0x177a14)?_0x177a14:null;},'getShape':_0xf31427,'update':(_0x42bcc2,_0x566b82,_0x52ae6e)=>_0x117c21[_0x52c9fc(0x40b)](K['id'],{..._0x42bcc2,'shapeData':_0x52ae6e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x566b82}})}));}};Da=X([Y(0x1,_0x5c502f(_0x43a96f)),Y(0x2,_0x5c502f(_0x5b8f71)),Y(0x3,_0x5c502f($)),Y(0x4,_0x19d008),Y(0x5,_0x1d15d2),Y(0x6,_0x3ae1e3),Y(0x7,_0x9a590e),Y(0x8,_0x2b8a3e)],Da);const Oa=_0x714ef0(0x167);let ka=class extends _0xe29064{constructor(_0x1fd4d0,_0x19c499,_0x4d4dde,_0x307c43,_0x503135,_0x5ac407){const _0x4e91c4=_0x714ef0;super(),this['_menuManagerService']=_0x1fd4d0,this['_ribbonService']=_0x19c499,this['_drawingManagerService']=_0x4d4dde,this[_0x4e91c4(0x2be)]=_0x307c43,this[_0x4e91c4(0x2cf)]=_0x503135,this['_shapeFloatingToolbarService']=_0x5ac407,q(this,_0x4e91c4(0x31d),!0x1),this['_menuManagerService'][_0x4e91c4(0x377)](Hi),this[_0x4e91c4(0x238)](_0x128476(this['_drawingManagerService']['focus$'][_0x4e91c4(0x3e4)](()=>this['_update']()))),this['_update']();}[_0x714ef0(0x232)](){const _0x4f4ac1=_0x714ef0;this[_0x4f4ac1(0x243)][_0x4f4ac1(0x16c)](!0x1,Oa),this[_0x4f4ac1(0x255)](),super[_0x4f4ac1(0x232)]();}[_0x714ef0(0x15e)](){const _0x43b650=_0x714ef0;var _0x32e311;let _0x2be239=this[_0x43b650(0x20f)][_0x43b650(0x3dc)](),_0x4a83a5=_0x2be239['length']===0x1?_0x2be239[0x0]:void 0x0;if((_0x4a83a5==null?void 0x0:_0x4a83a5['drawingType'])!==_0x544f7a[_0x43b650(0x2c1)]||this[_0x43b650(0x2be)]['getUnitType'](_0x4a83a5[_0x43b650(0x277)])!==_0x58aa7b['UNIVER_SHEET']){this[_0x43b650(0x243)][_0x43b650(0x16c)](!0x1,Oa),this[_0x43b650(0x255)]();return;}let _0xe48f26=(_0x32e311=this[_0x43b650(0x2cf)][_0x43b650(0x2af)](_0x4a83a5[_0x43b650(0x277)]))==null?void 0x0:_0x32e311[_0x43b650(0x299)][_0x43b650(0x1c1)](),_0x342d7d=_0x3bb4cc(_0xe48f26)==='isolated';this[_0x43b650(0x243)][_0x43b650(0x16c)](_0x342d7d,Oa),_0x342d7d?this[_0x43b650(0x255)]():this[_0x43b650(0x31d)]||(this[_0x43b650(0x31d)]=!0x0,this[_0x43b650(0x26e)][_0x43b650(0x1e2)](Br,{'activate':!0x0}));}[_0x714ef0(0x255)](){const _0xdd0517=_0x714ef0;this[_0xdd0517(0x31d)]&&(this[_0xdd0517(0x31d)]=!0x1,this[_0xdd0517(0x26e)][_0xdd0517(0x325)](Br),this[_0xdd0517(0x26e)][_0xdd0517(0x1fc)]([]));}};ka=X([Y(0x0,_0x308400),Y(0x1,_0x1dad42),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x1e1faa),Y(0x5,_0x5c502f(_0x21f7f2))],ka);let Aa=class extends _0x4a3283{constructor(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8){super(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x5c502f(_0x50e1f3)),Y(0x2,_0x5c502f(_0x3b5158)),Y(0x3,_0x5c502f(_0x533da4)),Y(0x4,_0x2b8a3e),Y(0x5,_0x5c502f(_0x13e37b)),Y(0x6,_0x5c502f(_0x26baa8)),Y(0x7,_0x5c502f(_0x18dd84)),Y(0x8,_0x5c502f(_0x14fc5b)),Y(0x9,_0x5c502f($))],Aa);let ja=class extends _0x1a7486{constructor(_0x4a8efb,_0x4cd92c,_0x3923b1,_0x2a8aa9,_0x3ab342){const _0x5ac9d4=_0x714ef0;super(_0x4a8efb,_0x4cd92c,{'editing$':_0x3923b1['editingParams$'],'resolve':_0x20f8e6=>{const _0x27e755=_0x5396;var _0x5789d2,_0x470fba,_0x3b8df7;let _0x763e78=new _0x5be732(_0x20f8e6[_0x27e755(0x1bb)],_0x20f8e6[_0x27e755(0x309)]),_0xf76910=((_0x5789d2=_0x4a8efb[_0x27e755(0x1d4)][_0x27e755(0x2c3)](_0x763e78))==null?void 0x0:_0x5789d2[_0x27e755(0x393)](_0x763e78))??_0x763e78,_0x19195a=_0x296a42(_0x4a8efb[_0x27e755(0x1d4)]['pick'](_0x763e78)??null,_0xf76910);if(!(_0x19195a instanceof J))return null;let _0x7f9f44=_0x19195a[_0x27e755(0x24e)](_0xf76910);if(!_0x7f9f44)return null;let _0x8c634b=_0x19195a,_0x39d6d0={'componentKey':_0x2c3aaf[_0x27e755(0x433)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x4cd92c[_0x27e755(0x362)]()};return{'object':_0x19195a,'info':{..._0x7f9f44,'unitId':_0x19195a['unitId'],'subUnitId':_0x19195a[_0x27e755(0x3d0)],'shapeKey':_0x19195a['oKey'],'readonly':!0x0,'copyable':((_0x470fba=_0x3ab342[_0x27e755(0x3d2)](new _0x324600(_0x19195a[_0x27e755(0x277)])['id']))==null?void 0x0:_0x470fba[_0x27e755(0x313)])!==!0x1&&((_0x3b8df7=_0x3ab342[_0x27e755(0x3d2)](new _0x51eb20(_0x19195a[_0x27e755(0x277)],_0x19195a[_0x27e755(0x3d0)])['id']))==null?void 0x0:_0x3b8df7[_0x27e755(0x313)])!==!0x1},'attachPopup':()=>_0x2a8aa9[_0x27e755(0x1d2)](_0x8c634b,_0x39d6d0)};}}),this['disposeWithMe'](_0x4a8efb[_0x5ac9d4(0x3d1)][_0x5ac9d4(0x434)][_0x5ac9d4(0x3e4)](()=>this[_0x5ac9d4(0x1d6)]()));}};ja=X([Y(0x1,_0x5c502f(_0x26baa8)),Y(0x2,_0x5c502f($)),Y(0x3,_0x5c502f(_0x2373db)),Y(0x4,_0x9a590e)],ja);let Ma=class extends _0xe29064{constructor(_0xd62fac,_0x560981,_0x44c90e,_0x133d49,_0x163ce7,_0x44fc08,_0x52d935,_0x42da18,_0x58bfbd,_0x5a0f61,_0x49176f){const _0x3991ed=_0x714ef0;super(),this[_0x3991ed(0x2be)]=_0xd62fac,this[_0x3991ed(0x3c8)]=_0x560981,this['_menuManagerService']=_0x44c90e,this[_0x3991ed(0x251)]=_0x133d49,this[_0x3991ed(0x331)]=_0x163ce7,this[_0x3991ed(0x1a7)]=_0x44fc08,this[_0x3991ed(0x20f)]=_0x52d935,this[_0x3991ed(0x247)]=_0x42da18,this['_contextService']=_0x58bfbd,this['_renderManagerService']=_0x5a0f61,this[_0x3991ed(0x26b)]=_0x49176f,q(this,_0x3991ed(0x1dc),null),q(this,_0x3991ed(0x39f),null),q(this,_0x3991ed(0x2d7),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x3991ed(0x1af),null),q(this,_0x3991ed(0x275),[]),this[_0x3991ed(0x422)](),this[_0x3991ed(0x238)](this[_0x3991ed(0x2be)][_0x3991ed(0x30d)](_0x58aa7b[_0x3991ed(0x222)])[_0x3991ed(0x3e4)](_0x2f1b04=>{const _0x277d13=_0x3991ed;if(!_0x2f1b04){var _0x10293d;(_0x10293d=this[_0x277d13(0x1dc)])==null||_0x10293d['dispose']();}})),this[_0x3991ed(0x18f)](),this[_0x3991ed(0x177)](),this[_0x3991ed(0x238)](this['_shapeTextEditingService']['editingParams$'][_0x3991ed(0x3e4)](_0x117bf1=>{const _0x178220=_0x3991ed;_0x117bf1&&this[_0x178220(0x3a2)]();}));}[_0x714ef0(0x422)](){const _0x2d8462=_0x714ef0;this[_0x2d8462(0x369)]['mergeMenu'](Wi);}['initShapePopupMenu'](){const _0x12259c=_0x714ef0;this[_0x12259c(0x1af)]||=this[_0x12259c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x12259c(0x222)],_0x2d4054=>this[_0x12259c(0x305)](_0x2d4054)));}[_0x714ef0(0x417)](_0x3ef4c0,_0x2a7090,_0x3e4c95){const _0x4d0eaa=_0x714ef0;let _0x19f785=this['_sheetsShapeService']['getShapeTypeById'](_0x3ef4c0,_0x2a7090,_0x3e4c95),_0x51052c=this[_0x4d0eaa(0x251)][_0x4d0eaa(0x3a4)](_0x3ef4c0,_0x2a7090,_0x3e4c95);return _0x19f785!==void 0x0&&_0x51052c!==void 0x0?{'shapeData':_0x51052c,'shapeId':_0x3e4c95,'shapeType':_0x19f785,'unitId':_0x3ef4c0,'subUnitId':_0x2a7090,'version':this[_0x4d0eaa(0x2f4)],'disableShapeOption':!0x1}:null;}[_0x714ef0(0x3a2)](){const _0x560da7=_0x714ef0;this[_0x560da7(0x275)][_0x560da7(0x185)](_0x4bb67c=>_0x4bb67c[_0x560da7(0x232)]()),this[_0x560da7(0x275)]['length']=0x0;}[_0x714ef0(0x305)](_0x4c6a9c){const _0x38a3ed=_0x714ef0;let _0x5c439b=new _0x5941cd();return _0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1c5)][_0x38a3ed(0x3e4)](()=>{const _0xd47fb2=_0x38a3ed;let _0x14ea7f=_0x4c6a9c[_0xd47fb2(0x319)]();if(this[_0xd47fb2(0x3a2)](),this[_0xd47fb2(0x2d7)]||_0x14ea7f[_0xd47fb2(0x296)]>0x1)return;let _0x571d60=_0x14ea7f['values']()[_0xd47fb2(0x3ee)]()[_0xd47fb2(0x313)];if(!_0x571d60)return;let _0x5a913e=this[_0xd47fb2(0x20f)][_0xd47fb2(0x208)](_0x571d60['oKey']);if(!_0x5a913e||_0x5a913e['drawingType']!==_0x544f7a[_0xd47fb2(0x2c1)])return;let {unitId:_0x49e3e1,subUnitId:_0x4418b0,drawingId:_0x5e72bd,drawingType:_0x34e64b}=_0x5a913e,_0xad6dd=this['_getShapeInfo'](_0x49e3e1,_0x4418b0,_0x5e72bd);if(!_0xad6dd)return;this[_0xd47fb2(0x1a2)][_0xd47fb2(0x237)](_0x435760,!0x0);let _0x375132=this[_0xd47fb2(0x2cf)][_0xd47fb2(0x2af)](_0x49e3e1),_0x4fba71=((_0x375132==null?void 0x0:_0x375132['isMainScene'])===!0x1?_0x375132['with'](_0x2373db):this[_0xd47fb2(0x247)])[_0xd47fb2(0x1d2)](_0x571d60,{'componentKey':zr,'direction':_0xd47fb2(0x245),'offset':[0x0,_0x571bee],'extraProps':{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd,'drawingType':_0x34e64b,'shapeType':_0xad6dd[_0xd47fb2(0x3b7)],'shapeData':_0xad6dd['shapeData']}});this[_0xd47fb2(0x275)]['push'](this['disposeWithMe'](_0x4fba71)),this[_0xd47fb2(0x20f)][_0xd47fb2(0x3dc)]()[_0xd47fb2(0x1f7)](_0x97c6f=>_0x97c6f[_0xd47fb2(0x277)]===_0x49e3e1&&_0x97c6f[_0xd47fb2(0x3d0)]===_0x4418b0&&_0x97c6f[_0xd47fb2(0x290)]===_0x5e72bd)||this[_0xd47fb2(0x20f)][_0xd47fb2(0x36f)]([{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd}]);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1e5)][_0x38a3ed(0x3e4)](()=>{const _0x42d8bc=_0x38a3ed;this[_0x42d8bc(0x3a2)](),this[_0x42d8bc(0x1a2)][_0x42d8bc(0x237)](_0x435760,!0x1),this[_0x42d8bc(0x20f)][_0x42d8bc(0x36f)](null);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c['changing$'][_0x38a3ed(0x3e4)](()=>{const _0x21f931=_0x38a3ed;this[_0x21f931(0x3a2)]();})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x320)]['subscribe'](()=>{const _0x31bfd5=_0x38a3ed;this[_0x31bfd5(0x3a2)]();})),_0x128476(()=>{const _0x10044b=_0x38a3ed;_0x5c439b[_0x10044b(0x232)](),this[_0x10044b(0x3a2)]();});}['_registerOperations'](){const _0x3af358=_0x714ef0;this[_0x3af358(0x238)](this[_0x3af358(0x1a7)][_0x3af358(0x40f)](_0x3cc638=>{const _0x23bd7d=_0x3af358;if(_0x3cc638['id']===Wr['id']){let {unitId:_0x22c0a3,subUnitId:_0x1a8a0a,drawingId:_0x18f77c}=_0x3cc638[_0x23bd7d(0x387)];this['_shapeEditPanelVersion']+=0x1,this[_0x23bd7d(0x39f)]=this[_0x23bd7d(0x417)](_0x22c0a3,_0x1a8a0a,_0x18f77c),this[_0x23bd7d(0x3a2)](),this[_0x23bd7d(0x30b)]();}if(_0x3cc638['id']===ya['id']&&(this[_0x23bd7d(0x39f)]=null,this[_0x23bd7d(0x353)]()),_0x3cc638['id']===_0x197dab['id']){let {unitId:_0x5d6445,subUnitId:_0xfdad42,shapeId:_0x2060c0}=_0x3cc638['params'];if(this[_0x23bd7d(0x39f)]&&this['_activeShapeInfo'][_0x23bd7d(0x21d)]===_0x2060c0){let _0x180ae2=this[_0x23bd7d(0x417)](_0x5d6445,_0xfdad42,_0x2060c0);_0x180ae2&&(this[_0x23bd7d(0x2f4)]+=0x1,_0x180ae2['version']=this[_0x23bd7d(0x2f4)],this[_0x23bd7d(0x39f)]=_0x180ae2,this[_0x23bd7d(0x2d7)]&&this[_0x23bd7d(0x30b)]());}}})),this[_0x3af358(0x238)](this[_0x3af358(0x20f)][_0x3af358(0x3f5)]['subscribe'](_0x277d21=>{const _0x567bf0=_0x3af358;if(this[_0x567bf0(0x2d7)]===!0x1)return;if(_0x277d21[_0x567bf0(0x1c3)]===0x0){this[_0x567bf0(0x39f)]=null,this[_0x567bf0(0x353)]();return;}if(_0x277d21[_0x567bf0(0x1c3)]===0x1&&_0x277d21[0x0][_0x567bf0(0x198)]===_0x544f7a['DRAWING_SHAPE']&&(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)])){this['_openShapeEditPanel']();return;}let _0x111efc=_0x277d21[_0x567bf0(0x3c0)](_0x4f989e=>_0x4f989e['drawingType']===_0x544f7a[_0x567bf0(0x2c1)]);if(_0x277d21[_0x567bf0(0x1c3)]>0x1&&_0x111efc[_0x567bf0(0x1c3)]===_0x277d21[_0x567bf0(0x1c3)]){if(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0]['unitId'],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this['_activeShapeInfo']){this[_0x567bf0(0x30b)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)]){this[_0x567bf0(0x39f)]['disableShapeOption']=!0x0,this[_0x567bf0(0x30b)]();return;}}this[_0x567bf0(0x353)]();}));}['_openShapeEditPanel'](){const _0x25083d=_0x714ef0;this['_activeShapeInfo']&&(this[_0x25083d(0x1dc)]=this[_0x25083d(0x3c8)][_0x25083d(0x249)]({'id':Lr,'header':{'title':this[_0x25083d(0x331)]['t'](_0x25083d(0x35d))},'width':0x184,'children':{'label':Lr,...this[_0x25083d(0x39f)]},'onClose':()=>{const _0x55ce69=_0x25083d;this[_0x55ce69(0x20f)][_0x55ce69(0x36f)](null),this['_contextService'][_0x55ce69(0x237)](_0x435760,!0x1),this[_0x55ce69(0x1dc)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xa5d0e9=_0x714ef0;this[_0xa5d0e9(0x2d7)]=!0x1,this[_0xa5d0e9(0x3c8)][_0xa5d0e9(0x2ef)](Lr),this[_0xa5d0e9(0x1dc)]=null,this[_0xa5d0e9(0x1a2)][_0xa5d0e9(0x237)](_0x435760,!0x1),this[_0xa5d0e9(0x20f)]['focusDrawing'](null);}};Ma=X([Y(0x0,_0x1d15d2),Y(0x1,_0x5c502f(_0x3d8cd5)),Y(0x2,_0x308400),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x30b59c)),Y(0x5,_0x2b8a3e),Y(0x6,_0x19d008),Y(0x7,_0x5c502f(_0x2373db)),Y(0x8,_0x3ae1e3),Y(0x9,_0x1e1faa),Y(0xa,_0x5c502f($))],Ma);let Na=class extends _0x14d9ad{constructor(_0x3422c8=Yi,_0x378043,_0x706a40,_0x4bd741,_0x5b7d70){const _0x3f6bc2=_0x714ef0;super(),this[_0x3f6bc2(0x1c6)]=_0x3422c8,this[_0x3f6bc2(0x210)]=_0x378043,this[_0x3f6bc2(0x1a7)]=_0x706a40,this[_0x3f6bc2(0x1ed)]=_0x4bd741,this[_0x3f6bc2(0x2cf)]=_0x5b7d70;let {..._0x4a48c6}=_0x1a3e4c({},Yi,this['_config']);this[_0x3f6bc2(0x1ed)]['setConfig'](Ji,_0x4a48c6),this[_0x3f6bc2(0x2f5)]();}[_0x714ef0(0x3bb)](){const _0x44168c=_0x714ef0;this[_0x44168c(0x2cf)][_0x44168c(0x220)](_0x58aa7b[_0x44168c(0x2aa)],[Aa]),_0x6cf6c(this[_0x44168c(0x210)],[[Ma],[ca],[Z],[ha]]);}[_0x714ef0(0x26c)](){const _0x506ede=_0x714ef0;this[_0x506ede(0x210)][_0x506ede(0x2dd)](Ma)[_0x506ede(0x177)]();}[_0x714ef0(0x397)](){const _0x17e3a2=_0x714ef0;[[da],[Pr],[fa]][_0x17e3a2(0x185)](_0x2a140e=>this[_0x17e3a2(0x210)][_0x17e3a2(0x25e)](_0x2a140e)),_0x6cf6c(this[_0x17e3a2(0x210)],[[fa],[Pr]]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[da]),this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Xi]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b['UNIVER_SHEET'],[ma]),this[_0x17e3a2(0x2cf)]['registerRenderModule'](_0x58aa7b['UNIVER_SHEET'],[na]),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[ja])),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Da]));}[_0x714ef0(0x3b5)](){const _0x13e78a=_0x714ef0;this['_injector'][_0x13e78a(0x25e)]([Ea]),this[_0x13e78a(0x210)][_0x13e78a(0x2dd)](Ea);let _0x2c07a1=this['_injector'];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x13e78a(0x185)](_0x286bef=>_0x2c07a1[_0x13e78a(0x25e)](_0x286bef)),_0x6cf6c(this[_0x13e78a(0x210)],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x714ef0(0x2f5)](){const _0x4a75cf=_0x714ef0;[Ir,K,ya,Wr,Ur,Fr,Kr,qr]['forEach'](_0x3da684=>this[_0x4a75cf(0x238)](this[_0x4a75cf(0x1a7)][_0x4a75cf(0x334)](_0x3da684)));}};q(Na,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(Na,_0x714ef0(0x27b),'SHEET_SHAPE_UI_PLUGIN'),q(Na,_0x714ef0(0x17c),Gi),q(Na,_0x714ef0(0x3c6),Ki),Na=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x2cd028,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x33abc1,_0x178f75,_0x1542ac,_0x28f3b2),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|