@univerjs-pro/sheets-shape-ui 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2a50d1=_0x2867;(function(_0x14d5b4,_0x3edeb2){const _0x3e8a28=_0x2867,_0x4f8451=_0x14d5b4();while(!![]){try{const _0x288538=-parseInt(_0x3e8a28(0x38f))/0x1+parseInt(_0x3e8a28(0x276))/0x2*(-parseInt(_0x3e8a28(0x177))/0x3)+parseInt(_0x3e8a28(0x1b0))/0x4*(-parseInt(_0x3e8a28(0x3c9))/0x5)+parseInt(_0x3e8a28(0x193))/0x6*(parseInt(_0x3e8a28(0x311))/0x7)+parseInt(_0x3e8a28(0x213))/0x8*(parseInt(_0x3e8a28(0x3e4))/0x9)+-parseInt(_0x3e8a28(0x392))/0xa+parseInt(_0x3e8a28(0x37a))/0xb;if(_0x288538===_0x3edeb2)break;else _0x4f8451['push'](_0x4f8451['shift']());}catch(_0x57aa00){_0x4f8451['push'](_0x4f8451['shift']());}}}(_0x25cb,0xcd5a4));import{FormulaShapeAnimationController as _0x18037f,MobileShapeEditorService as _0x5e474a,SHAPE_CHANGE_PICKER_COMPONENT as _0x144633,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x40d762,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x23fafe,ShapeEditPanel as _0x2aa5d2,ShapeFloatingToolbar as _0x316d07,ShapeFloatingToolbarService as _0x1dcb80,ShapeFloatingToolbarToggleFactory as _0x557e49,ShapeFormulaRibbonControl as _0x1a8087,ShapeGroupEnum as _0x3180c3,ShapePickerDropdown as _0x327cdc,ShapePickerPanel as _0x5e2214,ShapeQuickStyleGallery as _0x515359,ShapeStyleRibbonControl as _0x564138,ShapeTextEditorContainer as _0x440aa0,ShapeTextFloatMenuRenderControllerBase as _0xc5403,ShapeTextFloatToolbar as _0x386324,ShapeTextHyperLinkHoverController as _0x14ddc5,ShapeTextHyperLinkInfo as _0x52f536,ShapeTextHyperLinkPopupService as _0x4a3597,ShapeTextRibbonControl as _0x21a224,ToggleShapeFloatingToolbarOperation as _0x1ed286,UniverShapeEditorMobileUIPlugin as _0x6ff82d,UniverShapeEditorUIPlugin as _0x4b0153,activateDrawingObject as _0x5e0fa6,bindRenderTransformerLifecycle as _0x3859e5,buildShapeTextDataUpdate as _0x22d59e,clearActiveDrawingObjects as _0x5f511a,createShapeTextHyperLinkRegions as _0x2fe459,drawFormulaShapeAnimationLayers as _0x57f0a6,getDrawingTypeNameKey as _0x99e984,getTextModel as _0x52ba05,getTextStyle as _0x2be288,normalizeShapeTextModel as _0x2ec019,plainShapeTextToDocumentData as _0x5eaaf7,prepareShapeTextDocumentData as _0x4fabc4,registerShapeFormatPainter as _0x58044f,resolveFormulaShapeAutoFitSize as _0x244fce,resolveShapeContextualRibbonHostMode as _0x451090,resolveShapeTextDocumentPageHeight as _0x52f957,resolveShapeTextDocumentRenderLayout as _0x3748e5,resolveShapeTextEditorBehaviorShapeData as _0x24da5c,resolveShapeTextEditorWrapStrategy as _0x31ce39,resolveShapeTextHyperLinkAt as _0x5efe35,resolveShapeTextHyperLinkObject as _0x14be6a,shouldAllowShapeTextEditorHostSizeShrink as _0x3507cc,shouldClipShapeTextDocument as _0x3feb34,useFormulaShapeToolbar as _0x17d98c}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x1532b8,ContextMenuGroup as _0x2defe6,ContextMenuPosition as _0x38d412,FloatingObjectToolbarPosition as _0x26ae1c,FormatPainterSessionService as _0x2c55a0,IMenuManagerService as _0x578415,IRibbonService as _0x51787d,ISidebarService as _0x5dcc97,IconManager as _0x25a4f3,MenuItemType as _0x19e1a8,MenuManagerPosition as _0x4e009a,RibbonInsertGroup as _0x3e8fc7,UndoRedoGroupService as _0x1d8132,UniverMobileUIPlugin as _0x2ae088,getMenuHiddenObservable as _0xdcbdfa,useDependency as _0x3f0a9f,useObservable as _0x11888b}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x352ba4,ImageSourceTypeEnum as _0x1ccec8,ShapeArrowSizeEnum as _0x27118a,ShapeArrowTypeEnum as _0xd004b,ShapeDefaultConfig as _0xc3f276,ShapeFillEnum as _0x5d79d8,ShapeLineTypeEnum as _0x4226d3,ShapeModel as _0x515211,ShapeRenderModeEnum as _0x4fa76e,ShapeTypeEnum as _0x37b1c4,computeConnectorRouteLayout as _0x4afb2b,getBasicShapeRotateBound as _0x588ee5,isConnectorShape as _0x4ff847,isCurvedConnectorShape as _0x1314a4,routeConnectorLineShape as _0x3b0187}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x43dec2,UniverShapeEditorPlugin as _0x57c6d7,applyQuickStyleToShapeData as _0x55f306,cloneShapeDataForType as _0x582c9b,createShapeFormulaDocument as _0xd3f5a9,createShapeTextBoxShapeData as _0x58d335,getShapeQuickStylePreset as _0x22a347,getShapeQuickStyleType as _0x2c40c1,resolveActiveShapeQuickStylePresetId as _0x451e8c}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x274bf7,InsertSheetsShapeMutation as _0x5d2fb0,RemoveSheetsShapeMutation as _0x4345e0,SetShapeDrawingDataCommand as _0x1816e8,SheetsShapeService as _0x19ac46,ToggleSheetsShapeFlipCommand as _0x38de8d,UniverSheetsShapePlugin as _0x3072d3,UpdateConnectorRelationCommand as _0x47576f,UpdateLineShapeResizeCommand as _0x8fe52b,UpdateSheetsShapeDataMutation as _0x1528ac}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5055b7,CommandType as _0x265116,DependentOn as _0x475ae1,Disposable as _0x50b698,DisposableCollection as _0x3f9542,DocumentDataModel as _0x5b0c0e,DrawingTypeEnum as _0x2af550,FOCUSING_COMMON_DRAWINGS as _0x3c571e,FOCUSING_SHAPE_TEXT_EDITOR as _0x436061,HorizontalAlign as _0x1f7a4a,ICommandService as _0x36cb63,IConfigService as _0x18e4d3,IContextService as _0x4fc54e,IImageIoService as _0x26d10e,IPermissionService as _0x325970,IURLImageService as _0x70523b,IUndoRedoService as _0x3fbb5f,IUniverInstanceService as _0x3a5e32,Inject as _0x1cc97c,Injector as _0x2fc7b0,LocaleService as _0x36fe41,Plugin as _0x21d821,UniverInstanceType as _0x31b64c,VerticalAlign as _0x49f617,createInternalEditorID as _0x1dc9ba,generateRandomId as _0x4b43ac,merge as _0x5d2e0e,registerDependencies as _0xb1496d,toDisposable as _0x3d1611,touchDependencies as _0x254e2b}from'@univerjs/core';import{CopySheetCommand as _0x4a833d,RemoveSheetCommand as _0x584874,SheetInterceptorService as _0x2af05e,SheetPermissionCheckController as _0x17c2c9,SheetSkeletonService as _0x432708,SheetsSelectionsService as _0x1e5107,UniverSheetsPlugin as _0x4733ec,WorkbookCopyPermission as _0x2b7be9,WorkbookEditablePermission as _0x1bbb99,WorksheetCopyPermission as _0x2cc6db,WorksheetEditPermission as _0x1c37ca,attachRangeWithCoord as _0x306cf5,discreteRangeToRange as _0x24feb6,getSheetCommandTarget as _0x2a6e27}from'@univerjs/sheets';import{IDrawingManagerService as _0x4f51fd,SetDrawingSelectedOperation as _0xee5ddf,UniverDrawingPlugin as _0x1a49fc,getDrawingShapeKeyByDrawingSearch as _0x5b513c,getOrCreateDrawingCopyPlan as _0x2eb6de}from'@univerjs/drawing';import{CURSOR_TYPE as _0x22db02,Circle as _0x351bf8,DRAWING_OBJECT_LAYER_INDEX as _0x3ef936,DocumentSkeleton as _0x535281,DocumentViewModel as _0x5a99a1,Documents as _0x37784d,IRenderManagerService as _0x5ee803,Image as _0x1a4a15,RENDER_CLASS_TYPE as _0x2294f7,SHEET_VIEWPORT_KEY as _0x50483f,Shape as _0x516f1f,Transform as _0x18ca72,UniverRenderEnginePlugin as _0x15e279,Vector2 as _0x2c251b}from'@univerjs/engine-render';import{COPY_TYPE as _0x449369,ISheetClipboardService as _0x5d2fec,PREDEFINED_HOOK_NAME as _0x1c4727,SheetCanvasPopManagerService as _0x43c3f4,SheetPrintInterceptorService as _0x715be9,SheetScrollManagerService as _0x4caf75,SheetSkeletonManagerService as _0x2df2f6,UniverSheetsMobileUIPlugin as _0x268cdf,UniverSheetsUIPlugin as _0xe71b4d,deriveStateFromActiveSheet$ as _0x482e3a,getCurrentRangeDisable$ as _0x29453b,getViewportByCell as _0x2ca51b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0xa2df27,EMPTY as _0x3b739f,Observable as _0x53640f,map as _0xb844e2,merge as _0x4c0ea2,of as _0x23d707,startWith as _0x368cba,switchMap as _0x40c277}from'rxjs';import{DrawingCommonPanel as _0x3de725,DrawingImageClipService as _0x241f11,DrawingRenderService as _0x332325,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x168650,MobileObjectListPanel as _0xd44b72,OBJECT_LIST_FLOATING_SECTION_ID as _0x91e028,ObjectListPanelBase as _0x1da5db,UniverDrawingUIPlugin as _0xf3d327,getCurrentUnitInfo as _0x168f1b,getObjectListPanelSectionIdForDrawingType as _0x50f6a2,insertGroupObject as _0x5992ec}from'@univerjs/drawing-ui';import{MobileDropdown as _0x5bc64f}from'@univerjs/design';import{Fragment as _0x3185ec,jsx as _0x52d2b9,jsxs as _0x90bcc3}from'react/jsx-runtime';import{DrawingApplyType as _0x483132,ISheetDrawingService as _0x342231,RemoveSheetDrawingCommand as _0x18105d,SetDrawingApplyMutation as _0x564b34,SetDrawingArrangeCommand as _0x50d208,SetSheetDrawingCommand as _0x3928a2,UniverSheetsDrawingPlugin as _0x4ff48e,transformToAxisAlignPosition as _0x447cde,transformToDrawingPosition as _0xf0f590}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x19d053}from'@univerjs-pro/license';import{DocInterceptorService as _0x1ba3c0,DocSelectionManagerService as _0x49afbb,UniverDocsPlugin as _0x2ef3dd}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x1fb8c2,DocEventManagerService as _0x57854c,DocRenderController as _0x1515d4,DocSelectionRenderService as _0x5501bf,UniverDocsUIPlugin as _0x4b2521}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x188788,SheetsDrawingGroupCopyPasteController as _0x35b05b,UniverSheetsDrawingMobileUIPlugin as _0x4ecb47,UniverSheetsDrawingUIPlugin as _0x3980b3}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x2c59f6,FlipHorizontalIcon as _0x543ae5,FlipVerticalIcon as _0x53f09a,MoveDownIcon as _0xb8b13,MoveUpIcon as _0x3fe9c5,ObjectLayersIcon as _0x143c8a,ShapeFormatSettingIcon as _0x3b58f3,TopmostIcon as _0x173190}from'@univerjs/icons';import{memo as _0x2ed6a2,useEffect as _0x47325c,useMemo as _0x48df1e,useReducer as _0x294aea,useState as _0x6473b7}from'react';function Er(_0x5a3ec3,_0xda6ff1){const _0x37c01c=_0x2867;let _0x4dbf72={};for(let _0x52c08a of Object[_0x37c01c(0x209)](_0xda6ff1)){let _0x57e927=_0xda6ff1[_0x52c08a],_0x861517=_0x5a3ec3[_0x52c08a];_0x4dbf72[_0x52c08a]=_0x861517===void 0x0?void 0x0:typeof _0x57e927==_0x37c01c(0x323)&&_0x57e927&&!Array[_0x37c01c(0x3ba)](_0x57e927)&&typeof _0x861517=='object'&&_0x861517&&!Array[_0x37c01c(0x3ba)](_0x861517)?Er(_0x861517,_0x57e927):_0x861517;}return _0x4dbf72;}const K={'type':_0x265116[_0x2a50d1(0x2ea)],'id':_0x2a50d1(0x17b),'handler':(_0x16e283,_0x1973fd)=>{const _0x211691=_0x2a50d1;let _0x3ba6f8=_0x16e283[_0x211691(0x17c)](_0x19ac46),{unitId:_0x19356b,subUnitId:_0x5e418e,shapeType:_0xca78de,shapeId:_0x3a635f,shapeData:_0x242759,replaceShapeData:_0x39f044,oldShapeJSON:_0x280cee}=_0x1973fd;if(!_0x3ba6f8['getShapeModel'](_0x19356b,_0x5e418e,_0x3a635f))return!0x1;let _0x5f4b62=_0x16e283[_0x211691(0x17c)](_0x36cb63),_0x4d68cb=_0x16e283[_0x211691(0x17c)](_0x3fbb5f),{oldShapeType:_0x3cad6e,oldShapeData:_0x2e1284={}}=_0x280cee,_0x140451=_0x39f044?_0x2e1284:Er(_0x2e1284,_0x242759||{}),_0xfbd700={'id':_0x1528ac['id'],'params':{'unitId':_0x19356b,'subUnitId':_0x5e418e,'shapeId':_0x3a635f,'shapeType':_0xca78de,'shapeData':_0x242759,'replace':_0x39f044}},_0x3ba028={'id':_0x1528ac['id'],'params':{'unitId':_0x19356b,'subUnitId':_0x5e418e,'shapeId':_0x3a635f,'shapeType':_0x3cad6e,'shapeData':_0x140451,'replace':_0x39f044}};return _0x5f4b62[_0x211691(0x267)](_0xfbd700['id'],_0xfbd700['params'])?(_0x4d68cb[_0x211691(0x1e8)]({'unitID':_0x19356b,'undoMutations':[_0x3ba028],'redoMutations':[_0xfbd700]}),!0x0):!0x1;}};function Dr(_0x37702,_0x5b73e7,_0x2047d5,_0x41c5d9,_0xf80722,_0x1237c0){const _0x4ee379=_0x2a50d1;let _0x3fa46d={'unitId':_0x5b73e7,'subUnitId':_0x2047d5,'shapeId':_0x41c5d9,'shapeData':_0x1237c0,'oldShapeJSON':_0xf80722};return _0x37702[_0x4ee379(0x2b5)](K['id'],_0x3fa46d);}function Or(_0x21f671,_0x4887c0,_0x40d919,_0x5b11e4,_0x2e0795,_0x5788ef){let _0x515db5={'unitId':_0x4887c0,'subUnitId':_0x40d919,'shapeId':_0x5b11e4,'shapeData':_0x5788ef,'oldShapeJSON':_0x2e0795};return _0x21f671['executeCommand'](K['id'],_0x515db5);}function kr(_0x4c3b4d){'@babel/helpers - typeof';const _0x102b28=_0x2a50d1;return kr=typeof Symbol==_0x102b28(0x432)&&typeof Symbol[_0x102b28(0x2f8)]==_0x102b28(0x1fe)?function(_0x1f7fb4){return typeof _0x1f7fb4;}:function(_0x26f81a){const _0x2f33ee=_0x102b28;return _0x26f81a&&typeof Symbol==_0x2f33ee(0x432)&&_0x26f81a[_0x2f33ee(0x206)]===Symbol&&_0x26f81a!==Symbol['prototype']?'symbol':typeof _0x26f81a;},kr(_0x4c3b4d);}function Ar(_0x520043,_0x553ded){const _0x57d257=_0x2a50d1;if(kr(_0x520043)!='object'||!_0x520043)return _0x520043;var _0x2fcae9=_0x520043[Symbol[_0x57d257(0x2f4)]];if(_0x2fcae9!==void 0x0){var _0x1431f4=_0x2fcae9[_0x57d257(0x3d0)](_0x520043,_0x553ded||'default');if(kr(_0x1431f4)!=_0x57d257(0x323))return _0x1431f4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x553ded===_0x57d257(0x234)?String:Number)(_0x520043);}function jr(_0x5acd10){const _0x2cf123=_0x2a50d1;var _0xcf51c0=Ar(_0x5acd10,_0x2cf123(0x234));return kr(_0xcf51c0)=='symbol'?_0xcf51c0:_0xcf51c0+'';}function q(_0x20534a,_0x4f2241,_0x2249a){const _0x4e47ab=_0x2a50d1;return(_0x4f2241=jr(_0x4f2241))in _0x20534a?Object[_0x4e47ab(0x387)](_0x20534a,_0x4f2241,{'value':_0x2249a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20534a[_0x4f2241]=_0x2249a,_0x20534a;}function Mr(_0x34259,_0x4c58e5,_0x92c2f2){const _0x481b79=_0x2a50d1;let _0x5bd12c={..._0x4c58e5,'dataModel':{..._0x4c58e5[_0x481b79(0x187)]??{},..._0x92c2f2?{'doc':_0x92c2f2}:null}},_0x5e5f4d=_0x24da5c(_0x34259,_0x5bd12c),_0x296bce=_0x31ce39(_0x5e5f4d);return{'clip':_0x3feb34(_0x5e5f4d,_0x296bce),'wrapStrategy':_0x296bce};}var J=class extends _0x516f1f{constructor(_0x1c2c4e,_0x4c414f){const _0x75a61f=_0x2a50d1;super(_0x1c2c4e,_0x4c414f),q(this,_0x75a61f(0x3ef),[]),q(this,'_props',void 0x0),q(this,_0x75a61f(0x1d8),new _0x18037f(()=>this[_0x75a61f(0x2fb)](!0x0),()=>this[_0x75a61f(0x18f)]())),q(this,_0x75a61f(0x2d8),!0x0),q(this,'_drawingType',_0x2af550[_0x75a61f(0x255)]),q(this,'isDrawingObject',!0x0),this[_0x75a61f(0x26d)]={..._0x4c414f},this['_formulaAnimation'][_0x75a61f(0x339)](_0x4c414f[_0x75a61f(0x28f)],_0x4c414f[_0x75a61f(0x17e)]!==!0x1),this[_0x75a61f(0x34f)](),this[_0x75a61f(0x18f)]();}['_init'](){const _0x3307ce=_0x2a50d1;this['onTransformChange$'][_0x3307ce(0x380)](_0xe62ff9=>{this['_updateSrcRectByTransform'](_0xe62ff9);});}[_0x2a50d1(0x210)](_0x27221d){const _0x489f28=_0x2a50d1;this[_0x489f28(0x26d)]['prstGeom']=_0x27221d;}[_0x2a50d1(0x20c)](_0x3bda76){const _0x1a0e6c=_0x2a50d1;if(this['_props'][_0x1a0e6c(0x269)])return null;let _0x1bbd53=this[_0x1a0e6c(0x263)](_0x3bda76),{width:_0x2d3373,height:_0x2b04d4}=this[_0x1a0e6c(0x1aa)]();return _0x5efe35(this[_0x1a0e6c(0x3ef)],{'x':(this[_0x1a0e6c(0x34d)]?-_0x1bbd53['x']:_0x1bbd53['x'])+_0x2d3373/0x2,'y':_0x1bbd53['y']+_0x2b04d4/0x2});}['setEditing'](_0x54d3fb){const _0x3ec817=_0x2a50d1;this[_0x3ec817(0x26d)][_0x3ec817(0x269)]=_0x54d3fb,this[_0x3ec817(0x2fb)](!0x0);}[_0x2a50d1(0x1f9)](_0x1d3819,_0x55c06d=!0x0){const _0x5b058f=_0x2a50d1;this[_0x5b058f(0x1d8)][_0x5b058f(0x339)](_0x1d3819,_0x55c06d),this[_0x5b058f(0x26d)][_0x5b058f(0x28f)]=_0x1d3819,this[_0x5b058f(0x18f)](),this[_0x5b058f(0x2fb)](!0x0);}[_0x2a50d1(0x18f)](){const _0x7654d=_0x2a50d1;let _0x345b82=this[_0x7654d(0x26d)][_0x7654d(0x330)],_0xde8700=_0x345b82[_0x7654d(0x253)](),_0xc91aec=_0x2ec019(_0xde8700==null?void 0x0:_0xde8700[_0x7654d(0x187)]),_0x29202c=_0xc91aec==null?void 0x0:_0xc91aec[_0x7654d(0x2b6)],_0x382dfc=this['_formulaAnimation'][_0x7654d(0x2a6)]();if(!_0x29202c||_0x382dfc[_0x7654d(0x384)]===0x0)return;_0x345b82[_0x7654d(0x246)]({'width':this[_0x7654d(0x320)],'height':this[_0x7654d(0x2f5)]});let _0x387b2a=_0x244fce({'documentData':_0x382dfc['map'](_0x5a9d71=>_0xd3f5a9(_0x29202c,_0x5a9d71)),'height':this['height'],'shapeData':_0x345b82['getShapeData'](),'textRect':_0x345b82['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x7654d(0x320)],'height':this[_0x7654d(0x2f5)]}),'width':this[_0x7654d(0x320)]});if(_0x387b2a){var _0x347697;this['resize'](_0x387b2a[_0x7654d(0x320)],_0x387b2a[_0x7654d(0x2f5)]),(_0x347697=this[_0x7654d(0x2d7)]())==null||(_0x347697=_0x347697[_0x7654d(0x391)]())==null||_0x347697['debounceRefreshControls']();}}get[_0x2a50d1(0x417)](){const _0x2d5923=_0x2a50d1;return this[_0x2d5923(0x26d)][_0x2d5923(0x417)];}get[_0x2a50d1(0x3ac)](){const _0x366ac4=_0x2a50d1;return this[_0x366ac4(0x26d)]['subUnitId'];}['_updateSrcRectByTransform'](_0x2ab559){const _0x2dbd2b=_0x2a50d1;if(this[_0x2dbd2b(0x26d)][_0x2dbd2b(0x21a)]==null||!this[_0x2dbd2b(0x2d8)])return;let {width:_0x20a068,height:_0xd2e30}=this,{width:_0x2cbf8a=0x0,height:_0xc338b3=0x0}=_0x2ab559[_0x2dbd2b(0x257)],{left:_0x43fdd4=0x0,top:_0x334cc7=0x0,right:_0x22e632=0x0,bottom:_0x2f0adb=0x0}=this['_props'][_0x2dbd2b(0x21a)],_0x341655=_0x43fdd4,_0x432946=_0x334cc7,_0x54280e=_0x22e632,_0x4208fd=_0x2f0adb,_0x190999=!0x1;if(_0x2cbf8a!==0x0&&_0x2cbf8a!==_0x20a068){let _0x146574=_0x43fdd4/_0x2cbf8a,_0x5e0afd=_0x22e632/_0x2cbf8a;_0x341655=_0x20a068*_0x146574,_0x54280e=_0x20a068*_0x5e0afd,_0x190999=!0x0;}if(_0xc338b3!==0x0&&_0xc338b3!==_0xd2e30){let _0x5289d0=_0x334cc7/_0xc338b3,_0x2d7e7a=_0x2f0adb/_0xc338b3;_0x432946=_0xd2e30*_0x5289d0,_0x4208fd=_0xd2e30*_0x2d7e7a,_0x190999=!0x0;}_0x190999&&this[_0x2dbd2b(0x3f2)]({'left':_0x341655,'top':_0x432946,'right':_0x54280e,'bottom':_0x4208fd});}[_0x2a50d1(0x3f2)](_0xd146c7){const _0x581cda=_0x2a50d1;this['_props'][_0x581cda(0x21a)]=_0xd146c7,this[_0x581cda(0x2fb)](!0x0);}['setFillImage'](_0x10f591){const _0x40624c=_0x2a50d1;this[_0x40624c(0x26d)][_0x40624c(0x1c4)]=_0x10f591,this['makeDirty'](!0x0);}set[_0x2a50d1(0x3e1)](_0x8d8c0){const _0x1ad69f=_0x2a50d1;this[_0x1ad69f(0x2ab)]=_0x8d8c0;}get['transform'](){const _0x1634cd=_0x2a50d1;this[_0x1634cd(0x2ab)]||this['_setTransForm']();let _0x4cd370=this[_0x1634cd(0x2ab)][_0x1634cd(0x230)]();return this['transformForAngle'](_0x4cd370);}get[_0x2a50d1(0x330)](){const _0x2ceb55=_0x2a50d1;return this[_0x2ceb55(0x26d)][_0x2ceb55(0x330)];}get['shapeId'](){const _0x4df3d0=_0x2a50d1;return this[_0x4df3d0(0x26d)][_0x4df3d0(0x32c)];}get[_0x2a50d1(0x352)](){const _0x5a11ee=_0x2a50d1;return _0x2294f7[_0x5a11ee(0x34c)];}[_0x2a50d1(0x289)](_0x120e11,_0x5b47ce,_0x29be7a,_0x27d953){const _0x2fea25=_0x2a50d1;let _0x304431=this[_0x2fea25(0x26d)][_0x2fea25(0x330)];if(!_0x304431||!_0x5b47ce)return;let _0x5b70ee=_0x29be7a??this[_0x2fea25(0x320)],_0x364bb6=_0x27d953??this['height'],_0x21a794={'shapeType':_0x304431[_0x2fea25(0x335)](),'width':_0x5b70ee,'height':_0x364bb6},_0x1dfa82={'renderMode':_0x4fa76e[_0x2fea25(0x3d1)],'oKey':this[_0x2fea25(0x223)],'image':this[_0x2fea25(0x26d)][_0x2fea25(0x1c4)],'angle':this[_0x2fea25(0x429)]};_0x304431[_0x2fea25(0x246)](_0x21a794),_0x120e11[_0x2fea25(0x1bd)]();let _0x52c048={'top':0x0,'left':0x0,'width':_0x5b70ee,'height':_0x364bb6},_0x360a9c=_0x304431[_0x2fea25(0x233)](_0x52c048);_0x360a9c?this[_0x2fea25(0x1b4)](_0x120e11,_0x360a9c,_0x5decc2=>{const _0x4b349a=_0x2fea25;_0x304431[_0x4b349a(0x241)](_0x5decc2,_0x52c048,_0x1dfa82);}):(this['_releaseRenderCache'](),_0x304431['render'](_0x120e11,_0x52c048,_0x1dfa82)),_0x120e11[_0x2fea25(0x428)]();let _0x19708e=_0x304431['getShapeTextData'](),_0x28d4a5=_0x304431[_0x2fea25(0x2aa)](_0x52c048),_0x318d79=_0x304431['isLineShape']();if(_0x19708e&&_0x28d4a5&&!_0x318d79){_0x120e11['save'](),this[_0x2fea25(0x1ae)]()[_0x2fea25(0x34d)]&&_0x120e11[_0x2fea25(0x3ae)](-0x1,0x1);let _0x368986=_0x5b70ee/0x2,_0x2677e9=_0x364bb6/0x2;_0x120e11[_0x2fea25(0x1a8)](-_0x368986,-_0x2677e9),_0x120e11[_0x2fea25(0x260)](),this['_drawShapeText'](_0x120e11,_0x19708e,_0x28d4a5),_0x120e11[_0x2fea25(0x428)]();}}[_0x2a50d1(0x1c0)](_0x300b63){}[_0x2a50d1(0x3f7)](_0x48a51d,_0x49a8c9,_0x194c99){const _0x5707eb=_0x2a50d1;var _0x3b8cc6;this[_0x5707eb(0x3ef)]=[],!this[_0x5707eb(0x26d)][_0x5707eb(0x269)]&&(!((_0x3b8cc6=_0x49a8c9[_0x5707eb(0x187)])!=null&&_0x3b8cc6[_0x5707eb(0x2b6)])&&'isRichText'in _0x49a8c9&&_0x49a8c9[_0x5707eb(0x181)]===!0x1?this['_drawSimpleText'](_0x48a51d,_0x49a8c9,_0x194c99):this['_drawRichText'](_0x48a51d,_0x49a8c9,_0x194c99));}['_drawSimpleText'](_0xf0c91,_0xbb5014,_0x2db2e3){const _0x33b6d9=_0x2a50d1;this[_0x33b6d9(0x1a0)](_0xf0c91,{..._0xbb5014,'text':_0xbb5014[_0x33b6d9(0x31e)]??'','dataModel':{'doc':_0x5eaaf7(_0xbb5014,_0x33b6d9(0x393)+this['oKey'])}},_0x2db2e3);}[_0x2a50d1(0x1a0)](_0x29f0e1,_0x5587f4,_0x5daf6a){_0x57f0a6(_0x29f0e1,this['_formulaAnimation'],(_0x2b13d6,_0x1b9508,_0x427781)=>{const _0x39de66=_0x2867;this[_0x39de66(0x30c)](_0x2b13d6,_0x5587f4,_0x5daf6a,_0x1b9508,_0x427781===_0x39de66(0x25d));});}[_0x2a50d1(0x30c)](_0x14e5d1,_0x42189e,_0x1820ae,_0x3e42e8,_0xf52e5d){const _0x2a71af=_0x2a50d1;let _0x2ba0e8=this['_props']['localeService'];if(!_0x42189e[_0x2a71af(0x187)]||!_0x2ba0e8)return;let _0xa1d742=_0x2ec019(_0x42189e['dataModel']);if(!_0xa1d742)return;let _0x3656f0=_0xa1d742['doc'];if(!_0x3656f0)return;let _0x11be53=_0xd3f5a9(_0x3656f0,_0x3e42e8),_0x39f9f5=_0xa1d742['va']??_0x49f617[_0x2a71af(0x288)],_0x730304=_0xa1d742['ha']??_0x1f7a4a[_0x2a71af(0x24b)],_0x4f06f8=Mr(this['_props'][_0x2a71af(0x330)][_0x2a71af(0x396)](),_0x42189e,_0x11be53),_0x428348=_0x42189e[_0x2a71af(0x2c3)],_0x5797de=_0x4fabc4(_0x11be53,{'isHorizontal':_0x428348!==!0x1,'textRect':_0x1820ae,'verticalAlign':_0x39f9f5,'horizontalAlign':_0x730304,'wrapStrategy':_0x4f06f8['wrapStrategy']}),_0x732f17=new _0x5b0c0e(_0x5797de),_0x5a08b9=new _0x5a99a1(_0x732f17),_0x322168=_0x535281[_0x2a71af(0x240)](_0x5a08b9,_0x2ba0e8);_0x322168[_0x2a71af(0x30a)]();let _0x55fee9=_0x322168[_0x2a71af(0x3b0)]()['actualHeight'],_0x5bd085=_0x3748e5({'contentHeight':_0x55fee9,'verticalAlign':_0x39f9f5,'viewportHeight':_0x1820ae[_0x2a71af(0x2f5)]});_0x732f17[_0x2a71af(0x328)]({'pageSize':{'width':_0x428348===!0x1?_0x1820ae['height']:_0x1820ae[_0x2a71af(0x320)],'height':_0x52f957(_0x11be53,_0x5bd085[_0x2a71af(0x40a)])}}),_0x732f17['updateDocumentDataMargin']({'t':_0x5bd085['marginTop']}),_0x322168[_0x2a71af(0x30a)]();let _0x4c78c0=new _0x37784d(_0x2a71af(0x353)+this[_0x2a71af(0x223)],_0x322168,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x4c78c0[_0x2a71af(0x336)](_0x1820ae['width'],_0x5bd085[_0x2a71af(0x40a)]),_0x14e5d1['save'](),_0x14e5d1[_0x2a71af(0x3f0)](_0x1820ae[_0x2a71af(0x337)],_0x1820ae[_0x2a71af(0x2ed)]),_0x4f06f8[_0x2a71af(0x1b3)]&&(_0x14e5d1[_0x2a71af(0x260)](),_0x14e5d1[_0x2a71af(0x219)](0x0,_0x5bd085[_0x2a71af(0x316)],_0x1820ae[_0x2a71af(0x320)],_0x5bd085[_0x2a71af(0x3ca)]),_0x14e5d1[_0x2a71af(0x1b3)]()),_0x5bd085[_0x2a71af(0x297)]&&_0x14e5d1[_0x2a71af(0x3f0)](0x0,_0x5bd085[_0x2a71af(0x297)]),_0x4c78c0['draw'](_0x14e5d1),_0xf52e5d&&(this[_0x2a71af(0x3ef)]=_0x2fe459(_0x4c78c0,{'left':_0x1820ae[_0x2a71af(0x337)],'top':_0x1820ae['top']+_0x5bd085[_0x2a71af(0x297)]},_0x4f06f8[_0x2a71af(0x1b3)]?{'left':_0x1820ae[_0x2a71af(0x337)],'right':_0x1820ae['left']+_0x1820ae['width'],'top':_0x1820ae['top']+_0x5bd085[_0x2a71af(0x316)],'bottom':_0x1820ae['top']+_0x5bd085[_0x2a71af(0x316)]+_0x5bd085[_0x2a71af(0x3ca)]}:void 0x0)),_0x14e5d1[_0x2a71af(0x428)](),_0x4c78c0[_0x2a71af(0x2bd)](),_0x322168['dispose'](),_0x5a08b9[_0x2a71af(0x2bd)](),_0x732f17['dispose']();}[_0x2a50d1(0x241)](_0xecbf75,_0x37da15,_0x3ec1f0=!0x1){const _0x362f99=_0x2a50d1;if(!this[_0x362f99(0x412)])return this[_0x362f99(0x2fb)](!0x1),this;let {width:_0x476285,height:_0x16de21,left:_0x29e4f2,top:_0x592838}=this,_0x4c0a86=this[_0x362f99(0x1aa)]();if(_0x476285=_0x4c0a86[_0x362f99(0x320)],_0x16de21=_0x4c0a86[_0x362f99(0x2f5)],_0x29e4f2=_0x4c0a86[_0x362f99(0x337)],_0x592838=_0x4c0a86[_0x362f99(0x2ed)],this[_0x362f99(0x2bf)](_0x37da15)){let {top:_0x5e5c2f,left:_0x399b78,bottom:_0x34f2fa,right:_0x27b100}=_0x37da15[_0x362f99(0x2a1)];if(_0x476285+this['strokeWidth']+_0x29e4f2<_0x399b78||_0x27b100<_0x29e4f2||_0x16de21+this[_0x362f99(0x1d3)]+_0x592838<_0x5e5c2f||_0x34f2fa<_0x592838)return this;}let _0x22a24a=_0x29e4f2+_0x476285/0x2,_0x597274=_0x592838+_0x16de21/0x2,_0xeef801=this[_0x362f99(0x3e1)]['getMatrix']();if(this[_0x362f99(0x26d)]['isEditing']){let _0x4514df=this[_0x362f99(0x1ae)](),_0xa269c6=new _0x18ca72();_0xa269c6[_0x362f99(0x1fb)]({..._0x4514df}),_0xeef801=_0xa269c6['getMatrix']();}return _0xecbf75[_0x362f99(0x1bd)](),this[_0x362f99(0x26d)]['shapeModel'][_0x362f99(0x376)]===!0x0||_0xecbf75['transform'](_0xeef801[0x0],_0xeef801[0x1],_0xeef801[0x2],_0xeef801[0x3],_0x22a24a,_0x597274),this[_0x362f99(0x289)](_0xecbf75,_0x37da15,_0x476285,_0x16de21),_0xecbf75['restore'](),this['makeDirty'](!0x1),this;}[_0x2a50d1(0x263)](_0x2d5726){const _0x5f0d74=_0x2a50d1;let {left:_0x36fe82,top:_0x287929,width:_0x504dd0,height:_0x3b8dbd}=this[_0x5f0d74(0x1aa)](),_0x1ba208=this['transform']['getMatrix'](),_0x2c2cc9=_0x36fe82+_0x504dd0/0x2,_0x4a4dcd=_0x287929+_0x3b8dbd/0x2,_0x1f2679=new _0x18ca72([_0x1ba208[0x0],_0x1ba208[0x1],_0x1ba208[0x2],_0x1ba208[0x3],_0x2c2cc9,_0x4a4dcd]),_0x34199e=this['getParent']();return(this['isInGroup']&&(_0x34199e==null?void 0x0:_0x34199e[_0x5f0d74(0x352)])===_0x2294f7['GROUP']?_0x34199e[_0x5f0d74(0x33c)]['multiply'](_0x1f2679):_0x1f2679)[_0x5f0d74(0x1a2)]()['applyPoint'](_0x2d5726);}[_0x2a50d1(0x1ef)](_0x3931ab){const _0x19dada=_0x2a50d1;let {left:_0x24bbdb,top:_0x355e15,width:_0x229b03,height:_0x5743b8}=this[_0x19dada(0x1aa)](),_0xce6334=_0x24bbdb+_0x229b03/0x2,_0x45acb9=_0x355e15+_0x5743b8/0x2,_0x3eea6c=this[_0x19dada(0x3e1)][_0x19dada(0x222)](),_0x1879f1=new _0x18ca72([_0x3eea6c[0x0],_0x3eea6c[0x1],_0x3eea6c[0x2],_0x3eea6c[0x3],_0xce6334,_0x45acb9]),_0x5d0d4e=this[_0x19dada(0x42e)](),_0x3307fc=(this['isInGroup']&&(_0x5d0d4e==null?void 0x0:_0x5d0d4e[_0x19dada(0x352)])===_0x2294f7[_0x19dada(0x405)]?_0x5d0d4e[_0x19dada(0x33c)][_0x19dada(0x24d)](_0x1879f1):_0x1879f1)[_0x19dada(0x1a2)]()[_0x19dada(0x3dd)](_0x3931ab),_0x32998e=_0x229b03/0x2,_0x33b22f=_0x5743b8/0x2,_0x45b68f=this[_0x19dada(0x26d)][_0x19dada(0x330)];return _0x45b68f&&_0x45b68f['isLineShape']()?_0x45b68f[_0x19dada(0x23a)](_0x3307fc['x'],_0x3307fc['y'],_0x229b03,_0x5743b8):_0x3307fc['x']>=-_0x32998e-this['strokeWidth']/0x2&&_0x3307fc['x']<=_0x32998e+this[_0x19dada(0x1d3)]/0x2&&_0x3307fc['y']>=-_0x33b22f-this[_0x19dada(0x1d3)]/0x2&&_0x3307fc['y']<=_0x33b22f+this[_0x19dada(0x1d3)]/0x2;}[_0x2a50d1(0x2bd)](){const _0x585438=_0x2a50d1;this[_0x585438(0x1d8)]['dispose'](),this[_0x585438(0x26d)]['shapeModel']=null,super['dispose']();}},Nr=class extends _0x516f1f{constructor(_0x2d1b23,_0x382877){const _0x3057c6=_0x2a50d1;super(_0x2d1b23,_0x382877),q(this,_0x3057c6(0x40c),null),q(this,_0x3057c6(0x3fe),null),q(this,_0x3057c6(0x41e),null),q(this,_0x3057c6(0x1c3),null),_0x382877&&this[_0x3057c6(0x368)](_0x382877);}[_0x2a50d1(0x18a)](){const _0x3fd0d1=_0x2a50d1;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3fd0d1(0x40c)]};}['setShapeProps'](_0x579d9b){const _0x1bf7d5=_0x2a50d1;_0x579d9b['shapeId']!==void 0x0&&(this[_0x1bf7d5(0x40c)]=_0x579d9b[_0x1bf7d5(0x32c)]),_0x579d9b[_0x1bf7d5(0x1e1)]!==void 0x0&&(this[_0x1bf7d5(0x3fe)]=_0x579d9b[_0x1bf7d5(0x1e1)]),_0x579d9b[_0x1bf7d5(0x417)]!==void 0x0&&(this[_0x1bf7d5(0x41e)]=_0x579d9b[_0x1bf7d5(0x417)]),_0x579d9b[_0x1bf7d5(0x3ac)]!==void 0x0&&(this['_subUnitId']=_0x579d9b[_0x1bf7d5(0x3ac)]),this[_0x1bf7d5(0x364)]({'width':_0x579d9b[_0x1bf7d5(0x320)],'height':_0x579d9b['height']});}[_0x2a50d1(0x289)](_0x5869ac){const _0x5f1874=_0x2a50d1;_0x351bf8[_0x5f1874(0x363)](_0x5869ac,{'radius':_0xc3f276[_0x5f1874(0x2a3)],'fill':_0xc3f276[_0x5f1874(0x382)],'stroke':_0xc3f276[_0x5f1874(0x3f9)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x26d79d,_0xf403e6){return function(_0x658aaf,_0x517aea){_0xf403e6(_0x658aaf,_0x517aea,_0x26d79d);};}function X(_0x3abd14,_0x3f9f2f,_0x19e8fd,_0x2bb3f1){const _0x5b4125=_0x2a50d1;var _0x4074ef=arguments[_0x5b4125(0x384)],_0x41dfde=_0x4074ef<0x3?_0x3f9f2f:_0x2bb3f1===null?_0x2bb3f1=Object[_0x5b4125(0x398)](_0x3f9f2f,_0x19e8fd):_0x2bb3f1,_0x326b0b;if(typeof Reflect=='object'&&typeof Reflect[_0x5b4125(0x331)]=='function')_0x41dfde=Reflect['decorate'](_0x3abd14,_0x3f9f2f,_0x19e8fd,_0x2bb3f1);else{for(var _0x1c596b=_0x3abd14['length']-0x1;_0x1c596b>=0x0;_0x1c596b--)(_0x326b0b=_0x3abd14[_0x1c596b])&&(_0x41dfde=(_0x4074ef<0x3?_0x326b0b(_0x41dfde):_0x4074ef>0x3?_0x326b0b(_0x3f9f2f,_0x19e8fd,_0x41dfde):_0x326b0b(_0x3f9f2f,_0x19e8fd))||_0x41dfde);}return _0x4074ef>0x3&&_0x41dfde&&Object[_0x5b4125(0x387)](_0x3f9f2f,_0x19e8fd,_0x41dfde),_0x41dfde;}let Z=class extends _0x50b698{constructor(_0x2d9874,_0x6eb1c8,_0x473634,_0x16da4d,_0x1c1642,_0x2720af){const _0x5d6aaf=_0x2a50d1;super(),this['_drawingManagerService']=_0x2d9874,this[_0x5d6aaf(0x1c7)]=_0x6eb1c8,this[_0x5d6aaf(0x2f1)]=_0x473634,this[_0x5d6aaf(0x20f)]=_0x16da4d,this['_urlImageService']=_0x1c1642,this['_shapeFormulaService']=_0x2720af,q(this,_0x5d6aaf(0x3a0),new Map()),this[_0x5d6aaf(0x413)](this[_0x5d6aaf(0x231)][_0x5d6aaf(0x1eb)]['subscribe'](_0x330f6c=>{const _0x261c5c=_0x5d6aaf;var _0x2b34e3;(_0x2b34e3=this['_formulaShapes']['get'](this[_0x261c5c(0x17a)](_0x330f6c[_0x261c5c(0x417)],_0x330f6c['subUnitId'],_0x330f6c[_0x261c5c(0x32c)])))==null||_0x2b34e3['forEach'](_0x14bb4b=>_0x14bb4b[_0x261c5c(0x1f9)](_0x330f6c[_0x261c5c(0x21d)],_0x330f6c[_0x261c5c(0x201)]));})),this['disposeWithMe'](this[_0x5d6aaf(0x218)][_0x5d6aaf(0x1dd)][_0x5d6aaf(0x322)](_0x32c3fa=>{const _0x35bd3c=_0x5d6aaf;_0x32c3fa[_0x35bd3c(0x3a1)](_0x49fb78=>{const _0x54a44a=_0x35bd3c;this[_0x54a44a(0x231)][_0x54a44a(0x40e)]({'unitId':_0x49fb78['unitId'],'subUnitId':_0x49fb78['subUnitId'],'shapeId':_0x49fb78[_0x54a44a(0x3ab)]}),this[_0x54a44a(0x3a0)][_0x54a44a(0x1da)](this[_0x54a44a(0x17a)](_0x49fb78[_0x54a44a(0x417)],_0x49fb78[_0x54a44a(0x3ac)],_0x49fb78[_0x54a44a(0x3ab)]));});}));}['renderDrawingShape'](_0x1720a3,_0x4ca5a2,_0x723998){const _0xd3dbf6=_0x2a50d1;let {transform:_0x4c31e6,drawingType:_0x35b269,srcRect:_0x2060dc,prstGeom:_0x5d6df5,groupId:_0x261685,unitId:_0x240c8b,subUnitId:_0x29a2e3,drawingId:_0x5bc796,isMultiTransform:_0x29412f,transforms:_0x4a88a9,hidden:_0x3fe5f2,selectable:_0x82de0f}=_0x1720a3;if(_0x35b269!==_0x2af550[_0xd3dbf6(0x255)]||!this[_0xd3dbf6(0x218)][_0xd3dbf6(0x32d)]()||_0x4c31e6==null)return;let _0x5ae35a=this[_0xd3dbf6(0x218)][_0xd3dbf6(0x422)](),_0x129164=_0x29412f&&_0x4a88a9?_0x4a88a9:[_0x4c31e6],_0xfadfac=[];for(let _0x331701 of _0x129164){let {left:_0x5178d4,top:_0x1c1aaf,width:_0x4529fb,height:_0x11be92,angle:_0x17c4b3,flipX:_0x367abb,flipY:_0x4f4f2c,skewX:_0x473108,skewY:_0x291c9f}=_0x331701,_0x3db693=_0x129164[_0xd3dbf6(0x202)](_0x331701),_0x1166b0=_0x5b513c({'unitId':_0x240c8b,'subUnitId':_0x29a2e3,'drawingId':_0x5bc796},_0x29412f?_0x3db693:void 0x0),_0x445eca=_0x4ca5a2['getObjectIncludeInGroup'](_0x1166b0);if(_0x445eca!=null){let _0x72e2b4={'unitId':_0x240c8b,'subUnitId':_0x29a2e3,'shapeId':_0x5bc796};_0x445eca instanceof J&&this[_0xd3dbf6(0x19f)](_0x445eca,_0x72e2b4),_0x445eca[_0xd3dbf6(0x364)]({'left':_0x5178d4,'top':_0x1c1aaf,'width':_0x4529fb,'height':_0x11be92,'angle':_0x17c4b3,'flipX':_0x367abb,'flipY':_0x4f4f2c,'skewX':_0x473108,'skewY':_0x291c9f});continue;}let _0x6efd87=this[_0xd3dbf6(0x218)][_0xd3dbf6(0x3ff)](_0x240c8b,_0x29a2e3),_0x482e77=_0x6efd87[_0xd3dbf6(0x202)](_0x5bc796);if(_0x4ca5a2[_0xd3dbf6(0x244)](_0x1166b0)||!this[_0xd3dbf6(0x218)]['getDrawingVisible']())continue;let _0x2d77d0=this[_0xd3dbf6(0x1c7)]['getShapeModel'](_0x240c8b,_0x29a2e3,_0x5bc796);if(!_0x2d77d0)continue;let _0x3c3074=_0x4ff847(_0x2d77d0[_0xd3dbf6(0x335)]())?{..._0x40d762,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x40d762,_0x4cf4e3=_0x2d77d0[_0xd3dbf6(0x396)]()[_0xd3dbf6(0x359)],_0x28549e={'unitId':_0x240c8b,'subUnitId':_0x29a2e3,'shapeId':_0x5bc796};_0x4cf4e3&&this[_0xd3dbf6(0x231)][_0xd3dbf6(0x283)](_0x28549e,_0x4cf4e3);let _0x548b3b=new J(_0x1166b0,{..._0x331701,'zIndex':_0x482e77===-0x1?_0x6efd87['length']-0x1:_0x482e77,'shapeModel':_0x2d77d0,'localeService':this['_localeService'],'shapeId':_0x5bc796,'unitId':_0x240c8b,'subUnitId':_0x29a2e3,'visible':_0x3fe5f2!==!0x0,'evented':_0x82de0f!==!0x1,'formulaPresentation':_0x4cf4e3?this['_shapeFormulaService']['getPresentation'](_0x28549e):void 0x0,'animateFormulaPresentation':(_0x4cf4e3==null?void 0x0:_0x4cf4e3[_0xd3dbf6(0x201)])!==!0x1,'transformerConfig':_0x3c3074});if(_0x4cf4e3){let _0x5dce09=this[_0xd3dbf6(0x17a)](_0x240c8b,_0x29a2e3,_0x5bc796),_0x22fa26=this[_0xd3dbf6(0x3a0)]['get'](_0x5dce09)??new Set();_0x22fa26[_0xd3dbf6(0x29c)](_0x548b3b),this[_0xd3dbf6(0x3a0)][_0xd3dbf6(0x192)](_0x5dce09,_0x22fa26);}_0x4ca5a2[_0xd3dbf6(0x2bb)](_0x548b3b,_0x3ef936),_0x5ae35a&&_0x4ca5a2['attachTransformerTo'](_0x548b3b),_0x261685&&_0x5992ec({'drawingId':_0x261685,'unitId':_0x240c8b,'subUnitId':_0x29a2e3},_0x548b3b,_0x4ca5a2,this[_0xd3dbf6(0x218)]),_0x5d6df5!=null&&_0x548b3b['setPrstGeom'](_0x5d6df5),_0x2060dc!=null&&_0x548b3b['setSrcRect'](_0x2060dc);let _0x15a9db=this['_loadShapePictureFill'](_0x548b3b,_0x2d77d0[_0xd3dbf6(0x396)]());if(_0x15a9db){var _0x45d103;_0x723998==null||(_0x45d103=_0x723998[_0xd3dbf6(0x198)])==null||_0x45d103[_0xd3dbf6(0x29c)](_0x15a9db);}_0xfadfac[_0xd3dbf6(0x1bb)](_0x548b3b);}return _0xfadfac;}[_0x2a50d1(0x17a)](_0x5f2a13,_0x1bcd13,_0x2e03b1){return _0x5f2a13+'\x00'+_0x1bcd13+'\x00'+_0x2e03b1;}[_0x2a50d1(0x19f)](_0x5b19d6,_0x28910b){const _0x26851d=_0x2a50d1;let _0x275f7f=this[_0x26851d(0x1c7)][_0x26851d(0x38d)](_0x28910b[_0x26851d(0x417)],_0x28910b[_0x26851d(0x3ac)],_0x28910b[_0x26851d(0x32c)]),_0x4b49e6=_0x275f7f==null?void 0x0:_0x275f7f[_0x26851d(0x396)]()[_0x26851d(0x359)],_0x1b5e66=this['_formulaKey'](_0x28910b[_0x26851d(0x417)],_0x28910b[_0x26851d(0x3ac)],_0x28910b[_0x26851d(0x32c)]);if(_0x4b49e6){this[_0x26851d(0x231)][_0x26851d(0x283)](_0x28910b,_0x4b49e6);let _0x256e10=this[_0x26851d(0x3a0)][_0x26851d(0x17c)](_0x1b5e66)??new Set();_0x256e10[_0x26851d(0x29c)](_0x5b19d6),this[_0x26851d(0x3a0)][_0x26851d(0x192)](_0x1b5e66,_0x256e10);}else{var _0x592d33;this[_0x26851d(0x231)]['unregister'](_0x28910b),(_0x592d33=this[_0x26851d(0x3a0)][_0x26851d(0x17c)](_0x1b5e66))==null||_0x592d33[_0x26851d(0x1da)](_0x5b19d6);}_0x5b19d6[_0x26851d(0x1f9)](_0x4b49e6?this[_0x26851d(0x231)][_0x26851d(0x2cf)](_0x28910b):void 0x0,(_0x4b49e6==null?void 0x0:_0x4b49e6[_0x26851d(0x201)])!==!0x1);}['refreshShapeFillImage'](_0x543a42){const _0x44122c=_0x2a50d1;let _0x3d24d9=_0x543a42[_0x44122c(0x330)][_0x44122c(0x396)](),_0x5e01b2=_0x3d24d9[_0x44122c(0x236)];!_0x5e01b2||_0x5e01b2[_0x44122c(0x248)]!==_0x5d79d8[_0x44122c(0x39e)]||!_0x5e01b2[_0x44122c(0x327)]?_0x543a42[_0x44122c(0x42d)](void 0x0):this[_0x44122c(0x36f)](_0x543a42,_0x3d24d9);}[_0x2a50d1(0x36f)](_0xe6f699,_0x179596){const _0x245c51=_0x2a50d1;let _0x3b7b2f=_0x179596[_0x245c51(0x236)];if(!_0x3b7b2f||_0x3b7b2f[_0x245c51(0x248)]!==_0x5d79d8['PictureFill']||!_0x3b7b2f[_0x245c51(0x327)])return;let _0x2e3910=_0x3b7b2f['fillImageSource'],_0x254d14=_0x3b7b2f['fillImageSourceType']??_0x1ccec8[_0x245c51(0x32a)],_0x245a10=this[_0x245c51(0x20f)][_0x245c51(0x37f)](_0x2e3910,_0x254d14);if(_0x245a10)_0xe6f699[_0x245c51(0x42d)](_0x245a10);else return this[_0x245c51(0x2c7)](_0xe6f699,_0x2e3910,_0x254d14);}async['_loadAndSetImage'](_0x370f92,_0x36505a,_0x343634){const _0x3938d6=_0x2a50d1;let _0x102a0a;try{if(_0x343634===_0x1ccec8['UUID'])_0x102a0a=await this['_imageIoService'][_0x3938d6(0x347)](_0x36505a);else{if(_0x343634===_0x1ccec8[_0x3938d6(0x32a)])try{_0x102a0a=await this[_0x3938d6(0x2d4)][_0x3938d6(0x347)](_0x36505a);}catch{_0x102a0a=_0x36505a;}else _0x102a0a=_0x36505a;}}catch(_0x130f26){console[_0x3938d6(0x3f3)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x130f26);return;}await new Promise(_0x39365d=>{const _0x3a4a88=_0x3938d6;let _0x18a633=new window[(_0x3a4a88(0x36b))]();_0x18a633[_0x3a4a88(0x1b5)]=()=>{const _0x27e29a=_0x3a4a88;this['_imageIoService'][_0x27e29a(0x308)](_0x36505a,_0x343634,_0x18a633),_0x370f92[_0x27e29a(0x42d)](_0x18a633),_0x39365d();},_0x18a633[_0x3a4a88(0x247)]=()=>{const _0x194c97=_0x3a4a88;console[_0x194c97(0x3f3)](_0x194c97(0x3ea),_0x36505a),_0x39365d();},_0x18a633['src']=_0x102a0a;});}};Z=X([Y(0x0,_0x4f51fd),Y(0x1,_0x1cc97c(_0x19ac46)),Y(0x2,_0x1cc97c(_0x36fe41)),Y(0x3,_0x26d10e),Y(0x4,_0x70523b),Y(0x5,_0x1cc97c(_0x43dec2))],Z);let Pr=class extends _0x50b698{constructor(_0x487e4a,_0x411ecd,_0x41a704,_0x579c26,_0x5c1764,_0x325043){const _0x31fd96=_0x2a50d1;super(),this['_drawingManagerService']=_0x487e4a,this[_0x31fd96(0x1c7)]=_0x411ecd,this[_0x31fd96(0x431)]=_0x41a704,this[_0x31fd96(0x21e)]=_0x579c26,this['_univerInstanceService']=_0x5c1764,this[_0x31fd96(0x3a4)]=_0x325043,q(this,_0x31fd96(0x1fd),null),q(this,_0x31fd96(0x41e),null),q(this,'_subUnitId',null),q(this,_0x31fd96(0x295),void 0x0),q(this,_0x31fd96(0x1dc),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x31fd96(0x2a9),0x0),q(this,_0x31fd96(0x3fc),0x0),q(this,_0x31fd96(0x39a),0x0),q(this,_0x31fd96(0x1b8),!0x1),q(this,_0x31fd96(0x370),void 0x0),q(this,_0x31fd96(0x2ee),void 0x0),q(this,_0x31fd96(0x2a5),void 0x0),q(this,_0x31fd96(0x1b7),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x31fd96(0x1b6)](),this[_0x31fd96(0x407)]();}[_0x2a50d1(0x400)](_0xdcc04c,_0x1fade1,_0x17fa91){const _0x1bc28f=_0x2a50d1;let _0x3d4964=this[_0x1bc28f(0x1c7)][_0x1bc28f(0x38d)](_0xdcc04c,_0x1fade1,_0x17fa91);if(_0x3d4964)return _0x3d4964[_0x1bc28f(0x1c0)]();}[_0x2a50d1(0x415)](){const _0x3d762e=_0x2a50d1;this[_0x3d762e(0x3fa)]();}[_0x2a50d1(0x424)](){const _0x5b189a=_0x2a50d1;this[_0x5b189a(0x3d2)](!0x0);}['setShouldShowAdjust'](_0x4ef8ba){const _0x3ef475=_0x2a50d1;this[_0x3ef475(0x29d)]=_0x4ef8ba;}[_0x2a50d1(0x238)](_0x1b5b64,_0x2954e7,_0x3e74f6,_0x93223a){const _0x4d0276=_0x2a50d1;let _0x21c875=this['_sheetsShapeService'][_0x4d0276(0x38d)](_0x1b5b64,_0x2954e7,_0x3e74f6);if(_0x21c875)return _0x21c875[_0x4d0276(0x3f1)](_0x93223a);}['_createShapeAdjustControls'](_0xb3a733=!0x1){const _0x295e24=_0x2a50d1;if(this[_0x295e24(0x41e)]===null||this[_0x295e24(0x1c3)]===null||this['_activeShapeId']===null)return;let _0x22d8aa=this[_0x295e24(0x431)][_0x295e24(0x18e)](this[_0x295e24(0x41e)]);if(!_0x22d8aa||!_0x22d8aa['with'](_0x2df2f6)[_0x295e24(0x2e1)]())return;let {scene:_0x181009}=_0x22d8aa,_0x1953ea={'unitId':this['_unitId'],'subUnitId':this[_0x295e24(0x1c3)],'drawingId':this[_0x295e24(0x1fd)]},_0x35f386=this['_drawingManagerService']['getDrawingByParam'](_0x1953ea),{transform:_0x343b09}=_0x35f386;if(!_0x343b09||_0x35f386['drawingType']!==_0x2af550[_0x295e24(0x255)])return;let {left:_0x719d90,top:_0xdd5f95,width:_0x1fc0ca,height:_0x72ffa1,flipX:_0x14f53d,flipY:_0x21b315,angle:_0x1c8aad=0x0}=_0x343b09;if(_0x719d90===void 0x0||_0xdd5f95===void 0x0)return;if(_0xb3a733){let _0x4c16e8=this[_0x295e24(0x1c7)][_0x295e24(0x38d)](this[_0x295e24(0x41e)],this[_0x295e24(0x1c3)],this['_activeShapeId']);_0x4c16e8==null||_0x4c16e8['updateContext']({'width':_0x1fc0ca??0x0,'height':_0x72ffa1??0x0}),this['_activeShapeAdjustPointList']=_0x4c16e8==null?void 0x0:_0x4c16e8[_0x295e24(0x1c0)]();}let _0x17796d=this[_0x295e24(0x295)];for(let _0x2aafe4=0x0;_0x2aafe4<_0x17796d[_0x295e24(0x384)];_0x2aafe4++){let _0x4684c6=_0x17796d[_0x2aafe4],_0xafd3c4=_0x4684c6['x'],_0x4c34d9=_0x4684c6['y'];if(_0x14f53d&&(_0xafd3c4=(_0x1fc0ca||0x0)-_0xafd3c4),_0x21b315&&(_0x4c34d9=(_0x72ffa1||0x0)-_0x4c34d9),_0x1c8aad!==0x0){let _0x116bde=(_0x1fc0ca||0x0)/0x2,_0x18d6a6=(_0x72ffa1||0x0)/0x2,_0x219484=_0x1c8aad*Math['PI']/0xb4,_0x1fb4a7=Math['cos'](_0x219484),_0x4f3f23=Math[_0x295e24(0x1b9)](_0x219484),_0x410eaa=_0xafd3c4-_0x116bde,_0x152049=_0x4c34d9-_0x18d6a6;_0xafd3c4=_0x116bde+(_0x410eaa*_0x1fb4a7-_0x152049*_0x4f3f23),_0x4c34d9=_0x18d6a6+(_0x410eaa*_0x4f3f23+_0x152049*_0x1fb4a7);}let _0x109804={'x':_0xafd3c4,'y':_0x4c34d9,'adjName':_0x4684c6[_0x295e24(0x1e1)]};this[_0x295e24(0x3aa)](_0x181009,_0x109804,_0x109804[_0x295e24(0x1e1)],_0x719d90,_0xdd5f95,this['_unitId'],this[_0x295e24(0x1c3)]);}}[_0x2a50d1(0x3d2)](_0x4e35c6=!0x1){const _0x37cc39=_0x2a50d1;_0x4e35c6&&(this[_0x37cc39(0x3fa)](),this['_createShapeAdjustControls'](_0x4e35c6));}[_0x2a50d1(0x3aa)](_0x2f4a23,_0x331b2e,_0x2d57d0,_0x34d88f,_0xa56b44,_0x37713d,_0x25fd90){const _0x251a67=_0x2a50d1;if(!this[_0x251a67(0x1fd)])return;let _0x197273=_0x2f4a23['getObjectIncludeInGroup'](_0x251a67(0x3cd)+this[_0x251a67(0x1fd)]+'-'+_0x2d57d0);if(_0x197273){_0x197273['transformByState']({'left':_0x331b2e['x']+_0x34d88f-_0xc3f276['adjHandleSize'],'top':_0x331b2e['y']+_0xa56b44-_0xc3f276[_0x251a67(0x2a3)]});return;}let _0x4ce187={'left':_0x331b2e['x']+_0x34d88f-_0xc3f276[_0x251a67(0x2a3)],'top':_0x331b2e['y']+_0xa56b44-_0xc3f276[_0x251a67(0x2a3)],'adjName':_0x2d57d0,'shapeId':this['_activeShapeId'],'unitId':_0x37713d,'subUnitId':_0x25fd90,'width':_0xc3f276[_0x251a67(0x2a3)]+0x8,'height':_0xc3f276[_0x251a67(0x2a3)]+0x8,'zIndex':_0x3ef936+0x1,'evented':!0x0},_0x14e7a9=new Nr(_0x251a67(0x3cd)+this[_0x251a67(0x1fd)]+'-'+_0x2d57d0,_0x4ce187);this[_0x251a67(0x1dc)][_0x251a67(0x1bb)](_0x14e7a9),this[_0x251a67(0x1ba)](_0x14e7a9,_0x2f4a23,_0x2d57d0),_0x2f4a23[_0x251a67(0x2bb)](_0x14e7a9,_0x3ef936+0x1);}['_clearShapeAdjustControls'](){const _0x4b5eb7=_0x2a50d1;this[_0x4b5eb7(0x1dc)][_0x4b5eb7(0x384)]!==0x0&&(this[_0x4b5eb7(0x1dc)]['forEach'](_0x53d13c=>{const _0x3f226a=_0x4b5eb7;_0x53d13c[_0x3f226a(0x2bd)]();}),this[_0x4b5eb7(0x1dc)]=[]);}['_updateAdjustControlPositions'](){const _0x1a6075=_0x2a50d1;this[_0x1a6075(0x38e)]();}[_0x2a50d1(0x186)](_0x34434d,_0x2672a9){const _0x3fb703=_0x2a50d1;var _0x4bf6f0;let _0x1e4555={'x':0x0,'y':0x0};if(!_0x34434d||!_0x2672a9)return _0x1e4555;let _0x4430f7=this[_0x3fb703(0x431)][_0x3fb703(0x18e)](_0x34434d);if(!_0x4430f7||!_0x4430f7[_0x3fb703(0x3bf)](_0x2df2f6)[_0x3fb703(0x404)](_0x2672a9))return _0x1e4555;let _0x219520=_0x4430f7[_0x3fb703(0x3bf)](_0x4caf75),_0x559842=_0x219520==null?void 0x0:_0x219520[_0x3fb703(0x3a7)]();if(!_0x559842)return _0x1e4555;let _0x134b3f=(_0x4bf6f0=this['_univerInstanceService'][_0x3fb703(0x338)](_0x34434d))==null?void 0x0:_0x4bf6f0['getSheetBySheetId'](_0x2672a9);if(!_0x134b3f)return _0x1e4555;let _0x5518ab=_0x2ca51b(_0x559842[_0x3fb703(0x2e2)],_0x559842[_0x3fb703(0x23d)],_0x4430f7[_0x3fb703(0x3da)],_0x134b3f);return _0x5518ab?{'x':_0x5518ab[_0x3fb703(0x39d)],'y':_0x5518ab[_0x3fb703(0x2a8)]}:_0x1e4555;}[_0x2a50d1(0x3ed)](_0x59aaea,_0x55f504){const _0x3dcd1b=_0x2a50d1;var _0x44e784;let _0x5c58b7=(_0x44e784=this[_0x3dcd1b(0x1f8)][_0x3dcd1b(0x338)](_0x59aaea))==null?void 0x0:_0x44e784[_0x3dcd1b(0x2b8)](_0x55f504);return(_0x5c58b7==null?void 0x0:_0x5c58b7[_0x3dcd1b(0x421)]())??0x1;}[_0x2a50d1(0x1ba)](_0x1ab01,_0x40d61e,_0x32a62d){const _0x1711a4=_0x2a50d1;this[_0x1711a4(0x413)](_0x3d1611(_0x1ab01[_0x1711a4(0x2b2)][_0x1711a4(0x380)]((_0x10cfcb,_0x5f4f06)=>{const _0x3f1652=_0x1711a4;var _0x2f3ade,_0xabf239,_0x15e475,_0x120653;let _0x270698=_0x1ab01[_0x3f1652(0x18a)]();this['_activeAdjustInfo']=this[_0x3f1652(0x238)](_0x270698[_0x3f1652(0x417)],_0x270698[_0x3f1652(0x3ac)],_0x270698['drawingId'],_0x32a62d),this[_0x3f1652(0x2ee)]=this[_0x3f1652(0x1c7)]['getShapeModel'](_0x270698['unitId'],_0x270698[_0x3f1652(0x3ac)],_0x270698['drawingId']);let _0x32e4ba=this[_0x3f1652(0x218)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3f1652(0x1fd)]}),{transform:_0x51d886}=_0x32e4ba;if(_0x51d886){let {left:_0x49bfa1,top:_0x211924,width:_0x4eeaf6,height:_0x2b76a9}=_0x51d886;this[_0x3f1652(0x42a)]=_0x49bfa1||0x0,this[_0x3f1652(0x2a9)]=_0x211924||0x0,this[_0x3f1652(0x3fc)]=_0x4eeaf6||0x0,this[_0x3f1652(0x39a)]=_0x2b76a9||0x0;}let _0x3953a9=!!((_0x2f3ade=_0x32e4ba[_0x3f1652(0x3e1)])!=null&&_0x2f3ade[_0x3f1652(0x34d)]),_0x3de015=!!((_0xabf239=_0x32e4ba['transform'])!=null&&_0xabf239['flipY']),_0x2e3bd9=((_0x15e475=_0x32e4ba[_0x3f1652(0x3e1)])==null?void 0x0:_0x15e475[_0x3f1652(0x429)])||0x0;this[_0x3f1652(0x1b8)]=!0x0,_0x40d61e['disableObjectsEvent']();let _0x472193={...((_0x120653=this[_0x3f1652(0x370)])==null?void 0x0:_0x120653['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x40d61e['onPointerMove$'][_0x3f1652(0x380)]((_0x394ba8,_0x22bd04)=>{const _0x28f1d4=_0x3f1652;if(!this['_isStartAdjusting'])return;let {offsetX:_0xbbb36a,offsetY:_0x150d21}=_0x394ba8,_0x23fd89=this['_activeAdjustInfo'];if(this[_0x28f1d4(0x2ee)]&&_0x23fd89){_0x40d61e[_0x28f1d4(0x329)](),_0x40d61e[_0x28f1d4(0x19a)](_0x22db02[_0x28f1d4(0x341)]);let _0x269f31={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x487bc6=this[_0x28f1d4(0x186)](this[_0x28f1d4(0x41e)],this[_0x28f1d4(0x1c3)]),_0xc02816=this[_0x28f1d4(0x3ed)](this[_0x28f1d4(0x41e)],this[_0x28f1d4(0x1c3)]),_0x52839f=_0xbbb36a/_0xc02816+_0x487bc6['x']-this[_0x28f1d4(0x42a)],_0x3b40c4=_0x150d21/_0xc02816+_0x487bc6['y']-this[_0x28f1d4(0x2a9)];if(_0x2e3bd9!==0x0){let _0x76a590=this[_0x28f1d4(0x3fc)]/0x2,_0x55e79e=this['_baseShapeHeight']/0x2,_0x4884ff=_0x2e3bd9*Math['PI']/0xb4,_0x4f6bbc=Math['cos'](_0x4884ff),_0x2b0635=Math['sin'](_0x4884ff),_0x22d08c=_0x52839f-_0x76a590,_0x47bb27=_0x3b40c4-_0x55e79e;_0x52839f=_0x76a590+(_0x22d08c*_0x4f6bbc+_0x47bb27*_0x2b0635),_0x3b40c4=_0x55e79e+(-_0x22d08c*_0x2b0635+_0x47bb27*_0x4f6bbc);}_0x3953a9&&(_0x52839f=this[_0x28f1d4(0x3fc)]-_0x52839f),_0x3de015&&(_0x3b40c4=this[_0x28f1d4(0x39a)]-_0x3b40c4);let _0x3c0881={'x':_0x52839f,'y':_0x3b40c4},_0x1030e3=this['_activeShapeModel']['calcAdjValues'](_0x269f31,_0x3c0881,_0x23fd89,_0x3953a9,_0x3de015);if(Object[_0x28f1d4(0x209)](_0x1030e3)[_0x28f1d4(0x384)]===0x0)return;for(let [_0x1350d9,_0x462e14]of Object['entries'](_0x1030e3))this[_0x28f1d4(0x2ee)][_0x28f1d4(0x211)](_0x1350d9,_0x462e14);this[_0x28f1d4(0x2ee)][_0x28f1d4(0x246)]({'width':this['_baseShapeWidth'],'height':this[_0x28f1d4(0x39a)]});let _0x1b7d8c=this[_0x28f1d4(0x218)][_0x28f1d4(0x402)]({'unitId':_0x270698[_0x28f1d4(0x417)],'subUnitId':_0x270698[_0x28f1d4(0x3ac)],'drawingId':_0x270698[_0x28f1d4(0x3ab)]});_0x1b7d8c&&(this[_0x28f1d4(0x21e)]['renderDrawingShape'](_0x1b7d8c,_0x40d61e),this[_0x28f1d4(0x295)]=this['_getShapeAdjustPointListById'](_0x270698[_0x28f1d4(0x417)],_0x270698[_0x28f1d4(0x3ac)],_0x270698[_0x28f1d4(0x3ab)]),this[_0x28f1d4(0x224)]());}_0x22bd04[_0x28f1d4(0x2c6)]();}),this[_0x3f1652(0x1b7)]=_0x40d61e['onPointerUp$']['subscribeEvent']((_0x41be4c,_0x4eddd8)=>{const _0x2900eb=_0x3f1652;this[_0x2900eb(0x2a5)][_0x2900eb(0x212)](),this['_adjHandlerPointerUp'][_0x2900eb(0x212)](),_0x40d61e[_0x2900eb(0x305)]();let _0x2bcb6f=this[_0x2900eb(0x370)];if(_0x2bcb6f){let _0x1300fb=_0x270698['unitId'],_0x296f9a=_0x270698[_0x2900eb(0x3ac)],_0x8822a5=_0x270698[_0x2900eb(0x3ab)],_0x39d8ba={};for(let _0x18a084 of Object[_0x2900eb(0x209)](_0x2bcb6f['currentAdjustValues'])){var _0x400b30;let _0x1029da=(_0x400b30=this[_0x2900eb(0x2ee)])==null?void 0x0:_0x400b30[_0x2900eb(0x265)](_0x18a084);_0x1029da!==void 0x0&&(_0x39d8ba[_0x18a084]=_0x1029da);}Object[_0x2900eb(0x209)](_0x39d8ba)[_0x2900eb(0x384)]>0x0&&Dr(this[_0x2900eb(0x3a4)],_0x1300fb,_0x296f9a,_0x8822a5,{'oldShapeData':{'adjustValues':_0x472193}},{'adjustValues':_0x39d8ba});}this[_0x2900eb(0x370)]=void 0x0,this[_0x2900eb(0x2ee)]=void 0x0,this[_0x2900eb(0x1b8)]=!0x1,_0x4eddd8[_0x2900eb(0x2c6)](),_0x40d61e[_0x2900eb(0x2fe)]();}),_0x5f4f06[_0x3f1652(0x2c6)]();})));}[_0x2a50d1(0x407)](){const _0x415162=_0x2a50d1;let _0x89efdb=this[_0x415162(0x1f8)][_0x415162(0x205)](_0x31b64c[_0x415162(0x1a1)]);this[_0x415162(0x413)](_0x89efdb['pipe'](_0x40c277(_0x30db04=>_0x30db04?_0x30db04['activeSheet$']['pipe'](_0x40c277(_0x2e85b1=>{const _0x280fb5=_0x415162;if(!_0x2e85b1)return _0x3b739f;let _0x4c1f32=_0x30db04[_0x280fb5(0x346)](),_0x432f2c=this['_renderManagerService'][_0x280fb5(0x18e)](_0x4c1f32),_0x275a8d=_0x432f2c==null?void 0x0:_0x432f2c['scene'];return _0x275a8d?_0x23d707(_0x275a8d):_0x3b739f;})):_0x3b739f))[_0x415162(0x322)](_0x2032d4=>{const _0x1ba194=_0x415162;let _0xec963=_0x2032d4[_0x1ba194(0x403)]();this[_0x1ba194(0x413)](_0x2032d4[_0x1ba194(0x41c)]['subscribeEvent'](()=>{const _0x24201b=_0x1ba194;this[_0x24201b(0x29d)];})),this['disposeWithMe'](_0xec963['changeStart$'][_0x1ba194(0x322)](_0x5066fa=>{const _0x2fa34b=_0x1ba194;let {objects:_0x5713de}=_0x5066fa;this['_createShapeAdjustControls'](),_0x5713de!==null&&_0x5713de[_0x2fa34b(0x199)]===0x1&&_0x5713de[_0x2fa34b(0x273)]()[_0x2fa34b(0x399)]()[_0x2fa34b(0x351)]instanceof J&&this[_0x2fa34b(0x433)](!0x0);})),this['disposeWithMe'](_0xec963[_0x1ba194(0x1a3)][_0x1ba194(0x322)](()=>{this['_isShouldShowDrawingShapeAdjust']&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x2032d4[_0x1ba194(0x3de)][_0x1ba194(0x380)](()=>{const _0x80d08b=_0x1ba194;this[_0x80d08b(0x29d)]&&(this[_0x80d08b(0x433)](!0x1),this['_createShapeAdjustControls']());})),this[_0x1ba194(0x413)](_0xec963[_0x1ba194(0x42b)][_0x1ba194(0x322)](()=>{const _0x1ffac0=_0x1ba194;this[_0x1ffac0(0x41e)]&&this[_0x1ffac0(0x1c3)]&&this[_0x1ffac0(0x1fd)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x1ffac0(0x41e)],'subUnitId':this[_0x1ffac0(0x1c3)],'drawingId':this[_0x1ffac0(0x1fd)]})&&(this[_0x1ffac0(0x295)]=this[_0x1ffac0(0x400)](this[_0x1ffac0(0x41e)],this[_0x1ffac0(0x1c3)],this['_activeShapeId']),this['_updateAdjustControlPositions']());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x11e277=_0x2a50d1;this['disposeWithMe'](this[_0x11e277(0x3a4)][_0x11e277(0x2d3)](_0x4c4cb2=>{const _0x54e78b=_0x11e277;if(_0x4c4cb2['id']!==_0x1528ac['id'])return;let {unitId:_0x2ef7de,subUnitId:_0xed906d,shapeId:_0x152770}=_0x4c4cb2['params'];_0x2ef7de===this[_0x54e78b(0x41e)]&&_0xed906d===this['_subUnitId']&&_0x152770===this['_activeShapeId']&&this['refreshAdjustControls']();})),this[_0x11e277(0x413)](this[_0x11e277(0x218)][_0x11e277(0x309)][_0x11e277(0x322)](_0x5edec2=>{const _0x5b1c5e=_0x11e277;if(_0x5edec2[_0x5b1c5e(0x384)]===0x1){let _0x30b433=_0x5edec2[0x0];if(_0x30b433[_0x5b1c5e(0x271)]===_0x2af550[_0x5b1c5e(0x255)]&&this[_0x5b1c5e(0x1f8)][_0x5b1c5e(0x1f7)](_0x30b433['unitId'])===_0x31b64c['UNIVER_SHEET']){this['_activeShapeId']=_0x30b433[_0x5b1c5e(0x3ab)];let {unitId:_0x2208f0,subUnitId:_0x4c71c3}=_0x30b433;this['_activeShapeAdjustPointList']=this[_0x5b1c5e(0x400)](_0x2208f0,_0x4c71c3,this[_0x5b1c5e(0x1fd)]),this[_0x5b1c5e(0x41e)]=_0x2208f0,this[_0x5b1c5e(0x1c3)]=_0x4c71c3,this[_0x5b1c5e(0x3fa)](),this[_0x5b1c5e(0x38e)]();return;}}this['_activeShapeId']=null,this[_0x5b1c5e(0x295)]=void 0x0,this[_0x5b1c5e(0x41e)]=null,this[_0x5b1c5e(0x1c3)]=null,this['_clearShapeAdjustControls']();})),this['disposeWithMe'](this[_0x11e277(0x218)][_0x11e277(0x215)][_0x11e277(0x322)](_0x39ce30=>{const _0x38cb54=_0x11e277;if(_0x39ce30['length']===0x1){var _0x69d0d6;let _0x26d0a2=_0x39ce30[0x0];((_0x69d0d6=this[_0x38cb54(0x218)]['getDrawingByParam'](_0x26d0a2))==null?void 0x0:_0x69d0d6[_0x38cb54(0x271)])===_0x2af550[_0x38cb54(0x255)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x11e277(0x413)](this[_0x11e277(0x218)][_0x11e277(0x1dd)][_0x11e277(0x322)](_0xc02cf0=>{const _0x37623f=_0x11e277;for(let _0x254e96 of _0xc02cf0)this[_0x37623f(0x1fd)]===_0x254e96[_0x37623f(0x3ab)]&&(this['_activeShapeId']=null,this[_0x37623f(0x295)]=void 0x0,this[_0x37623f(0x41e)]=null,this[_0x37623f(0x1c3)]=null,this[_0x37623f(0x3fa)]());}));}};Pr=X([Y(0x0,_0x4f51fd),Y(0x1,_0x1cc97c(_0x19ac46)),Y(0x2,_0x1cc97c(_0x5ee803)),Y(0x3,_0x1cc97c(Z)),Y(0x4,_0x3a5e32),Y(0x5,_0x36cb63)],Pr);const Fr={'id':_0x2a50d1(0x27f),'type':_0x265116[_0x2a50d1(0x28b)],'handler':(_0x81188d,_0x1e53b6)=>{const _0x3a5182=_0x2a50d1;let _0x505a4e=_0x81188d[_0x3a5182(0x17c)](_0x4f51fd),_0x1749b8=_0x81188d[_0x3a5182(0x17c)](_0x5ee803),_0x420fcc=_0x81188d[_0x3a5182(0x17c)](Pr);if(_0x1e53b6==null)return!0x0;if(_0x1e53b6[_0x3a5182(0x384)]>0x0){var _0x115e82;let _0x3cf7f9=(_0x115e82=_0x1749b8['getRenderUnitById'](_0x1e53b6[0x0][_0x3a5182(0x417)]))==null?void 0x0:_0x115e82[_0x3a5182(0x3da)];if(_0x3cf7f9){let {unitId:_0x30f506,subUnitId:_0x164288,drawingId:_0xc79fb}=_0x1e53b6[0x0],_0x3c184c=_0x5b513c({'unitId':_0x30f506,'subUnitId':_0x164288,'drawingId':_0xc79fb},void 0x0),_0x572967=_0x3cf7f9[_0x3a5182(0x244)](_0x3c184c);if(_0x572967){var _0x58f024;(_0x58f024=_0x1749b8[_0x3a5182(0x18e)](_0x1e53b6[0x0]['unitId']))==null||(_0x58f024=_0x58f024[_0x3a5182(0x3da)][_0x3a5182(0x391)]())==null||_0x58f024['activeAnObject'](_0x572967);}}_0x505a4e[_0x3a5182(0x1ec)](_0x1e53b6),_0x420fcc[_0x3a5182(0x433)](!0x1);}return!0x0;}},Ir={'type':_0x265116[_0x2a50d1(0x2ea)],'id':_0x2a50d1(0x2d5),'handler':async(_0x1b7d42,_0xc8a313)=>{const _0x21560b=_0x2a50d1;let _0x3dc3cf=_0x2a6e27(_0x1b7d42['get'](_0x3a5e32));if(!_0x3dc3cf)return!0x1;let _0x53c716=_0x1b7d42[_0x21560b(0x17c)](_0x1e5107)[_0x21560b(0x315)]();if(!_0x53c716)return!0x1;let _0x166d9b=_0x1b7d42[_0x21560b(0x17c)](_0x36cb63),{unitId:_0x564f9a,subUnitId:_0x40802e}=_0x3dc3cf,{value:_0x173ac6,enhanceParams:_0x8da095}=_0xc8a313,{range:_0x5a7cd9}=_0x53c716,_0x18bd65={'unitId':_0x564f9a,'subUnitId':_0x40802e,'shapeType':_0x173ac6,'range':_0x5a7cd9,'shapeId':_0x4b43ac()};if(_0x8da095){let _0x16db35=_0x4ff847(_0x173ac6),_0x24325d=_0x173ac6===_0x37b1c4[_0x21560b(0x2f6)];_0x16db35&&(_0x8da095[_0x21560b(0x21b)]||_0x8da095[_0x21560b(0x314)])&&(_0x18bd65[_0x21560b(0x342)]={'ln':{'startArrow':_0x8da095['startArrow']?{'type':_0xd004b['Arrow'],'size':_0x27118a[_0x21560b(0x344)]}:void 0x0,'endArrow':_0x8da095['endArrow']?{'type':_0xd004b[_0x21560b(0x34e)],'size':_0x27118a[_0x21560b(0x313)]}:void 0x0}}),_0x24325d&&(_0x8da095[_0x21560b(0x1df)]||_0x8da095[_0x21560b(0x35b)])&&(_0x18bd65['shapeData']=_0x58d335({'fill':{'fillType':_0x5d79d8['SolidFill'],'color':_0x21560b(0x2cc)},'isHorizontal':!!_0x8da095['horizontal'],'stroke':{'lineStrokeType':_0x4226d3[_0x21560b(0x1d5)],'width':0x1,'color':_0x21560b(0x274)}}));}let _0x51f2ea=_0x166d9b[_0x21560b(0x267)](_0x274bf7['id'],_0x18bd65);return setTimeout(()=>{_0x166d9b['executeCommand'](Fr['id'],[{'unitId':_0x564f9a,'subUnitId':_0x40802e,'drawingId':_0x18bd65['shapeId']}]);},0xc8),_0x51f2ea;}},Lr=_0x2a50d1(0x35d),Rr='sheet.shape.object-list.panel',zr=_0x2a50d1(0x245),Br=_0x2a50d1(0x29e),Vr=_0x1dc9ba(_0x2a50d1(0x23e)),Hr=_0x2a50d1(0x225),Ur={'id':'sheet.operation.open-shape-object-list-panel','type':_0x265116[_0x2a50d1(0x2ea)],'handler':(_0x49ee38,_0x394206)=>{const _0xc38397=_0x2a50d1;let _0x1d22c6=_0x49ee38[_0xc38397(0x17c)](_0x5dcc97),_0x380047=_0x49ee38['get'](_0x36fe41),_0x12cd30=_0x49ee38['get'](_0x3a5e32),_0x41457a=_0x49ee38[_0xc38397(0x17c)](_0x36cb63);return _0x2a6e27(_0x12cd30)?(_0x394206==null?void 0x0:_0x394206[_0xc38397(0x351)])===_0xc38397(0x1fa)?(_0x1d22c6[_0xc38397(0x1fa)](Rr),!0x0):(_0x1d22c6[_0xc38397(0x2c1)]({'id':Rr,'header':{'title':_0x380047['t'](_0xc38397(0x264))},'children':{'label':Rr},'onClose':()=>{const _0x477560=_0xc38397;_0x41457a[_0x477560(0x267)](_0xee5ddf['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x265116[_0x2a50d1(0x28b)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Gr(_0x2713d3){const _0x4c2b33=_0x2a50d1;let _0x5d4dc0=_0x2713d3[_0x4c2b33(0x17c)](_0x4f51fd)['getFocusDrawings'](),_0x6d07a0=_0x5d4dc0[_0x4c2b33(0x384)]===0x1?_0x5d4dc0[0x0]:null;if(!_0x6d07a0||_0x6d07a0[_0x4c2b33(0x271)]!==_0x2af550[_0x4c2b33(0x255)])return null;let _0xcc63d8=_0x2713d3[_0x4c2b33(0x17c)](_0x19ac46),_0x2d4996=_0xcc63d8[_0x4c2b33(0x1f4)](_0x6d07a0[_0x4c2b33(0x417)],_0x6d07a0[_0x4c2b33(0x3ac)],_0x6d07a0[_0x4c2b33(0x3ab)]),_0x3795cf=_0xcc63d8[_0x4c2b33(0x180)](_0x6d07a0['unitId'],_0x6d07a0[_0x4c2b33(0x3ac)],_0x6d07a0['drawingId']);return _0x2d4996===void 0x0||!_0x3795cf?null:{'drawing':_0x6d07a0,'shapeData':_0x3795cf,'shapeType':_0x2d4996};}const Kr={'id':_0x2a50d1(0x3e3),'type':_0x265116[_0x2a50d1(0x28b)],'handler':(_0x180be9,_0x31d518)=>{const _0x2f7e64=_0x2a50d1;let _0x40dcba=Gr(_0x180be9),_0x94bb77=_0x22a347((_0x31d518==null?void 0x0:_0x31d518[_0x2f7e64(0x1ac)])??(_0x31d518==null?void 0x0:_0x31d518[_0x2f7e64(0x351)])??'');if(!_0x40dcba||!_0x94bb77||_0x94bb77[_0x2f7e64(0x293)]!==_0x2c40c1(_0x40dcba[_0x2f7e64(0x342)]))return!0x1;let _0x5ba516=_0x55f306(_0x40dcba[_0x2f7e64(0x342)],_0x94bb77);if(!_0x5ba516)return!0x1;let {drawing:_0x5e4ce0}=_0x40dcba;return _0x180be9[_0x2f7e64(0x17c)](_0x36cb63)[_0x2f7e64(0x2b5)](K['id'],{'unitId':_0x5e4ce0[_0x2f7e64(0x417)],'subUnitId':_0x5e4ce0[_0x2f7e64(0x3ac)],'shapeId':_0x5e4ce0['drawingId'],'shapeData':_0x5ba516,'oldShapeJSON':{'oldShapeData':_0x40dcba['shapeData']}});}},qr={'id':_0x2a50d1(0x3fd),'type':_0x265116[_0x2a50d1(0x28b)],'handler':(_0x243665,_0x1e4f5d)=>{const _0x57baf6=_0x2a50d1;let _0xbf0f8c=Gr(_0x243665),_0x108cc3=(_0x1e4f5d==null?void 0x0:_0x1e4f5d['shapeType'])??(_0x1e4f5d==null?void 0x0:_0x1e4f5d[_0x57baf6(0x351)]);if(!_0xbf0f8c||!_0x108cc3||_0x4ff847(_0xbf0f8c['shapeType'])||_0x4ff847(_0x108cc3))return!0x1;let _0x15099c=_0x582c9b(_0xbf0f8c[_0x57baf6(0x342)],_0x108cc3);if(!_0x15099c)return!0x1;let {drawing:_0x4843e8}=_0xbf0f8c;return _0x243665[_0x57baf6(0x17c)](_0x36cb63)[_0x57baf6(0x2b5)](K['id'],{'unitId':_0x4843e8[_0x57baf6(0x417)],'subUnitId':_0x4843e8[_0x57baf6(0x3ac)],'shapeId':_0x4843e8[_0x57baf6(0x3ab)],'shapeType':_0x108cc3,'shapeData':_0x15099c,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0xbf0f8c[_0x57baf6(0x334)],'oldShapeData':_0xbf0f8c['shapeData']}});}};let Q=class extends _0x50b698{constructor(_0xfb4bec,_0x22d7ee){const _0x5351e3=_0x2a50d1;super(),this['_clipService']=_0xfb4bec,this[_0x5351e3(0x218)]=_0x22d7ee,this[_0x5351e3(0x3bb)](),this[_0x5351e3(0x26c)][_0x5351e3(0x292)](!0x0),this[_0x5351e3(0x413)]({'dispose':()=>this[_0x5351e3(0x26c)]['setCanUseShapeClip'](!0x1)});}[_0x2a50d1(0x3bb)](){const _0x2d5d63=_0x2a50d1;let _0x3b4440=this['_clipService'],_0x2e951b=new Map(),_0x3b5c3e=_0x3b4440[_0x2d5d63(0x33d)]((_0x5be0ca,_0x410bc2,_0x5e3b3b,_0xda2d2d,_0x22a7fe)=>{const _0x49c16a=_0x2d5d63;let _0x4518b8=_0x410bc2;if(_0x4518b8===_0x37b1c4[_0x49c16a(0x3bc)]||_0x410bc2===_0x49c16a(0x1c9))return!0x1;try{let _0x4d9c5a=_0x2e951b[_0x49c16a(0x17c)](_0x410bc2);return _0x4d9c5a||(_0x4d9c5a=new _0x515211(_0x4518b8,_0x49c16a(0x25a)+_0x410bc2),_0x2e951b[_0x49c16a(0x192)](_0x410bc2,_0x4d9c5a)),_0x4d9c5a[_0x49c16a(0x1d4)](),_0x22a7fe&&Object[_0x49c16a(0x209)](_0x22a7fe)[_0x49c16a(0x384)]>0x0&&_0x4d9c5a[_0x49c16a(0x3b5)]({'adjustValues':_0x22a7fe},!0x0),_0x4d9c5a[_0x49c16a(0x246)]({'width':_0x5e3b3b,'height':_0xda2d2d}),_0x4d9c5a[_0x49c16a(0x227)](_0x5be0ca,{'left':0x0,'top':0x0,'width':_0x5e3b3b,'height':_0xda2d2d});}catch{return!0x1;}});this[_0x2d5d63(0x413)](_0x3b5c3e),this[_0x2d5d63(0x413)]({'dispose':()=>_0x2e951b[_0x2d5d63(0x28a)]()});}[_0x2a50d1(0x321)](_0x363050,_0x58b51a,_0x5b62c5,_0x13729f,_0x35776a){const _0x13152a=_0x2a50d1;let _0x1a7a82=this['_drawingManagerService']['getDrawingData'](_0x363050,_0x58b51a);if(!_0x1a7a82[_0x5b62c5])return;let _0x4eaff2={..._0x1a7a82[_0x5b62c5],'prstGeom':_0x13729f,'adjustValues':_0x35776a};this[_0x13152a(0x218)][_0x13152a(0x1ed)]([_0x4eaff2]);}};Q=X([Y(0x0,_0x1cc97c(_0x241f11)),Y(0x1,_0x1cc97c(_0x4f51fd))],Q);const Jr='sheet.shape.picker.component',Yr=_0x2a50d1(0x2f2);function Xr({onShapeClick:_0x31e2f3,excludeGroups:_0x520c49}){const _0x24ebb1=_0x2a50d1;return _0x52d2b9(_0x5e2214,{'excludeGroups':_0x520c49,'onShapeClick':_0x31e2f3,'scrollContainer':_0x24ebb1(0x268)});}function Zr(){const _0x460a4a=_0x2a50d1;let _0x5572d5=_0x3f0a9f(_0x4f51fd),_0x2383fd=_0x3f0a9f(Q);return _0x52d2b9(_0x327cdc,{'buttonLabel':_0x460a4a(0x249),'excludeGroups':[_0x3180c3[_0x460a4a(0x32e)]],'onShapeClick':_0x32abaa=>{const _0x36a8d2=_0x460a4a;let _0x4644cf=_0x5572d5['getFocusDrawings']()[_0x36a8d2(0x3f4)](_0x1568a6=>_0x1568a6[_0x36a8d2(0x271)]===_0x2af550[_0x36a8d2(0x366)]);if(!_0x4644cf)return;let {unitId:_0x484e0d,subUnitId:_0x2b5fad,drawingId:_0x4f6435}=_0x4644cf;_0x2383fd[_0x36a8d2(0x321)](_0x484e0d,_0x2b5fad,_0x4f6435,_0x32abaa[_0x36a8d2(0x293)]);}});}function Qr(){const _0xa4a47b=_0x2a50d1;let _0x57860e=_0x3f0a9f(_0x4f51fd),_0x35ce5e=_0x3f0a9f(Q);return _0x52d2b9(_0x327cdc,{'buttonLabel':_0xa4a47b(0x249),'excludeGroups':[_0x3180c3[_0xa4a47b(0x32e)]],'DropdownComponent':_0x5bc64f,'onShapeClick':_0x2bef2d=>{const _0x411f66=_0xa4a47b;let _0x4025e5=_0x57860e[_0x411f66(0x1ab)]()[_0x411f66(0x3f4)](_0x40ad1c=>_0x40ad1c[_0x411f66(0x271)]===_0x2af550['DRAWING_IMAGE']);if(!_0x4025e5)return;let {unitId:_0x463d6b,subUnitId:_0x3a044e,drawingId:_0x63ebe4}=_0x4025e5;_0x35ce5e[_0x411f66(0x321)](_0x463d6b,_0x3a044e,_0x63ebe4,_0x2bef2d[_0x411f66(0x293)]);}});}function $r(){const _0x4b382d=_0x2a50d1;let _0x477fa4=_0x3f0a9f(_0x1532b8),_0xca3ff7=_0x3f0a9f(_0x4f51fd),_0x457a05=_0x3f0a9f(_0x3a5e32),_0xa460c8=_0xca3ff7[_0x4b382d(0x1ab)]()[0x0],_0x49ea87=_0xa460c8?_0x457a05[_0x4b382d(0x1f7)](_0xa460c8[_0x4b382d(0x417)]):void 0x0,_0x509599=_0x49ea87===_0x31b64c[_0x4b382d(0x2bc)]?_0x4b382d(0x3be):_0x49ea87===_0x31b64c[_0x4b382d(0x1a1)]?Yr:void 0x0,_0x17d1cc=_0x509599?_0x477fa4[_0x4b382d(0x17c)](_0x509599):void 0x0;return _0x17d1cc?_0x52d2b9(_0x17d1cc,{}):null;}function ei(){let _0x1ffe18=_0x3f0a9f(_0x36cb63);return _0x52d2b9(Xr,{'onShapeClick':_0x1a11ad=>{const _0x4cfc15=_0x2867;_0x1ffe18[_0x4cfc15(0x2b5)](Ir['id'],{'value':_0x1a11ad[_0x4cfc15(0x293)],'enhanceParams':{'endArrow':_0x1a11ad['endArrow'],'startArrow':_0x1a11ad[_0x4cfc15(0x21b)],'horizontal':_0x1a11ad[_0x4cfc15(0x1df)],'vertical':_0x1a11ad[_0x4cfc15(0x35b)]}});}});}function ti(){return _0x52d2b9(ei,{});}function ni(_0x517afe){const _0x9d34f7=_0x2a50d1;let _0x3874d7=_0x517afe[_0x9d34f7(0x17c)](_0x3a5e32);return{'id':Ir['id'],'type':_0x19e1a8[_0x9d34f7(0x1ce)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':'ShapeIcon','tooltip':_0x9d34f7(0x394),'activated$':_0x482e3a(_0x3874d7,!0x1,()=>new _0x53640f(_0x4eebfc=>{_0x4eebfc['next'](!0x1);})),'hidden$':_0xdcbdfa(_0x517afe,_0x31b64c['UNIVER_SHEET']),'disabled$':_0x29453b(_0x517afe)};}function ri(_0xe41961){const _0x27bba6=_0x2a50d1;let _0x21f9a6=_0xe41961[_0x27bba6(0x17c)](_0x3a5e32);return{'id':Ur['id'],'type':_0x19e1a8[_0x27bba6(0x3b7)],'icon':_0x27bba6(0x262),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x27bba6(0x303),'activated$':_0x482e3a(_0x21f9a6,!0x1,()=>new _0x53640f(_0x39b4f3=>{_0x39b4f3['next'](!0x1);})),'hidden$':_0xdcbdfa(_0xe41961,_0x31b64c[_0x27bba6(0x1a1)]),'disabled$':_0x29453b(_0xe41961)};}const ii='sheet.menu.shape.flip-horizontal',ai=_0x2a50d1(0x3cf);function oi(_0x3eccfa){const _0x3555ed=_0x2a50d1;let _0xf81a7c=_0x3eccfa[_0x3555ed(0x17c)](_0x4f51fd)[_0x3555ed(0x1ab)]();return _0xf81a7c[_0x3555ed(0x384)]===0x1&&_0xf81a7c[0x0]['drawingType']===_0x2af550[_0x3555ed(0x255)]?_0xf81a7c[0x0]:null;}function si(_0x18e056){const _0x1c7590=_0x2a50d1;let _0x4c1c81=_0x18e056[_0x1c7590(0x17c)](_0x4f51fd);return _0x4c1c81[_0x1c7590(0x309)][_0x1c7590(0x1e5)](_0x368cba(_0x4c1c81[_0x1c7590(0x1ab)]()),_0xb844e2(_0x548a39=>_0x548a39['length']!==0x1||_0x548a39[0x0][_0x1c7590(0x271)]!==_0x2af550[_0x1c7590(0x255)]));}function ci(_0x51e6b4){const _0x5c7cac=_0x2a50d1;return{'id':ii,'commandId':_0x38de8d['id'],'type':_0x19e1a8[_0x5c7cac(0x3b7)],'title':_0x5c7cac(0x426),'tooltip':_0x5c7cac(0x426),'icon':_0x5c7cac(0x232),'hidden$':si(_0x51e6b4),'params':()=>{const _0xd29f9=_0x5c7cac;let _0x54dc39=oi(_0x51e6b4);return _0x54dc39?{'unitId':_0x54dc39['unitId'],'subUnitId':_0x54dc39[_0xd29f9(0x3ac)],'shapeId':_0x54dc39[_0xd29f9(0x3ab)],'flipH':!0x0}:void 0x0;}};}function li(_0x208d83){const _0x341e1d=_0x2a50d1;return{'id':ai,'commandId':_0x38de8d['id'],'type':_0x19e1a8[_0x341e1d(0x3b7)],'title':_0x341e1d(0x416),'tooltip':_0x341e1d(0x416),'icon':'FlipVerticalIcon','hidden$':si(_0x208d83),'params':()=>{const _0x48c3c8=_0x341e1d;let _0x3b06a0=oi(_0x208d83);return _0x3b06a0?{'unitId':_0x3b06a0[_0x48c3c8(0x417)],'subUnitId':_0x3b06a0[_0x48c3c8(0x3ac)],'shapeId':_0x3b06a0[_0x48c3c8(0x3ab)],'flipV':!0x0}:void 0x0;}};}const ui=_0x2a50d1(0x182),di='sheets-shape-ui.shape-format.style-ribbon-control',fi=_0x2a50d1(0x1c2),pi=_0x2a50d1(0x41a);function mi(){let _0x621d5f=_0x3f0a9f(_0x36cb63),_0x438265=_0x3f0a9f(_0x4f51fd),_0x1bcc25=_0x3f0a9f(_0x19ac46),_0x242919=()=>{const _0x1fd0ab=_0x2867;var _0x315977;let _0x514ffe=_0x438265[_0x1fd0ab(0x1ab)]();if(_0x514ffe[_0x1fd0ab(0x384)]!==0x1||((_0x315977=_0x514ffe[0x0])==null?void 0x0:_0x315977[_0x1fd0ab(0x271)])!==_0x2af550[_0x1fd0ab(0x255)])return null;let {unitId:_0x43c5d4,subUnitId:_0x524f8d,drawingId:_0x5f09c9}=_0x514ffe[0x0],_0x3fc2bc=_0x1bcc25[_0x1fd0ab(0x1f4)](_0x43c5d4,_0x524f8d,_0x5f09c9),_0x3175ac=_0x1bcc25[_0x1fd0ab(0x180)](_0x43c5d4,_0x524f8d,_0x5f09c9);return _0x3fc2bc===void 0x0||!_0x3175ac?null:{'unitId':_0x43c5d4,'subUnitId':_0x524f8d,'drawingId':_0x5f09c9,'shapeType':_0x3fc2bc,'shapeData':_0x3175ac};},_0x51d776=_0x11888b(()=>new _0x53640f(_0x327005=>{const _0x13bae6=_0x2867;let _0x23bd4f=()=>_0x327005['next'](_0x242919()),_0x2c5402=_0x438265[_0x13bae6(0x309)][_0x13bae6(0x322)](_0x23bd4f),_0xcf7004=_0x621d5f['onCommandExecuted'](_0x2c0efe=>{_0x2c0efe['id']===_0x1528ac['id']&&_0x23bd4f();});return _0x23bd4f(),()=>{const _0x2f57eb=_0x13bae6;_0x2c5402['unsubscribe'](),_0xcf7004[_0x2f57eb(0x2bd)]();};}),_0x242919(),!0x1,[_0x621d5f,_0x438265,_0x1bcc25]);return{'selection':_0x51d776,'updateShapeData':_0x237564=>{const _0x499800=_0x2867;_0x51d776&&Dr(_0x621d5f,_0x51d776[_0x499800(0x417)],_0x51d776[_0x499800(0x3ac)],_0x51d776['drawingId'],{'oldShapeData':_0x51d776[_0x499800(0x342)]},_0x237564);}};}function hi(){const _0x50dfd9=_0x2a50d1;let {selection:_0x4313e3,updateShapeData:_0x3a235e}=mi();return _0x4313e3?_0x52d2b9(_0x564138,{'shapeData':_0x4313e3[_0x50dfd9(0x342)],'shapeType':_0x4313e3[_0x50dfd9(0x334)],'onUpdateShapeData':_0x3a235e}):null;}function gi(){const _0x3ad050=_0x2a50d1;let _0x298adc=_0x3f0a9f(_0x36cb63),_0x1b29a2=_0x3f0a9f(_0x36fe41),{selection:_0x4fe955}=mi();return _0x4fe955?_0x52d2b9(_0x515359,{'type':_0x2c40c1(_0x4fe955[_0x3ad050(0x342)]),'ariaLabel':_0x1b29a2['t'](_0x3ad050(0x18b)),'activePresetId':_0x451e8c(_0x4fe955[_0x3ad050(0x342)]),'onSelect':_0x18e062=>_0x298adc[_0x3ad050(0x2b5)](Kr['id'],{'presetId':_0x18e062})}):null;}function _i(){const _0x3705b7=_0x2a50d1;let {selection:_0x5de237,updateShapeData:_0x209751}=mi();return _0x5de237?_0x52d2b9(_0x21a224,{'fontFamilyPopupDataComponent':_0x3705b7(0x425),'shapeData':_0x5de237[_0x3705b7(0x342)],'onUpdateShapeData':_0x209751}):null;}function vi(){const _0x53ea91=_0x2a50d1;var _0x33aa67;let {selection:_0x484fab,updateShapeData:_0x1a58f1}=mi(),_0x2b1759=_0x17d98c({'hostType':_0x31b64c[_0x53ea91(0x1a1)],'unitId':(_0x484fab==null?void 0x0:_0x484fab[_0x53ea91(0x417)])??'','subUnitId':(_0x484fab==null?void 0x0:_0x484fab[_0x53ea91(0x3ac)])??'','shapeId':(_0x484fab==null?void 0x0:_0x484fab[_0x53ea91(0x3ab)])??'','shapeData':_0x484fab==null?void 0x0:_0x484fab[_0x53ea91(0x342)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x53ea91(0x188),'onUpdateBinding':_0x144bb6=>_0x1a58f1({'formulaBinding':_0x144bb6})}),_0xc6fe94=((_0x33aa67=_0x2b1759[_0x53ea91(0x2eb)])==null?void 0x0:_0x33aa67[_0x53ea91(0x2d1)](_0x8a31a4=>_0x8a31a4[_0x53ea91(0x27d)])['filter'](_0xf8b3f0=>_0xf8b3f0['visible']!==!0x1))??[];return _0x484fab!=null&&_0x484fab[_0x53ea91(0x342)][_0x53ea91(0x359)]?_0x52d2b9(_0x1a8087,{'actions':_0xc6fe94,'panel':_0x2b1759[_0x53ea91(0x203)]}):null;}const yi=_0x2a50d1(0x285),bi=_0x2a50d1(0x22f),xi='sheets-shape-ui.ribbon.shape-format.formula-control',Si=_0x2a50d1(0x23c),Ci=_0x2a50d1(0x3ce),wi=_0x2a50d1(0x37d),Ti=_0x2a50d1(0x28e);function Ei(_0x435236){const _0x164740=_0x2a50d1;let _0x2a671b=_0x435236[_0x164740(0x17c)](_0x36cb63),_0x52738c=_0x435236['get'](_0x4f51fd),_0x48977c=_0x435236['get'](_0x19ac46);return new _0x53640f(_0x1cf05a=>{const _0x2495f0=_0x164740;let _0x5a6a6e=()=>{const _0x46559c=_0x2867;let _0xeedeb7=Di(_0x435236),_0x6aa96e=_0xeedeb7?_0x48977c[_0x46559c(0x180)](_0xeedeb7[_0x46559c(0x417)],_0xeedeb7[_0x46559c(0x3ac)],_0xeedeb7[_0x46559c(0x3ab)]):null;_0x1cf05a[_0x46559c(0x399)](_0x6aa96e?_0x451e8c(_0x6aa96e)??'':'');},_0x1b71b5=_0x52738c[_0x2495f0(0x309)]['subscribe'](_0x5a6a6e),_0x299628=_0x2a671b[_0x2495f0(0x2d3)](_0xd3a82a=>{_0xd3a82a['id']===_0x1528ac['id']&&_0x5a6a6e();});return _0x5a6a6e(),()=>{const _0x745282=_0x2495f0;_0x1b71b5[_0x745282(0x212)](),_0x299628[_0x745282(0x2bd)]();};});}function Di(_0x3e309b){const _0x4c7d78=_0x2a50d1;var _0x1d0793;let _0x45c085=_0x3e309b[_0x4c7d78(0x17c)](_0x4f51fd)[_0x4c7d78(0x1ab)]();return _0x45c085[_0x4c7d78(0x384)]===0x1&&((_0x1d0793=_0x45c085[0x0])==null?void 0x0:_0x1d0793[_0x4c7d78(0x271)])===_0x2af550[_0x4c7d78(0x255)]?_0x45c085[0x0]:null;}function Oi(_0x55d72d,_0x39e5d3=!0x1){const _0x4220cb=_0x2a50d1;let _0xe3e3fa=_0x55d72d[_0x4220cb(0x17c)](_0x36cb63),_0x2438fc=_0x55d72d['get'](_0x4f51fd),_0xe14b12=_0x55d72d[_0x4220cb(0x17c)](_0x19ac46);return new _0x53640f(_0x45f4a0=>{const _0x5cde95=_0x4220cb;let _0x4648d0=()=>{const _0x227a9f=_0x2867;let _0xc0206f=Di(_0x55d72d);if(!_0xc0206f){_0x45f4a0[_0x227a9f(0x399)](!0x0);return;}let _0x3e4a00=_0xe14b12[_0x227a9f(0x180)](_0xc0206f[_0x227a9f(0x417)],_0xc0206f['subUnitId'],_0xc0206f[_0x227a9f(0x3ab)]);_0x45f4a0[_0x227a9f(0x399)](!_0x3e4a00||_0x39e5d3&&_0x3e4a00[_0x227a9f(0x359)]==null);},_0x364e64=_0x2438fc[_0x5cde95(0x309)][_0x5cde95(0x322)](_0x4648d0),_0x2b6668=_0xe3e3fa[_0x5cde95(0x2d3)](_0x296cae=>{_0x296cae['id']===_0x1528ac['id']&&_0x4648d0();});return _0x4648d0(),()=>{const _0x3ff792=_0x5cde95;_0x364e64[_0x3ff792(0x212)](),_0x2b6668[_0x3ff792(0x2bd)]();};});}function ki(_0x3daa6c){const _0x5007a8=_0x2a50d1;let _0xafbdd4=_0x3daa6c['get'](_0x4f51fd),_0x5896b6=_0x3daa6c[_0x5007a8(0x17c)](_0x19ac46);return _0xafbdd4[_0x5007a8(0x309)]['pipe'](_0x368cba(_0xafbdd4[_0x5007a8(0x1ab)]()),_0xb844e2(()=>{const _0x2df12b=_0x5007a8;let _0x361c11=Di(_0x3daa6c),_0x3f7edd=_0x361c11?_0x5896b6[_0x2df12b(0x1f4)](_0x361c11['unitId'],_0x361c11[_0x2df12b(0x3ac)],_0x361c11[_0x2df12b(0x3ab)]):void 0x0;return _0x3f7edd===void 0x0||_0x4ff847(_0x3f7edd);}));}function Ai(_0x335b87){const _0x413da7=_0x2a50d1;return{'id':Kr['id'],'type':_0x19e1a8[_0x413da7(0x1ce)],'icon':_0x413da7(0x430),'title':'shape-editor-ui.toolbar.quickStyles','tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x335b87),'hidden$':Oi(_0x335b87)};}function ji(_0x23b4fd){const _0x250817=_0x2a50d1;return{'id':qr['id'],'type':_0x19e1a8[_0x250817(0x1ce)],'icon':_0x250817(0x286),'title':_0x250817(0x2c2),'tooltip':_0x250817(0x2c2),'slot':!0x0,'selections':[{'label':{'name':_0x144633,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x23b4fd)};}function _0x25cb(){const _0x48cd32=['adjHandleFill','_handleBasicShapeUpdateConnectorLineShape','length','FromArray','clip-adj-','defineProperty','_getConnectionSiteAngle','_findNearestConnectionSite','abs','index','_permissionService','getShapeModel','_createShapeAdjustControls','1252393Mlebzw','_createCopyInfoByRange','getTransformer','10550550WIIxHy','sheets-shape-text-','sheets-shape-ui.insertShape','beforeCommandExecuted','getShapeData','_getDrawingRect','getOwnPropertyDescriptor','next','_baseShapeHeight','hideInfoPopup','packageName','viewportScrollX','PictureFill','_activeShapeInfo','_formulaShapes','forEach','cxnPointFill','setOnSavingEditorData','_commandService','_groupCopyPasteController','permissionPointUpdate$','getCurrentScrollState','getSelectedObjectMap','INSERT','_addShapeAdjustControl','drawingId','subUnitId','clearControl$','scale','_handleConnectorPointerUp','getActualSize','_sheetInterceptorService','popup','_shapePopupMenuDisposable','computeConnectorResizeLayout','setShapeData','permissionCheckWithoutRange','BUTTON','VIEW_MAIN','_generatePasteMutations','isArray','_registerImageShapeClipDelegate','None','drawing-ui.objectListPanel.unlockAll','doc.image-clip.shape-picker.component','with','description','sheetTransform','_currentScene','_disposed','parse','disableShapeOption','stringify','sheets-shape-ui.editText','_copyInfo','33375aDLBQm','clipHeight','_getSceneAndTransformerByDrawingSearch','_baseDrawingRect','shape-adjust-point-','sheets-shape-ui.ribbon.shape-format.arrange-backward','sheet.menu.shape.flip-vertical','call','Path','_updateShapeAdjustControls','shapeText','editingParams$','_registerOperations','_addShapeConnectorHandlerObjects','_menuManagerService','targetShapeId','_baseWidth','scene','getFocusedUnit','createControl$','applyPoint','onPointerUp$','drawing-ui.objectListPanel.collapse','PRINTING_COMPONENT_COLLECT','transform','startY','sheet.operation.apply-shape-quick-style','1431UXBpEi','hideContextualTab','_handleConnectedEndpointPointerUp','cos','getSkeletonParam','_closeShapeEditPanel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getBatchRemoveOp','isMainScene','_getZoomRatio','_disposePopups','_hyperLinkRegions','translateWithPrecision','getAdjustInfoByName','setSrcRect','error','find','_popupMenuListener','sqrt','_drawShapeText','connection-site-','adjHandleStroke','_clearShapeAdjustControls','_registerMoveHandler','_baseShapeWidth','sheet.operation.update-shape-type','_adjName','getDrawingOrder','_getShapeAdjustPointListById','getBasicShapeRelation','getDrawingByParam','getTransformerByCreate','getSkeleton','GROUP','_clearPopups','_registerDrawingMoveHandler','drawing-ui.objectListPanel.filterHidden','attachPopupToObject','contentHeight','changeStart$','_shapeId','sheets-shape-ui.title','unregister','from','isHighlighted','lineType','visible','disposeWithMe','offsetY','clearAdjustControls','sheets-shape-ui.flipVertical','unitId','getEndConnectInfo','_index','sheets-shape-ui.shape-format.formula-ribbon-control','shape-editor-ui.arrange.front','onPointerMove$','_shapeUpdateListener','_unitId','prstGeomAdjValues','sheets-shape-ui.deleteShape','getZoomRatio','getDrawingEditable','univer-box-border\x20univer-px-4\x20univer-text-sm','refreshAdjustControls','sheets-shape-format-font-family-menu','sheets-shape-ui.flipHorizontal','setConfig','restore','angle','_baseShapeLeft','changeEnd$','_registerFeatureMenu','setFillImage','getParent','unit','PaintIcon','_renderManagerService','function','setShouldShowAdjust','changeShapeType','_injector','params','9813xhZvtO','ang','_clearControls','_formulaKey','sheet.command.update-shape-data','get','worldPoint','animateFormulaPresentation','_insertingShapeKeys','getShapeDataById','isRichText','sheets-shape-ui.shape-format.quick-style-gallery','refreshShapeFillImage','redo','version','_getScrollInfo','dataModel','bottom','some','getDrawingSearch','sheets-shape-ui.quickStyles','adjustValues','trim','getRenderUnitById','_applyFormulaAutoFitSize','updateConnectionDetection','_isStartConnectorPoint','set','3128886YwmmJw','fontFamily','shapeKey','startX','_canEdit','resourceCollector','size','setCursor','_isOpenedShapeEditPanel','_currentUniverService','div','isStartConnectorPoint','refreshFormulaPresentation','_drawRichText','UNIVER_SHEET','invert','changing$','_cxtHandlerPointerUp','drawing-ui.objectListPanel.hideAll','_resetState','updateLinePoints','translate','_sheetClipboardService','getRealBound','getFocusDrawings','presetId','point','getState','drawing-ui.objectListPanel.lockHint','600wUMIXa','getConnectionRelation','_drawingRenderService','clip','_renderWithCache','onload','_registerDrawingFocusChangeHandler','_adjHandlerPointerUp','_isStartAdjusting','sin','_attachAdjustEvent','push','backward','save','getEditing','_targetShapeId','getDrawingPoints','_sidebarService','sheets-shape-ui.shape-format.text-ribbon-control','_subUnitId','image','_connectionSiteObjects','_sheetPermissionCheckController','_sheetsShapeService','localToWorld','custom','_update','_initMenu','filter','_commandExecutedListener','SELECTOR','_initPermission','cxnPointStroke','_handleConnectedEndpointMove','getConnectorLinePoints','strokeWidth','clearAdjustValue','SolidLine','_connectorObjects','worldRect','_formulaAnimation','drawing-ui.objectListPanel.search','delete','_baseTop','_shapes','remove$','name','horizontal','_sidebarDisposable','adjName','activeSheet$','canvas','_handleFreeEndpointMove','pipe','cxnPointRadius','setContextValue','pushUndoRedo','fromChangeset','_sheetSkeletonService','presentationChanged$','focusDrawing','featurePluginUpdateNotification','MEDIA','isHit','_isImagePointerDown','_baseLeft','_visible','drawing-ui.objectListPanel.close','getShapeTypeById','_sheetCanvasPopManagerService','registerRenderModule','getUnitType','_univerInstanceService','setFormulaPresentation','close','composeMatrix','copyId','_activeShapeId','symbol','transformVector2SceneCoord','_executeConnectedRouteConnectionCommand','animationEnabled','indexOf','panel','getCanvasElement','getCurrentTypeOfUnit$','constructor','normal','endConnectionDetection','keys','shape-editor-ui.arrange.back','_lastEditingShapeKey','resolveHyperLinkAt','_isHighlighted','lineShapeId','_imageIoService','setPrstGeom','setAdjustValueByName','unsubscribe','62184NakyGD','prstGeom','update$','setPrstGeomAdjValues','_onSavingEditorData$','_drawingManagerService','rect','srcRect','startArrow','getAdjustNames','presentation','_sheetDrawingShapeRenderController','_shapeTextEditingService','_shapeEditPanelVersion','#4285f4','getMatrix','oKey','_updateAdjustControlPositions','sheet.shape.text.float-menu','_initSelection','buildClipPath','setHighlighted','getValue','drawing-ui.objectListPanel.sectionCanvas','_executeConnectionCommand','front','sheets-shape-ui.editShape','renderDrawingShape','sheets-shape-ui.ribbon.shape-format.text-control','clone','_shapeFormulaService','FlipHorizontalIcon','getDrawingEffectBounds','string','_focusedDrawings','fill','forward','_getShapeAdjustInfosById','cxnPointStrokeWidth','isHitLine','getStartConnectInfo','sheets-shape-ui.ribbon.shape-format.arrange-forward','sheetViewStartColumn','SHAPE_TEXT','getDrawingOKey','create','render','_cxtHandlerPointerMove','_cxnIndex','getObjectIncludeInGroup','sheet.shape.floating-toolbar','updateContext','onerror','fillType','sheets-shape-ui.imagePanel.crop.shape','OTHERS','LEFT','entries','multiply','_editingParams$','_initCommands','_context','VIEW_MAIN_LEFT_TOP','getConnectionInfo','getShapeTextData','drawing-ui.objectListPanel.description','DRAWING_SHAPE','_activeAdjustPointList','preValue','pick','showContextualTab','clip-','_registerFocusChangeHandler','_findShapeAtPoint','current','_sheetShapeAdjustController','drawing-ui.objectListPanel.sectionFloating','beginPath','sheets-shape-ui.formatShape','ObjectLayersIcon','getInverseCoord','sheets-shape-ui.objectListPanel.title','getAdjustValueByName','_updateImageAdjValues','syncExecuteCommand','parent','isEditing','_baseHeight','back','_clipService','_props','registerCommand','_ribbonService','_initEditingParams','drawingType','end','values','#bcbcbc','isolated','358kfQTDA','sheets-shape-contextual-ribbon','axisAlignSheetTransform','data','_registerGroupFeaturePasteHook','drawing-ui.objectListPanel.title','drawing-ui.objectListPanel.noSelection','actions','initShapePopupMenu','drawing.operation.set-drawing-active','color','_openShapeEditPanel','VIEW_MAIN_TOP','register','extraProps','sheets-shape-ui.ribbon.shape-format.style-control','ShapeIcon','engine','TOP','_draw','clear','OPERATION','_initialize','_getImageDrawingInfo','sheets-shape-ui.ribbon.shape-format.arrange-back','formulaPresentation','_isDrawingShapePointDown','style','setCanUseShapeClip','type','getContextValue','_activeShapeAdjustPointList','getObject','contentVerticalOffset','asObservable','onReady','_shapeService','_clearShapeConnectorHandlerObjects','add','_isShouldShowDrawingShapeAdjust','sheets-shape-ui.ribbon.shape-format','completeEditing','map','viewBound','sheets-shape-ui','adjHandleSize','_handleFreeEndpointPointerUp','_adjHandlerPointerMove','getAutoFitPresentations','_sheetPrintInterceptorService','viewportScrollY','_baseShapeTop','getShapeTextRect','_transform','shape-editor-ui.arrange.backward','_config','getInterceptPoints','has','_configService','getSheetId','onPointerDown$','_getShapeInfo','drawing-ui.objectListPanel.moveBackward','executeCommand','doc','undo','getSheetBySheetId','offsetX','_executeResizeCommand','addObject','UNIVER_DOC','dispose','relation','isRender','skeleton','open','shape-editor-ui.toolbar.changeShape','isHorizontal','_registerComponents','intercept','stopPropagation','_loadAndSetImage','UPDATE','_hide','drawing-ui.objectListPanel.empty','fontSize','#FFFFFF','_draggingConnectorId','sectionCanvas','getPresentation','start','flatMap','_activeTargetShapeId','onCommandExecuted','_urlImageService','sheet.command.menu-insert-shape','onSteady','getScene','_transformCalculateSrcRect','VIEW_MAIN_LEFT','_activeImageId','refreshTransform','_initEvents','pluginName','_getConnectPointInfo','_calculateFreeEndpointAngle','_executeConnectedRouteResizeCommand','getCurrentSkeleton','sheetViewStartRow','getDrawingData','_generateCutPasteMutations','_drawingAddListener','complete','drawing-ui.objectListPanel.dragToReorder','blockExecuteWithoutPermission','addClipboardHook','COMMAND','extensionGroups','hidden','top','_activeShapeModel','_generateCopyPasteMutations','MoveDownIcon','_localeService','sheet.image-clip.shape-picker.component','cancelEditing','toPrimitive','height','Rect','run','iterator','drawing-ui.objectListPanel.lockAll','startConnectionDetection','makeDirty','image-clip-adjust-point-','_initPrinting','enableObjectsEvent','_getOrCreateShapeModel','_contextService','selectable','worldPoints','sheets-shape-ui.objectListPanel.open','_showConnectionSites','resetCursor','setFallbackVisible','drawing-ui.objectListPanel.lock','addImageSourceCache','focus$','calculate','isInGroup','_drawRichTextLayer','_clearCompletionFrame','SHEET_SHAPE_UI_PLUGIN','mergeMenu','_shapeFloatingToolbarService','7nlSVxH','_currentConnectionTarget','Large','endArrow','getCurrentLastSelection','clipTop','_moveConnectorWithShape','rotation','_insertShapes','BottomIcon','flipY','_registerIcons','_hasReset','text','_clearConnectionSites','width','clipByShape','subscribe','object','setEditing','getConnectionSiteList','drawing-ui.objectListPanel.filterLocked','fillImageSource','updateDocumentStyle','disableObjectsEvent','URL','SheetShapeTextEditorContainer','shapeId','getDrawingVisible','Line','canvasElement','shapeModel','decorate','_initSheetChange','_componentManager','shapeType','getShapeType','resize','left','getUnit','setPresentation','#1a73e8','_completionFrame','ancestorTransform','registerClipDelegate','_addControl','objects','copyType','CROSSHAIR','shapeData','_getImagePrstGeom','Medium','_sheetBasicShapeConnectionPointController','getUnitId','getImage','getCurrentUnitOfType','_sheetDrawingService','highlighted','ShapeFormatSettingIcon','SHAPE','flipX','Arrow','_init','sectionFloating','value','classType','shape-text-','_createControls','_attachConnectorObjectEvent','onStarting','getBatchUpdateOp','hasDefault','formulaBinding','_shapeRenderController','vertical','drawing-ui.objectListPanel.showAll','sheet.shape.edit.panel','sheet.operation.open-mobile-shape-editor','title','getPermissionPoint','cxnIndex','updateShapeFillImage','drawWith','transformByState','idMap','DRAWING_IMAGE','drawing-ui.objectListPanel.hide','setShapeProps','REMOVE','removeLinePoints','Image','gradientEndColor','getBentTypeFromPoints','TopmostIcon','_loadShapePictureFill','_activeAdjustInfo','reverse','stroke','MoveUpIcon','drawing-ui.objectListPanel.moveForward','interceptor','isRenderLinePointsMode','_highlightedSiteIndex','_rerouteConnectorLine','_iconManager','32757373QqAtuj','drawing-ui.objectListPanel.filterAll','_imageShapeClipController','sheets-shape-ui.ribbon.shape-format.arrange-front','_addShapeConnectorHandlerObject','getImageSourceCache','subscribeEvent','_updateTransform'];_0x25cb=function(){return _0x48cd32;};return _0x25cb();}function Mi(_0x1f280e,_0x446461,_0x2fdb66=!0x1){const _0x28112b=_0x2a50d1;return _0x5381a=>({'id':_0x1f280e,'type':_0x19e1a8[_0x28112b(0x3b7)],'label':{'name':_0x446461,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x5381a,_0x2fdb66)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x30bebb,_0x39e22a,_0xb96626,_0xa07bfd){const _0x35c54c=_0x2a50d1;return _0x510e3f=>({'id':_0x30bebb,'commandId':_0x50d208['id'],'type':_0x19e1a8[_0x35c54c(0x3b7)],'icon':_0xb96626,'title':_0xa07bfd,'tooltip':_0xa07bfd,'hidden$':Oi(_0x510e3f),'params':()=>{const _0x24f57e=_0x35c54c;let _0x3fe4bf=Di(_0x510e3f);return _0x3fe4bf?{'unitId':_0x3fe4bf[_0x24f57e(0x417)],'subUnitId':_0x3fe4bf[_0x24f57e(0x3ac)],'drawingIds':[_0x3fe4bf[_0x24f57e(0x3ab)]],'arrangeType':_0x39e22a}:void 0x0;}});}const Li=Ii(Si,_0x5055b7[_0x2a50d1(0x237)],_0x2a50d1(0x373),'shape-editor-ui.arrange.forward'),Ri=Ii(Ci,_0x5055b7['backward'],_0x2a50d1(0x2f0),_0x2a50d1(0x2ac)),zi=Ii(wi,_0x5055b7[_0x2a50d1(0x22c)],_0x2a50d1(0x36e),_0x2a50d1(0x41b)),Bi=Ii(Ti,_0x5055b7[_0x2a50d1(0x26b)],'BottomIcon',_0x2a50d1(0x20a));function Vi(_0x1aa6e0){const _0x1547ff=_0x2a50d1;return{'id':Wr['id'],'type':_0x19e1a8[_0x1547ff(0x3b7)],'icon':'ShapeFormatSettingIcon','title':_0x1547ff(0x261),'tooltip':_0x1547ff(0x261),'hidden$':Oi(_0x1aa6e0),'params':()=>{const _0x5db5c3=_0x1547ff;let _0x51e5fd=Di(_0x1aa6e0);return _0x51e5fd?{'unitId':_0x51e5fd[_0x5db5c3(0x417)],'subUnitId':_0x51e5fd[_0x5db5c3(0x3ac)],'drawingId':_0x51e5fd[_0x5db5c3(0x3ab)]}:void 0x0;}};}const Hi={[_0x4e009a['RIBBON']]:{[Br]:{'order':0x64,'title':_0x2a50d1(0x261),'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},[_0x1ed286['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x557e49}}}}},Ui={[_0x3e8fc7[_0x2a50d1(0x1ee)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3e8fc7[_0x2a50d1(0x24a)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x38d412['DRAWING']]:{[_0x2defe6[_0x2a50d1(0x24a)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki='1.2.0';const qi={'id':_0x2a50d1(0x35e),'type':_0x265116[_0x2a50d1(0x28b)],'handler'(_0x4bf816,_0x382fef){const _0x4b5b76=_0x2a50d1;return _0x382fef?(_0x4bf816[_0x4b5b76(0x17c)](_0x5e474a)[_0x4b5b76(0x2c1)](_0x382fef['mode'],{'hostType':_0x31b64c[_0x4b5b76(0x1a1)],'shapeId':_0x382fef['drawingId'],'subUnitId':_0x382fef[_0x4b5b76(0x3ac)],'unitId':_0x382fef[_0x4b5b76(0x417)]}),!0x0):!0x1;}},Ji='sheets-shape-ui.config',Yi={};let Xi=class extends _0x50b698{constructor(_0x22bfbb,_0x5d41c2,_0x945973,_0x1a3e7f,_0x5257b3){const _0x9b7f1=_0x2a50d1;super(),this[_0x9b7f1(0x250)]=_0x22bfbb,this[_0x9b7f1(0x218)]=_0x5d41c2,this[_0x9b7f1(0x431)]=_0x945973,this['_univerInstanceService']=_0x1a3e7f,this[_0x9b7f1(0x37c)]=_0x5257b3,q(this,'_activeImageId',null),q(this,_0x9b7f1(0x41e),null),q(this,_0x9b7f1(0x1c3),null),q(this,_0x9b7f1(0x256),void 0x0),q(this,'_shapes',[]),q(this,'_baseLeft',0x0),q(this,_0x9b7f1(0x1db),0x0),q(this,_0x9b7f1(0x3d9),0x0),q(this,'_baseHeight',0x0),q(this,_0x9b7f1(0x1b8),!0x1),q(this,_0x9b7f1(0x370),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x9b7f1(0x2a5),void 0x0),q(this,_0x9b7f1(0x1b7),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x9b7f1(0x25b)](),this[_0x9b7f1(0x3fb)]();}[_0x2a50d1(0x415)](){const _0x543cf9=_0x2a50d1;this[_0x543cf9(0x179)]();}[_0x2a50d1(0x424)](){const _0x48caaf=_0x2a50d1;this['_clearControls'](),this[_0x48caaf(0x354)](!0x0);}[_0x2a50d1(0x2ff)](_0x56d98d,_0x2efbc0,_0x1f1e5e,_0x30fce5){const _0x2e700e=_0x2a50d1;let _0x55d2db=_0x56d98d;if(_0x55d2db!==_0x37b1c4[_0x2e700e(0x3bc)]&&_0x56d98d!==_0x2e700e(0x1c9))try{let _0x27f7ab=new _0x515211(_0x55d2db,_0x2e700e(0x386)+_0x56d98d);return _0x30fce5&&_0x27f7ab[_0x2e700e(0x3b5)]({'adjustValues':_0x30fce5},!0x0),_0x27f7ab['updateContext']({'width':_0x2efbc0,'height':_0x1f1e5e}),_0x27f7ab;}catch{return;}}[_0x2a50d1(0x28d)](_0xd4741,_0x2d252c,_0x187922){const _0xf0ef7b=_0x2a50d1;let _0x1d5054={'unitId':_0xd4741,'subUnitId':_0x2d252c,'drawingId':_0x187922},_0x4f407d=this[_0xf0ef7b(0x218)]['getDrawingByParam'](_0x1d5054);if(_0x4f407d&&_0x4f407d[_0xf0ef7b(0x271)]===_0x2af550[_0xf0ef7b(0x366)])return _0x4f407d;}['_getImagePrstGeom'](_0x564c03,_0x31a501,_0x43e920){const _0x3cabee=_0x2a50d1;let _0x2ebc4d=this[_0x3cabee(0x431)][_0x3cabee(0x18e)](_0x564c03);if(!_0x2ebc4d)return;let {scene:_0x9036d3}=_0x2ebc4d,_0x437159=_0x5b513c({'unitId':_0x564c03,'subUnitId':_0x31a501,'drawingId':_0x43e920}),_0x599d43=_0x9036d3[_0x3cabee(0x296)](_0x437159);if(_0x599d43 instanceof _0x1a4a15){let _0x20e823=_0x599d43[_0x3cabee(0x214)];if(_0x20e823)return{'prstGeom':_0x20e823,'adjustValues':_0x599d43[_0x3cabee(0x41f)]};}}['_createControls'](_0x1cba98=!0x1){const _0x49f373=_0x2a50d1;if(!this['_unitId']||!this[_0x49f373(0x1c3)]||!this[_0x49f373(0x2da)])return;let _0x1ee5ab=this['_renderManagerService']['getRenderUnitById'](this[_0x49f373(0x41e)]);if(!_0x1ee5ab||!_0x1ee5ab[_0x49f373(0x3bf)](_0x2df2f6)['getCurrentSkeleton']())return;let {scene:_0x5c223a}=_0x1ee5ab,_0x328b06=this[_0x49f373(0x28d)](this[_0x49f373(0x41e)],this[_0x49f373(0x1c3)],this['_activeImageId']);if(!_0x328b06)return;let {transform:_0x182a86}=_0x328b06;if(!_0x182a86)return;let {left:_0x3fb9e3,top:_0x1550c9,width:_0x5a9874,height:_0x23a929,flipX:_0x4796f9,flipY:_0x489809,angle:_0x467bfb=0x0}=_0x182a86;if(_0x3fb9e3===void 0x0||_0x1550c9===void 0x0)return;let _0x2f67f7=this[_0x49f373(0x343)](this['_unitId'],this[_0x49f373(0x1c3)],this[_0x49f373(0x2da)]);if(!_0x2f67f7)return;if(_0x1cba98){let _0x4ec178=this[_0x49f373(0x2ff)](_0x2f67f7['prstGeom'],_0x5a9874||0x0,_0x23a929||0x0,_0x2f67f7['adjustValues']);if(!_0x4ec178)return;this['_activeAdjustPointList']=_0x4ec178[_0x49f373(0x1c0)]();}let _0x52b7dd=this['_activeAdjustPointList'];if(_0x52b7dd&&_0x52b7dd[_0x49f373(0x384)]!==0x0)for(let _0x571187=0x0;_0x571187<_0x52b7dd[_0x49f373(0x384)];_0x571187++){let _0x4fc3a7=_0x52b7dd[_0x571187],_0x5b0434=_0x4fc3a7['x'],_0x1ce965=_0x4fc3a7['y'];if(_0x4796f9&&(_0x5b0434=(_0x5a9874||0x0)-_0x5b0434),_0x489809&&(_0x1ce965=(_0x23a929||0x0)-_0x1ce965),_0x467bfb!==0x0){let _0x5a7fda=(_0x5a9874||0x0)/0x2,_0x1f9c2b=(_0x23a929||0x0)/0x2,_0x521da8=_0x467bfb*Math['PI']/0xb4,_0x169351=Math[_0x49f373(0x3e7)](_0x521da8),_0x1d58b5=Math[_0x49f373(0x1b9)](_0x521da8),_0x3d5df9=_0x5b0434-_0x5a7fda,_0x402ac4=_0x1ce965-_0x1f9c2b;_0x5b0434=_0x5a7fda+(_0x3d5df9*_0x169351-_0x402ac4*_0x1d58b5),_0x1ce965=_0x1f9c2b+(_0x3d5df9*_0x1d58b5+_0x402ac4*_0x169351);}let _0x463134={'x':_0x5b0434,'y':_0x1ce965,'adjName':_0x4fc3a7['adjName']};this[_0x49f373(0x33e)](_0x5c223a,_0x463134,_0x463134['adjName'],_0x3fb9e3,_0x1550c9,this['_unitId'],this['_subUnitId']);}}[_0x2a50d1(0x33e)](_0x2241ba,_0x3f4864,_0x1a40d1,_0x5f4ee6,_0x5f55c4,_0x5de344,_0x19fb7e){const _0x2e4633=_0x2a50d1;if(!this[_0x2e4633(0x2da)])return;let _0x5198c3=_0x2e4633(0x2fc)+this[_0x2e4633(0x2da)]+'-'+_0x1a40d1,_0xe50496=_0x2241ba[_0x2e4633(0x244)](_0x5198c3);if(_0xe50496){_0xe50496[_0x2e4633(0x364)]({'left':_0x3f4864['x']+_0x5f4ee6-_0xc3f276['adjHandleSize'],'top':_0x3f4864['y']+_0x5f55c4-_0xc3f276['adjHandleSize']});return;}let _0x4d244f=new Nr(_0x5198c3,{'left':_0x3f4864['x']+_0x5f4ee6-_0xc3f276[_0x2e4633(0x2a3)],'top':_0x3f4864['y']+_0x5f55c4-_0xc3f276[_0x2e4633(0x2a3)],'adjName':_0x1a40d1,'shapeId':this[_0x2e4633(0x2da)],'unitId':_0x5de344,'subUnitId':_0x19fb7e,'width':_0xc3f276[_0x2e4633(0x2a3)]+0x8,'height':_0xc3f276[_0x2e4633(0x2a3)]+0x8,'zIndex':_0x3ef936+0x1,'evented':!0x0});this[_0x2e4633(0x1dc)]['push'](_0x4d244f),this['_attachAdjustEvent'](_0x4d244f,_0x2241ba,_0x1a40d1),_0x2241ba[_0x2e4633(0x2bb)](_0x4d244f,_0x3ef936+0x1);}[_0x2a50d1(0x179)](){const _0x3e6ffa=_0x2a50d1;this['_shapes']['length']!==0x0&&(this[_0x3e6ffa(0x1dc)][_0x3e6ffa(0x3a1)](_0x523f07=>_0x523f07[_0x3e6ffa(0x2bd)]()),this['_shapes']=[]);}['_getScrollInfo'](_0x63d553,_0x23662b){const _0x19500c=_0x2a50d1;var _0x5e8262;let _0x264372={'x':0x0,'y':0x0},_0x13918a=this['_renderManagerService'][_0x19500c(0x18e)](_0x63d553);if(!_0x13918a||!_0x13918a[_0x19500c(0x3bf)](_0x2df2f6)[_0x19500c(0x404)](_0x23662b))return _0x264372;let _0x324f62=_0x13918a[_0x19500c(0x3bf)](_0x4caf75),_0x1ca2e7=_0x324f62==null?void 0x0:_0x324f62['getCurrentScrollState']();if(!_0x1ca2e7)return _0x264372;let _0x3a9d9f=(_0x5e8262=this[_0x19500c(0x1f8)][_0x19500c(0x338)](_0x63d553))==null?void 0x0:_0x5e8262[_0x19500c(0x2b8)](_0x23662b);if(!_0x3a9d9f)return _0x264372;let _0x5c00bf=_0x2ca51b(_0x1ca2e7[_0x19500c(0x2e2)],_0x1ca2e7[_0x19500c(0x23d)],_0x13918a[_0x19500c(0x3da)],_0x3a9d9f);return _0x5c00bf?{'x':_0x5c00bf[_0x19500c(0x39d)],'y':_0x5c00bf[_0x19500c(0x2a8)]}:_0x264372;}[_0x2a50d1(0x3ed)](_0x208f5e,_0x1ed66e){const _0x28ca8a=_0x2a50d1;var _0x441295;let _0x93c00=(_0x441295=this[_0x28ca8a(0x1f8)][_0x28ca8a(0x338)](_0x208f5e))==null?void 0x0:_0x441295[_0x28ca8a(0x2b8)](_0x1ed66e);return(_0x93c00==null?void 0x0:_0x93c00[_0x28ca8a(0x421)]())??0x1;}[_0x2a50d1(0x1ba)](_0x94b38c,_0x2f10c5,_0x4d415b){const _0x49928f=_0x2a50d1;this[_0x49928f(0x413)](_0x3d1611(_0x94b38c['onPointerDown$'][_0x49928f(0x380)]((_0x32e7c8,_0x4de344)=>{const _0x268885=_0x49928f;var _0xb21ab1,_0xc6787a,_0x3fe91c;let {unitId:_0x32661b,subUnitId:_0x113ba3,drawingId:_0x9f0221}=_0x94b38c[_0x268885(0x18a)](),_0x8212ac=this[_0x268885(0x28d)](_0x32661b,_0x113ba3,_0x9f0221);if(!(_0x8212ac!=null&&_0x8212ac[_0x268885(0x3e1)]))return;let {left:_0x59717a,top:_0x4afcb5,width:_0x212878,height:_0x461791}=_0x8212ac['transform'];this[_0x268885(0x1f1)]=_0x59717a||0x0,this[_0x268885(0x1db)]=_0x4afcb5||0x0,this[_0x268885(0x3d9)]=_0x212878||0x0,this[_0x268885(0x26a)]=_0x461791||0x0;let _0x21f0ec=!!((_0xb21ab1=_0x8212ac[_0x268885(0x3e1)])!=null&&_0xb21ab1['flipX']),_0x4473e5=!!((_0xc6787a=_0x8212ac['transform'])!=null&&_0xc6787a[_0x268885(0x31b)]),_0x2fa4b6=((_0x3fe91c=_0x8212ac[_0x268885(0x3e1)])==null?void 0x0:_0x3fe91c[_0x268885(0x429)])||0x0,_0x42ced6=this[_0x268885(0x343)](_0x32661b,_0x113ba3,_0x9f0221);if(!_0x42ced6)return;let _0x355f27=this[_0x268885(0x2ff)](_0x42ced6[_0x268885(0x214)],this[_0x268885(0x3d9)],this[_0x268885(0x26a)],_0x42ced6[_0x268885(0x18c)]);if(!_0x355f27||(this[_0x268885(0x2ee)]=_0x355f27,this[_0x268885(0x370)]=_0x355f27[_0x268885(0x3f1)](_0x4d415b),!this['_activeAdjustInfo']))return;this[_0x268885(0x1b8)]=!0x0,_0x2f10c5[_0x268885(0x329)]();let _0x3c2fb1=_0x42ced6[_0x268885(0x214)];this[_0x268885(0x2a5)]=_0x2f10c5['onPointerMove$']['subscribeEvent']((_0x26d84f,_0x29c749)=>{const _0x10a684=_0x268885;if(!this[_0x10a684(0x1b8)])return;let {offsetX:_0x260587,offsetY:_0x2fdb59}=_0x26d84f,_0x3a2cd4=this[_0x10a684(0x370)];if(!this[_0x10a684(0x2ee)]||!_0x3a2cd4)return;_0x2f10c5[_0x10a684(0x329)](),_0x2f10c5[_0x10a684(0x19a)](_0x22db02[_0x10a684(0x341)]);let _0x26888b={'left':0x0,'top':0x0,'width':this[_0x10a684(0x3d9)],'height':this[_0x10a684(0x26a)]},_0x4970bc=this[_0x10a684(0x186)](_0x32661b,_0x113ba3),_0x2bed46=this[_0x10a684(0x3ed)](_0x32661b,_0x113ba3),_0x327c50=_0x260587/_0x2bed46+_0x4970bc['x']-this[_0x10a684(0x1f1)],_0x1cbfc3=_0x2fdb59/_0x2bed46+_0x4970bc['y']-this[_0x10a684(0x1db)];if(_0x2fa4b6!==0x0){let _0x4ab465=this[_0x10a684(0x3d9)]/0x2,_0x3ed505=this[_0x10a684(0x26a)]/0x2,_0x572ee6=_0x2fa4b6*Math['PI']/0xb4,_0x3c93d0=Math[_0x10a684(0x3e7)](_0x572ee6),_0x6dfab1=Math[_0x10a684(0x1b9)](_0x572ee6),_0x3a6ab4=_0x327c50-_0x4ab465,_0x4f522f=_0x1cbfc3-_0x3ed505;_0x327c50=_0x4ab465+(_0x3a6ab4*_0x3c93d0+_0x4f522f*_0x6dfab1),_0x1cbfc3=_0x3ed505+(-_0x3a6ab4*_0x6dfab1+_0x4f522f*_0x3c93d0);}_0x21f0ec&&(_0x327c50=this[_0x10a684(0x3d9)]-_0x327c50),_0x4473e5&&(_0x1cbfc3=this[_0x10a684(0x26a)]-_0x1cbfc3);let _0x37f237=this[_0x10a684(0x2ee)]['calcAdjValues'](_0x26888b,{'x':_0x327c50,'y':_0x1cbfc3},_0x3a2cd4,_0x21f0ec,_0x4473e5);if(Object[_0x10a684(0x209)](_0x37f237)[_0x10a684(0x384)]!==0x0){for(let [_0xfa3ec8,_0x14826e]of Object[_0x10a684(0x24c)](_0x37f237))this[_0x10a684(0x2ee)][_0x10a684(0x211)](_0xfa3ec8,_0x14826e);this[_0x10a684(0x2ee)][_0x10a684(0x246)]({'width':this[_0x10a684(0x3d9)],'height':this[_0x10a684(0x26a)]}),this['_updateImageAdjValues'](_0x32661b,_0x113ba3,_0x9f0221,_0x37f237),this[_0x10a684(0x256)]=this[_0x10a684(0x2ee)]['getDrawingPoints'](),this[_0x10a684(0x354)](),_0x29c749['stopPropagation']();}}),this[_0x268885(0x1b7)]=_0x2f10c5[_0x268885(0x3de)][_0x268885(0x380)]((_0x5e8469,_0x2d3762)=>{const _0x4b6ebb=_0x268885;if(this[_0x4b6ebb(0x2a5)][_0x4b6ebb(0x212)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x2f10c5['resetCursor'](),this['_activeShapeModel']){let _0x1a3e9e=this[_0x4b6ebb(0x2ee)][_0x4b6ebb(0x21c)](),_0x1e8572={};for(let _0x37f566 of _0x1a3e9e){let _0x415d95=this[_0x4b6ebb(0x2ee)]['getAdjustValueByName'](_0x37f566);_0x415d95!==void 0x0&&(_0x1e8572[_0x37f566]=_0x415d95);}this[_0x4b6ebb(0x37c)][_0x4b6ebb(0x321)](_0x32661b,_0x113ba3,_0x9f0221,_0x3c2fb1,_0x1e8572);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x4b6ebb(0x1b8)]=!0x1,_0x2d3762[_0x4b6ebb(0x2c6)](),_0x2f10c5[_0x4b6ebb(0x2fe)]();}),_0x4de344[_0x268885(0x2c6)]();})));}[_0x2a50d1(0x266)](_0x3bf6e8,_0x5b6456,_0x4f1237,_0xe1269){const _0x1ba354=_0x2a50d1;let _0x220f1d=this['_renderManagerService'][_0x1ba354(0x18e)](_0x3bf6e8);if(!_0x220f1d)return;let {scene:_0x57be0d}=_0x220f1d,_0x4e761f=_0x5b513c({'unitId':_0x3bf6e8,'subUnitId':_0x5b6456,'drawingId':_0x4f1237}),_0x1cae91=_0x57be0d[_0x1ba354(0x296)](_0x4e761f);if(_0x1cae91 instanceof _0x1a4a15){let _0x2ae4b1=_0x1cae91[_0x1ba354(0x41f)]??{};_0x1cae91[_0x1ba354(0x216)]({..._0x2ae4b1,..._0xe1269}),_0x1cae91[_0x1ba354(0x2fb)](!0x0);}}[_0x2a50d1(0x3fb)](){const _0x2bbf3b=_0x2a50d1;let _0x84a051=this[_0x2bbf3b(0x1f8)][_0x2bbf3b(0x205)](_0x31b64c[_0x2bbf3b(0x1a1)]);this['disposeWithMe'](_0x84a051[_0x2bbf3b(0x1e5)](_0x40c277(_0x4710d8=>_0x4710d8?_0x4710d8['activeSheet$'][_0x2bbf3b(0x1e5)](_0x40c277(_0x43cb77=>{const _0xca7c72=_0x2bbf3b;if(!_0x43cb77)return _0x3b739f;let _0x52dbdc=_0x4710d8[_0xca7c72(0x346)](),_0x3d81a3=this[_0xca7c72(0x431)][_0xca7c72(0x18e)](_0x52dbdc),_0xeca7f2=_0x3d81a3==null?void 0x0:_0x3d81a3[_0xca7c72(0x3da)];return _0xeca7f2?_0x23d707(_0xeca7f2):_0x3b739f;})):_0x3b739f))['subscribe'](_0x9443b2=>{const _0x1e921e=_0x2bbf3b;let _0x2d6aae=_0x9443b2[_0x1e921e(0x403)]();this['disposeWithMe'](_0x9443b2[_0x1e921e(0x41c)][_0x1e921e(0x380)](()=>{const _0x68606c=_0x1e921e;this[_0x68606c(0x1f0)]&&this[_0x68606c(0x179)]();})),this[_0x1e921e(0x413)](_0x2d6aae[_0x1e921e(0x40b)][_0x1e921e(0x322)](_0x387199=>{const _0x48c0cc=_0x1e921e;let {objects:_0x3952af}=_0x387199;if(this['_createControls'](),_0x3952af!==null&&_0x3952af[_0x48c0cc(0x199)]===0x1){let _0x56d765=_0x3952af['values']()[_0x48c0cc(0x399)]()['value'];_0x56d765 instanceof _0x1a4a15&&_0x56d765[_0x48c0cc(0x214)]&&(this[_0x48c0cc(0x1f0)]=!0x0);}})),this[_0x1e921e(0x413)](_0x2d6aae['changing$'][_0x1e921e(0x322)](()=>{const _0x11db4a=_0x1e921e;this[_0x11db4a(0x1f0)]&&this[_0x11db4a(0x179)]();})),this[_0x1e921e(0x413)](_0x9443b2[_0x1e921e(0x3de)]['subscribeEvent'](()=>{this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this['disposeWithMe'](_0x2d6aae[_0x1e921e(0x42b)][_0x1e921e(0x322)](()=>{const _0x1665d9=_0x1e921e;if(this['_unitId']&&this[_0x1665d9(0x1c3)]&&this[_0x1665d9(0x2da)]){let _0x394839=this[_0x1665d9(0x343)](this[_0x1665d9(0x41e)],this[_0x1665d9(0x1c3)],this[_0x1665d9(0x2da)]);if(_0x394839){var _0x147310,_0xdc63b4;let _0x330d90=this[_0x1665d9(0x28d)](this['_unitId'],this[_0x1665d9(0x1c3)],this[_0x1665d9(0x2da)]),_0x398e26=(_0x330d90==null||(_0x147310=_0x330d90[_0x1665d9(0x3e1)])==null?void 0x0:_0x147310[_0x1665d9(0x320)])||0x0,_0x6b2e29=(_0x330d90==null||(_0xdc63b4=_0x330d90[_0x1665d9(0x3e1)])==null?void 0x0:_0xdc63b4['height'])||0x0,_0x38f29f=this[_0x1665d9(0x2ff)](_0x394839[_0x1665d9(0x214)],_0x398e26,_0x6b2e29,_0x394839['adjustValues']);_0x38f29f&&(this[_0x1665d9(0x256)]=_0x38f29f[_0x1665d9(0x1c0)](),this[_0x1665d9(0x179)](),this['_createControls'](!0x0));}}}));}));}[_0x2a50d1(0x25b)](){const _0x123a77=_0x2a50d1;this[_0x123a77(0x413)](this[_0x123a77(0x218)][_0x123a77(0x309)][_0x123a77(0x322)](_0xea0579=>{const _0x41e2cd=_0x123a77;if(_0xea0579[_0x41e2cd(0x384)]===0x1){let _0x1c7546=_0xea0579[0x0];if(_0x1c7546['drawingType']===_0x2af550[_0x41e2cd(0x366)]){let {unitId:_0x51ad18,subUnitId:_0x3cb58f,drawingId:_0x347d5c}=_0x1c7546,_0x38100b=this[_0x41e2cd(0x343)](_0x51ad18,_0x3cb58f,_0x347d5c);if(_0x38100b){var _0x18a3d0,_0x2f3128;this[_0x41e2cd(0x2da)]=_0x347d5c,this[_0x41e2cd(0x41e)]=_0x51ad18,this['_subUnitId']=_0x3cb58f;let _0x22fd64=this['_getImageDrawingInfo'](_0x51ad18,_0x3cb58f,_0x347d5c),_0x127cf3=(_0x22fd64==null||(_0x18a3d0=_0x22fd64['transform'])==null?void 0x0:_0x18a3d0[_0x41e2cd(0x320)])||0x0,_0x4e99f7=(_0x22fd64==null||(_0x2f3128=_0x22fd64[_0x41e2cd(0x3e1)])==null?void 0x0:_0x2f3128['height'])||0x0,_0x4c91f0=this[_0x41e2cd(0x2ff)](_0x38100b[_0x41e2cd(0x214)],_0x127cf3,_0x4e99f7,_0x38100b['adjustValues']);_0x4c91f0&&(this['_activeAdjustPointList']=_0x4c91f0[_0x41e2cd(0x1c0)]()),this['_clearControls'](),this[_0x41e2cd(0x354)](!0x0);}else this[_0x41e2cd(0x1a6)]();}else this[_0x41e2cd(0x1a6)]();}else this['_resetState']();})),this[_0x123a77(0x413)](this[_0x123a77(0x218)][_0x123a77(0x215)][_0x123a77(0x322)](_0x142855=>{const _0x4556f8=_0x123a77;if(_0x142855[_0x4556f8(0x384)]===0x1){let _0x32ee46=_0x142855[0x0],_0x48becd=this[_0x4556f8(0x218)][_0x4556f8(0x402)](_0x32ee46);(_0x48becd==null?void 0x0:_0x48becd[_0x4556f8(0x271)])===_0x2af550[_0x4556f8(0x366)]&&this[_0x4556f8(0x2da)]===_0x32ee46[_0x4556f8(0x3ab)]&&(this[_0x4556f8(0x179)](),this[_0x4556f8(0x354)](!0x0));}})),this[_0x123a77(0x413)](this[_0x123a77(0x218)][_0x123a77(0x1dd)][_0x123a77(0x322)](_0x135583=>{const _0x24b8fe=_0x123a77;for(let _0x53506c of _0x135583)this[_0x24b8fe(0x2da)]===_0x53506c[_0x24b8fe(0x3ab)]&&this[_0x24b8fe(0x1a6)]();}));}['_resetState'](){const _0x4b027a=_0x2a50d1;this['_activeImageId']=null,this['_unitId']=null,this[_0x4b027a(0x1c3)]=null,this[_0x4b027a(0x256)]=void 0x0,this[_0x4b027a(0x179)]();}};Xi=X([Y(0x1,_0x4f51fd),Y(0x2,_0x1cc97c(_0x5ee803)),Y(0x3,_0x3a5e32),Y(0x4,_0x1cc97c(Q))],Xi);function Zi(_0x36edf5){return _0x36edf5['trim']()||void 0x0;}function Qi(_0x3e9d4b,_0x1724d7,_0x2b6864){const _0x3f34d7=_0x2a50d1;var _0x50d916;return((_0x50d916=_0x3e9d4b[_0x3f34d7(0x1de)])==null?void 0x0:_0x50d916[_0x3f34d7(0x18d)]())||_0x2b6864['t']('drawing-ui.objectListPanel.typeNames.'+_0x99e984(_0x3e9d4b['drawingType']))+'\x20'+(_0x1724d7+0x1);}function $i({PanelComponent:_0x5d7cce=_0x1da5db}){const _0x257bbb=_0x2a50d1;var _0x52089e;let _0x185b60=_0x3f0a9f(_0x36fe41),_0xd69a26={'title':_0x185b60['t'](_0x257bbb(0x27b)),'empty':_0x185b60['t'](_0x257bbb(0x2ca)),'showAll':_0x185b60['t'](_0x257bbb(0x35c)),'hideAll':_0x185b60['t'](_0x257bbb(0x1a5)),'lockAll':_0x185b60['t'](_0x257bbb(0x2f9)),'unlockAll':_0x185b60['t'](_0x257bbb(0x3bd)),'moveForward':_0x185b60['t'](_0x257bbb(0x374)),'moveBackward':_0x185b60['t'](_0x257bbb(0x2b4)),'close':_0x185b60['t'](_0x257bbb(0x1f3)),'show':_0x185b60['t']('drawing-ui.objectListPanel.show'),'hide':_0x185b60['t'](_0x257bbb(0x367)),'lock':_0x185b60['t'](_0x257bbb(0x307)),'unlock':_0x185b60['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x185b60['t'](_0x257bbb(0x1af)),'unlockHint':_0x185b60['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x185b60['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x185b60['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x185b60['t'](_0x257bbb(0x254)),'descriptionPlaceholder':_0x185b60['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x185b60['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x185b60['t'](_0x257bbb(0x27c)),'locate':_0x185b60['t']('drawing-ui.objectListPanel.locate'),'expand':_0x185b60['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x185b60['t'](_0x257bbb(0x3df)),'dragToReorder':_0x185b60['t'](_0x257bbb(0x2e7)),'search':_0x185b60['t'](_0x257bbb(0x1d9)),'filterAll':_0x185b60['t'](_0x257bbb(0x37b)),'filterHidden':_0x185b60['t'](_0x257bbb(0x408)),'filterLocked':_0x185b60['t'](_0x257bbb(0x326)),'sectionCanvas':_0x185b60['t'](_0x257bbb(0x22a)),'sectionFloating':_0x185b60['t'](_0x257bbb(0x25f))},_0x3d921e=_0x3f0a9f(_0x36cb63),_0x146f9c=_0x3f0a9f(_0x3a5e32),_0x3b91de=_0x3f0a9f(_0x342231),_0x1e7787=_0x3f0a9f(_0x4f51fd),_0x51a4c5=_0x3f0a9f(_0x5ee803),[,_0x311295]=_0x294aea(_0x180784=>_0x180784+0x1,0x0),_0x52e250=_0x146f9c[_0x257bbb(0x348)](_0x31b64c[_0x257bbb(0x1a1)]),_0x53e432=(_0x52e250==null?void 0x0:_0x52e250[_0x257bbb(0x346)]())??'',_0x5641cd=(_0x52e250==null||(_0x52089e=_0x52e250['getActiveSheet']())==null?void 0x0:_0x52089e[_0x257bbb(0x2b1)]())??'',_0x2f52a3=_0x11888b(()=>_0x1e7787['focus$'],_0x1e7787[_0x257bbb(0x1ab)](),!0x1,[_0x1e7787]);_0x47325c(()=>{const _0x310948=_0x257bbb;let _0x301b72=_0x3d921e[_0x310948(0x2d3)](()=>_0x311295());return()=>_0x301b72['dispose']();},[_0x3d921e]);let _0x4bef96=_0x53e432&&_0x5641cd?_0x3b91de['getDrawingData'](_0x53e432,_0x5641cd):{},_0x1cef0e=(_0x53e432&&_0x5641cd?_0x3b91de[_0x257bbb(0x3ff)](_0x53e432,_0x5641cd):[])['map'](_0x47310b=>_0x4bef96[_0x47310b])[_0x257bbb(0x1cc)](_0x3a26ca=>!!_0x3a26ca)[_0x257bbb(0x371)](),_0x12a233=_0x1cef0e['reduce']((_0x138a01,_0x2bd88b)=>(_0x138a01[_0x50f6a2(_0x2bd88b[_0x257bbb(0x271)])]+=0x1,_0x138a01),{'canvas':0x0,'floating':0x0}),_0x505cb2={'canvas':0x0,'floating':0x0},_0x125421=_0x1cef0e[_0x257bbb(0x2a0)]((_0x3c9b21,_0x55df03)=>{const _0x3da521=_0x257bbb;let _0x3c1221=_0x50f6a2(_0x3c9b21[_0x3da521(0x271)]),_0x1ba992=_0x3c1221===_0x91e028,_0x3ba494=_0x505cb2[_0x3c1221]++;return{'id':_0x3c9b21[_0x3da521(0x3ab)],'name':Qi(_0x3c9b21,_0x55df03,_0x185b60),'description':_0x3c9b21[_0x3da521(0x3c0)],'visible':_0x3c9b21[_0x3da521(0x2ec)]!==!0x0,'selectable':_0x3c9b21[_0x3da521(0x301)]!==!0x1,'sectionId':_0x3c1221,'sectionTitle':_0x1ba992?_0xd69a26[_0x3da521(0x350)]:_0xd69a26[_0x3da521(0x2ce)],'capabilities':_0x1ba992?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x1ba992&&_0x3ba494>0x0,'canMoveBackward':!_0x1ba992&&_0x3ba494<_0x12a233[_0x3da521(0x1e3)]-0x1,'canReorder':!_0x1ba992};}),_0x1cecb9=_0x48df1e(()=>(_0x2f52a3??[])[_0x257bbb(0x1cc)](_0x38eeb7=>_0x38eeb7[_0x257bbb(0x417)]===_0x53e432&&_0x38eeb7[_0x257bbb(0x3ac)]===_0x5641cd)[_0x257bbb(0x2a0)](_0x4c018d=>_0x4c018d['drawingId']),[_0x2f52a3,_0x5641cd,_0x53e432]),_0x5005d0=_0x1cecb9[_0x1cecb9[_0x257bbb(0x384)]-0x1]??null,_0x5934cc=_0x53e82c=>_0x3b91de[_0x257bbb(0x402)]({'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x53e82c})??null,_0x4901db=async _0x4bc228=>{const _0x33645d=_0x257bbb;_0x53e432&&_0x4bc228['length']&&await _0x3d921e[_0x33645d(0x2b5)](_0x3928a2['id'],{'unitId':_0x53e432,'drawings':_0x4bc228});},_0x17a255=async(_0x3fccce,_0x538255)=>{_0x5934cc(_0x3fccce)&&await _0x4901db([{'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x3fccce,..._0x538255}]);},_0x15de8b=(_0x528066,_0x5d35d9)=>{const _0x32c861=_0x257bbb;if(!_0x53e432||!_0x5641cd)return;let _0x1216e5=_0x5d35d9?_0x1cecb9['includes'](_0x528066)?_0x1cecb9[_0x32c861(0x1cc)](_0x1056f2=>_0x1056f2!==_0x528066):[..._0x1cecb9,_0x528066]:[_0x528066];_0x3d921e[_0x32c861(0x267)](_0xee5ddf['id'],_0x1216e5[_0x32c861(0x2a0)](_0x9b57e8=>({'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x9b57e8})));let _0x1bfe50=_0x1216e5[_0x1216e5[_0x32c861(0x384)]-0x1];_0x1bfe50?_0x5e0fa6(_0x51a4c5,{'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x1bfe50}):_0x5f511a(_0x51a4c5,_0x53e432);},_0x4a3a2a=async(_0x2d355f,_0x2ce0f1)=>{const _0x50aab3=_0x257bbb;await _0x4901db(_0x2d355f[_0x50aab3(0x2a0)](_0x4bb0d4=>_0x5934cc(_0x4bb0d4))[_0x50aab3(0x1cc)](_0x453574=>!!_0x453574)[_0x50aab3(0x1cc)](_0x392572=>_0x392572[_0x50aab3(0x2ec)]!==!0x0!==_0x2ce0f1)[_0x50aab3(0x2a0)](_0x3e7cd3=>({'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x3e7cd3['drawingId'],'hidden':!_0x2ce0f1})));},_0x220dc2=async(_0x157848,_0x4fe0f1)=>{const _0x4a85d5=_0x257bbb;await _0x4901db(_0x157848[_0x4a85d5(0x2a0)](_0x1430bb=>_0x5934cc(_0x1430bb))[_0x4a85d5(0x1cc)](_0x53fe9a=>!!_0x53fe9a)[_0x4a85d5(0x1cc)](_0x52ef84=>_0x52ef84[_0x4a85d5(0x301)]!==!0x1!==_0x4fe0f1)['map'](_0x30b230=>({'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingId':_0x30b230[_0x4a85d5(0x3ab)],'selectable':_0x4fe0f1})));},_0x3eb947=_0x13f185=>{const _0x353e9c=_0x257bbb;let _0x56b051=_0x5934cc(_0x13f185);if(_0x56b051)return _0x220dc2([_0x13f185],_0x56b051[_0x353e9c(0x301)]===!0x1);},_0x4f4c19=async(_0x2bab9d,_0x1209a5)=>{const _0x3237a0=_0x257bbb;var _0x2f2ada;let _0x3c44df=Zi(_0x1209a5);(((_0x2f2ada=_0x5934cc(_0x2bab9d))==null?void 0x0:_0x2f2ada[_0x3237a0(0x1de)])??void 0x0)!==_0x3c44df&&await _0x17a255(_0x2bab9d,{'name':_0x3c44df});},_0x301305=async(_0x4b4fd1,_0x104af6)=>{const _0x15c0ba=_0x257bbb;var _0x3ecf7a;let _0x58f03e=Zi(_0x104af6);(((_0x3ecf7a=_0x5934cc(_0x4b4fd1))==null?void 0x0:_0x3ecf7a[_0x15c0ba(0x3c0)])??void 0x0)!==_0x58f03e&&await _0x17a255(_0x4b4fd1,{'description':_0x58f03e});},_0x207e6e=async(_0x5d64c8,_0x34f072)=>{const _0x3a09a0=_0x257bbb;_0x53e432&&_0x5641cd&&await _0x3d921e[_0x3a09a0(0x2b5)](_0x50d208['id'],{'unitId':_0x53e432,'subUnitId':_0x5641cd,'drawingIds':[_0x5d64c8],'arrangeType':_0x34f072});};return!_0x53e432||!_0x5641cd?_0x52d2b9(_0x257bbb(0x19d),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0xd69a26[_0x257bbb(0x35f)]}):_0x52d2b9(_0x5d7cce,{'labels':_0xd69a26,'items':_0x125421,'selectedIds':_0x1cecb9,'focusedId':_0x5005d0,'showHeader':!0x1,'onSelect':_0x15de8b,'onSetVisible':_0x4a3a2a,'onSetSelectable':_0x220dc2,'onCommitName':_0x4f4c19,'onCommitDescription':_0x301305,'onMoveForward':async _0x3def03=>_0x207e6e(_0x3def03,_0x5055b7[_0x257bbb(0x237)]),'onMoveBackward':async _0x410c40=>_0x207e6e(_0x410c40,_0x5055b7[_0x257bbb(0x1bc)]),'onToggleSelectable':_0x3eb947});}function ea(){return _0x52d2b9($i,{'PanelComponent':_0xd44b72});}let ta=class extends _0x50b698{constructor(_0x183e52,_0x470dfd){const _0x2f070a=_0x2a50d1;super(),this['disposeWithMe'](_0x183e52[_0x2f070a(0x283)](Rr,ea)),this[_0x2f070a(0x413)](_0x470dfd[_0x2f070a(0x283)]({'BottomIcon':_0x2c59f6,'FlipHorizontalIcon':_0x543ae5,'FlipVerticalIcon':_0x53f09a,'MoveDownIcon':_0xb8b13,'MoveUpIcon':_0x3fe9c5,'ObjectLayersIcon':_0x143c8a,'ShapeFormatSettingIcon':_0x3b58f3,'TopmostIcon':_0x173190})),this[_0x2f070a(0x413)](_0x183e52[_0x2f070a(0x283)](Jr,ti)),this[_0x2f070a(0x413)](_0x183e52[_0x2f070a(0x283)](Yr,Qr)),_0x183e52[_0x2f070a(0x358)](_0x168650)||this[_0x2f070a(0x413)](_0x183e52[_0x2f070a(0x283)](_0x168650,$r));}};ta=X([Y(0x0,_0x1cc97c(_0x1532b8)),Y(0x1,_0x1cc97c(_0x25a4f3))],ta);let $=class extends _0x50b698{constructor(_0x394770){const _0x33496a=_0x2a50d1;super(),this[_0x33496a(0x38c)]=_0x394770,q(this,_0x33496a(0x24e),new _0xa2df27(null)),q(this,'editingParams$',this['_editingParams$'][_0x33496a(0x298)]()),q(this,'_onSavingEditorData$',new _0xa2df27(!0x1)),q(this,'onSavingEditorData$',this[_0x33496a(0x217)]['asObservable']()),q(this,'_completionFrame',void 0x0),this[_0x33496a(0x413)](this[_0x33496a(0x38c)][_0x33496a(0x3a6)][_0x33496a(0x322)](()=>{const _0x56ed4d=_0x33496a;let _0x1cff7d=this[_0x56ed4d(0x1be)]();_0x1cff7d!=null&&_0x1cff7d[_0x56ed4d(0x412)]&&!this[_0x56ed4d(0x197)](_0x1cff7d)&&this['setEditing'](null);}));}['dispose'](){const _0x2ef753=_0x2a50d1;this[_0x2ef753(0x30d)](),this[_0x2ef753(0x24e)][_0x2ef753(0x399)](null),this[_0x2ef753(0x24e)][_0x2ef753(0x2e6)](),this['_onSavingEditorData$'][_0x2ef753(0x399)](!0x1),this[_0x2ef753(0x217)][_0x2ef753(0x2e6)](),super['dispose']();}[_0x2a50d1(0x324)](_0x30d9b4){const _0x1142bf=_0x2a50d1;(_0x30d9b4==null||!_0x30d9b4[_0x1142bf(0x412)]||this[_0x1142bf(0x197)](_0x30d9b4))&&(this[_0x1142bf(0x30d)](),this[_0x1142bf(0x24e)][_0x1142bf(0x399)](_0x30d9b4),(_0x30d9b4==null||_0x30d9b4[_0x1142bf(0x412)]&&this[_0x1142bf(0x217)][_0x1142bf(0x229)]())&&this[_0x1142bf(0x217)][_0x1142bf(0x399)](!0x1));}[_0x2a50d1(0x3a3)](_0x58fc37){const _0x401317=_0x2a50d1;this[_0x401317(0x217)][_0x401317(0x399)](_0x58fc37);}[_0x2a50d1(0x1be)](){const _0x4fd500=_0x2a50d1;return this[_0x4fd500(0x24e)]['getValue']();}[_0x2a50d1(0x197)](_0x10b8fb){const _0x2ec2b9=_0x2a50d1;let _0x4924fe=this[_0x2ec2b9(0x38c)][_0x2ec2b9(0x360)](new _0x1bbb99(_0x10b8fb['unitId'])['id']),_0x10d207=this[_0x2ec2b9(0x38c)][_0x2ec2b9(0x360)](new _0x1c37ca(_0x10b8fb[_0x2ec2b9(0x417)],_0x10b8fb[_0x2ec2b9(0x3ac)])['id']);return((_0x4924fe==null?void 0x0:_0x4924fe['value'])??!0x0)&&((_0x10d207==null?void 0x0:_0x10d207['value'])??!0x0);}[_0x2a50d1(0x29f)](_0x443bac){const _0x366fb5=_0x2a50d1;let _0x101cff=this[_0x366fb5(0x1be)]();_0x101cff&&this[_0x366fb5(0x33b)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x366fb5(0x33b)]=requestAnimationFrame(()=>{const _0x421412=_0x366fb5;this[_0x421412(0x33b)]=void 0x0,this[_0x421412(0x1be)]()===_0x101cff&&this[_0x421412(0x324)](null);}));}['_clearCompletionFrame'](){const _0x465e7f=_0x2a50d1;this[_0x465e7f(0x33b)]!==void 0x0&&(cancelAnimationFrame(this[_0x465e7f(0x33b)]),this[_0x465e7f(0x33b)]=void 0x0);}[_0x2a50d1(0x2f3)](){const _0x50a85f=_0x2a50d1;this[_0x50a85f(0x1be)]()&&this[_0x50a85f(0x324)](null);}};$=X([Y(0x0,_0x325970)],$);let na=class extends _0x50b698{constructor(_0x2d308e,_0x294ead,_0x429092,_0x2d5e2d,_0x2b83b0,_0x487224){const _0x281196=_0x2a50d1;super(),this[_0x281196(0x250)]=_0x2d308e,this[_0x281196(0x175)]=_0x294ead,this[_0x281196(0x21f)]=_0x429092,this[_0x281196(0x218)]=_0x2d5e2d,this[_0x281196(0x300)]=_0x2b83b0,this[_0x281196(0x1c7)]=_0x487224,q(this,_0x281196(0x20b),null),this[_0x281196(0x2dc)](),this['_initSelection'](),this[_0x281196(0x270)]();}[_0x2a50d1(0x2dc)](){const _0x3eefbc=_0x2a50d1;let {scene:_0x1871c5}=this['_context'];this['disposeWithMe'](_0x1871c5['onDblclick$'][_0x3eefbc(0x380)](_0x14ebb1=>{const _0x39d89e=_0x3eefbc;let {offsetX:_0x38a700,offsetY:_0x7f34c3}=_0x14ebb1,_0x77fee0=_0x1871c5[_0x39d89e(0x258)](_0x2c251b[_0x39d89e(0x385)]([_0x38a700,_0x7f34c3]));if(_0x77fee0 instanceof J){let _0x226e71=this[_0x39d89e(0x1c7)][_0x39d89e(0x38d)](_0x77fee0[_0x39d89e(0x417)],_0x77fee0[_0x39d89e(0x3ac)],_0x77fee0[_0x39d89e(0x32c)]);if(_0x4ff847(this[_0x39d89e(0x1c7)]['getShapeType'](_0x77fee0[_0x39d89e(0x417)],_0x77fee0[_0x39d89e(0x3ac)],_0x77fee0[_0x39d89e(0x32c)]))||_0x226e71!=null&&_0x226e71['getShapeData']()[_0x39d89e(0x359)])return;this[_0x39d89e(0x21f)][_0x39d89e(0x324)]({'visible':!0x0,'unitId':_0x77fee0[_0x39d89e(0x417)],'subUnitId':_0x77fee0[_0x39d89e(0x3ac)],'shapeId':_0x77fee0[_0x39d89e(0x32c)],'shapeKey':_0x77fee0[_0x39d89e(0x223)]});}}));}[_0x2a50d1(0x226)](){const _0x4e347d=_0x2a50d1;this[_0x4e347d(0x413)](this[_0x4e347d(0x218)]['focus$'][_0x4e347d(0x322)](_0xb40e9e=>{const _0x558334=_0x4e347d;if(_0xb40e9e[_0x558334(0x384)]===0x1){let _0x476eb4=_0xb40e9e[0x0],_0x3bff15=this[_0x558334(0x218)][_0x558334(0x402)](_0x476eb4);if((_0x3bff15==null?void 0x0:_0x3bff15[_0x558334(0x271)])===_0x2af550['DRAWING_SHAPE']){var _0x260508;let _0x84ab10=this['_shapeTextEditingService']['getEditing']();if((_0x84ab10==null?void 0x0:_0x84ab10[_0x558334(0x32c)])===_0x476eb4[_0x558334(0x3ab)]&&_0x84ab10[_0x558334(0x412)])return;let _0x4344ca=_0x4ff847(this['_sheetsShapeService'][_0x558334(0x335)](_0x476eb4[_0x558334(0x417)],_0x476eb4[_0x558334(0x3ac)],_0x476eb4[_0x558334(0x3ab)])),_0x97e98c=!!((_0x260508=this[_0x558334(0x1c7)]['getShapeModel'](_0x476eb4[_0x558334(0x417)],_0x476eb4[_0x558334(0x3ac)],_0x476eb4[_0x558334(0x3ab)]))!=null&&_0x260508[_0x558334(0x396)]()['formulaBinding']);(_0x4344ca||_0x97e98c)&&this[_0x558334(0x21f)][_0x558334(0x324)](null);}else this[_0x558334(0x21f)][_0x558334(0x29f)]();}else this[_0x558334(0x21f)][_0x558334(0x29f)]();})),this[_0x4e347d(0x413)](this[_0x4e347d(0x218)][_0x4e347d(0x1dd)][_0x4e347d(0x322)](_0x38c5c6=>{const _0x29d4dd=_0x4e347d;let _0x2b18f6=this[_0x29d4dd(0x21f)]['getEditing']();_0x2b18f6&&_0x38c5c6[_0x29d4dd(0x189)](_0x38b6de=>_0x38b6de[_0x29d4dd(0x3ab)]===_0x2b18f6[_0x29d4dd(0x32c)])&&this[_0x29d4dd(0x21f)][_0x29d4dd(0x324)](null);}));}[_0x2a50d1(0x270)](){const _0x23d7da=_0x2a50d1;this[_0x23d7da(0x413)](this['_shapeTextEditingService'][_0x23d7da(0x3d4)]['subscribe'](_0x41e4f6=>{const _0x50a4e1=_0x23d7da;let {scene:_0x2e8741}=this[_0x50a4e1(0x250)];if(this[_0x50a4e1(0x20b)]){let _0x3f3336=_0x2e8741[_0x50a4e1(0x244)](this['_lastEditingShapeKey']);_0x3f3336&&_0x3f3336[_0x50a4e1(0x324)](!0x1);}if(_0x41e4f6){let _0x170e5c=!!_0x41e4f6[_0x50a4e1(0x412)],_0x58c631=_0x2e8741[_0x50a4e1(0x244)](_0x41e4f6[_0x50a4e1(0x195)]);_0x58c631&&(_0x58c631[_0x50a4e1(0x324)](_0x170e5c),this['_lastEditingShapeKey']=_0x41e4f6[_0x50a4e1(0x195)]),this[_0x50a4e1(0x300)]['setContextValue'](_0x436061,_0x170e5c);}else this[_0x50a4e1(0x20b)]=null,this[_0x50a4e1(0x300)]['setContextValue'](_0x436061,!0x1);}));}};na=X([Y(0x1,_0x1cc97c(_0x2fc7b0)),Y(0x2,_0x1cc97c($)),Y(0x3,_0x4f51fd),Y(0x4,_0x4fc54e),Y(0x5,_0x1cc97c(_0x19ac46))],na);var ra=class extends na{[_0x2a50d1(0x2dc)](){const _0x3509ac=_0x2a50d1;let {scene:_0x3808a0}=this['_context'],_0x3138aa=this['_injector'][_0x3509ac(0x17c)](_0x5e474a);this[_0x3509ac(0x413)](_0x3808a0['onDblclick$'][_0x3509ac(0x380)](_0x2db19a=>{const _0x5a7949=_0x3509ac;let {offsetX:_0x5f4e00,offsetY:_0x511f27}=_0x2db19a,_0x359762=_0x3808a0[_0x5a7949(0x258)](_0x2c251b[_0x5a7949(0x385)]([_0x5f4e00,_0x511f27]));if(!(_0x359762 instanceof J))return;let _0x54004e=this[_0x5a7949(0x1c7)][_0x5a7949(0x38d)](_0x359762['unitId'],_0x359762['subUnitId'],_0x359762[_0x5a7949(0x32c)]);_0x4ff847(this[_0x5a7949(0x1c7)][_0x5a7949(0x335)](_0x359762['unitId'],_0x359762[_0x5a7949(0x3ac)],_0x359762[_0x5a7949(0x32c)]))||_0x54004e!=null&&_0x54004e[_0x5a7949(0x396)]()[_0x5a7949(0x359)]||_0x3138aa['open']('text',{'hostType':_0x31b64c[_0x5a7949(0x1a1)],'unitId':_0x359762[_0x5a7949(0x417)],'subUnitId':_0x359762[_0x5a7949(0x3ac)],'shapeId':_0x359762[_0x5a7949(0x32c)]});}));}};const ia={...Ui};let aa=class extends _0x50b698{constructor(_0x1fd589,_0x255a4e,_0x201ad5,_0x1a2474,_0x285ec7,_0x166619,_0x596943,_0xb6e210){const _0x996699=_0x2a50d1;super(),this[_0x996699(0x3d7)]=_0x1fd589,this[_0x996699(0x1c7)]=_0x255a4e,this[_0x996699(0x3a4)]=_0x201ad5,this[_0x996699(0x218)]=_0x1a2474,this[_0x996699(0x1f5)]=_0x285ec7,this['_contextService']=_0x166619,this[_0x996699(0x431)]=_0x596943,this[_0x996699(0x21f)]=_0xb6e210,q(this,_0x996699(0x3b3),null),this[_0x996699(0x3d7)]['mergeMenu'](ia),this[_0x996699(0x42c)](),this[_0x996699(0x413)](this[_0x996699(0x21f)][_0x996699(0x3d4)]['subscribe'](_0x322223=>{_0x322223&&this['_clearFocusedShape']();}));}[_0x2a50d1(0x27e)](){const _0xa910ce=_0x2a50d1;this[_0xa910ce(0x3b3)]||=this['disposeWithMe'](_0x3859e5(this[_0xa910ce(0x431)],_0x31b64c[_0xa910ce(0x1a1)],_0x120009=>this[_0xa910ce(0x3f5)](_0x120009)));}[_0x2a50d1(0x42c)](){const _0x4252ed=_0x2a50d1;this[_0x4252ed(0x1f5)]['registerFeatureMenu'](_0x2af550[_0x4252ed(0x255)],(_0x46bae0,_0x14c2e4,_0x530f75,_0x52c959)=>{const _0x512954=_0x4252ed;let _0x37a952=this['_sheetsShapeService'][_0x512954(0x1f4)](_0x46bae0,_0x14c2e4,_0x530f75),_0x2d2857=this[_0x512954(0x1c7)][_0x512954(0x180)](_0x46bae0,_0x14c2e4,_0x530f75),_0x23bd66=_0x37a952!==void 0x0&&!_0x4ff847(_0x37a952)&&!(_0x2d2857!=null&&_0x2d2857[_0x512954(0x359)]);return[{'label':_0x512954(0x22d),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x46bae0,'subUnitId':_0x14c2e4,'drawingId':_0x530f75,'mode':_0x512954(0x291)},'disable':!0x1},..._0x23bd66?[{'label':_0x512954(0x3c7),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x46bae0,'subUnitId':_0x14c2e4,'drawingId':_0x530f75,'mode':_0x512954(0x31e)},'disable':!0x1}]:[],{'label':_0x512954(0x420),'index':0x2,'commandId':_0x18105d['id'],'commandParams':{'unitId':_0x46bae0,'drawings':[{'unitId':_0x46bae0,'subUnitId':_0x14c2e4,'drawingId':_0x530f75,'drawingType':_0x52c959}]},'disable':!0x1},{'label':_0x512954(0x426),'index':0x3,'commandId':_0x38de8d['id'],'commandParams':{'unitId':_0x46bae0,'subUnitId':_0x14c2e4,'shapeId':_0x530f75,'flipH':!0x0},'disable':!0x1},{'label':_0x512954(0x416),'index':0x4,'commandId':_0x38de8d['id'],'commandParams':{'unitId':_0x46bae0,'subUnitId':_0x14c2e4,'shapeId':_0x530f75,'flipV':!0x0},'disable':!0x1}];},_0x4252ed(0x40d));}[_0x2a50d1(0x3f5)](_0xe1bc4d){const _0x1e7e83=_0x2a50d1;let _0x4bc1e4=new _0x3f9542(),_0xfe49d0=null,_0x262956=()=>{const _0x55c352=_0x2867;if(!_0xfe49d0)return;let _0x420ade=this['_drawingManagerService']['getFocusDrawings'](),_0x53e744=_0x420ade['length']===0x0||_0x420ade[_0x55c352(0x384)]===0x1&&_0x420ade[_0x55c352(0x189)](_0x4da60c=>_0x4da60c[_0x55c352(0x417)]===(_0xfe49d0==null?void 0x0:_0xfe49d0[_0x55c352(0x417)])&&_0x4da60c['subUnitId']===(_0xfe49d0==null?void 0x0:_0xfe49d0[_0x55c352(0x3ac)])&&_0x4da60c[_0x55c352(0x3ab)]===(_0xfe49d0==null?void 0x0:_0xfe49d0[_0x55c352(0x3ab)]));_0xfe49d0=null,_0x53e744&&(this[_0x55c352(0x300)][_0x55c352(0x1e7)](_0x3c571e,!0x1),this[_0x55c352(0x218)][_0x55c352(0x1ec)](null));};return _0x4bc1e4[_0x1e7e83(0x29c)](_0xe1bc4d[_0x1e7e83(0x3dc)][_0x1e7e83(0x322)](()=>{const _0x16f552=_0x1e7e83;let _0x2756e2=_0xe1bc4d[_0x16f552(0x3a8)]();if(_0x2756e2[_0x16f552(0x199)]>0x1){_0x262956();return;}let _0x58dd5d=_0x2756e2[_0x16f552(0x273)]()[_0x16f552(0x399)]()[_0x16f552(0x351)];if(!_0x58dd5d){_0x262956();return;}let _0x15a984=this[_0x16f552(0x218)][_0x16f552(0x23f)](_0x58dd5d['oKey']);if(!_0x15a984||_0x15a984[_0x16f552(0x271)]!==_0x2af550[_0x16f552(0x255)]){_0x262956();return;}let {unitId:_0x2baa1f,subUnitId:_0x3344f2,drawingId:_0x43b526}=_0x15a984;_0xfe49d0={'unitId':_0x2baa1f,'subUnitId':_0x3344f2,'drawingId':_0x43b526},this[_0x16f552(0x300)][_0x16f552(0x1e7)](_0x3c571e,!0x0),this[_0x16f552(0x218)]['getFocusDrawings']()[_0x16f552(0x3f4)](_0x5d7bd6=>_0x5d7bd6[_0x16f552(0x417)]===_0x2baa1f&&_0x5d7bd6['subUnitId']===_0x3344f2&&_0x5d7bd6[_0x16f552(0x3ab)]===_0x43b526)||this['_drawingManagerService'][_0x16f552(0x1ec)]([{'unitId':_0x2baa1f,'subUnitId':_0x3344f2,'drawingId':_0x43b526}]);})),_0x4bc1e4['add'](_0xe1bc4d['clearControl$'][_0x1e7e83(0x322)](()=>{_0x262956();})),_0x3d1611(()=>{const _0x410f17=_0x1e7e83;_0x4bc1e4[_0x410f17(0x2bd)](),_0x262956();});}['_clearFocusedShape'](){const _0x12bb78=_0x2a50d1;this['_contextService'][_0x12bb78(0x1e7)](_0x3c571e,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};aa=X([Y(0x0,_0x578415),Y(0x1,_0x1cc97c(_0x19ac46)),Y(0x2,_0x36cb63),Y(0x3,_0x4f51fd),Y(0x4,_0x1cc97c(_0x43c3f4)),Y(0x5,_0x4fc54e),Y(0x6,_0x5ee803),Y(0x7,_0x1cc97c($))],aa);function oa(_0x1fa8d4,_0xcfd071,_0x2689ff,_0x56181d){const _0x504c53=_0x2a50d1;let _0x19d997=_0x2eb6de(_0x1fa8d4,_0xcfd071,_0x2689ff),_0x312096=[];for(let _0x302dba of _0xcfd071){let _0x236df6=_0x19d997[_0x504c53(0x365)][_0x504c53(0x17c)](_0x302dba[_0x504c53(0x3ab)]),_0x370e0c=_0x56181d(_0x302dba);_0x236df6&&_0x370e0c&&_0x312096[_0x504c53(0x1bb)]({'targetShapeId':_0x236df6,'source':_0x370e0c});}return _0x312096;}let sa=class extends _0x50b698{constructor(_0x1e744e,_0x4fadd3,_0x40e588,_0x374d7f){const _0x434fa5=_0x2a50d1;super(),this[_0x434fa5(0x1f8)]=_0x1e744e,this[_0x434fa5(0x3b1)]=_0x4fadd3,this[_0x434fa5(0x349)]=_0x40e588,this['_sheetsShapeService']=_0x374d7f,this[_0x434fa5(0x332)]();}['_initSheetChange'](){const _0x32068b=_0x2a50d1;this['disposeWithMe'](this[_0x32068b(0x3b1)]['interceptCommand']({'getMutations':_0x266f8a=>{const _0x2ca8ce=_0x32068b;if(_0x266f8a['id']===_0x584874['id']){let _0x830b46=_0x2a6e27(this[_0x2ca8ce(0x1f8)],_0x266f8a[_0x2ca8ce(0x176)]);if(!_0x830b46)return{'redos':[],'undos':[]};let {unitId:_0x3f4dd6,subUnitId:_0x61eb2a}=_0x830b46,_0x1d7e2a=this[_0x2ca8ce(0x349)][_0x2ca8ce(0x2e3)](_0x3f4dd6,_0x61eb2a),_0x4573bb=Object[_0x2ca8ce(0x273)](_0x1d7e2a)[_0x2ca8ce(0x1cc)](_0xb0dba4=>_0xb0dba4['drawingType']===_0x2af550[_0x2ca8ce(0x255)]);if(_0x4573bb[_0x2ca8ce(0x384)]===0x0)return{'redos':[],'undos':[]};let _0x35a88e=[],_0x4276a2=[];for(let _0x224bc5=0x0;_0x224bc5<_0x4573bb[_0x2ca8ce(0x384)];_0x224bc5++){let _0x50fcca=_0x4573bb[_0x224bc5],_0x19c39b=this[_0x2ca8ce(0x1c7)][_0x2ca8ce(0x38d)](_0x50fcca[_0x2ca8ce(0x417)],_0x50fcca[_0x2ca8ce(0x3ac)],_0x50fcca[_0x2ca8ce(0x3ab)]);_0x19c39b&&(_0x35a88e[_0x2ca8ce(0x1bb)]({'id':_0x4345e0['id'],'params':{'unitId':_0x3f4dd6,'subUnitId':_0x61eb2a,'shapeId':_0x50fcca['drawingId']}}),_0x4276a2[_0x2ca8ce(0x1bb)]({'id':_0x5d2fb0['id'],'params':{'unitId':_0x3f4dd6,'subUnitId':_0x61eb2a,'shapeId':_0x50fcca[_0x2ca8ce(0x3ab)],'shapeType':_0x19c39b[_0x2ca8ce(0x335)](),'shapeData':JSON[_0x2ca8ce(0x3c4)](JSON[_0x2ca8ce(0x3c6)](_0x19c39b[_0x2ca8ce(0x396)]()))}}));}return{'redos':_0x35a88e,'undos':_0x4276a2};}if(_0x266f8a['id']===_0x4a833d['id']){let {unitId:_0x4355c2,subUnitId:_0x19e305,targetSubUnitId:_0x35b683,copyContext:_0x325812}=_0x266f8a[_0x2ca8ce(0x176)];if(!_0x4355c2||!_0x19e305||!_0x35b683)return{'redos':[],'undos':[]};let _0x530999=this[_0x2ca8ce(0x349)][_0x2ca8ce(0x2e3)](_0x4355c2,_0x19e305),_0x78b7c0=Object[_0x2ca8ce(0x273)](_0x530999)[_0x2ca8ce(0x1cc)](_0x24bcd8=>_0x24bcd8[_0x2ca8ce(0x271)]===_0x2af550[_0x2ca8ce(0x255)]);if(_0x78b7c0[_0x2ca8ce(0x384)]===0x0)return{'redos':[],'undos':[]};let _0x3f4fb6=oa(_0x325812,_0x78b7c0,{'unitId':_0x4355c2,'sourceSubUnitId':_0x19e305,'targetSubUnitId':_0x35b683},_0x385f14=>{const _0x2157f3=_0x2ca8ce;let _0x3da8f7=this[_0x2157f3(0x1c7)][_0x2157f3(0x38d)](_0x385f14[_0x2157f3(0x417)],_0x385f14[_0x2157f3(0x3ac)],_0x385f14['drawingId']);if(_0x3da8f7)return{'shapeType':_0x3da8f7[_0x2157f3(0x335)](),'shapeData':JSON[_0x2157f3(0x3c4)](JSON[_0x2157f3(0x3c6)](_0x3da8f7['getShapeData']()))};}),_0x2c1299=[],_0x1b2c8f=[];for(let {targetShapeId:_0x54529b,source:_0x4d4ad7}of _0x3f4fb6)_0x2c1299[_0x2ca8ce(0x1bb)]({'id':_0x5d2fb0['id'],'params':{'unitId':_0x4355c2,'subUnitId':_0x35b683,'shapeId':_0x54529b,'shapeType':_0x4d4ad7[_0x2ca8ce(0x334)],'shapeData':_0x4d4ad7[_0x2ca8ce(0x342)]}}),_0x1b2c8f[_0x2ca8ce(0x1bb)]({'id':_0x4345e0['id'],'params':{'unitId':_0x4355c2,'subUnitId':_0x35b683,'shapeId':_0x54529b}});return{'redos':_0x2c1299,'undos':_0x1b2c8f};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x1cc97c(_0x3a5e32)),Y(0x1,_0x1cc97c(_0x2af05e)),Y(0x2,_0x1cc97c(_0x342231)),Y(0x3,_0x1cc97c(_0x19ac46))],sa);let ca=class extends _0x50b698{constructor(_0x586e29,_0x3c6428,_0x1e5141,_0x56dbc8,_0x48ffc8,_0x18661d){const _0x466ec8=_0x2a50d1;super(),this[_0x466ec8(0x3a4)]=_0x586e29,this[_0x466ec8(0x431)]=_0x3c6428,this[_0x466ec8(0x218)]=_0x1e5141,this[_0x466ec8(0x19c)]=_0x56dbc8,this[_0x466ec8(0x1b2)]=_0x48ffc8,this[_0x466ec8(0x21e)]=_0x18661d,q(this,_0x466ec8(0x17f),new Set()),this[_0x466ec8(0x28c)]();}[_0x2a50d1(0x28c)](){const _0x210920=_0x2a50d1;this[_0x210920(0x2e5)](),this[_0x210920(0x1cd)](),this[_0x210920(0x41d)]();}[_0x2a50d1(0x2e5)](){const _0x483ab3=_0x2a50d1;this[_0x483ab3(0x413)](this[_0x483ab3(0x218)]['add$'][_0x483ab3(0x322)](_0x2a2c2a=>{const _0x3a7df7=_0x483ab3;this[_0x3a7df7(0x319)](_0x2a2c2a);}));}[_0x2a50d1(0x1cd)](){const _0x4fb0ea=_0x2a50d1;this[_0x4fb0ea(0x413)](this['_commandService'][_0x4fb0ea(0x2d3)]((_0x2595dd,_0x517f82)=>{const _0x34a2f9=_0x4fb0ea;if(_0x2595dd['id']===_0x1528ac['id']){let {unitId:_0x45ab49,subUnitId:_0x499c75,shapeId:_0x31d840}=_0x2595dd['params'],_0x125316=this[_0x34a2f9(0x3cb)](_0x45ab49),_0x598b6a=_0x5b513c({'unitId':_0x45ab49,'subUnitId':_0x499c75,'drawingId':_0x31d840}),_0x338f9e=_0x125316==null?void 0x0:_0x125316[_0x34a2f9(0x3da)][_0x34a2f9(0x244)](_0x598b6a);_0x338f9e&&(this[_0x34a2f9(0x21e)][_0x34a2f9(0x183)](_0x338f9e),this[_0x34a2f9(0x21e)]['refreshFormulaPresentation'](_0x338f9e,{'unitId':_0x45ab49,'subUnitId':_0x499c75,'shapeId':_0x31d840}),_0x338f9e[_0x34a2f9(0x2fb)](!0x0));}else{if(_0x2595dd['id']===_0x5d2fb0['id']){var _0x3970f3;let {unitId:_0x1b5c4b,subUnitId:_0x5ab06b,shapeId:_0x103c44}=_0x2595dd[_0x34a2f9(0x176)],_0x2fef45=this[_0x34a2f9(0x3cb)](_0x1b5c4b);if(_0x2fef45==null)return;let {scene:_0x3ab660}=_0x2fef45,_0x4badd0=_0x5b513c({'unitId':_0x1b5c4b,'subUnitId':_0x5ab06b,'drawingId':_0x103c44}),_0x8eb82b=_0x3ab660[_0x34a2f9(0x244)](_0x4badd0);if(!((_0x3970f3=this['_renderManagerService'][_0x34a2f9(0x18e)](_0x1b5c4b))!=null&&_0x3970f3[_0x34a2f9(0x3bf)](_0x2df2f6)[_0x34a2f9(0x404)](_0x5ab06b)))return!0x1;if(_0x8eb82b)return;if(_0x517f82!=null&&_0x517f82[_0x34a2f9(0x1e9)]){queueMicrotask(()=>{const _0x4632dc=_0x34a2f9;this[_0x4632dc(0x3c3)]||this[_0x4632dc(0x319)]([{'unitId':_0x1b5c4b,'subUnitId':_0x5ab06b,'drawingId':_0x103c44}]);});return;}this['_insertShapes']([{'unitId':_0x1b5c4b,'subUnitId':_0x5ab06b,'drawingId':_0x103c44}]);}}}));}[_0x2a50d1(0x41d)](){const _0x3371c9=_0x2a50d1;this[_0x3371c9(0x413)](this[_0x3371c9(0x218)][_0x3371c9(0x215)][_0x3371c9(0x322)](_0x40bc49=>{const _0x41c47e=_0x3371c9;_0x40bc49[_0x41c47e(0x3a1)](_0x3d45b3=>{const _0x17f6d5=_0x41c47e;let {unitId:_0x42c932,subUnitId:_0x131fdf,drawingId:_0x3c79ad}=_0x3d45b3,_0x6c44e=this[_0x17f6d5(0x218)][_0x17f6d5(0x402)](_0x3d45b3);if(_0x6c44e==null)return;let {transform:_0x49d9a7,drawingType:_0x6a28e6,srcRect:_0x213e7f,prstGeom:_0x226f64}=_0x6c44e;if(_0x6a28e6!==_0x2af550['DRAWING_SHAPE'])return;let _0x332f8e=this[_0x17f6d5(0x3cb)](_0x42c932);if(_0x332f8e==null)return;let {scene:_0x183b2e,transformer:_0x4497c4}=_0x332f8e;if(_0x49d9a7==null)return!0x0;let _0x3c6344=_0x5b513c({'unitId':_0x42c932,'subUnitId':_0x131fdf,'drawingId':_0x3c79ad}),_0x117d51=_0x183b2e['getObjectIncludeInGroup'](_0x3c6344);if(_0x117d51==null)return!0x0;_0x117d51['setSrcRect'](_0x213e7f),_0x117d51['setPrstGeom'](_0x226f64);});}));}[_0x2a50d1(0x319)](_0x5dd7d5){const _0xa2b9f9=_0x2a50d1;for(let _0x2df28c of _0x5dd7d5){var _0x1f4ef8;let {unitId:_0x281c01,subUnitId:_0x282f2b,drawingId:_0x2b9435}=_0x2df28c,_0x3f5cff=this[_0xa2b9f9(0x3cb)](_0x281c01),_0x21d2db=(_0x1f4ef8=_0x168f1b(this['_currentUniverService'],_0x281c01))==null?void 0x0:_0x1f4ef8[_0xa2b9f9(0x3ac)];if(_0x3f5cff==null||_0x21d2db!==_0x282f2b)return;let _0x15f395=_0x5b513c({'unitId':_0x281c01,'subUnitId':_0x282f2b,'drawingId':_0x2b9435});if(this[_0xa2b9f9(0x17f)]['has'](_0x15f395)||_0x3f5cff[_0xa2b9f9(0x3da)][_0xa2b9f9(0x244)](_0x15f395)!=null)return;let _0x3212ee=this['_drawingManagerService'][_0xa2b9f9(0x402)](_0x2df28c);if(_0x3212ee==null||_0x3212ee[_0xa2b9f9(0x271)]!==_0x2af550[_0xa2b9f9(0x255)])return;let _0x16c0eb=_0x3212ee['data']||{};if(_0x4ff847(_0x16c0eb['shapeType'])){let _0x120679=_0x3212ee[_0xa2b9f9(0x3e1)];_0x120679&&(_0x3212ee['transform']={..._0x120679,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0xa2b9f9(0x17f)][_0xa2b9f9(0x29c)](_0x15f395);try{this[_0xa2b9f9(0x21e)][_0xa2b9f9(0x22e)](_0x3212ee,_0x3f5cff[_0xa2b9f9(0x3da)]);}finally{this[_0xa2b9f9(0x17f)][_0xa2b9f9(0x1da)](_0x15f395);}queueMicrotask(()=>{const _0x2e552c=_0xa2b9f9;if(this[_0x2e552c(0x3c3)])return;let _0x2e7aa3=_0x5b513c(_0x2df28c);if(!_0x3f5cff[_0x2e552c(0x3da)][_0x2e552c(0x244)](_0x2e7aa3))return;let _0xda1665=this[_0x2e552c(0x218)][_0x2e552c(0x402)](_0x2df28c);_0xda1665&&this[_0x2e552c(0x218)][_0x2e552c(0x2db)]([_0xda1665]);});}}[_0x2a50d1(0x3cb)](_0x3e32cf){const _0x10107d=_0x2a50d1;if(_0x3e32cf==null)return;let _0x5b0271=this[_0x10107d(0x431)]['getRenderUnitById'](_0x3e32cf),_0x4e49c0=_0x5b0271==null?void 0x0:_0x5b0271['scene'];return _0x4e49c0==null?null:{'scene':_0x4e49c0,'transformer':_0x4e49c0[_0x10107d(0x403)]()};}};ca=X([Y(0x0,_0x36cb63),Y(0x1,_0x5ee803),Y(0x2,_0x4f51fd),Y(0x3,_0x3a5e32),Y(0x4,_0x1cc97c(_0x332325)),Y(0x5,_0x1cc97c(Z))],ca);const la={'normal':{'fill':_0xc3f276['cxnPointFill'],'stroke':_0xc3f276['cxnPointStroke'],'strokeWidth':_0xc3f276[_0x2a50d1(0x239)]},'highlighted':{'fill':_0x2a50d1(0x221),'stroke':_0x2a50d1(0x33a),'strokeWidth':0x2}};function _0x2867(_0x3a4430,_0x2d7a1d){_0x3a4430=_0x3a4430-0x175;const _0x25cb1e=_0x25cb();let _0x286748=_0x25cb1e[_0x3a4430];return _0x286748;}var ua=class extends _0x516f1f{constructor(_0x19ee15,_0x596c79){const _0x2b7d6=_0x2a50d1;super(_0x19ee15,_0x596c79),q(this,_0x2b7d6(0x1bf),''),q(this,_0x2b7d6(0x243),-0x1),q(this,_0x2b7d6(0x41e),''),q(this,_0x2b7d6(0x1c3),''),q(this,'_isHighlighted',!0x1),_0x596c79&&this[_0x2b7d6(0x368)](_0x596c79);}['getConnectionInfo'](){const _0x436b12=_0x2a50d1;return{'unitId':this[_0x436b12(0x41e)],'subUnitId':this[_0x436b12(0x1c3)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x436b12(0x243)]};}[_0x2a50d1(0x228)](_0x83b084){const _0x55efc4=_0x2a50d1;this[_0x55efc4(0x20d)]!==_0x83b084&&(this[_0x55efc4(0x20d)]=_0x83b084,this[_0x55efc4(0x2fb)](!0x0));}[_0x2a50d1(0x410)](){const _0xd42484=_0x2a50d1;return this[_0xd42484(0x20d)];}['setShapeProps'](_0x3fe39a){const _0x444762=_0x2a50d1;_0x3fe39a[_0x444762(0x3d8)]!==void 0x0&&(this[_0x444762(0x1bf)]=_0x3fe39a[_0x444762(0x3d8)]),_0x3fe39a[_0x444762(0x361)]!==void 0x0&&(this[_0x444762(0x243)]=_0x3fe39a['cxnIndex']),_0x3fe39a['unitId']!==void 0x0&&(this[_0x444762(0x41e)]=_0x3fe39a[_0x444762(0x417)]),_0x3fe39a[_0x444762(0x3ac)]!==void 0x0&&(this[_0x444762(0x1c3)]=_0x3fe39a[_0x444762(0x3ac)]),_0x3fe39a['isHighlighted']!==void 0x0&&(this[_0x444762(0x20d)]=_0x3fe39a[_0x444762(0x410)]),this[_0x444762(0x364)]({'width':_0x3fe39a[_0x444762(0x320)]??_0xc3f276['cxnPointRadius']*0x2,'height':_0x3fe39a[_0x444762(0x2f5)]??_0xc3f276[_0x444762(0x1e6)]*0x2});}['_draw'](_0x1a25e4){const _0x27a003=_0x2a50d1;let _0x559242=this[_0x27a003(0x20d)]?la[_0x27a003(0x34a)]:la[_0x27a003(0x207)];_0x351bf8[_0x27a003(0x363)](_0x1a25e4,{'radius':_0xc3f276['cxnPointRadius'],'fill':_0x559242[_0x27a003(0x236)],'stroke':_0x559242[_0x27a003(0x372)],'strokeWidth':_0x559242['strokeWidth'],'evented':!0x0});}};let da=class extends _0x50b698{constructor(_0x223d81,_0x16555e,_0x4a03cf,_0x3d018b){const _0x177864=_0x2a50d1;super(),this[_0x177864(0x250)]=_0x223d81,this['_renderManagerService']=_0x16555e,this[_0x177864(0x218)]=_0x4a03cf,this[_0x177864(0x1c7)]=_0x3d018b,q(this,_0x177864(0x1c5),[]),q(this,'_activeTargetShapeId',null),q(this,_0x177864(0x377),-0x1),q(this,_0x177864(0x3c2),null),q(this,_0x177864(0x41e),''),q(this,_0x177864(0x1c3),''),q(this,_0x177864(0x2cd),null);}['startConnectionDetection'](_0x18f94d,_0x15e586,_0x158556,_0x2e2551){const _0x25e201=_0x2a50d1;this['_currentScene']=_0x18f94d,this['_unitId']=_0x15e586,this[_0x25e201(0x1c3)]=_0x158556,this['_draggingConnectorId']=_0x2e2551;}[_0x2a50d1(0x190)](_0x14b661){const _0x356d08=_0x2a50d1;if(!this['_currentScene'])return null;let _0xcb024f=this[_0x356d08(0x25c)](_0x14b661);return _0xcb024f?(this[_0x356d08(0x2d2)]!==_0xcb024f[_0x356d08(0x32c)]&&(this[_0x356d08(0x31f)](),this[_0x356d08(0x304)](_0xcb024f[_0x356d08(0x32c)],_0xcb024f[_0x356d08(0x330)]),this['_activeTargetShapeId']=_0xcb024f[_0x356d08(0x32c)]),this['_findNearestConnectionSite'](_0x14b661)):(this[_0x356d08(0x2d2)]!==null&&(this[_0x356d08(0x31f)](),this[_0x356d08(0x2d2)]=null),null);}[_0x2a50d1(0x208)](){const _0x393f1c=_0x2a50d1;this[_0x393f1c(0x31f)](),this[_0x393f1c(0x3c2)]=null,this['_activeTargetShapeId']=null,this[_0x393f1c(0x377)]=-0x1,this[_0x393f1c(0x2cd)]=null;}[_0x2a50d1(0x1b1)](){const _0x36d5c6=_0x2a50d1;return this[_0x36d5c6(0x2d2)]===null||this[_0x36d5c6(0x377)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this['_highlightedSiteIndex']};}[_0x2a50d1(0x25c)](_0x3a3a64){const _0x81e2f0=_0x2a50d1;let _0x14ea5a=this[_0x81e2f0(0x218)][_0x81e2f0(0x2e3)](this[_0x81e2f0(0x41e)],this[_0x81e2f0(0x1c3)]);for(let _0x27acc0 of Object[_0x81e2f0(0x209)](_0x14ea5a)){if(_0x27acc0===this[_0x81e2f0(0x2cd)]||_0x14ea5a[_0x27acc0]['drawingType']!==_0x2af550[_0x81e2f0(0x255)])continue;let _0x579358=this[_0x81e2f0(0x1c7)]['getShapeModel'](this[_0x81e2f0(0x41e)],this[_0x81e2f0(0x1c3)],_0x27acc0);if(!_0x579358||_0x4ff847(_0x579358['getShapeType']())||_0x579358['getConnectionSiteList']()[_0x81e2f0(0x384)]===0x0||!this[_0x81e2f0(0x3c2)])continue;let _0x32d4dc=_0x5b513c({'unitId':this['_unitId'],'subUnitId':this[_0x81e2f0(0x1c3)],'drawingId':_0x27acc0}),_0x1002d1=this[_0x81e2f0(0x3c2)][_0x81e2f0(0x244)](_0x32d4dc);if(!_0x1002d1)continue;let {left:_0x3713ec,top:_0x3a23b8,width:_0x249906,height:_0x5e0afb}=_0x1002d1[_0x81e2f0(0x1aa)](),_0x57c341=_0x3713ec+_0x249906/0x2,_0x4940ee=_0x3a23b8+_0x5e0afb/0x2,_0x4b1e45=_0x1002d1[_0x81e2f0(0x3e1)]['getMatrix'](),_0x4a8b5c=new _0x18ca72([_0x4b1e45[0x0],_0x4b1e45[0x1],_0x4b1e45[0x2],_0x4b1e45[0x3],_0x57c341,_0x4940ee]),_0xf40622=_0x1002d1['getParent'](),_0x431353=(_0x1002d1[_0x81e2f0(0x30b)]&&(_0xf40622==null?void 0x0:_0xf40622[_0x81e2f0(0x352)])===_0x2294f7[_0x81e2f0(0x405)]?_0xf40622[_0x81e2f0(0x33c)][_0x81e2f0(0x24d)](_0x4a8b5c):_0x4a8b5c)[_0x81e2f0(0x1a2)]()[_0x81e2f0(0x3dd)](_0x3a3a64),_0x25f344=_0x249906/0x2,_0x1747fd=_0x5e0afb/0x2;if(_0x431353['x']>=-_0x25f344-0x5&&_0x431353['x']<=_0x25f344+0x5&&_0x431353['y']>=-_0x1747fd-0x5&&_0x431353['y']<=_0x1747fd+0x5)return{'shapeId':_0x27acc0,'shapeModel':_0x579358};}return null;}[_0x2a50d1(0x304)](_0x2db519,_0x3ee3cc){const _0x421630=_0x2a50d1;if(!this[_0x421630(0x3c2)])return;let _0x574d8d=_0x5b513c({'unitId':this[_0x421630(0x41e)],'subUnitId':this[_0x421630(0x1c3)],'drawingId':_0x2db519}),_0x31bc48=this[_0x421630(0x3c2)][_0x421630(0x244)](_0x574d8d);if(!_0x31bc48)return;let {left:_0x201c79,top:_0x52dd97,width:_0x14e139,height:_0xa8cb88}=_0x31bc48[_0x421630(0x1aa)](),_0x5a5e07=_0x201c79+_0x14e139/0x2,_0x6ac5e8=_0x52dd97+_0xa8cb88/0x2,_0x5a6c05=_0x31bc48['transform'][_0x421630(0x222)](),_0x43f2b0=new _0x18ca72([_0x5a6c05[0x0],_0x5a6c05[0x1],_0x5a6c05[0x2],_0x5a6c05[0x3],_0x5a5e07,_0x6ac5e8]),_0x4bc870=_0x31bc48['getParent'](),_0x3489db=_0x31bc48[_0x421630(0x30b)]&&(_0x4bc870==null?void 0x0:_0x4bc870['classType'])===_0x2294f7[_0x421630(0x405)]?_0x4bc870['ancestorTransform'][_0x421630(0x24d)](_0x43f2b0):_0x43f2b0;_0x3ee3cc[_0x421630(0x246)]({'width':_0x14e139,'height':_0xa8cb88});let _0x389da5=_0x3ee3cc[_0x421630(0x325)]();for(let _0x2945ae of _0x389da5){let _0x4836a5=_0x2945ae['x']-_0x14e139/0x2,_0x40ea89=_0x2945ae['y']-_0xa8cb88/0x2,_0x1e400f=_0x3489db[_0x421630(0x3dd)]({'x':_0x4836a5,'y':_0x40ea89}),_0x16b37d=_0x1e400f['x'],_0x518261=_0x1e400f['y'],_0x4814e3=new ua(_0x421630(0x3f8)+_0x2db519+'-'+_0x2945ae[_0x421630(0x38b)],{'left':_0x16b37d-_0xc3f276[_0x421630(0x1e6)],'top':_0x518261-_0xc3f276[_0x421630(0x1e6)],'targetShapeId':_0x2db519,'cxnIndex':_0x2945ae[_0x421630(0x38b)],'unitId':this[_0x421630(0x41e)],'subUnitId':this[_0x421630(0x1c3)],'width':_0xc3f276[_0x421630(0x1e6)]*0x2,'height':_0xc3f276[_0x421630(0x1e6)]*0x2,'zIndex':_0x3ef936+0x2,'evented':!0x1});this[_0x421630(0x1c5)][_0x421630(0x1bb)](_0x4814e3),this['_currentScene'][_0x421630(0x2bb)](_0x4814e3,_0x3ef936+0x2);}}[_0x2a50d1(0x389)](_0x37ad27){const _0x369217=_0x2a50d1;let _0x416de1=null,_0x398f06=0x1/0x0,_0x25622f=null;for(let _0x2e819e of this[_0x369217(0x1c5)]){let _0x5c987b=_0x2e819e[_0x369217(0x337)]+_0xc3f276[_0x369217(0x1e6)],_0x1d4262=_0x2e819e[_0x369217(0x2ed)]+_0xc3f276[_0x369217(0x1e6)],_0x509b62=_0x37ad27['x']-_0x5c987b,_0x20dd1b=_0x37ad27['y']-_0x1d4262,_0x16ed4f=Math[_0x369217(0x3f6)](_0x509b62*_0x509b62+_0x20dd1b*_0x20dd1b);_0x16ed4f<_0x398f06&&(_0x398f06=_0x16ed4f,_0x416de1=_0x2e819e,_0x25622f={'x':_0x5c987b,'y':_0x1d4262});}let _0x1854f5=_0x398f06<=0xa&&_0x416de1?_0x416de1['getConnectionInfo']()[_0x369217(0x361)]:-0x1;if(_0x1854f5!==this[_0x369217(0x377)]){for(let _0x4b955d of this[_0x369217(0x1c5)]){let _0x1e5be1=_0x4b955d[_0x369217(0x252)]();_0x4b955d[_0x369217(0x228)](_0x1e5be1[_0x369217(0x361)]===_0x1854f5);}this[_0x369217(0x377)]=_0x1854f5;}if(_0x398f06<=0xa&&_0x416de1&&_0x25622f){let _0xf8fda6=_0x416de1[_0x369217(0x252)](),_0x5c1807=this['_getConnectionSiteAngle'](_0xf8fda6['shapeId'],_0xf8fda6[_0x369217(0x361)]);return{'shapeId':_0xf8fda6[_0x369217(0x32c)],'cxnIndex':_0xf8fda6[_0x369217(0x361)],'unitId':_0xf8fda6[_0x369217(0x417)],'subUnitId':_0xf8fda6[_0x369217(0x3ac)],'worldPoint':_0x25622f,'angle':_0x5c1807};}return null;}[_0x2a50d1(0x388)](_0x10560d,_0x2fdbee){const _0x5d5d31=_0x2a50d1;let _0x454847=this[_0x5d5d31(0x1c7)][_0x5d5d31(0x38d)](this[_0x5d5d31(0x41e)],this[_0x5d5d31(0x1c3)],_0x10560d);if(!_0x454847)return 0x0;let _0x327b84=this['_drawingManagerService'][_0x5d5d31(0x402)]({'unitId':this[_0x5d5d31(0x41e)],'subUnitId':this[_0x5d5d31(0x1c3)],'drawingId':_0x10560d});if(!(_0x327b84!=null&&_0x327b84['transform']))return 0x0;let {width:_0x30881f=0x0,height:_0xb26365=0x0,flipX:_0x5b3e8a=!0x1,flipY:_0x3fbf51=!0x1}=_0x327b84[_0x5d5d31(0x3e1)];_0x454847[_0x5d5d31(0x246)]({'width':_0x30881f,'height':_0xb26365});let _0x57c00d=_0x454847[_0x5d5d31(0x325)]()['find'](_0x562e63=>_0x562e63['index']===_0x2fdbee);if(!_0x57c00d)return 0x0;let _0x4378e3=_0x57c00d[_0x5d5d31(0x178)]/0xea60;return _0x5b3e8a&&(_0x4378e3=0xb4-_0x4378e3),_0x3fbf51&&(_0x4378e3=-_0x4378e3),_0x4378e3=(_0x4378e3%0x168+0x168)%0x168,_0x4378e3;}['_clearConnectionSites'](){const _0x1ff8f2=_0x2a50d1;for(let _0x972641 of this['_connectionSiteObjects'])_0x972641['dispose']();this[_0x1ff8f2(0x1c5)]=[],this[_0x1ff8f2(0x377)]=-0x1;}['dispose'](){const _0x20f939=_0x2a50d1;this[_0x20f939(0x31f)](),super[_0x20f939(0x2bd)]();}};da=X([Y(0x1,_0x1cc97c(_0x5ee803)),Y(0x2,_0x1cc97c(_0x4f51fd)),Y(0x3,_0x1cc97c(_0x19ac46))],da);let fa=class extends _0x50b698{constructor(_0x2a7b8f,_0x100c65,_0x44f185,_0x3eda95,_0x16671e){const _0xea60eb=_0x2a50d1;super(),this['_sheetSkeletonService']=_0x2a7b8f,this[_0xea60eb(0x1a9)]=_0x100c65,this[_0xea60eb(0x349)]=_0x44f185,this[_0xea60eb(0x29a)]=_0x3eda95,this['_groupCopyPasteController']=_0x16671e,q(this,'_copyInfo',void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x2a50d1(0x235)](){const _0x138e63=_0x2a50d1;return this[_0x138e63(0x349)][_0x138e63(0x1ab)]();}[_0x2a50d1(0x27a)](){const _0x2d5de5=_0x2a50d1;this[_0x2d5de5(0x3a5)]['registerFeaturePasteHook'](({fromUnitId:_0x47445c,fromSubUnitId:_0x317ec2,toUnitId:_0x4b7721,toSubUnitId:_0x1d6e2e,idMap:_0x4ce10d})=>{const _0x23f5b1=_0x2d5de5;let _0x2169de=[],_0x31c712=[];for(let [_0x132191,_0x9ffe69]of _0x4ce10d['entries']()){let _0x1185fc=this[_0x23f5b1(0x29a)]['getShapeModel'](_0x47445c,_0x317ec2,_0x132191);if(!_0x1185fc)continue;let _0x2c8375=_0x1185fc[_0x23f5b1(0x335)](),_0x813151=JSON[_0x23f5b1(0x3c4)](JSON['stringify'](_0x1185fc[_0x23f5b1(0x396)]()));if(_0x813151[_0x23f5b1(0x2be)]){var _0x2f8c84,_0x2d0ee2;let _0x41b971=(_0x2f8c84=_0x813151[_0x23f5b1(0x2be)][_0x23f5b1(0x40f)])==null?void 0x0:_0x2f8c84['shapeId'],_0x46a722=(_0x2d0ee2=_0x813151[_0x23f5b1(0x2be)]['to'])==null?void 0x0:_0x2d0ee2[_0x23f5b1(0x32c)],_0x54a745=!_0x41b971||_0x4ce10d[_0x23f5b1(0x2af)](_0x41b971),_0x114392=!_0x46a722||_0x4ce10d[_0x23f5b1(0x2af)](_0x46a722);_0x54a745&&_0x41b971&&_0x813151[_0x23f5b1(0x2be)][_0x23f5b1(0x40f)]?_0x813151['relation'][_0x23f5b1(0x40f)]={..._0x813151[_0x23f5b1(0x2be)][_0x23f5b1(0x40f)],'shapeId':_0x4ce10d[_0x23f5b1(0x17c)](_0x41b971)}:_0x813151[_0x23f5b1(0x2be)]['from']=void 0x0,_0x114392&&_0x46a722&&_0x813151[_0x23f5b1(0x2be)]['to']?_0x813151['relation']['to']={..._0x813151['relation']['to'],'shapeId':_0x4ce10d[_0x23f5b1(0x17c)](_0x46a722)}:_0x813151['relation']['to']=void 0x0;}_0x2169de['push']({'id':_0x5d2fb0['id'],'params':{'unitId':_0x4b7721,'subUnitId':_0x1d6e2e,'shapeId':_0x9ffe69,'shapeType':_0x2c8375,'shapeData':_0x813151}}),_0x31c712[_0x23f5b1(0x1bb)]({'id':_0x4345e0['id'],'params':{'unitId':_0x4b7721,'subUnitId':_0x1d6e2e,'shapeId':_0x9ffe69}});}return{'redos':_0x2169de,'undos':_0x31c712};});}['_initCopyPaste'](){const _0x51a233=_0x2a50d1;this['disposeWithMe'](this['_sheetClipboardService'][_0x51a233(0x2e9)]({'id':_0x51a233(0x2a2),'onBeforeCopyFocusedObject':(_0xcd1f06,_0x5c43d4,_0x1f09dd)=>{const _0x358feb=_0x51a233;this['_copyInfo']=null;let _0x4f0d2e=this[_0x358feb(0x235)]['filter'](_0x2586c9=>_0x2586c9['drawingType']===_0x2af550[_0x358feb(0x255)]);return _0x4f0d2e['length']!==0x0&&(this[_0x358feb(0x3c8)]={'unitId':_0xcd1f06,'subUnitId':_0x5c43d4,'copyType':_0x1f09dd,'drawings':_0x4f0d2e},!0x0);},'onBeforeCopy':(_0x1a9cd2,_0x748752,_0x5bd403,_0x2028fc)=>{const _0x59b9b6=_0x51a233;this[_0x59b9b6(0x3c8)]=null,this['_createCopyInfoByRange'](_0x1a9cd2,_0x748752,_0x5bd403,_0x2028fc);},'onPasteCells':(_0xa6ecdc,_0xe624fc,_0x503865,_0x381d64)=>{const _0x144e20=_0x51a233;if(!_0x381d64[_0x144e20(0x1fc)]||!_0xa6ecdc||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x2e6185}=_0x381d64;return _0x2e6185===_0x1c4727['DEFAULT_PASTE']?this[_0x144e20(0x3b9)](_0xe624fc,this[_0x144e20(0x3c8)][_0x144e20(0x340)]===_0x449369['CUT']):{'redos':[],'undos':[]};}}));}[_0x2a50d1(0x390)](_0xc642a2,_0x22a388,_0x1255ec,_0xe44f70){const _0x244ce3=_0x2a50d1;let _0x274194=this['_sheetSkeletonService'][_0x244ce3(0x404)](_0xc642a2,_0x22a388);if(!_0x274194)return;let _0x2ca70d=_0x306cf5(_0x274194,_0x1255ec);if(!_0x2ca70d)return;let {startX:_0x10ab73,endX:_0x36913c,startY:_0x3db8f8,endY:_0x5a4a36}=_0x2ca70d,_0x5e62db=this['_sheetDrawingService'][_0x244ce3(0x2e3)](_0xc642a2,_0x22a388),_0xf8e189=[];for(let [_0x5b442b,_0x479654]of Object[_0x244ce3(0x24c)](_0x5e62db)){if(_0x479654[_0x244ce3(0x271)]!==_0x2af550[_0x244ce3(0x255)])continue;let {transform:_0x23b119}=_0x479654;if(!_0x23b119)continue;let {left:_0x4b58f2=0x0,top:_0x2f4414=0x0,width:_0xbbd23=0x0,height:_0x58532e=0x0}=_0x23b119;_0x10ab73<=_0x4b58f2&&_0x36913c>=_0x4b58f2+_0xbbd23&&_0x3db8f8<=_0x2f4414&&_0x5a4a36>=_0x2f4414+_0x58532e&&_0xf8e189['push'](_0x479654);}_0xf8e189[_0x244ce3(0x384)]>0x0&&(this[_0x244ce3(0x3c8)]={'unitId':_0xc642a2,'subUnitId':_0x22a388,'copyType':_0xe44f70,'copyRange':_0x1255ec,'drawings':_0xf8e189});}[_0x2a50d1(0x3b9)](_0x222e4a,_0x4932db){const _0x175c7e=_0x2a50d1;let {unitId:_0x32c2e6,subUnitId:_0x59b174,range:_0x2fea73}=_0x222e4a,_0x30fadb=this['_sheetSkeletonService'][_0x175c7e(0x404)](_0x32c2e6,_0x59b174);if(!_0x30fadb)return{'redos':[],'undos':[]};let _0x2bd8ce=_0x24feb6(_0x2fea73),{unitId:_0x40cdd8,subUnitId:_0xf9b292,copyRange:_0x1d6ac1,drawings:_0xab5179}=this[_0x175c7e(0x3c8)],_0x5f1ef9=this[_0x175c7e(0x1ea)][_0x175c7e(0x404)](_0x40cdd8,_0xf9b292);if(!_0x5f1ef9)return{'redos':[],'undos':[]};let _0x1aaa99;if(!_0x1d6ac1){let _0x1c7f23=0x1/0x0,_0xbe4be8=0x1/0x0;for(let _0x5e12c2 of _0xab5179){let {left:_0x1a47f0=0x0,top:_0x58ae1e=0x0}=_0x5e12c2[_0x175c7e(0x3e1)]??{};_0x1a47f0<_0x1c7f23&&(_0x1c7f23=_0x1a47f0),_0x58ae1e<_0xbe4be8&&(_0xbe4be8=_0x58ae1e);}_0x1c7f23!==0x1/0x0&&_0xbe4be8!==0x1/0x0&&(_0x1aaa99={'left':_0x1c7f23,'top':_0xbe4be8});}let _0x550826=new Map();if(!_0x4932db){for(let _0x6e9d31 of _0xab5179)_0x550826['set'](_0x6e9d31['drawingId'],_0x4b43ac());}let _0x4c0b43=[],_0x5b1da6=[];for(let _0x57b672 of _0xab5179){let {drawingId:_0x242f62,transform:_0x478b72,sheetTransform:_0x1d318d}=_0x57b672;if(!_0x478b72||!_0x1d318d)continue;let _0x79ae9f=this[_0x175c7e(0x381)]({'transform':_0x478b72,'sheetTransform':_0x1d318d},{'skeleton':_0x5f1ef9,'range':_0x1d6ac1},{'skeleton':_0x30fadb,'range':_0x2bd8ce},_0x1aaa99);if(_0x4932db){let {redos:_0x3061dc,undos:_0xaee797}=this[_0x175c7e(0x2e4)]({'fromUnitId':_0x40cdd8,'fromSubUnitId':_0xf9b292,'toUnitId':_0x32c2e6,'toSubUnitId':_0x59b174,'drawing':_0x57b672,'newTransforms':_0x79ae9f});_0x4c0b43['push'](..._0x3061dc),_0x5b1da6['push'](..._0xaee797);continue;}let {redos:_0x1d750a,undos:_0x44a820}=this[_0x175c7e(0x2ef)]({'toUnitId':_0x32c2e6,'toSubUnitId':_0x59b174,'drawing':_0x57b672,'newTransforms':_0x79ae9f,'newDrawingId':_0x550826['get'](_0x242f62),'idMap':_0x550826});_0x4c0b43[_0x175c7e(0x1bb)](..._0x1d750a),_0x5b1da6[_0x175c7e(0x1bb)](..._0x44a820);}return{'redos':_0x4c0b43,'undos':_0x5b1da6};}[_0x2a50d1(0x2e4)](_0x197e78){const _0x17986a=_0x2a50d1;let {fromUnitId:_0x11f38c,fromSubUnitId:_0x3ce929,toUnitId:_0xf51416,toSubUnitId:_0x396758,drawing:_0x1f8780,newTransforms:_0x2522b9}=_0x197e78,_0x5c1d98={..._0x1f8780,'unitId':_0xf51416,'subUnitId':_0x396758,'transform':_0x2522b9[_0x17986a(0x3e1)],'sheetTransform':_0x2522b9[_0x17986a(0x3c1)]};if(_0xf51416===_0x11f38c&&_0x396758===_0x3ce929){let {redo:_0x2f9d22,undo:_0x4ff97a,objects:_0x3f6605}=this[_0x17986a(0x349)][_0x17986a(0x357)]([_0x5c1d98]);return{'redos':[{'id':_0x564b34['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'type':_0x483132[_0x17986a(0x2c8)],'op':_0x2f9d22,'objects':_0x3f6605}}],'undos':[{'id':_0x564b34['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'type':_0x483132[_0x17986a(0x2c8)],'op':_0x4ff97a,'objects':_0x3f6605}}]};}{let _0x24ca0f=this[_0x17986a(0x349)][_0x17986a(0x3eb)]([_0x1f8780]),_0x2ad760=this[_0x17986a(0x349)]['getBatchAddOp']([_0x5c1d98]),_0x549432=this[_0x17986a(0x29a)]['getShapeModel'](_0x1f8780[_0x17986a(0x417)],_0x1f8780[_0x17986a(0x3ac)],_0x1f8780[_0x17986a(0x3ab)]);if(!_0x549432)return{'redos':[],'undos':[]};let _0x453a2f=_0x549432[_0x17986a(0x335)](),_0x3fcc76=JSON[_0x17986a(0x3c4)](JSON[_0x17986a(0x3c6)](_0x549432['getShapeData']()));return{'redos':[{'id':_0x564b34['id'],'params':{'unitId':_0x11f38c,'subUnitId':_0x3ce929,'type':_0x483132['REMOVE'],'op':_0x24ca0f[_0x17986a(0x184)],'objects':_0x24ca0f[_0x17986a(0x33f)]}},{'id':_0x4345e0['id'],'params':{'unitId':_0x11f38c,'subUnitId':_0x3ce929,'shapeId':_0x1f8780[_0x17986a(0x3ab)]}},{'id':_0x564b34['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'type':_0x483132[_0x17986a(0x3a9)],'op':_0x2ad760[_0x17986a(0x184)],'objects':_0x2ad760[_0x17986a(0x33f)]}},{'id':_0x5d2fb0['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'shapeId':_0x1f8780[_0x17986a(0x3ab)],'shapeType':_0x453a2f,'shapeData':_0x3fcc76}}],'undos':[{'id':_0x564b34['id'],'params':{'unitId':_0x11f38c,'subUnitId':_0x3ce929,'type':_0x483132['INSERT'],'op':_0x24ca0f[_0x17986a(0x2b7)],'objects':_0x24ca0f[_0x17986a(0x33f)]}},{'id':_0x5d2fb0['id'],'params':{'unitId':_0x11f38c,'subUnitId':_0x3ce929,'shapeId':_0x1f8780[_0x17986a(0x3ab)],'shapeType':_0x453a2f,'shapeData':_0x3fcc76}},{'id':_0x564b34['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'type':_0x483132[_0x17986a(0x369)],'op':_0x2ad760[_0x17986a(0x2b7)],'objects':_0x2ad760[_0x17986a(0x33f)]}},{'id':_0x4345e0['id'],'params':{'unitId':_0xf51416,'subUnitId':_0x396758,'shapeId':_0x1f8780[_0x17986a(0x3ab)]}}]};}}[_0x2a50d1(0x2ef)](_0x38aa47){const _0x221d7f=_0x2a50d1;let {toUnitId:_0x21dfb8,toSubUnitId:_0xce5518,drawing:_0x38a3ca,newTransforms:_0x36fac4,newDrawingId:_0x56bcc7,idMap:_0x141694}=_0x38aa47,_0x47adbc={..._0x38a3ca,'unitId':_0x21dfb8,'subUnitId':_0xce5518,'drawingId':_0x56bcc7,'transform':_0x36fac4['transform'],'sheetTransform':_0x36fac4[_0x221d7f(0x3c1)]},{redo:_0x79fe83,undo:_0x31f66d,objects:_0x36bd12}=this['_sheetDrawingService']['getBatchAddOp']([_0x47adbc]),_0x2b6cea=this['_shapeService'][_0x221d7f(0x38d)](_0x38a3ca[_0x221d7f(0x417)],_0x38a3ca[_0x221d7f(0x3ac)],_0x38a3ca[_0x221d7f(0x3ab)]);if(!_0x2b6cea)return{'redos':[],'undos':[]};let _0x1ca34b=_0x2b6cea[_0x221d7f(0x335)](),_0x49ae0f=JSON[_0x221d7f(0x3c4)](JSON[_0x221d7f(0x3c6)](_0x2b6cea['getShapeData']()));if(_0x49ae0f[_0x221d7f(0x2be)]){var _0x254b3b,_0x13de05;let _0x55cb96=(_0x254b3b=_0x49ae0f['relation'][_0x221d7f(0x40f)])==null?void 0x0:_0x254b3b['shapeId'],_0x5e2164=(_0x13de05=_0x49ae0f['relation']['to'])==null?void 0x0:_0x13de05[_0x221d7f(0x32c)],_0x27b305=!_0x55cb96||_0x141694['has'](_0x55cb96),_0x272e66=!_0x5e2164||_0x141694['has'](_0x5e2164);_0x27b305&&_0x55cb96&&_0x49ae0f[_0x221d7f(0x2be)][_0x221d7f(0x40f)]?_0x49ae0f['relation'][_0x221d7f(0x40f)]={..._0x49ae0f[_0x221d7f(0x2be)][_0x221d7f(0x40f)],'shapeId':_0x141694['get'](_0x55cb96)}:_0x49ae0f[_0x221d7f(0x2be)][_0x221d7f(0x40f)]=void 0x0,_0x272e66&&_0x5e2164&&_0x49ae0f[_0x221d7f(0x2be)]['to']?_0x49ae0f[_0x221d7f(0x2be)]['to']={..._0x49ae0f[_0x221d7f(0x2be)]['to'],'shapeId':_0x141694['get'](_0x5e2164)}:_0x49ae0f['relation']['to']=void 0x0;}return{'redos':[{'id':_0x564b34['id'],'params':{'unitId':_0x21dfb8,'subUnitId':_0xce5518,'type':_0x483132[_0x221d7f(0x3a9)],'op':_0x79fe83,'objects':_0x36bd12}},{'id':_0x5d2fb0['id'],'params':{'unitId':_0x21dfb8,'subUnitId':_0xce5518,'shapeId':_0x56bcc7,'shapeType':_0x1ca34b,'shapeData':_0x49ae0f}}],'undos':[{'id':_0x564b34['id'],'params':{'unitId':_0x21dfb8,'subUnitId':_0xce5518,'type':_0x483132[_0x221d7f(0x369)],'op':_0x31f66d,'objects':_0x36bd12}},{'id':_0x4345e0['id'],'params':{'unitId':_0x21dfb8,'subUnitId':_0xce5518,'shapeId':_0x56bcc7}}]};}[_0x2a50d1(0x381)](_0x33b52c,_0x457d9a,_0x267672,_0x52d122){const _0x35019f=_0x2a50d1;let {range:_0x14f471,skeleton:_0x332de4}=_0x457d9a,{range:_0x2c7de3,skeleton:_0x18b5ec}=_0x267672,{transform:_0x213941,sheetTransform:_0x5dfe85}=_0x33b52c,_0x34b28f={..._0x213941};if(_0x14f471){let _0x2d1d8b=_0x306cf5(_0x332de4,_0x14f471),_0x18017e=_0x306cf5(_0x18b5ec,_0x2c7de3);if(_0x2d1d8b&&_0x18017e){let _0x39d102=_0x18017e[_0x35019f(0x196)]-_0x2d1d8b[_0x35019f(0x196)],_0x4bcf13=_0x18017e['startY']-_0x2d1d8b[_0x35019f(0x3e2)];_0x34b28f[_0x35019f(0x337)]=(_0x34b28f[_0x35019f(0x337)]??0x0)+_0x39d102,_0x34b28f[_0x35019f(0x2ed)]=(_0x34b28f[_0x35019f(0x2ed)]??0x0)+_0x4bcf13;}}else{let _0x1794a9=_0x306cf5(_0x18b5ec,_0x2c7de3);if(_0x52d122&&_0x1794a9){let _0x52a863=(_0x34b28f['left']??0x0)-_0x52d122['left'],_0x1117c7=(_0x34b28f[_0x35019f(0x2ed)]??0x0)-_0x52d122[_0x35019f(0x2ed)];_0x34b28f['left']=_0x1794a9[_0x35019f(0x196)]+_0x52a863,_0x34b28f['top']=_0x1794a9[_0x35019f(0x3e2)]+_0x1117c7;}else _0x34b28f['left']=_0x1794a9==null?void 0x0:_0x1794a9['startX'],_0x34b28f['top']=_0x1794a9==null?void 0x0:_0x1794a9[_0x35019f(0x3e2)];}return{'transform':_0x34b28f,'sheetTransform':_0xf0f590(_0x34b28f,_0x18b5ec)??_0x5dfe85};}};fa=X([Y(0x0,_0x1cc97c(_0x432708)),Y(0x1,_0x1cc97c(_0x5d2fec)),Y(0x2,_0x1cc97c(_0x342231)),Y(0x3,_0x1cc97c(_0x19ac46)),Y(0x4,_0x1cc97c(_0x35b05b))],fa);var pa=class extends _0x516f1f{constructor(_0x566e5e,_0x40ecb8){const _0xabd375=_0x2a50d1;super(_0x566e5e,_0x40ecb8),q(this,_0xabd375(0x40c),null),q(this,_0xabd375(0x419),null),q(this,_0xabd375(0x41e),null),q(this,_0xabd375(0x1c3),null),q(this,_0xabd375(0x191),!0x1),_0x40ecb8&&this[_0xabd375(0x368)](_0x40ecb8);}['getDrawingSearch'](){const _0x1b717c=_0x2a50d1;return{'unitId':this[_0x1b717c(0x41e)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1b717c(0x40c)]};}[_0x2a50d1(0x368)](_0x489da4){const _0x2d7553=_0x2a50d1;_0x489da4[_0x2d7553(0x32c)]!==void 0x0&&(this[_0x2d7553(0x40c)]=_0x489da4[_0x2d7553(0x32c)]),_0x489da4[_0x2d7553(0x417)]!==void 0x0&&(this[_0x2d7553(0x41e)]=_0x489da4['unitId']),_0x489da4[_0x2d7553(0x3ac)]!==void 0x0&&(this['_subUnitId']=_0x489da4['subUnitId']),_0x489da4[_0x2d7553(0x19e)]!==void 0x0&&(this[_0x2d7553(0x191)]=_0x489da4[_0x2d7553(0x19e)]),this[_0x2d7553(0x364)]({'width':_0x489da4[_0x2d7553(0x320)],'height':_0x489da4[_0x2d7553(0x2f5)]});}[_0x2a50d1(0x289)](_0x32aa73){const _0x342f6b=_0x2a50d1;_0x351bf8[_0x342f6b(0x363)](_0x32aa73,{'radius':_0xc3f276[_0x342f6b(0x1e6)],'fill':_0xc3f276[_0x342f6b(0x3a2)],'stroke':_0xc3f276[_0x342f6b(0x1d0)],'strokeWidth':_0xc3f276[_0x342f6b(0x239)],'evented':!0x0});}};let ma=class extends _0x50b698{constructor(_0x514d9e,_0x50cbfa,_0xec718a,_0x576c1e,_0x2b9a51,_0x320f20,_0x5e7d4a,_0x4a4e7d){const _0x46dcd1=_0x2a50d1;super(),this['_context']=_0x514d9e,this[_0x46dcd1(0x3a4)]=_0x50cbfa,this['_renderManagerService']=_0xec718a,this['_drawingManagerService']=_0x576c1e,this[_0x46dcd1(0x1f8)]=_0x2b9a51,this['_sheetsShapeService']=_0x320f20,this[_0x46dcd1(0x25e)]=_0x5e7d4a,this[_0x46dcd1(0x345)]=_0x4a4e7d,q(this,_0x46dcd1(0x1fd),void 0x0),q(this,_0x46dcd1(0x41e),void 0x0),q(this,_0x46dcd1(0x1c3),void 0x0),q(this,_0x46dcd1(0x1d6),[]),q(this,_0x46dcd1(0x3cc),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,'_activeShapeModel',void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x46dcd1(0x290),!0x1),q(this,_0x46dcd1(0x31d),!0x1),q(this,'_cxtHandlerPointerMove',void 0x0),q(this,_0x46dcd1(0x1a4),void 0x0),q(this,_0x46dcd1(0x312),null),this[_0x46dcd1(0x28c)]();}[_0x2a50d1(0x28c)](){const _0x21b312=_0x2a50d1;this[_0x21b312(0x1b6)](),this[_0x21b312(0x407)]();}[_0x2a50d1(0x397)](){const _0xdb6875=_0x2a50d1;if(!this[_0xdb6875(0x41e)]||!this['_subUnitId']||!this['_activeShapeId'])return;let _0x2d441f={'unitId':this[_0xdb6875(0x41e)],'subUnitId':this[_0xdb6875(0x1c3)],'drawingId':this[_0xdb6875(0x1fd)]},{transform:_0x3d9b9b}=this['_drawingManagerService'][_0xdb6875(0x402)](_0x2d441f);if(_0x3d9b9b)return{'left':_0x3d9b9b[_0xdb6875(0x337)]||0x0,'top':_0x3d9b9b[_0xdb6875(0x2ed)]||0x0,'width':_0x3d9b9b[_0xdb6875(0x320)]||0x0,'height':_0x3d9b9b[_0xdb6875(0x2f5)]||0x0,'flipX':_0x3d9b9b['flipX']||!0x1,'flipY':_0x3d9b9b['flipY']||!0x1,'angle':_0x3d9b9b['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x576dbb=_0x2a50d1;if(this[_0x576dbb(0x41e)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x576dbb(0x1fd)]===void 0x0)return;let _0xe4aa7a=this['_renderManagerService'][_0x576dbb(0x18e)](this[_0x576dbb(0x41e)]);if(!_0xe4aa7a||!_0xe4aa7a[_0x576dbb(0x3bf)](_0x2df2f6)[_0x576dbb(0x2e1)]())return;let {scene:_0x108074}=_0xe4aa7a,_0x5ee155=this[_0x576dbb(0x397)]();if(!_0x5ee155)return;let _0x179884=this[_0x576dbb(0x1c7)][_0x576dbb(0x38d)](this[_0x576dbb(0x41e)],this[_0x576dbb(0x1c3)],this['_activeShapeId']);if(!_0x179884||!_0x4ff847(_0x179884[_0x576dbb(0x335)]()))return;let _0x439600=_0x179884['getConnectorLinePoints']();if(_0x439600[_0x576dbb(0x384)]<0x2)return;let _0xcf0e3e=new _0x352ba4(_0x5ee155),_0x4ecdea=_0x439600[0x0],_0x1c7560=_0x439600[_0x439600[_0x576dbb(0x384)]-0x1],_0x58b556=_0xcf0e3e['localToWorld'](_0x4ecdea),_0xcc9769=_0xcf0e3e['localToWorld'](_0x1c7560);this[_0x576dbb(0x37e)](_0x108074,{..._0x58b556},!0x0),this['_addShapeConnectorHandlerObject'](_0x108074,{..._0xcc9769},!0x1);}[_0x2a50d1(0x37e)](_0x16716e,_0x2dd073,_0x3eed62){const _0x3eea10=_0x2a50d1;if(this[_0x3eea10(0x1fd)]===void 0x0||this[_0x3eea10(0x41e)]===void 0x0||this[_0x3eea10(0x1c3)]===void 0x0)return;let _0x234754='connector-handler-'+this[_0x3eea10(0x41e)]+'-'+this[_0x3eea10(0x1c3)]+'-'+this[_0x3eea10(0x1fd)]+'-'+(_0x3eed62?_0x3eea10(0x2d0):_0x3eea10(0x272)),_0x576325=_0x16716e[_0x3eea10(0x244)](_0x234754);if(_0x576325){_0x576325['transformByState']({'left':_0x2dd073['x']-_0xc3f276['cxnPointRadius'],'top':_0x2dd073['y']-_0xc3f276['cxnPointRadius']});return;}let _0x102adf=new pa(_0x234754,{'left':_0x2dd073['x']-_0xc3f276['cxnPointRadius'],'top':_0x2dd073['y']-_0xc3f276[_0x3eea10(0x1e6)],'shapeId':this[_0x3eea10(0x1fd)],'unitId':this[_0x3eea10(0x41e)],'subUnitId':this[_0x3eea10(0x1c3)],'isStartConnectorPoint':_0x3eed62,'width':_0xc3f276['cxnPointRadius']*0x2,'height':_0xc3f276[_0x3eea10(0x1e6)]*0x2,'zIndex':_0x3ef936+0x1,'evented':!0x0});this[_0x3eea10(0x1d6)][_0x3eea10(0x1bb)](_0x102adf),this['_attachConnectorObjectEvent'](_0x102adf,_0x16716e,_0x3eed62),_0x16716e[_0x3eea10(0x2bb)](_0x102adf,_0x3ef936+0x1);}[_0x2a50d1(0x186)](_0x7b2ef1,_0x40faf7){const _0x2d2c8a=_0x2a50d1;var _0x26731a;let _0xba15ab={'x':0x0,'y':0x0};if(!_0x7b2ef1||!_0x40faf7)return _0xba15ab;let _0x1229bc=this['_renderManagerService'][_0x2d2c8a(0x18e)](_0x7b2ef1);if(!_0x1229bc||!_0x1229bc[_0x2d2c8a(0x3bf)](_0x2df2f6)['getSkeleton'](_0x40faf7))return _0xba15ab;let _0x37e4cd=_0x1229bc[_0x2d2c8a(0x3bf)](_0x4caf75),_0x378253=_0x37e4cd==null?void 0x0:_0x37e4cd[_0x2d2c8a(0x3a7)]();if(!_0x378253)return _0xba15ab;let _0x3e2087=(_0x26731a=this[_0x2d2c8a(0x1f8)][_0x2d2c8a(0x338)](_0x7b2ef1))==null?void 0x0:_0x26731a['getSheetBySheetId'](_0x40faf7);if(!_0x3e2087)return _0xba15ab;let _0x31d5aa=_0x2ca51b(_0x378253[_0x2d2c8a(0x2e2)],_0x378253[_0x2d2c8a(0x23d)],_0x1229bc[_0x2d2c8a(0x3da)],_0x3e2087);return _0x31d5aa?{'x':_0x31d5aa['viewportScrollX'],'y':_0x31d5aa[_0x2d2c8a(0x2a8)]}:_0xba15ab;}['_getZoomRatio'](_0x5ebe69,_0x5c34b6){const _0x19bdb2=_0x2a50d1;var _0x202074;let _0x11ee82=(_0x202074=this[_0x19bdb2(0x1f8)][_0x19bdb2(0x338)](_0x5ebe69))==null?void 0x0:_0x202074['getSheetBySheetId'](_0x5c34b6);return(_0x11ee82==null?void 0x0:_0x11ee82[_0x19bdb2(0x421)]())??0x1;}[_0x2a50d1(0x3af)](_0x29f875,_0x4fb615,_0x52cd17,_0x4c9d3b,_0x5d52b7){const _0x380aff=_0x2a50d1;this[_0x380aff(0x242)][_0x380aff(0x212)](),this[_0x380aff(0x1a4)][_0x380aff(0x212)](),this[_0x380aff(0x25e)]['refreshAdjustControls']();let _0x233dc5=this[_0x380aff(0x312)];this[_0x380aff(0x345)][_0x380aff(0x208)]();let _0x4fe563=this[_0x380aff(0x186)](this[_0x380aff(0x41e)],this[_0x380aff(0x1c3)]),_0x17db9e=this[_0x380aff(0x3ed)](this[_0x380aff(0x41e)],this[_0x380aff(0x1c3)]),_0x13b6c8={'x':_0x52cd17[_0x380aff(0x2b9)]/_0x17db9e+_0x4fe563['x'],'y':_0x52cd17['offsetY']/_0x17db9e+_0x4fe563['y']},_0x35aff5=_0x233dc5?_0x233dc5[_0x380aff(0x17d)]:_0x13b6c8,_0x31c322=_0x4c9d3b?this[_0x380aff(0x2ee)]['getEndConnectInfo']():this[_0x380aff(0x2ee)]['getStartConnectInfo'](),_0x7074cf=this['_activeShapeModel'][_0x380aff(0x335)]();_0x31c322?this[_0x380aff(0x3e6)](_0x31c322,_0x35aff5,_0x4c9d3b,_0x233dc5,_0x5d52b7):this[_0x380aff(0x2a4)](_0x4fb615,_0x35aff5,_0x4c9d3b,_0x233dc5,_0x5d52b7,_0x7074cf),this['_isConnecting']=!0x1,this[_0x380aff(0x31d)]=!0x1,this['_currentConnectionTarget']=null,_0x29f875[_0x380aff(0x2fe)]();}[_0x2a50d1(0x2a4)](_0x5e94b3,_0x13ff08,_0x2d2e03,_0x41924a,_0x28b46f,_0x838755){const _0x36014f=_0x2a50d1;let _0x1ce77e=_0x838755===_0x37b1c4[_0x36014f(0x32e)]||_0x838755===_0x37b1c4['StraightConnector1'],_0x53447b=_0x2d2e03?_0x13ff08:_0x5e94b3,_0x181736=_0x2d2e03?_0x5e94b3:_0x13ff08,_0x5c5cac=this['_activeShapeModel'][_0x36014f(0x1d2)](),_0x2a8f4a=this['_activeShapeModel'][_0x36014f(0x335)](),_0x58debb=_0x1314a4(_0x2a8f4a),_0x48093d=_0x352ba4[_0x36014f(0x36d)](_0x5c5cac,_0x58debb),_0x1515a4=_0x1ce77e?_0x352ba4['computeStraightConnectorLayout'](_0x53447b,_0x181736):_0x352ba4[_0x36014f(0x3b4)](_0x5e94b3,_0x13ff08,_0x2d2e03,_0x48093d);_0x41924a?this[_0x36014f(0x22b)](_0x1515a4,_0x41924a,_0x2d2e03,_0x28b46f):this[_0x36014f(0x2ba)](_0x1515a4,_0x28b46f);}[_0x2a50d1(0x3e6)](_0x46906f,_0x5448fd,_0x1efedd,_0x495e9e,_0x45e92c){const _0x3e376f=_0x2a50d1;let _0x5719b1=this[_0x3e376f(0x2de)](_0x46906f);if(!_0x5719b1)return;let _0x1e0c12=_0x495e9e?_0x495e9e['angle']:this[_0x3e376f(0x2df)](_0x5719b1[_0x3e376f(0x1ad)],_0x5448fd),_0x1f4e5e;if(_0x495e9e){let _0x2258fa=this[_0x3e376f(0x218)][_0x3e376f(0x402)]({'unitId':_0x495e9e[_0x3e376f(0x417)],'subUnitId':_0x495e9e[_0x3e376f(0x3ac)],'drawingId':_0x495e9e[_0x3e376f(0x32c)]});if(_0x2258fa!=null&&_0x2258fa['transform']){let {left:_0x2b9101=0x0,top:_0x26b851=0x0,width:_0x128b78=0x0,height:_0x5259bf=0x0,angle:_0x34d5fd}=_0x2258fa[_0x3e376f(0x3e1)];_0x1f4e5e=_0x588ee5({'left':_0x2b9101,'top':_0x26b851,'width':_0x128b78,'height':_0x5259bf},_0x34d5fd||0x0);}else _0x1f4e5e={'left':_0x5448fd['x'],'top':_0x5448fd['y'],'width':0x0,'height':0x0};}else _0x1f4e5e={'left':_0x5448fd['x'],'top':_0x5448fd['y'],'width':0x0,'height':0x0};let _0x3ce0bf={'point':_0x5448fd,'angle':_0x1e0c12,'bounds':_0x1f4e5e},_0x5d2ad6=_0x1efedd?_0x3ce0bf:_0x5719b1,_0x3c8830=_0x1efedd?_0x5719b1:_0x3ce0bf,_0x4b42e6=this[_0x3e376f(0x2ee)][_0x3e376f(0x335)](),_0x1718cc=_0x3b0187(_0x5d2ad6,_0x3c8830,_0x4b42e6);this[_0x3e376f(0x2ee)][_0x3e376f(0x36a)]();let _0x3b127e=_0x4afb2b(_0x1718cc,_0x4b42e6);_0x495e9e?this[_0x3e376f(0x200)](_0x3b127e,_0x495e9e,_0x46906f,_0x1efedd,_0x45e92c):this[_0x3e376f(0x2e0)](_0x3b127e,_0x46906f,_0x1efedd,_0x45e92c);}[_0x2a50d1(0x22b)](_0x5d434a,_0xe369c7,_0x33d4af,_0x34746d){const _0x597394=_0x2a50d1;let _0x4271d9=this[_0x597394(0x2ee)][_0x597394(0x396)]()[_0x597394(0x2be)],_0x1ec5c3={..._0x4271d9},_0x3e35b4={'shapeId':_0xe369c7[_0x597394(0x32c)],'cxnIndex':_0xe369c7[_0x597394(0x361)]};_0x33d4af?_0x1ec5c3[_0x597394(0x40f)]=_0x3e35b4:_0x1ec5c3['to']=_0x3e35b4;let _0x4cf406=this[_0x597394(0x2ee)]['getShapeType'](),_0xa73f8e=_0x4afb2b(_0x5d434a[_0x597394(0x302)],_0x4cf406),_0x14174d={'unitId':this[_0x597394(0x41e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x597394(0x1fd)],'width':_0x5d434a[_0x597394(0x1d7)][_0x597394(0x320)],'height':_0x5d434a[_0x597394(0x1d7)][_0x597394(0x2f5)],'left':_0x5d434a[_0x597394(0x1d7)][_0x597394(0x337)],'top':_0x5d434a['worldRect'][_0x597394(0x2ed)],'flipX':_0x5d434a['worldRect'][_0x597394(0x34d)]||!0x1,'flipY':_0x5d434a[_0x597394(0x1d7)][_0x597394(0x31b)]||!0x1,'newAdjustValues':_0xa73f8e['adjustValues'],'oldAdjustValues':_0x34746d,'oldRelation':_0x4271d9,'newRelation':_0x1ec5c3,'newLineType':_0xa73f8e[_0x597394(0x411)],'oldLineType':_0x4cf406};this[_0x597394(0x3a4)]['executeCommand'](_0x47576f['id'],_0x14174d);}[_0x2a50d1(0x2ba)](_0x42d00f,_0x225cc5){const _0x58ef94=_0x2a50d1;let _0x5b65b9=this['_activeShapeModel']['getShapeType'](),_0x5b5690=_0x4afb2b(_0x42d00f[_0x58ef94(0x302)],_0x5b65b9),_0x1f2675={'unitId':this[_0x58ef94(0x41e)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x58ef94(0x1fd)],'width':_0x42d00f[_0x58ef94(0x1d7)]['width'],'height':_0x42d00f[_0x58ef94(0x1d7)]['height'],'left':_0x42d00f['worldRect'][_0x58ef94(0x337)],'top':_0x42d00f[_0x58ef94(0x1d7)][_0x58ef94(0x2ed)],'flipX':_0x42d00f[_0x58ef94(0x1d7)]['flipX']||!0x1,'flipY':_0x42d00f[_0x58ef94(0x1d7)][_0x58ef94(0x31b)]||!0x1,'angle':_0x42d00f[_0x58ef94(0x1d7)][_0x58ef94(0x429)]||0x0,'newAdjustValues':_0x5b5690[_0x58ef94(0x18c)],'oldAdjustValues':_0x225cc5,'newLineType':_0x5b5690['lineType'],'oldLineType':_0x5b65b9};this['_commandService'][_0x58ef94(0x2b5)](_0x8fe52b['id'],_0x1f2675);}[_0x2a50d1(0x200)](_0x2c2a15,_0x25a4e1,_0x69e585,_0x3f73ed,_0x12aa03){const _0xe9a30b=_0x2a50d1;let _0x37c17d=this[_0xe9a30b(0x2ee)][_0xe9a30b(0x396)]()[_0xe9a30b(0x2be)],_0x49cce3={..._0x37c17d},_0x5d22c9={'shapeId':_0x25a4e1['shapeId'],'cxnIndex':_0x25a4e1[_0xe9a30b(0x361)]};_0x3f73ed?(_0x49cce3[_0xe9a30b(0x40f)]=_0x5d22c9,_0x49cce3['to']=_0x69e585):(_0x49cce3[_0xe9a30b(0x40f)]=_0x69e585,_0x49cce3['to']=_0x5d22c9);let _0x392f7c={'unitId':this[_0xe9a30b(0x41e)],'subUnitId':this[_0xe9a30b(0x1c3)],'connectorShapeId':this['_activeShapeId'],'width':_0x2c2a15[_0xe9a30b(0x1d7)][_0xe9a30b(0x320)],'height':_0x2c2a15[_0xe9a30b(0x1d7)]['height'],'left':_0x2c2a15[_0xe9a30b(0x1d7)][_0xe9a30b(0x337)],'top':_0x2c2a15['worldRect']['top'],'flipX':_0x2c2a15[_0xe9a30b(0x1d7)][_0xe9a30b(0x34d)]||!0x1,'flipY':_0x2c2a15[_0xe9a30b(0x1d7)][_0xe9a30b(0x31b)]||!0x1,'oldAdjustValues':_0x12aa03,'newAdjustValues':_0x2c2a15['adjustValues'],'newLineType':_0x2c2a15['lineType'],'rotation':_0x2c2a15[_0xe9a30b(0x318)],'oldRelation':_0x37c17d,'newRelation':_0x49cce3};this[_0xe9a30b(0x3a4)][_0xe9a30b(0x2b5)](_0x47576f['id'],_0x392f7c);}[_0x2a50d1(0x2e0)](_0x44ee2a,_0xc8d048,_0x8c154d,_0x2d004c){const _0x5ca8bd=_0x2a50d1;let _0x393782=this[_0x5ca8bd(0x2ee)][_0x5ca8bd(0x396)]()['relation'],_0x161a79={};_0x8c154d?(_0x161a79['to']=_0xc8d048,_0x161a79[_0x5ca8bd(0x40f)]=void 0x0):(_0x161a79['from']=_0xc8d048,_0x161a79['to']=void 0x0);let _0x4c60b4={'unitId':this[_0x5ca8bd(0x41e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5ca8bd(0x1fd)],'width':_0x44ee2a[_0x5ca8bd(0x1d7)]['width'],'height':_0x44ee2a['worldRect']['height'],'left':_0x44ee2a[_0x5ca8bd(0x1d7)][_0x5ca8bd(0x337)],'top':_0x44ee2a[_0x5ca8bd(0x1d7)]['top'],'flipX':_0x44ee2a[_0x5ca8bd(0x1d7)][_0x5ca8bd(0x34d)]||!0x1,'flipY':_0x44ee2a[_0x5ca8bd(0x1d7)][_0x5ca8bd(0x31b)]||!0x1,'oldAdjustValues':_0x2d004c,'newAdjustValues':_0x44ee2a[_0x5ca8bd(0x18c)],'newLineType':_0x44ee2a[_0x5ca8bd(0x411)],'rotation':_0x44ee2a['rotation'],'oldRelation':_0x393782,'newRelation':_0x161a79};this[_0x5ca8bd(0x3a4)]['executeCommand'](_0x47576f['id'],_0x4c60b4);}[_0x2a50d1(0x355)](_0x24d9be,_0x49ef73,_0x5490dc){const _0x475755=_0x2a50d1;this['disposeWithMe'](_0x3d1611(_0x24d9be[_0x475755(0x2b2)][_0x475755(0x380)]((_0xab4947,_0x1c2162)=>{const _0x397f3c=_0x475755;let _0x1baebc=_0x24d9be[_0x397f3c(0x18a)]();if(this[_0x397f3c(0x2ee)]=this[_0x397f3c(0x1c7)][_0x397f3c(0x38d)](_0x1baebc[_0x397f3c(0x417)],_0x1baebc['subUnitId'],_0x1baebc['drawingId']),!this[_0x397f3c(0x2ee)])return;let _0xa2ee7={};this['_activeShapeModel'][_0x397f3c(0x21c)]()[_0x397f3c(0x3a1)](_0x1ec4e6=>{const _0x2a8ddf=_0x397f3c;let _0x33454a=this[_0x2a8ddf(0x2ee)]['getAdjustValueByName'](_0x1ec4e6);_0x33454a!==void 0x0&&(_0xa2ee7[_0x1ec4e6]=_0x33454a);});let _0x2d57da=this[_0x397f3c(0x397)]();if(!_0x2d57da)return;this[_0x397f3c(0x3cc)]={..._0x2d57da};let _0x5ba959=new _0x352ba4(this[_0x397f3c(0x3cc)]),_0x33faa6=_0x5b513c({'unitId':this['_unitId'],'subUnitId':this[_0x397f3c(0x1c3)],'drawingId':this[_0x397f3c(0x1fd)]}),_0x5728f9=_0x49ef73[_0x397f3c(0x244)](_0x33faa6);this['_isConnecting']=!0x0,_0x49ef73[_0x397f3c(0x329)](),this['_sheetBasicShapeConnectionPointController'][_0x397f3c(0x2fa)](_0x49ef73,this[_0x397f3c(0x41e)],this[_0x397f3c(0x1c3)],this[_0x397f3c(0x1fd)]),this[_0x397f3c(0x312)]=null;let _0x3595a1=this[_0x397f3c(0x2ee)]['getConnectorLinePoints'](),_0x3b99cb=_0x3595a1[0x0],_0x2d68cc=_0x3595a1[_0x3595a1[_0x397f3c(0x384)]-0x1],_0x11c1af=_0x5490dc?_0x5ba959[_0x397f3c(0x1c8)](_0x2d68cc):_0x5ba959[_0x397f3c(0x1c8)](_0x3b99cb);this[_0x397f3c(0x242)]=_0x49ef73[_0x397f3c(0x41c)][_0x397f3c(0x380)]((_0x119b70,_0x3d21b2)=>{const _0xa34423=_0x397f3c;if(!this['_isConnecting']||!this[_0xa34423(0x2ee)])return;this[_0xa34423(0x31d)]||=(this[_0xa34423(0x25e)][_0xa34423(0x415)](),this[_0xa34423(0x2ee)]['clearAdjustValue'](),!0x0);let _0x287a01=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0x15f574=this[_0xa34423(0x3ed)](this[_0xa34423(0x41e)],this[_0xa34423(0x1c3)]),_0x1cba0d={'x':_0x119b70[_0xa34423(0x2b9)]/_0x15f574+_0x287a01['x'],'y':_0x119b70['offsetY']/_0x15f574+_0x287a01['y']},_0x4e9242=this[_0xa34423(0x345)][_0xa34423(0x190)](_0x1cba0d);if(_0x4e9242){let {shapeId:_0x4954ec,unitId:_0x4045be,subUnitId:_0x3361b9}=_0x4e9242;if(_0x4954ec&&_0x4045be&&_0x3361b9){let _0x5b5e18=_0x5b513c({'unitId':_0x4045be,'subUnitId':_0x3361b9,'drawingId':_0x4954ec});_0x4e9242[_0xa34423(0x429)]=(_0x49ef73['getObjectIncludeInGroup'](_0x5b5e18)[_0xa34423(0x429)]||0x0)+_0x4e9242[_0xa34423(0x429)];}}this[_0xa34423(0x312)]=_0x4e9242;let _0x3fd4ec=_0x5490dc?this[_0xa34423(0x2ee)][_0xa34423(0x418)]():this[_0xa34423(0x2ee)][_0xa34423(0x23b)]();_0x3fd4ec?this[_0xa34423(0x1d1)](_0x3fd4ec,_0x1cba0d,_0x5490dc,_0x5728f9,_0x24d9be):this[_0xa34423(0x1e4)](_0x1cba0d,_0x11c1af,_0x5490dc,_0x5728f9,_0x24d9be);}),this[_0x397f3c(0x1a4)]=_0x49ef73[_0x397f3c(0x3de)][_0x397f3c(0x380)]((_0x36269c,_0x5a7b7f)=>{const _0x2d8f20=_0x397f3c;this[_0x2d8f20(0x3af)](_0x49ef73,_0x11c1af,_0x36269c,_0x5490dc,_0xa2ee7);}),_0x1c2162[_0x397f3c(0x2c6)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x5f3d81,_0x1132b1,_0x418402){const _0x21196d=_0x2a50d1;let _0x24f904=this['_sheetsShapeService'][_0x21196d(0x401)](_0x5f3d81,_0x1132b1,_0x418402);if(!_0x24f904||_0x24f904[_0x21196d(0x384)]===0x0)return;let _0x2c48e1=this[_0x21196d(0x431)][_0x21196d(0x18e)](_0x5f3d81);if(!_0x2c48e1)return;let {scene:_0x374b3c}=_0x2c48e1;for(let _0x4c3988 of _0x24f904){let _0x1ce5ba=_0x4c3988[_0x21196d(0x20e)],_0x96956c=this[_0x21196d(0x1c7)][_0x21196d(0x38d)](_0x5f3d81,_0x1132b1,_0x1ce5ba);if(!_0x96956c)continue;let _0x561390=_0x96956c['getStartConnectInfo'](),_0xb0421b=_0x96956c[_0x21196d(0x418)](),_0x2c2ae1=(_0x561390==null?void 0x0:_0x561390[_0x21196d(0x32c)])===_0x418402,_0x83bbb2=_0x5b513c({'unitId':_0x5f3d81,'subUnitId':_0x1132b1,'drawingId':_0x1ce5ba}),_0x5b5721=_0x374b3c[_0x21196d(0x244)](_0x83bbb2);if(!_0x5b5721)continue;let _0x4cc6d4=this['_drawingManagerService'][_0x21196d(0x402)]({'unitId':_0x5f3d81,'subUnitId':_0x1132b1,'drawingId':_0x1ce5ba});_0x4cc6d4!=null&&_0x4cc6d4['transform']&&(_0x561390&&_0xb0421b?this[_0x21196d(0x378)](_0x5f3d81,_0x1132b1,_0x1ce5ba,_0x96956c,_0x561390,_0xb0421b,_0x5b5721):this[_0x21196d(0x317)](_0x5f3d81,_0x1132b1,_0x1ce5ba,_0x96956c,_0x2c2ae1?_0x561390:_0xb0421b,_0x2c2ae1,_0x4cc6d4,_0x5b5721));}}[_0x2a50d1(0x378)](_0x215a7a,_0x2f0dda,_0x27eade,_0x49a83c,_0x1e5024,_0x2446b4,_0x1da104){const _0x56e91c=_0x2a50d1;let _0x478f57=this[_0x56e91c(0x41e)],_0xc59de3=this[_0x56e91c(0x1c3)];this[_0x56e91c(0x41e)]=_0x215a7a,this['_subUnitId']=_0x2f0dda;let _0x2deb1e=this[_0x56e91c(0x2de)](_0x1e5024),_0x190dd0=this['_getConnectPointInfo'](_0x2446b4);if(this[_0x56e91c(0x41e)]=_0x478f57,this[_0x56e91c(0x1c3)]=_0xc59de3,!_0x2deb1e||!_0x190dd0)return;let _0x2b96ce=_0x49a83c[_0x56e91c(0x335)](),_0x48f1b5=_0x3b0187(_0x2deb1e,_0x190dd0,_0x2b96ce);_0x48f1b5&&_0x49a83c[_0x56e91c(0x1a7)](_0x48f1b5);let _0x5502dc=_0x4afb2b(_0x48f1b5,_0x2b96ce);_0x5502dc[_0x56e91c(0x411)]!==_0x2b96ce&&_0x49a83c[_0x56e91c(0x434)](_0x5502dc[_0x56e91c(0x411)]),_0x49a83c[_0x56e91c(0x1d4)]();for(let [_0x27786f,_0x2979cc]of Object['entries'](_0x5502dc[_0x56e91c(0x18c)]))_0x49a83c[_0x56e91c(0x211)](_0x27786f,_0x2979cc);_0x49a83c[_0x56e91c(0x246)]({'width':_0x5502dc[_0x56e91c(0x1d7)][_0x56e91c(0x320)],'height':_0x5502dc[_0x56e91c(0x1d7)][_0x56e91c(0x2f5)]}),_0x1da104[_0x56e91c(0x364)]({'flipX':_0x5502dc[_0x56e91c(0x1d7)]['flipX'],'flipY':_0x5502dc[_0x56e91c(0x1d7)][_0x56e91c(0x31b)],'left':_0x5502dc[_0x56e91c(0x1d7)][_0x56e91c(0x337)],'top':_0x5502dc[_0x56e91c(0x1d7)]['top'],'width':_0x5502dc['worldRect'][_0x56e91c(0x320)],'height':_0x5502dc[_0x56e91c(0x1d7)][_0x56e91c(0x2f5)],'angle':_0x5502dc[_0x56e91c(0x318)]}),_0x49a83c['removeLinePoints']();}[_0x2a50d1(0x317)](_0x3bf414,_0x5a4483,_0x1585f1,_0x150017,_0x2e3f10,_0x4d7a42,_0x2725a5,_0x203448){const _0x8a5f17=_0x2a50d1;let _0x383a02=this[_0x8a5f17(0x41e)],_0x52aa94=this[_0x8a5f17(0x1c3)];this[_0x8a5f17(0x41e)]=_0x3bf414,this['_subUnitId']=_0x5a4483;let _0x5c061c=this[_0x8a5f17(0x2de)](_0x2e3f10);if(this[_0x8a5f17(0x41e)]=_0x383a02,this['_subUnitId']=_0x52aa94,!_0x5c061c)return;let {left:_0x5b52f7=0x0,top:_0x28d8cc=0x0,width:_0x2cad16=0x0,height:_0x3b783d=0x0,flipX:_0x39c148=!0x1,flipY:_0x488f46=!0x1}=_0x2725a5[_0x8a5f17(0x3e1)],_0x260935=_0x150017[_0x8a5f17(0x1d2)]();if(_0x260935[_0x8a5f17(0x384)]<0x2)return;let _0x23220e=new _0x352ba4({'left':_0x5b52f7,'top':_0x28d8cc,'width':_0x2cad16,'height':_0x3b783d,'flipX':_0x39c148,'flipY':_0x488f46}),_0x2ec0eb=_0x4d7a42?_0x260935[_0x260935[_0x8a5f17(0x384)]-0x1]:_0x260935[0x0],_0x50a605=_0x23220e[_0x8a5f17(0x1c8)](_0x2ec0eb),_0x10e811=_0x352ba4[_0x8a5f17(0x3b4)](_0x50a605,_0x5c061c[_0x8a5f17(0x1ad)],!_0x4d7a42);_0x203448[_0x8a5f17(0x364)]({'flipX':_0x10e811['worldRect']['flipX'],'flipY':_0x10e811[_0x8a5f17(0x1d7)][_0x8a5f17(0x31b)],'left':_0x10e811[_0x8a5f17(0x1d7)]['left'],'top':_0x10e811[_0x8a5f17(0x1d7)][_0x8a5f17(0x2ed)],'width':_0x10e811['worldRect']['width'],'height':_0x10e811[_0x8a5f17(0x1d7)][_0x8a5f17(0x2f5)],'angle':_0x10e811['worldRect'][_0x8a5f17(0x429)]}),_0x203448[_0x8a5f17(0x2fb)](!0x0);}[_0x2a50d1(0x29b)](){const _0x1c40ff=_0x2a50d1;this[_0x1c40ff(0x1d6)]['length']!==0x0&&(this[_0x1c40ff(0x1d6)][_0x1c40ff(0x3a1)](_0xafb660=>{const _0x41e444=_0x1c40ff;_0xafb660[_0x41e444(0x2bd)]();}),this[_0x1c40ff(0x1d6)]=[]);}[_0x2a50d1(0x407)](){const _0x470557=_0x2a50d1;let _0x401e90=this[_0x470557(0x1f8)][_0x470557(0x205)](_0x31b64c[_0x470557(0x1a1)]);this['disposeWithMe'](_0x401e90['pipe'](_0x40c277(_0x71d365=>_0x71d365?_0x71d365['activeSheet$'][_0x470557(0x1e5)](_0x40c277(_0x477418=>{const _0x2287c5=_0x470557;if(!_0x477418)return _0x3b739f;let _0x3fc3a1=_0x71d365['getUnitId'](),_0x57d048=this[_0x2287c5(0x431)]['getRenderUnitById'](_0x3fc3a1),_0x1e2792=_0x57d048==null?void 0x0:_0x57d048[_0x2287c5(0x3da)];return _0x1e2792?_0x23d707(_0x1e2792):_0x3b739f;})):_0x3b739f))[_0x470557(0x322)](_0x3a9067=>{const _0x5e8f32=_0x470557;let _0x4fbdcc=_0x3a9067['getTransformerByCreate']();this['disposeWithMe'](_0x3a9067[_0x5e8f32(0x41c)][_0x5e8f32(0x380)](_0x4fdd9e=>{const _0x5a3a48=_0x5e8f32;this[_0x5a3a48(0x290)]&&this[_0x5a3a48(0x1fd)]&&this[_0x5a3a48(0x29b)]();})),this[_0x5e8f32(0x413)](_0x4fbdcc[_0x5e8f32(0x40b)][_0x5e8f32(0x322)](_0xfa4622=>{const _0xcb8820=_0x5e8f32;let {objects:_0x45a5d8}=_0xfa4622;this['_clearShapeConnectorHandlerObjects'](),_0x45a5d8!==null&&_0x45a5d8[_0xcb8820(0x199)]===0x1&&_0x45a5d8['values']()[_0xcb8820(0x399)]()[_0xcb8820(0x351)]instanceof J&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x5e8f32(0x413)](_0x4fbdcc['changing$']['subscribe'](_0x1f1f63=>{const _0x358d4b=_0x5e8f32;this['_isDrawingShapePointDown']&&this[_0x358d4b(0x29b)]();})),this[_0x5e8f32(0x413)](_0x3a9067[_0x5e8f32(0x3de)]['subscribeEvent'](()=>{const _0x5eae42=_0x5e8f32;this[_0x5eae42(0x290)]&&(this[_0x5eae42(0x290)]=!0x1,this[_0x5eae42(0x3d6)]());})),this[_0x5e8f32(0x413)](_0x4fbdcc['changeEnd$'][_0x5e8f32(0x322)](()=>{const _0x219c96=_0x5e8f32;this[_0x219c96(0x41e)]&&this[_0x219c96(0x1c3)]&&this[_0x219c96(0x1fd)]&&this['_drawingManagerService'][_0x219c96(0x402)]({'unitId':this['_unitId'],'subUnitId':this[_0x219c96(0x1c3)],'drawingId':this[_0x219c96(0x1fd)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x219c96(0x3d6)]());}));}));}[_0x2a50d1(0x1b6)](){const _0x1b60ab=_0x2a50d1;this['disposeWithMe'](this[_0x1b60ab(0x218)]['focus$'][_0x1b60ab(0x322)](_0x1b6638=>{const _0x587e2f=_0x1b60ab;if(_0x1b6638[_0x587e2f(0x384)]===0x1){let _0x416f3f=_0x1b6638[0x0];if(_0x416f3f[_0x587e2f(0x271)]===_0x2af550['DRAWING_SHAPE']){let _0x5938b6=this[_0x587e2f(0x1c7)][_0x587e2f(0x38d)](_0x416f3f['unitId'],_0x416f3f[_0x587e2f(0x3ac)],_0x416f3f[_0x587e2f(0x3ab)]);if(_0x5938b6&&_0x4ff847(_0x5938b6[_0x587e2f(0x335)]())){this['_activeShapeId']=_0x416f3f[_0x587e2f(0x3ab)],this[_0x587e2f(0x41e)]=_0x416f3f[_0x587e2f(0x417)],this[_0x587e2f(0x1c3)]=_0x416f3f['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x587e2f(0x3d6)]();return;}}}this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x587e2f(0x1c3)]=void 0x0,this[_0x587e2f(0x29b)]();})),this[_0x1b60ab(0x413)](this[_0x1b60ab(0x218)][_0x1b60ab(0x215)]['subscribe'](_0x496b6b=>{const _0x33560c=_0x1b60ab;if(_0x496b6b['length']===0x1){var _0x3c54db;let _0x31ebb0=_0x496b6b[0x0],_0x4a6ff4=(_0x3c54db=this[_0x33560c(0x218)][_0x33560c(0x402)](_0x31ebb0))==null?void 0x0:_0x3c54db[_0x33560c(0x271)];_0x4a6ff4===_0x2af550[_0x33560c(0x255)]&&_0x31ebb0['drawingId']===this[_0x33560c(0x1fd)]?(this[_0x33560c(0x29b)](),this[_0x33560c(0x3d6)]()):!this[_0x33560c(0x1fd)]&&_0x4a6ff4===_0x2af550[_0x33560c(0x255)]&&this[_0x33560c(0x383)](_0x31ebb0[_0x33560c(0x417)],_0x31ebb0[_0x33560c(0x3ac)],_0x31ebb0[_0x33560c(0x3ab)]);}})),this[_0x1b60ab(0x413)](this['_drawingManagerService'][_0x1b60ab(0x1dd)]['subscribe'](_0x208fa3=>{const _0x11bcb1=_0x1b60ab;for(let _0x57dd52 of _0x208fa3){let {drawingId:_0x24604c}=_0x57dd52;if(this[_0x11bcb1(0x1fd)]===_0x24604c){this['_reset']();return;}}}));}['_handleConnectedEndpointMove'](_0x4da3c6,_0x1f5fc4,_0x1282a9,_0x3eea0b,_0x52ba53){const _0x22a1e0=_0x2a50d1;var _0x345f5e;if(!this[_0x22a1e0(0x2ee)])return;let _0x558f75=this['_getConnectPointInfo'](_0x4da3c6);if(!_0x558f75)return;let _0x186814=this[_0x22a1e0(0x312)]?this['_currentConnectionTarget'][_0x22a1e0(0x17d)]:_0x1f5fc4,_0x2b2628=this['_currentConnectionTarget']?this[_0x22a1e0(0x312)]['angle']:this['_calculateFreeEndpointAngle'](_0x558f75[_0x22a1e0(0x1ad)],_0x186814),_0x5bd3a7;if(this[_0x22a1e0(0x312)]){let _0x1aa09f=this['_drawingManagerService'][_0x22a1e0(0x402)]({'unitId':this[_0x22a1e0(0x312)][_0x22a1e0(0x417)],'subUnitId':this['_currentConnectionTarget'][_0x22a1e0(0x3ac)],'drawingId':this[_0x22a1e0(0x312)]['shapeId']});if(_0x1aa09f!=null&&_0x1aa09f[_0x22a1e0(0x3e1)]){let {left:_0x293a72=0x0,top:_0x563f44=0x0,width:_0x507ec7=0x0,height:_0x437967=0x0,angle:_0xbab0a4}=_0x1aa09f['transform'];_0x5bd3a7=_0x588ee5({'left':_0x293a72,'top':_0x563f44,'width':_0x507ec7,'height':_0x437967},_0xbab0a4||0x0);}else _0x5bd3a7={'left':_0x186814['x'],'top':_0x186814['y'],'width':0x0,'height':0x0};}else _0x5bd3a7={'left':_0x186814['x'],'top':_0x186814['y'],'width':0x0,'height':0x0};let _0x3de5b9={'point':_0x186814,'angle':_0x2b2628,'bounds':_0x5bd3a7},_0x5ce73a=_0x1282a9?_0x3de5b9:_0x558f75,_0x370712=_0x1282a9?_0x558f75:_0x3de5b9,_0xa3c8bb=this[_0x22a1e0(0x2ee)][_0x22a1e0(0x335)](),_0x199e20=_0x3b0187(_0x5ce73a,_0x370712,_0xa3c8bb);_0x199e20&&this['_activeShapeModel']['updateLinePoints'](_0x199e20);let _0x32bb95=_0x4afb2b(_0x199e20,_0xa3c8bb);_0x32bb95[_0x22a1e0(0x411)]!==_0xa3c8bb&&this[_0x22a1e0(0x2ee)][_0x22a1e0(0x434)](_0x32bb95[_0x22a1e0(0x411)]);for(let [_0x47ca17,_0x2a51f8]of Object[_0x22a1e0(0x24c)](_0x32bb95[_0x22a1e0(0x18c)]))this[_0x22a1e0(0x2ee)][_0x22a1e0(0x211)](_0x47ca17,_0x2a51f8);this[_0x22a1e0(0x2ee)][_0x22a1e0(0x246)]({'width':_0x32bb95[_0x22a1e0(0x1d7)][_0x22a1e0(0x320)],'height':_0x32bb95[_0x22a1e0(0x1d7)][_0x22a1e0(0x2f5)]}),_0x3eea0b['transformByState']({'flipX':_0x32bb95[_0x22a1e0(0x1d7)][_0x22a1e0(0x34d)],'flipY':_0x32bb95[_0x22a1e0(0x1d7)][_0x22a1e0(0x31b)],'left':_0x32bb95['worldRect']['left'],'top':_0x32bb95['worldRect'][_0x22a1e0(0x2ed)],'width':_0x32bb95['worldRect'][_0x22a1e0(0x320)],'height':_0x32bb95[_0x22a1e0(0x1d7)][_0x22a1e0(0x2f5)],'angle':_0x32bb95[_0x22a1e0(0x318)]}),_0x3eea0b[_0x22a1e0(0x2fb)](!0x0);let _0x456e63=((_0x345f5e=this[_0x22a1e0(0x312)])==null?void 0x0:_0x345f5e[_0x22a1e0(0x17d)])??_0x1f5fc4;_0x52ba53[_0x22a1e0(0x364)]({'left':_0x456e63['x']-_0xc3f276['cxnPointRadius'],'top':_0x456e63['y']-_0xc3f276[_0x22a1e0(0x1e6)]});}[_0x2a50d1(0x1e4)](_0x40cc23,_0x397e9f,_0x398906,_0x3321a9,_0x2a1705){const _0x597eb2=_0x2a50d1;var _0x4df1ff,_0x53c8da;let _0x47c1fa=((_0x4df1ff=this[_0x597eb2(0x312)])==null?void 0x0:_0x4df1ff[_0x597eb2(0x17d)])??_0x40cc23,_0x110822=_0x352ba4[_0x597eb2(0x3b4)](_0x397e9f,_0x47c1fa,_0x398906);_0x3321a9['transformByState']({'flipX':_0x110822['worldRect']['flipX'],'flipY':_0x110822[_0x597eb2(0x1d7)][_0x597eb2(0x31b)],'left':_0x110822[_0x597eb2(0x1d7)]['left'],'top':_0x110822[_0x597eb2(0x1d7)][_0x597eb2(0x2ed)],'width':_0x110822['worldRect'][_0x597eb2(0x320)],'height':_0x110822[_0x597eb2(0x1d7)]['height'],'angle':_0x110822[_0x597eb2(0x1d7)]['angle']});let _0x51c236=((_0x53c8da=this['_currentConnectionTarget'])==null?void 0x0:_0x53c8da[_0x597eb2(0x17d)])??_0x40cc23;_0x2a1705['transformByState']({'left':_0x51c236['x']-_0xc3f276[_0x597eb2(0x1e6)],'top':_0x51c236['y']-_0xc3f276[_0x597eb2(0x1e6)]});}[_0x2a50d1(0x2de)](_0x15124a){const _0x1189eb=_0x2a50d1;if(!this[_0x1189eb(0x41e)]||!this[_0x1189eb(0x1c3)])return null;let {shapeId:_0x353ed6,cxnIndex:_0x58a529}=_0x15124a,_0x37968a=this[_0x1189eb(0x1c7)][_0x1189eb(0x38d)](this[_0x1189eb(0x41e)],this['_subUnitId'],_0x353ed6);if(!_0x37968a)return null;let _0x49c875=this[_0x1189eb(0x218)][_0x1189eb(0x402)]({'unitId':this[_0x1189eb(0x41e)],'subUnitId':this[_0x1189eb(0x1c3)],'drawingId':_0x353ed6});if(!(_0x49c875!=null&&_0x49c875[_0x1189eb(0x3e1)]))return null;let {left:_0x13695a=0x0,top:_0x68bcad=0x0,width:_0x4919b0=0x0,height:_0x105dc1=0x0,flipX:_0x286c2f=!0x1,flipY:_0x16bf92=!0x1,angle:_0x5b7afd}=_0x49c875['transform'];_0x37968a['updateContext']({'width':_0x4919b0,'height':_0x105dc1});let _0x286d38=_0x37968a[_0x1189eb(0x325)]()[_0x1189eb(0x3f4)](_0x476fab=>_0x476fab[_0x1189eb(0x38b)]===_0x58a529);if(!_0x286d38)return null;let _0xd677c0=_0x286c2f?_0x4919b0-_0x286d38['x']:_0x286d38['x'],_0x104b10=_0x16bf92?_0x105dc1-_0x286d38['y']:_0x286d38['y'];if(_0x5b7afd!==0x0&&_0x5b7afd!=null){let _0x195fa5=_0x5b7afd*Math['PI']/0xb4,_0x27ddcc=Math[_0x1189eb(0x3e7)](_0x195fa5),_0x132655=Math['sin'](_0x195fa5),_0x2d99b2=_0x4919b0/0x2,_0x4b744d=_0x105dc1/0x2,_0x573827=_0xd677c0-_0x2d99b2,_0x2ef25e=_0x104b10-_0x4b744d;_0xd677c0=_0x2d99b2+_0x573827*_0x27ddcc-_0x2ef25e*_0x132655,_0x104b10=_0x4b744d+_0x573827*_0x132655+_0x2ef25e*_0x27ddcc;}_0xd677c0+=_0x13695a,_0x104b10+=_0x68bcad;let _0x13a1d3=_0x286d38['ang']/0xea60;_0x286c2f&&(_0x13a1d3=0xb4-_0x13a1d3),_0x16bf92&&(_0x13a1d3=-_0x13a1d3),_0x13a1d3+=_0x5b7afd||0x0,_0x13a1d3=(_0x13a1d3%0x168+0x168)%0x168;let _0xe8e4ac=_0x588ee5({'left':_0x13695a,'top':_0x68bcad,'width':_0x4919b0,'height':_0x105dc1},_0x5b7afd||0x0);return{'point':{'x':_0xd677c0,'y':_0x104b10},'angle':_0x13a1d3,'bounds':_0xe8e4ac};}['_calculateFreeEndpointAngle'](_0xc4be3c,_0x4fc825){const _0xc1a8c8=_0x2a50d1;let _0x5b72b8=_0x4fc825['x']-_0xc4be3c['x'],_0x4f1dc0=_0x4fc825['y']-_0xc4be3c['y'];return Math[_0xc1a8c8(0x38a)](_0x5b72b8)>=Math[_0xc1a8c8(0x38a)](_0x4f1dc0)?_0x5b72b8>=0x0?0xb4:0x0:_0x4f1dc0>=0x0?0x10e:0x5a;}['_reset'](){const _0xc3c82e=_0x2a50d1;this[_0xc3c82e(0x1fd)]=void 0x0,this[_0xc3c82e(0x41e)]=void 0x0,this[_0xc3c82e(0x1c3)]=void 0x0,this[_0xc3c82e(0x29b)]();}[_0x2a50d1(0x2bd)](){const _0x437fc7=_0x2a50d1;this[_0x437fc7(0x29b)](),super[_0x437fc7(0x2bd)]();}};ma=X([Y(0x1,_0x36cb63),Y(0x2,_0x5ee803),Y(0x3,_0x4f51fd),Y(0x4,_0x3a5e32),Y(0x5,_0x1cc97c(_0x19ac46)),Y(0x6,_0x1cc97c(Pr)),Y(0x7,_0x1cc97c(da))],ma);let ha=class extends _0x50b698{constructor(_0xa078e2,_0x1d79bc,_0x42a9a7){const _0x5466bf=_0x2a50d1;super(),this[_0x5466bf(0x2a7)]=_0xa078e2,this[_0x5466bf(0x218)]=_0x1d79bc,this['_shapeRenderController']=_0x42a9a7,this[_0x5466bf(0x2fd)]();}[_0x2a50d1(0x2fd)](){const _0x198086=_0x2a50d1;this[_0x198086(0x413)](this['_sheetPrintInterceptorService']['interceptor'][_0x198086(0x2c5)](this[_0x198086(0x2a7)][_0x198086(0x375)][_0x198086(0x2ae)]()[_0x198086(0x3e0)],{'handler':(_0x8815fa,_0x13abcb,_0x372990)=>{const _0xc1ee2c=_0x198086;var _0x38d68a;let {unitId:_0x1acf56,subUnitId:_0x3e4138,scene:_0x136f2e,resourceCollector:_0x2542d7}=_0x13abcb,_0x426b2b=(_0x38d68a=this[_0xc1ee2c(0x218)]['getDrawingDataForUnit'](_0x1acf56))==null?void 0x0:_0x38d68a[_0x3e4138];return _0x426b2b==null||_0x426b2b['order'][_0xc1ee2c(0x3a1)](_0x4c184d=>{const _0x39863d=_0xc1ee2c;let _0xd79ff5=_0x426b2b[_0x39863d(0x279)][_0x4c184d];_0xd79ff5[_0x39863d(0x271)]===_0x2af550[_0x39863d(0x255)]&&!_0xd79ff5[_0x39863d(0x2ec)]&&this[_0x39863d(0x35a)][_0x39863d(0x22e)](_0xd79ff5,_0x136f2e,{'resourceCollector':_0x2542d7});}),_0x372990(_0x8815fa);}}));}};ha=X([Y(0x0,_0x1cc97c(_0x715be9)),Y(0x1,_0x4f51fd),Y(0x2,_0x1cc97c(Z))],ha);let ga=class extends _0x50b698{constructor(_0x2732eb,_0x2bc1b9,_0xc7e12b){const _0x2328dc=_0x2a50d1;super(),this[_0x2328dc(0x3a4)]=_0x2732eb,this['_localeService']=_0x2bc1b9,this[_0x2328dc(0x1c6)]=_0xc7e12b,this[_0x2328dc(0x1cf)]();}[_0x2a50d1(0x1cf)](){const _0xd21320=_0x2a50d1;this[_0xd21320(0x413)](this[_0xd21320(0x3a4)][_0xd21320(0x395)](_0x16de5d=>{const _0x406068=_0xd21320;let _0x411271,_0x59c7f3;if(_0x16de5d['id']===_0x274bf7['id']||_0x16de5d['id']===_0x1816e8['id']||_0x16de5d['id']===_0x47576f['id']){let _0x472ffb=_0x16de5d[_0x406068(0x176)];_0x411271=_0x472ffb[_0x406068(0x417)],_0x59c7f3=_0x472ffb[_0x406068(0x3ac)];}_0x411271&&_0x59c7f3&&(this[_0x406068(0x1c6)][_0x406068(0x3b6)]({'workbookTypes':[_0x1bbb99],'worksheetTypes':[_0x1c37ca]},_0x411271,_0x59c7f3)||this[_0x406068(0x1c6)][_0x406068(0x2e8)](this[_0x406068(0x2f1)]['t']('sheets-shape-ui.permission.editErr')));}));}};ga=X([Y(0x0,_0x1cc97c(_0x36cb63)),Y(0x1,_0x1cc97c(_0x36fe41)),Y(0x2,_0x1cc97c(_0x17c2c9))],ga);let _a=class{constructor(_0x4c5496){const _0x43c8a2=_0x2a50d1;this[_0x43c8a2(0x431)]=_0x4c5496;}[_0x2a50d1(0x362)](_0x52de38,_0x246ff8){const _0x4e536c=_0x2a50d1;let _0x5dacea=this[_0x4e536c(0x431)][_0x4e536c(0x18e)](_0x52de38[_0x4e536c(0x417)]),_0x133125=_0x5dacea==null?void 0x0:_0x5dacea[_0x4e536c(0x3da)];if(!_0x133125)return;let _0x4bfddc=_0x5b513c(_0x52de38),_0x58f13c=_0x133125[_0x4e536c(0x244)](_0x4bfddc);_0x58f13c==null||_0x58f13c[_0x4e536c(0x42d)](_0x246ff8);}};_a=X([Y(0x0,_0x5ee803)],_a);let va=class extends _0x21d821{constructor(_0x13728f=Yi,_0x164825,_0x138679,_0x3d6d56,_0x3050af){const _0x2c3596=_0x2a50d1;super(),this[_0x2c3596(0x2ad)]=_0x13728f,this[_0x2c3596(0x175)]=_0x164825,this[_0x2c3596(0x3a4)]=_0x138679,this[_0x2c3596(0x2b0)]=_0x3d6d56,this[_0x2c3596(0x431)]=_0x3050af;let {..._0x525ced}=_0x5d2e0e({},Yi,this[_0x2c3596(0x2ad)]);this[_0x2c3596(0x2b0)][_0x2c3596(0x427)](Ji,_0x525ced),this['_initCommands']();}['onStarting'](){const _0x2c9c09=_0x2a50d1;this[_0x2c9c09(0x175)]['add']([ta]),this['_injector'][_0x2c9c09(0x17c)](ta),_0xb1496d(this[_0x2c9c09(0x175)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x2a50d1(0x299)](){const _0x54cea6=_0x2a50d1;_0xb1496d(this[_0x54cea6(0x175)],[[da],[Pr],[fa]]),_0x254e2b(this[_0x54cea6(0x175)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x54cea6(0x3a1)](_0x3919cf=>{const _0xbde3e3=_0x54cea6;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0x31b64c[_0xbde3e3(0x1a1)],_0x3919cf));});}['onRendered'](){const _0x38e815=_0x2a50d1;_0x254e2b(this[_0x38e815(0x175)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x2a50d1(0x2d6)](){const _0x7db177=_0x2a50d1;this[_0x7db177(0x175)][_0x7db177(0x17c)](aa)[_0x7db177(0x27e)]();}[_0x2a50d1(0x24f)](){const _0x50aa90=_0x2a50d1;[Ir,K,Fr,qi]['forEach'](_0x7fad75=>this[_0x50aa90(0x413)](this[_0x50aa90(0x3a4)][_0x50aa90(0x26e)](_0x7fad75)));}};q(va,_0x2a50d1(0x293),_0x31b64c[_0x2a50d1(0x1a1)]),q(va,_0x2a50d1(0x2dd),_0x2a50d1(0x30e)),q(va,_0x2a50d1(0x39c),Gi),q(va,_0x2a50d1(0x185),Ki),va=X([_0x475ae1(_0x19d053,_0x2ef3dd,_0x1a49fc,_0x15e279,_0x4733ec,_0x4b2521,_0x4ff48e,_0x57c6d7,_0x4ecb47,_0x3072d3,_0x268cdf,_0x6ff82d,_0x2ae088),Y(0x1,_0x1cc97c(_0x2fc7b0)),Y(0x2,_0x36cb63),Y(0x3,_0x18e4d3),Y(0x4,_0x5ee803)],va);const ya={'type':_0x265116[_0x2a50d1(0x28b)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0x593639=_0x2a50d1;let _0x4d4160=_0x3f0a9f(_0x4f51fd),_0x5212b4=_0x11888b(()=>_0x4d4160[_0x593639(0x309)],_0x4d4160['getFocusDrawings'](),!0x1,[_0x4d4160]);return _0x5212b4[_0x593639(0x384)]===0x0?null:_0x52d2b9(_0x593639(0x19d),{'children':_0x90bcc3(_0x593639(0x19d),{'className':_0x593639(0x423),'children':[_0x52d2b9(_0x3de725,{'drawings':_0x5212b4,'hasCropper':!0x1}),_0x52d2b9(_0x188788,{'drawings':_0x5212b4})]})});}function xa(_0x359b37){let {unitId:_0x53a34b,subUnitId:_0x25af93,shapeId:_0x40eaa9}=_0x359b37,_0xac557=_0x3f0a9f(_0x36cb63),_0x5735d2=_0x3f0a9f(_a);return _0x52d2b9(_0x2aa5d2,{..._0x359b37,'positionEditor':_0x52d2b9(ba,{}),'onUpdateShapeData':(_0x130d1c,_0x4db2c0)=>{Dr(_0xac557,_0x53a34b,_0x25af93,_0x40eaa9,_0x130d1c,_0x4db2c0);},'onUpdateLineShapeData':(_0x159210,_0x316fe3)=>{Or(_0xac557,_0x53a34b,_0x25af93,_0x40eaa9,_0x159210,_0x316fe3);},'onUpdateShapeFillImage':_0x9958ad=>{const _0x421432=_0x2867;_0x5735d2[_0x421432(0x362)]({'unitId':_0x53a34b,'subUnitId':_0x25af93,'drawingId':_0x40eaa9},_0x9958ad);}});}function Sa(_0x48e163){const _0x31c33c=_0x2a50d1;let _0x38d65e=_0x3f0a9f(_0x1dcb80),_0x5efd42=_0x11888b(()=>_0x38d65e['visible$'],_0x38d65e['getVisible'](),!0x1,[_0x38d65e]),_0x588f03=_0x48e163[_0x31c33c(0x3b2)][_0x31c33c(0x284)];return!_0x588f03||!_0x5efd42?null:_0x52d2b9(Ca,{..._0x588f03,'canvasElement':_0x48e163[_0x31c33c(0x3b2)][_0x31c33c(0x32f)]});}function Ca(_0x3e9106){const _0x2c76da=_0x2a50d1;let _0x28a12b=_0x3f0a9f(_0x36cb63),_0x45af35=_0x3f0a9f(_0x19ac46),{unitId:_0x5eed72,subUnitId:_0xd6eb19,drawingId:_0x3f6196,drawingType:_0x12fa37,shapeType:_0x1486c0}=_0x3e9106,[_0x2368f6,_0x1ad9c9]=_0x6473b7(_0x3e9106[_0x2c76da(0x342)]),_0x1709ae=_0x48df1e(()=>_0x2be288(_0x2368f6),[_0x2368f6]),_0x2305e1=_0x48df1e(()=>_0x52ba05(_0x2368f6),[_0x2368f6]);_0x47325c(()=>{const _0x5c953e=_0x2c76da;let _0x2ad9bc=_0x28a12b[_0x5c953e(0x2d3)](_0x4feabb=>{const _0x2f926b=_0x5c953e;if(_0x4feabb['id']!==_0x1528ac['id'])return;let _0x19697d=_0x45af35[_0x2f926b(0x180)](_0x5eed72,_0xd6eb19,_0x3f6196);_0x19697d&&_0x1ad9c9(_0x19697d);});return()=>_0x2ad9bc['dispose']();},[_0x28a12b,_0x3f6196,_0x45af35,_0xd6eb19,_0x5eed72]);let _0x47a47d=_0x2db77f=>{_0x1ad9c9(_0x361e31=>({..._0x361e31,..._0x2db77f}));},_0x46549e=_0x4a161c=>{const _0x41e7fb=_0x2c76da;let _0x20e224=_0x22d59e(_0x2368f6,_0x4a161c);Dr(_0x28a12b,_0x5eed72,_0xd6eb19,_0x3f6196,{'oldShapeData':{'shapeText':_0x2368f6[_0x41e7fb(0x3d3)]}},_0x20e224),_0x47a47d(_0x20e224);},_0x19ba45=_0x17d98c({'hostType':_0x31b64c[_0x2c76da(0x1a1)],'unitId':_0x5eed72,'subUnitId':_0xd6eb19,'shapeId':_0x3f6196,'shapeData':_0x2368f6,'onUpdateBinding':_0x48083a=>{let _0x595cea={'formulaBinding':_0x48083a};Dr(_0x28a12b,_0x5eed72,_0xd6eb19,_0x3f6196,{'oldShapeData':{'formulaBinding':_0x2368f6['formulaBinding']}},_0x595cea),_0x47a47d(_0x595cea);}});return _0x90bcc3(_0x3185ec,{'children':[_0x52d2b9(_0x316d07,{'canvasElement':_0x3e9106[_0x2c76da(0x32f)],'shapeData':_0x2368f6,'shapeType':_0x1486c0,'textStyle':{'ff':_0xc3f276[_0x2c76da(0x3d3)][_0x2c76da(0x194)],'fs':_0xc3f276[_0x2c76da(0x3d3)][_0x2c76da(0x2cb)],'cl':{'rgb':_0xc3f276[_0x2c76da(0x3d3)][_0x2c76da(0x280)]},..._0x1709ae},'textModel':_0x2305e1?{'ha':_0x2305e1['ha']??_0x1f7a4a[_0x2c76da(0x24b)],'va':_0x2305e1['va']??_0x49f617['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0xc3f276[_0x2c76da(0x236)],'defaultGradientEndColor':_0xc3f276[_0x2c76da(0x36c)],'defaultStrokeColor':_0xc3f276['stroke'],'extensionGroups':_0x19ba45[_0x2c76da(0x2eb)],'floatingObjectToolbarPosition':_0x26ae1c['SHEET'],'onUpdateShapeData':(_0x40b0d9,_0x1b7b46)=>{Dr(_0x28a12b,_0x5eed72,_0xd6eb19,_0x3f6196,_0x40b0d9,_0x1b7b46),_0x1b7b46&&_0x47a47d(_0x1b7b46);},'onUpdateText':_0x46549e,'onOpenPanel':()=>{const _0x277933=_0x2c76da;_0x28a12b[_0x277933(0x2b5)](Wr['id'],{'unitId':_0x5eed72,'subUnitId':_0xd6eb19,'drawingId':_0x3f6196});},'onDelete':()=>{const _0x4de2e3=_0x2c76da;_0x28a12b[_0x4de2e3(0x2b5)](_0x18105d['id'],{'unitId':_0x5eed72,'drawings':[{'unitId':_0x5eed72,'subUnitId':_0xd6eb19,'drawingId':_0x3f6196,'drawingType':_0x12fa37}]});}}),_0x19ba45[_0x2c76da(0x203)]]});}function wa(_0x4c9193){return!!_0x4c9193&&'axisAlignSheetTransform'in _0x4c9193&&'sheetTransform'in _0x4c9193;}const Ta=_0x2ed6a2(()=>{const _0x599973=_0x2a50d1;let _0x3cb8b9=_0x3f0a9f($),_0x28cbc8=_0x3f0a9f(_0x19ac46),_0x1fc103=_0x3f0a9f(_0x4f51fd),_0x4d5862=_0x3f0a9f(_0x36cb63),_0x2e3e0d=_0x3f0a9f(_0x1d8132),_0x1451bd=_0x3f0a9f(_0x5ee803),_0x7108ab=_0x48df1e(()=>({'getShapeModel':(_0x39f0c1,_0x1d43e2,_0x580365)=>_0x28cbc8['getShapeModel'](_0x39f0c1,_0x1d43e2,_0x580365),'getShapeData':(_0x3a8b69,_0x304529,_0x4d6597)=>_0x28cbc8['getShapeDataById'](_0x3a8b69,_0x304529,_0x4d6597),'getDrawingTransform':(_0x13a66a,_0xe59f6a,_0x471774)=>{const _0x128b48=_0x2867;let _0x405d0b=_0x1fc103[_0x128b48(0x402)]({'unitId':_0x13a66a,'subUnitId':_0xe59f6a,'drawingId':_0x471774});return _0x405d0b==null?void 0x0:_0x405d0b[_0x128b48(0x3e1)];},'updateShapeText':({unitId:_0x7afc06,subUnitId:_0x4bf6fa,shapeId:_0x47874f,shapeText:_0x499fdd,oldShapeText:_0x1c9bfa,hostSize:_0x10ecf2})=>{const _0x4f29f0=_0x2867;_0x2e3e0d[_0x4f29f0(0x2f7)](_0x7afc06,()=>{const _0x165401=_0x4f29f0;var _0x421577;let _0x3ccd96=_0x4d5862[_0x165401(0x267)](K['id'],{'unitId':_0x7afc06,'subUnitId':_0x4bf6fa,'shapeId':_0x47874f,'shapeData':{'shapeText':_0x499fdd},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1c9bfa}}});if(!_0x3ccd96||!_0x10ecf2)return _0x3ccd96;let _0x55480f=_0x1fc103[_0x165401(0x402)]({'unitId':_0x7afc06,'subUnitId':_0x4bf6fa,'drawingId':_0x47874f}),_0x15e00b=_0x55480f==null?void 0x0:_0x55480f[_0x165401(0x3e1)];if(!wa(_0x55480f)||!_0x15e00b)return!0x1;let _0x4554bd={..._0x15e00b,'width':_0x10ecf2[_0x165401(0x320)],'height':_0x10ecf2['height']},_0x28be43=(_0x421577=_0x1451bd['getRenderUnitById'](_0x7afc06))==null||(_0x421577=_0x421577[_0x165401(0x3bf)](_0x2df2f6)['getSkeletonParam'](_0x4bf6fa))==null?void 0x0:_0x421577[_0x165401(0x2c0)];return _0x4d5862[_0x165401(0x267)](_0x3928a2['id'],{'unitId':_0x7afc06,'drawings':[{..._0x55480f,'transform':_0x4554bd,'sheetTransform':_0x28be43?_0xf0f590(_0x4554bd,_0x28be43)??_0x55480f['sheetTransform']:_0x55480f[_0x165401(0x3c1)],'axisAlignSheetTransform':_0x28be43?_0x447cde(_0x4554bd,_0x28be43)??_0x55480f[_0x165401(0x278)]:_0x55480f[_0x165401(0x278)]}]});});},'updateHostSize':({unitId:_0x3820dd,subUnitId:_0x34705a,shapeId:_0x3b0252,width:_0x47ba64,height:_0x4d2eac})=>{const _0x4129d0=_0x2867;var _0xa79044;let _0x5748b9=_0x1fc103[_0x4129d0(0x402)]({'unitId':_0x3820dd,'subUnitId':_0x34705a,'drawingId':_0x3b0252}),_0x45d019=_0x5748b9==null?void 0x0:_0x5748b9['transform'];if(!wa(_0x5748b9)||!_0x45d019)return;let _0x14db62={..._0x45d019,'width':_0x47ba64,'height':_0x4d2eac},_0x38d7e0=(_0xa79044=_0x1451bd[_0x4129d0(0x18e)](_0x3820dd))==null||(_0xa79044=_0xa79044['with'](_0x2df2f6)[_0x4129d0(0x3e8)](_0x34705a))==null?void 0x0:_0xa79044[_0x4129d0(0x2c0)],_0x35158a=_0x38d7e0?_0xf0f590(_0x14db62,_0x38d7e0)??_0x5748b9['sheetTransform']:_0x5748b9['sheetTransform'],_0x308c3b=_0x38d7e0?_0x447cde(_0x14db62,_0x38d7e0)??_0x5748b9['axisAlignSheetTransform']:_0x5748b9[_0x4129d0(0x278)];_0x4d5862['executeCommand'](_0x3928a2['id'],{'unitId':_0x3820dd,'drawings':[{..._0x5748b9,'transform':_0x14db62,'sheetTransform':_0x35158a,'axisAlignSheetTransform':_0x308c3b}]});},'allowHostSizeShrink':({unitId:_0x46914f,subUnitId:_0x5ae429,shapeId:_0x3f359e})=>_0x3507cc(_0x28cbc8[_0x599973(0x180)](_0x46914f,_0x5ae429,_0x3f359e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4d5862,_0x1fc103,_0x1451bd,_0x28cbc8,_0x2e3e0d]),_0x312d5a=_0x48df1e(()=>({'viewportKeys':{'main':_0x50483f[_0x599973(0x3b8)],'leftTop':_0x50483f[_0x599973(0x251)],'top':_0x50483f[_0x599973(0x282)],'left':_0x50483f[_0x599973(0x2d9)]},'getSkeleton':(_0x6868bd,_0x517968)=>{const _0x4d3815=_0x599973;var _0x4f0286;return((_0x4f0286=_0x6868bd[_0x4d3815(0x3bf)](_0x2df2f6)[_0x4d3815(0x3e8)](_0x517968[_0x4d3815(0x3ac)]))==null?void 0x0:_0x4f0286[_0x4d3815(0x2c0)])??null;}}),[]);return _0x52d2b9(_0x440aa0,{'adapter':_0x7108ab,'editingService':_0x3cb8b9,'editorUnitId':Vr,'positionOptions':_0x312d5a});});let Ea=class extends _0x50b698{constructor(_0x4b581f,_0x5f4a99){const _0x8b87ce=_0x2a50d1;super(),this[_0x8b87ce(0x333)]=_0x4b581f,this[_0x8b87ce(0x379)]=_0x5f4a99,this[_0x8b87ce(0x31c)](),this['_registerComponents']();}[_0x2a50d1(0x31c)](){const _0x486569=_0x2a50d1;this[_0x486569(0x379)]['has'](_0x486569(0x262))||this[_0x486569(0x413)](this['_iconManager'][_0x486569(0x283)]({'ObjectLayersIcon':_0x143c8a})),this['_iconManager'][_0x486569(0x2af)](_0x486569(0x232))||this['disposeWithMe'](this[_0x486569(0x379)][_0x486569(0x283)]({'FlipHorizontalIcon':_0x543ae5})),this[_0x486569(0x379)]['has']('FlipVerticalIcon')||this[_0x486569(0x413)](this[_0x486569(0x379)][_0x486569(0x283)]({'FlipVerticalIcon':_0x53f09a})),this[_0x486569(0x379)]['has'](_0x486569(0x31a))||this[_0x486569(0x413)](this['_iconManager'][_0x486569(0x283)]({'BottomIcon':_0x2c59f6})),this[_0x486569(0x379)][_0x486569(0x2af)](_0x486569(0x2f0))||this[_0x486569(0x413)](this[_0x486569(0x379)][_0x486569(0x283)]({'MoveDownIcon':_0xb8b13})),this[_0x486569(0x379)][_0x486569(0x2af)](_0x486569(0x373))||this[_0x486569(0x413)](this['_iconManager'][_0x486569(0x283)]({'MoveUpIcon':_0x3fe9c5})),this[_0x486569(0x379)]['has'](_0x486569(0x34b))||this['disposeWithMe'](this[_0x486569(0x379)][_0x486569(0x283)]({'ShapeFormatSettingIcon':_0x3b58f3})),this[_0x486569(0x379)][_0x486569(0x2af)](_0x486569(0x36e))||this['disposeWithMe'](this[_0x486569(0x379)][_0x486569(0x283)]({'TopmostIcon':_0x173190}));}[_0x2a50d1(0x2c4)](){const _0x1dcee3=_0x2a50d1;this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](Lr,xa)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)]['register'](Rr,$i)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](Jr,ei)),this[_0x1dcee3(0x413)](this['_componentManager'][_0x1dcee3(0x283)](Yr,Zr)),this[_0x1dcee3(0x333)][_0x1dcee3(0x358)](_0x168650)||this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](_0x168650,$r)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](zr,Sa)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)]['register'](di,hi)),this['disposeWithMe'](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](ui,gi)),this['disposeWithMe'](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](fi,_i)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)][_0x1dcee3(0x283)](pi,vi)),this['disposeWithMe'](this['_componentManager'][_0x1dcee3(0x283)](Hr,_0x386324)),this[_0x1dcee3(0x413)](this[_0x1dcee3(0x333)]['register'](_0x1dcee3(0x32b),Ta));}};Ea=X([Y(0x0,_0x1cc97c(_0x1532b8)),Y(0x1,_0x1cc97c(_0x25a4f3))],Ea);let Da=class extends _0x50b698{constructor(_0x948af2,_0x2fd246,_0x18ac06,_0x4354f3,_0x5efb47,_0x39b9a0,_0x499f2e,_0x155b85,_0xf4fc0a){const _0x520042=_0x2a50d1;super();let _0xe0f9fe=_0x8863d5=>{const _0x5a8c23=_0x2867;var _0x489257,_0x597b67;return(((_0x489257=_0x155b85[_0x5a8c23(0x360)](new _0x1bbb99(_0x8863d5[_0x5a8c23(0x417)])['id']))==null?void 0x0:_0x489257[_0x5a8c23(0x351)])??!0x0)&&(((_0x597b67=_0x155b85[_0x5a8c23(0x360)](new _0x1c37ca(_0x8863d5[_0x5a8c23(0x417)],_0x8863d5[_0x5a8c23(0x3ac)])['id']))==null?void 0x0:_0x597b67[_0x5a8c23(0x351)])??!0x0);},_0x3b4b12=_0x5abd35=>_0x5abd35[_0x520042(0x32c)]&&_0xe0f9fe(_0x5abd35)?_0x18ac06[_0x520042(0x180)](_0x5abd35[_0x520042(0x417)],_0x5abd35[_0x520042(0x3ac)],_0x5abd35['shapeId'])??null:null,_0x59ecd7=()=>{const _0xf37af6=_0x520042;let _0x327711=_0x5efb47[_0xf37af6(0x1ab)](),_0x593077=_0x327711['length']===0x1?_0x327711[0x0]:null;return(_0x593077==null?void 0x0:_0x593077[_0xf37af6(0x271)])===_0x2af550[_0xf37af6(0x255)]&&_0x593077[_0xf37af6(0x417)]===_0x948af2['unitId']?{'unitId':_0x593077['unitId'],'subUnitId':_0x593077[_0xf37af6(0x3ac)],'shapeId':_0x593077['drawingId']}:null;};this['disposeWithMe'](_0x58044f(_0x948af2,_0x2fd246,{'changes$':_0x4c0ea2(_0x5efb47[_0x520042(0x309)],_0x4354f3[_0x520042(0x3d4)],_0x155b85['permissionPointUpdate$']),'isActive':()=>{const _0x2aba67=_0x520042;var _0x2761c1;return((_0x2761c1=_0x39b9a0[_0x2aba67(0x3db)]())==null?void 0x0:_0x2761c1[_0x2aba67(0x346)]())===_0x948af2['unitId']&&!_0x499f2e[_0x2aba67(0x294)](_0x436061)&&_0x5efb47[_0x2aba67(0x1ab)]()['some'](_0x5d3868=>_0x5d3868['unitId']===_0x948af2[_0x2aba67(0x417)]);},'getSelectedTarget':_0x59ecd7,'getSource':()=>{let _0xa73d5d=_0x59ecd7();return _0xa73d5d?_0x3b4b12(_0xa73d5d):null;},'getTarget':_0x2f00ef=>{const _0x2b5ce9=_0x520042;let _0x2765f1=_0x948af2[_0x2b5ce9(0x3da)]['pick'](new _0x2c251b(_0x2f00ef[_0x2b5ce9(0x2b9)],_0x2f00ef[_0x2b5ce9(0x414)]));if(!(_0x2765f1 instanceof J))return null;let _0x4aa48a={'unitId':_0x948af2[_0x2b5ce9(0x417)],'subUnitId':_0x2765f1[_0x2b5ce9(0x3ac)],'shapeId':_0x2765f1['shapeId']};return _0xe0f9fe(_0x4aa48a)?_0x4aa48a:null;},'getShape':_0x3b4b12,'update':(_0x416ace,_0x16065e,_0x5b3e66)=>_0xf4fc0a[_0x520042(0x2b5)](K['id'],{..._0x416ace,'shapeData':_0x5b3e66,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x16065e}})}));}};Da=X([Y(0x1,_0x1cc97c(_0x2c55a0)),Y(0x2,_0x1cc97c(_0x19ac46)),Y(0x3,_0x1cc97c($)),Y(0x4,_0x4f51fd),Y(0x5,_0x3a5e32),Y(0x6,_0x4fc54e),Y(0x7,_0x325970),Y(0x8,_0x36cb63)],Da);const Oa=_0x2a50d1(0x277);let ka=class extends _0x50b698{constructor(_0x23484e,_0x5236ff,_0x39bda6,_0x4a652d,_0x56765b,_0x53d42a){const _0x46f979=_0x2a50d1;super(),this[_0x46f979(0x3d7)]=_0x23484e,this[_0x46f979(0x26f)]=_0x5236ff,this[_0x46f979(0x218)]=_0x39bda6,this[_0x46f979(0x1f8)]=_0x4a652d,this[_0x46f979(0x431)]=_0x56765b,this[_0x46f979(0x310)]=_0x53d42a,q(this,_0x46f979(0x1f2),!0x1),this[_0x46f979(0x3d7)]['mergeMenu'](Hi),this['disposeWithMe'](_0x3d1611(this[_0x46f979(0x218)][_0x46f979(0x309)][_0x46f979(0x322)](()=>this['_update']()))),this[_0x46f979(0x1ca)]();}['dispose'](){const _0x18bcc6=_0x2a50d1;this['_shapeFloatingToolbarService'][_0x18bcc6(0x306)](!0x1,Oa),this[_0x18bcc6(0x2c9)](),super['dispose']();}[_0x2a50d1(0x1ca)](){const _0x3f9ae4=_0x2a50d1;var _0x3e5dd7;let _0x5db6e8=this[_0x3f9ae4(0x218)][_0x3f9ae4(0x1ab)](),_0x555277=_0x5db6e8[_0x3f9ae4(0x384)]===0x1?_0x5db6e8[0x0]:void 0x0;if((_0x555277==null?void 0x0:_0x555277[_0x3f9ae4(0x271)])!==_0x2af550[_0x3f9ae4(0x255)]||this[_0x3f9ae4(0x1f8)]['getUnitType'](_0x555277['unitId'])!==_0x31b64c[_0x3f9ae4(0x1a1)]){this[_0x3f9ae4(0x310)]['setFallbackVisible'](!0x1,Oa),this[_0x3f9ae4(0x2c9)]();return;}let _0x4e1ed2=(_0x3e5dd7=this[_0x3f9ae4(0x431)][_0x3f9ae4(0x18e)](_0x555277[_0x3f9ae4(0x417)]))==null?void 0x0:_0x3e5dd7[_0x3f9ae4(0x287)][_0x3f9ae4(0x204)](),_0xdfc0f=_0x451090(_0x4e1ed2)===_0x3f9ae4(0x275);this[_0x3f9ae4(0x310)][_0x3f9ae4(0x306)](_0xdfc0f,Oa),_0xdfc0f?this[_0x3f9ae4(0x2c9)]():this[_0x3f9ae4(0x1f2)]||(this[_0x3f9ae4(0x1f2)]=!0x0,this[_0x3f9ae4(0x26f)][_0x3f9ae4(0x259)](Br,{'activate':!0x0}));}[_0x2a50d1(0x2c9)](){const _0x51cda5=_0x2a50d1;this['_visible']&&(this[_0x51cda5(0x1f2)]=!0x1,this[_0x51cda5(0x26f)][_0x51cda5(0x3e5)](Br),this[_0x51cda5(0x26f)]['setCollapsedIds']([]));}};ka=X([Y(0x0,_0x578415),Y(0x1,_0x51787d),Y(0x2,_0x4f51fd),Y(0x3,_0x3a5e32),Y(0x4,_0x5ee803),Y(0x5,_0x1cc97c(_0x1dcb80))],ka);let Aa=class extends _0xc5403{constructor(_0x2b4abc,_0x5ec77a,_0x24b41c,_0x2ec059,_0x568fdc,_0x1a9c82,_0x5b75c2,_0x4c392f,_0x3bcae2,_0xdae410){super(_0x2b4abc,_0x5ec77a,_0x24b41c,_0x2ec059,_0x568fdc,_0x1a9c82,_0x5b75c2,_0x4c392f,_0x3bcae2,_0xdae410,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x1cc97c(_0x49afbb)),Y(0x2,_0x1cc97c(_0x1fb8c2)),Y(0x3,_0x1cc97c(_0x5501bf)),Y(0x4,_0x36cb63),Y(0x5,_0x1cc97c(_0x57854c)),Y(0x6,_0x1cc97c(_0x4a3597)),Y(0x7,_0x1cc97c(_0x1ba3c0)),Y(0x8,_0x1cc97c(_0x1515d4)),Y(0x9,_0x1cc97c($))],Aa);let ja=class extends _0x14ddc5{constructor(_0x3c5f73,_0xc4c2be,_0x306f26,_0x1c2d91,_0x174c2f){const _0xf9a7bb=_0x2a50d1;super(_0x3c5f73,_0xc4c2be,{'editing$':_0x306f26[_0xf9a7bb(0x3d4)],'resolve':_0x3b2b90=>{const _0x4a80ef=_0xf9a7bb;var _0x38fad3,_0x125dda,_0x410b65;let _0x515481=new _0x2c251b(_0x3b2b90[_0x4a80ef(0x2b9)],_0x3b2b90['offsetY']),_0x3db46f=((_0x38fad3=_0x3c5f73[_0x4a80ef(0x3da)]['getActiveViewportByCoord'](_0x515481))==null?void 0x0:_0x38fad3[_0x4a80ef(0x1ff)](_0x515481))??_0x515481,_0x5bb122=_0x14be6a(_0x3c5f73[_0x4a80ef(0x3da)][_0x4a80ef(0x258)](_0x515481)??null,_0x3db46f);if(!(_0x5bb122 instanceof J))return null;let _0x26c0d6=_0x5bb122[_0x4a80ef(0x20c)](_0x3db46f);if(!_0x26c0d6)return null;let _0x1850a5=_0x5bb122,_0x59d34e={'componentKey':_0x52f536['componentKey'],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0xc4c2be[_0x4a80ef(0x39b)]()};return{'object':_0x5bb122,'info':{..._0x26c0d6,'unitId':_0x5bb122[_0x4a80ef(0x417)],'subUnitId':_0x5bb122[_0x4a80ef(0x3ac)],'shapeKey':_0x5bb122[_0x4a80ef(0x223)],'readonly':!0x0,'copyable':((_0x125dda=_0x174c2f[_0x4a80ef(0x360)](new _0x2b7be9(_0x5bb122['unitId'])['id']))==null?void 0x0:_0x125dda['value'])!==!0x1&&((_0x410b65=_0x174c2f[_0x4a80ef(0x360)](new _0x2cc6db(_0x5bb122[_0x4a80ef(0x417)],_0x5bb122[_0x4a80ef(0x3ac)])['id']))==null?void 0x0:_0x410b65[_0x4a80ef(0x351)])!==!0x1},'attachPopup':()=>_0x1c2d91['attachPopupToObject'](_0x1850a5,_0x59d34e)};}}),this[_0xf9a7bb(0x413)](_0x3c5f73[_0xf9a7bb(0x42f)][_0xf9a7bb(0x1e2)][_0xf9a7bb(0x322)](()=>this['clear']()));}};ja=X([Y(0x1,_0x1cc97c(_0x4a3597)),Y(0x2,_0x1cc97c($)),Y(0x3,_0x1cc97c(_0x43c3f4)),Y(0x4,_0x325970)],ja);let Ma=class extends _0x50b698{constructor(_0x198942,_0x39d9fd,_0x38ae1d,_0x29ef2a,_0x45afd4,_0x14c4bc,_0x5480b0,_0x442efd,_0x2e355b,_0x10708a,_0x402afd){const _0x4d2858=_0x2a50d1;super(),this[_0x4d2858(0x1f8)]=_0x198942,this[_0x4d2858(0x1c1)]=_0x39d9fd,this[_0x4d2858(0x3d7)]=_0x38ae1d,this[_0x4d2858(0x1c7)]=_0x29ef2a,this[_0x4d2858(0x2f1)]=_0x45afd4,this[_0x4d2858(0x3a4)]=_0x14c4bc,this[_0x4d2858(0x218)]=_0x5480b0,this[_0x4d2858(0x1f5)]=_0x442efd,this[_0x4d2858(0x300)]=_0x2e355b,this[_0x4d2858(0x431)]=_0x10708a,this['_shapeTextEditingService']=_0x402afd,q(this,_0x4d2858(0x1e0),null),q(this,_0x4d2858(0x39f),null),q(this,_0x4d2858(0x19b),!0x1),q(this,_0x4d2858(0x220),0x0),q(this,_0x4d2858(0x3b3),null),q(this,_0x4d2858(0x3ee),[]),this['_initMenu'](),this['disposeWithMe'](this[_0x4d2858(0x1f8)][_0x4d2858(0x205)](_0x31b64c[_0x4d2858(0x1a1)])[_0x4d2858(0x322)](_0x4cfd5f=>{const _0x18bbb8=_0x4d2858;if(!_0x4cfd5f){var _0x5cccd2;(_0x5cccd2=this[_0x18bbb8(0x1e0)])==null||_0x5cccd2['dispose']();}})),this[_0x4d2858(0x3d5)](),this[_0x4d2858(0x27e)](),this[_0x4d2858(0x413)](this[_0x4d2858(0x21f)][_0x4d2858(0x3d4)][_0x4d2858(0x322)](_0x17cd5d=>{_0x17cd5d&&this['_clearPopups']();}));}[_0x2a50d1(0x1cb)](){const _0x11d42e=_0x2a50d1;this['_menuManagerService'][_0x11d42e(0x30f)](Wi);}[_0x2a50d1(0x27e)](){const _0x55cd7d=_0x2a50d1;this[_0x55cd7d(0x3b3)]||=this[_0x55cd7d(0x413)](_0x3859e5(this[_0x55cd7d(0x431)],_0x31b64c[_0x55cd7d(0x1a1)],_0x473389=>this['_popupMenuListener'](_0x473389)));}[_0x2a50d1(0x2b3)](_0x253d5b,_0x5d9754,_0x4edfe8){const _0x2bdc0f=_0x2a50d1;let _0x2b2d03=this[_0x2bdc0f(0x1c7)][_0x2bdc0f(0x1f4)](_0x253d5b,_0x5d9754,_0x4edfe8),_0x512564=this[_0x2bdc0f(0x1c7)]['getShapeDataById'](_0x253d5b,_0x5d9754,_0x4edfe8);return _0x2b2d03!==void 0x0&&_0x512564!==void 0x0?{'shapeData':_0x512564,'shapeId':_0x4edfe8,'shapeType':_0x2b2d03,'unitId':_0x253d5b,'subUnitId':_0x5d9754,'version':this[_0x2bdc0f(0x220)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x1347dd=_0x2a50d1;this[_0x1347dd(0x3ee)][_0x1347dd(0x3a1)](_0xac7743=>_0xac7743['dispose']()),this[_0x1347dd(0x3ee)]['length']=0x0;}['_popupMenuListener'](_0x2ef99b){const _0x3e112a=_0x2a50d1;let _0x1641c7=new _0x3f9542();return _0x1641c7[_0x3e112a(0x29c)](_0x2ef99b[_0x3e112a(0x3dc)][_0x3e112a(0x322)](()=>{const _0x48407a=_0x3e112a;let _0x507224=_0x2ef99b[_0x48407a(0x3a8)]();if(this[_0x48407a(0x406)](),this[_0x48407a(0x19b)]||_0x507224[_0x48407a(0x199)]>0x1)return;let _0x432af8=_0x507224[_0x48407a(0x273)]()[_0x48407a(0x399)]()['value'];if(!_0x432af8)return;let _0x53da1a=this[_0x48407a(0x218)]['getDrawingOKey'](_0x432af8[_0x48407a(0x223)]);if(!_0x53da1a||_0x53da1a[_0x48407a(0x271)]!==_0x2af550[_0x48407a(0x255)])return;let {unitId:_0x32e57c,subUnitId:_0x494817,drawingId:_0x4df77c,drawingType:_0xbeeb45}=_0x53da1a,_0x5951c4=this['_getShapeInfo'](_0x32e57c,_0x494817,_0x4df77c);if(!_0x5951c4)return;this['_contextService'][_0x48407a(0x1e7)](_0x3c571e,!0x0);let _0x4ea69c=this['_renderManagerService'][_0x48407a(0x18e)](_0x32e57c),_0x23dcbb=((_0x4ea69c==null?void 0x0:_0x4ea69c[_0x48407a(0x3ec)])===!0x1?_0x4ea69c['with'](_0x43c3f4):this[_0x48407a(0x1f5)])[_0x48407a(0x409)](_0x432af8,{'componentKey':zr,'direction':'vertical-center','offset':[0x0,_0x23fafe],'extraProps':{'unitId':_0x32e57c,'subUnitId':_0x494817,'drawingId':_0x4df77c,'drawingType':_0xbeeb45,'shapeType':_0x5951c4[_0x48407a(0x334)],'shapeData':_0x5951c4['shapeData']}});this[_0x48407a(0x3ee)][_0x48407a(0x1bb)](this['disposeWithMe'](_0x23dcbb)),this[_0x48407a(0x218)][_0x48407a(0x1ab)]()[_0x48407a(0x3f4)](_0xff9a1=>_0xff9a1['unitId']===_0x32e57c&&_0xff9a1['subUnitId']===_0x494817&&_0xff9a1[_0x48407a(0x3ab)]===_0x4df77c)||this[_0x48407a(0x218)]['focusDrawing']([{'unitId':_0x32e57c,'subUnitId':_0x494817,'drawingId':_0x4df77c}]);})),_0x1641c7['add'](_0x2ef99b[_0x3e112a(0x3ad)][_0x3e112a(0x322)](()=>{const _0xfb3d5c=_0x3e112a;this[_0xfb3d5c(0x406)](),this[_0xfb3d5c(0x300)][_0xfb3d5c(0x1e7)](_0x3c571e,!0x1),this[_0xfb3d5c(0x218)][_0xfb3d5c(0x1ec)](null);})),_0x1641c7[_0x3e112a(0x29c)](_0x2ef99b['changing$'][_0x3e112a(0x322)](()=>{const _0x1c74df=_0x3e112a;this[_0x1c74df(0x406)]();})),_0x1641c7[_0x3e112a(0x29c)](_0x2ef99b['changeStart$'][_0x3e112a(0x322)](()=>{const _0x3bd91f=_0x3e112a;this[_0x3bd91f(0x406)]();})),_0x3d1611(()=>{const _0x5b5cb3=_0x3e112a;_0x1641c7[_0x5b5cb3(0x2bd)](),this['_clearPopups']();});}['_registerOperations'](){const _0x4a2446=_0x2a50d1;this[_0x4a2446(0x413)](this[_0x4a2446(0x3a4)][_0x4a2446(0x2d3)](_0x169191=>{const _0x5a5e09=_0x4a2446;if(_0x169191['id']===Wr['id']){let {unitId:_0x1ed6d,subUnitId:_0x5ad4ad,drawingId:_0x2ba89e}=_0x169191['params'];this[_0x5a5e09(0x220)]+=0x1,this[_0x5a5e09(0x39f)]=this[_0x5a5e09(0x2b3)](_0x1ed6d,_0x5ad4ad,_0x2ba89e),this[_0x5a5e09(0x406)](),this[_0x5a5e09(0x281)]();}if(_0x169191['id']===ya['id']&&(this[_0x5a5e09(0x39f)]=null,this[_0x5a5e09(0x3e9)]()),_0x169191['id']===_0x1528ac['id']){let {unitId:_0x4b0945,subUnitId:_0x52cc76,shapeId:_0x27d5dc}=_0x169191[_0x5a5e09(0x176)];if(this['_activeShapeInfo']&&this[_0x5a5e09(0x39f)][_0x5a5e09(0x32c)]===_0x27d5dc){let _0x37d952=this[_0x5a5e09(0x2b3)](_0x4b0945,_0x52cc76,_0x27d5dc);_0x37d952&&(this[_0x5a5e09(0x220)]+=0x1,_0x37d952[_0x5a5e09(0x185)]=this['_shapeEditPanelVersion'],this[_0x5a5e09(0x39f)]=_0x37d952,this[_0x5a5e09(0x19b)]&&this[_0x5a5e09(0x281)]());}}})),this[_0x4a2446(0x413)](this[_0x4a2446(0x218)][_0x4a2446(0x309)]['subscribe'](_0x23f8d5=>{const _0x530f00=_0x4a2446;if(this[_0x530f00(0x19b)]===!0x1)return;if(_0x23f8d5[_0x530f00(0x384)]===0x0){this[_0x530f00(0x39f)]=null,this[_0x530f00(0x3e9)]();return;}if(_0x23f8d5[_0x530f00(0x384)]===0x1&&_0x23f8d5[0x0]['drawingType']===_0x2af550[_0x530f00(0x255)]&&(this[_0x530f00(0x220)]+=0x1,this['_activeShapeInfo']=this[_0x530f00(0x2b3)](_0x23f8d5[0x0][_0x530f00(0x417)],_0x23f8d5[0x0][_0x530f00(0x3ac)],_0x23f8d5[0x0]['drawingId']),this[_0x530f00(0x39f)])){this[_0x530f00(0x281)]();return;}let _0x3650c1=_0x23f8d5[_0x530f00(0x1cc)](_0x2aef87=>_0x2aef87[_0x530f00(0x271)]===_0x2af550[_0x530f00(0x255)]);if(_0x23f8d5['length']>0x1&&_0x3650c1[_0x530f00(0x384)]===_0x23f8d5['length']){if(this[_0x530f00(0x220)]+=0x1,this['_activeShapeInfo']=this[_0x530f00(0x2b3)](_0x23f8d5[0x0][_0x530f00(0x417)],_0x23f8d5[0x0][_0x530f00(0x3ac)],_0x23f8d5[0x0][_0x530f00(0x3ab)]),this[_0x530f00(0x39f)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x530f00(0x39f)]=this[_0x530f00(0x2b3)](_0x23f8d5[0x0][_0x530f00(0x417)],_0x23f8d5[0x0][_0x530f00(0x3ac)],_0x23f8d5[0x0][_0x530f00(0x3ab)]),this[_0x530f00(0x39f)]){this[_0x530f00(0x39f)][_0x530f00(0x3c5)]=!0x0,this[_0x530f00(0x281)]();return;}}this[_0x530f00(0x3e9)]();}));}['_openShapeEditPanel'](){const _0x4f8619=_0x2a50d1;this[_0x4f8619(0x39f)]&&(this[_0x4f8619(0x1e0)]=this[_0x4f8619(0x1c1)][_0x4f8619(0x2c1)]({'id':Lr,'header':{'title':this[_0x4f8619(0x2f1)]['t'](_0x4f8619(0x261))},'width':0x184,'children':{'label':Lr,...this[_0x4f8619(0x39f)]},'onClose':()=>{const _0x1e94f2=_0x4f8619;this[_0x1e94f2(0x218)]['focusDrawing'](null),this[_0x1e94f2(0x300)][_0x1e94f2(0x1e7)](_0x3c571e,!0x1),this[_0x1e94f2(0x1e0)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x2a50d1(0x3e9)](){const _0x70b74d=_0x2a50d1;this[_0x70b74d(0x19b)]=!0x1,this[_0x70b74d(0x1c1)]['close'](Lr),this[_0x70b74d(0x1e0)]=null,this[_0x70b74d(0x300)]['setContextValue'](_0x3c571e,!0x1),this[_0x70b74d(0x218)][_0x70b74d(0x1ec)](null);}};Ma=X([Y(0x0,_0x3a5e32),Y(0x1,_0x1cc97c(_0x5dcc97)),Y(0x2,_0x578415),Y(0x3,_0x1cc97c(_0x19ac46)),Y(0x4,_0x1cc97c(_0x36fe41)),Y(0x5,_0x36cb63),Y(0x6,_0x4f51fd),Y(0x7,_0x1cc97c(_0x43c3f4)),Y(0x8,_0x4fc54e),Y(0x9,_0x5ee803),Y(0xa,_0x1cc97c($))],Ma);let Na=class extends _0x21d821{constructor(_0x9ea902=Yi,_0x2a7fa3,_0x492262,_0x4b1842,_0x3fc793){const _0x335f35=_0x2a50d1;super(),this[_0x335f35(0x2ad)]=_0x9ea902,this[_0x335f35(0x175)]=_0x2a7fa3,this['_commandService']=_0x492262,this[_0x335f35(0x2b0)]=_0x4b1842,this['_renderManagerService']=_0x3fc793;let {..._0x31d6ac}=_0x5d2e0e({},Yi,this[_0x335f35(0x2ad)]);this['_configService'][_0x335f35(0x427)](Ji,_0x31d6ac),this[_0x335f35(0x24f)]();}['onRendered'](){const _0xdb912d=_0x2a50d1;this[_0xdb912d(0x431)][_0xdb912d(0x1f6)](_0x31b64c[_0xdb912d(0x2bc)],[Aa]),_0x254e2b(this['_injector'],[[Ma],[ca],[Z],[ha]]);}[_0x2a50d1(0x2d6)](){const _0x17968d=_0x2a50d1;this[_0x17968d(0x175)][_0x17968d(0x17c)](Ma)[_0x17968d(0x27e)]();}[_0x2a50d1(0x299)](){const _0x2f0c44=_0x2a50d1;[[da],[Pr],[fa]][_0x2f0c44(0x3a1)](_0x2509a3=>this['_injector'][_0x2f0c44(0x29c)](_0x2509a3)),_0x254e2b(this['_injector'],[[fa],[Pr]]),this[_0x2f0c44(0x431)]['registerRenderModule'](_0x31b64c['UNIVER_SHEET'],[da]),this[_0x2f0c44(0x431)][_0x2f0c44(0x1f6)](_0x31b64c[_0x2f0c44(0x1a1)],[Xi]),this[_0x2f0c44(0x431)][_0x2f0c44(0x1f6)](_0x31b64c[_0x2f0c44(0x1a1)],[ma]),this[_0x2f0c44(0x431)][_0x2f0c44(0x1f6)](_0x31b64c[_0x2f0c44(0x1a1)],[na]),this[_0x2f0c44(0x413)](this[_0x2f0c44(0x431)][_0x2f0c44(0x1f6)](_0x31b64c[_0x2f0c44(0x1a1)],[ja])),this[_0x2f0c44(0x413)](this[_0x2f0c44(0x431)][_0x2f0c44(0x1f6)](_0x31b64c[_0x2f0c44(0x1a1)],[Da]));}[_0x2a50d1(0x356)](){const _0x55844b=_0x2a50d1;this[_0x55844b(0x175)][_0x55844b(0x29c)]([Ea]),this['_injector'][_0x55844b(0x17c)](Ea);let _0xe0df62=this[_0x55844b(0x175)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x55844b(0x3a1)](_0x17f37e=>_0xe0df62[_0x55844b(0x29c)](_0x17f37e)),_0x254e2b(this[_0x55844b(0x175)],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x2a50d1(0x24f)](){const _0x219e57=_0x2a50d1;[Ir,K,ya,Wr,Ur,Fr,Kr,qr]['forEach'](_0x5b5d53=>this[_0x219e57(0x413)](this[_0x219e57(0x3a4)][_0x219e57(0x26e)](_0x5b5d53)));}};q(Na,_0x2a50d1(0x293),_0x31b64c[_0x2a50d1(0x1a1)]),q(Na,_0x2a50d1(0x2dd),_0x2a50d1(0x30e)),q(Na,'packageName',Gi),q(Na,_0x2a50d1(0x185),Ki),Na=X([_0x475ae1(_0x19d053,_0x2ef3dd,_0x1a49fc,_0xf3d327,_0x15e279,_0x4733ec,_0x4b2521,_0x4ff48e,_0x57c6d7,_0x3980b3,_0x3072d3,_0xe71b4d,_0x4b0153),Y(0x1,_0x1cc97c(_0x2fc7b0)),Y(0x2,_0x36cb63),Y(0x3,_0x18e4d3),Y(0x4,_0x5ee803)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x714ef0=_0x5396;(function(_0x2bf5d2,_0x4d17ba){const _0x21edd2=_0x5396,_0x31d8db=_0x2bf5d2();while(!![]){try{const _0x3f0fdf=-parseInt(_0x21edd2(0x429))/0x1+parseInt(_0x21edd2(0x368))/0x2+-parseInt(_0x21edd2(0x2b0))/0x3*(parseInt(_0x21edd2(0x419))/0x4)+-parseInt(_0x21edd2(0x2fb))/0x5+parseInt(_0x21edd2(0x2f8))/0x6+-parseInt(_0x21edd2(0x360))/0x7*(-parseInt(_0x21edd2(0x2bd))/0x8)+-parseInt(_0x21edd2(0x1d1))/0x9;if(_0x3f0fdf===_0x4d17ba)break;else _0x31d8db['push'](_0x31d8db['shift']());}catch(_0x54b54f){_0x31d8db['push'](_0x31d8db['shift']());}}}(_0x4ab1,0x21809));import{FormulaShapeAnimationController as _0xb6a9b5,MobileShapeEditorService as _0x9eb493,SHAPE_CHANGE_PICKER_COMPONENT as _0x549e13,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xbe6416,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x571bee,ShapeEditPanel as _0x624b40,ShapeFloatingToolbar as _0x40aecd,ShapeFloatingToolbarService as _0x21f7f2,ShapeFloatingToolbarToggleFactory as _0x5bad15,ShapeFormulaRibbonControl as _0x493081,ShapeGroupEnum as _0x2a0c3e,ShapePickerDropdown as _0x2b2e10,ShapePickerPanel as _0x3bf045,ShapeQuickStyleGallery as _0x10a63c,ShapeStyleRibbonControl as _0x52b5ae,ShapeTextEditorContainer as _0x430207,ShapeTextFloatMenuRenderControllerBase as _0x4a3283,ShapeTextFloatToolbar as _0xca529a,ShapeTextHyperLinkHoverController as _0x1a7486,ShapeTextHyperLinkInfo as _0x2c3aaf,ShapeTextHyperLinkPopupService as _0x26baa8,ShapeTextRibbonControl as _0x2a1de0,ToggleShapeFloatingToolbarOperation as _0x45fee0,UniverShapeEditorMobileUIPlugin as _0x16c905,UniverShapeEditorUIPlugin as _0x28f3b2,activateDrawingObject as _0x2179ed,bindRenderTransformerLifecycle as _0x2cfb50,buildShapeTextDataUpdate as _0x380e1e,clearActiveDrawingObjects as _0x156f61,createShapeTextHyperLinkRegions as _0x3e58b1,drawFormulaShapeAnimationLayers as _0x4a0ea2,getDrawingTypeNameKey as _0x20bb51,getTextModel as _0x109803,getTextStyle as _0x4f4448,normalizeShapeTextModel as _0x5587e4,plainShapeTextToDocumentData as _0x2287f9,prepareShapeTextDocumentData as _0x1c57ea,registerShapeFormatPainter as _0x3b4dfd,resolveFormulaShapeAutoFitSize as _0x19d060,resolveShapeContextualRibbonHostMode as _0x3bb4cc,resolveShapeTextDocumentPageHeight as _0x3d2b36,resolveShapeTextDocumentRenderLayout as _0x34246b,resolveShapeTextEditorBehaviorShapeData as _0x5d5ef9,resolveShapeTextEditorWrapStrategy as _0x1885b0,resolveShapeTextHyperLinkAt as _0x40b4a2,resolveShapeTextHyperLinkObject as _0x296a42,shouldAllowShapeTextEditorHostSizeShrink as _0x248a4d,shouldClipShapeTextDocument as _0x430642,useFormulaShapeToolbar as _0x1f34d3}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a67d0,ContextMenuGroup as _0x144ec7,ContextMenuPosition as _0x281ae1,FloatingObjectToolbarPosition as _0x2b4dd0,FormatPainterSessionService as _0x43a96f,IMenuManagerService as _0x308400,IRibbonService as _0x1dad42,ISidebarService as _0x3d8cd5,IconManager as _0x1567a8,MenuItemType as _0x507a55,MenuManagerPosition as _0x31bc17,RibbonInsertGroup as _0x3372cf,UndoRedoGroupService as _0x4605cf,UniverMobileUIPlugin as _0xdc088c,getMenuHiddenObservable as _0x1975c5,useDependency as _0x3bcf4c,useObservable as _0x54184f}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x2610e3,ImageSourceTypeEnum as _0x1a3351,ShapeArrowSizeEnum as _0x5c2abc,ShapeArrowTypeEnum as _0x2a1afb,ShapeDefaultConfig as _0x4945a0,ShapeFillEnum as _0x271926,ShapeLineTypeEnum as _0x560aad,ShapeModel as _0x573393,ShapeRenderModeEnum as _0x1a48ca,ShapeTypeEnum as _0xf1eb19,computeConnectorRouteLayout as _0x1469b5,getBasicShapeRotateBound as _0x4191f0,isConnectorShape as _0x4cb876,isCurvedConnectorShape as _0x179376,routeConnectorLineShape as _0x22d8a5}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x205d16,UniverShapeEditorPlugin as _0x2d5783,applyQuickStyleToShapeData as _0x368cae,cloneShapeDataForType as _0x56761c,createShapeFormulaDocument as _0x342a66,createShapeTextBoxShapeData as _0xa48a9d,getShapeQuickStylePreset as _0x3ceb76,getShapeQuickStyleType as _0x189f9a,resolveActiveShapeQuickStylePresetId as _0x555e02}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x166112,InsertSheetsShapeMutation as _0x269d0a,RemoveSheetsShapeMutation as _0x2506a4,SetShapeDrawingDataCommand as _0x2cc34c,SheetsShapeService as _0x5b8f71,ToggleSheetsShapeFlipCommand as _0x4b4814,UniverSheetsShapePlugin as _0x178f75,UpdateConnectorRelationCommand as _0x128516,UpdateLineShapeResizeCommand as _0x48cda4,UpdateSheetsShapeDataMutation as _0x197dab}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x426c14,CommandType as _0x4017c5,DependentOn as _0x542984,Disposable as _0xe29064,DisposableCollection as _0x5941cd,DocumentDataModel as _0x2a49c7,DrawingTypeEnum as _0x544f7a,FOCUSING_COMMON_DRAWINGS as _0x435760,FOCUSING_SHAPE_TEXT_EDITOR as _0xd91ec1,HorizontalAlign as _0x5d9043,ICommandService as _0x2b8a3e,IConfigService as _0x5f4811,IContextService as _0x3ae1e3,IImageIoService as _0x1fd21f,IPermissionService as _0x9a590e,IURLImageService as _0x427e79,IUndoRedoService as _0x335b8b,IUniverInstanceService as _0x1d15d2,Inject as _0x5c502f,Injector as _0x25a967,LocaleService as _0x30b59c,Plugin as _0x14d9ad,UniverInstanceType as _0x58aa7b,VerticalAlign as _0x4f4c88,createInternalEditorID as _0x47130c,generateRandomId as _0x2f2dbb,merge as _0x1a3e4c,registerDependencies as _0x5ee9a9,toDisposable as _0x128476,touchDependencies as _0x6cf6c}from'@univerjs/core';import{CopySheetCommand as _0x2b64f6,RemoveSheetCommand as _0x21d984,SheetInterceptorService as _0x2a88c5,SheetPermissionCheckController as _0x33b80c,SheetSkeletonService as _0x48e7a4,SheetsSelectionsService as _0x469c9d,UniverSheetsPlugin as _0x1b9900,WorkbookCopyPermission as _0x324600,WorkbookEditablePermission as _0xe0fab9,WorksheetCopyPermission as _0x51eb20,WorksheetEditPermission as _0x123e53,attachRangeWithCoord as _0x50939b,discreteRangeToRange as _0x5de548,getSheetCommandTarget as _0x510a30}from'@univerjs/sheets';import{IDrawingManagerService as _0x19d008,SetDrawingSelectedOperation as _0x2b2ec1,UniverDrawingPlugin as _0x3fbaa1,getDrawingShapeKeyByDrawingSearch as _0x562c30,getOrCreateDrawingCopyPlan as _0x16a868}from'@univerjs/drawing';import{CURSOR_TYPE as _0x141a72,Circle as _0x540920,DRAWING_OBJECT_LAYER_INDEX as _0x4232ac,DocumentSkeleton as _0x68ac11,DocumentViewModel as _0x5b1715,Documents as _0x36ba8c,IRenderManagerService as _0x1e1faa,Image as _0x230c76,RENDER_CLASS_TYPE as _0x61e19a,SHEET_VIEWPORT_KEY as _0x5b9251,Shape as _0x240da9,Transform as _0x5a3b07,UniverRenderEnginePlugin as _0x262fbb,Vector2 as _0x5be732}from'@univerjs/engine-render';import{COPY_TYPE as _0x22fdbb,ISheetClipboardService as _0x345ee2,PREDEFINED_HOOK_NAME as _0x205afc,SheetCanvasPopManagerService as _0x2373db,SheetPrintInterceptorService as _0x39aad2,SheetScrollManagerService as _0x4e89db,SheetSkeletonManagerService as _0x44086e,UniverSheetsMobileUIPlugin as _0x50669f,UniverSheetsUIPlugin as _0x1542ac,deriveStateFromActiveSheet$ as _0x5b4c60,getCurrentRangeDisable$ as _0x3afc35,getViewportByCell as _0xe31858}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x50fa27,EMPTY as _0x535914,Observable as _0x1bac00,map as _0x3fd006,merge as _0x252868,of as _0x12c65f,startWith as _0x293b44,switchMap as _0x1e4916}from'rxjs';import{DrawingCommonPanel as _0x5527d5,DrawingImageClipService as _0x1d70d0,DrawingRenderService as _0x596343,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x4fdf51,MobileObjectListPanel as _0x5174cb,OBJECT_LIST_FLOATING_SECTION_ID as _0x3904f4,ObjectListPanelBase as _0xd50128,UniverDrawingUIPlugin as _0x2cd028,getCurrentUnitInfo as _0x52a805,getObjectListPanelSectionIdForDrawingType as _0x286e3b,insertGroupObject as _0x2a3ac3}from'@univerjs/drawing-ui';import{MobileDropdown as _0x8991e2}from'@univerjs/design';import{Fragment as _0x1956c4,jsx as _0x230828,jsxs as _0x55ce9a}from'react/jsx-runtime';import{DrawingApplyType as _0x377ac1,ISheetDrawingService as _0x4ba6b3,RemoveSheetDrawingCommand as _0x3e89af,SetDrawingApplyMutation as _0x2221ab,SetDrawingArrangeCommand as _0x8e2df9,SetSheetDrawingCommand as _0x297360,UniverSheetsDrawingPlugin as _0x28c2e2,transformToAxisAlignPosition as _0x5c977a,transformToDrawingPosition as _0x33f6ee}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1b2df7}from'@univerjs-pro/license';import{DocInterceptorService as _0x18dd84,DocSelectionManagerService as _0x50e1f3,UniverDocsPlugin as _0x3444ed}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x3b5158,DocEventManagerService as _0x13e37b,DocRenderController as _0x14fc5b,DocSelectionRenderService as _0x533da4,UniverDocsUIPlugin as _0x4ebfbc}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x522516,SheetsDrawingGroupCopyPasteController as _0x5e793f,UniverSheetsDrawingMobileUIPlugin as _0x58b005,UniverSheetsDrawingUIPlugin as _0x33abc1}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5d75f2,FlipHorizontalIcon as _0x4b0f8a,FlipVerticalIcon as _0x5e2243,MoveDownIcon as _0x178ad9,MoveUpIcon as _0x1ab950,ObjectLayersIcon as _0xe11253,ShapeFormatSettingIcon as _0x1496d5,TopmostIcon as _0x215261}from'@univerjs/icons';import{memo as _0x3aaaf3,useEffect as _0x5c63a2,useMemo as _0x23fcdc,useReducer as _0x3da1b7,useState as _0x2f8af9}from'react';function Er(_0x364107,_0x35d236){const _0x5730a7=_0x5396;let _0x152535={};for(let _0x4ef89a of Object[_0x5730a7(0x1a3)](_0x35d236)){let _0x552d61=_0x35d236[_0x4ef89a],_0x1c21e4=_0x364107[_0x4ef89a];_0x152535[_0x4ef89a]=_0x1c21e4===void 0x0?void 0x0:typeof _0x552d61==_0x5730a7(0x257)&&_0x552d61&&!Array[_0x5730a7(0x246)](_0x552d61)&&typeof _0x1c21e4=='object'&&_0x1c21e4&&!Array[_0x5730a7(0x246)](_0x1c21e4)?Er(_0x1c21e4,_0x552d61):_0x1c21e4;}return _0x152535;}function _0x5396(_0x5c0ca8,_0x48764a){_0x5c0ca8=_0x5c0ca8-0x15e;const _0x4ab1e3=_0x4ab1();let _0x5396d6=_0x4ab1e3[_0x5c0ca8];return _0x5396d6;}const K={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x38d),'handler':(_0x3ed849,_0x54eacb)=>{const _0x27b374=_0x714ef0;let _0x576f34=_0x3ed849['get'](_0x5b8f71),{unitId:_0xa7a9fc,subUnitId:_0x5f4246,shapeType:_0x483d53,shapeId:_0x4795a2,shapeData:_0x4c5383,replaceShapeData:_0x3d8104,oldShapeJSON:_0x1201ba}=_0x54eacb;if(!_0x576f34[_0x27b374(0x199)](_0xa7a9fc,_0x5f4246,_0x4795a2))return!0x1;let _0x345381=_0x3ed849['get'](_0x2b8a3e),_0x3b442d=_0x3ed849['get'](_0x335b8b),{oldShapeType:_0x293959,oldShapeData:_0x595432={}}=_0x1201ba,_0x284cc5=_0x3d8104?_0x595432:Er(_0x595432,_0x4c5383||{}),_0x1ab1fc={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x483d53,'shapeData':_0x4c5383,'replace':_0x3d8104}},_0x214d01={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x293959,'shapeData':_0x284cc5,'replace':_0x3d8104}};return _0x345381[_0x27b374(0x3ca)](_0x1ab1fc['id'],_0x1ab1fc[_0x27b374(0x387)])?(_0x3b442d[_0x27b374(0x1be)]({'unitID':_0xa7a9fc,'undoMutations':[_0x214d01],'redoMutations':[_0x1ab1fc]}),!0x0):!0x1;}};function Dr(_0x198721,_0x8b1110,_0xeaa61d,_0xcb99fa,_0x587996,_0x3f2231){const _0x336be7=_0x714ef0;let _0x55bd71={'unitId':_0x8b1110,'subUnitId':_0xeaa61d,'shapeId':_0xcb99fa,'shapeData':_0x3f2231,'oldShapeJSON':_0x587996};return _0x198721[_0x336be7(0x40b)](K['id'],_0x55bd71);}function Or(_0x74a600,_0x19324d,_0x7b8c39,_0x37c2f5,_0x4f1128,_0x2efd63){const _0x1e52c8=_0x714ef0;let _0x1b9b77={'unitId':_0x19324d,'subUnitId':_0x7b8c39,'shapeId':_0x37c2f5,'shapeData':_0x2efd63,'oldShapeJSON':_0x4f1128};return _0x74a600[_0x1e52c8(0x40b)](K['id'],_0x1b9b77);}function kr(_0x4bfbc7){'@babel/helpers - typeof';const _0x1d3391=_0x714ef0;return kr=typeof Symbol=='function'&&typeof Symbol[_0x1d3391(0x2db)]==_0x1d3391(0x3ef)?function(_0x11a6a6){return typeof _0x11a6a6;}:function(_0x516e0a){const _0x3716c9=_0x1d3391;return _0x516e0a&&typeof Symbol=='function'&&_0x516e0a[_0x3716c9(0x409)]===Symbol&&_0x516e0a!==Symbol[_0x3716c9(0x22c)]?_0x3716c9(0x3ef):typeof _0x516e0a;},kr(_0x4bfbc7);}function Ar(_0x36ca3e,_0x1d440d){const _0x38520b=_0x714ef0;if(kr(_0x36ca3e)!=_0x38520b(0x257)||!_0x36ca3e)return _0x36ca3e;var _0x2f6493=_0x36ca3e[Symbol[_0x38520b(0x2bb)]];if(_0x2f6493!==void 0x0){var _0x2cc971=_0x2f6493['call'](_0x36ca3e,_0x1d440d||_0x38520b(0x2e7));if(kr(_0x2cc971)!=_0x38520b(0x257))return _0x2cc971;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d440d===_0x38520b(0x432)?String:Number)(_0x36ca3e);}function jr(_0x49d0e4){const _0x55e886=_0x714ef0;var _0x1bff42=Ar(_0x49d0e4,'string');return kr(_0x1bff42)==_0x55e886(0x3ef)?_0x1bff42:_0x1bff42+'';}function q(_0x5cda28,_0x563ea4,_0x3be3ef){const _0x1b47e7=_0x714ef0;return(_0x563ea4=jr(_0x563ea4))in _0x5cda28?Object[_0x1b47e7(0x1fe)](_0x5cda28,_0x563ea4,{'value':_0x3be3ef,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cda28[_0x563ea4]=_0x3be3ef,_0x5cda28;}function Mr(_0x255ff6,_0x3d4cc4,_0x1fd22d){const _0x17945c=_0x714ef0;let _0x414f32={..._0x3d4cc4,'dataModel':{..._0x3d4cc4[_0x17945c(0x186)]??{},..._0x1fd22d?{'doc':_0x1fd22d}:null}},_0x351bb5=_0x5d5ef9(_0x255ff6,_0x414f32),_0x1e9e53=_0x1885b0(_0x351bb5);return{'clip':_0x430642(_0x351bb5,_0x1e9e53),'wrapStrategy':_0x1e9e53};}var J=class extends _0x240da9{constructor(_0x395789,_0x223070){const _0x288b39=_0x714ef0;super(_0x395789,_0x223070),q(this,'_hyperLinkRegions',[]),q(this,'_props',void 0x0),q(this,_0x288b39(0x16d),new _0xb6a9b5(()=>this[_0x288b39(0x226)](!0x0),()=>this[_0x288b39(0x3ed)]())),q(this,_0x288b39(0x2e6),!0x0),q(this,_0x288b39(0x27d),_0x544f7a[_0x288b39(0x2c1)]),q(this,_0x288b39(0x1b5),!0x0),this[_0x288b39(0x34e)]={..._0x223070},this[_0x288b39(0x16d)]['setPresentation'](_0x223070['formulaPresentation'],_0x223070[_0x288b39(0x37c)]!==!0x1),this[_0x288b39(0x306)](),this[_0x288b39(0x3ed)]();}[_0x714ef0(0x306)](){const _0x1f976e=_0x714ef0;this[_0x1f976e(0x2c8)][_0x1f976e(0x212)](_0x35f616=>{const _0x2f409c=_0x1f976e;this[_0x2f409c(0x16b)](_0x35f616);});}[_0x714ef0(0x3b4)](_0xf01693){const _0x3c9b99=_0x714ef0;this[_0x3c9b99(0x34e)]['prstGeom']=_0xf01693;}[_0x714ef0(0x24e)](_0x3c8f13){const _0x2c09de=_0x714ef0;if(this[_0x2c09de(0x34e)]['isEditing'])return null;let _0x3c8ee5=this['getInverseCoord'](_0x3c8f13),{width:_0x4426f5,height:_0x38712e}=this[_0x2c09de(0x27e)]();return _0x40b4a2(this['_hyperLinkRegions'],{'x':(this[_0x2c09de(0x18d)]?-_0x3c8ee5['x']:_0x3c8ee5['x'])+_0x4426f5/0x2,'y':_0x3c8ee5['y']+_0x38712e/0x2});}[_0x714ef0(0x380)](_0x5d683f){const _0x14f769=_0x714ef0;this[_0x14f769(0x34e)]['isEditing']=_0x5d683f,this[_0x14f769(0x226)](!0x0);}[_0x714ef0(0x261)](_0x13d852,_0x4efde9=!0x0){const _0x19d28a=_0x714ef0;this[_0x19d28a(0x16d)][_0x19d28a(0x428)](_0x13d852,_0x4efde9),this[_0x19d28a(0x34e)][_0x19d28a(0x381)]=_0x13d852,this[_0x19d28a(0x3ed)](),this[_0x19d28a(0x226)](!0x0);}[_0x714ef0(0x3ed)](){const _0x18468c=_0x714ef0;let _0x434b8e=this[_0x18468c(0x34e)][_0x18468c(0x2e9)],_0x237be6=_0x434b8e[_0x18468c(0x33d)](),_0x11abb2=_0x5587e4(_0x237be6==null?void 0x0:_0x237be6[_0x18468c(0x186)]),_0x5e4c71=_0x11abb2==null?void 0x0:_0x11abb2[_0x18468c(0x32c)],_0x2852e1=this[_0x18468c(0x16d)][_0x18468c(0x1b2)]();if(!_0x5e4c71||_0x2852e1[_0x18468c(0x1c3)]===0x0)return;_0x434b8e[_0x18468c(0x2b8)]({'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]});let _0x9fa737=_0x19d060({'documentData':_0x2852e1[_0x18468c(0x316)](_0x1cea70=>_0x342a66(_0x5e4c71,_0x1cea70)),'height':this['height'],'shapeData':_0x434b8e['getShapeData'](),'textRect':_0x434b8e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]}),'width':this[_0x18468c(0x253)]});if(_0x9fa737){var _0x597479;this['resize'](_0x9fa737[_0x18468c(0x253)],_0x9fa737[_0x18468c(0x2d4)]),(_0x597479=this[_0x18468c(0x24c)]())==null||(_0x597479=_0x597479[_0x18468c(0x20e)]())==null||_0x597479['debounceRefreshControls']();}}get[_0x714ef0(0x277)](){const _0x3de7d9=_0x714ef0;return this['_props'][_0x3de7d9(0x277)];}get[_0x714ef0(0x3d0)](){return this['_props']['subUnitId'];}[_0x714ef0(0x16b)](_0x5e3423){const _0x130713=_0x714ef0;if(this[_0x130713(0x34e)][_0x130713(0x2cc)]==null||!this[_0x130713(0x2e6)])return;let {width:_0x74563f,height:_0x1d6893}=this,{width:_0x1d3bf3=0x0,height:_0x2a950a=0x0}=_0x5e3423[_0x130713(0x32a)],{left:_0x4b8d77=0x0,top:_0xa2b803=0x0,right:_0x53ac67=0x0,bottom:_0x480957=0x0}=this[_0x130713(0x34e)][_0x130713(0x2cc)],_0xeca028=_0x4b8d77,_0x20ae1a=_0xa2b803,_0x862f67=_0x53ac67,_0x5b404f=_0x480957,_0x217a4d=!0x1;if(_0x1d3bf3!==0x0&&_0x1d3bf3!==_0x74563f){let _0x4dd00f=_0x4b8d77/_0x1d3bf3,_0xe73a94=_0x53ac67/_0x1d3bf3;_0xeca028=_0x74563f*_0x4dd00f,_0x862f67=_0x74563f*_0xe73a94,_0x217a4d=!0x0;}if(_0x2a950a!==0x0&&_0x2a950a!==_0x1d6893){let _0x2d2244=_0xa2b803/_0x2a950a,_0x4f4c87=_0x480957/_0x2a950a;_0x20ae1a=_0x1d6893*_0x2d2244,_0x5b404f=_0x1d6893*_0x4f4c87,_0x217a4d=!0x0;}_0x217a4d&&this['setSrcRect']({'left':_0xeca028,'top':_0x20ae1a,'right':_0x862f67,'bottom':_0x5b404f});}[_0x714ef0(0x323)](_0x5ce644){const _0x5dcf91=_0x714ef0;this[_0x5dcf91(0x34e)][_0x5dcf91(0x2cc)]=_0x5ce644,this['makeDirty'](!0x0);}[_0x714ef0(0x29e)](_0xfcff69){const _0x3a8c52=_0x714ef0;this[_0x3a8c52(0x34e)][_0x3a8c52(0x333)]=_0xfcff69,this[_0x3a8c52(0x226)](!0x0);}set['transform'](_0x5f3493){this['_transform']=_0x5f3493;}get[_0x714ef0(0x29f)](){const _0x3df81e=_0x714ef0;this[_0x3df81e(0x23a)]||this[_0x3df81e(0x21e)]();let _0x7c20=this[_0x3df81e(0x23a)][_0x3df81e(0x3a0)]();return this[_0x3df81e(0x3a8)](_0x7c20);}get[_0x714ef0(0x2e9)](){const _0x29623f=_0x714ef0;return this[_0x29623f(0x34e)]['shapeModel'];}get['shapeId'](){const _0x3859a9=_0x714ef0;return this[_0x3859a9(0x34e)]['shapeId'];}get['classType'](){const _0x57021c=_0x714ef0;return _0x61e19a[_0x57021c(0x427)];}['_draw'](_0x1d297d,_0x587200,_0x5c4619,_0x94fef6){const _0x71aeab=_0x714ef0;let _0x5b0f28=this['_props'][_0x71aeab(0x2e9)];if(!_0x5b0f28||!_0x587200)return;let _0x177514=_0x5c4619??this['width'],_0x4f3d7a=_0x94fef6??this['height'],_0x5d65ec={'shapeType':_0x5b0f28[_0x71aeab(0x2fc)](),'width':_0x177514,'height':_0x4f3d7a},_0x4316d8={'renderMode':_0x1a48ca[_0x71aeab(0x2a4)],'oKey':this[_0x71aeab(0x266)],'image':this[_0x71aeab(0x34e)]['image'],'angle':this[_0x71aeab(0x2ae)]};_0x5b0f28[_0x71aeab(0x2b8)](_0x5d65ec),_0x1d297d[_0x71aeab(0x32b)]();let _0x3ac23b={'top':0x0,'left':0x0,'width':_0x177514,'height':_0x4f3d7a},_0xe16c36=_0x5b0f28[_0x71aeab(0x1a0)](_0x3ac23b);_0xe16c36?this['_renderWithCache'](_0x1d297d,_0xe16c36,_0x4226a6=>{const _0x1fec8d=_0x71aeab;_0x5b0f28[_0x1fec8d(0x2e4)](_0x4226a6,_0x3ac23b,_0x4316d8);}):(this[_0x71aeab(0x242)](),_0x5b0f28['render'](_0x1d297d,_0x3ac23b,_0x4316d8)),_0x1d297d['restore']();let _0x12d51a=_0x5b0f28['getShapeTextData'](),_0x3edf2b=_0x5b0f28[_0x71aeab(0x415)](_0x3ac23b),_0x3fdc87=_0x5b0f28['isLineShape']();if(_0x12d51a&&_0x3edf2b&&!_0x3fdc87){_0x1d297d[_0x71aeab(0x32b)](),this[_0x71aeab(0x1b4)]()[_0x71aeab(0x18d)]&&_0x1d297d[_0x71aeab(0x1d5)](-0x1,0x1);let _0x37c7e8=_0x177514/0x2,_0xaaac61=_0x4f3d7a/0x2;_0x1d297d[_0x71aeab(0x2a1)](-_0x37c7e8,-_0xaaac61),_0x1d297d[_0x71aeab(0x2f7)](),this[_0x71aeab(0x205)](_0x1d297d,_0x12d51a,_0x3edf2b),_0x1d297d[_0x71aeab(0x1eb)]();}}[_0x714ef0(0x41e)](_0x1e7932){}['_drawShapeText'](_0x26195a,_0x35f6b0,_0x1c5b69){const _0x14d908=_0x714ef0;var _0x5bf7ed;this[_0x14d908(0x339)]=[],!this[_0x14d908(0x34e)][_0x14d908(0x2d1)]&&(!((_0x5bf7ed=_0x35f6b0[_0x14d908(0x186)])!=null&&_0x5bf7ed[_0x14d908(0x32c)])&&'isRichText'in _0x35f6b0&&_0x35f6b0[_0x14d908(0x36a)]===!0x1?this['_drawSimpleText'](_0x26195a,_0x35f6b0,_0x1c5b69):this[_0x14d908(0x308)](_0x26195a,_0x35f6b0,_0x1c5b69));}['_drawSimpleText'](_0xfeafb,_0x5520df,_0x593e45){const _0x1a5eeb=_0x714ef0;this[_0x1a5eeb(0x308)](_0xfeafb,{..._0x5520df,'text':_0x5520df[_0x1a5eeb(0x281)]??'','dataModel':{'doc':_0x2287f9(_0x5520df,_0x1a5eeb(0x23f)+this[_0x1a5eeb(0x266)])}},_0x593e45);}[_0x714ef0(0x308)](_0x520e23,_0x6eee97,_0x5f151c){const _0x2299aa=_0x714ef0;_0x4a0ea2(_0x520e23,this[_0x2299aa(0x16d)],(_0x276d6b,_0x504887,_0x260e0b)=>{const _0x4bed5a=_0x2299aa;this[_0x4bed5a(0x3db)](_0x276d6b,_0x6eee97,_0x5f151c,_0x504887,_0x260e0b===_0x4bed5a(0x36d));});}['_drawRichTextLayer'](_0x1e2d4c,_0x25430c,_0x3aeff9,_0x29e7a4,_0x476c63){const _0x4a0d7e=_0x714ef0;let _0x345cbd=this['_props']['localeService'];if(!_0x25430c['dataModel']||!_0x345cbd)return;let _0x6507a1=_0x5587e4(_0x25430c['dataModel']);if(!_0x6507a1)return;let _0x5f4c66=_0x6507a1[_0x4a0d7e(0x32c)];if(!_0x5f4c66)return;let _0x3f0939=_0x342a66(_0x5f4c66,_0x29e7a4),_0x254fbd=_0x6507a1['va']??_0x4f4c88[_0x4a0d7e(0x264)],_0x546866=_0x6507a1['ha']??_0x5d9043['LEFT'],_0x495af2=Mr(this[_0x4a0d7e(0x34e)][_0x4a0d7e(0x2e9)][_0x4a0d7e(0x3c4)](),_0x25430c,_0x3f0939),_0x5fe9c3=_0x25430c[_0x4a0d7e(0x236)],_0x2e08eb=_0x1c57ea(_0x3f0939,{'isHorizontal':_0x5fe9c3!==!0x1,'textRect':_0x3aeff9,'verticalAlign':_0x254fbd,'horizontalAlign':_0x546866,'wrapStrategy':_0x495af2[_0x4a0d7e(0x293)]}),_0x40099e=new _0x2a49c7(_0x2e08eb),_0x5c9de2=new _0x5b1715(_0x40099e),_0x30d7ce=_0x68ac11['create'](_0x5c9de2,_0x345cbd);_0x30d7ce['calculate']();let _0x161355=_0x30d7ce[_0x4a0d7e(0x2ec)]()[_0x4a0d7e(0x19b)],_0x2f9ebe=_0x34246b({'contentHeight':_0x161355,'verticalAlign':_0x254fbd,'viewportHeight':_0x3aeff9['height']});_0x40099e[_0x4a0d7e(0x1fd)]({'pageSize':{'width':_0x5fe9c3===!0x1?_0x3aeff9['height']:_0x3aeff9[_0x4a0d7e(0x253)],'height':_0x3d2b36(_0x3f0939,_0x2f9ebe[_0x4a0d7e(0x239)])}}),_0x40099e[_0x4a0d7e(0x29c)]({'t':_0x2f9ebe[_0x4a0d7e(0x355)]}),_0x30d7ce[_0x4a0d7e(0x37b)]();let _0x51f5e8=new _0x36ba8c(_0x4a0d7e(0x41a)+this[_0x4a0d7e(0x266)],_0x30d7ce,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x51f5e8['resize'](_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe['contentHeight']),_0x1e2d4c['save'](),_0x1e2d4c[_0x4a0d7e(0x2ad)](_0x3aeff9[_0x4a0d7e(0x201)],_0x3aeff9['top']),_0x495af2[_0x4a0d7e(0x2e1)]&&(_0x1e2d4c[_0x4a0d7e(0x2f7)](),_0x1e2d4c[_0x4a0d7e(0x2fd)](0x0,_0x2f9ebe[_0x4a0d7e(0x233)],_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe[_0x4a0d7e(0x40a)]),_0x1e2d4c[_0x4a0d7e(0x2e1)]()),_0x2f9ebe[_0x4a0d7e(0x276)]&&_0x1e2d4c[_0x4a0d7e(0x2ad)](0x0,_0x2f9ebe[_0x4a0d7e(0x276)]),_0x51f5e8[_0x4a0d7e(0x3c2)](_0x1e2d4c),_0x476c63&&(this[_0x4a0d7e(0x339)]=_0x3e58b1(_0x51f5e8,{'left':_0x3aeff9[_0x4a0d7e(0x201)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x276)]},_0x495af2['clip']?{'left':_0x3aeff9[_0x4a0d7e(0x201)],'right':_0x3aeff9['left']+_0x3aeff9[_0x4a0d7e(0x253)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x233)],'bottom':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe['clipTop']+_0x2f9ebe[_0x4a0d7e(0x40a)]}:void 0x0)),_0x1e2d4c[_0x4a0d7e(0x1eb)](),_0x51f5e8[_0x4a0d7e(0x232)](),_0x30d7ce[_0x4a0d7e(0x232)](),_0x5c9de2[_0x4a0d7e(0x232)](),_0x40099e[_0x4a0d7e(0x232)]();}[_0x714ef0(0x2e4)](_0x5654f7,_0x18c16d,_0x3252b2=!0x1){const _0x20e743=_0x714ef0;if(!this[_0x20e743(0x206)])return this[_0x20e743(0x226)](!0x1),this;let {width:_0x34d149,height:_0x43f24f,left:_0x51946f,top:_0x1d5179}=this,_0x4da6b2=this['getRealBound']();if(_0x34d149=_0x4da6b2[_0x20e743(0x253)],_0x43f24f=_0x4da6b2[_0x20e743(0x2d4)],_0x51946f=_0x4da6b2[_0x20e743(0x201)],_0x1d5179=_0x4da6b2[_0x20e743(0x211)],this['isRender'](_0x18c16d)){let {top:_0xd610d2,left:_0xcf54c2,bottom:_0x4a2eb7,right:_0x3718d8}=_0x18c16d[_0x20e743(0x1cf)];if(_0x34d149+this[_0x20e743(0x166)]+_0x51946f<_0xcf54c2||_0x3718d8<_0x51946f||_0x43f24f+this[_0x20e743(0x166)]+_0x1d5179<_0xd610d2||_0x4a2eb7<_0x1d5179)return this;}let _0x394742=_0x51946f+_0x34d149/0x2,_0x197d36=_0x1d5179+_0x43f24f/0x2,_0x2e75e8=this['transform'][_0x20e743(0x231)]();if(this[_0x20e743(0x34e)][_0x20e743(0x2d1)]){let _0x29934f=this[_0x20e743(0x1b4)](),_0x1891d3=new _0x5a3b07();_0x1891d3[_0x20e743(0x41c)]({..._0x29934f}),_0x2e75e8=_0x1891d3[_0x20e743(0x231)]();}return _0x5654f7['save'](),this[_0x20e743(0x34e)][_0x20e743(0x2e9)][_0x20e743(0x195)]===!0x0||_0x5654f7[_0x20e743(0x29f)](_0x2e75e8[0x0],_0x2e75e8[0x1],_0x2e75e8[0x2],_0x2e75e8[0x3],_0x394742,_0x197d36),this['_draw'](_0x5654f7,_0x18c16d,_0x34d149,_0x43f24f),_0x5654f7[_0x20e743(0x1eb)](),this['makeDirty'](!0x1),this;}[_0x714ef0(0x304)](_0x5714a7){const _0x48472d=_0x714ef0;let {left:_0x82961a,top:_0x39bd28,width:_0x14522e,height:_0xc6ce51}=this[_0x48472d(0x27e)](),_0x569781=this[_0x48472d(0x29f)][_0x48472d(0x231)](),_0x1ef5a5=_0x82961a+_0x14522e/0x2,_0x4dd2fc=_0x39bd28+_0xc6ce51/0x2,_0x356e2d=new _0x5a3b07([_0x569781[0x0],_0x569781[0x1],_0x569781[0x2],_0x569781[0x3],_0x1ef5a5,_0x4dd2fc]),_0x3b4c02=this[_0x48472d(0x20a)]();return(this[_0x48472d(0x3eb)]&&(_0x3b4c02==null?void 0x0:_0x3b4c02[_0x48472d(0x3d6)])===_0x61e19a[_0x48472d(0x240)]?_0x3b4c02[_0x48472d(0x2dc)][_0x48472d(0x196)](_0x356e2d):_0x356e2d)[_0x48472d(0x265)]()[_0x48472d(0x171)](_0x5714a7);}[_0x714ef0(0x2f9)](_0x5f47b1){const _0x5b7ac8=_0x714ef0;let {left:_0x47f21c,top:_0x237d8d,width:_0x792b47,height:_0xcf78af}=this[_0x5b7ac8(0x27e)](),_0x30cc98=_0x47f21c+_0x792b47/0x2,_0x405698=_0x237d8d+_0xcf78af/0x2,_0x4a4190=this[_0x5b7ac8(0x29f)][_0x5b7ac8(0x231)](),_0x3d2d23=new _0x5a3b07([_0x4a4190[0x0],_0x4a4190[0x1],_0x4a4190[0x2],_0x4a4190[0x3],_0x30cc98,_0x405698]),_0x189a29=this[_0x5b7ac8(0x20a)](),_0x1fe4b3=(this['isInGroup']&&(_0x189a29==null?void 0x0:_0x189a29[_0x5b7ac8(0x3d6)])===_0x61e19a['GROUP']?_0x189a29[_0x5b7ac8(0x2dc)]['multiply'](_0x3d2d23):_0x3d2d23)[_0x5b7ac8(0x265)]()[_0x5b7ac8(0x171)](_0x5f47b1),_0x22ef6a=_0x792b47/0x2,_0x9c2eb4=_0xcf78af/0x2,_0x5dd38e=this['_props'][_0x5b7ac8(0x2e9)];return _0x5dd38e&&_0x5dd38e[_0x5b7ac8(0x229)]()?_0x5dd38e[_0x5b7ac8(0x345)](_0x1fe4b3['x'],_0x1fe4b3['y'],_0x792b47,_0xcf78af):_0x1fe4b3['x']>=-_0x22ef6a-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['x']<=_0x22ef6a+this['strokeWidth']/0x2&&_0x1fe4b3['y']>=-_0x9c2eb4-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['y']<=_0x9c2eb4+this[_0x5b7ac8(0x166)]/0x2;}['dispose'](){const _0x43cdcf=_0x714ef0;this[_0x43cdcf(0x16d)]['dispose'](),this[_0x43cdcf(0x34e)][_0x43cdcf(0x2e9)]=null,super[_0x43cdcf(0x232)]();}},Nr=class extends _0x240da9{constructor(_0x5e96d8,_0x482c13){const _0x349804=_0x714ef0;super(_0x5e96d8,_0x482c13),q(this,_0x349804(0x295),null),q(this,_0x349804(0x392),null),q(this,_0x349804(0x180),null),q(this,_0x349804(0x3af),null),_0x482c13&&this[_0x349804(0x30a)](_0x482c13);}[_0x714ef0(0x423)](){const _0x14fddc=_0x714ef0;return{'unitId':this[_0x14fddc(0x180)],'subUnitId':this[_0x14fddc(0x3af)],'drawingId':this[_0x14fddc(0x295)]};}[_0x714ef0(0x30a)](_0x30326b){const _0x219177=_0x714ef0;_0x30326b[_0x219177(0x21d)]!==void 0x0&&(this['_shapeId']=_0x30326b[_0x219177(0x21d)]),_0x30326b[_0x219177(0x2a3)]!==void 0x0&&(this['_adjName']=_0x30326b[_0x219177(0x2a3)]),_0x30326b[_0x219177(0x277)]!==void 0x0&&(this[_0x219177(0x180)]=_0x30326b['unitId']),_0x30326b[_0x219177(0x3d0)]!==void 0x0&&(this[_0x219177(0x3af)]=_0x30326b[_0x219177(0x3d0)]),this[_0x219177(0x1b1)]({'width':_0x30326b[_0x219177(0x253)],'height':_0x30326b[_0x219177(0x2d4)]});}['_draw'](_0x331444){const _0x5385f9=_0x714ef0;_0x540920[_0x5385f9(0x385)](_0x331444,{'radius':_0x4945a0[_0x5385f9(0x17b)],'fill':_0x4945a0[_0x5385f9(0x1ff)],'stroke':_0x4945a0[_0x5385f9(0x31a)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x78e107,_0x290331){return function(_0x21b759,_0x23d6e5){_0x290331(_0x21b759,_0x23d6e5,_0x78e107);};}function _0x4ab1(){const _0x168665=['isEditing','isStartConnectorPoint','decorate','height','copyId','selectable','_isOpenedShapeEditPanel','MEDIA','_cxtHandlerPointerUp','getDrawingByParam','iterator','ancestorTransform','get','highlighted','_getDrawingRect','OPERATION','clip','permissionCheckWithoutRange','_clearCompletionFrame','render','bottom','_transformCalculateSrcRect','default','updateConnectionDetection','shapeModel','_index','_generateCopyPasteMutations','getActualSize','shape-editor-ui.arrange.backward','_shapes','close','getSheetBySheetId','Arrow','_baseShapeWidth','_groupCopyPasteController','_shapeEditPanelVersion','_initCommands','getBasicShapeRelation','beginPath','1440876RNhCRG','isHit','sheets-shape-ui.ribbon.shape-format.style-control','677965itgDuC','getShapeType','rect','@univerjs-pro/sheets-shape-ui','_shapeFormulaService','flipY','_getConnectPointInfo','calcAdjValues','title','getInverseCoord','_popupMenuListener','_init','data','_drawRichText','offsetY','setShapeProps','_openShapeEditPanel','_registerFeatureMenu','getCurrentTypeOfUnit$','_updateTransform','_generatePasteMutations','flatMap','_shapeUpdateListener','#4285f4','value','resetCursor','_getScrollInfo','map','formulaBinding','getStartConnectInfo','getSelectedObjectMap','adjHandleStroke','getAdjustValueByName','sheets-shape-ui.flipVertical','_visible','editingParams$','INSERT','changeStart$','setCanUseShapeClip','sheet.command.menu-insert-shape','setSrcRect','shape-editor-ui.arrange.front','hideContextualTab','_permissionService','None','ShapeIcon','getConnectionRelation','preValue','save','doc','computeStraightConnectorLayout','_updateImageAdjValues','_findNearestConnectionSite','index','_localeService','reverse','image','registerCommand','_targetShapeId','_initSelection','getConnectionInfo','drawing-ui.objectListPanel.empty','_hyperLinkRegions','visible$','parse','adjustValues','getShapeTextData','prstGeom','_registerDrawingMoveHandler','endConnectionDetection','sheets-shape-ui.ribbon.shape-format.arrange-front','_clearConnectionSites','refreshShapeFillImage','drawing-ui.objectListPanel.sectionFloating','isHitLine','getUnitType','SHAPE_TEXT','worldPoints','_generateCutPasteMutations','ang','shape-editor-ui.arrange.back','cxnPointFill','_registerImageShapeClipDelegate','_props','panel','_baseShapeTop','_initEvents','drawing-ui.objectListPanel.filterHidden','_closeShapeEditPanel','_attachAdjustEvent','marginTop','registerFeatureMenu','sectionFloating','pick','CUT','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.unlockAll','blockExecuteWithoutPermission','sheets-shape-ui.formatShape','FlipVerticalIcon','_drawingAddListener','14OUcwGK','drawing-ui.objectListPanel.typeNames.','hideInfoPopup','shape-editor-ui.toolbar.quickStyles','getPresentation','clip-adj-','shape-adjust-point-','onPointerUp$','516232nyNSGE','_menuManagerService','isRichText','_cxtHandlerPointerMove','shape-editor-ui.arrange.forward','current','sqrt','focusDrawing','extraProps','pipe','attachTransformerTo','sheets-shape-ui.flipHorizontal','entries','getInterceptPoints','FlipHorizontalIcon','mergeMenu','reduce','_clipService','redo','calculate','animateFormulaPresentation','_completionFrame','#1a73e8','fillImageSourceType','setEditing','formulaPresentation','_shapeService','fromChangeset','setCursor','drawWith','drawing-ui.objectListPanel.unlock','params','viewportScrollX','cxnPointRadius','_draggingConnectorId','PRINTING_COMPONENT_COLLECT','getDrawingDataForUnit','sheet.command.update-shape-data','sheets-shape-ui.shape-format.formula-ribbon-control','_clearFocusedShape','_isConnecting','drawing-ui.objectListPanel.filterAll','_adjName','transformVector2SceneCoord','stopPropagation','Large','localToWorld','onReady','getConnectorLinePoints','startY','UUID','setShouldShowAdjust','BUTTON','_moveConnectorWithShape','_sheetPrintInterceptorService','_activeShapeInfo','clone','startX','_clearPopups','_clearShapeConnectorHandlerObjects','getShapeDataById','sheet.menu.shape.flip-vertical','ObjectLayersIcon','SheetShapeTextEditorContainer','transformForAngle','_connectorObjects','connector-handler-','_sheetShapeAdjustController','sheets-shape-ui.objectListPanel.open','_initPrinting','_registerDrawingFocusChangeHandler','_subUnitId','color','CROSSHAIR','VIEW_MAIN','RIBBON','setPrstGeom','onStarting','getObject','shapeType','back','isHighlighted','remove$','onRendered','getBatchRemoveOp','addImageSourceCache','shapeData','_isImagePointerDown','filter','_currentConnectionTarget','draw','_updateAdjustControlPositions','getShapeData','_isHighlighted','version','sheet.shape.floating-toolbar','_sidebarService','_clearControls','syncExecuteCommand','stringify','DRAWING','_sheetBasicShapeConnectionPointController','_currentScene','relation','subUnitId','unit','getPermissionPoint','_activeTargetShapeId','buildClipPath','idMap','classType','sheets-shape-ui.ribbon.shape-format.arrange-backward','drawing-ui.objectListPanel.showAll','sheetViewStartRow','clip-','_drawRichTextLayer','getFocusDrawings','backward','_activeShapeId','_createCopyInfoByRange','_adjHandlerPointerMove','_cxnIndex','_formulaShapes','getConnectionSiteList','subscribe','_baseWidth','with','PictureFill','getEndConnectInfo','doc.image-clip.shape-picker.component','_getConnectionSiteAngle','isInGroup','includes','_applyFormulaAutoFitSize','next','symbol','SolidFill','registerClipDelegate','sheetViewStartColumn','sheet.operation.update-shape-type','_isStartConnectorPoint','focus$','fill','undo','refreshAdjustControls','sheets-shape-ui.imagePanel.crop.shape','changing$','getZoomRatio','BottomIcon','_canEdit','_handleConnectedEndpointPointerUp','REMOVE','run','horizontal','drawing-ui.objectListPanel.noSelection','clipByShape','_sheetDrawingService','presetId','Medium','copyType','sheets-shape-ui.insertShape','constructor','clipHeight','executeCommand','sheets-shape-ui.title','function','onDblclick$','onCommandExecuted','rotation','startArrow','div','_loadShapePictureFill','lineType','getShapeTextRect','_sheetDrawingShapeRenderController','_getShapeInfo','connection-site-','508Wyhtnk','shape-text-','sheets-shape-format-font-family-menu','composeMatrix','_registerGroupFeaturePasteHook','getDrawingPoints','_getOrCreateShapeModel','sheets-shape-ui.config','_insertingShapeKeys','_initMenu','getDrawingSearch','ShapeFormatSettingIcon','skeleton','sheet.shape.object-list.panel','SHAPE','setPresentation','56242CawEVQ','_onSavingEditorData$','asObservable','canvasElement','UPDATE','getEditing','drawing-ui.objectListPanel.hideAll','DRAWING_IMAGE','sheetTransform','string','componentKey','activeSheet$','_update','getSheetId','set','getCurrentSkeleton','some','setPrstGeomAdjValues','MoveUpIcon','_connectionSiteObjects','strokeWidth','sheets-shape-contextual-ribbon','_getImagePrstGeom','_createShapeAdjustControls','_getZoomRatio','_updateSrcRectByTransform','setFallbackVisible','_formulaAnimation','name','sheets-shape-ui.shape-format.style-ribbon-control','sheets-shape-ui.ribbon.shape-format.arrange-forward','applyPoint','shapeKey','enableObjectsEvent','permissionPointUpdate$','changeShapeType','_showConnectionSites','initShapePopupMenu','_urlImageService','clearAdjustValue','viewportScrollY','adjHandleSize','packageName','_lastEditingShapeKey','fillImageSource','onSavingEditorData$','_unitId','push','hidden','Line','point','forEach','dataModel','unsubscribe','_highlightedSiteIndex','drawing-ui.objectListPanel.moveForward','_formulaKey','setHighlighted','description','flipX','onPointerDown$','_registerOperations','_getSceneAndTransformerByDrawingSearch','_activeShapeAdjustPointList','gradientEndColor','_getShapeAdjustPointListById','DEFAULT_PASTE','isRenderLinePointsMode','multiply','removeLinePoints','drawingType','getShapeModel','abs','actualHeight','setAdjustValueByName','_addShapeConnectorHandlerObjects','_isDrawingShapePointDown','_insertShapes','getDrawingEffectBounds','_focusedDrawings','_contextService','keys','complete','getDrawingData','drawing-ui.objectListPanel.lockAll','_commandService','unregister','presentation','fontSize','sheets-shape-ui.editText','cos','getShapeTypeById','sheet.operation.open-mobile-shape-editor','_shapePopupMenuDisposable','getUnitId','transformByState','getAutoFitPresentations','_reset','getState','isDrawingObject','_registerComponents','_handleFreeEndpointMove','LEFT','getCurrentScrollState','SHEET','offsetX','cxnIndex','_executeConnectionCommand','pushUndoRedo','_copyInfo','_isStartAdjusting','getCanvasElement','refreshFormulaPresentation','length','_drawingRenderService','createControl$','_config','_getImageDrawingInfo','start','_handleFreeEndpointPointerUp','_initPermission','_currentUniverService','_sheetSkeletonService','popup','onerror','viewBound','custom','530559InofsN','attachPopupToObject','_addControl','scene','scale','clear','_editingParams$','_sheetInterceptorService','interceptor','_initialize','_registerMoveHandler','_sidebarDisposable','_initSheetChange','_rerouteConnectorLine','VIEW_MAIN_LEFT','drawing-ui.objectListPanel.details','trim','showContextualTab','OTHERS','sheets-shape-ui.quickStyles','clearControl$','targetShapeId','_registerFocusChangeHandler','_loadAndSetImage','StraightConnector1','_getShapeAdjustInfosById','restore','_hasReset','_configService','VIEW_MAIN_LEFT_TOP','_imageShapeClipController','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','type','getImage','sheets-shape-ui.ribbon.shape-format','getSkeleton','univer-box-border\x20univer-px-4\x20univer-text-sm','add$','find','values','_initEditingParams','indexOf','drawing-ui.objectListPanel.title','setCollapsedIds','updateDocumentStyle','defineProperty','adjHandleFill','hasDefault','left','_baseShapeLeft','_activeAdjustInfo','intercept','_drawShapeText','visible','disableObjectsEvent','getDrawingOKey','drawing-ui.objectListPanel.lock','getParent','_shapeRenderController','COMMAND','_activeShapeModel','getTransformer','_drawingManagerService','_injector','top','subscribeEvent','addObject','fillType','setConfig','#bcbcbc','getValue','getTransformerByCreate','sheets-shape-ui.objectListPanel.title','Rect','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.nameInput','shapeId','_setTransForm','_componentManager','registerRenderModule','src','UNIVER_SHEET','_executeConnectedRouteResizeCommand','onPointerMove$','getVisible','makeDirty','_commandExecutedListener','startConnectionDetection','isLineShape','_context','sheet.operation.apply-shape-quick-style','prototype','_initCopyPaste','getOwnPropertyDescriptor','update$','_adjHandlerPointerUp','getMatrix','dispose','clipTop','VIEW_MAIN_TOP','drawing-ui.objectListPanel.unlockHint','isHorizontal','setContextValue','disposeWithMe','contentHeight','_transform','worldRect','_handleConnectedEndpointMove','#FFFFFF','SELECTOR','sheets-shape-text-','GROUP','getBentTypeFromPoints','_releaseRenderCache','_shapeFloatingToolbarService','SolidLine','vertical-center','isArray','_sheetCanvasPopManagerService','from','open','prstGeomAdjValues','_draw','getScene','registerFeaturePasteHook','resolveHyperLinkAt','forward','_sheetClipboardService','_sheetsShapeService','getObjectIncludeInGroup','width','URL','_hide','setShapeData','object','renderDrawingShape','_baseDrawingRect','_executeResizeCommand','_createControls','sheets-shape-ui.permission.editErr','_addShapeAdjustControl','add','1.3.1','clearAdjustControls','setFormulaPresentation','_baseShapeHeight','_baseTop','TOP','invert','oKey','sin','register','getDrawingOrder','getAdjustNames','_shapeTextEditingService','onSteady','drawing-ui.objectListPanel.sectionCanvas','_ribbonService','_findShapeAtPoint','_iconManager','FromArray','sheet.operation.open-shape-object-list-panel','animationEnabled','_imageIoService','_disposePopups','contentVerticalOffset','unitId','sheet.shape.text.float-menu','TopmostIcon','canvas','pluginName','extensionGroups','_drawingType','getRealBound','addClipboardHook','cxnPointStroke','text','currentAdjustValues','drawing-ui.objectListPanel.lockHint','getBatchUpdateOp','refreshTransform','sheet.operation.open-sheet-shape-format-panel','front','drawing-ui.objectListPanel.hide','SHEET_SHAPE_UI_PLUGIN','getCurrentUnitOfType','getDrawingEditable','_updateShapeAdjustControls','computeConnectorResizeLayout','activeAnObject','_sheetPermissionCheckController','drawingId','sheets-shape-ui.ribbon.shape-format.formula-control','drawing-ui.objectListPanel.moveBackward','wrapStrategy','_baseLeft','_shapeId','size','_baseHeight','sheets-shape-ui.deleteShape','engine','shapeText','_calculateFreeEndpointAngle','updateDocumentDataMargin','lineShapeId','setFillImage','transform','_handleConnectorPointerUp','translate','delete','adjName','Path','_addShapeConnectorHandlerObject','getUnit','_activeAdjustPointList','_resetState','drawing-ui.objectListPanel.dragToReorder','UNIVER_DOC','drawing-ui.objectListPanel.locate','_activeImageId','translateWithPrecision','angle','getRenderUnitById','2997uRbsau','getAdjustInfoByName','_clearShapeAdjustControls','sheets-shape-ui.ribbon.shape-format.arrange-back','worldPoint','updateLinePoints','_attachConnectorObjectEvent','objects','updateContext','axisAlignSheetTransform','cxnPointStrokeWidth','toPrimitive','sheet.menu.shape.flip-horizontal','66488qSmOad','_univerInstanceService','style','getCurrentLastSelection','DRAWING_SHAPE','_handleBasicShapeUpdateConnectorLineShape','getActiveViewportByCoord','sheet.shape.picker.component','_isShouldShowDrawingShapeAdjust','has','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','onTransformChange$','sectionCanvas','vertical','sheet.image-clip.shape-picker.component','srcRect','error','setOnSavingEditorData','_renderManagerService','changeEnd$'];_0x4ab1=function(){return _0x168665;};return _0x4ab1();}function X(_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316){const _0x365e1b=_0x714ef0;var _0x1af127=arguments[_0x365e1b(0x1c3)],_0x19170c=_0x1af127<0x3?_0x292b2b:_0x2ee316===null?_0x2ee316=Object[_0x365e1b(0x22e)](_0x292b2b,_0x43cd39):_0x2ee316,_0x289b5d;if(typeof Reflect==_0x365e1b(0x257)&&typeof Reflect['decorate']==_0x365e1b(0x40d))_0x19170c=Reflect[_0x365e1b(0x2d3)](_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316);else{for(var _0x34cd4b=_0x4d15c9[_0x365e1b(0x1c3)]-0x1;_0x34cd4b>=0x0;_0x34cd4b--)(_0x289b5d=_0x4d15c9[_0x34cd4b])&&(_0x19170c=(_0x1af127<0x3?_0x289b5d(_0x19170c):_0x1af127>0x3?_0x289b5d(_0x292b2b,_0x43cd39,_0x19170c):_0x289b5d(_0x292b2b,_0x43cd39))||_0x19170c);}return _0x1af127>0x3&&_0x19170c&&Object[_0x365e1b(0x1fe)](_0x292b2b,_0x43cd39,_0x19170c),_0x19170c;}let Z=class extends _0xe29064{constructor(_0x20eeaf,_0x18e8f4,_0xa1adc8,_0x574d95,_0x4e3a32,_0x55858a){const _0x1a9b71=_0x714ef0;super(),this[_0x1a9b71(0x20f)]=_0x20eeaf,this['_sheetsShapeService']=_0x18e8f4,this[_0x1a9b71(0x331)]=_0xa1adc8,this['_imageIoService']=_0x574d95,this[_0x1a9b71(0x178)]=_0x4e3a32,this[_0x1a9b71(0x2ff)]=_0x55858a,q(this,'_formulaShapes',new Map()),this[_0x1a9b71(0x238)](this[_0x1a9b71(0x2ff)]['presentationChanged$'][_0x1a9b71(0x3e4)](_0x1f0b6f=>{const _0x550e5a=_0x1a9b71;var _0x5c45f9;(_0x5c45f9=this[_0x550e5a(0x3e2)][_0x550e5a(0x2dd)](this[_0x550e5a(0x18a)](_0x1f0b6f['unitId'],_0x1f0b6f[_0x550e5a(0x3d0)],_0x1f0b6f[_0x550e5a(0x21d)])))==null||_0x5c45f9[_0x550e5a(0x185)](_0x379bf3=>_0x379bf3[_0x550e5a(0x261)](_0x1f0b6f[_0x550e5a(0x1a9)],_0x1f0b6f['animationEnabled']));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1a9b71(0x3ba)][_0x1a9b71(0x3e4)](_0x1c6add=>{const _0x4d7497=_0x1a9b71;_0x1c6add[_0x4d7497(0x185)](_0x78cae=>{const _0x3c2e83=_0x4d7497;this[_0x3c2e83(0x2ff)][_0x3c2e83(0x1a8)]({'unitId':_0x78cae[_0x3c2e83(0x277)],'subUnitId':_0x78cae[_0x3c2e83(0x3d0)],'shapeId':_0x78cae[_0x3c2e83(0x290)]}),this[_0x3c2e83(0x3e2)][_0x3c2e83(0x2a2)](this['_formulaKey'](_0x78cae[_0x3c2e83(0x277)],_0x78cae['subUnitId'],_0x78cae[_0x3c2e83(0x290)]));});}));}[_0x714ef0(0x258)](_0x5dbfa2,_0x1a1e2c,_0x554eb6){const _0x58e2ce=_0x714ef0;let {transform:_0x154810,drawingType:_0x4be4f9,srcRect:_0x5dc492,prstGeom:_0x3192d8,groupId:_0x4abb7d,unitId:_0x235b42,subUnitId:_0x232851,drawingId:_0x1ef085,isMultiTransform:_0x824495,transforms:_0x1dad6d,hidden:_0x2f6b00,selectable:_0x1d7455}=_0x5dbfa2;if(_0x4be4f9!==_0x544f7a[_0x58e2ce(0x2c1)]||!this[_0x58e2ce(0x20f)]['getDrawingVisible']()||_0x154810==null)return;let _0x497890=this[_0x58e2ce(0x20f)][_0x58e2ce(0x28b)](),_0x41c68f=_0x824495&&_0x1dad6d?_0x1dad6d:[_0x154810],_0x19a65b=[];for(let _0xab8868 of _0x41c68f){let {left:_0x8827e,top:_0x47f2d9,width:_0xe58afa,height:_0x4026e3,angle:_0x1d57d5,flipX:_0x1e514c,flipY:_0x21cadc,skewX:_0xdce19,skewY:_0x4cb11b}=_0xab8868,_0x5ce724=_0x41c68f[_0x58e2ce(0x1fa)](_0xab8868),_0xee31e5=_0x562c30({'unitId':_0x235b42,'subUnitId':_0x232851,'drawingId':_0x1ef085},_0x824495?_0x5ce724:void 0x0),_0x237cb1=_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5);if(_0x237cb1!=null){let _0x52bf8b={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x237cb1 instanceof J&&this[_0x58e2ce(0x1c2)](_0x237cb1,_0x52bf8b),_0x237cb1[_0x58e2ce(0x1b1)]({'left':_0x8827e,'top':_0x47f2d9,'width':_0xe58afa,'height':_0x4026e3,'angle':_0x1d57d5,'flipX':_0x1e514c,'flipY':_0x21cadc,'skewX':_0xdce19,'skewY':_0x4cb11b});continue;}let _0x5506b4=this['_drawingManagerService'][_0x58e2ce(0x269)](_0x235b42,_0x232851),_0x2e6da3=_0x5506b4[_0x58e2ce(0x1fa)](_0x1ef085);if(_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5)||!this[_0x58e2ce(0x20f)]['getDrawingVisible']())continue;let _0x5bce8d=this[_0x58e2ce(0x251)][_0x58e2ce(0x199)](_0x235b42,_0x232851,_0x1ef085);if(!_0x5bce8d)continue;let _0x2cdaab=_0x4cb876(_0x5bce8d[_0x58e2ce(0x2fc)]())?{..._0xbe6416,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xbe6416,_0x3f8d3a=_0x5bce8d[_0x58e2ce(0x3c4)]()[_0x58e2ce(0x317)],_0x4c8e56={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x3f8d3a&&this[_0x58e2ce(0x2ff)][_0x58e2ce(0x268)](_0x4c8e56,_0x3f8d3a);let _0x1f30bb=new J(_0xee31e5,{..._0xab8868,'zIndex':_0x2e6da3===-0x1?_0x5506b4[_0x58e2ce(0x1c3)]-0x1:_0x2e6da3,'shapeModel':_0x5bce8d,'localeService':this[_0x58e2ce(0x331)],'shapeId':_0x1ef085,'unitId':_0x235b42,'subUnitId':_0x232851,'visible':_0x2f6b00!==!0x0,'evented':_0x1d7455!==!0x1,'formulaPresentation':_0x3f8d3a?this[_0x58e2ce(0x2ff)][_0x58e2ce(0x364)](_0x4c8e56):void 0x0,'animateFormulaPresentation':(_0x3f8d3a==null?void 0x0:_0x3f8d3a[_0x58e2ce(0x273)])!==!0x1,'transformerConfig':_0x2cdaab});if(_0x3f8d3a){let _0x14b55a=this[_0x58e2ce(0x18a)](_0x235b42,_0x232851,_0x1ef085),_0x4fc7d4=this[_0x58e2ce(0x3e2)]['get'](_0x14b55a)??new Set();_0x4fc7d4[_0x58e2ce(0x25e)](_0x1f30bb),this[_0x58e2ce(0x3e2)][_0x58e2ce(0x160)](_0x14b55a,_0x4fc7d4);}_0x1a1e2c[_0x58e2ce(0x213)](_0x1f30bb,_0x4232ac),_0x497890&&_0x1a1e2c[_0x58e2ce(0x372)](_0x1f30bb),_0x4abb7d&&_0x2a3ac3({'drawingId':_0x4abb7d,'unitId':_0x235b42,'subUnitId':_0x232851},_0x1f30bb,_0x1a1e2c,this[_0x58e2ce(0x20f)]),_0x3192d8!=null&&_0x1f30bb[_0x58e2ce(0x3b4)](_0x3192d8),_0x5dc492!=null&&_0x1f30bb[_0x58e2ce(0x323)](_0x5dc492);let _0x59d6d1=this[_0x58e2ce(0x413)](_0x1f30bb,_0x5bce8d[_0x58e2ce(0x3c4)]());if(_0x59d6d1){var _0x1816f7;_0x554eb6==null||(_0x1816f7=_0x554eb6['resourceCollector'])==null||_0x1816f7['add'](_0x59d6d1);}_0x19a65b[_0x58e2ce(0x181)](_0x1f30bb);}return _0x19a65b;}[_0x714ef0(0x18a)](_0x4ea6a0,_0x148c6f,_0x1d23f4){return _0x4ea6a0+'\x00'+_0x148c6f+'\x00'+_0x1d23f4;}['refreshFormulaPresentation'](_0x5ab4bb,_0x67bcdf){const _0x3a1723=_0x714ef0;let _0x3b40a3=this['_sheetsShapeService'][_0x3a1723(0x199)](_0x67bcdf[_0x3a1723(0x277)],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]),_0x363d35=_0x3b40a3==null?void 0x0:_0x3b40a3['getShapeData']()[_0x3a1723(0x317)],_0x5de68b=this[_0x3a1723(0x18a)](_0x67bcdf['unitId'],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]);if(_0x363d35){this['_shapeFormulaService']['register'](_0x67bcdf,_0x363d35);let _0x1f3a19=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b)??new Set();_0x1f3a19[_0x3a1723(0x25e)](_0x5ab4bb),this[_0x3a1723(0x3e2)][_0x3a1723(0x160)](_0x5de68b,_0x1f3a19);}else{var _0x1369cc;this[_0x3a1723(0x2ff)][_0x3a1723(0x1a8)](_0x67bcdf),(_0x1369cc=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b))==null||_0x1369cc[_0x3a1723(0x2a2)](_0x5ab4bb);}_0x5ab4bb[_0x3a1723(0x261)](_0x363d35?this[_0x3a1723(0x2ff)][_0x3a1723(0x364)](_0x67bcdf):void 0x0,(_0x363d35==null?void 0x0:_0x363d35[_0x3a1723(0x273)])!==!0x1);}[_0x714ef0(0x343)](_0x476ef2){const _0x251ff0=_0x714ef0;let _0x3ab68d=_0x476ef2[_0x251ff0(0x2e9)]['getShapeData'](),_0x255ae4=_0x3ab68d['fill'];!_0x255ae4||_0x255ae4[_0x251ff0(0x214)]!==_0x271926[_0x251ff0(0x3e7)]||!_0x255ae4['fillImageSource']?_0x476ef2['setFillImage'](void 0x0):this['_loadShapePictureFill'](_0x476ef2,_0x3ab68d);}[_0x714ef0(0x413)](_0x599ff5,_0x518666){const _0x51ada3=_0x714ef0;let _0x1faf8a=_0x518666['fill'];if(!_0x1faf8a||_0x1faf8a[_0x51ada3(0x214)]!==_0x271926[_0x51ada3(0x3e7)]||!_0x1faf8a[_0x51ada3(0x17e)])return;let _0x90897e=_0x1faf8a[_0x51ada3(0x17e)],_0x3422ae=_0x1faf8a[_0x51ada3(0x37f)]??_0x1a3351[_0x51ada3(0x254)],_0x2660c9=this[_0x51ada3(0x274)]['getImageSourceCache'](_0x90897e,_0x3422ae);if(_0x2660c9)_0x599ff5[_0x51ada3(0x29e)](_0x2660c9);else return this['_loadAndSetImage'](_0x599ff5,_0x90897e,_0x3422ae);}async[_0x714ef0(0x1e8)](_0xf1016,_0x19e4ee,_0x38a305){const _0x16ccf3=_0x714ef0;let _0x425f7f;try{if(_0x38a305===_0x1a3351[_0x16ccf3(0x39a)])_0x425f7f=await this['_imageIoService'][_0x16ccf3(0x1f2)](_0x19e4ee);else{if(_0x38a305===_0x1a3351[_0x16ccf3(0x254)])try{_0x425f7f=await this[_0x16ccf3(0x178)][_0x16ccf3(0x1f2)](_0x19e4ee);}catch{_0x425f7f=_0x19e4ee;}else _0x425f7f=_0x19e4ee;}}catch(_0x5253d5){console[_0x16ccf3(0x2cd)](_0x16ccf3(0x1f0),_0x5253d5);return;}await new Promise(_0x28d2ae=>{const _0x348b6f=_0x16ccf3;let _0x195380=new window['Image']();_0x195380['onload']=()=>{const _0x59e47c=_0x5396;this[_0x59e47c(0x274)][_0x59e47c(0x3bd)](_0x19e4ee,_0x38a305,_0x195380),_0xf1016[_0x59e47c(0x29e)](_0x195380),_0x28d2ae();},_0x195380[_0x348b6f(0x1ce)]=()=>{const _0x5eb421=_0x348b6f;console[_0x5eb421(0x2cd)](_0x5eb421(0x2c7),_0x19e4ee),_0x28d2ae();},_0x195380[_0x348b6f(0x221)]=_0x425f7f;});}};Z=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x30b59c)),Y(0x3,_0x1fd21f),Y(0x4,_0x427e79),Y(0x5,_0x5c502f(_0x205d16))],Z);let Pr=class extends _0xe29064{constructor(_0x4daa18,_0x5f0bf0,_0x175788,_0x30aab5,_0x4af219,_0x536aa9){const _0x9270d5=_0x714ef0;super(),this['_drawingManagerService']=_0x4daa18,this['_sheetsShapeService']=_0x5f0bf0,this[_0x9270d5(0x2cf)]=_0x175788,this[_0x9270d5(0x416)]=_0x30aab5,this[_0x9270d5(0x2be)]=_0x4af219,this['_commandService']=_0x536aa9,q(this,'_activeShapeId',null),q(this,'_unitId',null),q(this,_0x9270d5(0x3af),null),q(this,_0x9270d5(0x191),void 0x0),q(this,_0x9270d5(0x2ee),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x9270d5(0x350),0x0),q(this,_0x9270d5(0x2f2),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x9270d5(0x1c0),!0x1),q(this,_0x9270d5(0x203),void 0x0),q(this,_0x9270d5(0x20d),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x9270d5(0x230),void 0x0),q(this,_0x9270d5(0x2c5),!0x1),this[_0x9270d5(0x3ae)](),this['_registerDrawingMoveHandler']();}[_0x714ef0(0x193)](_0x42c108,_0x2c815f,_0x585e15){const _0xcf9bd=_0x714ef0;let _0x39809b=this[_0xcf9bd(0x251)]['getShapeModel'](_0x42c108,_0x2c815f,_0x585e15);if(_0x39809b)return _0x39809b[_0xcf9bd(0x41e)]();}[_0x714ef0(0x260)](){const _0xfe9ff4=_0x714ef0;this[_0xfe9ff4(0x2b2)]();}[_0x714ef0(0x3f8)](){this['_updateShapeAdjustControls'](!0x0);}[_0x714ef0(0x39b)](_0x3f1afc){const _0x56ad3b=_0x714ef0;this[_0x56ad3b(0x2c5)]=_0x3f1afc;}[_0x714ef0(0x1ea)](_0x168ecb,_0x11413d,_0x522932,_0x17d806){const _0x359afb=_0x714ef0;let _0x2682d4=this[_0x359afb(0x251)]['getShapeModel'](_0x168ecb,_0x11413d,_0x522932);if(_0x2682d4)return _0x2682d4[_0x359afb(0x2b1)](_0x17d806);}[_0x714ef0(0x169)](_0x127d95=!0x1){const _0x5e9b7f=_0x714ef0;if(this[_0x5e9b7f(0x180)]===null||this[_0x5e9b7f(0x3af)]===null||this[_0x5e9b7f(0x3de)]===null)return;let _0x169053=this[_0x5e9b7f(0x2cf)]['getRenderUnitById'](this['_unitId']);if(!_0x169053||!_0x169053['with'](_0x44086e)['getCurrentSkeleton']())return;let {scene:_0x4233c4}=_0x169053,_0x152397={'unitId':this[_0x5e9b7f(0x180)],'subUnitId':this[_0x5e9b7f(0x3af)],'drawingId':this[_0x5e9b7f(0x3de)]},_0xd089e8=this[_0x5e9b7f(0x20f)]['getDrawingByParam'](_0x152397),{transform:_0x609599}=_0xd089e8;if(!_0x609599||_0xd089e8['drawingType']!==_0x544f7a[_0x5e9b7f(0x2c1)])return;let {left:_0x1302d7,top:_0x5dc07e,width:_0x2c7ecc,height:_0x5926e4,flipX:_0x3a918e,flipY:_0x5eea58,angle:_0x3412b7=0x0}=_0x609599;if(_0x1302d7===void 0x0||_0x5dc07e===void 0x0)return;if(_0x127d95){let _0x12425b=this[_0x5e9b7f(0x251)]['getShapeModel'](this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)],this['_activeShapeId']);_0x12425b==null||_0x12425b[_0x5e9b7f(0x2b8)]({'width':_0x2c7ecc??0x0,'height':_0x5926e4??0x0}),this[_0x5e9b7f(0x191)]=_0x12425b==null?void 0x0:_0x12425b['getDrawingPoints']();}let _0x4b1782=this[_0x5e9b7f(0x191)];for(let _0x229286=0x0;_0x229286<_0x4b1782[_0x5e9b7f(0x1c3)];_0x229286++){let _0x2a887c=_0x4b1782[_0x229286],_0x2bac75=_0x2a887c['x'],_0x4887b5=_0x2a887c['y'];if(_0x3a918e&&(_0x2bac75=(_0x2c7ecc||0x0)-_0x2bac75),_0x5eea58&&(_0x4887b5=(_0x5926e4||0x0)-_0x4887b5),_0x3412b7!==0x0){let _0x41d95f=(_0x2c7ecc||0x0)/0x2,_0xb30b9d=(_0x5926e4||0x0)/0x2,_0x384df7=_0x3412b7*Math['PI']/0xb4,_0x44509f=Math[_0x5e9b7f(0x1ac)](_0x384df7),_0x35940f=Math['sin'](_0x384df7),_0xac6776=_0x2bac75-_0x41d95f,_0x399c8b=_0x4887b5-_0xb30b9d;_0x2bac75=_0x41d95f+(_0xac6776*_0x44509f-_0x399c8b*_0x35940f),_0x4887b5=_0xb30b9d+(_0xac6776*_0x35940f+_0x399c8b*_0x44509f);}let _0x1f3557={'x':_0x2bac75,'y':_0x4887b5,'adjName':_0x2a887c[_0x5e9b7f(0x2a3)]};this[_0x5e9b7f(0x25d)](_0x4233c4,_0x1f3557,_0x1f3557['adjName'],_0x1302d7,_0x5dc07e,this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)]);}}['_updateShapeAdjustControls'](_0x56c8ad=!0x1){const _0x266ce8=_0x714ef0;_0x56c8ad&&(this[_0x266ce8(0x2b2)](),this[_0x266ce8(0x169)](_0x56c8ad));}[_0x714ef0(0x25d)](_0x129aab,_0x48b05a,_0x44b4a2,_0xbde929,_0x3d2f45,_0x545c8c,_0x498225){const _0x248cae=_0x714ef0;if(!this[_0x248cae(0x3de)])return;let _0x31968f=_0x129aab['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x248cae(0x3de)]+'-'+_0x44b4a2);if(_0x31968f){_0x31968f['transformByState']({'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0['adjHandleSize']});return;}let _0x4093d9={'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0[_0x248cae(0x17b)],'adjName':_0x44b4a2,'shapeId':this[_0x248cae(0x3de)],'unitId':_0x545c8c,'subUnitId':_0x498225,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x248cae(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0},_0x2a6888=new Nr(_0x248cae(0x366)+this[_0x248cae(0x3de)]+'-'+_0x44b4a2,_0x4093d9);this[_0x248cae(0x2ee)][_0x248cae(0x181)](_0x2a6888),this[_0x248cae(0x354)](_0x2a6888,_0x129aab,_0x44b4a2),_0x129aab[_0x248cae(0x213)](_0x2a6888,_0x4232ac+0x1);}[_0x714ef0(0x2b2)](){const _0x14c9f8=_0x714ef0;this['_shapes']['length']!==0x0&&(this[_0x14c9f8(0x2ee)]['forEach'](_0x8966e8=>{const _0x3f089a=_0x14c9f8;_0x8966e8[_0x3f089a(0x232)]();}),this[_0x14c9f8(0x2ee)]=[]);}['_updateAdjustControlPositions'](){const _0x39f9ef=_0x714ef0;this[_0x39f9ef(0x169)]();}['_getScrollInfo'](_0x536eae,_0x54f0fd){const _0xb0e6f2=_0x714ef0;var _0x2f7a46;let _0x3e4e2c={'x':0x0,'y':0x0};if(!_0x536eae||!_0x54f0fd)return _0x3e4e2c;let _0x34572a=this['_renderManagerService'][_0xb0e6f2(0x2af)](_0x536eae);if(!_0x34572a||!_0x34572a['with'](_0x44086e)[_0xb0e6f2(0x1f4)](_0x54f0fd))return _0x3e4e2c;let _0x4f76d8=_0x34572a[_0xb0e6f2(0x3e6)](_0x4e89db),_0x546898=_0x4f76d8==null?void 0x0:_0x4f76d8[_0xb0e6f2(0x1b9)]();if(!_0x546898)return _0x3e4e2c;let _0x48e9f3=(_0x2f7a46=this[_0xb0e6f2(0x2be)][_0xb0e6f2(0x2a6)](_0x536eae))==null?void 0x0:_0x2f7a46['getSheetBySheetId'](_0x54f0fd);if(!_0x48e9f3)return _0x3e4e2c;let _0x3e2a8f=_0xe31858(_0x546898[_0xb0e6f2(0x3d9)],_0x546898[_0xb0e6f2(0x3f2)],_0x34572a['scene'],_0x48e9f3);return _0x3e2a8f?{'x':_0x3e2a8f[_0xb0e6f2(0x388)],'y':_0x3e2a8f[_0xb0e6f2(0x17a)]}:_0x3e4e2c;}[_0x714ef0(0x16a)](_0x5c70a1,_0xb35381){const _0x297164=_0x714ef0;var _0x3d7427;let _0x32570d=(_0x3d7427=this[_0x297164(0x2be)][_0x297164(0x2a6)](_0x5c70a1))==null?void 0x0:_0x3d7427['getSheetBySheetId'](_0xb35381);return(_0x32570d==null?void 0x0:_0x32570d[_0x297164(0x3fb)]())??0x1;}['_attachAdjustEvent'](_0x589ac9,_0xae0a6a,_0x11af32){const _0x4d3d81=_0x714ef0;this['disposeWithMe'](_0x128476(_0x589ac9[_0x4d3d81(0x18e)][_0x4d3d81(0x212)]((_0x34641c,_0x512175)=>{const _0x253edb=_0x4d3d81;var _0x426876,_0x307755,_0x977880,_0x7c1e46;let _0x272ffc=_0x589ac9['getDrawingSearch']();this[_0x253edb(0x203)]=this[_0x253edb(0x1ea)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc[_0x253edb(0x290)],_0x11af32),this[_0x253edb(0x20d)]=this[_0x253edb(0x251)][_0x253edb(0x199)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc['drawingId']);let _0x1bc2c3=this['_drawingManagerService'][_0x253edb(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x253edb(0x3af)],'drawingId':this['_activeShapeId']}),{transform:_0x483b55}=_0x1bc2c3;if(_0x483b55){let {left:_0xeefbf7,top:_0x2f4fa7,width:_0x417e62,height:_0xc14098}=_0x483b55;this[_0x253edb(0x202)]=_0xeefbf7||0x0,this[_0x253edb(0x350)]=_0x2f4fa7||0x0,this['_baseShapeWidth']=_0x417e62||0x0,this[_0x253edb(0x262)]=_0xc14098||0x0;}let _0x463d9b=!!((_0x426876=_0x1bc2c3[_0x253edb(0x29f)])!=null&&_0x426876[_0x253edb(0x18d)]),_0x59c72a=!!((_0x307755=_0x1bc2c3['transform'])!=null&&_0x307755['flipY']),_0x12c47d=((_0x977880=_0x1bc2c3[_0x253edb(0x29f)])==null?void 0x0:_0x977880[_0x253edb(0x2ae)])||0x0;this[_0x253edb(0x1c0)]=!0x0,_0xae0a6a[_0x253edb(0x207)]();let _0x6df414={...((_0x7c1e46=this[_0x253edb(0x203)])==null?void 0x0:_0x7c1e46[_0x253edb(0x282)])??{}};this['_adjHandlerPointerMove']=_0xae0a6a[_0x253edb(0x224)][_0x253edb(0x212)]((_0x5d7472,_0xa4bc8)=>{const _0x1cc328=_0x253edb;if(!this['_isStartAdjusting'])return;let {offsetX:_0x268c3a,offsetY:_0x5c416e}=_0x5d7472,_0x3a2b5a=this[_0x1cc328(0x203)];if(this[_0x1cc328(0x20d)]&&_0x3a2b5a){_0xae0a6a['disableObjectsEvent'](),_0xae0a6a[_0x1cc328(0x384)](_0x141a72[_0x1cc328(0x3b1)]);let _0x5a47ac={'left':0x0,'top':0x0,'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]},_0x4d57d3=this[_0x1cc328(0x315)](this['_unitId'],this['_subUnitId']),_0x135954=this[_0x1cc328(0x16a)](this[_0x1cc328(0x180)],this['_subUnitId']),_0x5b5382=_0x268c3a/_0x135954+_0x4d57d3['x']-this['_baseShapeLeft'],_0x1d65b2=_0x5c416e/_0x135954+_0x4d57d3['y']-this[_0x1cc328(0x350)];if(_0x12c47d!==0x0){let _0x11953f=this['_baseShapeWidth']/0x2,_0x2c3fe4=this[_0x1cc328(0x262)]/0x2,_0x395d4e=_0x12c47d*Math['PI']/0xb4,_0x351e9c=Math[_0x1cc328(0x1ac)](_0x395d4e),_0x44b963=Math[_0x1cc328(0x267)](_0x395d4e),_0x3dd386=_0x5b5382-_0x11953f,_0x4938d1=_0x1d65b2-_0x2c3fe4;_0x5b5382=_0x11953f+(_0x3dd386*_0x351e9c+_0x4938d1*_0x44b963),_0x1d65b2=_0x2c3fe4+(-_0x3dd386*_0x44b963+_0x4938d1*_0x351e9c);}_0x463d9b&&(_0x5b5382=this['_baseShapeWidth']-_0x5b5382),_0x59c72a&&(_0x1d65b2=this[_0x1cc328(0x262)]-_0x1d65b2);let _0x3c18ee={'x':_0x5b5382,'y':_0x1d65b2},_0x51af81=this[_0x1cc328(0x20d)][_0x1cc328(0x302)](_0x5a47ac,_0x3c18ee,_0x3a2b5a,_0x463d9b,_0x59c72a);if(Object[_0x1cc328(0x1a3)](_0x51af81)[_0x1cc328(0x1c3)]===0x0)return;for(let [_0x172d8e,_0x27c1fc]of Object[_0x1cc328(0x374)](_0x51af81))this[_0x1cc328(0x20d)][_0x1cc328(0x19c)](_0x172d8e,_0x27c1fc);this[_0x1cc328(0x20d)]['updateContext']({'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]});let _0x477d52=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x272ffc[_0x1cc328(0x277)],'subUnitId':_0x272ffc['subUnitId'],'drawingId':_0x272ffc[_0x1cc328(0x290)]});_0x477d52&&(this['_sheetDrawingShapeRenderController'][_0x1cc328(0x258)](_0x477d52,_0xae0a6a),this[_0x1cc328(0x191)]=this['_getShapeAdjustPointListById'](_0x272ffc[_0x1cc328(0x277)],_0x272ffc['subUnitId'],_0x272ffc[_0x1cc328(0x290)]),this[_0x1cc328(0x3c3)]());}_0xa4bc8['stopPropagation']();}),this[_0x253edb(0x230)]=_0xae0a6a[_0x253edb(0x367)][_0x253edb(0x212)]((_0x2e73e9,_0x2aa271)=>{const _0x56c8d6=_0x253edb;this[_0x56c8d6(0x3e0)][_0x56c8d6(0x187)](),this['_adjHandlerPointerUp'][_0x56c8d6(0x187)](),_0xae0a6a[_0x56c8d6(0x314)]();let _0x37da9c=this[_0x56c8d6(0x203)];if(_0x37da9c){let _0x36242b=_0x272ffc[_0x56c8d6(0x277)],_0x34beaf=_0x272ffc[_0x56c8d6(0x3d0)],_0x3c6d6d=_0x272ffc['drawingId'],_0x2c71ad={};for(let _0x586c5f of Object[_0x56c8d6(0x1a3)](_0x37da9c['currentAdjustValues'])){var _0x417c37;let _0x4a961c=(_0x417c37=this[_0x56c8d6(0x20d)])==null?void 0x0:_0x417c37[_0x56c8d6(0x31b)](_0x586c5f);_0x4a961c!==void 0x0&&(_0x2c71ad[_0x586c5f]=_0x4a961c);}Object[_0x56c8d6(0x1a3)](_0x2c71ad)['length']>0x0&&Dr(this[_0x56c8d6(0x1a7)],_0x36242b,_0x34beaf,_0x3c6d6d,{'oldShapeData':{'adjustValues':_0x6df414}},{'adjustValues':_0x2c71ad});}this[_0x56c8d6(0x203)]=void 0x0,this[_0x56c8d6(0x20d)]=void 0x0,this[_0x56c8d6(0x1c0)]=!0x1,_0x2aa271[_0x56c8d6(0x394)](),_0xae0a6a[_0x56c8d6(0x173)]();}),_0x512175[_0x253edb(0x394)]();})));}[_0x714ef0(0x33f)](){const _0x5b781f=_0x714ef0;let _0x569577=this[_0x5b781f(0x2be)][_0x5b781f(0x30d)](_0x58aa7b[_0x5b781f(0x222)]);this['disposeWithMe'](_0x569577[_0x5b781f(0x371)](_0x1e4916(_0x132ffa=>_0x132ffa?_0x132ffa['activeSheet$'][_0x5b781f(0x371)](_0x1e4916(_0x5eab1b=>{const _0x560f43=_0x5b781f;if(!_0x5eab1b)return _0x535914;let _0x20da37=_0x132ffa[_0x560f43(0x1b0)](),_0x59d21f=this[_0x560f43(0x2cf)][_0x560f43(0x2af)](_0x20da37),_0x596293=_0x59d21f==null?void 0x0:_0x59d21f[_0x560f43(0x1d4)];return _0x596293?_0x12c65f(_0x596293):_0x535914;})):_0x535914))[_0x5b781f(0x3e4)](_0x393941=>{const _0x383de7=_0x5b781f;let _0x18d4a7=_0x393941[_0x383de7(0x218)]();this['disposeWithMe'](_0x393941[_0x383de7(0x224)]['subscribeEvent'](()=>{const _0x19044c=_0x383de7;this[_0x19044c(0x2c5)];})),this['disposeWithMe'](_0x18d4a7[_0x383de7(0x320)][_0x383de7(0x3e4)](_0x33323e=>{const _0x3a1eb0=_0x383de7;let {objects:_0x5beb4f}=_0x33323e;this['_createShapeAdjustControls'](),_0x5beb4f!==null&&_0x5beb4f[_0x3a1eb0(0x296)]===0x1&&_0x5beb4f[_0x3a1eb0(0x1f8)]()[_0x3a1eb0(0x3ee)]()[_0x3a1eb0(0x313)]instanceof J&&this[_0x3a1eb0(0x39b)](!0x0);})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x3fa)][_0x383de7(0x3e4)](()=>{const _0x2409a9=_0x383de7;this[_0x2409a9(0x2c5)]&&this[_0x2409a9(0x2b2)]();})),this['disposeWithMe'](_0x393941[_0x383de7(0x367)][_0x383de7(0x212)](()=>{const _0x3c29c6=_0x383de7;this[_0x3c29c6(0x2c5)]&&(this['setShouldShowAdjust'](!0x1),this['_createShapeAdjustControls']());})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x2d0)][_0x383de7(0x3e4)](()=>{const _0x32ca8e=_0x383de7;this[_0x32ca8e(0x180)]&&this[_0x32ca8e(0x3af)]&&this[_0x32ca8e(0x3de)]&&this[_0x32ca8e(0x20f)]['getDrawingByParam']({'unitId':this[_0x32ca8e(0x180)],'subUnitId':this[_0x32ca8e(0x3af)],'drawingId':this[_0x32ca8e(0x3de)]})&&(this[_0x32ca8e(0x191)]=this[_0x32ca8e(0x193)](this['_unitId'],this[_0x32ca8e(0x3af)],this[_0x32ca8e(0x3de)]),this[_0x32ca8e(0x3c3)]());}));}));}[_0x714ef0(0x3ae)](){const _0xee4d61=_0x714ef0;this[_0xee4d61(0x238)](this[_0xee4d61(0x1a7)][_0xee4d61(0x40f)](_0x3d0a6c=>{const _0x389a85=_0xee4d61;if(_0x3d0a6c['id']!==_0x197dab['id'])return;let {unitId:_0x2929cb,subUnitId:_0x5e80bf,shapeId:_0x2ffcc5}=_0x3d0a6c[_0x389a85(0x387)];_0x2929cb===this['_unitId']&&_0x5e80bf===this[_0x389a85(0x3af)]&&_0x2ffcc5===this[_0x389a85(0x3de)]&&this[_0x389a85(0x3f8)]();})),this[_0xee4d61(0x238)](this[_0xee4d61(0x20f)][_0xee4d61(0x3f5)]['subscribe'](_0x4c6438=>{const _0x31e65e=_0xee4d61;if(_0x4c6438['length']===0x1){let _0x562510=_0x4c6438[0x0];if(_0x562510['drawingType']===_0x544f7a[_0x31e65e(0x2c1)]&&this[_0x31e65e(0x2be)][_0x31e65e(0x346)](_0x562510[_0x31e65e(0x277)])===_0x58aa7b[_0x31e65e(0x222)]){this['_activeShapeId']=_0x562510[_0x31e65e(0x290)];let {unitId:_0x29ddf9,subUnitId:_0x39197c}=_0x562510;this[_0x31e65e(0x191)]=this[_0x31e65e(0x193)](_0x29ddf9,_0x39197c,this[_0x31e65e(0x3de)]),this[_0x31e65e(0x180)]=_0x29ddf9,this['_subUnitId']=_0x39197c,this[_0x31e65e(0x2b2)](),this['_createShapeAdjustControls']();return;}}this[_0x31e65e(0x3de)]=null,this[_0x31e65e(0x191)]=void 0x0,this[_0x31e65e(0x180)]=null,this['_subUnitId']=null,this[_0x31e65e(0x2b2)]();})),this[_0xee4d61(0x238)](this['_drawingManagerService'][_0xee4d61(0x22f)][_0xee4d61(0x3e4)](_0x13b412=>{const _0x34cd68=_0xee4d61;if(_0x13b412[_0x34cd68(0x1c3)]===0x1){var _0x10abc7;let _0x527719=_0x13b412[0x0];((_0x10abc7=this[_0x34cd68(0x20f)][_0x34cd68(0x2da)](_0x527719))==null?void 0x0:_0x10abc7[_0x34cd68(0x198)])===_0x544f7a['DRAWING_SHAPE']&&this[_0x34cd68(0x28c)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0xee4d61(0x3e4)](_0x27065e=>{const _0x2f1fbb=_0xee4d61;for(let _0x580592 of _0x27065e)this[_0x2f1fbb(0x3de)]===_0x580592[_0x2f1fbb(0x290)]&&(this[_0x2f1fbb(0x3de)]=null,this[_0x2f1fbb(0x191)]=void 0x0,this[_0x2f1fbb(0x180)]=null,this['_subUnitId']=null,this[_0x2f1fbb(0x2b2)]());}));}};Pr=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x5c502f(Z)),Y(0x4,_0x1d15d2),Y(0x5,_0x2b8a3e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x4017c5['OPERATION'],'handler':(_0x53860a,_0x3a1d35)=>{const _0x1d7c65=_0x714ef0;let _0x5ae3e9=_0x53860a[_0x1d7c65(0x2dd)](_0x19d008),_0x903fe8=_0x53860a[_0x1d7c65(0x2dd)](_0x1e1faa),_0x4bb80a=_0x53860a[_0x1d7c65(0x2dd)](Pr);if(_0x3a1d35==null)return!0x0;if(_0x3a1d35['length']>0x0){var _0x25792a;let _0x202749=(_0x25792a=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null?void 0x0:_0x25792a[_0x1d7c65(0x1d4)];if(_0x202749){let {unitId:_0x1f3c58,subUnitId:_0x2bb593,drawingId:_0x1322c9}=_0x3a1d35[0x0],_0x1f8d04=_0x562c30({'unitId':_0x1f3c58,'subUnitId':_0x2bb593,'drawingId':_0x1322c9},void 0x0),_0x589eba=_0x202749['getObjectIncludeInGroup'](_0x1f8d04);if(_0x589eba){var _0x402cd1;(_0x402cd1=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null||(_0x402cd1=_0x402cd1[_0x1d7c65(0x1d4)]['getTransformer']())==null||_0x402cd1[_0x1d7c65(0x28e)](_0x589eba);}}_0x5ae3e9['focusDrawing'](_0x3a1d35),_0x4bb80a[_0x1d7c65(0x39b)](!0x1);}return!0x0;}},Ir={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x322),'handler':async(_0x3e59fe,_0x214aac)=>{const _0x195e06=_0x714ef0;let _0x43a905=_0x510a30(_0x3e59fe[_0x195e06(0x2dd)](_0x1d15d2));if(!_0x43a905)return!0x1;let _0x603bb2=_0x3e59fe[_0x195e06(0x2dd)](_0x469c9d)[_0x195e06(0x2c0)]();if(!_0x603bb2)return!0x1;let _0x1776b4=_0x3e59fe[_0x195e06(0x2dd)](_0x2b8a3e),{unitId:_0x5102cb,subUnitId:_0x1468b3}=_0x43a905,{value:_0x26679f,enhanceParams:_0x489697}=_0x214aac,{range:_0x15d1cf}=_0x603bb2,_0x190b40={'unitId':_0x5102cb,'subUnitId':_0x1468b3,'shapeType':_0x26679f,'range':_0x15d1cf,'shapeId':_0x2f2dbb()};if(_0x489697){let _0x310dfd=_0x4cb876(_0x26679f),_0x70eafa=_0x26679f===_0xf1eb19[_0x195e06(0x21a)];_0x310dfd&&(_0x489697[_0x195e06(0x411)]||_0x489697['endArrow'])&&(_0x190b40[_0x195e06(0x3be)]={'ln':{'startArrow':_0x489697[_0x195e06(0x411)]?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x406)]}:void 0x0,'endArrow':_0x489697['endArrow']?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x395)]}:void 0x0}}),_0x70eafa&&(_0x489697['horizontal']||_0x489697[_0x195e06(0x2ca)])&&(_0x190b40[_0x195e06(0x3be)]=_0xa48a9d({'fill':{'fillType':_0x271926[_0x195e06(0x3f0)],'color':_0x195e06(0x23d)},'isHorizontal':!!_0x489697['horizontal'],'stroke':{'lineStrokeType':_0x560aad[_0x195e06(0x244)],'width':0x1,'color':_0x195e06(0x216)}}));}let _0x1e79ee=_0x1776b4['syncExecuteCommand'](_0x166112['id'],_0x190b40);return setTimeout(()=>{const _0x407ca2=_0x195e06;_0x1776b4[_0x407ca2(0x40b)](Fr['id'],[{'unitId':_0x5102cb,'subUnitId':_0x1468b3,'drawingId':_0x190b40['shapeId']}]);},0xc8),_0x1e79ee;}},Lr='sheet.shape.edit.panel',Rr=_0x714ef0(0x426),zr=_0x714ef0(0x3c7),Br=_0x714ef0(0x1f3),Vr=_0x47130c(_0x714ef0(0x347)),Hr=_0x714ef0(0x278),Ur={'id':_0x714ef0(0x272),'type':_0x4017c5[_0x714ef0(0x20c)],'handler':(_0xc0591d,_0x2a9381)=>{const _0x4610d3=_0x714ef0;let _0x28eebd=_0xc0591d[_0x4610d3(0x2dd)](_0x3d8cd5),_0x3f89bd=_0xc0591d[_0x4610d3(0x2dd)](_0x30b59c),_0x1b1768=_0xc0591d['get'](_0x1d15d2),_0x12f55b=_0xc0591d[_0x4610d3(0x2dd)](_0x2b8a3e);return _0x510a30(_0x1b1768)?(_0x2a9381==null?void 0x0:_0x2a9381[_0x4610d3(0x313)])===_0x4610d3(0x2ef)?(_0x28eebd['close'](Rr),!0x0):(_0x28eebd[_0x4610d3(0x249)]({'id':Rr,'header':{'title':_0x3f89bd['t'](_0x4610d3(0x219))},'children':{'label':Rr},'onClose':()=>{const _0x1673f5=_0x4610d3;_0x12f55b[_0x1673f5(0x3ca)](_0x2b2ec1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x4017c5[_0x714ef0(0x2e0)],'id':_0x714ef0(0x286),'handler'(){return!0x0;}};function Gr(_0x3d1935){const _0x2bdec9=_0x714ef0;let _0x2746d7=_0x3d1935['get'](_0x19d008)[_0x2bdec9(0x3dc)](),_0xa739a0=_0x2746d7['length']===0x1?_0x2746d7[0x0]:null;if(!_0xa739a0||_0xa739a0[_0x2bdec9(0x198)]!==_0x544f7a['DRAWING_SHAPE'])return null;let _0x3e831e=_0x3d1935['get'](_0x5b8f71),_0x3c42fb=_0x3e831e[_0x2bdec9(0x1ad)](_0xa739a0[_0x2bdec9(0x277)],_0xa739a0['subUnitId'],_0xa739a0['drawingId']),_0x322ce7=_0x3e831e[_0x2bdec9(0x3a4)](_0xa739a0['unitId'],_0xa739a0[_0x2bdec9(0x3d0)],_0xa739a0[_0x2bdec9(0x290)]);return _0x3c42fb===void 0x0||!_0x322ce7?null:{'drawing':_0xa739a0,'shapeData':_0x322ce7,'shapeType':_0x3c42fb};}const Kr={'id':_0x714ef0(0x22b),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x1d3672,_0x559c77)=>{const _0x38ed55=_0x714ef0;let _0x2db150=Gr(_0x1d3672),_0x54a61d=_0x3ceb76((_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x405)])??(_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x313)])??'');if(!_0x2db150||!_0x54a61d||_0x54a61d[_0x38ed55(0x1f1)]!==_0x189f9a(_0x2db150[_0x38ed55(0x3be)]))return!0x1;let _0x20727b=_0x368cae(_0x2db150[_0x38ed55(0x3be)],_0x54a61d);if(!_0x20727b)return!0x1;let {drawing:_0x1464eb}=_0x2db150;return _0x1d3672[_0x38ed55(0x2dd)](_0x2b8a3e)['executeCommand'](K['id'],{'unitId':_0x1464eb['unitId'],'subUnitId':_0x1464eb[_0x38ed55(0x3d0)],'shapeId':_0x1464eb['drawingId'],'shapeData':_0x20727b,'oldShapeJSON':{'oldShapeData':_0x2db150['shapeData']}});}},qr={'id':_0x714ef0(0x3f3),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x40821b,_0x2dfe03)=>{const _0x4a28a2=_0x714ef0;let _0x2f3200=Gr(_0x40821b),_0x1514c3=(_0x2dfe03==null?void 0x0:_0x2dfe03['shapeType'])??(_0x2dfe03==null?void 0x0:_0x2dfe03['value']);if(!_0x2f3200||!_0x1514c3||_0x4cb876(_0x2f3200[_0x4a28a2(0x3b7)])||_0x4cb876(_0x1514c3))return!0x1;let _0x3b8210=_0x56761c(_0x2f3200[_0x4a28a2(0x3be)],_0x1514c3);if(!_0x3b8210)return!0x1;let {drawing:_0x1c22a7}=_0x2f3200;return _0x40821b[_0x4a28a2(0x2dd)](_0x2b8a3e)[_0x4a28a2(0x40b)](K['id'],{'unitId':_0x1c22a7[_0x4a28a2(0x277)],'subUnitId':_0x1c22a7[_0x4a28a2(0x3d0)],'shapeId':_0x1c22a7[_0x4a28a2(0x290)],'shapeType':_0x1514c3,'shapeData':_0x3b8210,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2f3200[_0x4a28a2(0x3b7)],'oldShapeData':_0x2f3200[_0x4a28a2(0x3be)]}});}};let Q=class extends _0xe29064{constructor(_0x251554,_0x827a0f){const _0x156f2a=_0x714ef0;super(),this[_0x156f2a(0x379)]=_0x251554,this['_drawingManagerService']=_0x827a0f,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x156f2a(0x321)](!0x0),this[_0x156f2a(0x238)]({'dispose':()=>this[_0x156f2a(0x379)][_0x156f2a(0x321)](!0x1)});}[_0x714ef0(0x34d)](){const _0x2168ad=_0x714ef0;let _0xd2dfe6=this[_0x2168ad(0x379)],_0x192fe4=new Map(),_0x34b800=_0xd2dfe6[_0x2168ad(0x3f1)]((_0x3a2e21,_0x11e7b,_0x27ae9e,_0x7b42ef,_0x1cb846)=>{const _0xaa213b=_0x2168ad;let _0x5652b9=_0x11e7b;if(_0x5652b9===_0xf1eb19[_0xaa213b(0x327)]||_0x11e7b===_0xaa213b(0x1d0))return!0x1;try{let _0x56155d=_0x192fe4['get'](_0x11e7b);return _0x56155d||(_0x56155d=new _0x573393(_0x5652b9,_0xaa213b(0x3da)+_0x11e7b),_0x192fe4['set'](_0x11e7b,_0x56155d)),_0x56155d[_0xaa213b(0x179)](),_0x1cb846&&Object[_0xaa213b(0x1a3)](_0x1cb846)[_0xaa213b(0x1c3)]>0x0&&_0x56155d['setShapeData']({'adjustValues':_0x1cb846},!0x0),_0x56155d[_0xaa213b(0x2b8)]({'width':_0x27ae9e,'height':_0x7b42ef}),_0x56155d[_0xaa213b(0x3d4)](_0x3a2e21,{'left':0x0,'top':0x0,'width':_0x27ae9e,'height':_0x7b42ef});}catch{return!0x1;}});this[_0x2168ad(0x238)](_0x34b800),this[_0x2168ad(0x238)]({'dispose':()=>_0x192fe4[_0x2168ad(0x1d6)]()});}[_0x714ef0(0x403)](_0x28613b,_0x18b566,_0x1def61,_0x4010fe,_0x200c30){const _0x5bddbe=_0x714ef0;let _0x123a6b=this[_0x5bddbe(0x20f)][_0x5bddbe(0x1a5)](_0x28613b,_0x18b566);if(!_0x123a6b[_0x1def61])return;let _0x1dd3b8={..._0x123a6b[_0x1def61],'prstGeom':_0x4010fe,'adjustValues':_0x200c30};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x1dd3b8]);}};Q=X([Y(0x0,_0x5c502f(_0x1d70d0)),Y(0x1,_0x5c502f(_0x19d008))],Q);const Jr=_0x714ef0(0x2c4),Yr=_0x714ef0(0x2cb);function Xr({onShapeClick:_0x3c4dec,excludeGroups:_0x3803fa}){return _0x230828(_0x3bf045,{'excludeGroups':_0x3803fa,'onShapeClick':_0x3c4dec,'scrollContainer':'parent'});}function Zr(){const _0x27a378=_0x714ef0;let _0x301669=_0x3bcf4c(_0x19d008),_0x5d7816=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x27a378(0x3f9),'excludeGroups':[_0x2a0c3e['Line']],'onShapeClick':_0x31c95a=>{const _0xae6239=_0x27a378;let _0x28a3e7=_0x301669['getFocusDrawings']()['find'](_0x57c155=>_0x57c155[_0xae6239(0x198)]===_0x544f7a[_0xae6239(0x430)]);if(!_0x28a3e7)return;let {unitId:_0x3cc985,subUnitId:_0x57ad77,drawingId:_0x3968c1}=_0x28a3e7;_0x5d7816[_0xae6239(0x403)](_0x3cc985,_0x57ad77,_0x3968c1,_0x31c95a[_0xae6239(0x1f1)]);}});}function Qr(){const _0x50a7b7=_0x714ef0;let _0x38a4c4=_0x3bcf4c(_0x19d008),_0x769ea9=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x50a7b7(0x3f9),'excludeGroups':[_0x2a0c3e[_0x50a7b7(0x183)]],'DropdownComponent':_0x8991e2,'onShapeClick':_0x4fe581=>{const _0x4d7123=_0x50a7b7;let _0x26e902=_0x38a4c4[_0x4d7123(0x3dc)]()['find'](_0x532336=>_0x532336['drawingType']===_0x544f7a[_0x4d7123(0x430)]);if(!_0x26e902)return;let {unitId:_0x2cf933,subUnitId:_0x391d55,drawingId:_0x16fa58}=_0x26e902;_0x769ea9[_0x4d7123(0x403)](_0x2cf933,_0x391d55,_0x16fa58,_0x4fe581[_0x4d7123(0x1f1)]);}});}function $r(){const _0x28b719=_0x714ef0;let _0x2bda3e=_0x3bcf4c(_0x5a67d0),_0x1fe248=_0x3bcf4c(_0x19d008),_0x1a6110=_0x3bcf4c(_0x1d15d2),_0x479bf0=_0x1fe248[_0x28b719(0x3dc)]()[0x0],_0xdd48ba=_0x479bf0?_0x1a6110[_0x28b719(0x346)](_0x479bf0[_0x28b719(0x277)]):void 0x0,_0x48e737=_0xdd48ba===_0x58aa7b['UNIVER_DOC']?_0x28b719(0x3e9):_0xdd48ba===_0x58aa7b[_0x28b719(0x222)]?Yr:void 0x0,_0x59d30e=_0x48e737?_0x2bda3e[_0x28b719(0x2dd)](_0x48e737):void 0x0;return _0x59d30e?_0x230828(_0x59d30e,{}):null;}function ei(){let _0x2fcd4b=_0x3bcf4c(_0x2b8a3e);return _0x230828(Xr,{'onShapeClick':_0x373ab0=>{const _0x5dc408=_0x5396;_0x2fcd4b[_0x5dc408(0x40b)](Ir['id'],{'value':_0x373ab0[_0x5dc408(0x1f1)],'enhanceParams':{'endArrow':_0x373ab0['endArrow'],'startArrow':_0x373ab0[_0x5dc408(0x411)],'horizontal':_0x373ab0[_0x5dc408(0x401)],'vertical':_0x373ab0[_0x5dc408(0x2ca)]}});}});}function ti(){return _0x230828(ei,{});}function ni(_0xfd55e8){const _0x54625d=_0x714ef0;let _0x26887d=_0xfd55e8[_0x54625d(0x2dd)](_0x1d15d2);return{'id':Ir['id'],'type':_0x507a55[_0x54625d(0x23e)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x54625d(0x328),'tooltip':_0x54625d(0x408),'activated$':_0x5b4c60(_0x26887d,!0x1,()=>new _0x1bac00(_0x3f7ae3=>{const _0x2f39f9=_0x54625d;_0x3f7ae3[_0x2f39f9(0x3ee)](!0x1);})),'hidden$':_0x1975c5(_0xfd55e8,_0x58aa7b[_0x54625d(0x222)]),'disabled$':_0x3afc35(_0xfd55e8)};}function ri(_0x18eef5){const _0x48afe4=_0x714ef0;let _0x4bbd4d=_0x18eef5['get'](_0x1d15d2);return{'id':Ur['id'],'type':_0x507a55['BUTTON'],'icon':_0x48afe4(0x3a6),'title':_0x48afe4(0x3ac),'tooltip':_0x48afe4(0x3ac),'activated$':_0x5b4c60(_0x4bbd4d,!0x1,()=>new _0x1bac00(_0x181eaf=>{_0x181eaf['next'](!0x1);})),'hidden$':_0x1975c5(_0x18eef5,_0x58aa7b[_0x48afe4(0x222)]),'disabled$':_0x3afc35(_0x18eef5)};}const ii=_0x714ef0(0x2bc),ai=_0x714ef0(0x3a5);function oi(_0x20fcd6){const _0x1f5f66=_0x714ef0;let _0x5895c4=_0x20fcd6['get'](_0x19d008)[_0x1f5f66(0x3dc)]();return _0x5895c4[_0x1f5f66(0x1c3)]===0x1&&_0x5895c4[0x0][_0x1f5f66(0x198)]===_0x544f7a[_0x1f5f66(0x2c1)]?_0x5895c4[0x0]:null;}function si(_0x596535){const _0x24e80c=_0x714ef0;let _0x310aeb=_0x596535[_0x24e80c(0x2dd)](_0x19d008);return _0x310aeb[_0x24e80c(0x3f5)][_0x24e80c(0x371)](_0x293b44(_0x310aeb[_0x24e80c(0x3dc)]()),_0x3fd006(_0x1cc5a9=>_0x1cc5a9['length']!==0x1||_0x1cc5a9[0x0]['drawingType']!==_0x544f7a[_0x24e80c(0x2c1)]));}function ci(_0x379a8b){const _0x55f365=_0x714ef0;return{'id':ii,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x55f365(0x39c)],'title':_0x55f365(0x373),'tooltip':_0x55f365(0x373),'icon':_0x55f365(0x376),'hidden$':si(_0x379a8b),'params':()=>{const _0x1357ab=_0x55f365;let _0x3d8fac=oi(_0x379a8b);return _0x3d8fac?{'unitId':_0x3d8fac[_0x1357ab(0x277)],'subUnitId':_0x3d8fac[_0x1357ab(0x3d0)],'shapeId':_0x3d8fac['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0xce7bf){const _0x11becd=_0x714ef0;return{'id':ai,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x11becd(0x39c)],'title':_0x11becd(0x31c),'tooltip':_0x11becd(0x31c),'icon':_0x11becd(0x35e),'hidden$':si(_0xce7bf),'params':()=>{const _0x2e81a5=_0x11becd;let _0xe0938d=oi(_0xce7bf);return _0xe0938d?{'unitId':_0xe0938d[_0x2e81a5(0x277)],'subUnitId':_0xe0938d['subUnitId'],'shapeId':_0xe0938d[_0x2e81a5(0x290)],'flipV':!0x0}:void 0x0;}};}const ui='sheets-shape-ui.shape-format.quick-style-gallery',di=_0x714ef0(0x16f),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x714ef0(0x38e);function mi(){let _0x3b4f9a=_0x3bcf4c(_0x2b8a3e),_0x45ac04=_0x3bcf4c(_0x19d008),_0x5aea4f=_0x3bcf4c(_0x5b8f71),_0x4f2aed=()=>{const _0x2bf935=_0x5396;var _0xe0cf28;let _0x4e930e=_0x45ac04[_0x2bf935(0x3dc)]();if(_0x4e930e[_0x2bf935(0x1c3)]!==0x1||((_0xe0cf28=_0x4e930e[0x0])==null?void 0x0:_0xe0cf28[_0x2bf935(0x198)])!==_0x544f7a[_0x2bf935(0x2c1)])return null;let {unitId:_0x3407d5,subUnitId:_0x358b0a,drawingId:_0x5db6ee}=_0x4e930e[0x0],_0x1866cb=_0x5aea4f[_0x2bf935(0x1ad)](_0x3407d5,_0x358b0a,_0x5db6ee),_0x35384b=_0x5aea4f[_0x2bf935(0x3a4)](_0x3407d5,_0x358b0a,_0x5db6ee);return _0x1866cb===void 0x0||!_0x35384b?null:{'unitId':_0x3407d5,'subUnitId':_0x358b0a,'drawingId':_0x5db6ee,'shapeType':_0x1866cb,'shapeData':_0x35384b};},_0x482661=_0x54184f(()=>new _0x1bac00(_0x1f6a38=>{const _0x19df69=_0x5396;let _0x441452=()=>_0x1f6a38[_0x19df69(0x3ee)](_0x4f2aed()),_0x22850a=_0x45ac04['focus$'][_0x19df69(0x3e4)](_0x441452),_0x1be858=_0x3b4f9a[_0x19df69(0x40f)](_0x39ed42=>{_0x39ed42['id']===_0x197dab['id']&&_0x441452();});return _0x441452(),()=>{const _0x49acf8=_0x19df69;_0x22850a[_0x49acf8(0x187)](),_0x1be858[_0x49acf8(0x232)]();};}),_0x4f2aed(),!0x1,[_0x3b4f9a,_0x45ac04,_0x5aea4f]);return{'selection':_0x482661,'updateShapeData':_0x4a9378=>{const _0x183b14=_0x5396;_0x482661&&Dr(_0x3b4f9a,_0x482661[_0x183b14(0x277)],_0x482661['subUnitId'],_0x482661['drawingId'],{'oldShapeData':_0x482661['shapeData']},_0x4a9378);}};}function hi(){const _0x3db532=_0x714ef0;let {selection:_0x1e0b81,updateShapeData:_0x206d70}=mi();return _0x1e0b81?_0x230828(_0x52b5ae,{'shapeData':_0x1e0b81[_0x3db532(0x3be)],'shapeType':_0x1e0b81[_0x3db532(0x3b7)],'onUpdateShapeData':_0x206d70}):null;}function gi(){const _0x17f26a=_0x714ef0;let _0x1d08aa=_0x3bcf4c(_0x2b8a3e),_0x49cfac=_0x3bcf4c(_0x30b59c),{selection:_0x29b43b}=mi();return _0x29b43b?_0x230828(_0x10a63c,{'type':_0x189f9a(_0x29b43b[_0x17f26a(0x3be)]),'ariaLabel':_0x49cfac['t'](_0x17f26a(0x1e4)),'activePresetId':_0x555e02(_0x29b43b[_0x17f26a(0x3be)]),'onSelect':_0x324984=>_0x1d08aa[_0x17f26a(0x40b)](Kr['id'],{'presetId':_0x324984})}):null;}function _i(){const _0x830252=_0x714ef0;let {selection:_0x4fdbae,updateShapeData:_0x4ab41c}=mi();return _0x4fdbae?_0x230828(_0x2a1de0,{'fontFamilyPopupDataComponent':_0x830252(0x41b),'shapeData':_0x4fdbae['shapeData'],'onUpdateShapeData':_0x4ab41c}):null;}function vi(){const _0x56e956=_0x714ef0;var _0x5ca2b4;let {selection:_0x31dbd8,updateShapeData:_0x3bf4db}=mi(),_0x12a3a2=_0x1f34d3({'hostType':_0x58aa7b[_0x56e956(0x222)],'unitId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x277)])??'','subUnitId':(_0x31dbd8==null?void 0x0:_0x31dbd8['subUnitId'])??'','shapeId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x290)])??'','shapeData':_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x3be)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x56e956(0x2e5),'onUpdateBinding':_0x1d015f=>_0x3bf4db({'formulaBinding':_0x1d015f})}),_0x225f7f=((_0x5ca2b4=_0x12a3a2[_0x56e956(0x27c)])==null?void 0x0:_0x5ca2b4[_0x56e956(0x310)](_0x330f2a=>_0x330f2a['actions'])[_0x56e956(0x3c0)](_0x5b5195=>_0x5b5195['visible']!==!0x1))??[];return _0x31dbd8!=null&&_0x31dbd8[_0x56e956(0x3be)][_0x56e956(0x317)]?_0x230828(_0x493081,{'actions':_0x225f7f,'panel':_0x12a3a2['panel']}):null;}const yi=_0x714ef0(0x2fa),bi='sheets-shape-ui.ribbon.shape-format.text-control',xi=_0x714ef0(0x291),Si=_0x714ef0(0x170),Ci=_0x714ef0(0x3d7),wi=_0x714ef0(0x341),Ti=_0x714ef0(0x2b3);function Ei(_0xcdf213){let _0x19fe88=_0xcdf213['get'](_0x2b8a3e),_0x294f93=_0xcdf213['get'](_0x19d008),_0x5ab309=_0xcdf213['get'](_0x5b8f71);return new _0x1bac00(_0x1c3877=>{const _0x26ea6a=_0x5396;let _0x2bcdb0=()=>{const _0xc4e92f=_0x5396;let _0x4d2431=Di(_0xcdf213),_0x1c9304=_0x4d2431?_0x5ab309['getShapeDataById'](_0x4d2431[_0xc4e92f(0x277)],_0x4d2431['subUnitId'],_0x4d2431[_0xc4e92f(0x290)]):null;_0x1c3877['next'](_0x1c9304?_0x555e02(_0x1c9304)??'':'');},_0x5b6e68=_0x294f93[_0x26ea6a(0x3f5)][_0x26ea6a(0x3e4)](_0x2bcdb0),_0x30eaaf=_0x19fe88[_0x26ea6a(0x40f)](_0xac4b45=>{_0xac4b45['id']===_0x197dab['id']&&_0x2bcdb0();});return _0x2bcdb0(),()=>{const _0x15c6c9=_0x26ea6a;_0x5b6e68[_0x15c6c9(0x187)](),_0x30eaaf[_0x15c6c9(0x232)]();};});}function Di(_0x5e8feb){const _0xb586e5=_0x714ef0;var _0x3937db;let _0x40493c=_0x5e8feb['get'](_0x19d008)[_0xb586e5(0x3dc)]();return _0x40493c[_0xb586e5(0x1c3)]===0x1&&((_0x3937db=_0x40493c[0x0])==null?void 0x0:_0x3937db[_0xb586e5(0x198)])===_0x544f7a[_0xb586e5(0x2c1)]?_0x40493c[0x0]:null;}function Oi(_0x42fcca,_0x1e6ff6=!0x1){const _0x37ae39=_0x714ef0;let _0x2fdcec=_0x42fcca[_0x37ae39(0x2dd)](_0x2b8a3e),_0x3d4e53=_0x42fcca[_0x37ae39(0x2dd)](_0x19d008),_0x488183=_0x42fcca[_0x37ae39(0x2dd)](_0x5b8f71);return new _0x1bac00(_0x3e047c=>{const _0x14133f=_0x37ae39;let _0x3d8bf3=()=>{const _0x27c0d2=_0x5396;let _0x19bb25=Di(_0x42fcca);if(!_0x19bb25){_0x3e047c['next'](!0x0);return;}let _0x4c74d5=_0x488183[_0x27c0d2(0x3a4)](_0x19bb25[_0x27c0d2(0x277)],_0x19bb25[_0x27c0d2(0x3d0)],_0x19bb25[_0x27c0d2(0x290)]);_0x3e047c[_0x27c0d2(0x3ee)](!_0x4c74d5||_0x1e6ff6&&_0x4c74d5[_0x27c0d2(0x317)]==null);},_0x294850=_0x3d4e53[_0x14133f(0x3f5)]['subscribe'](_0x3d8bf3),_0x199816=_0x2fdcec['onCommandExecuted'](_0x4aa4f2=>{_0x4aa4f2['id']===_0x197dab['id']&&_0x3d8bf3();});return _0x3d8bf3(),()=>{const _0x14c253=_0x14133f;_0x294850[_0x14c253(0x187)](),_0x199816[_0x14c253(0x232)]();};});}function ki(_0x3a730e){const _0x567ef3=_0x714ef0;let _0x5e661e=_0x3a730e['get'](_0x19d008),_0x206534=_0x3a730e[_0x567ef3(0x2dd)](_0x5b8f71);return _0x5e661e[_0x567ef3(0x3f5)][_0x567ef3(0x371)](_0x293b44(_0x5e661e[_0x567ef3(0x3dc)]()),_0x3fd006(()=>{const _0x94a6f7=_0x567ef3;let _0x169446=Di(_0x3a730e),_0x4e9af5=_0x169446?_0x206534[_0x94a6f7(0x1ad)](_0x169446['unitId'],_0x169446[_0x94a6f7(0x3d0)],_0x169446['drawingId']):void 0x0;return _0x4e9af5===void 0x0||_0x4cb876(_0x4e9af5);}));}function Ai(_0x53cf0e){const _0x202d90=_0x714ef0;return{'id':Kr['id'],'type':_0x507a55[_0x202d90(0x23e)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x202d90(0x363),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x53cf0e),'hidden$':Oi(_0x53cf0e)};}function ji(_0x1b8c7f){const _0x344ec6=_0x714ef0;return{'id':qr['id'],'type':_0x507a55[_0x344ec6(0x23e)],'icon':_0x344ec6(0x328),'title':_0x344ec6(0x21b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x549e13,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x1b8c7f)};}function Mi(_0x516992,_0x49b129,_0x5b8868=!0x1){const _0x4acf32=_0x714ef0;return _0x2ea373=>({'id':_0x516992,'type':_0x507a55[_0x4acf32(0x39c)],'label':{'name':_0x49b129,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2ea373,_0x5b8868)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x47068d,_0x343942,_0x4e0c5c,_0x294ec7){const _0x266166=_0x714ef0;return _0x3b5cfe=>({'id':_0x47068d,'commandId':_0x8e2df9['id'],'type':_0x507a55[_0x266166(0x39c)],'icon':_0x4e0c5c,'title':_0x294ec7,'tooltip':_0x294ec7,'hidden$':Oi(_0x3b5cfe),'params':()=>{const _0x373d15=_0x266166;let _0x47f338=Di(_0x3b5cfe);return _0x47f338?{'unitId':_0x47f338['unitId'],'subUnitId':_0x47f338['subUnitId'],'drawingIds':[_0x47f338[_0x373d15(0x290)]],'arrangeType':_0x343942}:void 0x0;}});}const Li=Ii(Si,_0x426c14['forward'],_0x714ef0(0x164),_0x714ef0(0x36c)),Ri=Ii(Ci,_0x426c14['backward'],'MoveDownIcon',_0x714ef0(0x2ed)),zi=Ii(wi,_0x426c14[_0x714ef0(0x287)],_0x714ef0(0x279),_0x714ef0(0x324)),Bi=Ii(Ti,_0x426c14[_0x714ef0(0x3b8)],'BottomIcon',_0x714ef0(0x34b));function Vi(_0x486570){const _0x281969=_0x714ef0;return{'id':Wr['id'],'type':_0x507a55[_0x281969(0x39c)],'icon':_0x281969(0x424),'title':_0x281969(0x35d),'tooltip':_0x281969(0x35d),'hidden$':Oi(_0x486570),'params':()=>{const _0x47625b=_0x281969;let _0xf5e4be=Di(_0x486570);return _0xf5e4be?{'unitId':_0xf5e4be['unitId'],'subUnitId':_0xf5e4be[_0x47625b(0x3d0)],'drawingId':_0xf5e4be[_0x47625b(0x290)]}:void 0x0;}};}const Hi={[_0x31bc17[_0x714ef0(0x3b3)]]:{[Br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x45fee0['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5bad15}}}}},Ui={[_0x3372cf[_0x714ef0(0x2d8)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3372cf[_0x714ef0(0x1e3)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x281ae1[_0x714ef0(0x3cc)]]:{[_0x144ec7[_0x714ef0(0x1e3)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x714ef0(0x2fe),Ki=_0x714ef0(0x25f);const qi={'id':_0x714ef0(0x1ae),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler'(_0xea0b8e,_0x2a76e0){const _0x2b0013=_0x714ef0;return _0x2a76e0?(_0xea0b8e[_0x2b0013(0x2dd)](_0x9eb493)[_0x2b0013(0x249)](_0x2a76e0['mode'],{'hostType':_0x58aa7b[_0x2b0013(0x222)],'shapeId':_0x2a76e0[_0x2b0013(0x290)],'subUnitId':_0x2a76e0['subUnitId'],'unitId':_0x2a76e0[_0x2b0013(0x277)]}),!0x0):!0x1;}},Ji=_0x714ef0(0x420),Yi={};let Xi=class extends _0xe29064{constructor(_0x3fcce2,_0x41abff,_0x17bf19,_0x36f66f,_0x35e928){const _0x56c17d=_0x714ef0;super(),this[_0x56c17d(0x22a)]=_0x3fcce2,this['_drawingManagerService']=_0x41abff,this[_0x56c17d(0x2cf)]=_0x17bf19,this[_0x56c17d(0x2be)]=_0x36f66f,this[_0x56c17d(0x1ef)]=_0x35e928,q(this,_0x56c17d(0x2ac),null),q(this,'_unitId',null),q(this,_0x56c17d(0x3af),null),q(this,_0x56c17d(0x2a7),void 0x0),q(this,_0x56c17d(0x2ee),[]),q(this,_0x56c17d(0x294),0x0),q(this,_0x56c17d(0x263),0x0),q(this,_0x56c17d(0x3e5),0x0),q(this,_0x56c17d(0x297),0x0),q(this,_0x56c17d(0x1c0),!0x1),q(this,_0x56c17d(0x203),void 0x0),q(this,_0x56c17d(0x20d),void 0x0),q(this,_0x56c17d(0x3e0),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0x56c17d(0x3bf),!0x1),this[_0x56c17d(0x1e7)](),this['_registerMoveHandler']();}[_0x714ef0(0x260)](){const _0x3c9b25=_0x714ef0;this[_0x3c9b25(0x3c9)]();}[_0x714ef0(0x3f8)](){const _0x4c2b5d=_0x714ef0;this[_0x4c2b5d(0x3c9)](),this['_createControls'](!0x0);}[_0x714ef0(0x41f)](_0x2ce296,_0x39d500,_0x1ce1c5,_0x34bc90){const _0x4c0fae=_0x714ef0;let _0x45f7dd=_0x2ce296;if(_0x45f7dd!==_0xf1eb19['None']&&_0x2ce296!==_0x4c0fae(0x1d0))try{let _0x29d3b8=new _0x573393(_0x45f7dd,_0x4c0fae(0x365)+_0x2ce296);return _0x34bc90&&_0x29d3b8[_0x4c0fae(0x256)]({'adjustValues':_0x34bc90},!0x0),_0x29d3b8[_0x4c0fae(0x2b8)]({'width':_0x39d500,'height':_0x1ce1c5}),_0x29d3b8;}catch{return;}}[_0x714ef0(0x1c7)](_0x5a8263,_0x433fb4,_0x1eb224){const _0x32186e=_0x714ef0;let _0x1eae1a={'unitId':_0x5a8263,'subUnitId':_0x433fb4,'drawingId':_0x1eb224},_0x3cd1b7=this[_0x32186e(0x20f)][_0x32186e(0x2da)](_0x1eae1a);if(_0x3cd1b7&&_0x3cd1b7['drawingType']===_0x544f7a[_0x32186e(0x430)])return _0x3cd1b7;}[_0x714ef0(0x168)](_0x5ebc48,_0x2abf4a,_0x332211){const _0x54b6d1=_0x714ef0;let _0x13242e=this[_0x54b6d1(0x2cf)]['getRenderUnitById'](_0x5ebc48);if(!_0x13242e)return;let {scene:_0x2bdfbd}=_0x13242e,_0x42082f=_0x562c30({'unitId':_0x5ebc48,'subUnitId':_0x2abf4a,'drawingId':_0x332211}),_0x4a593d=_0x2bdfbd[_0x54b6d1(0x3b6)](_0x42082f);if(_0x4a593d instanceof _0x230c76){let _0x526d7a=_0x4a593d[_0x54b6d1(0x33e)];if(_0x526d7a)return{'prstGeom':_0x526d7a,'adjustValues':_0x4a593d[_0x54b6d1(0x24a)]};}}[_0x714ef0(0x25b)](_0x276fdb=!0x1){const _0x46072e=_0x714ef0;if(!this[_0x46072e(0x180)]||!this[_0x46072e(0x3af)]||!this['_activeImageId'])return;let _0x106656=this[_0x46072e(0x2cf)]['getRenderUnitById'](this[_0x46072e(0x180)]);if(!_0x106656||!_0x106656[_0x46072e(0x3e6)](_0x44086e)[_0x46072e(0x161)]())return;let {scene:_0x4da006}=_0x106656,_0xf5547e=this[_0x46072e(0x1c7)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0xf5547e)return;let {transform:_0x38b4a2}=_0xf5547e;if(!_0x38b4a2)return;let {left:_0x7a3559,top:_0x4d4cc9,width:_0x23b830,height:_0x587640,flipX:_0x27036a,flipY:_0x378c8a,angle:_0x3dddba=0x0}=_0x38b4a2;if(_0x7a3559===void 0x0||_0x4d4cc9===void 0x0)return;let _0x81975b=this[_0x46072e(0x168)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0x81975b)return;if(_0x276fdb){let _0x15c68b=this['_getOrCreateShapeModel'](_0x81975b[_0x46072e(0x33e)],_0x23b830||0x0,_0x587640||0x0,_0x81975b[_0x46072e(0x33c)]);if(!_0x15c68b)return;this['_activeAdjustPointList']=_0x15c68b[_0x46072e(0x41e)]();}let _0x4d2bc9=this[_0x46072e(0x2a7)];if(_0x4d2bc9&&_0x4d2bc9[_0x46072e(0x1c3)]!==0x0)for(let _0x121017=0x0;_0x121017<_0x4d2bc9[_0x46072e(0x1c3)];_0x121017++){let _0x5ec84b=_0x4d2bc9[_0x121017],_0xfa5511=_0x5ec84b['x'],_0x3d157b=_0x5ec84b['y'];if(_0x27036a&&(_0xfa5511=(_0x23b830||0x0)-_0xfa5511),_0x378c8a&&(_0x3d157b=(_0x587640||0x0)-_0x3d157b),_0x3dddba!==0x0){let _0x25bbc3=(_0x23b830||0x0)/0x2,_0x52b3cb=(_0x587640||0x0)/0x2,_0x250ebd=_0x3dddba*Math['PI']/0xb4,_0x3f3e69=Math['cos'](_0x250ebd),_0x3ae405=Math[_0x46072e(0x267)](_0x250ebd),_0x53071d=_0xfa5511-_0x25bbc3,_0x198f5f=_0x3d157b-_0x52b3cb;_0xfa5511=_0x25bbc3+(_0x53071d*_0x3f3e69-_0x198f5f*_0x3ae405),_0x3d157b=_0x52b3cb+(_0x53071d*_0x3ae405+_0x198f5f*_0x3f3e69);}let _0x56dc6d={'x':_0xfa5511,'y':_0x3d157b,'adjName':_0x5ec84b[_0x46072e(0x2a3)]};this['_addControl'](_0x4da006,_0x56dc6d,_0x56dc6d[_0x46072e(0x2a3)],_0x7a3559,_0x4d4cc9,this['_unitId'],this[_0x46072e(0x3af)]);}}[_0x714ef0(0x1d3)](_0x457661,_0x1d5169,_0x21de1a,_0x570ec3,_0x250317,_0x1d8bd9,_0x216246){const _0x6ed577=_0x714ef0;if(!this[_0x6ed577(0x2ac)])return;let _0x14bce9='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x21de1a,_0x452cca=_0x457661[_0x6ed577(0x252)](_0x14bce9);if(_0x452cca){_0x452cca[_0x6ed577(0x1b1)]({'left':_0x1d5169['x']+_0x570ec3-_0x4945a0[_0x6ed577(0x17b)],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)]});return;}let _0x37aced=new Nr(_0x14bce9,{'left':_0x1d5169['x']+_0x570ec3-_0x4945a0['adjHandleSize'],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)],'adjName':_0x21de1a,'shapeId':this['_activeImageId'],'unitId':_0x1d8bd9,'subUnitId':_0x216246,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x6ed577(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x6ed577(0x2ee)][_0x6ed577(0x181)](_0x37aced),this[_0x6ed577(0x354)](_0x37aced,_0x457661,_0x21de1a),_0x457661[_0x6ed577(0x213)](_0x37aced,_0x4232ac+0x1);}['_clearControls'](){const _0x42ff33=_0x714ef0;this[_0x42ff33(0x2ee)][_0x42ff33(0x1c3)]!==0x0&&(this['_shapes'][_0x42ff33(0x185)](_0x395514=>_0x395514[_0x42ff33(0x232)]()),this['_shapes']=[]);}['_getScrollInfo'](_0x22a1d3,_0xa5f4ee){const _0x14692e=_0x714ef0;var _0x154c3a;let _0x58f5d5={'x':0x0,'y':0x0},_0x1540ec=this[_0x14692e(0x2cf)][_0x14692e(0x2af)](_0x22a1d3);if(!_0x1540ec||!_0x1540ec[_0x14692e(0x3e6)](_0x44086e)[_0x14692e(0x1f4)](_0xa5f4ee))return _0x58f5d5;let _0x48d43b=_0x1540ec['with'](_0x4e89db),_0x4b84c3=_0x48d43b==null?void 0x0:_0x48d43b[_0x14692e(0x1b9)]();if(!_0x4b84c3)return _0x58f5d5;let _0x11524a=(_0x154c3a=this[_0x14692e(0x2be)][_0x14692e(0x2a6)](_0x22a1d3))==null?void 0x0:_0x154c3a[_0x14692e(0x2f0)](_0xa5f4ee);if(!_0x11524a)return _0x58f5d5;let _0xbe80ca=_0xe31858(_0x4b84c3[_0x14692e(0x3d9)],_0x4b84c3['sheetViewStartColumn'],_0x1540ec[_0x14692e(0x1d4)],_0x11524a);return _0xbe80ca?{'x':_0xbe80ca[_0x14692e(0x388)],'y':_0xbe80ca[_0x14692e(0x17a)]}:_0x58f5d5;}['_getZoomRatio'](_0xd4c95a,_0x503261){const _0x34b09e=_0x714ef0;var _0x5e07b3;let _0x168444=(_0x5e07b3=this[_0x34b09e(0x2be)]['getUnit'](_0xd4c95a))==null?void 0x0:_0x5e07b3[_0x34b09e(0x2f0)](_0x503261);return(_0x168444==null?void 0x0:_0x168444[_0x34b09e(0x3fb)]())??0x1;}[_0x714ef0(0x354)](_0x5cdb19,_0x5b64b3,_0x450211){const _0x139407=_0x714ef0;this[_0x139407(0x238)](_0x128476(_0x5cdb19[_0x139407(0x18e)][_0x139407(0x212)]((_0x5b1114,_0x5370e7)=>{const _0x76c6d1=_0x139407;var _0x117f31,_0x2efe98,_0x6c5c06;let {unitId:_0x20ca99,subUnitId:_0x491c14,drawingId:_0x11049a}=_0x5cdb19['getDrawingSearch'](),_0x3578dd=this[_0x76c6d1(0x1c7)](_0x20ca99,_0x491c14,_0x11049a);if(!(_0x3578dd!=null&&_0x3578dd[_0x76c6d1(0x29f)]))return;let {left:_0x386c7a,top:_0x3119a8,width:_0x167c8e,height:_0x19194a}=_0x3578dd['transform'];this['_baseLeft']=_0x386c7a||0x0,this[_0x76c6d1(0x263)]=_0x3119a8||0x0,this[_0x76c6d1(0x3e5)]=_0x167c8e||0x0,this[_0x76c6d1(0x297)]=_0x19194a||0x0;let _0x5c0c48=!!((_0x117f31=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x117f31[_0x76c6d1(0x18d)]),_0x567a6c=!!((_0x2efe98=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x2efe98['flipY']),_0x5ec8bc=((_0x6c5c06=_0x3578dd[_0x76c6d1(0x29f)])==null?void 0x0:_0x6c5c06[_0x76c6d1(0x2ae)])||0x0,_0x523492=this[_0x76c6d1(0x168)](_0x20ca99,_0x491c14,_0x11049a);if(!_0x523492)return;let _0x2b7dd0=this[_0x76c6d1(0x41f)](_0x523492[_0x76c6d1(0x33e)],this[_0x76c6d1(0x3e5)],this[_0x76c6d1(0x297)],_0x523492['adjustValues']);if(!_0x2b7dd0||(this[_0x76c6d1(0x20d)]=_0x2b7dd0,this['_activeAdjustInfo']=_0x2b7dd0[_0x76c6d1(0x2b1)](_0x450211),!this[_0x76c6d1(0x203)]))return;this[_0x76c6d1(0x1c0)]=!0x0,_0x5b64b3['disableObjectsEvent']();let _0x3b20ba=_0x523492[_0x76c6d1(0x33e)];this[_0x76c6d1(0x3e0)]=_0x5b64b3[_0x76c6d1(0x224)]['subscribeEvent']((_0x24fead,_0x295758)=>{const _0x3366b9=_0x76c6d1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x3d9a5b,offsetY:_0x3892e6}=_0x24fead,_0x3686ce=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3686ce)return;_0x5b64b3['disableObjectsEvent'](),_0x5b64b3['setCursor'](_0x141a72[_0x3366b9(0x3b1)]);let _0x29c7f3={'left':0x0,'top':0x0,'width':this[_0x3366b9(0x3e5)],'height':this[_0x3366b9(0x297)]},_0x2320f9=this[_0x3366b9(0x315)](_0x20ca99,_0x491c14),_0x5d42b7=this[_0x3366b9(0x16a)](_0x20ca99,_0x491c14),_0x295445=_0x3d9a5b/_0x5d42b7+_0x2320f9['x']-this[_0x3366b9(0x294)],_0x4649a9=_0x3892e6/_0x5d42b7+_0x2320f9['y']-this[_0x3366b9(0x263)];if(_0x5ec8bc!==0x0){let _0x524da3=this['_baseWidth']/0x2,_0x4e0fc8=this[_0x3366b9(0x297)]/0x2,_0x5a8537=_0x5ec8bc*Math['PI']/0xb4,_0x5c9d08=Math[_0x3366b9(0x1ac)](_0x5a8537),_0x486302=Math[_0x3366b9(0x267)](_0x5a8537),_0x48e834=_0x295445-_0x524da3,_0x17e6bd=_0x4649a9-_0x4e0fc8;_0x295445=_0x524da3+(_0x48e834*_0x5c9d08+_0x17e6bd*_0x486302),_0x4649a9=_0x4e0fc8+(-_0x48e834*_0x486302+_0x17e6bd*_0x5c9d08);}_0x5c0c48&&(_0x295445=this[_0x3366b9(0x3e5)]-_0x295445),_0x567a6c&&(_0x4649a9=this[_0x3366b9(0x297)]-_0x4649a9);let _0x5b7c16=this[_0x3366b9(0x20d)][_0x3366b9(0x302)](_0x29c7f3,{'x':_0x295445,'y':_0x4649a9},_0x3686ce,_0x5c0c48,_0x567a6c);if(Object[_0x3366b9(0x1a3)](_0x5b7c16)[_0x3366b9(0x1c3)]!==0x0){for(let [_0x3a5738,_0x51c9b6]of Object['entries'](_0x5b7c16))this['_activeShapeModel'][_0x3366b9(0x19c)](_0x3a5738,_0x51c9b6);this[_0x3366b9(0x20d)][_0x3366b9(0x2b8)]({'width':this['_baseWidth'],'height':this[_0x3366b9(0x297)]}),this[_0x3366b9(0x32e)](_0x20ca99,_0x491c14,_0x11049a,_0x5b7c16),this['_activeAdjustPointList']=this[_0x3366b9(0x20d)]['getDrawingPoints'](),this[_0x3366b9(0x25b)](),_0x295758[_0x3366b9(0x394)]();}}),this[_0x76c6d1(0x230)]=_0x5b64b3['onPointerUp$'][_0x76c6d1(0x212)]((_0x173787,_0x25fe12)=>{const _0x4975fe=_0x76c6d1;if(this[_0x4975fe(0x3e0)][_0x4975fe(0x187)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x5b64b3['resetCursor'](),this[_0x4975fe(0x20d)]){let _0xbbb77=this[_0x4975fe(0x20d)][_0x4975fe(0x26a)](),_0x367a3f={};for(let _0x58e869 of _0xbbb77){let _0x5c6d02=this[_0x4975fe(0x20d)][_0x4975fe(0x31b)](_0x58e869);_0x5c6d02!==void 0x0&&(_0x367a3f[_0x58e869]=_0x5c6d02);}this['_imageShapeClipController']['clipByShape'](_0x20ca99,_0x491c14,_0x11049a,_0x3b20ba,_0x367a3f);}this[_0x4975fe(0x203)]=void 0x0,this[_0x4975fe(0x20d)]=void 0x0,this[_0x4975fe(0x1c0)]=!0x1,_0x25fe12[_0x4975fe(0x394)](),_0x5b64b3[_0x4975fe(0x173)]();}),_0x5370e7[_0x76c6d1(0x394)]();})));}[_0x714ef0(0x32e)](_0x30da67,_0x6ce5a9,_0x46e6e1,_0x4fc967){const _0x381f38=_0x714ef0;let _0x484d3c=this[_0x381f38(0x2cf)][_0x381f38(0x2af)](_0x30da67);if(!_0x484d3c)return;let {scene:_0x13ad65}=_0x484d3c,_0xc59294=_0x562c30({'unitId':_0x30da67,'subUnitId':_0x6ce5a9,'drawingId':_0x46e6e1}),_0x5375e0=_0x13ad65[_0x381f38(0x3b6)](_0xc59294);if(_0x5375e0 instanceof _0x230c76){let _0x2f4576=_0x5375e0[_0x381f38(0x24a)]??{};_0x5375e0[_0x381f38(0x163)]({..._0x2f4576,..._0x4fc967}),_0x5375e0[_0x381f38(0x226)](!0x0);}}[_0x714ef0(0x1db)](){const _0x450c03=_0x714ef0;let _0x3d72ba=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x58aa7b['UNIVER_SHEET']);this['disposeWithMe'](_0x3d72ba[_0x450c03(0x371)](_0x1e4916(_0x3198c1=>_0x3198c1?_0x3198c1[_0x450c03(0x434)][_0x450c03(0x371)](_0x1e4916(_0x42818d=>{const _0x2e541=_0x450c03;if(!_0x42818d)return _0x535914;let _0x4aa288=_0x3198c1['getUnitId'](),_0x52c802=this[_0x2e541(0x2cf)]['getRenderUnitById'](_0x4aa288),_0xba93ca=_0x52c802==null?void 0x0:_0x52c802[_0x2e541(0x1d4)];return _0xba93ca?_0x12c65f(_0xba93ca):_0x535914;})):_0x535914))[_0x450c03(0x3e4)](_0xec765d=>{const _0x2caa56=_0x450c03;let _0x3d55c9=_0xec765d[_0x2caa56(0x218)]();this['disposeWithMe'](_0xec765d[_0x2caa56(0x224)][_0x2caa56(0x212)](()=>{const _0x376b9d=_0x2caa56;this[_0x376b9d(0x3bf)]&&this[_0x376b9d(0x3c9)]();})),this['disposeWithMe'](_0x3d55c9['changeStart$'][_0x2caa56(0x3e4)](_0x385779=>{const _0x3c0916=_0x2caa56;let {objects:_0x5e6e36}=_0x385779;if(this[_0x3c0916(0x25b)](),_0x5e6e36!==null&&_0x5e6e36[_0x3c0916(0x296)]===0x1){let _0x329bcf=_0x5e6e36[_0x3c0916(0x1f8)]()[_0x3c0916(0x3ee)]()[_0x3c0916(0x313)];_0x329bcf instanceof _0x230c76&&_0x329bcf[_0x3c0916(0x33e)]&&(this[_0x3c0916(0x3bf)]=!0x0);}})),this['disposeWithMe'](_0x3d55c9[_0x2caa56(0x3fa)]['subscribe'](()=>{const _0x489021=_0x2caa56;this[_0x489021(0x3bf)]&&this[_0x489021(0x3c9)]();})),this[_0x2caa56(0x238)](_0xec765d[_0x2caa56(0x367)][_0x2caa56(0x212)](()=>{const _0x59f355=_0x2caa56;this[_0x59f355(0x3bf)]&&(this[_0x59f355(0x3bf)]=!0x1,this[_0x59f355(0x25b)]());})),this[_0x2caa56(0x238)](_0x3d55c9['changeEnd$'][_0x2caa56(0x3e4)](()=>{const _0x599b10=_0x2caa56;if(this[_0x599b10(0x180)]&&this[_0x599b10(0x3af)]&&this[_0x599b10(0x2ac)]){let _0x2598cf=this[_0x599b10(0x168)](this[_0x599b10(0x180)],this['_subUnitId'],this[_0x599b10(0x2ac)]);if(_0x2598cf){var _0x35e16a,_0x2a9721;let _0x24884b=this[_0x599b10(0x1c7)](this['_unitId'],this['_subUnitId'],this[_0x599b10(0x2ac)]),_0x1ba115=(_0x24884b==null||(_0x35e16a=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x35e16a[_0x599b10(0x253)])||0x0,_0x3496d2=(_0x24884b==null||(_0x2a9721=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x2a9721['height'])||0x0,_0x3a54bd=this[_0x599b10(0x41f)](_0x2598cf[_0x599b10(0x33e)],_0x1ba115,_0x3496d2,_0x2598cf[_0x599b10(0x33c)]);_0x3a54bd&&(this['_activeAdjustPointList']=_0x3a54bd[_0x599b10(0x41e)](),this[_0x599b10(0x3c9)](),this[_0x599b10(0x25b)](!0x0));}}}));}));}[_0x714ef0(0x1e7)](){const _0x5edc6c=_0x714ef0;this['disposeWithMe'](this[_0x5edc6c(0x20f)][_0x5edc6c(0x3f5)][_0x5edc6c(0x3e4)](_0x186ab1=>{const _0x44c092=_0x5edc6c;if(_0x186ab1['length']===0x1){let _0x4687e8=_0x186ab1[0x0];if(_0x4687e8['drawingType']===_0x544f7a['DRAWING_IMAGE']){let {unitId:_0x491966,subUnitId:_0x1931eb,drawingId:_0xe0c88d}=_0x4687e8,_0x1f1229=this[_0x44c092(0x168)](_0x491966,_0x1931eb,_0xe0c88d);if(_0x1f1229){var _0x2dd6df,_0x485e24;this[_0x44c092(0x2ac)]=_0xe0c88d,this[_0x44c092(0x180)]=_0x491966,this[_0x44c092(0x3af)]=_0x1931eb;let _0x4cf1fe=this[_0x44c092(0x1c7)](_0x491966,_0x1931eb,_0xe0c88d),_0x5dccb7=(_0x4cf1fe==null||(_0x2dd6df=_0x4cf1fe['transform'])==null?void 0x0:_0x2dd6df[_0x44c092(0x253)])||0x0,_0x11a69e=(_0x4cf1fe==null||(_0x485e24=_0x4cf1fe[_0x44c092(0x29f)])==null?void 0x0:_0x485e24[_0x44c092(0x2d4)])||0x0,_0x1dd761=this[_0x44c092(0x41f)](_0x1f1229[_0x44c092(0x33e)],_0x5dccb7,_0x11a69e,_0x1f1229['adjustValues']);_0x1dd761&&(this[_0x44c092(0x2a7)]=_0x1dd761[_0x44c092(0x41e)]()),this[_0x44c092(0x3c9)](),this[_0x44c092(0x25b)](!0x0);}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();})),this[_0x5edc6c(0x238)](this[_0x5edc6c(0x20f)]['update$'][_0x5edc6c(0x3e4)](_0x1d8f2e=>{const _0x3503f0=_0x5edc6c;if(_0x1d8f2e['length']===0x1){let _0x4aae6c=_0x1d8f2e[0x0],_0x48fba0=this[_0x3503f0(0x20f)]['getDrawingByParam'](_0x4aae6c);(_0x48fba0==null?void 0x0:_0x48fba0['drawingType'])===_0x544f7a[_0x3503f0(0x430)]&&this['_activeImageId']===_0x4aae6c['drawingId']&&(this[_0x3503f0(0x3c9)](),this[_0x3503f0(0x25b)](!0x0));}})),this[_0x5edc6c(0x238)](this['_drawingManagerService']['remove$'][_0x5edc6c(0x3e4)](_0x38438f=>{const _0x1d4a69=_0x5edc6c;for(let _0x194576 of _0x38438f)this[_0x1d4a69(0x2ac)]===_0x194576[_0x1d4a69(0x290)]&&this[_0x1d4a69(0x2a8)]();}));}[_0x714ef0(0x2a8)](){const _0xf0d1d9=_0x714ef0;this[_0xf0d1d9(0x2ac)]=null,this[_0xf0d1d9(0x180)]=null,this['_subUnitId']=null,this[_0xf0d1d9(0x2a7)]=void 0x0,this[_0xf0d1d9(0x3c9)]();}};Xi=X([Y(0x1,_0x19d008),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(Q))],Xi);function Zi(_0x31402e){const _0x5374e5=_0x714ef0;return _0x31402e[_0x5374e5(0x1e1)]()||void 0x0;}function Qi(_0xdb59a7,_0x516cd2,_0x56ee7e){const _0x41d6dc=_0x714ef0;var _0x28e265;return((_0x28e265=_0xdb59a7[_0x41d6dc(0x16e)])==null?void 0x0:_0x28e265[_0x41d6dc(0x1e1)]())||_0x56ee7e['t'](_0x41d6dc(0x361)+_0x20bb51(_0xdb59a7['drawingType']))+'\x20'+(_0x516cd2+0x1);}function $i({PanelComponent:_0x45968a=_0xd50128}){const _0x3267b3=_0x714ef0;var _0x17de3d;let _0x671263=_0x3bcf4c(_0x30b59c),_0x12a4b4={'title':_0x671263['t'](_0x3267b3(0x1fb)),'empty':_0x671263['t'](_0x3267b3(0x338)),'showAll':_0x671263['t'](_0x3267b3(0x3d8)),'hideAll':_0x671263['t'](_0x3267b3(0x42f)),'lockAll':_0x671263['t'](_0x3267b3(0x1a6)),'unlockAll':_0x671263['t'](_0x3267b3(0x35b)),'moveForward':_0x671263['t'](_0x3267b3(0x189)),'moveBackward':_0x671263['t'](_0x3267b3(0x292)),'close':_0x671263['t']('drawing-ui.objectListPanel.close'),'show':_0x671263['t']('drawing-ui.objectListPanel.show'),'hide':_0x671263['t'](_0x3267b3(0x288)),'lock':_0x671263['t'](_0x3267b3(0x209)),'unlock':_0x671263['t'](_0x3267b3(0x386)),'lockHint':_0x671263['t'](_0x3267b3(0x283)),'unlockHint':_0x671263['t'](_0x3267b3(0x235)),'name':_0x671263['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x671263['t'](_0x3267b3(0x21c)),'description':_0x671263['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x671263['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x671263['t'](_0x3267b3(0x1e0)),'noSelection':_0x671263['t'](_0x3267b3(0x402)),'locate':_0x671263['t'](_0x3267b3(0x2ab)),'expand':_0x671263['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x671263['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x671263['t'](_0x3267b3(0x2a9)),'search':_0x671263['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x671263['t'](_0x3267b3(0x391)),'filterHidden':_0x671263['t'](_0x3267b3(0x352)),'filterLocked':_0x671263['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x671263['t'](_0x3267b3(0x26d)),'sectionFloating':_0x671263['t'](_0x3267b3(0x344))},_0x50d887=_0x3bcf4c(_0x2b8a3e),_0x41348d=_0x3bcf4c(_0x1d15d2),_0x3a5e19=_0x3bcf4c(_0x4ba6b3),_0x30c518=_0x3bcf4c(_0x19d008),_0x1dcb84=_0x3bcf4c(_0x1e1faa),[,_0x15519f]=_0x3da1b7(_0x5f20da=>_0x5f20da+0x1,0x0),_0xb3dbbf=_0x41348d[_0x3267b3(0x28a)](_0x58aa7b['UNIVER_SHEET']),_0x1ec76f=(_0xb3dbbf==null?void 0x0:_0xb3dbbf[_0x3267b3(0x1b0)]())??'',_0x1af784=(_0xb3dbbf==null||(_0x17de3d=_0xb3dbbf['getActiveSheet']())==null?void 0x0:_0x17de3d[_0x3267b3(0x15f)]())??'',_0x55b72b=_0x54184f(()=>_0x30c518[_0x3267b3(0x3f5)],_0x30c518['getFocusDrawings'](),!0x1,[_0x30c518]);_0x5c63a2(()=>{let _0x37517a=_0x50d887['onCommandExecuted'](()=>_0x15519f());return()=>_0x37517a['dispose']();},[_0x50d887]);let _0x4eb336=_0x1ec76f&&_0x1af784?_0x3a5e19[_0x3267b3(0x1a5)](_0x1ec76f,_0x1af784):{},_0x3f6fa5=(_0x1ec76f&&_0x1af784?_0x3a5e19['getDrawingOrder'](_0x1ec76f,_0x1af784):[])[_0x3267b3(0x316)](_0x5a9e5f=>_0x4eb336[_0x5a9e5f])['filter'](_0x2d640a=>!!_0x2d640a)[_0x3267b3(0x332)](),_0xd4d192=_0x3f6fa5[_0x3267b3(0x378)]((_0x3dc5b7,_0x63c10a)=>(_0x3dc5b7[_0x286e3b(_0x63c10a[_0x3267b3(0x198)])]+=0x1,_0x3dc5b7),{'canvas':0x0,'floating':0x0}),_0x26786b={'canvas':0x0,'floating':0x0},_0xa534ae=_0x3f6fa5[_0x3267b3(0x316)]((_0x585081,_0x11ae47)=>{const _0x4b3a51=_0x3267b3;let _0x234606=_0x286e3b(_0x585081[_0x4b3a51(0x198)]),_0x513133=_0x234606===_0x3904f4,_0x334752=_0x26786b[_0x234606]++;return{'id':_0x585081[_0x4b3a51(0x290)],'name':Qi(_0x585081,_0x11ae47,_0x671263),'description':_0x585081[_0x4b3a51(0x18c)],'visible':_0x585081[_0x4b3a51(0x182)]!==!0x0,'selectable':_0x585081['selectable']!==!0x1,'sectionId':_0x234606,'sectionTitle':_0x513133?_0x12a4b4[_0x4b3a51(0x357)]:_0x12a4b4[_0x4b3a51(0x2c9)],'capabilities':_0x513133?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x513133&&_0x334752>0x0,'canMoveBackward':!_0x513133&&_0x334752<_0xd4d192[_0x4b3a51(0x27a)]-0x1,'canReorder':!_0x513133};}),_0x51e679=_0x23fcdc(()=>(_0x55b72b??[])['filter'](_0x23a38d=>_0x23a38d[_0x3267b3(0x277)]===_0x1ec76f&&_0x23a38d[_0x3267b3(0x3d0)]===_0x1af784)[_0x3267b3(0x316)](_0x768f48=>_0x768f48['drawingId']),[_0x55b72b,_0x1af784,_0x1ec76f]),_0x1a68b5=_0x51e679[_0x51e679[_0x3267b3(0x1c3)]-0x1]??null,_0x671431=_0x4aa164=>_0x3a5e19[_0x3267b3(0x2da)]({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x4aa164})??null,_0x22fd2c=async _0x358fe3=>{const _0x410cf5=_0x3267b3;_0x1ec76f&&_0x358fe3[_0x410cf5(0x1c3)]&&await _0x50d887[_0x410cf5(0x40b)](_0x297360['id'],{'unitId':_0x1ec76f,'drawings':_0x358fe3});},_0x2278f5=async(_0x2e3886,_0x39d003)=>{_0x671431(_0x2e3886)&&await _0x22fd2c([{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x2e3886,..._0x39d003}]);},_0x1284e9=(_0x51ae9f,_0x137244)=>{const _0x4ba4db=_0x3267b3;if(!_0x1ec76f||!_0x1af784)return;let _0x307943=_0x137244?_0x51e679[_0x4ba4db(0x3ec)](_0x51ae9f)?_0x51e679[_0x4ba4db(0x3c0)](_0x121d57=>_0x121d57!==_0x51ae9f):[..._0x51e679,_0x51ae9f]:[_0x51ae9f];_0x50d887['syncExecuteCommand'](_0x2b2ec1['id'],_0x307943[_0x4ba4db(0x316)](_0x3099d7=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x3099d7})));let _0xf70dfe=_0x307943[_0x307943[_0x4ba4db(0x1c3)]-0x1];_0xf70dfe?_0x2179ed(_0x1dcb84,{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0xf70dfe}):_0x156f61(_0x1dcb84,_0x1ec76f);},_0x2bdf95=async(_0x28f07f,_0xa51f5c)=>{const _0x303c06=_0x3267b3;await _0x22fd2c(_0x28f07f[_0x303c06(0x316)](_0x1997f5=>_0x671431(_0x1997f5))[_0x303c06(0x3c0)](_0x10a5a4=>!!_0x10a5a4)['filter'](_0x172785=>_0x172785[_0x303c06(0x182)]!==!0x0!==_0xa51f5c)[_0x303c06(0x316)](_0x5ee25=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x5ee25[_0x303c06(0x290)],'hidden':!_0xa51f5c})));},_0x2641e5=async(_0x55b377,_0x2dd908)=>{const _0xbbeb69=_0x3267b3;await _0x22fd2c(_0x55b377['map'](_0x3170c2=>_0x671431(_0x3170c2))[_0xbbeb69(0x3c0)](_0x1ad0ce=>!!_0x1ad0ce)[_0xbbeb69(0x3c0)](_0x327d85=>_0x327d85['selectable']!==!0x1!==_0x2dd908)['map'](_0x281e60=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x281e60[_0xbbeb69(0x290)],'selectable':_0x2dd908})));},_0x5aba94=_0x507152=>{const _0x24a72e=_0x3267b3;let _0x395867=_0x671431(_0x507152);if(_0x395867)return _0x2641e5([_0x507152],_0x395867[_0x24a72e(0x2d6)]===!0x1);},_0x539739=async(_0x44e4f0,_0x13d387)=>{const _0x2d1497=_0x3267b3;var _0x33107;let _0x3b5539=Zi(_0x13d387);(((_0x33107=_0x671431(_0x44e4f0))==null?void 0x0:_0x33107[_0x2d1497(0x16e)])??void 0x0)!==_0x3b5539&&await _0x2278f5(_0x44e4f0,{'name':_0x3b5539});},_0x2c4232=async(_0x36d617,_0xc7fedd)=>{const _0x540dd4=_0x3267b3;var _0x4e4ae9;let _0x2c97aa=Zi(_0xc7fedd);(((_0x4e4ae9=_0x671431(_0x36d617))==null?void 0x0:_0x4e4ae9[_0x540dd4(0x18c)])??void 0x0)!==_0x2c97aa&&await _0x2278f5(_0x36d617,{'description':_0x2c97aa});},_0x2de48b=async(_0x5c0fd5,_0x4fa71a)=>{const _0x3e8fc6=_0x3267b3;_0x1ec76f&&_0x1af784&&await _0x50d887[_0x3e8fc6(0x40b)](_0x8e2df9['id'],{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingIds':[_0x5c0fd5],'arrangeType':_0x4fa71a});};return!_0x1ec76f||!_0x1af784?_0x230828(_0x3267b3(0x412),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x12a4b4[_0x3267b3(0x303)]}):_0x230828(_0x45968a,{'labels':_0x12a4b4,'items':_0xa534ae,'selectedIds':_0x51e679,'focusedId':_0x1a68b5,'showHeader':!0x1,'onSelect':_0x1284e9,'onSetVisible':_0x2bdf95,'onSetSelectable':_0x2641e5,'onCommitName':_0x539739,'onCommitDescription':_0x2c4232,'onMoveForward':async _0x376e8f=>_0x2de48b(_0x376e8f,_0x426c14[_0x3267b3(0x24f)]),'onMoveBackward':async _0x3b2f45=>_0x2de48b(_0x3b2f45,_0x426c14[_0x3267b3(0x3dd)]),'onToggleSelectable':_0x5aba94});}function ea(){return _0x230828($i,{'PanelComponent':_0x5174cb});}let ta=class extends _0xe29064{constructor(_0x27c934,_0x5ec6f7){const _0x3856f0=_0x714ef0;super(),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Rr,ea)),this[_0x3856f0(0x238)](_0x5ec6f7[_0x3856f0(0x268)]({'BottomIcon':_0x5d75f2,'FlipHorizontalIcon':_0x4b0f8a,'FlipVerticalIcon':_0x5e2243,'MoveDownIcon':_0x178ad9,'MoveUpIcon':_0x1ab950,'ObjectLayersIcon':_0xe11253,'ShapeFormatSettingIcon':_0x1496d5,'TopmostIcon':_0x215261})),this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](Jr,ti)),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Yr,Qr)),_0x27c934[_0x3856f0(0x200)](_0x4fdf51)||this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](_0x4fdf51,$r));}};ta=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],ta);let $=class extends _0xe29064{constructor(_0x1a2c0e){const _0x1c5c30=_0x714ef0;super(),this[_0x1c5c30(0x326)]=_0x1a2c0e,q(this,_0x1c5c30(0x1d7),new _0x50fa27(null)),q(this,_0x1c5c30(0x31e),this[_0x1c5c30(0x1d7)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x42a),new _0x50fa27(!0x1)),q(this,_0x1c5c30(0x17f),this[_0x1c5c30(0x42a)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x37d),void 0x0),this[_0x1c5c30(0x238)](this[_0x1c5c30(0x326)]['permissionPointUpdate$'][_0x1c5c30(0x3e4)](()=>{const _0x372e7e=_0x1c5c30;let _0x92f6d9=this[_0x372e7e(0x42e)]();_0x92f6d9!=null&&_0x92f6d9[_0x372e7e(0x206)]&&!this[_0x372e7e(0x3fd)](_0x92f6d9)&&this[_0x372e7e(0x380)](null);}));}[_0x714ef0(0x232)](){const _0x1604dc=_0x714ef0;this[_0x1604dc(0x2e3)](),this[_0x1604dc(0x1d7)]['next'](null),this[_0x1604dc(0x1d7)][_0x1604dc(0x1a4)](),this['_onSavingEditorData$'][_0x1604dc(0x3ee)](!0x1),this[_0x1604dc(0x42a)]['complete'](),super[_0x1604dc(0x232)]();}[_0x714ef0(0x380)](_0x2e0c40){const _0x193cca=_0x714ef0;(_0x2e0c40==null||!_0x2e0c40['visible']||this[_0x193cca(0x3fd)](_0x2e0c40))&&(this[_0x193cca(0x2e3)](),this[_0x193cca(0x1d7)][_0x193cca(0x3ee)](_0x2e0c40),(_0x2e0c40==null||_0x2e0c40[_0x193cca(0x206)]&&this[_0x193cca(0x42a)][_0x193cca(0x217)]())&&this['_onSavingEditorData$'][_0x193cca(0x3ee)](!0x1));}[_0x714ef0(0x2ce)](_0x512314){const _0x314f3d=_0x714ef0;this[_0x314f3d(0x42a)][_0x314f3d(0x3ee)](_0x512314);}[_0x714ef0(0x42e)](){const _0x5c44a4=_0x714ef0;return this[_0x5c44a4(0x1d7)][_0x5c44a4(0x217)]();}[_0x714ef0(0x3fd)](_0x51a91e){const _0x325379=_0x714ef0;let _0x2a8793=this[_0x325379(0x326)][_0x325379(0x3d2)](new _0xe0fab9(_0x51a91e[_0x325379(0x277)])['id']),_0xee7424=this['_permissionService']['getPermissionPoint'](new _0x123e53(_0x51a91e[_0x325379(0x277)],_0x51a91e[_0x325379(0x3d0)])['id']);return((_0x2a8793==null?void 0x0:_0x2a8793[_0x325379(0x313)])??!0x0)&&((_0xee7424==null?void 0x0:_0xee7424['value'])??!0x0);}['completeEditing'](_0x5865a6){const _0x141a8e=_0x714ef0;let _0x51eea8=this[_0x141a8e(0x42e)]();_0x51eea8&&this[_0x141a8e(0x37d)]===void 0x0&&(this[_0x141a8e(0x2ce)](!0x0),this[_0x141a8e(0x37d)]=requestAnimationFrame(()=>{const _0x493926=_0x141a8e;this['_completionFrame']=void 0x0,this[_0x493926(0x42e)]()===_0x51eea8&&this[_0x493926(0x380)](null);}));}['_clearCompletionFrame'](){const _0x29ec77=_0x714ef0;this[_0x29ec77(0x37d)]!==void 0x0&&(cancelAnimationFrame(this[_0x29ec77(0x37d)]),this[_0x29ec77(0x37d)]=void 0x0);}['cancelEditing'](){const _0x42fa64=_0x714ef0;this[_0x42fa64(0x42e)]()&&this[_0x42fa64(0x380)](null);}};$=X([Y(0x0,_0x9a590e)],$);let na=class extends _0xe29064{constructor(_0x4739b6,_0x1998c5,_0x4e8d29,_0x2db5b5,_0x405d6f,_0x562cdb){const _0x12fc48=_0x714ef0;super(),this[_0x12fc48(0x22a)]=_0x4739b6,this[_0x12fc48(0x210)]=_0x1998c5,this[_0x12fc48(0x26b)]=_0x4e8d29,this[_0x12fc48(0x20f)]=_0x2db5b5,this[_0x12fc48(0x1a2)]=_0x405d6f,this[_0x12fc48(0x251)]=_0x562cdb,q(this,_0x12fc48(0x17d),null),this['_initEvents'](),this['_initSelection'](),this[_0x12fc48(0x1f9)]();}[_0x714ef0(0x351)](){const _0x27f5b5=_0x714ef0;let {scene:_0x489fe1}=this[_0x27f5b5(0x22a)];this[_0x27f5b5(0x238)](_0x489fe1['onDblclick$'][_0x27f5b5(0x212)](_0x122bfd=>{const _0x3b33b5=_0x27f5b5;let {offsetX:_0x3da0cb,offsetY:_0x2b680a}=_0x122bfd,_0x12047d=_0x489fe1[_0x3b33b5(0x358)](_0x5be732['FromArray']([_0x3da0cb,_0x2b680a]));if(_0x12047d instanceof J){let _0x488fa0=this['_sheetsShapeService']['getShapeModel'](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]);if(_0x4cb876(this[_0x3b33b5(0x251)][_0x3b33b5(0x2fc)](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]))||_0x488fa0!=null&&_0x488fa0[_0x3b33b5(0x3c4)]()[_0x3b33b5(0x317)])return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x12047d[_0x3b33b5(0x277)],'subUnitId':_0x12047d['subUnitId'],'shapeId':_0x12047d[_0x3b33b5(0x21d)],'shapeKey':_0x12047d[_0x3b33b5(0x266)]});}}));}[_0x714ef0(0x336)](){const _0x1fe801=_0x714ef0;this[_0x1fe801(0x238)](this[_0x1fe801(0x20f)]['focus$'][_0x1fe801(0x3e4)](_0x8fa25b=>{const _0x9179ee=_0x1fe801;if(_0x8fa25b[_0x9179ee(0x1c3)]===0x1){let _0x4c1368=_0x8fa25b[0x0],_0x486204=this[_0x9179ee(0x20f)][_0x9179ee(0x2da)](_0x4c1368);if((_0x486204==null?void 0x0:_0x486204[_0x9179ee(0x198)])===_0x544f7a[_0x9179ee(0x2c1)]){var _0x39406d;let _0x1a65cc=this[_0x9179ee(0x26b)][_0x9179ee(0x42e)]();if((_0x1a65cc==null?void 0x0:_0x1a65cc[_0x9179ee(0x21d)])===_0x4c1368['drawingId']&&_0x1a65cc[_0x9179ee(0x206)])return;let _0x23e6f9=_0x4cb876(this[_0x9179ee(0x251)][_0x9179ee(0x2fc)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368[_0x9179ee(0x3d0)],_0x4c1368[_0x9179ee(0x290)])),_0x261fb6=!!((_0x39406d=this[_0x9179ee(0x251)][_0x9179ee(0x199)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368['subUnitId'],_0x4c1368['drawingId']))!=null&&_0x39406d[_0x9179ee(0x3c4)]()['formulaBinding']);(_0x23e6f9||_0x261fb6)&&this[_0x9179ee(0x26b)][_0x9179ee(0x380)](null);}else this['_shapeTextEditingService']['completeEditing']();}else this[_0x9179ee(0x26b)]['completeEditing']();})),this[_0x1fe801(0x238)](this['_drawingManagerService']['remove$'][_0x1fe801(0x3e4)](_0x30cb86=>{const _0x512c54=_0x1fe801;let _0x14d69a=this[_0x512c54(0x26b)][_0x512c54(0x42e)]();_0x14d69a&&_0x30cb86['some'](_0x13c0c0=>_0x13c0c0[_0x512c54(0x290)]===_0x14d69a[_0x512c54(0x21d)])&&this['_shapeTextEditingService'][_0x512c54(0x380)](null);}));}['_initEditingParams'](){const _0x394a31=_0x714ef0;this[_0x394a31(0x238)](this[_0x394a31(0x26b)][_0x394a31(0x31e)]['subscribe'](_0x389117=>{const _0x5016cd=_0x394a31;let {scene:_0x2ad9e8}=this[_0x5016cd(0x22a)];if(this[_0x5016cd(0x17d)]){let _0x184847=_0x2ad9e8['getObjectIncludeInGroup'](this[_0x5016cd(0x17d)]);_0x184847&&_0x184847['setEditing'](!0x1);}if(_0x389117){let _0x1c3bc9=!!_0x389117['visible'],_0x33730e=_0x2ad9e8[_0x5016cd(0x252)](_0x389117[_0x5016cd(0x172)]);_0x33730e&&(_0x33730e[_0x5016cd(0x380)](_0x1c3bc9),this[_0x5016cd(0x17d)]=_0x389117[_0x5016cd(0x172)]),this['_contextService']['setContextValue'](_0xd91ec1,_0x1c3bc9);}else this['_lastEditingShapeKey']=null,this[_0x5016cd(0x1a2)][_0x5016cd(0x237)](_0xd91ec1,!0x1);}));}};na=X([Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x5c502f($)),Y(0x3,_0x19d008),Y(0x4,_0x3ae1e3),Y(0x5,_0x5c502f(_0x5b8f71))],na);var ra=class extends na{[_0x714ef0(0x351)](){const _0x538858=_0x714ef0;let {scene:_0x208dc6}=this[_0x538858(0x22a)],_0xbfaef8=this[_0x538858(0x210)][_0x538858(0x2dd)](_0x9eb493);this['disposeWithMe'](_0x208dc6[_0x538858(0x40e)][_0x538858(0x212)](_0x37bde9=>{const _0x5cf06d=_0x538858;let {offsetX:_0x14f1c8,offsetY:_0x388c24}=_0x37bde9,_0x788583=_0x208dc6[_0x5cf06d(0x358)](_0x5be732[_0x5cf06d(0x271)]([_0x14f1c8,_0x388c24]));if(!(_0x788583 instanceof J))return;let _0x12d86c=this[_0x5cf06d(0x251)][_0x5cf06d(0x199)](_0x788583['unitId'],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]);_0x4cb876(this[_0x5cf06d(0x251)]['getShapeType'](_0x788583[_0x5cf06d(0x277)],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]))||_0x12d86c!=null&&_0x12d86c['getShapeData']()[_0x5cf06d(0x317)]||_0xbfaef8[_0x5cf06d(0x249)]('text',{'hostType':_0x58aa7b[_0x5cf06d(0x222)],'unitId':_0x788583[_0x5cf06d(0x277)],'subUnitId':_0x788583[_0x5cf06d(0x3d0)],'shapeId':_0x788583[_0x5cf06d(0x21d)]});}));}};const ia={...Ui};let aa=class extends _0xe29064{constructor(_0x4bace3,_0x154db3,_0x3d920c,_0x46f1b6,_0x1ee4a1,_0x2b5fff,_0x5f132a,_0x195a35){const _0x3e8cc2=_0x714ef0;super(),this[_0x3e8cc2(0x369)]=_0x4bace3,this[_0x3e8cc2(0x251)]=_0x154db3,this[_0x3e8cc2(0x1a7)]=_0x3d920c,this[_0x3e8cc2(0x20f)]=_0x46f1b6,this[_0x3e8cc2(0x247)]=_0x1ee4a1,this[_0x3e8cc2(0x1a2)]=_0x2b5fff,this['_renderManagerService']=_0x5f132a,this[_0x3e8cc2(0x26b)]=_0x195a35,q(this,_0x3e8cc2(0x1af),null),this[_0x3e8cc2(0x369)]['mergeMenu'](ia),this[_0x3e8cc2(0x30c)](),this[_0x3e8cc2(0x238)](this[_0x3e8cc2(0x26b)][_0x3e8cc2(0x31e)][_0x3e8cc2(0x3e4)](_0x47bbdd=>{_0x47bbdd&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x5a809c=_0x714ef0;this['_shapePopupMenuDisposable']||=this[_0x5a809c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x5a809c(0x222)],_0x42533e=>this[_0x5a809c(0x305)](_0x42533e)));}[_0x714ef0(0x30c)](){const _0x3f0876=_0x714ef0;this['_sheetCanvasPopManagerService'][_0x3f0876(0x356)](_0x544f7a[_0x3f0876(0x2c1)],(_0x749511,_0x571dbd,_0x28b2d6,_0x31ad65)=>{const _0x126512=_0x3f0876;let _0x42dc98=this['_sheetsShapeService'][_0x126512(0x1ad)](_0x749511,_0x571dbd,_0x28b2d6),_0x4ac96b=this['_sheetsShapeService'][_0x126512(0x3a4)](_0x749511,_0x571dbd,_0x28b2d6),_0x4aa28d=_0x42dc98!==void 0x0&&!_0x4cb876(_0x42dc98)&&!(_0x4ac96b!=null&&_0x4ac96b['formulaBinding']);return[{'label':'sheets-shape-ui.editShape','index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x2bf)},'disable':!0x1},..._0x4aa28d?[{'label':_0x126512(0x1ab),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x281)},'disable':!0x1}]:[],{'label':_0x126512(0x298),'index':0x2,'commandId':_0x3e89af['id'],'commandParams':{'unitId':_0x749511,'drawings':[{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'drawingType':_0x31ad65}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipH':!0x0},'disable':!0x1},{'label':_0x126512(0x31c),'index':0x4,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipV':!0x0},'disable':!0x1}];},_0x3f0876(0x40c));}['_popupMenuListener'](_0x5b3539){const _0x106e5b=_0x714ef0;let _0x59cb04=new _0x5941cd(),_0x4d07ff=null,_0x1b0f5a=()=>{const _0x336e92=_0x5396;if(!_0x4d07ff)return;let _0x59739a=this[_0x336e92(0x20f)][_0x336e92(0x3dc)](),_0x1eb578=_0x59739a[_0x336e92(0x1c3)]===0x0||_0x59739a['length']===0x1&&_0x59739a['some'](_0x5ed85a=>_0x5ed85a['unitId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x277)])&&_0x5ed85a[_0x336e92(0x3d0)]===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x3d0)])&&_0x5ed85a['drawingId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x290)]));_0x4d07ff=null,_0x1eb578&&(this['_contextService'][_0x336e92(0x237)](_0x435760,!0x1),this[_0x336e92(0x20f)]['focusDrawing'](null));};return _0x59cb04[_0x106e5b(0x25e)](_0x5b3539[_0x106e5b(0x1c5)][_0x106e5b(0x3e4)](()=>{const _0x57bda2=_0x106e5b;let _0x38eb59=_0x5b3539['getSelectedObjectMap']();if(_0x38eb59[_0x57bda2(0x296)]>0x1){_0x1b0f5a();return;}let _0x1db376=_0x38eb59[_0x57bda2(0x1f8)]()[_0x57bda2(0x3ee)]()['value'];if(!_0x1db376){_0x1b0f5a();return;}let _0x24ec04=this[_0x57bda2(0x20f)][_0x57bda2(0x208)](_0x1db376[_0x57bda2(0x266)]);if(!_0x24ec04||_0x24ec04[_0x57bda2(0x198)]!==_0x544f7a[_0x57bda2(0x2c1)]){_0x1b0f5a();return;}let {unitId:_0x39f27b,subUnitId:_0x7620cc,drawingId:_0x55e5b8}=_0x24ec04;_0x4d07ff={'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8},this[_0x57bda2(0x1a2)][_0x57bda2(0x237)](_0x435760,!0x0),this[_0x57bda2(0x20f)][_0x57bda2(0x3dc)]()[_0x57bda2(0x1f7)](_0x3cc23f=>_0x3cc23f[_0x57bda2(0x277)]===_0x39f27b&&_0x3cc23f[_0x57bda2(0x3d0)]===_0x7620cc&&_0x3cc23f[_0x57bda2(0x290)]===_0x55e5b8)||this[_0x57bda2(0x20f)][_0x57bda2(0x36f)]([{'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8}]);})),_0x59cb04['add'](_0x5b3539[_0x106e5b(0x1e5)][_0x106e5b(0x3e4)](()=>{_0x1b0f5a();})),_0x128476(()=>{const _0x4ce89a=_0x106e5b;_0x59cb04[_0x4ce89a(0x232)](),_0x1b0f5a();});}[_0x714ef0(0x38f)](){const _0xa5bb49=_0x714ef0;this[_0xa5bb49(0x1a2)][_0xa5bb49(0x237)](_0x435760,!0x1),this[_0xa5bb49(0x20f)][_0xa5bb49(0x36f)](null);}};aa=X([Y(0x0,_0x308400),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x2b8a3e),Y(0x3,_0x19d008),Y(0x4,_0x5c502f(_0x2373db)),Y(0x5,_0x3ae1e3),Y(0x6,_0x1e1faa),Y(0x7,_0x5c502f($))],aa);function oa(_0x3d34c3,_0x2df8d0,_0x2f1c2d,_0x596b80){const _0x2af13e=_0x714ef0;let _0x47b982=_0x16a868(_0x3d34c3,_0x2df8d0,_0x2f1c2d),_0x210c29=[];for(let _0x322a7b of _0x2df8d0){let _0x3266e3=_0x47b982[_0x2af13e(0x3d5)][_0x2af13e(0x2dd)](_0x322a7b[_0x2af13e(0x290)]),_0x3be3bc=_0x596b80(_0x322a7b);_0x3266e3&&_0x3be3bc&&_0x210c29[_0x2af13e(0x181)]({'targetShapeId':_0x3266e3,'source':_0x3be3bc});}return _0x210c29;}let sa=class extends _0xe29064{constructor(_0x3f5855,_0x1c46ff,_0x5a8cac,_0x4f5718){const _0x5f011b=_0x714ef0;super(),this[_0x5f011b(0x2be)]=_0x3f5855,this[_0x5f011b(0x1d8)]=_0x1c46ff,this[_0x5f011b(0x404)]=_0x5a8cac,this[_0x5f011b(0x251)]=_0x4f5718,this[_0x5f011b(0x1dd)]();}[_0x714ef0(0x1dd)](){const _0x5e859f=_0x714ef0;this[_0x5e859f(0x238)](this[_0x5e859f(0x1d8)]['interceptCommand']({'getMutations':_0x287fa9=>{const _0x1b58dd=_0x5e859f;if(_0x287fa9['id']===_0x21d984['id']){let _0x46ee9b=_0x510a30(this[_0x1b58dd(0x2be)],_0x287fa9[_0x1b58dd(0x387)]);if(!_0x46ee9b)return{'redos':[],'undos':[]};let {unitId:_0x14220c,subUnitId:_0x60e8da}=_0x46ee9b,_0x33a0c0=this[_0x1b58dd(0x404)][_0x1b58dd(0x1a5)](_0x14220c,_0x60e8da),_0x3b1599=Object[_0x1b58dd(0x1f8)](_0x33a0c0)[_0x1b58dd(0x3c0)](_0x3ae10b=>_0x3ae10b[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x3b1599[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x130a98=[],_0x21b89a=[];for(let _0x19ee2e=0x0;_0x19ee2e<_0x3b1599[_0x1b58dd(0x1c3)];_0x19ee2e++){let _0x3c4509=_0x3b1599[_0x19ee2e],_0x4378bb=this[_0x1b58dd(0x251)][_0x1b58dd(0x199)](_0x3c4509[_0x1b58dd(0x277)],_0x3c4509[_0x1b58dd(0x3d0)],_0x3c4509['drawingId']);_0x4378bb&&(_0x130a98[_0x1b58dd(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)]}}),_0x21b89a[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)],'shapeType':_0x4378bb[_0x1b58dd(0x2fc)](),'shapeData':JSON['parse'](JSON[_0x1b58dd(0x3cb)](_0x4378bb[_0x1b58dd(0x3c4)]()))}}));}return{'redos':_0x130a98,'undos':_0x21b89a};}if(_0x287fa9['id']===_0x2b64f6['id']){let {unitId:_0x43fae3,subUnitId:_0x49f897,targetSubUnitId:_0x556d3c,copyContext:_0xfe2d49}=_0x287fa9[_0x1b58dd(0x387)];if(!_0x43fae3||!_0x49f897||!_0x556d3c)return{'redos':[],'undos':[]};let _0x5d51e7=this[_0x1b58dd(0x404)]['getDrawingData'](_0x43fae3,_0x49f897),_0x5b7710=Object[_0x1b58dd(0x1f8)](_0x5d51e7)['filter'](_0x2fdfd4=>_0x2fdfd4[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x5b7710[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x56805a=oa(_0xfe2d49,_0x5b7710,{'unitId':_0x43fae3,'sourceSubUnitId':_0x49f897,'targetSubUnitId':_0x556d3c},_0x534071=>{const _0x51535b=_0x1b58dd;let _0x5c331a=this[_0x51535b(0x251)][_0x51535b(0x199)](_0x534071[_0x51535b(0x277)],_0x534071['subUnitId'],_0x534071['drawingId']);if(_0x5c331a)return{'shapeType':_0x5c331a[_0x51535b(0x2fc)](),'shapeData':JSON['parse'](JSON['stringify'](_0x5c331a[_0x51535b(0x3c4)]()))};}),_0x458585=[],_0x24ebb3=[];for(let {targetShapeId:_0x5c678f,source:_0x5479be}of _0x56805a)_0x458585[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f,'shapeType':_0x5479be[_0x1b58dd(0x3b7)],'shapeData':_0x5479be[_0x1b58dd(0x3be)]}}),_0x24ebb3['push']({'id':_0x2506a4['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f}});return{'redos':_0x458585,'undos':_0x24ebb3};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x5c502f(_0x1d15d2)),Y(0x1,_0x5c502f(_0x2a88c5)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71))],sa);let ca=class extends _0xe29064{constructor(_0x303663,_0x22633b,_0x1cf3f3,_0x5ef66e,_0x5f429a,_0x2dbf65){const _0x53a8b6=_0x714ef0;super(),this[_0x53a8b6(0x1a7)]=_0x303663,this['_renderManagerService']=_0x22633b,this[_0x53a8b6(0x20f)]=_0x1cf3f3,this[_0x53a8b6(0x1cb)]=_0x5ef66e,this[_0x53a8b6(0x1c4)]=_0x5f429a,this[_0x53a8b6(0x416)]=_0x2dbf65,q(this,_0x53a8b6(0x421),new Set()),this[_0x53a8b6(0x1da)]();}[_0x714ef0(0x1da)](){const _0x203980=_0x714ef0;this[_0x203980(0x35f)](),this[_0x203980(0x227)](),this[_0x203980(0x311)]();}[_0x714ef0(0x35f)](){const _0x4a6990=_0x714ef0;this[_0x4a6990(0x238)](this[_0x4a6990(0x20f)][_0x4a6990(0x1f6)][_0x4a6990(0x3e4)](_0x31233a=>{const _0x2a879b=_0x4a6990;this[_0x2a879b(0x19f)](_0x31233a);}));}[_0x714ef0(0x227)](){const _0x97f055=_0x714ef0;this['disposeWithMe'](this[_0x97f055(0x1a7)][_0x97f055(0x40f)]((_0x23c9f3,_0xd8fca4)=>{const _0x2129dc=_0x97f055;if(_0x23c9f3['id']===_0x197dab['id']){let {unitId:_0x71c727,subUnitId:_0xca694c,shapeId:_0x535327}=_0x23c9f3[_0x2129dc(0x387)],_0x441d62=this['_getSceneAndTransformerByDrawingSearch'](_0x71c727),_0x4f7b5f=_0x562c30({'unitId':_0x71c727,'subUnitId':_0xca694c,'drawingId':_0x535327}),_0x2a99b2=_0x441d62==null?void 0x0:_0x441d62['scene']['getObjectIncludeInGroup'](_0x4f7b5f);_0x2a99b2&&(this[_0x2129dc(0x416)]['refreshShapeFillImage'](_0x2a99b2),this['_sheetDrawingShapeRenderController'][_0x2129dc(0x1c2)](_0x2a99b2,{'unitId':_0x71c727,'subUnitId':_0xca694c,'shapeId':_0x535327}),_0x2a99b2[_0x2129dc(0x226)](!0x0));}else{if(_0x23c9f3['id']===_0x269d0a['id']){var _0x33d53b;let {unitId:_0x12d314,subUnitId:_0x21a054,shapeId:_0x14d3a6}=_0x23c9f3[_0x2129dc(0x387)],_0x147873=this[_0x2129dc(0x190)](_0x12d314);if(_0x147873==null)return;let {scene:_0x44ac10}=_0x147873,_0x1ad6e5=_0x562c30({'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}),_0x213fcc=_0x44ac10[_0x2129dc(0x252)](_0x1ad6e5);if(!((_0x33d53b=this[_0x2129dc(0x2cf)][_0x2129dc(0x2af)](_0x12d314))!=null&&_0x33d53b[_0x2129dc(0x3e6)](_0x44086e)[_0x2129dc(0x1f4)](_0x21a054)))return!0x1;if(_0x213fcc)return;if(_0xd8fca4!=null&&_0xd8fca4[_0x2129dc(0x383)]){queueMicrotask(()=>{const _0x4f0a8d=_0x2129dc;this['_disposed']||this[_0x4f0a8d(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);});return;}this[_0x2129dc(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);}}}));}[_0x714ef0(0x311)](){const _0x5d15d6=_0x714ef0;this[_0x5d15d6(0x238)](this['_drawingManagerService'][_0x5d15d6(0x22f)][_0x5d15d6(0x3e4)](_0x1b28b1=>{_0x1b28b1['forEach'](_0x54aa4d=>{const _0x5d919b=_0x5396;let {unitId:_0x443dd9,subUnitId:_0x25a842,drawingId:_0x285346}=_0x54aa4d,_0x39c7f7=this[_0x5d919b(0x20f)][_0x5d919b(0x2da)](_0x54aa4d);if(_0x39c7f7==null)return;let {transform:_0x47f08e,drawingType:_0x426d86,srcRect:_0x1f5fc2,prstGeom:_0x5de441}=_0x39c7f7;if(_0x426d86!==_0x544f7a[_0x5d919b(0x2c1)])return;let _0x589959=this[_0x5d919b(0x190)](_0x443dd9);if(_0x589959==null)return;let {scene:_0x21065b,transformer:_0x1e4a34}=_0x589959;if(_0x47f08e==null)return!0x0;let _0x192a30=_0x562c30({'unitId':_0x443dd9,'subUnitId':_0x25a842,'drawingId':_0x285346}),_0x356c82=_0x21065b[_0x5d919b(0x252)](_0x192a30);if(_0x356c82==null)return!0x0;_0x356c82[_0x5d919b(0x323)](_0x1f5fc2),_0x356c82[_0x5d919b(0x3b4)](_0x5de441);});}));}[_0x714ef0(0x19f)](_0x13fdbc){const _0x533d8d=_0x714ef0;for(let _0x3d63d1 of _0x13fdbc){var _0x58fdbc;let {unitId:_0x5efd3c,subUnitId:_0x184af9,drawingId:_0x57b4a}=_0x3d63d1,_0x54b590=this[_0x533d8d(0x190)](_0x5efd3c),_0x3ab308=(_0x58fdbc=_0x52a805(this[_0x533d8d(0x1cb)],_0x5efd3c))==null?void 0x0:_0x58fdbc[_0x533d8d(0x3d0)];if(_0x54b590==null||_0x3ab308!==_0x184af9)return;let _0x5652a0=_0x562c30({'unitId':_0x5efd3c,'subUnitId':_0x184af9,'drawingId':_0x57b4a});if(this['_insertingShapeKeys'][_0x533d8d(0x2c6)](_0x5652a0)||_0x54b590[_0x533d8d(0x1d4)]['getObjectIncludeInGroup'](_0x5652a0)!=null)return;let _0x52c277=this[_0x533d8d(0x20f)]['getDrawingByParam'](_0x3d63d1);if(_0x52c277==null||_0x52c277[_0x533d8d(0x198)]!==_0x544f7a[_0x533d8d(0x2c1)])return;let _0x66e6d3=_0x52c277[_0x533d8d(0x307)]||{};if(_0x4cb876(_0x66e6d3[_0x533d8d(0x3b7)])){let _0x221721=_0x52c277['transform'];_0x221721&&(_0x52c277[_0x533d8d(0x29f)]={..._0x221721,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x533d8d(0x25e)](_0x5652a0);try{this['_sheetDrawingShapeRenderController'][_0x533d8d(0x258)](_0x52c277,_0x54b590[_0x533d8d(0x1d4)]);}finally{this['_insertingShapeKeys'][_0x533d8d(0x2a2)](_0x5652a0);}queueMicrotask(()=>{const _0x479495=_0x533d8d;if(this['_disposed'])return;let _0x3914fe=_0x562c30(_0x3d63d1);if(!_0x54b590[_0x479495(0x1d4)][_0x479495(0x252)](_0x3914fe))return;let _0x4c35bf=this[_0x479495(0x20f)][_0x479495(0x2da)](_0x3d63d1);_0x4c35bf&&this[_0x479495(0x20f)][_0x479495(0x285)]([_0x4c35bf]);});}}[_0x714ef0(0x190)](_0x329eed){const _0x433a5b=_0x714ef0;if(_0x329eed==null)return;let _0x37bc95=this['_renderManagerService'][_0x433a5b(0x2af)](_0x329eed),_0x23159e=_0x37bc95==null?void 0x0:_0x37bc95[_0x433a5b(0x1d4)];return _0x23159e==null?null:{'scene':_0x23159e,'transformer':_0x23159e[_0x433a5b(0x218)]()};}};ca=X([Y(0x0,_0x2b8a3e),Y(0x1,_0x1e1faa),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(_0x596343)),Y(0x5,_0x5c502f(Z))],ca);const la={'normal':{'fill':_0x4945a0[_0x714ef0(0x34c)],'stroke':_0x4945a0[_0x714ef0(0x280)],'strokeWidth':_0x4945a0[_0x714ef0(0x2ba)]},'highlighted':{'fill':_0x714ef0(0x312),'stroke':_0x714ef0(0x37e),'strokeWidth':0x2}};var ua=class extends _0x240da9{constructor(_0x2a146d,_0xa67886){const _0x30aafd=_0x714ef0;super(_0x2a146d,_0xa67886),q(this,_0x30aafd(0x335),''),q(this,_0x30aafd(0x3e1),-0x1),q(this,_0x30aafd(0x180),''),q(this,_0x30aafd(0x3af),''),q(this,_0x30aafd(0x3c5),!0x1),_0xa67886&&this['setShapeProps'](_0xa67886);}[_0x714ef0(0x337)](){const _0x5b1b29=_0x714ef0;return{'unitId':this[_0x5b1b29(0x180)],'subUnitId':this[_0x5b1b29(0x3af)],'shapeId':this[_0x5b1b29(0x335)],'cxnIndex':this['_cxnIndex']};}[_0x714ef0(0x18b)](_0x41b843){const _0x6d682c=_0x714ef0;this['_isHighlighted']!==_0x41b843&&(this['_isHighlighted']=_0x41b843,this[_0x6d682c(0x226)](!0x0));}[_0x714ef0(0x3b9)](){const _0x2f9b6f=_0x714ef0;return this[_0x2f9b6f(0x3c5)];}[_0x714ef0(0x30a)](_0x322e4f){const _0x4ea83d=_0x714ef0;_0x322e4f[_0x4ea83d(0x1e6)]!==void 0x0&&(this['_targetShapeId']=_0x322e4f[_0x4ea83d(0x1e6)]),_0x322e4f[_0x4ea83d(0x1bc)]!==void 0x0&&(this['_cxnIndex']=_0x322e4f['cxnIndex']),_0x322e4f[_0x4ea83d(0x277)]!==void 0x0&&(this[_0x4ea83d(0x180)]=_0x322e4f[_0x4ea83d(0x277)]),_0x322e4f[_0x4ea83d(0x3d0)]!==void 0x0&&(this['_subUnitId']=_0x322e4f[_0x4ea83d(0x3d0)]),_0x322e4f[_0x4ea83d(0x3b9)]!==void 0x0&&(this[_0x4ea83d(0x3c5)]=_0x322e4f[_0x4ea83d(0x3b9)]),this[_0x4ea83d(0x1b1)]({'width':_0x322e4f['width']??_0x4945a0[_0x4ea83d(0x389)]*0x2,'height':_0x322e4f[_0x4ea83d(0x2d4)]??_0x4945a0[_0x4ea83d(0x389)]*0x2});}[_0x714ef0(0x24b)](_0x2bd096){const _0x49832d=_0x714ef0;let _0x45608e=this['_isHighlighted']?la[_0x49832d(0x2de)]:la['normal'];_0x540920[_0x49832d(0x385)](_0x2bd096,{'radius':_0x4945a0[_0x49832d(0x389)],'fill':_0x45608e[_0x49832d(0x3f6)],'stroke':_0x45608e['stroke'],'strokeWidth':_0x45608e[_0x49832d(0x166)],'evented':!0x0});}};let da=class extends _0xe29064{constructor(_0x3c8651,_0x12a7e9,_0x189cc3,_0x1f4cb3){const _0x3d1fac=_0x714ef0;super(),this[_0x3d1fac(0x22a)]=_0x3c8651,this[_0x3d1fac(0x2cf)]=_0x12a7e9,this[_0x3d1fac(0x20f)]=_0x189cc3,this['_sheetsShapeService']=_0x1f4cb3,q(this,_0x3d1fac(0x165),[]),q(this,_0x3d1fac(0x3d3),null),q(this,_0x3d1fac(0x188),-0x1),q(this,'_currentScene',null),q(this,_0x3d1fac(0x180),''),q(this,_0x3d1fac(0x3af),''),q(this,_0x3d1fac(0x38a),null);}['startConnectionDetection'](_0x421bda,_0x175c92,_0x65dfb2,_0x5991fe){const _0x1b9581=_0x714ef0;this[_0x1b9581(0x3ce)]=_0x421bda,this['_unitId']=_0x175c92,this[_0x1b9581(0x3af)]=_0x65dfb2,this[_0x1b9581(0x38a)]=_0x5991fe;}[_0x714ef0(0x2e8)](_0x48b561){const _0x5e52e1=_0x714ef0;if(!this[_0x5e52e1(0x3ce)])return null;let _0x170f8b=this[_0x5e52e1(0x26f)](_0x48b561);return _0x170f8b?(this[_0x5e52e1(0x3d3)]!==_0x170f8b[_0x5e52e1(0x21d)]&&(this[_0x5e52e1(0x342)](),this[_0x5e52e1(0x176)](_0x170f8b[_0x5e52e1(0x21d)],_0x170f8b[_0x5e52e1(0x2e9)]),this[_0x5e52e1(0x3d3)]=_0x170f8b[_0x5e52e1(0x21d)]),this[_0x5e52e1(0x32f)](_0x48b561)):(this['_activeTargetShapeId']!==null&&(this[_0x5e52e1(0x342)](),this['_activeTargetShapeId']=null),null);}[_0x714ef0(0x340)](){const _0xf32714=_0x714ef0;this[_0xf32714(0x342)](),this[_0xf32714(0x3ce)]=null,this[_0xf32714(0x3d3)]=null,this[_0xf32714(0x188)]=-0x1,this[_0xf32714(0x38a)]=null;}[_0x714ef0(0x329)](){const _0x23cde5=_0x714ef0;return this[_0x23cde5(0x3d3)]===null||this[_0x23cde5(0x188)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x23cde5(0x188)]};}['_findShapeAtPoint'](_0x37263d){const _0x27d820=_0x714ef0;let _0x3d0433=this[_0x27d820(0x20f)][_0x27d820(0x1a5)](this[_0x27d820(0x180)],this['_subUnitId']);for(let _0x183984 of Object[_0x27d820(0x1a3)](_0x3d0433)){if(_0x183984===this[_0x27d820(0x38a)]||_0x3d0433[_0x183984][_0x27d820(0x198)]!==_0x544f7a[_0x27d820(0x2c1)])continue;let _0x419ef6=this[_0x27d820(0x251)][_0x27d820(0x199)](this['_unitId'],this[_0x27d820(0x3af)],_0x183984);if(!_0x419ef6||_0x4cb876(_0x419ef6[_0x27d820(0x2fc)]())||_0x419ef6[_0x27d820(0x3e3)]()['length']===0x0||!this[_0x27d820(0x3ce)])continue;let _0x2d106a=_0x562c30({'unitId':this[_0x27d820(0x180)],'subUnitId':this[_0x27d820(0x3af)],'drawingId':_0x183984}),_0x42546b=this['_currentScene'][_0x27d820(0x252)](_0x2d106a);if(!_0x42546b)continue;let {left:_0x46cad6,top:_0x5c69f4,width:_0x135e7f,height:_0x2adb32}=_0x42546b[_0x27d820(0x27e)](),_0x4b1f72=_0x46cad6+_0x135e7f/0x2,_0x434554=_0x5c69f4+_0x2adb32/0x2,_0x2d3872=_0x42546b[_0x27d820(0x29f)][_0x27d820(0x231)](),_0x5bbf68=new _0x5a3b07([_0x2d3872[0x0],_0x2d3872[0x1],_0x2d3872[0x2],_0x2d3872[0x3],_0x4b1f72,_0x434554]),_0x4db4d8=_0x42546b[_0x27d820(0x20a)](),_0x2db424=(_0x42546b[_0x27d820(0x3eb)]&&(_0x4db4d8==null?void 0x0:_0x4db4d8[_0x27d820(0x3d6)])===_0x61e19a['GROUP']?_0x4db4d8[_0x27d820(0x2dc)][_0x27d820(0x196)](_0x5bbf68):_0x5bbf68)[_0x27d820(0x265)]()[_0x27d820(0x171)](_0x37263d),_0x5e3079=_0x135e7f/0x2,_0x1f01aa=_0x2adb32/0x2;if(_0x2db424['x']>=-_0x5e3079-0x5&&_0x2db424['x']<=_0x5e3079+0x5&&_0x2db424['y']>=-_0x1f01aa-0x5&&_0x2db424['y']<=_0x1f01aa+0x5)return{'shapeId':_0x183984,'shapeModel':_0x419ef6};}return null;}[_0x714ef0(0x176)](_0xe1e896,_0x488012){const _0x590e64=_0x714ef0;if(!this[_0x590e64(0x3ce)])return;let _0x5d2068=_0x562c30({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xe1e896}),_0x256fb4=this[_0x590e64(0x3ce)][_0x590e64(0x252)](_0x5d2068);if(!_0x256fb4)return;let {left:_0x3749b7,top:_0x1a9f57,width:_0x2c85d2,height:_0x1d55de}=_0x256fb4[_0x590e64(0x27e)](),_0x197800=_0x3749b7+_0x2c85d2/0x2,_0x5b54d9=_0x1a9f57+_0x1d55de/0x2,_0x54e795=_0x256fb4['transform'][_0x590e64(0x231)](),_0x1a3a5b=new _0x5a3b07([_0x54e795[0x0],_0x54e795[0x1],_0x54e795[0x2],_0x54e795[0x3],_0x197800,_0x5b54d9]),_0x28a4ff=_0x256fb4['getParent'](),_0x276dad=_0x256fb4[_0x590e64(0x3eb)]&&(_0x28a4ff==null?void 0x0:_0x28a4ff[_0x590e64(0x3d6)])===_0x61e19a['GROUP']?_0x28a4ff['ancestorTransform']['multiply'](_0x1a3a5b):_0x1a3a5b;_0x488012[_0x590e64(0x2b8)]({'width':_0x2c85d2,'height':_0x1d55de});let _0x343171=_0x488012[_0x590e64(0x3e3)]();for(let _0x52e7e4 of _0x343171){let _0x29f2d7=_0x52e7e4['x']-_0x2c85d2/0x2,_0x617d57=_0x52e7e4['y']-_0x1d55de/0x2,_0x5358ca=_0x276dad[_0x590e64(0x171)]({'x':_0x29f2d7,'y':_0x617d57}),_0x2ced0d=_0x5358ca['x'],_0x5e407e=_0x5358ca['y'],_0xc74ef6=new ua(_0x590e64(0x418)+_0xe1e896+'-'+_0x52e7e4[_0x590e64(0x330)],{'left':_0x2ced0d-_0x4945a0[_0x590e64(0x389)],'top':_0x5e407e-_0x4945a0['cxnPointRadius'],'targetShapeId':_0xe1e896,'cxnIndex':_0x52e7e4['index'],'unitId':this['_unitId'],'subUnitId':this[_0x590e64(0x3af)],'width':_0x4945a0[_0x590e64(0x389)]*0x2,'height':_0x4945a0[_0x590e64(0x389)]*0x2,'zIndex':_0x4232ac+0x2,'evented':!0x1});this[_0x590e64(0x165)][_0x590e64(0x181)](_0xc74ef6),this[_0x590e64(0x3ce)][_0x590e64(0x213)](_0xc74ef6,_0x4232ac+0x2);}}[_0x714ef0(0x32f)](_0x2b2463){const _0x19999c=_0x714ef0;let _0x284adf=null,_0x6afb36=0x1/0x0,_0x676eb8=null;for(let _0x29b54c of this[_0x19999c(0x165)]){let _0x20e1be=_0x29b54c['left']+_0x4945a0[_0x19999c(0x389)],_0x284d62=_0x29b54c[_0x19999c(0x211)]+_0x4945a0[_0x19999c(0x389)],_0x2bd119=_0x2b2463['x']-_0x20e1be,_0x1ee6f9=_0x2b2463['y']-_0x284d62,_0x24ca2e=Math[_0x19999c(0x36e)](_0x2bd119*_0x2bd119+_0x1ee6f9*_0x1ee6f9);_0x24ca2e<_0x6afb36&&(_0x6afb36=_0x24ca2e,_0x284adf=_0x29b54c,_0x676eb8={'x':_0x20e1be,'y':_0x284d62});}let _0x3f4d2b=_0x6afb36<=0xa&&_0x284adf?_0x284adf[_0x19999c(0x337)]()[_0x19999c(0x1bc)]:-0x1;if(_0x3f4d2b!==this['_highlightedSiteIndex']){for(let _0x38d25d of this['_connectionSiteObjects']){let _0x2c35b5=_0x38d25d['getConnectionInfo']();_0x38d25d[_0x19999c(0x18b)](_0x2c35b5['cxnIndex']===_0x3f4d2b);}this[_0x19999c(0x188)]=_0x3f4d2b;}if(_0x6afb36<=0xa&&_0x284adf&&_0x676eb8){let _0x2be685=_0x284adf['getConnectionInfo'](),_0x47d55e=this[_0x19999c(0x3ea)](_0x2be685['shapeId'],_0x2be685[_0x19999c(0x1bc)]);return{'shapeId':_0x2be685[_0x19999c(0x21d)],'cxnIndex':_0x2be685['cxnIndex'],'unitId':_0x2be685[_0x19999c(0x277)],'subUnitId':_0x2be685[_0x19999c(0x3d0)],'worldPoint':_0x676eb8,'angle':_0x47d55e};}return null;}['_getConnectionSiteAngle'](_0x2b2307,_0x295f4c){const _0x4a7c6d=_0x714ef0;let _0x562a4b=this[_0x4a7c6d(0x251)][_0x4a7c6d(0x199)](this[_0x4a7c6d(0x180)],this['_subUnitId'],_0x2b2307);if(!_0x562a4b)return 0x0;let _0x45d2b3=this[_0x4a7c6d(0x20f)][_0x4a7c6d(0x2da)]({'unitId':this[_0x4a7c6d(0x180)],'subUnitId':this[_0x4a7c6d(0x3af)],'drawingId':_0x2b2307});if(!(_0x45d2b3!=null&&_0x45d2b3[_0x4a7c6d(0x29f)]))return 0x0;let {width:_0x4c5d38=0x0,height:_0x53b436=0x0,flipX:_0x9ca91f=!0x1,flipY:_0x16c1f1=!0x1}=_0x45d2b3['transform'];_0x562a4b[_0x4a7c6d(0x2b8)]({'width':_0x4c5d38,'height':_0x53b436});let _0x8c6fe5=_0x562a4b[_0x4a7c6d(0x3e3)]()[_0x4a7c6d(0x1f7)](_0x5d26c8=>_0x5d26c8[_0x4a7c6d(0x330)]===_0x295f4c);if(!_0x8c6fe5)return 0x0;let _0xecc740=_0x8c6fe5[_0x4a7c6d(0x34a)]/0xea60;return _0x9ca91f&&(_0xecc740=0xb4-_0xecc740),_0x16c1f1&&(_0xecc740=-_0xecc740),_0xecc740=(_0xecc740%0x168+0x168)%0x168,_0xecc740;}[_0x714ef0(0x342)](){const _0x289d6c=_0x714ef0;for(let _0x3e5429 of this[_0x289d6c(0x165)])_0x3e5429[_0x289d6c(0x232)]();this[_0x289d6c(0x165)]=[],this[_0x289d6c(0x188)]=-0x1;}[_0x714ef0(0x232)](){const _0x134a65=_0x714ef0;this[_0x134a65(0x342)](),super[_0x134a65(0x232)]();}};da=X([Y(0x1,_0x5c502f(_0x1e1faa)),Y(0x2,_0x5c502f(_0x19d008)),Y(0x3,_0x5c502f(_0x5b8f71))],da);let fa=class extends _0xe29064{constructor(_0x57e7d1,_0x671a93,_0x5e0f92,_0x82fed5,_0x557a04){const _0x5651fb=_0x714ef0;super(),this['_sheetSkeletonService']=_0x57e7d1,this[_0x5651fb(0x250)]=_0x671a93,this[_0x5651fb(0x404)]=_0x5e0f92,this[_0x5651fb(0x382)]=_0x82fed5,this[_0x5651fb(0x2f3)]=_0x557a04,q(this,_0x5651fb(0x1bf),void 0x0),this[_0x5651fb(0x22d)](),this[_0x5651fb(0x41d)]();}get[_0x714ef0(0x1a1)](){const _0x2a4965=_0x714ef0;return this[_0x2a4965(0x404)]['getFocusDrawings']();}['_registerGroupFeaturePasteHook'](){const _0x5e1f52=_0x714ef0;this[_0x5e1f52(0x2f3)][_0x5e1f52(0x24d)](({fromUnitId:_0x2ae3aa,fromSubUnitId:_0x3edeb5,toUnitId:_0x35b744,toSubUnitId:_0x6bef68,idMap:_0x5e79fa})=>{const _0x16d4f9=_0x5e1f52;let _0xa56f1f=[],_0x2693c9=[];for(let [_0x39ac27,_0x468a5e]of _0x5e79fa[_0x16d4f9(0x374)]()){let _0x56bd30=this['_shapeService'][_0x16d4f9(0x199)](_0x2ae3aa,_0x3edeb5,_0x39ac27);if(!_0x56bd30)continue;let _0x2aaa99=_0x56bd30[_0x16d4f9(0x2fc)](),_0x513b26=JSON[_0x16d4f9(0x33b)](JSON[_0x16d4f9(0x3cb)](_0x56bd30[_0x16d4f9(0x3c4)]()));if(_0x513b26[_0x16d4f9(0x3cf)]){var _0x4d4343,_0x3a186d;let _0x2d1fec=(_0x4d4343=_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)])==null?void 0x0:_0x4d4343[_0x16d4f9(0x21d)],_0x4ee913=(_0x3a186d=_0x513b26[_0x16d4f9(0x3cf)]['to'])==null?void 0x0:_0x3a186d[_0x16d4f9(0x21d)],_0x5e6d38=!_0x2d1fec||_0x5e79fa['has'](_0x2d1fec),_0x484cd4=!_0x4ee913||_0x5e79fa[_0x16d4f9(0x2c6)](_0x4ee913);_0x5e6d38&&_0x2d1fec&&_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]?_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]={..._0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x2d1fec)}:_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]=void 0x0,_0x484cd4&&_0x4ee913&&_0x513b26[_0x16d4f9(0x3cf)]['to']?_0x513b26[_0x16d4f9(0x3cf)]['to']={..._0x513b26[_0x16d4f9(0x3cf)]['to'],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x4ee913)}:_0x513b26['relation']['to']=void 0x0;}_0xa56f1f[_0x16d4f9(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e,'shapeType':_0x2aaa99,'shapeData':_0x513b26}}),_0x2693c9[_0x16d4f9(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e}});}return{'redos':_0xa56f1f,'undos':_0x2693c9};});}[_0x714ef0(0x22d)](){const _0xf6066e=_0x714ef0;this[_0xf6066e(0x238)](this[_0xf6066e(0x250)][_0xf6066e(0x27f)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x42f87e,_0x1c19e1,_0x4efa4c)=>{const _0x1a2872=_0xf6066e;this[_0x1a2872(0x1bf)]=null;let _0x385fcf=this[_0x1a2872(0x1a1)][_0x1a2872(0x3c0)](_0x3bfa98=>_0x3bfa98['drawingType']===_0x544f7a[_0x1a2872(0x2c1)]);return _0x385fcf[_0x1a2872(0x1c3)]!==0x0&&(this[_0x1a2872(0x1bf)]={'unitId':_0x42f87e,'subUnitId':_0x1c19e1,'copyType':_0x4efa4c,'drawings':_0x385fcf},!0x0);},'onBeforeCopy':(_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632)=>{const _0x25e2b4=_0xf6066e;this['_copyInfo']=null,this[_0x25e2b4(0x3df)](_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632);},'onPasteCells':(_0x40f753,_0x4adcf1,_0x593341,_0x277cda)=>{const _0x5c0991=_0xf6066e;if(!_0x277cda[_0x5c0991(0x2d5)]||!_0x40f753||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x551911}=_0x277cda;return _0x551911===_0x205afc[_0x5c0991(0x194)]?this[_0x5c0991(0x30f)](_0x4adcf1,this['_copyInfo'][_0x5c0991(0x407)]===_0x22fdbb[_0x5c0991(0x359)]):{'redos':[],'undos':[]};}}));}[_0x714ef0(0x3df)](_0x20a1af,_0x5ab220,_0x724111,_0x1f544c){const _0x15b95f=_0x714ef0;let _0x4df965=this[_0x15b95f(0x1cc)][_0x15b95f(0x1f4)](_0x20a1af,_0x5ab220);if(!_0x4df965)return;let _0x4cc394=_0x50939b(_0x4df965,_0x724111);if(!_0x4cc394)return;let {startX:_0x4bb148,endX:_0x2510e8,startY:_0xa56980,endY:_0x2338ff}=_0x4cc394,_0x495581=this[_0x15b95f(0x404)]['getDrawingData'](_0x20a1af,_0x5ab220),_0x3308ff=[];for(let [_0x3598bf,_0x4e9e20]of Object[_0x15b95f(0x374)](_0x495581)){if(_0x4e9e20[_0x15b95f(0x198)]!==_0x544f7a[_0x15b95f(0x2c1)])continue;let {transform:_0x4694b0}=_0x4e9e20;if(!_0x4694b0)continue;let {left:_0x16f97f=0x0,top:_0x55bfeb=0x0,width:_0x250183=0x0,height:_0x181fc1=0x0}=_0x4694b0;_0x4bb148<=_0x16f97f&&_0x2510e8>=_0x16f97f+_0x250183&&_0xa56980<=_0x55bfeb&&_0x2338ff>=_0x55bfeb+_0x181fc1&&_0x3308ff[_0x15b95f(0x181)](_0x4e9e20);}_0x3308ff[_0x15b95f(0x1c3)]>0x0&&(this[_0x15b95f(0x1bf)]={'unitId':_0x20a1af,'subUnitId':_0x5ab220,'copyType':_0x1f544c,'copyRange':_0x724111,'drawings':_0x3308ff});}[_0x714ef0(0x30f)](_0xed7ca4,_0xdb6913){const _0x3c261f=_0x714ef0;let {unitId:_0x36f739,subUnitId:_0x3e0b0c,range:_0x592506}=_0xed7ca4,_0x188090=this[_0x3c261f(0x1cc)]['getSkeleton'](_0x36f739,_0x3e0b0c);if(!_0x188090)return{'redos':[],'undos':[]};let _0x5e62a3=_0x5de548(_0x592506),{unitId:_0x1d77cc,subUnitId:_0x3f8461,copyRange:_0xfc1406,drawings:_0x122404}=this['_copyInfo'],_0xc99ae4=this['_sheetSkeletonService'][_0x3c261f(0x1f4)](_0x1d77cc,_0x3f8461);if(!_0xc99ae4)return{'redos':[],'undos':[]};let _0x336704;if(!_0xfc1406){let _0x2aff55=0x1/0x0,_0x2595dd=0x1/0x0;for(let _0x183e3a of _0x122404){let {left:_0x2fef13=0x0,top:_0x31bc3a=0x0}=_0x183e3a[_0x3c261f(0x29f)]??{};_0x2fef13<_0x2aff55&&(_0x2aff55=_0x2fef13),_0x31bc3a<_0x2595dd&&(_0x2595dd=_0x31bc3a);}_0x2aff55!==0x1/0x0&&_0x2595dd!==0x1/0x0&&(_0x336704={'left':_0x2aff55,'top':_0x2595dd});}let _0x307df8=new Map();if(!_0xdb6913){for(let _0x49d8ae of _0x122404)_0x307df8[_0x3c261f(0x160)](_0x49d8ae['drawingId'],_0x2f2dbb());}let _0x69b3ac=[],_0x544fd8=[];for(let _0x5b8f9a of _0x122404){let {drawingId:_0x165a66,transform:_0x1334e2,sheetTransform:_0xf653e1}=_0x5b8f9a;if(!_0x1334e2||!_0xf653e1)continue;let _0x440699=this[_0x3c261f(0x30e)]({'transform':_0x1334e2,'sheetTransform':_0xf653e1},{'skeleton':_0xc99ae4,'range':_0xfc1406},{'skeleton':_0x188090,'range':_0x5e62a3},_0x336704);if(_0xdb6913){let {redos:_0x185c13,undos:_0xa5dbc9}=this[_0x3c261f(0x349)]({'fromUnitId':_0x1d77cc,'fromSubUnitId':_0x3f8461,'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699});_0x69b3ac[_0x3c261f(0x181)](..._0x185c13),_0x544fd8[_0x3c261f(0x181)](..._0xa5dbc9);continue;}let {redos:_0x3f389b,undos:_0x19180d}=this[_0x3c261f(0x2eb)]({'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699,'newDrawingId':_0x307df8[_0x3c261f(0x2dd)](_0x165a66),'idMap':_0x307df8});_0x69b3ac[_0x3c261f(0x181)](..._0x3f389b),_0x544fd8[_0x3c261f(0x181)](..._0x19180d);}return{'redos':_0x69b3ac,'undos':_0x544fd8};}[_0x714ef0(0x349)](_0x201935){const _0x1feb3d=_0x714ef0;let {fromUnitId:_0x2c5deb,fromSubUnitId:_0x2cb688,toUnitId:_0x6d3c25,toSubUnitId:_0x386578,drawing:_0x4c7513,newTransforms:_0x15e40e}=_0x201935,_0x5d3901={..._0x4c7513,'unitId':_0x6d3c25,'subUnitId':_0x386578,'transform':_0x15e40e[_0x1feb3d(0x29f)],'sheetTransform':_0x15e40e[_0x1feb3d(0x431)]};if(_0x6d3c25===_0x2c5deb&&_0x386578===_0x2cb688){let {redo:_0xafccb0,undo:_0x29b06f,objects:_0xe1dd33}=this['_sheetDrawingService'][_0x1feb3d(0x284)]([_0x5d3901]);return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0xafccb0,'objects':_0xe1dd33}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0x29b06f,'objects':_0xe1dd33}}]};}{let _0x165b18=this['_sheetDrawingService'][_0x1feb3d(0x3bc)]([_0x4c7513]),_0x4d18e6=this[_0x1feb3d(0x404)]['getBatchAddOp']([_0x5d3901]),_0x5ce36f=this['_shapeService'][_0x1feb3d(0x199)](_0x4c7513['unitId'],_0x4c7513[_0x1feb3d(0x3d0)],_0x4c7513[_0x1feb3d(0x290)]);if(!_0x5ce36f)return{'redos':[],'undos':[]};let _0x5e123f=_0x5ce36f[_0x1feb3d(0x2fc)](),_0x4cb204=JSON[_0x1feb3d(0x33b)](JSON['stringify'](_0x5ce36f[_0x1feb3d(0x3c4)]()));return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x165b18[_0x1feb3d(0x37a)],'objects':_0x165b18[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x4d18e6[_0x1feb3d(0x37a)],'objects':_0x4d18e6['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x165b18[_0x1feb3d(0x3f7)],'objects':_0x165b18['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x4d18e6['undo'],'objects':_0x4d18e6[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}}]};}}[_0x714ef0(0x2eb)](_0x3504de){const _0x3c83d2=_0x714ef0;let {toUnitId:_0x35c813,toSubUnitId:_0x46ae62,drawing:_0x17bca0,newTransforms:_0x101808,newDrawingId:_0x3565fc,idMap:_0x36bc3a}=_0x3504de,_0x52f5c8={..._0x17bca0,'unitId':_0x35c813,'subUnitId':_0x46ae62,'drawingId':_0x3565fc,'transform':_0x101808[_0x3c83d2(0x29f)],'sheetTransform':_0x101808[_0x3c83d2(0x431)]},{redo:_0x57980a,undo:_0x1172cb,objects:_0x3cce05}=this[_0x3c83d2(0x404)]['getBatchAddOp']([_0x52f5c8]),_0x2e3764=this[_0x3c83d2(0x382)][_0x3c83d2(0x199)](_0x17bca0[_0x3c83d2(0x277)],_0x17bca0[_0x3c83d2(0x3d0)],_0x17bca0[_0x3c83d2(0x290)]);if(!_0x2e3764)return{'redos':[],'undos':[]};let _0x4bf7ff=_0x2e3764[_0x3c83d2(0x2fc)](),_0xa07e0f=JSON[_0x3c83d2(0x33b)](JSON[_0x3c83d2(0x3cb)](_0x2e3764[_0x3c83d2(0x3c4)]()));if(_0xa07e0f['relation']){var _0x18838c,_0x4ac835;let _0x3c1987=(_0x18838c=_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)])==null?void 0x0:_0x18838c[_0x3c83d2(0x21d)],_0x371b57=(_0x4ac835=_0xa07e0f[_0x3c83d2(0x3cf)]['to'])==null?void 0x0:_0x4ac835['shapeId'],_0x10d6bd=!_0x3c1987||_0x36bc3a[_0x3c83d2(0x2c6)](_0x3c1987),_0x629665=!_0x371b57||_0x36bc3a[_0x3c83d2(0x2c6)](_0x371b57);_0x10d6bd&&_0x3c1987&&_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]?_0xa07e0f['relation']['from']={..._0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)],'shapeId':_0x36bc3a[_0x3c83d2(0x2dd)](_0x3c1987)}:_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]=void 0x0,_0x629665&&_0x371b57&&_0xa07e0f[_0x3c83d2(0x3cf)]['to']?_0xa07e0f[_0x3c83d2(0x3cf)]['to']={..._0xa07e0f[_0x3c83d2(0x3cf)]['to'],'shapeId':_0x36bc3a['get'](_0x371b57)}:_0xa07e0f[_0x3c83d2(0x3cf)]['to']=void 0x0;}return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x31f)],'op':_0x57980a,'objects':_0x3cce05}},{'id':_0x269d0a['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc,'shapeType':_0x4bf7ff,'shapeData':_0xa07e0f}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x3ff)],'op':_0x1172cb,'objects':_0x3cce05}},{'id':_0x2506a4['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc}}]};}[_0x714ef0(0x30e)](_0x5be6ff,_0x3aaa6b,_0x4a3aaf,_0x28ab4f){const _0x508fc6=_0x714ef0;let {range:_0x1d6396,skeleton:_0x28ab1f}=_0x3aaa6b,{range:_0x105c3a,skeleton:_0x113bd1}=_0x4a3aaf,{transform:_0x41b643,sheetTransform:_0x517596}=_0x5be6ff,_0x173079={..._0x41b643};if(_0x1d6396){let _0x55e9d4=_0x50939b(_0x28ab1f,_0x1d6396),_0x52acc9=_0x50939b(_0x113bd1,_0x105c3a);if(_0x55e9d4&&_0x52acc9){let _0x28d3b6=_0x52acc9['startX']-_0x55e9d4[_0x508fc6(0x3a1)],_0x57a35b=_0x52acc9[_0x508fc6(0x399)]-_0x55e9d4[_0x508fc6(0x399)];_0x173079['left']=(_0x173079[_0x508fc6(0x201)]??0x0)+_0x28d3b6,_0x173079[_0x508fc6(0x211)]=(_0x173079['top']??0x0)+_0x57a35b;}}else{let _0x5dd39e=_0x50939b(_0x113bd1,_0x105c3a);if(_0x28ab4f&&_0x5dd39e){let _0x1930d5=(_0x173079[_0x508fc6(0x201)]??0x0)-_0x28ab4f[_0x508fc6(0x201)],_0x25c1aa=(_0x173079[_0x508fc6(0x211)]??0x0)-_0x28ab4f[_0x508fc6(0x211)];_0x173079[_0x508fc6(0x201)]=_0x5dd39e[_0x508fc6(0x3a1)]+_0x1930d5,_0x173079[_0x508fc6(0x211)]=_0x5dd39e[_0x508fc6(0x399)]+_0x25c1aa;}else _0x173079[_0x508fc6(0x201)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x3a1)],_0x173079[_0x508fc6(0x211)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x399)];}return{'transform':_0x173079,'sheetTransform':_0x33f6ee(_0x173079,_0x113bd1)??_0x517596};}};fa=X([Y(0x0,_0x5c502f(_0x48e7a4)),Y(0x1,_0x5c502f(_0x345ee2)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x5e793f))],fa);var pa=class extends _0x240da9{constructor(_0x2815b2,_0x22d599){const _0x4c3402=_0x714ef0;super(_0x2815b2,_0x22d599),q(this,_0x4c3402(0x295),null),q(this,_0x4c3402(0x2ea),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x4c3402(0x3f4),!0x1),_0x22d599&&this[_0x4c3402(0x30a)](_0x22d599);}[_0x714ef0(0x423)](){const _0x3c520d=_0x714ef0;return{'unitId':this[_0x3c520d(0x180)],'subUnitId':this[_0x3c520d(0x3af)],'drawingId':this[_0x3c520d(0x295)]};}[_0x714ef0(0x30a)](_0x41f594){const _0x3aee28=_0x714ef0;_0x41f594[_0x3aee28(0x21d)]!==void 0x0&&(this[_0x3aee28(0x295)]=_0x41f594['shapeId']),_0x41f594[_0x3aee28(0x277)]!==void 0x0&&(this[_0x3aee28(0x180)]=_0x41f594[_0x3aee28(0x277)]),_0x41f594['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x41f594[_0x3aee28(0x3d0)]),_0x41f594[_0x3aee28(0x2d2)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x41f594[_0x3aee28(0x2d2)]),this['transformByState']({'width':_0x41f594[_0x3aee28(0x253)],'height':_0x41f594[_0x3aee28(0x2d4)]});}[_0x714ef0(0x24b)](_0x2af905){const _0x10a7eb=_0x714ef0;_0x540920['drawWith'](_0x2af905,{'radius':_0x4945a0['cxnPointRadius'],'fill':_0x4945a0[_0x10a7eb(0x34c)],'stroke':_0x4945a0[_0x10a7eb(0x280)],'strokeWidth':_0x4945a0[_0x10a7eb(0x2ba)],'evented':!0x0});}};let ma=class extends _0xe29064{constructor(_0x2359c9,_0xae59,_0x11b835,_0x232b67,_0x5eadc5,_0x3d82d0,_0x139029,_0x1db2cc){const _0x46380c=_0x714ef0;super(),this[_0x46380c(0x22a)]=_0x2359c9,this['_commandService']=_0xae59,this[_0x46380c(0x2cf)]=_0x11b835,this['_drawingManagerService']=_0x232b67,this[_0x46380c(0x2be)]=_0x5eadc5,this[_0x46380c(0x251)]=_0x3d82d0,this[_0x46380c(0x3ab)]=_0x139029,this[_0x46380c(0x3cd)]=_0x1db2cc,q(this,'_activeShapeId',void 0x0),q(this,_0x46380c(0x180),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x46380c(0x3a9),[]),q(this,_0x46380c(0x259),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x46380c(0x20d),void 0x0),q(this,_0x46380c(0x390),!0x1),q(this,_0x46380c(0x19e),!0x1),q(this,_0x46380c(0x1ec),!0x1),q(this,'_cxtHandlerPointerMove',void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,'_currentConnectionTarget',null),this[_0x46380c(0x1da)]();}[_0x714ef0(0x1da)](){const _0x53349f=_0x714ef0;this[_0x53349f(0x3ae)](),this['_registerDrawingMoveHandler']();}['_getDrawingRect'](){const _0x3a45ae=_0x714ef0;if(!this[_0x3a45ae(0x180)]||!this['_subUnitId']||!this['_activeShapeId'])return;let _0x1b1ed7={'unitId':this[_0x3a45ae(0x180)],'subUnitId':this[_0x3a45ae(0x3af)],'drawingId':this[_0x3a45ae(0x3de)]},{transform:_0x210093}=this['_drawingManagerService'][_0x3a45ae(0x2da)](_0x1b1ed7);if(_0x210093)return{'left':_0x210093['left']||0x0,'top':_0x210093[_0x3a45ae(0x211)]||0x0,'width':_0x210093['width']||0x0,'height':_0x210093[_0x3a45ae(0x2d4)]||0x0,'flipX':_0x210093[_0x3a45ae(0x18d)]||!0x1,'flipY':_0x210093[_0x3a45ae(0x300)]||!0x1,'angle':_0x210093['angle']};}[_0x714ef0(0x19d)](){const _0x5b4a56=_0x714ef0;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x5b4a56(0x3de)]===void 0x0)return;let _0x644ae=this[_0x5b4a56(0x2cf)][_0x5b4a56(0x2af)](this[_0x5b4a56(0x180)]);if(!_0x644ae||!_0x644ae[_0x5b4a56(0x3e6)](_0x44086e)[_0x5b4a56(0x161)]())return;let {scene:_0x50b6a8}=_0x644ae,_0xb91c4a=this[_0x5b4a56(0x2df)]();if(!_0xb91c4a)return;let _0x5736d4=this[_0x5b4a56(0x251)][_0x5b4a56(0x199)](this[_0x5b4a56(0x180)],this[_0x5b4a56(0x3af)],this[_0x5b4a56(0x3de)]);if(!_0x5736d4||!_0x4cb876(_0x5736d4[_0x5b4a56(0x2fc)]()))return;let _0x80ff5=_0x5736d4[_0x5b4a56(0x398)]();if(_0x80ff5['length']<0x2)return;let _0x4e5168=new _0x2610e3(_0xb91c4a),_0x319b42=_0x80ff5[0x0],_0x2022c8=_0x80ff5[_0x80ff5[_0x5b4a56(0x1c3)]-0x1],_0x4552c5=_0x4e5168[_0x5b4a56(0x396)](_0x319b42),_0x4c38d2=_0x4e5168['localToWorld'](_0x2022c8);this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4552c5},!0x0),this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4c38d2},!0x1);}[_0x714ef0(0x2a5)](_0x228aba,_0x17b6d9,_0x30366c){const _0x412431=_0x714ef0;if(this[_0x412431(0x3de)]===void 0x0||this[_0x412431(0x180)]===void 0x0||this[_0x412431(0x3af)]===void 0x0)return;let _0x1447d3=_0x412431(0x3aa)+this[_0x412431(0x180)]+'-'+this[_0x412431(0x3af)]+'-'+this[_0x412431(0x3de)]+'-'+(_0x30366c?_0x412431(0x1c8):'end'),_0x299505=_0x228aba['getObjectIncludeInGroup'](_0x1447d3);if(_0x299505){_0x299505[_0x412431(0x1b1)]({'left':_0x17b6d9['x']-_0x4945a0['cxnPointRadius'],'top':_0x17b6d9['y']-_0x4945a0['cxnPointRadius']});return;}let _0x300a5a=new pa(_0x1447d3,{'left':_0x17b6d9['x']-_0x4945a0[_0x412431(0x389)],'top':_0x17b6d9['y']-_0x4945a0[_0x412431(0x389)],'shapeId':this[_0x412431(0x3de)],'unitId':this[_0x412431(0x180)],'subUnitId':this[_0x412431(0x3af)],'isStartConnectorPoint':_0x30366c,'width':_0x4945a0['cxnPointRadius']*0x2,'height':_0x4945a0[_0x412431(0x389)]*0x2,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x412431(0x3a9)][_0x412431(0x181)](_0x300a5a),this[_0x412431(0x2b6)](_0x300a5a,_0x228aba,_0x30366c),_0x228aba[_0x412431(0x213)](_0x300a5a,_0x4232ac+0x1);}[_0x714ef0(0x315)](_0x4de05d,_0x83eb1c){const _0x4fd6c=_0x714ef0;var _0x3035b9;let _0x4b082d={'x':0x0,'y':0x0};if(!_0x4de05d||!_0x83eb1c)return _0x4b082d;let _0x59a8ba=this[_0x4fd6c(0x2cf)][_0x4fd6c(0x2af)](_0x4de05d);if(!_0x59a8ba||!_0x59a8ba['with'](_0x44086e)[_0x4fd6c(0x1f4)](_0x83eb1c))return _0x4b082d;let _0x66e2ac=_0x59a8ba[_0x4fd6c(0x3e6)](_0x4e89db),_0x565aad=_0x66e2ac==null?void 0x0:_0x66e2ac['getCurrentScrollState']();if(!_0x565aad)return _0x4b082d;let _0x538879=(_0x3035b9=this[_0x4fd6c(0x2be)][_0x4fd6c(0x2a6)](_0x4de05d))==null?void 0x0:_0x3035b9[_0x4fd6c(0x2f0)](_0x83eb1c);if(!_0x538879)return _0x4b082d;let _0x5f063b=_0xe31858(_0x565aad[_0x4fd6c(0x3d9)],_0x565aad[_0x4fd6c(0x3f2)],_0x59a8ba[_0x4fd6c(0x1d4)],_0x538879);return _0x5f063b?{'x':_0x5f063b[_0x4fd6c(0x388)],'y':_0x5f063b[_0x4fd6c(0x17a)]}:_0x4b082d;}[_0x714ef0(0x16a)](_0x279fdd,_0x3471c7){const _0x52bec1=_0x714ef0;var _0x8846c4;let _0x3ad12c=(_0x8846c4=this[_0x52bec1(0x2be)][_0x52bec1(0x2a6)](_0x279fdd))==null?void 0x0:_0x8846c4[_0x52bec1(0x2f0)](_0x3471c7);return(_0x3ad12c==null?void 0x0:_0x3ad12c[_0x52bec1(0x3fb)]())??0x1;}[_0x714ef0(0x2a0)](_0x430516,_0x1f3a29,_0x12a8e7,_0x2345cc,_0x1dc83d){const _0x16fb13=_0x714ef0;this[_0x16fb13(0x36b)]['unsubscribe'](),this[_0x16fb13(0x2d9)]['unsubscribe'](),this[_0x16fb13(0x3ab)]['refreshAdjustControls']();let _0x2c06f7=this[_0x16fb13(0x3c1)];this[_0x16fb13(0x3cd)]['endConnectionDetection']();let _0x286b32=this[_0x16fb13(0x315)](this[_0x16fb13(0x180)],this[_0x16fb13(0x3af)]),_0x5ac090=this[_0x16fb13(0x16a)](this[_0x16fb13(0x180)],this['_subUnitId']),_0x185a96={'x':_0x12a8e7[_0x16fb13(0x1bb)]/_0x5ac090+_0x286b32['x'],'y':_0x12a8e7[_0x16fb13(0x309)]/_0x5ac090+_0x286b32['y']},_0x21da1b=_0x2c06f7?_0x2c06f7[_0x16fb13(0x2b4)]:_0x185a96,_0x26038e=_0x2345cc?this[_0x16fb13(0x20d)][_0x16fb13(0x3e8)]():this[_0x16fb13(0x20d)]['getStartConnectInfo'](),_0x4b6635=this[_0x16fb13(0x20d)][_0x16fb13(0x2fc)]();_0x26038e?this[_0x16fb13(0x3fe)](_0x26038e,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d):this[_0x16fb13(0x1c9)](_0x1f3a29,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d,_0x4b6635),this['_isConnecting']=!0x1,this['_hasReset']=!0x1,this[_0x16fb13(0x3c1)]=null,_0x430516[_0x16fb13(0x173)]();}[_0x714ef0(0x1c9)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0x539e1e,_0x462cef,_0x2bfcc5){const _0x489ed4=_0x714ef0;let _0x500311=_0x2bfcc5===_0xf1eb19['Line']||_0x2bfcc5===_0xf1eb19[_0x489ed4(0x1e9)],_0x51c9ef=_0xc0a92c?_0x8f9226:_0x1a8bb3,_0x1d53d3=_0xc0a92c?_0x1a8bb3:_0x8f9226,_0x5ec0cc=this['_activeShapeModel'][_0x489ed4(0x398)](),_0x1a3a6=this[_0x489ed4(0x20d)]['getShapeType'](),_0x417360=_0x179376(_0x1a3a6),_0xde566c=_0x2610e3[_0x489ed4(0x241)](_0x5ec0cc,_0x417360),_0x98e86b=_0x500311?_0x2610e3[_0x489ed4(0x32d)](_0x51c9ef,_0x1d53d3):_0x2610e3[_0x489ed4(0x28d)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0xde566c);_0x539e1e?this['_executeConnectionCommand'](_0x98e86b,_0x539e1e,_0xc0a92c,_0x462cef):this[_0x489ed4(0x25a)](_0x98e86b,_0x462cef);}[_0x714ef0(0x3fe)](_0x4f2a8b,_0x4ac13a,_0x1b8dec,_0x5a08c8,_0x1f66d0){const _0x3a1a8c=_0x714ef0;let _0x44fb67=this['_getConnectPointInfo'](_0x4f2a8b);if(!_0x44fb67)return;let _0x4d5e84=_0x5a08c8?_0x5a08c8[_0x3a1a8c(0x2ae)]:this[_0x3a1a8c(0x29b)](_0x44fb67[_0x3a1a8c(0x184)],_0x4ac13a),_0x157998;if(_0x5a08c8){let _0x1aa9ab=this[_0x3a1a8c(0x20f)][_0x3a1a8c(0x2da)]({'unitId':_0x5a08c8[_0x3a1a8c(0x277)],'subUnitId':_0x5a08c8[_0x3a1a8c(0x3d0)],'drawingId':_0x5a08c8[_0x3a1a8c(0x21d)]});if(_0x1aa9ab!=null&&_0x1aa9ab[_0x3a1a8c(0x29f)]){let {left:_0x35ff28=0x0,top:_0x444958=0x0,width:_0x1fb421=0x0,height:_0x4b9b28=0x0,angle:_0xe7f338}=_0x1aa9ab[_0x3a1a8c(0x29f)];_0x157998=_0x4191f0({'left':_0x35ff28,'top':_0x444958,'width':_0x1fb421,'height':_0x4b9b28},_0xe7f338||0x0);}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};let _0x1a819d={'point':_0x4ac13a,'angle':_0x4d5e84,'bounds':_0x157998},_0x97a6c8=_0x1b8dec?_0x1a819d:_0x44fb67,_0x3020a4=_0x1b8dec?_0x44fb67:_0x1a819d,_0x5c0b2d=this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x2fc)](),_0x598a6c=_0x22d8a5(_0x97a6c8,_0x3020a4,_0x5c0b2d);this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x197)]();let _0x14f414=_0x1469b5(_0x598a6c,_0x5c0b2d);_0x5a08c8?this[_0x3a1a8c(0x35a)](_0x14f414,_0x5a08c8,_0x4f2a8b,_0x1b8dec,_0x1f66d0):this['_executeConnectedRouteResizeCommand'](_0x14f414,_0x4f2a8b,_0x1b8dec,_0x1f66d0);}[_0x714ef0(0x1bd)](_0x27058b,_0x4424dc,_0x2f7e96,_0x33dede){const _0x308a0b=_0x714ef0;let _0x4b1233=this[_0x308a0b(0x20d)]['getShapeData']()[_0x308a0b(0x3cf)],_0x77c180={..._0x4b1233},_0x29645a={'shapeId':_0x4424dc[_0x308a0b(0x21d)],'cxnIndex':_0x4424dc['cxnIndex']};_0x2f7e96?_0x77c180[_0x308a0b(0x248)]=_0x29645a:_0x77c180['to']=_0x29645a;let _0x2cf27a=this[_0x308a0b(0x20d)][_0x308a0b(0x2fc)](),_0x759ed5=_0x1469b5(_0x27058b[_0x308a0b(0x348)],_0x2cf27a),_0x512dd6={'unitId':this[_0x308a0b(0x180)],'subUnitId':this[_0x308a0b(0x3af)],'connectorShapeId':this[_0x308a0b(0x3de)],'width':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x253)],'height':_0x27058b['worldRect']['height'],'left':_0x27058b[_0x308a0b(0x23b)]['left'],'top':_0x27058b['worldRect'][_0x308a0b(0x211)],'flipX':_0x27058b['worldRect'][_0x308a0b(0x18d)]||!0x1,'flipY':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x300)]||!0x1,'newAdjustValues':_0x759ed5[_0x308a0b(0x33c)],'oldAdjustValues':_0x33dede,'oldRelation':_0x4b1233,'newRelation':_0x77c180,'newLineType':_0x759ed5[_0x308a0b(0x414)],'oldLineType':_0x2cf27a};this['_commandService'][_0x308a0b(0x40b)](_0x128516['id'],_0x512dd6);}[_0x714ef0(0x25a)](_0x424197,_0x58a726){const _0x33215b=_0x714ef0;let _0x380acd=this[_0x33215b(0x20d)][_0x33215b(0x2fc)](),_0x4c74a5=_0x1469b5(_0x424197[_0x33215b(0x348)],_0x380acd),_0x59a9c9={'unitId':this[_0x33215b(0x180)],'subUnitId':this[_0x33215b(0x3af)],'shapeId':this['_activeShapeId'],'width':_0x424197[_0x33215b(0x23b)][_0x33215b(0x253)],'height':_0x424197['worldRect'][_0x33215b(0x2d4)],'left':_0x424197['worldRect']['left'],'top':_0x424197[_0x33215b(0x23b)][_0x33215b(0x211)],'flipX':_0x424197[_0x33215b(0x23b)][_0x33215b(0x18d)]||!0x1,'flipY':_0x424197[_0x33215b(0x23b)][_0x33215b(0x300)]||!0x1,'angle':_0x424197[_0x33215b(0x23b)][_0x33215b(0x2ae)]||0x0,'newAdjustValues':_0x4c74a5[_0x33215b(0x33c)],'oldAdjustValues':_0x58a726,'newLineType':_0x4c74a5[_0x33215b(0x414)],'oldLineType':_0x380acd};this['_commandService']['executeCommand'](_0x48cda4['id'],_0x59a9c9);}[_0x714ef0(0x35a)](_0x344bc2,_0x19b3ca,_0x596bf2,_0x506766,_0x762934){const _0x43508c=_0x714ef0;let _0x5db069=this[_0x43508c(0x20d)][_0x43508c(0x3c4)]()[_0x43508c(0x3cf)],_0x2a5be7={..._0x5db069},_0xfb6777={'shapeId':_0x19b3ca[_0x43508c(0x21d)],'cxnIndex':_0x19b3ca[_0x43508c(0x1bc)]};_0x506766?(_0x2a5be7[_0x43508c(0x248)]=_0xfb6777,_0x2a5be7['to']=_0x596bf2):(_0x2a5be7['from']=_0x596bf2,_0x2a5be7['to']=_0xfb6777);let _0x2c4a78={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x253)],'height':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x2d4)],'left':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x201)],'top':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x211)],'flipX':_0x344bc2['worldRect']['flipX']||!0x1,'flipY':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x300)]||!0x1,'oldAdjustValues':_0x762934,'newAdjustValues':_0x344bc2['adjustValues'],'newLineType':_0x344bc2['lineType'],'rotation':_0x344bc2[_0x43508c(0x410)],'oldRelation':_0x5db069,'newRelation':_0x2a5be7};this[_0x43508c(0x1a7)][_0x43508c(0x40b)](_0x128516['id'],_0x2c4a78);}[_0x714ef0(0x223)](_0x552204,_0x569fd8,_0x599258,_0x23a3af){const _0x1d66ff=_0x714ef0;let _0x2bea2d=this[_0x1d66ff(0x20d)][_0x1d66ff(0x3c4)]()[_0x1d66ff(0x3cf)],_0x4ab6b2={};_0x599258?(_0x4ab6b2['to']=_0x569fd8,_0x4ab6b2[_0x1d66ff(0x248)]=void 0x0):(_0x4ab6b2[_0x1d66ff(0x248)]=_0x569fd8,_0x4ab6b2['to']=void 0x0);let _0xf49188={'unitId':this[_0x1d66ff(0x180)],'subUnitId':this[_0x1d66ff(0x3af)],'connectorShapeId':this[_0x1d66ff(0x3de)],'width':_0x552204['worldRect'][_0x1d66ff(0x253)],'height':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x2d4)],'left':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x201)],'top':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x211)],'flipX':_0x552204[_0x1d66ff(0x23b)]['flipX']||!0x1,'flipY':_0x552204[_0x1d66ff(0x23b)]['flipY']||!0x1,'oldAdjustValues':_0x23a3af,'newAdjustValues':_0x552204['adjustValues'],'newLineType':_0x552204[_0x1d66ff(0x414)],'rotation':_0x552204[_0x1d66ff(0x410)],'oldRelation':_0x2bea2d,'newRelation':_0x4ab6b2};this[_0x1d66ff(0x1a7)][_0x1d66ff(0x40b)](_0x128516['id'],_0xf49188);}[_0x714ef0(0x2b6)](_0x559dbb,_0x39b8ed,_0x34feca){const _0xdb5c84=_0x714ef0;this[_0xdb5c84(0x238)](_0x128476(_0x559dbb[_0xdb5c84(0x18e)][_0xdb5c84(0x212)]((_0x160763,_0x4f5a08)=>{const _0x2d4e77=_0xdb5c84;let _0x38b949=_0x559dbb[_0x2d4e77(0x423)]();if(this[_0x2d4e77(0x20d)]=this[_0x2d4e77(0x251)][_0x2d4e77(0x199)](_0x38b949['unitId'],_0x38b949[_0x2d4e77(0x3d0)],_0x38b949[_0x2d4e77(0x290)]),!this[_0x2d4e77(0x20d)])return;let _0x33c94e={};this[_0x2d4e77(0x20d)][_0x2d4e77(0x26a)]()['forEach'](_0xca78c2=>{const _0x326d49=_0x2d4e77;let _0x461484=this[_0x326d49(0x20d)][_0x326d49(0x31b)](_0xca78c2);_0x461484!==void 0x0&&(_0x33c94e[_0xca78c2]=_0x461484);});let _0x5367b2=this[_0x2d4e77(0x2df)]();if(!_0x5367b2)return;this[_0x2d4e77(0x259)]={..._0x5367b2};let _0x5c35c7=new _0x2610e3(this[_0x2d4e77(0x259)]),_0x231aa2=_0x562c30({'unitId':this[_0x2d4e77(0x180)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x314919=_0x39b8ed['getObjectIncludeInGroup'](_0x231aa2);this[_0x2d4e77(0x390)]=!0x0,_0x39b8ed[_0x2d4e77(0x207)](),this[_0x2d4e77(0x3cd)][_0x2d4e77(0x228)](_0x39b8ed,this[_0x2d4e77(0x180)],this[_0x2d4e77(0x3af)],this[_0x2d4e77(0x3de)]),this[_0x2d4e77(0x3c1)]=null;let _0x4e6cf9=this[_0x2d4e77(0x20d)]['getConnectorLinePoints'](),_0xdf46ed=_0x4e6cf9[0x0],_0x1b4596=_0x4e6cf9[_0x4e6cf9['length']-0x1],_0xd7a76=_0x34feca?_0x5c35c7[_0x2d4e77(0x396)](_0x1b4596):_0x5c35c7[_0x2d4e77(0x396)](_0xdf46ed);this['_cxtHandlerPointerMove']=_0x39b8ed[_0x2d4e77(0x224)][_0x2d4e77(0x212)]((_0x7783af,_0x294586)=>{const _0x365c87=_0x2d4e77;if(!this[_0x365c87(0x390)]||!this[_0x365c87(0x20d)])return;this[_0x365c87(0x1ec)]||=(this[_0x365c87(0x3ab)][_0x365c87(0x260)](),this['_activeShapeModel'][_0x365c87(0x179)](),!0x0);let _0x1f5734=this[_0x365c87(0x315)](this[_0x365c87(0x180)],this[_0x365c87(0x3af)]),_0x4144bf=this[_0x365c87(0x16a)](this['_unitId'],this[_0x365c87(0x3af)]),_0x3589dd={'x':_0x7783af[_0x365c87(0x1bb)]/_0x4144bf+_0x1f5734['x'],'y':_0x7783af[_0x365c87(0x309)]/_0x4144bf+_0x1f5734['y']},_0x14af01=this[_0x365c87(0x3cd)]['updateConnectionDetection'](_0x3589dd);if(_0x14af01){let {shapeId:_0x86c418,unitId:_0x596162,subUnitId:_0x3a4537}=_0x14af01;if(_0x86c418&&_0x596162&&_0x3a4537){let _0x4bcd31=_0x562c30({'unitId':_0x596162,'subUnitId':_0x3a4537,'drawingId':_0x86c418});_0x14af01[_0x365c87(0x2ae)]=(_0x39b8ed[_0x365c87(0x252)](_0x4bcd31)[_0x365c87(0x2ae)]||0x0)+_0x14af01[_0x365c87(0x2ae)];}}this[_0x365c87(0x3c1)]=_0x14af01;let _0x470c89=_0x34feca?this[_0x365c87(0x20d)][_0x365c87(0x3e8)]():this['_activeShapeModel'][_0x365c87(0x318)]();_0x470c89?this[_0x365c87(0x23c)](_0x470c89,_0x3589dd,_0x34feca,_0x314919,_0x559dbb):this[_0x365c87(0x1b7)](_0x3589dd,_0xd7a76,_0x34feca,_0x314919,_0x559dbb);}),this[_0x2d4e77(0x2d9)]=_0x39b8ed[_0x2d4e77(0x367)][_0x2d4e77(0x212)]((_0x2c1b7e,_0x40b059)=>{const _0x41ce4c=_0x2d4e77;this[_0x41ce4c(0x2a0)](_0x39b8ed,_0xd7a76,_0x2c1b7e,_0x34feca,_0x33c94e);}),_0x4f5a08[_0x2d4e77(0x394)]();})));}[_0x714ef0(0x2c2)](_0xc24b38,_0x515a14,_0x5a99bd){const _0x56a0a6=_0x714ef0;let _0x4abcdc=this[_0x56a0a6(0x251)][_0x56a0a6(0x2f6)](_0xc24b38,_0x515a14,_0x5a99bd);if(!_0x4abcdc||_0x4abcdc[_0x56a0a6(0x1c3)]===0x0)return;let _0x2a4243=this['_renderManagerService']['getRenderUnitById'](_0xc24b38);if(!_0x2a4243)return;let {scene:_0x1ae310}=_0x2a4243;for(let _0x4dcc34 of _0x4abcdc){let _0x3ebeae=_0x4dcc34[_0x56a0a6(0x29d)],_0x34276e=this['_sheetsShapeService']['getShapeModel'](_0xc24b38,_0x515a14,_0x3ebeae);if(!_0x34276e)continue;let _0x22e89d=_0x34276e[_0x56a0a6(0x318)](),_0x4b304b=_0x34276e['getEndConnectInfo'](),_0x437774=(_0x22e89d==null?void 0x0:_0x22e89d[_0x56a0a6(0x21d)])===_0x5a99bd,_0x46ef5c=_0x562c30({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae}),_0x258833=_0x1ae310[_0x56a0a6(0x252)](_0x46ef5c);if(!_0x258833)continue;let _0x2da1c8=this[_0x56a0a6(0x20f)][_0x56a0a6(0x2da)]({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae});_0x2da1c8!=null&&_0x2da1c8[_0x56a0a6(0x29f)]&&(_0x22e89d&&_0x4b304b?this['_rerouteConnectorLine'](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x22e89d,_0x4b304b,_0x258833):this[_0x56a0a6(0x39d)](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x437774?_0x22e89d:_0x4b304b,_0x437774,_0x2da1c8,_0x258833));}}[_0x714ef0(0x1de)](_0x54fa1b,_0x2d593d,_0x252702,_0x17c75f,_0x5a75cb,_0x4eca11,_0x22c915){const _0x5e8c62=_0x714ef0;let _0x93e6c1=this[_0x5e8c62(0x180)],_0x27f783=this[_0x5e8c62(0x3af)];this[_0x5e8c62(0x180)]=_0x54fa1b,this[_0x5e8c62(0x3af)]=_0x2d593d;let _0x38f36c=this[_0x5e8c62(0x301)](_0x5a75cb),_0x2e597d=this['_getConnectPointInfo'](_0x4eca11);if(this[_0x5e8c62(0x180)]=_0x93e6c1,this[_0x5e8c62(0x3af)]=_0x27f783,!_0x38f36c||!_0x2e597d)return;let _0x50b651=_0x17c75f[_0x5e8c62(0x2fc)](),_0x2a00cb=_0x22d8a5(_0x38f36c,_0x2e597d,_0x50b651);_0x2a00cb&&_0x17c75f[_0x5e8c62(0x2b5)](_0x2a00cb);let _0x480e7c=_0x1469b5(_0x2a00cb,_0x50b651);_0x480e7c[_0x5e8c62(0x414)]!==_0x50b651&&_0x17c75f['changeShapeType'](_0x480e7c[_0x5e8c62(0x414)]),_0x17c75f[_0x5e8c62(0x179)]();for(let [_0x50747e,_0x209b97]of Object[_0x5e8c62(0x374)](_0x480e7c[_0x5e8c62(0x33c)]))_0x17c75f[_0x5e8c62(0x19c)](_0x50747e,_0x209b97);_0x17c75f[_0x5e8c62(0x2b8)]({'width':_0x480e7c['worldRect'][_0x5e8c62(0x253)],'height':_0x480e7c['worldRect'][_0x5e8c62(0x2d4)]}),_0x22c915[_0x5e8c62(0x1b1)]({'flipX':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x18d)],'flipY':_0x480e7c['worldRect'][_0x5e8c62(0x300)],'left':_0x480e7c[_0x5e8c62(0x23b)]['left'],'top':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x211)],'width':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x253)],'height':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x2d4)],'angle':_0x480e7c[_0x5e8c62(0x410)]}),_0x17c75f[_0x5e8c62(0x197)]();}[_0x714ef0(0x39d)](_0x1e0afb,_0x73876b,_0x44856c,_0x1097e1,_0x49bffa,_0x5c61b7,_0x28438c,_0x4813df){const _0x4f9962=_0x714ef0;let _0x866ea=this[_0x4f9962(0x180)],_0x301d9c=this[_0x4f9962(0x3af)];this[_0x4f9962(0x180)]=_0x1e0afb,this[_0x4f9962(0x3af)]=_0x73876b;let _0x4e7a7a=this[_0x4f9962(0x301)](_0x49bffa);if(this[_0x4f9962(0x180)]=_0x866ea,this[_0x4f9962(0x3af)]=_0x301d9c,!_0x4e7a7a)return;let {left:_0x17d65b=0x0,top:_0x4a2d0=0x0,width:_0x19f5a4=0x0,height:_0x9f9882=0x0,flipX:_0x248a5f=!0x1,flipY:_0x1ec632=!0x1}=_0x28438c[_0x4f9962(0x29f)],_0x87ecc=_0x1097e1[_0x4f9962(0x398)]();if(_0x87ecc[_0x4f9962(0x1c3)]<0x2)return;let _0xa5043e=new _0x2610e3({'left':_0x17d65b,'top':_0x4a2d0,'width':_0x19f5a4,'height':_0x9f9882,'flipX':_0x248a5f,'flipY':_0x1ec632}),_0x184398=_0x5c61b7?_0x87ecc[_0x87ecc[_0x4f9962(0x1c3)]-0x1]:_0x87ecc[0x0],_0xa21b61=_0xa5043e['localToWorld'](_0x184398),_0x524552=_0x2610e3[_0x4f9962(0x28d)](_0xa21b61,_0x4e7a7a['point'],!_0x5c61b7);_0x4813df['transformByState']({'flipX':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x18d)],'flipY':_0x524552[_0x4f9962(0x23b)]['flipY'],'left':_0x524552[_0x4f9962(0x23b)]['left'],'top':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x211)],'width':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x253)],'height':_0x524552['worldRect']['height'],'angle':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x2ae)]}),_0x4813df[_0x4f9962(0x226)](!0x0);}[_0x714ef0(0x3a3)](){const _0xef6781=_0x714ef0;this['_connectorObjects'][_0xef6781(0x1c3)]!==0x0&&(this[_0xef6781(0x3a9)][_0xef6781(0x185)](_0x4f0011=>{const _0x461bf2=_0xef6781;_0x4f0011[_0x461bf2(0x232)]();}),this[_0xef6781(0x3a9)]=[]);}[_0x714ef0(0x33f)](){const _0x3a629f=_0x714ef0;let _0x30b402=this[_0x3a629f(0x2be)]['getCurrentTypeOfUnit$'](_0x58aa7b[_0x3a629f(0x222)]);this[_0x3a629f(0x238)](_0x30b402[_0x3a629f(0x371)](_0x1e4916(_0x20010c=>_0x20010c?_0x20010c['activeSheet$'][_0x3a629f(0x371)](_0x1e4916(_0x1186e2=>{const _0x529e6c=_0x3a629f;if(!_0x1186e2)return _0x535914;let _0xae666f=_0x20010c['getUnitId'](),_0x193a2d=this[_0x529e6c(0x2cf)][_0x529e6c(0x2af)](_0xae666f),_0x2d16ac=_0x193a2d==null?void 0x0:_0x193a2d[_0x529e6c(0x1d4)];return _0x2d16ac?_0x12c65f(_0x2d16ac):_0x535914;})):_0x535914))[_0x3a629f(0x3e4)](_0x280a90=>{const _0x4711f9=_0x3a629f;let _0xc6380b=_0x280a90[_0x4711f9(0x218)]();this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x224)][_0x4711f9(0x212)](_0x109ae4=>{const _0x1f0978=_0x4711f9;this[_0x1f0978(0x19e)]&&this[_0x1f0978(0x3de)]&&this[_0x1f0978(0x3a3)]();})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x320)][_0x4711f9(0x3e4)](_0x1e2707=>{const _0x260443=_0x4711f9;let {objects:_0x554b9c}=_0x1e2707;this['_clearShapeConnectorHandlerObjects'](),_0x554b9c!==null&&_0x554b9c['size']===0x1&&_0x554b9c[_0x260443(0x1f8)]()[_0x260443(0x3ee)]()[_0x260443(0x313)]instanceof J&&(this[_0x260443(0x19e)]=!0x0);})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x3fa)]['subscribe'](_0x4fb81a=>{const _0x46e331=_0x4711f9;this[_0x46e331(0x19e)]&&this[_0x46e331(0x3a3)]();})),this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x367)][_0x4711f9(0x212)](()=>{const _0x4a1d4e=_0x4711f9;this['_isDrawingShapePointDown']&&(this[_0x4a1d4e(0x19e)]=!0x1,this[_0x4a1d4e(0x19d)]());})),this[_0x4711f9(0x238)](_0xc6380b[_0x4711f9(0x2d0)][_0x4711f9(0x3e4)](()=>{const _0x31648e=_0x4711f9;this[_0x31648e(0x180)]&&this[_0x31648e(0x3af)]&&this[_0x31648e(0x3de)]&&this[_0x31648e(0x20f)][_0x31648e(0x2da)]({'unitId':this[_0x31648e(0x180)],'subUnitId':this[_0x31648e(0x3af)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x31648e(0x19d)]());}));}));}[_0x714ef0(0x3ae)](){const _0x16499a=_0x714ef0;this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x3f5)][_0x16499a(0x3e4)](_0x4b27f7=>{const _0x58e783=_0x16499a;if(_0x4b27f7[_0x58e783(0x1c3)]===0x1){let _0x58c06b=_0x4b27f7[0x0];if(_0x58c06b[_0x58e783(0x198)]===_0x544f7a[_0x58e783(0x2c1)]){let _0x18cf24=this['_sheetsShapeService'][_0x58e783(0x199)](_0x58c06b[_0x58e783(0x277)],_0x58c06b['subUnitId'],_0x58c06b[_0x58e783(0x290)]);if(_0x18cf24&&_0x4cb876(_0x18cf24['getShapeType']())){this['_activeShapeId']=_0x58c06b[_0x58e783(0x290)],this[_0x58e783(0x180)]=_0x58c06b[_0x58e783(0x277)],this['_subUnitId']=_0x58c06b['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x58e783(0x19d)]();return;}}}this[_0x58e783(0x3de)]=void 0x0,this['_unitId']=void 0x0,this[_0x58e783(0x3af)]=void 0x0,this[_0x58e783(0x3a3)]();})),this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x22f)][_0x16499a(0x3e4)](_0x25f551=>{const _0x3f4802=_0x16499a;if(_0x25f551[_0x3f4802(0x1c3)]===0x1){var _0x38885e;let _0x5b27b8=_0x25f551[0x0],_0x4a14b3=(_0x38885e=this[_0x3f4802(0x20f)]['getDrawingByParam'](_0x5b27b8))==null?void 0x0:_0x38885e[_0x3f4802(0x198)];_0x4a14b3===_0x544f7a['DRAWING_SHAPE']&&_0x5b27b8['drawingId']===this[_0x3f4802(0x3de)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x3f4802(0x19d)]()):!this['_activeShapeId']&&_0x4a14b3===_0x544f7a[_0x3f4802(0x2c1)]&&this[_0x3f4802(0x2c2)](_0x5b27b8[_0x3f4802(0x277)],_0x5b27b8[_0x3f4802(0x3d0)],_0x5b27b8[_0x3f4802(0x290)]);}})),this['disposeWithMe'](this[_0x16499a(0x20f)][_0x16499a(0x3ba)]['subscribe'](_0x1ac6a3=>{const _0x2e4485=_0x16499a;for(let _0x4a2e47 of _0x1ac6a3){let {drawingId:_0x1fce44}=_0x4a2e47;if(this[_0x2e4485(0x3de)]===_0x1fce44){this[_0x2e4485(0x1b3)]();return;}}}));}[_0x714ef0(0x23c)](_0x384ed8,_0x3795d3,_0x5eeecb,_0x2d1cdf,_0x3d0e7f){const _0x33f611=_0x714ef0;var _0x462039;if(!this[_0x33f611(0x20d)])return;let _0x2688a7=this['_getConnectPointInfo'](_0x384ed8);if(!_0x2688a7)return;let _0x27158c=this[_0x33f611(0x3c1)]?this[_0x33f611(0x3c1)][_0x33f611(0x2b4)]:_0x3795d3,_0x2ae661=this['_currentConnectionTarget']?this[_0x33f611(0x3c1)][_0x33f611(0x2ae)]:this[_0x33f611(0x29b)](_0x2688a7['point'],_0x27158c),_0x4ec293;if(this['_currentConnectionTarget']){let _0x164e2a=this[_0x33f611(0x20f)][_0x33f611(0x2da)]({'unitId':this[_0x33f611(0x3c1)][_0x33f611(0x277)],'subUnitId':this[_0x33f611(0x3c1)]['subUnitId'],'drawingId':this[_0x33f611(0x3c1)]['shapeId']});if(_0x164e2a!=null&&_0x164e2a['transform']){let {left:_0x2fab41=0x0,top:_0x2ebdf6=0x0,width:_0x599fda=0x0,height:_0x20537e=0x0,angle:_0x43b80e}=_0x164e2a[_0x33f611(0x29f)];_0x4ec293=_0x4191f0({'left':_0x2fab41,'top':_0x2ebdf6,'width':_0x599fda,'height':_0x20537e},_0x43b80e||0x0);}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};let _0x4bb4a4={'point':_0x27158c,'angle':_0x2ae661,'bounds':_0x4ec293},_0x3d4be2=_0x5eeecb?_0x4bb4a4:_0x2688a7,_0x33dc0c=_0x5eeecb?_0x2688a7:_0x4bb4a4,_0x401777=this[_0x33f611(0x20d)]['getShapeType'](),_0x5a989e=_0x22d8a5(_0x3d4be2,_0x33dc0c,_0x401777);_0x5a989e&&this[_0x33f611(0x20d)][_0x33f611(0x2b5)](_0x5a989e);let _0x1d11f9=_0x1469b5(_0x5a989e,_0x401777);_0x1d11f9[_0x33f611(0x414)]!==_0x401777&&this[_0x33f611(0x20d)][_0x33f611(0x175)](_0x1d11f9[_0x33f611(0x414)]);for(let [_0x4f82cc,_0x4a86b8]of Object['entries'](_0x1d11f9[_0x33f611(0x33c)]))this[_0x33f611(0x20d)][_0x33f611(0x19c)](_0x4f82cc,_0x4a86b8);this[_0x33f611(0x20d)][_0x33f611(0x2b8)]({'width':_0x1d11f9['worldRect'][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)]['height']}),_0x2d1cdf[_0x33f611(0x1b1)]({'flipX':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x18d)],'flipY':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x300)],'left':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x201)],'top':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x211)],'width':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x2d4)],'angle':_0x1d11f9['rotation']}),_0x2d1cdf[_0x33f611(0x226)](!0x0);let _0x4a8739=((_0x462039=this[_0x33f611(0x3c1)])==null?void 0x0:_0x462039[_0x33f611(0x2b4)])??_0x3795d3;_0x3d0e7f[_0x33f611(0x1b1)]({'left':_0x4a8739['x']-_0x4945a0[_0x33f611(0x389)],'top':_0x4a8739['y']-_0x4945a0['cxnPointRadius']});}[_0x714ef0(0x1b7)](_0x52844c,_0x86ac44,_0x4494cd,_0x2c177a,_0x4b78a4){const _0x22211f=_0x714ef0;var _0x30afc0,_0x751a8c;let _0x4bc1be=((_0x30afc0=this[_0x22211f(0x3c1)])==null?void 0x0:_0x30afc0[_0x22211f(0x2b4)])??_0x52844c,_0x498065=_0x2610e3['computeConnectorResizeLayout'](_0x86ac44,_0x4bc1be,_0x4494cd);_0x2c177a['transformByState']({'flipX':_0x498065[_0x22211f(0x23b)][_0x22211f(0x18d)],'flipY':_0x498065[_0x22211f(0x23b)][_0x22211f(0x300)],'left':_0x498065['worldRect'][_0x22211f(0x201)],'top':_0x498065['worldRect'][_0x22211f(0x211)],'width':_0x498065[_0x22211f(0x23b)][_0x22211f(0x253)],'height':_0x498065[_0x22211f(0x23b)]['height'],'angle':_0x498065[_0x22211f(0x23b)][_0x22211f(0x2ae)]});let _0x5b891c=((_0x751a8c=this[_0x22211f(0x3c1)])==null?void 0x0:_0x751a8c[_0x22211f(0x2b4)])??_0x52844c;_0x4b78a4['transformByState']({'left':_0x5b891c['x']-_0x4945a0[_0x22211f(0x389)],'top':_0x5b891c['y']-_0x4945a0[_0x22211f(0x389)]});}['_getConnectPointInfo'](_0x537dcf){const _0x51988c=_0x714ef0;if(!this[_0x51988c(0x180)]||!this[_0x51988c(0x3af)])return null;let {shapeId:_0x5b7b47,cxnIndex:_0x32246b}=_0x537dcf,_0x4a1748=this[_0x51988c(0x251)][_0x51988c(0x199)](this[_0x51988c(0x180)],this['_subUnitId'],_0x5b7b47);if(!_0x4a1748)return null;let _0x509770=this[_0x51988c(0x20f)][_0x51988c(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x51988c(0x3af)],'drawingId':_0x5b7b47});if(!(_0x509770!=null&&_0x509770[_0x51988c(0x29f)]))return null;let {left:_0x53d3b9=0x0,top:_0x155500=0x0,width:_0x39af5a=0x0,height:_0x39376=0x0,flipX:_0x382886=!0x1,flipY:_0x441d57=!0x1,angle:_0x403ed8}=_0x509770[_0x51988c(0x29f)];_0x4a1748[_0x51988c(0x2b8)]({'width':_0x39af5a,'height':_0x39376});let _0x116ba6=_0x4a1748[_0x51988c(0x3e3)]()[_0x51988c(0x1f7)](_0xc55927=>_0xc55927[_0x51988c(0x330)]===_0x32246b);if(!_0x116ba6)return null;let _0x54caa2=_0x382886?_0x39af5a-_0x116ba6['x']:_0x116ba6['x'],_0x3fb971=_0x441d57?_0x39376-_0x116ba6['y']:_0x116ba6['y'];if(_0x403ed8!==0x0&&_0x403ed8!=null){let _0x1e25c9=_0x403ed8*Math['PI']/0xb4,_0x131e11=Math['cos'](_0x1e25c9),_0x4de130=Math[_0x51988c(0x267)](_0x1e25c9),_0x37b987=_0x39af5a/0x2,_0x4e37df=_0x39376/0x2,_0x4bcb82=_0x54caa2-_0x37b987,_0x4c2ce2=_0x3fb971-_0x4e37df;_0x54caa2=_0x37b987+_0x4bcb82*_0x131e11-_0x4c2ce2*_0x4de130,_0x3fb971=_0x4e37df+_0x4bcb82*_0x4de130+_0x4c2ce2*_0x131e11;}_0x54caa2+=_0x53d3b9,_0x3fb971+=_0x155500;let _0x34e020=_0x116ba6[_0x51988c(0x34a)]/0xea60;_0x382886&&(_0x34e020=0xb4-_0x34e020),_0x441d57&&(_0x34e020=-_0x34e020),_0x34e020+=_0x403ed8||0x0,_0x34e020=(_0x34e020%0x168+0x168)%0x168;let _0x2c1b4b=_0x4191f0({'left':_0x53d3b9,'top':_0x155500,'width':_0x39af5a,'height':_0x39376},_0x403ed8||0x0);return{'point':{'x':_0x54caa2,'y':_0x3fb971},'angle':_0x34e020,'bounds':_0x2c1b4b};}[_0x714ef0(0x29b)](_0x5e56d0,_0x198bfd){const _0x5b3937=_0x714ef0;let _0x522880=_0x198bfd['x']-_0x5e56d0['x'],_0x3bf3d8=_0x198bfd['y']-_0x5e56d0['y'];return Math[_0x5b3937(0x19a)](_0x522880)>=Math['abs'](_0x3bf3d8)?_0x522880>=0x0?0xb4:0x0:_0x3bf3d8>=0x0?0x10e:0x5a;}[_0x714ef0(0x1b3)](){const _0x360339=_0x714ef0;this[_0x360339(0x3de)]=void 0x0,this[_0x360339(0x180)]=void 0x0,this[_0x360339(0x3af)]=void 0x0,this[_0x360339(0x3a3)]();}['dispose'](){const _0xc9169b=_0x714ef0;this['_clearShapeConnectorHandlerObjects'](),super[_0xc9169b(0x232)]();}};ma=X([Y(0x1,_0x2b8a3e),Y(0x2,_0x1e1faa),Y(0x3,_0x19d008),Y(0x4,_0x1d15d2),Y(0x5,_0x5c502f(_0x5b8f71)),Y(0x6,_0x5c502f(Pr)),Y(0x7,_0x5c502f(da))],ma);let ha=class extends _0xe29064{constructor(_0x52fff1,_0x3099ef,_0x466b05){const _0x7d1bae=_0x714ef0;super(),this['_sheetPrintInterceptorService']=_0x52fff1,this[_0x7d1bae(0x20f)]=_0x3099ef,this['_shapeRenderController']=_0x466b05,this[_0x7d1bae(0x3ad)]();}[_0x714ef0(0x3ad)](){const _0x26ba8b=_0x714ef0;this['disposeWithMe'](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x204)](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x375)]()[_0x26ba8b(0x38b)],{'handler':(_0x2050dd,_0x812099,_0x10c3fd)=>{const _0x2ffaf3=_0x26ba8b;var _0x54cd46;let {unitId:_0x2c5c37,subUnitId:_0x2b4402,scene:_0x5c943e,resourceCollector:_0x4deb93}=_0x812099,_0x575b47=(_0x54cd46=this['_drawingManagerService'][_0x2ffaf3(0x38c)](_0x2c5c37))==null?void 0x0:_0x54cd46[_0x2b4402];return _0x575b47==null||_0x575b47['order'][_0x2ffaf3(0x185)](_0x49b5bf=>{const _0xd3293d=_0x2ffaf3;let _0x3b60aa=_0x575b47[_0xd3293d(0x307)][_0x49b5bf];_0x3b60aa['drawingType']===_0x544f7a[_0xd3293d(0x2c1)]&&!_0x3b60aa['hidden']&&this[_0xd3293d(0x20b)][_0xd3293d(0x258)](_0x3b60aa,_0x5c943e,{'resourceCollector':_0x4deb93});}),_0x10c3fd(_0x2050dd);}}));}};ha=X([Y(0x0,_0x5c502f(_0x39aad2)),Y(0x1,_0x19d008),Y(0x2,_0x5c502f(Z))],ha);let ga=class extends _0xe29064{constructor(_0x19a3c0,_0x16d241,_0x15aa45){const _0xd52ef0=_0x714ef0;super(),this[_0xd52ef0(0x1a7)]=_0x19a3c0,this['_localeService']=_0x16d241,this['_sheetPermissionCheckController']=_0x15aa45,this['_initPermission']();}[_0x714ef0(0x1ca)](){const _0x27acc8=_0x714ef0;this[_0x27acc8(0x238)](this[_0x27acc8(0x1a7)]['beforeCommandExecuted'](_0x18edf0=>{const _0x511fe2=_0x27acc8;let _0x15ceb6,_0x3bc3c3;if(_0x18edf0['id']===_0x166112['id']||_0x18edf0['id']===_0x2cc34c['id']||_0x18edf0['id']===_0x128516['id']){let _0xe5ca02=_0x18edf0[_0x511fe2(0x387)];_0x15ceb6=_0xe5ca02['unitId'],_0x3bc3c3=_0xe5ca02['subUnitId'];}_0x15ceb6&&_0x3bc3c3&&(this[_0x511fe2(0x28f)][_0x511fe2(0x2e2)]({'workbookTypes':[_0xe0fab9],'worksheetTypes':[_0x123e53]},_0x15ceb6,_0x3bc3c3)||this['_sheetPermissionCheckController'][_0x511fe2(0x35c)](this['_localeService']['t'](_0x511fe2(0x25c))));}));}};ga=X([Y(0x0,_0x5c502f(_0x2b8a3e)),Y(0x1,_0x5c502f(_0x30b59c)),Y(0x2,_0x5c502f(_0x33b80c))],ga);let _a=class{constructor(_0x56e322){const _0x11633f=_0x714ef0;this[_0x11633f(0x2cf)]=_0x56e322;}['updateShapeFillImage'](_0x15abf2,_0x1c0161){const _0x3f75d3=_0x714ef0;let _0x3b43cc=this[_0x3f75d3(0x2cf)][_0x3f75d3(0x2af)](_0x15abf2[_0x3f75d3(0x277)]),_0x44edd9=_0x3b43cc==null?void 0x0:_0x3b43cc['scene'];if(!_0x44edd9)return;let _0x276636=_0x562c30(_0x15abf2),_0x3c2bb8=_0x44edd9['getObjectIncludeInGroup'](_0x276636);_0x3c2bb8==null||_0x3c2bb8['setFillImage'](_0x1c0161);}};_a=X([Y(0x0,_0x1e1faa)],_a);let va=class extends _0x14d9ad{constructor(_0x6c11a1=Yi,_0x23cb0f,_0x4f58c6,_0x4590df,_0x1ffebb){const _0x4212d7=_0x714ef0;super(),this[_0x4212d7(0x1c6)]=_0x6c11a1,this[_0x4212d7(0x210)]=_0x23cb0f,this[_0x4212d7(0x1a7)]=_0x4f58c6,this[_0x4212d7(0x1ed)]=_0x4590df,this[_0x4212d7(0x2cf)]=_0x1ffebb;let {..._0x20402d}=_0x1a3e4c({},Yi,this[_0x4212d7(0x1c6)]);this[_0x4212d7(0x1ed)][_0x4212d7(0x215)](Ji,_0x20402d),this[_0x4212d7(0x2f5)]();}[_0x714ef0(0x3b5)](){const _0x138d7f=_0x714ef0;this[_0x138d7f(0x210)][_0x138d7f(0x25e)]([ta]),this[_0x138d7f(0x210)][_0x138d7f(0x2dd)](ta),_0x5ee9a9(this[_0x138d7f(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x5d6d0f=_0x714ef0;_0x5ee9a9(this[_0x5d6d0f(0x210)],[[da],[Pr],[fa]]),_0x6cf6c(this[_0x5d6d0f(0x210)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]]['forEach'](_0x53064f=>{const _0x2b7c24=_0x5d6d0f;this['disposeWithMe'](this[_0x2b7c24(0x2cf)][_0x2b7c24(0x220)](_0x58aa7b[_0x2b7c24(0x222)],_0x53064f));});}[_0x714ef0(0x3bb)](){const _0x92c803=_0x714ef0;_0x6cf6c(this[_0x92c803(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x714ef0(0x26c)](){const _0x1c7bba=_0x714ef0;this[_0x1c7bba(0x210)]['get'](aa)[_0x1c7bba(0x177)]();}[_0x714ef0(0x2f5)](){const _0x3a606d=_0x714ef0;[Ir,K,Fr,qi][_0x3a606d(0x185)](_0x586992=>this[_0x3a606d(0x238)](this[_0x3a606d(0x1a7)][_0x3a606d(0x334)](_0x586992)));}};q(va,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(va,'pluginName',_0x714ef0(0x289)),q(va,'packageName',Gi),q(va,_0x714ef0(0x3c6),Ki),va=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x58b005,_0x178f75,_0x50669f,_0x16c905,_0xdc088c),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],va);const ya={'type':_0x4017c5['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0x101d30=_0x714ef0;let _0x4fbcaa=_0x3bcf4c(_0x19d008),_0x14d533=_0x54184f(()=>_0x4fbcaa[_0x101d30(0x3f5)],_0x4fbcaa[_0x101d30(0x3dc)](),!0x1,[_0x4fbcaa]);return _0x14d533[_0x101d30(0x1c3)]===0x0?null:_0x230828(_0x101d30(0x412),{'children':_0x55ce9a('div',{'className':_0x101d30(0x1f5),'children':[_0x230828(_0x5527d5,{'drawings':_0x14d533,'hasCropper':!0x1}),_0x230828(_0x522516,{'drawings':_0x14d533})]})});}function xa(_0x239813){let {unitId:_0x10f323,subUnitId:_0x564449,shapeId:_0x17575c}=_0x239813,_0x46ef74=_0x3bcf4c(_0x2b8a3e),_0x3794ff=_0x3bcf4c(_a);return _0x230828(_0x624b40,{..._0x239813,'positionEditor':_0x230828(ba,{}),'onUpdateShapeData':(_0x54f802,_0x5c26f7)=>{Dr(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x54f802,_0x5c26f7);},'onUpdateLineShapeData':(_0x586015,_0x2c3b51)=>{Or(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x586015,_0x2c3b51);},'onUpdateShapeFillImage':_0x5b87f4=>{_0x3794ff['updateShapeFillImage']({'unitId':_0x10f323,'subUnitId':_0x564449,'drawingId':_0x17575c},_0x5b87f4);}});}function Sa(_0x31a25f){const _0x9cdba7=_0x714ef0;let _0x42b985=_0x3bcf4c(_0x21f7f2),_0x29c827=_0x54184f(()=>_0x42b985[_0x9cdba7(0x33a)],_0x42b985[_0x9cdba7(0x225)](),!0x1,[_0x42b985]),_0xd54b46=_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x370)];return!_0xd54b46||!_0x29c827?null:_0x230828(Ca,{..._0xd54b46,'canvasElement':_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x42c)]});}function Ca(_0x35d955){const _0x393270=_0x714ef0;let _0x34b08c=_0x3bcf4c(_0x2b8a3e),_0x3b2b2b=_0x3bcf4c(_0x5b8f71),{unitId:_0x8f7fcb,subUnitId:_0x370c82,drawingId:_0x59c74c,drawingType:_0x14af29,shapeType:_0x1c8aa6}=_0x35d955,[_0x8c8e52,_0x5c8c36]=_0x2f8af9(_0x35d955[_0x393270(0x3be)]),_0x16a6d2=_0x23fcdc(()=>_0x4f4448(_0x8c8e52),[_0x8c8e52]),_0xd47344=_0x23fcdc(()=>_0x109803(_0x8c8e52),[_0x8c8e52]);_0x5c63a2(()=>{const _0x200784=_0x393270;let _0x58bedc=_0x34b08c[_0x200784(0x40f)](_0x12a124=>{const _0x556272=_0x200784;if(_0x12a124['id']!==_0x197dab['id'])return;let _0xd1add7=_0x3b2b2b[_0x556272(0x3a4)](_0x8f7fcb,_0x370c82,_0x59c74c);_0xd1add7&&_0x5c8c36(_0xd1add7);});return()=>_0x58bedc['dispose']();},[_0x34b08c,_0x59c74c,_0x3b2b2b,_0x370c82,_0x8f7fcb]);let _0x2fd58a=_0x456990=>{_0x5c8c36(_0x1cd989=>({..._0x1cd989,..._0x456990}));},_0x478da4=_0x35fb8c=>{const _0x36c0a5=_0x393270;let _0xa88880=_0x380e1e(_0x8c8e52,_0x35fb8c);Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'shapeText':_0x8c8e52[_0x36c0a5(0x29a)]}},_0xa88880),_0x2fd58a(_0xa88880);},_0x56875a=_0x1f34d3({'hostType':_0x58aa7b['UNIVER_SHEET'],'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'shapeId':_0x59c74c,'shapeData':_0x8c8e52,'onUpdateBinding':_0x25a268=>{const _0x40c5fc=_0x393270;let _0x5a5f4a={'formulaBinding':_0x25a268};Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'formulaBinding':_0x8c8e52[_0x40c5fc(0x317)]}},_0x5a5f4a),_0x2fd58a(_0x5a5f4a);}});return _0x55ce9a(_0x1956c4,{'children':[_0x230828(_0x40aecd,{'canvasElement':_0x35d955[_0x393270(0x42c)],'shapeData':_0x8c8e52,'shapeType':_0x1c8aa6,'textStyle':{'ff':_0x4945a0[_0x393270(0x29a)]['fontFamily'],'fs':_0x4945a0['shapeText'][_0x393270(0x1aa)],'cl':{'rgb':_0x4945a0[_0x393270(0x29a)][_0x393270(0x3b0)]},..._0x16a6d2},'textModel':_0xd47344?{'ha':_0xd47344['ha']??_0x5d9043[_0x393270(0x1b8)],'va':_0xd47344['va']??_0x4f4c88['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4945a0[_0x393270(0x3f6)],'defaultGradientEndColor':_0x4945a0[_0x393270(0x192)],'defaultStrokeColor':_0x4945a0['stroke'],'extensionGroups':_0x56875a[_0x393270(0x27c)],'floatingObjectToolbarPosition':_0x2b4dd0[_0x393270(0x1ba)],'onUpdateShapeData':(_0x5a1a06,_0x3a9964)=>{Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,_0x5a1a06,_0x3a9964),_0x3a9964&&_0x2fd58a(_0x3a9964);},'onUpdateText':_0x478da4,'onOpenPanel':()=>{const _0x1f9b1e=_0x393270;_0x34b08c[_0x1f9b1e(0x40b)](Wr['id'],{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c});},'onDelete':()=>{const _0x2df693=_0x393270;_0x34b08c[_0x2df693(0x40b)](_0x3e89af['id'],{'unitId':_0x8f7fcb,'drawings':[{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c,'drawingType':_0x14af29}]});}}),_0x56875a[_0x393270(0x34f)]]});}function wa(_0x4993e7){const _0x2438d1=_0x714ef0;return!!_0x4993e7&&_0x2438d1(0x2b9)in _0x4993e7&&_0x2438d1(0x431)in _0x4993e7;}const Ta=_0x3aaaf3(()=>{const _0x2cca0a=_0x714ef0;let _0x5c91a9=_0x3bcf4c($),_0x2c5900=_0x3bcf4c(_0x5b8f71),_0x462e5b=_0x3bcf4c(_0x19d008),_0x178da5=_0x3bcf4c(_0x2b8a3e),_0x3801c2=_0x3bcf4c(_0x4605cf),_0x31ebbc=_0x3bcf4c(_0x1e1faa),_0x3c2239=_0x23fcdc(()=>({'getShapeModel':(_0x4c6252,_0x5893f2,_0x128514)=>_0x2c5900[_0x2cca0a(0x199)](_0x4c6252,_0x5893f2,_0x128514),'getShapeData':(_0x2d3e49,_0x4a2e7c,_0x263be2)=>_0x2c5900[_0x2cca0a(0x3a4)](_0x2d3e49,_0x4a2e7c,_0x263be2),'getDrawingTransform':(_0x256bc8,_0x50cd26,_0x55aaf8)=>{const _0x1bd8e5=_0x2cca0a;let _0xebcccd=_0x462e5b[_0x1bd8e5(0x2da)]({'unitId':_0x256bc8,'subUnitId':_0x50cd26,'drawingId':_0x55aaf8});return _0xebcccd==null?void 0x0:_0xebcccd[_0x1bd8e5(0x29f)];},'updateShapeText':({unitId:_0x3f57ee,subUnitId:_0x363789,shapeId:_0x37452a,shapeText:_0x4d341a,oldShapeText:_0x3bb813,hostSize:_0x477a18})=>{const _0x4b6d37=_0x2cca0a;_0x3801c2[_0x4b6d37(0x400)](_0x3f57ee,()=>{const _0x4cb08a=_0x4b6d37;var _0x57cf07;let _0x574bab=_0x178da5[_0x4cb08a(0x3ca)](K['id'],{'unitId':_0x3f57ee,'subUnitId':_0x363789,'shapeId':_0x37452a,'shapeData':{'shapeText':_0x4d341a},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3bb813}}});if(!_0x574bab||!_0x477a18)return _0x574bab;let _0x237f2e=_0x462e5b[_0x4cb08a(0x2da)]({'unitId':_0x3f57ee,'subUnitId':_0x363789,'drawingId':_0x37452a}),_0x18174b=_0x237f2e==null?void 0x0:_0x237f2e[_0x4cb08a(0x29f)];if(!wa(_0x237f2e)||!_0x18174b)return!0x1;let _0x1c4678={..._0x18174b,'width':_0x477a18[_0x4cb08a(0x253)],'height':_0x477a18[_0x4cb08a(0x2d4)]},_0x46dd79=(_0x57cf07=_0x31ebbc[_0x4cb08a(0x2af)](_0x3f57ee))==null||(_0x57cf07=_0x57cf07[_0x4cb08a(0x3e6)](_0x44086e)['getSkeletonParam'](_0x363789))==null?void 0x0:_0x57cf07[_0x4cb08a(0x425)];return _0x178da5[_0x4cb08a(0x3ca)](_0x297360['id'],{'unitId':_0x3f57ee,'drawings':[{..._0x237f2e,'transform':_0x1c4678,'sheetTransform':_0x46dd79?_0x33f6ee(_0x1c4678,_0x46dd79)??_0x237f2e[_0x4cb08a(0x431)]:_0x237f2e[_0x4cb08a(0x431)],'axisAlignSheetTransform':_0x46dd79?_0x5c977a(_0x1c4678,_0x46dd79)??_0x237f2e['axisAlignSheetTransform']:_0x237f2e[_0x4cb08a(0x2b9)]}]});});},'updateHostSize':({unitId:_0x50f2c0,subUnitId:_0x13ed9b,shapeId:_0x47eae8,width:_0x2d54ae,height:_0x45fb5e})=>{const _0x590aa3=_0x2cca0a;var _0x4e2d81;let _0x365ef8=_0x462e5b['getDrawingByParam']({'unitId':_0x50f2c0,'subUnitId':_0x13ed9b,'drawingId':_0x47eae8}),_0x557dc5=_0x365ef8==null?void 0x0:_0x365ef8[_0x590aa3(0x29f)];if(!wa(_0x365ef8)||!_0x557dc5)return;let _0x3212b3={..._0x557dc5,'width':_0x2d54ae,'height':_0x45fb5e},_0x20ea66=(_0x4e2d81=_0x31ebbc[_0x590aa3(0x2af)](_0x50f2c0))==null||(_0x4e2d81=_0x4e2d81[_0x590aa3(0x3e6)](_0x44086e)['getSkeletonParam'](_0x13ed9b))==null?void 0x0:_0x4e2d81['skeleton'],_0x516eab=_0x20ea66?_0x33f6ee(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x431)]:_0x365ef8['sheetTransform'],_0x402937=_0x20ea66?_0x5c977a(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x2b9)]:_0x365ef8[_0x590aa3(0x2b9)];_0x178da5[_0x590aa3(0x40b)](_0x297360['id'],{'unitId':_0x50f2c0,'drawings':[{..._0x365ef8,'transform':_0x3212b3,'sheetTransform':_0x516eab,'axisAlignSheetTransform':_0x402937}]});},'allowHostSizeShrink':({unitId:_0x305195,subUnitId:_0x20db2e,shapeId:_0x24bd8e})=>_0x248a4d(_0x2c5900['getShapeDataById'](_0x305195,_0x20db2e,_0x24bd8e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x178da5,_0x462e5b,_0x31ebbc,_0x2c5900,_0x3801c2]),_0x3fd060=_0x23fcdc(()=>({'viewportKeys':{'main':_0x5b9251[_0x2cca0a(0x3b2)],'leftTop':_0x5b9251[_0x2cca0a(0x1ee)],'top':_0x5b9251[_0x2cca0a(0x234)],'left':_0x5b9251[_0x2cca0a(0x1df)]},'getSkeleton':(_0x77b6c6,_0x4e4c9b)=>{const _0x5e946f=_0x2cca0a;var _0x33e966;return((_0x33e966=_0x77b6c6[_0x5e946f(0x3e6)](_0x44086e)['getSkeletonParam'](_0x4e4c9b[_0x5e946f(0x3d0)]))==null?void 0x0:_0x33e966[_0x5e946f(0x425)])??null;}}),[]);return _0x230828(_0x430207,{'adapter':_0x3c2239,'editingService':_0x5c91a9,'editorUnitId':Vr,'positionOptions':_0x3fd060});});let Ea=class extends _0xe29064{constructor(_0x4eda1c,_0x495384){const _0x261d6a=_0x714ef0;super(),this['_componentManager']=_0x4eda1c,this[_0x261d6a(0x270)]=_0x495384,this['_registerIcons'](),this[_0x261d6a(0x1b6)]();}['_registerIcons'](){const _0x32c1d1=_0x714ef0;this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x3a6))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'ObjectLayersIcon':_0xe11253})),this[_0x32c1d1(0x270)]['has'](_0x32c1d1(0x376))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'FlipHorizontalIcon':_0x4b0f8a})),this['_iconManager'][_0x32c1d1(0x2c6)]('FlipVerticalIcon')||this['disposeWithMe'](this['_iconManager'][_0x32c1d1(0x268)]({'FlipVerticalIcon':_0x5e2243})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x3fc))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'BottomIcon':_0x5d75f2})),this[_0x32c1d1(0x270)]['has']('MoveDownIcon')||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)]['register']({'MoveDownIcon':_0x178ad9})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)]('MoveUpIcon')||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'MoveUpIcon':_0x1ab950})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x424))||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'ShapeFormatSettingIcon':_0x1496d5})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x279))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'TopmostIcon':_0x215261}));}[_0x714ef0(0x1b6)](){const _0x19b635=_0x714ef0;this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Lr,xa)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Rr,$i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Jr,ei)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](Yr,Zr)),this[_0x19b635(0x21f)][_0x19b635(0x200)](_0x4fdf51)||this['disposeWithMe'](this['_componentManager']['register'](_0x4fdf51,$r)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)]['register'](zr,Sa)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](di,hi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](ui,gi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](fi,_i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](pi,vi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Hr,_0xca529a)),this[_0x19b635(0x238)](this['_componentManager'][_0x19b635(0x268)](_0x19b635(0x3a7),Ta));}};Ea=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],Ea);let Da=class extends _0xe29064{constructor(_0x3af243,_0x44d1c7,_0x2480f6,_0x5a3741,_0x1ef198,_0x219aa8,_0x3c4848,_0x253023,_0x117c21){const _0x52c9fc=_0x714ef0;super();let _0x18a95b=_0x26d788=>{const _0x10d7d3=_0x5396;var _0x1ddf90,_0x19385b;return(((_0x1ddf90=_0x253023[_0x10d7d3(0x3d2)](new _0xe0fab9(_0x26d788['unitId'])['id']))==null?void 0x0:_0x1ddf90[_0x10d7d3(0x313)])??!0x0)&&(((_0x19385b=_0x253023[_0x10d7d3(0x3d2)](new _0x123e53(_0x26d788['unitId'],_0x26d788[_0x10d7d3(0x3d0)])['id']))==null?void 0x0:_0x19385b[_0x10d7d3(0x313)])??!0x0);},_0xf31427=_0x259060=>_0x259060[_0x52c9fc(0x21d)]&&_0x18a95b(_0x259060)?_0x2480f6[_0x52c9fc(0x3a4)](_0x259060[_0x52c9fc(0x277)],_0x259060['subUnitId'],_0x259060[_0x52c9fc(0x21d)])??null:null,_0xaf04d2=()=>{const _0xe1a568=_0x52c9fc;let _0x331605=_0x1ef198['getFocusDrawings'](),_0x38c548=_0x331605[_0xe1a568(0x1c3)]===0x1?_0x331605[0x0]:null;return(_0x38c548==null?void 0x0:_0x38c548['drawingType'])===_0x544f7a[_0xe1a568(0x2c1)]&&_0x38c548[_0xe1a568(0x277)]===_0x3af243[_0xe1a568(0x277)]?{'unitId':_0x38c548[_0xe1a568(0x277)],'subUnitId':_0x38c548[_0xe1a568(0x3d0)],'shapeId':_0x38c548[_0xe1a568(0x290)]}:null;};this[_0x52c9fc(0x238)](_0x3b4dfd(_0x3af243,_0x44d1c7,{'changes$':_0x252868(_0x1ef198[_0x52c9fc(0x3f5)],_0x5a3741['editingParams$'],_0x253023[_0x52c9fc(0x174)]),'isActive':()=>{const _0x2f21a1=_0x52c9fc;var _0x5c5e79;return((_0x5c5e79=_0x219aa8['getFocusedUnit']())==null?void 0x0:_0x5c5e79[_0x2f21a1(0x1b0)]())===_0x3af243[_0x2f21a1(0x277)]&&!_0x3c4848['getContextValue'](_0xd91ec1)&&_0x1ef198['getFocusDrawings']()[_0x2f21a1(0x162)](_0x2ea88d=>_0x2ea88d[_0x2f21a1(0x277)]===_0x3af243['unitId']);},'getSelectedTarget':_0xaf04d2,'getSource':()=>{let _0x4b7220=_0xaf04d2();return _0x4b7220?_0xf31427(_0x4b7220):null;},'getTarget':_0x3d70a1=>{const _0x3dfaf2=_0x52c9fc;let _0x12c5ef=_0x3af243[_0x3dfaf2(0x1d4)]['pick'](new _0x5be732(_0x3d70a1[_0x3dfaf2(0x1bb)],_0x3d70a1[_0x3dfaf2(0x309)]));if(!(_0x12c5ef instanceof J))return null;let _0x177a14={'unitId':_0x3af243[_0x3dfaf2(0x277)],'subUnitId':_0x12c5ef[_0x3dfaf2(0x3d0)],'shapeId':_0x12c5ef[_0x3dfaf2(0x21d)]};return _0x18a95b(_0x177a14)?_0x177a14:null;},'getShape':_0xf31427,'update':(_0x42bcc2,_0x566b82,_0x52ae6e)=>_0x117c21[_0x52c9fc(0x40b)](K['id'],{..._0x42bcc2,'shapeData':_0x52ae6e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x566b82}})}));}};Da=X([Y(0x1,_0x5c502f(_0x43a96f)),Y(0x2,_0x5c502f(_0x5b8f71)),Y(0x3,_0x5c502f($)),Y(0x4,_0x19d008),Y(0x5,_0x1d15d2),Y(0x6,_0x3ae1e3),Y(0x7,_0x9a590e),Y(0x8,_0x2b8a3e)],Da);const Oa=_0x714ef0(0x167);let ka=class extends _0xe29064{constructor(_0x1fd4d0,_0x19c499,_0x4d4dde,_0x307c43,_0x503135,_0x5ac407){const _0x4e91c4=_0x714ef0;super(),this['_menuManagerService']=_0x1fd4d0,this['_ribbonService']=_0x19c499,this['_drawingManagerService']=_0x4d4dde,this[_0x4e91c4(0x2be)]=_0x307c43,this[_0x4e91c4(0x2cf)]=_0x503135,this['_shapeFloatingToolbarService']=_0x5ac407,q(this,_0x4e91c4(0x31d),!0x1),this['_menuManagerService'][_0x4e91c4(0x377)](Hi),this[_0x4e91c4(0x238)](_0x128476(this['_drawingManagerService']['focus$'][_0x4e91c4(0x3e4)](()=>this['_update']()))),this['_update']();}[_0x714ef0(0x232)](){const _0x4f4ac1=_0x714ef0;this[_0x4f4ac1(0x243)][_0x4f4ac1(0x16c)](!0x1,Oa),this[_0x4f4ac1(0x255)](),super[_0x4f4ac1(0x232)]();}[_0x714ef0(0x15e)](){const _0x43b650=_0x714ef0;var _0x32e311;let _0x2be239=this[_0x43b650(0x20f)][_0x43b650(0x3dc)](),_0x4a83a5=_0x2be239['length']===0x1?_0x2be239[0x0]:void 0x0;if((_0x4a83a5==null?void 0x0:_0x4a83a5['drawingType'])!==_0x544f7a[_0x43b650(0x2c1)]||this[_0x43b650(0x2be)]['getUnitType'](_0x4a83a5[_0x43b650(0x277)])!==_0x58aa7b['UNIVER_SHEET']){this[_0x43b650(0x243)][_0x43b650(0x16c)](!0x1,Oa),this[_0x43b650(0x255)]();return;}let _0xe48f26=(_0x32e311=this[_0x43b650(0x2cf)][_0x43b650(0x2af)](_0x4a83a5[_0x43b650(0x277)]))==null?void 0x0:_0x32e311[_0x43b650(0x299)][_0x43b650(0x1c1)](),_0x342d7d=_0x3bb4cc(_0xe48f26)==='isolated';this[_0x43b650(0x243)][_0x43b650(0x16c)](_0x342d7d,Oa),_0x342d7d?this[_0x43b650(0x255)]():this[_0x43b650(0x31d)]||(this[_0x43b650(0x31d)]=!0x0,this[_0x43b650(0x26e)][_0x43b650(0x1e2)](Br,{'activate':!0x0}));}[_0x714ef0(0x255)](){const _0xdd0517=_0x714ef0;this[_0xdd0517(0x31d)]&&(this[_0xdd0517(0x31d)]=!0x1,this[_0xdd0517(0x26e)][_0xdd0517(0x325)](Br),this[_0xdd0517(0x26e)][_0xdd0517(0x1fc)]([]));}};ka=X([Y(0x0,_0x308400),Y(0x1,_0x1dad42),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x1e1faa),Y(0x5,_0x5c502f(_0x21f7f2))],ka);let Aa=class extends _0x4a3283{constructor(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8){super(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x5c502f(_0x50e1f3)),Y(0x2,_0x5c502f(_0x3b5158)),Y(0x3,_0x5c502f(_0x533da4)),Y(0x4,_0x2b8a3e),Y(0x5,_0x5c502f(_0x13e37b)),Y(0x6,_0x5c502f(_0x26baa8)),Y(0x7,_0x5c502f(_0x18dd84)),Y(0x8,_0x5c502f(_0x14fc5b)),Y(0x9,_0x5c502f($))],Aa);let ja=class extends _0x1a7486{constructor(_0x4a8efb,_0x4cd92c,_0x3923b1,_0x2a8aa9,_0x3ab342){const _0x5ac9d4=_0x714ef0;super(_0x4a8efb,_0x4cd92c,{'editing$':_0x3923b1['editingParams$'],'resolve':_0x20f8e6=>{const _0x27e755=_0x5396;var _0x5789d2,_0x470fba,_0x3b8df7;let _0x763e78=new _0x5be732(_0x20f8e6[_0x27e755(0x1bb)],_0x20f8e6[_0x27e755(0x309)]),_0xf76910=((_0x5789d2=_0x4a8efb[_0x27e755(0x1d4)][_0x27e755(0x2c3)](_0x763e78))==null?void 0x0:_0x5789d2[_0x27e755(0x393)](_0x763e78))??_0x763e78,_0x19195a=_0x296a42(_0x4a8efb[_0x27e755(0x1d4)]['pick'](_0x763e78)??null,_0xf76910);if(!(_0x19195a instanceof J))return null;let _0x7f9f44=_0x19195a[_0x27e755(0x24e)](_0xf76910);if(!_0x7f9f44)return null;let _0x8c634b=_0x19195a,_0x39d6d0={'componentKey':_0x2c3aaf[_0x27e755(0x433)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x4cd92c[_0x27e755(0x362)]()};return{'object':_0x19195a,'info':{..._0x7f9f44,'unitId':_0x19195a['unitId'],'subUnitId':_0x19195a[_0x27e755(0x3d0)],'shapeKey':_0x19195a['oKey'],'readonly':!0x0,'copyable':((_0x470fba=_0x3ab342[_0x27e755(0x3d2)](new _0x324600(_0x19195a[_0x27e755(0x277)])['id']))==null?void 0x0:_0x470fba[_0x27e755(0x313)])!==!0x1&&((_0x3b8df7=_0x3ab342[_0x27e755(0x3d2)](new _0x51eb20(_0x19195a[_0x27e755(0x277)],_0x19195a[_0x27e755(0x3d0)])['id']))==null?void 0x0:_0x3b8df7[_0x27e755(0x313)])!==!0x1},'attachPopup':()=>_0x2a8aa9[_0x27e755(0x1d2)](_0x8c634b,_0x39d6d0)};}}),this['disposeWithMe'](_0x4a8efb[_0x5ac9d4(0x3d1)][_0x5ac9d4(0x434)][_0x5ac9d4(0x3e4)](()=>this[_0x5ac9d4(0x1d6)]()));}};ja=X([Y(0x1,_0x5c502f(_0x26baa8)),Y(0x2,_0x5c502f($)),Y(0x3,_0x5c502f(_0x2373db)),Y(0x4,_0x9a590e)],ja);let Ma=class extends _0xe29064{constructor(_0xd62fac,_0x560981,_0x44c90e,_0x133d49,_0x163ce7,_0x44fc08,_0x52d935,_0x42da18,_0x58bfbd,_0x5a0f61,_0x49176f){const _0x3991ed=_0x714ef0;super(),this[_0x3991ed(0x2be)]=_0xd62fac,this[_0x3991ed(0x3c8)]=_0x560981,this['_menuManagerService']=_0x44c90e,this[_0x3991ed(0x251)]=_0x133d49,this[_0x3991ed(0x331)]=_0x163ce7,this[_0x3991ed(0x1a7)]=_0x44fc08,this[_0x3991ed(0x20f)]=_0x52d935,this[_0x3991ed(0x247)]=_0x42da18,this['_contextService']=_0x58bfbd,this['_renderManagerService']=_0x5a0f61,this[_0x3991ed(0x26b)]=_0x49176f,q(this,_0x3991ed(0x1dc),null),q(this,_0x3991ed(0x39f),null),q(this,_0x3991ed(0x2d7),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x3991ed(0x1af),null),q(this,_0x3991ed(0x275),[]),this[_0x3991ed(0x422)](),this[_0x3991ed(0x238)](this[_0x3991ed(0x2be)][_0x3991ed(0x30d)](_0x58aa7b[_0x3991ed(0x222)])[_0x3991ed(0x3e4)](_0x2f1b04=>{const _0x277d13=_0x3991ed;if(!_0x2f1b04){var _0x10293d;(_0x10293d=this[_0x277d13(0x1dc)])==null||_0x10293d['dispose']();}})),this[_0x3991ed(0x18f)](),this[_0x3991ed(0x177)](),this[_0x3991ed(0x238)](this['_shapeTextEditingService']['editingParams$'][_0x3991ed(0x3e4)](_0x117bf1=>{const _0x178220=_0x3991ed;_0x117bf1&&this[_0x178220(0x3a2)]();}));}[_0x714ef0(0x422)](){const _0x2d8462=_0x714ef0;this[_0x2d8462(0x369)]['mergeMenu'](Wi);}['initShapePopupMenu'](){const _0x12259c=_0x714ef0;this[_0x12259c(0x1af)]||=this[_0x12259c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x12259c(0x222)],_0x2d4054=>this[_0x12259c(0x305)](_0x2d4054)));}[_0x714ef0(0x417)](_0x3ef4c0,_0x2a7090,_0x3e4c95){const _0x4d0eaa=_0x714ef0;let _0x19f785=this['_sheetsShapeService']['getShapeTypeById'](_0x3ef4c0,_0x2a7090,_0x3e4c95),_0x51052c=this[_0x4d0eaa(0x251)][_0x4d0eaa(0x3a4)](_0x3ef4c0,_0x2a7090,_0x3e4c95);return _0x19f785!==void 0x0&&_0x51052c!==void 0x0?{'shapeData':_0x51052c,'shapeId':_0x3e4c95,'shapeType':_0x19f785,'unitId':_0x3ef4c0,'subUnitId':_0x2a7090,'version':this[_0x4d0eaa(0x2f4)],'disableShapeOption':!0x1}:null;}[_0x714ef0(0x3a2)](){const _0x560da7=_0x714ef0;this[_0x560da7(0x275)][_0x560da7(0x185)](_0x4bb67c=>_0x4bb67c[_0x560da7(0x232)]()),this[_0x560da7(0x275)]['length']=0x0;}[_0x714ef0(0x305)](_0x4c6a9c){const _0x38a3ed=_0x714ef0;let _0x5c439b=new _0x5941cd();return _0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1c5)][_0x38a3ed(0x3e4)](()=>{const _0xd47fb2=_0x38a3ed;let _0x14ea7f=_0x4c6a9c[_0xd47fb2(0x319)]();if(this[_0xd47fb2(0x3a2)](),this[_0xd47fb2(0x2d7)]||_0x14ea7f[_0xd47fb2(0x296)]>0x1)return;let _0x571d60=_0x14ea7f['values']()[_0xd47fb2(0x3ee)]()[_0xd47fb2(0x313)];if(!_0x571d60)return;let _0x5a913e=this[_0xd47fb2(0x20f)][_0xd47fb2(0x208)](_0x571d60['oKey']);if(!_0x5a913e||_0x5a913e['drawingType']!==_0x544f7a[_0xd47fb2(0x2c1)])return;let {unitId:_0x49e3e1,subUnitId:_0x4418b0,drawingId:_0x5e72bd,drawingType:_0x34e64b}=_0x5a913e,_0xad6dd=this['_getShapeInfo'](_0x49e3e1,_0x4418b0,_0x5e72bd);if(!_0xad6dd)return;this[_0xd47fb2(0x1a2)][_0xd47fb2(0x237)](_0x435760,!0x0);let _0x375132=this[_0xd47fb2(0x2cf)][_0xd47fb2(0x2af)](_0x49e3e1),_0x4fba71=((_0x375132==null?void 0x0:_0x375132['isMainScene'])===!0x1?_0x375132['with'](_0x2373db):this[_0xd47fb2(0x247)])[_0xd47fb2(0x1d2)](_0x571d60,{'componentKey':zr,'direction':_0xd47fb2(0x245),'offset':[0x0,_0x571bee],'extraProps':{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd,'drawingType':_0x34e64b,'shapeType':_0xad6dd[_0xd47fb2(0x3b7)],'shapeData':_0xad6dd['shapeData']}});this[_0xd47fb2(0x275)]['push'](this['disposeWithMe'](_0x4fba71)),this[_0xd47fb2(0x20f)][_0xd47fb2(0x3dc)]()[_0xd47fb2(0x1f7)](_0x97c6f=>_0x97c6f[_0xd47fb2(0x277)]===_0x49e3e1&&_0x97c6f[_0xd47fb2(0x3d0)]===_0x4418b0&&_0x97c6f[_0xd47fb2(0x290)]===_0x5e72bd)||this[_0xd47fb2(0x20f)][_0xd47fb2(0x36f)]([{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd}]);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1e5)][_0x38a3ed(0x3e4)](()=>{const _0x42d8bc=_0x38a3ed;this[_0x42d8bc(0x3a2)](),this[_0x42d8bc(0x1a2)][_0x42d8bc(0x237)](_0x435760,!0x1),this[_0x42d8bc(0x20f)][_0x42d8bc(0x36f)](null);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c['changing$'][_0x38a3ed(0x3e4)](()=>{const _0x21f931=_0x38a3ed;this[_0x21f931(0x3a2)]();})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x320)]['subscribe'](()=>{const _0x31bfd5=_0x38a3ed;this[_0x31bfd5(0x3a2)]();})),_0x128476(()=>{const _0x10044b=_0x38a3ed;_0x5c439b[_0x10044b(0x232)](),this[_0x10044b(0x3a2)]();});}['_registerOperations'](){const _0x3af358=_0x714ef0;this[_0x3af358(0x238)](this[_0x3af358(0x1a7)][_0x3af358(0x40f)](_0x3cc638=>{const _0x23bd7d=_0x3af358;if(_0x3cc638['id']===Wr['id']){let {unitId:_0x22c0a3,subUnitId:_0x1a8a0a,drawingId:_0x18f77c}=_0x3cc638[_0x23bd7d(0x387)];this['_shapeEditPanelVersion']+=0x1,this[_0x23bd7d(0x39f)]=this[_0x23bd7d(0x417)](_0x22c0a3,_0x1a8a0a,_0x18f77c),this[_0x23bd7d(0x3a2)](),this[_0x23bd7d(0x30b)]();}if(_0x3cc638['id']===ya['id']&&(this[_0x23bd7d(0x39f)]=null,this[_0x23bd7d(0x353)]()),_0x3cc638['id']===_0x197dab['id']){let {unitId:_0x5d6445,subUnitId:_0xfdad42,shapeId:_0x2060c0}=_0x3cc638['params'];if(this[_0x23bd7d(0x39f)]&&this['_activeShapeInfo'][_0x23bd7d(0x21d)]===_0x2060c0){let _0x180ae2=this[_0x23bd7d(0x417)](_0x5d6445,_0xfdad42,_0x2060c0);_0x180ae2&&(this[_0x23bd7d(0x2f4)]+=0x1,_0x180ae2['version']=this[_0x23bd7d(0x2f4)],this[_0x23bd7d(0x39f)]=_0x180ae2,this[_0x23bd7d(0x2d7)]&&this[_0x23bd7d(0x30b)]());}}})),this[_0x3af358(0x238)](this[_0x3af358(0x20f)][_0x3af358(0x3f5)]['subscribe'](_0x277d21=>{const _0x567bf0=_0x3af358;if(this[_0x567bf0(0x2d7)]===!0x1)return;if(_0x277d21[_0x567bf0(0x1c3)]===0x0){this[_0x567bf0(0x39f)]=null,this[_0x567bf0(0x353)]();return;}if(_0x277d21[_0x567bf0(0x1c3)]===0x1&&_0x277d21[0x0][_0x567bf0(0x198)]===_0x544f7a['DRAWING_SHAPE']&&(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)])){this['_openShapeEditPanel']();return;}let _0x111efc=_0x277d21[_0x567bf0(0x3c0)](_0x4f989e=>_0x4f989e['drawingType']===_0x544f7a[_0x567bf0(0x2c1)]);if(_0x277d21[_0x567bf0(0x1c3)]>0x1&&_0x111efc[_0x567bf0(0x1c3)]===_0x277d21[_0x567bf0(0x1c3)]){if(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0]['unitId'],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this['_activeShapeInfo']){this[_0x567bf0(0x30b)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)]){this[_0x567bf0(0x39f)]['disableShapeOption']=!0x0,this[_0x567bf0(0x30b)]();return;}}this[_0x567bf0(0x353)]();}));}['_openShapeEditPanel'](){const _0x25083d=_0x714ef0;this['_activeShapeInfo']&&(this[_0x25083d(0x1dc)]=this[_0x25083d(0x3c8)][_0x25083d(0x249)]({'id':Lr,'header':{'title':this[_0x25083d(0x331)]['t'](_0x25083d(0x35d))},'width':0x184,'children':{'label':Lr,...this[_0x25083d(0x39f)]},'onClose':()=>{const _0x55ce69=_0x25083d;this[_0x55ce69(0x20f)][_0x55ce69(0x36f)](null),this['_contextService'][_0x55ce69(0x237)](_0x435760,!0x1),this[_0x55ce69(0x1dc)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xa5d0e9=_0x714ef0;this[_0xa5d0e9(0x2d7)]=!0x1,this[_0xa5d0e9(0x3c8)][_0xa5d0e9(0x2ef)](Lr),this[_0xa5d0e9(0x1dc)]=null,this[_0xa5d0e9(0x1a2)][_0xa5d0e9(0x237)](_0x435760,!0x1),this[_0xa5d0e9(0x20f)]['focusDrawing'](null);}};Ma=X([Y(0x0,_0x1d15d2),Y(0x1,_0x5c502f(_0x3d8cd5)),Y(0x2,_0x308400),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x30b59c)),Y(0x5,_0x2b8a3e),Y(0x6,_0x19d008),Y(0x7,_0x5c502f(_0x2373db)),Y(0x8,_0x3ae1e3),Y(0x9,_0x1e1faa),Y(0xa,_0x5c502f($))],Ma);let Na=class extends _0x14d9ad{constructor(_0x3422c8=Yi,_0x378043,_0x706a40,_0x4bd741,_0x5b7d70){const _0x3f6bc2=_0x714ef0;super(),this[_0x3f6bc2(0x1c6)]=_0x3422c8,this[_0x3f6bc2(0x210)]=_0x378043,this[_0x3f6bc2(0x1a7)]=_0x706a40,this[_0x3f6bc2(0x1ed)]=_0x4bd741,this[_0x3f6bc2(0x2cf)]=_0x5b7d70;let {..._0x4a48c6}=_0x1a3e4c({},Yi,this['_config']);this[_0x3f6bc2(0x1ed)]['setConfig'](Ji,_0x4a48c6),this[_0x3f6bc2(0x2f5)]();}[_0x714ef0(0x3bb)](){const _0x44168c=_0x714ef0;this[_0x44168c(0x2cf)][_0x44168c(0x220)](_0x58aa7b[_0x44168c(0x2aa)],[Aa]),_0x6cf6c(this[_0x44168c(0x210)],[[Ma],[ca],[Z],[ha]]);}[_0x714ef0(0x26c)](){const _0x506ede=_0x714ef0;this[_0x506ede(0x210)][_0x506ede(0x2dd)](Ma)[_0x506ede(0x177)]();}[_0x714ef0(0x397)](){const _0x17e3a2=_0x714ef0;[[da],[Pr],[fa]][_0x17e3a2(0x185)](_0x2a140e=>this[_0x17e3a2(0x210)][_0x17e3a2(0x25e)](_0x2a140e)),_0x6cf6c(this[_0x17e3a2(0x210)],[[fa],[Pr]]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[da]),this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Xi]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b['UNIVER_SHEET'],[ma]),this[_0x17e3a2(0x2cf)]['registerRenderModule'](_0x58aa7b['UNIVER_SHEET'],[na]),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[ja])),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Da]));}[_0x714ef0(0x3b5)](){const _0x13e78a=_0x714ef0;this['_injector'][_0x13e78a(0x25e)]([Ea]),this[_0x13e78a(0x210)][_0x13e78a(0x2dd)](Ea);let _0x2c07a1=this['_injector'];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x13e78a(0x185)](_0x286bef=>_0x2c07a1[_0x13e78a(0x25e)](_0x286bef)),_0x6cf6c(this[_0x13e78a(0x210)],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x714ef0(0x2f5)](){const _0x4a75cf=_0x714ef0;[Ir,K,ya,Wr,Ur,Fr,Kr,qr]['forEach'](_0x3da684=>this[_0x4a75cf(0x238)](this[_0x4a75cf(0x1a7)][_0x4a75cf(0x334)](_0x3da684)));}};q(Na,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(Na,_0x714ef0(0x27b),'SHEET_SHAPE_UI_PLUGIN'),q(Na,_0x714ef0(0x17c),Gi),q(Na,_0x714ef0(0x3c6),Ki),Na=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x2cd028,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x33abc1,_0x178f75,_0x1542ac,_0x28f3b2),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|