@univerjs-pro/sheets-shape-ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/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 +20 -20
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x232df7=_0x2028;(function(_0x320413,_0x285452){const _0x200e21=_0x2028,_0x5e796f=_0x320413();while(!![]){try{const _0x1e4932=parseInt(_0x200e21(0x32e))/0x1+-parseInt(_0x200e21(0x15c))/0x2*(-parseInt(_0x200e21(0x388))/0x3)+parseInt(_0x200e21(0x258))/0x4*(parseInt(_0x200e21(0x294))/0x5)+-parseInt(_0x200e21(0x2dd))/0x6*(parseInt(_0x200e21(0x321))/0x7)+-parseInt(_0x200e21(0x14b))/0x8*(parseInt(_0x200e21(0x151))/0x9)+parseInt(_0x200e21(0x386))/0xa*(parseInt(_0x200e21(0x225))/0xb)+parseInt(_0x200e21(0x10f))/0xc;if(_0x1e4932===_0x285452)break;else _0x5e796f['push'](_0x5e796f['shift']());}catch(_0x438cce){_0x5e796f['push'](_0x5e796f['shift']());}}}(_0x1606,0x576ec));import{FormulaShapeAnimationController as _0x19210e,MobileShapeEditorService as _0x8e92cf,SHAPE_CHANGE_PICKER_COMPONENT as _0x1b9682,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x16a405,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x54a031,ShapeEditPanel as _0x1f5908,ShapeFloatingToolbar as _0xaf994a,ShapeFloatingToolbarService as _0xee6e88,ShapeFloatingToolbarToggleFactory as _0x1bd401,ShapeFormulaRibbonControl as _0x13101b,ShapeGroupEnum as _0x56b27d,ShapePickerDropdown as _0x5bb7e1,ShapePickerPanel as _0x2c8a8a,ShapeQuickStyleGallery as _0x5cc351,ShapeStyleRibbonControl as _0x54731a,ShapeTextEditorContainer as _0x3977ad,ShapeTextFloatMenuRenderControllerBase as _0x553e20,ShapeTextFloatToolbar as _0x5dc698,ShapeTextHyperLinkHoverController as _0x1e07e2,ShapeTextHyperLinkInfo as _0x5c9174,ShapeTextHyperLinkPopupService as _0x258cdf,ShapeTextRibbonControl as _0x4c605a,ToggleShapeFloatingToolbarOperation as _0x1f2f61,UniverShapeEditorMobileUIPlugin as _0x42ad3b,UniverShapeEditorUIPlugin as _0x52023d,activateDrawingObject as _0x10780b,bindRenderTransformerLifecycle as _0xd29261,buildShapeTextDataUpdate as _0x2a4875,clearActiveDrawingObjects as _0x4e12a4,createShapeTextHyperLinkRegions as _0xbb0e6c,drawFormulaShapeAnimationLayers as _0x3d37bc,getDrawingTypeNameKey as _0xa2ace3,getTextModel as _0x1f9271,getTextStyle as _0x37bae9,normalizeShapeTextModel as _0x1bba65,plainShapeTextToDocumentData as _0x3d4a09,prepareShapeTextDocumentData as _0x3da194,registerShapeFormatPainter as _0xf449a5,resolveFormulaShapeAutoFitSize as _0x359b16,resolveShapeContextualRibbonHostMode as _0x2a5096,resolveShapeTextDocumentPageHeight as _0x12abcc,resolveShapeTextDocumentRenderLayout as _0x171327,resolveShapeTextEditorBehaviorShapeData as _0x35ac29,resolveShapeTextEditorWrapStrategy as _0x4819b1,resolveShapeTextHyperLinkAt as _0x1dbce6,resolveShapeTextHyperLinkObject as _0x33a154,shouldAllowShapeTextEditorHostSizeShrink as _0x35f3c5,shouldClipShapeTextDocument as _0x34a45a,useFormulaShapeToolbar as _0x5433fa}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x2359f7,ContextMenuGroup as _0x1f1f30,ContextMenuPosition as _0x29b253,FloatingObjectToolbarPosition as _0x28d51f,FormatPainterSessionService as _0x37b7ed,IMenuManagerService as _0x4cc398,IRibbonService as _0x2fcf59,ISidebarService as _0x5c788d,IconManager as _0x22aeed,MenuItemType as _0x27279c,MenuManagerPosition as _0x541bd0,RibbonInsertGroup as _0x3a3389,UndoRedoGroupService as _0x49cd39,UniverMobileUIPlugin as _0x6ff3b1,getMenuHiddenObservable as _0x2c14fa,useDependency as _0x3a3b93,useObservable as _0xe01eb2}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x5d44cb,ImageSourceTypeEnum as _0x456deb,ShapeArrowSizeEnum as _0x1dac15,ShapeArrowTypeEnum as _0x152eab,ShapeDefaultConfig as _0x4c61a8,ShapeFillEnum as _0x44f004,ShapeLineTypeEnum as _0x5053e4,ShapeModel as _0x243526,ShapeRenderModeEnum as _0x5a1729,ShapeTypeEnum as _0xe73d9c,computeConnectorRouteLayout as _0x3cbafa,getBasicShapeRotateBound as _0x109e70,isConnectorShape as _0x52f76f,isCurvedConnectorShape as _0x2be336,routeConnectorLineShape as _0x201266}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x907d04,UniverShapeEditorPlugin as _0x4831fe,applyQuickStyleToShapeData as _0x413e75,cloneShapeDataForType as _0x294ee8,createShapeFormulaDocument as _0x52663b,createShapeTextBoxShapeData as _0x25f18f,getShapeQuickStylePreset as _0xff4b3b,getShapeQuickStyleType as _0x11da62,resolveActiveShapeQuickStylePresetId as _0x553651}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x143510,InsertSheetsShapeMutation as _0x5cdf0c,RemoveSheetsShapeMutation as _0x10857b,SetShapeDrawingDataCommand as _0x37673b,SheetsShapeService as _0x5c2303,ToggleSheetsShapeFlipCommand as _0x1f7ef3,UniverSheetsShapePlugin as _0x1fa068,UpdateConnectorRelationCommand as _0xa22292,UpdateLineShapeResizeCommand as _0x44659f,UpdateSheetsShapeDataMutation as _0x4af43a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x32c897,CommandType as _0x33172f,DependentOn as _0x18c7c6,Disposable as _0x2bb0e8,DisposableCollection as _0x498b31,DocumentDataModel as _0x228348,DrawingTypeEnum as _0x190419,FOCUSING_COMMON_DRAWINGS as _0x20a63c,FOCUSING_SHAPE_TEXT_EDITOR as _0x29a73c,HorizontalAlign as _0x4dc457,ICommandService as _0x1b156e,IConfigService as _0x40ca43,IContextService as _0x49d586,IImageIoService as _0xe46211,IPermissionService as _0x300477,IURLImageService as _0x38d6c5,IUndoRedoService as _0x1f9c2c,IUniverInstanceService as _0x304294,Inject as _0x229e82,Injector as _0x3fb460,LocaleService as _0x16b0b7,Plugin as _0x407af,UniverInstanceType as _0xe0c4a6,VerticalAlign as _0x2cccb9,createInternalEditorID as _0x20e235,generateRandomId as _0x3a0ce3,merge as _0x32987f,registerDependencies as _0x365af4,toDisposable as _0x169987,touchDependencies as _0x3ece4a}from'@univerjs/core';import{CopySheetCommand as _0xbddc40,RemoveSheetCommand as _0x8eced1,SheetInterceptorService as _0x427085,SheetPermissionCheckController as _0x2c9f0d,SheetSkeletonService as _0x117a83,SheetsSelectionsService as _0x22a39b,UniverSheetsPlugin as _0x7f5329,WorkbookCopyPermission as _0x429dc6,WorkbookEditablePermission as _0x48f387,WorksheetCopyPermission as _0x102e28,WorksheetEditPermission as _0x459023,attachRangeWithCoord as _0x3b9770,discreteRangeToRange as _0x3062da,getSheetCommandTarget as _0x2dc1b6}from'@univerjs/sheets';import{IDrawingManagerService as _0x3deb35,SetDrawingSelectedOperation as _0x2b2ab1,UniverDrawingPlugin as _0x2036ef,getDrawingShapeKeyByDrawingSearch as _0x3023e5,getOrCreateDrawingCopyPlan as _0x118346}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1d110f,Circle as _0x4a02a1,DRAWING_OBJECT_LAYER_INDEX as _0x4489b8,DocumentSkeleton as _0x2bf98e,DocumentViewModel as _0x2437bc,Documents as _0x25e368,IRenderManagerService as _0x422c1e,Image as _0x2cc9fc,RENDER_CLASS_TYPE as _0x432f17,SHEET_VIEWPORT_KEY as _0x1e57e3,Shape as _0x147ce5,Transform as _0x9667eb,UniverRenderEnginePlugin as _0x524cd0,Vector2 as _0x17a8a4}from'@univerjs/engine-render';import{COPY_TYPE as _0x536860,ISheetClipboardService as _0x2be9d9,PREDEFINED_HOOK_NAME as _0x2bfd21,SheetCanvasPopManagerService as _0x5969c8,SheetPrintInterceptorService as _0x3e6e4c,SheetScrollManagerService as _0x5ccab7,SheetSkeletonManagerService as _0x54a66d,UniverSheetsMobileUIPlugin as _0x281d56,UniverSheetsUIPlugin as _0x296a09,deriveStateFromActiveSheet$ as _0x6c9f0d,getCurrentRangeDisable$ as _0x5af922,getViewportByCell as _0x56d9fe}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x519e70,EMPTY as _0x5f31a2,Observable as _0x55611e,map as _0x1e2b1f,merge as _0x6568cf,of as _0x24a70f,startWith as _0x56d968,switchMap as _0x4faa1d}from'rxjs';import{DrawingCommonPanel as _0x4f1e4b,DrawingImageClipService as _0x3a97fd,DrawingRenderService as _0x40a01d,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x48d256,MobileObjectListPanel as _0xaa2832,OBJECT_LIST_FLOATING_SECTION_ID as _0x255c3c,ObjectListPanelBase as _0x31400b,UniverDrawingUIPlugin as _0x106471,getCurrentUnitInfo as _0x15a737,getObjectListPanelSectionIdForDrawingType as _0x33d0f6,insertGroupObject as _0x4e0f39}from'@univerjs/drawing-ui';import{MobileDropdown as _0x217736}from'@univerjs/design';import{Fragment as _0xe1ac43,jsx as _0x386576,jsxs as _0x61d32d}from'react/jsx-runtime';import{DrawingApplyType as _0x4be448,ISheetDrawingService as _0x4458c8,RemoveSheetDrawingCommand as _0x29b5e1,SetDrawingApplyMutation as _0x5097ca,SetDrawingArrangeCommand as _0x535c91,SetSheetDrawingCommand as _0x47d60a,UniverSheetsDrawingPlugin as _0x434230,transformToAxisAlignPosition as _0x544983,transformToDrawingPosition as _0x1f42db}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x42123a}from'@univerjs-pro/license';import{DocInterceptorService as _0x2dfb69,DocSelectionManagerService as _0x25b5fd,UniverDocsPlugin as _0x47964d}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x9982b4,DocEventManagerService as _0x3fd001,DocRenderController as _0x312210,DocSelectionRenderService as _0x5f1788,UniverDocsUIPlugin as _0xc91a83}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x4ef3b5,SheetsDrawingGroupCopyPasteController as _0x344b7d,UniverSheetsDrawingMobileUIPlugin as _0x212ef7,UniverSheetsDrawingUIPlugin as _0x372423}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x7cbde6,FlipHorizontalIcon as _0x3c3c9d,FlipVerticalIcon as _0x134503,MoveDownIcon as _0x1cd4bd,MoveUpIcon as _0x5818fa,ObjectLayersIcon as _0x562db7,ShapeFormatSettingIcon as _0x4a1cd8,TopmostIcon as _0xc502f4}from'@univerjs/icons';import{memo as _0x979643,useEffect as _0x3ac889,useMemo as _0x53eb09,useReducer as _0x1268dd,useState as _0x2c04bf}from'react';function Er(_0x21aad9,_0x231ea7){const _0x34b8aa=_0x2028;let _0x226df3={};for(let _0x12a756 of Object[_0x34b8aa(0x1be)](_0x231ea7)){let _0x56fcad=_0x231ea7[_0x12a756],_0x18ac38=_0x21aad9[_0x12a756];_0x226df3[_0x12a756]=_0x18ac38===void 0x0?void 0x0:typeof _0x56fcad=='object'&&_0x56fcad&&!Array[_0x34b8aa(0x265)](_0x56fcad)&&typeof _0x18ac38=='object'&&_0x18ac38&&!Array[_0x34b8aa(0x265)](_0x18ac38)?Er(_0x18ac38,_0x56fcad):_0x18ac38;}return _0x226df3;}const K={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1b5),'handler':(_0xcdd4ea,_0x436419)=>{const _0x33acae=_0x232df7;let _0x22c442=_0xcdd4ea[_0x33acae(0x14a)](_0x5c2303),{unitId:_0x12ffdd,subUnitId:_0x5659b7,shapeType:_0x4be46a,shapeId:_0x544694,shapeData:_0x550b7a,replaceShapeData:_0x120f66,oldShapeJSON:_0x4b56e5}=_0x436419;if(!_0x22c442['getShapeModel'](_0x12ffdd,_0x5659b7,_0x544694))return!0x1;let _0x32d37a=_0xcdd4ea[_0x33acae(0x14a)](_0x1b156e),_0x58fe22=_0xcdd4ea[_0x33acae(0x14a)](_0x1f9c2c),{oldShapeType:_0x494e5b,oldShapeData:_0x2ae54b={}}=_0x4b56e5,_0x49d3da=_0x120f66?_0x2ae54b:Er(_0x2ae54b,_0x550b7a||{}),_0x1c39aa={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x4be46a,'shapeData':_0x550b7a,'replace':_0x120f66}},_0x4eb22f={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x494e5b,'shapeData':_0x49d3da,'replace':_0x120f66}};return _0x32d37a[_0x33acae(0x325)](_0x1c39aa['id'],_0x1c39aa[_0x33acae(0x1aa)])?(_0x58fe22[_0x33acae(0x3a4)]({'unitID':_0x12ffdd,'undoMutations':[_0x4eb22f],'redoMutations':[_0x1c39aa]}),!0x0):!0x1;}};function Dr(_0x22b17f,_0x2dca8d,_0x4be724,_0x25b7c0,_0x5b4844,_0x5ebf02){const _0x5d05d5=_0x232df7;let _0x239268={'unitId':_0x2dca8d,'subUnitId':_0x4be724,'shapeId':_0x25b7c0,'shapeData':_0x5ebf02,'oldShapeJSON':_0x5b4844};return _0x22b17f[_0x5d05d5(0x286)](K['id'],_0x239268);}function Or(_0x3156a4,_0x34bd54,_0x186dad,_0x3ba8e0,_0x4b2b9f,_0x31b005){const _0x33657f=_0x232df7;let _0x5e2e61={'unitId':_0x34bd54,'subUnitId':_0x186dad,'shapeId':_0x3ba8e0,'shapeData':_0x31b005,'oldShapeJSON':_0x4b2b9f};return _0x3156a4[_0x33657f(0x286)](K['id'],_0x5e2e61);}function kr(_0x1d5adf){'@babel/helpers - typeof';const _0x2a4293=_0x232df7;return kr=typeof Symbol==_0x2a4293(0x1b4)&&typeof Symbol[_0x2a4293(0x13e)]==_0x2a4293(0x10b)?function(_0x37b987){return typeof _0x37b987;}:function(_0x31e126){const _0x24bf0e=_0x2a4293;return _0x31e126&&typeof Symbol=='function'&&_0x31e126[_0x24bf0e(0x1a4)]===Symbol&&_0x31e126!==Symbol[_0x24bf0e(0x1e4)]?'symbol':typeof _0x31e126;},kr(_0x1d5adf);}function Ar(_0x222cb0,_0x5a14a4){const _0xa6153f=_0x232df7;if(kr(_0x222cb0)!=_0xa6153f(0x392)||!_0x222cb0)return _0x222cb0;var _0x1240a4=_0x222cb0[Symbol[_0xa6153f(0x2b7)]];if(_0x1240a4!==void 0x0){var _0x40dc37=_0x1240a4[_0xa6153f(0x2e2)](_0x222cb0,_0x5a14a4||_0xa6153f(0x16a));if(kr(_0x40dc37)!='object')return _0x40dc37;throw TypeError(_0xa6153f(0x11e));}return(_0x5a14a4===_0xa6153f(0x1ef)?String:Number)(_0x222cb0);}function jr(_0x5bf273){const _0x51667a=_0x232df7;var _0x5895b8=Ar(_0x5bf273,_0x51667a(0x1ef));return kr(_0x5895b8)==_0x51667a(0x10b)?_0x5895b8:_0x5895b8+'';}function q(_0x4e47cc,_0x2afd8c,_0x579383){const _0x1385ca=_0x232df7;return(_0x2afd8c=jr(_0x2afd8c))in _0x4e47cc?Object[_0x1385ca(0x33a)](_0x4e47cc,_0x2afd8c,{'value':_0x579383,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e47cc[_0x2afd8c]=_0x579383,_0x4e47cc;}function Mr(_0x2a2dbe,_0x4c5893,_0x5d17bf){const _0x51bca1=_0x232df7;let _0x4ed030={..._0x4c5893,'dataModel':{..._0x4c5893[_0x51bca1(0x137)]??{},..._0x5d17bf?{'doc':_0x5d17bf}:null}},_0x26cde7=_0x35ac29(_0x2a2dbe,_0x4ed030),_0x121921=_0x4819b1(_0x26cde7);return{'clip':_0x34a45a(_0x26cde7,_0x121921),'wrapStrategy':_0x121921};}var J=class extends _0x147ce5{constructor(_0x836b17,_0x54d8f3){const _0x5c17a0=_0x232df7;super(_0x836b17,_0x54d8f3),q(this,_0x5c17a0(0x39e),[]),q(this,'_props',void 0x0),q(this,_0x5c17a0(0x132),new _0x19210e(()=>this[_0x5c17a0(0x390)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x5c17a0(0x13d),!0x0),q(this,_0x5c17a0(0xeb),_0x190419[_0x5c17a0(0x21d)]),q(this,'isDrawingObject',!0x0),this[_0x5c17a0(0x27d)]={..._0x54d8f3},this['_formulaAnimation'][_0x5c17a0(0x2fa)](_0x54d8f3[_0x5c17a0(0x157)],_0x54d8f3[_0x5c17a0(0xe0)]!==!0x1),this['_init'](),this[_0x5c17a0(0x348)]();}['_init'](){const _0x5c1746=_0x232df7;this[_0x5c1746(0x2cb)][_0x5c1746(0x2e4)](_0x208cf5=>{const _0x5d97c7=_0x5c1746;this[_0x5d97c7(0x218)](_0x208cf5);});}[_0x232df7(0x1fd)](_0x2baadc){const _0x231ba3=_0x232df7;this['_props'][_0x231ba3(0x320)]=_0x2baadc;}[_0x232df7(0x1c1)](_0x1fa8bd){const _0x394228=_0x232df7;if(this[_0x394228(0x27d)]['isEditing'])return null;let _0x5dbbfa=this[_0x394228(0x364)](_0x1fa8bd),{width:_0x33b90e,height:_0x36a1a3}=this[_0x394228(0x213)]();return _0x1dbce6(this[_0x394228(0x39e)],{'x':(this[_0x394228(0x270)]?-_0x5dbbfa['x']:_0x5dbbfa['x'])+_0x33b90e/0x2,'y':_0x5dbbfa['y']+_0x36a1a3/0x2});}[_0x232df7(0x1f5)](_0x546f39){const _0x314209=_0x232df7;this['_props']['isEditing']=_0x546f39,this[_0x314209(0x390)](!0x0);}[_0x232df7(0x14c)](_0x24bb56,_0xd2d817=!0x0){const _0x5c6139=_0x232df7;this[_0x5c6139(0x132)][_0x5c6139(0x2fa)](_0x24bb56,_0xd2d817),this[_0x5c6139(0x27d)][_0x5c6139(0x157)]=_0x24bb56,this[_0x5c6139(0x348)](),this['makeDirty'](!0x0);}[_0x232df7(0x348)](){const _0x2f15ba=_0x232df7;let _0x431868=this['_props'][_0x2f15ba(0x2c9)],_0x459677=_0x431868[_0x2f15ba(0xf9)](),_0x504b35=_0x1bba65(_0x459677==null?void 0x0:_0x459677[_0x2f15ba(0x137)]),_0x381219=_0x504b35==null?void 0x0:_0x504b35['doc'],_0x943ab6=this['_formulaAnimation']['getAutoFitPresentations']();if(!_0x381219||_0x943ab6[_0x2f15ba(0x333)]===0x0)return;_0x431868[_0x2f15ba(0x2bd)]({'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]});let _0x36fd89=_0x359b16({'documentData':_0x943ab6[_0x2f15ba(0x35b)](_0xc8c9cb=>_0x52663b(_0x381219,_0xc8c9cb)),'height':this[_0x2f15ba(0x39a)],'shapeData':_0x431868[_0x2f15ba(0x1c7)](),'textRect':_0x431868['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]}),'width':this[_0x2f15ba(0x324)]});if(_0x36fd89){var _0x2cf825;this[_0x2f15ba(0x2b0)](_0x36fd89['width'],_0x36fd89[_0x2f15ba(0x39a)]),(_0x2cf825=this[_0x2f15ba(0x271)]())==null||(_0x2cf825=_0x2cf825[_0x2f15ba(0x122)]())==null||_0x2cf825[_0x2f15ba(0x19f)]();}}get[_0x232df7(0x1e3)](){const _0x67bbb=_0x232df7;return this[_0x67bbb(0x27d)][_0x67bbb(0x1e3)];}get[_0x232df7(0x26c)](){const _0x5f0c60=_0x232df7;return this[_0x5f0c60(0x27d)][_0x5f0c60(0x26c)];}[_0x232df7(0x218)](_0x23b4fc){const _0x3808af=_0x232df7;if(this[_0x3808af(0x27d)]['srcRect']==null||!this[_0x3808af(0x13d)])return;let {width:_0x42240c,height:_0x4b9cad}=this,{width:_0x4bbd41=0x0,height:_0x4785b2=0x0}=_0x23b4fc[_0x3808af(0x160)],{left:_0xcbfeb2=0x0,top:_0xf7339f=0x0,right:_0x45a344=0x0,bottom:_0x2724c4=0x0}=this[_0x3808af(0x27d)]['srcRect'],_0xfa0250=_0xcbfeb2,_0x1ecc18=_0xf7339f,_0x5a2051=_0x45a344,_0x4e5733=_0x2724c4,_0x24723f=!0x1;if(_0x4bbd41!==0x0&&_0x4bbd41!==_0x42240c){let _0x24c0d9=_0xcbfeb2/_0x4bbd41,_0x8dfc44=_0x45a344/_0x4bbd41;_0xfa0250=_0x42240c*_0x24c0d9,_0x5a2051=_0x42240c*_0x8dfc44,_0x24723f=!0x0;}if(_0x4785b2!==0x0&&_0x4785b2!==_0x4b9cad){let _0x420007=_0xf7339f/_0x4785b2,_0x656fbd=_0x2724c4/_0x4785b2;_0x1ecc18=_0x4b9cad*_0x420007,_0x4e5733=_0x4b9cad*_0x656fbd,_0x24723f=!0x0;}_0x24723f&&this['setSrcRect']({'left':_0xfa0250,'top':_0x1ecc18,'right':_0x5a2051,'bottom':_0x4e5733});}[_0x232df7(0x1eb)](_0x3ce463){const _0x23c334=_0x232df7;this[_0x23c334(0x27d)][_0x23c334(0x243)]=_0x3ce463,this['makeDirty'](!0x0);}[_0x232df7(0x35a)](_0x2d85e5){const _0x1a25e4=_0x232df7;this[_0x1a25e4(0x27d)][_0x1a25e4(0x2f5)]=_0x2d85e5,this[_0x1a25e4(0x390)](!0x0);}set[_0x232df7(0x15f)](_0x2e7be5){const _0x2bb0c7=_0x232df7;this[_0x2bb0c7(0x2be)]=_0x2e7be5;}get[_0x232df7(0x15f)](){this['_transform']||this['_setTransForm']();let _0xbbe62c=this['_transform']['clone']();return this['transformForAngle'](_0xbbe62c);}get[_0x232df7(0x2c9)](){const _0x94a359=_0x232df7;return this[_0x94a359(0x27d)]['shapeModel'];}get[_0x232df7(0x275)](){return this['_props']['shapeId'];}get[_0x232df7(0x398)](){const _0x4fa65b=_0x232df7;return _0x432f17[_0x4fa65b(0x2c8)];}[_0x232df7(0x356)](_0x1bcfb2,_0xb93127,_0x3988da,_0x1e2e57){const _0x26faf9=_0x232df7;let _0x436238=this[_0x26faf9(0x27d)][_0x26faf9(0x2c9)];if(!_0x436238||!_0xb93127)return;let _0x37307d=_0x3988da??this[_0x26faf9(0x324)],_0x5c1bcc=_0x1e2e57??this[_0x26faf9(0x39a)],_0x5479fc={'shapeType':_0x436238[_0x26faf9(0x134)](),'width':_0x37307d,'height':_0x5c1bcc},_0x1bf72b={'renderMode':_0x5a1729[_0x26faf9(0xfb)],'oKey':this[_0x26faf9(0x283)],'image':this[_0x26faf9(0x27d)][_0x26faf9(0x2f5)],'angle':this[_0x26faf9(0x140)]};_0x436238['updateContext'](_0x5479fc),_0x1bcfb2[_0x26faf9(0x35e)]();let _0x299eb2={'top':0x0,'left':0x0,'width':_0x37307d,'height':_0x5c1bcc},_0x59abf7=_0x436238['getDrawingEffectBounds'](_0x299eb2);_0x59abf7?this['_renderWithCache'](_0x1bcfb2,_0x59abf7,_0x3aa5d1=>{const _0x29cc76=_0x26faf9;_0x436238[_0x29cc76(0x181)](_0x3aa5d1,_0x299eb2,_0x1bf72b);}):(this[_0x26faf9(0x123)](),_0x436238[_0x26faf9(0x181)](_0x1bcfb2,_0x299eb2,_0x1bf72b)),_0x1bcfb2[_0x26faf9(0x18b)]();let _0x44e411=_0x436238[_0x26faf9(0xf9)](),_0x1f5b0c=_0x436238['getShapeTextRect'](_0x299eb2),_0x4eff42=_0x436238['isLineShape']();if(_0x44e411&&_0x1f5b0c&&!_0x4eff42){_0x1bcfb2['save'](),this['getState']()[_0x26faf9(0x270)]&&_0x1bcfb2[_0x26faf9(0x36e)](-0x1,0x1);let _0x4c842a=_0x37307d/0x2,_0x58de49=_0x5c1bcc/0x2;_0x1bcfb2[_0x26faf9(0x251)](-_0x4c842a,-_0x58de49),_0x1bcfb2[_0x26faf9(0x14d)](),this[_0x26faf9(0x238)](_0x1bcfb2,_0x44e411,_0x1f5b0c),_0x1bcfb2[_0x26faf9(0x18b)]();}}[_0x232df7(0x158)](_0x444100){}['_drawShapeText'](_0x2d4e06,_0x3adae8,_0x407520){const _0x404cab=_0x232df7;var _0x3d5aa7;this[_0x404cab(0x39e)]=[],!this[_0x404cab(0x27d)][_0x404cab(0x2f6)]&&(!((_0x3d5aa7=_0x3adae8[_0x404cab(0x137)])!=null&&_0x3d5aa7[_0x404cab(0xf6)])&&'isRichText'in _0x3adae8&&_0x3adae8[_0x404cab(0x1f7)]===!0x1?this[_0x404cab(0x371)](_0x2d4e06,_0x3adae8,_0x407520):this['_drawRichText'](_0x2d4e06,_0x3adae8,_0x407520));}[_0x232df7(0x371)](_0x35e080,_0x12edd4,_0x6f745c){const _0x1af3c5=_0x232df7;this[_0x1af3c5(0x240)](_0x35e080,{..._0x12edd4,'text':_0x12edd4[_0x1af3c5(0x1a6)]??'','dataModel':{'doc':_0x3d4a09(_0x12edd4,'sheets-shape-text-'+this[_0x1af3c5(0x283)])}},_0x6f745c);}[_0x232df7(0x240)](_0x470544,_0x495279,_0x1a5c7f){const _0x569fc6=_0x232df7;_0x3d37bc(_0x470544,this[_0x569fc6(0x132)],(_0x109a5c,_0x2971dc,_0x14ede3)=>{const _0x384a37=_0x569fc6;this['_drawRichTextLayer'](_0x109a5c,_0x495279,_0x1a5c7f,_0x2971dc,_0x14ede3===_0x384a37(0x32b));});}['_drawRichTextLayer'](_0x5db83b,_0x2f0fe1,_0x370ef1,_0x2cec95,_0x16aadb){const _0x458f23=_0x232df7;let _0x1b65da=this['_props'][_0x458f23(0x39c)];if(!_0x2f0fe1[_0x458f23(0x137)]||!_0x1b65da)return;let _0x1dcb87=_0x1bba65(_0x2f0fe1['dataModel']);if(!_0x1dcb87)return;let _0x3ab50d=_0x1dcb87['doc'];if(!_0x3ab50d)return;let _0x475070=_0x52663b(_0x3ab50d,_0x2cec95),_0x538ab1=_0x1dcb87['va']??_0x2cccb9[_0x458f23(0x115)],_0x51c2e9=_0x1dcb87['ha']??_0x4dc457[_0x458f23(0xf0)],_0x592774=Mr(this[_0x458f23(0x27d)][_0x458f23(0x2c9)][_0x458f23(0x1c7)](),_0x2f0fe1,_0x475070),_0x315d7d=_0x2f0fe1['isHorizontal'],_0x323f0d=_0x3da194(_0x475070,{'isHorizontal':_0x315d7d!==!0x1,'textRect':_0x370ef1,'verticalAlign':_0x538ab1,'horizontalAlign':_0x51c2e9,'wrapStrategy':_0x592774[_0x458f23(0x299)]}),_0x475178=new _0x228348(_0x323f0d),_0x38fefb=new _0x2437bc(_0x475178),_0x59141e=_0x2bf98e[_0x458f23(0x164)](_0x38fefb,_0x1b65da);_0x59141e['calculate']();let _0x72c6b9=_0x59141e[_0x458f23(0x165)]()['actualHeight'],_0x18fa44=_0x171327({'contentHeight':_0x72c6b9,'verticalAlign':_0x538ab1,'viewportHeight':_0x370ef1[_0x458f23(0x39a)]});_0x475178[_0x458f23(0x376)]({'pageSize':{'width':_0x315d7d===!0x1?_0x370ef1[_0x458f23(0x39a)]:_0x370ef1[_0x458f23(0x324)],'height':_0x12abcc(_0x475070,_0x18fa44[_0x458f23(0x1c0)])}}),_0x475178[_0x458f23(0x17b)]({'t':_0x18fa44[_0x458f23(0x2b9)]}),_0x59141e[_0x458f23(0x252)]();let _0x5c1bab=new _0x25e368(_0x458f23(0x22e)+this[_0x458f23(0x283)],_0x59141e,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x458f23(0x390)](!0x0)});_0x5c1bab[_0x458f23(0x2b0)](_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x1c0)]),_0x5db83b['save'](),_0x5db83b[_0x458f23(0x313)](_0x370ef1[_0x458f23(0xe4)],_0x370ef1[_0x458f23(0x1b9)]),_0x592774[_0x458f23(0x2a2)]&&(_0x5db83b[_0x458f23(0x14d)](),_0x5db83b[_0x458f23(0x378)](0x0,_0x18fa44[_0x458f23(0x38b)],_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x379)]),_0x5db83b[_0x458f23(0x2a2)]()),_0x18fa44[_0x458f23(0x19d)]&&_0x5db83b[_0x458f23(0x313)](0x0,_0x18fa44[_0x458f23(0x19d)]),_0x5c1bab[_0x458f23(0xf3)](_0x5db83b),_0x16aadb&&(this[_0x458f23(0x39e)]=_0xbb0e6c(_0x5c1bab,{'left':_0x370ef1[_0x458f23(0xe4)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x19d)]},_0x592774[_0x458f23(0x2a2)]?{'left':_0x370ef1[_0x458f23(0xe4)],'right':_0x370ef1[_0x458f23(0xe4)]+_0x370ef1[_0x458f23(0x324)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x38b)],'bottom':_0x370ef1['top']+_0x18fa44['clipTop']+_0x18fa44['clipHeight']}:void 0x0)),_0x5db83b[_0x458f23(0x18b)](),_0x5c1bab[_0x458f23(0x296)](),_0x59141e['dispose'](),_0x38fefb[_0x458f23(0x296)](),_0x475178[_0x458f23(0x296)]();}[_0x232df7(0x181)](_0x942f65,_0x19deba,_0x2893dd=!0x1){const _0x55f1dd=_0x232df7;if(!this[_0x55f1dd(0x346)])return this['makeDirty'](!0x1),this;let {width:_0x531569,height:_0x135128,left:_0x1ad463,top:_0x58a864}=this,_0x11e5b6=this[_0x55f1dd(0x213)]();if(_0x531569=_0x11e5b6[_0x55f1dd(0x324)],_0x135128=_0x11e5b6['height'],_0x1ad463=_0x11e5b6['left'],_0x58a864=_0x11e5b6[_0x55f1dd(0x1b9)],this['isRender'](_0x19deba)){let {top:_0xa3fb93,left:_0x38b46f,bottom:_0x3560be,right:_0x1ecb74}=_0x19deba[_0x55f1dd(0x38e)];if(_0x531569+this[_0x55f1dd(0x230)]+_0x1ad463<_0x38b46f||_0x1ecb74<_0x1ad463||_0x135128+this['strokeWidth']+_0x58a864<_0xa3fb93||_0x3560be<_0x58a864)return this;}let _0x55b9e7=_0x1ad463+_0x531569/0x2,_0x3dc64d=_0x58a864+_0x135128/0x2,_0x2d2822=this[_0x55f1dd(0x15f)][_0x55f1dd(0x27c)]();if(this[_0x55f1dd(0x27d)][_0x55f1dd(0x2f6)]){let _0x41a0b8=this[_0x55f1dd(0x289)](),_0x403a26=new _0x9667eb();_0x403a26[_0x55f1dd(0x2f0)]({..._0x41a0b8}),_0x2d2822=_0x403a26['getMatrix']();}return _0x942f65['save'](),this[_0x55f1dd(0x27d)][_0x55f1dd(0x2c9)][_0x55f1dd(0x1af)]===!0x0||_0x942f65[_0x55f1dd(0x15f)](_0x2d2822[0x0],_0x2d2822[0x1],_0x2d2822[0x2],_0x2d2822[0x3],_0x55b9e7,_0x3dc64d),this[_0x55f1dd(0x356)](_0x942f65,_0x19deba,_0x531569,_0x135128),_0x942f65['restore'](),this[_0x55f1dd(0x390)](!0x1),this;}[_0x232df7(0x364)](_0x5116aa){const _0x18947f=_0x232df7;let {left:_0x455f75,top:_0x12dea5,width:_0x78df0a,height:_0x530b3a}=this[_0x18947f(0x213)](),_0x32a93a=this['transform'][_0x18947f(0x27c)](),_0x44a575=_0x455f75+_0x78df0a/0x2,_0x14073f=_0x12dea5+_0x530b3a/0x2,_0x2b070c=new _0x9667eb([_0x32a93a[0x0],_0x32a93a[0x1],_0x32a93a[0x2],_0x32a93a[0x3],_0x44a575,_0x14073f]),_0xa568e7=this['getParent']();return(this[_0x18947f(0xe3)]&&(_0xa568e7==null?void 0x0:_0xa568e7[_0x18947f(0x398)])===_0x432f17[_0x18947f(0x34e)]?_0xa568e7[_0x18947f(0x21b)][_0x18947f(0x2a1)](_0x2b070c):_0x2b070c)[_0x18947f(0x354)]()[_0x18947f(0x30c)](_0x5116aa);}[_0x232df7(0x24e)](_0x5f04fc){const _0x456d3a=_0x232df7;let {left:_0x551146,top:_0x2012c5,width:_0x702b3,height:_0x3eec79}=this[_0x456d3a(0x213)](),_0x446f7b=_0x551146+_0x702b3/0x2,_0x5f0a80=_0x2012c5+_0x3eec79/0x2,_0x422a6e=this[_0x456d3a(0x15f)][_0x456d3a(0x27c)](),_0x38be7f=new _0x9667eb([_0x422a6e[0x0],_0x422a6e[0x1],_0x422a6e[0x2],_0x422a6e[0x3],_0x446f7b,_0x5f0a80]),_0x8aacf1=this[_0x456d3a(0x1e5)](),_0x3fa81e=(this[_0x456d3a(0xe3)]&&(_0x8aacf1==null?void 0x0:_0x8aacf1['classType'])===_0x432f17[_0x456d3a(0x34e)]?_0x8aacf1[_0x456d3a(0x21b)][_0x456d3a(0x2a1)](_0x38be7f):_0x38be7f)['invert']()[_0x456d3a(0x30c)](_0x5f04fc),_0x46deba=_0x702b3/0x2,_0x1b91d6=_0x3eec79/0x2,_0x3a402e=this[_0x456d3a(0x27d)][_0x456d3a(0x2c9)];return _0x3a402e&&_0x3a402e[_0x456d3a(0x25c)]()?_0x3a402e[_0x456d3a(0x318)](_0x3fa81e['x'],_0x3fa81e['y'],_0x702b3,_0x3eec79):_0x3fa81e['x']>=-_0x46deba-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['x']<=_0x46deba+this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']>=-_0x1b91d6-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']<=_0x1b91d6+this[_0x456d3a(0x230)]/0x2;}[_0x232df7(0x296)](){const _0x45c739=_0x232df7;this['_formulaAnimation'][_0x45c739(0x296)](),this[_0x45c739(0x27d)]['shapeModel']=null,super[_0x45c739(0x296)]();}},Nr=class extends _0x147ce5{constructor(_0x4cdf04,_0x25fb0f){const _0x2e7093=_0x232df7;super(_0x4cdf04,_0x25fb0f),q(this,_0x2e7093(0x1f2),null),q(this,_0x2e7093(0x3a1),null),q(this,_0x2e7093(0x102),null),q(this,_0x2e7093(0x161),null),_0x25fb0f&&this[_0x2e7093(0x1da)](_0x25fb0f);}[_0x232df7(0xe5)](){const _0x5c832=_0x232df7;return{'unitId':this[_0x5c832(0x102)],'subUnitId':this[_0x5c832(0x161)],'drawingId':this[_0x5c832(0x1f2)]};}[_0x232df7(0x1da)](_0x3f6a1f){const _0x905c49=_0x232df7;_0x3f6a1f[_0x905c49(0x275)]!==void 0x0&&(this[_0x905c49(0x1f2)]=_0x3f6a1f[_0x905c49(0x275)]),_0x3f6a1f[_0x905c49(0x18d)]!==void 0x0&&(this[_0x905c49(0x3a1)]=_0x3f6a1f[_0x905c49(0x18d)]),_0x3f6a1f[_0x905c49(0x1e3)]!==void 0x0&&(this['_unitId']=_0x3f6a1f[_0x905c49(0x1e3)]),_0x3f6a1f['subUnitId']!==void 0x0&&(this[_0x905c49(0x161)]=_0x3f6a1f[_0x905c49(0x26c)]),this[_0x905c49(0x234)]({'width':_0x3f6a1f['width'],'height':_0x3f6a1f[_0x905c49(0x39a)]});}[_0x232df7(0x356)](_0x4bad0e){const _0x6cc66e=_0x232df7;_0x4a02a1[_0x6cc66e(0x1a8)](_0x4bad0e,{'radius':_0x4c61a8[_0x6cc66e(0x1a9)],'fill':_0x4c61a8['adjHandleFill'],'stroke':_0x4c61a8['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x52b93e,_0x4ab924){return function(_0x58f5a7,_0x3c5b9b){_0x4ab924(_0x58f5a7,_0x3c5b9b,_0x52b93e);};}function X(_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847){const _0x30e0cc=_0x232df7;var _0x103c2d=arguments['length'],_0x241a4e=_0x103c2d<0x3?_0x53cfc6:_0x18d847===null?_0x18d847=Object[_0x30e0cc(0x150)](_0x53cfc6,_0x21771d):_0x18d847,_0x2654d2;if(typeof Reflect==_0x30e0cc(0x392)&&typeof Reflect[_0x30e0cc(0x2af)]==_0x30e0cc(0x1b4))_0x241a4e=Reflect[_0x30e0cc(0x2af)](_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847);else{for(var _0x13e546=_0x3cd1b0[_0x30e0cc(0x333)]-0x1;_0x13e546>=0x0;_0x13e546--)(_0x2654d2=_0x3cd1b0[_0x13e546])&&(_0x241a4e=(_0x103c2d<0x3?_0x2654d2(_0x241a4e):_0x103c2d>0x3?_0x2654d2(_0x53cfc6,_0x21771d,_0x241a4e):_0x2654d2(_0x53cfc6,_0x21771d))||_0x241a4e);}return _0x103c2d>0x3&&_0x241a4e&&Object[_0x30e0cc(0x33a)](_0x53cfc6,_0x21771d,_0x241a4e),_0x241a4e;}let Z=class extends _0x2bb0e8{constructor(_0x229c70,_0x1fdbc7,_0xb6c89,_0x5d32a5,_0x231cea,_0x22f8b4){const _0x208107=_0x232df7;super(),this[_0x208107(0x11c)]=_0x229c70,this['_sheetsShapeService']=_0x1fdbc7,this[_0x208107(0x184)]=_0xb6c89,this['_imageIoService']=_0x5d32a5,this['_urlImageService']=_0x231cea,this[_0x208107(0x172)]=_0x22f8b4,q(this,_0x208107(0x119),new Map()),this[_0x208107(0x2db)](this['_shapeFormulaService'][_0x208107(0x2a7)]['subscribe'](_0x291999=>{const _0x2eafec=_0x208107;var _0x2caabe;(_0x2caabe=this[_0x2eafec(0x119)][_0x2eafec(0x14a)](this[_0x2eafec(0x2a8)](_0x291999[_0x2eafec(0x1e3)],_0x291999[_0x2eafec(0x26c)],_0x291999[_0x2eafec(0x275)])))==null||_0x2caabe[_0x2eafec(0x385)](_0x1bdfc1=>_0x1bdfc1[_0x2eafec(0x14c)](_0x291999[_0x2eafec(0x3a5)],_0x291999[_0x2eafec(0x16e)]));})),this[_0x208107(0x2db)](this['_drawingManagerService'][_0x208107(0x36d)]['subscribe'](_0x230728=>{const _0x4ca660=_0x208107;_0x230728[_0x4ca660(0x385)](_0x2f400c=>{const _0x2595ee=_0x4ca660;this[_0x2595ee(0x172)][_0x2595ee(0x23e)]({'unitId':_0x2f400c[_0x2595ee(0x1e3)],'subUnitId':_0x2f400c[_0x2595ee(0x26c)],'shapeId':_0x2f400c[_0x2595ee(0x36c)]}),this[_0x2595ee(0x119)][_0x2595ee(0x2a9)](this[_0x2595ee(0x2a8)](_0x2f400c[_0x2595ee(0x1e3)],_0x2f400c[_0x2595ee(0x26c)],_0x2f400c[_0x2595ee(0x36c)]));});}));}[_0x232df7(0x226)](_0x34589e,_0x263432,_0x1e0f92){const _0x3a2bc8=_0x232df7;let {transform:_0x3dea94,drawingType:_0x19d97b,srcRect:_0x2ffa35,prstGeom:_0x3e744c,groupId:_0x112118,unitId:_0x3a952b,subUnitId:_0x349a03,drawingId:_0x419791,isMultiTransform:_0x52b010,transforms:_0x271833,hidden:_0x4bdcb3,selectable:_0x191db2}=_0x34589e;if(_0x19d97b!==_0x190419[_0x3a2bc8(0x21d)]||!this[_0x3a2bc8(0x11c)][_0x3a2bc8(0xe2)]()||_0x3dea94==null)return;let _0xae63f9=this[_0x3a2bc8(0x11c)]['getDrawingEditable'](),_0x5c31a3=_0x52b010&&_0x271833?_0x271833:[_0x3dea94],_0x12039a=[];for(let _0x4dac68 of _0x5c31a3){let {left:_0x330461,top:_0x3920e0,width:_0xb34c72,height:_0x10f331,angle:_0xb66c46,flipX:_0x24992c,flipY:_0x2d9cec,skewX:_0x29aca2,skewY:_0x4d9723}=_0x4dac68,_0x3b68bc=_0x5c31a3[_0x3a2bc8(0x259)](_0x4dac68),_0x38cd5c=_0x3023e5({'unitId':_0x3a952b,'subUnitId':_0x349a03,'drawingId':_0x419791},_0x52b010?_0x3b68bc:void 0x0),_0x2d3ccc=_0x263432[_0x3a2bc8(0x3a9)](_0x38cd5c);if(_0x2d3ccc!=null){let _0x3369bc={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x2d3ccc instanceof J&&this[_0x3a2bc8(0x194)](_0x2d3ccc,_0x3369bc),_0x2d3ccc[_0x3a2bc8(0x234)]({'left':_0x330461,'top':_0x3920e0,'width':_0xb34c72,'height':_0x10f331,'angle':_0xb66c46,'flipX':_0x24992c,'flipY':_0x2d9cec,'skewX':_0x29aca2,'skewY':_0x4d9723});continue;}let _0x2cd0e7=this[_0x3a2bc8(0x11c)][_0x3a2bc8(0x2bf)](_0x3a952b,_0x349a03),_0x8207c0=_0x2cd0e7['indexOf'](_0x419791);if(_0x263432['getObjectIncludeInGroup'](_0x38cd5c)||!this[_0x3a2bc8(0x11c)]['getDrawingVisible']())continue;let _0x29eae4=this[_0x3a2bc8(0x3aa)][_0x3a2bc8(0x1cf)](_0x3a952b,_0x349a03,_0x419791);if(!_0x29eae4)continue;let _0x484a99=_0x52f76f(_0x29eae4['getShapeType']())?{..._0x16a405,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x16a405,_0x5145e6=_0x29eae4['getShapeData']()[_0x3a2bc8(0x2da)],_0x323924={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x5145e6&&this[_0x3a2bc8(0x172)][_0x3a2bc8(0x114)](_0x323924,_0x5145e6);let _0x374a73=new J(_0x38cd5c,{..._0x4dac68,'zIndex':_0x8207c0===-0x1?_0x2cd0e7['length']-0x1:_0x8207c0,'shapeModel':_0x29eae4,'localeService':this[_0x3a2bc8(0x184)],'shapeId':_0x419791,'unitId':_0x3a952b,'subUnitId':_0x349a03,'visible':_0x4bdcb3!==!0x0,'evented':_0x191db2!==!0x1,'formulaPresentation':_0x5145e6?this[_0x3a2bc8(0x172)][_0x3a2bc8(0x21f)](_0x323924):void 0x0,'animateFormulaPresentation':(_0x5145e6==null?void 0x0:_0x5145e6['animationEnabled'])!==!0x1,'transformerConfig':_0x484a99});if(_0x5145e6){let _0x288767=this['_formulaKey'](_0x3a952b,_0x349a03,_0x419791),_0x1e2588=this[_0x3a2bc8(0x119)][_0x3a2bc8(0x14a)](_0x288767)??new Set();_0x1e2588[_0x3a2bc8(0x19c)](_0x374a73),this[_0x3a2bc8(0x119)][_0x3a2bc8(0x2e6)](_0x288767,_0x1e2588);}_0x263432[_0x3a2bc8(0x23d)](_0x374a73,_0x4489b8),_0xae63f9&&_0x263432[_0x3a2bc8(0x363)](_0x374a73),_0x112118&&_0x4e0f39({'drawingId':_0x112118,'unitId':_0x3a952b,'subUnitId':_0x349a03},_0x374a73,_0x263432,this['_drawingManagerService']),_0x3e744c!=null&&_0x374a73['setPrstGeom'](_0x3e744c),_0x2ffa35!=null&&_0x374a73['setSrcRect'](_0x2ffa35);let _0x595fff=this[_0x3a2bc8(0x14e)](_0x374a73,_0x29eae4[_0x3a2bc8(0x1c7)]());if(_0x595fff){var _0x3de60a;_0x1e0f92==null||(_0x3de60a=_0x1e0f92['resourceCollector'])==null||_0x3de60a[_0x3a2bc8(0x19c)](_0x595fff);}_0x12039a[_0x3a2bc8(0x29a)](_0x374a73);}return _0x12039a;}[_0x232df7(0x2a8)](_0x180067,_0xd9425e,_0x398a4a){return _0x180067+'\x00'+_0xd9425e+'\x00'+_0x398a4a;}[_0x232df7(0x194)](_0x61425b,_0x32f246){const _0x5253d7=_0x232df7;let _0x435b7c=this[_0x5253d7(0x3aa)][_0x5253d7(0x1cf)](_0x32f246[_0x5253d7(0x1e3)],_0x32f246[_0x5253d7(0x26c)],_0x32f246[_0x5253d7(0x275)]),_0x21d4b9=_0x435b7c==null?void 0x0:_0x435b7c[_0x5253d7(0x1c7)]()[_0x5253d7(0x2da)],_0x355988=this[_0x5253d7(0x2a8)](_0x32f246['unitId'],_0x32f246['subUnitId'],_0x32f246[_0x5253d7(0x275)]);if(_0x21d4b9){this[_0x5253d7(0x172)][_0x5253d7(0x114)](_0x32f246,_0x21d4b9);let _0x1b0fe2=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988)??new Set();_0x1b0fe2[_0x5253d7(0x19c)](_0x61425b),this[_0x5253d7(0x119)]['set'](_0x355988,_0x1b0fe2);}else{var _0x38d365;this[_0x5253d7(0x172)][_0x5253d7(0x23e)](_0x32f246),(_0x38d365=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988))==null||_0x38d365[_0x5253d7(0x2a9)](_0x61425b);}_0x61425b['setFormulaPresentation'](_0x21d4b9?this['_shapeFormulaService'][_0x5253d7(0x21f)](_0x32f246):void 0x0,(_0x21d4b9==null?void 0x0:_0x21d4b9[_0x5253d7(0x16e)])!==!0x1);}[_0x232df7(0x306)](_0x2b87c7){const _0x373641=_0x232df7;let _0x3c9ff9=_0x2b87c7['shapeModel'][_0x373641(0x1c7)](),_0x27237a=_0x3c9ff9[_0x373641(0x33e)];!_0x27237a||_0x27237a[_0x373641(0xfc)]!==_0x44f004[_0x373641(0x25f)]||!_0x27237a['fillImageSource']?_0x2b87c7[_0x373641(0x35a)](void 0x0):this[_0x373641(0x14e)](_0x2b87c7,_0x3c9ff9);}['_loadShapePictureFill'](_0xc490f5,_0x254267){const _0x36cb29=_0x232df7;let _0x2d3ca4=_0x254267[_0x36cb29(0x33e)];if(!_0x2d3ca4||_0x2d3ca4['fillType']!==_0x44f004[_0x36cb29(0x25f)]||!_0x2d3ca4['fillImageSource'])return;let _0x417664=_0x2d3ca4[_0x36cb29(0x399)],_0x320afe=_0x2d3ca4[_0x36cb29(0x147)]??_0x456deb['URL'],_0x5f3ab7=this[_0x36cb29(0x30a)][_0x36cb29(0x1db)](_0x417664,_0x320afe);if(_0x5f3ab7)_0xc490f5['setFillImage'](_0x5f3ab7);else return this[_0x36cb29(0x347)](_0xc490f5,_0x417664,_0x320afe);}async[_0x232df7(0x347)](_0x23e47c,_0x4fe657,_0x25fe8b){const _0x345410=_0x232df7;let _0x6614f3;try{if(_0x25fe8b===_0x456deb['UUID'])_0x6614f3=await this[_0x345410(0x30a)][_0x345410(0x10e)](_0x4fe657);else{if(_0x25fe8b===_0x456deb['URL'])try{_0x6614f3=await this['_urlImageService']['getImage'](_0x4fe657);}catch{_0x6614f3=_0x4fe657;}else _0x6614f3=_0x4fe657;}}catch(_0x114dfa){console[_0x345410(0x2cf)](_0x345410(0x105),_0x114dfa);return;}await new Promise(_0x3f8b12=>{const _0x41c83d=_0x345410;let _0x5800c0=new window[(_0x41c83d(0x338))]();_0x5800c0[_0x41c83d(0x15e)]=()=>{const _0x3db9ed=_0x41c83d;this[_0x3db9ed(0x30a)][_0x3db9ed(0x394)](_0x4fe657,_0x25fe8b,_0x5800c0),_0x23e47c[_0x3db9ed(0x35a)](_0x5800c0),_0x3f8b12();},_0x5800c0[_0x41c83d(0x2eb)]=()=>{const _0x3cd923=_0x41c83d;console[_0x3cd923(0x2cf)](_0x3cd923(0x307),_0x4fe657),_0x3f8b12();},_0x5800c0[_0x41c83d(0x1ee)]=_0x6614f3;});}};Z=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x16b0b7)),Y(0x3,_0xe46211),Y(0x4,_0x38d6c5),Y(0x5,_0x229e82(_0x907d04))],Z);let Pr=class extends _0x2bb0e8{constructor(_0x3ac1e4,_0x5dfd8c,_0x259a17,_0x4ec0d9,_0x1fad70,_0x240f58){const _0x458e6f=_0x232df7;super(),this[_0x458e6f(0x11c)]=_0x3ac1e4,this['_sheetsShapeService']=_0x5dfd8c,this[_0x458e6f(0x209)]=_0x259a17,this['_sheetDrawingShapeRenderController']=_0x4ec0d9,this[_0x458e6f(0x2d4)]=_0x1fad70,this[_0x458e6f(0x232)]=_0x240f58,q(this,_0x458e6f(0x362),null),q(this,_0x458e6f(0x102),null),q(this,'_subUnitId',null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x458e6f(0x2b1),[]),q(this,'_baseShapeLeft',0x0),q(this,'_baseShapeTop',0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x458e6f(0x173),!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x458e6f(0x1d8),void 0x0),q(this,_0x458e6f(0x30b),void 0x0),q(this,_0x458e6f(0x290),void 0x0),q(this,_0x458e6f(0x314),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x458e6f(0x156)]();}[_0x232df7(0x393)](_0x301527,_0x2a84fb,_0x3bddca){const _0x391787=_0x232df7;let _0x471e35=this[_0x391787(0x3aa)]['getShapeModel'](_0x301527,_0x2a84fb,_0x3bddca);if(_0x471e35)return _0x471e35[_0x391787(0x158)]();}[_0x232df7(0x23a)](){const _0x4fb756=_0x232df7;this[_0x4fb756(0x163)]();}[_0x232df7(0x1cb)](){const _0x1af1ee=_0x232df7;this[_0x1af1ee(0x285)](!0x0);}[_0x232df7(0x1d7)](_0x474bc3){const _0x230a63=_0x232df7;this[_0x230a63(0x314)]=_0x474bc3;}[_0x232df7(0x260)](_0x4493d4,_0x2494ff,_0x44affb,_0x4efa3d){const _0x3fdfab=_0x232df7;let _0x2c6a8c=this['_sheetsShapeService'][_0x3fdfab(0x1cf)](_0x4493d4,_0x2494ff,_0x44affb);if(_0x2c6a8c)return _0x2c6a8c[_0x3fdfab(0x219)](_0x4efa3d);}[_0x232df7(0x190)](_0x2bbc4c=!0x1){const _0x979925=_0x232df7;if(this[_0x979925(0x102)]===null||this[_0x979925(0x161)]===null||this['_activeShapeId']===null)return;let _0x5edd94=this[_0x979925(0x209)]['getRenderUnitById'](this[_0x979925(0x102)]);if(!_0x5edd94||!_0x5edd94[_0x979925(0x18c)](_0x54a66d)[_0x979925(0x2ee)]())return;let {scene:_0x431965}=_0x5edd94,_0x7c0153={'unitId':this[_0x979925(0x102)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x979925(0x362)]},_0x421544=this[_0x979925(0x11c)][_0x979925(0x282)](_0x7c0153),{transform:_0x447072}=_0x421544;if(!_0x447072||_0x421544['drawingType']!==_0x190419['DRAWING_SHAPE'])return;let {left:_0x41f803,top:_0x49797f,width:_0x51e625,height:_0x138da3,flipX:_0x3d39c8,flipY:_0x59fcf5,angle:_0x35ef7d=0x0}=_0x447072;if(_0x41f803===void 0x0||_0x49797f===void 0x0)return;if(_0x2bbc4c){let _0x23bdfc=this[_0x979925(0x3aa)][_0x979925(0x1cf)](this[_0x979925(0x102)],this[_0x979925(0x161)],this[_0x979925(0x362)]);_0x23bdfc==null||_0x23bdfc[_0x979925(0x2bd)]({'width':_0x51e625??0x0,'height':_0x138da3??0x0}),this[_0x979925(0x23c)]=_0x23bdfc==null?void 0x0:_0x23bdfc['getDrawingPoints']();}let _0x43ade3=this['_activeShapeAdjustPointList'];for(let _0x53a557=0x0;_0x53a557<_0x43ade3[_0x979925(0x333)];_0x53a557++){let _0x2500b8=_0x43ade3[_0x53a557],_0x10ffbb=_0x2500b8['x'],_0x5915ee=_0x2500b8['y'];if(_0x3d39c8&&(_0x10ffbb=(_0x51e625||0x0)-_0x10ffbb),_0x59fcf5&&(_0x5915ee=(_0x138da3||0x0)-_0x5915ee),_0x35ef7d!==0x0){let _0x58bcfa=(_0x51e625||0x0)/0x2,_0x25f66d=(_0x138da3||0x0)/0x2,_0x1b6ea4=_0x35ef7d*Math['PI']/0xb4,_0x492bba=Math['cos'](_0x1b6ea4),_0xb12fd0=Math[_0x979925(0x159)](_0x1b6ea4),_0x217d5d=_0x10ffbb-_0x58bcfa,_0x2a508b=_0x5915ee-_0x25f66d;_0x10ffbb=_0x58bcfa+(_0x217d5d*_0x492bba-_0x2a508b*_0xb12fd0),_0x5915ee=_0x25f66d+(_0x217d5d*_0xb12fd0+_0x2a508b*_0x492bba);}let _0x46ae2d={'x':_0x10ffbb,'y':_0x5915ee,'adjName':_0x2500b8[_0x979925(0x18d)]};this['_addShapeAdjustControl'](_0x431965,_0x46ae2d,_0x46ae2d[_0x979925(0x18d)],_0x41f803,_0x49797f,this['_unitId'],this[_0x979925(0x161)]);}}[_0x232df7(0x285)](_0x338706=!0x1){const _0x5794a7=_0x232df7;_0x338706&&(this[_0x5794a7(0x163)](),this[_0x5794a7(0x190)](_0x338706));}['_addShapeAdjustControl'](_0x445315,_0x52f976,_0x3935a6,_0x19b210,_0x1a9b7a,_0x40f77b,_0x31b8d3){const _0x59ea3b=_0x232df7;if(!this[_0x59ea3b(0x362)])return;let _0x5b2b87=_0x445315['getObjectIncludeInGroup'](_0x59ea3b(0x255)+this[_0x59ea3b(0x362)]+'-'+_0x3935a6);if(_0x5b2b87){_0x5b2b87[_0x59ea3b(0x234)]({'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)]});return;}let _0x441d60={'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)],'adjName':_0x3935a6,'shapeId':this[_0x59ea3b(0x362)],'unitId':_0x40f77b,'subUnitId':_0x31b8d3,'width':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'height':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0},_0x2be4a3=new Nr(_0x59ea3b(0x255)+this['_activeShapeId']+'-'+_0x3935a6,_0x441d60);this['_shapes'][_0x59ea3b(0x29a)](_0x2be4a3),this[_0x59ea3b(0x2ac)](_0x2be4a3,_0x445315,_0x3935a6),_0x445315[_0x59ea3b(0x23d)](_0x2be4a3,_0x4489b8+0x1);}[_0x232df7(0x163)](){const _0x2bf80d=_0x232df7;this['_shapes'][_0x2bf80d(0x333)]!==0x0&&(this[_0x2bf80d(0x2b1)][_0x2bf80d(0x385)](_0xa504eb=>{const _0x1559ce=_0x2bf80d;_0xa504eb[_0x1559ce(0x296)]();}),this[_0x2bf80d(0x2b1)]=[]);}[_0x232df7(0xea)](){const _0x39616d=_0x232df7;this[_0x39616d(0x190)]();}[_0x232df7(0x1c6)](_0x10b2ed,_0xeeea9){const _0x48b033=_0x232df7;var _0x6c4595;let _0x59d44a={'x':0x0,'y':0x0};if(!_0x10b2ed||!_0xeeea9)return _0x59d44a;let _0x41d4ec=this[_0x48b033(0x209)]['getRenderUnitById'](_0x10b2ed);if(!_0x41d4ec||!_0x41d4ec['with'](_0x54a66d)[_0x48b033(0x38a)](_0xeeea9))return _0x59d44a;let _0x335193=_0x41d4ec[_0x48b033(0x18c)](_0x5ccab7),_0x11a97a=_0x335193==null?void 0x0:_0x335193[_0x48b033(0x1e9)]();if(!_0x11a97a)return _0x59d44a;let _0x3f74c1=(_0x6c4595=this['_univerInstanceService']['getUnit'](_0x10b2ed))==null?void 0x0:_0x6c4595[_0x48b033(0x339)](_0xeeea9);if(!_0x3f74c1)return _0x59d44a;let _0xc9a2b8=_0x56d9fe(_0x11a97a['sheetViewStartRow'],_0x11a97a[_0x48b033(0x3ab)],_0x41d4ec[_0x48b033(0x381)],_0x3f74c1);return _0xc9a2b8?{'x':_0xc9a2b8[_0x48b033(0x397)],'y':_0xc9a2b8[_0x48b033(0x125)]}:_0x59d44a;}[_0x232df7(0x1d9)](_0x2b5e57,_0x256dd5){const _0x281ee4=_0x232df7;var _0x4d6644;let _0x26b29c=(_0x4d6644=this[_0x281ee4(0x2d4)][_0x281ee4(0x2e7)](_0x2b5e57))==null?void 0x0:_0x4d6644[_0x281ee4(0x339)](_0x256dd5);return(_0x26b29c==null?void 0x0:_0x26b29c['getZoomRatio']())??0x1;}[_0x232df7(0x2ac)](_0x149a10,_0x23c93a,_0x1b26a8){const _0x380635=_0x232df7;this[_0x380635(0x2db)](_0x169987(_0x149a10[_0x380635(0x197)][_0x380635(0x2e4)]((_0x31ba73,_0x42d2d3)=>{const _0x32f459=_0x380635;var _0x21b0a1,_0x47baa0,_0x39860e,_0xac7d09;let _0x5d5b74=_0x149a10[_0x32f459(0xe5)]();this[_0x32f459(0x192)]=this['_getShapeAdjustInfosById'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74[_0x32f459(0x26c)],_0x5d5b74[_0x32f459(0x36c)],_0x1b26a8),this[_0x32f459(0x1d8)]=this[_0x32f459(0x3aa)]['getShapeModel'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74['subUnitId'],_0x5d5b74[_0x32f459(0x36c)]);let _0x43b04c=this[_0x32f459(0x11c)][_0x32f459(0x282)]({'unitId':this[_0x32f459(0x102)],'subUnitId':this[_0x32f459(0x161)],'drawingId':this[_0x32f459(0x362)]}),{transform:_0x29196c}=_0x43b04c;if(_0x29196c){let {left:_0x3d9d0c,top:_0x1e0ca9,width:_0x11be6f,height:_0x32349d}=_0x29196c;this[_0x32f459(0x112)]=_0x3d9d0c||0x0,this[_0x32f459(0x288)]=_0x1e0ca9||0x0,this[_0x32f459(0x155)]=_0x11be6f||0x0,this[_0x32f459(0x1f6)]=_0x32349d||0x0;}let _0x93b115=!!((_0x21b0a1=_0x43b04c['transform'])!=null&&_0x21b0a1[_0x32f459(0x270)]),_0x4661b6=!!((_0x47baa0=_0x43b04c[_0x32f459(0x15f)])!=null&&_0x47baa0[_0x32f459(0x25e)]),_0x56d768=((_0x39860e=_0x43b04c['transform'])==null?void 0x0:_0x39860e['angle'])||0x0;this[_0x32f459(0x173)]=!0x0,_0x23c93a[_0x32f459(0x3a2)]();let _0x2e5f87={...((_0xac7d09=this[_0x32f459(0x192)])==null?void 0x0:_0xac7d09['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x23c93a['onPointerMove$'][_0x32f459(0x2e4)]((_0x119fd5,_0x4af716)=>{const _0xf5183b=_0x32f459;if(!this[_0xf5183b(0x173)])return;let {offsetX:_0x1342a6,offsetY:_0x2d949e}=_0x119fd5,_0x3885a6=this['_activeAdjustInfo'];if(this[_0xf5183b(0x1d8)]&&_0x3885a6){_0x23c93a[_0xf5183b(0x3a2)](),_0x23c93a[_0xf5183b(0x331)](_0x1d110f[_0xf5183b(0x1a7)]);let _0x2524e8={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]},_0x35efbe=this[_0xf5183b(0x1c6)](this[_0xf5183b(0x102)],this['_subUnitId']),_0x52cc17=this[_0xf5183b(0x1d9)](this['_unitId'],this[_0xf5183b(0x161)]),_0x25d8fc=_0x1342a6/_0x52cc17+_0x35efbe['x']-this[_0xf5183b(0x112)],_0x55e7b9=_0x2d949e/_0x52cc17+_0x35efbe['y']-this[_0xf5183b(0x288)];if(_0x56d768!==0x0){let _0x2d52b8=this[_0xf5183b(0x155)]/0x2,_0x24c7e6=this[_0xf5183b(0x1f6)]/0x2,_0x4a43c0=_0x56d768*Math['PI']/0xb4,_0x47033f=Math[_0xf5183b(0x2cd)](_0x4a43c0),_0x4679a4=Math[_0xf5183b(0x159)](_0x4a43c0),_0x2e2fa1=_0x25d8fc-_0x2d52b8,_0xb746c4=_0x55e7b9-_0x24c7e6;_0x25d8fc=_0x2d52b8+(_0x2e2fa1*_0x47033f+_0xb746c4*_0x4679a4),_0x55e7b9=_0x24c7e6+(-_0x2e2fa1*_0x4679a4+_0xb746c4*_0x47033f);}_0x93b115&&(_0x25d8fc=this[_0xf5183b(0x155)]-_0x25d8fc),_0x4661b6&&(_0x55e7b9=this['_baseShapeHeight']-_0x55e7b9);let _0x434b2e={'x':_0x25d8fc,'y':_0x55e7b9},_0x5d6c39=this[_0xf5183b(0x1d8)]['calcAdjValues'](_0x2524e8,_0x434b2e,_0x3885a6,_0x93b115,_0x4661b6);if(Object[_0xf5183b(0x1be)](_0x5d6c39)[_0xf5183b(0x333)]===0x0)return;for(let [_0x7d9e0d,_0x2d09a9]of Object[_0xf5183b(0x17e)](_0x5d6c39))this['_activeShapeModel'][_0xf5183b(0x359)](_0x7d9e0d,_0x2d09a9);this[_0xf5183b(0x1d8)][_0xf5183b(0x2bd)]({'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]});let _0x1a3043=this[_0xf5183b(0x11c)]['getDrawingByParam']({'unitId':_0x5d5b74['unitId'],'subUnitId':_0x5d5b74[_0xf5183b(0x26c)],'drawingId':_0x5d5b74[_0xf5183b(0x36c)]});_0x1a3043&&(this[_0xf5183b(0x199)]['renderDrawingShape'](_0x1a3043,_0x23c93a),this[_0xf5183b(0x23c)]=this[_0xf5183b(0x393)](_0x5d5b74[_0xf5183b(0x1e3)],_0x5d5b74[_0xf5183b(0x26c)],_0x5d5b74[_0xf5183b(0x36c)]),this['_updateAdjustControlPositions']());}_0x4af716['stopPropagation']();}),this[_0x32f459(0x290)]=_0x23c93a[_0x32f459(0x2c7)][_0x32f459(0x2e4)]((_0xf61764,_0x242d2e)=>{const _0x3ede22=_0x32f459;this[_0x3ede22(0x30b)][_0x3ede22(0x1d2)](),this[_0x3ede22(0x290)][_0x3ede22(0x1d2)](),_0x23c93a[_0x3ede22(0x2fe)]();let _0x5e44ba=this[_0x3ede22(0x192)];if(_0x5e44ba){let _0x5a0978=_0x5d5b74[_0x3ede22(0x1e3)],_0x520c2a=_0x5d5b74['subUnitId'],_0x3f598f=_0x5d5b74['drawingId'],_0x2bd578={};for(let _0x4cbb5d of Object[_0x3ede22(0x1be)](_0x5e44ba[_0x3ede22(0x166)])){var _0x3757df;let _0x6861b8=(_0x3757df=this[_0x3ede22(0x1d8)])==null?void 0x0:_0x3757df['getAdjustValueByName'](_0x4cbb5d);_0x6861b8!==void 0x0&&(_0x2bd578[_0x4cbb5d]=_0x6861b8);}Object[_0x3ede22(0x1be)](_0x2bd578)[_0x3ede22(0x333)]>0x0&&Dr(this[_0x3ede22(0x232)],_0x5a0978,_0x520c2a,_0x3f598f,{'oldShapeData':{'adjustValues':_0x2e5f87}},{'adjustValues':_0x2bd578});}this[_0x3ede22(0x192)]=void 0x0,this[_0x3ede22(0x1d8)]=void 0x0,this[_0x3ede22(0x173)]=!0x1,_0x242d2e[_0x3ede22(0x345)](),_0x23c93a['enableObjectsEvent']();}),_0x42d2d3['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x135cf2=_0x232df7;let _0x4f5a40=this[_0x135cf2(0x2d4)]['getCurrentTypeOfUnit$'](_0xe0c4a6[_0x135cf2(0x277)]);this[_0x135cf2(0x2db)](_0x4f5a40['pipe'](_0x4faa1d(_0x534568=>_0x534568?_0x534568[_0x135cf2(0xe1)][_0x135cf2(0x16f)](_0x4faa1d(_0x916f5=>{const _0x23b2b6=_0x135cf2;if(!_0x916f5)return _0x5f31a2;let _0x279bc1=_0x534568[_0x23b2b6(0x3a3)](),_0x9f933a=this[_0x23b2b6(0x209)][_0x23b2b6(0x124)](_0x279bc1),_0x36f675=_0x9f933a==null?void 0x0:_0x9f933a[_0x23b2b6(0x381)];return _0x36f675?_0x24a70f(_0x36f675):_0x5f31a2;})):_0x5f31a2))[_0x135cf2(0x268)](_0xc2eeaf=>{const _0x2648f8=_0x135cf2;let _0x149120=_0xc2eeaf[_0x2648f8(0x372)]();this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c6)]['subscribeEvent'](()=>{const _0x4414e9=_0x2648f8;this[_0x4414e9(0x314)];})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x22f)][_0x2648f8(0x268)](_0x2a3b01=>{const _0x363bf5=_0x2648f8;let {objects:_0x2ddc6c}=_0x2a3b01;this[_0x363bf5(0x190)](),_0x2ddc6c!==null&&_0x2ddc6c[_0x363bf5(0x292)]===0x1&&_0x2ddc6c[_0x363bf5(0x212)]()['next']()[_0x363bf5(0x30f)]instanceof J&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x149120[_0x2648f8(0x2fd)][_0x2648f8(0x268)](()=>{const _0x59b219=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&this[_0x59b219(0x163)]();})),this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c7)][_0x2648f8(0x2e4)](()=>{const _0x78dea0=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x78dea0(0x1d7)](!0x1),this['_createShapeAdjustControls']());})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x334)][_0x2648f8(0x268)](()=>{const _0x5bbe16=_0x2648f8;this[_0x5bbe16(0x102)]&&this['_subUnitId']&&this[_0x5bbe16(0x362)]&&this[_0x5bbe16(0x11c)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x5bbe16(0x161)],'drawingId':this[_0x5bbe16(0x362)]})&&(this['_activeShapeAdjustPointList']=this[_0x5bbe16(0x393)](this[_0x5bbe16(0x102)],this[_0x5bbe16(0x161)],this[_0x5bbe16(0x362)]),this[_0x5bbe16(0xea)]());}));}));}[_0x232df7(0x1f0)](){const _0x1b09f1=_0x232df7;this['disposeWithMe'](this[_0x1b09f1(0x232)]['onCommandExecuted'](_0x24e4c5=>{const _0x39ba2b=_0x1b09f1;if(_0x24e4c5['id']!==_0x4af43a['id'])return;let {unitId:_0x451749,subUnitId:_0x5a38c5,shapeId:_0x8acede}=_0x24e4c5[_0x39ba2b(0x1aa)];_0x451749===this['_unitId']&&_0x5a38c5===this[_0x39ba2b(0x161)]&&_0x8acede===this[_0x39ba2b(0x362)]&&this[_0x39ba2b(0x1cb)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x19a)][_0x1b09f1(0x268)](_0x817b44=>{const _0x596674=_0x1b09f1;if(_0x817b44['length']===0x1){let _0x3725fb=_0x817b44[0x0];if(_0x3725fb[_0x596674(0x183)]===_0x190419[_0x596674(0x21d)]&&this[_0x596674(0x2d4)][_0x596674(0xef)](_0x3725fb[_0x596674(0x1e3)])===_0xe0c4a6[_0x596674(0x277)]){this[_0x596674(0x362)]=_0x3725fb['drawingId'];let {unitId:_0x47f8bb,subUnitId:_0x3a4ced}=_0x3725fb;this[_0x596674(0x23c)]=this['_getShapeAdjustPointListById'](_0x47f8bb,_0x3a4ced,this[_0x596674(0x362)]),this[_0x596674(0x102)]=_0x47f8bb,this['_subUnitId']=_0x3a4ced,this[_0x596674(0x163)](),this[_0x596674(0x190)]();return;}}this[_0x596674(0x362)]=null,this[_0x596674(0x23c)]=void 0x0,this[_0x596674(0x102)]=null,this[_0x596674(0x161)]=null,this[_0x596674(0x163)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x274)][_0x1b09f1(0x268)](_0x52f084=>{const _0x3d8733=_0x1b09f1;if(_0x52f084['length']===0x1){var _0x3ca95c;let _0x2256bd=_0x52f084[0x0];((_0x3ca95c=this[_0x3d8733(0x11c)]['getDrawingByParam'](_0x2256bd))==null?void 0x0:_0x3ca95c[_0x3d8733(0x183)])===_0x190419[_0x3d8733(0x21d)]&&this[_0x3d8733(0x285)](!0x0);}})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x36d)][_0x1b09f1(0x268)](_0x53365e=>{const _0x55ff33=_0x1b09f1;for(let _0x2c8469 of _0x53365e)this['_activeShapeId']===_0x2c8469['drawingId']&&(this[_0x55ff33(0x362)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x55ff33(0x102)]=null,this[_0x55ff33(0x161)]=null,this[_0x55ff33(0x163)]());}));}};Pr=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x229e82(Z)),Y(0x4,_0x304294),Y(0x5,_0x1b156e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x11a35d,_0x571396)=>{const _0x5ebff2=_0x232df7;let _0x2cf874=_0x11a35d['get'](_0x3deb35),_0xc1988=_0x11a35d[_0x5ebff2(0x14a)](_0x422c1e),_0x4946b6=_0x11a35d[_0x5ebff2(0x14a)](Pr);if(_0x571396==null)return!0x0;if(_0x571396[_0x5ebff2(0x333)]>0x0){var _0x31ffde;let _0x1c73b2=(_0x31ffde=_0xc1988[_0x5ebff2(0x124)](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null?void 0x0:_0x31ffde[_0x5ebff2(0x381)];if(_0x1c73b2){let {unitId:_0x32f9a7,subUnitId:_0x59f826,drawingId:_0x237402}=_0x571396[0x0],_0xe3816f=_0x3023e5({'unitId':_0x32f9a7,'subUnitId':_0x59f826,'drawingId':_0x237402},void 0x0),_0x350e6d=_0x1c73b2[_0x5ebff2(0x3a9)](_0xe3816f);if(_0x350e6d){var _0x4c20c9;(_0x4c20c9=_0xc1988['getRenderUnitById'](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null||(_0x4c20c9=_0x4c20c9['scene'][_0x5ebff2(0x122)]())==null||_0x4c20c9[_0x5ebff2(0x2e0)](_0x350e6d);}}_0x2cf874['focusDrawing'](_0x571396),_0x4946b6[_0x5ebff2(0x1d7)](!0x1);}return!0x0;}},Ir={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1bf),'handler':async(_0x1516e3,_0x45d3e2)=>{const _0x2dbde1=_0x232df7;let _0x251d9a=_0x2dc1b6(_0x1516e3[_0x2dbde1(0x14a)](_0x304294));if(!_0x251d9a)return!0x1;let _0x226d0f=_0x1516e3['get'](_0x22a39b)['getCurrentLastSelection']();if(!_0x226d0f)return!0x1;let _0xf28bd=_0x1516e3[_0x2dbde1(0x14a)](_0x1b156e),{unitId:_0x43e99d,subUnitId:_0x398653}=_0x251d9a,{value:_0x13e8bd,enhanceParams:_0x19a822}=_0x45d3e2,{range:_0x531388}=_0x226d0f,_0x2312f9={'unitId':_0x43e99d,'subUnitId':_0x398653,'shapeType':_0x13e8bd,'range':_0x531388,'shapeId':_0x3a0ce3()};if(_0x19a822){let _0x2ec111=_0x52f76f(_0x13e8bd),_0x4b6b7b=_0x13e8bd===_0xe73d9c[_0x2dbde1(0x200)];_0x2ec111&&(_0x19a822[_0x2dbde1(0xed)]||_0x19a822['endArrow'])&&(_0x2312f9[_0x2dbde1(0x1b6)]={'ln':{'startArrow':_0x19a822[_0x2dbde1(0xed)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15[_0x2dbde1(0x1bc)]}:void 0x0,'endArrow':_0x19a822[_0x2dbde1(0x305)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15['Large']}:void 0x0}}),_0x4b6b7b&&(_0x19a822[_0x2dbde1(0x143)]||_0x19a822['vertical'])&&(_0x2312f9[_0x2dbde1(0x1b6)]=_0x25f18f({'fill':{'fillType':_0x44f004[_0x2dbde1(0x276)],'color':_0x2dbde1(0x1f1)},'isHorizontal':!!_0x19a822['horizontal'],'stroke':{'lineStrokeType':_0x5053e4[_0x2dbde1(0x1e7)],'width':0x1,'color':_0x2dbde1(0x1f8)}}));}let _0x432df1=_0xf28bd['syncExecuteCommand'](_0x143510['id'],_0x2312f9);return setTimeout(()=>{const _0x3628ec=_0x2dbde1;_0xf28bd[_0x3628ec(0x286)](Fr['id'],[{'unitId':_0x43e99d,'subUnitId':_0x398653,'drawingId':_0x2312f9[_0x3628ec(0x275)]}]);},0xc8),_0x432df1;}},Lr=_0x232df7(0x1c8),Rr='sheet.shape.object-list.panel',zr=_0x232df7(0x377),Br=_0x232df7(0x2a6),Vr=_0x20e235(_0x232df7(0x31e)),Hr=_0x232df7(0x301),Ur={'id':_0x232df7(0x1de),'type':_0x33172f[_0x232df7(0xfe)],'handler':(_0x320947,_0x2d147f)=>{const _0x13b99e=_0x232df7;let _0x5b2874=_0x320947['get'](_0x5c788d),_0xf8545d=_0x320947[_0x13b99e(0x14a)](_0x16b0b7),_0x27a566=_0x320947[_0x13b99e(0x14a)](_0x304294),_0xfe39f5=_0x320947[_0x13b99e(0x14a)](_0x1b156e);return _0x2dc1b6(_0x27a566)?(_0x2d147f==null?void 0x0:_0x2d147f[_0x13b99e(0x30f)])===_0x13b99e(0x384)?(_0x5b2874[_0x13b99e(0x384)](Rr),!0x0):(_0x5b2874[_0x13b99e(0x22b)]({'id':Rr,'header':{'title':_0xf8545d['t'](_0x13b99e(0x1fe))},'children':{'label':Rr},'onClose':()=>{const _0x20e022=_0x13b99e;_0xfe39f5[_0x20e022(0x325)](_0x2b2ab1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x33172f['OPERATION'],'id':_0x232df7(0x367),'handler'(){return!0x0;}};function Gr(_0x3fe6ef){const _0x278738=_0x232df7;let _0x4e712a=_0x3fe6ef[_0x278738(0x14a)](_0x3deb35)[_0x278738(0x310)](),_0xf4f629=_0x4e712a[_0x278738(0x333)]===0x1?_0x4e712a[0x0]:null;if(!_0xf4f629||_0xf4f629[_0x278738(0x183)]!==_0x190419[_0x278738(0x21d)])return null;let _0x5721e6=_0x3fe6ef['get'](_0x5c2303),_0x5e7811=_0x5721e6[_0x278738(0x280)](_0xf4f629[_0x278738(0x1e3)],_0xf4f629[_0x278738(0x26c)],_0xf4f629['drawingId']),_0xe56d2b=_0x5721e6['getShapeDataById'](_0xf4f629[_0x278738(0x1e3)],_0xf4f629['subUnitId'],_0xf4f629[_0x278738(0x36c)]);return _0x5e7811===void 0x0||!_0xe56d2b?null:{'drawing':_0xf4f629,'shapeData':_0xe56d2b,'shapeType':_0x5e7811};}const Kr={'id':_0x232df7(0x261),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x3f0c12,_0xf5892a)=>{const _0x3d413a=_0x232df7;let _0x481af0=Gr(_0x3f0c12),_0x2152f9=_0xff4b3b((_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x149)])??(_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x30f)])??'');if(!_0x481af0||!_0x2152f9||_0x2152f9['type']!==_0x11da62(_0x481af0[_0x3d413a(0x1b6)]))return!0x1;let _0x55640=_0x413e75(_0x481af0['shapeData'],_0x2152f9);if(!_0x55640)return!0x1;let {drawing:_0x5641cb}=_0x481af0;return _0x3f0c12[_0x3d413a(0x14a)](_0x1b156e)['executeCommand'](K['id'],{'unitId':_0x5641cb[_0x3d413a(0x1e3)],'subUnitId':_0x5641cb[_0x3d413a(0x26c)],'shapeId':_0x5641cb[_0x3d413a(0x36c)],'shapeData':_0x55640,'oldShapeJSON':{'oldShapeData':_0x481af0[_0x3d413a(0x1b6)]}});}},qr={'id':_0x232df7(0x304),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x223fff,_0x373a0e)=>{const _0x102ded=_0x232df7;let _0x3d3dd9=Gr(_0x223fff),_0x491781=(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x15b)])??(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x30f)]);if(!_0x3d3dd9||!_0x491781||_0x52f76f(_0x3d3dd9[_0x102ded(0x15b)])||_0x52f76f(_0x491781))return!0x1;let _0x4ae69a=_0x294ee8(_0x3d3dd9[_0x102ded(0x1b6)],_0x491781);if(!_0x4ae69a)return!0x1;let {drawing:_0x53e4f6}=_0x3d3dd9;return _0x223fff[_0x102ded(0x14a)](_0x1b156e)[_0x102ded(0x286)](K['id'],{'unitId':_0x53e4f6[_0x102ded(0x1e3)],'subUnitId':_0x53e4f6[_0x102ded(0x26c)],'shapeId':_0x53e4f6[_0x102ded(0x36c)],'shapeType':_0x491781,'shapeData':_0x4ae69a,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3d3dd9[_0x102ded(0x15b)],'oldShapeData':_0x3d3dd9[_0x102ded(0x1b6)]}});}};let Q=class extends _0x2bb0e8{constructor(_0x51b5d5,_0x505cf4){const _0x177d10=_0x232df7;super(),this[_0x177d10(0x11f)]=_0x51b5d5,this[_0x177d10(0x11c)]=_0x505cf4,this[_0x177d10(0x2aa)](),this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x0),this[_0x177d10(0x2db)]({'dispose':()=>this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x1)});}[_0x232df7(0x2aa)](){const _0x48b3ad=_0x232df7;let _0x1c7bb2=this['_clipService'],_0x23d64d=new Map(),_0x9f443a=_0x1c7bb2[_0x48b3ad(0x185)]((_0x49c94d,_0x2b9e80,_0x9a5d42,_0x8e2228,_0x54b4a3)=>{const _0x10a6da=_0x48b3ad;let _0x5f3d12=_0x2b9e80;if(_0x5f3d12===_0xe73d9c[_0x10a6da(0x374)]||_0x2b9e80===_0x10a6da(0x27e))return!0x1;try{let _0x552634=_0x23d64d['get'](_0x2b9e80);return _0x552634||(_0x552634=new _0x243526(_0x5f3d12,_0x10a6da(0x111)+_0x2b9e80),_0x23d64d['set'](_0x2b9e80,_0x552634)),_0x552634[_0x10a6da(0x28d)](),_0x54b4a3&&Object[_0x10a6da(0x1be)](_0x54b4a3)[_0x10a6da(0x333)]>0x0&&_0x552634['setShapeData']({'adjustValues':_0x54b4a3},!0x0),_0x552634['updateContext']({'width':_0x9a5d42,'height':_0x8e2228}),_0x552634['buildClipPath'](_0x49c94d,{'left':0x0,'top':0x0,'width':_0x9a5d42,'height':_0x8e2228});}catch{return!0x1;}});this['disposeWithMe'](_0x9f443a),this[_0x48b3ad(0x2db)]({'dispose':()=>_0x23d64d[_0x48b3ad(0x2b3)]()});}[_0x232df7(0x1ca)](_0x476b77,_0x5dee86,_0x995d17,_0x5137d6,_0x1d65d6){const _0x2ac8f4=_0x232df7;let _0xba183=this['_drawingManagerService']['getDrawingData'](_0x476b77,_0x5dee86);if(!_0xba183[_0x995d17])return;let _0xd4de59={..._0xba183[_0x995d17],'prstGeom':_0x5137d6,'adjustValues':_0x1d65d6};this[_0x2ac8f4(0x11c)][_0x2ac8f4(0x373)]([_0xd4de59]);}};Q=X([Y(0x0,_0x229e82(_0x3a97fd)),Y(0x1,_0x229e82(_0x3deb35))],Q);const Jr=_0x232df7(0x118),Yr='sheet.image-clip.shape-picker.component';function Xr({onShapeClick:_0x4b2f9a,excludeGroups:_0xd663aa}){const _0x399349=_0x232df7;return _0x386576(_0x2c8a8a,{'excludeGroups':_0xd663aa,'onShapeClick':_0x4b2f9a,'scrollContainer':_0x399349(0x106)});}function Zr(){const _0x2e43a1=_0x232df7;let _0x3d6220=_0x3a3b93(_0x3deb35),_0x1f5344=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d[_0x2e43a1(0x171)]],'onShapeClick':_0x4a2cb9=>{const _0x443498=_0x2e43a1;let _0xce8c55=_0x3d6220[_0x443498(0x310)]()[_0x443498(0x12b)](_0xc566e7=>_0xc566e7['drawingType']===_0x190419[_0x443498(0x1a0)]);if(!_0xce8c55)return;let {unitId:_0x568ca9,subUnitId:_0x30fafa,drawingId:_0x2588b7}=_0xce8c55;_0x1f5344[_0x443498(0x1ca)](_0x568ca9,_0x30fafa,_0x2588b7,_0x4a2cb9[_0x443498(0xf1)]);}});}function Qr(){let _0x3b64d6=_0x3a3b93(_0x3deb35),_0x23db18=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d['Line']],'DropdownComponent':_0x217736,'onShapeClick':_0x194aeb=>{const _0x264072=_0x2028;let _0x473edd=_0x3b64d6[_0x264072(0x310)]()[_0x264072(0x12b)](_0x4e6d11=>_0x4e6d11[_0x264072(0x183)]===_0x190419[_0x264072(0x1a0)]);if(!_0x473edd)return;let {unitId:_0x4a71d4,subUnitId:_0x53bb76,drawingId:_0x2a8298}=_0x473edd;_0x23db18[_0x264072(0x1ca)](_0x4a71d4,_0x53bb76,_0x2a8298,_0x194aeb['type']);}});}function $r(){const _0x3a97cf=_0x232df7;let _0x2bec92=_0x3a3b93(_0x2359f7),_0x23eec5=_0x3a3b93(_0x3deb35),_0x14d37d=_0x3a3b93(_0x304294),_0x5624e0=_0x23eec5[_0x3a97cf(0x310)]()[0x0],_0x156aa1=_0x5624e0?_0x14d37d[_0x3a97cf(0xef)](_0x5624e0['unitId']):void 0x0,_0x538497=_0x156aa1===_0xe0c4a6[_0x3a97cf(0x2ed)]?_0x3a97cf(0x1e8):_0x156aa1===_0xe0c4a6[_0x3a97cf(0x277)]?Yr:void 0x0,_0x380051=_0x538497?_0x2bec92[_0x3a97cf(0x14a)](_0x538497):void 0x0;return _0x380051?_0x386576(_0x380051,{}):null;}function ei(){let _0x351425=_0x3a3b93(_0x1b156e);return _0x386576(Xr,{'onShapeClick':_0x509b3b=>{const _0x219674=_0x2028;_0x351425['executeCommand'](Ir['id'],{'value':_0x509b3b[_0x219674(0xf1)],'enhanceParams':{'endArrow':_0x509b3b[_0x219674(0x305)],'startArrow':_0x509b3b[_0x219674(0xed)],'horizontal':_0x509b3b['horizontal'],'vertical':_0x509b3b['vertical']}});}});}function ti(){return _0x386576(ei,{});}function ni(_0x258585){const _0x384a2e=_0x232df7;let _0x390652=_0x258585[_0x384a2e(0x14a)](_0x304294);return{'id':Ir['id'],'type':_0x27279c[_0x384a2e(0x135)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x384a2e(0x369),'tooltip':_0x384a2e(0x21a),'activated$':_0x6c9f0d(_0x390652,!0x1,()=>new _0x55611e(_0x4caf7b=>{const _0x196582=_0x384a2e;_0x4caf7b[_0x196582(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x258585,_0xe0c4a6[_0x384a2e(0x277)]),'disabled$':_0x5af922(_0x258585)};}function ri(_0x350579){const _0x1dc7e0=_0x232df7;let _0x124c47=_0x350579['get'](_0x304294);return{'id':Ur['id'],'type':_0x27279c['BUTTON'],'icon':_0x1dc7e0(0x1ea),'title':_0x1dc7e0(0x2f1),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x6c9f0d(_0x124c47,!0x1,()=>new _0x55611e(_0x18d999=>{const _0x3f29c5=_0x1dc7e0;_0x18d999[_0x3f29c5(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x350579,_0xe0c4a6[_0x1dc7e0(0x277)]),'disabled$':_0x5af922(_0x350579)};}const ii=_0x232df7(0x2d7),ai=_0x232df7(0xfd);function oi(_0x3d79e5){const _0x2d1187=_0x232df7;let _0x229f57=_0x3d79e5[_0x2d1187(0x14a)](_0x3deb35)['getFocusDrawings']();return _0x229f57[_0x2d1187(0x333)]===0x1&&_0x229f57[0x0][_0x2d1187(0x183)]===_0x190419[_0x2d1187(0x21d)]?_0x229f57[0x0]:null;}function si(_0x34811e){const _0x41add0=_0x232df7;let _0x3dcb0b=_0x34811e[_0x41add0(0x14a)](_0x3deb35);return _0x3dcb0b['focus$']['pipe'](_0x56d968(_0x3dcb0b['getFocusDrawings']()),_0x1e2b1f(_0x5b86de=>_0x5b86de['length']!==0x1||_0x5b86de[0x0]['drawingType']!==_0x190419['DRAWING_SHAPE']));}function ci(_0x2b172d){const _0x251453=_0x232df7;return{'id':ii,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x251453(0x2a3)],'title':_0x251453(0x16b),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x251453(0x1ab),'hidden$':si(_0x2b172d),'params':()=>{const _0x7363a5=_0x251453;let _0x39be07=oi(_0x2b172d);return _0x39be07?{'unitId':_0x39be07[_0x7363a5(0x1e3)],'subUnitId':_0x39be07[_0x7363a5(0x26c)],'shapeId':_0x39be07[_0x7363a5(0x36c)],'flipH':!0x0}:void 0x0;}};}function li(_0x916094){const _0x16bb61=_0x232df7;return{'id':ai,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x16bb61(0x2a3)],'title':_0x16bb61(0x291),'tooltip':_0x16bb61(0x291),'icon':_0x16bb61(0x3a0),'hidden$':si(_0x916094),'params':()=>{const _0x161368=_0x16bb61;let _0x5327ed=oi(_0x916094);return _0x5327ed?{'unitId':_0x5327ed[_0x161368(0x1e3)],'subUnitId':_0x5327ed['subUnitId'],'shapeId':_0x5327ed[_0x161368(0x36c)],'flipV':!0x0}:void 0x0;}};}const ui=_0x232df7(0x20e),di=_0x232df7(0x250),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x232df7(0x195);function mi(){let _0x326a6b=_0x3a3b93(_0x1b156e),_0xd5091c=_0x3a3b93(_0x3deb35),_0x439036=_0x3a3b93(_0x5c2303),_0x1e7a92=()=>{const _0x2113d4=_0x2028;var _0x6e46d2;let _0x3fc88b=_0xd5091c[_0x2113d4(0x310)]();if(_0x3fc88b['length']!==0x1||((_0x6e46d2=_0x3fc88b[0x0])==null?void 0x0:_0x6e46d2[_0x2113d4(0x183)])!==_0x190419[_0x2113d4(0x21d)])return null;let {unitId:_0x12f157,subUnitId:_0x42c4bd,drawingId:_0x22e4be}=_0x3fc88b[0x0],_0x32faee=_0x439036[_0x2113d4(0x280)](_0x12f157,_0x42c4bd,_0x22e4be),_0x27e4d8=_0x439036[_0x2113d4(0x329)](_0x12f157,_0x42c4bd,_0x22e4be);return _0x32faee===void 0x0||!_0x27e4d8?null:{'unitId':_0x12f157,'subUnitId':_0x42c4bd,'drawingId':_0x22e4be,'shapeType':_0x32faee,'shapeData':_0x27e4d8};},_0x351d6f=_0xe01eb2(()=>new _0x55611e(_0x12003d=>{const _0x583f69=_0x2028;let _0x274521=()=>_0x12003d['next'](_0x1e7a92()),_0x5a61e8=_0xd5091c[_0x583f69(0x19a)][_0x583f69(0x268)](_0x274521),_0x153464=_0x326a6b[_0x583f69(0x224)](_0x259b86=>{_0x259b86['id']===_0x4af43a['id']&&_0x274521();});return _0x274521(),()=>{const _0x57be96=_0x583f69;_0x5a61e8[_0x57be96(0x1d2)](),_0x153464[_0x57be96(0x296)]();};}),_0x1e7a92(),!0x1,[_0x326a6b,_0xd5091c,_0x439036]);return{'selection':_0x351d6f,'updateShapeData':_0x50960d=>{const _0x35ce61=_0x2028;_0x351d6f&&Dr(_0x326a6b,_0x351d6f[_0x35ce61(0x1e3)],_0x351d6f[_0x35ce61(0x26c)],_0x351d6f[_0x35ce61(0x36c)],{'oldShapeData':_0x351d6f[_0x35ce61(0x1b6)]},_0x50960d);}};}function hi(){const _0x42ef43=_0x232df7;let {selection:_0x2bb5b7,updateShapeData:_0x148da3}=mi();return _0x2bb5b7?_0x386576(_0x54731a,{'shapeData':_0x2bb5b7['shapeData'],'shapeType':_0x2bb5b7[_0x42ef43(0x15b)],'onUpdateShapeData':_0x148da3}):null;}function gi(){const _0x4646e9=_0x232df7;let _0x4db89b=_0x3a3b93(_0x1b156e),_0x47006e=_0x3a3b93(_0x16b0b7),{selection:_0x5d1261}=mi();return _0x5d1261?_0x386576(_0x5cc351,{'type':_0x11da62(_0x5d1261[_0x4646e9(0x1b6)]),'ariaLabel':_0x47006e['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x553651(_0x5d1261['shapeData']),'onSelect':_0x54418f=>_0x4db89b['executeCommand'](Kr['id'],{'presetId':_0x54418f})}):null;}function _i(){const _0x46bd07=_0x232df7;let {selection:_0x5c182b,updateShapeData:_0x422060}=mi();return _0x5c182b?_0x386576(_0x4c605a,{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x5c182b[_0x46bd07(0x1b6)],'onUpdateShapeData':_0x422060}):null;}function vi(){const _0x153d68=_0x232df7;var _0xa8a1bb;let {selection:_0x46d70a,updateShapeData:_0x18719d}=mi(),_0xcc0c4b=_0x5433fa({'hostType':_0xe0c4a6['UNIVER_SHEET'],'unitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1e3)])??'','subUnitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x26c)])??'','shapeId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x36c)])??'','shapeData':_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1b6)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x153d68(0x344),'onUpdateBinding':_0x3372a2=>_0x18719d({'formulaBinding':_0x3372a2})}),_0x1b5e7c=((_0xa8a1bb=_0xcc0c4b[_0x153d68(0x1fc)])==null?void 0x0:_0xa8a1bb['flatMap'](_0x184d67=>_0x184d67[_0x153d68(0x1e0)])[_0x153d68(0x34b)](_0x1dcf26=>_0x1dcf26[_0x153d68(0x346)]!==!0x1))??[];return _0x46d70a!=null&&_0x46d70a[_0x153d68(0x1b6)][_0x153d68(0x2da)]?_0x386576(_0x13101b,{'actions':_0x1b5e7c,'panel':_0xcc0c4b[_0x153d68(0x284)]}):null;}const yi='sheets-shape-ui.ribbon.shape-format.style-control',bi=_0x232df7(0x244),xi=_0x232df7(0xec),Si='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ci=_0x232df7(0x19b),wi=_0x232df7(0x2e1),Ti=_0x232df7(0x178);function Ei(_0x19cb6d){const _0x2c1a44=_0x232df7;let _0x530acb=_0x19cb6d[_0x2c1a44(0x14a)](_0x1b156e),_0x969d43=_0x19cb6d[_0x2c1a44(0x14a)](_0x3deb35),_0x111b84=_0x19cb6d[_0x2c1a44(0x14a)](_0x5c2303);return new _0x55611e(_0x19dacd=>{const _0x104ab6=_0x2c1a44;let _0x57627=()=>{const _0x505205=_0x2028;let _0x390a53=Di(_0x19cb6d),_0x2024f8=_0x390a53?_0x111b84[_0x505205(0x329)](_0x390a53[_0x505205(0x1e3)],_0x390a53[_0x505205(0x26c)],_0x390a53['drawingId']):null;_0x19dacd[_0x505205(0x360)](_0x2024f8?_0x553651(_0x2024f8)??'':'');},_0x26bb56=_0x969d43[_0x104ab6(0x19a)][_0x104ab6(0x268)](_0x57627),_0x3efaec=_0x530acb['onCommandExecuted'](_0x295a62=>{_0x295a62['id']===_0x4af43a['id']&&_0x57627();});return _0x57627(),()=>{const _0x97f913=_0x104ab6;_0x26bb56[_0x97f913(0x1d2)](),_0x3efaec[_0x97f913(0x296)]();};});}function Di(_0x3ee324){const _0x46310f=_0x232df7;var _0x1c0e37;let _0x59fb83=_0x3ee324[_0x46310f(0x14a)](_0x3deb35)[_0x46310f(0x310)]();return _0x59fb83[_0x46310f(0x333)]===0x1&&((_0x1c0e37=_0x59fb83[0x0])==null?void 0x0:_0x1c0e37[_0x46310f(0x183)])===_0x190419[_0x46310f(0x21d)]?_0x59fb83[0x0]:null;}function Oi(_0x3a7437,_0x41584=!0x1){const _0x124f6a=_0x232df7;let _0x25a525=_0x3a7437[_0x124f6a(0x14a)](_0x1b156e),_0x5415fa=_0x3a7437['get'](_0x3deb35),_0x37a2dd=_0x3a7437[_0x124f6a(0x14a)](_0x5c2303);return new _0x55611e(_0x2d4690=>{const _0x3fd46e=_0x124f6a;let _0x75c755=()=>{const _0x103ead=_0x2028;let _0x8fa5d0=Di(_0x3a7437);if(!_0x8fa5d0){_0x2d4690[_0x103ead(0x360)](!0x0);return;}let _0x16b3ff=_0x37a2dd[_0x103ead(0x329)](_0x8fa5d0[_0x103ead(0x1e3)],_0x8fa5d0[_0x103ead(0x26c)],_0x8fa5d0['drawingId']);_0x2d4690[_0x103ead(0x360)](!_0x16b3ff||_0x41584&&_0x16b3ff['formulaBinding']==null);},_0x1675f3=_0x5415fa['focus$'][_0x3fd46e(0x268)](_0x75c755),_0x3985bb=_0x25a525[_0x3fd46e(0x224)](_0x4078e2=>{_0x4078e2['id']===_0x4af43a['id']&&_0x75c755();});return _0x75c755(),()=>{const _0x2a19d1=_0x3fd46e;_0x1675f3['unsubscribe'](),_0x3985bb[_0x2a19d1(0x296)]();};});}function ki(_0x5be7ba){const _0x12c018=_0x232df7;let _0x2de8b2=_0x5be7ba[_0x12c018(0x14a)](_0x3deb35),_0x4cb51d=_0x5be7ba[_0x12c018(0x14a)](_0x5c2303);return _0x2de8b2[_0x12c018(0x19a)][_0x12c018(0x16f)](_0x56d968(_0x2de8b2[_0x12c018(0x310)]()),_0x1e2b1f(()=>{const _0x57e80d=_0x12c018;let _0xd03ba4=Di(_0x5be7ba),_0x371768=_0xd03ba4?_0x4cb51d[_0x57e80d(0x280)](_0xd03ba4[_0x57e80d(0x1e3)],_0xd03ba4[_0x57e80d(0x26c)],_0xd03ba4[_0x57e80d(0x36c)]):void 0x0;return _0x371768===void 0x0||_0x52f76f(_0x371768);}));}function Ai(_0x189ddf){const _0x224a0f=_0x232df7;return{'id':Kr['id'],'type':_0x27279c[_0x224a0f(0x135)],'icon':_0x224a0f(0x2d1),'title':_0x224a0f(0x29c),'tooltip':_0x224a0f(0x29c),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x189ddf),'hidden$':Oi(_0x189ddf)};}function ji(_0x4ca055){const _0x14dc1c=_0x232df7;return{'id':qr['id'],'type':_0x27279c[_0x14dc1c(0x135)],'icon':'ShapeIcon','title':_0x14dc1c(0x33b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x1b9682,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x4ca055)};}function Mi(_0x45792f,_0x11b61f,_0x3bc551=!0x1){const _0x4cca22=_0x232df7;return _0x2d7133=>({'id':_0x45792f,'type':_0x27279c[_0x4cca22(0x2a3)],'label':{'name':_0x11b61f,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2d7133,_0x3bc551)});}function _0x2028(_0x369708,_0x23b888){_0x369708=_0x369708-0xdf;const _0x1606af=_0x1606();let _0x2028a5=_0x1606af[_0x369708];return _0x2028a5;}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x32a6c2,_0x25b0a8,_0x2e38bf,_0x3693eb){const _0x375b37=_0x232df7;return _0xc85c8=>({'id':_0x32a6c2,'commandId':_0x535c91['id'],'type':_0x27279c[_0x375b37(0x2a3)],'icon':_0x2e38bf,'title':_0x3693eb,'tooltip':_0x3693eb,'hidden$':Oi(_0xc85c8),'params':()=>{const _0x433d4c=_0x375b37;let _0x377b9e=Di(_0xc85c8);return _0x377b9e?{'unitId':_0x377b9e[_0x433d4c(0x1e3)],'subUnitId':_0x377b9e[_0x433d4c(0x26c)],'drawingIds':[_0x377b9e[_0x433d4c(0x36c)]],'arrangeType':_0x25b0a8}:void 0x0;}});}const Li=Ii(Si,_0x32c897[_0x232df7(0x239)],_0x232df7(0x13b),_0x232df7(0x108)),Ri=Ii(Ci,_0x32c897[_0x232df7(0x1bd)],_0x232df7(0x1d5),_0x232df7(0x28c)),zi=Ii(wi,_0x32c897[_0x232df7(0x20b)],_0x232df7(0x2de),'shape-editor-ui.arrange.front'),Bi=Ii(Ti,_0x32c897[_0x232df7(0x273)],'BottomIcon',_0x232df7(0x193));function Vi(_0x4a6104){const _0x4d976=_0x232df7;return{'id':Wr['id'],'type':_0x27279c[_0x4d976(0x2a3)],'icon':_0x4d976(0x120),'title':_0x4d976(0x1b0),'tooltip':'sheets-shape-ui.formatShape','hidden$':Oi(_0x4a6104),'params':()=>{const _0x497fca=_0x4d976;let _0x2cde72=Di(_0x4a6104);return _0x2cde72?{'unitId':_0x2cde72[_0x497fca(0x1e3)],'subUnitId':_0x2cde72[_0x497fca(0x26c)],'drawingId':_0x2cde72[_0x497fca(0x36c)]}:void 0x0;}};}const Hi={[_0x541bd0['RIBBON']]:{[Br]:{'order':0x64,'title':_0x232df7(0x1b0),'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},[_0x1f2f61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x1bd401}}}}},Ui={[_0x3a3389[_0x232df7(0x26e)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3a3389['OTHERS']]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x29b253['DRAWING']]:{[_0x1f1f30[_0x232df7(0x34c)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki=_0x232df7(0x1df);const qi={'id':_0x232df7(0x10d),'type':_0x33172f[_0x232df7(0x2ab)],'handler'(_0x55c102,_0x305462){const _0x348a1c=_0x232df7;return _0x305462?(_0x55c102[_0x348a1c(0x14a)](_0x8e92cf)[_0x348a1c(0x22b)](_0x305462[_0x348a1c(0x1b8)],{'hostType':_0xe0c4a6[_0x348a1c(0x277)],'shapeId':_0x305462[_0x348a1c(0x36c)],'subUnitId':_0x305462['subUnitId'],'unitId':_0x305462['unitId']}),!0x0):!0x1;}},Ji=_0x232df7(0x17c),Yi={};let Xi=class extends _0x2bb0e8{constructor(_0x440a3b,_0x1e3539,_0x39e2a3,_0x4194ed,_0x12eb69){const _0x228c0c=_0x232df7;super(),this['_context']=_0x440a3b,this['_drawingManagerService']=_0x1e3539,this[_0x228c0c(0x209)]=_0x39e2a3,this[_0x228c0c(0x2d4)]=_0x4194ed,this[_0x228c0c(0x1ec)]=_0x12eb69,q(this,_0x228c0c(0x1b2),null),q(this,_0x228c0c(0x102),null),q(this,_0x228c0c(0x161),null),q(this,_0x228c0c(0x2ad),void 0x0),q(this,_0x228c0c(0x2b1),[]),q(this,_0x228c0c(0x144),0x0),q(this,_0x228c0c(0x222),0x0),q(this,_0x228c0c(0x343),0x0),q(this,_0x228c0c(0x336),0x0),q(this,_0x228c0c(0x173),!0x1),q(this,_0x228c0c(0x192),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x228c0c(0x30b),void 0x0),q(this,_0x228c0c(0x290),void 0x0),q(this,_0x228c0c(0x25d),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}[_0x232df7(0x23a)](){const _0x2647b2=_0x232df7;this[_0x2647b2(0x352)]();}['refreshAdjustControls'](){const _0x20f832=_0x232df7;this[_0x20f832(0x352)](),this['_createControls'](!0x0);}[_0x232df7(0x2bc)](_0x2eb29c,_0x295c70,_0x2ba968,_0x305033){const _0x1b5986=_0x232df7;let _0x157283=_0x2eb29c;if(_0x157283!==_0xe73d9c[_0x1b5986(0x374)]&&_0x2eb29c!==_0x1b5986(0x27e))try{let _0x2ed691=new _0x243526(_0x157283,_0x1b5986(0xe7)+_0x2eb29c);return _0x305033&&_0x2ed691[_0x1b5986(0x2f8)]({'adjustValues':_0x305033},!0x0),_0x2ed691[_0x1b5986(0x2bd)]({'width':_0x295c70,'height':_0x2ba968}),_0x2ed691;}catch{return;}}[_0x232df7(0x133)](_0x36f0e9,_0x10abd1,_0x5670b4){const _0x5288ad=_0x232df7;let _0x1113a6={'unitId':_0x36f0e9,'subUnitId':_0x10abd1,'drawingId':_0x5670b4},_0x255ace=this[_0x5288ad(0x11c)]['getDrawingByParam'](_0x1113a6);if(_0x255ace&&_0x255ace[_0x5288ad(0x183)]===_0x190419[_0x5288ad(0x1a0)])return _0x255ace;}[_0x232df7(0x1ae)](_0x5708a4,_0x4c5e81,_0x34de4a){const _0x2366e2=_0x232df7;let _0x9a28af=this[_0x2366e2(0x209)][_0x2366e2(0x124)](_0x5708a4);if(!_0x9a28af)return;let {scene:_0x23ab3f}=_0x9a28af,_0x4dd364=_0x3023e5({'unitId':_0x5708a4,'subUnitId':_0x4c5e81,'drawingId':_0x34de4a}),_0x5c6b64=_0x23ab3f[_0x2366e2(0x17a)](_0x4dd364);if(_0x5c6b64 instanceof _0x2cc9fc){let _0x1b26f7=_0x5c6b64[_0x2366e2(0x320)];if(_0x1b26f7)return{'prstGeom':_0x1b26f7,'adjustValues':_0x5c6b64['prstGeomAdjValues']};}}[_0x232df7(0x22d)](_0x217ad3=!0x1){const _0x21bf5a=_0x232df7;if(!this[_0x21bf5a(0x102)]||!this[_0x21bf5a(0x161)]||!this[_0x21bf5a(0x1b2)])return;let _0x243c9a=this[_0x21bf5a(0x209)][_0x21bf5a(0x124)](this[_0x21bf5a(0x102)]);if(!_0x243c9a||!_0x243c9a[_0x21bf5a(0x18c)](_0x54a66d)[_0x21bf5a(0x2ee)]())return;let {scene:_0x2feed0}=_0x243c9a,_0x43a15c=this[_0x21bf5a(0x133)](this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0x43a15c)return;let {transform:_0x498e12}=_0x43a15c;if(!_0x498e12)return;let {left:_0x1bc35d,top:_0x296631,width:_0x3231dd,height:_0x1ba528,flipX:_0x289144,flipY:_0x565da2,angle:_0x37b980=0x0}=_0x498e12;if(_0x1bc35d===void 0x0||_0x296631===void 0x0)return;let _0xb2008b=this[_0x21bf5a(0x1ae)](this['_unitId'],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0xb2008b)return;if(_0x217ad3){let _0x28871e=this[_0x21bf5a(0x2bc)](_0xb2008b[_0x21bf5a(0x320)],_0x3231dd||0x0,_0x1ba528||0x0,_0xb2008b[_0x21bf5a(0x29d)]);if(!_0x28871e)return;this[_0x21bf5a(0x2ad)]=_0x28871e[_0x21bf5a(0x158)]();}let _0x1b5672=this['_activeAdjustPointList'];if(_0x1b5672&&_0x1b5672[_0x21bf5a(0x333)]!==0x0)for(let _0x133e50=0x0;_0x133e50<_0x1b5672[_0x21bf5a(0x333)];_0x133e50++){let _0x57f254=_0x1b5672[_0x133e50],_0x26c9fe=_0x57f254['x'],_0x18949b=_0x57f254['y'];if(_0x289144&&(_0x26c9fe=(_0x3231dd||0x0)-_0x26c9fe),_0x565da2&&(_0x18949b=(_0x1ba528||0x0)-_0x18949b),_0x37b980!==0x0){let _0x45f708=(_0x3231dd||0x0)/0x2,_0x51b110=(_0x1ba528||0x0)/0x2,_0x3c28bd=_0x37b980*Math['PI']/0xb4,_0x12ed66=Math[_0x21bf5a(0x2cd)](_0x3c28bd),_0x26b657=Math[_0x21bf5a(0x159)](_0x3c28bd),_0x59a259=_0x26c9fe-_0x45f708,_0x37a19a=_0x18949b-_0x51b110;_0x26c9fe=_0x45f708+(_0x59a259*_0x12ed66-_0x37a19a*_0x26b657),_0x18949b=_0x51b110+(_0x59a259*_0x26b657+_0x37a19a*_0x12ed66);}let _0xce8f30={'x':_0x26c9fe,'y':_0x18949b,'adjName':_0x57f254[_0x21bf5a(0x18d)]};this['_addControl'](_0x2feed0,_0xce8f30,_0xce8f30[_0x21bf5a(0x18d)],_0x1bc35d,_0x296631,this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)]);}}['_addControl'](_0x4a5fad,_0x4a0a5c,_0x33c7a6,_0x34023e,_0x446e93,_0x25c375,_0x2ef4ef){const _0x4760d7=_0x232df7;if(!this[_0x4760d7(0x1b2)])return;let _0x250927=_0x4760d7(0x262)+this[_0x4760d7(0x1b2)]+'-'+_0x33c7a6,_0x4674d9=_0x4a5fad['getObjectIncludeInGroup'](_0x250927);if(_0x4674d9){_0x4674d9['transformByState']({'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize']});return;}let _0x1bdce4=new Nr(_0x250927,{'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize'],'adjName':_0x33c7a6,'shapeId':this['_activeImageId'],'unitId':_0x25c375,'subUnitId':_0x2ef4ef,'width':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'height':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0});this['_shapes'][_0x4760d7(0x29a)](_0x1bdce4),this[_0x4760d7(0x2ac)](_0x1bdce4,_0x4a5fad,_0x33c7a6),_0x4a5fad['addObject'](_0x1bdce4,_0x4489b8+0x1);}[_0x232df7(0x352)](){const _0x3705a2=_0x232df7;this[_0x3705a2(0x2b1)][_0x3705a2(0x333)]!==0x0&&(this[_0x3705a2(0x2b1)][_0x3705a2(0x385)](_0x4c8f96=>_0x4c8f96[_0x3705a2(0x296)]()),this[_0x3705a2(0x2b1)]=[]);}['_getScrollInfo'](_0x5f553c,_0x22150d){const _0x473c4f=_0x232df7;var _0x3fecaa;let _0x27d6d4={'x':0x0,'y':0x0},_0x19bee0=this['_renderManagerService']['getRenderUnitById'](_0x5f553c);if(!_0x19bee0||!_0x19bee0[_0x473c4f(0x18c)](_0x54a66d)[_0x473c4f(0x38a)](_0x22150d))return _0x27d6d4;let _0x34a014=_0x19bee0[_0x473c4f(0x18c)](_0x5ccab7),_0x5644bf=_0x34a014==null?void 0x0:_0x34a014['getCurrentScrollState']();if(!_0x5644bf)return _0x27d6d4;let _0xabd6d4=(_0x3fecaa=this['_univerInstanceService']['getUnit'](_0x5f553c))==null?void 0x0:_0x3fecaa[_0x473c4f(0x339)](_0x22150d);if(!_0xabd6d4)return _0x27d6d4;let _0x230bcc=_0x56d9fe(_0x5644bf['sheetViewStartRow'],_0x5644bf['sheetViewStartColumn'],_0x19bee0[_0x473c4f(0x381)],_0xabd6d4);return _0x230bcc?{'x':_0x230bcc[_0x473c4f(0x397)],'y':_0x230bcc[_0x473c4f(0x125)]}:_0x27d6d4;}['_getZoomRatio'](_0x3c40e7,_0x470f35){const _0x18b00f=_0x232df7;var _0x1ebfe9;let _0x1b9d75=(_0x1ebfe9=this[_0x18b00f(0x2d4)][_0x18b00f(0x2e7)](_0x3c40e7))==null?void 0x0:_0x1ebfe9[_0x18b00f(0x339)](_0x470f35);return(_0x1b9d75==null?void 0x0:_0x1b9d75[_0x18b00f(0x3a7)]())??0x1;}['_attachAdjustEvent'](_0x755849,_0x3da325,_0x81b304){const _0x126b25=_0x232df7;this[_0x126b25(0x2db)](_0x169987(_0x755849[_0x126b25(0x197)]['subscribeEvent']((_0xe08841,_0x5d1243)=>{const _0x5bf9d2=_0x126b25;var _0x4ab453,_0x436aaf,_0x56f1b0;let {unitId:_0x11190e,subUnitId:_0x47a5fc,drawingId:_0x2fbfed}=_0x755849[_0x5bf9d2(0xe5)](),_0x5c76ba=this['_getImageDrawingInfo'](_0x11190e,_0x47a5fc,_0x2fbfed);if(!(_0x5c76ba!=null&&_0x5c76ba['transform']))return;let {left:_0x312c75,top:_0xf7fc57,width:_0x5f6146,height:_0xc1818b}=_0x5c76ba['transform'];this[_0x5bf9d2(0x144)]=_0x312c75||0x0,this['_baseTop']=_0xf7fc57||0x0,this['_baseWidth']=_0x5f6146||0x0,this[_0x5bf9d2(0x336)]=_0xc1818b||0x0;let _0x395fff=!!((_0x4ab453=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x4ab453[_0x5bf9d2(0x270)]),_0xe9e6aa=!!((_0x436aaf=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x436aaf[_0x5bf9d2(0x25e)]),_0x3e1c6f=((_0x56f1b0=_0x5c76ba[_0x5bf9d2(0x15f)])==null?void 0x0:_0x56f1b0['angle'])||0x0,_0x13842a=this[_0x5bf9d2(0x1ae)](_0x11190e,_0x47a5fc,_0x2fbfed);if(!_0x13842a)return;let _0x23a17b=this['_getOrCreateShapeModel'](_0x13842a[_0x5bf9d2(0x320)],this[_0x5bf9d2(0x343)],this['_baseHeight'],_0x13842a[_0x5bf9d2(0x29d)]);if(!_0x23a17b||(this['_activeShapeModel']=_0x23a17b,this['_activeAdjustInfo']=_0x23a17b[_0x5bf9d2(0x219)](_0x81b304),!this[_0x5bf9d2(0x192)]))return;this[_0x5bf9d2(0x173)]=!0x0,_0x3da325[_0x5bf9d2(0x3a2)]();let _0x1a3c75=_0x13842a[_0x5bf9d2(0x320)];this[_0x5bf9d2(0x30b)]=_0x3da325[_0x5bf9d2(0x2c6)]['subscribeEvent']((_0x6ff62e,_0x1c0bfe)=>{const _0x5a3e4c=_0x5bf9d2;if(!this[_0x5a3e4c(0x173)])return;let {offsetX:_0x5c35c3,offsetY:_0x43fa6b}=_0x6ff62e,_0x36191=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x36191)return;_0x3da325[_0x5a3e4c(0x3a2)](),_0x3da325[_0x5a3e4c(0x331)](_0x1d110f[_0x5a3e4c(0x1a7)]);let _0x4a35e7={'left':0x0,'top':0x0,'width':this[_0x5a3e4c(0x343)],'height':this['_baseHeight']},_0x13761f=this[_0x5a3e4c(0x1c6)](_0x11190e,_0x47a5fc),_0xfb1e98=this[_0x5a3e4c(0x1d9)](_0x11190e,_0x47a5fc),_0x387e87=_0x5c35c3/_0xfb1e98+_0x13761f['x']-this[_0x5a3e4c(0x144)],_0x24f22a=_0x43fa6b/_0xfb1e98+_0x13761f['y']-this['_baseTop'];if(_0x3e1c6f!==0x0){let _0x35f277=this[_0x5a3e4c(0x343)]/0x2,_0x4b23d8=this[_0x5a3e4c(0x336)]/0x2,_0x1757da=_0x3e1c6f*Math['PI']/0xb4,_0x1beea6=Math[_0x5a3e4c(0x2cd)](_0x1757da),_0x50da1d=Math['sin'](_0x1757da),_0x414cfc=_0x387e87-_0x35f277,_0x142e4d=_0x24f22a-_0x4b23d8;_0x387e87=_0x35f277+(_0x414cfc*_0x1beea6+_0x142e4d*_0x50da1d),_0x24f22a=_0x4b23d8+(-_0x414cfc*_0x50da1d+_0x142e4d*_0x1beea6);}_0x395fff&&(_0x387e87=this[_0x5a3e4c(0x343)]-_0x387e87),_0xe9e6aa&&(_0x24f22a=this[_0x5a3e4c(0x336)]-_0x24f22a);let _0xb7c31b=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x391)](_0x4a35e7,{'x':_0x387e87,'y':_0x24f22a},_0x36191,_0x395fff,_0xe9e6aa);if(Object[_0x5a3e4c(0x1be)](_0xb7c31b)[_0x5a3e4c(0x333)]!==0x0){for(let [_0x5d2a29,_0x1be863]of Object['entries'](_0xb7c31b))this['_activeShapeModel'][_0x5a3e4c(0x359)](_0x5d2a29,_0x1be863);this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x2bd)]({'width':this[_0x5a3e4c(0x343)],'height':this[_0x5a3e4c(0x336)]}),this[_0x5a3e4c(0x191)](_0x11190e,_0x47a5fc,_0x2fbfed,_0xb7c31b),this[_0x5a3e4c(0x2ad)]=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x158)](),this[_0x5a3e4c(0x22d)](),_0x1c0bfe['stopPropagation']();}}),this[_0x5bf9d2(0x290)]=_0x3da325[_0x5bf9d2(0x2c7)][_0x5bf9d2(0x2e4)]((_0x5d5d4c,_0x231b00)=>{const _0x2dedc0=_0x5bf9d2;if(this[_0x2dedc0(0x30b)][_0x2dedc0(0x1d2)](),this[_0x2dedc0(0x290)][_0x2dedc0(0x1d2)](),_0x3da325[_0x2dedc0(0x2fe)](),this['_activeShapeModel']){let _0x4255db=this[_0x2dedc0(0x1d8)][_0x2dedc0(0x12f)](),_0x52a896={};for(let _0x2c09f1 of _0x4255db){let _0x3cfdf6=this['_activeShapeModel'][_0x2dedc0(0x357)](_0x2c09f1);_0x3cfdf6!==void 0x0&&(_0x52a896[_0x2c09f1]=_0x3cfdf6);}this[_0x2dedc0(0x1ec)][_0x2dedc0(0x1ca)](_0x11190e,_0x47a5fc,_0x2fbfed,_0x1a3c75,_0x52a896);}this[_0x2dedc0(0x192)]=void 0x0,this[_0x2dedc0(0x1d8)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x231b00[_0x2dedc0(0x345)](),_0x3da325[_0x2dedc0(0x34f)]();}),_0x5d1243['stopPropagation']();})));}[_0x232df7(0x191)](_0xf563f8,_0x33264c,_0x25ca81,_0x5067e7){const _0x29e4f1=_0x232df7;let _0x53cd30=this[_0x29e4f1(0x209)]['getRenderUnitById'](_0xf563f8);if(!_0x53cd30)return;let {scene:_0x42aad0}=_0x53cd30,_0x533474=_0x3023e5({'unitId':_0xf563f8,'subUnitId':_0x33264c,'drawingId':_0x25ca81}),_0x18704e=_0x42aad0[_0x29e4f1(0x17a)](_0x533474);if(_0x18704e instanceof _0x2cc9fc){let _0x221bc9=_0x18704e[_0x29e4f1(0x236)]??{};_0x18704e[_0x29e4f1(0x176)]({..._0x221bc9,..._0x5067e7}),_0x18704e[_0x29e4f1(0x390)](!0x0);}}[_0x232df7(0xe8)](){const _0x51ad39=_0x232df7;let _0x6cbebc=this['_univerInstanceService'][_0x51ad39(0x2d0)](_0xe0c4a6[_0x51ad39(0x277)]);this[_0x51ad39(0x2db)](_0x6cbebc[_0x51ad39(0x16f)](_0x4faa1d(_0x26bf90=>_0x26bf90?_0x26bf90[_0x51ad39(0xe1)]['pipe'](_0x4faa1d(_0x2163c1=>{const _0x5cd522=_0x51ad39;if(!_0x2163c1)return _0x5f31a2;let _0x721986=_0x26bf90['getUnitId'](),_0xac53f3=this[_0x5cd522(0x209)][_0x5cd522(0x124)](_0x721986),_0x5631ed=_0xac53f3==null?void 0x0:_0xac53f3[_0x5cd522(0x381)];return _0x5631ed?_0x24a70f(_0x5631ed):_0x5f31a2;})):_0x5f31a2))[_0x51ad39(0x268)](_0x1d279a=>{const _0x47c35d=_0x51ad39;let _0x5df118=_0x1d279a['getTransformerByCreate']();this[_0x47c35d(0x2db)](_0x1d279a['onPointerMove$']['subscribeEvent'](()=>{const _0x2bd7e8=_0x47c35d;this[_0x2bd7e8(0x25d)]&&this[_0x2bd7e8(0x352)]();})),this[_0x47c35d(0x2db)](_0x5df118[_0x47c35d(0x22f)]['subscribe'](_0x43fd9a=>{const _0x55d443=_0x47c35d;let {objects:_0x51f67e}=_0x43fd9a;if(this[_0x55d443(0x22d)](),_0x51f67e!==null&&_0x51f67e[_0x55d443(0x292)]===0x1){let _0x35d9ef=_0x51f67e['values']()[_0x55d443(0x360)]()['value'];_0x35d9ef instanceof _0x2cc9fc&&_0x35d9ef[_0x55d443(0x320)]&&(this[_0x55d443(0x25d)]=!0x0);}})),this['disposeWithMe'](_0x5df118[_0x47c35d(0x2fd)][_0x47c35d(0x268)](()=>{const _0x255fe7=_0x47c35d;this[_0x255fe7(0x25d)]&&this[_0x255fe7(0x352)]();})),this[_0x47c35d(0x2db)](_0x1d279a[_0x47c35d(0x2c7)][_0x47c35d(0x2e4)](()=>{const _0x4b11a8=_0x47c35d;this[_0x4b11a8(0x25d)]&&(this[_0x4b11a8(0x25d)]=!0x1,this[_0x4b11a8(0x22d)]());})),this[_0x47c35d(0x2db)](_0x5df118['changeEnd$']['subscribe'](()=>{const _0x42ea38=_0x47c35d;if(this[_0x42ea38(0x102)]&&this['_subUnitId']&&this[_0x42ea38(0x1b2)]){let _0x1f4f73=this['_getImagePrstGeom'](this[_0x42ea38(0x102)],this['_subUnitId'],this[_0x42ea38(0x1b2)]);if(_0x1f4f73){var _0x19f12c,_0x4f5b94;let _0x3dcf8f=this[_0x42ea38(0x133)](this[_0x42ea38(0x102)],this[_0x42ea38(0x161)],this[_0x42ea38(0x1b2)]),_0xed96be=(_0x3dcf8f==null||(_0x19f12c=_0x3dcf8f[_0x42ea38(0x15f)])==null?void 0x0:_0x19f12c[_0x42ea38(0x324)])||0x0,_0x457807=(_0x3dcf8f==null||(_0x4f5b94=_0x3dcf8f['transform'])==null?void 0x0:_0x4f5b94[_0x42ea38(0x39a)])||0x0,_0x5b027e=this[_0x42ea38(0x2bc)](_0x1f4f73[_0x42ea38(0x320)],_0xed96be,_0x457807,_0x1f4f73[_0x42ea38(0x29d)]);_0x5b027e&&(this['_activeAdjustPointList']=_0x5b027e[_0x42ea38(0x158)](),this[_0x42ea38(0x352)](),this[_0x42ea38(0x22d)](!0x0));}}}));}));}[_0x232df7(0x22c)](){const _0x1f7517=_0x232df7;this['disposeWithMe'](this[_0x1f7517(0x11c)][_0x1f7517(0x19a)][_0x1f7517(0x268)](_0x36418a=>{const _0x38b0b0=_0x1f7517;if(_0x36418a[_0x38b0b0(0x333)]===0x1){let _0x165b3f=_0x36418a[0x0];if(_0x165b3f[_0x38b0b0(0x183)]===_0x190419[_0x38b0b0(0x1a0)]){let {unitId:_0x3adf51,subUnitId:_0x4f43b5,drawingId:_0x4aecee}=_0x165b3f,_0x34ceb7=this[_0x38b0b0(0x1ae)](_0x3adf51,_0x4f43b5,_0x4aecee);if(_0x34ceb7){var _0x38f96,_0x1a7391;this[_0x38b0b0(0x1b2)]=_0x4aecee,this[_0x38b0b0(0x102)]=_0x3adf51,this[_0x38b0b0(0x161)]=_0x4f43b5;let _0x2f1da7=this[_0x38b0b0(0x133)](_0x3adf51,_0x4f43b5,_0x4aecee),_0x404035=(_0x2f1da7==null||(_0x38f96=_0x2f1da7['transform'])==null?void 0x0:_0x38f96['width'])||0x0,_0x1e0314=(_0x2f1da7==null||(_0x1a7391=_0x2f1da7['transform'])==null?void 0x0:_0x1a7391[_0x38b0b0(0x39a)])||0x0,_0x5083ce=this['_getOrCreateShapeModel'](_0x34ceb7['prstGeom'],_0x404035,_0x1e0314,_0x34ceb7[_0x38b0b0(0x29d)]);_0x5083ce&&(this[_0x38b0b0(0x2ad)]=_0x5083ce[_0x38b0b0(0x158)]()),this[_0x38b0b0(0x352)](),this[_0x38b0b0(0x22d)](!0x0);}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)][_0x1f7517(0x274)][_0x1f7517(0x268)](_0x5a7e65=>{const _0x47c2b4=_0x1f7517;if(_0x5a7e65['length']===0x1){let _0x549ee8=_0x5a7e65[0x0],_0x669927=this[_0x47c2b4(0x11c)][_0x47c2b4(0x282)](_0x549ee8);(_0x669927==null?void 0x0:_0x669927[_0x47c2b4(0x183)])===_0x190419[_0x47c2b4(0x1a0)]&&this['_activeImageId']===_0x549ee8[_0x47c2b4(0x36c)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)]['remove$'][_0x1f7517(0x268)](_0x15996b=>{const _0x3c1347=_0x1f7517;for(let _0x299ec8 of _0x15996b)this[_0x3c1347(0x1b2)]===_0x299ec8[_0x3c1347(0x36c)]&&this[_0x3c1347(0x109)]();}));}[_0x232df7(0x109)](){const _0x37d258=_0x232df7;this[_0x37d258(0x1b2)]=null,this[_0x37d258(0x102)]=null,this[_0x37d258(0x161)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x37d258(0x352)]();}};Xi=X([Y(0x1,_0x3deb35),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x304294),Y(0x4,_0x229e82(Q))],Xi);function Zi(_0x1d43d7){return _0x1d43d7['trim']()||void 0x0;}function _0x1606(){const _0x2c94c6=['createControl$','_baseHeight','BottomIcon','Image','getSheetBySheetId','defineProperty','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.search','_shapeUpdateListener','fill','getSkeletonParam','cxnPointStrokeWidth','computeStraightConnectorLayout','_baseDrawingRect','_baseWidth','bottom','stopPropagation','visible','_loadAndSetImage','_applyFormulaAutoFitSize','_getDrawingRect','_createCopyInfoByRange','filter','OTHERS','fromChangeset','GROUP','enableObjectsEvent','_draggingConnectorId','run','_clearControls','_shapeRenderController','invert','_hasReset','_draw','getAdjustValueByName','_iconManager','setAdjustValueByName','setFillImage','map','getCurrentUnitOfType','_context','save','hideInfoPopup','next','drawing-ui.objectListPanel.lockHint','_activeShapeId','attachTransformerTo','getInverseCoord','StraightConnector1','normal','sheet.operation.open-sheet-shape-format-panel','copyId','ShapeIcon','mergeMenu','_openShapeEditPanel','drawingId','remove$','scale','_canEdit','_connectionSiteObjects','_drawSimpleText','getTransformerByCreate','featurePluginUpdateNotification','None','_initSelection','updateDocumentStyle','sheet.shape.floating-toolbar','rect','clipHeight','drawing-ui.objectListPanel.filterLocked','parse','gradientEndColor','selectable','_sheetShapeAdjustController','_highlightedSiteIndex','endConnectionDetection','scene','_insertingShapeKeys','shapeKey','close','forEach','70YkXNkh','sheets-shape-ui.permission.editErr','30534GRkaXH','complete','getSkeleton','clipTop','getBasicShapeRelation','drawing-ui.objectListPanel.typeNames.','viewBound','_handleConnectorPointerUp','makeDirty','calcAdjValues','object','_getShapeAdjustPointListById','addImageSourceCache','showContextualTab','shapeText','viewportScrollX','classType','fillImageSource','height','getContextValue','localeService','drawing-ui.objectListPanel.show','_hyperLinkRegions','_shapeService','FlipVerticalIcon','_adjName','disableObjectsEvent','getUnitId','pushUndoRedo','presentation','_cxnIndex','getZoomRatio','registerRenderModule','getObjectIncludeInGroup','_sheetsShapeService','sheetViewStartColumn','_executeConnectionCommand','animateFormulaPresentation','activeSheet$','getDrawingVisible','isInGroup','left','getDrawingSearch','_activeTargetShapeId','clip-adj-','_registerMoveHandler','color','_updateAdjustControlPositions','_drawingType','sheets-shape-ui.ribbon.shape-format.formula-control','startArrow','beforeCommandExecuted','getUnitType','LEFT','type','updateConnectionDetection','draw','_initSheetChange','focusDrawing','doc','isHighlighted','_getShapeInfo','getShapeTextData','packageName','Path','fillType','sheet.menu.shape.flip-vertical','COMMAND','_isHighlighted','end','_shapeTextEditingService','_unitId','setConfig','has','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','parent','setOnSavingEditorData','shape-editor-ui.arrange.forward','_resetState','pick','symbol','_clearConnectionSites','sheet.operation.open-mobile-shape-editor','getImage','3119676sbQiWL','visible$','clip-','_baseShapeLeft','removeLinePoints','register','TOP','drawing-ui.objectListPanel.dragToReorder','_updateTransform','sheet.shape.picker.component','_formulaShapes','data','getDrawingData','_drawingManagerService','_permissionService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clipService','ShapeFormatSettingIcon','div','getTransformer','_releaseRenderCache','getRenderUnitById','viewportScrollY','onSteady','title','_shapePopupMenuDisposable','_isOpenedShapeEditPanel','cxnPointStroke','find','_insertShapes','worldPoints','some','getAdjustNames','lineType','getBentTypeFromPoints','_formulaAnimation','_getImageDrawingInfo','getShapeType','SELECTOR','#1a73e8','dataModel','setFallbackVisible','from','_completionFrame','MoveUpIcon','SHEET','_transformCalculateSrcRect','iterator','drawing-ui.objectListPanel.close','angle','_drawingAddListener','interceptor','horizontal','_baseLeft','_registerComponents','reduce','fillImageSourceType','getEndConnectInfo','presetId','get','8pOahDv','setFormulaPresentation','beginPath','_loadShapePictureFill','cancelEditing','getOwnPropertyDescriptor','2723913sHgXFG','setContextValue','_attachConnectorObjectEvent','getBatchRemoveOp','_baseShapeWidth','_registerDrawingMoveHandler','formulaPresentation','getDrawingPoints','sin','_sidebarDisposable','shapeType','58gmdCKT','drawing-ui.objectListPanel.name','onload','transform','preValue','_subUnitId','_configService','_clearShapeAdjustControls','create','getActualSize','currentAdjustValues','_cxtHandlerPointerUp','getStartConnectInfo','onSavingEditorData$','default','sheets-shape-ui.flipHorizontal','_registerGroupFeaturePasteHook','_currentUniverService','animationEnabled','pipe','targetShapeId','Line','_shapeFormulaService','_isStartAdjusting','order','changeShapeType','setPrstGeomAdjValues','_handleConnectedEndpointPointerUp','sheets-shape-ui.ribbon.shape-format.arrange-back','initShapePopupMenu','getObject','updateDocumentDataMargin','sheets-shape-ui.config','_registerFeatureMenu','entries','startX','style','render','_sheetPrintInterceptorService','drawingType','_localeService','registerClipDelegate','_isStartConnectorPoint','editingParams$','_closeShapeEditPanel','drawing-ui.objectListPanel.lock','_activeShapeInfo','restore','with','adjName','drawing-ui.objectListPanel.hideAll','pluginName','_createShapeAdjustControls','_updateImageAdjValues','_activeAdjustInfo','shape-editor-ui.arrange.back','refreshFormulaPresentation','sheets-shape-ui.shape-format.formula-ribbon-control','stroke','onPointerDown$','index','_sheetDrawingShapeRenderController','focus$','sheets-shape-ui.ribbon.shape-format.arrange-backward','add','contentVerticalOffset','_sheetClipboardService','debounceRefreshControls','DRAWING_IMAGE','_sheetCanvasPopManagerService','_sheetPermissionCheckController','getInterceptPoints','constructor','_sheetInterceptorService','text','CROSSHAIR','drawWith','adjHandleSize','params','FlipHorizontalIcon','axisAlignSheetTransform','getValue','_getImagePrstGeom','isRenderLinePointsMode','sheets-shape-ui.formatShape','UPDATE','_activeImageId','_onSavingEditorData$','function','sheet.command.update-shape-data','shapeData','onStarting','mode','top','worldPoint','fontFamily','Medium','backward','keys','sheet.command.menu-insert-shape','contentHeight','resolveHyperLinkAt','_lastEditingShapeKey','univer-box-border\x20univer-px-4\x20univer-text-sm','stringify','_getConnectionSiteAngle','_getScrollInfo','getShapeData','sheet.shape.edit.panel','onReady','clipByShape','refreshAdjustControls','onDblclick$','clearControl$','undo','getShapeModel','hidden','completeEditing','unsubscribe','getActiveViewportByCoord','_ribbonService','MoveDownIcon','offsetY','setShouldShowAdjust','_activeShapeModel','_getZoomRatio','setShapeProps','getImageSourceCache','trim','drawing-ui.objectListPanel.hide','sheet.operation.open-shape-object-list-panel','1.1.0','actions','_injector','_drawingRenderService','unitId','prototype','getParent','popup','SolidLine','doc.image-clip.shape-picker.component','getCurrentScrollState','ObjectLayersIcon','setSrcRect','_imageShapeClipController','copyType','src','string','_registerDrawingFocusChangeHandler','#FFFFFF','_shapeId','canvas','addClipboardHook','setEditing','_baseShapeHeight','isRichText','#bcbcbc','_handleFreeEndpointMove','_sheetDrawingService','cxnIndex','extensionGroups','setPrstGeom','sheets-shape-ui.objectListPanel.title','setCanUseShapeClip','Rect','drawing-ui.objectListPanel.unlockAll','getConnectionRelation','drawing-ui.objectListPanel.title','registerCommand','sheetViewStartRow','attachPopupToObject','fontSize','_initMenu','_renderManagerService','canvasElement','front','top-center','_getConnectPointInfo','sheets-shape-ui.shape-format.quick-style-gallery','_initPrinting','_sidebarService','isolated','values','getRealBound','worldRect','cxnPointRadius','componentKey','_registerOperations','_updateSrcRectByTransform','getAdjustInfoByName','sheets-shape-ui.insertShape','ancestorTransform','_targetShapeId','DRAWING_SHAPE','_disposePopups','getPresentation','_menuManagerService','_initEvents','_baseTop','_currentConnectionTarget','onCommandExecuted','665687NUFWIw','renderDrawingShape','abs','_popupMenuListener','REMOVE','sheets-shape-ui.editShape','open','_registerFocusChangeHandler','_createControls','shape-text-','changeStart$','strokeWidth','_currentScene','_commandService','sheet.operation.close-sheet-shape-format-panel','transformByState','skeleton','prstGeomAdjValues','drawing-ui.objectListPanel.filterHidden','_drawShapeText','forward','clearAdjustControls','_findNearestConnectionSite','_activeShapeAdjustPointList','addObject','unregister','sectionCanvas','_drawRichText','sqrt','setCollapsedIds','srcRect','sheets-shape-ui.ribbon.shape-format.text-control','getVisible','Arrow','computeConnectorResizeLayout','_executeResizeCommand','sheets-shape-ui','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.moveBackward','_editingParams$','_initCopyPaste','isHit','isMainScene','sheets-shape-ui.shape-format.style-ribbon-control','translate','calculate','_handleConnectedEndpointMove','getDrawingOKey','shape-adjust-point-','cxnPointFill','transformVector2SceneCoord','40ztfurt','indexOf','permissionPointUpdate$','_clearCompletionFrame','isLineShape','_isImagePointerDown','flipY','PictureFill','_getShapeAdjustInfosById','sheet.operation.apply-shape-quick-style','image-clip-adjust-point-','drawing-ui.objectListPanel.description','rotation','isArray','_generateCutPasteMutations','_moveConnectorWithShape','subscribe','_hide','_initCommands','INSERT','subUnitId','getConnectionSiteList','MEDIA','offsetX','flipX','getScene','_isDrawingShapePointDown','back','update$','shapeId','SolidFill','UNIVER_SHEET','getActiveSheet','_commandExecutedListener','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.showAll','getMatrix','_props','custom','_initialize','getShapeTypeById','asObservable','getDrawingByParam','oKey','panel','_updateShapeAdjustControls','executeCommand','getDrawingDataForUnit','_baseShapeTop','getState','blockExecuteWithoutPermission','registerFeaturePasteHook','shape-editor-ui.arrange.backward','clearAdjustValue','drawing-ui.objectListPanel.details','registerFeatureMenu','_adjHandlerPointerUp','sheets-shape-ui.flipVertical','size','_getSceneAndTransformerByDrawingSearch','98715yeqLrW','getBatchAddOp','dispose','_showConnectionSites','name','wrapStrategy','push','_initPermission','shape-editor-ui.toolbar.quickStyles','adjustValues','_copyInfo','getBatchUpdateOp','sheetTransform','multiply','clip','BUTTON','_addShapeConnectorHandlerObject','_handleBasicShapeUpdateConnectorLineShape','sheets-shape-ui.ribbon.shape-format','presentationChanged$','_formulaKey','delete','_registerImageShapeClipDelegate','OPERATION','_attachAdjustEvent','_activeAdjustPointList','_componentManager','decorate','resize','_shapes','_contextService','clear','_groupCopyPasteController','_config','version','toPrimitive','_update','marginTop','start','SheetShapeTextEditorContainer','_getOrCreateShapeModel','updateContext','_transform','getDrawingOrder','_calculateFreeEndpointAngle','drawing-ui.objectListPanel.nameInput','includes','interceptCommand','connection-site-','highlighted','onPointerMove$','onPointerUp$','SHAPE','shapeModel','getSelectedObjectMap','onTransformChange$','#4285f4','cos','_shapeFloatingToolbarService','error','getCurrentTypeOfUnit$','PaintIcon','hideContextualTab','_shapeEditPanelVersion','_univerInstanceService','_clearShapeConnectorHandlerObjects','_cxtHandlerPointerMove','sheet.menu.shape.flip-horizontal','_clearFocusedShape','_handleFreeEndpointPointerUp','formulaBinding','disposeWithMe','drawing-ui.objectListPanel.expand','1621206mkMcTz','TopmostIcon','relation','activeAnObject','sheets-shape-ui.ribbon.shape-format.arrange-front','call','getConnectorLinePoints','subscribeEvent','getConnectionInfo','set','getUnit','drawing-ui.objectListPanel.sectionFloating','_initEditingParams','getFocusedUnit','onerror','_clearPopups','UNIVER_DOC','getCurrentSkeleton','VIEW_MAIN','composeMatrix','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.sectionCanvas','hasDefault','sheets-shape-ui.editText','image','isEditing','objects','setShapeData','description','setPresentation','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','lineShapeId','changing$','resetCursor','redo','startY','sheet.shape.text.float-menu','updateLinePoints','_generatePasteMutations','sheet.operation.update-shape-type','endArrow','refreshShapeFillImage','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_reset','getSheetId','_imageIoService','_adjHandlerPointerMove','applyPoint','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.locate','value','getFocusDrawings','onRendered','SHEET_SHAPE_UI_PLUGIN','translateWithPrecision','_isShouldShowDrawingShapeAdjust','_focusedDrawings','_sheetSkeletonService','_addShapeConnectorHandlerObjects','isHitLine','_registerIcons','localToWorld','getPermissionPoint','vertical-center','disableShapeOption','SHAPE_TEXT','_sheetBasicShapeConnectionPointController','prstGeom','14KBOhRP','_isConnecting','_disposed','width','syncExecuteCommand','setHighlighted','_visible','drawing-ui.objectListPanel.lockAll','getShapeDataById','point','current','_findShapeAtPoint','_connectorObjects','24999anVTjz','FromArray','getEditing','setCursor','sheets-shape-contextual-ribbon','length','changeEnd$'];_0x1606=function(){return _0x2c94c6;};return _0x1606();}function Qi(_0x5a3890,_0x59e75b,_0x361f38){const _0x5832af=_0x232df7;var _0x567088;return((_0x567088=_0x5a3890[_0x5832af(0x298)])==null?void 0x0:_0x567088[_0x5832af(0x1dc)]())||_0x361f38['t'](_0x5832af(0x38d)+_0xa2ace3(_0x5a3890[_0x5832af(0x183)]))+'\x20'+(_0x59e75b+0x1);}function $i({PanelComponent:_0x171bbf=_0x31400b}){const _0x4cac93=_0x232df7;var _0x5b64f1;let _0xf04099=_0x3a3b93(_0x16b0b7),_0x2b6071={'title':_0xf04099['t'](_0x4cac93(0x203)),'empty':_0xf04099['t']('drawing-ui.objectListPanel.empty'),'showAll':_0xf04099['t'](_0x4cac93(0x27b)),'hideAll':_0xf04099['t'](_0x4cac93(0x18e)),'lockAll':_0xf04099['t'](_0x4cac93(0x328)),'unlockAll':_0xf04099['t'](_0x4cac93(0x201)),'moveForward':_0xf04099['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0xf04099['t'](_0x4cac93(0x24b)),'close':_0xf04099['t'](_0x4cac93(0x13f)),'show':_0xf04099['t'](_0x4cac93(0x39d)),'hide':_0xf04099['t'](_0x4cac93(0x1dd)),'lock':_0xf04099['t'](_0x4cac93(0x189)),'unlock':_0xf04099['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0xf04099['t'](_0x4cac93(0x361)),'unlockHint':_0xf04099['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0xf04099['t'](_0x4cac93(0x15d)),'nameInput':_0xf04099['t'](_0x4cac93(0x2c1)),'description':_0xf04099['t'](_0x4cac93(0x263)),'descriptionPlaceholder':_0xf04099['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0xf04099['t'](_0x4cac93(0x28e)),'noSelection':_0xf04099['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0xf04099['t'](_0x4cac93(0x30e)),'expand':_0xf04099['t'](_0x4cac93(0x2dc)),'collapse':_0xf04099['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xf04099['t'](_0x4cac93(0x116)),'search':_0xf04099['t'](_0x4cac93(0x33c)),'filterAll':_0xf04099['t'](_0x4cac93(0x30d)),'filterHidden':_0xf04099['t'](_0x4cac93(0x237)),'filterLocked':_0xf04099['t'](_0x4cac93(0x37a)),'sectionCanvas':_0xf04099['t'](_0x4cac93(0x2f2)),'sectionFloating':_0xf04099['t'](_0x4cac93(0x2e8))},_0x495e36=_0x3a3b93(_0x1b156e),_0xa4aefd=_0x3a3b93(_0x304294),_0x2fab87=_0x3a3b93(_0x4458c8),_0x554b22=_0x3a3b93(_0x3deb35),_0x2dfce1=_0x3a3b93(_0x422c1e),[,_0x5329fb]=_0x1268dd(_0x443cc3=>_0x443cc3+0x1,0x0),_0x1cb0ae=_0xa4aefd[_0x4cac93(0x35c)](_0xe0c4a6[_0x4cac93(0x277)]),_0x134ca9=(_0x1cb0ae==null?void 0x0:_0x1cb0ae['getUnitId']())??'',_0x1d4039=(_0x1cb0ae==null||(_0x5b64f1=_0x1cb0ae[_0x4cac93(0x278)]())==null?void 0x0:_0x5b64f1[_0x4cac93(0x309)]())??'',_0x48038a=_0xe01eb2(()=>_0x554b22[_0x4cac93(0x19a)],_0x554b22[_0x4cac93(0x310)](),!0x1,[_0x554b22]);_0x3ac889(()=>{const _0x25c4b7=_0x4cac93;let _0x33b3d7=_0x495e36[_0x25c4b7(0x224)](()=>_0x5329fb());return()=>_0x33b3d7[_0x25c4b7(0x296)]();},[_0x495e36]);let _0x16cea3=_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x11b)](_0x134ca9,_0x1d4039):{},_0x30f90c=(_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x2bf)](_0x134ca9,_0x1d4039):[])[_0x4cac93(0x35b)](_0x33b1a7=>_0x16cea3[_0x33b1a7])[_0x4cac93(0x34b)](_0x3fb5ee=>!!_0x3fb5ee)['reverse'](),_0x59190a=_0x30f90c[_0x4cac93(0x146)]((_0x1e25bd,_0x923282)=>(_0x1e25bd[_0x33d0f6(_0x923282[_0x4cac93(0x183)])]+=0x1,_0x1e25bd),{'canvas':0x0,'floating':0x0}),_0x563d16={'canvas':0x0,'floating':0x0},_0x1da710=_0x30f90c[_0x4cac93(0x35b)]((_0x23eb1b,_0x4907bc)=>{const _0x22b94b=_0x4cac93;let _0x57baf0=_0x33d0f6(_0x23eb1b['drawingType']),_0x17d739=_0x57baf0===_0x255c3c,_0x5268d9=_0x563d16[_0x57baf0]++;return{'id':_0x23eb1b[_0x22b94b(0x36c)],'name':Qi(_0x23eb1b,_0x4907bc,_0xf04099),'description':_0x23eb1b['description'],'visible':_0x23eb1b[_0x22b94b(0x1d0)]!==!0x0,'selectable':_0x23eb1b['selectable']!==!0x1,'sectionId':_0x57baf0,'sectionTitle':_0x17d739?_0x2b6071['sectionFloating']:_0x2b6071[_0x22b94b(0x23f)],'capabilities':_0x17d739?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x17d739&&_0x5268d9>0x0,'canMoveBackward':!_0x17d739&&_0x5268d9<_0x59190a[_0x22b94b(0x1f3)]-0x1,'canReorder':!_0x17d739};}),_0x1ed469=_0x53eb09(()=>(_0x48038a??[])[_0x4cac93(0x34b)](_0x436a36=>_0x436a36[_0x4cac93(0x1e3)]===_0x134ca9&&_0x436a36[_0x4cac93(0x26c)]===_0x1d4039)[_0x4cac93(0x35b)](_0x25aec9=>_0x25aec9[_0x4cac93(0x36c)]),[_0x48038a,_0x1d4039,_0x134ca9]),_0x43fd0c=_0x1ed469[_0x1ed469[_0x4cac93(0x333)]-0x1]??null,_0x3d78d6=_0x324f42=>_0x2fab87[_0x4cac93(0x282)]({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x324f42})??null,_0xb2744=async _0x2e7c17=>{const _0x4f6aa1=_0x4cac93;_0x134ca9&&_0x2e7c17['length']&&await _0x495e36[_0x4f6aa1(0x286)](_0x47d60a['id'],{'unitId':_0x134ca9,'drawings':_0x2e7c17});},_0x7e46bb=async(_0x122a29,_0x41b98d)=>{_0x3d78d6(_0x122a29)&&await _0xb2744([{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x122a29,..._0x41b98d}]);},_0xc5b4c2=(_0x278367,_0x212259)=>{const _0x56f925=_0x4cac93;if(!_0x134ca9||!_0x1d4039)return;let _0x2ba24c=_0x212259?_0x1ed469[_0x56f925(0x2c2)](_0x278367)?_0x1ed469[_0x56f925(0x34b)](_0x8151c9=>_0x8151c9!==_0x278367):[..._0x1ed469,_0x278367]:[_0x278367];_0x495e36['syncExecuteCommand'](_0x2b2ab1['id'],_0x2ba24c[_0x56f925(0x35b)](_0x1cfe9f=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x1cfe9f})));let _0x3f8a93=_0x2ba24c[_0x2ba24c['length']-0x1];_0x3f8a93?_0x10780b(_0x2dfce1,{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x3f8a93}):_0x4e12a4(_0x2dfce1,_0x134ca9);},_0x417e69=async(_0x5e88cb,_0x29813)=>{const _0x4ebd2c=_0x4cac93;await _0xb2744(_0x5e88cb[_0x4ebd2c(0x35b)](_0x1438dc=>_0x3d78d6(_0x1438dc))[_0x4ebd2c(0x34b)](_0x1d4144=>!!_0x1d4144)['filter'](_0x13d0d0=>_0x13d0d0[_0x4ebd2c(0x1d0)]!==!0x0!==_0x29813)[_0x4ebd2c(0x35b)](_0x568b13=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x568b13['drawingId'],'hidden':!_0x29813})));},_0x213a09=async(_0x279ffd,_0x309b2e)=>{const _0x37fead=_0x4cac93;await _0xb2744(_0x279ffd[_0x37fead(0x35b)](_0x13bd78=>_0x3d78d6(_0x13bd78))[_0x37fead(0x34b)](_0x3cc633=>!!_0x3cc633)[_0x37fead(0x34b)](_0x1a5fa0=>_0x1a5fa0[_0x37fead(0x37d)]!==!0x1!==_0x309b2e)['map'](_0x525d96=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x525d96[_0x37fead(0x36c)],'selectable':_0x309b2e})));},_0x473661=_0x1ff8d3=>{let _0x2c3aec=_0x3d78d6(_0x1ff8d3);if(_0x2c3aec)return _0x213a09([_0x1ff8d3],_0x2c3aec['selectable']===!0x1);},_0x382495=async(_0x5f1d84,_0x48dcfc)=>{var _0x3b4ea6;let _0x57a47e=Zi(_0x48dcfc);(((_0x3b4ea6=_0x3d78d6(_0x5f1d84))==null?void 0x0:_0x3b4ea6['name'])??void 0x0)!==_0x57a47e&&await _0x7e46bb(_0x5f1d84,{'name':_0x57a47e});},_0x164e0f=async(_0x51426d,_0x3bb7ac)=>{const _0x4687a9=_0x4cac93;var _0x3d9123;let _0x3dc279=Zi(_0x3bb7ac);(((_0x3d9123=_0x3d78d6(_0x51426d))==null?void 0x0:_0x3d9123[_0x4687a9(0x2f9)])??void 0x0)!==_0x3dc279&&await _0x7e46bb(_0x51426d,{'description':_0x3dc279});},_0x55802e=async(_0x3fc2fe,_0xf6e126)=>{const _0x43dc41=_0x4cac93;_0x134ca9&&_0x1d4039&&await _0x495e36[_0x43dc41(0x286)](_0x535c91['id'],{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingIds':[_0x3fc2fe],'arrangeType':_0xf6e126});};return!_0x134ca9||!_0x1d4039?_0x386576('div',{'className':_0x4cac93(0x2fb),'children':_0x2b6071[_0x4cac93(0x127)]}):_0x386576(_0x171bbf,{'labels':_0x2b6071,'items':_0x1da710,'selectedIds':_0x1ed469,'focusedId':_0x43fd0c,'showHeader':!0x1,'onSelect':_0xc5b4c2,'onSetVisible':_0x417e69,'onSetSelectable':_0x213a09,'onCommitName':_0x382495,'onCommitDescription':_0x164e0f,'onMoveForward':async _0x5afb28=>_0x55802e(_0x5afb28,_0x32c897['forward']),'onMoveBackward':async _0x3cbfea=>_0x55802e(_0x3cbfea,_0x32c897[_0x4cac93(0x1bd)]),'onToggleSelectable':_0x473661});}function ea(){return _0x386576($i,{'PanelComponent':_0xaa2832});}let ta=class extends _0x2bb0e8{constructor(_0x3b22fc,_0x3235c5){const _0x28abf9=_0x232df7;super(),this['disposeWithMe'](_0x3b22fc['register'](Rr,ea)),this['disposeWithMe'](_0x3235c5[_0x28abf9(0x114)]({'BottomIcon':_0x7cbde6,'FlipHorizontalIcon':_0x3c3c9d,'FlipVerticalIcon':_0x134503,'MoveDownIcon':_0x1cd4bd,'MoveUpIcon':_0x5818fa,'ObjectLayersIcon':_0x562db7,'ShapeFormatSettingIcon':_0x4a1cd8,'TopmostIcon':_0xc502f4})),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Jr,ti)),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Yr,Qr)),_0x3b22fc[_0x28abf9(0x2f3)](_0x48d256)||this[_0x28abf9(0x2db)](_0x3b22fc['register'](_0x48d256,$r));}};ta=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],ta);let $=class extends _0x2bb0e8{constructor(_0x4a6dde){const _0x1468bd=_0x232df7;super(),this[_0x1468bd(0x11d)]=_0x4a6dde,q(this,'_editingParams$',new _0x519e70(null)),q(this,'editingParams$',this[_0x1468bd(0x24c)][_0x1468bd(0x281)]()),q(this,'_onSavingEditorData$',new _0x519e70(!0x1)),q(this,_0x1468bd(0x169),this[_0x1468bd(0x1b3)][_0x1468bd(0x281)]()),q(this,_0x1468bd(0x13a),void 0x0),this['disposeWithMe'](this[_0x1468bd(0x11d)][_0x1468bd(0x25a)][_0x1468bd(0x268)](()=>{const _0x20a7e6=_0x1468bd;let _0x3c5c91=this[_0x20a7e6(0x330)]();_0x3c5c91!=null&&_0x3c5c91[_0x20a7e6(0x346)]&&!this[_0x20a7e6(0x36f)](_0x3c5c91)&&this[_0x20a7e6(0x1f5)](null);}));}[_0x232df7(0x296)](){const _0x3fc2cb=_0x232df7;this[_0x3fc2cb(0x25b)](),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x360)](null),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x389)](),this[_0x3fc2cb(0x1b3)][_0x3fc2cb(0x360)](!0x1),this['_onSavingEditorData$'][_0x3fc2cb(0x389)](),super[_0x3fc2cb(0x296)]();}['setEditing'](_0x2b3606){const _0x2abd49=_0x232df7;(_0x2b3606==null||!_0x2b3606[_0x2abd49(0x346)]||this[_0x2abd49(0x36f)](_0x2b3606))&&(this[_0x2abd49(0x25b)](),this['_editingParams$']['next'](_0x2b3606),(_0x2b3606==null||_0x2b3606['visible']&&this[_0x2abd49(0x1b3)][_0x2abd49(0x1ad)]())&&this[_0x2abd49(0x1b3)][_0x2abd49(0x360)](!0x1));}[_0x232df7(0x107)](_0x489372){const _0x55247d=_0x232df7;this[_0x55247d(0x1b3)][_0x55247d(0x360)](_0x489372);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x232df7(0x36f)](_0x47cb9b){const _0x1f10a1=_0x232df7;let _0x42274f=this['_permissionService'][_0x1f10a1(0x31b)](new _0x48f387(_0x47cb9b[_0x1f10a1(0x1e3)])['id']),_0xb69482=this['_permissionService']['getPermissionPoint'](new _0x459023(_0x47cb9b['unitId'],_0x47cb9b[_0x1f10a1(0x26c)])['id']);return((_0x42274f==null?void 0x0:_0x42274f[_0x1f10a1(0x30f)])??!0x0)&&((_0xb69482==null?void 0x0:_0xb69482[_0x1f10a1(0x30f)])??!0x0);}['completeEditing'](_0x299331){const _0x16369f=_0x232df7;let _0x18172f=this['getEditing']();_0x18172f&&this[_0x16369f(0x13a)]===void 0x0&&(this[_0x16369f(0x107)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5c5d07=_0x16369f;this[_0x5c5d07(0x13a)]=void 0x0,this[_0x5c5d07(0x330)]()===_0x18172f&&this[_0x5c5d07(0x1f5)](null);}));}[_0x232df7(0x25b)](){const _0x1fb1f9=_0x232df7;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1fb1f9(0x13a)]),this[_0x1fb1f9(0x13a)]=void 0x0);}[_0x232df7(0x14f)](){const _0x489de8=_0x232df7;this[_0x489de8(0x330)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x300477)],$);let na=class extends _0x2bb0e8{constructor(_0x37933b,_0x153aa6,_0x2c7d87,_0x38b951,_0x127d2a,_0x4da913){const _0x84ef78=_0x232df7;super(),this[_0x84ef78(0x35d)]=_0x37933b,this[_0x84ef78(0x1e1)]=_0x153aa6,this['_shapeTextEditingService']=_0x2c7d87,this[_0x84ef78(0x11c)]=_0x38b951,this[_0x84ef78(0x2b2)]=_0x127d2a,this[_0x84ef78(0x3aa)]=_0x4da913,q(this,_0x84ef78(0x1c2),null),this[_0x84ef78(0x221)](),this[_0x84ef78(0x375)](),this['_initEditingParams']();}[_0x232df7(0x221)](){const _0x256fcf=_0x232df7;let {scene:_0x485e9c}=this[_0x256fcf(0x35d)];this[_0x256fcf(0x2db)](_0x485e9c[_0x256fcf(0x1cc)][_0x256fcf(0x2e4)](_0xb5e394=>{const _0x5c3afb=_0x256fcf;let {offsetX:_0x40bf67,offsetY:_0x2d629b}=_0xb5e394,_0x534074=_0x485e9c[_0x5c3afb(0x10a)](_0x17a8a4[_0x5c3afb(0x32f)]([_0x40bf67,_0x2d629b]));if(_0x534074 instanceof J){let _0x52a1d7=this[_0x5c3afb(0x3aa)][_0x5c3afb(0x1cf)](_0x534074['unitId'],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]);if(_0x52f76f(this[_0x5c3afb(0x3aa)]['getShapeType'](_0x534074[_0x5c3afb(0x1e3)],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]))||_0x52a1d7!=null&&_0x52a1d7[_0x5c3afb(0x1c7)]()[_0x5c3afb(0x2da)])return;this[_0x5c3afb(0x101)]['setEditing']({'visible':!0x0,'unitId':_0x534074[_0x5c3afb(0x1e3)],'subUnitId':_0x534074[_0x5c3afb(0x26c)],'shapeId':_0x534074[_0x5c3afb(0x275)],'shapeKey':_0x534074[_0x5c3afb(0x283)]});}}));}[_0x232df7(0x375)](){const _0x591d48=_0x232df7;this[_0x591d48(0x2db)](this['_drawingManagerService'][_0x591d48(0x19a)]['subscribe'](_0x58f1f9=>{const _0x67c82f=_0x591d48;if(_0x58f1f9[_0x67c82f(0x333)]===0x1){let _0x4c8a8c=_0x58f1f9[0x0],_0x251d67=this['_drawingManagerService'][_0x67c82f(0x282)](_0x4c8a8c);if((_0x251d67==null?void 0x0:_0x251d67[_0x67c82f(0x183)])===_0x190419[_0x67c82f(0x21d)]){var _0xbed944;let _0x3c53af=this[_0x67c82f(0x101)][_0x67c82f(0x330)]();if((_0x3c53af==null?void 0x0:_0x3c53af['shapeId'])===_0x4c8a8c[_0x67c82f(0x36c)]&&_0x3c53af[_0x67c82f(0x346)])return;let _0x6d65c0=_0x52f76f(this[_0x67c82f(0x3aa)][_0x67c82f(0x134)](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)])),_0x21bee6=!!((_0xbed944=this[_0x67c82f(0x3aa)]['getShapeModel'](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)]))!=null&&_0xbed944['getShapeData']()[_0x67c82f(0x2da)]);(_0x6d65c0||_0x21bee6)&&this[_0x67c82f(0x101)][_0x67c82f(0x1f5)](null);}else this[_0x67c82f(0x101)][_0x67c82f(0x1d1)]();}else this['_shapeTextEditingService'][_0x67c82f(0x1d1)]();})),this[_0x591d48(0x2db)](this[_0x591d48(0x11c)][_0x591d48(0x36d)][_0x591d48(0x268)](_0x4e2b59=>{const _0x16c5b0=_0x591d48;let _0x3e11f2=this[_0x16c5b0(0x101)][_0x16c5b0(0x330)]();_0x3e11f2&&_0x4e2b59[_0x16c5b0(0x12e)](_0x4c0651=>_0x4c0651[_0x16c5b0(0x36c)]===_0x3e11f2[_0x16c5b0(0x275)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x232df7(0x2e9)](){const _0x3cd727=_0x232df7;this[_0x3cd727(0x2db)](this[_0x3cd727(0x101)]['editingParams$'][_0x3cd727(0x268)](_0x5931ee=>{const _0x5a2d98=_0x3cd727;let {scene:_0x8e4c89}=this['_context'];if(this[_0x5a2d98(0x1c2)]){let _0x844867=_0x8e4c89[_0x5a2d98(0x3a9)](this[_0x5a2d98(0x1c2)]);_0x844867&&_0x844867[_0x5a2d98(0x1f5)](!0x1);}if(_0x5931ee){let _0x1237ce=!!_0x5931ee[_0x5a2d98(0x346)],_0x276ed4=_0x8e4c89[_0x5a2d98(0x3a9)](_0x5931ee['shapeKey']);_0x276ed4&&(_0x276ed4[_0x5a2d98(0x1f5)](_0x1237ce),this[_0x5a2d98(0x1c2)]=_0x5931ee[_0x5a2d98(0x383)]),this[_0x5a2d98(0x2b2)][_0x5a2d98(0x152)](_0x29a73c,_0x1237ce);}else this[_0x5a2d98(0x1c2)]=null,this['_contextService'][_0x5a2d98(0x152)](_0x29a73c,!0x1);}));}};na=X([Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x229e82($)),Y(0x3,_0x3deb35),Y(0x4,_0x49d586),Y(0x5,_0x229e82(_0x5c2303))],na);var ra=class extends na{[_0x232df7(0x221)](){const _0x4149cb=_0x232df7;let {scene:_0x130e91}=this[_0x4149cb(0x35d)],_0x2b7fb3=this[_0x4149cb(0x1e1)][_0x4149cb(0x14a)](_0x8e92cf);this[_0x4149cb(0x2db)](_0x130e91[_0x4149cb(0x1cc)]['subscribeEvent'](_0x501d33=>{const _0x17baa2=_0x4149cb;let {offsetX:_0x5d474f,offsetY:_0x4d56a1}=_0x501d33,_0xacf96a=_0x130e91['pick'](_0x17a8a4[_0x17baa2(0x32f)]([_0x5d474f,_0x4d56a1]));if(!(_0xacf96a instanceof J))return;let _0x5548d8=this[_0x17baa2(0x3aa)][_0x17baa2(0x1cf)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']);_0x52f76f(this[_0x17baa2(0x3aa)][_0x17baa2(0x134)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']))||_0x5548d8!=null&&_0x5548d8[_0x17baa2(0x1c7)]()[_0x17baa2(0x2da)]||_0x2b7fb3[_0x17baa2(0x22b)]('text',{'hostType':_0xe0c4a6[_0x17baa2(0x277)],'unitId':_0xacf96a[_0x17baa2(0x1e3)],'subUnitId':_0xacf96a[_0x17baa2(0x26c)],'shapeId':_0xacf96a[_0x17baa2(0x275)]});}));}};const ia={...Ui};let aa=class extends _0x2bb0e8{constructor(_0x46d519,_0x38831a,_0x74a86,_0x253a4e,_0x133cf3,_0x17c1ae,_0xd1d488,_0x115e79){const _0x1158ff=_0x232df7;super(),this[_0x1158ff(0x220)]=_0x46d519,this[_0x1158ff(0x3aa)]=_0x38831a,this[_0x1158ff(0x232)]=_0x74a86,this[_0x1158ff(0x11c)]=_0x253a4e,this[_0x1158ff(0x1a1)]=_0x133cf3,this[_0x1158ff(0x2b2)]=_0x17c1ae,this['_renderManagerService']=_0xd1d488,this[_0x1158ff(0x101)]=_0x115e79,q(this,_0x1158ff(0x128),null),this[_0x1158ff(0x220)][_0x1158ff(0x36a)](ia),this[_0x1158ff(0x17d)](),this[_0x1158ff(0x2db)](this[_0x1158ff(0x101)][_0x1158ff(0x187)]['subscribe'](_0x3a8d5a=>{const _0xefaf6c=_0x1158ff;_0x3a8d5a&&this[_0xefaf6c(0x2d8)]();}));}[_0x232df7(0x179)](){const _0x4ae489=_0x232df7;this[_0x4ae489(0x128)]||=this[_0x4ae489(0x2db)](_0xd29261(this[_0x4ae489(0x209)],_0xe0c4a6[_0x4ae489(0x277)],_0x3c0e1e=>this['_popupMenuListener'](_0x3c0e1e)));}[_0x232df7(0x17d)](){const _0x5b3815=_0x232df7;this['_sheetCanvasPopManagerService'][_0x5b3815(0x28f)](_0x190419[_0x5b3815(0x21d)],(_0x41d373,_0x587cd2,_0x159db5,_0x2db5ab)=>{const _0x1003a7=_0x5b3815;let _0x405e56=this[_0x1003a7(0x3aa)]['getShapeTypeById'](_0x41d373,_0x587cd2,_0x159db5),_0x4fad0b=this[_0x1003a7(0x3aa)][_0x1003a7(0x329)](_0x41d373,_0x587cd2,_0x159db5),_0x1c1e63=_0x405e56!==void 0x0&&!_0x52f76f(_0x405e56)&&!(_0x4fad0b!=null&&_0x4fad0b['formulaBinding']);return[{'label':_0x1003a7(0x22a),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':_0x1003a7(0x180)},'disable':!0x1},..._0x1c1e63?[{'label':_0x1003a7(0x2f4),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':'text'},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':_0x29b5e1['id'],'commandParams':{'unitId':_0x41d373,'drawings':[{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'drawingType':_0x2db5ab}]},'disable':!0x1},{'label':_0x1003a7(0x16b),'index':0x3,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x232df7(0x228)](_0xbd6850){const _0x3706b4=_0x232df7;let _0x59b390=new _0x498b31(),_0x551e8a=null,_0x309aa3=()=>{const _0x25f8fa=_0x2028;if(!_0x551e8a)return;let _0xdae979=this[_0x25f8fa(0x11c)][_0x25f8fa(0x310)](),_0x48f68d=_0xdae979[_0x25f8fa(0x333)]===0x0||_0xdae979['length']===0x1&&_0xdae979[_0x25f8fa(0x12e)](_0x322ae8=>_0x322ae8[_0x25f8fa(0x1e3)]===(_0x551e8a==null?void 0x0:_0x551e8a['unitId'])&&_0x322ae8[_0x25f8fa(0x26c)]===(_0x551e8a==null?void 0x0:_0x551e8a['subUnitId'])&&_0x322ae8[_0x25f8fa(0x36c)]===(_0x551e8a==null?void 0x0:_0x551e8a[_0x25f8fa(0x36c)]));_0x551e8a=null,_0x48f68d&&(this['_contextService'][_0x25f8fa(0x152)](_0x20a63c,!0x1),this[_0x25f8fa(0x11c)][_0x25f8fa(0xf5)](null));};return _0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x335)]['subscribe'](()=>{const _0x1fc451=_0x3706b4;let _0x61eed9=_0xbd6850[_0x1fc451(0x2ca)]();if(_0x61eed9[_0x1fc451(0x292)]>0x1){_0x309aa3();return;}let _0x926dec=_0x61eed9[_0x1fc451(0x212)]()[_0x1fc451(0x360)]()[_0x1fc451(0x30f)];if(!_0x926dec){_0x309aa3();return;}let _0x206396=this[_0x1fc451(0x11c)][_0x1fc451(0x254)](_0x926dec['oKey']);if(!_0x206396||_0x206396[_0x1fc451(0x183)]!==_0x190419[_0x1fc451(0x21d)]){_0x309aa3();return;}let {unitId:_0x307f30,subUnitId:_0xcf509,drawingId:_0x26c036}=_0x206396;_0x551e8a={'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036},this['_contextService'][_0x1fc451(0x152)](_0x20a63c,!0x0),this['_drawingManagerService'][_0x1fc451(0x310)]()['find'](_0x15547e=>_0x15547e['unitId']===_0x307f30&&_0x15547e[_0x1fc451(0x26c)]===_0xcf509&&_0x15547e['drawingId']===_0x26c036)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036}]);})),_0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x1cd)]['subscribe'](()=>{_0x309aa3();})),_0x169987(()=>{const _0x3aa3c3=_0x3706b4;_0x59b390[_0x3aa3c3(0x296)](),_0x309aa3();});}[_0x232df7(0x2d8)](){const _0x4e654c=_0x232df7;this[_0x4e654c(0x2b2)][_0x4e654c(0x152)](_0x20a63c,!0x1),this['_drawingManagerService'][_0x4e654c(0xf5)](null);}};aa=X([Y(0x0,_0x4cc398),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x1b156e),Y(0x3,_0x3deb35),Y(0x4,_0x229e82(_0x5969c8)),Y(0x5,_0x49d586),Y(0x6,_0x422c1e),Y(0x7,_0x229e82($))],aa);function oa(_0x290bf6,_0x178101,_0x496699,_0x5663a5){const _0x180832=_0x232df7;let _0x4c603b=_0x118346(_0x290bf6,_0x178101,_0x496699),_0x1c53c8=[];for(let _0x5708ec of _0x178101){let _0x6cf43f=_0x4c603b['idMap'][_0x180832(0x14a)](_0x5708ec[_0x180832(0x36c)]),_0x18c04e=_0x5663a5(_0x5708ec);_0x6cf43f&&_0x18c04e&&_0x1c53c8[_0x180832(0x29a)]({'targetShapeId':_0x6cf43f,'source':_0x18c04e});}return _0x1c53c8;}let sa=class extends _0x2bb0e8{constructor(_0x90451,_0x2b1a9a,_0x2a01cd,_0x16e2bd){const _0x2a43e7=_0x232df7;super(),this[_0x2a43e7(0x2d4)]=_0x90451,this[_0x2a43e7(0x1a5)]=_0x2b1a9a,this[_0x2a43e7(0x1fa)]=_0x2a01cd,this['_sheetsShapeService']=_0x16e2bd,this['_initSheetChange']();}[_0x232df7(0xf4)](){const _0x4bf561=_0x232df7;this[_0x4bf561(0x2db)](this[_0x4bf561(0x1a5)][_0x4bf561(0x2c3)]({'getMutations':_0x3f7dca=>{const _0x1d719a=_0x4bf561;if(_0x3f7dca['id']===_0x8eced1['id']){let _0x425ac6=_0x2dc1b6(this[_0x1d719a(0x2d4)],_0x3f7dca[_0x1d719a(0x1aa)]);if(!_0x425ac6)return{'redos':[],'undos':[]};let {unitId:_0x442e3f,subUnitId:_0x527940}=_0x425ac6,_0x49ffd9=this['_sheetDrawingService']['getDrawingData'](_0x442e3f,_0x527940),_0xa31ac5=Object[_0x1d719a(0x212)](_0x49ffd9)[_0x1d719a(0x34b)](_0x320a32=>_0x320a32['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0xa31ac5['length']===0x0)return{'redos':[],'undos':[]};let _0x272af5=[],_0x40f935=[];for(let _0xa4e384=0x0;_0xa4e384<_0xa31ac5['length'];_0xa4e384++){let _0x26feb0=_0xa31ac5[_0xa4e384],_0xb9fd72=this[_0x1d719a(0x3aa)]['getShapeModel'](_0x26feb0['unitId'],_0x26feb0[_0x1d719a(0x26c)],_0x26feb0[_0x1d719a(0x36c)]);_0xb9fd72&&(_0x272af5[_0x1d719a(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)]}}),_0x40f935[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)],'shapeType':_0xb9fd72[_0x1d719a(0x134)](),'shapeData':JSON[_0x1d719a(0x37b)](JSON[_0x1d719a(0x1c4)](_0xb9fd72[_0x1d719a(0x1c7)]()))}}));}return{'redos':_0x272af5,'undos':_0x40f935};}if(_0x3f7dca['id']===_0xbddc40['id']){let {unitId:_0x4ef3d3,subUnitId:_0x30d54a,targetSubUnitId:_0x233b32,copyContext:_0x56600f}=_0x3f7dca[_0x1d719a(0x1aa)];if(!_0x4ef3d3||!_0x30d54a||!_0x233b32)return{'redos':[],'undos':[]};let _0x1c6c1f=this[_0x1d719a(0x1fa)][_0x1d719a(0x11b)](_0x4ef3d3,_0x30d54a),_0x4368a7=Object[_0x1d719a(0x212)](_0x1c6c1f)[_0x1d719a(0x34b)](_0x773a4f=>_0x773a4f['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0x4368a7[_0x1d719a(0x333)]===0x0)return{'redos':[],'undos':[]};let _0x25b218=oa(_0x56600f,_0x4368a7,{'unitId':_0x4ef3d3,'sourceSubUnitId':_0x30d54a,'targetSubUnitId':_0x233b32},_0x5353dd=>{const _0x173528=_0x1d719a;let _0x17e223=this[_0x173528(0x3aa)][_0x173528(0x1cf)](_0x5353dd[_0x173528(0x1e3)],_0x5353dd['subUnitId'],_0x5353dd[_0x173528(0x36c)]);if(_0x17e223)return{'shapeType':_0x17e223[_0x173528(0x134)](),'shapeData':JSON['parse'](JSON[_0x173528(0x1c4)](_0x17e223['getShapeData']()))};}),_0x2c9f87=[],_0xf9025a=[];for(let {targetShapeId:_0x33a796,source:_0x479748}of _0x25b218)_0x2c9f87[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796,'shapeType':_0x479748[_0x1d719a(0x15b)],'shapeData':_0x479748[_0x1d719a(0x1b6)]}}),_0xf9025a['push']({'id':_0x10857b['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796}});return{'redos':_0x2c9f87,'undos':_0xf9025a};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x229e82(_0x304294)),Y(0x1,_0x229e82(_0x427085)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303))],sa);let ca=class extends _0x2bb0e8{constructor(_0xeac7b,_0x2318f9,_0x22243e,_0x13c4b2,_0x46c6ec,_0x5d747f){const _0xdc4fe5=_0x232df7;super(),this[_0xdc4fe5(0x232)]=_0xeac7b,this['_renderManagerService']=_0x2318f9,this[_0xdc4fe5(0x11c)]=_0x22243e,this[_0xdc4fe5(0x16d)]=_0x13c4b2,this[_0xdc4fe5(0x1e2)]=_0x46c6ec,this['_sheetDrawingShapeRenderController']=_0x5d747f,q(this,_0xdc4fe5(0x382),new Set()),this[_0xdc4fe5(0x27f)]();}[_0x232df7(0x27f)](){const _0x1af5ba=_0x232df7;this[_0x1af5ba(0x141)](),this[_0x1af5ba(0x279)](),this[_0x1af5ba(0x33d)]();}[_0x232df7(0x141)](){const _0xb11ce0=_0x232df7;this[_0xb11ce0(0x2db)](this[_0xb11ce0(0x11c)]['add$']['subscribe'](_0x28a0c3=>{const _0x4ae0c1=_0xb11ce0;this[_0x4ae0c1(0x12c)](_0x28a0c3);}));}[_0x232df7(0x279)](){const _0x530056=_0x232df7;this[_0x530056(0x2db)](this[_0x530056(0x232)][_0x530056(0x224)]((_0x1963bb,_0x188931)=>{const _0x193c19=_0x530056;if(_0x1963bb['id']===_0x4af43a['id']){let {unitId:_0xc25544,subUnitId:_0x143381,shapeId:_0x2d8356}=_0x1963bb['params'],_0x336393=this[_0x193c19(0x293)](_0xc25544),_0x2ac48e=_0x3023e5({'unitId':_0xc25544,'subUnitId':_0x143381,'drawingId':_0x2d8356}),_0x12184b=_0x336393==null?void 0x0:_0x336393[_0x193c19(0x381)][_0x193c19(0x3a9)](_0x2ac48e);_0x12184b&&(this[_0x193c19(0x199)][_0x193c19(0x306)](_0x12184b),this[_0x193c19(0x199)]['refreshFormulaPresentation'](_0x12184b,{'unitId':_0xc25544,'subUnitId':_0x143381,'shapeId':_0x2d8356}),_0x12184b['makeDirty'](!0x0));}else{if(_0x1963bb['id']===_0x5cdf0c['id']){var _0x347fef;let {unitId:_0x3ae1ad,subUnitId:_0x574283,shapeId:_0x196b37}=_0x1963bb[_0x193c19(0x1aa)],_0x54fa66=this[_0x193c19(0x293)](_0x3ae1ad);if(_0x54fa66==null)return;let {scene:_0x2b7a34}=_0x54fa66,_0x9ef5=_0x3023e5({'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}),_0x131389=_0x2b7a34[_0x193c19(0x3a9)](_0x9ef5);if(!((_0x347fef=this[_0x193c19(0x209)][_0x193c19(0x124)](_0x3ae1ad))!=null&&_0x347fef[_0x193c19(0x18c)](_0x54a66d)[_0x193c19(0x38a)](_0x574283)))return!0x1;if(_0x131389)return;if(_0x188931!=null&&_0x188931[_0x193c19(0x34d)]){queueMicrotask(()=>{const _0x1c6788=_0x193c19;this[_0x1c6788(0x323)]||this[_0x1c6788(0x12c)]([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);});return;}this['_insertShapes']([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);}}}));}[_0x232df7(0x33d)](){const _0x260a55=_0x232df7;this['disposeWithMe'](this['_drawingManagerService'][_0x260a55(0x274)]['subscribe'](_0x19ebbd=>{const _0x2f5325=_0x260a55;_0x19ebbd[_0x2f5325(0x385)](_0x44f3cc=>{const _0x33a668=_0x2f5325;let {unitId:_0x582bd8,subUnitId:_0x96890e,drawingId:_0x2d0851}=_0x44f3cc,_0x3babca=this[_0x33a668(0x11c)][_0x33a668(0x282)](_0x44f3cc);if(_0x3babca==null)return;let {transform:_0x44509d,drawingType:_0x21328a,srcRect:_0x459723,prstGeom:_0x15aa54}=_0x3babca;if(_0x21328a!==_0x190419[_0x33a668(0x21d)])return;let _0x5582b5=this[_0x33a668(0x293)](_0x582bd8);if(_0x5582b5==null)return;let {scene:_0x45ad8a,transformer:_0x5c6a4d}=_0x5582b5;if(_0x44509d==null)return!0x0;let _0x309066=_0x3023e5({'unitId':_0x582bd8,'subUnitId':_0x96890e,'drawingId':_0x2d0851}),_0x35b180=_0x45ad8a['getObjectIncludeInGroup'](_0x309066);if(_0x35b180==null)return!0x0;_0x35b180['setSrcRect'](_0x459723),_0x35b180[_0x33a668(0x1fd)](_0x15aa54);});}));}[_0x232df7(0x12c)](_0x3c70cb){const _0x2205a5=_0x232df7;for(let _0x3fb071 of _0x3c70cb){var _0x4c0b7b;let {unitId:_0x3cab40,subUnitId:_0x2dfb54,drawingId:_0x35cc08}=_0x3fb071,_0x133374=this[_0x2205a5(0x293)](_0x3cab40),_0x48f7e7=(_0x4c0b7b=_0x15a737(this[_0x2205a5(0x16d)],_0x3cab40))==null?void 0x0:_0x4c0b7b[_0x2205a5(0x26c)];if(_0x133374==null||_0x48f7e7!==_0x2dfb54)return;let _0x3b5d43=_0x3023e5({'unitId':_0x3cab40,'subUnitId':_0x2dfb54,'drawingId':_0x35cc08});if(this['_insertingShapeKeys']['has'](_0x3b5d43)||_0x133374[_0x2205a5(0x381)][_0x2205a5(0x3a9)](_0x3b5d43)!=null)return;let _0x3397ec=this[_0x2205a5(0x11c)][_0x2205a5(0x282)](_0x3fb071);if(_0x3397ec==null||_0x3397ec[_0x2205a5(0x183)]!==_0x190419[_0x2205a5(0x21d)])return;let _0x127fc0=_0x3397ec['data']||{};if(_0x52f76f(_0x127fc0[_0x2205a5(0x15b)])){let _0x5af5aa=_0x3397ec[_0x2205a5(0x15f)];_0x5af5aa&&(_0x3397ec[_0x2205a5(0x15f)]={..._0x5af5aa,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2205a5(0x382)][_0x2205a5(0x19c)](_0x3b5d43);try{this[_0x2205a5(0x199)][_0x2205a5(0x226)](_0x3397ec,_0x133374[_0x2205a5(0x381)]);}finally{this['_insertingShapeKeys'][_0x2205a5(0x2a9)](_0x3b5d43);}queueMicrotask(()=>{const _0x5ef969=_0x2205a5;if(this[_0x5ef969(0x323)])return;let _0xf3b528=_0x3023e5(_0x3fb071);if(!_0x133374[_0x5ef969(0x381)][_0x5ef969(0x3a9)](_0xf3b528))return;let _0x71b203=this[_0x5ef969(0x11c)][_0x5ef969(0x282)](_0x3fb071);_0x71b203&&this['_drawingManagerService']['refreshTransform']([_0x71b203]);});}}[_0x232df7(0x293)](_0x3aca48){const _0x5c8c76=_0x232df7;if(_0x3aca48==null)return;let _0x5e9119=this[_0x5c8c76(0x209)]['getRenderUnitById'](_0x3aca48),_0x15f595=_0x5e9119==null?void 0x0:_0x5e9119[_0x5c8c76(0x381)];return _0x15f595==null?null:{'scene':_0x15f595,'transformer':_0x15f595[_0x5c8c76(0x372)]()};}};ca=X([Y(0x0,_0x1b156e),Y(0x1,_0x422c1e),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x229e82(_0x40a01d)),Y(0x5,_0x229e82(Z))],ca);const la={'normal':{'fill':_0x4c61a8[_0x232df7(0x256)],'stroke':_0x4c61a8[_0x232df7(0x12a)],'strokeWidth':_0x4c61a8[_0x232df7(0x340)]},'highlighted':{'fill':_0x232df7(0x2cc),'stroke':_0x232df7(0x136),'strokeWidth':0x2}};var ua=class extends _0x147ce5{constructor(_0x2a0fa7,_0x4651de){const _0x213134=_0x232df7;super(_0x2a0fa7,_0x4651de),q(this,_0x213134(0x21c),''),q(this,_0x213134(0x3a6),-0x1),q(this,_0x213134(0x102),''),q(this,_0x213134(0x161),''),q(this,_0x213134(0xff),!0x1),_0x4651de&&this[_0x213134(0x1da)](_0x4651de);}['getConnectionInfo'](){const _0xf1a425=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this[_0xf1a425(0x161)],'shapeId':this[_0xf1a425(0x21c)],'cxnIndex':this['_cxnIndex']};}[_0x232df7(0x326)](_0xd4399c){const _0x30d571=_0x232df7;this[_0x30d571(0xff)]!==_0xd4399c&&(this[_0x30d571(0xff)]=_0xd4399c,this[_0x30d571(0x390)](!0x0));}['isHighlighted'](){const _0x55e00d=_0x232df7;return this[_0x55e00d(0xff)];}['setShapeProps'](_0x469cf5){const _0x290222=_0x232df7;_0x469cf5[_0x290222(0x170)]!==void 0x0&&(this[_0x290222(0x21c)]=_0x469cf5[_0x290222(0x170)]),_0x469cf5[_0x290222(0x1fb)]!==void 0x0&&(this[_0x290222(0x3a6)]=_0x469cf5[_0x290222(0x1fb)]),_0x469cf5[_0x290222(0x1e3)]!==void 0x0&&(this['_unitId']=_0x469cf5[_0x290222(0x1e3)]),_0x469cf5['subUnitId']!==void 0x0&&(this[_0x290222(0x161)]=_0x469cf5[_0x290222(0x26c)]),_0x469cf5[_0x290222(0xf7)]!==void 0x0&&(this[_0x290222(0xff)]=_0x469cf5[_0x290222(0xf7)]),this['transformByState']({'width':_0x469cf5[_0x290222(0x324)]??_0x4c61a8[_0x290222(0x215)]*0x2,'height':_0x469cf5[_0x290222(0x39a)]??_0x4c61a8[_0x290222(0x215)]*0x2});}['_draw'](_0x20d616){const _0x8ebbd=_0x232df7;let _0x205d0a=this[_0x8ebbd(0xff)]?la[_0x8ebbd(0x2c5)]:la[_0x8ebbd(0x366)];_0x4a02a1['drawWith'](_0x20d616,{'radius':_0x4c61a8['cxnPointRadius'],'fill':_0x205d0a['fill'],'stroke':_0x205d0a[_0x8ebbd(0x196)],'strokeWidth':_0x205d0a['strokeWidth'],'evented':!0x0});}};let da=class extends _0x2bb0e8{constructor(_0x9d369a,_0x56795e,_0x2ea102,_0x71e715){const _0x63afc6=_0x232df7;super(),this['_context']=_0x9d369a,this[_0x63afc6(0x209)]=_0x56795e,this['_drawingManagerService']=_0x2ea102,this['_sheetsShapeService']=_0x71e715,q(this,_0x63afc6(0x370),[]),q(this,_0x63afc6(0xe6),null),q(this,_0x63afc6(0x37f),-0x1),q(this,_0x63afc6(0x231),null),q(this,'_unitId',''),q(this,'_subUnitId',''),q(this,_0x63afc6(0x350),null);}['startConnectionDetection'](_0x4b4b42,_0x51c197,_0x55f1e9,_0x292048){const _0x2ebe71=_0x232df7;this['_currentScene']=_0x4b4b42,this[_0x2ebe71(0x102)]=_0x51c197,this[_0x2ebe71(0x161)]=_0x55f1e9,this['_draggingConnectorId']=_0x292048;}['updateConnectionDetection'](_0x3293a8){const _0x1a9425=_0x232df7;if(!this[_0x1a9425(0x231)])return null;let _0x44a4fa=this['_findShapeAtPoint'](_0x3293a8);return _0x44a4fa?(this[_0x1a9425(0xe6)]!==_0x44a4fa[_0x1a9425(0x275)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x44a4fa[_0x1a9425(0x275)],_0x44a4fa[_0x1a9425(0x2c9)]),this['_activeTargetShapeId']=_0x44a4fa[_0x1a9425(0x275)]),this[_0x1a9425(0x23b)](_0x3293a8)):(this[_0x1a9425(0xe6)]!==null&&(this[_0x1a9425(0x10c)](),this[_0x1a9425(0xe6)]=null),null);}[_0x232df7(0x380)](){const _0x239646=_0x232df7;this[_0x239646(0x10c)](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x239646(0x37f)]=-0x1,this[_0x239646(0x350)]=null;}[_0x232df7(0x202)](){const _0x1effe4=_0x232df7;return this[_0x1effe4(0xe6)]===null||this[_0x1effe4(0x37f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x1effe4(0x37f)]};}[_0x232df7(0x32c)](_0x1911b0){const _0x26d6f7=_0x232df7;let _0xf28e87=this['_drawingManagerService'][_0x26d6f7(0x11b)](this['_unitId'],this['_subUnitId']);for(let _0x58b4de of Object['keys'](_0xf28e87)){if(_0x58b4de===this[_0x26d6f7(0x350)]||_0xf28e87[_0x58b4de][_0x26d6f7(0x183)]!==_0x190419[_0x26d6f7(0x21d)])continue;let _0x14e9c0=this[_0x26d6f7(0x3aa)]['getShapeModel'](this[_0x26d6f7(0x102)],this[_0x26d6f7(0x161)],_0x58b4de);if(!_0x14e9c0||_0x52f76f(_0x14e9c0[_0x26d6f7(0x134)]())||_0x14e9c0['getConnectionSiteList']()[_0x26d6f7(0x333)]===0x0||!this[_0x26d6f7(0x231)])continue;let _0x430ff6=_0x3023e5({'unitId':this[_0x26d6f7(0x102)],'subUnitId':this['_subUnitId'],'drawingId':_0x58b4de}),_0x270e28=this['_currentScene']['getObjectIncludeInGroup'](_0x430ff6);if(!_0x270e28)continue;let {left:_0x1ed74b,top:_0x320e80,width:_0x44b030,height:_0x292d95}=_0x270e28[_0x26d6f7(0x213)](),_0x548fa4=_0x1ed74b+_0x44b030/0x2,_0x7624c8=_0x320e80+_0x292d95/0x2,_0x36128a=_0x270e28[_0x26d6f7(0x15f)]['getMatrix'](),_0x3ee918=new _0x9667eb([_0x36128a[0x0],_0x36128a[0x1],_0x36128a[0x2],_0x36128a[0x3],_0x548fa4,_0x7624c8]),_0x140924=_0x270e28['getParent'](),_0x176334=(_0x270e28[_0x26d6f7(0xe3)]&&(_0x140924==null?void 0x0:_0x140924[_0x26d6f7(0x398)])===_0x432f17[_0x26d6f7(0x34e)]?_0x140924[_0x26d6f7(0x21b)][_0x26d6f7(0x2a1)](_0x3ee918):_0x3ee918)[_0x26d6f7(0x354)]()[_0x26d6f7(0x30c)](_0x1911b0),_0x495892=_0x44b030/0x2,_0x5e39f0=_0x292d95/0x2;if(_0x176334['x']>=-_0x495892-0x5&&_0x176334['x']<=_0x495892+0x5&&_0x176334['y']>=-_0x5e39f0-0x5&&_0x176334['y']<=_0x5e39f0+0x5)return{'shapeId':_0x58b4de,'shapeModel':_0x14e9c0};}return null;}[_0x232df7(0x297)](_0xc53f98,_0x1439c3){const _0x10b7b8=_0x232df7;if(!this[_0x10b7b8(0x231)])return;let _0x441c4a=_0x3023e5({'unitId':this[_0x10b7b8(0x102)],'subUnitId':this[_0x10b7b8(0x161)],'drawingId':_0xc53f98}),_0x287d20=this[_0x10b7b8(0x231)]['getObjectIncludeInGroup'](_0x441c4a);if(!_0x287d20)return;let {left:_0x23f93b,top:_0x308e3d,width:_0x40def9,height:_0x32a79a}=_0x287d20[_0x10b7b8(0x213)](),_0x1edd19=_0x23f93b+_0x40def9/0x2,_0x4a7dad=_0x308e3d+_0x32a79a/0x2,_0x30195a=_0x287d20[_0x10b7b8(0x15f)][_0x10b7b8(0x27c)](),_0x5deb4d=new _0x9667eb([_0x30195a[0x0],_0x30195a[0x1],_0x30195a[0x2],_0x30195a[0x3],_0x1edd19,_0x4a7dad]),_0x3bf56d=_0x287d20[_0x10b7b8(0x1e5)](),_0x239a0d=_0x287d20[_0x10b7b8(0xe3)]&&(_0x3bf56d==null?void 0x0:_0x3bf56d[_0x10b7b8(0x398)])===_0x432f17[_0x10b7b8(0x34e)]?_0x3bf56d[_0x10b7b8(0x21b)][_0x10b7b8(0x2a1)](_0x5deb4d):_0x5deb4d;_0x1439c3['updateContext']({'width':_0x40def9,'height':_0x32a79a});let _0x51abd3=_0x1439c3['getConnectionSiteList']();for(let _0x5ddbc6 of _0x51abd3){let _0x5d4f30=_0x5ddbc6['x']-_0x40def9/0x2,_0x5d7278=_0x5ddbc6['y']-_0x32a79a/0x2,_0x4929fe=_0x239a0d['applyPoint']({'x':_0x5d4f30,'y':_0x5d7278}),_0x33694d=_0x4929fe['x'],_0x9052e=_0x4929fe['y'],_0x284ac6=new ua(_0x10b7b8(0x2c4)+_0xc53f98+'-'+_0x5ddbc6[_0x10b7b8(0x198)],{'left':_0x33694d-_0x4c61a8[_0x10b7b8(0x215)],'top':_0x9052e-_0x4c61a8[_0x10b7b8(0x215)],'targetShapeId':_0xc53f98,'cxnIndex':_0x5ddbc6[_0x10b7b8(0x198)],'unitId':this[_0x10b7b8(0x102)],'subUnitId':this['_subUnitId'],'width':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'height':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'zIndex':_0x4489b8+0x2,'evented':!0x1});this[_0x10b7b8(0x370)][_0x10b7b8(0x29a)](_0x284ac6),this[_0x10b7b8(0x231)][_0x10b7b8(0x23d)](_0x284ac6,_0x4489b8+0x2);}}[_0x232df7(0x23b)](_0x186c7d){const _0x544745=_0x232df7;let _0x1926c8=null,_0x3e9ab8=0x1/0x0,_0x99ebda=null;for(let _0x145fc2 of this[_0x544745(0x370)]){let _0xc6462b=_0x145fc2[_0x544745(0xe4)]+_0x4c61a8[_0x544745(0x215)],_0x181675=_0x145fc2[_0x544745(0x1b9)]+_0x4c61a8['cxnPointRadius'],_0x5bce06=_0x186c7d['x']-_0xc6462b,_0x370de4=_0x186c7d['y']-_0x181675,_0x369238=Math[_0x544745(0x241)](_0x5bce06*_0x5bce06+_0x370de4*_0x370de4);_0x369238<_0x3e9ab8&&(_0x3e9ab8=_0x369238,_0x1926c8=_0x145fc2,_0x99ebda={'x':_0xc6462b,'y':_0x181675});}let _0x1d3f68=_0x3e9ab8<=0xa&&_0x1926c8?_0x1926c8['getConnectionInfo']()[_0x544745(0x1fb)]:-0x1;if(_0x1d3f68!==this[_0x544745(0x37f)]){for(let _0x8b51e8 of this[_0x544745(0x370)]){let _0x8f99c5=_0x8b51e8['getConnectionInfo']();_0x8b51e8[_0x544745(0x326)](_0x8f99c5[_0x544745(0x1fb)]===_0x1d3f68);}this[_0x544745(0x37f)]=_0x1d3f68;}if(_0x3e9ab8<=0xa&&_0x1926c8&&_0x99ebda){let _0x2b3ebf=_0x1926c8[_0x544745(0x2e5)](),_0x387a8e=this[_0x544745(0x1c5)](_0x2b3ebf[_0x544745(0x275)],_0x2b3ebf[_0x544745(0x1fb)]);return{'shapeId':_0x2b3ebf[_0x544745(0x275)],'cxnIndex':_0x2b3ebf[_0x544745(0x1fb)],'unitId':_0x2b3ebf[_0x544745(0x1e3)],'subUnitId':_0x2b3ebf[_0x544745(0x26c)],'worldPoint':_0x99ebda,'angle':_0x387a8e};}return null;}[_0x232df7(0x1c5)](_0x3039b0,_0x5e0062){const _0x41b530=_0x232df7;let _0x5035ab=this[_0x41b530(0x3aa)][_0x41b530(0x1cf)](this[_0x41b530(0x102)],this[_0x41b530(0x161)],_0x3039b0);if(!_0x5035ab)return 0x0;let _0x37b681=this[_0x41b530(0x11c)][_0x41b530(0x282)]({'unitId':this[_0x41b530(0x102)],'subUnitId':this[_0x41b530(0x161)],'drawingId':_0x3039b0});if(!(_0x37b681!=null&&_0x37b681['transform']))return 0x0;let {width:_0xf5e6e2=0x0,height:_0x2c0c19=0x0,flipX:_0x31d113=!0x1,flipY:_0x18863e=!0x1}=_0x37b681[_0x41b530(0x15f)];_0x5035ab[_0x41b530(0x2bd)]({'width':_0xf5e6e2,'height':_0x2c0c19});let _0x469d96=_0x5035ab['getConnectionSiteList']()['find'](_0x4fa783=>_0x4fa783[_0x41b530(0x198)]===_0x5e0062);if(!_0x469d96)return 0x0;let _0x5675cf=_0x469d96['ang']/0xea60;return _0x31d113&&(_0x5675cf=0xb4-_0x5675cf),_0x18863e&&(_0x5675cf=-_0x5675cf),_0x5675cf=(_0x5675cf%0x168+0x168)%0x168,_0x5675cf;}[_0x232df7(0x10c)](){const _0x9fbbfa=_0x232df7;for(let _0xbfb74a of this[_0x9fbbfa(0x370)])_0xbfb74a[_0x9fbbfa(0x296)]();this[_0x9fbbfa(0x370)]=[],this[_0x9fbbfa(0x37f)]=-0x1;}[_0x232df7(0x296)](){const _0x161949=_0x232df7;this[_0x161949(0x10c)](),super['dispose']();}};da=X([Y(0x1,_0x229e82(_0x422c1e)),Y(0x2,_0x229e82(_0x3deb35)),Y(0x3,_0x229e82(_0x5c2303))],da);let fa=class extends _0x2bb0e8{constructor(_0x589936,_0x5c69a0,_0x1473d1,_0x55df34,_0x24b688){const _0x49485c=_0x232df7;super(),this[_0x49485c(0x316)]=_0x589936,this[_0x49485c(0x19e)]=_0x5c69a0,this['_sheetDrawingService']=_0x1473d1,this['_shapeService']=_0x55df34,this[_0x49485c(0x2b4)]=_0x24b688,q(this,'_copyInfo',void 0x0),this[_0x49485c(0x24d)](),this[_0x49485c(0x16c)]();}get['_focusedDrawings'](){const _0x390121=_0x232df7;return this[_0x390121(0x1fa)][_0x390121(0x310)]();}[_0x232df7(0x16c)](){const _0x238d68=_0x232df7;this[_0x238d68(0x2b4)][_0x238d68(0x28b)](({fromUnitId:_0x57984d,fromSubUnitId:_0x202093,toUnitId:_0x2c49ed,toSubUnitId:_0x1ffe02,idMap:_0x5eabbc})=>{const _0x539017=_0x238d68;let _0x386713=[],_0x36fc46=[];for(let [_0x14e1b4,_0x35d1a6]of _0x5eabbc[_0x539017(0x17e)]()){let _0x47d1bd=this['_shapeService'][_0x539017(0x1cf)](_0x57984d,_0x202093,_0x14e1b4);if(!_0x47d1bd)continue;let _0x1d00aa=_0x47d1bd[_0x539017(0x134)](),_0x597d06=JSON[_0x539017(0x37b)](JSON[_0x539017(0x1c4)](_0x47d1bd[_0x539017(0x1c7)]()));if(_0x597d06[_0x539017(0x2df)]){var _0x3c3b23,_0x26b7da;let _0x3f9b93=(_0x3c3b23=_0x597d06[_0x539017(0x2df)]['from'])==null?void 0x0:_0x3c3b23[_0x539017(0x275)],_0x4702f3=(_0x26b7da=_0x597d06['relation']['to'])==null?void 0x0:_0x26b7da[_0x539017(0x275)],_0x59d021=!_0x3f9b93||_0x5eabbc['has'](_0x3f9b93),_0x58621f=!_0x4702f3||_0x5eabbc[_0x539017(0x104)](_0x4702f3);_0x59d021&&_0x3f9b93&&_0x597d06['relation'][_0x539017(0x139)]?_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]={..._0x597d06[_0x539017(0x2df)][_0x539017(0x139)],'shapeId':_0x5eabbc['get'](_0x3f9b93)}:_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]=void 0x0,_0x58621f&&_0x4702f3&&_0x597d06[_0x539017(0x2df)]['to']?_0x597d06[_0x539017(0x2df)]['to']={..._0x597d06[_0x539017(0x2df)]['to'],'shapeId':_0x5eabbc[_0x539017(0x14a)](_0x4702f3)}:_0x597d06[_0x539017(0x2df)]['to']=void 0x0;}_0x386713[_0x539017(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6,'shapeType':_0x1d00aa,'shapeData':_0x597d06}}),_0x36fc46[_0x539017(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6}});}return{'redos':_0x386713,'undos':_0x36fc46};});}[_0x232df7(0x24d)](){const _0x2b8bd7=_0x232df7;this[_0x2b8bd7(0x2db)](this[_0x2b8bd7(0x19e)][_0x2b8bd7(0x1f4)]({'id':_0x2b8bd7(0x249),'onBeforeCopyFocusedObject':(_0x41bacb,_0x45e5e8,_0x5636a0)=>{const _0x6c7ad6=_0x2b8bd7;this[_0x6c7ad6(0x29e)]=null;let _0x18fa6=this[_0x6c7ad6(0x315)][_0x6c7ad6(0x34b)](_0x3ca333=>_0x3ca333[_0x6c7ad6(0x183)]===_0x190419[_0x6c7ad6(0x21d)]);return _0x18fa6[_0x6c7ad6(0x333)]!==0x0&&(this[_0x6c7ad6(0x29e)]={'unitId':_0x41bacb,'subUnitId':_0x45e5e8,'copyType':_0x5636a0,'drawings':_0x18fa6},!0x0);},'onBeforeCopy':(_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f)=>{const _0x564fa4=_0x2b8bd7;this[_0x564fa4(0x29e)]=null,this[_0x564fa4(0x34a)](_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f);},'onPasteCells':(_0x3f99c8,_0x70ca2c,_0x48da25,_0x29d3c8)=>{const _0x282cbe=_0x2b8bd7;if(!_0x29d3c8[_0x282cbe(0x368)]||!_0x3f99c8||!this[_0x282cbe(0x29e)])return{'redos':[],'undos':[]};let {pasteType:_0x3e27e0}=_0x29d3c8;return _0x3e27e0===_0x2bfd21['DEFAULT_PASTE']?this[_0x282cbe(0x303)](_0x70ca2c,this['_copyInfo'][_0x282cbe(0x1ed)]===_0x536860['CUT']):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x311a8e,_0x365c50,_0x563df6,_0x2b4617){const _0x426658=_0x232df7;let _0x532a7d=this[_0x426658(0x316)][_0x426658(0x38a)](_0x311a8e,_0x365c50);if(!_0x532a7d)return;let _0x38f05b=_0x3b9770(_0x532a7d,_0x563df6);if(!_0x38f05b)return;let {startX:_0x41ae44,endX:_0xfd5a83,startY:_0x23bad3,endY:_0x348574}=_0x38f05b,_0xba0d56=this[_0x426658(0x1fa)][_0x426658(0x11b)](_0x311a8e,_0x365c50),_0x22c774=[];for(let [_0x5cbc4a,_0x2d4afe]of Object[_0x426658(0x17e)](_0xba0d56)){if(_0x2d4afe[_0x426658(0x183)]!==_0x190419['DRAWING_SHAPE'])continue;let {transform:_0x22ffbd}=_0x2d4afe;if(!_0x22ffbd)continue;let {left:_0x4ce995=0x0,top:_0x166bae=0x0,width:_0x82f556=0x0,height:_0x107963=0x0}=_0x22ffbd;_0x41ae44<=_0x4ce995&&_0xfd5a83>=_0x4ce995+_0x82f556&&_0x23bad3<=_0x166bae&&_0x348574>=_0x166bae+_0x107963&&_0x22c774['push'](_0x2d4afe);}_0x22c774[_0x426658(0x333)]>0x0&&(this[_0x426658(0x29e)]={'unitId':_0x311a8e,'subUnitId':_0x365c50,'copyType':_0x2b4617,'copyRange':_0x563df6,'drawings':_0x22c774});}[_0x232df7(0x303)](_0x2dd269,_0x58ff95){const _0x24138f=_0x232df7;let {unitId:_0x47e959,subUnitId:_0xcd8de6,range:_0x340b85}=_0x2dd269,_0x38a708=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x47e959,_0xcd8de6);if(!_0x38a708)return{'redos':[],'undos':[]};let _0x1aa71c=_0x3062da(_0x340b85),{unitId:_0x358d01,subUnitId:_0x1dd978,copyRange:_0x4a03d5,drawings:_0x3ea1e2}=this[_0x24138f(0x29e)],_0x3938ea=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x358d01,_0x1dd978);if(!_0x3938ea)return{'redos':[],'undos':[]};let _0x18af2b;if(!_0x4a03d5){let _0x578ba2=0x1/0x0,_0x17a69f=0x1/0x0;for(let _0x38fe3c of _0x3ea1e2){let {left:_0x3ed2cb=0x0,top:_0x3e7766=0x0}=_0x38fe3c[_0x24138f(0x15f)]??{};_0x3ed2cb<_0x578ba2&&(_0x578ba2=_0x3ed2cb),_0x3e7766<_0x17a69f&&(_0x17a69f=_0x3e7766);}_0x578ba2!==0x1/0x0&&_0x17a69f!==0x1/0x0&&(_0x18af2b={'left':_0x578ba2,'top':_0x17a69f});}let _0x22d4e4=new Map();if(!_0x58ff95){for(let _0x10b233 of _0x3ea1e2)_0x22d4e4[_0x24138f(0x2e6)](_0x10b233[_0x24138f(0x36c)],_0x3a0ce3());}let _0x535111=[],_0x192693=[];for(let _0x5289aa of _0x3ea1e2){let {drawingId:_0x59f7dd,transform:_0x53acc3,sheetTransform:_0x1b7167}=_0x5289aa;if(!_0x53acc3||!_0x1b7167)continue;let _0x174294=this[_0x24138f(0x117)]({'transform':_0x53acc3,'sheetTransform':_0x1b7167},{'skeleton':_0x3938ea,'range':_0x4a03d5},{'skeleton':_0x38a708,'range':_0x1aa71c},_0x18af2b);if(_0x58ff95){let {redos:_0x8b3597,undos:_0x2a2607}=this[_0x24138f(0x266)]({'fromUnitId':_0x358d01,'fromSubUnitId':_0x1dd978,'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294});_0x535111[_0x24138f(0x29a)](..._0x8b3597),_0x192693[_0x24138f(0x29a)](..._0x2a2607);continue;}let {redos:_0x2b9411,undos:_0x1b38cc}=this['_generateCopyPasteMutations']({'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294,'newDrawingId':_0x22d4e4[_0x24138f(0x14a)](_0x59f7dd),'idMap':_0x22d4e4});_0x535111[_0x24138f(0x29a)](..._0x2b9411),_0x192693[_0x24138f(0x29a)](..._0x1b38cc);}return{'redos':_0x535111,'undos':_0x192693};}[_0x232df7(0x266)](_0x417c14){const _0x40e730=_0x232df7;let {fromUnitId:_0xdfc7f9,fromSubUnitId:_0x430670,toUnitId:_0x59d09f,toSubUnitId:_0x461227,drawing:_0x10b6e0,newTransforms:_0x10b842}=_0x417c14,_0x217b39={..._0x10b6e0,'unitId':_0x59d09f,'subUnitId':_0x461227,'transform':_0x10b842['transform'],'sheetTransform':_0x10b842['sheetTransform']};if(_0x59d09f===_0xdfc7f9&&_0x461227===_0x430670){let {redo:_0x27813d,undo:_0x503ea2,objects:_0x5aefc8}=this[_0x40e730(0x1fa)][_0x40e730(0x29f)]([_0x217b39]);return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x27813d,'objects':_0x5aefc8}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x503ea2,'objects':_0x5aefc8}}]};}{let _0x3e3a46=this[_0x40e730(0x1fa)][_0x40e730(0x154)]([_0x10b6e0]),_0xfb0b60=this['_sheetDrawingService'][_0x40e730(0x295)]([_0x217b39]),_0x524ee2=this[_0x40e730(0x39f)][_0x40e730(0x1cf)](_0x10b6e0[_0x40e730(0x1e3)],_0x10b6e0[_0x40e730(0x26c)],_0x10b6e0[_0x40e730(0x36c)]);if(!_0x524ee2)return{'redos':[],'undos':[]};let _0x1068d7=_0x524ee2[_0x40e730(0x134)](),_0x2467b7=JSON[_0x40e730(0x37b)](JSON[_0x40e730(0x1c4)](_0x524ee2[_0x40e730(0x1c7)]()));return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['REMOVE'],'op':_0x3e3a46[_0x40e730(0x2ff)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448['INSERT'],'op':_0xfb0b60[_0x40e730(0x2ff)],'objects':_0xfb0b60['objects']}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['INSERT'],'op':_0x3e3a46[_0x40e730(0x1ce)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x229)],'op':_0xfb0b60[_0x40e730(0x1ce)],'objects':_0xfb0b60[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}}]};}}['_generateCopyPasteMutations'](_0x1b9a7c){const _0x264644=_0x232df7;let {toUnitId:_0x469779,toSubUnitId:_0x4b8f7b,drawing:_0x130fb8,newTransforms:_0x56417a,newDrawingId:_0x1b3e14,idMap:_0x1c9060}=_0x1b9a7c,_0xe233d2={..._0x130fb8,'unitId':_0x469779,'subUnitId':_0x4b8f7b,'drawingId':_0x1b3e14,'transform':_0x56417a['transform'],'sheetTransform':_0x56417a[_0x264644(0x2a0)]},{redo:_0x4b8ee3,undo:_0x4dbebd,objects:_0x370476}=this[_0x264644(0x1fa)][_0x264644(0x295)]([_0xe233d2]),_0x9d3d6e=this[_0x264644(0x39f)][_0x264644(0x1cf)](_0x130fb8[_0x264644(0x1e3)],_0x130fb8['subUnitId'],_0x130fb8[_0x264644(0x36c)]);if(!_0x9d3d6e)return{'redos':[],'undos':[]};let _0x2a5148=_0x9d3d6e[_0x264644(0x134)](),_0xb9f6d3=JSON[_0x264644(0x37b)](JSON[_0x264644(0x1c4)](_0x9d3d6e[_0x264644(0x1c7)]()));if(_0xb9f6d3[_0x264644(0x2df)]){var _0x331fea,_0x30fe50;let _0x5ea3bb=(_0x331fea=_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)])==null?void 0x0:_0x331fea[_0x264644(0x275)],_0x271ca6=(_0x30fe50=_0xb9f6d3[_0x264644(0x2df)]['to'])==null?void 0x0:_0x30fe50[_0x264644(0x275)],_0x494751=!_0x5ea3bb||_0x1c9060[_0x264644(0x104)](_0x5ea3bb),_0x5ecf8=!_0x271ca6||_0x1c9060[_0x264644(0x104)](_0x271ca6);_0x494751&&_0x5ea3bb&&_0xb9f6d3['relation']['from']?_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]={..._0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x5ea3bb)}:_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]=void 0x0,_0x5ecf8&&_0x271ca6&&_0xb9f6d3['relation']['to']?_0xb9f6d3[_0x264644(0x2df)]['to']={..._0xb9f6d3[_0x264644(0x2df)]['to'],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x271ca6)}:_0xb9f6d3[_0x264644(0x2df)]['to']=void 0x0;}return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448[_0x264644(0x26b)],'op':_0x4b8ee3,'objects':_0x370476}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14,'shapeType':_0x2a5148,'shapeData':_0xb9f6d3}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448['REMOVE'],'op':_0x4dbebd,'objects':_0x370476}},{'id':_0x10857b['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14}}]};}['_updateTransform'](_0x52e4ed,_0xa0a15c,_0x38a866,_0x5ce333){const _0x2a203c=_0x232df7;let {range:_0x326e6f,skeleton:_0x2fabd1}=_0xa0a15c,{range:_0x4e08de,skeleton:_0x384823}=_0x38a866,{transform:_0x5b183a,sheetTransform:_0x403fab}=_0x52e4ed,_0x2ab6b9={..._0x5b183a};if(_0x326e6f){let _0x6c9da0=_0x3b9770(_0x2fabd1,_0x326e6f),_0x51bdbb=_0x3b9770(_0x384823,_0x4e08de);if(_0x6c9da0&&_0x51bdbb){let _0x348d7a=_0x51bdbb[_0x2a203c(0x17f)]-_0x6c9da0['startX'],_0x335481=_0x51bdbb['startY']-_0x6c9da0[_0x2a203c(0x300)];_0x2ab6b9[_0x2a203c(0xe4)]=(_0x2ab6b9[_0x2a203c(0xe4)]??0x0)+_0x348d7a,_0x2ab6b9[_0x2a203c(0x1b9)]=(_0x2ab6b9['top']??0x0)+_0x335481;}}else{let _0x24268e=_0x3b9770(_0x384823,_0x4e08de);if(_0x5ce333&&_0x24268e){let _0x144a90=(_0x2ab6b9['left']??0x0)-_0x5ce333[_0x2a203c(0xe4)],_0x2985f2=(_0x2ab6b9['top']??0x0)-_0x5ce333['top'];_0x2ab6b9[_0x2a203c(0xe4)]=_0x24268e[_0x2a203c(0x17f)]+_0x144a90,_0x2ab6b9[_0x2a203c(0x1b9)]=_0x24268e[_0x2a203c(0x300)]+_0x2985f2;}else _0x2ab6b9['left']=_0x24268e==null?void 0x0:_0x24268e['startX'],_0x2ab6b9['top']=_0x24268e==null?void 0x0:_0x24268e[_0x2a203c(0x300)];}return{'transform':_0x2ab6b9,'sheetTransform':_0x1f42db(_0x2ab6b9,_0x384823)??_0x403fab};}};fa=X([Y(0x0,_0x229e82(_0x117a83)),Y(0x1,_0x229e82(_0x2be9d9)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x344b7d))],fa);var pa=class extends _0x147ce5{constructor(_0x248ef3,_0x13311e){const _0x2d53c2=_0x232df7;super(_0x248ef3,_0x13311e),q(this,_0x2d53c2(0x1f2),null),q(this,'_index',null),q(this,_0x2d53c2(0x102),null),q(this,_0x2d53c2(0x161),null),q(this,'_isStartConnectorPoint',!0x1),_0x13311e&&this[_0x2d53c2(0x1da)](_0x13311e);}[_0x232df7(0xe5)](){const _0x2d82c3=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2d82c3(0x1f2)]};}['setShapeProps'](_0x35e148){const _0x1c4545=_0x232df7;_0x35e148[_0x1c4545(0x275)]!==void 0x0&&(this[_0x1c4545(0x1f2)]=_0x35e148[_0x1c4545(0x275)]),_0x35e148['unitId']!==void 0x0&&(this[_0x1c4545(0x102)]=_0x35e148[_0x1c4545(0x1e3)]),_0x35e148['subUnitId']!==void 0x0&&(this[_0x1c4545(0x161)]=_0x35e148[_0x1c4545(0x26c)]),_0x35e148['isStartConnectorPoint']!==void 0x0&&(this[_0x1c4545(0x186)]=_0x35e148['isStartConnectorPoint']),this[_0x1c4545(0x234)]({'width':_0x35e148[_0x1c4545(0x324)],'height':_0x35e148[_0x1c4545(0x39a)]});}[_0x232df7(0x356)](_0xc4e89c){const _0x2619ba=_0x232df7;_0x4a02a1[_0x2619ba(0x1a8)](_0xc4e89c,{'radius':_0x4c61a8[_0x2619ba(0x215)],'fill':_0x4c61a8[_0x2619ba(0x256)],'stroke':_0x4c61a8[_0x2619ba(0x12a)],'strokeWidth':_0x4c61a8[_0x2619ba(0x340)],'evented':!0x0});}};let ma=class extends _0x2bb0e8{constructor(_0x202c89,_0x190230,_0x311cda,_0xe5df12,_0xb71360,_0x30bfbd,_0x383626,_0x4dd0d9){const _0x35c7a4=_0x232df7;super(),this[_0x35c7a4(0x35d)]=_0x202c89,this[_0x35c7a4(0x232)]=_0x190230,this[_0x35c7a4(0x209)]=_0x311cda,this[_0x35c7a4(0x11c)]=_0xe5df12,this[_0x35c7a4(0x2d4)]=_0xb71360,this[_0x35c7a4(0x3aa)]=_0x30bfbd,this[_0x35c7a4(0x37e)]=_0x383626,this['_sheetBasicShapeConnectionPointController']=_0x4dd0d9,q(this,_0x35c7a4(0x362),void 0x0),q(this,_0x35c7a4(0x102),void 0x0),q(this,'_subUnitId',void 0x0),q(this,'_connectorObjects',[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x35c7a4(0x1d8),void 0x0),q(this,_0x35c7a4(0x322),!0x1),q(this,_0x35c7a4(0x272),!0x1),q(this,_0x35c7a4(0x355),!0x1),q(this,_0x35c7a4(0x2d6),void 0x0),q(this,_0x35c7a4(0x167),void 0x0),q(this,_0x35c7a4(0x223),null),this['_initialize']();}['_initialize'](){this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x232df7(0x349)](){const _0x4e0fe6=_0x232df7;if(!this['_unitId']||!this[_0x4e0fe6(0x161)]||!this['_activeShapeId'])return;let _0x2e89d2={'unitId':this['_unitId'],'subUnitId':this[_0x4e0fe6(0x161)],'drawingId':this['_activeShapeId']},{transform:_0x58e3d8}=this['_drawingManagerService']['getDrawingByParam'](_0x2e89d2);if(_0x58e3d8)return{'left':_0x58e3d8[_0x4e0fe6(0xe4)]||0x0,'top':_0x58e3d8[_0x4e0fe6(0x1b9)]||0x0,'width':_0x58e3d8[_0x4e0fe6(0x324)]||0x0,'height':_0x58e3d8[_0x4e0fe6(0x39a)]||0x0,'flipX':_0x58e3d8['flipX']||!0x1,'flipY':_0x58e3d8[_0x4e0fe6(0x25e)]||!0x1,'angle':_0x58e3d8[_0x4e0fe6(0x140)]};}['_addShapeConnectorHandlerObjects'](){const _0x45cb3a=_0x232df7;if(this[_0x45cb3a(0x102)]===void 0x0||this[_0x45cb3a(0x161)]===void 0x0||this[_0x45cb3a(0x362)]===void 0x0)return;let _0x4d5ec2=this[_0x45cb3a(0x209)][_0x45cb3a(0x124)](this[_0x45cb3a(0x102)]);if(!_0x4d5ec2||!_0x4d5ec2['with'](_0x54a66d)[_0x45cb3a(0x2ee)]())return;let {scene:_0x26854a}=_0x4d5ec2,_0x50bd94=this[_0x45cb3a(0x349)]();if(!_0x50bd94)return;let _0x3b5ee2=this[_0x45cb3a(0x3aa)][_0x45cb3a(0x1cf)](this['_unitId'],this[_0x45cb3a(0x161)],this[_0x45cb3a(0x362)]);if(!_0x3b5ee2||!_0x52f76f(_0x3b5ee2[_0x45cb3a(0x134)]()))return;let _0x37cba0=_0x3b5ee2[_0x45cb3a(0x2e3)]();if(_0x37cba0[_0x45cb3a(0x333)]<0x2)return;let _0x5356b4=new _0x5d44cb(_0x50bd94),_0x36bbb8=_0x37cba0[0x0],_0x4cda89=_0x37cba0[_0x37cba0[_0x45cb3a(0x333)]-0x1],_0x43592e=_0x5356b4[_0x45cb3a(0x31a)](_0x36bbb8),_0x2fa5da=_0x5356b4['localToWorld'](_0x4cda89);this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x43592e},!0x0),this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x2fa5da},!0x1);}[_0x232df7(0x2a4)](_0x24faa9,_0x33ba17,_0x148860){const _0x10441c=_0x232df7;if(this[_0x10441c(0x362)]===void 0x0||this[_0x10441c(0x102)]===void 0x0||this[_0x10441c(0x161)]===void 0x0)return;let _0x4e08b7='connector-handler-'+this[_0x10441c(0x102)]+'-'+this[_0x10441c(0x161)]+'-'+this['_activeShapeId']+'-'+(_0x148860?_0x10441c(0x2ba):_0x10441c(0x100)),_0x39c9a4=_0x24faa9[_0x10441c(0x3a9)](_0x4e08b7);if(_0x39c9a4){_0x39c9a4[_0x10441c(0x234)]({'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)]});return;}let _0x1c436a=new pa(_0x4e08b7,{'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)],'shapeId':this[_0x10441c(0x362)],'unitId':this[_0x10441c(0x102)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x148860,'width':_0x4c61a8['cxnPointRadius']*0x2,'height':_0x4c61a8[_0x10441c(0x215)]*0x2,'zIndex':_0x4489b8+0x1,'evented':!0x0});this[_0x10441c(0x32d)][_0x10441c(0x29a)](_0x1c436a),this[_0x10441c(0x153)](_0x1c436a,_0x24faa9,_0x148860),_0x24faa9[_0x10441c(0x23d)](_0x1c436a,_0x4489b8+0x1);}[_0x232df7(0x1c6)](_0x5a03b0,_0x33dbf8){const _0x1562b1=_0x232df7;var _0x2f7de9;let _0x2365b2={'x':0x0,'y':0x0};if(!_0x5a03b0||!_0x33dbf8)return _0x2365b2;let _0x3fa373=this[_0x1562b1(0x209)][_0x1562b1(0x124)](_0x5a03b0);if(!_0x3fa373||!_0x3fa373[_0x1562b1(0x18c)](_0x54a66d)['getSkeleton'](_0x33dbf8))return _0x2365b2;let _0xe39df5=_0x3fa373[_0x1562b1(0x18c)](_0x5ccab7),_0x263bce=_0xe39df5==null?void 0x0:_0xe39df5[_0x1562b1(0x1e9)]();if(!_0x263bce)return _0x2365b2;let _0x474cee=(_0x2f7de9=this[_0x1562b1(0x2d4)][_0x1562b1(0x2e7)](_0x5a03b0))==null?void 0x0:_0x2f7de9[_0x1562b1(0x339)](_0x33dbf8);if(!_0x474cee)return _0x2365b2;let _0x9831f=_0x56d9fe(_0x263bce[_0x1562b1(0x205)],_0x263bce[_0x1562b1(0x3ab)],_0x3fa373[_0x1562b1(0x381)],_0x474cee);return _0x9831f?{'x':_0x9831f[_0x1562b1(0x397)],'y':_0x9831f[_0x1562b1(0x125)]}:_0x2365b2;}[_0x232df7(0x1d9)](_0x4d7dc3,_0x237d82){const _0x4aa14a=_0x232df7;var _0x2e4b97;let _0x30d56f=(_0x2e4b97=this[_0x4aa14a(0x2d4)][_0x4aa14a(0x2e7)](_0x4d7dc3))==null?void 0x0:_0x2e4b97[_0x4aa14a(0x339)](_0x237d82);return(_0x30d56f==null?void 0x0:_0x30d56f[_0x4aa14a(0x3a7)]())??0x1;}[_0x232df7(0x38f)](_0x55b758,_0x5823f9,_0x32909e,_0x3c637e,_0x8bcc7a){const _0x5e9b9b=_0x232df7;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0x5e9b9b(0x167)]['unsubscribe'](),this['_sheetShapeAdjustController'][_0x5e9b9b(0x1cb)]();let _0x583b3b=this[_0x5e9b9b(0x223)];this[_0x5e9b9b(0x31f)][_0x5e9b9b(0x380)]();let _0xc7a2fd=this[_0x5e9b9b(0x1c6)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x22d4ea=this[_0x5e9b9b(0x1d9)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x3166ab={'x':_0x32909e['offsetX']/_0x22d4ea+_0xc7a2fd['x'],'y':_0x32909e[_0x5e9b9b(0x1d6)]/_0x22d4ea+_0xc7a2fd['y']},_0x1a024e=_0x583b3b?_0x583b3b[_0x5e9b9b(0x1ba)]:_0x3166ab,_0x344632=_0x3c637e?this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x148)]():this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x168)](),_0x1d5483=this['_activeShapeModel'][_0x5e9b9b(0x134)]();_0x344632?this['_handleConnectedEndpointPointerUp'](_0x344632,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a):this[_0x5e9b9b(0x2d9)](_0x5823f9,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a,_0x1d5483),this['_isConnecting']=!0x1,this[_0x5e9b9b(0x355)]=!0x1,this[_0x5e9b9b(0x223)]=null,_0x55b758[_0x5e9b9b(0x34f)]();}[_0x232df7(0x2d9)](_0x45087e,_0x5b940d,_0x5806c2,_0x3f191c,_0x42256d,_0x9a93d5){const _0x2831ce=_0x232df7;let _0x5e580a=_0x9a93d5===_0xe73d9c[_0x2831ce(0x171)]||_0x9a93d5===_0xe73d9c[_0x2831ce(0x365)],_0x3060f5=_0x5806c2?_0x5b940d:_0x45087e,_0x4fda38=_0x5806c2?_0x45087e:_0x5b940d,_0x14b587=this[_0x2831ce(0x1d8)]['getConnectorLinePoints'](),_0x7fb144=this[_0x2831ce(0x1d8)][_0x2831ce(0x134)](),_0x1e3567=_0x2be336(_0x7fb144),_0xa4a612=_0x5d44cb[_0x2831ce(0x131)](_0x14b587,_0x1e3567),_0x60f45f=_0x5e580a?_0x5d44cb[_0x2831ce(0x341)](_0x3060f5,_0x4fda38):_0x5d44cb['computeConnectorResizeLayout'](_0x45087e,_0x5b940d,_0x5806c2,_0xa4a612);_0x3f191c?this['_executeConnectionCommand'](_0x60f45f,_0x3f191c,_0x5806c2,_0x42256d):this[_0x2831ce(0x248)](_0x60f45f,_0x42256d);}[_0x232df7(0x177)](_0x282c81,_0x5e8b3d,_0x5611f7,_0x5614ed,_0x14e0b1){const _0x3a1b4b=_0x232df7;let _0x1bc0b6=this[_0x3a1b4b(0x20d)](_0x282c81);if(!_0x1bc0b6)return;let _0x4b80a6=_0x5614ed?_0x5614ed[_0x3a1b4b(0x140)]:this[_0x3a1b4b(0x2c0)](_0x1bc0b6[_0x3a1b4b(0x32a)],_0x5e8b3d),_0x597e90;if(_0x5614ed){let _0x3bb68a=this[_0x3a1b4b(0x11c)][_0x3a1b4b(0x282)]({'unitId':_0x5614ed['unitId'],'subUnitId':_0x5614ed[_0x3a1b4b(0x26c)],'drawingId':_0x5614ed[_0x3a1b4b(0x275)]});if(_0x3bb68a!=null&&_0x3bb68a['transform']){let {left:_0x3ac22d=0x0,top:_0xd1713c=0x0,width:_0x59273c=0x0,height:_0x69957a=0x0,angle:_0x2c9164}=_0x3bb68a[_0x3a1b4b(0x15f)];_0x597e90=_0x109e70({'left':_0x3ac22d,'top':_0xd1713c,'width':_0x59273c,'height':_0x69957a},_0x2c9164||0x0);}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};let _0x6e05ca={'point':_0x5e8b3d,'angle':_0x4b80a6,'bounds':_0x597e90},_0x55bec6=_0x5611f7?_0x6e05ca:_0x1bc0b6,_0x1aa3f0=_0x5611f7?_0x1bc0b6:_0x6e05ca,_0x40b57d=this[_0x3a1b4b(0x1d8)]['getShapeType'](),_0x2b6145=_0x201266(_0x55bec6,_0x1aa3f0,_0x40b57d);this['_activeShapeModel'][_0x3a1b4b(0x113)]();let _0x13abfe=_0x3cbafa(_0x2b6145,_0x40b57d);_0x5614ed?this[_0x3a1b4b(0x24a)](_0x13abfe,_0x5614ed,_0x282c81,_0x5611f7,_0x14e0b1):this['_executeConnectedRouteResizeCommand'](_0x13abfe,_0x282c81,_0x5611f7,_0x14e0b1);}[_0x232df7(0xdf)](_0x73caf7,_0x1fbf15,_0x4c8791,_0x221195){const _0x233468=_0x232df7;let _0x40c1ae=this[_0x233468(0x1d8)][_0x233468(0x1c7)]()[_0x233468(0x2df)],_0xbfafed={..._0x40c1ae},_0x19ced5={'shapeId':_0x1fbf15[_0x233468(0x275)],'cxnIndex':_0x1fbf15[_0x233468(0x1fb)]};_0x4c8791?_0xbfafed[_0x233468(0x139)]=_0x19ced5:_0xbfafed['to']=_0x19ced5;let _0x58918f=this[_0x233468(0x1d8)][_0x233468(0x134)](),_0x1e5c6d=_0x3cbafa(_0x73caf7[_0x233468(0x12d)],_0x58918f),_0x1b824a={'unitId':this['_unitId'],'subUnitId':this[_0x233468(0x161)],'connectorShapeId':this[_0x233468(0x362)],'width':_0x73caf7[_0x233468(0x214)][_0x233468(0x324)],'height':_0x73caf7[_0x233468(0x214)]['height'],'left':_0x73caf7[_0x233468(0x214)]['left'],'top':_0x73caf7[_0x233468(0x214)][_0x233468(0x1b9)],'flipX':_0x73caf7['worldRect'][_0x233468(0x270)]||!0x1,'flipY':_0x73caf7[_0x233468(0x214)]['flipY']||!0x1,'newAdjustValues':_0x1e5c6d[_0x233468(0x29d)],'oldAdjustValues':_0x221195,'oldRelation':_0x40c1ae,'newRelation':_0xbfafed,'newLineType':_0x1e5c6d[_0x233468(0x130)],'oldLineType':_0x58918f};this['_commandService']['executeCommand'](_0xa22292['id'],_0x1b824a);}[_0x232df7(0x248)](_0x243b51,_0x23c366){const _0x3cbd26=_0x232df7;let _0x2eafe7=this['_activeShapeModel'][_0x3cbd26(0x134)](),_0x2cfa73=_0x3cbafa(_0x243b51[_0x3cbd26(0x12d)],_0x2eafe7),_0x657ed9={'unitId':this[_0x3cbd26(0x102)],'subUnitId':this[_0x3cbd26(0x161)],'shapeId':this['_activeShapeId'],'width':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x324)],'height':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x39a)],'left':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0xe4)],'top':_0x243b51[_0x3cbd26(0x214)]['top'],'flipX':_0x243b51[_0x3cbd26(0x214)]['flipX']||!0x1,'flipY':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x25e)]||!0x1,'angle':_0x243b51[_0x3cbd26(0x214)]['angle']||0x0,'newAdjustValues':_0x2cfa73['adjustValues'],'oldAdjustValues':_0x23c366,'newLineType':_0x2cfa73[_0x3cbd26(0x130)],'oldLineType':_0x2eafe7};this[_0x3cbd26(0x232)][_0x3cbd26(0x286)](_0x44659f['id'],_0x657ed9);}['_executeConnectedRouteConnectionCommand'](_0x5c7290,_0x286bcd,_0x4d99d1,_0x361e8c,_0xf4a4f6){const _0x31171c=_0x232df7;let _0x495683=this[_0x31171c(0x1d8)][_0x31171c(0x1c7)]()['relation'],_0x15b4a7={..._0x495683},_0x54f007={'shapeId':_0x286bcd[_0x31171c(0x275)],'cxnIndex':_0x286bcd[_0x31171c(0x1fb)]};_0x361e8c?(_0x15b4a7['from']=_0x54f007,_0x15b4a7['to']=_0x4d99d1):(_0x15b4a7['from']=_0x4d99d1,_0x15b4a7['to']=_0x54f007);let _0x10e81b={'unitId':this[_0x31171c(0x102)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x31171c(0x362)],'width':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x324)],'height':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x39a)],'left':_0x5c7290[_0x31171c(0x214)]['left'],'top':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x1b9)],'flipX':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x270)]||!0x1,'flipY':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x25e)]||!0x1,'oldAdjustValues':_0xf4a4f6,'newAdjustValues':_0x5c7290[_0x31171c(0x29d)],'newLineType':_0x5c7290['lineType'],'rotation':_0x5c7290[_0x31171c(0x264)],'oldRelation':_0x495683,'newRelation':_0x15b4a7};this['_commandService'][_0x31171c(0x286)](_0xa22292['id'],_0x10e81b);}['_executeConnectedRouteResizeCommand'](_0x20c5c2,_0x34e93f,_0x20e42c,_0x24fcd6){const _0x5aa060=_0x232df7;let _0x3517ee=this[_0x5aa060(0x1d8)]['getShapeData']()[_0x5aa060(0x2df)],_0x4dd86b={};_0x20e42c?(_0x4dd86b['to']=_0x34e93f,_0x4dd86b[_0x5aa060(0x139)]=void 0x0):(_0x4dd86b['from']=_0x34e93f,_0x4dd86b['to']=void 0x0);let _0x3b3e6d={'unitId':this[_0x5aa060(0x102)],'subUnitId':this[_0x5aa060(0x161)],'connectorShapeId':this[_0x5aa060(0x362)],'width':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x324)],'height':_0x20c5c2['worldRect']['height'],'left':_0x20c5c2[_0x5aa060(0x214)]['left'],'top':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x1b9)],'flipX':_0x20c5c2[_0x5aa060(0x214)]['flipX']||!0x1,'flipY':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x25e)]||!0x1,'oldAdjustValues':_0x24fcd6,'newAdjustValues':_0x20c5c2[_0x5aa060(0x29d)],'newLineType':_0x20c5c2[_0x5aa060(0x130)],'rotation':_0x20c5c2[_0x5aa060(0x264)],'oldRelation':_0x3517ee,'newRelation':_0x4dd86b};this['_commandService'][_0x5aa060(0x286)](_0xa22292['id'],_0x3b3e6d);}[_0x232df7(0x153)](_0x272239,_0x90e0ef,_0x554ea1){const _0x5a4e58=_0x232df7;this[_0x5a4e58(0x2db)](_0x169987(_0x272239[_0x5a4e58(0x197)][_0x5a4e58(0x2e4)]((_0x15054b,_0x5a5ed0)=>{const _0x1ad76c=_0x5a4e58;let _0x2c233f=_0x272239[_0x1ad76c(0xe5)]();if(this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ad76c(0x1cf)](_0x2c233f[_0x1ad76c(0x1e3)],_0x2c233f[_0x1ad76c(0x26c)],_0x2c233f['drawingId']),!this[_0x1ad76c(0x1d8)])return;let _0x3462ef={};this[_0x1ad76c(0x1d8)][_0x1ad76c(0x12f)]()['forEach'](_0x154aaa=>{const _0x247391=_0x1ad76c;let _0xd27e1a=this[_0x247391(0x1d8)][_0x247391(0x357)](_0x154aaa);_0xd27e1a!==void 0x0&&(_0x3462ef[_0x154aaa]=_0xd27e1a);});let _0x58a0a9=this[_0x1ad76c(0x349)]();if(!_0x58a0a9)return;this[_0x1ad76c(0x342)]={..._0x58a0a9};let _0x2c3f86=new _0x5d44cb(this['_baseDrawingRect']),_0x2041e2=_0x3023e5({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x23ae7e=_0x90e0ef['getObjectIncludeInGroup'](_0x2041e2);this[_0x1ad76c(0x322)]=!0x0,_0x90e0ef[_0x1ad76c(0x3a2)](),this[_0x1ad76c(0x31f)]['startConnectionDetection'](_0x90e0ef,this[_0x1ad76c(0x102)],this[_0x1ad76c(0x161)],this[_0x1ad76c(0x362)]),this['_currentConnectionTarget']=null;let _0x559d32=this[_0x1ad76c(0x1d8)][_0x1ad76c(0x2e3)](),_0x3eb53f=_0x559d32[0x0],_0x30cd4e=_0x559d32[_0x559d32[_0x1ad76c(0x333)]-0x1],_0x282d19=_0x554ea1?_0x2c3f86[_0x1ad76c(0x31a)](_0x30cd4e):_0x2c3f86[_0x1ad76c(0x31a)](_0x3eb53f);this[_0x1ad76c(0x2d6)]=_0x90e0ef[_0x1ad76c(0x2c6)]['subscribeEvent']((_0x43d576,_0x247d5c)=>{const _0x5052d6=_0x1ad76c;if(!this[_0x5052d6(0x322)]||!this['_activeShapeModel'])return;this[_0x5052d6(0x355)]||=(this['_sheetShapeAdjustController'][_0x5052d6(0x23a)](),this['_activeShapeModel'][_0x5052d6(0x28d)](),!0x0);let _0xf9b33f=this['_getScrollInfo'](this[_0x5052d6(0x102)],this['_subUnitId']),_0x519074=this['_getZoomRatio'](this['_unitId'],this[_0x5052d6(0x161)]),_0x56020b={'x':_0x43d576['offsetX']/_0x519074+_0xf9b33f['x'],'y':_0x43d576[_0x5052d6(0x1d6)]/_0x519074+_0xf9b33f['y']},_0x120108=this['_sheetBasicShapeConnectionPointController'][_0x5052d6(0xf2)](_0x56020b);if(_0x120108){let {shapeId:_0x55e43c,unitId:_0x22eaaa,subUnitId:_0x22f8cc}=_0x120108;if(_0x55e43c&&_0x22eaaa&&_0x22f8cc){let _0x10edb8=_0x3023e5({'unitId':_0x22eaaa,'subUnitId':_0x22f8cc,'drawingId':_0x55e43c});_0x120108[_0x5052d6(0x140)]=(_0x90e0ef[_0x5052d6(0x3a9)](_0x10edb8)[_0x5052d6(0x140)]||0x0)+_0x120108[_0x5052d6(0x140)];}}this['_currentConnectionTarget']=_0x120108;let _0xaae330=_0x554ea1?this[_0x5052d6(0x1d8)]['getEndConnectInfo']():this[_0x5052d6(0x1d8)]['getStartConnectInfo']();_0xaae330?this[_0x5052d6(0x253)](_0xaae330,_0x56020b,_0x554ea1,_0x23ae7e,_0x272239):this[_0x5052d6(0x1f9)](_0x56020b,_0x282d19,_0x554ea1,_0x23ae7e,_0x272239);}),this['_cxtHandlerPointerUp']=_0x90e0ef[_0x1ad76c(0x2c7)][_0x1ad76c(0x2e4)]((_0x5a39ca,_0x105b1e)=>{const _0x4431bc=_0x1ad76c;this[_0x4431bc(0x38f)](_0x90e0ef,_0x282d19,_0x5a39ca,_0x554ea1,_0x3462ef);}),_0x5a5ed0[_0x1ad76c(0x345)]();})));}[_0x232df7(0x2a5)](_0x908d93,_0x280baa,_0x54f2d3){const _0x525b65=_0x232df7;let _0x48d7a2=this['_sheetsShapeService'][_0x525b65(0x38c)](_0x908d93,_0x280baa,_0x54f2d3);if(!_0x48d7a2||_0x48d7a2['length']===0x0)return;let _0x1814fb=this['_renderManagerService']['getRenderUnitById'](_0x908d93);if(!_0x1814fb)return;let {scene:_0x34f044}=_0x1814fb;for(let _0x45a3db of _0x48d7a2){let _0x19f50f=_0x45a3db[_0x525b65(0x2fc)],_0x38aa2e=this[_0x525b65(0x3aa)][_0x525b65(0x1cf)](_0x908d93,_0x280baa,_0x19f50f);if(!_0x38aa2e)continue;let _0x178269=_0x38aa2e['getStartConnectInfo'](),_0xe6714b=_0x38aa2e[_0x525b65(0x148)](),_0x4c33f1=(_0x178269==null?void 0x0:_0x178269['shapeId'])===_0x54f2d3,_0x7d32eb=_0x3023e5({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f}),_0xf4a7a4=_0x34f044['getObjectIncludeInGroup'](_0x7d32eb);if(!_0xf4a7a4)continue;let _0x5a8859=this['_drawingManagerService'][_0x525b65(0x282)]({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f});_0x5a8859!=null&&_0x5a8859[_0x525b65(0x15f)]&&(_0x178269&&_0xe6714b?this['_rerouteConnectorLine'](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x178269,_0xe6714b,_0xf4a7a4):this[_0x525b65(0x267)](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x4c33f1?_0x178269:_0xe6714b,_0x4c33f1,_0x5a8859,_0xf4a7a4));}}['_rerouteConnectorLine'](_0x294b08,_0x3853ef,_0x445135,_0x1fc819,_0x239382,_0x56d774,_0x405ee7){const _0x524b42=_0x232df7;let _0xd0682c=this[_0x524b42(0x102)],_0xa42781=this[_0x524b42(0x161)];this[_0x524b42(0x102)]=_0x294b08,this[_0x524b42(0x161)]=_0x3853ef;let _0x12e650=this[_0x524b42(0x20d)](_0x239382),_0x4f1b99=this[_0x524b42(0x20d)](_0x56d774);if(this['_unitId']=_0xd0682c,this[_0x524b42(0x161)]=_0xa42781,!_0x12e650||!_0x4f1b99)return;let _0x47be21=_0x1fc819[_0x524b42(0x134)](),_0x127f3a=_0x201266(_0x12e650,_0x4f1b99,_0x47be21);_0x127f3a&&_0x1fc819[_0x524b42(0x302)](_0x127f3a);let _0x5c106f=_0x3cbafa(_0x127f3a,_0x47be21);_0x5c106f[_0x524b42(0x130)]!==_0x47be21&&_0x1fc819[_0x524b42(0x175)](_0x5c106f['lineType']),_0x1fc819[_0x524b42(0x28d)]();for(let [_0x2f9f99,_0x3431fe]of Object[_0x524b42(0x17e)](_0x5c106f[_0x524b42(0x29d)]))_0x1fc819[_0x524b42(0x359)](_0x2f9f99,_0x3431fe);_0x1fc819[_0x524b42(0x2bd)]({'width':_0x5c106f[_0x524b42(0x214)]['width'],'height':_0x5c106f[_0x524b42(0x214)]['height']}),_0x405ee7[_0x524b42(0x234)]({'flipX':_0x5c106f[_0x524b42(0x214)]['flipX'],'flipY':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x25e)],'left':_0x5c106f[_0x524b42(0x214)]['left'],'top':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x1b9)],'width':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x324)],'height':_0x5c106f['worldRect']['height'],'angle':_0x5c106f[_0x524b42(0x264)]}),_0x1fc819['removeLinePoints']();}[_0x232df7(0x267)](_0x100db3,_0x50899d,_0x589d45,_0x499d40,_0x5b3746,_0x2d4829,_0x7bfd8d,_0x59ea6d){const _0x4aa27d=_0x232df7;let _0xee2b34=this[_0x4aa27d(0x102)],_0x14c031=this[_0x4aa27d(0x161)];this[_0x4aa27d(0x102)]=_0x100db3,this['_subUnitId']=_0x50899d;let _0x283a61=this[_0x4aa27d(0x20d)](_0x5b3746);if(this[_0x4aa27d(0x102)]=_0xee2b34,this[_0x4aa27d(0x161)]=_0x14c031,!_0x283a61)return;let {left:_0x37f174=0x0,top:_0x46c148=0x0,width:_0x276613=0x0,height:_0x2c2480=0x0,flipX:_0x5d438d=!0x1,flipY:_0x23ed5d=!0x1}=_0x7bfd8d[_0x4aa27d(0x15f)],_0x24eb6d=_0x499d40[_0x4aa27d(0x2e3)]();if(_0x24eb6d[_0x4aa27d(0x333)]<0x2)return;let _0x966bba=new _0x5d44cb({'left':_0x37f174,'top':_0x46c148,'width':_0x276613,'height':_0x2c2480,'flipX':_0x5d438d,'flipY':_0x23ed5d}),_0x4acdac=_0x2d4829?_0x24eb6d[_0x24eb6d[_0x4aa27d(0x333)]-0x1]:_0x24eb6d[0x0],_0x1a65ba=_0x966bba[_0x4aa27d(0x31a)](_0x4acdac),_0x515ca4=_0x5d44cb[_0x4aa27d(0x247)](_0x1a65ba,_0x283a61[_0x4aa27d(0x32a)],!_0x2d4829);_0x59ea6d[_0x4aa27d(0x234)]({'flipX':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x270)],'flipY':_0x515ca4[_0x4aa27d(0x214)]['flipY'],'left':_0x515ca4['worldRect'][_0x4aa27d(0xe4)],'top':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x1b9)],'width':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x324)],'height':_0x515ca4[_0x4aa27d(0x214)]['height'],'angle':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x140)]}),_0x59ea6d[_0x4aa27d(0x390)](!0x0);}[_0x232df7(0x2d5)](){const _0xa8b3da=_0x232df7;this[_0xa8b3da(0x32d)][_0xa8b3da(0x333)]!==0x0&&(this[_0xa8b3da(0x32d)]['forEach'](_0x3c672c=>{const _0x4968ad=_0xa8b3da;_0x3c672c[_0x4968ad(0x296)]();}),this[_0xa8b3da(0x32d)]=[]);}[_0x232df7(0x156)](){const _0x2bfac3=_0x232df7;let _0x399e03=this[_0x2bfac3(0x2d4)][_0x2bfac3(0x2d0)](_0xe0c4a6['UNIVER_SHEET']);this['disposeWithMe'](_0x399e03[_0x2bfac3(0x16f)](_0x4faa1d(_0x5ceb26=>_0x5ceb26?_0x5ceb26[_0x2bfac3(0xe1)][_0x2bfac3(0x16f)](_0x4faa1d(_0x1432e8=>{const _0xf108b2=_0x2bfac3;if(!_0x1432e8)return _0x5f31a2;let _0x547271=_0x5ceb26['getUnitId'](),_0x3ce2b1=this[_0xf108b2(0x209)][_0xf108b2(0x124)](_0x547271),_0x48c891=_0x3ce2b1==null?void 0x0:_0x3ce2b1[_0xf108b2(0x381)];return _0x48c891?_0x24a70f(_0x48c891):_0x5f31a2;})):_0x5f31a2))['subscribe'](_0x364619=>{const _0x512605=_0x2bfac3;let _0x3af3e3=_0x364619[_0x512605(0x372)]();this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c6)]['subscribeEvent'](_0x469f82=>{const _0x3cf434=_0x512605;this[_0x3cf434(0x272)]&&this[_0x3cf434(0x362)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x22f)][_0x512605(0x268)](_0x256a82=>{const _0x1fe58e=_0x512605;let {objects:_0x796022}=_0x256a82;this[_0x1fe58e(0x2d5)](),_0x796022!==null&&_0x796022[_0x1fe58e(0x292)]===0x1&&_0x796022[_0x1fe58e(0x212)]()['next']()[_0x1fe58e(0x30f)]instanceof J&&(this[_0x1fe58e(0x272)]=!0x0);})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x2fd)][_0x512605(0x268)](_0x44ab6c=>{const _0x15ce0f=_0x512605;this[_0x15ce0f(0x272)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c7)][_0x512605(0x2e4)](()=>{const _0x140f6b=_0x512605;this[_0x140f6b(0x272)]&&(this[_0x140f6b(0x272)]=!0x1,this[_0x140f6b(0x317)]());})),this[_0x512605(0x2db)](_0x3af3e3['changeEnd$'][_0x512605(0x268)](()=>{const _0x32aa21=_0x512605;this[_0x32aa21(0x102)]&&this[_0x32aa21(0x161)]&&this['_activeShapeId']&&this[_0x32aa21(0x11c)]['getDrawingByParam']({'unitId':this[_0x32aa21(0x102)],'subUnitId':this[_0x32aa21(0x161)],'drawingId':this['_activeShapeId']})&&(this[_0x32aa21(0x2d5)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x232df7(0x1f0)](){const _0xad266c=_0x232df7;this[_0xad266c(0x2db)](this['_drawingManagerService'][_0xad266c(0x19a)][_0xad266c(0x268)](_0xa655d1=>{const _0x17ebfa=_0xad266c;if(_0xa655d1[_0x17ebfa(0x333)]===0x1){let _0x371540=_0xa655d1[0x0];if(_0x371540[_0x17ebfa(0x183)]===_0x190419['DRAWING_SHAPE']){let _0x33fb0c=this[_0x17ebfa(0x3aa)]['getShapeModel'](_0x371540[_0x17ebfa(0x1e3)],_0x371540[_0x17ebfa(0x26c)],_0x371540[_0x17ebfa(0x36c)]);if(_0x33fb0c&&_0x52f76f(_0x33fb0c[_0x17ebfa(0x134)]())){this['_activeShapeId']=_0x371540['drawingId'],this[_0x17ebfa(0x102)]=_0x371540[_0x17ebfa(0x1e3)],this[_0x17ebfa(0x161)]=_0x371540[_0x17ebfa(0x26c)],this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x17ebfa(0x102)]=void 0x0,this[_0x17ebfa(0x161)]=void 0x0,this[_0x17ebfa(0x2d5)]();})),this[_0xad266c(0x2db)](this['_drawingManagerService']['update$'][_0xad266c(0x268)](_0x15afad=>{const _0x554cfb=_0xad266c;if(_0x15afad['length']===0x1){var _0xa0ba81;let _0x5cf4be=_0x15afad[0x0],_0x24417c=(_0xa0ba81=this[_0x554cfb(0x11c)][_0x554cfb(0x282)](_0x5cf4be))==null?void 0x0:_0xa0ba81[_0x554cfb(0x183)];_0x24417c===_0x190419[_0x554cfb(0x21d)]&&_0x5cf4be['drawingId']===this[_0x554cfb(0x362)]?(this[_0x554cfb(0x2d5)](),this[_0x554cfb(0x317)]()):!this[_0x554cfb(0x362)]&&_0x24417c===_0x190419['DRAWING_SHAPE']&&this[_0x554cfb(0x2a5)](_0x5cf4be[_0x554cfb(0x1e3)],_0x5cf4be['subUnitId'],_0x5cf4be['drawingId']);}})),this[_0xad266c(0x2db)](this[_0xad266c(0x11c)][_0xad266c(0x36d)]['subscribe'](_0x52e0b8=>{const _0x597038=_0xad266c;for(let _0x34ca76 of _0x52e0b8){let {drawingId:_0x305835}=_0x34ca76;if(this[_0x597038(0x362)]===_0x305835){this[_0x597038(0x308)]();return;}}}));}['_handleConnectedEndpointMove'](_0x141c7d,_0x502b71,_0x7d6a84,_0x4e91c4,_0x1636eb){const _0x5c65ad=_0x232df7;var _0x47456c;if(!this[_0x5c65ad(0x1d8)])return;let _0x53ab34=this[_0x5c65ad(0x20d)](_0x141c7d);if(!_0x53ab34)return;let _0x209715=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)]['worldPoint']:_0x502b71,_0x437abc=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)][_0x5c65ad(0x140)]:this[_0x5c65ad(0x2c0)](_0x53ab34['point'],_0x209715),_0x127905;if(this[_0x5c65ad(0x223)]){let _0x3070e4=this[_0x5c65ad(0x11c)]['getDrawingByParam']({'unitId':this[_0x5c65ad(0x223)]['unitId'],'subUnitId':this[_0x5c65ad(0x223)][_0x5c65ad(0x26c)],'drawingId':this[_0x5c65ad(0x223)][_0x5c65ad(0x275)]});if(_0x3070e4!=null&&_0x3070e4[_0x5c65ad(0x15f)]){let {left:_0x30427c=0x0,top:_0x44b249=0x0,width:_0x199efe=0x0,height:_0x2f6af7=0x0,angle:_0xa5a256}=_0x3070e4[_0x5c65ad(0x15f)];_0x127905=_0x109e70({'left':_0x30427c,'top':_0x44b249,'width':_0x199efe,'height':_0x2f6af7},_0xa5a256||0x0);}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};let _0x214267={'point':_0x209715,'angle':_0x437abc,'bounds':_0x127905},_0x19f3ea=_0x7d6a84?_0x214267:_0x53ab34,_0xdbe900=_0x7d6a84?_0x53ab34:_0x214267,_0x400fc0=this['_activeShapeModel'][_0x5c65ad(0x134)](),_0x23dd88=_0x201266(_0x19f3ea,_0xdbe900,_0x400fc0);_0x23dd88&&this[_0x5c65ad(0x1d8)]['updateLinePoints'](_0x23dd88);let _0x44e6ea=_0x3cbafa(_0x23dd88,_0x400fc0);_0x44e6ea[_0x5c65ad(0x130)]!==_0x400fc0&&this['_activeShapeModel'][_0x5c65ad(0x175)](_0x44e6ea[_0x5c65ad(0x130)]);for(let [_0x590c73,_0x4080b7]of Object['entries'](_0x44e6ea[_0x5c65ad(0x29d)]))this[_0x5c65ad(0x1d8)][_0x5c65ad(0x359)](_0x590c73,_0x4080b7);this[_0x5c65ad(0x1d8)]['updateContext']({'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)]}),_0x4e91c4[_0x5c65ad(0x234)]({'flipX':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x270)],'flipY':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x25e)],'left':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0xe4)],'top':_0x44e6ea[_0x5c65ad(0x214)]['top'],'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)],'angle':_0x44e6ea[_0x5c65ad(0x264)]}),_0x4e91c4[_0x5c65ad(0x390)](!0x0);let _0x2198d3=((_0x47456c=this['_currentConnectionTarget'])==null?void 0x0:_0x47456c[_0x5c65ad(0x1ba)])??_0x502b71;_0x1636eb[_0x5c65ad(0x234)]({'left':_0x2198d3['x']-_0x4c61a8['cxnPointRadius'],'top':_0x2198d3['y']-_0x4c61a8['cxnPointRadius']});}[_0x232df7(0x1f9)](_0x835cd,_0x4de425,_0x291070,_0x56cb48,_0x9eeda7){const _0x514d4c=_0x232df7;var _0xd33eb7,_0x3135b8;let _0x282137=((_0xd33eb7=this[_0x514d4c(0x223)])==null?void 0x0:_0xd33eb7[_0x514d4c(0x1ba)])??_0x835cd,_0x22559e=_0x5d44cb[_0x514d4c(0x247)](_0x4de425,_0x282137,_0x291070);_0x56cb48['transformByState']({'flipX':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x270)],'flipY':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x25e)],'left':_0x22559e[_0x514d4c(0x214)]['left'],'top':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x1b9)],'width':_0x22559e['worldRect'][_0x514d4c(0x324)],'height':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x39a)],'angle':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x140)]});let _0x575626=((_0x3135b8=this[_0x514d4c(0x223)])==null?void 0x0:_0x3135b8['worldPoint'])??_0x835cd;_0x9eeda7[_0x514d4c(0x234)]({'left':_0x575626['x']-_0x4c61a8['cxnPointRadius'],'top':_0x575626['y']-_0x4c61a8[_0x514d4c(0x215)]});}[_0x232df7(0x20d)](_0x1be3de){const _0x4dcb45=_0x232df7;if(!this[_0x4dcb45(0x102)]||!this['_subUnitId'])return null;let {shapeId:_0x460b7d,cxnIndex:_0x52811d}=_0x1be3de,_0x387aed=this[_0x4dcb45(0x3aa)]['getShapeModel'](this['_unitId'],this[_0x4dcb45(0x161)],_0x460b7d);if(!_0x387aed)return null;let _0x524e0c=this[_0x4dcb45(0x11c)][_0x4dcb45(0x282)]({'unitId':this['_unitId'],'subUnitId':this[_0x4dcb45(0x161)],'drawingId':_0x460b7d});if(!(_0x524e0c!=null&&_0x524e0c['transform']))return null;let {left:_0x415fb3=0x0,top:_0x27c8e2=0x0,width:_0x1bbf45=0x0,height:_0x1cc60d=0x0,flipX:_0x5b7e0f=!0x1,flipY:_0x54dc12=!0x1,angle:_0x4200d1}=_0x524e0c[_0x4dcb45(0x15f)];_0x387aed[_0x4dcb45(0x2bd)]({'width':_0x1bbf45,'height':_0x1cc60d});let _0x4dd5a6=_0x387aed[_0x4dcb45(0x26d)]()[_0x4dcb45(0x12b)](_0x2b4951=>_0x2b4951[_0x4dcb45(0x198)]===_0x52811d);if(!_0x4dd5a6)return null;let _0x3c2336=_0x5b7e0f?_0x1bbf45-_0x4dd5a6['x']:_0x4dd5a6['x'],_0x19b109=_0x54dc12?_0x1cc60d-_0x4dd5a6['y']:_0x4dd5a6['y'];if(_0x4200d1!==0x0&&_0x4200d1!=null){let _0xaa42a5=_0x4200d1*Math['PI']/0xb4,_0xf25474=Math['cos'](_0xaa42a5),_0x143eab=Math[_0x4dcb45(0x159)](_0xaa42a5),_0x13caef=_0x1bbf45/0x2,_0x4305b6=_0x1cc60d/0x2,_0xab298c=_0x3c2336-_0x13caef,_0x4d61b6=_0x19b109-_0x4305b6;_0x3c2336=_0x13caef+_0xab298c*_0xf25474-_0x4d61b6*_0x143eab,_0x19b109=_0x4305b6+_0xab298c*_0x143eab+_0x4d61b6*_0xf25474;}_0x3c2336+=_0x415fb3,_0x19b109+=_0x27c8e2;let _0x199624=_0x4dd5a6['ang']/0xea60;_0x5b7e0f&&(_0x199624=0xb4-_0x199624),_0x54dc12&&(_0x199624=-_0x199624),_0x199624+=_0x4200d1||0x0,_0x199624=(_0x199624%0x168+0x168)%0x168;let _0x3939d5=_0x109e70({'left':_0x415fb3,'top':_0x27c8e2,'width':_0x1bbf45,'height':_0x1cc60d},_0x4200d1||0x0);return{'point':{'x':_0x3c2336,'y':_0x19b109},'angle':_0x199624,'bounds':_0x3939d5};}[_0x232df7(0x2c0)](_0x48e88a,_0x4c9d29){const _0x4a5973=_0x232df7;let _0x534471=_0x4c9d29['x']-_0x48e88a['x'],_0x216fa0=_0x4c9d29['y']-_0x48e88a['y'];return Math[_0x4a5973(0x227)](_0x534471)>=Math[_0x4a5973(0x227)](_0x216fa0)?_0x534471>=0x0?0xb4:0x0:_0x216fa0>=0x0?0x10e:0x5a;}[_0x232df7(0x308)](){const _0x1edea7=_0x232df7;this['_activeShapeId']=void 0x0,this[_0x1edea7(0x102)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x1edea7(0x2d5)]();}[_0x232df7(0x296)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};ma=X([Y(0x1,_0x1b156e),Y(0x2,_0x422c1e),Y(0x3,_0x3deb35),Y(0x4,_0x304294),Y(0x5,_0x229e82(_0x5c2303)),Y(0x6,_0x229e82(Pr)),Y(0x7,_0x229e82(da))],ma);let ha=class extends _0x2bb0e8{constructor(_0x2ebb35,_0x36611a,_0x4f3d2b){const _0x5c332a=_0x232df7;super(),this[_0x5c332a(0x182)]=_0x2ebb35,this['_drawingManagerService']=_0x36611a,this['_shapeRenderController']=_0x4f3d2b,this[_0x5c332a(0x20f)]();}[_0x232df7(0x20f)](){const _0x38e484=_0x232df7;this[_0x38e484(0x2db)](this['_sheetPrintInterceptorService'][_0x38e484(0x142)]['intercept'](this[_0x38e484(0x182)][_0x38e484(0x142)][_0x38e484(0x1a3)]()[_0x38e484(0x27a)],{'handler':(_0x55abe4,_0x4a62e4,_0xed0019)=>{const _0xe498f0=_0x38e484;var _0xb41570;let {unitId:_0x432bdf,subUnitId:_0x4e8b8d,scene:_0x29d643,resourceCollector:_0x22c986}=_0x4a62e4,_0x35858c=(_0xb41570=this[_0xe498f0(0x11c)][_0xe498f0(0x287)](_0x432bdf))==null?void 0x0:_0xb41570[_0x4e8b8d];return _0x35858c==null||_0x35858c[_0xe498f0(0x174)][_0xe498f0(0x385)](_0x50f996=>{const _0x31b358=_0xe498f0;let _0xc1fbf=_0x35858c[_0x31b358(0x11a)][_0x50f996];_0xc1fbf[_0x31b358(0x183)]===_0x190419[_0x31b358(0x21d)]&&!_0xc1fbf[_0x31b358(0x1d0)]&&this[_0x31b358(0x353)]['renderDrawingShape'](_0xc1fbf,_0x29d643,{'resourceCollector':_0x22c986});}),_0xed0019(_0x55abe4);}}));}};ha=X([Y(0x0,_0x229e82(_0x3e6e4c)),Y(0x1,_0x3deb35),Y(0x2,_0x229e82(Z))],ha);let ga=class extends _0x2bb0e8{constructor(_0x4f816d,_0x18783c,_0x106fae){const _0x364d3d=_0x232df7;super(),this[_0x364d3d(0x232)]=_0x4f816d,this[_0x364d3d(0x184)]=_0x18783c,this[_0x364d3d(0x1a2)]=_0x106fae,this[_0x364d3d(0x29b)]();}[_0x232df7(0x29b)](){const _0xca8d16=_0x232df7;this[_0xca8d16(0x2db)](this['_commandService'][_0xca8d16(0xee)](_0x3f5646=>{const _0x4499db=_0xca8d16;let _0x4d9608,_0x32570c;if(_0x3f5646['id']===_0x143510['id']||_0x3f5646['id']===_0x37673b['id']||_0x3f5646['id']===_0xa22292['id']){let _0x38cbac=_0x3f5646[_0x4499db(0x1aa)];_0x4d9608=_0x38cbac[_0x4499db(0x1e3)],_0x32570c=_0x38cbac['subUnitId'];}_0x4d9608&&_0x32570c&&(this[_0x4499db(0x1a2)]['permissionCheckWithoutRange']({'workbookTypes':[_0x48f387],'worksheetTypes':[_0x459023]},_0x4d9608,_0x32570c)||this[_0x4499db(0x1a2)][_0x4499db(0x28a)](this[_0x4499db(0x184)]['t'](_0x4499db(0x387))));}));}};ga=X([Y(0x0,_0x229e82(_0x1b156e)),Y(0x1,_0x229e82(_0x16b0b7)),Y(0x2,_0x229e82(_0x2c9f0d))],ga);let _a=class{constructor(_0xbc1ac5){const _0x4c57da=_0x232df7;this[_0x4c57da(0x209)]=_0xbc1ac5;}['updateShapeFillImage'](_0x109481,_0xa5b7ad){const _0x2f396b=_0x232df7;let _0x20b6a9=this[_0x2f396b(0x209)]['getRenderUnitById'](_0x109481[_0x2f396b(0x1e3)]),_0x36d93b=_0x20b6a9==null?void 0x0:_0x20b6a9[_0x2f396b(0x381)];if(!_0x36d93b)return;let _0x4566f9=_0x3023e5(_0x109481),_0x1de6d6=_0x36d93b[_0x2f396b(0x3a9)](_0x4566f9);_0x1de6d6==null||_0x1de6d6['setFillImage'](_0xa5b7ad);}};_a=X([Y(0x0,_0x422c1e)],_a);let va=class extends _0x407af{constructor(_0x422c4b=Yi,_0xcb1a55,_0x142a8c,_0x3a2b76,_0x4f1f27){const _0x18e630=_0x232df7;super(),this[_0x18e630(0x2b5)]=_0x422c4b,this[_0x18e630(0x1e1)]=_0xcb1a55,this['_commandService']=_0x142a8c,this[_0x18e630(0x162)]=_0x3a2b76,this[_0x18e630(0x209)]=_0x4f1f27;let {..._0x567c89}=_0x32987f({},Yi,this['_config']);this[_0x18e630(0x162)][_0x18e630(0x103)](Ji,_0x567c89),this[_0x18e630(0x26a)]();}[_0x232df7(0x1b7)](){const _0x244572=_0x232df7;this['_injector']['add']([ta]),this[_0x244572(0x1e1)]['get'](ta),_0x365af4(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x1c9)](){const _0x1422b0=_0x232df7;_0x365af4(this[_0x1422b0(0x1e1)],[[da],[Pr],[fa]]),_0x3ece4a(this[_0x1422b0(0x1e1)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x1422b0(0x385)](_0x516bbe=>{const _0x26492e=_0x1422b0;this['disposeWithMe'](this[_0x26492e(0x209)][_0x26492e(0x3a8)](_0xe0c4a6[_0x26492e(0x277)],_0x516bbe));});}[_0x232df7(0x311)](){_0x3ece4a(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x126)](){const _0x5486fb=_0x232df7;this[_0x5486fb(0x1e1)][_0x5486fb(0x14a)](aa)[_0x5486fb(0x179)]();}['_initCommands'](){const _0x3f368f=_0x232df7;[Ir,K,Fr,qi][_0x3f368f(0x385)](_0x10e090=>this[_0x3f368f(0x2db)](this[_0x3f368f(0x232)][_0x3f368f(0x204)](_0x10e090)));}};q(va,_0x232df7(0xf1),_0xe0c4a6[_0x232df7(0x277)]),q(va,_0x232df7(0x18f),_0x232df7(0x312)),q(va,_0x232df7(0xfa),Gi),q(va,'version',Ki),va=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x212ef7,_0x1fa068,_0x281d56,_0x42ad3b,_0x6ff3b1),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],va);const ya={'type':_0x33172f[_0x232df7(0x2ab)],'id':_0x232df7(0x233),'handler'(){return!0x0;}};function ba(){const _0x185ff5=_0x232df7;let _0x5cf681=_0x3a3b93(_0x3deb35),_0x3010bf=_0xe01eb2(()=>_0x5cf681['focus$'],_0x5cf681[_0x185ff5(0x310)](),!0x1,[_0x5cf681]);return _0x3010bf[_0x185ff5(0x333)]===0x0?null:_0x386576(_0x185ff5(0x121),{'children':_0x61d32d('div',{'className':_0x185ff5(0x1c3),'children':[_0x386576(_0x4f1e4b,{'drawings':_0x3010bf,'hasCropper':!0x1}),_0x386576(_0x4ef3b5,{'drawings':_0x3010bf})]})});}function xa(_0xc4fcc9){let {unitId:_0x49a6af,subUnitId:_0x12c6fa,shapeId:_0xe37968}=_0xc4fcc9,_0x34046d=_0x3a3b93(_0x1b156e),_0x5f0b2e=_0x3a3b93(_a);return _0x386576(_0x1f5908,{..._0xc4fcc9,'positionEditor':_0x386576(ba,{}),'onUpdateShapeData':(_0x4d9155,_0x45ac06)=>{Dr(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0x4d9155,_0x45ac06);},'onUpdateLineShapeData':(_0xeeb462,_0x4f5083)=>{Or(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0xeeb462,_0x4f5083);},'onUpdateShapeFillImage':_0x4e9b5b=>{_0x5f0b2e['updateShapeFillImage']({'unitId':_0x49a6af,'subUnitId':_0x12c6fa,'drawingId':_0xe37968},_0x4e9b5b);}});}function Sa(_0x590e10){const _0x32d31e=_0x232df7;let _0x378df6=_0x3a3b93(_0xee6e88),_0x56d566=_0xe01eb2(()=>_0x378df6[_0x32d31e(0x110)],_0x378df6[_0x32d31e(0x245)](),!0x1,[_0x378df6]),_0x10d8e8=_0x590e10[_0x32d31e(0x1e6)]['extraProps'];return!_0x10d8e8||!_0x56d566?null:_0x386576(Ca,{..._0x10d8e8,'canvasElement':_0x590e10['popup'][_0x32d31e(0x20a)]});}function Ca(_0x39898a){const _0x268bd3=_0x232df7;let _0x2ddd8e=_0x3a3b93(_0x1b156e),_0x93bafe=_0x3a3b93(_0x5c2303),{unitId:_0x310402,subUnitId:_0x4919a4,drawingId:_0x1fd734,drawingType:_0x291fd2,shapeType:_0x5a99a9}=_0x39898a,[_0x2830d2,_0x23be4e]=_0x2c04bf(_0x39898a['shapeData']),_0xcba01e=_0x53eb09(()=>_0x37bae9(_0x2830d2),[_0x2830d2]),_0x2e1301=_0x53eb09(()=>_0x1f9271(_0x2830d2),[_0x2830d2]);_0x3ac889(()=>{const _0x2910c9=_0x2028;let _0x551daf=_0x2ddd8e[_0x2910c9(0x224)](_0x177c32=>{const _0x33825d=_0x2910c9;if(_0x177c32['id']!==_0x4af43a['id'])return;let _0x3825f5=_0x93bafe[_0x33825d(0x329)](_0x310402,_0x4919a4,_0x1fd734);_0x3825f5&&_0x23be4e(_0x3825f5);});return()=>_0x551daf[_0x2910c9(0x296)]();},[_0x2ddd8e,_0x1fd734,_0x93bafe,_0x4919a4,_0x310402]);let _0x4fe9ce=_0xd82528=>{_0x23be4e(_0x3afc72=>({..._0x3afc72,..._0xd82528}));},_0xcfb7a=_0xb5b02e=>{const _0x5ee07e=_0x2028;let _0x2c4549=_0x2a4875(_0x2830d2,_0xb5b02e);Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'shapeText':_0x2830d2[_0x5ee07e(0x396)]}},_0x2c4549),_0x4fe9ce(_0x2c4549);},_0x4b999e=_0x5433fa({'hostType':_0xe0c4a6[_0x268bd3(0x277)],'unitId':_0x310402,'subUnitId':_0x4919a4,'shapeId':_0x1fd734,'shapeData':_0x2830d2,'onUpdateBinding':_0x44f945=>{const _0x1eff68=_0x268bd3;let _0x3027d5={'formulaBinding':_0x44f945};Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'formulaBinding':_0x2830d2[_0x1eff68(0x2da)]}},_0x3027d5),_0x4fe9ce(_0x3027d5);}});return _0x61d32d(_0xe1ac43,{'children':[_0x386576(_0xaf994a,{'canvasElement':_0x39898a[_0x268bd3(0x20a)],'shapeData':_0x2830d2,'shapeType':_0x5a99a9,'textStyle':{'ff':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0x1bb)],'fs':_0x4c61a8['shapeText'][_0x268bd3(0x207)],'cl':{'rgb':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0xe9)]},..._0xcba01e},'textModel':_0x2e1301?{'ha':_0x2e1301['ha']??_0x4dc457[_0x268bd3(0xf0)],'va':_0x2e1301['va']??_0x2cccb9[_0x268bd3(0x115)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c61a8[_0x268bd3(0x33e)],'defaultGradientEndColor':_0x4c61a8[_0x268bd3(0x37c)],'defaultStrokeColor':_0x4c61a8['stroke'],'extensionGroups':_0x4b999e['extensionGroups'],'floatingObjectToolbarPosition':_0x28d51f[_0x268bd3(0x13c)],'onUpdateShapeData':(_0x7ea891,_0x3590f0)=>{Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,_0x7ea891,_0x3590f0),_0x3590f0&&_0x4fe9ce(_0x3590f0);},'onUpdateText':_0xcfb7a,'onOpenPanel':()=>{const _0x4718c7=_0x268bd3;_0x2ddd8e[_0x4718c7(0x286)](Wr['id'],{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734});},'onDelete':()=>{const _0x464b04=_0x268bd3;_0x2ddd8e[_0x464b04(0x286)](_0x29b5e1['id'],{'unitId':_0x310402,'drawings':[{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734,'drawingType':_0x291fd2}]});}}),_0x4b999e[_0x268bd3(0x284)]]});}function wa(_0x1dac17){const _0x54ce7b=_0x232df7;return!!_0x1dac17&&'axisAlignSheetTransform'in _0x1dac17&&_0x54ce7b(0x2a0)in _0x1dac17;}const Ta=_0x979643(()=>{const _0x356e93=_0x232df7;let _0x722863=_0x3a3b93($),_0x5838ea=_0x3a3b93(_0x5c2303),_0x4c8ea4=_0x3a3b93(_0x3deb35),_0x5561c7=_0x3a3b93(_0x1b156e),_0x325528=_0x3a3b93(_0x49cd39),_0x40cb97=_0x3a3b93(_0x422c1e),_0x48204b=_0x53eb09(()=>({'getShapeModel':(_0x116505,_0x3950f5,_0x321338)=>_0x5838ea[_0x356e93(0x1cf)](_0x116505,_0x3950f5,_0x321338),'getShapeData':(_0x87104d,_0x1b027b,_0x445c0b)=>_0x5838ea['getShapeDataById'](_0x87104d,_0x1b027b,_0x445c0b),'getDrawingTransform':(_0x9d8e7b,_0x2aea8f,_0xa23cc0)=>{const _0x357739=_0x356e93;let _0x8776c0=_0x4c8ea4[_0x357739(0x282)]({'unitId':_0x9d8e7b,'subUnitId':_0x2aea8f,'drawingId':_0xa23cc0});return _0x8776c0==null?void 0x0:_0x8776c0[_0x357739(0x15f)];},'updateShapeText':({unitId:_0x25632c,subUnitId:_0x3aa7ec,shapeId:_0x534d66,shapeText:_0xef3e27,oldShapeText:_0x548d64,hostSize:_0x371173})=>{const _0x2c0ed3=_0x356e93;_0x325528[_0x2c0ed3(0x351)](_0x25632c,()=>{const _0x2525b5=_0x2c0ed3;var _0x19bb4c;let _0x233f97=_0x5561c7[_0x2525b5(0x325)](K['id'],{'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'shapeId':_0x534d66,'shapeData':{'shapeText':_0xef3e27},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x548d64}}});if(!_0x233f97||!_0x371173)return _0x233f97;let _0x192b00=_0x4c8ea4[_0x2525b5(0x282)]({'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'drawingId':_0x534d66}),_0xfc28a4=_0x192b00==null?void 0x0:_0x192b00[_0x2525b5(0x15f)];if(!wa(_0x192b00)||!_0xfc28a4)return!0x1;let _0x395577={..._0xfc28a4,'width':_0x371173['width'],'height':_0x371173[_0x2525b5(0x39a)]},_0x3acdbd=(_0x19bb4c=_0x40cb97[_0x2525b5(0x124)](_0x25632c))==null||(_0x19bb4c=_0x19bb4c['with'](_0x54a66d)[_0x2525b5(0x33f)](_0x3aa7ec))==null?void 0x0:_0x19bb4c[_0x2525b5(0x235)];return _0x5561c7[_0x2525b5(0x325)](_0x47d60a['id'],{'unitId':_0x25632c,'drawings':[{..._0x192b00,'transform':_0x395577,'sheetTransform':_0x3acdbd?_0x1f42db(_0x395577,_0x3acdbd)??_0x192b00['sheetTransform']:_0x192b00['sheetTransform'],'axisAlignSheetTransform':_0x3acdbd?_0x544983(_0x395577,_0x3acdbd)??_0x192b00[_0x2525b5(0x1ac)]:_0x192b00['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x24c824,subUnitId:_0x18904b,shapeId:_0x21323b,width:_0x1adf7a,height:_0x406749})=>{const _0x1700b8=_0x356e93;var _0x5b6d24;let _0x248113=_0x4c8ea4[_0x1700b8(0x282)]({'unitId':_0x24c824,'subUnitId':_0x18904b,'drawingId':_0x21323b}),_0x1c19c3=_0x248113==null?void 0x0:_0x248113[_0x1700b8(0x15f)];if(!wa(_0x248113)||!_0x1c19c3)return;let _0x4bfef9={..._0x1c19c3,'width':_0x1adf7a,'height':_0x406749},_0xdc9538=(_0x5b6d24=_0x40cb97[_0x1700b8(0x124)](_0x24c824))==null||(_0x5b6d24=_0x5b6d24[_0x1700b8(0x18c)](_0x54a66d)[_0x1700b8(0x33f)](_0x18904b))==null?void 0x0:_0x5b6d24['skeleton'],_0x5a8c8c=_0xdc9538?_0x1f42db(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x2a0)]:_0x248113[_0x1700b8(0x2a0)],_0x44f338=_0xdc9538?_0x544983(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x1ac)]:_0x248113['axisAlignSheetTransform'];_0x5561c7[_0x1700b8(0x286)](_0x47d60a['id'],{'unitId':_0x24c824,'drawings':[{..._0x248113,'transform':_0x4bfef9,'sheetTransform':_0x5a8c8c,'axisAlignSheetTransform':_0x44f338}]});},'allowHostSizeShrink':({unitId:_0x319934,subUnitId:_0x5b752f,shapeId:_0x3bad98})=>_0x35f3c5(_0x5838ea[_0x356e93(0x329)](_0x319934,_0x5b752f,_0x3bad98)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5561c7,_0x4c8ea4,_0x40cb97,_0x5838ea,_0x325528]),_0x1f3159=_0x53eb09(()=>({'viewportKeys':{'main':_0x1e57e3[_0x356e93(0x2ef)],'leftTop':_0x1e57e3['VIEW_MAIN_LEFT_TOP'],'top':_0x1e57e3['VIEW_MAIN_TOP'],'left':_0x1e57e3['VIEW_MAIN_LEFT']},'getSkeleton':(_0x474fb1,_0x8b72ef)=>{const _0x6c66f2=_0x356e93;var _0x309ed5;return((_0x309ed5=_0x474fb1[_0x6c66f2(0x18c)](_0x54a66d)[_0x6c66f2(0x33f)](_0x8b72ef[_0x6c66f2(0x26c)]))==null?void 0x0:_0x309ed5[_0x6c66f2(0x235)])??null;}}),[]);return _0x386576(_0x3977ad,{'adapter':_0x48204b,'editingService':_0x722863,'editorUnitId':Vr,'positionOptions':_0x1f3159});});let Ea=class extends _0x2bb0e8{constructor(_0x2b4ff8,_0x24fc71){const _0x2a8f64=_0x232df7;super(),this[_0x2a8f64(0x2ae)]=_0x2b4ff8,this[_0x2a8f64(0x358)]=_0x24fc71,this[_0x2a8f64(0x319)](),this[_0x2a8f64(0x145)]();}[_0x232df7(0x319)](){const _0x4c576e=_0x232df7;this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ea))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'ObjectLayersIcon':_0x562db7})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ab))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x3c3c9d})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x3a0))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'FlipVerticalIcon':_0x134503})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x337))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'BottomIcon':_0x7cbde6})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1d5))||this[_0x4c576e(0x2db)](this['_iconManager'][_0x4c576e(0x114)]({'MoveDownIcon':_0x1cd4bd})),this['_iconManager']['has'](_0x4c576e(0x13b))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'MoveUpIcon':_0x5818fa})),this[_0x4c576e(0x358)][_0x4c576e(0x104)]('ShapeFormatSettingIcon')||this[_0x4c576e(0x2db)](this[_0x4c576e(0x358)]['register']({'ShapeFormatSettingIcon':_0x4a1cd8})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x2de))||this['disposeWithMe'](this[_0x4c576e(0x358)][_0x4c576e(0x114)]({'TopmostIcon':_0xc502f4}));}[_0x232df7(0x145)](){const _0x3f8ecf=_0x232df7;this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Lr,xa)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Rr,$i)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Jr,ei)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Yr,Zr)),this['_componentManager'][_0x3f8ecf(0x2f3)](_0x48d256)||this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](_0x48d256,$r)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](zr,Sa)),this['disposeWithMe'](this['_componentManager']['register'](di,hi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](ui,gi)),this[_0x3f8ecf(0x2db)](this['_componentManager'][_0x3f8ecf(0x114)](fi,_i)),this['disposeWithMe'](this['_componentManager'][_0x3f8ecf(0x114)](pi,vi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Hr,_0x5dc698)),this[_0x3f8ecf(0x2db)](this['_componentManager']['register'](_0x3f8ecf(0x2bb),Ta));}};Ea=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],Ea);let Da=class extends _0x2bb0e8{constructor(_0x1e5d2e,_0x14289c,_0x34852a,_0x260f9e,_0x5a7b31,_0x485783,_0x2e3143,_0x4bdfa7,_0x5bedaa){const _0x33639f=_0x232df7;super();let _0x80e973=_0x5628ee=>{const _0xc6ea2c=_0x2028;var _0x21cbe5,_0x4d05d2;return(((_0x21cbe5=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x48f387(_0x5628ee['unitId'])['id']))==null?void 0x0:_0x21cbe5[_0xc6ea2c(0x30f)])??!0x0)&&(((_0x4d05d2=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x459023(_0x5628ee[_0xc6ea2c(0x1e3)],_0x5628ee[_0xc6ea2c(0x26c)])['id']))==null?void 0x0:_0x4d05d2[_0xc6ea2c(0x30f)])??!0x0);},_0x5218d0=_0x9c6e10=>_0x9c6e10['shapeId']&&_0x80e973(_0x9c6e10)?_0x34852a[_0x33639f(0x329)](_0x9c6e10[_0x33639f(0x1e3)],_0x9c6e10[_0x33639f(0x26c)],_0x9c6e10['shapeId'])??null:null,_0x2c257c=()=>{const _0x5686ed=_0x33639f;let _0x539364=_0x5a7b31[_0x5686ed(0x310)](),_0x18d401=_0x539364['length']===0x1?_0x539364[0x0]:null;return(_0x18d401==null?void 0x0:_0x18d401['drawingType'])===_0x190419[_0x5686ed(0x21d)]&&_0x18d401[_0x5686ed(0x1e3)]===_0x1e5d2e[_0x5686ed(0x1e3)]?{'unitId':_0x18d401[_0x5686ed(0x1e3)],'subUnitId':_0x18d401[_0x5686ed(0x26c)],'shapeId':_0x18d401[_0x5686ed(0x36c)]}:null;};this['disposeWithMe'](_0xf449a5(_0x1e5d2e,_0x14289c,{'changes$':_0x6568cf(_0x5a7b31[_0x33639f(0x19a)],_0x260f9e[_0x33639f(0x187)],_0x4bdfa7[_0x33639f(0x25a)]),'isActive':()=>{const _0x11954d=_0x33639f;var _0x45cddf;return((_0x45cddf=_0x485783[_0x11954d(0x2ea)]())==null?void 0x0:_0x45cddf[_0x11954d(0x3a3)]())===_0x1e5d2e['unitId']&&!_0x2e3143[_0x11954d(0x39b)](_0x29a73c)&&_0x5a7b31[_0x11954d(0x310)]()['some'](_0x48dc0f=>_0x48dc0f[_0x11954d(0x1e3)]===_0x1e5d2e[_0x11954d(0x1e3)]);},'getSelectedTarget':_0x2c257c,'getSource':()=>{let _0x1e7b09=_0x2c257c();return _0x1e7b09?_0x5218d0(_0x1e7b09):null;},'getTarget':_0x2c7040=>{const _0x336826=_0x33639f;let _0x147ff8=_0x1e5d2e[_0x336826(0x381)]['pick'](new _0x17a8a4(_0x2c7040['offsetX'],_0x2c7040[_0x336826(0x1d6)]));if(!(_0x147ff8 instanceof J))return null;let _0x5b2535={'unitId':_0x1e5d2e['unitId'],'subUnitId':_0x147ff8[_0x336826(0x26c)],'shapeId':_0x147ff8[_0x336826(0x275)]};return _0x80e973(_0x5b2535)?_0x5b2535:null;},'getShape':_0x5218d0,'update':(_0x2a49d4,_0x3196cb,_0x46277d)=>_0x5bedaa[_0x33639f(0x286)](K['id'],{..._0x2a49d4,'shapeData':_0x46277d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3196cb}})}));}};Da=X([Y(0x1,_0x229e82(_0x37b7ed)),Y(0x2,_0x229e82(_0x5c2303)),Y(0x3,_0x229e82($)),Y(0x4,_0x3deb35),Y(0x5,_0x304294),Y(0x6,_0x49d586),Y(0x7,_0x300477),Y(0x8,_0x1b156e)],Da);const Oa=_0x232df7(0x332);let ka=class extends _0x2bb0e8{constructor(_0x1245c1,_0x32cf59,_0x4711a4,_0x5c8957,_0x4dda52,_0x25431a){const _0x1d371a=_0x232df7;super(),this[_0x1d371a(0x220)]=_0x1245c1,this['_ribbonService']=_0x32cf59,this[_0x1d371a(0x11c)]=_0x4711a4,this['_univerInstanceService']=_0x5c8957,this[_0x1d371a(0x209)]=_0x4dda52,this['_shapeFloatingToolbarService']=_0x25431a,q(this,'_visible',!0x1),this['_menuManagerService'][_0x1d371a(0x36a)](Hi),this[_0x1d371a(0x2db)](_0x169987(this[_0x1d371a(0x11c)][_0x1d371a(0x19a)][_0x1d371a(0x268)](()=>this[_0x1d371a(0x2b8)]()))),this['_update']();}[_0x232df7(0x296)](){const _0xf2d82e=_0x232df7;this[_0xf2d82e(0x2ce)][_0xf2d82e(0x138)](!0x1,Oa),this[_0xf2d82e(0x269)](),super[_0xf2d82e(0x296)]();}['_update'](){const _0x50e049=_0x232df7;var _0xdcdd84;let _0x3df1b7=this[_0x50e049(0x11c)][_0x50e049(0x310)](),_0x9348ca=_0x3df1b7['length']===0x1?_0x3df1b7[0x0]:void 0x0;if((_0x9348ca==null?void 0x0:_0x9348ca[_0x50e049(0x183)])!==_0x190419[_0x50e049(0x21d)]||this[_0x50e049(0x2d4)]['getUnitType'](_0x9348ca[_0x50e049(0x1e3)])!==_0xe0c4a6[_0x50e049(0x277)]){this[_0x50e049(0x2ce)][_0x50e049(0x138)](!0x1,Oa),this[_0x50e049(0x269)]();return;}let _0x2d0c1a=(_0xdcdd84=this[_0x50e049(0x209)][_0x50e049(0x124)](_0x9348ca[_0x50e049(0x1e3)]))==null?void 0x0:_0xdcdd84['engine']['getCanvasElement'](),_0x26c0d3=_0x2a5096(_0x2d0c1a)===_0x50e049(0x211);this[_0x50e049(0x2ce)][_0x50e049(0x138)](_0x26c0d3,Oa),_0x26c0d3?this[_0x50e049(0x269)]():this[_0x50e049(0x327)]||(this[_0x50e049(0x327)]=!0x0,this['_ribbonService'][_0x50e049(0x395)](Br,{'activate':!0x0}));}['_hide'](){const _0x3d350f=_0x232df7;this[_0x3d350f(0x327)]&&(this[_0x3d350f(0x327)]=!0x1,this[_0x3d350f(0x1d4)][_0x3d350f(0x2d2)](Br),this['_ribbonService'][_0x3d350f(0x242)]([]));}};ka=X([Y(0x0,_0x4cc398),Y(0x1,_0x2fcf59),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x422c1e),Y(0x5,_0x229e82(_0xee6e88))],ka);let Aa=class extends _0x553e20{constructor(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2){super(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x229e82(_0x25b5fd)),Y(0x2,_0x229e82(_0x9982b4)),Y(0x3,_0x229e82(_0x5f1788)),Y(0x4,_0x1b156e),Y(0x5,_0x229e82(_0x3fd001)),Y(0x6,_0x229e82(_0x258cdf)),Y(0x7,_0x229e82(_0x2dfb69)),Y(0x8,_0x229e82(_0x312210)),Y(0x9,_0x229e82($))],Aa);let ja=class extends _0x1e07e2{constructor(_0x28d5a3,_0x59ad1d,_0x570d79,_0x35a569,_0x4a578e){const _0x9991c9=_0x232df7;super(_0x28d5a3,_0x59ad1d,{'editing$':_0x570d79[_0x9991c9(0x187)],'resolve':_0x51da98=>{const _0x30de6f=_0x9991c9;var _0x2b45bd,_0x4a99f3,_0x3dc936;let _0x2f25ef=new _0x17a8a4(_0x51da98[_0x30de6f(0x26f)],_0x51da98[_0x30de6f(0x1d6)]),_0x39f15a=((_0x2b45bd=_0x28d5a3[_0x30de6f(0x381)][_0x30de6f(0x1d3)](_0x2f25ef))==null?void 0x0:_0x2b45bd[_0x30de6f(0x257)](_0x2f25ef))??_0x2f25ef,_0x4eae45=_0x33a154(_0x28d5a3['scene'][_0x30de6f(0x10a)](_0x2f25ef)??null,_0x39f15a);if(!(_0x4eae45 instanceof J))return null;let _0x58a2b7=_0x4eae45[_0x30de6f(0x1c1)](_0x39f15a);if(!_0x58a2b7)return null;let _0x66bb9f=_0x4eae45,_0xceab={'componentKey':_0x5c9174[_0x30de6f(0x216)],'direction':_0x30de6f(0x20c),'offset':[0x0,0xa],'onClickOutside':()=>_0x59ad1d[_0x30de6f(0x35f)]()};return{'object':_0x4eae45,'info':{..._0x58a2b7,'unitId':_0x4eae45[_0x30de6f(0x1e3)],'subUnitId':_0x4eae45[_0x30de6f(0x26c)],'shapeKey':_0x4eae45[_0x30de6f(0x283)],'readonly':!0x0,'copyable':((_0x4a99f3=_0x4a578e[_0x30de6f(0x31b)](new _0x429dc6(_0x4eae45[_0x30de6f(0x1e3)])['id']))==null?void 0x0:_0x4a99f3[_0x30de6f(0x30f)])!==!0x1&&((_0x3dc936=_0x4a578e['getPermissionPoint'](new _0x102e28(_0x4eae45[_0x30de6f(0x1e3)],_0x4eae45[_0x30de6f(0x26c)])['id']))==null?void 0x0:_0x3dc936['value'])!==!0x1},'attachPopup':()=>_0x35a569['attachPopupToObject'](_0x66bb9f,_0xceab)};}}),this[_0x9991c9(0x2db)](_0x28d5a3['unit'][_0x9991c9(0xe1)]['subscribe'](()=>this[_0x9991c9(0x2b3)]()));}};ja=X([Y(0x1,_0x229e82(_0x258cdf)),Y(0x2,_0x229e82($)),Y(0x3,_0x229e82(_0x5969c8)),Y(0x4,_0x300477)],ja);let Ma=class extends _0x2bb0e8{constructor(_0x40611b,_0xced429,_0x5f23bd,_0x27542a,_0x45b825,_0x1e5f9c,_0x595a8,_0x2ea61b,_0x3f590a,_0x29eda5,_0x296905){const _0x481aef=_0x232df7;super(),this[_0x481aef(0x2d4)]=_0x40611b,this[_0x481aef(0x210)]=_0xced429,this[_0x481aef(0x220)]=_0x5f23bd,this[_0x481aef(0x3aa)]=_0x27542a,this[_0x481aef(0x184)]=_0x45b825,this['_commandService']=_0x1e5f9c,this[_0x481aef(0x11c)]=_0x595a8,this['_sheetCanvasPopManagerService']=_0x2ea61b,this[_0x481aef(0x2b2)]=_0x3f590a,this[_0x481aef(0x209)]=_0x29eda5,this[_0x481aef(0x101)]=_0x296905,q(this,_0x481aef(0x15a),null),q(this,_0x481aef(0x18a),null),q(this,_0x481aef(0x129),!0x1),q(this,_0x481aef(0x2d3),0x0),q(this,_0x481aef(0x128),null),q(this,_0x481aef(0x21e),[]),this[_0x481aef(0x208)](),this[_0x481aef(0x2db)](this[_0x481aef(0x2d4)][_0x481aef(0x2d0)](_0xe0c4a6[_0x481aef(0x277)])[_0x481aef(0x268)](_0x90cea6=>{const _0x222721=_0x481aef;if(!_0x90cea6){var _0x47773a;(_0x47773a=this[_0x222721(0x15a)])==null||_0x47773a[_0x222721(0x296)]();}})),this[_0x481aef(0x217)](),this[_0x481aef(0x179)](),this['disposeWithMe'](this[_0x481aef(0x101)][_0x481aef(0x187)][_0x481aef(0x268)](_0x180a9f=>{const _0x7016a4=_0x481aef;_0x180a9f&&this[_0x7016a4(0x2ec)]();}));}[_0x232df7(0x208)](){const _0x379544=_0x232df7;this[_0x379544(0x220)][_0x379544(0x36a)](Wi);}[_0x232df7(0x179)](){const _0x241b52=_0x232df7;this[_0x241b52(0x128)]||=this['disposeWithMe'](_0xd29261(this[_0x241b52(0x209)],_0xe0c4a6[_0x241b52(0x277)],_0x2a4e8b=>this['_popupMenuListener'](_0x2a4e8b)));}[_0x232df7(0xf8)](_0x12a882,_0x1ee493,_0x44b997){const _0x5bc447=_0x232df7;let _0x35a17f=this[_0x5bc447(0x3aa)][_0x5bc447(0x280)](_0x12a882,_0x1ee493,_0x44b997),_0x754682=this[_0x5bc447(0x3aa)][_0x5bc447(0x329)](_0x12a882,_0x1ee493,_0x44b997);return _0x35a17f!==void 0x0&&_0x754682!==void 0x0?{'shapeData':_0x754682,'shapeId':_0x44b997,'shapeType':_0x35a17f,'unitId':_0x12a882,'subUnitId':_0x1ee493,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x232df7(0x2ec)](){const _0x59c0ce=_0x232df7;this[_0x59c0ce(0x21e)][_0x59c0ce(0x385)](_0x20bd56=>_0x20bd56[_0x59c0ce(0x296)]()),this['_disposePopups'][_0x59c0ce(0x333)]=0x0;}[_0x232df7(0x228)](_0x20f1c0){const _0x19e41d=_0x232df7;let _0x58041e=new _0x498b31();return _0x58041e[_0x19e41d(0x19c)](_0x20f1c0['createControl$'][_0x19e41d(0x268)](()=>{const _0x43e22a=_0x19e41d;let _0x44ae8b=_0x20f1c0[_0x43e22a(0x2ca)]();if(this[_0x43e22a(0x2ec)](),this['_isOpenedShapeEditPanel']||_0x44ae8b[_0x43e22a(0x292)]>0x1)return;let _0x589f7e=_0x44ae8b[_0x43e22a(0x212)]()[_0x43e22a(0x360)]()['value'];if(!_0x589f7e)return;let _0x39a9d5=this[_0x43e22a(0x11c)]['getDrawingOKey'](_0x589f7e[_0x43e22a(0x283)]);if(!_0x39a9d5||_0x39a9d5[_0x43e22a(0x183)]!==_0x190419['DRAWING_SHAPE'])return;let {unitId:_0x2df96d,subUnitId:_0x57418b,drawingId:_0x51d64d,drawingType:_0x22e219}=_0x39a9d5,_0x1771e6=this[_0x43e22a(0xf8)](_0x2df96d,_0x57418b,_0x51d64d);if(!_0x1771e6)return;this[_0x43e22a(0x2b2)][_0x43e22a(0x152)](_0x20a63c,!0x0);let _0x4cbd0e=this[_0x43e22a(0x209)][_0x43e22a(0x124)](_0x2df96d),_0x42a5bd=((_0x4cbd0e==null?void 0x0:_0x4cbd0e[_0x43e22a(0x24f)])===!0x1?_0x4cbd0e[_0x43e22a(0x18c)](_0x5969c8):this[_0x43e22a(0x1a1)])[_0x43e22a(0x206)](_0x589f7e,{'componentKey':zr,'direction':_0x43e22a(0x31c),'offset':[0x0,_0x54a031],'extraProps':{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d,'drawingType':_0x22e219,'shapeType':_0x1771e6[_0x43e22a(0x15b)],'shapeData':_0x1771e6[_0x43e22a(0x1b6)]}});this[_0x43e22a(0x21e)]['push'](this[_0x43e22a(0x2db)](_0x42a5bd)),this['_drawingManagerService'][_0x43e22a(0x310)]()['find'](_0x404750=>_0x404750[_0x43e22a(0x1e3)]===_0x2df96d&&_0x404750[_0x43e22a(0x26c)]===_0x57418b&&_0x404750[_0x43e22a(0x36c)]===_0x51d64d)||this[_0x43e22a(0x11c)][_0x43e22a(0xf5)]([{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d}]);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x1cd)]['subscribe'](()=>{const _0x36441c=_0x19e41d;this[_0x36441c(0x2ec)](),this[_0x36441c(0x2b2)][_0x36441c(0x152)](_0x20a63c,!0x1),this[_0x36441c(0x11c)][_0x36441c(0xf5)](null);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x2fd)][_0x19e41d(0x268)](()=>{this['_clearPopups']();})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0['changeStart$']['subscribe'](()=>{this['_clearPopups']();})),_0x169987(()=>{const _0x209d91=_0x19e41d;_0x58041e['dispose'](),this[_0x209d91(0x2ec)]();});}['_registerOperations'](){const _0x14e33d=_0x232df7;this['disposeWithMe'](this[_0x14e33d(0x232)][_0x14e33d(0x224)](_0x5670ea=>{const _0x3c00b7=_0x14e33d;if(_0x5670ea['id']===Wr['id']){let {unitId:_0x53538b,subUnitId:_0x252cef,drawingId:_0x17b4e5}=_0x5670ea[_0x3c00b7(0x1aa)];this[_0x3c00b7(0x2d3)]+=0x1,this[_0x3c00b7(0x18a)]=this[_0x3c00b7(0xf8)](_0x53538b,_0x252cef,_0x17b4e5),this[_0x3c00b7(0x2ec)](),this[_0x3c00b7(0x36b)]();}if(_0x5670ea['id']===ya['id']&&(this['_activeShapeInfo']=null,this[_0x3c00b7(0x188)]()),_0x5670ea['id']===_0x4af43a['id']){let {unitId:_0x5c6779,subUnitId:_0x5dbecf,shapeId:_0x3a9de3}=_0x5670ea[_0x3c00b7(0x1aa)];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0x3c00b7(0x275)]===_0x3a9de3){let _0x3dfa40=this[_0x3c00b7(0xf8)](_0x5c6779,_0x5dbecf,_0x3a9de3);_0x3dfa40&&(this['_shapeEditPanelVersion']+=0x1,_0x3dfa40['version']=this[_0x3c00b7(0x2d3)],this[_0x3c00b7(0x18a)]=_0x3dfa40,this[_0x3c00b7(0x129)]&&this[_0x3c00b7(0x36b)]());}}})),this['disposeWithMe'](this[_0x14e33d(0x11c)][_0x14e33d(0x19a)][_0x14e33d(0x268)](_0x18a381=>{const _0x397641=_0x14e33d;if(this[_0x397641(0x129)]===!0x1)return;if(_0x18a381[_0x397641(0x333)]===0x0){this[_0x397641(0x18a)]=null,this[_0x397641(0x188)]();return;}if(_0x18a381[_0x397641(0x333)]===0x1&&_0x18a381[0x0][_0x397641(0x183)]===_0x190419[_0x397641(0x21d)]&&(this[_0x397641(0x2d3)]+=0x1,this['_activeShapeInfo']=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)])){this[_0x397641(0x36b)]();return;}let _0x57c6f6=_0x18a381[_0x397641(0x34b)](_0x4a764a=>_0x4a764a[_0x397641(0x183)]===_0x190419['DRAWING_SHAPE']);if(_0x18a381[_0x397641(0x333)]>0x1&&_0x57c6f6[_0x397641(0x333)]===_0x18a381[_0x397641(0x333)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0][_0x397641(0x26c)],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x36b)]();return;}}else{if(this[_0x397641(0x2d3)]+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x18a)][_0x397641(0x31d)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x232df7(0x36b)](){const _0x37a33e=_0x232df7;this['_activeShapeInfo']&&(this[_0x37a33e(0x15a)]=this[_0x37a33e(0x210)][_0x37a33e(0x22b)]({'id':Lr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Lr,...this['_activeShapeInfo']},'onClose':()=>{const _0xffced3=_0x37a33e;this[_0xffced3(0x11c)][_0xffced3(0xf5)](null),this[_0xffced3(0x2b2)]['setContextValue'](_0x20a63c,!0x1),this[_0xffced3(0x15a)]=null;}}),this[_0x37a33e(0x129)]=!0x0);}['_closeShapeEditPanel'](){const _0xd30177=_0x232df7;this[_0xd30177(0x129)]=!0x1,this['_sidebarService']['close'](Lr),this[_0xd30177(0x15a)]=null,this['_contextService']['setContextValue'](_0x20a63c,!0x1),this[_0xd30177(0x11c)][_0xd30177(0xf5)](null);}};Ma=X([Y(0x0,_0x304294),Y(0x1,_0x229e82(_0x5c788d)),Y(0x2,_0x4cc398),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x16b0b7)),Y(0x5,_0x1b156e),Y(0x6,_0x3deb35),Y(0x7,_0x229e82(_0x5969c8)),Y(0x8,_0x49d586),Y(0x9,_0x422c1e),Y(0xa,_0x229e82($))],Ma);let Na=class extends _0x407af{constructor(_0x54b4b3=Yi,_0x14aaad,_0x34a892,_0x3f3603,_0x47cd19){const _0x57a90c=_0x232df7;super(),this['_config']=_0x54b4b3,this['_injector']=_0x14aaad,this['_commandService']=_0x34a892,this['_configService']=_0x3f3603,this[_0x57a90c(0x209)]=_0x47cd19;let {..._0x23b3ed}=_0x32987f({},Yi,this[_0x57a90c(0x2b5)]);this['_configService'][_0x57a90c(0x103)](Ji,_0x23b3ed),this[_0x57a90c(0x26a)]();}[_0x232df7(0x311)](){const _0x5715b9=_0x232df7;this[_0x5715b9(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5715b9(0x2ed)],[Aa]),_0x3ece4a(this[_0x5715b9(0x1e1)],[[Ma],[ca],[Z],[ha]]);}[_0x232df7(0x126)](){const _0x1bf48c=_0x232df7;this[_0x1bf48c(0x1e1)]['get'](Ma)[_0x1bf48c(0x179)]();}[_0x232df7(0x1c9)](){const _0x5959e=_0x232df7;[[da],[Pr],[fa]][_0x5959e(0x385)](_0x37eda8=>this['_injector'][_0x5959e(0x19c)](_0x37eda8)),_0x3ece4a(this[_0x5959e(0x1e1)],[[fa],[Pr]]),this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[da]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[Xi]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[ma]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[na]),this[_0x5959e(0x2db)](this['_renderManagerService'][_0x5959e(0x3a8)](_0xe0c4a6['UNIVER_SHEET'],[ja])),this['disposeWithMe'](this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[Da]));}[_0x232df7(0x1b7)](){const _0x53d978=_0x232df7;this[_0x53d978(0x1e1)][_0x53d978(0x19c)]([Ea]),this[_0x53d978(0x1e1)][_0x53d978(0x14a)](Ea);let _0x213c4f=this[_0x53d978(0x1e1)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]]['forEach'](_0x33337b=>_0x213c4f[_0x53d978(0x19c)](_0x33337b)),_0x3ece4a(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x232df7(0x26a)](){const _0x28aef7=_0x232df7;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x28aef7(0x385)](_0x5d5ec8=>this[_0x28aef7(0x2db)](this['_commandService'][_0x28aef7(0x204)](_0x5d5ec8)));}};q(Na,_0x232df7(0xf1),_0xe0c4a6['UNIVER_SHEET']),q(Na,_0x232df7(0x18f),_0x232df7(0x312)),q(Na,_0x232df7(0xfa),Gi),q(Na,_0x232df7(0x2b6),Ki),Na=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x106471,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x372423,_0x1fa068,_0x296a09,_0x52023d),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|
|
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};
|