@univerjs-pro/sheets-shape-ui 1.0.0-alpha.5 → 1.0.0-alpha.6
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 +17 -17
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ed313=_0x2c6b;(function(_0x2bf277,_0xd8f8df){const _0x2ce914=_0x2c6b,_0x3f16a4=_0x2bf277();while(!![]){try{const _0x3f8fb9=-parseInt(_0x2ce914(0x1a9))/0x1+-parseInt(_0x2ce914(0x2de))/0x2*(parseInt(_0x2ce914(0x1e3))/0x3)+parseInt(_0x2ce914(0x212))/0x4+-parseInt(_0x2ce914(0x25b))/0x5*(parseInt(_0x2ce914(0x18a))/0x6)+parseInt(_0x2ce914(0x2fa))/0x7*(-parseInt(_0x2ce914(0xb9))/0x8)+parseInt(_0x2ce914(0x17f))/0x9*(-parseInt(_0x2ce914(0x9b))/0xa)+parseInt(_0x2ce914(0x144))/0xb*(parseInt(_0x2ce914(0x26c))/0xc);if(_0x3f8fb9===_0xd8f8df)break;else _0x3f16a4['push'](_0x3f16a4['shift']());}catch(_0x4df951){_0x3f16a4['push'](_0x3f16a4['shift']());}}}(_0x3808,0xed7d0));import{ComponentManager as _0x4540cf,IMenuManagerService as _0x496115,ISidebarService as _0x37253d,IconManager as _0x4df38c,MenuItemType as _0x235f66,RibbonInsertGroup as _0xb4efea,getMenuHiddenObservable as _0x53fb5c,useDependency as _0x19c54a,useObservable as _0x46233d}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x397de9,ImageSourceTypeEnum as _0x22d668,ShapeArrowSizeEnum as _0x56f02b,ShapeArrowTypeEnum as _0x374401,ShapeDefaultConfig as _0x42c7e9,ShapeFillEnum as _0x5c4d97,ShapeLineTypeEnum as _0x143b14,ShapeModel as _0x5ebb51,ShapeRenderModeEnum as _0x29001e,ShapeTypeEnum as _0x54d8d8,computeConnectorRouteLayout as _0x9e1c6d,getBasicShapeRotateBound as _0x3313a8,isConnectorShape as _0x5cb95b,isCurvedConnectorShape as _0x10e5ba,routeConnectorLineShape as _0x36ebbb}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x1fb431,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x4cb7b4,ShapeEditPanel as _0x4eff46,ShapeFloatingToolbar as _0x49830f,ShapeGroupEnum as _0x4cc531,ShapePickerDropdown as _0xa19501,ShapePickerPanel as _0x1afc0d,ShapeTextEditorContainer as _0x25c457,ShapeTextFloatMenuRenderControllerBase as _0x3bceb9,ShapeTextFloatToolbar as _0x2933dd,UniverShapeEditorUIPlugin as _0x343243,activateDrawingObject as _0x195857,buildShapeTextDataUpdate as _0x5d5024,clearActiveDrawingObjects as _0x1fa821,createShapeTextBoxShapeData as _0x4ccb02,getTextModel as _0x490101,getTextStyle as _0x1b3033,normalizeShapeTextModel as _0x20928e,plainShapeTextToDocumentData as _0x51a1a1,prepareShapeTextDocumentData as _0x40bc75,resolveShapeTextDocumentRenderLayout as _0xb1c89f,resolveShapeTextEditorBehaviorShapeData as _0x3841e9,resolveShapeTextEditorWrapStrategy as _0x384428,shouldAllowShapeTextEditorHostSizeShrink as _0x51d9f6,shouldClipShapeTextDocument as _0x17d6c9}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x387a51,InsertSheetsShapeMutation as _0x32d1ef,RemoveSheetsShapeMutation as _0x1e03c8,SetShapeDrawingDataCommand as _0x5b49f8,SetSheetsShapeRotateCommand as _0x59e11d,SetSheetsShapeTextVerticalToggleCommand as _0x1b4149,SheetsShapeService as _0x5486d2,ToggleSheetsShapeFlipCommand as _0x1b9f94,UniverSheetsShapePlugin as _0x4dccc5,UpdateConnectorRelationCommand as _0x31e98d,UpdateLineShapeResizeCommand as _0x6953a0,UpdateSheetsShapeDataMutation as _0x44e25c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x512ac4,CommandType as _0x5da788,DependentOn as _0x1f5803,Disposable as _0x17a082,DocumentDataModel as _0x208f5e,DrawingTypeEnum as _0x14c67a,FOCUSING_COMMON_DRAWINGS as _0x550431,FOCUSING_SHAPE_TEXT_EDITOR as _0x2d4bac,HorizontalAlign as _0x228a64,ICommandService as _0x2eaf9c,IConfigService as _0x111a3e,IContextService as _0x3bb4e2,IImageIoService as _0x698ad9,IURLImageService as _0x3a8a4e,IUndoRedoService as _0x4eb0bd,IUniverInstanceService as _0x57a3de,Inject as _0x697169,Injector as _0x264e1a,LocaleService as _0x3f505b,Plugin as _0xff4adf,UniverInstanceType as _0x35009f,VerticalAlign as _0x1167e7,createInternalEditorID as _0x483105,generateRandomId as _0x436dba,merge as _0x29cd84,toDisposable as _0x11cfa6,touchDependencies as _0x324bcf}from'@univerjs/core';import{CopySheetCommand as _0x4f0029,RemoveSheetCommand as _0x3a7e8b,SheetInterceptorService as _0x25edee,SheetPermissionCheckController as _0x383125,SheetSkeletonService as _0x567ef5,SheetsSelectionsService as _0x41bd2d,WorkbookEditablePermission as _0x5d5530,WorksheetEditPermission as _0x566e04,attachRangeWithCoord as _0x1144ca,discreteRangeToRange as _0x2500aa,getSheetCommandTarget as _0x50e622}from'@univerjs/sheets';import{IDrawingManagerService as _0x431f44,SetDrawingSelectedOperation as _0x1aab4d,getDrawingShapeKeyByDrawingSearch as _0x45a0e1}from'@univerjs/drawing';import{CURSOR_TYPE as _0x13f6e1,Circle as _0x103453,DRAWING_OBJECT_LAYER_INDEX as _0x72823c,DocumentSkeleton as _0x332624,DocumentViewModel as _0x410904,Documents as _0x3dba94,IRenderManagerService as _0x134053,Image as _0x1e018e,RENDER_CLASS_TYPE as _0x5b90d5,SHEET_VIEWPORT_KEY as _0x105d9a,Shape as _0x647470,Transform as _0x3c22dd,Vector2 as _0x38bc49}from'@univerjs/engine-render';import{COPY_TYPE as _0x2ec4f6,ISheetClipboardService as _0x3bf064,PREDEFINED_HOOK_NAME as _0x17c841,SheetCanvasPopManagerService as _0x55f451,SheetPrintInterceptorService as _0x3dd8e2,SheetScrollManagerService as _0x55a101,SheetSkeletonManagerService as _0x48e10a,deriveStateFromActiveSheet$ as _0x4019f7,getCurrentRangeDisable$ as _0x43fa83,getViewportByCell as _0x4b381d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x4d090d,EMPTY as _0x269514,Observable as _0x339469,of as _0x3e45e3,switchMap as _0x324807}from'rxjs';import{DrawingCommonPanel as _0x409263,DrawingImageClipService as _0x388dc6,DrawingRenderService as _0x5dd75f,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x7090d9,OBJECT_LIST_FLOATING_SECTION_ID as _0x17ce12,ObjectListPanelBase as _0x429e7a,getCurrentUnitInfo as _0x4ca02b,getObjectListPanelLabels as _0xca058a,getObjectListPanelSectionIdForDrawingType as _0x5de67b,getObjectListPanelTypeName as _0x1831b0,insertGroupObject as _0x264793}from'@univerjs/drawing-ui';import{jsx as _0x1f4f7e,jsxs as _0x59f102}from'react/jsx-runtime';import{UniverLicensePlugin as _0x29e05d}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x343f35,SheetsDrawingGroupCopyPasteController as _0x590913,UniverSheetsDrawingUIPlugin as _0x3a7159}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x2c6d5a}from'@univerjs/icons';import{DrawingApplyType as _0x12be8f,ISheetDrawingService as _0x513fd6,RemoveSheetDrawingCommand as _0x2f5460,SetDrawingApplyMutation as _0x39b433,SetDrawingArrangeCommand as _0x57e602,SetSheetDrawingCommand as _0x13c603,transformToAxisAlignPosition as _0x3bba80,transformToDrawingPosition as _0x2d6891}from'@univerjs/sheets-drawing';import{memo as _0x24849,useEffect as _0x4dc124,useMemo as _0x17b529,useReducer as _0xef9b53,useState as _0x10a6f0}from'react';import{DocSelectionManagerService as _0x43ba14}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x1a3594,DocSelectionRenderService as _0x4e140b}from'@univerjs/docs-ui';function un(_0x7ae852,_0x3b36e5){const _0xd91b9=_0x2c6b;let _0x5f35f7={};for(let _0x1dcf3f of Object[_0xd91b9(0xf4)](_0x3b36e5)){let _0x39ef7e=_0x3b36e5[_0x1dcf3f],_0x52e3bd=_0x7ae852[_0x1dcf3f];if(_0x39ef7e!==void 0x0){if(_0x52e3bd===void 0x0){_0x5f35f7[_0x1dcf3f]=void 0x0;continue;}typeof _0x39ef7e=='object'&&_0x39ef7e&&!Array['isArray'](_0x39ef7e)&&typeof _0x52e3bd==_0xd91b9(0x15a)&&_0x52e3bd&&!Array[_0xd91b9(0x20e)](_0x52e3bd)?_0x5f35f7[_0x1dcf3f]=un(_0x52e3bd,_0x39ef7e):_0x5f35f7[_0x1dcf3f]=_0x52e3bd;}}return _0x5f35f7;}const dn={'type':_0x5da788[_0x1ed313(0x2cb)],'id':_0x1ed313(0xf3),'handler':(_0x186f55,_0x26d4e9)=>{const _0x3091dc=_0x1ed313;let _0x3082e8=_0x186f55[_0x3091dc(0xbe)](_0x5486d2),{unitId:_0x5e2384,subUnitId:_0x373bf1,shapeType:_0x17180e,shapeId:_0x473e7d,shapeData:_0x483268,oldShapeJSON:_0x2e0e0f}=_0x26d4e9;if(!_0x3082e8[_0x3091dc(0x16c)](_0x5e2384,_0x373bf1,_0x473e7d))return!0x1;let _0x11602b=_0x186f55[_0x3091dc(0xbe)](_0x2eaf9c),_0x33206a=_0x186f55[_0x3091dc(0xbe)](_0x4eb0bd),{oldShapeType:_0x4256c1,oldShapeData:_0x28cbc3={}}=_0x2e0e0f,_0x1c9113=un(_0x28cbc3,_0x483268||{}),_0x1c6d53={'id':_0x44e25c['id'],'params':{'unitId':_0x5e2384,'subUnitId':_0x373bf1,'shapeId':_0x473e7d,'shapeType':_0x17180e,'shapeData':_0x483268}},_0x45baff={'id':_0x44e25c['id'],'params':{'unitId':_0x5e2384,'subUnitId':_0x373bf1,'shapeId':_0x473e7d,'shapeType':_0x4256c1,'shapeData':_0x1c9113}};return _0x11602b[_0x3091dc(0x218)](_0x1c6d53['id'],_0x1c6d53['params'])?(_0x33206a[_0x3091dc(0x2ee)]({'unitID':_0x5e2384,'undoMutations':[_0x45baff],'redoMutations':[_0x1c6d53]}),!0x0):!0x1;}};function fn(_0x1189ea,_0x4bea65,_0x399552,_0x1d4241,_0xd68144,_0x408b68){const _0x97d3dd=_0x1ed313;let _0x40eb86={'unitId':_0x4bea65,'subUnitId':_0x399552,'shapeId':_0x1d4241,'shapeData':_0x408b68,'oldShapeJSON':_0xd68144};return _0x1189ea[_0x97d3dd(0x12c)](dn['id'],_0x40eb86);}function pn(_0x441d24,_0xff591b,_0x36fc51,_0x3c9cbe,_0x42f392,_0x37db1c){const _0x382330=_0x1ed313;let _0x2421bd={'unitId':_0xff591b,'subUnitId':_0x36fc51,'shapeId':_0x3c9cbe,'shapeData':_0x37db1c,'oldShapeJSON':_0x42f392};return _0x441d24[_0x382330(0x12c)](dn['id'],_0x2421bd);}function mn(_0x38e634){'@babel/helpers - typeof';const _0x3d297f=_0x1ed313;return mn=typeof Symbol==_0x3d297f(0x100)&&typeof Symbol[_0x3d297f(0x2f3)]==_0x3d297f(0x266)?function(_0xa7c075){return typeof _0xa7c075;}:function(_0x21ffd2){const _0x2fc0e8=_0x3d297f;return _0x21ffd2&&typeof Symbol==_0x2fc0e8(0x100)&&_0x21ffd2[_0x2fc0e8(0x27a)]===Symbol&&_0x21ffd2!==Symbol[_0x2fc0e8(0x1c1)]?_0x2fc0e8(0x266):typeof _0x21ffd2;},mn(_0x38e634);}function hn(_0x59a796,_0x45ee22){const _0x1e62df=_0x1ed313;if(mn(_0x59a796)!=_0x1e62df(0x15a)||!_0x59a796)return _0x59a796;var _0x22185a=_0x59a796[Symbol[_0x1e62df(0x203)]];if(_0x22185a!==void 0x0){var _0x5679cd=_0x22185a[_0x1e62df(0x26a)](_0x59a796,_0x45ee22||'default');if(mn(_0x5679cd)!=_0x1e62df(0x15a))return _0x5679cd;throw TypeError(_0x1e62df(0x224));}return(_0x45ee22===_0x1e62df(0x273)?String:Number)(_0x59a796);}function _0x2c6b(_0x437d05,_0x19f129){_0x437d05=_0x437d05-0x9b;const _0x380833=_0x3808();let _0x2c6b0c=_0x380833[_0x437d05];return _0x2c6b0c;}function gn(_0xcd2c65){const _0x1e3839=_0x1ed313;var _0x2733f8=hn(_0xcd2c65,_0x1e3839(0x273));return mn(_0x2733f8)=='symbol'?_0x2733f8:_0x2733f8+'';}function q(_0x46f39b,_0x1a40b5,_0x4b207f){const _0x5852e8=_0x1ed313;return(_0x1a40b5=gn(_0x1a40b5))in _0x46f39b?Object[_0x5852e8(0xd7)](_0x46f39b,_0x1a40b5,{'value':_0x4b207f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46f39b[_0x1a40b5]=_0x4b207f,_0x46f39b;}function _n(_0x4db481,_0x14a1d7,_0x300e45){const _0x2d0263=_0x1ed313;var _0x23c54b;let _0x112e84=_0x3841e9(_0x4db481,{..._0x14a1d7,'dataModel':{...(_0x23c54b=_0x14a1d7[_0x2d0263(0x24d)])==null?{}:_0x23c54b,..._0x300e45?{'doc':_0x300e45}:null}}),_0x181fe4=_0x384428(_0x112e84);return{'clip':_0x17d6c9(_0x112e84,_0x181fe4),'wrapStrategy':_0x181fe4};}var vn=class extends _0x647470{constructor(_0x1c5faf,_0x2d09b1){const _0x5d03e4=_0x1ed313;super(_0x1c5faf,_0x2d09b1),q(this,_0x5d03e4(0x15c),void 0x0),q(this,_0x5d03e4(0x2d7),!0x0),q(this,_0x5d03e4(0x18f),_0x14c67a[_0x5d03e4(0x141)]),q(this,'isDrawingObject',!0x0),this['_props']={..._0x2d09b1},this[_0x5d03e4(0x215)]();}[_0x1ed313(0x215)](){const _0x5cda08=_0x1ed313;this[_0x5cda08(0x238)][_0x5cda08(0x226)](_0x1f3251=>{const _0xeef2a9=_0x5cda08;this[_0xeef2a9(0x1d7)](_0x1f3251);});}[_0x1ed313(0x27f)](_0x6ccef6){const _0x4012ed=_0x1ed313;this[_0x4012ed(0x15c)][_0x4012ed(0x13f)]=_0x6ccef6;}[_0x1ed313(0x148)](_0x9c18b9){const _0x14f291=_0x1ed313;this['_props'][_0x14f291(0x139)]=_0x9c18b9,this['makeDirty'](!0x0);}get[_0x1ed313(0xae)](){const _0x47e0ec=_0x1ed313;return this[_0x47e0ec(0x15c)][_0x47e0ec(0xae)];}get[_0x1ed313(0x210)](){const _0x35512a=_0x1ed313;return this[_0x35512a(0x15c)][_0x35512a(0x210)];}[_0x1ed313(0x1d7)](_0xd2f3bb){const _0x27270d=_0x1ed313;if(this[_0x27270d(0x15c)][_0x27270d(0x22d)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x26c919,height:_0x3e3d2b}=this,{width:_0x5c8646=0x0,height:_0x1493ea=0x0}=_0xd2f3bb[_0x27270d(0x105)],{left:_0x6f2795=0x0,top:_0x473215=0x0,right:_0x340a64=0x0,bottom:_0x2a023b=0x0}=this['_props'][_0x27270d(0x22d)],_0x331f27=_0x6f2795,_0x2ad028=_0x473215,_0x7d341=_0x340a64,_0x2a1686=_0x2a023b,_0x839000=!0x1;if(_0x5c8646!==0x0&&_0x5c8646!==_0x26c919){let _0x1e489a=_0x6f2795/_0x5c8646,_0x4105fa=_0x340a64/_0x5c8646;_0x331f27=_0x26c919*_0x1e489a,_0x7d341=_0x26c919*_0x4105fa,_0x839000=!0x0;}if(_0x1493ea!==0x0&&_0x1493ea!==_0x3e3d2b){let _0x32253d=_0x473215/_0x1493ea,_0x517ce5=_0x2a023b/_0x1493ea;_0x2ad028=_0x3e3d2b*_0x32253d,_0x2a1686=_0x3e3d2b*_0x517ce5,_0x839000=!0x0;}_0x839000&&this[_0x27270d(0x1c8)]({'left':_0x331f27,'top':_0x2ad028,'right':_0x7d341,'bottom':_0x2a1686});}[_0x1ed313(0x1c8)](_0x291925){const _0x85dcb5=_0x1ed313;this[_0x85dcb5(0x15c)]['srcRect']=_0x291925,this['makeDirty'](!0x0);}[_0x1ed313(0x1b2)](_0x417882){const _0x5cb4b7=_0x1ed313;this['_props']['image']=_0x417882,this[_0x5cb4b7(0x1b9)](!0x0);}set['transform'](_0x2ed863){const _0xc6fcba=_0x1ed313;this[_0xc6fcba(0x116)]=_0x2ed863;}get[_0x1ed313(0x131)](){const _0x5b3973=_0x1ed313;this[_0x5b3973(0x116)]||this['_setTransForm']();let _0x1f43fe=this[_0x5b3973(0x116)]['clone']();return this['transformForAngle'](_0x1f43fe);}get[_0x1ed313(0x1bf)](){const _0x3d454b=_0x1ed313;return this[_0x3d454b(0x15c)]['shapeModel'];}get[_0x1ed313(0x2ce)](){const _0x318943=_0x1ed313;return this['_props'][_0x318943(0x2ce)];}get[_0x1ed313(0xea)](){const _0x70e533=_0x1ed313;return _0x5b90d5[_0x70e533(0x2d3)];}[_0x1ed313(0x223)](_0x41d573,_0x3d204c,_0x560397,_0x5af0cb){const _0x17e7f5=_0x1ed313;let _0x18d8db=this['_props']['shapeModel'];if(!_0x18d8db||!_0x3d204c)return;let _0x5c1622=_0x560397==null?this[_0x17e7f5(0x2ed)]:_0x560397,_0x2eb969=_0x5af0cb==null?this[_0x17e7f5(0x24e)]:_0x5af0cb,_0x24df40={'shapeType':_0x18d8db['getShapeType'](),'width':_0x5c1622,'height':_0x2eb969},_0x4159d2={'renderMode':_0x29001e[_0x17e7f5(0x2ab)],'oKey':this[_0x17e7f5(0x183)],'image':this[_0x17e7f5(0x15c)]['image'],'angle':this['angle']};_0x18d8db[_0x17e7f5(0x127)](_0x24df40),_0x41d573[_0x17e7f5(0x10f)]();let _0x26d037={'top':0x0,'left':0x0,'width':_0x5c1622,'height':_0x2eb969};_0x18d8db['render'](_0x41d573,_0x26d037,_0x4159d2),_0x41d573[_0x17e7f5(0x277)]();let _0x8d2ecb=_0x18d8db['getShapeTextData'](),_0x3e681b=_0x18d8db['getShapeTextRect'](_0x26d037),_0x48804a=_0x18d8db[_0x17e7f5(0x1bc)]();if(_0x8d2ecb&&_0x3e681b&&!_0x48804a){_0x41d573[_0x17e7f5(0x10f)](),this[_0x17e7f5(0x2c4)]()[_0x17e7f5(0x14c)]&&_0x41d573['scale'](-0x1,0x1);let _0x57968f=_0x5c1622/0x2,_0x129237=_0x2eb969/0x2;_0x41d573[_0x17e7f5(0xaf)](-_0x57968f,-_0x129237),_0x41d573['beginPath'](),this['_drawShapeText'](_0x41d573,_0x8d2ecb,_0x3e681b),_0x41d573[_0x17e7f5(0x277)]();}}['getDrawingPoints'](_0x26a429){}[_0x1ed313(0x2b5)](_0x434412,_0x3cfa77,_0x170da3){const _0x7240f2=_0x1ed313;var _0x3ff04f;this[_0x7240f2(0x15c)][_0x7240f2(0x139)]||(!((_0x3ff04f=_0x3cfa77[_0x7240f2(0x24d)])!=null&&_0x3ff04f[_0x7240f2(0x9f)])&&_0x7240f2(0x2e3)in _0x3cfa77&&_0x3cfa77[_0x7240f2(0x2e3)]===!0x1?this['_drawSimpleText'](_0x434412,_0x3cfa77,_0x170da3):this[_0x7240f2(0x2b6)](_0x434412,_0x3cfa77,_0x170da3));}[_0x1ed313(0x9c)](_0x3d3d4b,_0x2ed9e1,_0x224b45){const _0x3af90f=_0x1ed313;var _0xadf0d4;this[_0x3af90f(0x2b6)](_0x3d3d4b,{..._0x2ed9e1,'text':(_0xadf0d4=_0x2ed9e1[_0x3af90f(0xe5)])==null?'':_0xadf0d4,'dataModel':{'doc':_0x51a1a1(_0x2ed9e1,_0x3af90f(0x115)+this[_0x3af90f(0x183)])}},_0x224b45);}['_drawRichText'](_0x399763,_0x5def65,_0x2974b4){const _0x55f1da=_0x1ed313;var _0x2dfb60,_0x847b6e;let _0x31f4db=this[_0x55f1da(0x15c)][_0x55f1da(0x11a)];if(!_0x5def65[_0x55f1da(0x24d)]||!_0x31f4db)return;let _0x1cb93e=_0x20928e(_0x5def65[_0x55f1da(0x24d)]);if(!_0x1cb93e)return;let _0x39b347=_0x1cb93e['doc'];if(!_0x39b347)return;let _0x296527=(_0x2dfb60=_0x1cb93e['va'])==null?_0x1167e7[_0x55f1da(0x186)]:_0x2dfb60,_0x2adff3=(_0x847b6e=_0x1cb93e['ha'])==null?_0x228a64[_0x55f1da(0x169)]:_0x847b6e,_0x296d77=_n(this['_props'][_0x55f1da(0x1bf)][_0x55f1da(0x11c)](),_0x5def65,_0x39b347),_0x17aaa7=_0x5def65[_0x55f1da(0x287)],_0x428453=new _0x208f5e(_0x40bc75(_0x39b347,{'isHorizontal':_0x17aaa7!==!0x1,'textRect':_0x2974b4,'verticalAlign':_0x296527,'horizontalAlign':_0x2adff3,'wrapStrategy':_0x296d77[_0x55f1da(0x23f)]})),_0x207512=new _0x410904(_0x428453),_0x285e9f=_0x332624['create'](_0x207512,_0x31f4db);_0x285e9f[_0x55f1da(0xe1)]();let _0x8e4399=_0x285e9f[_0x55f1da(0xcd)]()[_0x55f1da(0x196)],_0x22cd3d=_0xb1c89f({'contentHeight':_0x8e4399,'verticalAlign':_0x296527,'viewportHeight':_0x2974b4[_0x55f1da(0x24e)]});_0x428453[_0x55f1da(0xc7)]({'pageSize':{'width':_0x17aaa7===!0x1?_0x2974b4[_0x55f1da(0x24e)]:_0x2974b4[_0x55f1da(0x2ed)],'height':_0x22cd3d[_0x55f1da(0x1fb)]}}),_0x428453['updateDocumentDataMargin']({'t':_0x22cd3d[_0x55f1da(0x221)]}),_0x285e9f[_0x55f1da(0xe1)]();let _0x355ef3=new _0x3dba94(_0x55f1da(0x2d4)+this[_0x55f1da(0x183)],_0x285e9f,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x55f1da(0x1b9)](!0x0)});_0x355ef3[_0x55f1da(0xc2)](_0x2974b4[_0x55f1da(0x2ed)],_0x22cd3d[_0x55f1da(0x1fb)]),_0x399763[_0x55f1da(0x10f)](),_0x399763[_0x55f1da(0x216)](_0x2974b4[_0x55f1da(0x2a8)],_0x2974b4['top']),_0x296d77['clip']&&(_0x399763['beginPath'](),_0x399763[_0x55f1da(0x135)](0x0,_0x22cd3d[_0x55f1da(0xdd)],_0x2974b4[_0x55f1da(0x2ed)],_0x22cd3d[_0x55f1da(0x2cf)]),_0x399763[_0x55f1da(0x1a7)]()),_0x22cd3d['contentVerticalOffset']&&_0x399763['translateWithPrecision'](0x0,_0x22cd3d['contentVerticalOffset']),_0x355ef3[_0x55f1da(0xfe)](_0x399763),_0x399763[_0x55f1da(0x277)](),_0x355ef3[_0x55f1da(0x230)](),_0x285e9f[_0x55f1da(0x230)](),_0x207512['dispose'](),_0x428453[_0x55f1da(0x230)]();}[_0x1ed313(0xa8)](_0x32a62f,_0x43a235,_0x342fa5=!0x1){const _0xcb4313=_0x1ed313;if(!this[_0xcb4313(0x10b)])return this[_0xcb4313(0x1b9)](!0x1),this;let {width:_0x59aafa,height:_0x34a22c,left:_0x389c2d,top:_0x19a64d}=this,_0x29d4e2=this[_0xcb4313(0xa4)]();if(_0x59aafa=_0x29d4e2[_0xcb4313(0x2ed)],_0x34a22c=_0x29d4e2[_0xcb4313(0x24e)],_0x389c2d=_0x29d4e2[_0xcb4313(0x2a8)],_0x19a64d=_0x29d4e2[_0xcb4313(0x180)],this['isRender'](_0x43a235)){let {top:_0x38ed60,left:_0xcd3b81,bottom:_0x10f501,right:_0x18ece5}=_0x43a235['viewBound'];if(_0x59aafa+this['strokeWidth']+_0x389c2d<_0xcd3b81||_0x18ece5<_0x389c2d||_0x34a22c+this[_0xcb4313(0x2c9)]+_0x19a64d<_0x38ed60||_0x10f501<_0x19a64d)return this;}let _0x236610=_0x389c2d+_0x59aafa/0x2,_0x4228f5=_0x19a64d+_0x34a22c/0x2,_0x4824b6=this['transform'][_0xcb4313(0x21c)]();if(this[_0xcb4313(0x15c)][_0xcb4313(0x139)]){let _0x7b844=this[_0xcb4313(0x2c4)](),_0x2648c7=new _0x3c22dd();_0x2648c7[_0xcb4313(0x1e8)]({..._0x7b844}),_0x4824b6=_0x2648c7[_0xcb4313(0x21c)]();}return _0x32a62f[_0xcb4313(0x10f)](),this[_0xcb4313(0x15c)][_0xcb4313(0x1bf)]['isRenderLinePointsMode']===!0x0||_0x32a62f[_0xcb4313(0x131)](_0x4824b6[0x0],_0x4824b6[0x1],_0x4824b6[0x2],_0x4824b6[0x3],_0x236610,_0x4228f5),this[_0xcb4313(0x223)](_0x32a62f,_0x43a235,_0x59aafa,_0x34a22c),_0x32a62f[_0xcb4313(0x277)](),this[_0xcb4313(0x1b9)](!0x1),this;}[_0x1ed313(0x2c3)](_0x3b535d){const _0x5dc193=_0x1ed313;let {left:_0x442bab,top:_0x59691f,width:_0x1dad0c,height:_0x1596b2}=this[_0x5dc193(0xa4)](),_0x27a50b=this[_0x5dc193(0x131)][_0x5dc193(0x21c)](),_0x1c30de=_0x442bab+_0x1dad0c/0x2,_0x2c5433=_0x59691f+_0x1596b2/0x2,_0x970cee=new _0x3c22dd([_0x27a50b[0x0],_0x27a50b[0x1],_0x27a50b[0x2],_0x27a50b[0x3],_0x1c30de,_0x2c5433]),_0x2ea779=this[_0x5dc193(0x166)]();return(this['isInGroup']&&(_0x2ea779==null?void 0x0:_0x2ea779[_0x5dc193(0xea)])===_0x5b90d5['GROUP']?_0x2ea779[_0x5dc193(0x1a4)][_0x5dc193(0x18b)](_0x970cee):_0x970cee)[_0x5dc193(0x167)]()['applyPoint'](_0x3b535d);}[_0x1ed313(0xcb)](_0x2de181){const _0x5c889b=_0x1ed313;let {left:_0x505dd3,top:_0x5c06f9,width:_0x34091f,height:_0x35d609}=this[_0x5c889b(0xa4)](),_0x501239=_0x505dd3+_0x34091f/0x2,_0xa7ee35=_0x5c06f9+_0x35d609/0x2,_0x470ff6=this[_0x5c889b(0x131)][_0x5c889b(0x21c)](),_0x302ba7=new _0x3c22dd([_0x470ff6[0x0],_0x470ff6[0x1],_0x470ff6[0x2],_0x470ff6[0x3],_0x501239,_0xa7ee35]),_0xd76319=this[_0x5c889b(0x166)](),_0x1ddadc=(this[_0x5c889b(0x17a)]&&(_0xd76319==null?void 0x0:_0xd76319['classType'])===_0x5b90d5[_0x5c889b(0x2bb)]?_0xd76319[_0x5c889b(0x1a4)][_0x5c889b(0x18b)](_0x302ba7):_0x302ba7)[_0x5c889b(0x167)]()[_0x5c889b(0xc1)](_0x2de181),_0x24dcc7=_0x34091f/0x2,_0x2cbdda=_0x35d609/0x2,_0x49dca9=this[_0x5c889b(0x15c)][_0x5c889b(0x1bf)];return _0x49dca9&&_0x49dca9['isLineShape']()?_0x49dca9[_0x5c889b(0xef)](_0x1ddadc['x'],_0x1ddadc['y'],_0x34091f,_0x35d609):_0x1ddadc['x']>=-_0x24dcc7-this['strokeWidth']/0x2&&_0x1ddadc['x']<=_0x24dcc7+this[_0x5c889b(0x2c9)]/0x2&&_0x1ddadc['y']>=-_0x2cbdda-this[_0x5c889b(0x2c9)]/0x2&&_0x1ddadc['y']<=_0x2cbdda+this[_0x5c889b(0x2c9)]/0x2;}[_0x1ed313(0x230)](){const _0x4e4e7b=_0x1ed313;this[_0x4e4e7b(0x15c)]['shapeModel']=null,super['dispose']();}},yn=class extends _0x647470{constructor(_0x5edb00,_0x59bd77){const _0x343120=_0x1ed313;super(_0x5edb00,_0x59bd77),q(this,'_shapeId',null),q(this,_0x343120(0xf8),null),q(this,_0x343120(0x2a6),null),q(this,_0x343120(0x1ce),null),_0x59bd77&&this[_0x343120(0x27b)](_0x59bd77);}['getDrawingSearch'](){const _0x276728=_0x1ed313;return{'unitId':this[_0x276728(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}['setShapeProps'](_0x89a774){const _0x902ba5=_0x1ed313;_0x89a774[_0x902ba5(0x2ce)]!==void 0x0&&(this[_0x902ba5(0x13c)]=_0x89a774[_0x902ba5(0x2ce)]),_0x89a774['adjName']!==void 0x0&&(this[_0x902ba5(0xf8)]=_0x89a774[_0x902ba5(0x253)]),_0x89a774[_0x902ba5(0xae)]!==void 0x0&&(this[_0x902ba5(0x2a6)]=_0x89a774[_0x902ba5(0xae)]),_0x89a774['subUnitId']!==void 0x0&&(this[_0x902ba5(0x1ce)]=_0x89a774['subUnitId']),this[_0x902ba5(0x10e)]({'width':_0x89a774[_0x902ba5(0x2ed)],'height':_0x89a774['height']});}[_0x1ed313(0x223)](_0x2418b8){const _0x33152e=_0x1ed313;_0x103453[_0x33152e(0x2fb)](_0x2418b8,{'radius':_0x42c7e9[_0x33152e(0x204)],'fill':_0x42c7e9['adjHandleFill'],'stroke':_0x42c7e9[_0x33152e(0x1de)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x79e875,_0x52492f){return function(_0x8753f9,_0x287e6b){_0x52492f(_0x8753f9,_0x287e6b,_0x79e875);};}function Y(_0x47d619,_0x32336c,_0x1d9026,_0x158527){const _0x234b4e=_0x1ed313;var _0x19bc47=arguments[_0x234b4e(0x2b4)],_0x3c8a51=_0x19bc47<0x3?_0x32336c:_0x158527===null?_0x158527=Object[_0x234b4e(0x25d)](_0x32336c,_0x1d9026):_0x158527,_0x25645a;if(typeof Reflect==_0x234b4e(0x15a)&&typeof Reflect[_0x234b4e(0x269)]==_0x234b4e(0x100))_0x3c8a51=Reflect[_0x234b4e(0x269)](_0x47d619,_0x32336c,_0x1d9026,_0x158527);else{for(var _0x4ad8d8=_0x47d619[_0x234b4e(0x2b4)]-0x1;_0x4ad8d8>=0x0;_0x4ad8d8--)(_0x25645a=_0x47d619[_0x4ad8d8])&&(_0x3c8a51=(_0x19bc47<0x3?_0x25645a(_0x3c8a51):_0x19bc47>0x3?_0x25645a(_0x32336c,_0x1d9026,_0x3c8a51):_0x25645a(_0x32336c,_0x1d9026))||_0x3c8a51);}return _0x19bc47>0x3&&_0x3c8a51&&Object['defineProperty'](_0x32336c,_0x1d9026,_0x3c8a51),_0x3c8a51;}let X=class extends _0x17a082{constructor(_0x4bbc1c,_0x2434b9,_0x544dc0,_0x32dcec,_0x57d692){const _0x4c97a0=_0x1ed313;super(),this[_0x4c97a0(0x1b5)]=_0x4bbc1c,this[_0x4c97a0(0x219)]=_0x2434b9,this[_0x4c97a0(0x252)]=_0x544dc0,this[_0x4c97a0(0x2af)]=_0x32dcec,this[_0x4c97a0(0x15d)]=_0x57d692;}[_0x1ed313(0x2ec)](_0x2f6b3f,_0x218e3c,_0x43b3d3){const _0xdc899e=_0x1ed313;let {transform:_0x55211d,drawingType:_0x2e5c7a,srcRect:_0x408778,prstGeom:_0x2febe0,groupId:_0x138a10,unitId:_0x1f0020,subUnitId:_0x40ed32,drawingId:_0x29eb34,isMultiTransform:_0x4d4efe,transforms:_0x4af42f,hidden:_0x54e6d4,selectable:_0xb0f052}=_0x2f6b3f;if(_0x2e5c7a!==_0x14c67a[_0xdc899e(0x141)]||!this[_0xdc899e(0x1b5)][_0xdc899e(0x19d)]()||_0x55211d==null)return;let _0x2a95a6=this['_drawingManagerService']['getDrawingEditable']();_0x2a95a6&&_0x218e3c[_0xdc899e(0x15f)](_0x1fb431);let _0x135f7b=_0x4d4efe&&_0x4af42f?_0x4af42f:[_0x55211d],_0x3e3d4e=[];for(let _0xc6683b of _0x135f7b){let {left:_0x4c3634,top:_0x5b9f18,width:_0x170bca,height:_0x2f40d6,angle:_0x4387d9,flipX:_0x5eaf47,flipY:_0x42d233,skewX:_0x320fca,skewY:_0x9bdcfa}=_0xc6683b,_0x544f75=_0x135f7b['indexOf'](_0xc6683b),_0x12f43a=_0x45a0e1({'unitId':_0x1f0020,'subUnitId':_0x40ed32,'drawingId':_0x29eb34},_0x4d4efe?_0x544f75:void 0x0),_0x577cfd=_0x218e3c['getObjectIncludeInGroup'](_0x12f43a);if(_0x577cfd!=null){_0x577cfd[_0xdc899e(0x10e)]({'left':_0x4c3634,'top':_0x5b9f18,'width':_0x170bca,'height':_0x2f40d6,'angle':_0x4387d9,'flipX':_0x5eaf47,'flipY':_0x42d233,'skewX':_0x320fca,'skewY':_0x9bdcfa});continue;}let _0x396985=this[_0xdc899e(0x1b5)][_0xdc899e(0x1ee)](_0x1f0020,_0x40ed32),_0x581f2d=_0x396985[_0xdc899e(0x240)](_0x29eb34);if(_0x218e3c[_0xdc899e(0x2aa)](_0x12f43a)||!this[_0xdc899e(0x1b5)]['getDrawingVisible']())continue;let _0x1c9185=this[_0xdc899e(0x219)][_0xdc899e(0x16c)](_0x1f0020,_0x40ed32,_0x29eb34);if(!_0x1c9185)continue;let _0xf85cac=new vn(_0x12f43a,{..._0x5cb95b(_0x1c9185[_0xdc899e(0x1f1)]())?{..._0xc6683b,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0xc6683b},'zIndex':_0x581f2d===-0x1?_0x396985['length']-0x1:_0x581f2d,'shapeModel':_0x1c9185,'localeService':this[_0xdc899e(0x252)],'shapeId':_0x29eb34,'unitId':_0x1f0020,'subUnitId':_0x40ed32,'visible':_0x54e6d4!==!0x0,'evented':_0xb0f052!==!0x1});_0x218e3c[_0xdc899e(0x14d)](_0xf85cac,_0x72823c),_0x2a95a6&&_0x218e3c['attachTransformerTo'](_0xf85cac),_0x138a10&&_0x264793({'drawingId':_0x138a10,'unitId':_0x1f0020,'subUnitId':_0x40ed32},_0xf85cac,_0x218e3c,this[_0xdc899e(0x1b5)]),_0x2febe0!=null&&_0xf85cac[_0xdc899e(0x27f)](_0x2febe0),_0x408778!=null&&_0xf85cac['setSrcRect'](_0x408778);let _0x2f1026=this[_0xdc899e(0x1eb)](_0xf85cac,_0x1c9185[_0xdc899e(0x11c)]());if(_0x2f1026){var _0x544dd3;_0x43b3d3==null||(_0x544dd3=_0x43b3d3[_0xdc899e(0x110)])==null||_0x544dd3[_0xdc899e(0x12d)](_0x2f1026);}_0x3e3d4e[_0xdc899e(0x2b9)](_0xf85cac);}return _0x3e3d4e;}[_0x1ed313(0x1fc)](_0x5d30fb){const _0x267d09=_0x1ed313;let _0x22f41b=_0x5d30fb[_0x267d09(0x1bf)][_0x267d09(0x11c)](),_0xeee4ad=_0x22f41b[_0x267d09(0x16a)];if(!_0xeee4ad||_0xeee4ad[_0x267d09(0x228)]!==_0x5c4d97[_0x267d09(0x27c)]||!_0xeee4ad[_0x267d09(0x2da)]){_0x5d30fb[_0x267d09(0x1b2)](void 0x0);return;}this['_loadShapePictureFill'](_0x5d30fb,_0x22f41b);}[_0x1ed313(0x1eb)](_0x1988e5,_0x10a688){const _0x2392f5=_0x1ed313;var _0x3a8e87;let _0x3d5c57=_0x10a688['fill'];if(!_0x3d5c57||_0x3d5c57[_0x2392f5(0x228)]!==_0x5c4d97[_0x2392f5(0x27c)]||!_0x3d5c57[_0x2392f5(0x2da)])return;let _0x28bea0=_0x3d5c57['fillImageSource'],_0x260f22=(_0x3a8e87=_0x3d5c57[_0x2392f5(0x1cd)])==null?_0x22d668[_0x2392f5(0x1d1)]:_0x3a8e87,_0x1f9b21=this['_imageIoService'][_0x2392f5(0x200)](_0x28bea0,_0x260f22);if(_0x1f9b21){_0x1988e5['setFillImage'](_0x1f9b21);return;}return this[_0x2392f5(0xe4)](_0x1988e5,_0x28bea0,_0x260f22);}async['_loadAndSetImage'](_0x249c60,_0x5b5959,_0x31f01c){const _0x1c3b7e=_0x1ed313;let _0xd86b25;try{if(_0x31f01c===_0x22d668[_0x1c3b7e(0x2d1)])_0xd86b25=await this[_0x1c3b7e(0x2af)]['getImage'](_0x5b5959);else{if(_0x31f01c===_0x22d668[_0x1c3b7e(0x1d1)])try{_0xd86b25=await this[_0x1c3b7e(0x15d)][_0x1c3b7e(0x2df)](_0x5b5959);}catch{_0xd86b25=_0x5b5959;}else _0xd86b25=_0x5b5959;}}catch(_0x4dce52){console[_0x1c3b7e(0x140)](_0x1c3b7e(0x2ea),_0x4dce52);return;}await new Promise(_0x48b935=>{const _0xdc395d=_0x1c3b7e;let _0x5d8ee3=new window[(_0xdc395d(0x296))]();_0x5d8ee3[_0xdc395d(0x2dc)]=()=>{const _0x5c6411=_0xdc395d;this[_0x5c6411(0x2af)][_0x5c6411(0x289)](_0x5b5959,_0x31f01c,_0x5d8ee3),_0x249c60['setFillImage'](_0x5d8ee3),_0x48b935();},_0x5d8ee3[_0xdc395d(0x207)]=()=>{const _0x97a62f=_0xdc395d;console[_0x97a62f(0x140)](_0x97a62f(0x27e),_0x5b5959),_0x48b935();},_0x5d8ee3[_0xdc395d(0x1fd)]=_0xd86b25;});}};X=Y([J(0x0,_0x431f44),J(0x1,_0x697169(_0x5486d2)),J(0x2,_0x697169(_0x3f505b)),J(0x3,_0x698ad9),J(0x4,_0x3a8a4e)],X);let Z=class extends _0x17a082{constructor(_0x3243df,_0x134624,_0xd2aeee,_0x54e144,_0x276178,_0x4c12ec){const _0x46e5c8=_0x1ed313;super(),this[_0x46e5c8(0x1b5)]=_0x3243df,this[_0x46e5c8(0x219)]=_0x134624,this['_renderManagerService']=_0xd2aeee,this['_sheetDrawingShapeRenderController']=_0x54e144,this[_0x46e5c8(0x2a5)]=_0x276178,this[_0x46e5c8(0x1df)]=_0x4c12ec,q(this,_0x46e5c8(0x136),null),q(this,'_unitId',null),q(this,_0x46e5c8(0x1ce),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x46e5c8(0x121),[]),q(this,_0x46e5c8(0x250),0x0),q(this,_0x46e5c8(0x120),0x0),q(this,_0x46e5c8(0x179),0x0),q(this,_0x46e5c8(0x2e9),0x0),q(this,_0x46e5c8(0x1f6),!0x1),q(this,_0x46e5c8(0x14e),void 0x0),q(this,_0x46e5c8(0x25a),void 0x0),q(this,_0x46e5c8(0x236),void 0x0),q(this,_0x46e5c8(0x189),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x46e5c8(0x2c1)]();}[_0x1ed313(0x162)](_0x58919d,_0x2c8ba7,_0x55a8d5){const _0x511050=_0x1ed313;let _0x2d2041=this[_0x511050(0x219)][_0x511050(0x16c)](_0x58919d,_0x2c8ba7,_0x55a8d5);if(_0x2d2041)return _0x2d2041['getDrawingPoints']();}[_0x1ed313(0x1f0)](){const _0x5a6492=_0x1ed313;this[_0x5a6492(0x28a)]();}[_0x1ed313(0x2e8)](){const _0x5599f0=_0x1ed313;this[_0x5599f0(0x1e2)](!0x0);}['setShouldShowAdjust'](_0x5b5516){const _0x489739=_0x1ed313;this[_0x489739(0xd6)]=_0x5b5516;}[_0x1ed313(0x1a6)](_0x1e0c06,_0x385f50,_0x2f409a,_0x3334e9){const _0x480c2f=_0x1ed313;let _0x5107b4=this['_sheetsShapeService'][_0x480c2f(0x16c)](_0x1e0c06,_0x385f50,_0x2f409a);if(_0x5107b4)return _0x5107b4[_0x480c2f(0x285)](_0x3334e9);}[_0x1ed313(0x14b)](_0x1b06bb=!0x1){const _0x389533=_0x1ed313;if(this[_0x389533(0x2a6)]===null||this[_0x389533(0x1ce)]===null||this['_activeShapeId']===null)return;let _0x12a7dd=this['_renderManagerService'][_0x389533(0x187)](this[_0x389533(0x2a6)]);if(!_0x12a7dd||!_0x12a7dd[_0x389533(0x1e4)](_0x48e10a)['getCurrentSkeleton']())return;let {scene:_0x1e1f63}=_0x12a7dd,_0x5b579e={'unitId':this[_0x389533(0x2a6)],'subUnitId':this[_0x389533(0x1ce)],'drawingId':this[_0x389533(0x136)]},_0x212199=this[_0x389533(0x1b5)][_0x389533(0x2fc)](_0x5b579e),{transform:_0x1e847a}=_0x212199;if(!_0x1e847a||_0x212199[_0x389533(0x1b7)]!==_0x14c67a['DRAWING_SHAPE'])return;let {left:_0x6c7ad3,top:_0x2d2214,width:_0xeb4fd4,height:_0x2b8ddf,flipX:_0x471369,flipY:_0x455e97,angle:_0x28e0d6=0x0}=_0x1e847a;if(_0x6c7ad3===void 0x0||_0x2d2214===void 0x0)return;_0x1b06bb&&(this['_activeShapeAdjustPointList']=this[_0x389533(0x162)](this[_0x389533(0x2a6)],this[_0x389533(0x1ce)],this[_0x389533(0x136)]));let _0x353f2b=this[_0x389533(0x1b8)];for(let _0x1b35e3=0x0;_0x1b35e3<_0x353f2b['length'];_0x1b35e3++){let _0x23ab72=_0x353f2b[_0x1b35e3],_0x3c0ae7=_0x23ab72['x'],_0x570fee=_0x23ab72['y'];if(_0x471369&&(_0x3c0ae7=(_0xeb4fd4||0x0)-_0x3c0ae7),_0x455e97&&(_0x570fee=(_0x2b8ddf||0x0)-_0x570fee),_0x28e0d6!==0x0){let _0xfa4168=(_0xeb4fd4||0x0)/0x2,_0x106459=(_0x2b8ddf||0x0)/0x2,_0x57e35a=_0x28e0d6*Math['PI']/0xb4,_0x9abc33=Math[_0x389533(0x23b)](_0x57e35a),_0x279647=Math[_0x389533(0x156)](_0x57e35a),_0x1d5fea=_0x3c0ae7-_0xfa4168,_0x46fece=_0x570fee-_0x106459;_0x3c0ae7=_0xfa4168+(_0x1d5fea*_0x9abc33-_0x46fece*_0x279647),_0x570fee=_0x106459+(_0x1d5fea*_0x279647+_0x46fece*_0x9abc33);}let _0x5c0a5a={'x':_0x3c0ae7,'y':_0x570fee,'adjName':_0x23ab72[_0x389533(0x253)]};this[_0x389533(0x2e1)](_0x1e1f63,_0x5c0a5a,_0x5c0a5a[_0x389533(0x253)],_0x6c7ad3,_0x2d2214,this[_0x389533(0x2a6)],this[_0x389533(0x1ce)]);}}[_0x1ed313(0x1e2)](_0x538684=!0x1){const _0x352b97=_0x1ed313;_0x538684&&(this[_0x352b97(0x28a)](),this['_createShapeAdjustControls'](_0x538684));}[_0x1ed313(0x2e1)](_0x209a4d,_0x26a3ae,_0x5326d7,_0x59647e,_0x1d31e1,_0x491226,_0x20e834){const _0x1326db=_0x1ed313;if(!this['_activeShapeId'])return;let _0x11b3ee=_0x209a4d['getObjectIncludeInGroup'](_0x1326db(0x2eb)+this[_0x1326db(0x136)]+'-'+_0x5326d7);if(_0x11b3ee){_0x11b3ee['transformByState']({'left':_0x26a3ae['x']+_0x59647e-_0x42c7e9[_0x1326db(0x204)],'top':_0x26a3ae['y']+_0x1d31e1-_0x42c7e9[_0x1326db(0x204)]});return;}let _0x53fb30={'left':_0x26a3ae['x']+_0x59647e-_0x42c7e9[_0x1326db(0x204)],'top':_0x26a3ae['y']+_0x1d31e1-_0x42c7e9['adjHandleSize'],'adjName':_0x5326d7,'shapeId':this['_activeShapeId'],'unitId':_0x491226,'subUnitId':_0x20e834,'width':_0x42c7e9[_0x1326db(0x204)]+0x8,'height':_0x42c7e9[_0x1326db(0x204)]+0x8,'zIndex':_0x72823c+0x1,'evented':!0x0},_0x2d0229=new yn(_0x1326db(0x2eb)+this[_0x1326db(0x136)]+'-'+_0x5326d7,_0x53fb30);this[_0x1326db(0x121)][_0x1326db(0x2b9)](_0x2d0229),this['_attachAdjustEvent'](_0x2d0229,_0x209a4d,_0x5326d7),_0x209a4d['addObject'](_0x2d0229,_0x72823c+0x1);}[_0x1ed313(0x28a)](){const _0x4720a4=_0x1ed313;this['_shapes'][_0x4720a4(0x2b4)]!==0x0&&(this[_0x4720a4(0x121)][_0x4720a4(0x190)](_0x5458dd=>{_0x5458dd['dispose']();}),this[_0x4720a4(0x121)]=[]);}[_0x1ed313(0x10c)](){this['_createShapeAdjustControls']();}[_0x1ed313(0x2d2)](_0x3bdcd5,_0x35b023){const _0xfd8318=_0x1ed313;var _0xef8831;let _0x548aed={'x':0x0,'y':0x0};if(!_0x3bdcd5||!_0x35b023)return _0x548aed;let _0x1de85a=this[_0xfd8318(0x15b)][_0xfd8318(0x187)](_0x3bdcd5);if(!_0x1de85a||!_0x1de85a[_0xfd8318(0x1e4)](_0x48e10a)[_0xfd8318(0xa9)](_0x35b023))return _0x548aed;let _0x4badf3=_0x1de85a['with'](_0x55a101),_0x358eaf=_0x4badf3==null?void 0x0:_0x4badf3[_0xfd8318(0x21a)]();if(!_0x358eaf)return _0x548aed;let _0x2a0e06=(_0xef8831=this[_0xfd8318(0x2a5)][_0xfd8318(0x25f)](_0x3bdcd5))==null?void 0x0:_0xef8831[_0xfd8318(0x129)](_0x35b023);if(!_0x2a0e06)return _0x548aed;let _0x45877f=_0x4b381d(_0x358eaf[_0xfd8318(0xf0)],_0x358eaf[_0xfd8318(0x103)],_0x1de85a['scene'],_0x2a0e06);return _0x45877f?{'x':_0x45877f['viewportScrollX'],'y':_0x45877f['viewportScrollY']}:_0x548aed;}[_0x1ed313(0x2e5)](_0x520a8b,_0xc23b1e){const _0x31db35=_0x1ed313;var _0x59213e,_0x5c6d9e;let _0x48f2a6=(_0x59213e=this[_0x31db35(0x2a5)][_0x31db35(0x25f)](_0x520a8b))==null?void 0x0:_0x59213e[_0x31db35(0x129)](_0xc23b1e);return(_0x5c6d9e=_0x48f2a6==null?void 0x0:_0x48f2a6[_0x31db35(0x138)]())==null?0x1:_0x5c6d9e;}['_attachAdjustEvent'](_0x36312c,_0x38f31a,_0x3fbae8){const _0x165982=_0x1ed313;this[_0x165982(0xf6)](_0x11cfa6(_0x36312c[_0x165982(0x1bb)]['subscribeEvent']((_0x3129f1,_0x372602)=>{const _0x1dd371=_0x165982;var _0x45d746,_0x4ad632,_0xe9c04f,_0x66d1e0;let _0x27e3df=_0x36312c['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x1dd371(0x1a6)](_0x27e3df[_0x1dd371(0xae)],_0x27e3df[_0x1dd371(0x210)],_0x27e3df[_0x1dd371(0xb2)],_0x3fbae8),this[_0x1dd371(0x25a)]=this[_0x1dd371(0x219)][_0x1dd371(0x16c)](_0x27e3df[_0x1dd371(0xae)],_0x27e3df['subUnitId'],_0x27e3df[_0x1dd371(0xb2)]);let _0x24eba6=this[_0x1dd371(0x1b5)][_0x1dd371(0x2fc)]({'unitId':this[_0x1dd371(0x2a6)],'subUnitId':this[_0x1dd371(0x1ce)],'drawingId':this[_0x1dd371(0x136)]}),{transform:_0x233742}=_0x24eba6;if(_0x233742){let {left:_0x1f79cf,top:_0x31b598,width:_0x238b4b,height:_0x39b89b}=_0x233742;this['_baseShapeLeft']=_0x1f79cf||0x0,this[_0x1dd371(0x120)]=_0x31b598||0x0,this[_0x1dd371(0x179)]=_0x238b4b||0x0,this[_0x1dd371(0x2e9)]=_0x39b89b||0x0;}let _0x42c2da=!!((_0x45d746=_0x24eba6[_0x1dd371(0x131)])!=null&&_0x45d746[_0x1dd371(0x14c)]),_0x2d882f=!!((_0x4ad632=_0x24eba6['transform'])!=null&&_0x4ad632['flipY']),_0x104dd8=((_0xe9c04f=_0x24eba6[_0x1dd371(0x131)])==null?void 0x0:_0xe9c04f[_0x1dd371(0x2f1)])||0x0;this[_0x1dd371(0x1f6)]=!0x0,_0x38f31a[_0x1dd371(0x255)]();let _0x3bc4d2=(_0x66d1e0=this['_activeShapeModel'])==null?void 0x0:_0x66d1e0[_0x1dd371(0x202)](_0x3fbae8),_0x36dfce={[_0x3fbae8]:_0x3bc4d2};this[_0x1dd371(0x236)]=_0x38f31a[_0x1dd371(0xc6)][_0x1dd371(0x226)]((_0x596cdd,_0x4e79e0)=>{const _0x2612de=_0x1dd371;if(!this[_0x2612de(0x1f6)])return;let {offsetX:_0x3c5e6d,offsetY:_0xbb1095}=_0x596cdd,_0x5e9d14=this[_0x2612de(0x14e)];if(this[_0x2612de(0x25a)]&&_0x5e9d14){_0x38f31a[_0x2612de(0x255)](),_0x38f31a[_0x2612de(0xf7)](_0x13f6e1['CROSSHAIR']);let _0x2afed7={'left':0x0,'top':0x0,'width':this[_0x2612de(0x179)],'height':this[_0x2612de(0x2e9)]},_0x100ba0=this[_0x2612de(0x2d2)](this[_0x2612de(0x2a6)],this[_0x2612de(0x1ce)]),_0x34958f=this[_0x2612de(0x2e5)](this['_unitId'],this['_subUnitId']),_0x144a79=_0x3c5e6d/_0x34958f+_0x100ba0['x']-this[_0x2612de(0x250)],_0x1ca600=_0xbb1095/_0x34958f+_0x100ba0['y']-this[_0x2612de(0x120)];if(_0x104dd8!==0x0){let _0x5a645a=this[_0x2612de(0x179)]/0x2,_0x57a32b=this[_0x2612de(0x2e9)]/0x2,_0x2910a8=_0x104dd8*Math['PI']/0xb4,_0x11873a=Math[_0x2612de(0x23b)](_0x2910a8),_0x30a9ff=Math['sin'](_0x2910a8),_0x41d95a=_0x144a79-_0x5a645a,_0x32334b=_0x1ca600-_0x57a32b;_0x144a79=_0x5a645a+(_0x41d95a*_0x11873a+_0x32334b*_0x30a9ff),_0x1ca600=_0x57a32b+(-_0x41d95a*_0x30a9ff+_0x32334b*_0x11873a);}_0x42c2da&&(_0x144a79=this[_0x2612de(0x179)]-_0x144a79),_0x2d882f&&(_0x1ca600=this[_0x2612de(0x2e9)]-_0x1ca600);let _0x147a7f={'x':_0x144a79,'y':_0x1ca600},_0x2e09be=this[_0x2612de(0x25a)][_0x2612de(0x1ef)](_0x2afed7,_0x147a7f,_0x5e9d14,_0x42c2da,_0x2d882f),_0x1e8c8a=_0x5e9d14[_0x2612de(0xb4)]||_0x5e9d14[_0x2612de(0x293)]||_0x5e9d14['gdRefAng']||_0x5e9d14[_0x2612de(0x20f)];if(_0x1e8c8a===void 0x0)return;this[_0x2612de(0x25a)][_0x2612de(0x130)](_0x1e8c8a,_0x2e09be);let _0x14bfc7=this[_0x2612de(0x1b5)][_0x2612de(0x2fc)]({'unitId':_0x27e3df['unitId'],'subUnitId':_0x27e3df[_0x2612de(0x210)],'drawingId':_0x27e3df['drawingId']});_0x14bfc7&&(this[_0x2612de(0x1c4)][_0x2612de(0x2ec)](_0x14bfc7,_0x38f31a),this[_0x2612de(0x1b8)]=this[_0x2612de(0x162)](_0x27e3df[_0x2612de(0xae)],_0x27e3df[_0x2612de(0x210)],_0x27e3df['drawingId']),this[_0x2612de(0x10c)]());}_0x4e79e0['stopPropagation']();}),this[_0x1dd371(0x189)]=_0x38f31a[_0x1dd371(0x151)][_0x1dd371(0x226)]((_0x478937,_0x340dd8)=>{const _0x15386f=_0x1dd371;this[_0x15386f(0x236)][_0x15386f(0xcf)](),this['_adjHandlerPointerUp'][_0x15386f(0xcf)](),_0x38f31a[_0x15386f(0x17d)]();let _0x1f301d=this[_0x15386f(0x14e)];if(_0x1f301d){let _0x5729cc=_0x27e3df['unitId'],_0xcb23e1=_0x27e3df[_0x15386f(0x210)],_0x3cd85a=_0x27e3df['drawingId'],_0x192fda=_0x1f301d[_0x15386f(0xb4)]||_0x1f301d[_0x15386f(0x293)]||_0x1f301d[_0x15386f(0x2a1)]||_0x1f301d[_0x15386f(0x20f)];if(_0x192fda!==void 0x0){var _0x42552a;let _0x46d8ee=(_0x42552a=this['_activeShapeModel'])==null?void 0x0:_0x42552a['getAdjustValueByName'](_0x192fda);_0x46d8ee!==void 0x0&&fn(this[_0x15386f(0x1df)],_0x5729cc,_0xcb23e1,_0x3cd85a,{'oldShapeData':{'adjustValues':_0x36dfce}},{'adjustValues':{[_0x192fda]:_0x46d8ee}});}}this[_0x15386f(0x14e)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x15386f(0x1f6)]=!0x1,_0x340dd8[_0x15386f(0x1f3)](),_0x38f31a['enableObjectsEvent']();}),_0x372602[_0x1dd371(0x1f3)]();})));}[_0x1ed313(0x2c1)](){const _0x3ba931=_0x1ed313;let _0x51f435=this[_0x3ba931(0x2a5)][_0x3ba931(0xbd)](_0x35009f['UNIVER_SHEET']);this[_0x3ba931(0xf6)](_0x51f435[_0x3ba931(0x235)](_0x324807(_0x2b5328=>_0x2b5328?_0x2b5328[_0x3ba931(0xbb)]['pipe'](_0x324807(_0x70eeb3=>{const _0x8cf0a3=_0x3ba931;if(!_0x70eeb3)return _0x269514;let _0x2e4cd5=_0x2b5328[_0x8cf0a3(0x2e7)](),_0x1eb858=this[_0x8cf0a3(0x15b)][_0x8cf0a3(0x187)](_0x2e4cd5),_0x564d2f=_0x1eb858==null?void 0x0:_0x1eb858[_0x8cf0a3(0xdb)];return _0x564d2f?_0x3e45e3(_0x564d2f):_0x269514;})):_0x269514))['subscribe'](_0x34f02e=>{const _0x5672a3=_0x3ba931;let _0x11ec4f=_0x34f02e[_0x5672a3(0xdf)]();this[_0x5672a3(0xf6)](_0x34f02e[_0x5672a3(0xc6)][_0x5672a3(0x226)](()=>{const _0x1663f2=_0x5672a3;this[_0x1663f2(0xd6)];})),this[_0x5672a3(0xf6)](_0x11ec4f['changeStart$'][_0x5672a3(0x1f9)](_0xf6d486=>{const _0x2aeca7=_0x5672a3;let {objects:_0xdd1db4}=_0xf6d486;this['_createShapeAdjustControls'](),_0xdd1db4!==null&&_0xdd1db4[_0x2aeca7(0x134)]===0x1&&_0xdd1db4[_0x2aeca7(0x1ad)]()['next']()[_0x2aeca7(0xcc)]instanceof vn&&this[_0x2aeca7(0x280)](!0x0);})),this['disposeWithMe'](_0x11ec4f[_0x5672a3(0x194)][_0x5672a3(0x1f9)](()=>{const _0x1fb710=_0x5672a3;this[_0x1fb710(0xd6)]&&this[_0x1fb710(0x28a)]();})),this[_0x5672a3(0xf6)](_0x34f02e[_0x5672a3(0x151)][_0x5672a3(0x226)](()=>{const _0x28cab5=_0x5672a3;this[_0x28cab5(0xd6)]&&(this[_0x28cab5(0x280)](!0x1),this[_0x28cab5(0x14b)]());})),this['disposeWithMe'](_0x11ec4f['changeEnd$'][_0x5672a3(0x1f9)](()=>{const _0x2b91be=_0x5672a3;this[_0x2b91be(0x2a6)]&&this[_0x2b91be(0x1ce)]&&this['_activeShapeId']&&this[_0x2b91be(0x1b5)][_0x2b91be(0x2fc)]({'unitId':this['_unitId'],'subUnitId':this[_0x2b91be(0x1ce)],'drawingId':this['_activeShapeId']})&&(this[_0x2b91be(0x1b8)]=this[_0x2b91be(0x162)](this[_0x2b91be(0x2a6)],this['_subUnitId'],this[_0x2b91be(0x136)]),this[_0x2b91be(0x10c)]());}));}));}[_0x1ed313(0x17e)](){const _0x22b88c=_0x1ed313;this['disposeWithMe'](this[_0x22b88c(0x1b5)][_0x22b88c(0x243)][_0x22b88c(0x1f9)](_0x5d8411=>{const _0x25c4b7=_0x22b88c;if(_0x5d8411[_0x25c4b7(0x2b4)]===0x1){let _0x341f37=_0x5d8411[0x0];if(_0x341f37['drawingType']===_0x14c67a[_0x25c4b7(0x141)]){this[_0x25c4b7(0x136)]=_0x341f37['drawingId'];let {unitId:_0x4c3562,subUnitId:_0x2935cf}=_0x341f37;this['_activeShapeAdjustPointList']=this[_0x25c4b7(0x162)](_0x4c3562,_0x2935cf,this['_activeShapeId']),this[_0x25c4b7(0x2a6)]=_0x4c3562,this[_0x25c4b7(0x1ce)]=_0x2935cf,this[_0x25c4b7(0x28a)](),this[_0x25c4b7(0x14b)]();}else this[_0x25c4b7(0x136)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x25c4b7(0x2a6)]=null,this[_0x25c4b7(0x1ce)]=null,this['_clearShapeAdjustControls']();}(_0x5d8411[_0x25c4b7(0x2b4)]>0x1||_0x5d8411['length']===0x0)&&(this[_0x25c4b7(0x136)]=null,this[_0x25c4b7(0x1b8)]=void 0x0,this[_0x25c4b7(0x2a6)]=null,this[_0x25c4b7(0x1ce)]=null,this[_0x25c4b7(0x28a)]());})),this[_0x22b88c(0xf6)](this['_drawingManagerService']['update$']['subscribe'](_0x13af8f=>{const _0x2cdba5=_0x22b88c;if(_0x13af8f[_0x2cdba5(0x2b4)]===0x1){var _0xc04077;let _0x56ffe8=_0x13af8f[0x0];((_0xc04077=this[_0x2cdba5(0x1b5)][_0x2cdba5(0x2fc)](_0x56ffe8))==null?void 0x0:_0xc04077[_0x2cdba5(0x1b7)])===_0x14c67a[_0x2cdba5(0x141)]&&this[_0x2cdba5(0x1e2)](!0x0);}})),this[_0x22b88c(0xf6)](this[_0x22b88c(0x1b5)][_0x22b88c(0xd4)][_0x22b88c(0x1f9)](_0x5629af=>{const _0x3e062e=_0x22b88c;for(let _0x547518 of _0x5629af)this[_0x3e062e(0x136)]===_0x547518[_0x3e062e(0xb2)]&&(this[_0x3e062e(0x136)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3e062e(0x2a6)]=null,this[_0x3e062e(0x1ce)]=null,this[_0x3e062e(0x28a)]());}));}};Z=Y([J(0x0,_0x431f44),J(0x1,_0x697169(_0x5486d2)),J(0x2,_0x697169(_0x134053)),J(0x3,_0x697169(X)),J(0x4,_0x57a3de),J(0x5,_0x2eaf9c)],Z);const bn={'id':_0x1ed313(0x281),'type':_0x5da788['OPERATION'],'handler':(_0x2e527d,_0x138656)=>{const _0x4f2231=_0x1ed313;let _0x349719=_0x2e527d[_0x4f2231(0xbe)](_0x431f44),_0x3cc704=_0x2e527d['get'](_0x134053),_0x3760e1=_0x2e527d[_0x4f2231(0xbe)](Z);if(_0x138656==null)return!0x0;if(_0x138656[_0x4f2231(0x2b4)]>0x0){var _0x100d8e;let _0x4e7ee1=(_0x100d8e=_0x3cc704['getRenderById'](_0x138656[0x0][_0x4f2231(0xae)]))==null?void 0x0:_0x100d8e[_0x4f2231(0xdb)];if(_0x4e7ee1){let {unitId:_0x3b9fdf,subUnitId:_0x5ac573,drawingId:_0x5e841a}=_0x138656[0x0],_0x59e802=_0x45a0e1({'unitId':_0x3b9fdf,'subUnitId':_0x5ac573,'drawingId':_0x5e841a},void 0x0),_0x140fa5=_0x4e7ee1[_0x4f2231(0x2aa)](_0x59e802);if(_0x140fa5){var _0x29ea90;(_0x29ea90=_0x3cc704[_0x4f2231(0x187)](_0x138656[0x0]['unitId']))==null||(_0x29ea90=_0x29ea90[_0x4f2231(0xdb)][_0x4f2231(0xfc)]())==null||_0x29ea90[_0x4f2231(0xe6)](_0x140fa5);}}_0x349719[_0x4f2231(0x1c6)](_0x138656),_0x3760e1['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0x5da788[_0x1ed313(0x2cb)],'id':_0x1ed313(0x297),'handler':async(_0x115016,_0xd38867)=>{const _0x57956b=_0x1ed313;let _0x5b90ba=_0x50e622(_0x115016['get'](_0x57a3de));if(!_0x5b90ba)return!0x1;let _0xf5e6d4=_0x115016[_0x57956b(0xbe)](_0x41bd2d)[_0x57956b(0x1dd)]();if(!_0xf5e6d4)return!0x1;let _0x21813c=_0x115016[_0x57956b(0xbe)](_0x2eaf9c),{unitId:_0x4e7f37,subUnitId:_0x5b00d0}=_0x5b90ba,{value:_0x5c9d60,enhanceParams:_0x2aa93d}=_0xd38867,{range:_0x80cff8}=_0xf5e6d4,_0x28ca00={'unitId':_0x4e7f37,'subUnitId':_0x5b00d0,'shapeType':_0x5c9d60,'range':_0x80cff8,'shapeId':_0x436dba()};if(_0x2aa93d){let _0x182225=_0x5cb95b(_0x5c9d60),_0x5dd755=_0x5c9d60===_0x54d8d8[_0x57956b(0x23d)];_0x182225&&(_0x2aa93d[_0x57956b(0x21f)]||_0x2aa93d[_0x57956b(0x123)])&&(_0x28ca00[_0x57956b(0x1c9)]={'ln':{'startArrow':_0x2aa93d[_0x57956b(0x21f)]?{'type':_0x374401[_0x57956b(0x28d)],'size':_0x56f02b['Medium']}:void 0x0,'endArrow':_0x2aa93d[_0x57956b(0x123)]?{'type':_0x374401[_0x57956b(0x28d)],'size':_0x56f02b[_0x57956b(0x193)]}:void 0x0}}),_0x5dd755&&(_0x2aa93d['horizontal']||_0x2aa93d['vertical'])&&(_0x28ca00[_0x57956b(0x1c9)]=_0x4ccb02({'fill':{'fillType':_0x5c4d97['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x2aa93d[_0x57956b(0x239)],'stroke':{'lineStrokeType':_0x143b14[_0x57956b(0x245)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1b259b=_0x21813c[_0x57956b(0x218)](_0x387a51['id'],_0x28ca00);return setTimeout(()=>{const _0x2f99aa=_0x57956b;_0x21813c[_0x2f99aa(0x12c)](bn['id'],[{'unitId':_0x4e7f37,'subUnitId':_0x5b00d0,'drawingId':_0x28ca00[_0x2f99aa(0x2ce)]}]);},0xc8),_0x1b259b;}},Sn=_0x1ed313(0xde),Cn='sheet.shape.object-list.panel',wn='sheet.shape.floating-toolbar',Tn=_0x483105(_0x1ed313(0x168)),En=_0x1ed313(0x12a),Dn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x5da788[_0x1ed313(0x2cb)],'handler':(_0x11cf5f,_0x517830)=>{const _0x4e264d=_0x1ed313;let _0x3bd6c3=_0x11cf5f[_0x4e264d(0xbe)](_0x37253d),_0xa6502d=_0x11cf5f[_0x4e264d(0xbe)](_0x3f505b),_0xf727f8=_0x11cf5f[_0x4e264d(0xbe)](_0x57a3de),_0x51829f=_0x11cf5f[_0x4e264d(0xbe)](_0x2eaf9c);return _0x50e622(_0xf727f8)?(_0x517830==null?void 0x0:_0x517830[_0x4e264d(0xcc)])===_0x4e264d(0x234)?(_0x3bd6c3[_0x4e264d(0x234)](Cn),!0x0):(_0x3bd6c3[_0x4e264d(0x251)]({'id':Cn,'header':{'title':_0xa6502d['t'](_0x4e264d(0xb6))},'children':{'label':Cn},'onClose':()=>{const _0x3dd58c=_0x4e264d;_0x51829f[_0x3dd58c(0x218)](_0x1aab4d['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x17a082{constructor(_0xf943ec,_0x291d3){const _0x483280=_0x1ed313;super(),this[_0x483280(0x1ca)]=_0xf943ec,this[_0x483280(0x1b5)]=_0x291d3,this[_0x483280(0x12f)](),this[_0x483280(0x1ca)][_0x483280(0x1a5)](!0x0),this[_0x483280(0xf6)]({'dispose':()=>this[_0x483280(0x1ca)][_0x483280(0x1a5)](!0x1)});}[_0x1ed313(0x12f)](){const _0x60512d=_0x1ed313;let _0x3efc03=this[_0x60512d(0x1ca)],_0x56f283=new Map(),_0x2ecddb=_0x3efc03[_0x60512d(0x118)]((_0x340988,_0x2b3218,_0xe8970,_0xd2ea00,_0xa94489)=>{const _0x20fc1d=_0x60512d;let _0x45ccf7=_0x2b3218;if(_0x45ccf7===_0x54d8d8['None']||_0x2b3218==='custom')return!0x1;try{let _0x4dfbd1=_0x56f283[_0x20fc1d(0xbe)](_0x2b3218);return _0x4dfbd1||(_0x4dfbd1=new _0x5ebb51(_0x45ccf7,_0x20fc1d(0x16d)+_0x2b3218),_0x56f283[_0x20fc1d(0x182)](_0x2b3218,_0x4dfbd1)),_0xa94489&&_0x4dfbd1[_0x20fc1d(0x2c8)]({'adjustValues':_0xa94489},!0x0),_0x4dfbd1[_0x20fc1d(0x127)]({'width':_0xe8970,'height':_0xd2ea00}),_0x4dfbd1[_0x20fc1d(0x23c)](_0x340988,{'left':0x0,'top':0x0,'width':_0xe8970,'height':_0xd2ea00});}catch{return!0x1;}});this[_0x60512d(0xf6)](_0x2ecddb),this['disposeWithMe']({'dispose':()=>_0x56f283['clear']()});}[_0x1ed313(0x119)](_0xc96ff2,_0x3c3e08,_0x10f83e,_0x23a830,_0x4d4bf0){const _0x305329=_0x1ed313;let _0x541a07=this[_0x305329(0x1b5)][_0x305329(0xed)](_0xc96ff2,_0x3c3e08);if(!_0x541a07[_0x10f83e])return;let _0x31d209={..._0x541a07[_0x10f83e],'prstGeom':_0x23a830,'adjustValues':_0x4d4bf0};this[_0x305329(0x1b5)][_0x305329(0x20b)]([_0x31d209]);}};Q=Y([J(0x0,_0x697169(_0x388dc6)),J(0x1,_0x697169(_0x431f44))],Q);const On=_0x1ed313(0xa5),kn=_0x1ed313(0x126);function An({onShapeClick:_0x5f60a6,excludeGroups:_0x14a9df}){const _0x3b3800=_0x1ed313;return _0x1f4f7e(_0x1afc0d,{'excludeGroups':_0x14a9df,'onShapeClick':_0x5f60a6,'scrollContainer':_0x3b3800(0xeb)});}function jn(){const _0x198dac=_0x1ed313;let _0x3f44ca=_0x19c54a(_0x431f44),_0x206efe=_0x19c54a(Q);return _0x1f4f7e(_0xa19501,{'buttonLabel':_0x198dac(0x27d),'excludeGroups':[_0x4cc531[_0x198dac(0x248)]],'onShapeClick':_0x2ebbf3=>{const _0x1bc8cd=_0x198dac;let _0x43b639=_0x3f44ca['getFocusDrawings']()[_0x1bc8cd(0xd8)](_0x461b49=>_0x461b49[_0x1bc8cd(0x1b7)]===_0x14c67a['DRAWING_IMAGE']);if(!_0x43b639)return;let {unitId:_0x34cbdc,subUnitId:_0x383a29,drawingId:_0x272602}=_0x43b639;_0x206efe['clipByShape'](_0x34cbdc,_0x383a29,_0x272602,_0x2ebbf3[_0x1bc8cd(0x2ef)]);}});}function Mn(){const _0x4b6e63=_0x1ed313;let _0x18ca68=_0x19c54a(_0x4540cf),_0x35ba4f=_0x19c54a(_0x431f44),_0x398b72=_0x19c54a(_0x57a3de),_0x2326cc=_0x35ba4f[_0x4b6e63(0x149)]()[0x0],_0x56e6b7=_0x2326cc?_0x398b72[_0x4b6e63(0x16b)](_0x2326cc[_0x4b6e63(0xae)]):void 0x0,_0x249ab7=_0x56e6b7===_0x35009f[_0x4b6e63(0x1ae)]?_0x4b6e63(0x227):_0x56e6b7===_0x35009f['UNIVER_SHEET']?kn:void 0x0,_0x32078f=_0x249ab7?_0x18ca68[_0x4b6e63(0xbe)](_0x249ab7):void 0x0;return _0x32078f?_0x1f4f7e(_0x32078f,{}):null;}function Nn(){let _0x5b2c5f=_0x19c54a(_0x2eaf9c);return _0x1f4f7e(An,{'onShapeClick':_0x35e521=>{const _0x300b1=_0x2c6b;_0x5b2c5f[_0x300b1(0x12c)](xn['id'],{'value':_0x35e521[_0x300b1(0x2ef)],'enhanceParams':{'endArrow':_0x35e521['endArrow'],'startArrow':_0x35e521[_0x300b1(0x21f)],'horizontal':_0x35e521[_0x300b1(0x239)],'vertical':_0x35e521[_0x300b1(0x2bc)]}});}});}function Pn(_0x113099){const _0x3ed8a5=_0x1ed313;let _0x14b82d=_0x113099[_0x3ed8a5(0xbe)](_0x57a3de);return{'id':xn['id'],'type':_0x235f66[_0x3ed8a5(0xdc)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x3ed8a5(0x231),'tooltip':_0x3ed8a5(0x278),'activated$':_0x4019f7(_0x14b82d,!0x1,()=>new _0x339469(_0x41802b=>{const _0x394c7e=_0x3ed8a5;_0x41802b[_0x394c7e(0x23e)](!0x1);})),'hidden$':_0x53fb5c(_0x113099,_0x35009f[_0x3ed8a5(0x26b)]),'disabled$':_0x43fa83(_0x113099)};}function Fn(_0x2f5a00){const _0x229492=_0x1ed313;let _0x250def=_0x2f5a00[_0x229492(0xbe)](_0x57a3de);return{'id':Dn['id'],'type':_0x235f66[_0x229492(0x241)],'icon':_0x229492(0x20a),'title':_0x229492(0x275),'tooltip':_0x229492(0x275),'activated$':_0x4019f7(_0x250def,!0x1,()=>new _0x339469(_0x54ff8e=>{_0x54ff8e['next'](!0x1);})),'hidden$':_0x53fb5c(_0x2f5a00,_0x35009f[_0x229492(0x26b)]),'disabled$':_0x43fa83(_0x2f5a00)};}const In={[_0xb4efea[_0x1ed313(0x155)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln=_0x1ed313(0xbc),Rn=_0x1ed313(0x272);const zn={'type':_0x5da788['OPERATION'],'id':_0x1ed313(0x2c2),'handler'(){return!0x0;}},Bn={'type':_0x5da788['OPERATION'],'id':_0x1ed313(0x197),'handler'(){return!0x0;}},Vn={};function Hn(_0x43f6f8){const _0x1b4afa=_0x1ed313;return _0x43f6f8[_0x1b4afa(0x11d)]()||void 0x0;}function Un(_0x1cfa0e){const _0x5d7060=_0x1ed313;switch(_0x1cfa0e['drawingType']){case _0x14c67a['DRAWING_IMAGE']:return'image';case _0x14c67a[_0x5d7060(0x2f6)]:return _0x5d7060(0xe2);case _0x14c67a['DRAWING_TABLE']:return _0x5d7060(0x147);case _0x14c67a['DRAWING_SMART_ART']:return _0x5d7060(0x26d);case _0x14c67a['DRAWING_VIDEO']:return _0x5d7060(0x290);case _0x14c67a[_0x5d7060(0x201)]:return _0x5d7060(0x14f);case _0x14c67a[_0x5d7060(0x124)]:return'unit';case _0x14c67a[_0x5d7060(0x298)]:return'dom';case _0x14c67a[_0x5d7060(0x141)]:return _0x5d7060(0x178);default:return _0x5d7060(0x15a);}}function Wn(_0x5c2c0f,_0x36615d,_0x5decc8){const _0x5f58ca=_0x1ed313;var _0x1ca9a9;return((_0x1ca9a9=_0x5c2c0f[_0x5f58ca(0xda)])==null?void 0x0:_0x1ca9a9[_0x5f58ca(0x11d)]())||_0x1831b0(_0x5decc8,Un(_0x5c2c0f))+'\x20'+(_0x36615d+0x1);}function Gn(){const _0x1f9119=_0x1ed313;var _0x5d1aba,_0x1e0171,_0x47b67f,_0x3e0ce8;let _0x489aaf=_0x19c54a(_0x3f505b),_0x38c1a5=_0x19c54a(_0x2eaf9c),_0x13a966=_0x19c54a(_0x57a3de),_0x167b42=_0x19c54a(_0x513fd6),_0x57fa74=_0x19c54a(_0x431f44),_0x45e45a=_0x19c54a(_0x134053),[,_0x5ff737]=_0xef9b53(_0x40705b=>_0x40705b+0x1,0x0),_0x4ca1f4=_0x13a966[_0x1f9119(0x2b0)](_0x35009f[_0x1f9119(0x26b)]),_0x5f04cb=(_0x5d1aba=_0x4ca1f4==null?void 0x0:_0x4ca1f4['getUnitId']())==null?'':_0x5d1aba,_0xe618d5=(_0x1e0171=_0x4ca1f4==null||(_0x47b67f=_0x4ca1f4['getActiveSheet']())==null?void 0x0:_0x47b67f[_0x1f9119(0x1d0)]())==null?'':_0x1e0171,_0x1d4e83=_0x46233d(()=>_0x57fa74[_0x1f9119(0x243)],_0x57fa74[_0x1f9119(0x149)](),!0x1,[_0x57fa74]);_0x4dc124(()=>{const _0xfe3e79=_0x1f9119;let _0x506197=_0x38c1a5[_0xfe3e79(0x24c)](()=>_0x5ff737());return()=>_0x506197[_0xfe3e79(0x230)]();},[_0x38c1a5]);let _0x2f8ec0=_0x5f04cb&&_0xe618d5?_0x167b42[_0x1f9119(0xed)](_0x5f04cb,_0xe618d5):{},_0x5ad320=_0x5f04cb&&_0xe618d5?_0x167b42[_0x1f9119(0x1ee)](_0x5f04cb,_0xe618d5):[],_0x3cd10b=_0x17b529(()=>_0xca058a(_0x489aaf),[_0x489aaf]),_0x2c57ea=_0x17b529(()=>{const _0x2457ea=_0x1f9119;let _0x3920c0=_0x5ad320[_0x2457ea(0x1a2)](_0x555166=>_0x2f8ec0[_0x555166])['filter'](_0x176550=>!!_0x176550)[_0x2457ea(0x19b)](),_0x14e9b0=_0x3920c0['reduce']((_0x3177db,_0x58095d)=>(_0x3177db[_0x5de67b(_0x58095d[_0x2457ea(0x1b7)])]+=0x1,_0x3177db),{'canvas':0x0,'floating':0x0}),_0x3c3497={'canvas':0x0,'floating':0x0};return _0x3920c0[_0x2457ea(0x1a2)]((_0x1ee197,_0x5c8914)=>{const _0x367511=_0x2457ea;let _0x10ffd7=_0x5de67b(_0x1ee197[_0x367511(0x1b7)]),_0x335252=_0x10ffd7===_0x17ce12,_0x227bc7=_0x3c3497[_0x10ffd7]++;return{'id':_0x1ee197[_0x367511(0xb2)],'name':Wn(_0x1ee197,_0x5c8914,_0x489aaf),'description':_0x1ee197[_0x367511(0xb1)],'visible':_0x1ee197[_0x367511(0x220)]!==!0x0,'selectable':_0x1ee197[_0x367511(0x2f9)]!==!0x1,'sectionId':_0x10ffd7,'sectionTitle':_0x335252?_0x3cd10b[_0x367511(0x12b)]:_0x3cd10b['sectionCanvas'],'capabilities':_0x335252?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x335252&&_0x227bc7>0x0,'canMoveBackward':!_0x335252&&_0x227bc7<_0x14e9b0[_0x367511(0x246)]-0x1,'canReorder':!_0x335252};});},[_0x2f8ec0,_0x5ad320,_0x3cd10b[_0x1f9119(0xaa)],_0x3cd10b[_0x1f9119(0x12b)],_0x489aaf]),_0x243e50=_0x17b529(()=>(_0x1d4e83==null?[]:_0x1d4e83)['filter'](_0x483f25=>_0x483f25[_0x1f9119(0xae)]===_0x5f04cb&&_0x483f25[_0x1f9119(0x210)]===_0xe618d5)[_0x1f9119(0x1a2)](_0x2aee04=>_0x2aee04['drawingId']),[_0x1d4e83,_0xe618d5,_0x5f04cb]),_0x527a5a=(_0x3e0ce8=_0x243e50[_0x243e50['length']-0x1])==null?null:_0x3e0ce8,_0x1e9fb5=_0x2a5e66=>{const _0x2243dc=_0x1f9119;var _0x44a2c0;return(_0x44a2c0=_0x167b42[_0x2243dc(0x2fc)]({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x2a5e66}))==null?null:_0x44a2c0;},_0x346895=_0x196b3a=>{const _0x221617=_0x1f9119;!_0x5f04cb||!_0x196b3a[_0x221617(0x2b4)]||_0x38c1a5[_0x221617(0x12c)](_0x13c603['id'],{'unitId':_0x5f04cb,'drawings':_0x196b3a});},_0x31e274=(_0x13943c,_0x4fd897)=>{_0x1e9fb5(_0x13943c)&&_0x346895([{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x13943c,..._0x4fd897}]);},_0xf1ebfa=(_0x8db4a2,_0x42d4b0)=>{const _0xc72d08=_0x1f9119;if(!_0x5f04cb||!_0xe618d5)return;let _0x184c3a=_0x42d4b0?_0x243e50[_0xc72d08(0x152)](_0x8db4a2)?_0x243e50[_0xc72d08(0x205)](_0x36c8a0=>_0x36c8a0!==_0x8db4a2):[..._0x243e50,_0x8db4a2]:[_0x8db4a2];_0x38c1a5[_0xc72d08(0x218)](_0x1aab4d['id'],_0x184c3a[_0xc72d08(0x1a2)](_0x2f0ded=>({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x2f0ded})));let _0x461168=_0x184c3a[_0x184c3a[_0xc72d08(0x2b4)]-0x1];_0x461168?_0x195857(_0x45e45a,{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0x461168}):_0x1fa821(_0x45e45a,_0x5f04cb);},_0x3d4aa2=(_0x333f4a,_0x7ad851)=>{const _0x2daecf=_0x1f9119;_0x346895(_0x333f4a[_0x2daecf(0x1a2)](_0x3d8539=>_0x1e9fb5(_0x3d8539))[_0x2daecf(0x205)](_0x40baaf=>!!_0x40baaf)['filter'](_0x3fb8eb=>_0x3fb8eb['hidden']!==!0x0!==_0x7ad851)[_0x2daecf(0x1a2)](_0xdad07b=>({'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingId':_0xdad07b[_0x2daecf(0xb2)],'hidden':!_0x7ad851})));},_0x528048=_0x44fad4=>{const _0x3b9a1e=_0x1f9119;let _0x351270=_0x1e9fb5(_0x44fad4);_0x351270&&_0x31e274(_0x44fad4,{'selectable':_0x351270[_0x3b9a1e(0x2f9)]===!0x1?void 0x0:!0x1});},_0xc606a=(_0x2df58e,_0x1f533b)=>{const _0x1c2e23=_0x1f9119;var _0x5adfc1,_0x4c207b;let _0x4b57a6=Hn(_0x1f533b);((_0x5adfc1=(_0x4c207b=_0x1e9fb5(_0x2df58e))==null?void 0x0:_0x4c207b[_0x1c2e23(0xda)])==null?void 0x0:_0x5adfc1)!==_0x4b57a6&&_0x31e274(_0x2df58e,{'name':_0x4b57a6});},_0x4dcb5f=(_0x890269,_0x37805a)=>{const _0x5acc21=_0x1f9119;var _0x2e4ef5,_0x275576;let _0x11d9f3=Hn(_0x37805a);((_0x2e4ef5=(_0x275576=_0x1e9fb5(_0x890269))==null?void 0x0:_0x275576[_0x5acc21(0xb1)])==null?void 0x0:_0x2e4ef5)!==_0x11d9f3&&_0x31e274(_0x890269,{'description':_0x11d9f3});},_0x188724=(_0x32c064,_0x4e7c8f)=>{const _0x1285f5=_0x1f9119;!_0x5f04cb||!_0xe618d5||_0x38c1a5[_0x1285f5(0x12c)](_0x57e602['id'],{'unitId':_0x5f04cb,'subUnitId':_0xe618d5,'drawingIds':[_0x32c064],'arrangeType':_0x4e7c8f});};return!_0x5f04cb||!_0xe618d5?_0x1f4f7e('div',{'className':_0x1f9119(0xba),'children':_0x3cd10b['title']}):_0x1f4f7e(_0x429e7a,{'items':_0x2c57ea,'selectedIds':_0x243e50,'focusedId':_0x527a5a,'labels':_0x3cd10b,'onSelect':_0xf1ebfa,'onSetVisible':_0x3d4aa2,'onCommitName':_0xc606a,'onCommitDescription':_0x4dcb5f,'onMoveForward':_0x2d41f0=>_0x188724(_0x2d41f0,_0x512ac4['forward']),'onMoveBackward':_0x55eb9d=>_0x188724(_0x55eb9d,_0x512ac4[_0x1f9119(0x125)]),'onToggleSelectable':_0x528048});}let Kn=class{constructor(_0x523568){const _0x86f128=_0x1ed313;this[_0x86f128(0x15b)]=_0x523568;}[_0x1ed313(0x19a)](_0x4151cd,_0x36bfc1){const _0x2dd117=_0x1ed313;let _0x2a9379=this[_0x2dd117(0x15b)][_0x2dd117(0x187)](_0x4151cd[_0x2dd117(0xae)]),_0x53590f=_0x2a9379==null?void 0x0:_0x2a9379[_0x2dd117(0xdb)];if(!_0x53590f)return;let _0x43e106=_0x45a0e1(_0x4151cd),_0x5a0dad=_0x53590f[_0x2dd117(0x2aa)](_0x43e106);_0x5a0dad==null||_0x5a0dad[_0x2dd117(0x1b2)](_0x36bfc1);}};Kn=Y([J(0x0,_0x134053)],Kn);function qn(){const _0x58f924=_0x1ed313;let _0x50d6fe=_0x19c54a(_0x431f44),_0x6a7531=_0x46233d(()=>_0x50d6fe['focus$'],_0x50d6fe[_0x58f924(0x149)](),!0x1,[_0x50d6fe]);return _0x6a7531[_0x58f924(0x2b4)]===0x0?null:_0x1f4f7e('div',{'children':_0x59f102(_0x58f924(0x1ff),{'className':_0x58f924(0xf2),'children':[_0x1f4f7e(_0x409263,{'drawings':_0x6a7531,'hasCropper':!0x1}),_0x1f4f7e(_0x343f35,{'drawings':_0x6a7531})]})});}function Jn(_0x1eaaa3){let {unitId:_0x52d4e8,subUnitId:_0x2b5788,shapeId:_0x5a355e}=_0x1eaaa3,_0x3e2539=_0x19c54a(_0x2eaf9c),_0x48a6be=_0x19c54a(Kn);return _0x1f4f7e(_0x4eff46,{..._0x1eaaa3,'positionEditor':_0x1f4f7e(qn,{}),'onUpdateShapeData':(_0x2eab2a,_0x210e82)=>{fn(_0x3e2539,_0x52d4e8,_0x2b5788,_0x5a355e,_0x2eab2a,_0x210e82);},'onUpdateLineShapeData':(_0xb9ba8b,_0x2ebea9)=>{pn(_0x3e2539,_0x52d4e8,_0x2b5788,_0x5a355e,_0xb9ba8b,_0x2ebea9);},'onUpdateShapeFillImage':_0x31ed6a=>{_0x48a6be['updateShapeFillImage']({'unitId':_0x52d4e8,'subUnitId':_0x2b5788,'drawingId':_0x5a355e},_0x31ed6a);}});}function Yn(_0x30c567){let _0x5d6601=_0x30c567['popup']['extraProps'];return _0x5d6601?_0x1f4f7e(Xn,{..._0x5d6601}):null;}function Xn(_0x1e9275){const _0x50135e=_0x1ed313;var _0x39f66c,_0x2d10df;let _0x3ae45b=_0x19c54a(_0x2eaf9c),_0x5977f0=_0x19c54a(_0x5486d2),{unitId:_0x211173,subUnitId:_0xc83696,drawingId:_0x4fd8d4,drawingType:_0x2c7ef7,shapeType:_0x33e0a2}=_0x1e9275,[_0x5e7863,_0x1d9c61]=_0x10a6f0(_0x1e9275[_0x50135e(0x1c9)]),_0x49802d=_0x17b529(()=>_0x1b3033(_0x5e7863),[_0x5e7863]),_0x10ebb5=_0x17b529(()=>_0x490101(_0x5e7863),[_0x5e7863]);_0x4dc124(()=>{const _0x31dd97=_0x50135e;let _0x538306=_0x3ae45b['onCommandExecuted'](_0x18051f=>{const _0x198f2f=_0x2c6b;if(_0x18051f['id']!==_0x44e25c['id'])return;let _0x44562b=_0x5977f0[_0x198f2f(0xc5)](_0x211173,_0xc83696,_0x4fd8d4);_0x44562b&&_0x1d9c61(_0x44562b);});return()=>_0x538306[_0x31dd97(0x230)]();},[_0x3ae45b,_0x4fd8d4,_0x5977f0,_0xc83696,_0x211173]);let _0x5cc0f=_0x2f8337=>{_0x1d9c61(_0x58d53b=>({..._0x58d53b,..._0x2f8337}));},_0x4c38d0=_0x407667=>{let _0x582e51=_0x5d5024(_0x5e7863,_0x407667);fn(_0x3ae45b,_0x211173,_0xc83696,_0x4fd8d4,{'oldShapeData':{'shapeText':_0x5e7863['shapeText']}},_0x582e51),_0x5cc0f(_0x582e51);};return _0x1f4f7e(_0x49830f,{'shapeData':_0x5e7863,'shapeType':_0x33e0a2,'textStyle':{'ff':_0x42c7e9[_0x50135e(0x176)][_0x50135e(0x28c)],'fs':_0x42c7e9['shapeText']['fontSize'],'cl':{'rgb':_0x42c7e9[_0x50135e(0x176)][_0x50135e(0x1ed)]},..._0x49802d},'textModel':_0x10ebb5?{'ha':(_0x39f66c=_0x10ebb5['ha'])==null?_0x228a64['LEFT']:_0x39f66c,'va':(_0x2d10df=_0x10ebb5['va'])==null?_0x1167e7['TOP']:_0x2d10df}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x42c7e9[_0x50135e(0x16a)],'defaultGradientEndColor':_0x42c7e9['gradientEndColor'],'defaultStrokeColor':_0x42c7e9[_0x50135e(0xd5)],'onUpdateShapeData':(_0x2cc252,_0x1d9afc)=>{fn(_0x3ae45b,_0x211173,_0xc83696,_0x4fd8d4,_0x2cc252,_0x1d9afc),_0x1d9afc&&_0x5cc0f(_0x1d9afc);},'onUpdateText':_0x4c38d0,'onOpenPanel':()=>{_0x3ae45b['executeCommand'](Bn['id'],{'unitId':_0x211173,'subUnitId':_0xc83696,'drawingId':_0x4fd8d4});},'onDelete':()=>{const _0x349ad3=_0x50135e;_0x3ae45b[_0x349ad3(0x12c)](_0x2f5460['id'],{'unitId':_0x211173,'drawings':[{'unitId':_0x211173,'subUnitId':_0xc83696,'drawingId':_0x4fd8d4,'drawingType':_0x2c7ef7}]});}});}var Zn=class extends _0x17a082{constructor(..._0x5d3080){const _0xe689f4=_0x1ed313;super(..._0x5d3080),q(this,_0xe689f4(0x104),new _0x4d090d(null)),q(this,_0xe689f4(0x1d6),this[_0xe689f4(0x104)][_0xe689f4(0x276)]()),q(this,_0xe689f4(0x2b3),new _0x4d090d(!0x1)),q(this,_0xe689f4(0x261),this[_0xe689f4(0x2b3)][_0xe689f4(0x276)]());}['dispose'](){const _0x3a373c=_0x1ed313;this['_editingParams$'][_0x3a373c(0x23e)](null),this[_0x3a373c(0x104)][_0x3a373c(0xee)](),this[_0x3a373c(0x2b3)]['next'](!0x1),this[_0x3a373c(0x2b3)][_0x3a373c(0xee)](),super[_0x3a373c(0x230)]();}[_0x1ed313(0x148)](_0x367cf9){const _0xcfe627=_0x1ed313;this['_editingParams$'][_0xcfe627(0x23e)](_0x367cf9),_0x367cf9==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x1ed313(0x213)](_0x24ef39){const _0x1db6da=_0x1ed313;this[_0x1db6da(0x2b3)][_0x1db6da(0x23e)](_0x24ef39);}[_0x1ed313(0x1bd)](){const _0x153590=_0x1ed313;return this[_0x153590(0x104)]['getValue']();}[_0x1ed313(0xce)](_0x313938){const _0x2b70e0=_0x1ed313;this[_0x2b70e0(0x1bd)]()&&(this[_0x2b70e0(0x213)](!0x0),requestAnimationFrame(()=>{const _0x468082=_0x2b70e0;this[_0x468082(0x148)](null);}));}['cancelEditing'](){const _0x4cbc65=_0x1ed313;this[_0x4cbc65(0x1bd)]()&&this[_0x4cbc65(0x148)](null);}};const Qn=_0x24849(()=>{const _0x378de5=_0x1ed313;let _0x512cc3=_0x19c54a(Zn),_0x235a2b=_0x19c54a(_0x5486d2),_0x5db045=_0x19c54a(_0x431f44),_0x5181af=_0x19c54a(_0x2eaf9c),_0x364934=_0x19c54a(_0x134053);return _0x1f4f7e(_0x25c457,{'adapter':_0x17b529(()=>({'getShapeModel':(_0x32044e,_0x5be0e5,_0x28b929)=>_0x235a2b[_0x378de5(0x16c)](_0x32044e,_0x5be0e5,_0x28b929),'getShapeData':(_0x227f22,_0xfab8d2,_0x4d0bff)=>_0x235a2b[_0x378de5(0xc5)](_0x227f22,_0xfab8d2,_0x4d0bff),'getDrawingTransform':(_0x1b5395,_0x420517,_0x50a204)=>{const _0x2778a5=_0x378de5;let _0x3fb175=_0x5db045['getDrawingByParam']({'unitId':_0x1b5395,'subUnitId':_0x420517,'drawingId':_0x50a204});return _0x3fb175==null?void 0x0:_0x3fb175[_0x2778a5(0x131)];},'updateShapeText':({unitId:_0x270e23,subUnitId:_0x101cb3,shapeId:_0x4b5514,shapeText:_0x509a24,oldShapeText:_0x4bc5c5})=>{const _0x14aa14=_0x378de5;_0x5181af[_0x14aa14(0x12c)](dn['id'],{'unitId':_0x270e23,'subUnitId':_0x101cb3,'shapeId':_0x4b5514,'shapeData':{'shapeText':_0x509a24},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x4bc5c5}}});},'updateHostSize':({unitId:_0x588fe5,subUnitId:_0x2dcbf8,shapeId:_0x3fcc0e,width:_0x1f1750,height:_0x275182})=>{const _0x332936=_0x378de5;var _0x33fa69,_0x164232,_0x33cc87;let _0x485cfa=_0x5db045[_0x332936(0x2fc)]({'unitId':_0x588fe5,'subUnitId':_0x2dcbf8,'drawingId':_0x3fcc0e}),_0x372b27=_0x485cfa==null?void 0x0:_0x485cfa[_0x332936(0x131)];if(!_0x485cfa||!_0x372b27)return;let _0x531487={..._0x372b27,'width':_0x1f1750,'height':_0x275182},_0x4207ec=(_0x33fa69=_0x364934[_0x332936(0x187)](_0x588fe5))==null||(_0x33fa69=_0x33fa69[_0x332936(0x1e4)](_0x48e10a)[_0x332936(0x242)](_0x2dcbf8))==null?void 0x0:_0x33fa69[_0x332936(0x184)],_0x562f62=_0x4207ec?(_0x164232=_0x2d6891(_0x531487,_0x4207ec))==null?_0x485cfa[_0x332936(0x270)]:_0x164232:_0x485cfa[_0x332936(0x270)],_0x3294d9=_0x4207ec?(_0x33cc87=_0x3bba80(_0x531487,_0x4207ec))==null?_0x485cfa[_0x332936(0x106)]:_0x33cc87:_0x485cfa[_0x332936(0x106)];_0x5181af[_0x332936(0x12c)](_0x13c603['id'],{'unitId':_0x588fe5,'drawings':[{..._0x485cfa,'transform':_0x531487,'sheetTransform':_0x562f62,'axisAlignSheetTransform':_0x3294d9}]});},'allowHostSizeShrink':({unitId:_0x3661a8,subUnitId:_0x4cafcd,shapeId:_0x146356})=>_0x51d9f6(_0x235a2b['getShapeDataById'](_0x3661a8,_0x4cafcd,_0x146356))}),[_0x5181af,_0x5db045,_0x364934,_0x235a2b]),'editingService':_0x512cc3,'editorUnitId':Tn,'positionOptions':_0x17b529(()=>({'viewportKeys':{'main':_0x105d9a[_0x378de5(0x274)],'leftTop':_0x105d9a['VIEW_MAIN_LEFT_TOP'],'top':_0x105d9a['VIEW_MAIN_TOP'],'left':_0x105d9a[_0x378de5(0x21e)]},'getSkeleton':(_0x308e97,_0x5eb02f)=>{const _0x1b7c3f=_0x378de5;var _0x25abeb,_0x1c6cfd;return(_0x25abeb=(_0x1c6cfd=_0x308e97[_0x1b7c3f(0x1e4)](_0x48e10a)[_0x1b7c3f(0x242)](_0x5eb02f['subUnitId']))==null?void 0x0:_0x1c6cfd['skeleton'])==null?null:_0x25abeb;}}),[])});});let $n=class extends _0x17a082{constructor(_0x4852f9,_0x43bd9c){const _0x509081=_0x1ed313;super(),this[_0x509081(0x2d9)]=_0x4852f9,this['_iconManager']=_0x43bd9c,this[_0x509081(0x233)](),this[_0x509081(0x2f2)]();}[_0x1ed313(0x233)](){const _0x54ab67=_0x1ed313;this['_iconManager'][_0x54ab67(0x122)](_0x54ab67(0x20a))||this[_0x54ab67(0xf6)](this[_0x54ab67(0xfb)][_0x54ab67(0x2ac)]({'CopyDoubleIcon':_0x2c6d5a}));}[_0x1ed313(0x2f2)](){const _0x22d516=_0x1ed313;this[_0x22d516(0xf6)](this[_0x22d516(0x2d9)]['register'](Sn,Jn)),this[_0x22d516(0xf6)](this['_componentManager']['register'](Cn,Gn)),this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](On,Nn)),this[_0x22d516(0xf6)](this['_componentManager'][_0x22d516(0x2ac)](kn,jn)),this['_componentManager'][_0x22d516(0xbe)](_0x7090d9)||this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](_0x7090d9,Mn)),this['disposeWithMe'](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](wn,Yn)),this[_0x22d516(0xf6)](this['_componentManager'][_0x22d516(0x2ac)](En,_0x2933dd)),this[_0x22d516(0xf6)](this[_0x22d516(0x2d9)][_0x22d516(0x2ac)](_0x22d516(0xa0),Qn));}};$n=Y([J(0x0,_0x697169(_0x4540cf)),J(0x1,_0x697169(_0x4df38c))],$n);let er=class extends _0x17a082{constructor(_0x4aeea1,_0x5b422f,_0x4ef9e4,_0x42b168,_0x278a21){const _0x360c4e=_0x1ed313;super(),this['_context']=_0x4aeea1,this[_0x360c4e(0x1b5)]=_0x5b422f,this[_0x360c4e(0x15b)]=_0x4ef9e4,this[_0x360c4e(0x2a5)]=_0x42b168,this[_0x360c4e(0x2f5)]=_0x278a21,q(this,_0x360c4e(0x195),null),q(this,_0x360c4e(0x2a6),null),q(this,_0x360c4e(0x1ce),null),q(this,_0x360c4e(0x108),void 0x0),q(this,_0x360c4e(0x121),[]),q(this,'_baseLeft',0x0),q(this,'_baseTop',0x0),q(this,_0x360c4e(0x1b4),0x0),q(this,'_baseHeight',0x0),q(this,_0x360c4e(0x1f6),!0x1),q(this,_0x360c4e(0x14e),void 0x0),q(this,_0x360c4e(0x25a),void 0x0),q(this,_0x360c4e(0x236),void 0x0),q(this,_0x360c4e(0x189),void 0x0),q(this,_0x360c4e(0x1b6),!0x1),this[_0x360c4e(0x188)](),this[_0x360c4e(0x150)]();}[_0x1ed313(0x1f0)](){const _0x3cee1a=_0x1ed313;this[_0x3cee1a(0x2bd)]();}[_0x1ed313(0x2e8)](){const _0x345568=_0x1ed313;this[_0x345568(0x2bd)](),this[_0x345568(0x1af)](!0x0);}[_0x1ed313(0x11f)](_0x931b5e,_0x490e12,_0x48cdb5,_0x23b4af){const _0xe1517b=_0x1ed313;let _0x14aa28=_0x931b5e;if(!(_0x14aa28===_0x54d8d8[_0xe1517b(0x13a)]||_0x931b5e==='custom'))try{let _0x4dc450=new _0x5ebb51(_0x14aa28,_0xe1517b(0x2a7)+_0x931b5e);return _0x23b4af&&_0x4dc450['setShapeData']({'adjustValues':_0x23b4af},!0x0),_0x4dc450[_0xe1517b(0x127)]({'width':_0x490e12,'height':_0x48cdb5}),_0x4dc450;}catch{return;}}['_getImageDrawingInfo'](_0x566ec0,_0x5a0c43,_0x1690e9){const _0x1aac5a=_0x1ed313;let _0x6c30b5={'unitId':_0x566ec0,'subUnitId':_0x5a0c43,'drawingId':_0x1690e9},_0x53f68a=this[_0x1aac5a(0x1b5)][_0x1aac5a(0x2fc)](_0x6c30b5);if(!(!_0x53f68a||_0x53f68a[_0x1aac5a(0x1b7)]!==_0x14c67a[_0x1aac5a(0xd9)]))return _0x53f68a;}[_0x1ed313(0x11e)](_0x371b9e,_0x13439b,_0x28a5e8){const _0x23773b=_0x1ed313;let _0x10b149=this[_0x23773b(0x15b)]['getRenderById'](_0x371b9e);if(!_0x10b149)return;let {scene:_0x4ce573}=_0x10b149,_0x378e03=_0x45a0e1({'unitId':_0x371b9e,'subUnitId':_0x13439b,'drawingId':_0x28a5e8}),_0x4ac1f1=_0x4ce573['getObject'](_0x378e03);if(_0x4ac1f1 instanceof _0x1e018e){let _0x22b580=_0x4ac1f1[_0x23773b(0x13f)];if(_0x22b580)return{'prstGeom':_0x22b580,'adjustValues':_0x4ac1f1[_0x23773b(0x1c3)]};}}[_0x1ed313(0x1af)](_0x13038a=!0x1){const _0x5b9a2a=_0x1ed313;if(!this[_0x5b9a2a(0x2a6)]||!this['_subUnitId']||!this[_0x5b9a2a(0x195)])return;let _0x10eec8=this[_0x5b9a2a(0x15b)][_0x5b9a2a(0x187)](this[_0x5b9a2a(0x2a6)]);if(!_0x10eec8||!_0x10eec8['with'](_0x48e10a)[_0x5b9a2a(0x13e)]())return;let {scene:_0xa731}=_0x10eec8,_0x1afa61=this['_getImageDrawingInfo'](this[_0x5b9a2a(0x2a6)],this['_subUnitId'],this['_activeImageId']);if(!_0x1afa61)return;let {transform:_0x365603}=_0x1afa61;if(!_0x365603)return;let {left:_0x2b3659,top:_0x670129,width:_0x4bc899,height:_0x27594b,flipX:_0x3ab1f7,flipY:_0x23139f,angle:_0x13ebfd=0x0}=_0x365603;if(_0x2b3659===void 0x0||_0x670129===void 0x0)return;let _0x5ddca8=this['_getImagePrstGeom'](this['_unitId'],this[_0x5b9a2a(0x1ce)],this[_0x5b9a2a(0x195)]);if(!_0x5ddca8)return;if(_0x13038a){let _0x42f953=this['_getOrCreateShapeModel'](_0x5ddca8['prstGeom'],_0x4bc899||0x0,_0x27594b||0x0,_0x5ddca8[_0x5b9a2a(0x206)]);if(!_0x42f953)return;this[_0x5b9a2a(0x108)]=_0x42f953['getDrawingPoints']();}let _0x16c850=this['_activeAdjustPointList'];if(!(!_0x16c850||_0x16c850[_0x5b9a2a(0x2b4)]===0x0))for(let _0x1b72a6=0x0;_0x1b72a6<_0x16c850[_0x5b9a2a(0x2b4)];_0x1b72a6++){let _0x18ee72=_0x16c850[_0x1b72a6],_0x49399c=_0x18ee72['x'],_0x58d15f=_0x18ee72['y'];if(_0x3ab1f7&&(_0x49399c=(_0x4bc899||0x0)-_0x49399c),_0x23139f&&(_0x58d15f=(_0x27594b||0x0)-_0x58d15f),_0x13ebfd!==0x0){let _0x451412=(_0x4bc899||0x0)/0x2,_0x223830=(_0x27594b||0x0)/0x2,_0x5d8221=_0x13ebfd*Math['PI']/0xb4,_0x229969=Math[_0x5b9a2a(0x23b)](_0x5d8221),_0x421ed3=Math[_0x5b9a2a(0x156)](_0x5d8221),_0x4ab8ee=_0x49399c-_0x451412,_0x2e66d4=_0x58d15f-_0x223830;_0x49399c=_0x451412+(_0x4ab8ee*_0x229969-_0x2e66d4*_0x421ed3),_0x58d15f=_0x223830+(_0x4ab8ee*_0x421ed3+_0x2e66d4*_0x229969);}let _0xb14329={'x':_0x49399c,'y':_0x58d15f,'adjName':_0x18ee72[_0x5b9a2a(0x253)]};this[_0x5b9a2a(0x19f)](_0xa731,_0xb14329,_0xb14329[_0x5b9a2a(0x253)],_0x2b3659,_0x670129,this[_0x5b9a2a(0x2a6)],this[_0x5b9a2a(0x1ce)]);}}[_0x1ed313(0x19f)](_0x53af57,_0x44ff84,_0x21239c,_0x443bfa,_0x550c69,_0x4ab133,_0x4831e5){const _0x4cf2f4=_0x1ed313;if(!this[_0x4cf2f4(0x195)])return;let _0x321a20='image-clip-adjust-point-'+this[_0x4cf2f4(0x195)]+'-'+_0x21239c,_0x25d0b6=_0x53af57['getObjectIncludeInGroup'](_0x321a20);if(_0x25d0b6){_0x25d0b6[_0x4cf2f4(0x10e)]({'left':_0x44ff84['x']+_0x443bfa-_0x42c7e9['adjHandleSize'],'top':_0x44ff84['y']+_0x550c69-_0x42c7e9['adjHandleSize']});return;}let _0x400e81=new yn(_0x321a20,{'left':_0x44ff84['x']+_0x443bfa-_0x42c7e9['adjHandleSize'],'top':_0x44ff84['y']+_0x550c69-_0x42c7e9[_0x4cf2f4(0x204)],'adjName':_0x21239c,'shapeId':this['_activeImageId'],'unitId':_0x4ab133,'subUnitId':_0x4831e5,'width':_0x42c7e9[_0x4cf2f4(0x204)]+0x8,'height':_0x42c7e9[_0x4cf2f4(0x204)]+0x8,'zIndex':_0x72823c+0x1,'evented':!0x0});this[_0x4cf2f4(0x121)]['push'](_0x400e81),this[_0x4cf2f4(0x217)](_0x400e81,_0x53af57,_0x21239c),_0x53af57[_0x4cf2f4(0x14d)](_0x400e81,_0x72823c+0x1);}[_0x1ed313(0x2bd)](){const _0x310b13=_0x1ed313;this[_0x310b13(0x121)]['length']!==0x0&&(this[_0x310b13(0x121)][_0x310b13(0x190)](_0x417ed8=>_0x417ed8[_0x310b13(0x230)]()),this['_shapes']=[]);}[_0x1ed313(0x2d2)](_0x414fdb,_0x3f2083){const _0x55f15a=_0x1ed313;var _0x196ce1;let _0x4db9ab={'x':0x0,'y':0x0},_0x292ad5=this['_renderManagerService'][_0x55f15a(0x187)](_0x414fdb);if(!_0x292ad5||!_0x292ad5[_0x55f15a(0x1e4)](_0x48e10a)[_0x55f15a(0xa9)](_0x3f2083))return _0x4db9ab;let _0x52f3ef=_0x292ad5[_0x55f15a(0x1e4)](_0x55a101),_0x10ad92=_0x52f3ef==null?void 0x0:_0x52f3ef[_0x55f15a(0x21a)]();if(!_0x10ad92)return _0x4db9ab;let _0x5c8a6a=(_0x196ce1=this[_0x55f15a(0x2a5)][_0x55f15a(0x25f)](_0x414fdb))==null?void 0x0:_0x196ce1[_0x55f15a(0x129)](_0x3f2083);if(!_0x5c8a6a)return _0x4db9ab;let _0x51a982=_0x4b381d(_0x10ad92[_0x55f15a(0xf0)],_0x10ad92[_0x55f15a(0x103)],_0x292ad5['scene'],_0x5c8a6a);return _0x51a982?{'x':_0x51a982['viewportScrollX'],'y':_0x51a982[_0x55f15a(0x1f2)]}:_0x4db9ab;}[_0x1ed313(0x2e5)](_0x6a39cd,_0x212d8a){const _0x1f5238=_0x1ed313;var _0x175bad,_0xbc33ee;let _0x883984=(_0x175bad=this['_univerInstanceService'][_0x1f5238(0x25f)](_0x6a39cd))==null?void 0x0:_0x175bad[_0x1f5238(0x129)](_0x212d8a);return(_0xbc33ee=_0x883984==null?void 0x0:_0x883984[_0x1f5238(0x138)]())==null?0x1:_0xbc33ee;}[_0x1ed313(0x217)](_0x2fc0e9,_0x16cf72,_0x2e47de){const _0x1769ab=_0x1ed313;this[_0x1769ab(0xf6)](_0x11cfa6(_0x2fc0e9[_0x1769ab(0x1bb)][_0x1769ab(0x226)]((_0x5f5c13,_0x51b258)=>{const _0x6407ef=_0x1769ab;var _0x310d69,_0x45ac3a,_0x2226d7;let {unitId:_0x5f5278,subUnitId:_0x172608,drawingId:_0x299c59}=_0x2fc0e9[_0x6407ef(0x249)](),_0x10d45f=this[_0x6407ef(0x29d)](_0x5f5278,_0x172608,_0x299c59);if(!(_0x10d45f!=null&&_0x10d45f['transform']))return;let {left:_0x1b10bd,top:_0x21fe6f,width:_0x36893f,height:_0x14ce63}=_0x10d45f['transform'];this[_0x6407ef(0x295)]=_0x1b10bd||0x0,this[_0x6407ef(0xc3)]=_0x21fe6f||0x0,this[_0x6407ef(0x1b4)]=_0x36893f||0x0,this[_0x6407ef(0x1b0)]=_0x14ce63||0x0;let _0x4b2f89=!!((_0x310d69=_0x10d45f[_0x6407ef(0x131)])!=null&&_0x310d69['flipX']),_0x1aa668=!!((_0x45ac3a=_0x10d45f[_0x6407ef(0x131)])!=null&&_0x45ac3a[_0x6407ef(0x209)]),_0x18e157=((_0x2226d7=_0x10d45f[_0x6407ef(0x131)])==null?void 0x0:_0x2226d7[_0x6407ef(0x2f1)])||0x0,_0x41e7bf=this['_getImagePrstGeom'](_0x5f5278,_0x172608,_0x299c59);if(!_0x41e7bf)return;let _0x2ce600=this[_0x6407ef(0x11f)](_0x41e7bf['prstGeom'],this[_0x6407ef(0x1b4)],this[_0x6407ef(0x1b0)],_0x41e7bf[_0x6407ef(0x206)]);if(!_0x2ce600||(this[_0x6407ef(0x25a)]=_0x2ce600,this['_activeAdjustInfo']=_0x2ce600[_0x6407ef(0x285)](_0x2e47de),!this[_0x6407ef(0x14e)]))return;this[_0x6407ef(0x1f6)]=!0x0,_0x16cf72[_0x6407ef(0x255)]();let _0x1696f3=_0x41e7bf['prstGeom'];this[_0x6407ef(0x236)]=_0x16cf72[_0x6407ef(0xc6)][_0x6407ef(0x226)]((_0x34041a,_0x5cf29c)=>{const _0x3b03cb=_0x6407ef;if(!this[_0x3b03cb(0x1f6)])return;let {offsetX:_0x5358af,offsetY:_0x394e03}=_0x34041a,_0x5ea536=this[_0x3b03cb(0x14e)];if(!this['_activeShapeModel']||!_0x5ea536)return;_0x16cf72[_0x3b03cb(0x255)](),_0x16cf72[_0x3b03cb(0xf7)](_0x13f6e1[_0x3b03cb(0x163)]);let _0x1dcf4b={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x3ded43=this[_0x3b03cb(0x2d2)](_0x5f5278,_0x172608),_0x38c70f=this[_0x3b03cb(0x2e5)](_0x5f5278,_0x172608),_0x30537f=_0x5358af/_0x38c70f+_0x3ded43['x']-this['_baseLeft'],_0x93c04a=_0x394e03/_0x38c70f+_0x3ded43['y']-this[_0x3b03cb(0xc3)];if(_0x18e157!==0x0){let _0x1b12ec=this['_baseWidth']/0x2,_0x57f192=this[_0x3b03cb(0x1b0)]/0x2,_0x1f9a62=_0x18e157*Math['PI']/0xb4,_0x56a661=Math['cos'](_0x1f9a62),_0x4c778f=Math['sin'](_0x1f9a62),_0x4257b6=_0x30537f-_0x1b12ec,_0x58d0b0=_0x93c04a-_0x57f192;_0x30537f=_0x1b12ec+(_0x4257b6*_0x56a661+_0x58d0b0*_0x4c778f),_0x93c04a=_0x57f192+(-_0x4257b6*_0x4c778f+_0x58d0b0*_0x56a661);}_0x4b2f89&&(_0x30537f=this[_0x3b03cb(0x1b4)]-_0x30537f),_0x1aa668&&(_0x93c04a=this[_0x3b03cb(0x1b0)]-_0x93c04a);let _0x2e6454=this[_0x3b03cb(0x25a)][_0x3b03cb(0x1ef)](_0x1dcf4b,{'x':_0x30537f,'y':_0x93c04a},_0x5ea536,_0x4b2f89,_0x1aa668),_0x2f2fe3=_0x5ea536[_0x3b03cb(0xb4)]||_0x5ea536[_0x3b03cb(0x293)]||_0x5ea536[_0x3b03cb(0x2a1)]||_0x5ea536[_0x3b03cb(0x20f)];_0x2f2fe3!==void 0x0&&(this[_0x3b03cb(0x25a)]['setAdjustValueByName'](_0x2f2fe3,_0x2e6454),this[_0x3b03cb(0x25a)]['updateContext']({'width':this['_baseWidth'],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x5f5278,_0x172608,_0x299c59,_0x2f2fe3,_0x2e6454),this[_0x3b03cb(0x108)]=this[_0x3b03cb(0x25a)][_0x3b03cb(0x16e)](),this[_0x3b03cb(0x14e)]=this[_0x3b03cb(0x25a)]['getAdjustInfoByName'](_0x2e47de),this[_0x3b03cb(0x1af)](),_0x5cf29c[_0x3b03cb(0x1f3)]());}),this[_0x6407ef(0x189)]=_0x16cf72[_0x6407ef(0x151)][_0x6407ef(0x226)]((_0x43b4c7,_0x297a81)=>{const _0x398887=_0x6407ef;if(this[_0x398887(0x236)][_0x398887(0xcf)](),this['_adjHandlerPointerUp'][_0x398887(0xcf)](),_0x16cf72[_0x398887(0x17d)](),this[_0x398887(0x25a)]){let _0x342040=this[_0x398887(0x25a)][_0x398887(0x29e)](),_0x12e1d4={};for(let _0x303ae4 of _0x342040){let _0x4d4731=this['_activeShapeModel'][_0x398887(0x202)](_0x303ae4);_0x4d4731!==void 0x0&&(_0x12e1d4[_0x303ae4]=_0x4d4731);}this[_0x398887(0x2f5)]['clipByShape'](_0x5f5278,_0x172608,_0x299c59,_0x1696f3,_0x12e1d4);}this['_activeAdjustInfo']=void 0x0,this[_0x398887(0x25a)]=void 0x0,this[_0x398887(0x1f6)]=!0x1,_0x297a81[_0x398887(0x1f3)](),_0x16cf72[_0x398887(0x17c)]();}),_0x51b258[_0x6407ef(0x1f3)]();})));}[_0x1ed313(0x191)](_0x45288b,_0x18b1f8,_0x1f3803,_0xfbb3f7,_0x2faa2d){const _0x18c317=_0x1ed313;let _0x25cac1=this[_0x18c317(0x15b)][_0x18c317(0x187)](_0x45288b);if(!_0x25cac1)return;let {scene:_0x32e8cd}=_0x25cac1,_0x205925=_0x45a0e1({'unitId':_0x45288b,'subUnitId':_0x18b1f8,'drawingId':_0x1f3803}),_0xfaea16=_0x32e8cd[_0x18c317(0xb3)](_0x205925);if(_0xfaea16 instanceof _0x1e018e){var _0x5ec9c0;let _0x5be5ed=(_0x5ec9c0=_0xfaea16[_0x18c317(0x1c3)])==null?{}:_0x5ec9c0;_0xfaea16[_0x18c317(0x2e6)]({..._0x5be5ed,[_0xfbb3f7]:_0x2faa2d}),_0xfaea16[_0x18c317(0x1b9)](!0x0);}}['_registerMoveHandler'](){const _0x3fd9be=_0x1ed313;let _0x3efcc4=this[_0x3fd9be(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x3fd9be(0x26b)]);this['disposeWithMe'](_0x3efcc4['pipe'](_0x324807(_0x4ddd50=>_0x4ddd50?_0x4ddd50[_0x3fd9be(0xbb)][_0x3fd9be(0x235)](_0x324807(_0xa871a6=>{const _0x4e625d=_0x3fd9be;if(!_0xa871a6)return _0x269514;let _0x2a79e8=_0x4ddd50['getUnitId'](),_0xf47b10=this[_0x4e625d(0x15b)]['getRenderById'](_0x2a79e8),_0x187942=_0xf47b10==null?void 0x0:_0xf47b10[_0x4e625d(0xdb)];return _0x187942?_0x3e45e3(_0x187942):_0x269514;})):_0x269514))[_0x3fd9be(0x1f9)](_0xaaac8f=>{const _0x58162b=_0x3fd9be;let _0x5a87cd=_0xaaac8f[_0x58162b(0xdf)]();this[_0x58162b(0xf6)](_0xaaac8f[_0x58162b(0xc6)][_0x58162b(0x226)](()=>{const _0x3ac68c=_0x58162b;this['_isImagePointerDown']&&this[_0x3ac68c(0x2bd)]();})),this[_0x58162b(0xf6)](_0x5a87cd[_0x58162b(0x286)]['subscribe'](_0x85e2d5=>{const _0xacd75c=_0x58162b;let {objects:_0x5c8762}=_0x85e2d5;if(this['_createControls'](),_0x5c8762!==null&&_0x5c8762[_0xacd75c(0x134)]===0x1){let _0x343a81=_0x5c8762[_0xacd75c(0x1ad)]()[_0xacd75c(0x23e)]()['value'];_0x343a81 instanceof _0x1e018e&&_0x343a81['prstGeom']&&(this[_0xacd75c(0x1b6)]=!0x0);}})),this['disposeWithMe'](_0x5a87cd[_0x58162b(0x194)][_0x58162b(0x1f9)](()=>{const _0x4f8e9d=_0x58162b;this[_0x4f8e9d(0x1b6)]&&this[_0x4f8e9d(0x2bd)]();})),this[_0x58162b(0xf6)](_0xaaac8f[_0x58162b(0x151)]['subscribeEvent'](()=>{const _0xe2b27=_0x58162b;this[_0xe2b27(0x1b6)]&&(this[_0xe2b27(0x1b6)]=!0x1,this[_0xe2b27(0x1af)]());})),this[_0x58162b(0xf6)](_0x5a87cd[_0x58162b(0x1d4)][_0x58162b(0x1f9)](()=>{const _0x55044b=_0x58162b;if(this[_0x55044b(0x2a6)]&&this[_0x55044b(0x1ce)]&&this[_0x55044b(0x195)]){let _0x558263=this[_0x55044b(0x11e)](this[_0x55044b(0x2a6)],this[_0x55044b(0x1ce)],this[_0x55044b(0x195)]);if(_0x558263){var _0x2ee453,_0x30f603;let _0x17fc53=this[_0x55044b(0x29d)](this[_0x55044b(0x2a6)],this[_0x55044b(0x1ce)],this['_activeImageId']),_0x4ac912=(_0x17fc53==null||(_0x2ee453=_0x17fc53['transform'])==null?void 0x0:_0x2ee453[_0x55044b(0x2ed)])||0x0,_0x5e06ca=(_0x17fc53==null||(_0x30f603=_0x17fc53[_0x55044b(0x131)])==null?void 0x0:_0x30f603[_0x55044b(0x24e)])||0x0,_0x29fbb5=this['_getOrCreateShapeModel'](_0x558263['prstGeom'],_0x4ac912,_0x5e06ca,_0x558263['adjustValues']);_0x29fbb5&&(this[_0x55044b(0x108)]=_0x29fbb5[_0x55044b(0x16e)](),this[_0x55044b(0x2bd)](),this[_0x55044b(0x1af)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x39731c=_0x1ed313;this[_0x39731c(0xf6)](this['_drawingManagerService']['focus$'][_0x39731c(0x1f9)](_0x294697=>{const _0x530b73=_0x39731c;if(_0x294697[_0x530b73(0x2b4)]===0x1){let _0x4fbb7d=_0x294697[0x0];if(_0x4fbb7d[_0x530b73(0x1b7)]===_0x14c67a['DRAWING_IMAGE']){let {unitId:_0x14cc54,subUnitId:_0x96cb2e,drawingId:_0x57d89e}=_0x4fbb7d,_0x378a6=this['_getImagePrstGeom'](_0x14cc54,_0x96cb2e,_0x57d89e);if(_0x378a6){var _0x25f13d,_0xc6bde8;this[_0x530b73(0x195)]=_0x57d89e,this[_0x530b73(0x2a6)]=_0x14cc54,this[_0x530b73(0x1ce)]=_0x96cb2e;let _0x322463=this['_getImageDrawingInfo'](_0x14cc54,_0x96cb2e,_0x57d89e),_0x512104=(_0x322463==null||(_0x25f13d=_0x322463[_0x530b73(0x131)])==null?void 0x0:_0x25f13d[_0x530b73(0x2ed)])||0x0,_0x249d4b=(_0x322463==null||(_0xc6bde8=_0x322463['transform'])==null?void 0x0:_0xc6bde8[_0x530b73(0x24e)])||0x0,_0x1ac719=this[_0x530b73(0x11f)](_0x378a6[_0x530b73(0x13f)],_0x512104,_0x249d4b,_0x378a6[_0x530b73(0x206)]);_0x1ac719&&(this[_0x530b73(0x108)]=_0x1ac719[_0x530b73(0x16e)]()),this['_clearControls'](),this[_0x530b73(0x1af)](!0x0);}else this[_0x530b73(0x1e1)]();}else this[_0x530b73(0x1e1)]();}else this['_resetState']();})),this[_0x39731c(0xf6)](this[_0x39731c(0x1b5)][_0x39731c(0x164)]['subscribe'](_0x24cc19=>{const _0x2404b1=_0x39731c;if(_0x24cc19['length']===0x1){let _0xbb4385=_0x24cc19[0x0],_0x28cb7c=this[_0x2404b1(0x1b5)][_0x2404b1(0x2fc)](_0xbb4385);(_0x28cb7c==null?void 0x0:_0x28cb7c[_0x2404b1(0x1b7)])===_0x14c67a['DRAWING_IMAGE']&&this['_activeImageId']===_0xbb4385[_0x2404b1(0xb2)]&&(this[_0x2404b1(0x2bd)](),this['_createControls'](!0x0));}})),this[_0x39731c(0xf6)](this['_drawingManagerService'][_0x39731c(0xd4)][_0x39731c(0x1f9)](_0x43c16b=>{const _0xc27d76=_0x39731c;for(let _0x15ed99 of _0x43c16b)this[_0xc27d76(0x195)]===_0x15ed99[_0xc27d76(0xb2)]&&this[_0xc27d76(0x1e1)]();}));}[_0x1ed313(0x1e1)](){const _0xa2b7e7=_0x1ed313;this[_0xa2b7e7(0x195)]=null,this[_0xa2b7e7(0x2a6)]=null,this[_0xa2b7e7(0x1ce)]=null,this[_0xa2b7e7(0x108)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x431f44),J(0x2,_0x697169(_0x134053)),J(0x3,_0x57a3de),J(0x4,_0x697169(Q))],er);function _0x3808(){const _0x4b30bc=['_isDrawingShapePointDown','start','composeMatrix','_getConnectPointInfo','shapeKey','_loadShapePictureFill','registerRenderModule','color','getDrawingOrder','calcAdjValue','clearAdjustControls','getShapeType','viewportScrollY','stopPropagation','#1a73e8','_reset','_isStartAdjusting','getEndConnectInfo','_initPermission','subscribe','_commandExecutedListener','contentHeight','refreshShapeFillImage','src','StraightConnector1','div','getImageSourceCache','DRAWING_GROUP','getAdjustValueByName','toPrimitive','adjHandleSize','filter','adjustValues','onerror','disableShapeOption','flipY','CopyDoubleIcon','featurePluginUpdateNotification','startY','_sidebarDisposable','isArray','gdRefR','subUnitId','delete','5525888pyXBSv','setOnSavingEditorData','_executeConnectedRouteConnectionCommand','_init','translateWithPrecision','_attachAdjustEvent','syncExecuteCommand','_sheetsShapeService','getCurrentScrollState','connection-site-','getMatrix','interceptor','VIEW_MAIN_LEFT','startArrow','hidden','marginTop','_contextService','_draw','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cxnPointStrokeWidth','subscribeEvent','doc.image-clip.shape-picker.component','fillType','getSelectedObjectMap','from','offsetX','_initEditingParams','srcRect','pluginName','setContextValue','dispose','ShapeIcon','_initializedShapePopupMenu','_registerIcons','close','pipe','_adjHandlerPointerMove','sheets-shape-ui.hidePanel','onTransformChange$','horizontal','_drawingRenderService','cos','buildClipPath','Rect','next','wrapStrategy','indexOf','BUTTON','getSkeletonParam','focus$','_generatePasteMutations','SolidLine','canvas','_draggingConnectorId','Line','getDrawingSearch','some','intercept','onCommandExecuted','dataModel','height','getConnectionInfo','_baseShapeLeft','open','_localeService','adjName','_hasReset','disableObjectsEvent','_insertShapes','_injector','_index','_clearConnectionSites','_activeShapeModel','780wnUwri','_activeShapeInfo','getOwnPropertyDescriptor','_generateCutPasteMutations','getUnit','INSERT','onSavingEditorData$','rotation','updateLinePoints','_initEvents','_copyInfo','symbol','_findShapeAtPoint','_groupCopyPasteController','decorate','call','UNIVER_SHEET','28284hzriNg','smartArt','getStartConnectInfo','createControl$','sheetTransform','_lastEditingShapeKey','1.0.0-alpha.5','string','VIEW_MAIN','sheets-shape-ui.objectListPanel.open','asObservable','restore','sheets-shape-ui.insertShape','worldPoints','constructor','setShapeProps','PictureFill','sheets-shape-ui.imagePanel.crop.shape','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','setPrstGeom','setShouldShowAdjust','drawing.operation.set-drawing-active','_isConnecting','_addShapeConnectorHandlerObject','bind','getAdjustInfoByName','changeStart$','isHorizontal','_executeResizeCommand','addImageSourceCache','_clearShapeAdjustControls','_connectorObjects','fontFamily','Arrow','onDblclick$','version','video','_clearShapeConnectorHandlerObjects','_initialize','gdRefY','_disposePopups','_baseLeft','Image','sheet.command.menu-insert-shape','DRAWING_DOM','_sheetShapeAdjustController','getBatchAddOp','index','ang','_getImageDrawingInfo','getAdjustNames','add$','worldRect','gdRefAng','_context','_initSelection','CUT','_univerInstanceService','_unitId','clip-adj-','left','getBentTypeFromPoints','getObjectIncludeInGroup','Path','register','_initSheetChange','_showConnectionSites','_imageIoService','getCurrentUnitOfType','sheets-shape-ui','_handleConnectedEndpointPointerUp','_onSavingEditorData$','length','_drawShapeText','_drawRichText','onStarting','_addShapeConnectorHandlerObjects','push','_highlightedSiteIndex','GROUP','vertical','_clearControls','mergeMenu','cxnIndex','_getShapeInfo','_registerDrawingMoveHandler','sheet.operation.close-sheet-shape-format-panel','getInverseCoord','getState','getAllUnitsForType','_openShapeEditPanel','copyType','setShapeData','strokeWidth','highlighted','COMMAND','initShapePopupMenu','addClipboardHook','shapeId','clipHeight','isHighlighted','UUID','_getScrollInfo','SHAPE','shape-text-','sheets-shape-ui.formatShape','onSteady','_transformCalculateSrcRect','getBatchRemoveOp','_componentManager','fillImageSource','end','onload','_rerouteConnectorLine','2038270eQLUGP','getImage','_cxnIndex','_addShapeAdjustControl','_cxtHandlerPointerUp','isRichText','_popupMenuListener','_getZoomRatio','setPrstGeomAdjValues','getUnitId','refreshAdjustControls','_baseShapeHeight','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shape-adjust-point-','renderDrawingShape','width','pushUndoRedo','type','parse','angle','_registerComponents','iterator','params','_imageShapeClipController','DRAWING_CHART','_config','_registerGroupFeaturePasteHook','selectable','6120989LjOwoK','drawWith','getDrawingByParam','10NxMjrs','_drawSimpleText','FromArray','permissionCheckWithoutRange','doc','SheetShapeTextEditorContainer','registerFeatureMenuOffset','setHighlighted','targetShapeId','getRealBound','sheet.shape.picker.component','getBasicShapeRelation','sheets-shape-ui.toggleFlipH','render','getSkeleton','sectionCanvas','DEFAULT_PASTE','getConnectorLinePoints','_configService','unitId','translate','_activeTargetShapeId','description','drawingId','getObject','gdRefX','REMOVE','sheets-shape-ui.objectListPanel.title','sheets-shape-ui.permission.editErr','_drawingAddListener','8errrqD','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','activeSheet$','@univerjs-pro/sheets-shape-ui','getCurrentTypeOfUnit$','get','_disposed','_getConnectionSiteAngle','applyPoint','resize','_baseTop','sheets-shape-ui.toggleTextVertical','getShapeDataById','onPointerMove$','updateDocumentStyle','_currentConnectionTarget','_sheetClipboardService','getConnectionSiteList','isHit','value','getActualSize','completeEditing','unsubscribe','_isOpenedShapeEditPanel','_getSceneAndTransformerByDrawingSearch','_executeConnectionCommand','_sheetDrawingService','remove$','stroke','_isShouldShowDrawingShapeAdjust','defineProperty','find','DRAWING_IMAGE','name','scene','SELECTOR','clipTop','sheet.shape.edit.panel','getTransformerByCreate','getDrawingOKey','calculate','chart','_registerOperations','_loadAndSetImage','text','activeAnObject','normal','_currentUniverService','_shapeRenderController','classType','parent','_handleConnectorPointerUp','getDrawingData','complete','isHitLine','sheetViewStartRow','_sheetInterceptorService','univer-box-border\x20univer-px-4\x20univer-text-sm','sheet.command.update-shape-data','keys','removeLinePoints','disposeWithMe','setCursor','_adjName','point','_cxtHandlerPointerMove','_iconManager','getTransformer','_sheetBasicShapeConnectionPointController','draw','_isHighlighted','function','_shapeService','_registerShapeMenu','sheetViewStartColumn','_editingParams$','preValue','axisAlignSheetTransform','objects','_activeAdjustPointList','_executeConnectedRouteResizeCommand','sheets-shape-ui.rotateRight90','visible','_updateAdjustControlPositions','_sheetSkeletonService','transformByState','save','resourceCollector','_baseDrawingRect','_findNearestConnectionSite','cxnPointFill','_handleFreeEndpointMove','sheets-shape-text-','_transform','_closeShapeEditPanel','registerClipDelegate','clipByShape','localeService','data','getShapeData','trim','_getImagePrstGeom','_getOrCreateShapeModel','_baseShapeTop','_shapes','has','endArrow','DRAWING_UNIT','backward','sheet.image-clip.shape-picker.component','updateContext','_handleFreeEndpointPointerUp','getSheetBySheetId','sheet.shape.text.float-menu','sectionFloating','executeCommand','add','connector-handler-','_registerImageShapeClipDelegate','setAdjustValueByName','transform','lineType','offsetY','size','rect','_activeShapeId','interceptCommand','getZoomRatio','isEditing','None','_handleConnectedEndpointMove','_shapeId','_attachConnectorObjectEvent','getCurrentSkeleton','prstGeom','error','DRAWING_SHAPE','_clearPopups','sheets-shape-ui.toggleFlipV','15499xxULsV','_sheetPrintInterceptorService','_createCopyInfoByRange','table','setEditing','getFocusDrawings','UPDATE','_createShapeAdjustControls','flipX','addObject','_activeAdjustInfo','group','_registerMoveHandler','onPointerUp$','includes','viewportScrollX','_focusedDrawings','MEDIA','sin','_initPrinting','relation','_moveConnectorWithShape','object','_renderManagerService','_props','_urlImageService','_connectionSiteObjects','initTransformer','computeConnectorResizeLayout','worldPoint','_getShapeAdjustPointListById','CROSSHAIR','update$','localToWorld','getParent','invert','SHAPE_TEXT','LEFT','fill','getUnitType','getShapeModel','clip-','getDrawingPoints','registerFeaturePasteHook','_updateTransform','_isStartConnectorPoint','_sheetCanvasPopManagerService','_currentScene','sheets-shape-ui.openPanel','_createShapePopupMenu','shapeText','stringify','shape','_baseShapeWidth','isInGroup','_shapeEditPanelVersion','enableObjectsEvent','resetCursor','_registerDrawingFocusChangeHandler','6307281FwIYHW','top','abs','set','oKey','skeleton','order','TOP','getRenderById','_registerFocusChangeHandler','_adjHandlerPointerUp','34920ajyqUu','multiply','_shapeUpdateListener','_shapeTextEditingService','_getDrawingRect','_drawingType','forEach','_updateImageAdjValues','onReady','Large','changing$','_activeImageId','actualHeight','sheet.operation.open-sheet-shape-format-panel','packageName','updateConnectionDetection','updateShapeFillImage','reverse','registerFeatureMenu','getDrawingVisible','isStartConnectorPoint','_addControl','blockExecuteWithoutPermission','_calculateFreeEndpointAngle','map','lineShapeId','ancestorTransform','setCanUseShapeClip','_getShapeAdjustInfosById','clip','_targetShapeId','227442rnuPYl','startX','clearControl$','_initMenu','values','UNIVER_DOC','_createControls','_baseHeight','getShapePopupMenus','setFillImage','_sheetPermissionCheckController','_baseWidth','_drawingManagerService','_isImagePointerDown','drawingType','_activeShapeAdjustPointList','makeDirty','sheets-shape-ui.rotateLeft90','onPointerDown$','isLineShape','getEditing','changeShapeType','shapeModel','registerCommand','prototype','_initCommands','prstGeomAdjValues','_sheetDrawingShapeRenderController','SHEET_SHAPE_UI_PLUGIN','focusDrawing','cxnPointRadius','setSrcRect','shapeData','_clipService','_initCopyPaste','entries','fillImageSourceType','_subUnitId','cxnPointStroke','getSheetId','URL','setConfig','clearAdjustValue','changeEnd$','sqrt','editingParams$','_updateSrcRectByTransform','attachPopupToObject','undo','_generateCopyPasteMutations','refreshTransform','_sidebarService','getCurrentLastSelection','adjHandleStroke','_commandService','startConnectionDetection','_resetState','_updateShapeAdjustControls','3eDwaYk','with','_insertingShapeKeys'];_0x3808=function(){return _0x4b30bc;};return _0x3808();}let tr=class extends _0x17a082{constructor(_0x570d93,_0x3e86c2,_0x15d3e4,_0x5be2bc){const _0x50486c=_0x1ed313;super(),this[_0x50486c(0x2a5)]=_0x570d93,this[_0x50486c(0xf1)]=_0x3e86c2,this[_0x50486c(0xd3)]=_0x15d3e4,this[_0x50486c(0x219)]=_0x5be2bc,this[_0x50486c(0x2ad)]();}[_0x1ed313(0x2ad)](){const _0x5c1e45=_0x1ed313;this[_0x5c1e45(0xf6)](this[_0x5c1e45(0xf1)][_0x5c1e45(0x137)]({'getMutations':_0x370576=>{const _0x555ff2=_0x5c1e45;if(_0x370576['id']===_0x3a7e8b['id']){let _0x205eb6=_0x50e622(this[_0x555ff2(0x2a5)],_0x370576[_0x555ff2(0x2f4)]);if(!_0x205eb6)return{'redos':[],'undos':[]};let {unitId:_0x38758f,subUnitId:_0x409876}=_0x205eb6,_0x2b3f13=this[_0x555ff2(0xd3)][_0x555ff2(0xed)](_0x38758f,_0x409876),_0x50cd8b=Object[_0x555ff2(0x1ad)](_0x2b3f13)['filter'](_0x168346=>_0x168346[_0x555ff2(0x1b7)]===_0x14c67a[_0x555ff2(0x141)]);if(_0x50cd8b[_0x555ff2(0x2b4)]===0x0)return{'redos':[],'undos':[]};let _0x3d8d19=[],_0x5b084d=[];for(let _0x5a4274=0x0;_0x5a4274<_0x50cd8b['length'];_0x5a4274++){let _0x91f5a2=_0x50cd8b[_0x5a4274],_0x1de9ff=this[_0x555ff2(0x219)][_0x555ff2(0x16c)](_0x91f5a2[_0x555ff2(0xae)],_0x91f5a2[_0x555ff2(0x210)],_0x91f5a2['drawingId']);if(!_0x1de9ff)continue;let {redo:_0x52897e,undo:_0xdbe690,objects:_0xb75a68}=this['_sheetDrawingService'][_0x555ff2(0x2d8)]([_0x91f5a2]);_0x3d8d19['push']({'id':_0x1e03c8['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'shapeId':_0x91f5a2['drawingId']}}),_0x3d8d19[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'type':_0x12be8f[_0x555ff2(0xb5)],'op':_0x52897e,'objects':_0xb75a68}}),_0x5b084d[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'type':_0x12be8f[_0x555ff2(0x260)],'op':_0xdbe690,'objects':_0xb75a68}}),_0x5b084d[_0x555ff2(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0x38758f,'subUnitId':_0x409876,'shapeId':_0x91f5a2[_0x555ff2(0xb2)],'shapeType':_0x1de9ff[_0x555ff2(0x1f1)](),'shapeData':JSON[_0x555ff2(0x2f0)](JSON[_0x555ff2(0x177)](_0x1de9ff[_0x555ff2(0x11c)]()))}});}return{'redos':_0x3d8d19,'undos':_0x5b084d};}else{if(_0x370576['id']===_0x4f0029['id']){let {unitId:_0x13462e,subUnitId:_0x1d2ccc,targetSubUnitId:_0x1360dd}=_0x370576[_0x555ff2(0x2f4)];if(!_0x13462e||!_0x1d2ccc||!_0x1360dd)return{'redos':[],'undos':[]};let _0x59ac40=this[_0x555ff2(0xd3)]['getDrawingData'](_0x13462e,_0x1d2ccc),_0x8c00aa=Object[_0x555ff2(0x1ad)](_0x59ac40)['filter'](_0x13de41=>_0x13de41[_0x555ff2(0x1b7)]===_0x14c67a[_0x555ff2(0x141)]);if(_0x8c00aa[_0x555ff2(0x2b4)]===0x0)return{'redos':[],'undos':[]};let _0x1d04d0=[],_0x805d5e=[];for(let _0x2d9044=0x0;_0x2d9044<_0x8c00aa[_0x555ff2(0x2b4)];_0x2d9044++){let _0x3f7f40=_0x8c00aa[_0x2d9044],_0x5c207f=this[_0x555ff2(0x219)][_0x555ff2(0x16c)](_0x3f7f40[_0x555ff2(0xae)],_0x3f7f40[_0x555ff2(0x210)],_0x3f7f40[_0x555ff2(0xb2)]);if(!_0x5c207f)continue;let _0xcd82b4=_0x436dba(),_0x40a4ba={..._0x3f7f40,'unitId':_0x13462e,'subUnitId':_0x1360dd,'drawingId':_0xcd82b4},{redo:_0x279387,undo:_0x8ddbb3,objects:_0xc0a5fa}=this[_0x555ff2(0xd3)][_0x555ff2(0x29a)]([_0x40a4ba]);_0x1d04d0['push']({'id':_0x39b433['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'type':_0x12be8f[_0x555ff2(0x260)],'op':_0x279387,'objects':_0xc0a5fa}}),_0x1d04d0[_0x555ff2(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'shapeId':_0xcd82b4,'shapeType':_0x5c207f['getShapeType'](),'shapeData':JSON[_0x555ff2(0x2f0)](JSON['stringify'](_0x5c207f[_0x555ff2(0x11c)]()))}}),_0x805d5e[_0x555ff2(0x2b9)]({'id':_0x1e03c8['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'shapeId':_0xcd82b4}}),_0x805d5e[_0x555ff2(0x2b9)]({'id':_0x39b433['id'],'params':{'unitId':_0x13462e,'subUnitId':_0x1360dd,'type':_0x12be8f[_0x555ff2(0xb5)],'op':_0x8ddbb3,'objects':_0xc0a5fa}});}return{'redos':_0x1d04d0,'undos':_0x805d5e};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x697169(_0x57a3de)),J(0x1,_0x697169(_0x25edee)),J(0x2,_0x697169(_0x513fd6)),J(0x3,_0x697169(_0x5486d2))],tr);let nr=class extends _0x17a082{constructor(_0x1dafac,_0x9d5a2b,_0x2318f4,_0x1d9671,_0x538203){const _0x32be5a=_0x1ed313;super(),this['_context']=_0x1dafac,this[_0x32be5a(0x18d)]=_0x9d5a2b,this[_0x32be5a(0x1b5)]=_0x2318f4,this['_contextService']=_0x1d9671,this['_sheetsShapeService']=_0x538203,q(this,_0x32be5a(0x271),null),this[_0x32be5a(0x264)](),this[_0x32be5a(0x2a3)](),this[_0x32be5a(0x22c)]();}[_0x1ed313(0x264)](){const _0x5896ad=_0x1ed313;let {scene:_0x9dc1fc}=this[_0x5896ad(0x2a2)];this[_0x5896ad(0xf6)](_0x9dc1fc[_0x5896ad(0x28e)][_0x5896ad(0x226)](_0x1ffe8d=>{const _0x222cdc=_0x5896ad;let {offsetX:_0x31f38d,offsetY:_0x47af85}=_0x1ffe8d,_0x459af5=_0x9dc1fc['pick'](_0x38bc49[_0x222cdc(0x9d)]([_0x31f38d,_0x47af85]));if(_0x459af5 instanceof vn){if(_0x5cb95b(this[_0x222cdc(0x219)][_0x222cdc(0x1f1)](_0x459af5[_0x222cdc(0xae)],_0x459af5[_0x222cdc(0x210)],_0x459af5['shapeId'])))return;this[_0x222cdc(0x18d)][_0x222cdc(0x148)]({'visible':!0x0,'unitId':_0x459af5['unitId'],'subUnitId':_0x459af5[_0x222cdc(0x210)],'shapeId':_0x459af5[_0x222cdc(0x2ce)],'shapeKey':_0x459af5[_0x222cdc(0x183)]});}}));}[_0x1ed313(0x2a3)](){const _0x54dc6b=_0x1ed313;this[_0x54dc6b(0xf6)](this[_0x54dc6b(0x1b5)][_0x54dc6b(0x243)]['subscribe'](_0xb2b2c2=>{const _0x420b53=_0x54dc6b;if(_0xb2b2c2[_0x420b53(0x2b4)]===0x1){let _0x1dff97=_0xb2b2c2[0x0],_0x3dcdab=this['_drawingManagerService'][_0x420b53(0x2fc)](_0x1dff97);if((_0x3dcdab==null?void 0x0:_0x3dcdab[_0x420b53(0x1b7)])===_0x14c67a[_0x420b53(0x141)]){let _0x11174d=this[_0x420b53(0x18d)][_0x420b53(0x1bd)]();if((_0x11174d==null?void 0x0:_0x11174d[_0x420b53(0x2ce)])===_0x1dff97[_0x420b53(0xb2)]&&_0x11174d['visible'])return;_0x5cb95b(this[_0x420b53(0x219)][_0x420b53(0x1f1)](_0x1dff97[_0x420b53(0xae)],_0x1dff97[_0x420b53(0x210)],_0x1dff97[_0x420b53(0xb2)]))&&this['_shapeTextEditingService'][_0x420b53(0x148)](null);}else this[_0x420b53(0x18d)][_0x420b53(0x1bd)]()&&(this[_0x420b53(0x18d)][_0x420b53(0x213)](!0x0),requestAnimationFrame(()=>{const _0x2eff7e=_0x420b53;this[_0x2eff7e(0x18d)][_0x2eff7e(0x148)](null);}));}else this[_0x420b53(0x18d)][_0x420b53(0x1bd)]()&&(this[_0x420b53(0x18d)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2e3345=_0x420b53;this[_0x2e3345(0x18d)][_0x2e3345(0x148)](null);}));})),this[_0x54dc6b(0xf6)](this[_0x54dc6b(0x1b5)][_0x54dc6b(0xd4)]['subscribe'](_0x5bc36b=>{const _0x1e15ea=_0x54dc6b;let _0x3fb989=this[_0x1e15ea(0x18d)][_0x1e15ea(0x1bd)]();_0x3fb989&&_0x5bc36b[_0x1e15ea(0x24a)](_0x737820=>_0x737820[_0x1e15ea(0xb2)]===_0x3fb989['shapeId'])&&this[_0x1e15ea(0x18d)][_0x1e15ea(0x148)](null);}));}[_0x1ed313(0x22c)](){const _0x3c1560=_0x1ed313;this[_0x3c1560(0xf6)](this[_0x3c1560(0x18d)][_0x3c1560(0x1d6)][_0x3c1560(0x1f9)](_0x1fb144=>{const _0xb1c7f2=_0x3c1560;let {scene:_0x3cefd4}=this[_0xb1c7f2(0x2a2)];if(this[_0xb1c7f2(0x271)]){let _0x31b4ec=_0x3cefd4[_0xb1c7f2(0x2aa)](this[_0xb1c7f2(0x271)]);_0x31b4ec&&_0x31b4ec[_0xb1c7f2(0x148)](!0x1);}if(_0x1fb144){let _0x174506=!!_0x1fb144[_0xb1c7f2(0x10b)],_0x3e0b05=_0x3cefd4['getObjectIncludeInGroup'](_0x1fb144[_0xb1c7f2(0x1ea)]);_0x3e0b05&&(_0x3e0b05[_0xb1c7f2(0x148)](_0x174506),this['_lastEditingShapeKey']=_0x1fb144[_0xb1c7f2(0x1ea)]),this[_0xb1c7f2(0x222)][_0xb1c7f2(0x22f)](_0x2d4bac,_0x174506);}else this[_0xb1c7f2(0x271)]=null,this[_0xb1c7f2(0x222)][_0xb1c7f2(0x22f)](_0x2d4bac,!0x1);}));}};nr=Y([J(0x1,_0x697169(Zn)),J(0x2,_0x431f44),J(0x3,_0x3bb4e2),J(0x4,_0x697169(_0x5486d2))],nr);let rr=class extends _0x3bceb9{constructor(_0x237660,_0xd9af01,_0x28923b,_0x49a41b){super(_0x237660,_0xd9af01,_0x28923b,_0x49a41b,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x697169(_0x43ba14)),J(0x2,_0x697169(_0x1a3594)),J(0x3,_0x697169(_0x4e140b))],rr);let ir=class extends _0x17a082{constructor(_0x464222,_0x4414ee,_0x44c71b,_0x5e6ff7,_0x3ed414,_0x1f8055){const _0x202ba3=_0x1ed313;super(),this[_0x202ba3(0x1df)]=_0x464222,this[_0x202ba3(0x15b)]=_0x4414ee,this['_drawingManagerService']=_0x44c71b,this[_0x202ba3(0xe8)]=_0x5e6ff7,this[_0x202ba3(0x23a)]=_0x3ed414,this[_0x202ba3(0x1c4)]=_0x1f8055,q(this,_0x202ba3(0x1e5),new Set()),this['_initialize']();}[_0x1ed313(0x292)](){const _0xd31117=_0x1ed313;this[_0xd31117(0xb8)](),this['_commandExecutedListener'](),this[_0xd31117(0x18c)]();}[_0x1ed313(0xb8)](){const _0x58c78e=_0x1ed313;this[_0x58c78e(0xf6)](this[_0x58c78e(0x1b5)][_0x58c78e(0x29f)][_0x58c78e(0x1f9)](_0x2e841e=>{this['_insertShapes'](_0x2e841e);}));}[_0x1ed313(0x1fa)](){const _0x726620=_0x1ed313;this['disposeWithMe'](this[_0x726620(0x1df)]['onCommandExecuted'](_0x656203=>{const _0x56be35=_0x726620;if(_0x656203['id']===_0x44e25c['id']){let {unitId:_0x536442,subUnitId:_0x333b19,shapeId:_0x15818c}=_0x656203[_0x56be35(0x2f4)],_0x2f6f98=this[_0x56be35(0xd1)](_0x536442),_0x424089=_0x45a0e1({'unitId':_0x536442,'subUnitId':_0x333b19,'drawingId':_0x15818c}),_0x3cb6f9=_0x2f6f98==null?void 0x0:_0x2f6f98[_0x56be35(0xdb)][_0x56be35(0x2aa)](_0x424089);_0x3cb6f9&&(this[_0x56be35(0x1c4)][_0x56be35(0x1fc)](_0x3cb6f9),_0x3cb6f9[_0x56be35(0x1b9)](!0x0));return;}if(_0x656203['id']===_0x32d1ef['id']){var _0x266d12;let {unitId:_0x12f5ba,subUnitId:_0xcf806c,shapeId:_0x33d659}=_0x656203[_0x56be35(0x2f4)],_0x516574=this[_0x56be35(0xd1)](_0x12f5ba);if(_0x516574==null)return;let {scene:_0x16896e}=_0x516574,_0x187561=_0x45a0e1({'unitId':_0x12f5ba,'subUnitId':_0xcf806c,'drawingId':_0x33d659}),_0x46ac7f=_0x16896e[_0x56be35(0x2aa)](_0x187561);if(!((_0x266d12=this['_renderManagerService'][_0x56be35(0x187)](_0x12f5ba))!=null&&_0x266d12[_0x56be35(0x1e4)](_0x48e10a)[_0x56be35(0xa9)](_0xcf806c)))return!0x1;if(_0x46ac7f)return;this['_insertShapes']([{'unitId':_0x12f5ba,'subUnitId':_0xcf806c,'drawingId':_0x33d659}]);}}));}['_shapeUpdateListener'](){const _0x10f718=_0x1ed313;this[_0x10f718(0xf6)](this['_drawingManagerService'][_0x10f718(0x164)]['subscribe'](_0x134c75=>{const _0x17c1a3=_0x10f718;_0x134c75[_0x17c1a3(0x190)](_0x47c486=>{const _0x1ff9a9=_0x17c1a3;let {unitId:_0x5cefdf,subUnitId:_0x4a9bea,drawingId:_0x2d96e5}=_0x47c486,_0x1e76a4=this[_0x1ff9a9(0x1b5)][_0x1ff9a9(0x2fc)](_0x47c486);if(_0x1e76a4==null)return;let {transform:_0x1bafea,drawingType:_0x3c83fe,srcRect:_0x21fe8b,prstGeom:_0x2ededb}=_0x1e76a4;if(_0x3c83fe!==_0x14c67a[_0x1ff9a9(0x141)])return;let _0x2edfdf=this[_0x1ff9a9(0xd1)](_0x5cefdf);if(_0x2edfdf==null)return;let {scene:_0x4a01a1,transformer:_0xec1ff5}=_0x2edfdf;if(_0x1bafea==null)return!0x0;let _0x1a2366=_0x45a0e1({'unitId':_0x5cefdf,'subUnitId':_0x4a9bea,'drawingId':_0x2d96e5}),_0x93ae44=_0x4a01a1[_0x1ff9a9(0x2aa)](_0x1a2366);if(_0x93ae44==null)return!0x0;_0x93ae44[_0x1ff9a9(0x1c8)](_0x21fe8b),_0x93ae44[_0x1ff9a9(0x27f)](_0x2ededb);});}));}[_0x1ed313(0x256)](_0x55efbc){const _0x532dbe=_0x1ed313;for(let _0x553710 of _0x55efbc){var _0x50ec8a;let {unitId:_0x4118ce,subUnitId:_0x3074f8,drawingId:_0x3f7dfa}=_0x553710,_0x1812ca=this[_0x532dbe(0xd1)](_0x4118ce),_0x22d8a1=(_0x50ec8a=_0x4ca02b(this[_0x532dbe(0xe8)],_0x4118ce))==null?void 0x0:_0x50ec8a[_0x532dbe(0x210)];if(_0x1812ca==null||_0x22d8a1!==_0x3074f8)return;let _0x32d63c=_0x45a0e1({'unitId':_0x4118ce,'subUnitId':_0x3074f8,'drawingId':_0x3f7dfa});if(this['_insertingShapeKeys'][_0x532dbe(0x122)](_0x32d63c)||_0x1812ca[_0x532dbe(0xdb)]['getObjectIncludeInGroup'](_0x32d63c)!=null)return;let _0x4648e7=this[_0x532dbe(0x1b5)]['getDrawingByParam'](_0x553710);if(_0x4648e7==null||_0x4648e7[_0x532dbe(0x1b7)]!==_0x14c67a[_0x532dbe(0x141)])return;if(_0x5cb95b((_0x4648e7[_0x532dbe(0x11b)]||{})['shapeType'])){let _0x1c63e4=_0x4648e7[_0x532dbe(0x131)];_0x1c63e4&&(_0x4648e7[_0x532dbe(0x131)]={..._0x1c63e4,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x532dbe(0x1e5)][_0x532dbe(0x12d)](_0x32d63c);try{this[_0x532dbe(0x1c4)][_0x532dbe(0x2ec)](_0x4648e7,_0x1812ca[_0x532dbe(0xdb)]);}finally{this[_0x532dbe(0x1e5)][_0x532dbe(0x211)](_0x32d63c);}queueMicrotask(()=>{const _0xd2404c=_0x532dbe;if(this[_0xd2404c(0xbf)])return;let _0x3ae91a=_0x45a0e1(_0x553710);if(!_0x1812ca['scene'][_0xd2404c(0x2aa)](_0x3ae91a))return;let _0x4103f6=this[_0xd2404c(0x1b5)][_0xd2404c(0x2fc)](_0x553710);_0x4103f6&&this[_0xd2404c(0x1b5)][_0xd2404c(0x1db)]([_0x4103f6]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x20c7e3){const _0x1a865d=_0x1ed313;if(_0x20c7e3==null)return;let _0x5cb64a=this[_0x1a865d(0x15b)][_0x1a865d(0x187)](_0x20c7e3),_0x394e7b=_0x5cb64a==null?void 0x0:_0x5cb64a['scene'];return _0x394e7b==null?null:{'scene':_0x394e7b,'transformer':_0x394e7b[_0x1a865d(0xdf)]()};}};ir=Y([J(0x0,_0x2eaf9c),J(0x1,_0x134053),J(0x2,_0x431f44),J(0x3,_0x57a3de),J(0x4,_0x697169(_0x5dd75f)),J(0x5,_0x697169(X))],ir);const ar={'normal':{'fill':_0x42c7e9[_0x1ed313(0x113)],'stroke':_0x42c7e9['cxnPointStroke'],'strokeWidth':_0x42c7e9[_0x1ed313(0x225)]},'highlighted':{'fill':'#4285f4','stroke':_0x1ed313(0x1f4),'strokeWidth':0x2}};var or=class extends _0x647470{constructor(_0x4a5d14,_0x30466f){const _0x2fd307=_0x1ed313;super(_0x4a5d14,_0x30466f),q(this,_0x2fd307(0x1a8),''),q(this,_0x2fd307(0x2e0),-0x1),q(this,_0x2fd307(0x2a6),''),q(this,'_subUnitId',''),q(this,_0x2fd307(0xff),!0x1),_0x30466f&&this[_0x2fd307(0x27b)](_0x30466f);}[_0x1ed313(0x24f)](){const _0x96aba8=_0x1ed313;return{'unitId':this[_0x96aba8(0x2a6)],'subUnitId':this[_0x96aba8(0x1ce)],'shapeId':this[_0x96aba8(0x1a8)],'cxnIndex':this[_0x96aba8(0x2e0)]};}[_0x1ed313(0xa2)](_0x3254cc){this['_isHighlighted']!==_0x3254cc&&(this['_isHighlighted']=_0x3254cc,this['makeDirty'](!0x0));}[_0x1ed313(0x2d0)](){const _0x5c9f98=_0x1ed313;return this[_0x5c9f98(0xff)];}[_0x1ed313(0x27b)](_0x1828cb){const _0x359ab7=_0x1ed313;var _0x3a7516,_0x560d8c;_0x1828cb['targetShapeId']!==void 0x0&&(this[_0x359ab7(0x1a8)]=_0x1828cb[_0x359ab7(0xa3)]),_0x1828cb[_0x359ab7(0x2bf)]!==void 0x0&&(this['_cxnIndex']=_0x1828cb[_0x359ab7(0x2bf)]),_0x1828cb[_0x359ab7(0xae)]!==void 0x0&&(this[_0x359ab7(0x2a6)]=_0x1828cb['unitId']),_0x1828cb[_0x359ab7(0x210)]!==void 0x0&&(this[_0x359ab7(0x1ce)]=_0x1828cb[_0x359ab7(0x210)]),_0x1828cb[_0x359ab7(0x2d0)]!==void 0x0&&(this[_0x359ab7(0xff)]=_0x1828cb[_0x359ab7(0x2d0)]),this[_0x359ab7(0x10e)]({'width':(_0x3a7516=_0x1828cb['width'])==null?_0x42c7e9[_0x359ab7(0x1c7)]*0x2:_0x3a7516,'height':(_0x560d8c=_0x1828cb[_0x359ab7(0x24e)])==null?_0x42c7e9[_0x359ab7(0x1c7)]*0x2:_0x560d8c});}[_0x1ed313(0x223)](_0x133238){const _0x488afb=_0x1ed313;let _0x25e7dc=this[_0x488afb(0xff)]?ar[_0x488afb(0x2ca)]:ar[_0x488afb(0xe7)];_0x103453[_0x488afb(0x2fb)](_0x133238,{'radius':_0x42c7e9[_0x488afb(0x1c7)],'fill':_0x25e7dc[_0x488afb(0x16a)],'stroke':_0x25e7dc[_0x488afb(0xd5)],'strokeWidth':_0x25e7dc['strokeWidth'],'evented':!0x0});}};let sr=class extends _0x17a082{constructor(_0x8a5882,_0x4467ae,_0x3e27d8,_0x593b8c){const _0x30febd=_0x1ed313;super(),this[_0x30febd(0x2a2)]=_0x8a5882,this[_0x30febd(0x15b)]=_0x4467ae,this['_drawingManagerService']=_0x3e27d8,this[_0x30febd(0x219)]=_0x593b8c,q(this,_0x30febd(0x15e),[]),q(this,_0x30febd(0xb0),null),q(this,_0x30febd(0x2ba),-0x1),q(this,_0x30febd(0x173),null),q(this,_0x30febd(0x2a6),''),q(this,_0x30febd(0x1ce),''),q(this,_0x30febd(0x247),null);}[_0x1ed313(0x1e0)](_0x443b86,_0x1a1c0f,_0x3de175,_0x12c676){const _0x5c1f81=_0x1ed313;this[_0x5c1f81(0x173)]=_0x443b86,this['_unitId']=_0x1a1c0f,this[_0x5c1f81(0x1ce)]=_0x3de175,this['_draggingConnectorId']=_0x12c676;}[_0x1ed313(0x199)](_0x581f85){const _0x43f1c5=_0x1ed313;if(!this[_0x43f1c5(0x173)])return null;let _0x340c17=this[_0x43f1c5(0x267)](_0x581f85);return _0x340c17?(this[_0x43f1c5(0xb0)]!==_0x340c17[_0x43f1c5(0x2ce)]&&(this[_0x43f1c5(0x259)](),this[_0x43f1c5(0x2ae)](_0x340c17[_0x43f1c5(0x2ce)],_0x340c17[_0x43f1c5(0x1bf)]),this[_0x43f1c5(0xb0)]=_0x340c17[_0x43f1c5(0x2ce)]),this[_0x43f1c5(0x112)](_0x581f85)):(this[_0x43f1c5(0xb0)]!==null&&(this['_clearConnectionSites'](),this[_0x43f1c5(0xb0)]=null),null);}['endConnectionDetection'](){const _0x26ddb6=_0x1ed313;this['_clearConnectionSites'](),this[_0x26ddb6(0x173)]=null,this[_0x26ddb6(0xb0)]=null,this[_0x26ddb6(0x2ba)]=-0x1,this[_0x26ddb6(0x247)]=null;}['getConnectionRelation'](){const _0x11f5d9=_0x1ed313;return this[_0x11f5d9(0xb0)]===null||this[_0x11f5d9(0x2ba)]<0x0?null:{'shapeId':this[_0x11f5d9(0xb0)],'cxnIndex':this[_0x11f5d9(0x2ba)]};}[_0x1ed313(0x267)](_0x536909){const _0x3bb260=_0x1ed313;let _0x1416fb=this[_0x3bb260(0x1b5)][_0x3bb260(0xed)](this[_0x3bb260(0x2a6)],this['_subUnitId']);for(let _0x45d7be of Object['keys'](_0x1416fb)){if(_0x45d7be===this[_0x3bb260(0x247)]||_0x1416fb[_0x45d7be]['drawingType']!==_0x14c67a[_0x3bb260(0x141)])continue;let _0x36a427=this['_sheetsShapeService'][_0x3bb260(0x16c)](this[_0x3bb260(0x2a6)],this[_0x3bb260(0x1ce)],_0x45d7be);if(!_0x36a427||_0x5cb95b(_0x36a427['getShapeType']())||_0x36a427[_0x3bb260(0xca)]()[_0x3bb260(0x2b4)]===0x0||!this['_currentScene'])continue;let _0x5da207=_0x45a0e1({'unitId':this[_0x3bb260(0x2a6)],'subUnitId':this[_0x3bb260(0x1ce)],'drawingId':_0x45d7be}),_0xe8a7ce=this['_currentScene']['getObjectIncludeInGroup'](_0x5da207);if(!_0xe8a7ce)continue;let {left:_0x5bf2dc,top:_0x48939b,width:_0x34ce3b,height:_0x23cda6}=_0xe8a7ce['getRealBound'](),_0x411bf3=_0x5bf2dc+_0x34ce3b/0x2,_0x33882f=_0x48939b+_0x23cda6/0x2,_0x2289f4=_0xe8a7ce[_0x3bb260(0x131)][_0x3bb260(0x21c)](),_0x5e4e9e=new _0x3c22dd([_0x2289f4[0x0],_0x2289f4[0x1],_0x2289f4[0x2],_0x2289f4[0x3],_0x411bf3,_0x33882f]),_0xb2d23b=_0xe8a7ce[_0x3bb260(0x166)](),_0x1d9f4b=(_0xe8a7ce[_0x3bb260(0x17a)]&&(_0xb2d23b==null?void 0x0:_0xb2d23b[_0x3bb260(0xea)])===_0x5b90d5[_0x3bb260(0x2bb)]?_0xb2d23b['ancestorTransform'][_0x3bb260(0x18b)](_0x5e4e9e):_0x5e4e9e)[_0x3bb260(0x167)]()[_0x3bb260(0xc1)](_0x536909),_0x11d442=_0x34ce3b/0x2,_0x47f533=_0x23cda6/0x2;if(_0x1d9f4b['x']>=-_0x11d442-0x5&&_0x1d9f4b['x']<=_0x11d442+0x5&&_0x1d9f4b['y']>=-_0x47f533-0x5&&_0x1d9f4b['y']<=_0x47f533+0x5)return{'shapeId':_0x45d7be,'shapeModel':_0x36a427};}return null;}[_0x1ed313(0x2ae)](_0x53ebdc,_0x49513b){const _0x39adfd=_0x1ed313;if(!this[_0x39adfd(0x173)])return;let _0x192cc7=_0x45a0e1({'unitId':this['_unitId'],'subUnitId':this[_0x39adfd(0x1ce)],'drawingId':_0x53ebdc}),_0x5ba03a=this['_currentScene'][_0x39adfd(0x2aa)](_0x192cc7);if(!_0x5ba03a)return;let {left:_0x5cab4d,top:_0x1e554f,width:_0x56e279,height:_0x356dcc}=_0x5ba03a[_0x39adfd(0xa4)](),_0x49ed11=_0x5cab4d+_0x56e279/0x2,_0x56dcff=_0x1e554f+_0x356dcc/0x2,_0x4cefb6=_0x5ba03a['transform']['getMatrix'](),_0xed5010=new _0x3c22dd([_0x4cefb6[0x0],_0x4cefb6[0x1],_0x4cefb6[0x2],_0x4cefb6[0x3],_0x49ed11,_0x56dcff]),_0x5a7998=_0x5ba03a['getParent'](),_0x2a4d11=_0x5ba03a[_0x39adfd(0x17a)]&&(_0x5a7998==null?void 0x0:_0x5a7998[_0x39adfd(0xea)])===_0x5b90d5[_0x39adfd(0x2bb)]?_0x5a7998[_0x39adfd(0x1a4)][_0x39adfd(0x18b)](_0xed5010):_0xed5010;_0x49513b[_0x39adfd(0x127)]({'width':_0x56e279,'height':_0x356dcc});let _0x48a2e1=_0x49513b['getConnectionSiteList']();for(let _0x5af9ea of _0x48a2e1){let _0xcf5ad8=_0x5af9ea['x']-_0x56e279/0x2,_0x30f7af=_0x5af9ea['y']-_0x356dcc/0x2,_0x31cb8e=_0x2a4d11['applyPoint']({'x':_0xcf5ad8,'y':_0x30f7af}),_0x42db3d=_0x31cb8e['x'],_0x27310d=_0x31cb8e['y'],_0x4d58c6=new or(_0x39adfd(0x21b)+_0x53ebdc+'-'+_0x5af9ea[_0x39adfd(0x29b)],{'left':_0x42db3d-_0x42c7e9[_0x39adfd(0x1c7)],'top':_0x27310d-_0x42c7e9[_0x39adfd(0x1c7)],'targetShapeId':_0x53ebdc,'cxnIndex':_0x5af9ea[_0x39adfd(0x29b)],'unitId':this[_0x39adfd(0x2a6)],'subUnitId':this['_subUnitId'],'width':_0x42c7e9[_0x39adfd(0x1c7)]*0x2,'height':_0x42c7e9[_0x39adfd(0x1c7)]*0x2,'zIndex':_0x72823c+0x2,'evented':!0x1});this[_0x39adfd(0x15e)][_0x39adfd(0x2b9)](_0x4d58c6),this['_currentScene'][_0x39adfd(0x14d)](_0x4d58c6,_0x72823c+0x2);}}[_0x1ed313(0x112)](_0x383075){const _0x4b7517=_0x1ed313;let _0x176e97=null,_0x5cd694=0x1/0x0,_0x36ccde=null;for(let _0x311822 of this[_0x4b7517(0x15e)]){let _0x2b92a4=_0x311822['left']+_0x42c7e9['cxnPointRadius'],_0x6f5032=_0x311822['top']+_0x42c7e9[_0x4b7517(0x1c7)],_0x8ff077=_0x383075['x']-_0x2b92a4,_0x1c3440=_0x383075['y']-_0x6f5032,_0x23dbaf=Math[_0x4b7517(0x1d5)](_0x8ff077*_0x8ff077+_0x1c3440*_0x1c3440);_0x23dbaf<_0x5cd694&&(_0x5cd694=_0x23dbaf,_0x176e97=_0x311822,_0x36ccde={'x':_0x2b92a4,'y':_0x6f5032});}let _0x4f63de=_0x5cd694<=0xa&&_0x176e97?_0x176e97[_0x4b7517(0x24f)]()['cxnIndex']:-0x1;if(_0x4f63de!==this[_0x4b7517(0x2ba)]){for(let _0x369b8a of this[_0x4b7517(0x15e)]){let _0x3a2a99=_0x369b8a[_0x4b7517(0x24f)]();_0x369b8a[_0x4b7517(0xa2)](_0x3a2a99['cxnIndex']===_0x4f63de);}this[_0x4b7517(0x2ba)]=_0x4f63de;}if(_0x5cd694<=0xa&&_0x176e97&&_0x36ccde){let _0x412f04=_0x176e97[_0x4b7517(0x24f)](),_0x49bd26=this[_0x4b7517(0xc0)](_0x412f04[_0x4b7517(0x2ce)],_0x412f04['cxnIndex']);return{'shapeId':_0x412f04['shapeId'],'cxnIndex':_0x412f04['cxnIndex'],'unitId':_0x412f04[_0x4b7517(0xae)],'subUnitId':_0x412f04[_0x4b7517(0x210)],'worldPoint':_0x36ccde,'angle':_0x49bd26};}return null;}[_0x1ed313(0xc0)](_0x379ae3,_0x3a4153){const _0x2b8cca=_0x1ed313;let _0x128df0=this[_0x2b8cca(0x219)][_0x2b8cca(0x16c)](this[_0x2b8cca(0x2a6)],this['_subUnitId'],_0x379ae3);if(!_0x128df0)return 0x0;let _0x4aa2d8=this[_0x2b8cca(0x1b5)][_0x2b8cca(0x2fc)]({'unitId':this['_unitId'],'subUnitId':this[_0x2b8cca(0x1ce)],'drawingId':_0x379ae3});if(!(_0x4aa2d8!=null&&_0x4aa2d8[_0x2b8cca(0x131)]))return 0x0;let {width:_0x333c61=0x0,height:_0x1e2792=0x0,flipX:_0x30be84=!0x1,flipY:_0x4a59e3=!0x1}=_0x4aa2d8[_0x2b8cca(0x131)];_0x128df0['updateContext']({'width':_0x333c61,'height':_0x1e2792});let _0x1d621a=_0x128df0[_0x2b8cca(0xca)]()['find'](_0x162589=>_0x162589[_0x2b8cca(0x29b)]===_0x3a4153);if(!_0x1d621a)return 0x0;let _0x3fa7e1=_0x1d621a[_0x2b8cca(0x29c)]/0xea60;return _0x30be84&&(_0x3fa7e1=0xb4-_0x3fa7e1),_0x4a59e3&&(_0x3fa7e1=-_0x3fa7e1),_0x3fa7e1=(_0x3fa7e1%0x168+0x168)%0x168,_0x3fa7e1;}[_0x1ed313(0x259)](){const _0x271617=_0x1ed313;for(let _0x12ac47 of this[_0x271617(0x15e)])_0x12ac47[_0x271617(0x230)]();this[_0x271617(0x15e)]=[],this[_0x271617(0x2ba)]=-0x1;}[_0x1ed313(0x230)](){this['_clearConnectionSites'](),super['dispose']();}};sr=Y([J(0x1,_0x697169(_0x134053)),J(0x2,_0x697169(_0x431f44)),J(0x3,_0x697169(_0x5486d2))],sr);let cr=class extends _0x17a082{constructor(_0x3428d4,_0x481a52,_0x53f319,_0x7933ee,_0x16e462){const _0xa9c0cc=_0x1ed313;super(),this[_0xa9c0cc(0x10d)]=_0x3428d4,this[_0xa9c0cc(0xc9)]=_0x481a52,this[_0xa9c0cc(0xd3)]=_0x53f319,this['_shapeService']=_0x7933ee,this[_0xa9c0cc(0x268)]=_0x16e462,q(this,'_copyInfo',void 0x0),this[_0xa9c0cc(0x1cb)](),this[_0xa9c0cc(0x2f8)]();}get['_focusedDrawings'](){const _0x499855=_0x1ed313;return this[_0x499855(0xd3)][_0x499855(0x149)]();}[_0x1ed313(0x2f8)](){const _0x20f2db=_0x1ed313;this[_0x20f2db(0x268)][_0x20f2db(0x16f)](({fromUnitId:_0x1273e9,fromSubUnitId:_0x46ff32,toUnitId:_0xa8c47f,toSubUnitId:_0x182ea3,idMap:_0x3dfbb7})=>{const _0x16ec5f=_0x20f2db;let _0x9434ea=[],_0x5e4c8a=[];for(let [_0x4b26b0,_0x373ede]of _0x3dfbb7['entries']()){let _0x1eff85=this[_0x16ec5f(0x101)][_0x16ec5f(0x16c)](_0x1273e9,_0x46ff32,_0x4b26b0);if(!_0x1eff85)continue;let _0x94082b=_0x1eff85[_0x16ec5f(0x1f1)](),_0x583c6b=JSON['parse'](JSON[_0x16ec5f(0x177)](_0x1eff85[_0x16ec5f(0x11c)]()));if(_0x583c6b[_0x16ec5f(0x158)]){var _0x3059a7,_0x52a7a0;let _0x707c9a=(_0x3059a7=_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)])==null?void 0x0:_0x3059a7['shapeId'],_0x1950b7=(_0x52a7a0=_0x583c6b[_0x16ec5f(0x158)]['to'])==null?void 0x0:_0x52a7a0[_0x16ec5f(0x2ce)],_0x2d7166=_0x707c9a?_0x3dfbb7[_0x16ec5f(0x122)](_0x707c9a):!0x0,_0x352417=_0x1950b7?_0x3dfbb7[_0x16ec5f(0x122)](_0x1950b7):!0x0;_0x2d7166&&_0x707c9a&&_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]?_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]={..._0x583c6b['relation'][_0x16ec5f(0x22a)],'shapeId':_0x3dfbb7['get'](_0x707c9a)}:_0x583c6b[_0x16ec5f(0x158)][_0x16ec5f(0x22a)]=void 0x0,_0x352417&&_0x1950b7&&_0x583c6b['relation']['to']?_0x583c6b[_0x16ec5f(0x158)]['to']={..._0x583c6b[_0x16ec5f(0x158)]['to'],'shapeId':_0x3dfbb7[_0x16ec5f(0xbe)](_0x1950b7)}:_0x583c6b[_0x16ec5f(0x158)]['to']=void 0x0;}_0x9434ea[_0x16ec5f(0x2b9)]({'id':_0x32d1ef['id'],'params':{'unitId':_0xa8c47f,'subUnitId':_0x182ea3,'shapeId':_0x373ede,'shapeType':_0x94082b,'shapeData':_0x583c6b}}),_0x5e4c8a['push']({'id':_0x1e03c8['id'],'params':{'unitId':_0xa8c47f,'subUnitId':_0x182ea3,'shapeId':_0x373ede}});}return{'redos':_0x9434ea,'undos':_0x5e4c8a};});}[_0x1ed313(0x1cb)](){const _0x337f3a=_0x1ed313;this[_0x337f3a(0xf6)](this[_0x337f3a(0xc9)][_0x337f3a(0x2cd)]({'id':_0x337f3a(0x2b1),'onBeforeCopy':(_0x5efbe2,_0x469a74,_0x4b2733,_0x13a99f)=>{const _0x55c0f3=_0x337f3a;this[_0x55c0f3(0x265)]=null;let _0x4cb25e=this[_0x55c0f3(0x154)];if(_0x4cb25e['length']){let _0x1c99a6=_0x4cb25e[_0x55c0f3(0x205)](_0x4c0ed8=>_0x4c0ed8['drawingType']===_0x14c67a[_0x55c0f3(0x141)]);if(_0x1c99a6[_0x55c0f3(0x2b4)]===0x0)return;this[_0x55c0f3(0x265)]={'unitId':_0x5efbe2,'subUnitId':_0x469a74,'copyType':_0x13a99f,'drawings':_0x1c99a6};}else this[_0x55c0f3(0x146)](_0x5efbe2,_0x469a74,_0x4b2733,_0x13a99f);},'onPasteCells':(_0x582f75,_0x19b787,_0x56d73d,_0x3a4ddc)=>{const _0x57ee3f=_0x337f3a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x493444}=_0x3a4ddc;return _0x493444===_0x17c841[_0x57ee3f(0xab)]?this['_generatePasteMutations'](_0x19b787,this[_0x57ee3f(0x265)]['copyType']===_0x2ec4f6[_0x57ee3f(0x2a4)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x230b89=>this[_0x337f3a(0x265)]?this[_0x337f3a(0x244)](_0x230b89,this[_0x337f3a(0x265)][_0x337f3a(0x2c7)]===_0x2ec4f6[_0x337f3a(0x2a4)]):{'redos':[],'undos':[]}}));}[_0x1ed313(0x146)](_0x286f24,_0x5a0810,_0x5d34bc,_0x2a154b){const _0x13aa27=_0x1ed313;let _0x5b8068=this[_0x13aa27(0x10d)]['getSkeleton'](_0x286f24,_0x5a0810);if(!_0x5b8068)return;let _0x2bf296=_0x1144ca(_0x5b8068,_0x5d34bc);if(!_0x2bf296)return;let {startX:_0x5b7ab9,endX:_0x56b90,startY:_0x2a07b3,endY:_0x5f5182}=_0x2bf296,_0x40a1ac=this[_0x13aa27(0xd3)][_0x13aa27(0xed)](_0x286f24,_0x5a0810),_0x4eb60c=this[_0x13aa27(0x154)]['slice']();for(let [_0x2ce1fb,_0x46fdb9]of Object[_0x13aa27(0x1cc)](_0x40a1ac)){if(_0x46fdb9[_0x13aa27(0x1b7)]!==_0x14c67a[_0x13aa27(0x141)])continue;let {transform:_0x1a5b39}=_0x46fdb9;if(!_0x1a5b39)continue;let {left:_0xf7672d=0x0,top:_0x4e3383=0x0,width:_0x5cb1ae=0x0,height:_0x9d2196=0x0}=_0x1a5b39;_0x5b7ab9<=_0xf7672d&&_0x56b90>=_0xf7672d+_0x5cb1ae&&_0x2a07b3<=_0x4e3383&&_0x5f5182>=_0x4e3383+_0x9d2196&&_0x4eb60c[_0x13aa27(0x2b9)](_0x46fdb9);}_0x4eb60c[_0x13aa27(0x2b4)]>0x0&&(this[_0x13aa27(0x265)]={'unitId':_0x286f24,'subUnitId':_0x5a0810,'copyType':_0x2a154b,'copyRange':_0x5d34bc,'drawings':_0x4eb60c});}['_generatePasteMutations'](_0x2fe97b,_0x31100b){const _0x3867b6=_0x1ed313;let {unitId:_0x310a01,subUnitId:_0x153c8d,range:_0xe0c24a}=_0x2fe97b,_0xab50df=this[_0x3867b6(0x10d)][_0x3867b6(0xa9)](_0x310a01,_0x153c8d);if(!_0xab50df)return{'redos':[],'undos':[]};let _0x175cd8=_0x2500aa(_0xe0c24a),{unitId:_0x3c63f7,subUnitId:_0x57115f,copyRange:_0x14fc8a,drawings:_0x5e61c2}=this[_0x3867b6(0x265)],_0x4d2327=this[_0x3867b6(0x10d)][_0x3867b6(0xa9)](_0x3c63f7,_0x57115f);if(!_0x4d2327)return{'redos':[],'undos':[]};let _0x234b54;if(!_0x14fc8a){let _0x333254=0x1/0x0,_0x13fb1f=0x1/0x0;for(let _0x1a2014 of _0x5e61c2){var _0x3cbaf3;let {left:_0x2a4edb=0x0,top:_0x39c456=0x0}=(_0x3cbaf3=_0x1a2014[_0x3867b6(0x131)])==null?{}:_0x3cbaf3;_0x2a4edb<_0x333254&&(_0x333254=_0x2a4edb),_0x39c456<_0x13fb1f&&(_0x13fb1f=_0x39c456);}_0x333254!==0x1/0x0&&_0x13fb1f!==0x1/0x0&&(_0x234b54={'left':_0x333254,'top':_0x13fb1f});}let _0x26b909=new Map();if(!_0x31100b){for(let _0xabaf87 of _0x5e61c2)_0x26b909[_0x3867b6(0x182)](_0xabaf87['drawingId'],_0x436dba());}let _0x46e9b2=[],_0x7d92fc=[];for(let _0x36e58a of _0x5e61c2){let {drawingId:_0x2af679,transform:_0x4e1fb3,sheetTransform:_0x2897ca}=_0x36e58a;if(!_0x4e1fb3||!_0x2897ca)continue;let _0x3a8044=this[_0x3867b6(0x170)]({'transform':_0x4e1fb3,'sheetTransform':_0x2897ca},{'skeleton':_0x4d2327,'range':_0x14fc8a},{'skeleton':_0xab50df,'range':_0x175cd8},_0x234b54);if(_0x31100b){let {redos:_0x43b4be,undos:_0x3e6f96}=this[_0x3867b6(0x25e)]({'fromUnitId':_0x3c63f7,'fromSubUnitId':_0x57115f,'toUnitId':_0x310a01,'toSubUnitId':_0x153c8d,'drawing':_0x36e58a,'newTransforms':_0x3a8044});_0x46e9b2[_0x3867b6(0x2b9)](..._0x43b4be),_0x7d92fc[_0x3867b6(0x2b9)](..._0x3e6f96);continue;}let {redos:_0x5d3ca2,undos:_0x21b2b8}=this['_generateCopyPasteMutations']({'toUnitId':_0x310a01,'toSubUnitId':_0x153c8d,'drawing':_0x36e58a,'newTransforms':_0x3a8044,'newDrawingId':_0x26b909[_0x3867b6(0xbe)](_0x2af679),'idMap':_0x26b909});_0x46e9b2[_0x3867b6(0x2b9)](..._0x5d3ca2),_0x7d92fc[_0x3867b6(0x2b9)](..._0x21b2b8);}return{'redos':_0x46e9b2,'undos':_0x7d92fc};}[_0x1ed313(0x25e)](_0x52ee49){const _0x512029=_0x1ed313;let {fromUnitId:_0x56529d,fromSubUnitId:_0x18e946,toUnitId:_0xcdbaf,toSubUnitId:_0xa7efe,drawing:_0x2ec875,newTransforms:_0x1452be}=_0x52ee49,_0x18c5ff={..._0x2ec875,'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'transform':_0x1452be[_0x512029(0x131)],'sheetTransform':_0x1452be[_0x512029(0x270)]};if(_0xcdbaf===_0x56529d&&_0xa7efe===_0x18e946){let {redo:_0x82ae06,undo:_0x1310c7,objects:_0x3753ce}=this[_0x512029(0xd3)]['getBatchUpdateOp']([_0x18c5ff]);return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f['UPDATE'],'op':_0x82ae06,'objects':_0x3753ce}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0x14a)],'op':_0x1310c7,'objects':_0x3753ce}}]};}else{let _0xa7c326=this[_0x512029(0xd3)][_0x512029(0x2d8)]([_0x2ec875]),_0x1173d9=this['_sheetDrawingService']['getBatchAddOp']([_0x18c5ff]),_0x4ef3fa=this[_0x512029(0x101)][_0x512029(0x16c)](_0x2ec875[_0x512029(0xae)],_0x2ec875['subUnitId'],_0x2ec875[_0x512029(0xb2)]);if(!_0x4ef3fa)return{'redos':[],'undos':[]};let _0xe66a20=_0x4ef3fa['getShapeType'](),_0xcb3219=JSON['parse'](JSON['stringify'](_0x4ef3fa[_0x512029(0x11c)]()));return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'type':_0x12be8f[_0x512029(0xb5)],'op':_0xa7c326['redo'],'objects':_0xa7c326[_0x512029(0x107)]}},{'id':_0x1e03c8['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'shapeId':_0x2ec875['drawingId']}},{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0x260)],'op':_0x1173d9['redo'],'objects':_0x1173d9['objects']}},{'id':_0x32d1ef['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'shapeId':_0x2ec875[_0x512029(0xb2)],'shapeType':_0xe66a20,'shapeData':_0xcb3219}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'type':_0x12be8f[_0x512029(0x260)],'op':_0xa7c326[_0x512029(0x1d9)],'objects':_0xa7c326[_0x512029(0x107)]}},{'id':_0x32d1ef['id'],'params':{'unitId':_0x56529d,'subUnitId':_0x18e946,'shapeId':_0x2ec875['drawingId'],'shapeType':_0xe66a20,'shapeData':_0xcb3219}},{'id':_0x39b433['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'type':_0x12be8f[_0x512029(0xb5)],'op':_0x1173d9[_0x512029(0x1d9)],'objects':_0x1173d9[_0x512029(0x107)]}},{'id':_0x1e03c8['id'],'params':{'unitId':_0xcdbaf,'subUnitId':_0xa7efe,'shapeId':_0x2ec875[_0x512029(0xb2)]}}]};}}[_0x1ed313(0x1da)](_0x5ddefc){const _0x427bd3=_0x1ed313;let {toUnitId:_0x26ada3,toSubUnitId:_0x3a9973,drawing:_0x5b3b5e,newTransforms:_0x12c440,newDrawingId:_0x5e06cb,idMap:_0x106a7d}=_0x5ddefc,_0x5fa49f={..._0x5b3b5e,'unitId':_0x26ada3,'subUnitId':_0x3a9973,'drawingId':_0x5e06cb,'transform':_0x12c440[_0x427bd3(0x131)],'sheetTransform':_0x12c440[_0x427bd3(0x270)]},{redo:_0x1e1445,undo:_0x2b8268,objects:_0x2a3f81}=this[_0x427bd3(0xd3)]['getBatchAddOp']([_0x5fa49f]),_0x250c5e=this[_0x427bd3(0x101)][_0x427bd3(0x16c)](_0x5b3b5e[_0x427bd3(0xae)],_0x5b3b5e[_0x427bd3(0x210)],_0x5b3b5e['drawingId']);if(!_0x250c5e)return{'redos':[],'undos':[]};let _0x4d453a=_0x250c5e[_0x427bd3(0x1f1)](),_0x3012b2=JSON[_0x427bd3(0x2f0)](JSON[_0x427bd3(0x177)](_0x250c5e[_0x427bd3(0x11c)]()));if(_0x3012b2[_0x427bd3(0x158)]){var _0x3e6f94,_0x48d693;let _0xb0f3b4=(_0x3e6f94=_0x3012b2[_0x427bd3(0x158)][_0x427bd3(0x22a)])==null?void 0x0:_0x3e6f94[_0x427bd3(0x2ce)],_0x23d873=(_0x48d693=_0x3012b2['relation']['to'])==null?void 0x0:_0x48d693[_0x427bd3(0x2ce)],_0x55cfff=_0xb0f3b4?_0x106a7d[_0x427bd3(0x122)](_0xb0f3b4):!0x0,_0x4c4392=_0x23d873?_0x106a7d[_0x427bd3(0x122)](_0x23d873):!0x0;_0x55cfff&&_0xb0f3b4&&_0x3012b2['relation'][_0x427bd3(0x22a)]?_0x3012b2[_0x427bd3(0x158)][_0x427bd3(0x22a)]={..._0x3012b2[_0x427bd3(0x158)]['from'],'shapeId':_0x106a7d[_0x427bd3(0xbe)](_0xb0f3b4)}:_0x3012b2[_0x427bd3(0x158)]['from']=void 0x0,_0x4c4392&&_0x23d873&&_0x3012b2[_0x427bd3(0x158)]['to']?_0x3012b2[_0x427bd3(0x158)]['to']={..._0x3012b2[_0x427bd3(0x158)]['to'],'shapeId':_0x106a7d[_0x427bd3(0xbe)](_0x23d873)}:_0x3012b2[_0x427bd3(0x158)]['to']=void 0x0;}return{'redos':[{'id':_0x39b433['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'type':_0x12be8f[_0x427bd3(0x260)],'op':_0x1e1445,'objects':_0x2a3f81}},{'id':_0x32d1ef['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'shapeId':_0x5e06cb,'shapeType':_0x4d453a,'shapeData':_0x3012b2}}],'undos':[{'id':_0x39b433['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'type':_0x12be8f[_0x427bd3(0xb5)],'op':_0x2b8268,'objects':_0x2a3f81}},{'id':_0x1e03c8['id'],'params':{'unitId':_0x26ada3,'subUnitId':_0x3a9973,'shapeId':_0x5e06cb}}]};}['_updateTransform'](_0x3530b1,_0x39a8a3,_0x6602f3,_0x58853b){const _0xbfadba=_0x1ed313;var _0x1cc4a2;let {range:_0x2d75d4,skeleton:_0x37f92d}=_0x39a8a3,{range:_0x2b3750,skeleton:_0x4c1191}=_0x6602f3,{transform:_0x2fb6da,sheetTransform:_0x451c27}=_0x3530b1,_0x169780={..._0x2fb6da};if(_0x2d75d4){let _0x406f76=_0x1144ca(_0x37f92d,_0x2d75d4),_0xbae603=_0x1144ca(_0x4c1191,_0x2b3750);if(_0x406f76&&_0xbae603){var _0x33e01f,_0xda070f;let _0xff44fb=_0xbae603[_0xbfadba(0x1aa)]-_0x406f76[_0xbfadba(0x1aa)],_0x32d881=_0xbae603[_0xbfadba(0x20c)]-_0x406f76[_0xbfadba(0x20c)];_0x169780[_0xbfadba(0x2a8)]=((_0x33e01f=_0x169780['left'])==null?0x0:_0x33e01f)+_0xff44fb,_0x169780[_0xbfadba(0x180)]=((_0xda070f=_0x169780[_0xbfadba(0x180)])==null?0x0:_0xda070f)+_0x32d881;}}else{let _0x34af90=_0x1144ca(_0x4c1191,_0x2b3750);if(_0x58853b&&_0x34af90){var _0x3edc95,_0x3f502f;let _0xabcc4e=((_0x3edc95=_0x169780[_0xbfadba(0x2a8)])==null?0x0:_0x3edc95)-_0x58853b['left'],_0x2fb1ce=((_0x3f502f=_0x169780[_0xbfadba(0x180)])==null?0x0:_0x3f502f)-_0x58853b[_0xbfadba(0x180)];_0x169780[_0xbfadba(0x2a8)]=_0x34af90[_0xbfadba(0x1aa)]+_0xabcc4e,_0x169780['top']=_0x34af90['startY']+_0x2fb1ce;}else _0x169780[_0xbfadba(0x2a8)]=_0x34af90==null?void 0x0:_0x34af90['startX'],_0x169780[_0xbfadba(0x180)]=_0x34af90==null?void 0x0:_0x34af90[_0xbfadba(0x20c)];}return{'transform':_0x169780,'sheetTransform':(_0x1cc4a2=_0x2d6891(_0x169780,_0x4c1191))==null?_0x451c27:_0x1cc4a2};}};cr=Y([J(0x0,_0x697169(_0x567ef5)),J(0x1,_0x697169(_0x3bf064)),J(0x2,_0x697169(_0x513fd6)),J(0x3,_0x697169(_0x5486d2)),J(0x4,_0x697169(_0x590913))],cr);var lr=class extends _0x647470{constructor(_0x18148d,_0x11f00c){const _0xf53b14=_0x1ed313;super(_0x18148d,_0x11f00c),q(this,_0xf53b14(0x13c),null),q(this,_0xf53b14(0x258),null),q(this,_0xf53b14(0x2a6),null),q(this,'_subUnitId',null),q(this,_0xf53b14(0x171),!0x1),_0x11f00c&&this[_0xf53b14(0x27b)](_0x11f00c);}[_0x1ed313(0x249)](){const _0x25f587=_0x1ed313;return{'unitId':this[_0x25f587(0x2a6)],'subUnitId':this[_0x25f587(0x1ce)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x5380d5){const _0x418402=_0x1ed313;_0x5380d5['shapeId']!==void 0x0&&(this[_0x418402(0x13c)]=_0x5380d5['shapeId']),_0x5380d5[_0x418402(0xae)]!==void 0x0&&(this[_0x418402(0x2a6)]=_0x5380d5['unitId']),_0x5380d5[_0x418402(0x210)]!==void 0x0&&(this[_0x418402(0x1ce)]=_0x5380d5[_0x418402(0x210)]),_0x5380d5[_0x418402(0x19e)]!==void 0x0&&(this[_0x418402(0x171)]=_0x5380d5[_0x418402(0x19e)]),this[_0x418402(0x10e)]({'width':_0x5380d5['width'],'height':_0x5380d5['height']});}['_draw'](_0x116d40){const _0x27edfd=_0x1ed313;_0x103453[_0x27edfd(0x2fb)](_0x116d40,{'radius':_0x42c7e9[_0x27edfd(0x1c7)],'fill':_0x42c7e9['cxnPointFill'],'stroke':_0x42c7e9[_0x27edfd(0x1cf)],'strokeWidth':_0x42c7e9[_0x27edfd(0x225)],'evented':!0x0});}};let ur=class extends _0x17a082{constructor(_0x3fc23f,_0x5367fa,_0x1427ed,_0x4e4c46,_0x5d9f28,_0x256c64,_0x1d85e4,_0x32c6bf){const _0x10000b=_0x1ed313;super(),this[_0x10000b(0x2a2)]=_0x3fc23f,this[_0x10000b(0x1df)]=_0x5367fa,this['_renderManagerService']=_0x1427ed,this[_0x10000b(0x1b5)]=_0x4e4c46,this['_univerInstanceService']=_0x5d9f28,this[_0x10000b(0x219)]=_0x256c64,this[_0x10000b(0x299)]=_0x1d85e4,this[_0x10000b(0xfd)]=_0x32c6bf,q(this,_0x10000b(0x136),void 0x0),q(this,_0x10000b(0x2a6),void 0x0),q(this,_0x10000b(0x1ce),void 0x0),q(this,_0x10000b(0x28b),[]),q(this,_0x10000b(0x111),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x10000b(0x25a),void 0x0),q(this,_0x10000b(0x282),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0x10000b(0x254),!0x1),q(this,_0x10000b(0xfa),void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,_0x10000b(0xc8),null),this['_initialize']();}[_0x1ed313(0x292)](){const _0x6852f2=_0x1ed313;this['_registerDrawingFocusChangeHandler'](),this[_0x6852f2(0x2c1)]();}[_0x1ed313(0x18e)](){const _0x41af8e=_0x1ed313;if(!this[_0x41af8e(0x2a6)]||!this[_0x41af8e(0x1ce)]||!this['_activeShapeId'])return;let _0x214260={'unitId':this['_unitId'],'subUnitId':this[_0x41af8e(0x1ce)],'drawingId':this['_activeShapeId']},{transform:_0xf5b7c2}=this['_drawingManagerService'][_0x41af8e(0x2fc)](_0x214260);if(_0xf5b7c2)return{'left':_0xf5b7c2[_0x41af8e(0x2a8)]||0x0,'top':_0xf5b7c2['top']||0x0,'width':_0xf5b7c2[_0x41af8e(0x2ed)]||0x0,'height':_0xf5b7c2[_0x41af8e(0x24e)]||0x0,'flipX':_0xf5b7c2[_0x41af8e(0x14c)]||!0x1,'flipY':_0xf5b7c2['flipY']||!0x1,'angle':_0xf5b7c2[_0x41af8e(0x2f1)]};}['_addShapeConnectorHandlerObjects'](){const _0xb0387e=_0x1ed313;if(this[_0xb0387e(0x2a6)]===void 0x0||this['_subUnitId']===void 0x0||this[_0xb0387e(0x136)]===void 0x0)return;let _0x342f16=this['_renderManagerService'][_0xb0387e(0x187)](this[_0xb0387e(0x2a6)]);if(!_0x342f16||!_0x342f16[_0xb0387e(0x1e4)](_0x48e10a)[_0xb0387e(0x13e)]())return;let {scene:_0x2ce48d}=_0x342f16,_0x33275e=this[_0xb0387e(0x18e)]();if(!_0x33275e)return;let _0x3857ce=this[_0xb0387e(0x219)][_0xb0387e(0x16c)](this[_0xb0387e(0x2a6)],this[_0xb0387e(0x1ce)],this[_0xb0387e(0x136)]);if(!_0x3857ce||!_0x5cb95b(_0x3857ce['getShapeType']()))return;let _0x2340db=_0x3857ce['getConnectorLinePoints']();if(_0x2340db[_0xb0387e(0x2b4)]<0x2)return;let _0x25b684=new _0x397de9(_0x33275e),_0x391ea2=_0x2340db[0x0],_0x224c00=_0x2340db[_0x2340db[_0xb0387e(0x2b4)]-0x1],_0x1270cf=_0x25b684[_0xb0387e(0x165)](_0x391ea2),_0x24477b=_0x25b684[_0xb0387e(0x165)](_0x224c00);this[_0xb0387e(0x283)](_0x2ce48d,{..._0x1270cf},!0x0),this['_addShapeConnectorHandlerObject'](_0x2ce48d,{..._0x24477b},!0x1);}[_0x1ed313(0x283)](_0x2915d5,_0x3820fb,_0x51843c){const _0x837f49=_0x1ed313;if(this[_0x837f49(0x136)]===void 0x0||this['_unitId']===void 0x0||this[_0x837f49(0x1ce)]===void 0x0)return;let _0xc76db5=_0x837f49(0x12e)+this['_unitId']+'-'+this[_0x837f49(0x1ce)]+'-'+this[_0x837f49(0x136)]+'-'+(_0x51843c?_0x837f49(0x1e7):_0x837f49(0x2db)),_0x1becac=_0x2915d5['getObjectIncludeInGroup'](_0xc76db5);if(_0x1becac){_0x1becac[_0x837f49(0x10e)]({'left':_0x3820fb['x']-_0x42c7e9[_0x837f49(0x1c7)],'top':_0x3820fb['y']-_0x42c7e9['cxnPointRadius']});return;}let _0xc53fce=new lr(_0xc76db5,{'left':_0x3820fb['x']-_0x42c7e9[_0x837f49(0x1c7)],'top':_0x3820fb['y']-_0x42c7e9[_0x837f49(0x1c7)],'shapeId':this[_0x837f49(0x136)],'unitId':this[_0x837f49(0x2a6)],'subUnitId':this[_0x837f49(0x1ce)],'isStartConnectorPoint':_0x51843c,'width':_0x42c7e9[_0x837f49(0x1c7)]*0x2,'height':_0x42c7e9['cxnPointRadius']*0x2,'zIndex':_0x72823c+0x1,'evented':!0x0});this[_0x837f49(0x28b)][_0x837f49(0x2b9)](_0xc53fce),this[_0x837f49(0x13d)](_0xc53fce,_0x2915d5,_0x51843c),_0x2915d5[_0x837f49(0x14d)](_0xc53fce,_0x72823c+0x1);}[_0x1ed313(0x2d2)](_0x1ffdf0,_0x13dd3c){const _0x5ae844=_0x1ed313;var _0xf4ce23;let _0x5801f5={'x':0x0,'y':0x0};if(!_0x1ffdf0||!_0x13dd3c)return _0x5801f5;let _0x1e4dc4=this[_0x5ae844(0x15b)][_0x5ae844(0x187)](_0x1ffdf0);if(!_0x1e4dc4||!_0x1e4dc4['with'](_0x48e10a)['getSkeleton'](_0x13dd3c))return _0x5801f5;let _0x562786=_0x1e4dc4[_0x5ae844(0x1e4)](_0x55a101),_0x240257=_0x562786==null?void 0x0:_0x562786[_0x5ae844(0x21a)]();if(!_0x240257)return _0x5801f5;let _0x444f9a=(_0xf4ce23=this[_0x5ae844(0x2a5)][_0x5ae844(0x25f)](_0x1ffdf0))==null?void 0x0:_0xf4ce23[_0x5ae844(0x129)](_0x13dd3c);if(!_0x444f9a)return _0x5801f5;let _0x3ba453=_0x4b381d(_0x240257[_0x5ae844(0xf0)],_0x240257['sheetViewStartColumn'],_0x1e4dc4[_0x5ae844(0xdb)],_0x444f9a);return _0x3ba453?{'x':_0x3ba453[_0x5ae844(0x153)],'y':_0x3ba453[_0x5ae844(0x1f2)]}:_0x5801f5;}[_0x1ed313(0x2e5)](_0x5d22f1,_0x2ff10b){const _0x1a741f=_0x1ed313;var _0x441f48,_0x3ec632;let _0x9e43d1=(_0x441f48=this['_univerInstanceService'][_0x1a741f(0x25f)](_0x5d22f1))==null?void 0x0:_0x441f48[_0x1a741f(0x129)](_0x2ff10b);return(_0x3ec632=_0x9e43d1==null?void 0x0:_0x9e43d1[_0x1a741f(0x138)]())==null?0x1:_0x3ec632;}[_0x1ed313(0xec)](_0x30c11f,_0x5f1337,_0x2e4695,_0xf4012d,_0x43c1e6){const _0x268fbf=_0x1ed313;this[_0x268fbf(0xfa)]['unsubscribe'](),this[_0x268fbf(0x2e2)][_0x268fbf(0xcf)](),this[_0x268fbf(0x299)][_0x268fbf(0x2e8)]();let _0x1f935e=this[_0x268fbf(0xc8)];this[_0x268fbf(0xfd)]['endConnectionDetection']();let _0x4ae47b=this[_0x268fbf(0x2d2)](this[_0x268fbf(0x2a6)],this[_0x268fbf(0x1ce)]),_0x121541=this['_getZoomRatio'](this[_0x268fbf(0x2a6)],this[_0x268fbf(0x1ce)]),_0x38cc0a={'x':_0x2e4695[_0x268fbf(0x22b)]/_0x121541+_0x4ae47b['x'],'y':_0x2e4695[_0x268fbf(0x133)]/_0x121541+_0x4ae47b['y']},_0x5417b1=_0x1f935e?_0x1f935e[_0x268fbf(0x161)]:_0x38cc0a,_0x2d34d6=_0xf4012d?this[_0x268fbf(0x25a)][_0x268fbf(0x1f7)]():this[_0x268fbf(0x25a)][_0x268fbf(0x26e)](),_0x458e15=this[_0x268fbf(0x25a)][_0x268fbf(0x1f1)]();_0x2d34d6?this[_0x268fbf(0x2b2)](_0x2d34d6,_0x5417b1,_0xf4012d,_0x1f935e,_0x43c1e6):this['_handleFreeEndpointPointerUp'](_0x5f1337,_0x5417b1,_0xf4012d,_0x1f935e,_0x43c1e6,_0x458e15),this[_0x268fbf(0x282)]=!0x1,this['_hasReset']=!0x1,this[_0x268fbf(0xc8)]=null,_0x30c11f[_0x268fbf(0x17c)]();}[_0x1ed313(0x128)](_0x5dbf53,_0x2b4682,_0x511dfe,_0x2ea100,_0x3192a9,_0x3be1d4){const _0x1663da=_0x1ed313;let _0x398fa4=_0x3be1d4===_0x54d8d8[_0x1663da(0x248)]||_0x3be1d4===_0x54d8d8[_0x1663da(0x1fe)],_0x24b066=_0x511dfe?_0x2b4682:_0x5dbf53,_0x31775b=_0x511dfe?_0x5dbf53:_0x2b4682,_0x20af73=this[_0x1663da(0x25a)][_0x1663da(0xac)](),_0x2302a1=_0x10e5ba(this[_0x1663da(0x25a)]['getShapeType']()),_0x54641f=_0x397de9[_0x1663da(0x2a9)](_0x20af73,_0x2302a1),_0x55de87=_0x398fa4?_0x397de9['computeStraightConnectorLayout'](_0x24b066,_0x31775b):_0x397de9['computeConnectorResizeLayout'](_0x5dbf53,_0x2b4682,_0x511dfe,_0x54641f);_0x2ea100?this[_0x1663da(0xd2)](_0x55de87,_0x2ea100,_0x511dfe,_0x3192a9):this[_0x1663da(0x288)](_0x55de87,_0x3192a9);}[_0x1ed313(0x2b2)](_0x516ffa,_0x80664e,_0x14b477,_0x51cdd5,_0x29a899){const _0x5e04df=_0x1ed313;let _0x404e99=this[_0x5e04df(0x1e9)](_0x516ffa);if(!_0x404e99)return;let _0x48bca6=_0x51cdd5?_0x51cdd5['angle']:this[_0x5e04df(0x1a1)](_0x404e99['point'],_0x80664e),_0x1bbdb3;if(_0x51cdd5){let _0x346bcf=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x51cdd5[_0x5e04df(0xae)],'subUnitId':_0x51cdd5[_0x5e04df(0x210)],'drawingId':_0x51cdd5[_0x5e04df(0x2ce)]});if(_0x346bcf!=null&&_0x346bcf[_0x5e04df(0x131)]){let {left:_0x439534=0x0,top:_0x3bf5ce=0x0,width:_0x5fccf2=0x0,height:_0xd8c59d=0x0,angle:_0x42e4cd}=_0x346bcf[_0x5e04df(0x131)];_0x1bbdb3=_0x3313a8({'left':_0x439534,'top':_0x3bf5ce,'width':_0x5fccf2,'height':_0xd8c59d},_0x42e4cd||0x0);}else _0x1bbdb3={'left':_0x80664e['x'],'top':_0x80664e['y'],'width':0x0,'height':0x0};}else _0x1bbdb3={'left':_0x80664e['x'],'top':_0x80664e['y'],'width':0x0,'height':0x0};let _0x3c79ec={'point':_0x80664e,'angle':_0x48bca6,'bounds':_0x1bbdb3},_0x4e38cf=_0x14b477?_0x3c79ec:_0x404e99,_0x21e2e0=_0x14b477?_0x404e99:_0x3c79ec,_0xbd91d=this[_0x5e04df(0x25a)][_0x5e04df(0x1f1)](),_0x576275=_0x36ebbb(_0x4e38cf,_0x21e2e0,_0xbd91d);this[_0x5e04df(0x25a)][_0x5e04df(0xf5)]();let _0x41d071=_0x9e1c6d(_0x576275,_0xbd91d);_0x51cdd5?this['_executeConnectedRouteConnectionCommand'](_0x41d071,_0x51cdd5,_0x516ffa,_0x14b477,_0x29a899):this[_0x5e04df(0x109)](_0x41d071,_0x516ffa,_0x14b477,_0x29a899);}[_0x1ed313(0xd2)](_0x3517e4,_0x258e5b,_0x2ed506,_0x2450cc){const _0x19ccb0=_0x1ed313;let _0x13d140=this[_0x19ccb0(0x25a)][_0x19ccb0(0x11c)]()['relation'],_0x487b7b={..._0x13d140},_0x2bade4={'shapeId':_0x258e5b[_0x19ccb0(0x2ce)],'cxnIndex':_0x258e5b[_0x19ccb0(0x2bf)]};_0x2ed506?_0x487b7b[_0x19ccb0(0x22a)]=_0x2bade4:_0x487b7b['to']=_0x2bade4;let _0x3618ef=this[_0x19ccb0(0x25a)][_0x19ccb0(0x1f1)](),_0x411c48=_0x9e1c6d(_0x3517e4[_0x19ccb0(0x279)],_0x3618ef),_0x20ce65={'unitId':this[_0x19ccb0(0x2a6)],'subUnitId':this[_0x19ccb0(0x1ce)],'connectorShapeId':this[_0x19ccb0(0x136)],'width':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x2ed)],'height':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x24e)],'left':_0x3517e4[_0x19ccb0(0x2a0)]['left'],'top':_0x3517e4[_0x19ccb0(0x2a0)][_0x19ccb0(0x180)],'flipX':_0x3517e4[_0x19ccb0(0x2a0)]['flipX']||!0x1,'flipY':_0x3517e4['worldRect'][_0x19ccb0(0x209)]||!0x1,'newAdjustValues':_0x411c48['adjustValues'],'oldAdjustValues':_0x2450cc,'oldRelation':_0x13d140,'newRelation':_0x487b7b,'newLineType':_0x411c48[_0x19ccb0(0x132)],'oldLineType':_0x3618ef};this[_0x19ccb0(0x1df)][_0x19ccb0(0x12c)](_0x31e98d['id'],_0x20ce65);}[_0x1ed313(0x288)](_0x5a4395,_0x5b717d){const _0x35e32f=_0x1ed313;let _0x236102=this[_0x35e32f(0x25a)][_0x35e32f(0x1f1)](),_0xc227a2=_0x9e1c6d(_0x5a4395[_0x35e32f(0x279)],_0x236102),_0x52dd80={'unitId':this[_0x35e32f(0x2a6)],'subUnitId':this[_0x35e32f(0x1ce)],'shapeId':this[_0x35e32f(0x136)],'width':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x2ed)],'height':_0x5a4395[_0x35e32f(0x2a0)]['height'],'left':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x2a8)],'top':_0x5a4395[_0x35e32f(0x2a0)][_0x35e32f(0x180)],'flipX':_0x5a4395[_0x35e32f(0x2a0)]['flipX']||!0x1,'flipY':_0x5a4395['worldRect'][_0x35e32f(0x209)]||!0x1,'angle':_0x5a4395[_0x35e32f(0x2a0)]['angle']||0x0,'newAdjustValues':_0xc227a2[_0x35e32f(0x206)],'oldAdjustValues':_0x5b717d,'newLineType':_0xc227a2[_0x35e32f(0x132)],'oldLineType':_0x236102};this[_0x35e32f(0x1df)]['executeCommand'](_0x6953a0['id'],_0x52dd80);}[_0x1ed313(0x214)](_0x20e129,_0x41f667,_0x3215d6,_0xb6f295,_0x43d4a9){const _0x5a5ac6=_0x1ed313;let _0xd65938=this[_0x5a5ac6(0x25a)]['getShapeData']()[_0x5a5ac6(0x158)],_0x542677={..._0xd65938},_0xc8399={'shapeId':_0x41f667[_0x5a5ac6(0x2ce)],'cxnIndex':_0x41f667[_0x5a5ac6(0x2bf)]};_0xb6f295?(_0x542677[_0x5a5ac6(0x22a)]=_0xc8399,_0x542677['to']=_0x3215d6):(_0x542677[_0x5a5ac6(0x22a)]=_0x3215d6,_0x542677['to']=_0xc8399);let _0x1875d7={'unitId':this[_0x5a5ac6(0x2a6)],'subUnitId':this[_0x5a5ac6(0x1ce)],'connectorShapeId':this['_activeShapeId'],'width':_0x20e129[_0x5a5ac6(0x2a0)]['width'],'height':_0x20e129['worldRect']['height'],'left':_0x20e129['worldRect'][_0x5a5ac6(0x2a8)],'top':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x180)],'flipX':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x14c)]||!0x1,'flipY':_0x20e129[_0x5a5ac6(0x2a0)][_0x5a5ac6(0x209)]||!0x1,'oldAdjustValues':_0x43d4a9,'newAdjustValues':_0x20e129['adjustValues'],'newLineType':_0x20e129['lineType'],'rotation':_0x20e129['rotation'],'oldRelation':_0xd65938,'newRelation':_0x542677};this['_commandService'][_0x5a5ac6(0x12c)](_0x31e98d['id'],_0x1875d7);}[_0x1ed313(0x109)](_0x2b3efd,_0x1e71a6,_0x3e9e4,_0x4bb382){const _0x5e80bf=_0x1ed313;let _0x19de06=this[_0x5e80bf(0x25a)][_0x5e80bf(0x11c)]()[_0x5e80bf(0x158)],_0x55892c={};_0x3e9e4?(_0x55892c['to']=_0x1e71a6,_0x55892c[_0x5e80bf(0x22a)]=void 0x0):(_0x55892c['from']=_0x1e71a6,_0x55892c['to']=void 0x0);let _0x262d85={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5e80bf(0x136)],'width':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x2ed)],'height':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x24e)],'left':_0x2b3efd['worldRect']['left'],'top':_0x2b3efd[_0x5e80bf(0x2a0)]['top'],'flipX':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x14c)]||!0x1,'flipY':_0x2b3efd[_0x5e80bf(0x2a0)][_0x5e80bf(0x209)]||!0x1,'oldAdjustValues':_0x4bb382,'newAdjustValues':_0x2b3efd[_0x5e80bf(0x206)],'newLineType':_0x2b3efd['lineType'],'rotation':_0x2b3efd['rotation'],'oldRelation':_0x19de06,'newRelation':_0x55892c};this[_0x5e80bf(0x1df)][_0x5e80bf(0x12c)](_0x31e98d['id'],_0x262d85);}[_0x1ed313(0x13d)](_0x3d79a1,_0x35664e,_0xb811fc){const _0x5c4b41=_0x1ed313;this['disposeWithMe'](_0x11cfa6(_0x3d79a1[_0x5c4b41(0x1bb)]['subscribeEvent']((_0x2986cf,_0x264cba)=>{const _0x390957=_0x5c4b41;let _0x5974d0=_0x3d79a1[_0x390957(0x249)]();if(this[_0x390957(0x25a)]=this['_sheetsShapeService']['getShapeModel'](_0x5974d0[_0x390957(0xae)],_0x5974d0[_0x390957(0x210)],_0x5974d0[_0x390957(0xb2)]),!this[_0x390957(0x25a)])return;let _0x32130e={};this[_0x390957(0x25a)]['getAdjustNames']()[_0x390957(0x190)](_0x5b6fa9=>{const _0x41353b=_0x390957;let _0x1a05fa=this[_0x41353b(0x25a)]['getAdjustValueByName'](_0x5b6fa9);_0x1a05fa!==void 0x0&&(_0x32130e[_0x5b6fa9]=_0x1a05fa);});let _0x8c0da8=this[_0x390957(0x18e)]();if(!_0x8c0da8)return;this[_0x390957(0x111)]={..._0x8c0da8};let _0x38a8c8=new _0x397de9(this[_0x390957(0x111)]),_0x2b9d0e=_0x45a0e1({'unitId':this[_0x390957(0x2a6)],'subUnitId':this[_0x390957(0x1ce)],'drawingId':this[_0x390957(0x136)]}),_0x3b279a=_0x35664e['getObjectIncludeInGroup'](_0x2b9d0e);this[_0x390957(0x282)]=!0x0,_0x35664e[_0x390957(0x255)](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x35664e,this[_0x390957(0x2a6)],this[_0x390957(0x1ce)],this['_activeShapeId']),this[_0x390957(0xc8)]=null;let _0x15d59e=this[_0x390957(0x25a)][_0x390957(0xac)](),_0x5184b1=_0x15d59e[0x0],_0x5d5fb4=_0x15d59e[_0x15d59e['length']-0x1],_0x4713d0=_0xb811fc?_0x38a8c8[_0x390957(0x165)](_0x5d5fb4):_0x38a8c8['localToWorld'](_0x5184b1);this[_0x390957(0xfa)]=_0x35664e[_0x390957(0xc6)][_0x390957(0x226)]((_0x2b63e5,_0x5cf2e4)=>{const _0x2bf01e=_0x390957;if(!this[_0x2bf01e(0x282)]||!this[_0x2bf01e(0x25a)])return;this[_0x2bf01e(0x254)]||(this['_sheetShapeAdjustController'][_0x2bf01e(0x1f0)](),this[_0x2bf01e(0x25a)][_0x2bf01e(0x1d3)](),this[_0x2bf01e(0x254)]=!0x0);let _0x2f1e59=this[_0x2bf01e(0x2d2)](this[_0x2bf01e(0x2a6)],this[_0x2bf01e(0x1ce)]),_0x649231=this[_0x2bf01e(0x2e5)](this[_0x2bf01e(0x2a6)],this[_0x2bf01e(0x1ce)]),_0x324bbe={'x':_0x2b63e5[_0x2bf01e(0x22b)]/_0x649231+_0x2f1e59['x'],'y':_0x2b63e5['offsetY']/_0x649231+_0x2f1e59['y']},_0x1e36ee=this[_0x2bf01e(0xfd)]['updateConnectionDetection'](_0x324bbe);if(_0x1e36ee){let {shapeId:_0x5af43,unitId:_0x1a0feb,subUnitId:_0xfc84fb}=_0x1e36ee;if(_0x5af43&&_0x1a0feb&&_0xfc84fb){let _0xb39ff=_0x45a0e1({'unitId':_0x1a0feb,'subUnitId':_0xfc84fb,'drawingId':_0x5af43});_0x1e36ee[_0x2bf01e(0x2f1)]=(_0x35664e['getObjectIncludeInGroup'](_0xb39ff)[_0x2bf01e(0x2f1)]||0x0)+_0x1e36ee[_0x2bf01e(0x2f1)];}}this['_currentConnectionTarget']=_0x1e36ee;let _0x5116d6=_0xb811fc?this[_0x2bf01e(0x25a)]['getEndConnectInfo']():this[_0x2bf01e(0x25a)][_0x2bf01e(0x26e)]();if(_0x5116d6){this[_0x2bf01e(0x13b)](_0x5116d6,_0x324bbe,_0xb811fc,_0x3b279a,_0x3d79a1);return;}this[_0x2bf01e(0x114)](_0x324bbe,_0x4713d0,_0xb811fc,_0x3b279a,_0x3d79a1);}),this[_0x390957(0x2e2)]=_0x35664e['onPointerUp$'][_0x390957(0x226)]((_0x448d2a,_0x4a4b0f)=>{const _0x550ce2=_0x390957;this[_0x550ce2(0xec)](_0x35664e,_0x4713d0,_0x448d2a,_0xb811fc,_0x32130e);}),_0x264cba[_0x390957(0x1f3)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x779228,_0x3065b0,_0x295799){const _0x502e66=_0x1ed313;let _0x2e6e18=this[_0x502e66(0x219)][_0x502e66(0xa6)](_0x779228,_0x3065b0,_0x295799);if(!_0x2e6e18||_0x2e6e18[_0x502e66(0x2b4)]===0x0)return;let _0x83c634=this[_0x502e66(0x15b)][_0x502e66(0x187)](_0x779228);if(!_0x83c634)return;let {scene:_0x1335cf}=_0x83c634;for(let _0x555c63 of _0x2e6e18){let _0x4745a3=_0x555c63[_0x502e66(0x1a3)],_0x550db3=this[_0x502e66(0x219)][_0x502e66(0x16c)](_0x779228,_0x3065b0,_0x4745a3);if(!_0x550db3)continue;let _0x54f4c2=_0x550db3[_0x502e66(0x26e)](),_0x537fd2=_0x550db3[_0x502e66(0x1f7)](),_0xfa0dcc=(_0x54f4c2==null?void 0x0:_0x54f4c2[_0x502e66(0x2ce)])===_0x295799,_0x2f457e=_0x45a0e1({'unitId':_0x779228,'subUnitId':_0x3065b0,'drawingId':_0x4745a3}),_0x9438a8=_0x1335cf[_0x502e66(0x2aa)](_0x2f457e);if(!_0x9438a8)continue;let _0x62227d=this[_0x502e66(0x1b5)][_0x502e66(0x2fc)]({'unitId':_0x779228,'subUnitId':_0x3065b0,'drawingId':_0x4745a3});_0x62227d!=null&&_0x62227d['transform']&&(_0x54f4c2&&_0x537fd2?this[_0x502e66(0x2dd)](_0x779228,_0x3065b0,_0x4745a3,_0x550db3,_0x54f4c2,_0x537fd2,_0x9438a8):this[_0x502e66(0x159)](_0x779228,_0x3065b0,_0x4745a3,_0x550db3,_0xfa0dcc?_0x54f4c2:_0x537fd2,_0xfa0dcc,_0x62227d,_0x9438a8));}}[_0x1ed313(0x2dd)](_0x13f354,_0x252294,_0x402f90,_0x1eb449,_0x219209,_0x5d5336,_0xd536a5){const _0x4bdcf5=_0x1ed313;let _0x15b425=this[_0x4bdcf5(0x2a6)],_0x272814=this['_subUnitId'];this[_0x4bdcf5(0x2a6)]=_0x13f354,this[_0x4bdcf5(0x1ce)]=_0x252294;let _0x1ac3ce=this[_0x4bdcf5(0x1e9)](_0x219209),_0x3a3d13=this['_getConnectPointInfo'](_0x5d5336);if(this[_0x4bdcf5(0x2a6)]=_0x15b425,this['_subUnitId']=_0x272814,!_0x1ac3ce||!_0x3a3d13)return;let _0x3cd7b4=_0x1eb449[_0x4bdcf5(0x1f1)](),_0x4fd515=_0x36ebbb(_0x1ac3ce,_0x3a3d13,_0x3cd7b4);_0x4fd515&&_0x1eb449[_0x4bdcf5(0x263)](_0x4fd515);let _0x3170cd=_0x9e1c6d(_0x4fd515,_0x3cd7b4);_0x3170cd['lineType']!==_0x3cd7b4&&_0x1eb449[_0x4bdcf5(0x1be)](_0x3170cd[_0x4bdcf5(0x132)]),_0x1eb449[_0x4bdcf5(0x1d3)]();for(let [_0x3bd861,_0x3f2e5a]of Object['entries'](_0x3170cd['adjustValues']))_0x1eb449['setAdjustValueByName'](_0x3bd861,_0x3f2e5a);_0x1eb449[_0x4bdcf5(0x127)]({'width':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x2ed)],'height':_0x3170cd['worldRect'][_0x4bdcf5(0x24e)]}),_0xd536a5['transformByState']({'flipX':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x14c)],'flipY':_0x3170cd['worldRect'][_0x4bdcf5(0x209)],'left':_0x3170cd['worldRect'][_0x4bdcf5(0x2a8)],'top':_0x3170cd[_0x4bdcf5(0x2a0)]['top'],'width':_0x3170cd[_0x4bdcf5(0x2a0)][_0x4bdcf5(0x2ed)],'height':_0x3170cd[_0x4bdcf5(0x2a0)]['height'],'angle':_0x3170cd[_0x4bdcf5(0x262)]}),_0x1eb449[_0x4bdcf5(0xf5)]();}[_0x1ed313(0x159)](_0x42c1c1,_0x36c067,_0x164b42,_0x31df2f,_0x1eaabf,_0x34ea6e,_0x15e3c4,_0x47f93e){const _0x2c9202=_0x1ed313;let _0x54c91f=this[_0x2c9202(0x2a6)],_0x4e1a3c=this[_0x2c9202(0x1ce)];this[_0x2c9202(0x2a6)]=_0x42c1c1,this[_0x2c9202(0x1ce)]=_0x36c067;let _0x26f7be=this['_getConnectPointInfo'](_0x1eaabf);if(this['_unitId']=_0x54c91f,this[_0x2c9202(0x1ce)]=_0x4e1a3c,!_0x26f7be)return;let {left:_0x1be4fa=0x0,top:_0x5d2e2c=0x0,width:_0x11908d=0x0,height:_0x483ddf=0x0,flipX:_0x9008dc=!0x1,flipY:_0x488894=!0x1}=_0x15e3c4['transform'],_0x1d4b9d=_0x31df2f[_0x2c9202(0xac)]();if(_0x1d4b9d[_0x2c9202(0x2b4)]<0x2)return;let _0x15ac88=new _0x397de9({'left':_0x1be4fa,'top':_0x5d2e2c,'width':_0x11908d,'height':_0x483ddf,'flipX':_0x9008dc,'flipY':_0x488894}),_0x2d0b46=_0x34ea6e?_0x1d4b9d[_0x1d4b9d[_0x2c9202(0x2b4)]-0x1]:_0x1d4b9d[0x0],_0x343b86=_0x15ac88['localToWorld'](_0x2d0b46),_0x3de4a8=_0x397de9[_0x2c9202(0x160)](_0x343b86,_0x26f7be[_0x2c9202(0xf9)],!_0x34ea6e);_0x47f93e[_0x2c9202(0x10e)]({'flipX':_0x3de4a8['worldRect'][_0x2c9202(0x14c)],'flipY':_0x3de4a8['worldRect'][_0x2c9202(0x209)],'left':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x2a8)],'top':_0x3de4a8['worldRect'][_0x2c9202(0x180)],'width':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x2ed)],'height':_0x3de4a8[_0x2c9202(0x2a0)][_0x2c9202(0x24e)],'angle':_0x3de4a8['worldRect'][_0x2c9202(0x2f1)]}),_0x47f93e[_0x2c9202(0x1b9)](!0x0);}[_0x1ed313(0x291)](){const _0x256386=_0x1ed313;this[_0x256386(0x28b)][_0x256386(0x2b4)]!==0x0&&(this[_0x256386(0x28b)][_0x256386(0x190)](_0x172098=>{const _0x25b8f5=_0x256386;_0x172098[_0x25b8f5(0x230)]();}),this[_0x256386(0x28b)]=[]);}[_0x1ed313(0x2c1)](){const _0x5a2c28=_0x1ed313;let _0x4682ac=this[_0x5a2c28(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x5a2c28(0x26b)]);this[_0x5a2c28(0xf6)](_0x4682ac['pipe'](_0x324807(_0x4de7cf=>_0x4de7cf?_0x4de7cf[_0x5a2c28(0xbb)]['pipe'](_0x324807(_0x41c5bc=>{const _0x16af36=_0x5a2c28;if(!_0x41c5bc)return _0x269514;let _0x17b973=_0x4de7cf['getUnitId'](),_0x1a2225=this[_0x16af36(0x15b)]['getRenderById'](_0x17b973),_0x5d6a4c=_0x1a2225==null?void 0x0:_0x1a2225[_0x16af36(0xdb)];return _0x5d6a4c?_0x3e45e3(_0x5d6a4c):_0x269514;})):_0x269514))[_0x5a2c28(0x1f9)](_0x44e668=>{const _0x361974=_0x5a2c28;let _0x432e1e=_0x44e668['getTransformerByCreate']();this[_0x361974(0xf6)](_0x44e668['onPointerMove$']['subscribeEvent'](_0x1d652c=>{const _0x5bd0b8=_0x361974;this[_0x5bd0b8(0x1e6)]&&this[_0x5bd0b8(0x136)]&&this[_0x5bd0b8(0x291)]();})),this[_0x361974(0xf6)](_0x432e1e[_0x361974(0x286)][_0x361974(0x1f9)](_0x299e28=>{const _0x521851=_0x361974;let {objects:_0x5d1533}=_0x299e28;this[_0x521851(0x291)](),_0x5d1533!==null&&_0x5d1533[_0x521851(0x134)]===0x1&&_0x5d1533['values']()[_0x521851(0x23e)]()[_0x521851(0xcc)]instanceof vn&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x361974(0xf6)](_0x432e1e['changing$'][_0x361974(0x1f9)](_0x377d0a=>{const _0x3fe19f=_0x361974;this[_0x3fe19f(0x1e6)]&&this[_0x3fe19f(0x291)]();})),this['disposeWithMe'](_0x44e668[_0x361974(0x151)][_0x361974(0x226)](()=>{const _0x5cff3d=_0x361974;this['_isDrawingShapePointDown']&&(this[_0x5cff3d(0x1e6)]=!0x1,this[_0x5cff3d(0x2b8)]());})),this[_0x361974(0xf6)](_0x432e1e[_0x361974(0x1d4)][_0x361974(0x1f9)](()=>{const _0x43ea96=_0x361974;this[_0x43ea96(0x2a6)]&&this[_0x43ea96(0x1ce)]&&this[_0x43ea96(0x136)]&&this[_0x43ea96(0x1b5)][_0x43ea96(0x2fc)]({'unitId':this[_0x43ea96(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x43ea96(0x136)]})&&(this[_0x43ea96(0x291)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x1ed313(0x17e)](){const _0x5ca26d=_0x1ed313;this['disposeWithMe'](this[_0x5ca26d(0x1b5)][_0x5ca26d(0x243)][_0x5ca26d(0x1f9)](_0x44d9c9=>{const _0x483c7e=_0x5ca26d;if(_0x44d9c9[_0x483c7e(0x2b4)]===0x1){let _0x3f76e2=_0x44d9c9[0x0];if(_0x3f76e2[_0x483c7e(0x1b7)]===_0x14c67a[_0x483c7e(0x141)]){let _0x35f9b9=this['_sheetsShapeService'][_0x483c7e(0x16c)](_0x3f76e2['unitId'],_0x3f76e2[_0x483c7e(0x210)],_0x3f76e2[_0x483c7e(0xb2)]);if(_0x35f9b9&&_0x5cb95b(_0x35f9b9[_0x483c7e(0x1f1)]())){this['_activeShapeId']=_0x3f76e2['drawingId'],this['_unitId']=_0x3f76e2[_0x483c7e(0xae)],this[_0x483c7e(0x1ce)]=_0x3f76e2[_0x483c7e(0x210)],this[_0x483c7e(0x291)](),this[_0x483c7e(0x2b8)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x483c7e(0x2a6)]=void 0x0,this[_0x483c7e(0x1ce)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](this[_0x5ca26d(0x1b5)][_0x5ca26d(0x164)][_0x5ca26d(0x1f9)](_0x345378=>{const _0x295b3e=_0x5ca26d;if(_0x345378[_0x295b3e(0x2b4)]===0x1){var _0x4f5ff7;let _0x4364a7=_0x345378[0x0],_0x431d53=(_0x4f5ff7=this[_0x295b3e(0x1b5)][_0x295b3e(0x2fc)](_0x4364a7))==null?void 0x0:_0x4f5ff7['drawingType'];_0x431d53===_0x14c67a[_0x295b3e(0x141)]&&_0x4364a7['drawingId']===this[_0x295b3e(0x136)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x295b3e(0x2b8)]()):!this['_activeShapeId']&&_0x431d53===_0x14c67a[_0x295b3e(0x141)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x4364a7[_0x295b3e(0xae)],_0x4364a7[_0x295b3e(0x210)],_0x4364a7[_0x295b3e(0xb2)]);}})),this[_0x5ca26d(0xf6)](this[_0x5ca26d(0x1b5)][_0x5ca26d(0xd4)][_0x5ca26d(0x1f9)](_0x577082=>{const _0x1e26ca=_0x5ca26d;for(let _0x2d79e4 of _0x577082){let {drawingId:_0x5d7949}=_0x2d79e4;if(this[_0x1e26ca(0x136)]===_0x5d7949){this[_0x1e26ca(0x1f5)]();return;}}}));}[_0x1ed313(0x13b)](_0x58373c,_0x26daa3,_0x2fcdea,_0x319764,_0x34ec49){const _0x20ec72=_0x1ed313;var _0x5de52c,_0x176f76;if(!this['_activeShapeModel'])return;let _0x3c40ac=this['_getConnectPointInfo'](_0x58373c);if(!_0x3c40ac)return;let _0xf37341=this[_0x20ec72(0xc8)]?this[_0x20ec72(0xc8)]['worldPoint']:_0x26daa3,_0x70a152=this[_0x20ec72(0xc8)]?this['_currentConnectionTarget'][_0x20ec72(0x2f1)]:this[_0x20ec72(0x1a1)](_0x3c40ac[_0x20ec72(0xf9)],_0xf37341),_0x477f04;if(this[_0x20ec72(0xc8)]){let _0x3f3311=this[_0x20ec72(0x1b5)][_0x20ec72(0x2fc)]({'unitId':this['_currentConnectionTarget'][_0x20ec72(0xae)],'subUnitId':this[_0x20ec72(0xc8)]['subUnitId'],'drawingId':this[_0x20ec72(0xc8)][_0x20ec72(0x2ce)]});if(_0x3f3311!=null&&_0x3f3311[_0x20ec72(0x131)]){let {left:_0x53b1e6=0x0,top:_0x45dcb3=0x0,width:_0x58b58c=0x0,height:_0x166792=0x0,angle:_0x1a883d}=_0x3f3311[_0x20ec72(0x131)];_0x477f04=_0x3313a8({'left':_0x53b1e6,'top':_0x45dcb3,'width':_0x58b58c,'height':_0x166792},_0x1a883d||0x0);}else _0x477f04={'left':_0xf37341['x'],'top':_0xf37341['y'],'width':0x0,'height':0x0};}else _0x477f04={'left':_0xf37341['x'],'top':_0xf37341['y'],'width':0x0,'height':0x0};let _0x2121e5={'point':_0xf37341,'angle':_0x70a152,'bounds':_0x477f04},_0x5e3484=_0x2fcdea?_0x2121e5:_0x3c40ac,_0x44731c=_0x2fcdea?_0x3c40ac:_0x2121e5,_0x15fe10=this['_activeShapeModel']['getShapeType'](),_0x1b45fa=_0x36ebbb(_0x5e3484,_0x44731c,_0x15fe10);_0x1b45fa&&this[_0x20ec72(0x25a)][_0x20ec72(0x263)](_0x1b45fa);let _0x173d20=_0x9e1c6d(_0x1b45fa,_0x15fe10);_0x173d20[_0x20ec72(0x132)]!==_0x15fe10&&this[_0x20ec72(0x25a)]['changeShapeType'](_0x173d20[_0x20ec72(0x132)]);for(let [_0x2aed30,_0xe196b7]of Object[_0x20ec72(0x1cc)](_0x173d20[_0x20ec72(0x206)]))this[_0x20ec72(0x25a)][_0x20ec72(0x130)](_0x2aed30,_0xe196b7);this['_activeShapeModel']['updateContext']({'width':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x2ed)],'height':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x24e)]}),_0x319764[_0x20ec72(0x10e)]({'flipX':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x14c)],'flipY':_0x173d20['worldRect'][_0x20ec72(0x209)],'left':_0x173d20['worldRect'][_0x20ec72(0x2a8)],'top':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x180)],'width':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x2ed)],'height':_0x173d20[_0x20ec72(0x2a0)][_0x20ec72(0x24e)],'angle':_0x173d20[_0x20ec72(0x262)]}),_0x319764[_0x20ec72(0x1b9)](!0x0);let _0x4a4534=(_0x5de52c=(_0x176f76=this['_currentConnectionTarget'])==null?void 0x0:_0x176f76[_0x20ec72(0x161)])==null?_0x26daa3:_0x5de52c;_0x34ec49['transformByState']({'left':_0x4a4534['x']-_0x42c7e9[_0x20ec72(0x1c7)],'top':_0x4a4534['y']-_0x42c7e9[_0x20ec72(0x1c7)]});}[_0x1ed313(0x114)](_0x2156fc,_0x100d29,_0x47f0b4,_0xc7e06b,_0x5b749f){const _0x1c409f=_0x1ed313;var _0x23a0f4,_0x4cefc4,_0x3e57d2,_0x556644;let _0x469d84=(_0x23a0f4=(_0x4cefc4=this['_currentConnectionTarget'])==null?void 0x0:_0x4cefc4[_0x1c409f(0x161)])==null?_0x2156fc:_0x23a0f4,_0x26a39e=_0x397de9[_0x1c409f(0x160)](_0x100d29,_0x469d84,_0x47f0b4);_0xc7e06b[_0x1c409f(0x10e)]({'flipX':_0x26a39e['worldRect'][_0x1c409f(0x14c)],'flipY':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x209)],'left':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2a8)],'top':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x180)],'width':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2ed)],'height':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x24e)],'angle':_0x26a39e[_0x1c409f(0x2a0)][_0x1c409f(0x2f1)]});let _0x258c72=(_0x3e57d2=(_0x556644=this[_0x1c409f(0xc8)])==null?void 0x0:_0x556644[_0x1c409f(0x161)])==null?_0x2156fc:_0x3e57d2;_0x5b749f[_0x1c409f(0x10e)]({'left':_0x258c72['x']-_0x42c7e9[_0x1c409f(0x1c7)],'top':_0x258c72['y']-_0x42c7e9['cxnPointRadius']});}[_0x1ed313(0x1e9)](_0x4bc9b8){const _0x27e776=_0x1ed313;if(!this[_0x27e776(0x2a6)]||!this[_0x27e776(0x1ce)])return null;let {shapeId:_0xd8726b,cxnIndex:_0x532759}=_0x4bc9b8,_0x51d404=this[_0x27e776(0x219)][_0x27e776(0x16c)](this['_unitId'],this['_subUnitId'],_0xd8726b);if(!_0x51d404)return null;let _0x596118=this[_0x27e776(0x1b5)][_0x27e776(0x2fc)]({'unitId':this[_0x27e776(0x2a6)],'subUnitId':this[_0x27e776(0x1ce)],'drawingId':_0xd8726b});if(!(_0x596118!=null&&_0x596118[_0x27e776(0x131)]))return null;let {left:_0x1b67fa=0x0,top:_0x487f8a=0x0,width:_0x3a6623=0x0,height:_0x14609e=0x0,flipX:_0x139a0b=!0x1,flipY:_0x238438=!0x1,angle:_0x3c463a}=_0x596118[_0x27e776(0x131)];_0x51d404[_0x27e776(0x127)]({'width':_0x3a6623,'height':_0x14609e});let _0x487244=_0x51d404[_0x27e776(0xca)]()['find'](_0xa3073d=>_0xa3073d[_0x27e776(0x29b)]===_0x532759);if(!_0x487244)return null;let _0x55ac83=_0x139a0b?_0x3a6623-_0x487244['x']:_0x487244['x'],_0x4f704a=_0x238438?_0x14609e-_0x487244['y']:_0x487244['y'];if(_0x3c463a!==0x0&&_0x3c463a!=null){let _0x35e057=_0x3c463a*Math['PI']/0xb4,_0x296bb5=Math[_0x27e776(0x23b)](_0x35e057),_0x388d21=Math['sin'](_0x35e057),_0x5a836a=_0x3a6623/0x2,_0x16804c=_0x14609e/0x2,_0x23354f=_0x55ac83-_0x5a836a,_0x39aa45=_0x4f704a-_0x16804c;_0x55ac83=_0x5a836a+_0x23354f*_0x296bb5-_0x39aa45*_0x388d21,_0x4f704a=_0x16804c+_0x23354f*_0x388d21+_0x39aa45*_0x296bb5;}_0x55ac83+=_0x1b67fa,_0x4f704a+=_0x487f8a;let _0x499407=_0x487244[_0x27e776(0x29c)]/0xea60;_0x139a0b&&(_0x499407=0xb4-_0x499407),_0x238438&&(_0x499407=-_0x499407),_0x499407+=_0x3c463a||0x0,_0x499407=(_0x499407%0x168+0x168)%0x168;let _0x42e557=_0x3313a8({'left':_0x1b67fa,'top':_0x487f8a,'width':_0x3a6623,'height':_0x14609e},_0x3c463a||0x0);return{'point':{'x':_0x55ac83,'y':_0x4f704a},'angle':_0x499407,'bounds':_0x42e557};}[_0x1ed313(0x1a1)](_0x519dc9,_0x44d3cf){const _0x307cae=_0x1ed313;let _0x5b2280=_0x44d3cf['x']-_0x519dc9['x'],_0x259e0a=_0x44d3cf['y']-_0x519dc9['y'];return Math[_0x307cae(0x181)](_0x5b2280)>=Math['abs'](_0x259e0a)?_0x5b2280>=0x0?0xb4:0x0:_0x259e0a>=0x0?0x10e:0x5a;}[_0x1ed313(0x1f5)](){const _0x3858b6=_0x1ed313;this[_0x3858b6(0x136)]=void 0x0,this[_0x3858b6(0x2a6)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x3858b6(0x291)]();}[_0x1ed313(0x230)](){const _0xcf7cb1=_0x1ed313;this[_0xcf7cb1(0x291)](),super['dispose']();}};ur=Y([J(0x1,_0x2eaf9c),J(0x2,_0x134053),J(0x3,_0x431f44),J(0x4,_0x57a3de),J(0x5,_0x697169(_0x5486d2)),J(0x6,_0x697169(Z)),J(0x7,_0x697169(sr))],ur);let dr=class extends _0x17a082{constructor(_0x51855a,_0x505bf4,_0x94df8b){const _0x286f8f=_0x1ed313;super(),this[_0x286f8f(0x145)]=_0x51855a,this['_drawingManagerService']=_0x505bf4,this[_0x286f8f(0xe9)]=_0x94df8b,this[_0x286f8f(0x157)]();}['_initPrinting'](){const _0x3a01af=_0x1ed313;this['disposeWithMe'](this[_0x3a01af(0x145)][_0x3a01af(0x21d)][_0x3a01af(0x24b)](this[_0x3a01af(0x145)][_0x3a01af(0x21d)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2bbf3b,_0x19be04,_0x1d4b3d)=>{const _0x5e62ac=_0x3a01af;var _0x3aea33;let {unitId:_0xef48e6,subUnitId:_0x284a40,scene:_0x5f353c,resourceCollector:_0x1f2ea3}=_0x19be04,_0x3e16ac=(_0x3aea33=this[_0x5e62ac(0x1b5)]['getDrawingDataForUnit'](_0xef48e6))==null?void 0x0:_0x3aea33[_0x284a40];return _0x3e16ac==null||_0x3e16ac[_0x5e62ac(0x185)][_0x5e62ac(0x190)](_0x578524=>{const _0x1f8f97=_0x5e62ac;let _0x535797=_0x3e16ac['data'][_0x578524];_0x535797[_0x1f8f97(0x1b7)]===_0x14c67a[_0x1f8f97(0x141)]&&!_0x535797[_0x1f8f97(0x220)]&&this['_shapeRenderController'][_0x1f8f97(0x2ec)](_0x535797,_0x5f353c,{'resourceCollector':_0x1f2ea3});}),_0x1d4b3d(_0x2bbf3b);}}));}};dr=Y([J(0x0,_0x697169(_0x3dd8e2)),J(0x1,_0x431f44),J(0x2,_0x697169(X))],dr);let fr=class extends _0x17a082{constructor(_0x1c1508,_0x55b5ef,_0x2196d3){const _0x6931c8=_0x1ed313;super(),this[_0x6931c8(0x1df)]=_0x1c1508,this['_localeService']=_0x55b5ef,this[_0x6931c8(0x1b3)]=_0x2196d3,this[_0x6931c8(0x1f8)]();}['_initPermission'](){const _0x46672e=_0x1ed313;this['disposeWithMe'](this[_0x46672e(0x1df)]['beforeCommandExecuted'](_0x299414=>{const _0x304e1b=_0x46672e;let _0x2c1bd6,_0x50e6d1;if(_0x299414['id']===_0x387a51['id']||_0x299414['id']===_0x5b49f8['id']||_0x299414['id']===_0x31e98d['id']){let _0x5af7da=_0x299414['params'];_0x2c1bd6=_0x5af7da[_0x304e1b(0xae)],_0x50e6d1=_0x5af7da[_0x304e1b(0x210)];}!_0x2c1bd6||!_0x50e6d1||this[_0x304e1b(0x1b3)][_0x304e1b(0x9e)]({'workbookTypes':[_0x5d5530],'worksheetTypes':[_0x566e04]},_0x2c1bd6,_0x50e6d1)||this[_0x304e1b(0x1b3)][_0x304e1b(0x1a0)](this[_0x304e1b(0x252)]['t'](_0x304e1b(0xb7)));}));}};fr=Y([J(0x0,_0x697169(_0x2eaf9c)),J(0x1,_0x697169(_0x3f505b)),J(0x2,_0x697169(_0x383125))],fr);let pr=class extends _0x17a082{constructor(_0x5645a2,_0x4e62e4,_0x4423c9,_0x460161,_0x2aba50,_0x4e6d85,_0xaaf7d5,_0x1b2d7f,_0xb2de05,_0x36b691,_0x48dba5){const _0x40c705=_0x1ed313;super(),this['_univerInstanceService']=_0x5645a2,this[_0x40c705(0x1dc)]=_0x4e62e4,this['_menuManagerService']=_0x4423c9,this[_0x40c705(0x219)]=_0x460161,this['_localeService']=_0x2aba50,this[_0x40c705(0x1df)]=_0x4e6d85,this['_drawingManagerService']=_0xaaf7d5,this['_sheetCanvasPopManagerService']=_0x1b2d7f,this[_0x40c705(0x222)]=_0xb2de05,this[_0x40c705(0x15b)]=_0x36b691,this[_0x40c705(0x18d)]=_0x48dba5,q(this,_0x40c705(0x20d),null),q(this,'_activeShapeInfo',null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,_0x40c705(0x17b),0x0),q(this,'_initializedShapePopupMenu',new Set()),q(this,_0x40c705(0x294),[]),this[_0x40c705(0x1ac)](),this[_0x40c705(0xf6)](this[_0x40c705(0x2a5)]['getCurrentTypeOfUnit$'](_0x35009f[_0x40c705(0x26b)])[_0x40c705(0x1f9)](_0x44fb67=>{const _0x4ffcd4=_0x40c705;if(!_0x44fb67){var _0x28014a;(_0x28014a=this[_0x4ffcd4(0x20d)])==null||_0x28014a['dispose']();return;}this['_createShapePopupMenu'](_0x44fb67);})),this[_0x40c705(0xe3)](),this[_0x40c705(0x102)](),this[_0x40c705(0x2cc)](),this[_0x40c705(0xf6)](this[_0x40c705(0x18d)]['editingParams$']['subscribe'](_0x197386=>{const _0x439562=_0x40c705;_0x197386&&this[_0x439562(0x142)]();}));}['_initMenu'](){const _0x96565c=_0x1ed313;this['_menuManagerService'][_0x96565c(0x2be)](In);}[_0x1ed313(0x102)](){const _0x580fda=_0x1ed313;this[_0x580fda(0x172)][_0x580fda(0x19c)](_0x14c67a['DRAWING_SHAPE'],this[_0x580fda(0x1b1)][_0x580fda(0x284)](this)),this[_0x580fda(0x172)][_0x580fda(0xa1)](_0x14c67a['DRAWING_SHAPE'],0x6,0x4);}[_0x1ed313(0x2cc)](){const _0x1970aa=_0x1ed313;this[_0x1970aa(0x2a5)][_0x1970aa(0x2c5)](_0x35009f[_0x1970aa(0x26b)])[_0x1970aa(0x190)](_0x59e031=>this[_0x1970aa(0x175)](_0x59e031));}[_0x1ed313(0x1b1)](_0x4ef7ce,_0xf7a963,_0x2bbebb,_0x2634dd){const _0x20284a=_0x1ed313;return[{'label':_0x20284a(0x174),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb},'disable':_0x2634dd===_0x14c67a[_0x20284a(0x298)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x2f5460['id'],'commandParams':{'unitId':_0x4ef7ce,'drawings':[{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb,'drawingType':_0x2634dd}]},'disable':!0x1},{'label':_0x20284a(0x237),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'drawingId':_0x2bbebb},'disable':!0x1},{'label':_0x20284a(0xa7),'index':0x3,'commandId':_0x1b9f94['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'flipH':!0x0},'disable':!0x1},{'label':_0x20284a(0x143),'index':0x4,'commandId':_0x1b9f94['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'flipV':!0x0},'disable':!0x1},{'label':_0x20284a(0x10a),'index':0x4,'commandId':_0x59e11d['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'rotate':0x5a},'disable':!0x1},{'label':_0x20284a(0x1ba),'index':0x4,'commandId':_0x59e11d['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb,'rotate':-0x5a},'disable':!0x1},{'label':_0x20284a(0xc4),'index':0x4,'commandId':_0x1b4149['id'],'commandParams':{'unitId':_0x4ef7ce,'subUnitId':_0xf7a963,'shapeId':_0x2bbebb},'disable':!0x1}];}[_0x1ed313(0x2c0)](_0x443de7,_0x120380,_0x23c268){const _0x3e693b=_0x1ed313;let _0x2080fc=this[_0x3e693b(0x219)]['getShapeTypeById'](_0x443de7,_0x120380,_0x23c268),_0x43e0d1=this[_0x3e693b(0x219)][_0x3e693b(0xc5)](_0x443de7,_0x120380,_0x23c268);return _0x2080fc!==void 0x0&&_0x43e0d1!==void 0x0?{'shapeData':_0x43e0d1,'shapeId':_0x23c268,'shapeType':_0x2080fc,'unitId':_0x443de7,'subUnitId':_0x120380,'version':this[_0x3e693b(0x17b)],'disableShapeOption':!0x1}:null;}[_0x1ed313(0x175)](_0x27b86e){const _0x55f9f0=_0x1ed313;if(!_0x27b86e)return;let _0x1b7c34=_0x27b86e['getUnitId']();this[_0x55f9f0(0x15b)][_0x55f9f0(0x122)](_0x1b7c34)&&!this[_0x55f9f0(0x232)][_0x55f9f0(0x122)](_0x1b7c34)&&(this[_0x55f9f0(0x2e4)](_0x1b7c34),this['_initializedShapePopupMenu'][_0x55f9f0(0x12d)](_0x1b7c34));}[_0x1ed313(0x142)](){const _0x2e46ae=_0x1ed313;this[_0x2e46ae(0x294)][_0x2e46ae(0x190)](_0x1621a6=>_0x1621a6[_0x2e46ae(0x230)]()),this['_disposePopups'][_0x2e46ae(0x2b4)]=0x0;}[_0x1ed313(0x2e4)](_0x59b79b){const _0x499aff=_0x1ed313;var _0x2e8603;let _0xc6ebf3=(_0x2e8603=this[_0x499aff(0x15b)][_0x499aff(0x187)](_0x59b79b))==null?void 0x0:_0x2e8603[_0x499aff(0xdb)],_0x36d198=_0xc6ebf3==null?void 0x0:_0xc6ebf3[_0x499aff(0xdf)]();!_0xc6ebf3||!_0x36d198||(this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x26f)][_0x499aff(0x1f9)](()=>{const _0x3326f1=_0x499aff;let _0x12b03c=_0x36d198[_0x3326f1(0x229)]();if(this[_0x3326f1(0x142)](),this[_0x3326f1(0xd0)]||_0x12b03c[_0x3326f1(0x134)]>0x1)return;let _0x35539b=_0x12b03c[_0x3326f1(0x1ad)]()['next']()[_0x3326f1(0xcc)];if(!_0x35539b)return;let _0x28bd43=this[_0x3326f1(0x1b5)][_0x3326f1(0xe0)](_0x35539b[_0x3326f1(0x183)]);if(!_0x28bd43||_0x28bd43[_0x3326f1(0x1b7)]!==_0x14c67a[_0x3326f1(0x141)])return;let {unitId:_0x18f790,subUnitId:_0x44b48e,drawingId:_0x549f5f,drawingType:_0x1c1659}=_0x28bd43,_0x357c81=this[_0x3326f1(0x2c0)](_0x18f790,_0x44b48e,_0x549f5f);if(!_0x357c81)return;this[_0x3326f1(0x222)][_0x3326f1(0x22f)](_0x550431,!0x0);let _0x8fbf3a=this[_0x3326f1(0x172)][_0x3326f1(0x1d8)](_0x35539b,{'componentKey':wn,'direction':'top-center','offset':[0x0,_0x4cb7b4],'extraProps':{'unitId':_0x18f790,'subUnitId':_0x44b48e,'drawingId':_0x549f5f,'drawingType':_0x1c1659,'shapeType':_0x357c81['shapeType'],'shapeData':_0x357c81[_0x3326f1(0x1c9)]}});this[_0x3326f1(0x294)][_0x3326f1(0x2b9)](this['disposeWithMe'](_0x8fbf3a)),this['_drawingManagerService'][_0x3326f1(0x149)]()[_0x3326f1(0xd8)](_0x261a01=>_0x261a01[_0x3326f1(0xae)]===_0x18f790&&_0x261a01[_0x3326f1(0x210)]===_0x44b48e&&_0x261a01[_0x3326f1(0xb2)]===_0x549f5f)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x18f790,'subUnitId':_0x44b48e,'drawingId':_0x549f5f}]);})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x1ab)][_0x499aff(0x1f9)](()=>{const _0x5ba99d=_0x499aff;this[_0x5ba99d(0x142)](),this[_0x5ba99d(0x222)]['setContextValue'](_0x550431,!0x1),this['_drawingManagerService'][_0x5ba99d(0x1c6)](null);})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x194)]['subscribe'](()=>{const _0x54747e=_0x499aff;this[_0x54747e(0x142)]();})),this[_0x499aff(0xf6)](_0x36d198[_0x499aff(0x286)][_0x499aff(0x1f9)](()=>{const _0x375377=_0x499aff;this[_0x375377(0x142)]();})));}[_0x1ed313(0xe3)](){const _0x4d3440=_0x1ed313;this[_0x4d3440(0xf6)](this[_0x4d3440(0x1df)][_0x4d3440(0x24c)](_0x4a8726=>{const _0x5de504=_0x4d3440;if(_0x4a8726['id']===Bn['id']){let {unitId:_0x308b2a,subUnitId:_0x4f75ad,drawingId:_0xa3962f}=_0x4a8726[_0x5de504(0x2f4)];this[_0x5de504(0x17b)]+=0x1,this[_0x5de504(0x25c)]=this[_0x5de504(0x2c0)](_0x308b2a,_0x4f75ad,_0xa3962f),this[_0x5de504(0x142)](),this[_0x5de504(0x2c6)]();}if(_0x4a8726['id']===zn['id']&&(this[_0x5de504(0x25c)]=null,this[_0x5de504(0x117)]()),_0x4a8726['id']===_0x44e25c['id']){let {unitId:_0x285d19,subUnitId:_0x2c1458,shapeId:_0x4c8f55}=_0x4a8726[_0x5de504(0x2f4)];if(this[_0x5de504(0x25c)]&&this['_activeShapeInfo'][_0x5de504(0x2ce)]===_0x4c8f55){let _0x54ec93=this[_0x5de504(0x2c0)](_0x285d19,_0x2c1458,_0x4c8f55);_0x54ec93&&(this[_0x5de504(0x17b)]+=0x1,_0x54ec93[_0x5de504(0x28f)]=this[_0x5de504(0x17b)],this['_activeShapeInfo']=_0x54ec93,this[_0x5de504(0xd0)]&&this[_0x5de504(0x2c6)]());}}})),this[_0x4d3440(0xf6)](this[_0x4d3440(0x1b5)][_0x4d3440(0x243)][_0x4d3440(0x1f9)](_0x53c72f=>{const _0x226968=_0x4d3440;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x53c72f[_0x226968(0x2b4)]===0x0){this['_activeShapeInfo']=null,this[_0x226968(0x117)]();return;}if(_0x53c72f[_0x226968(0x2b4)]===0x1&&_0x53c72f[0x0][_0x226968(0x1b7)]===_0x14c67a[_0x226968(0x141)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0][_0x226968(0xb2)]),this[_0x226968(0x25c)])){this[_0x226968(0x2c6)]();return;}let _0x4043a4=_0x53c72f[_0x226968(0x205)](_0x35ba66=>_0x35ba66[_0x226968(0x1b7)]===_0x14c67a['DRAWING_SHAPE']);if(_0x53c72f[_0x226968(0x2b4)]>0x1&&_0x4043a4[_0x226968(0x2b4)]===_0x53c72f[_0x226968(0x2b4)]){if(this[_0x226968(0x17b)]+=0x1,this[_0x226968(0x25c)]=this[_0x226968(0x2c0)](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0]['drawingId']),this[_0x226968(0x25c)]){this[_0x226968(0x2c6)]();return;}}else{if(this[_0x226968(0x17b)]+=0x1,this[_0x226968(0x25c)]=this[_0x226968(0x2c0)](_0x53c72f[0x0][_0x226968(0xae)],_0x53c72f[0x0][_0x226968(0x210)],_0x53c72f[0x0][_0x226968(0xb2)]),this[_0x226968(0x25c)]){this[_0x226968(0x25c)][_0x226968(0x208)]=!0x0,this[_0x226968(0x2c6)]();return;}}this[_0x226968(0x117)]();}));}[_0x1ed313(0x2c6)](){const _0x3f4601=_0x1ed313;this['_activeShapeInfo']&&(this[_0x3f4601(0x20d)]=this[_0x3f4601(0x1dc)][_0x3f4601(0x251)]({'id':Sn,'header':{'title':this['_localeService']['t'](_0x3f4601(0x2d5))},'width':0x184,'children':{'label':Sn,...this['_activeShapeInfo']},'onClose':()=>{const _0x3ea550=_0x3f4601;this[_0x3ea550(0x1b5)]['focusDrawing'](null),this[_0x3ea550(0x222)][_0x3ea550(0x22f)](_0x550431,!0x1),this['_sidebarDisposable']=null;}}),this[_0x3f4601(0xd0)]=!0x0);}[_0x1ed313(0x117)](){const _0x57c4af=_0x1ed313;this[_0x57c4af(0xd0)]=!0x1,this['_sidebarService']['close'](Sn),this[_0x57c4af(0x20d)]=null,this[_0x57c4af(0x222)]['setContextValue'](_0x550431,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};pr=Y([J(0x0,_0x57a3de),J(0x1,_0x697169(_0x37253d)),J(0x2,_0x496115),J(0x3,_0x697169(_0x5486d2)),J(0x4,_0x697169(_0x3f505b)),J(0x5,_0x2eaf9c),J(0x6,_0x431f44),J(0x7,_0x697169(_0x55f451)),J(0x8,_0x3bb4e2),J(0x9,_0x134053),J(0xa,_0x697169(Zn))],pr);let $=class extends _0xff4adf{constructor(_0x3c1f5d=Vn,_0x1d0ed2,_0x507e1b,_0x78e5bc,_0x556019){const _0x509131=_0x1ed313;super(),this[_0x509131(0x2f7)]=_0x3c1f5d,this[_0x509131(0x257)]=_0x1d0ed2,this[_0x509131(0x1df)]=_0x507e1b,this[_0x509131(0xad)]=_0x78e5bc,this[_0x509131(0x15b)]=_0x556019;let {..._0x3a74ba}=_0x29cd84({},Vn,this[_0x509131(0x2f7)]);this['_configService'][_0x509131(0x1d2)]('sheets-shape-ui.config',_0x3a74ba),this[_0x509131(0x1c2)]();}['onRendered'](){_0x324bcf(this['_injector'],[[pr],[ir],[X],[dr]]);}[_0x1ed313(0x2d6)](){const _0x32f0fe=_0x1ed313;this[_0x32f0fe(0x257)][_0x32f0fe(0xbe)](pr)[_0x32f0fe(0x2cc)]();}[_0x1ed313(0x192)](){const _0x5a7a9e=_0x1ed313;[[sr],[Z],[cr]][_0x5a7a9e(0x190)](_0x385646=>this[_0x5a7a9e(0x257)][_0x5a7a9e(0x12d)](_0x385646)),_0x324bcf(this[_0x5a7a9e(0x257)],[[cr],[Z]]),this[_0x5a7a9e(0x15b)][_0x5a7a9e(0x1ec)](_0x35009f[_0x5a7a9e(0x26b)],[sr]),this['_renderManagerService'][_0x5a7a9e(0x1ec)](_0x35009f['UNIVER_SHEET'],[er]),this[_0x5a7a9e(0x15b)]['registerRenderModule'](_0x35009f[_0x5a7a9e(0x26b)],[ur]),this[_0x5a7a9e(0x15b)]['registerRenderModule'](_0x35009f[_0x5a7a9e(0x26b)],[nr]),this['_renderManagerService'][_0x5a7a9e(0x1ec)](_0x35009f['UNIVER_DOC'],[rr]);}[_0x1ed313(0x2b7)](){const _0x3b32e3=_0x1ed313;this[_0x3b32e3(0x257)][_0x3b32e3(0x12d)]([$n]),this[_0x3b32e3(0x257)][_0x3b32e3(0xbe)]($n);let _0xd80ede=this['_injector'];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]][_0x3b32e3(0x190)](_0x5d3935=>_0xd80ede['add'](_0x5d3935)),_0x324bcf(this['_injector'],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x1ed313(0x1c2)](){const _0x575481=_0x1ed313;[xn,dn,zn,Bn,Dn,bn][_0x575481(0x190)](_0x4de731=>this[_0x575481(0xf6)](this[_0x575481(0x1df)][_0x575481(0x1c0)](_0x4de731)));}};q($,_0x1ed313(0x2ef),_0x35009f[_0x1ed313(0x26b)]),q($,_0x1ed313(0x22e),_0x1ed313(0x1c5)),q($,_0x1ed313(0x198),Ln),q($,_0x1ed313(0x28f),Rn),$=Y([_0x1f5803(_0x29e05d,_0x343243,_0x3a7159,_0x4dccc5),J(0x1,_0x697169(_0x264e1a)),J(0x2,_0x2eaf9c),J(0x3,_0x111a3e),J(0x4,_0x134053)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x49d8a2=_0x208c;(function(_0x2d5ff8,_0x31f2ed){const _0x39c69c=_0x208c,_0x59e235=_0x2d5ff8();while(!![]){try{const _0x41cdb4=-parseInt(_0x39c69c(0x2f0))/0x1+parseInt(_0x39c69c(0x33b))/0x2*(-parseInt(_0x39c69c(0x250))/0x3)+parseInt(_0x39c69c(0x1a7))/0x4*(parseInt(_0x39c69c(0x308))/0x5)+-parseInt(_0x39c69c(0x102))/0x6*(-parseInt(_0x39c69c(0x1b2))/0x7)+-parseInt(_0x39c69c(0x156))/0x8*(parseInt(_0x39c69c(0x1f7))/0x9)+parseInt(_0x39c69c(0x110))/0xa+parseInt(_0x39c69c(0x187))/0xb;if(_0x41cdb4===_0x31f2ed)break;else _0x59e235['push'](_0x59e235['shift']());}catch(_0x101f99){_0x59e235['push'](_0x59e235['shift']());}}}(_0x4806,0xbbc9d));import{ComponentManager as _0x4dd7a3,IMenuManagerService as _0x25cc13,ISidebarService as _0xf1c3ee,IconManager as _0x45bf3a,MenuItemType as _0x2f4b7c,RibbonInsertGroup as _0x4cff09,getMenuHiddenObservable as _0x569198,useDependency as _0x2a5e25,useObservable as _0x57a615}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x20c995,ImageSourceTypeEnum as _0x4ed528,ShapeArrowSizeEnum as _0xd9107d,ShapeArrowTypeEnum as _0x1e506d,ShapeDefaultConfig as _0x2bea1d,ShapeFillEnum as _0x13bf97,ShapeLineTypeEnum as _0x3354c0,ShapeModel as _0x2a67cd,ShapeRenderModeEnum as _0x2d97cd,ShapeTypeEnum as _0x1ca39f,computeConnectorRouteLayout as _0x59ea91,getBasicShapeRotateBound as _0x4d4669,isConnectorShape as _0x5d2a5e,isCurvedConnectorShape as _0x41cad6,routeConnectorLineShape as _0x449797}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x370f9f,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x229ba4,ShapeEditPanel as _0x577577,ShapeFloatingToolbar as _0x3381e5,ShapeGroupEnum as _0x57c621,ShapePickerDropdown as _0x55b52d,ShapePickerPanel as _0x71cbe8,ShapeTextEditorContainer as _0x264bf4,ShapeTextFloatMenuRenderControllerBase as _0x596e22,ShapeTextFloatToolbar as _0x2d3b93,UniverShapeEditorUIPlugin as _0x464a71,activateDrawingObject as _0x3928d2,buildShapeTextDataUpdate as _0x1072ef,clearActiveDrawingObjects as _0xeb3392,createShapeTextBoxShapeData as _0x510160,getTextModel as _0xdf5543,getTextStyle as _0x45f466,normalizeShapeTextModel as _0x50ef04,plainShapeTextToDocumentData as _0x36c523,prepareShapeTextDocumentData as _0x55d4b7,resolveShapeTextDocumentRenderLayout as _0x110d01,resolveShapeTextEditorBehaviorShapeData as _0x31773d,resolveShapeTextEditorWrapStrategy as _0x17f1c5,shouldAllowShapeTextEditorHostSizeShrink as _0x7502d3,shouldClipShapeTextDocument as _0x3f71c6}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x5db24c,InsertSheetsShapeMutation as _0x47dbbc,RemoveSheetsShapeMutation as _0x32e37c,SetShapeDrawingDataCommand as _0x357925,SetSheetsShapeRotateCommand as _0x45951d,SetSheetsShapeTextVerticalToggleCommand as _0x3209a5,SheetsShapeService as _0x1a451a,ToggleSheetsShapeFlipCommand as _0x4deace,UniverSheetsShapePlugin as _0x551142,UpdateConnectorRelationCommand as _0x1c01fb,UpdateLineShapeResizeCommand as _0x3b0863,UpdateSheetsShapeDataMutation as _0x22295a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5516a4,CommandType as _0xbd62c0,DependentOn as _0x15410a,Disposable as _0x1e0fa2,DocumentDataModel as _0x4de61b,DrawingTypeEnum as _0x336997,FOCUSING_COMMON_DRAWINGS as _0x26ab00,FOCUSING_SHAPE_TEXT_EDITOR as _0x7f228e,HorizontalAlign as _0x30a9f7,ICommandService as _0x3002c9,IConfigService as _0xb443b,IContextService as _0x2d429f,IImageIoService as _0x529318,IURLImageService as _0x225d5a,IUndoRedoService as _0x471f95,IUniverInstanceService as _0x2320a1,Inject as _0x3465f0,Injector as _0xab16b2,LocaleService as _0x9a7c24,Plugin as _0x257c5b,UniverInstanceType as _0x4c1a31,VerticalAlign as _0x2099ff,createInternalEditorID as _0x4f9780,generateRandomId as _0x3893c7,merge as _0x1c7285,toDisposable as _0x4f15f0,touchDependencies as _0x14b49a}from'@univerjs/core';import{CopySheetCommand as _0x54e5a0,RemoveSheetCommand as _0x414783,SheetInterceptorService as _0x85f95e,SheetPermissionCheckController as _0x2cc1a0,SheetSkeletonService as _0x834a52,SheetsSelectionsService as _0x25ed03,WorkbookEditablePermission as _0x3216bb,WorksheetEditPermission as _0x57e1db,attachRangeWithCoord as _0x37168f,discreteRangeToRange as _0x44b7b4,getSheetCommandTarget as _0x20e706}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a9176,SetDrawingSelectedOperation as _0x42475e,getDrawingShapeKeyByDrawingSearch as _0x24e648}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35244f,Circle as _0x1578ae,DRAWING_OBJECT_LAYER_INDEX as _0x529f4c,DocumentSkeleton as _0x3a7e93,DocumentViewModel as _0x3425b8,Documents as _0x5ca0dd,IRenderManagerService as _0x2565d9,Image as _0xd2487b,RENDER_CLASS_TYPE as _0x18ef31,SHEET_VIEWPORT_KEY as _0x42dea8,Shape as _0x176254,Transform as _0x3a4198,Vector2 as _0x1d9584}from'@univerjs/engine-render';import{COPY_TYPE as _0x4538e3,ISheetClipboardService as _0x4d0a59,PREDEFINED_HOOK_NAME as _0x951401,SheetCanvasPopManagerService as _0x57df42,SheetPrintInterceptorService as _0x4f0169,SheetScrollManagerService as _0x5480ae,SheetSkeletonManagerService as _0x4b5a3f,deriveStateFromActiveSheet$ as _0x291355,getCurrentRangeDisable$ as _0x1aaed7,getViewportByCell as _0x356c4d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1154b0,EMPTY as _0x4e602d,Observable as _0x17aabe,of as _0x5ba9b9,switchMap as _0x48371d}from'rxjs';import{DrawingCommonPanel as _0x4b0647,DrawingImageClipService as _0x52908b,DrawingRenderService as _0x4d04f3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x76290b,OBJECT_LIST_FLOATING_SECTION_ID as _0x21b1e9,ObjectListPanelBase as _0x1ea8c0,getCurrentUnitInfo as _0x5b5b76,getObjectListPanelLabels as _0x3137ac,getObjectListPanelSectionIdForDrawingType as _0x68c808,getObjectListPanelTypeName as _0x23c7c2,insertGroupObject as _0x4cf997}from'@univerjs/drawing-ui';import{jsx as _0x4c6044,jsxs as _0x52bc9b}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2da0f1}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x37e739,SheetsDrawingGroupCopyPasteController as _0x407497,UniverSheetsDrawingUIPlugin as _0x1c2191}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x8cec5a}from'@univerjs/icons';import{DrawingApplyType as _0x20e0af,ISheetDrawingService as _0xc538a1,RemoveSheetDrawingCommand as _0x5f4db7,SetDrawingApplyMutation as _0x2fbd15,SetDrawingArrangeCommand as _0xa10ec9,SetSheetDrawingCommand as _0x577eb5,transformToAxisAlignPosition as _0x14cc4e,transformToDrawingPosition as _0x4ee577}from'@univerjs/sheets-drawing';import{memo as _0x3cdd19,useEffect as _0xecd31c,useMemo as _0x307aa0,useReducer as _0x3962a7,useState as _0x487ae5}from'react';import{DocSelectionManagerService as _0x529093}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x16c1cd,DocSelectionRenderService as _0x3889b2}from'@univerjs/docs-ui';function un(_0x5d612c,_0x46bac1){const _0x325f88=_0x208c;let _0x27cabe={};for(let _0x511249 of Object['keys'](_0x46bac1)){let _0x5d5140=_0x46bac1[_0x511249],_0x13a49e=_0x5d612c[_0x511249];if(_0x5d5140!==void 0x0){if(_0x13a49e===void 0x0){_0x27cabe[_0x511249]=void 0x0;continue;}typeof _0x5d5140==_0x325f88(0x196)&&_0x5d5140&&!Array[_0x325f88(0x154)](_0x5d5140)&&typeof _0x13a49e==_0x325f88(0x196)&&_0x13a49e&&!Array['isArray'](_0x13a49e)?_0x27cabe[_0x511249]=un(_0x13a49e,_0x5d5140):_0x27cabe[_0x511249]=_0x13a49e;}}return _0x27cabe;}const dn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x2e8),'handler':(_0x3c35ad,_0x35bc92)=>{const _0x44be3c=_0x49d8a2;let _0x22aef1=_0x3c35ad[_0x44be3c(0x1bc)](_0x1a451a),{unitId:_0x1e06ac,subUnitId:_0x1a379e,shapeType:_0x34b7a5,shapeId:_0x1a918b,shapeData:_0x4261e8,oldShapeJSON:_0x5f0b9d}=_0x35bc92;if(!_0x22aef1[_0x44be3c(0x296)](_0x1e06ac,_0x1a379e,_0x1a918b))return!0x1;let _0x2486f3=_0x3c35ad[_0x44be3c(0x1bc)](_0x3002c9),_0x5d4a67=_0x3c35ad[_0x44be3c(0x1bc)](_0x471f95),{oldShapeType:_0x35fe00,oldShapeData:_0x152b70={}}=_0x5f0b9d,_0x1c46a5=un(_0x152b70,_0x4261e8||{}),_0x57cdda={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x34b7a5,'shapeData':_0x4261e8}},_0x33bc57={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x35fe00,'shapeData':_0x1c46a5}};return _0x2486f3['syncExecuteCommand'](_0x57cdda['id'],_0x57cdda[_0x44be3c(0x2ba)])?(_0x5d4a67[_0x44be3c(0x33c)]({'unitID':_0x1e06ac,'undoMutations':[_0x33bc57],'redoMutations':[_0x57cdda]}),!0x0):!0x1;}};function fn(_0x44e964,_0x533949,_0x16674d,_0x357e1e,_0x390024,_0x317f69){const _0x5ef3aa=_0x49d8a2;let _0x498dfd={'unitId':_0x533949,'subUnitId':_0x16674d,'shapeId':_0x357e1e,'shapeData':_0x317f69,'oldShapeJSON':_0x390024};return _0x44e964[_0x5ef3aa(0x2c5)](dn['id'],_0x498dfd);}function pn(_0x3caec4,_0xf4af9d,_0x4e9c64,_0xb1c7f,_0x5d449e,_0x4d1843){const _0x15303f=_0x49d8a2;let _0x3cc772={'unitId':_0xf4af9d,'subUnitId':_0x4e9c64,'shapeId':_0xb1c7f,'shapeData':_0x4d1843,'oldShapeJSON':_0x5d449e};return _0x3caec4[_0x15303f(0x2c5)](dn['id'],_0x3cc772);}function mn(_0x855a0d){'@babel/helpers - typeof';const _0x1f258f=_0x49d8a2;return mn=typeof Symbol==_0x1f258f(0x1fd)&&typeof Symbol[_0x1f258f(0x2c2)]=='symbol'?function(_0x254e6e){return typeof _0x254e6e;}:function(_0x4943af){const _0x4346df=_0x1f258f;return _0x4943af&&typeof Symbol==_0x4346df(0x1fd)&&_0x4943af[_0x4346df(0xe2)]===Symbol&&_0x4943af!==Symbol[_0x4346df(0xef)]?'symbol':typeof _0x4943af;},mn(_0x855a0d);}function hn(_0x35a624,_0x14d9e3){const _0x4ab4a7=_0x49d8a2;if(mn(_0x35a624)!=_0x4ab4a7(0x196)||!_0x35a624)return _0x35a624;var _0x565585=_0x35a624[Symbol['toPrimitive']];if(_0x565585!==void 0x0){var _0x59fbbe=_0x565585['call'](_0x35a624,_0x14d9e3||_0x4ab4a7(0x271));if(mn(_0x59fbbe)!='object')return _0x59fbbe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x14d9e3===_0x4ab4a7(0x202)?String:Number)(_0x35a624);}function gn(_0x152aaf){const _0x220dc0=_0x49d8a2;var _0x2bf159=hn(_0x152aaf,_0x220dc0(0x202));return mn(_0x2bf159)==_0x220dc0(0x10c)?_0x2bf159:_0x2bf159+'';}function q(_0x37cb0e,_0x4be070,_0x39d2ed){const _0x1e7906=_0x49d8a2;return(_0x4be070=gn(_0x4be070))in _0x37cb0e?Object[_0x1e7906(0x117)](_0x37cb0e,_0x4be070,{'value':_0x39d2ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37cb0e[_0x4be070]=_0x39d2ed,_0x37cb0e;}function _n(_0x4776ea,_0x2b735f,_0x188fdb){const _0x2f95a3=_0x49d8a2;var _0x1f054e;let _0x288329=_0x31773d(_0x4776ea,{..._0x2b735f,'dataModel':{...(_0x1f054e=_0x2b735f[_0x2f95a3(0x2e0)])==null?{}:_0x1f054e,..._0x188fdb?{'doc':_0x188fdb}:null}}),_0x446e01=_0x17f1c5(_0x288329);return{'clip':_0x3f71c6(_0x288329,_0x446e01),'wrapStrategy':_0x446e01};}var vn=class extends _0x176254{constructor(_0x21ce4e,_0x3fbfdb){const _0x3c83af=_0x49d8a2;super(_0x21ce4e,_0x3fbfdb),q(this,_0x3c83af(0x122),void 0x0),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x3c83af(0x1a6),_0x336997['DRAWING_SHAPE']),q(this,_0x3c83af(0xdf),!0x0),this[_0x3c83af(0x122)]={..._0x3fbfdb},this['_init']();}[_0x49d8a2(0x2fa)](){const _0x1966a0=_0x49d8a2;this[_0x1966a0(0x135)]['subscribeEvent'](_0x33b45e=>{const _0x67d95e=_0x1966a0;this[_0x67d95e(0x2ff)](_0x33b45e);});}['setPrstGeom'](_0x727b41){const _0x3270bc=_0x49d8a2;this['_props'][_0x3270bc(0x178)]=_0x727b41;}['setEditing'](_0x264ae0){this['_props']['isEditing']=_0x264ae0,this['makeDirty'](!0x0);}get['unitId'](){const _0x27e342=_0x49d8a2;return this[_0x27e342(0x122)][_0x27e342(0x1b7)];}get[_0x49d8a2(0x2b4)](){const _0x375da2=_0x49d8a2;return this[_0x375da2(0x122)][_0x375da2(0x2b4)];}[_0x49d8a2(0x2ff)](_0x1366d0){const _0x506605=_0x49d8a2;if(this[_0x506605(0x122)][_0x506605(0x225)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x594213,height:_0x3f644b}=this,{width:_0x18f567=0x0,height:_0x38ea7d=0x0}=_0x1366d0['preValue'],{left:_0x3dc584=0x0,top:_0x29bdfb=0x0,right:_0x4c85f4=0x0,bottom:_0x2e9662=0x0}=this['_props'][_0x506605(0x225)],_0x4378df=_0x3dc584,_0x258e38=_0x29bdfb,_0x2f1899=_0x4c85f4,_0x27795c=_0x2e9662,_0x141dc8=!0x1;if(_0x18f567!==0x0&&_0x18f567!==_0x594213){let _0x545720=_0x3dc584/_0x18f567,_0x283d50=_0x4c85f4/_0x18f567;_0x4378df=_0x594213*_0x545720,_0x2f1899=_0x594213*_0x283d50,_0x141dc8=!0x0;}if(_0x38ea7d!==0x0&&_0x38ea7d!==_0x3f644b){let _0xc5f78=_0x29bdfb/_0x38ea7d,_0x20c1d6=_0x2e9662/_0x38ea7d;_0x258e38=_0x3f644b*_0xc5f78,_0x27795c=_0x3f644b*_0x20c1d6,_0x141dc8=!0x0;}_0x141dc8&&this[_0x506605(0x279)]({'left':_0x4378df,'top':_0x258e38,'right':_0x2f1899,'bottom':_0x27795c});}['setSrcRect'](_0xf412cc){const _0xd8a8d2=_0x49d8a2;this[_0xd8a8d2(0x122)][_0xd8a8d2(0x225)]=_0xf412cc,this[_0xd8a8d2(0x165)](!0x0);}['setFillImage'](_0xceef10){const _0x1aaeae=_0x49d8a2;this[_0x1aaeae(0x122)][_0x1aaeae(0x157)]=_0xceef10,this[_0x1aaeae(0x165)](!0x0);}set[_0x49d8a2(0x166)](_0x30bc04){const _0x6db4af=_0x49d8a2;this[_0x6db4af(0x293)]=_0x30bc04;}get[_0x49d8a2(0x166)](){const _0x44ea1d=_0x49d8a2;this[_0x44ea1d(0x293)]||this['_setTransForm']();let _0xfb31fd=this['_transform'][_0x44ea1d(0x148)]();return this[_0x44ea1d(0x1bd)](_0xfb31fd);}get['shapeModel'](){const _0x50103e=_0x49d8a2;return this[_0x50103e(0x122)][_0x50103e(0x11d)];}get[_0x49d8a2(0x142)](){const _0x268624=_0x49d8a2;return this[_0x268624(0x122)]['shapeId'];}get['classType'](){const _0x4aaae4=_0x49d8a2;return _0x18ef31[_0x4aaae4(0x29d)];}['_draw'](_0x131002,_0x73b0e5,_0x1d0c20,_0x56cfeb){const _0x30d5bf=_0x49d8a2;let _0x5b5381=this[_0x30d5bf(0x122)][_0x30d5bf(0x11d)];if(!_0x5b5381||!_0x73b0e5)return;let _0x423b91=_0x1d0c20==null?this[_0x30d5bf(0x2b9)]:_0x1d0c20,_0x3a213f=_0x56cfeb==null?this[_0x30d5bf(0x232)]:_0x56cfeb,_0x755730={'shapeType':_0x5b5381[_0x30d5bf(0x285)](),'width':_0x423b91,'height':_0x3a213f},_0x5b52ca={'renderMode':_0x2d97cd[_0x30d5bf(0x245)],'oKey':this['oKey'],'image':this['_props']['image'],'angle':this[_0x30d5bf(0x1fa)]};_0x5b5381[_0x30d5bf(0x314)](_0x755730),_0x131002[_0x30d5bf(0x30b)]();let _0x2cdcb4={'top':0x0,'left':0x0,'width':_0x423b91,'height':_0x3a213f};_0x5b5381[_0x30d5bf(0x2b5)](_0x131002,_0x2cdcb4,_0x5b52ca),_0x131002[_0x30d5bf(0x13e)]();let _0x970d64=_0x5b5381[_0x30d5bf(0x1cc)](),_0xb358ef=_0x5b5381[_0x30d5bf(0x2fc)](_0x2cdcb4),_0x4ca119=_0x5b5381[_0x30d5bf(0xe0)]();if(_0x970d64&&_0xb358ef&&!_0x4ca119){_0x131002[_0x30d5bf(0x30b)](),this['getState']()['flipX']&&_0x131002[_0x30d5bf(0x32e)](-0x1,0x1);let _0x4c6b9a=_0x423b91/0x2,_0x14a469=_0x3a213f/0x2;_0x131002['translate'](-_0x4c6b9a,-_0x14a469),_0x131002['beginPath'](),this['_drawShapeText'](_0x131002,_0x970d64,_0xb358ef),_0x131002['restore']();}}['getDrawingPoints'](_0x48e7c4){}[_0x49d8a2(0x194)](_0x14ab28,_0x13c102,_0x220252){const _0x13350f=_0x49d8a2;var _0x328dbe;this[_0x13350f(0x122)]['isEditing']||(!((_0x328dbe=_0x13c102[_0x13350f(0x2e0)])!=null&&_0x328dbe[_0x13350f(0x15f)])&&_0x13350f(0xec)in _0x13c102&&_0x13c102[_0x13350f(0xec)]===!0x1?this[_0x13350f(0x24b)](_0x14ab28,_0x13c102,_0x220252):this['_drawRichText'](_0x14ab28,_0x13c102,_0x220252));}[_0x49d8a2(0x24b)](_0x8f43ee,_0x379eed,_0x4e41dc){const _0x4e0cad=_0x49d8a2;var _0x2583c5;this[_0x4e0cad(0x1aa)](_0x8f43ee,{..._0x379eed,'text':(_0x2583c5=_0x379eed['text'])==null?'':_0x2583c5,'dataModel':{'doc':_0x36c523(_0x379eed,'sheets-shape-text-'+this[_0x4e0cad(0x163)])}},_0x4e41dc);}[_0x49d8a2(0x1aa)](_0x482e69,_0x38c752,_0x517a8e){const _0x490034=_0x49d8a2;var _0x331875,_0x2789d0;let _0x213a03=this[_0x490034(0x122)][_0x490034(0x244)];if(!_0x38c752[_0x490034(0x2e0)]||!_0x213a03)return;let _0x5c103f=_0x50ef04(_0x38c752['dataModel']);if(!_0x5c103f)return;let _0x55d496=_0x5c103f[_0x490034(0x15f)];if(!_0x55d496)return;let _0x7dc632=(_0x331875=_0x5c103f['va'])==null?_0x2099ff['TOP']:_0x331875,_0x227ebf=(_0x2789d0=_0x5c103f['ha'])==null?_0x30a9f7[_0x490034(0x204)]:_0x2789d0,_0x130197=_n(this['_props'][_0x490034(0x11d)][_0x490034(0x205)](),_0x38c752,_0x55d496),_0x37d1cf=_0x38c752['isHorizontal'],_0x5a2b37=new _0x4de61b(_0x55d4b7(_0x55d496,{'isHorizontal':_0x37d1cf!==!0x1,'textRect':_0x517a8e,'verticalAlign':_0x7dc632,'horizontalAlign':_0x227ebf,'wrapStrategy':_0x130197[_0x490034(0x253)]})),_0x18a652=new _0x3425b8(_0x5a2b37),_0x325633=_0x3a7e93[_0x490034(0x1cd)](_0x18a652,_0x213a03);_0x325633[_0x490034(0x174)]();let _0x325836=_0x325633['getActualSize']()[_0x490034(0x1dc)],_0x24bf5a=_0x110d01({'contentHeight':_0x325836,'verticalAlign':_0x7dc632,'viewportHeight':_0x517a8e[_0x490034(0x232)]});_0x5a2b37['updateDocumentStyle']({'pageSize':{'width':_0x37d1cf===!0x1?_0x517a8e[_0x490034(0x232)]:_0x517a8e['width'],'height':_0x24bf5a['contentHeight']}}),_0x5a2b37[_0x490034(0x274)]({'t':_0x24bf5a['marginTop']}),_0x325633[_0x490034(0x174)]();let _0x731c4=new _0x5ca0dd(_0x490034(0x192)+this[_0x490034(0x163)],_0x325633,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x490034(0x165)](!0x0)});_0x731c4['resize'](_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x255)]),_0x482e69[_0x490034(0x30b)](),_0x482e69[_0x490034(0x27a)](_0x517a8e[_0x490034(0x26f)],_0x517a8e[_0x490034(0x25d)]),_0x130197[_0x490034(0x12b)]&&(_0x482e69['beginPath'](),_0x482e69[_0x490034(0x10b)](0x0,_0x24bf5a[_0x490034(0x11e)],_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x14e)]),_0x482e69['clip']()),_0x24bf5a['contentVerticalOffset']&&_0x482e69[_0x490034(0x27a)](0x0,_0x24bf5a[_0x490034(0x226)]),_0x731c4[_0x490034(0x298)](_0x482e69),_0x482e69[_0x490034(0x13e)](),_0x731c4[_0x490034(0x2b0)](),_0x325633['dispose'](),_0x18a652['dispose'](),_0x5a2b37[_0x490034(0x2b0)]();}[_0x49d8a2(0x2b5)](_0xc783ff,_0x51ddd9,_0x513a5e=!0x1){const _0x53cdc8=_0x49d8a2;if(!this[_0x53cdc8(0x316)])return this[_0x53cdc8(0x165)](!0x1),this;let {width:_0x46a8ce,height:_0x1f4b46,left:_0x1bba4d,top:_0x4c174b}=this,_0x4ee6c1=this[_0x53cdc8(0x23d)]();if(_0x46a8ce=_0x4ee6c1['width'],_0x1f4b46=_0x4ee6c1[_0x53cdc8(0x232)],_0x1bba4d=_0x4ee6c1['left'],_0x4c174b=_0x4ee6c1[_0x53cdc8(0x25d)],this[_0x53cdc8(0x1cb)](_0x51ddd9)){let {top:_0x36c3c6,left:_0x4ec051,bottom:_0x2dead7,right:_0x36d197}=_0x51ddd9[_0x53cdc8(0x2f8)];if(_0x46a8ce+this[_0x53cdc8(0x276)]+_0x1bba4d<_0x4ec051||_0x36d197<_0x1bba4d||_0x1f4b46+this[_0x53cdc8(0x276)]+_0x4c174b<_0x36c3c6||_0x2dead7<_0x4c174b)return this;}let _0x392cf9=_0x1bba4d+_0x46a8ce/0x2,_0x26859f=_0x4c174b+_0x1f4b46/0x2,_0x4c5786=this[_0x53cdc8(0x166)][_0x53cdc8(0x1d8)]();if(this['_props'][_0x53cdc8(0x193)]){let _0x3e654e=this['getState'](),_0x435b83=new _0x3a4198();_0x435b83[_0x53cdc8(0xf7)]({..._0x3e654e}),_0x4c5786=_0x435b83[_0x53cdc8(0x1d8)]();}return _0xc783ff[_0x53cdc8(0x30b)](),this[_0x53cdc8(0x122)][_0x53cdc8(0x11d)]['isRenderLinePointsMode']===!0x0||_0xc783ff[_0x53cdc8(0x166)](_0x4c5786[0x0],_0x4c5786[0x1],_0x4c5786[0x2],_0x4c5786[0x3],_0x392cf9,_0x26859f),this[_0x53cdc8(0x15e)](_0xc783ff,_0x51ddd9,_0x46a8ce,_0x1f4b46),_0xc783ff[_0x53cdc8(0x13e)](),this['makeDirty'](!0x1),this;}[_0x49d8a2(0x2be)](_0x58292f){const _0x304271=_0x49d8a2;let {left:_0x2afae3,top:_0xbccd06,width:_0x2f3764,height:_0x23fffd}=this[_0x304271(0x23d)](),_0x37cc46=this[_0x304271(0x166)]['getMatrix'](),_0xf86c3b=_0x2afae3+_0x2f3764/0x2,_0x128968=_0xbccd06+_0x23fffd/0x2,_0x10b4ca=new _0x3a4198([_0x37cc46[0x0],_0x37cc46[0x1],_0x37cc46[0x2],_0x37cc46[0x3],_0xf86c3b,_0x128968]),_0xc8baf2=this['getParent']();return(this['isInGroup']&&(_0xc8baf2==null?void 0x0:_0xc8baf2[_0x304271(0x2e7)])===_0x18ef31[_0x304271(0x237)]?_0xc8baf2[_0x304271(0x22a)][_0x304271(0x1be)](_0x10b4ca):_0x10b4ca)[_0x304271(0x2e4)]()[_0x304271(0x305)](_0x58292f);}['isHit'](_0x15e219){const _0x424868=_0x49d8a2;let {left:_0x59e365,top:_0x444d00,width:_0x447c07,height:_0x56a902}=this[_0x424868(0x23d)](),_0xe955a5=_0x59e365+_0x447c07/0x2,_0x3ddfab=_0x444d00+_0x56a902/0x2,_0x22fb59=this[_0x424868(0x166)][_0x424868(0x1d8)](),_0x517f88=new _0x3a4198([_0x22fb59[0x0],_0x22fb59[0x1],_0x22fb59[0x2],_0x22fb59[0x3],_0xe955a5,_0x3ddfab]),_0x4ebb0e=this[_0x424868(0x2bf)](),_0x36543e=(this[_0x424868(0x234)]&&(_0x4ebb0e==null?void 0x0:_0x4ebb0e[_0x424868(0x2e7)])===_0x18ef31[_0x424868(0x237)]?_0x4ebb0e[_0x424868(0x22a)][_0x424868(0x1be)](_0x517f88):_0x517f88)['invert']()[_0x424868(0x305)](_0x15e219),_0x188c2c=_0x447c07/0x2,_0x4a82a2=_0x56a902/0x2,_0x42b309=this[_0x424868(0x122)][_0x424868(0x11d)];return _0x42b309&&_0x42b309[_0x424868(0xe0)]()?_0x42b309[_0x424868(0x16a)](_0x36543e['x'],_0x36543e['y'],_0x447c07,_0x56a902):_0x36543e['x']>=-_0x188c2c-this[_0x424868(0x276)]/0x2&&_0x36543e['x']<=_0x188c2c+this[_0x424868(0x276)]/0x2&&_0x36543e['y']>=-_0x4a82a2-this['strokeWidth']/0x2&&_0x36543e['y']<=_0x4a82a2+this[_0x424868(0x276)]/0x2;}[_0x49d8a2(0x2b0)](){const _0x50cd92=_0x49d8a2;this[_0x50cd92(0x122)][_0x50cd92(0x11d)]=null,super['dispose']();}},yn=class extends _0x176254{constructor(_0xdd539e,_0x59ed33){const _0x8b44ad=_0x49d8a2;super(_0xdd539e,_0x59ed33),q(this,_0x8b44ad(0x1d0),null),q(this,'_adjName',null),q(this,_0x8b44ad(0x330),null),q(this,_0x8b44ad(0x227),null),_0x59ed33&&this[_0x8b44ad(0x25e)](_0x59ed33);}[_0x49d8a2(0x275)](){const _0x176487=_0x49d8a2;return{'unitId':this['_unitId'],'subUnitId':this[_0x176487(0x227)],'drawingId':this[_0x176487(0x1d0)]};}['setShapeProps'](_0x28da57){const _0x2e94db=_0x49d8a2;_0x28da57[_0x2e94db(0x142)]!==void 0x0&&(this[_0x2e94db(0x1d0)]=_0x28da57[_0x2e94db(0x142)]),_0x28da57[_0x2e94db(0x1a2)]!==void 0x0&&(this[_0x2e94db(0x2ad)]=_0x28da57['adjName']),_0x28da57[_0x2e94db(0x1b7)]!==void 0x0&&(this['_unitId']=_0x28da57[_0x2e94db(0x1b7)]),_0x28da57['subUnitId']!==void 0x0&&(this[_0x2e94db(0x227)]=_0x28da57[_0x2e94db(0x2b4)]),this[_0x2e94db(0x112)]({'width':_0x28da57['width'],'height':_0x28da57[_0x2e94db(0x232)]});}['_draw'](_0x266a27){const _0x3bc03f=_0x49d8a2;_0x1578ae[_0x3bc03f(0x1bf)](_0x266a27,{'radius':_0x2bea1d[_0x3bc03f(0xe1)],'fill':_0x2bea1d[_0x3bc03f(0x256)],'stroke':_0x2bea1d[_0x3bc03f(0xdd)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4806(){const _0x5bd9db=['getRealBound','_initCommands','#bcbcbc','group','onload','onCommandExecuted','_getImageDrawingInfo','localeService','Path','_registerDrawingMoveHandler','isStartConnectorPoint','PictureFill','removeLinePoints','enableObjectsEvent','_drawSimpleText','_disposed','_addShapeConnectorHandlerObject','UUID','startArrow','15837hHqJNk','getImage','1.0.0-alpha.6','wrapStrategy','endConnectionDetection','contentHeight','adjHandleFill','_sidebarDisposable','trim','attachPopupToObject','getEditing','_isImagePointerDown','_calculateFreeEndpointAngle','top','setShapeProps','viewportScrollY','_registerImageShapeClipDelegate','UNIVER_SHEET','DRAWING_GROUP','setOnSavingEditorData','getShapeDataById','sheetTransform','stringify','_shapeRenderController','clip-adj-','_baseWidth','getDrawingByParam','_injector','pipe','skeleton','_sheetShapeAdjustController','left','fill','default','_connectorObjects','_isOpenedShapeEditPanel','updateDocumentDataMargin','getDrawingSearch','strokeWidth','open','getCurrentTypeOfUnit$','setSrcRect','translateWithPrecision','_onSavingEditorData$','_isDrawingShapePointDown','_clearPopups','getAdjustValueByName','gdRefAng','_registerOperations','VIEW_MAIN','DEFAULT_PASTE','targetShapeId','sectionFloating','getShapeType','_disposePopups','_registerFocusChangeHandler','_activeShapeId','length','renderDrawingShape','connector-handler-','_initEditingParams','_getImagePrstGeom','getConnectionInfo','_createControls','changeShapeType','initShapePopupMenu','SheetShapeTextEditorContainer','_transform','_handleBasicShapeUpdateConnectorLineShape','objects','getShapeModel','gdRefY','draw','_addShapeAdjustControl','sheet.shape.edit.panel','DRAWING_TABLE','_imageIoService','SHAPE','_createShapeAdjustControls','_handleConnectedEndpointPointerUp','PRINTING_COMPONENT_COLLECT','getAdjustInfoByName','_updateImageAdjValues','delete','startConnectionDetection','_isStartAdjusting','_reset','indexOf','updateShapeFillImage','_focusedDrawings','_highlightedSiteIndex','fillImageSourceType','CROSSHAIR','_adjName','UNIVER_DOC','_commandService','dispose','_clearShapeAdjustControls','shapeType','_shapes','subUnitId','render','_shapeService','DRAWING_IMAGE','addClipboardHook','width','params','_cxnIndex','_generatePasteMutations','_findShapeAtPoint','getInverseCoord','getParent','sin','keys','iterator','_index','getRenderById','executeCommand','getImageSourceCache','_componentManager','focusDrawing','SHEET_SHAPE_UI_PLUGIN','setPrstGeom','clearAdjustControls','values','registerClipDelegate','Arrow','_activeAdjustPointList','copyType','_registerDrawingFocusChangeHandler','index','from','MEDIA','_editingParams$','canvas','_draggingConnectorId','vertical','_copyInfo','sqrt','ang','remove$','stroke','getConnectorLinePoints','_localeService','dataModel','fillType','forward','unsubscribe','invert','cxnPointStrokeWidth','relation','classType','sheet.command.update-shape-data','_contextService','_executeConnectedRouteConnectionCommand','_getShapeAdjustPointListById','top-center','includes','some','sheets-shape-ui.rotateRight90','1342551ANEJQO','data','_activeShapeAdjustPointList','setEditing','changing$','_isHighlighted','_initialize','_registerIcons','viewBound','completeEditing','_init','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','refreshTransform','_handleFreeEndpointPointerUp','_updateSrcRectByTransform','calcAdjValue','onPointerMove$','fillImageSource','_createShapePopupMenu','_baseHeight','applyPoint','getDrawingOrder','getObject','6261055tAmnUR','connection-site-','_targetShapeId','save','redo','offsetX','_getScrollInfo','_resetState','TOP','_clearConnectionSites','_baseShapeWidth','_activeShapeInfo','updateContext','_openShapeEditPanel','visible','fontSize','_executeConnectedRouteResizeCommand','video','_sheetDrawingShapeRenderController','onDblclick$','flipX','interceptCommand','sheets-shape-ui.insertShape','end','onReady','_getConnectionSiteAngle','changeEnd$','prstGeomAdjValues','_shapeUpdateListener','getAdjustNames','_popupMenuListener','_clipService','onRendered','_initCopyPaste','VIEW_MAIN_LEFT','registerFeaturePasteHook','getFocusDrawings','_findNearestConnectionSite','scale','activeAnObject','_unitId','startY','sheets-shape-ui.toggleFlipH','updateLinePoints','_sheetDrawingService','CUT','_attachAdjustEvent','INSERT','sheet.operation.open-shape-object-list-panel','title','_closeShapeEditPanel','252ijoXdU','pushUndoRedo','viewportScrollX','parent','getObjectIncludeInGroup','axisAlignSheetTransform','_hasReset','adjHandleStroke','gradientEndColor','isDrawingObject','isLineShape','adjHandleSize','constructor','_adjHandlerPointerUp','_handleConnectedEndpointMove','_initializedShapePopupMenu','syncExecuteCommand','gdRefX','_updateAdjustControlPositions','shapeText','clearAdjustValue','getShapeTypeById','isRichText','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheets-shape-ui','prototype','_currentConnectionTarget','_getShapeInfo','_sheetSkeletonService','setShapeData','selectable','with','description','composeMatrix','_sheetClipboardService','order','editingParams$','REMOVE','sheets-shape-ui.hidePanel','URL','DRAWING_UNIT','_showConnectionSites','getCurrentScrollState','_cxtHandlerPointerUp','6hfHxHr','shapeKey','featurePluginUpdateNotification','size','_urlImageService','_renderManagerService','stopPropagation','cxnPointStroke','getDrawingEditable','rect','symbol','registerRenderModule','sheets-shape-ui.permission.editErr','_baseShapeTop','5109480aUxUOK','forEach','transformByState','close','adjustValues','_executeConnectionCommand','interceptor','defineProperty','_currentUniverService','_getOrCreateShapeModel','_initPrinting','OPERATION','table','shapeModel','clipTop','CopyDoubleIcon','add','setFillImage','_props','localToWorld','_lastEditingShapeKey','getValue','_registerMoveHandler','update$','SELECTOR','_attachConnectorObjectEvent','_context','clip','computeStraightConnectorLayout','getDrawingPoints','drawingType','getUnit','worldPoints','_groupCopyPasteController','flipY','DRAWING_VIDEO','_iconManager','onTransformChange$','reverse','start','find','focus$','_loadShapePictureFill','getDrawingVisible','entries','drawing.operation.set-drawing-active','restore','_initMenu','COMMAND','Image','shapeId','_updateShapeAdjustControls','reduce','sheet.image-clip.shape-picker.component','SHAPE_TEXT','registerCommand','clone','getSelectedObjectMap','updateConnectionDetection','getTransformerByCreate','Rect','_currentScene','clipHeight','setContextValue','_insertShapes','getUnitType','setShouldShowAdjust','refreshShapeFillImage','isArray','_baseLeft','2431176tEtTQo','image','_baseShapeLeft','_drawingManagerService','next','_sheetPrintInterceptorService','hidden','_activeImageId','_draw','doc','_commandExecutedListener','addImageSourceCache','disableObjectsEvent','oKey','setPrstGeomAdjValues','makeDirty','transform','_connectionSiteObjects','univer-box-border\x20univer-px-4\x20univer-text-sm','getSheetBySheetId','isHitLine','_isStartConnectorPoint','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','disposeWithMe','sheets-shape-ui.objectListPanel.open','setCursor','sheets-shape-ui.objectListPanel.title','beforeCommandExecuted','_baseTop','DRAWING_DOM','calculate','_sidebarService','fontFamily','pick','prstGeom','_updateTransform','_adjHandlerPointerMove','cos','VIEW_MAIN_LEFT_TOP','_sheetBasicShapeConnectionPointController','endArrow','permissionCheckWithoutRange','_drawingAddListener','DRAWING_SHAPE','_sheetCanvasPopManagerService','getTransformer','rotation','_shapeTextEditingService','_clearControls','5830946CREyAZ','_generateCutPasteMutations','VIEW_MAIN_TOP','_imageShapeClipController','getDrawingOKey','activeSheet$','resetCursor','offsetY','_config','sheet.shape.text.float-menu','sheet.shape.picker.component','shape-text-','isEditing','_drawShapeText','ShapeIcon','object','_handleConnectorPointerUp','getConnectionSiteList','getCurrentUnitOfType','sheetViewStartColumn','subscribeEvent','_registerGroupFeaturePasteHook','_loadAndSetImage','_moveConnectorWithShape','shape-adjust-point-','registerFeatureMenuOffset','map','adjName','Large','getSkeleton','DRAWING_SMART_ART','_drawingType','4hNKHvo','error','getBatchRemoveOp','_drawRichText','bind','clear','_activeTargetShapeId','DRAWING_CHART','BUTTON','shape','Medium','7640045AsVKzU','_rerouteConnectorLine','getConnectionRelation','div','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','unitId','_univerInstanceService','_getConnectPointInfo','getBasicShapeRelation','_registerComponents','get','transformForAngle','multiply','drawWith','_sheetInterceptorService','_clearShapeConnectorHandlerObjects','_baseShapeHeight','getSkeletonParam','worldPoint','shapeData','refreshAdjustControls','addObject','unit','_getSceneAndTransformerByDrawingSearch','onPointerDown$','isRender','getShapeTextData','create','sheet.operation.open-sheet-shape-format-panel','setAdjustValueByName','_shapeId','_isShouldShowDrawingShapeAdjust','_isConnecting','custom','SolidFill','_executeResizeCommand','_initEvents','extraProps','getMatrix','getStartConnectInfo','filter','_activeShapeModel','actualHeight','name','gdRefR','clip-','getCurrentSkeleton','sheets-shape-ui.toggleTextVertical','version','#4285f4','_initSheetChange','complete','sheet.shape.object-list.panel','computeConnectorResizeLayout','sheet.command.menu-insert-shape','_activeAdjustInfo','abs','cxnPointRadius','isHighlighted','_getDrawingRect','sheet.shape.floating-toolbar','getCurrentLastSelection','normal','blockExecuteWithoutPermission','changeStart$','undo','_generateCopyPasteMutations','startX','sheets-shape-ui.openPanel','18sWnEDp','_baseDrawingRect','doc.image-clip.shape-picker.component','angle','clipByShape','onPointerUp$','function','highlighted','type','smartArt','None','string','_shapeEditPanelVersion','LEFT','getShapeData','sheetViewStartRow','_sheetPermissionCheckController','packageName','onerror','set','getBatchAddOp','_getShapeAdjustInfosById','_insertingShapeKeys','drawingId','setCanUseShapeClip','UPDATE','_addShapeConnectorHandlerObjects','subscribe','sectionCanvas','push','has','SolidLine','cxnIndex','sheets-shape-ui.config','_addControl','getOwnPropertyDescriptor','_drawingRenderService','value','register','_createCopyInfoByRange','_handleFreeEndpointMove','_sheetsShapeService','getZoomRatio','cxnPointFill','getEndConnectInfo','_getZoomRatio','srcRect','contentVerticalOffset','_subUnitId','scene','getUnitId','ancestorTransform','_cxtHandlerPointerMove','point','getDrawingDataForUnit','lineType','getBentTypeFromPoints','parse','_initPermission','height','getDrawingData','isInGroup','lineShapeId','horizontal','GROUP','worldRect','getShapePopupMenus','#FFFFFF','_configService','Line'];_0x4806=function(){return _0x5bd9db;};return _0x4806();}function J(_0xb3a217,_0x1500ed){return function(_0x29141b,_0x3e3e71){_0x1500ed(_0x29141b,_0x3e3e71,_0xb3a217);};}function Y(_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005){const _0x5b8e51=_0x49d8a2;var _0x3d4c39=arguments[_0x5b8e51(0x289)],_0x29f281=_0x3d4c39<0x3?_0x41dde7:_0x5d8005===null?_0x5d8005=Object[_0x5b8e51(0x21a)](_0x41dde7,_0x52f893):_0x5d8005,_0x5f5b4b;if(typeof Reflect==_0x5b8e51(0x196)&&typeof Reflect['decorate']==_0x5b8e51(0x1fd))_0x29f281=Reflect['decorate'](_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005);else{for(var _0x1d23d6=_0x52d7d5[_0x5b8e51(0x289)]-0x1;_0x1d23d6>=0x0;_0x1d23d6--)(_0x5f5b4b=_0x52d7d5[_0x1d23d6])&&(_0x29f281=(_0x3d4c39<0x3?_0x5f5b4b(_0x29f281):_0x3d4c39>0x3?_0x5f5b4b(_0x41dde7,_0x52f893,_0x29f281):_0x5f5b4b(_0x41dde7,_0x52f893))||_0x29f281);}return _0x3d4c39>0x3&&_0x29f281&&Object[_0x5b8e51(0x117)](_0x41dde7,_0x52f893,_0x29f281),_0x29f281;}let X=class extends _0x1e0fa2{constructor(_0xc7b7be,_0x282990,_0x3b5f84,_0x4a7dd1,_0x409765){const _0x2a11b4=_0x49d8a2;super(),this[_0x2a11b4(0x159)]=_0xc7b7be,this[_0x2a11b4(0x220)]=_0x282990,this[_0x2a11b4(0x2df)]=_0x3b5f84,this['_imageIoService']=_0x4a7dd1,this[_0x2a11b4(0x106)]=_0x409765;}[_0x49d8a2(0x28a)](_0x183459,_0xa406ea,_0x46fcfc){const _0x161f5f=_0x49d8a2;let {transform:_0x1c95f3,drawingType:_0x44e1d2,srcRect:_0x560d86,prstGeom:_0x5ba077,groupId:_0x10b00d,unitId:_0x399804,subUnitId:_0x42497e,drawingId:_0x2a0ac4,isMultiTransform:_0x3cd3d3,transforms:_0x299ac5,hidden:_0x3cf1a7,selectable:_0x3228ec}=_0x183459;if(_0x44e1d2!==_0x336997[_0x161f5f(0x181)]||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]()||_0x1c95f3==null)return;let _0x1d2d53=this[_0x161f5f(0x159)][_0x161f5f(0x10a)]();_0x1d2d53&&_0xa406ea['initTransformer'](_0x370f9f);let _0x51e870=_0x3cd3d3&&_0x299ac5?_0x299ac5:[_0x1c95f3],_0x34a08a=[];for(let _0x12314e of _0x51e870){let {left:_0x23478f,top:_0x17f99d,width:_0x183345,height:_0x283433,angle:_0x5873e8,flipX:_0x432d6c,flipY:_0x1c7b82,skewX:_0x4cd3eb,skewY:_0x3d352c}=_0x12314e,_0x445ab2=_0x51e870[_0x161f5f(0x2a7)](_0x12314e),_0x2707a4=_0x24e648({'unitId':_0x399804,'subUnitId':_0x42497e,'drawingId':_0x2a0ac4},_0x3cd3d3?_0x445ab2:void 0x0),_0x2f0354=_0xa406ea[_0x161f5f(0xda)](_0x2707a4);if(_0x2f0354!=null){_0x2f0354[_0x161f5f(0x112)]({'left':_0x23478f,'top':_0x17f99d,'width':_0x183345,'height':_0x283433,'angle':_0x5873e8,'flipX':_0x432d6c,'flipY':_0x1c7b82,'skewX':_0x4cd3eb,'skewY':_0x3d352c});continue;}let _0x19b12a=this[_0x161f5f(0x159)][_0x161f5f(0x306)](_0x399804,_0x42497e),_0x4d1bc9=_0x19b12a[_0x161f5f(0x2a7)](_0x2a0ac4);if(_0xa406ea['getObjectIncludeInGroup'](_0x2707a4)||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]())continue;let _0x37b3ea=this[_0x161f5f(0x220)]['getShapeModel'](_0x399804,_0x42497e,_0x2a0ac4);if(!_0x37b3ea)continue;let _0x30f654=new vn(_0x2707a4,{..._0x5d2a5e(_0x37b3ea[_0x161f5f(0x285)]())?{..._0x12314e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x12314e},'zIndex':_0x4d1bc9===-0x1?_0x19b12a[_0x161f5f(0x289)]-0x1:_0x4d1bc9,'shapeModel':_0x37b3ea,'localeService':this[_0x161f5f(0x2df)],'shapeId':_0x2a0ac4,'unitId':_0x399804,'subUnitId':_0x42497e,'visible':_0x3cf1a7!==!0x0,'evented':_0x3228ec!==!0x1});_0xa406ea[_0x161f5f(0x1c7)](_0x30f654,_0x529f4c),_0x1d2d53&&_0xa406ea['attachTransformerTo'](_0x30f654),_0x10b00d&&_0x4cf997({'drawingId':_0x10b00d,'unitId':_0x399804,'subUnitId':_0x42497e},_0x30f654,_0xa406ea,this[_0x161f5f(0x159)]),_0x5ba077!=null&&_0x30f654[_0x161f5f(0x2ca)](_0x5ba077),_0x560d86!=null&&_0x30f654[_0x161f5f(0x279)](_0x560d86);let _0x3e036d=this[_0x161f5f(0x13a)](_0x30f654,_0x37b3ea[_0x161f5f(0x205)]());if(_0x3e036d){var _0x3ecd5c;_0x46fcfc==null||(_0x3ecd5c=_0x46fcfc['resourceCollector'])==null||_0x3ecd5c[_0x161f5f(0x120)](_0x3e036d);}_0x34a08a[_0x161f5f(0x214)](_0x30f654);}return _0x34a08a;}[_0x49d8a2(0x153)](_0x56d730){const _0xddfde5=_0x49d8a2;let _0x3abb37=_0x56d730[_0xddfde5(0x11d)][_0xddfde5(0x205)](),_0x4fa523=_0x3abb37['fill'];if(!_0x4fa523||_0x4fa523['fillType']!==_0x13bf97[_0xddfde5(0x248)]||!_0x4fa523[_0xddfde5(0x302)]){_0x56d730['setFillImage'](void 0x0);return;}this[_0xddfde5(0x13a)](_0x56d730,_0x3abb37);}[_0x49d8a2(0x13a)](_0x5a7c49,_0x562149){const _0x5e027e=_0x49d8a2;var _0x3c7896;let _0x122467=_0x562149[_0x5e027e(0x270)];if(!_0x122467||_0x122467[_0x5e027e(0x2e1)]!==_0x13bf97[_0x5e027e(0x248)]||!_0x122467[_0x5e027e(0x302)])return;let _0x3aa8ea=_0x122467[_0x5e027e(0x302)],_0x36cd84=(_0x3c7896=_0x122467[_0x5e027e(0x2ab)])==null?_0x4ed528[_0x5e027e(0xfd)]:_0x3c7896,_0x5ac8b9=this[_0x5e027e(0x29c)][_0x5e027e(0x2c6)](_0x3aa8ea,_0x36cd84);if(_0x5ac8b9){_0x5a7c49['setFillImage'](_0x5ac8b9);return;}return this[_0x5e027e(0x19d)](_0x5a7c49,_0x3aa8ea,_0x36cd84);}async['_loadAndSetImage'](_0x177cde,_0x4fc87b,_0x1ef0cc){const _0x3ef31f=_0x49d8a2;let _0x38dc1f;try{if(_0x1ef0cc===_0x4ed528[_0x3ef31f(0x24e)])_0x38dc1f=await this[_0x3ef31f(0x29c)][_0x3ef31f(0x251)](_0x4fc87b);else{if(_0x1ef0cc===_0x4ed528['URL'])try{_0x38dc1f=await this[_0x3ef31f(0x106)][_0x3ef31f(0x251)](_0x4fc87b);}catch{_0x38dc1f=_0x4fc87b;}else _0x38dc1f=_0x4fc87b;}}catch(_0x3e4405){console[_0x3ef31f(0x1a8)](_0x3ef31f(0x1b6),_0x3e4405);return;}await new Promise(_0x2d1c56=>{const _0x245545=_0x3ef31f;let _0x50861e=new window[(_0x245545(0x141))]();_0x50861e[_0x245545(0x241)]=()=>{const _0x15b258=_0x245545;this[_0x15b258(0x29c)][_0x15b258(0x161)](_0x4fc87b,_0x1ef0cc,_0x50861e),_0x177cde['setFillImage'](_0x50861e),_0x2d1c56();},_0x50861e[_0x245545(0x209)]=()=>{const _0x16014a=_0x245545;console[_0x16014a(0x1a8)](_0x16014a(0x16c),_0x4fc87b),_0x2d1c56();},_0x50861e['src']=_0x38dc1f;});}};X=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x9a7c24)),J(0x3,_0x529318),J(0x4,_0x225d5a)],X);let Z=class extends _0x1e0fa2{constructor(_0x3aebbc,_0x4b6fbe,_0xbe75ea,_0x1895b7,_0x8d9146,_0x289c49){const _0x2bde6b=_0x49d8a2;super(),this[_0x2bde6b(0x159)]=_0x3aebbc,this['_sheetsShapeService']=_0x4b6fbe,this[_0x2bde6b(0x107)]=_0xbe75ea,this[_0x2bde6b(0x31a)]=_0x1895b7,this[_0x2bde6b(0x1b8)]=_0x8d9146,this['_commandService']=_0x289c49,q(this,_0x2bde6b(0x288),null),q(this,'_unitId',null),q(this,_0x2bde6b(0x227),null),q(this,_0x2bde6b(0x2f2),void 0x0),q(this,_0x2bde6b(0x2b3),[]),q(this,_0x2bde6b(0x158),0x0),q(this,_0x2bde6b(0x10f),0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x2bde6b(0x2a5),!0x1),q(this,_0x2bde6b(0x1e9),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x2bde6b(0x17a),void 0x0),q(this,_0x2bde6b(0xe3),void 0x0),q(this,_0x2bde6b(0x1d1),!0x1),this[_0x2bde6b(0x2d1)](),this[_0x2bde6b(0x246)]();}[_0x49d8a2(0x2eb)](_0xcfd4a4,_0xbb8d88,_0x839645){const _0xcf92de=_0x49d8a2;let _0x377cf1=this[_0xcf92de(0x220)][_0xcf92de(0x296)](_0xcfd4a4,_0xbb8d88,_0x839645);if(_0x377cf1)return _0x377cf1[_0xcf92de(0x12d)]();}[_0x49d8a2(0x2cb)](){const _0x67b11=_0x49d8a2;this[_0x67b11(0x2b1)]();}[_0x49d8a2(0x1c6)](){this['_updateShapeAdjustControls'](!0x0);}[_0x49d8a2(0x152)](_0x408502){const _0x30cb79=_0x49d8a2;this[_0x30cb79(0x1d1)]=_0x408502;}[_0x49d8a2(0x20c)](_0x4f9178,_0x39c783,_0x280608,_0x332d05){const _0x958057=_0x49d8a2;let _0x508315=this['_sheetsShapeService']['getShapeModel'](_0x4f9178,_0x39c783,_0x280608);if(_0x508315)return _0x508315[_0x958057(0x2a1)](_0x332d05);}[_0x49d8a2(0x29e)](_0x10d2cd=!0x1){const _0x2a6f7e=_0x49d8a2;if(this[_0x2a6f7e(0x330)]===null||this[_0x2a6f7e(0x227)]===null||this[_0x2a6f7e(0x288)]===null)return;let _0x30e784=this[_0x2a6f7e(0x107)][_0x2a6f7e(0x2c4)](this['_unitId']);if(!_0x30e784||!_0x30e784[_0x2a6f7e(0xf5)](_0x4b5a3f)[_0x2a6f7e(0x1e0)]())return;let {scene:_0x3cc1f9}=_0x30e784,_0x577b58={'unitId':this[_0x2a6f7e(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2a6f7e(0x288)]},_0x484086=this[_0x2a6f7e(0x159)][_0x2a6f7e(0x26a)](_0x577b58),{transform:_0x28044d}=_0x484086;if(!_0x28044d||_0x484086['drawingType']!==_0x336997['DRAWING_SHAPE'])return;let {left:_0x21a817,top:_0x8767e6,width:_0x1fe606,height:_0x35ef5d,flipX:_0x979434,flipY:_0x3927ad,angle:_0x18c912=0x0}=_0x28044d;if(_0x21a817===void 0x0||_0x8767e6===void 0x0)return;_0x10d2cd&&(this[_0x2a6f7e(0x2f2)]=this[_0x2a6f7e(0x2eb)](this['_unitId'],this[_0x2a6f7e(0x227)],this['_activeShapeId']));let _0x25126f=this[_0x2a6f7e(0x2f2)];for(let _0x401736=0x0;_0x401736<_0x25126f[_0x2a6f7e(0x289)];_0x401736++){let _0x9bfae9=_0x25126f[_0x401736],_0x25f64f=_0x9bfae9['x'],_0x5675c2=_0x9bfae9['y'];if(_0x979434&&(_0x25f64f=(_0x1fe606||0x0)-_0x25f64f),_0x3927ad&&(_0x5675c2=(_0x35ef5d||0x0)-_0x5675c2),_0x18c912!==0x0){let _0x46a93f=(_0x1fe606||0x0)/0x2,_0x5446f5=(_0x35ef5d||0x0)/0x2,_0x3cab39=_0x18c912*Math['PI']/0xb4,_0x2fa816=Math[_0x2a6f7e(0x17b)](_0x3cab39),_0x5b6012=Math[_0x2a6f7e(0x2c0)](_0x3cab39),_0x393125=_0x25f64f-_0x46a93f,_0x155f55=_0x5675c2-_0x5446f5;_0x25f64f=_0x46a93f+(_0x393125*_0x2fa816-_0x155f55*_0x5b6012),_0x5675c2=_0x5446f5+(_0x393125*_0x5b6012+_0x155f55*_0x2fa816);}let _0x512737={'x':_0x25f64f,'y':_0x5675c2,'adjName':_0x9bfae9[_0x2a6f7e(0x1a2)]};this[_0x2a6f7e(0x299)](_0x3cc1f9,_0x512737,_0x512737[_0x2a6f7e(0x1a2)],_0x21a817,_0x8767e6,this[_0x2a6f7e(0x330)],this[_0x2a6f7e(0x227)]);}}[_0x49d8a2(0x143)](_0x2dec76=!0x1){const _0x12340f=_0x49d8a2;_0x2dec76&&(this[_0x12340f(0x2b1)](),this[_0x12340f(0x29e)](_0x2dec76));}[_0x49d8a2(0x299)](_0x1b09a7,_0x5165d9,_0x4d8f22,_0x49fd79,_0x327b37,_0x44ad33,_0x13153e){const _0x3a366f=_0x49d8a2;if(!this['_activeShapeId'])return;let _0x5127a0=_0x1b09a7['getObjectIncludeInGroup'](_0x3a366f(0x19f)+this[_0x3a366f(0x288)]+'-'+_0x4d8f22);if(_0x5127a0){_0x5127a0[_0x3a366f(0x112)]({'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)]});return;}let _0x28ab48={'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)],'adjName':_0x4d8f22,'shapeId':this['_activeShapeId'],'unitId':_0x44ad33,'subUnitId':_0x13153e,'width':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'height':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0},_0x493b85=new yn('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x4d8f22,_0x28ab48);this[_0x3a366f(0x2b3)][_0x3a366f(0x214)](_0x493b85),this[_0x3a366f(0x336)](_0x493b85,_0x1b09a7,_0x4d8f22),_0x1b09a7['addObject'](_0x493b85,_0x529f4c+0x1);}['_clearShapeAdjustControls'](){const _0x2d3282=_0x49d8a2;this[_0x2d3282(0x2b3)][_0x2d3282(0x289)]!==0x0&&(this[_0x2d3282(0x2b3)][_0x2d3282(0x111)](_0x168804=>{const _0x3346e5=_0x2d3282;_0x168804[_0x3346e5(0x2b0)]();}),this[_0x2d3282(0x2b3)]=[]);}[_0x49d8a2(0xe8)](){const _0x153462=_0x49d8a2;this[_0x153462(0x29e)]();}[_0x49d8a2(0x30e)](_0x3b3eb2,_0x1d61f9){const _0x253526=_0x49d8a2;var _0x52b773;let _0x5bbf57={'x':0x0,'y':0x0};if(!_0x3b3eb2||!_0x1d61f9)return _0x5bbf57;let _0x293cf6=this[_0x253526(0x107)][_0x253526(0x2c4)](_0x3b3eb2);if(!_0x293cf6||!_0x293cf6[_0x253526(0xf5)](_0x4b5a3f)[_0x253526(0x1a4)](_0x1d61f9))return _0x5bbf57;let _0x438003=_0x293cf6[_0x253526(0xf5)](_0x5480ae),_0x4ab9e5=_0x438003==null?void 0x0:_0x438003[_0x253526(0x100)]();if(!_0x4ab9e5)return _0x5bbf57;let _0x5b02ba=(_0x52b773=this[_0x253526(0x1b8)][_0x253526(0x12f)](_0x3b3eb2))==null?void 0x0:_0x52b773['getSheetBySheetId'](_0x1d61f9);if(!_0x5b02ba)return _0x5bbf57;let _0x257fe7=_0x356c4d(_0x4ab9e5[_0x253526(0x206)],_0x4ab9e5['sheetViewStartColumn'],_0x293cf6[_0x253526(0x228)],_0x5b02ba);return _0x257fe7?{'x':_0x257fe7[_0x253526(0x33d)],'y':_0x257fe7[_0x253526(0x25f)]}:_0x5bbf57;}[_0x49d8a2(0x224)](_0x374235,_0x505d02){const _0x21a3f2=_0x49d8a2;var _0x44c1ea,_0x813016;let _0x3fabc9=(_0x44c1ea=this[_0x21a3f2(0x1b8)][_0x21a3f2(0x12f)](_0x374235))==null?void 0x0:_0x44c1ea['getSheetBySheetId'](_0x505d02);return(_0x813016=_0x3fabc9==null?void 0x0:_0x3fabc9[_0x21a3f2(0x221)]())==null?0x1:_0x813016;}[_0x49d8a2(0x336)](_0x429c62,_0x42e49c,_0x905fa9){const _0x4b5fa0=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x429c62[_0x4b5fa0(0x1ca)][_0x4b5fa0(0x19b)]((_0x4a55a3,_0x153f6b)=>{const _0x183a09=_0x4b5fa0;var _0x4a9623,_0x473957,_0x25031f,_0x440550;let _0x5e968b=_0x429c62['getDrawingSearch']();this[_0x183a09(0x1e9)]=this[_0x183a09(0x20c)](_0x5e968b['unitId'],_0x5e968b['subUnitId'],_0x5e968b[_0x183a09(0x20e)],_0x905fa9),this[_0x183a09(0x1db)]=this[_0x183a09(0x220)][_0x183a09(0x296)](_0x5e968b['unitId'],_0x5e968b[_0x183a09(0x2b4)],_0x5e968b[_0x183a09(0x20e)]);let _0x1da94a=this[_0x183a09(0x159)][_0x183a09(0x26a)]({'unitId':this[_0x183a09(0x330)],'subUnitId':this[_0x183a09(0x227)],'drawingId':this['_activeShapeId']}),{transform:_0x5699a2}=_0x1da94a;if(_0x5699a2){let {left:_0x300435,top:_0x2a827b,width:_0x26733c,height:_0xa2716f}=_0x5699a2;this[_0x183a09(0x158)]=_0x300435||0x0,this[_0x183a09(0x10f)]=_0x2a827b||0x0,this[_0x183a09(0x312)]=_0x26733c||0x0,this['_baseShapeHeight']=_0xa2716f||0x0;}let _0x2507f9=!!((_0x4a9623=_0x1da94a[_0x183a09(0x166)])!=null&&_0x4a9623['flipX']),_0x4351d4=!!((_0x473957=_0x1da94a[_0x183a09(0x166)])!=null&&_0x473957[_0x183a09(0x132)]),_0x50cb41=((_0x25031f=_0x1da94a[_0x183a09(0x166)])==null?void 0x0:_0x25031f[_0x183a09(0x1fa)])||0x0;this[_0x183a09(0x2a5)]=!0x0,_0x42e49c[_0x183a09(0x162)]();let _0x412c8a=(_0x440550=this['_activeShapeModel'])==null?void 0x0:_0x440550['getAdjustValueByName'](_0x905fa9),_0x170901={[_0x905fa9]:_0x412c8a};this[_0x183a09(0x17a)]=_0x42e49c[_0x183a09(0x301)][_0x183a09(0x19b)]((_0x191d91,_0x1a496c)=>{const _0x2857bb=_0x183a09;if(!this[_0x2857bb(0x2a5)])return;let {offsetX:_0x27a99b,offsetY:_0x226e51}=_0x191d91,_0x3ef4dd=this[_0x2857bb(0x1e9)];if(this[_0x2857bb(0x1db)]&&_0x3ef4dd){_0x42e49c[_0x2857bb(0x162)](),_0x42e49c[_0x2857bb(0x16f)](_0x35244f['CROSSHAIR']);let _0xce89c7={'left':0x0,'top':0x0,'width':this[_0x2857bb(0x312)],'height':this[_0x2857bb(0x1c2)]},_0x368aff=this['_getScrollInfo'](this['_unitId'],this[_0x2857bb(0x227)]),_0x249022=this[_0x2857bb(0x224)](this[_0x2857bb(0x330)],this[_0x2857bb(0x227)]),_0x569805=_0x27a99b/_0x249022+_0x368aff['x']-this['_baseShapeLeft'],_0x5badc8=_0x226e51/_0x249022+_0x368aff['y']-this[_0x2857bb(0x10f)];if(_0x50cb41!==0x0){let _0x4dc7f1=this[_0x2857bb(0x312)]/0x2,_0x1fa3f1=this[_0x2857bb(0x1c2)]/0x2,_0x486857=_0x50cb41*Math['PI']/0xb4,_0x15b3a3=Math[_0x2857bb(0x17b)](_0x486857),_0x5ea094=Math[_0x2857bb(0x2c0)](_0x486857),_0x4040d9=_0x569805-_0x4dc7f1,_0x3a901f=_0x5badc8-_0x1fa3f1;_0x569805=_0x4dc7f1+(_0x4040d9*_0x15b3a3+_0x3a901f*_0x5ea094),_0x5badc8=_0x1fa3f1+(-_0x4040d9*_0x5ea094+_0x3a901f*_0x15b3a3);}_0x2507f9&&(_0x569805=this[_0x2857bb(0x312)]-_0x569805),_0x4351d4&&(_0x5badc8=this[_0x2857bb(0x1c2)]-_0x5badc8);let _0x24c362={'x':_0x569805,'y':_0x5badc8},_0x491ea0=this[_0x2857bb(0x1db)][_0x2857bb(0x300)](_0xce89c7,_0x24c362,_0x3ef4dd,_0x2507f9,_0x4351d4),_0x34fd8d=_0x3ef4dd[_0x2857bb(0xe7)]||_0x3ef4dd[_0x2857bb(0x297)]||_0x3ef4dd[_0x2857bb(0x27f)]||_0x3ef4dd[_0x2857bb(0x1de)];if(_0x34fd8d===void 0x0)return;this[_0x2857bb(0x1db)][_0x2857bb(0x1cf)](_0x34fd8d,_0x491ea0);let _0xbc5bc=this[_0x2857bb(0x159)]['getDrawingByParam']({'unitId':_0x5e968b[_0x2857bb(0x1b7)],'subUnitId':_0x5e968b[_0x2857bb(0x2b4)],'drawingId':_0x5e968b['drawingId']});_0xbc5bc&&(this[_0x2857bb(0x31a)][_0x2857bb(0x28a)](_0xbc5bc,_0x42e49c),this[_0x2857bb(0x2f2)]=this[_0x2857bb(0x2eb)](_0x5e968b[_0x2857bb(0x1b7)],_0x5e968b[_0x2857bb(0x2b4)],_0x5e968b[_0x2857bb(0x20e)]),this['_updateAdjustControlPositions']());}_0x1a496c[_0x2857bb(0x108)]();}),this[_0x183a09(0xe3)]=_0x42e49c[_0x183a09(0x1fc)][_0x183a09(0x19b)]((_0x2e36c1,_0x2a5efc)=>{const _0xa2c591=_0x183a09;this[_0xa2c591(0x17a)][_0xa2c591(0x2e3)](),this[_0xa2c591(0xe3)][_0xa2c591(0x2e3)](),_0x42e49c[_0xa2c591(0x18d)]();let _0x17d2b2=this[_0xa2c591(0x1e9)];if(_0x17d2b2){let _0x12e65f=_0x5e968b[_0xa2c591(0x1b7)],_0x5250e7=_0x5e968b[_0xa2c591(0x2b4)],_0x29eda6=_0x5e968b[_0xa2c591(0x20e)],_0x33c541=_0x17d2b2[_0xa2c591(0xe7)]||_0x17d2b2['gdRefY']||_0x17d2b2['gdRefAng']||_0x17d2b2['gdRefR'];if(_0x33c541!==void 0x0){var _0x29896f;let _0x1cfad6=(_0x29896f=this['_activeShapeModel'])==null?void 0x0:_0x29896f['getAdjustValueByName'](_0x33c541);_0x1cfad6!==void 0x0&&fn(this[_0xa2c591(0x2af)],_0x12e65f,_0x5250e7,_0x29eda6,{'oldShapeData':{'adjustValues':_0x170901}},{'adjustValues':{[_0x33c541]:_0x1cfad6}});}}this[_0xa2c591(0x1e9)]=void 0x0,this[_0xa2c591(0x1db)]=void 0x0,this[_0xa2c591(0x2a5)]=!0x1,_0x2a5efc['stopPropagation'](),_0x42e49c['enableObjectsEvent']();}),_0x153f6b['stopPropagation']();})));}[_0x49d8a2(0x246)](){const _0x4ee53e=_0x49d8a2;let _0x587288=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x4ee53e(0x261)]);this[_0x4ee53e(0x16d)](_0x587288[_0x4ee53e(0x26c)](_0x48371d(_0x37bc03=>_0x37bc03?_0x37bc03['activeSheet$'][_0x4ee53e(0x26c)](_0x48371d(_0x35f3dd=>{const _0x2fb329=_0x4ee53e;if(!_0x35f3dd)return _0x4e602d;let _0x4cee81=_0x37bc03[_0x2fb329(0x229)](),_0x199577=this['_renderManagerService'][_0x2fb329(0x2c4)](_0x4cee81),_0x129694=_0x199577==null?void 0x0:_0x199577[_0x2fb329(0x228)];return _0x129694?_0x5ba9b9(_0x129694):_0x4e602d;})):_0x4e602d))[_0x4ee53e(0x212)](_0x3a2c4b=>{const _0x39b755=_0x4ee53e;let _0x29ca3b=_0x3a2c4b[_0x39b755(0x14b)]();this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x301)][_0x39b755(0x19b)](()=>{const _0x234302=_0x39b755;this[_0x234302(0x1d1)];})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x1f2)][_0x39b755(0x212)](_0x552478=>{const _0x552468=_0x39b755;let {objects:_0x4a3f3f}=_0x552478;this['_createShapeAdjustControls'](),_0x4a3f3f!==null&&_0x4a3f3f[_0x552468(0x105)]===0x1&&_0x4a3f3f[_0x552468(0x2cc)]()[_0x552468(0x15a)]()[_0x552468(0x21c)]instanceof vn&&this['setShouldShowAdjust'](!0x0);})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x2f4)][_0x39b755(0x212)](()=>{const _0x2a8783=_0x39b755;this[_0x2a8783(0x1d1)]&&this[_0x2a8783(0x2b1)]();})),this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x1fc)]['subscribeEvent'](()=>{const _0x1237f8=_0x39b755;this[_0x1237f8(0x1d1)]&&(this[_0x1237f8(0x152)](!0x1),this[_0x1237f8(0x29e)]());})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x322)][_0x39b755(0x212)](()=>{const _0x4a5d80=_0x39b755;this[_0x4a5d80(0x330)]&&this[_0x4a5d80(0x227)]&&this['_activeShapeId']&&this[_0x4a5d80(0x159)][_0x4a5d80(0x26a)]({'unitId':this[_0x4a5d80(0x330)],'subUnitId':this[_0x4a5d80(0x227)],'drawingId':this[_0x4a5d80(0x288)]})&&(this[_0x4a5d80(0x2f2)]=this[_0x4a5d80(0x2eb)](this[_0x4a5d80(0x330)],this[_0x4a5d80(0x227)],this[_0x4a5d80(0x288)]),this['_updateAdjustControlPositions']());}));}));}[_0x49d8a2(0x2d1)](){const _0x45f74f=_0x49d8a2;this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)][_0x45f74f(0x139)][_0x45f74f(0x212)](_0x166d74=>{const _0x2351a5=_0x45f74f;if(_0x166d74[_0x2351a5(0x289)]===0x1){let _0x2519a5=_0x166d74[0x0];if(_0x2519a5[_0x2351a5(0x12e)]===_0x336997['DRAWING_SHAPE']){this[_0x2351a5(0x288)]=_0x2519a5[_0x2351a5(0x20e)];let {unitId:_0x5bd236,subUnitId:_0x1cb204}=_0x2519a5;this[_0x2351a5(0x2f2)]=this[_0x2351a5(0x2eb)](_0x5bd236,_0x1cb204,this['_activeShapeId']),this[_0x2351a5(0x330)]=_0x5bd236,this['_subUnitId']=_0x1cb204,this[_0x2351a5(0x2b1)](),this['_createShapeAdjustControls']();}else this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this['_unitId']=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]();}(_0x166d74['length']>0x1||_0x166d74[_0x2351a5(0x289)]===0x0)&&(this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this[_0x2351a5(0x330)]=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]());})),this[_0x45f74f(0x16d)](this['_drawingManagerService'][_0x45f74f(0x127)]['subscribe'](_0x2aceb=>{const _0x522799=_0x45f74f;if(_0x2aceb[_0x522799(0x289)]===0x1){var _0x5d2838;let _0x4ac4d2=_0x2aceb[0x0];((_0x5d2838=this[_0x522799(0x159)][_0x522799(0x26a)](_0x4ac4d2))==null?void 0x0:_0x5d2838[_0x522799(0x12e)])===_0x336997['DRAWING_SHAPE']&&this[_0x522799(0x143)](!0x0);}})),this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)]['remove$'][_0x45f74f(0x212)](_0x37ff47=>{const _0x48087c=_0x45f74f;for(let _0x5c55a2 of _0x37ff47)this[_0x48087c(0x288)]===_0x5c55a2[_0x48087c(0x20e)]&&(this[_0x48087c(0x288)]=null,this[_0x48087c(0x2f2)]=void 0x0,this[_0x48087c(0x330)]=null,this[_0x48087c(0x227)]=null,this[_0x48087c(0x2b1)]());}));}};Z=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x3465f0(X)),J(0x4,_0x2320a1),J(0x5,_0x3002c9)],Z);const bn={'id':_0x49d8a2(0x13d),'type':_0xbd62c0[_0x49d8a2(0x11b)],'handler':(_0x143329,_0x2b724b)=>{const _0xf8d449=_0x49d8a2;let _0x252d18=_0x143329[_0xf8d449(0x1bc)](_0x5a9176),_0x42fd73=_0x143329['get'](_0x2565d9),_0x4b65fd=_0x143329['get'](Z);if(_0x2b724b==null)return!0x0;if(_0x2b724b[_0xf8d449(0x289)]>0x0){var _0x151571;let _0x243061=(_0x151571=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null?void 0x0:_0x151571[_0xf8d449(0x228)];if(_0x243061){let {unitId:_0x1aa4da,subUnitId:_0x11cf1f,drawingId:_0x4851a8}=_0x2b724b[0x0],_0x384b1d=_0x24e648({'unitId':_0x1aa4da,'subUnitId':_0x11cf1f,'drawingId':_0x4851a8},void 0x0),_0x3df695=_0x243061[_0xf8d449(0xda)](_0x384b1d);if(_0x3df695){var _0x1a28bd;(_0x1a28bd=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null||(_0x1a28bd=_0x1a28bd[_0xf8d449(0x228)][_0xf8d449(0x183)]())==null||_0x1a28bd[_0xf8d449(0x32f)](_0x3df695);}}_0x252d18[_0xf8d449(0x2c8)](_0x2b724b),_0x4b65fd['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x1e8),'handler':async(_0x2f9856,_0x10b0d8)=>{const _0x1b0073=_0x49d8a2;let _0x37ad65=_0x20e706(_0x2f9856['get'](_0x2320a1));if(!_0x37ad65)return!0x1;let _0x4b87f1=_0x2f9856[_0x1b0073(0x1bc)](_0x25ed03)[_0x1b0073(0x1ef)]();if(!_0x4b87f1)return!0x1;let _0x1a8ca6=_0x2f9856['get'](_0x3002c9),{unitId:_0x5bcdcd,subUnitId:_0x4298a8}=_0x37ad65,{value:_0x57fb5c,enhanceParams:_0x5be7ea}=_0x10b0d8,{range:_0x58c794}=_0x4b87f1,_0x3346e6={'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'shapeType':_0x57fb5c,'range':_0x58c794,'shapeId':_0x3893c7()};if(_0x5be7ea){let _0x482fa9=_0x5d2a5e(_0x57fb5c),_0x1983df=_0x57fb5c===_0x1ca39f[_0x1b0073(0x14c)];_0x482fa9&&(_0x5be7ea[_0x1b0073(0x24f)]||_0x5be7ea['endArrow'])&&(_0x3346e6[_0x1b0073(0x1c5)]={'ln':{'startArrow':_0x5be7ea[_0x1b0073(0x24f)]?{'type':_0x1e506d[_0x1b0073(0x2ce)],'size':_0xd9107d[_0x1b0073(0x1b1)]}:void 0x0,'endArrow':_0x5be7ea[_0x1b0073(0x17e)]?{'type':_0x1e506d['Arrow'],'size':_0xd9107d[_0x1b0073(0x1a3)]}:void 0x0}}),_0x1983df&&(_0x5be7ea[_0x1b0073(0x236)]||_0x5be7ea[_0x1b0073(0x2d8)])&&(_0x3346e6[_0x1b0073(0x1c5)]=_0x510160({'fill':{'fillType':_0x13bf97[_0x1b0073(0x1d4)],'color':_0x1b0073(0x23a)},'isHorizontal':!!_0x5be7ea['horizontal'],'stroke':{'lineStrokeType':_0x3354c0[_0x1b0073(0x216)],'width':0x1,'color':_0x1b0073(0x23f)}}));}let _0x25802b=_0x1a8ca6[_0x1b0073(0xe6)](_0x5db24c['id'],_0x3346e6);return setTimeout(()=>{const _0x5b00d8=_0x1b0073;_0x1a8ca6[_0x5b00d8(0x2c5)](bn['id'],[{'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'drawingId':_0x3346e6[_0x5b00d8(0x142)]}]);},0xc8),_0x25802b;}},Sn=_0x49d8a2(0x29a),Cn=_0x49d8a2(0x1e6),wn=_0x49d8a2(0x1ee),Tn=_0x4f9780(_0x49d8a2(0x146)),En=_0x49d8a2(0x190),Dn={'id':_0x49d8a2(0x338),'type':_0xbd62c0[_0x49d8a2(0x140)],'handler':(_0x1ab3b3,_0x511580)=>{const _0x3f00ef=_0x49d8a2;let _0x5b826a=_0x1ab3b3['get'](_0xf1c3ee),_0x545c02=_0x1ab3b3[_0x3f00ef(0x1bc)](_0x9a7c24),_0x339cb2=_0x1ab3b3['get'](_0x2320a1),_0xfd056b=_0x1ab3b3['get'](_0x3002c9);return _0x20e706(_0x339cb2)?(_0x511580==null?void 0x0:_0x511580[_0x3f00ef(0x21c)])===_0x3f00ef(0x113)?(_0x5b826a[_0x3f00ef(0x113)](Cn),!0x0):(_0x5b826a['open']({'id':Cn,'header':{'title':_0x545c02['t'](_0x3f00ef(0x170))},'children':{'label':Cn},'onClose':()=>{const _0x16344b=_0x3f00ef;_0xfd056b[_0x16344b(0xe6)](_0x42475e['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x1e0fa2{constructor(_0x365349,_0x4817af){const _0x3f1ffb=_0x49d8a2;super(),this['_clipService']=_0x365349,this[_0x3f1ffb(0x159)]=_0x4817af,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x3f1ffb(0x20f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x3f1ffb(0x327)][_0x3f1ffb(0x20f)](!0x1)});}[_0x49d8a2(0x260)](){const _0x2680ca=_0x49d8a2;let _0x3ff126=this[_0x2680ca(0x327)],_0x3eaa67=new Map(),_0xa4757b=_0x3ff126[_0x2680ca(0x2cd)]((_0x34024d,_0x39af9e,_0x1bdc90,_0x553262,_0x31742a)=>{const _0x434ef8=_0x2680ca;let _0x2644ac=_0x39af9e;if(_0x2644ac===_0x1ca39f[_0x434ef8(0x201)]||_0x39af9e===_0x434ef8(0x1d3))return!0x1;try{let _0x409396=_0x3eaa67[_0x434ef8(0x1bc)](_0x39af9e);return _0x409396||(_0x409396=new _0x2a67cd(_0x2644ac,_0x434ef8(0x1df)+_0x39af9e),_0x3eaa67[_0x434ef8(0x20a)](_0x39af9e,_0x409396)),_0x31742a&&_0x409396[_0x434ef8(0xf3)]({'adjustValues':_0x31742a},!0x0),_0x409396['updateContext']({'width':_0x1bdc90,'height':_0x553262}),_0x409396['buildClipPath'](_0x34024d,{'left':0x0,'top':0x0,'width':_0x1bdc90,'height':_0x553262});}catch{return!0x1;}});this[_0x2680ca(0x16d)](_0xa4757b),this[_0x2680ca(0x16d)]({'dispose':()=>_0x3eaa67[_0x2680ca(0x1ac)]()});}[_0x49d8a2(0x1fb)](_0x60f65b,_0x3794bb,_0x42210e,_0x153454,_0xa1d19a){const _0x95af20=_0x49d8a2;let _0x250ece=this['_drawingManagerService']['getDrawingData'](_0x60f65b,_0x3794bb);if(!_0x250ece[_0x42210e])return;let _0x4f1e72={..._0x250ece[_0x42210e],'prstGeom':_0x153454,'adjustValues':_0xa1d19a};this['_drawingManagerService'][_0x95af20(0x104)]([_0x4f1e72]);}};Q=Y([J(0x0,_0x3465f0(_0x52908b)),J(0x1,_0x3465f0(_0x5a9176))],Q);const On=_0x49d8a2(0x191),kn=_0x49d8a2(0x145);function An({onShapeClick:_0x54d015,excludeGroups:_0xf7a90f}){const _0x18c159=_0x49d8a2;return _0x4c6044(_0x71cbe8,{'excludeGroups':_0xf7a90f,'onShapeClick':_0x54d015,'scrollContainer':_0x18c159(0xd9)});}function jn(){const _0xfb24f8=_0x49d8a2;let _0x194496=_0x2a5e25(_0x5a9176),_0x256e55=_0x2a5e25(Q);return _0x4c6044(_0x55b52d,{'buttonLabel':_0xfb24f8(0x2fb),'excludeGroups':[_0x57c621['Line']],'onShapeClick':_0x5d79fe=>{const _0x2b3cf1=_0xfb24f8;let _0x184037=_0x194496[_0x2b3cf1(0x32c)]()[_0x2b3cf1(0x138)](_0x24b029=>_0x24b029['drawingType']===_0x336997[_0x2b3cf1(0x2b7)]);if(!_0x184037)return;let {unitId:_0x8ec8e0,subUnitId:_0xa5ba9,drawingId:_0x24d030}=_0x184037;_0x256e55['clipByShape'](_0x8ec8e0,_0xa5ba9,_0x24d030,_0x5d79fe['type']);}});}function Mn(){const _0x41679c=_0x49d8a2;let _0x1d85e0=_0x2a5e25(_0x4dd7a3),_0x5e77af=_0x2a5e25(_0x5a9176),_0x4f9d74=_0x2a5e25(_0x2320a1),_0x2941f4=_0x5e77af[_0x41679c(0x32c)]()[0x0],_0x12c962=_0x2941f4?_0x4f9d74[_0x41679c(0x151)](_0x2941f4[_0x41679c(0x1b7)]):void 0x0,_0x4ae8d9=_0x12c962===_0x4c1a31[_0x41679c(0x2ae)]?_0x41679c(0x1f9):_0x12c962===_0x4c1a31[_0x41679c(0x261)]?kn:void 0x0,_0x4797ee=_0x4ae8d9?_0x1d85e0[_0x41679c(0x1bc)](_0x4ae8d9):void 0x0;return _0x4797ee?_0x4c6044(_0x4797ee,{}):null;}function Nn(){let _0x179637=_0x2a5e25(_0x3002c9);return _0x4c6044(An,{'onShapeClick':_0x4d0a51=>{const _0x4a01e9=_0x208c;_0x179637[_0x4a01e9(0x2c5)](xn['id'],{'value':_0x4d0a51[_0x4a01e9(0x1ff)],'enhanceParams':{'endArrow':_0x4d0a51[_0x4a01e9(0x17e)],'startArrow':_0x4d0a51[_0x4a01e9(0x24f)],'horizontal':_0x4d0a51['horizontal'],'vertical':_0x4d0a51[_0x4a01e9(0x2d8)]}});}});}function Pn(_0x1e138a){const _0x31e468=_0x49d8a2;let _0x5b829b=_0x1e138a[_0x31e468(0x1bc)](_0x2320a1);return{'id':xn['id'],'type':_0x2f4b7c[_0x31e468(0x128)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x31e468(0x195),'tooltip':_0x31e468(0x31e),'activated$':_0x291355(_0x5b829b,!0x1,()=>new _0x17aabe(_0x53eef6=>{const _0x3215ca=_0x31e468;_0x53eef6[_0x3215ca(0x15a)](!0x1);})),'hidden$':_0x569198(_0x1e138a,_0x4c1a31[_0x31e468(0x261)]),'disabled$':_0x1aaed7(_0x1e138a)};}function Fn(_0x379afe){const _0x2e1912=_0x49d8a2;let _0x5376f6=_0x379afe[_0x2e1912(0x1bc)](_0x2320a1);return{'id':Dn['id'],'type':_0x2f4b7c[_0x2e1912(0x1af)],'icon':_0x2e1912(0x11f),'title':_0x2e1912(0x16e),'tooltip':_0x2e1912(0x16e),'activated$':_0x291355(_0x5376f6,!0x1,()=>new _0x17aabe(_0x192955=>{const _0x315f67=_0x2e1912;_0x192955[_0x315f67(0x15a)](!0x1);})),'hidden$':_0x569198(_0x379afe,_0x4c1a31[_0x2e1912(0x261)]),'disabled$':_0x1aaed7(_0x379afe)};}const In={[_0x4cff09[_0x49d8a2(0x2d4)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln='@univerjs-pro/sheets-shape-ui',Rn=_0x49d8a2(0x252);const zn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Bn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':_0x49d8a2(0x1ce),'handler'(){return!0x0;}},Vn={};function Hn(_0x4b3b1a){const _0x287275=_0x49d8a2;return _0x4b3b1a[_0x287275(0x258)]()||void 0x0;}function Un(_0x2db1ee){const _0x2fd387=_0x49d8a2;switch(_0x2db1ee[_0x2fd387(0x12e)]){case _0x336997[_0x2fd387(0x2b7)]:return _0x2fd387(0x157);case _0x336997[_0x2fd387(0x1ae)]:return'chart';case _0x336997[_0x2fd387(0x29b)]:return _0x2fd387(0x11c);case _0x336997[_0x2fd387(0x1a5)]:return _0x2fd387(0x200);case _0x336997[_0x2fd387(0x133)]:return _0x2fd387(0x319);case _0x336997[_0x2fd387(0x262)]:return _0x2fd387(0x240);case _0x336997[_0x2fd387(0xfe)]:return _0x2fd387(0x1c8);case _0x336997[_0x2fd387(0x173)]:return'dom';case _0x336997['DRAWING_SHAPE']:return _0x2fd387(0x1b0);default:return'object';}}function Wn(_0x2d7bf5,_0x3c5102,_0x681705){const _0x23e279=_0x49d8a2;var _0x42ca8a;return((_0x42ca8a=_0x2d7bf5[_0x23e279(0x1dd)])==null?void 0x0:_0x42ca8a[_0x23e279(0x258)]())||_0x23c7c2(_0x681705,Un(_0x2d7bf5))+'\x20'+(_0x3c5102+0x1);}function Gn(){const _0x461945=_0x49d8a2;var _0x262542,_0x1c99d8,_0x2041d1,_0x34fa38;let _0x4d215b=_0x2a5e25(_0x9a7c24),_0x10f0aa=_0x2a5e25(_0x3002c9),_0x31d076=_0x2a5e25(_0x2320a1),_0x4f6761=_0x2a5e25(_0xc538a1),_0x39dfc0=_0x2a5e25(_0x5a9176),_0x65c50d=_0x2a5e25(_0x2565d9),[,_0x4fef57]=_0x3962a7(_0x559962=>_0x559962+0x1,0x0),_0x430ea8=_0x31d076[_0x461945(0x199)](_0x4c1a31['UNIVER_SHEET']),_0xc18259=(_0x262542=_0x430ea8==null?void 0x0:_0x430ea8['getUnitId']())==null?'':_0x262542,_0xdd93ce=(_0x1c99d8=_0x430ea8==null||(_0x2041d1=_0x430ea8['getActiveSheet']())==null?void 0x0:_0x2041d1['getSheetId']())==null?'':_0x1c99d8,_0x4c1d4e=_0x57a615(()=>_0x39dfc0[_0x461945(0x139)],_0x39dfc0[_0x461945(0x32c)](),!0x1,[_0x39dfc0]);_0xecd31c(()=>{const _0x1b25c4=_0x461945;let _0x2250e6=_0x10f0aa['onCommandExecuted'](()=>_0x4fef57());return()=>_0x2250e6[_0x1b25c4(0x2b0)]();},[_0x10f0aa]);let _0x13e3c5=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x233)](_0xc18259,_0xdd93ce):{},_0x1d0451=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x306)](_0xc18259,_0xdd93ce):[],_0x158842=_0x307aa0(()=>_0x3137ac(_0x4d215b),[_0x4d215b]),_0x54ee17=_0x307aa0(()=>{const _0x27799d=_0x461945;let _0x502a26=_0x1d0451[_0x27799d(0x1a1)](_0x4a8e1d=>_0x13e3c5[_0x4a8e1d])[_0x27799d(0x1da)](_0x4610d2=>!!_0x4610d2)[_0x27799d(0x136)](),_0x43e0be=_0x502a26[_0x27799d(0x144)]((_0x57a37f,_0x162990)=>(_0x57a37f[_0x68c808(_0x162990[_0x27799d(0x12e)])]+=0x1,_0x57a37f),{'canvas':0x0,'floating':0x0}),_0x2b0f49={'canvas':0x0,'floating':0x0};return _0x502a26[_0x27799d(0x1a1)]((_0x3f05b1,_0x2d6a4c)=>{const _0x3bccce=_0x27799d;let _0x488e45=_0x68c808(_0x3f05b1[_0x3bccce(0x12e)]),_0x151389=_0x488e45===_0x21b1e9,_0x4f2d83=_0x2b0f49[_0x488e45]++;return{'id':_0x3f05b1[_0x3bccce(0x20e)],'name':Wn(_0x3f05b1,_0x2d6a4c,_0x4d215b),'description':_0x3f05b1['description'],'visible':_0x3f05b1[_0x3bccce(0x15c)]!==!0x0,'selectable':_0x3f05b1[_0x3bccce(0xf4)]!==!0x1,'sectionId':_0x488e45,'sectionTitle':_0x151389?_0x158842[_0x3bccce(0x284)]:_0x158842[_0x3bccce(0x213)],'capabilities':_0x151389?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x151389&&_0x4f2d83>0x0,'canMoveBackward':!_0x151389&&_0x4f2d83<_0x43e0be[_0x3bccce(0x2d6)]-0x1,'canReorder':!_0x151389};});},[_0x13e3c5,_0x1d0451,_0x158842[_0x461945(0x213)],_0x158842['sectionFloating'],_0x4d215b]),_0x5926d8=_0x307aa0(()=>(_0x4c1d4e==null?[]:_0x4c1d4e)['filter'](_0xbf85d1=>_0xbf85d1[_0x461945(0x1b7)]===_0xc18259&&_0xbf85d1['subUnitId']===_0xdd93ce)[_0x461945(0x1a1)](_0x45fd2d=>_0x45fd2d[_0x461945(0x20e)]),[_0x4c1d4e,_0xdd93ce,_0xc18259]),_0x5cde21=(_0x34fa38=_0x5926d8[_0x5926d8['length']-0x1])==null?null:_0x34fa38,_0x4eba86=_0x28514e=>{const _0x5e67c6=_0x461945;var _0x15bc74;return(_0x15bc74=_0x4f6761[_0x5e67c6(0x26a)]({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x28514e}))==null?null:_0x15bc74;},_0x46fc17=_0x76b52f=>{const _0x532457=_0x461945;!_0xc18259||!_0x76b52f['length']||_0x10f0aa[_0x532457(0x2c5)](_0x577eb5['id'],{'unitId':_0xc18259,'drawings':_0x76b52f});},_0x3b2fd5=(_0x4fa2b3,_0x54aaea)=>{_0x4eba86(_0x4fa2b3)&&_0x46fc17([{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x4fa2b3,..._0x54aaea}]);},_0x1b05d7=(_0x55c66a,_0x20876f)=>{const _0x422e16=_0x461945;if(!_0xc18259||!_0xdd93ce)return;let _0xd9ca51=_0x20876f?_0x5926d8[_0x422e16(0x2ed)](_0x55c66a)?_0x5926d8[_0x422e16(0x1da)](_0x12d119=>_0x12d119!==_0x55c66a):[..._0x5926d8,_0x55c66a]:[_0x55c66a];_0x10f0aa[_0x422e16(0xe6)](_0x42475e['id'],_0xd9ca51[_0x422e16(0x1a1)](_0x1193f0=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x1193f0})));let _0x2fccfe=_0xd9ca51[_0xd9ca51[_0x422e16(0x289)]-0x1];_0x2fccfe?_0x3928d2(_0x65c50d,{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2fccfe}):_0xeb3392(_0x65c50d,_0xc18259);},_0xc5db42=(_0x1d8484,_0x21fcb5)=>{const _0xe10097=_0x461945;_0x46fc17(_0x1d8484[_0xe10097(0x1a1)](_0x161565=>_0x4eba86(_0x161565))[_0xe10097(0x1da)](_0x20bc80=>!!_0x20bc80)[_0xe10097(0x1da)](_0x21864b=>_0x21864b['hidden']!==!0x0!==_0x21fcb5)[_0xe10097(0x1a1)](_0x2682a4=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2682a4[_0xe10097(0x20e)],'hidden':!_0x21fcb5})));},_0x22aeba=_0x447497=>{let _0x3f63df=_0x4eba86(_0x447497);_0x3f63df&&_0x3b2fd5(_0x447497,{'selectable':_0x3f63df['selectable']===!0x1?void 0x0:!0x1});},_0x1767e0=(_0x5eb9f4,_0x2717e7)=>{const _0x46638e=_0x461945;var _0x25ba5f,_0x42fee7;let _0x187735=Hn(_0x2717e7);((_0x25ba5f=(_0x42fee7=_0x4eba86(_0x5eb9f4))==null?void 0x0:_0x42fee7[_0x46638e(0x1dd)])==null?void 0x0:_0x25ba5f)!==_0x187735&&_0x3b2fd5(_0x5eb9f4,{'name':_0x187735});},_0x2aa530=(_0x2301bb,_0xf22e05)=>{const _0x3c1f2b=_0x461945;var _0xc3a66d,_0x20d4f8;let _0x424994=Hn(_0xf22e05);((_0xc3a66d=(_0x20d4f8=_0x4eba86(_0x2301bb))==null?void 0x0:_0x20d4f8[_0x3c1f2b(0xf6)])==null?void 0x0:_0xc3a66d)!==_0x424994&&_0x3b2fd5(_0x2301bb,{'description':_0x424994});},_0x2fe5be=(_0x783124,_0x2408b7)=>{!_0xc18259||!_0xdd93ce||_0x10f0aa['executeCommand'](_0xa10ec9['id'],{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingIds':[_0x783124],'arrangeType':_0x2408b7});};return!_0xc18259||!_0xdd93ce?_0x4c6044(_0x461945(0x1b5),{'className':_0x461945(0xed),'children':_0x158842[_0x461945(0x339)]}):_0x4c6044(_0x1ea8c0,{'items':_0x54ee17,'selectedIds':_0x5926d8,'focusedId':_0x5cde21,'labels':_0x158842,'onSelect':_0x1b05d7,'onSetVisible':_0xc5db42,'onCommitName':_0x1767e0,'onCommitDescription':_0x2aa530,'onMoveForward':_0x2a705a=>_0x2fe5be(_0x2a705a,_0x5516a4[_0x461945(0x2e2)]),'onMoveBackward':_0x522b82=>_0x2fe5be(_0x522b82,_0x5516a4['backward']),'onToggleSelectable':_0x22aeba});}let Kn=class{constructor(_0x216351){this['_renderManagerService']=_0x216351;}['updateShapeFillImage'](_0x4fd8d5,_0x10fed6){const _0x33cea9=_0x49d8a2;let _0x396131=this[_0x33cea9(0x107)][_0x33cea9(0x2c4)](_0x4fd8d5[_0x33cea9(0x1b7)]),_0x4b25d5=_0x396131==null?void 0x0:_0x396131[_0x33cea9(0x228)];if(!_0x4b25d5)return;let _0x7699e3=_0x24e648(_0x4fd8d5),_0x3cdbd7=_0x4b25d5[_0x33cea9(0xda)](_0x7699e3);_0x3cdbd7==null||_0x3cdbd7[_0x33cea9(0x121)](_0x10fed6);}};Kn=Y([J(0x0,_0x2565d9)],Kn);function qn(){const _0x5e832f=_0x49d8a2;let _0x10fd56=_0x2a5e25(_0x5a9176),_0x44946d=_0x57a615(()=>_0x10fd56[_0x5e832f(0x139)],_0x10fd56[_0x5e832f(0x32c)](),!0x1,[_0x10fd56]);return _0x44946d[_0x5e832f(0x289)]===0x0?null:_0x4c6044(_0x5e832f(0x1b5),{'children':_0x52bc9b('div',{'className':_0x5e832f(0x168),'children':[_0x4c6044(_0x4b0647,{'drawings':_0x44946d,'hasCropper':!0x1}),_0x4c6044(_0x37e739,{'drawings':_0x44946d})]})});}function Jn(_0x4349c0){let {unitId:_0xf8b70d,subUnitId:_0x1dbddc,shapeId:_0x2d4a8c}=_0x4349c0,_0x485b16=_0x2a5e25(_0x3002c9),_0x2ebe31=_0x2a5e25(Kn);return _0x4c6044(_0x577577,{..._0x4349c0,'positionEditor':_0x4c6044(qn,{}),'onUpdateShapeData':(_0x238d82,_0x58bfb4)=>{fn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x238d82,_0x58bfb4);},'onUpdateLineShapeData':(_0x573981,_0x4382a4)=>{pn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x573981,_0x4382a4);},'onUpdateShapeFillImage':_0xd3e5d5=>{const _0x3bd10c=_0x208c;_0x2ebe31[_0x3bd10c(0x2a8)]({'unitId':_0xf8b70d,'subUnitId':_0x1dbddc,'drawingId':_0x2d4a8c},_0xd3e5d5);}});}function Yn(_0x5e9936){const _0x29c3c3=_0x49d8a2;let _0x536d9d=_0x5e9936['popup'][_0x29c3c3(0x1d7)];return _0x536d9d?_0x4c6044(Xn,{..._0x536d9d}):null;}function Xn(_0x349408){const _0x128a95=_0x49d8a2;var _0x29c052,_0x54b92c;let _0x46fa0a=_0x2a5e25(_0x3002c9),_0x29d2eb=_0x2a5e25(_0x1a451a),{unitId:_0x163573,subUnitId:_0x5f1009,drawingId:_0x21ae43,drawingType:_0x2e08dd,shapeType:_0x33f48f}=_0x349408,[_0x295ae6,_0x5b681a]=_0x487ae5(_0x349408[_0x128a95(0x1c5)]),_0x757b69=_0x307aa0(()=>_0x45f466(_0x295ae6),[_0x295ae6]),_0x20ebaa=_0x307aa0(()=>_0xdf5543(_0x295ae6),[_0x295ae6]);_0xecd31c(()=>{const _0x1b8ccf=_0x128a95;let _0x138e63=_0x46fa0a['onCommandExecuted'](_0x1ffea3=>{const _0x4f783c=_0x208c;if(_0x1ffea3['id']!==_0x22295a['id'])return;let _0x2bc0f4=_0x29d2eb[_0x4f783c(0x264)](_0x163573,_0x5f1009,_0x21ae43);_0x2bc0f4&&_0x5b681a(_0x2bc0f4);});return()=>_0x138e63[_0x1b8ccf(0x2b0)]();},[_0x46fa0a,_0x21ae43,_0x29d2eb,_0x5f1009,_0x163573]);let _0x14bada=_0x3fce78=>{_0x5b681a(_0x134544=>({..._0x134544,..._0x3fce78}));},_0x4ce81f=_0x3083eb=>{const _0x487748=_0x128a95;let _0x444507=_0x1072ef(_0x295ae6,_0x3083eb);fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,{'oldShapeData':{'shapeText':_0x295ae6[_0x487748(0xe9)]}},_0x444507),_0x14bada(_0x444507);};return _0x4c6044(_0x3381e5,{'shapeData':_0x295ae6,'shapeType':_0x33f48f,'textStyle':{'ff':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x176)],'fs':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x317)],'cl':{'rgb':_0x2bea1d[_0x128a95(0xe9)]['color']},..._0x757b69},'textModel':_0x20ebaa?{'ha':(_0x29c052=_0x20ebaa['ha'])==null?_0x30a9f7[_0x128a95(0x204)]:_0x29c052,'va':(_0x54b92c=_0x20ebaa['va'])==null?_0x2099ff[_0x128a95(0x310)]:_0x54b92c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bea1d[_0x128a95(0x270)],'defaultGradientEndColor':_0x2bea1d[_0x128a95(0xde)],'defaultStrokeColor':_0x2bea1d[_0x128a95(0x2dd)],'onUpdateShapeData':(_0xda52f7,_0x431d4e)=>{fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,_0xda52f7,_0x431d4e),_0x431d4e&&_0x14bada(_0x431d4e);},'onUpdateText':_0x4ce81f,'onOpenPanel':()=>{const _0x4e8bf8=_0x128a95;_0x46fa0a[_0x4e8bf8(0x2c5)](Bn['id'],{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43});},'onDelete':()=>{_0x46fa0a['executeCommand'](_0x5f4db7['id'],{'unitId':_0x163573,'drawings':[{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43,'drawingType':_0x2e08dd}]});}});}var Zn=class extends _0x1e0fa2{constructor(..._0x5c2b03){const _0x28d072=_0x49d8a2;super(..._0x5c2b03),q(this,'_editingParams$',new _0x1154b0(null)),q(this,_0x28d072(0xfa),this[_0x28d072(0x2d5)]['asObservable']()),q(this,_0x28d072(0x27b),new _0x1154b0(!0x1)),q(this,'onSavingEditorData$',this[_0x28d072(0x27b)]['asObservable']());}[_0x49d8a2(0x2b0)](){const _0xb60ecb=_0x49d8a2;this[_0xb60ecb(0x2d5)]['next'](null),this[_0xb60ecb(0x2d5)][_0xb60ecb(0x1e5)](),this[_0xb60ecb(0x27b)][_0xb60ecb(0x15a)](!0x1),this[_0xb60ecb(0x27b)][_0xb60ecb(0x1e5)](),super[_0xb60ecb(0x2b0)]();}[_0x49d8a2(0x2f3)](_0x5bb556){const _0x21d430=_0x49d8a2;this[_0x21d430(0x2d5)][_0x21d430(0x15a)](_0x5bb556),_0x5bb556==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x49d8a2(0x263)](_0x4169cc){const _0x3c35ac=_0x49d8a2;this[_0x3c35ac(0x27b)][_0x3c35ac(0x15a)](_0x4169cc);}['getEditing'](){const _0x14f384=_0x49d8a2;return this['_editingParams$'][_0x14f384(0x125)]();}[_0x49d8a2(0x2f9)](_0x3d961a){const _0x200df6=_0x49d8a2;this[_0x200df6(0x25a)]()&&(this[_0x200df6(0x263)](!0x0),requestAnimationFrame(()=>{const _0x53094f=_0x200df6;this[_0x53094f(0x2f3)](null);}));}['cancelEditing'](){const _0x2d9312=_0x49d8a2;this[_0x2d9312(0x25a)]()&&this[_0x2d9312(0x2f3)](null);}};const Qn=_0x3cdd19(()=>{const _0x5b7685=_0x49d8a2;let _0x57a8da=_0x2a5e25(Zn),_0x3121bf=_0x2a5e25(_0x1a451a),_0x452bd6=_0x2a5e25(_0x5a9176),_0x5c19c1=_0x2a5e25(_0x3002c9),_0x20e277=_0x2a5e25(_0x2565d9);return _0x4c6044(_0x264bf4,{'adapter':_0x307aa0(()=>({'getShapeModel':(_0x21e298,_0x3e7328,_0x538d6a)=>_0x3121bf[_0x5b7685(0x296)](_0x21e298,_0x3e7328,_0x538d6a),'getShapeData':(_0x5a4ffb,_0x16dbb1,_0x2bfdde)=>_0x3121bf[_0x5b7685(0x264)](_0x5a4ffb,_0x16dbb1,_0x2bfdde),'getDrawingTransform':(_0x47fea1,_0x4c3491,_0x3abadd)=>{const _0x56cfdb=_0x5b7685;let _0x305cbb=_0x452bd6[_0x56cfdb(0x26a)]({'unitId':_0x47fea1,'subUnitId':_0x4c3491,'drawingId':_0x3abadd});return _0x305cbb==null?void 0x0:_0x305cbb[_0x56cfdb(0x166)];},'updateShapeText':({unitId:_0x4a7733,subUnitId:_0x3fee19,shapeId:_0x1df34f,shapeText:_0x589585,oldShapeText:_0x1fd2e1})=>{const _0x4ed96c=_0x5b7685;_0x5c19c1[_0x4ed96c(0x2c5)](dn['id'],{'unitId':_0x4a7733,'subUnitId':_0x3fee19,'shapeId':_0x1df34f,'shapeData':{'shapeText':_0x589585},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1fd2e1}}});},'updateHostSize':({unitId:_0x447a8c,subUnitId:_0x20ab8d,shapeId:_0x54693d,width:_0x28a25b,height:_0x5a1d95})=>{const _0x3f4cd0=_0x5b7685;var _0x281f18,_0x3eae22,_0x15bf37;let _0xe0c58e=_0x452bd6['getDrawingByParam']({'unitId':_0x447a8c,'subUnitId':_0x20ab8d,'drawingId':_0x54693d}),_0x50eb13=_0xe0c58e==null?void 0x0:_0xe0c58e[_0x3f4cd0(0x166)];if(!_0xe0c58e||!_0x50eb13)return;let _0x4af162={..._0x50eb13,'width':_0x28a25b,'height':_0x5a1d95},_0x53447a=(_0x281f18=_0x20e277[_0x3f4cd0(0x2c4)](_0x447a8c))==null||(_0x281f18=_0x281f18[_0x3f4cd0(0xf5)](_0x4b5a3f)[_0x3f4cd0(0x1c3)](_0x20ab8d))==null?void 0x0:_0x281f18[_0x3f4cd0(0x26d)],_0xd6b18d=_0x53447a?(_0x3eae22=_0x4ee577(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0x265)]:_0x3eae22:_0xe0c58e[_0x3f4cd0(0x265)],_0xec26ea=_0x53447a?(_0x15bf37=_0x14cc4e(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0xdb)]:_0x15bf37:_0xe0c58e[_0x3f4cd0(0xdb)];_0x5c19c1[_0x3f4cd0(0x2c5)](_0x577eb5['id'],{'unitId':_0x447a8c,'drawings':[{..._0xe0c58e,'transform':_0x4af162,'sheetTransform':_0xd6b18d,'axisAlignSheetTransform':_0xec26ea}]});},'allowHostSizeShrink':({unitId:_0x51b50f,subUnitId:_0x311079,shapeId:_0x498161})=>_0x7502d3(_0x3121bf[_0x5b7685(0x264)](_0x51b50f,_0x311079,_0x498161))}),[_0x5c19c1,_0x452bd6,_0x20e277,_0x3121bf]),'editingService':_0x57a8da,'editorUnitId':Tn,'positionOptions':_0x307aa0(()=>({'viewportKeys':{'main':_0x42dea8[_0x5b7685(0x281)],'leftTop':_0x42dea8[_0x5b7685(0x17c)],'top':_0x42dea8[_0x5b7685(0x189)],'left':_0x42dea8[_0x5b7685(0x32a)]},'getSkeleton':(_0x1061c5,_0x201d8b)=>{const _0x5a4ed1=_0x5b7685;var _0x44fe8b,_0x5c2b5f;return(_0x44fe8b=(_0x5c2b5f=_0x1061c5[_0x5a4ed1(0xf5)](_0x4b5a3f)['getSkeletonParam'](_0x201d8b['subUnitId']))==null?void 0x0:_0x5c2b5f[_0x5a4ed1(0x26d)])==null?null:_0x44fe8b;}}),[])});});let $n=class extends _0x1e0fa2{constructor(_0x13d118,_0x5d381d){const _0x1e425b=_0x49d8a2;super(),this['_componentManager']=_0x13d118,this[_0x1e425b(0x134)]=_0x5d381d,this['_registerIcons'](),this['_registerComponents']();}[_0x49d8a2(0x2f7)](){const _0x138651=_0x49d8a2;this[_0x138651(0x134)][_0x138651(0x215)](_0x138651(0x11f))||this[_0x138651(0x16d)](this[_0x138651(0x134)][_0x138651(0x21d)]({'CopyDoubleIcon':_0x8cec5a}));}[_0x49d8a2(0x1bb)](){const _0x4099c6=_0x49d8a2;this[_0x4099c6(0x16d)](this['_componentManager'][_0x4099c6(0x21d)](Sn,Jn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)]['register'](Cn,Gn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](On,Nn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](kn,jn)),this[_0x4099c6(0x2c7)][_0x4099c6(0x1bc)](_0x76290b)||this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x76290b,Mn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](wn,Yn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](En,_0x2d3b93)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x4099c6(0x292),Qn));}};$n=Y([J(0x0,_0x3465f0(_0x4dd7a3)),J(0x1,_0x3465f0(_0x45bf3a))],$n);let er=class extends _0x1e0fa2{constructor(_0x4b70c7,_0x457a7a,_0x213474,_0x548bf5,_0x4ee2f3){const _0x221a1b=_0x49d8a2;super(),this[_0x221a1b(0x12a)]=_0x4b70c7,this[_0x221a1b(0x159)]=_0x457a7a,this[_0x221a1b(0x107)]=_0x213474,this[_0x221a1b(0x1b8)]=_0x548bf5,this[_0x221a1b(0x18a)]=_0x4ee2f3,q(this,_0x221a1b(0x15d),null),q(this,'_unitId',null),q(this,_0x221a1b(0x227),null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x221a1b(0x155),0x0),q(this,'_baseTop',0x0),q(this,_0x221a1b(0x269),0x0),q(this,_0x221a1b(0x304),0x0),q(this,_0x221a1b(0x2a5),!0x1),q(this,_0x221a1b(0x1e9),void 0x0),q(this,_0x221a1b(0x1db),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x221a1b(0xe3),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x221a1b(0x287)](),this['_registerMoveHandler']();}[_0x49d8a2(0x2cb)](){const _0x2879fc=_0x49d8a2;this[_0x2879fc(0x186)]();}[_0x49d8a2(0x1c6)](){const _0x32eb47=_0x49d8a2;this['_clearControls'](),this[_0x32eb47(0x28f)](!0x0);}['_getOrCreateShapeModel'](_0x1728ca,_0x4762cf,_0x48659b,_0x70531){const _0x45baab=_0x49d8a2;let _0x33adb6=_0x1728ca;if(!(_0x33adb6===_0x1ca39f[_0x45baab(0x201)]||_0x1728ca===_0x45baab(0x1d3)))try{let _0xf1eb9a=new _0x2a67cd(_0x33adb6,_0x45baab(0x268)+_0x1728ca);return _0x70531&&_0xf1eb9a['setShapeData']({'adjustValues':_0x70531},!0x0),_0xf1eb9a[_0x45baab(0x314)]({'width':_0x4762cf,'height':_0x48659b}),_0xf1eb9a;}catch{return;}}[_0x49d8a2(0x243)](_0x363dc2,_0x492f6f,_0x29ea3d){const _0x13c3fd=_0x49d8a2;let _0x1b1c98={'unitId':_0x363dc2,'subUnitId':_0x492f6f,'drawingId':_0x29ea3d},_0x57072e=this[_0x13c3fd(0x159)][_0x13c3fd(0x26a)](_0x1b1c98);if(!(!_0x57072e||_0x57072e['drawingType']!==_0x336997[_0x13c3fd(0x2b7)]))return _0x57072e;}['_getImagePrstGeom'](_0x939447,_0x18b1c4,_0x49fa36){const _0xa71d63=_0x49d8a2;let _0x4bb97a=this['_renderManagerService']['getRenderById'](_0x939447);if(!_0x4bb97a)return;let {scene:_0x3611fd}=_0x4bb97a,_0x2d9334=_0x24e648({'unitId':_0x939447,'subUnitId':_0x18b1c4,'drawingId':_0x49fa36}),_0x41649d=_0x3611fd[_0xa71d63(0x307)](_0x2d9334);if(_0x41649d instanceof _0xd2487b){let _0x1baa22=_0x41649d[_0xa71d63(0x178)];if(_0x1baa22)return{'prstGeom':_0x1baa22,'adjustValues':_0x41649d[_0xa71d63(0x323)]};}}[_0x49d8a2(0x28f)](_0x49d47b=!0x1){const _0x3d8c36=_0x49d8a2;if(!this[_0x3d8c36(0x330)]||!this['_subUnitId']||!this[_0x3d8c36(0x15d)])return;let _0x377013=this[_0x3d8c36(0x107)][_0x3d8c36(0x2c4)](this[_0x3d8c36(0x330)]);if(!_0x377013||!_0x377013[_0x3d8c36(0xf5)](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x5b4377}=_0x377013,_0x545df2=this[_0x3d8c36(0x243)](this['_unitId'],this['_subUnitId'],this[_0x3d8c36(0x15d)]);if(!_0x545df2)return;let {transform:_0x26d342}=_0x545df2;if(!_0x26d342)return;let {left:_0x276386,top:_0x5de7ee,width:_0x56b872,height:_0x5959bd,flipX:_0x2347d7,flipY:_0x2fd6bd,angle:_0x11f2a3=0x0}=_0x26d342;if(_0x276386===void 0x0||_0x5de7ee===void 0x0)return;let _0x36117e=this[_0x3d8c36(0x28d)](this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)],this['_activeImageId']);if(!_0x36117e)return;if(_0x49d47b){let _0x211d69=this[_0x3d8c36(0x119)](_0x36117e[_0x3d8c36(0x178)],_0x56b872||0x0,_0x5959bd||0x0,_0x36117e[_0x3d8c36(0x114)]);if(!_0x211d69)return;this[_0x3d8c36(0x2cf)]=_0x211d69[_0x3d8c36(0x12d)]();}let _0x431da1=this[_0x3d8c36(0x2cf)];if(!(!_0x431da1||_0x431da1['length']===0x0))for(let _0x577290=0x0;_0x577290<_0x431da1[_0x3d8c36(0x289)];_0x577290++){let _0x295615=_0x431da1[_0x577290],_0x23193d=_0x295615['x'],_0x20da0a=_0x295615['y'];if(_0x2347d7&&(_0x23193d=(_0x56b872||0x0)-_0x23193d),_0x2fd6bd&&(_0x20da0a=(_0x5959bd||0x0)-_0x20da0a),_0x11f2a3!==0x0){let _0x5444db=(_0x56b872||0x0)/0x2,_0x1f2b4e=(_0x5959bd||0x0)/0x2,_0x380ab6=_0x11f2a3*Math['PI']/0xb4,_0x361d36=Math[_0x3d8c36(0x17b)](_0x380ab6),_0x39078d=Math['sin'](_0x380ab6),_0x1c900b=_0x23193d-_0x5444db,_0x33e3b1=_0x20da0a-_0x1f2b4e;_0x23193d=_0x5444db+(_0x1c900b*_0x361d36-_0x33e3b1*_0x39078d),_0x20da0a=_0x1f2b4e+(_0x1c900b*_0x39078d+_0x33e3b1*_0x361d36);}let _0x571219={'x':_0x23193d,'y':_0x20da0a,'adjName':_0x295615[_0x3d8c36(0x1a2)]};this[_0x3d8c36(0x219)](_0x5b4377,_0x571219,_0x571219[_0x3d8c36(0x1a2)],_0x276386,_0x5de7ee,this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)]);}}['_addControl'](_0xdc775,_0x59ff81,_0x1899a0,_0x5c9ba3,_0x36a414,_0x430aa3,_0x1b2b80){const _0x53d39d=_0x49d8a2;if(!this['_activeImageId'])return;let _0x24f24a='image-clip-adjust-point-'+this[_0x53d39d(0x15d)]+'-'+_0x1899a0,_0x242192=_0xdc775[_0x53d39d(0xda)](_0x24f24a);if(_0x242192){_0x242192[_0x53d39d(0x112)]({'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d['adjHandleSize']});return;}let _0x29be53=new yn(_0x24f24a,{'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d[_0x53d39d(0xe1)],'adjName':_0x1899a0,'shapeId':this['_activeImageId'],'unitId':_0x430aa3,'subUnitId':_0x1b2b80,'width':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'height':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0});this[_0x53d39d(0x2b3)][_0x53d39d(0x214)](_0x29be53),this[_0x53d39d(0x336)](_0x29be53,_0xdc775,_0x1899a0),_0xdc775[_0x53d39d(0x1c7)](_0x29be53,_0x529f4c+0x1);}[_0x49d8a2(0x186)](){const _0x412754=_0x49d8a2;this['_shapes']['length']!==0x0&&(this[_0x412754(0x2b3)][_0x412754(0x111)](_0x229677=>_0x229677[_0x412754(0x2b0)]()),this[_0x412754(0x2b3)]=[]);}[_0x49d8a2(0x30e)](_0x54254f,_0x1cc702){const _0x7b2acc=_0x49d8a2;var _0x55a6ce;let _0x1c8b84={'x':0x0,'y':0x0},_0x2ce962=this[_0x7b2acc(0x107)][_0x7b2acc(0x2c4)](_0x54254f);if(!_0x2ce962||!_0x2ce962['with'](_0x4b5a3f)[_0x7b2acc(0x1a4)](_0x1cc702))return _0x1c8b84;let _0x1da7c3=_0x2ce962['with'](_0x5480ae),_0xd0b61c=_0x1da7c3==null?void 0x0:_0x1da7c3['getCurrentScrollState']();if(!_0xd0b61c)return _0x1c8b84;let _0x542965=(_0x55a6ce=this[_0x7b2acc(0x1b8)][_0x7b2acc(0x12f)](_0x54254f))==null?void 0x0:_0x55a6ce[_0x7b2acc(0x169)](_0x1cc702);if(!_0x542965)return _0x1c8b84;let _0x1f843a=_0x356c4d(_0xd0b61c[_0x7b2acc(0x206)],_0xd0b61c[_0x7b2acc(0x19a)],_0x2ce962[_0x7b2acc(0x228)],_0x542965);return _0x1f843a?{'x':_0x1f843a['viewportScrollX'],'y':_0x1f843a['viewportScrollY']}:_0x1c8b84;}[_0x49d8a2(0x224)](_0x5c1288,_0x23dcad){const _0x3520a4=_0x49d8a2;var _0x1b305e,_0x1e8128;let _0x42cba6=(_0x1b305e=this['_univerInstanceService'][_0x3520a4(0x12f)](_0x5c1288))==null?void 0x0:_0x1b305e['getSheetBySheetId'](_0x23dcad);return(_0x1e8128=_0x42cba6==null?void 0x0:_0x42cba6[_0x3520a4(0x221)]())==null?0x1:_0x1e8128;}[_0x49d8a2(0x336)](_0x369b80,_0x419b75,_0x50f82a){const _0x315bbb=_0x49d8a2;this[_0x315bbb(0x16d)](_0x4f15f0(_0x369b80[_0x315bbb(0x1ca)]['subscribeEvent']((_0x53afc0,_0x47ba57)=>{const _0x3c7e5c=_0x315bbb;var _0x24fe40,_0x5473f7,_0x2a405c;let {unitId:_0x1ca42e,subUnitId:_0x30f81c,drawingId:_0x2b3286}=_0x369b80[_0x3c7e5c(0x275)](),_0x317567=this[_0x3c7e5c(0x243)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!(_0x317567!=null&&_0x317567[_0x3c7e5c(0x166)]))return;let {left:_0x529c2d,top:_0x47e14b,width:_0x32b01b,height:_0x4eca48}=_0x317567[_0x3c7e5c(0x166)];this[_0x3c7e5c(0x155)]=_0x529c2d||0x0,this[_0x3c7e5c(0x172)]=_0x47e14b||0x0,this[_0x3c7e5c(0x269)]=_0x32b01b||0x0,this[_0x3c7e5c(0x304)]=_0x4eca48||0x0;let _0x341558=!!((_0x24fe40=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x24fe40[_0x3c7e5c(0x31c)]),_0x8eb0e7=!!((_0x5473f7=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x5473f7[_0x3c7e5c(0x132)]),_0x5c6c87=((_0x2a405c=_0x317567[_0x3c7e5c(0x166)])==null?void 0x0:_0x2a405c[_0x3c7e5c(0x1fa)])||0x0,_0x5e5353=this[_0x3c7e5c(0x28d)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!_0x5e5353)return;let _0x46a845=this[_0x3c7e5c(0x119)](_0x5e5353[_0x3c7e5c(0x178)],this['_baseWidth'],this[_0x3c7e5c(0x304)],_0x5e5353[_0x3c7e5c(0x114)]);if(!_0x46a845||(this[_0x3c7e5c(0x1db)]=_0x46a845,this[_0x3c7e5c(0x1e9)]=_0x46a845[_0x3c7e5c(0x2a1)](_0x50f82a),!this['_activeAdjustInfo']))return;this['_isStartAdjusting']=!0x0,_0x419b75['disableObjectsEvent']();let _0x52be7c=_0x5e5353[_0x3c7e5c(0x178)];this[_0x3c7e5c(0x17a)]=_0x419b75['onPointerMove$'][_0x3c7e5c(0x19b)]((_0x55aa96,_0x309507)=>{const _0x10c185=_0x3c7e5c;if(!this[_0x10c185(0x2a5)])return;let {offsetX:_0x5e5476,offsetY:_0x496242}=_0x55aa96,_0x4e9290=this[_0x10c185(0x1e9)];if(!this[_0x10c185(0x1db)]||!_0x4e9290)return;_0x419b75[_0x10c185(0x162)](),_0x419b75['setCursor'](_0x35244f[_0x10c185(0x2ac)]);let _0x3bf5b6={'left':0x0,'top':0x0,'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]},_0x3d39db=this['_getScrollInfo'](_0x1ca42e,_0x30f81c),_0x548fbc=this[_0x10c185(0x224)](_0x1ca42e,_0x30f81c),_0x1ea17d=_0x5e5476/_0x548fbc+_0x3d39db['x']-this[_0x10c185(0x155)],_0x40e053=_0x496242/_0x548fbc+_0x3d39db['y']-this[_0x10c185(0x172)];if(_0x5c6c87!==0x0){let _0x3a98a0=this[_0x10c185(0x269)]/0x2,_0x5d4d79=this[_0x10c185(0x304)]/0x2,_0x530a5b=_0x5c6c87*Math['PI']/0xb4,_0x42b635=Math[_0x10c185(0x17b)](_0x530a5b),_0x44d9b6=Math[_0x10c185(0x2c0)](_0x530a5b),_0x47fe43=_0x1ea17d-_0x3a98a0,_0x1323cb=_0x40e053-_0x5d4d79;_0x1ea17d=_0x3a98a0+(_0x47fe43*_0x42b635+_0x1323cb*_0x44d9b6),_0x40e053=_0x5d4d79+(-_0x47fe43*_0x44d9b6+_0x1323cb*_0x42b635);}_0x341558&&(_0x1ea17d=this['_baseWidth']-_0x1ea17d),_0x8eb0e7&&(_0x40e053=this[_0x10c185(0x304)]-_0x40e053);let _0x473459=this['_activeShapeModel'][_0x10c185(0x300)](_0x3bf5b6,{'x':_0x1ea17d,'y':_0x40e053},_0x4e9290,_0x341558,_0x8eb0e7),_0x208644=_0x4e9290[_0x10c185(0xe7)]||_0x4e9290[_0x10c185(0x297)]||_0x4e9290[_0x10c185(0x27f)]||_0x4e9290['gdRefR'];_0x208644!==void 0x0&&(this[_0x10c185(0x1db)][_0x10c185(0x1cf)](_0x208644,_0x473459),this[_0x10c185(0x1db)]['updateContext']({'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]}),this[_0x10c185(0x2a2)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x208644,_0x473459),this[_0x10c185(0x2cf)]=this[_0x10c185(0x1db)][_0x10c185(0x12d)](),this[_0x10c185(0x1e9)]=this[_0x10c185(0x1db)][_0x10c185(0x2a1)](_0x50f82a),this['_createControls'](),_0x309507[_0x10c185(0x108)]());}),this[_0x3c7e5c(0xe3)]=_0x419b75[_0x3c7e5c(0x1fc)][_0x3c7e5c(0x19b)]((_0x10bed5,_0x3a0b6b)=>{const _0x592b11=_0x3c7e5c;if(this[_0x592b11(0x17a)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x592b11(0x2e3)](),_0x419b75[_0x592b11(0x18d)](),this[_0x592b11(0x1db)]){let _0x316704=this[_0x592b11(0x1db)][_0x592b11(0x325)](),_0x3dc849={};for(let _0x567c71 of _0x316704){let _0x87eb15=this[_0x592b11(0x1db)][_0x592b11(0x27e)](_0x567c71);_0x87eb15!==void 0x0&&(_0x3dc849[_0x567c71]=_0x87eb15);}this[_0x592b11(0x18a)][_0x592b11(0x1fb)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x52be7c,_0x3dc849);}this[_0x592b11(0x1e9)]=void 0x0,this[_0x592b11(0x1db)]=void 0x0,this[_0x592b11(0x2a5)]=!0x1,_0x3a0b6b[_0x592b11(0x108)](),_0x419b75[_0x592b11(0x24a)]();}),_0x47ba57['stopPropagation']();})));}['_updateImageAdjValues'](_0x4999d6,_0x37dac4,_0x3de9d4,_0x305312,_0x10ea99){const _0x3a875f=_0x49d8a2;let _0x506399=this[_0x3a875f(0x107)][_0x3a875f(0x2c4)](_0x4999d6);if(!_0x506399)return;let {scene:_0x2af349}=_0x506399,_0x3b76a2=_0x24e648({'unitId':_0x4999d6,'subUnitId':_0x37dac4,'drawingId':_0x3de9d4}),_0xa0ec2f=_0x2af349[_0x3a875f(0x307)](_0x3b76a2);if(_0xa0ec2f instanceof _0xd2487b){var _0x148fb7;let _0x40a4b9=(_0x148fb7=_0xa0ec2f[_0x3a875f(0x323)])==null?{}:_0x148fb7;_0xa0ec2f[_0x3a875f(0x164)]({..._0x40a4b9,[_0x305312]:_0x10ea99}),_0xa0ec2f['makeDirty'](!0x0);}}[_0x49d8a2(0x126)](){const _0x767221=_0x49d8a2;let _0x3a7ac8=this[_0x767221(0x1b8)]['getCurrentTypeOfUnit$'](_0x4c1a31['UNIVER_SHEET']);this['disposeWithMe'](_0x3a7ac8[_0x767221(0x26c)](_0x48371d(_0x39766e=>_0x39766e?_0x39766e[_0x767221(0x18c)][_0x767221(0x26c)](_0x48371d(_0x512ce9=>{const _0x3793fa=_0x767221;if(!_0x512ce9)return _0x4e602d;let _0x3c65ac=_0x39766e[_0x3793fa(0x229)](),_0x50a205=this[_0x3793fa(0x107)][_0x3793fa(0x2c4)](_0x3c65ac),_0x4f664d=_0x50a205==null?void 0x0:_0x50a205[_0x3793fa(0x228)];return _0x4f664d?_0x5ba9b9(_0x4f664d):_0x4e602d;})):_0x4e602d))[_0x767221(0x212)](_0x1acefe=>{const _0x27acf7=_0x767221;let _0x1d2683=_0x1acefe[_0x27acf7(0x14b)]();this['disposeWithMe'](_0x1acefe['onPointerMove$'][_0x27acf7(0x19b)](()=>{const _0x4d97d2=_0x27acf7;this['_isImagePointerDown']&&this[_0x4d97d2(0x186)]();})),this['disposeWithMe'](_0x1d2683['changeStart$'][_0x27acf7(0x212)](_0x519f79=>{const _0x2b565c=_0x27acf7;let {objects:_0x5582d2}=_0x519f79;if(this[_0x2b565c(0x28f)](),_0x5582d2!==null&&_0x5582d2['size']===0x1){let _0x33a3e2=_0x5582d2[_0x2b565c(0x2cc)]()[_0x2b565c(0x15a)]()['value'];_0x33a3e2 instanceof _0xd2487b&&_0x33a3e2[_0x2b565c(0x178)]&&(this[_0x2b565c(0x25b)]=!0x0);}})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x2f4)][_0x27acf7(0x212)](()=>{const _0x5000b1=_0x27acf7;this[_0x5000b1(0x25b)]&&this[_0x5000b1(0x186)]();})),this[_0x27acf7(0x16d)](_0x1acefe[_0x27acf7(0x1fc)]['subscribeEvent'](()=>{const _0xce4466=_0x27acf7;this[_0xce4466(0x25b)]&&(this['_isImagePointerDown']=!0x1,this[_0xce4466(0x28f)]());})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x322)][_0x27acf7(0x212)](()=>{const _0x5c042e=_0x27acf7;if(this[_0x5c042e(0x330)]&&this[_0x5c042e(0x227)]&&this['_activeImageId']){let _0x3ab4c6=this['_getImagePrstGeom'](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]);if(_0x3ab4c6){var _0x5e5626,_0x3d7988;let _0x1bac29=this[_0x5c042e(0x243)](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]),_0x4315f6=(_0x1bac29==null||(_0x5e5626=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x5e5626[_0x5c042e(0x2b9)])||0x0,_0x35787e=(_0x1bac29==null||(_0x3d7988=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x3d7988[_0x5c042e(0x232)])||0x0,_0x1ac35d=this[_0x5c042e(0x119)](_0x3ab4c6[_0x5c042e(0x178)],_0x4315f6,_0x35787e,_0x3ab4c6[_0x5c042e(0x114)]);_0x1ac35d&&(this[_0x5c042e(0x2cf)]=_0x1ac35d[_0x5c042e(0x12d)](),this[_0x5c042e(0x186)](),this['_createControls'](!0x0));}}}));}));}[_0x49d8a2(0x287)](){const _0x3fedab=_0x49d8a2;this['disposeWithMe'](this[_0x3fedab(0x159)]['focus$'][_0x3fedab(0x212)](_0x3eeff3=>{const _0x579926=_0x3fedab;if(_0x3eeff3[_0x579926(0x289)]===0x1){let _0x382f1c=_0x3eeff3[0x0];if(_0x382f1c[_0x579926(0x12e)]===_0x336997[_0x579926(0x2b7)]){let {unitId:_0x558b8b,subUnitId:_0x1a483e,drawingId:_0x45a9d9}=_0x382f1c,_0x1fae29=this[_0x579926(0x28d)](_0x558b8b,_0x1a483e,_0x45a9d9);if(_0x1fae29){var _0xbf5019,_0x4060b4;this['_activeImageId']=_0x45a9d9,this[_0x579926(0x330)]=_0x558b8b,this[_0x579926(0x227)]=_0x1a483e;let _0x2bd36c=this[_0x579926(0x243)](_0x558b8b,_0x1a483e,_0x45a9d9),_0x42662c=(_0x2bd36c==null||(_0xbf5019=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0xbf5019['width'])||0x0,_0x21088f=(_0x2bd36c==null||(_0x4060b4=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0x4060b4[_0x579926(0x232)])||0x0,_0x4a8446=this['_getOrCreateShapeModel'](_0x1fae29[_0x579926(0x178)],_0x42662c,_0x21088f,_0x1fae29[_0x579926(0x114)]);_0x4a8446&&(this['_activeAdjustPointList']=_0x4a8446[_0x579926(0x12d)]()),this[_0x579926(0x186)](),this['_createControls'](!0x0);}else this[_0x579926(0x30f)]();}else this['_resetState']();}else this[_0x579926(0x30f)]();})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x127)][_0x3fedab(0x212)](_0x131599=>{const _0x5fca99=_0x3fedab;if(_0x131599['length']===0x1){let _0x3cfac4=_0x131599[0x0],_0x32c830=this[_0x5fca99(0x159)][_0x5fca99(0x26a)](_0x3cfac4);(_0x32c830==null?void 0x0:_0x32c830[_0x5fca99(0x12e)])===_0x336997[_0x5fca99(0x2b7)]&&this['_activeImageId']===_0x3cfac4['drawingId']&&(this[_0x5fca99(0x186)](),this[_0x5fca99(0x28f)](!0x0));}})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x2dc)][_0x3fedab(0x212)](_0x11b0ce=>{const _0x5d5a69=_0x3fedab;for(let _0x4d7d77 of _0x11b0ce)this[_0x5d5a69(0x15d)]===_0x4d7d77[_0x5d5a69(0x20e)]&&this[_0x5d5a69(0x30f)]();}));}[_0x49d8a2(0x30f)](){const _0x18bc89=_0x49d8a2;this[_0x18bc89(0x15d)]=null,this['_unitId']=null,this[_0x18bc89(0x227)]=null,this[_0x18bc89(0x2cf)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x5a9176),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x2320a1),J(0x4,_0x3465f0(Q))],er);let tr=class extends _0x1e0fa2{constructor(_0x19fb24,_0x4233bf,_0x92d6be,_0x5d1b63){const _0xafe370=_0x49d8a2;super(),this['_univerInstanceService']=_0x19fb24,this[_0xafe370(0x1c0)]=_0x4233bf,this[_0xafe370(0x334)]=_0x92d6be,this[_0xafe370(0x220)]=_0x5d1b63,this[_0xafe370(0x1e4)]();}['_initSheetChange'](){const _0xf7409e=_0x49d8a2;this[_0xf7409e(0x16d)](this[_0xf7409e(0x1c0)][_0xf7409e(0x31d)]({'getMutations':_0x3befe2=>{const _0x4d273f=_0xf7409e;if(_0x3befe2['id']===_0x414783['id']){let _0xa5df6e=_0x20e706(this[_0x4d273f(0x1b8)],_0x3befe2['params']);if(!_0xa5df6e)return{'redos':[],'undos':[]};let {unitId:_0x3d1519,subUnitId:_0x7316b0}=_0xa5df6e,_0x3c5875=this['_sheetDrawingService'][_0x4d273f(0x233)](_0x3d1519,_0x7316b0),_0x230e44=Object[_0x4d273f(0x2cc)](_0x3c5875)[_0x4d273f(0x1da)](_0x2d5dbc=>_0x2d5dbc[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x230e44[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d49e8=[],_0x3928a9=[];for(let _0x4c231f=0x0;_0x4c231f<_0x230e44[_0x4d273f(0x289)];_0x4c231f++){let _0x5e8c39=_0x230e44[_0x4c231f],_0x2dda63=this[_0x4d273f(0x220)][_0x4d273f(0x296)](_0x5e8c39[_0x4d273f(0x1b7)],_0x5e8c39[_0x4d273f(0x2b4)],_0x5e8c39[_0x4d273f(0x20e)]);if(!_0x2dda63)continue;let {redo:_0x2cef78,undo:_0x1136b0,objects:_0x1e3942}=this[_0x4d273f(0x334)]['getBatchRemoveOp']([_0x5e8c39]);_0x2d49e8['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId']}}),_0x2d49e8[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x2cef78,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0x1136b0,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x47dbbc['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId'],'shapeType':_0x2dda63[_0x4d273f(0x285)](),'shapeData':JSON[_0x4d273f(0x230)](JSON[_0x4d273f(0x266)](_0x2dda63[_0x4d273f(0x205)]()))}});}return{'redos':_0x2d49e8,'undos':_0x3928a9};}else{if(_0x3befe2['id']===_0x54e5a0['id']){let {unitId:_0x3951ee,subUnitId:_0x56fcc5,targetSubUnitId:_0x1970b7}=_0x3befe2[_0x4d273f(0x2ba)];if(!_0x3951ee||!_0x56fcc5||!_0x1970b7)return{'redos':[],'undos':[]};let _0xd37df7=this[_0x4d273f(0x334)][_0x4d273f(0x233)](_0x3951ee,_0x56fcc5),_0x4db82c=Object[_0x4d273f(0x2cc)](_0xd37df7)['filter'](_0x486d3b=>_0x486d3b[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x4db82c[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d7efa=[],_0x278517=[];for(let _0x13e062=0x0;_0x13e062<_0x4db82c[_0x4d273f(0x289)];_0x13e062++){let _0x2f2826=_0x4db82c[_0x13e062],_0x7a75e5=this[_0x4d273f(0x220)]['getShapeModel'](_0x2f2826['unitId'],_0x2f2826[_0x4d273f(0x2b4)],_0x2f2826[_0x4d273f(0x20e)]);if(!_0x7a75e5)continue;let _0x4a58db=_0x3893c7(),_0x4dafd5={..._0x2f2826,'unitId':_0x3951ee,'subUnitId':_0x1970b7,'drawingId':_0x4a58db},{redo:_0xf5d128,undo:_0x561f6a,objects:_0x31fff6}=this[_0x4d273f(0x334)][_0x4d273f(0x20b)]([_0x4dafd5]);_0x2d7efa[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0xf5d128,'objects':_0x31fff6}}),_0x2d7efa[_0x4d273f(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db,'shapeType':_0x7a75e5[_0x4d273f(0x285)](),'shapeData':JSON['parse'](JSON[_0x4d273f(0x266)](_0x7a75e5[_0x4d273f(0x205)]()))}}),_0x278517[_0x4d273f(0x214)]({'id':_0x32e37c['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db}}),_0x278517[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x561f6a,'objects':_0x31fff6}});}return{'redos':_0x2d7efa,'undos':_0x278517};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x3465f0(_0x2320a1)),J(0x1,_0x3465f0(_0x85f95e)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a))],tr);let nr=class extends _0x1e0fa2{constructor(_0x2fd696,_0x3329c4,_0x244be0,_0x59643d,_0x358101){const _0x26d9dd=_0x49d8a2;super(),this['_context']=_0x2fd696,this[_0x26d9dd(0x185)]=_0x3329c4,this[_0x26d9dd(0x159)]=_0x244be0,this['_contextService']=_0x59643d,this['_sheetsShapeService']=_0x358101,q(this,_0x26d9dd(0x124),null),this['_initEvents'](),this['_initSelection'](),this[_0x26d9dd(0x28c)]();}[_0x49d8a2(0x1d6)](){const _0x32b58d=_0x49d8a2;let {scene:_0x12f538}=this[_0x32b58d(0x12a)];this['disposeWithMe'](_0x12f538[_0x32b58d(0x31b)][_0x32b58d(0x19b)](_0x1214e9=>{const _0xebdca7=_0x32b58d;let {offsetX:_0x475872,offsetY:_0xff4328}=_0x1214e9,_0x44c632=_0x12f538[_0xebdca7(0x177)](_0x1d9584['FromArray']([_0x475872,_0xff4328]));if(_0x44c632 instanceof vn){if(_0x5d2a5e(this['_sheetsShapeService'][_0xebdca7(0x285)](_0x44c632[_0xebdca7(0x1b7)],_0x44c632[_0xebdca7(0x2b4)],_0x44c632['shapeId'])))return;this[_0xebdca7(0x185)][_0xebdca7(0x2f3)]({'visible':!0x0,'unitId':_0x44c632[_0xebdca7(0x1b7)],'subUnitId':_0x44c632[_0xebdca7(0x2b4)],'shapeId':_0x44c632[_0xebdca7(0x142)],'shapeKey':_0x44c632[_0xebdca7(0x163)]});}}));}['_initSelection'](){const _0x5cfc71=_0x49d8a2;this[_0x5cfc71(0x16d)](this[_0x5cfc71(0x159)][_0x5cfc71(0x139)]['subscribe'](_0x1e3da6=>{const _0x45370a=_0x5cfc71;if(_0x1e3da6[_0x45370a(0x289)]===0x1){let _0x9664a=_0x1e3da6[0x0],_0x22d218=this['_drawingManagerService'][_0x45370a(0x26a)](_0x9664a);if((_0x22d218==null?void 0x0:_0x22d218['drawingType'])===_0x336997['DRAWING_SHAPE']){let _0x1b2f7e=this[_0x45370a(0x185)][_0x45370a(0x25a)]();if((_0x1b2f7e==null?void 0x0:_0x1b2f7e[_0x45370a(0x142)])===_0x9664a[_0x45370a(0x20e)]&&_0x1b2f7e[_0x45370a(0x316)])return;_0x5d2a5e(this[_0x45370a(0x220)]['getShapeType'](_0x9664a[_0x45370a(0x1b7)],_0x9664a[_0x45370a(0x2b4)],_0x9664a[_0x45370a(0x20e)]))&&this[_0x45370a(0x185)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x5635d4=_0x45370a;this[_0x5635d4(0x185)][_0x5635d4(0x2f3)](null);}));}else this[_0x45370a(0x185)][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x49817e=_0x45370a;this[_0x49817e(0x185)][_0x49817e(0x2f3)](null);}));})),this[_0x5cfc71(0x16d)](this['_drawingManagerService'][_0x5cfc71(0x2dc)][_0x5cfc71(0x212)](_0x4ba979=>{const _0x405e0f=_0x5cfc71;let _0x1f536b=this[_0x405e0f(0x185)][_0x405e0f(0x25a)]();_0x1f536b&&_0x4ba979[_0x405e0f(0x2ee)](_0x26db51=>_0x26db51[_0x405e0f(0x20e)]===_0x1f536b[_0x405e0f(0x142)])&&this[_0x405e0f(0x185)][_0x405e0f(0x2f3)](null);}));}[_0x49d8a2(0x28c)](){const _0x26d221=_0x49d8a2;this[_0x26d221(0x16d)](this[_0x26d221(0x185)][_0x26d221(0xfa)][_0x26d221(0x212)](_0x2cb3a8=>{const _0x2a2e07=_0x26d221;let {scene:_0x205a49}=this[_0x2a2e07(0x12a)];if(this[_0x2a2e07(0x124)]){let _0x25ec0d=_0x205a49[_0x2a2e07(0xda)](this[_0x2a2e07(0x124)]);_0x25ec0d&&_0x25ec0d[_0x2a2e07(0x2f3)](!0x1);}if(_0x2cb3a8){let _0x436f5a=!!_0x2cb3a8[_0x2a2e07(0x316)],_0x2343f5=_0x205a49['getObjectIncludeInGroup'](_0x2cb3a8[_0x2a2e07(0x103)]);_0x2343f5&&(_0x2343f5[_0x2a2e07(0x2f3)](_0x436f5a),this[_0x2a2e07(0x124)]=_0x2cb3a8[_0x2a2e07(0x103)]),this['_contextService'][_0x2a2e07(0x14f)](_0x7f228e,_0x436f5a);}else this[_0x2a2e07(0x124)]=null,this[_0x2a2e07(0x2e9)][_0x2a2e07(0x14f)](_0x7f228e,!0x1);}));}};nr=Y([J(0x1,_0x3465f0(Zn)),J(0x2,_0x5a9176),J(0x3,_0x2d429f),J(0x4,_0x3465f0(_0x1a451a))],nr);let rr=class extends _0x596e22{constructor(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296){super(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x3465f0(_0x529093)),J(0x2,_0x3465f0(_0x16c1cd)),J(0x3,_0x3465f0(_0x3889b2))],rr);let ir=class extends _0x1e0fa2{constructor(_0x1ceb18,_0x4e55fb,_0x107fe7,_0x3961e7,_0x2c518e,_0x19316a){const _0x16b538=_0x49d8a2;super(),this[_0x16b538(0x2af)]=_0x1ceb18,this[_0x16b538(0x107)]=_0x4e55fb,this['_drawingManagerService']=_0x107fe7,this[_0x16b538(0x118)]=_0x3961e7,this[_0x16b538(0x21b)]=_0x2c518e,this[_0x16b538(0x31a)]=_0x19316a,q(this,_0x16b538(0x20d),new Set()),this[_0x16b538(0x2f6)]();}['_initialize'](){const _0x50d91d=_0x49d8a2;this['_drawingAddListener'](),this[_0x50d91d(0x160)](),this[_0x50d91d(0x324)]();}[_0x49d8a2(0x180)](){const _0x35b84f=_0x49d8a2;this[_0x35b84f(0x16d)](this[_0x35b84f(0x159)]['add$'][_0x35b84f(0x212)](_0x72c374=>{const _0x3ddf8f=_0x35b84f;this[_0x3ddf8f(0x150)](_0x72c374);}));}[_0x49d8a2(0x160)](){const _0x38fdd7=_0x49d8a2;this[_0x38fdd7(0x16d)](this[_0x38fdd7(0x2af)][_0x38fdd7(0x242)](_0x44c316=>{const _0x355c44=_0x38fdd7;if(_0x44c316['id']===_0x22295a['id']){let {unitId:_0x2c12f2,subUnitId:_0x1cf971,shapeId:_0x5f026e}=_0x44c316[_0x355c44(0x2ba)],_0x51fb82=this[_0x355c44(0x1c9)](_0x2c12f2),_0x5a1590=_0x24e648({'unitId':_0x2c12f2,'subUnitId':_0x1cf971,'drawingId':_0x5f026e}),_0x248665=_0x51fb82==null?void 0x0:_0x51fb82[_0x355c44(0x228)][_0x355c44(0xda)](_0x5a1590);_0x248665&&(this[_0x355c44(0x31a)][_0x355c44(0x153)](_0x248665),_0x248665[_0x355c44(0x165)](!0x0));return;}if(_0x44c316['id']===_0x47dbbc['id']){var _0x2f14be;let {unitId:_0x2a3d62,subUnitId:_0x40aea9,shapeId:_0x34b31c}=_0x44c316[_0x355c44(0x2ba)],_0xc618bc=this[_0x355c44(0x1c9)](_0x2a3d62);if(_0xc618bc==null)return;let {scene:_0x733d62}=_0xc618bc,_0x50dda7=_0x24e648({'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}),_0x59279c=_0x733d62[_0x355c44(0xda)](_0x50dda7);if(!((_0x2f14be=this['_renderManagerService'][_0x355c44(0x2c4)](_0x2a3d62))!=null&&_0x2f14be['with'](_0x4b5a3f)[_0x355c44(0x1a4)](_0x40aea9)))return!0x1;if(_0x59279c)return;this['_insertShapes']([{'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}]);}}));}[_0x49d8a2(0x324)](){const _0x220787=_0x49d8a2;this['disposeWithMe'](this['_drawingManagerService'][_0x220787(0x127)][_0x220787(0x212)](_0xebe672=>{const _0x1a61c8=_0x220787;_0xebe672[_0x1a61c8(0x111)](_0x4d4fca=>{const _0x394d44=_0x1a61c8;let {unitId:_0x15b528,subUnitId:_0x196a46,drawingId:_0x476f24}=_0x4d4fca,_0x2338bd=this[_0x394d44(0x159)]['getDrawingByParam'](_0x4d4fca);if(_0x2338bd==null)return;let {transform:_0x53169f,drawingType:_0x5dc258,srcRect:_0x1217e3,prstGeom:_0xb27090}=_0x2338bd;if(_0x5dc258!==_0x336997[_0x394d44(0x181)])return;let _0x128d25=this[_0x394d44(0x1c9)](_0x15b528);if(_0x128d25==null)return;let {scene:_0x16f417,transformer:_0x2e32aa}=_0x128d25;if(_0x53169f==null)return!0x0;let _0x235cce=_0x24e648({'unitId':_0x15b528,'subUnitId':_0x196a46,'drawingId':_0x476f24}),_0x1f30e1=_0x16f417[_0x394d44(0xda)](_0x235cce);if(_0x1f30e1==null)return!0x0;_0x1f30e1[_0x394d44(0x279)](_0x1217e3),_0x1f30e1[_0x394d44(0x2ca)](_0xb27090);});}));}['_insertShapes'](_0x1a5140){const _0x3d7182=_0x49d8a2;for(let _0x4f53c2 of _0x1a5140){var _0x3e59ed;let {unitId:_0x533d1e,subUnitId:_0x4c5721,drawingId:_0x3dc0ac}=_0x4f53c2,_0x5606a3=this['_getSceneAndTransformerByDrawingSearch'](_0x533d1e),_0x450b8a=(_0x3e59ed=_0x5b5b76(this[_0x3d7182(0x118)],_0x533d1e))==null?void 0x0:_0x3e59ed[_0x3d7182(0x2b4)];if(_0x5606a3==null||_0x450b8a!==_0x4c5721)return;let _0x3ceb03=_0x24e648({'unitId':_0x533d1e,'subUnitId':_0x4c5721,'drawingId':_0x3dc0ac});if(this[_0x3d7182(0x20d)][_0x3d7182(0x215)](_0x3ceb03)||_0x5606a3[_0x3d7182(0x228)][_0x3d7182(0xda)](_0x3ceb03)!=null)return;let _0x32f3c7=this[_0x3d7182(0x159)][_0x3d7182(0x26a)](_0x4f53c2);if(_0x32f3c7==null||_0x32f3c7['drawingType']!==_0x336997[_0x3d7182(0x181)])return;if(_0x5d2a5e((_0x32f3c7['data']||{})[_0x3d7182(0x2b2)])){let _0x284630=_0x32f3c7[_0x3d7182(0x166)];_0x284630&&(_0x32f3c7[_0x3d7182(0x166)]={..._0x284630,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d7182(0x20d)][_0x3d7182(0x120)](_0x3ceb03);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x32f3c7,_0x5606a3[_0x3d7182(0x228)]);}finally{this[_0x3d7182(0x20d)][_0x3d7182(0x2a3)](_0x3ceb03);}queueMicrotask(()=>{const _0x4888dd=_0x3d7182;if(this[_0x4888dd(0x24c)])return;let _0x175a0b=_0x24e648(_0x4f53c2);if(!_0x5606a3['scene'][_0x4888dd(0xda)](_0x175a0b))return;let _0x513f57=this[_0x4888dd(0x159)]['getDrawingByParam'](_0x4f53c2);_0x513f57&&this[_0x4888dd(0x159)][_0x4888dd(0x2fd)]([_0x513f57]);});}}[_0x49d8a2(0x1c9)](_0x46c3c4){const _0x2e8e12=_0x49d8a2;if(_0x46c3c4==null)return;let _0x5e5257=this[_0x2e8e12(0x107)]['getRenderById'](_0x46c3c4),_0x4277c4=_0x5e5257==null?void 0x0:_0x5e5257['scene'];return _0x4277c4==null?null:{'scene':_0x4277c4,'transformer':_0x4277c4[_0x2e8e12(0x14b)]()};}};ir=Y([J(0x0,_0x3002c9),J(0x1,_0x2565d9),J(0x2,_0x5a9176),J(0x3,_0x2320a1),J(0x4,_0x3465f0(_0x4d04f3)),J(0x5,_0x3465f0(X))],ir);function _0x208c(_0x4fe8d9,_0x40ba78){_0x4fe8d9=_0x4fe8d9-0xd9;const _0x480688=_0x4806();let _0x208ca0=_0x480688[_0x4fe8d9];return _0x208ca0;}const ar={'normal':{'fill':_0x2bea1d['cxnPointFill'],'stroke':_0x2bea1d['cxnPointStroke'],'strokeWidth':_0x2bea1d[_0x49d8a2(0x2e5)]},'highlighted':{'fill':_0x49d8a2(0x1e3),'stroke':'#1a73e8','strokeWidth':0x2}};var or=class extends _0x176254{constructor(_0x3d732b,_0xde7c27){const _0x435980=_0x49d8a2;super(_0x3d732b,_0xde7c27),q(this,'_targetShapeId',''),q(this,_0x435980(0x2bb),-0x1),q(this,'_unitId',''),q(this,_0x435980(0x227),''),q(this,_0x435980(0x2f5),!0x1),_0xde7c27&&this[_0x435980(0x25e)](_0xde7c27);}['getConnectionInfo'](){const _0x4efe2e=_0x49d8a2;return{'unitId':this[_0x4efe2e(0x330)],'subUnitId':this[_0x4efe2e(0x227)],'shapeId':this[_0x4efe2e(0x30a)],'cxnIndex':this[_0x4efe2e(0x2bb)]};}['setHighlighted'](_0x46f819){const _0x50cfb7=_0x49d8a2;this['_isHighlighted']!==_0x46f819&&(this[_0x50cfb7(0x2f5)]=_0x46f819,this['makeDirty'](!0x0));}[_0x49d8a2(0x1ec)](){const _0x5448e3=_0x49d8a2;return this[_0x5448e3(0x2f5)];}[_0x49d8a2(0x25e)](_0x212a9e){const _0x5cb698=_0x49d8a2;var _0x49726c,_0x23bd8c;_0x212a9e[_0x5cb698(0x283)]!==void 0x0&&(this[_0x5cb698(0x30a)]=_0x212a9e[_0x5cb698(0x283)]),_0x212a9e['cxnIndex']!==void 0x0&&(this[_0x5cb698(0x2bb)]=_0x212a9e[_0x5cb698(0x217)]),_0x212a9e[_0x5cb698(0x1b7)]!==void 0x0&&(this[_0x5cb698(0x330)]=_0x212a9e[_0x5cb698(0x1b7)]),_0x212a9e['subUnitId']!==void 0x0&&(this[_0x5cb698(0x227)]=_0x212a9e[_0x5cb698(0x2b4)]),_0x212a9e[_0x5cb698(0x1ec)]!==void 0x0&&(this[_0x5cb698(0x2f5)]=_0x212a9e[_0x5cb698(0x1ec)]),this[_0x5cb698(0x112)]({'width':(_0x49726c=_0x212a9e[_0x5cb698(0x2b9)])==null?_0x2bea1d['cxnPointRadius']*0x2:_0x49726c,'height':(_0x23bd8c=_0x212a9e['height'])==null?_0x2bea1d[_0x5cb698(0x1eb)]*0x2:_0x23bd8c});}[_0x49d8a2(0x15e)](_0x84add3){const _0x196618=_0x49d8a2;let _0x1fc8cd=this[_0x196618(0x2f5)]?ar[_0x196618(0x1fe)]:ar[_0x196618(0x1f0)];_0x1578ae[_0x196618(0x1bf)](_0x84add3,{'radius':_0x2bea1d[_0x196618(0x1eb)],'fill':_0x1fc8cd[_0x196618(0x270)],'stroke':_0x1fc8cd[_0x196618(0x2dd)],'strokeWidth':_0x1fc8cd[_0x196618(0x276)],'evented':!0x0});}};let sr=class extends _0x1e0fa2{constructor(_0x15c481,_0x46cb2e,_0x530c98,_0x4bf09c){const _0x5d6328=_0x49d8a2;super(),this[_0x5d6328(0x12a)]=_0x15c481,this['_renderManagerService']=_0x46cb2e,this[_0x5d6328(0x159)]=_0x530c98,this[_0x5d6328(0x220)]=_0x4bf09c,q(this,_0x5d6328(0x167),[]),q(this,'_activeTargetShapeId',null),q(this,'_highlightedSiteIndex',-0x1),q(this,_0x5d6328(0x14d),null),q(this,'_unitId',''),q(this,_0x5d6328(0x227),''),q(this,_0x5d6328(0x2d7),null);}['startConnectionDetection'](_0x59a571,_0x211fef,_0x2c1bf1,_0x385795){const _0x596892=_0x49d8a2;this[_0x596892(0x14d)]=_0x59a571,this[_0x596892(0x330)]=_0x211fef,this['_subUnitId']=_0x2c1bf1,this['_draggingConnectorId']=_0x385795;}[_0x49d8a2(0x14a)](_0x4ce87c){const _0x1156d6=_0x49d8a2;if(!this['_currentScene'])return null;let _0x562364=this[_0x1156d6(0x2bd)](_0x4ce87c);return _0x562364?(this[_0x1156d6(0x1ad)]!==_0x562364[_0x1156d6(0x142)]&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0xff)](_0x562364[_0x1156d6(0x142)],_0x562364[_0x1156d6(0x11d)]),this[_0x1156d6(0x1ad)]=_0x562364[_0x1156d6(0x142)]),this[_0x1156d6(0x32d)](_0x4ce87c)):(this[_0x1156d6(0x1ad)]!==null&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0x1ad)]=null),null);}['endConnectionDetection'](){const _0x29070d=_0x49d8a2;this[_0x29070d(0x311)](),this[_0x29070d(0x14d)]=null,this[_0x29070d(0x1ad)]=null,this[_0x29070d(0x2aa)]=-0x1,this[_0x29070d(0x2d7)]=null;}[_0x49d8a2(0x1b4)](){const _0x39a936=_0x49d8a2;return this['_activeTargetShapeId']===null||this[_0x39a936(0x2aa)]<0x0?null:{'shapeId':this[_0x39a936(0x1ad)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x49d8a2(0x2bd)](_0x1adbaf){const _0x4666fa=_0x49d8a2;let _0x5eb57b=this[_0x4666fa(0x159)][_0x4666fa(0x233)](this[_0x4666fa(0x330)],this[_0x4666fa(0x227)]);for(let _0x8399a0 of Object[_0x4666fa(0x2c1)](_0x5eb57b)){if(_0x8399a0===this[_0x4666fa(0x2d7)]||_0x5eb57b[_0x8399a0][_0x4666fa(0x12e)]!==_0x336997[_0x4666fa(0x181)])continue;let _0x194973=this['_sheetsShapeService'][_0x4666fa(0x296)](this[_0x4666fa(0x330)],this['_subUnitId'],_0x8399a0);if(!_0x194973||_0x5d2a5e(_0x194973[_0x4666fa(0x285)]())||_0x194973[_0x4666fa(0x198)]()[_0x4666fa(0x289)]===0x0||!this[_0x4666fa(0x14d)])continue;let _0x5152da=_0x24e648({'unitId':this[_0x4666fa(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x8399a0}),_0x37c545=this['_currentScene'][_0x4666fa(0xda)](_0x5152da);if(!_0x37c545)continue;let {left:_0x304b60,top:_0x25b1fd,width:_0x7ea0be,height:_0x45f99b}=_0x37c545[_0x4666fa(0x23d)](),_0x21e3e1=_0x304b60+_0x7ea0be/0x2,_0x2c5eb0=_0x25b1fd+_0x45f99b/0x2,_0x2602d8=_0x37c545[_0x4666fa(0x166)][_0x4666fa(0x1d8)](),_0x1010d6=new _0x3a4198([_0x2602d8[0x0],_0x2602d8[0x1],_0x2602d8[0x2],_0x2602d8[0x3],_0x21e3e1,_0x2c5eb0]),_0x2d6516=_0x37c545[_0x4666fa(0x2bf)](),_0x5c5849=(_0x37c545['isInGroup']&&(_0x2d6516==null?void 0x0:_0x2d6516[_0x4666fa(0x2e7)])===_0x18ef31[_0x4666fa(0x237)]?_0x2d6516['ancestorTransform'][_0x4666fa(0x1be)](_0x1010d6):_0x1010d6)[_0x4666fa(0x2e4)]()[_0x4666fa(0x305)](_0x1adbaf),_0x409467=_0x7ea0be/0x2,_0x31ddd0=_0x45f99b/0x2;if(_0x5c5849['x']>=-_0x409467-0x5&&_0x5c5849['x']<=_0x409467+0x5&&_0x5c5849['y']>=-_0x31ddd0-0x5&&_0x5c5849['y']<=_0x31ddd0+0x5)return{'shapeId':_0x8399a0,'shapeModel':_0x194973};}return null;}[_0x49d8a2(0xff)](_0x3215fe,_0x9dc25){const _0x144207=_0x49d8a2;if(!this['_currentScene'])return;let _0x26c902=_0x24e648({'unitId':this[_0x144207(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x3215fe}),_0x1a0614=this[_0x144207(0x14d)]['getObjectIncludeInGroup'](_0x26c902);if(!_0x1a0614)return;let {left:_0xda7bea,top:_0x1d4cb6,width:_0x383b31,height:_0x38f99d}=_0x1a0614[_0x144207(0x23d)](),_0x45f1a3=_0xda7bea+_0x383b31/0x2,_0x26f03a=_0x1d4cb6+_0x38f99d/0x2,_0x224bcf=_0x1a0614[_0x144207(0x166)][_0x144207(0x1d8)](),_0x4970b0=new _0x3a4198([_0x224bcf[0x0],_0x224bcf[0x1],_0x224bcf[0x2],_0x224bcf[0x3],_0x45f1a3,_0x26f03a]),_0x1a919a=_0x1a0614[_0x144207(0x2bf)](),_0x13b9b4=_0x1a0614[_0x144207(0x234)]&&(_0x1a919a==null?void 0x0:_0x1a919a[_0x144207(0x2e7)])===_0x18ef31[_0x144207(0x237)]?_0x1a919a[_0x144207(0x22a)]['multiply'](_0x4970b0):_0x4970b0;_0x9dc25[_0x144207(0x314)]({'width':_0x383b31,'height':_0x38f99d});let _0x3ed7fb=_0x9dc25[_0x144207(0x198)]();for(let _0x428104 of _0x3ed7fb){let _0x255868=_0x428104['x']-_0x383b31/0x2,_0x526979=_0x428104['y']-_0x38f99d/0x2,_0x2b38c9=_0x13b9b4[_0x144207(0x305)]({'x':_0x255868,'y':_0x526979}),_0xbb3c80=_0x2b38c9['x'],_0x5c1a00=_0x2b38c9['y'],_0xc70b5d=new or(_0x144207(0x309)+_0x3215fe+'-'+_0x428104[_0x144207(0x2d2)],{'left':_0xbb3c80-_0x2bea1d['cxnPointRadius'],'top':_0x5c1a00-_0x2bea1d['cxnPointRadius'],'targetShapeId':_0x3215fe,'cxnIndex':_0x428104[_0x144207(0x2d2)],'unitId':this[_0x144207(0x330)],'subUnitId':this[_0x144207(0x227)],'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x144207(0x1eb)]*0x2,'zIndex':_0x529f4c+0x2,'evented':!0x1});this[_0x144207(0x167)][_0x144207(0x214)](_0xc70b5d),this[_0x144207(0x14d)][_0x144207(0x1c7)](_0xc70b5d,_0x529f4c+0x2);}}[_0x49d8a2(0x32d)](_0x2d1b33){const _0xa9c6d1=_0x49d8a2;let _0x8f6036=null,_0x496ecc=0x1/0x0,_0x172d7d=null;for(let _0x4fa693 of this[_0xa9c6d1(0x167)]){let _0x2a7601=_0x4fa693[_0xa9c6d1(0x26f)]+_0x2bea1d['cxnPointRadius'],_0x5dd769=_0x4fa693[_0xa9c6d1(0x25d)]+_0x2bea1d[_0xa9c6d1(0x1eb)],_0x4cdf21=_0x2d1b33['x']-_0x2a7601,_0x539e84=_0x2d1b33['y']-_0x5dd769,_0xe3d2c8=Math[_0xa9c6d1(0x2da)](_0x4cdf21*_0x4cdf21+_0x539e84*_0x539e84);_0xe3d2c8<_0x496ecc&&(_0x496ecc=_0xe3d2c8,_0x8f6036=_0x4fa693,_0x172d7d={'x':_0x2a7601,'y':_0x5dd769});}let _0x39b69d=_0x496ecc<=0xa&&_0x8f6036?_0x8f6036[_0xa9c6d1(0x28e)]()[_0xa9c6d1(0x217)]:-0x1;if(_0x39b69d!==this[_0xa9c6d1(0x2aa)]){for(let _0x577fe1 of this[_0xa9c6d1(0x167)]){let _0x48950e=_0x577fe1[_0xa9c6d1(0x28e)]();_0x577fe1['setHighlighted'](_0x48950e[_0xa9c6d1(0x217)]===_0x39b69d);}this[_0xa9c6d1(0x2aa)]=_0x39b69d;}if(_0x496ecc<=0xa&&_0x8f6036&&_0x172d7d){let _0x11a42a=_0x8f6036[_0xa9c6d1(0x28e)](),_0x44a185=this['_getConnectionSiteAngle'](_0x11a42a[_0xa9c6d1(0x142)],_0x11a42a[_0xa9c6d1(0x217)]);return{'shapeId':_0x11a42a[_0xa9c6d1(0x142)],'cxnIndex':_0x11a42a['cxnIndex'],'unitId':_0x11a42a['unitId'],'subUnitId':_0x11a42a[_0xa9c6d1(0x2b4)],'worldPoint':_0x172d7d,'angle':_0x44a185};}return null;}[_0x49d8a2(0x321)](_0x5087b2,_0x354fbe){const _0x45ede7=_0x49d8a2;let _0x3a2a84=this['_sheetsShapeService'][_0x45ede7(0x296)](this[_0x45ede7(0x330)],this['_subUnitId'],_0x5087b2);if(!_0x3a2a84)return 0x0;let _0x12fb54=this[_0x45ede7(0x159)][_0x45ede7(0x26a)]({'unitId':this['_unitId'],'subUnitId':this[_0x45ede7(0x227)],'drawingId':_0x5087b2});if(!(_0x12fb54!=null&&_0x12fb54[_0x45ede7(0x166)]))return 0x0;let {width:_0x260dd4=0x0,height:_0x4824e7=0x0,flipX:_0x12b818=!0x1,flipY:_0x3e326c=!0x1}=_0x12fb54[_0x45ede7(0x166)];_0x3a2a84[_0x45ede7(0x314)]({'width':_0x260dd4,'height':_0x4824e7});let _0x48a215=_0x3a2a84[_0x45ede7(0x198)]()[_0x45ede7(0x138)](_0x504b5c=>_0x504b5c[_0x45ede7(0x2d2)]===_0x354fbe);if(!_0x48a215)return 0x0;let _0x2271c9=_0x48a215[_0x45ede7(0x2db)]/0xea60;return _0x12b818&&(_0x2271c9=0xb4-_0x2271c9),_0x3e326c&&(_0x2271c9=-_0x2271c9),_0x2271c9=(_0x2271c9%0x168+0x168)%0x168,_0x2271c9;}[_0x49d8a2(0x311)](){const _0x4ee84d=_0x49d8a2;for(let _0x4aac9d of this[_0x4ee84d(0x167)])_0x4aac9d[_0x4ee84d(0x2b0)]();this[_0x4ee84d(0x167)]=[],this[_0x4ee84d(0x2aa)]=-0x1;}[_0x49d8a2(0x2b0)](){const _0x360524=_0x49d8a2;this[_0x360524(0x311)](),super[_0x360524(0x2b0)]();}};sr=Y([J(0x1,_0x3465f0(_0x2565d9)),J(0x2,_0x3465f0(_0x5a9176)),J(0x3,_0x3465f0(_0x1a451a))],sr);let cr=class extends _0x1e0fa2{constructor(_0x3c362b,_0x561ba9,_0x37967a,_0xe41ab5,_0x400500){const _0x327251=_0x49d8a2;super(),this['_sheetSkeletonService']=_0x3c362b,this[_0x327251(0xf8)]=_0x561ba9,this[_0x327251(0x334)]=_0x37967a,this[_0x327251(0x2b6)]=_0xe41ab5,this['_groupCopyPasteController']=_0x400500,q(this,_0x327251(0x2d9),void 0x0),this[_0x327251(0x329)](),this['_registerGroupFeaturePasteHook']();}get[_0x49d8a2(0x2a9)](){const _0x3eee63=_0x49d8a2;return this[_0x3eee63(0x334)]['getFocusDrawings']();}[_0x49d8a2(0x19c)](){const _0x421f36=_0x49d8a2;this[_0x421f36(0x131)][_0x421f36(0x32b)](({fromUnitId:_0x26070b,fromSubUnitId:_0x2317aa,toUnitId:_0x52efd5,toSubUnitId:_0x4fd6a7,idMap:_0x5c1fd3})=>{const _0x35314a=_0x421f36;let _0x53f6fc=[],_0x4c91db=[];for(let [_0xcd7ff4,_0x522ddc]of _0x5c1fd3[_0x35314a(0x13c)]()){let _0x5198ce=this[_0x35314a(0x2b6)]['getShapeModel'](_0x26070b,_0x2317aa,_0xcd7ff4);if(!_0x5198ce)continue;let _0x484586=_0x5198ce[_0x35314a(0x285)](),_0x421c91=JSON[_0x35314a(0x230)](JSON['stringify'](_0x5198ce['getShapeData']()));if(_0x421c91[_0x35314a(0x2e6)]){var _0x4a1390,_0x1051fc;let _0x49d5bd=(_0x4a1390=_0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)])==null?void 0x0:_0x4a1390[_0x35314a(0x142)],_0x583d09=(_0x1051fc=_0x421c91[_0x35314a(0x2e6)]['to'])==null?void 0x0:_0x1051fc[_0x35314a(0x142)],_0x1c1892=_0x49d5bd?_0x5c1fd3[_0x35314a(0x215)](_0x49d5bd):!0x0,_0x300afb=_0x583d09?_0x5c1fd3[_0x35314a(0x215)](_0x583d09):!0x0;_0x1c1892&&_0x49d5bd&&_0x421c91['relation']['from']?_0x421c91['relation'][_0x35314a(0x2d3)]={..._0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)],'shapeId':_0x5c1fd3['get'](_0x49d5bd)}:_0x421c91['relation']['from']=void 0x0,_0x300afb&&_0x583d09&&_0x421c91[_0x35314a(0x2e6)]['to']?_0x421c91[_0x35314a(0x2e6)]['to']={..._0x421c91['relation']['to'],'shapeId':_0x5c1fd3[_0x35314a(0x1bc)](_0x583d09)}:_0x421c91[_0x35314a(0x2e6)]['to']=void 0x0;}_0x53f6fc[_0x35314a(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc,'shapeType':_0x484586,'shapeData':_0x421c91}}),_0x4c91db['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc}});}return{'redos':_0x53f6fc,'undos':_0x4c91db};});}[_0x49d8a2(0x329)](){const _0x419195=_0x49d8a2;this[_0x419195(0x16d)](this['_sheetClipboardService'][_0x419195(0x2b8)]({'id':_0x419195(0xee),'onBeforeCopy':(_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe)=>{const _0x2ab492=_0x419195;this[_0x2ab492(0x2d9)]=null;let _0x112d41=this[_0x2ab492(0x2a9)];if(_0x112d41['length']){let _0x4beb3e=_0x112d41[_0x2ab492(0x1da)](_0xc45f5=>_0xc45f5[_0x2ab492(0x12e)]===_0x336997[_0x2ab492(0x181)]);if(_0x4beb3e[_0x2ab492(0x289)]===0x0)return;this['_copyInfo']={'unitId':_0x9a602f,'subUnitId':_0xd2d914,'copyType':_0xe3cabe,'drawings':_0x4beb3e};}else this[_0x2ab492(0x21e)](_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe);},'onPasteCells':(_0x4d5306,_0x585f25,_0x51cb48,_0x43f2ec)=>{const _0x5e2bb5=_0x419195;if(!this[_0x5e2bb5(0x2d9)])return{'redos':[],'undos':[]};let {pasteType:_0xd4baaf}=_0x43f2ec;return _0xd4baaf===_0x951401[_0x5e2bb5(0x282)]?this[_0x5e2bb5(0x2bc)](_0x585f25,this[_0x5e2bb5(0x2d9)][_0x5e2bb5(0x2d0)]===_0x4538e3[_0x5e2bb5(0x335)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xfd5b62=>this['_copyInfo']?this[_0x419195(0x2bc)](_0xfd5b62,this[_0x419195(0x2d9)][_0x419195(0x2d0)]===_0x4538e3[_0x419195(0x335)]):{'redos':[],'undos':[]}}));}[_0x49d8a2(0x21e)](_0x2ac6ab,_0x45a2f9,_0x396806,_0x14e9cf){const _0x5b4064=_0x49d8a2;let _0x2c22e1=this[_0x5b4064(0xf2)]['getSkeleton'](_0x2ac6ab,_0x45a2f9);if(!_0x2c22e1)return;let _0x26b694=_0x37168f(_0x2c22e1,_0x396806);if(!_0x26b694)return;let {startX:_0x5b07e3,endX:_0x294e4b,startY:_0x3182b4,endY:_0xe7f2e9}=_0x26b694,_0x36272e=this[_0x5b4064(0x334)][_0x5b4064(0x233)](_0x2ac6ab,_0x45a2f9),_0x24f70f=this[_0x5b4064(0x2a9)]['slice']();for(let [_0x13731f,_0x579171]of Object[_0x5b4064(0x13c)](_0x36272e)){if(_0x579171[_0x5b4064(0x12e)]!==_0x336997['DRAWING_SHAPE'])continue;let {transform:_0x275598}=_0x579171;if(!_0x275598)continue;let {left:_0x50175d=0x0,top:_0x28eb13=0x0,width:_0x1f3457=0x0,height:_0x50e56e=0x0}=_0x275598;_0x5b07e3<=_0x50175d&&_0x294e4b>=_0x50175d+_0x1f3457&&_0x3182b4<=_0x28eb13&&_0xe7f2e9>=_0x28eb13+_0x50e56e&&_0x24f70f['push'](_0x579171);}_0x24f70f[_0x5b4064(0x289)]>0x0&&(this['_copyInfo']={'unitId':_0x2ac6ab,'subUnitId':_0x45a2f9,'copyType':_0x14e9cf,'copyRange':_0x396806,'drawings':_0x24f70f});}[_0x49d8a2(0x2bc)](_0xb9657d,_0x3dc20e){const _0x3eec43=_0x49d8a2;let {unitId:_0x3663e8,subUnitId:_0x406901,range:_0xda15ec}=_0xb9657d,_0x4d42d1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x3663e8,_0x406901);if(!_0x4d42d1)return{'redos':[],'undos':[]};let _0x103fdd=_0x44b7b4(_0xda15ec),{unitId:_0x5db41c,subUnitId:_0x50fca2,copyRange:_0x2301cc,drawings:_0x40afd2}=this['_copyInfo'],_0x47cff1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x5db41c,_0x50fca2);if(!_0x47cff1)return{'redos':[],'undos':[]};let _0x5eb93f;if(!_0x2301cc){let _0x1c4619=0x1/0x0,_0xf54a7f=0x1/0x0;for(let _0x5168d4 of _0x40afd2){var _0x23eedb;let {left:_0xd41d74=0x0,top:_0x2c3537=0x0}=(_0x23eedb=_0x5168d4[_0x3eec43(0x166)])==null?{}:_0x23eedb;_0xd41d74<_0x1c4619&&(_0x1c4619=_0xd41d74),_0x2c3537<_0xf54a7f&&(_0xf54a7f=_0x2c3537);}_0x1c4619!==0x1/0x0&&_0xf54a7f!==0x1/0x0&&(_0x5eb93f={'left':_0x1c4619,'top':_0xf54a7f});}let _0x1cbf24=new Map();if(!_0x3dc20e){for(let _0x5642bc of _0x40afd2)_0x1cbf24[_0x3eec43(0x20a)](_0x5642bc[_0x3eec43(0x20e)],_0x3893c7());}let _0x13a7ad=[],_0x75cf73=[];for(let _0x6e064d of _0x40afd2){let {drawingId:_0x1e9b60,transform:_0x43004e,sheetTransform:_0x42ce91}=_0x6e064d;if(!_0x43004e||!_0x42ce91)continue;let _0x55da36=this[_0x3eec43(0x179)]({'transform':_0x43004e,'sheetTransform':_0x42ce91},{'skeleton':_0x47cff1,'range':_0x2301cc},{'skeleton':_0x4d42d1,'range':_0x103fdd},_0x5eb93f);if(_0x3dc20e){let {redos:_0x1b434b,undos:_0xb9f57c}=this[_0x3eec43(0x188)]({'fromUnitId':_0x5db41c,'fromSubUnitId':_0x50fca2,'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36});_0x13a7ad['push'](..._0x1b434b),_0x75cf73[_0x3eec43(0x214)](..._0xb9f57c);continue;}let {redos:_0x1b20aa,undos:_0x1cbdac}=this[_0x3eec43(0x1f4)]({'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36,'newDrawingId':_0x1cbf24[_0x3eec43(0x1bc)](_0x1e9b60),'idMap':_0x1cbf24});_0x13a7ad[_0x3eec43(0x214)](..._0x1b20aa),_0x75cf73[_0x3eec43(0x214)](..._0x1cbdac);}return{'redos':_0x13a7ad,'undos':_0x75cf73};}['_generateCutPasteMutations'](_0x538e2d){const _0x4ad12e=_0x49d8a2;let {fromUnitId:_0x2af024,fromSubUnitId:_0x4e4d0b,toUnitId:_0x30addc,toSubUnitId:_0x5d6221,drawing:_0x3159b9,newTransforms:_0x25d993}=_0x538e2d,_0x1579c8={..._0x3159b9,'unitId':_0x30addc,'subUnitId':_0x5d6221,'transform':_0x25d993[_0x4ad12e(0x166)],'sheetTransform':_0x25d993[_0x4ad12e(0x265)]};if(_0x30addc===_0x2af024&&_0x5d6221===_0x4e4d0b){let {redo:_0x328393,undo:_0x1dfdab,objects:_0x580970}=this['_sheetDrawingService']['getBatchUpdateOp']([_0x1579c8]);return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af[_0x4ad12e(0x210)],'op':_0x328393,'objects':_0x580970}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['UPDATE'],'op':_0x1dfdab,'objects':_0x580970}}]};}else{let _0x4476af=this[_0x4ad12e(0x334)][_0x4ad12e(0x1a9)]([_0x3159b9]),_0x4d8b1c=this['_sheetDrawingService'][_0x4ad12e(0x20b)]([_0x1579c8]),_0x32425a=this[_0x4ad12e(0x2b6)][_0x4ad12e(0x296)](_0x3159b9[_0x4ad12e(0x1b7)],_0x3159b9[_0x4ad12e(0x2b4)],_0x3159b9[_0x4ad12e(0x20e)]);if(!_0x32425a)return{'redos':[],'undos':[]};let _0x5c210d=_0x32425a[_0x4ad12e(0x285)](),_0x3885a6=JSON[_0x4ad12e(0x230)](JSON['stringify'](_0x32425a[_0x4ad12e(0x205)]()));return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af['REMOVE'],'op':_0x4476af[_0x4ad12e(0x30c)],'objects':_0x4476af['objects']}},{'id':_0x32e37c['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9['drawingId']}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['INSERT'],'op':_0x4d8b1c[_0x4ad12e(0x30c)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af[_0x4ad12e(0x337)],'op':_0x4476af[_0x4ad12e(0x1f3)],'objects':_0x4476af[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['REMOVE'],'op':_0x4d8b1c[_0x4ad12e(0x1f3)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x32e37c['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)]}}]};}}[_0x49d8a2(0x1f4)](_0x10ed6c){const _0x2d34ef=_0x49d8a2;let {toUnitId:_0xb2185a,toSubUnitId:_0x1cd72a,drawing:_0x350ec5,newTransforms:_0x3af7ae,newDrawingId:_0x582077,idMap:_0x34235c}=_0x10ed6c,_0x57d848={..._0x350ec5,'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'drawingId':_0x582077,'transform':_0x3af7ae[_0x2d34ef(0x166)],'sheetTransform':_0x3af7ae[_0x2d34ef(0x265)]},{redo:_0x355e64,undo:_0x54b62b,objects:_0x4ade7d}=this['_sheetDrawingService']['getBatchAddOp']([_0x57d848]),_0x12dd9a=this[_0x2d34ef(0x2b6)]['getShapeModel'](_0x350ec5[_0x2d34ef(0x1b7)],_0x350ec5[_0x2d34ef(0x2b4)],_0x350ec5[_0x2d34ef(0x20e)]);if(!_0x12dd9a)return{'redos':[],'undos':[]};let _0x45dc8d=_0x12dd9a[_0x2d34ef(0x285)](),_0x4a6ef9=JSON[_0x2d34ef(0x230)](JSON[_0x2d34ef(0x266)](_0x12dd9a['getShapeData']()));if(_0x4a6ef9[_0x2d34ef(0x2e6)]){var _0x2cc814,_0x11718a;let _0x2c5789=(_0x2cc814=_0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)])==null?void 0x0:_0x2cc814[_0x2d34ef(0x142)],_0x460045=(_0x11718a=_0x4a6ef9[_0x2d34ef(0x2e6)]['to'])==null?void 0x0:_0x11718a[_0x2d34ef(0x142)],_0x3c1bb1=_0x2c5789?_0x34235c['has'](_0x2c5789):!0x0,_0xbe89f6=_0x460045?_0x34235c[_0x2d34ef(0x215)](_0x460045):!0x0;_0x3c1bb1&&_0x2c5789&&_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]?_0x4a6ef9[_0x2d34ef(0x2e6)]['from']={..._0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x2c5789)}:_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]=void 0x0,_0xbe89f6&&_0x460045&&_0x4a6ef9[_0x2d34ef(0x2e6)]['to']?_0x4a6ef9['relation']['to']={..._0x4a6ef9[_0x2d34ef(0x2e6)]['to'],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x460045)}:_0x4a6ef9['relation']['to']=void 0x0;}return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af['INSERT'],'op':_0x355e64,'objects':_0x4ade7d}},{'id':_0x47dbbc['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077,'shapeType':_0x45dc8d,'shapeData':_0x4a6ef9}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af[_0x2d34ef(0xfb)],'op':_0x54b62b,'objects':_0x4ade7d}},{'id':_0x32e37c['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077}}]};}[_0x49d8a2(0x179)](_0x2bb2d7,_0x208dfb,_0x2338d2,_0x4a17ab){const _0x39e7c8=_0x49d8a2;var _0x28b437;let {range:_0x2da639,skeleton:_0x20d5e4}=_0x208dfb,{range:_0x502703,skeleton:_0x1f3586}=_0x2338d2,{transform:_0x1dd080,sheetTransform:_0x1db4bc}=_0x2bb2d7,_0x3c2515={..._0x1dd080};if(_0x2da639){let _0x1dbd71=_0x37168f(_0x20d5e4,_0x2da639),_0x3e0c8b=_0x37168f(_0x1f3586,_0x502703);if(_0x1dbd71&&_0x3e0c8b){var _0x346078,_0x4d93d4;let _0x702c8c=_0x3e0c8b['startX']-_0x1dbd71[_0x39e7c8(0x1f5)],_0x48e629=_0x3e0c8b['startY']-_0x1dbd71[_0x39e7c8(0x331)];_0x3c2515[_0x39e7c8(0x26f)]=((_0x346078=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0x346078)+_0x702c8c,_0x3c2515[_0x39e7c8(0x25d)]=((_0x4d93d4=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x4d93d4)+_0x48e629;}}else{let _0x106544=_0x37168f(_0x1f3586,_0x502703);if(_0x4a17ab&&_0x106544){var _0xe76567,_0x34cc2b;let _0x118689=((_0xe76567=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0xe76567)-_0x4a17ab[_0x39e7c8(0x26f)],_0x2f9c73=((_0x34cc2b=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x34cc2b)-_0x4a17ab['top'];_0x3c2515[_0x39e7c8(0x26f)]=_0x106544[_0x39e7c8(0x1f5)]+_0x118689,_0x3c2515[_0x39e7c8(0x25d)]=_0x106544['startY']+_0x2f9c73;}else _0x3c2515['left']=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x1f5)],_0x3c2515[_0x39e7c8(0x25d)]=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x331)];}return{'transform':_0x3c2515,'sheetTransform':(_0x28b437=_0x4ee577(_0x3c2515,_0x1f3586))==null?_0x1db4bc:_0x28b437};}};cr=Y([J(0x0,_0x3465f0(_0x834a52)),J(0x1,_0x3465f0(_0x4d0a59)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x407497))],cr);var lr=class extends _0x176254{constructor(_0x16fceb,_0x1e077b){const _0x5bb3a9=_0x49d8a2;super(_0x16fceb,_0x1e077b),q(this,_0x5bb3a9(0x1d0),null),q(this,_0x5bb3a9(0x2c3),null),q(this,_0x5bb3a9(0x330),null),q(this,_0x5bb3a9(0x227),null),q(this,_0x5bb3a9(0x16b),!0x1),_0x1e077b&&this['setShapeProps'](_0x1e077b);}['getDrawingSearch'](){const _0x50dc02=_0x49d8a2;return{'unitId':this[_0x50dc02(0x330)],'subUnitId':this[_0x50dc02(0x227)],'drawingId':this[_0x50dc02(0x1d0)]};}[_0x49d8a2(0x25e)](_0x273494){const _0x219220=_0x49d8a2;_0x273494[_0x219220(0x142)]!==void 0x0&&(this[_0x219220(0x1d0)]=_0x273494['shapeId']),_0x273494[_0x219220(0x1b7)]!==void 0x0&&(this[_0x219220(0x330)]=_0x273494['unitId']),_0x273494[_0x219220(0x2b4)]!==void 0x0&&(this[_0x219220(0x227)]=_0x273494[_0x219220(0x2b4)]),_0x273494[_0x219220(0x247)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x273494[_0x219220(0x247)]),this['transformByState']({'width':_0x273494[_0x219220(0x2b9)],'height':_0x273494[_0x219220(0x232)]});}[_0x49d8a2(0x15e)](_0x4a95a4){const _0x212cc8=_0x49d8a2;_0x1578ae['drawWith'](_0x4a95a4,{'radius':_0x2bea1d[_0x212cc8(0x1eb)],'fill':_0x2bea1d[_0x212cc8(0x222)],'stroke':_0x2bea1d[_0x212cc8(0x109)],'strokeWidth':_0x2bea1d['cxnPointStrokeWidth'],'evented':!0x0});}};let ur=class extends _0x1e0fa2{constructor(_0x1d334a,_0x2f10ca,_0x4ed22d,_0x463b63,_0x5ba0a1,_0x16924e,_0x5d5b1a,_0x26c83a){const _0x6a3796=_0x49d8a2;super(),this[_0x6a3796(0x12a)]=_0x1d334a,this['_commandService']=_0x2f10ca,this[_0x6a3796(0x107)]=_0x4ed22d,this['_drawingManagerService']=_0x463b63,this['_univerInstanceService']=_0x5ba0a1,this[_0x6a3796(0x220)]=_0x16924e,this[_0x6a3796(0x26e)]=_0x5d5b1a,this[_0x6a3796(0x17d)]=_0x26c83a,q(this,_0x6a3796(0x288),void 0x0),q(this,_0x6a3796(0x330),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x6a3796(0x272),[]),q(this,_0x6a3796(0x1f8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x6a3796(0x1db),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x6a3796(0x27c),!0x1),q(this,_0x6a3796(0xdc),!0x1),q(this,_0x6a3796(0x22b),void 0x0),q(this,_0x6a3796(0x101),void 0x0),q(this,_0x6a3796(0xf0),null),this[_0x6a3796(0x2f6)]();}[_0x49d8a2(0x2f6)](){const _0x3ce769=_0x49d8a2;this[_0x3ce769(0x2d1)](),this[_0x3ce769(0x246)]();}[_0x49d8a2(0x1ed)](){const _0x1d131d=_0x49d8a2;if(!this[_0x1d131d(0x330)]||!this[_0x1d131d(0x227)]||!this[_0x1d131d(0x288)])return;let _0x35f0c8={'unitId':this[_0x1d131d(0x330)],'subUnitId':this[_0x1d131d(0x227)],'drawingId':this[_0x1d131d(0x288)]},{transform:_0x3837d8}=this[_0x1d131d(0x159)][_0x1d131d(0x26a)](_0x35f0c8);if(_0x3837d8)return{'left':_0x3837d8[_0x1d131d(0x26f)]||0x0,'top':_0x3837d8['top']||0x0,'width':_0x3837d8[_0x1d131d(0x2b9)]||0x0,'height':_0x3837d8[_0x1d131d(0x232)]||0x0,'flipX':_0x3837d8['flipX']||!0x1,'flipY':_0x3837d8['flipY']||!0x1,'angle':_0x3837d8[_0x1d131d(0x1fa)]};}['_addShapeConnectorHandlerObjects'](){const _0x4af483=_0x49d8a2;if(this[_0x4af483(0x330)]===void 0x0||this[_0x4af483(0x227)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4fe720=this[_0x4af483(0x107)][_0x4af483(0x2c4)](this[_0x4af483(0x330)]);if(!_0x4fe720||!_0x4fe720['with'](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x53ee95}=_0x4fe720,_0x187f45=this[_0x4af483(0x1ed)]();if(!_0x187f45)return;let _0x22aa5f=this[_0x4af483(0x220)]['getShapeModel'](this['_unitId'],this[_0x4af483(0x227)],this[_0x4af483(0x288)]);if(!_0x22aa5f||!_0x5d2a5e(_0x22aa5f[_0x4af483(0x285)]()))return;let _0x4719a3=_0x22aa5f['getConnectorLinePoints']();if(_0x4719a3[_0x4af483(0x289)]<0x2)return;let _0x119741=new _0x20c995(_0x187f45),_0x55a5cd=_0x4719a3[0x0],_0xb75ac2=_0x4719a3[_0x4719a3['length']-0x1],_0x45d7ff=_0x119741[_0x4af483(0x123)](_0x55a5cd),_0x140a2a=_0x119741[_0x4af483(0x123)](_0xb75ac2);this[_0x4af483(0x24d)](_0x53ee95,{..._0x45d7ff},!0x0),this[_0x4af483(0x24d)](_0x53ee95,{..._0x140a2a},!0x1);}[_0x49d8a2(0x24d)](_0x13cabc,_0x33e3e5,_0x1c073c){const _0x4887fd=_0x49d8a2;if(this[_0x4887fd(0x288)]===void 0x0||this['_unitId']===void 0x0||this[_0x4887fd(0x227)]===void 0x0)return;let _0xa53536=_0x4887fd(0x28b)+this[_0x4887fd(0x330)]+'-'+this[_0x4887fd(0x227)]+'-'+this[_0x4887fd(0x288)]+'-'+(_0x1c073c?_0x4887fd(0x137):_0x4887fd(0x31f)),_0x207e1f=_0x13cabc['getObjectIncludeInGroup'](_0xa53536);if(_0x207e1f){_0x207e1f[_0x4887fd(0x112)]({'left':_0x33e3e5['x']-_0x2bea1d[_0x4887fd(0x1eb)],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)]});return;}let _0x21d4eb=new lr(_0xa53536,{'left':_0x33e3e5['x']-_0x2bea1d['cxnPointRadius'],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)],'shapeId':this[_0x4887fd(0x288)],'unitId':this[_0x4887fd(0x330)],'subUnitId':this[_0x4887fd(0x227)],'isStartConnectorPoint':_0x1c073c,'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x4887fd(0x1eb)]*0x2,'zIndex':_0x529f4c+0x1,'evented':!0x0});this['_connectorObjects'][_0x4887fd(0x214)](_0x21d4eb),this[_0x4887fd(0x129)](_0x21d4eb,_0x13cabc,_0x1c073c),_0x13cabc[_0x4887fd(0x1c7)](_0x21d4eb,_0x529f4c+0x1);}[_0x49d8a2(0x30e)](_0x3f8082,_0x4a43e1){const _0x54bc76=_0x49d8a2;var _0x3f252f;let _0x9d0b38={'x':0x0,'y':0x0};if(!_0x3f8082||!_0x4a43e1)return _0x9d0b38;let _0x3465c6=this[_0x54bc76(0x107)][_0x54bc76(0x2c4)](_0x3f8082);if(!_0x3465c6||!_0x3465c6[_0x54bc76(0xf5)](_0x4b5a3f)['getSkeleton'](_0x4a43e1))return _0x9d0b38;let _0x29dcb4=_0x3465c6[_0x54bc76(0xf5)](_0x5480ae),_0x4f14bb=_0x29dcb4==null?void 0x0:_0x29dcb4['getCurrentScrollState']();if(!_0x4f14bb)return _0x9d0b38;let _0x5f3d=(_0x3f252f=this[_0x54bc76(0x1b8)]['getUnit'](_0x3f8082))==null?void 0x0:_0x3f252f[_0x54bc76(0x169)](_0x4a43e1);if(!_0x5f3d)return _0x9d0b38;let _0x1555a1=_0x356c4d(_0x4f14bb[_0x54bc76(0x206)],_0x4f14bb['sheetViewStartColumn'],_0x3465c6['scene'],_0x5f3d);return _0x1555a1?{'x':_0x1555a1[_0x54bc76(0x33d)],'y':_0x1555a1[_0x54bc76(0x25f)]}:_0x9d0b38;}[_0x49d8a2(0x224)](_0x2d2be7,_0x1efc7c){const _0x14568a=_0x49d8a2;var _0x10ec49,_0x4f22f9;let _0x443129=(_0x10ec49=this[_0x14568a(0x1b8)][_0x14568a(0x12f)](_0x2d2be7))==null?void 0x0:_0x10ec49[_0x14568a(0x169)](_0x1efc7c);return(_0x4f22f9=_0x443129==null?void 0x0:_0x443129[_0x14568a(0x221)]())==null?0x1:_0x4f22f9;}[_0x49d8a2(0x197)](_0x13e79e,_0xc195bd,_0x4da696,_0x395ed0,_0x19e3f2){const _0x216c1e=_0x49d8a2;this[_0x216c1e(0x22b)][_0x216c1e(0x2e3)](),this[_0x216c1e(0x101)][_0x216c1e(0x2e3)](),this['_sheetShapeAdjustController']['refreshAdjustControls']();let _0x110b99=this['_currentConnectionTarget'];this[_0x216c1e(0x17d)][_0x216c1e(0x254)]();let _0x5382e1=this[_0x216c1e(0x30e)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x430ee4=this[_0x216c1e(0x224)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x2008d5={'x':_0x4da696[_0x216c1e(0x30d)]/_0x430ee4+_0x5382e1['x'],'y':_0x4da696[_0x216c1e(0x18e)]/_0x430ee4+_0x5382e1['y']},_0x423c2c=_0x110b99?_0x110b99[_0x216c1e(0x1c4)]:_0x2008d5,_0x135f0d=_0x395ed0?this[_0x216c1e(0x1db)][_0x216c1e(0x223)]():this['_activeShapeModel'][_0x216c1e(0x1d9)](),_0x5dd056=this[_0x216c1e(0x1db)]['getShapeType']();_0x135f0d?this[_0x216c1e(0x29f)](_0x135f0d,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2):this['_handleFreeEndpointPointerUp'](_0xc195bd,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2,_0x5dd056),this[_0x216c1e(0x1d2)]=!0x1,this[_0x216c1e(0xdc)]=!0x1,this[_0x216c1e(0xf0)]=null,_0x13e79e[_0x216c1e(0x24a)]();}[_0x49d8a2(0x2fe)](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x257c9f,_0x1d75e7,_0x22495d){const _0x2d6faf=_0x49d8a2;let _0x5c3244=_0x22495d===_0x1ca39f[_0x2d6faf(0x23c)]||_0x22495d===_0x1ca39f['StraightConnector1'],_0x62b818=_0x99a8ac?_0x5d2dab:_0x1b433f,_0x4d7aa6=_0x99a8ac?_0x1b433f:_0x5d2dab,_0x10c74d=this[_0x2d6faf(0x1db)][_0x2d6faf(0x2de)](),_0x237f31=_0x41cad6(this[_0x2d6faf(0x1db)][_0x2d6faf(0x285)]()),_0x6856d0=_0x20c995[_0x2d6faf(0x22f)](_0x10c74d,_0x237f31),_0xc5d135=_0x5c3244?_0x20c995[_0x2d6faf(0x12c)](_0x62b818,_0x4d7aa6):_0x20c995['computeConnectorResizeLayout'](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x6856d0);_0x257c9f?this[_0x2d6faf(0x115)](_0xc5d135,_0x257c9f,_0x99a8ac,_0x1d75e7):this[_0x2d6faf(0x1d5)](_0xc5d135,_0x1d75e7);}['_handleConnectedEndpointPointerUp'](_0x165b34,_0x3c51f0,_0x58706e,_0x3573a0,_0x423790){const _0x2e8b6a=_0x49d8a2;let _0x3b3fdc=this[_0x2e8b6a(0x1b9)](_0x165b34);if(!_0x3b3fdc)return;let _0x20847a=_0x3573a0?_0x3573a0[_0x2e8b6a(0x1fa)]:this[_0x2e8b6a(0x25c)](_0x3b3fdc[_0x2e8b6a(0x22c)],_0x3c51f0),_0x262f6c;if(_0x3573a0){let _0x145cd8=this[_0x2e8b6a(0x159)]['getDrawingByParam']({'unitId':_0x3573a0[_0x2e8b6a(0x1b7)],'subUnitId':_0x3573a0[_0x2e8b6a(0x2b4)],'drawingId':_0x3573a0[_0x2e8b6a(0x142)]});if(_0x145cd8!=null&&_0x145cd8[_0x2e8b6a(0x166)]){let {left:_0x179ee6=0x0,top:_0x3a21f8=0x0,width:_0x3f8482=0x0,height:_0x23abc4=0x0,angle:_0x2ff946}=_0x145cd8[_0x2e8b6a(0x166)];_0x262f6c=_0x4d4669({'left':_0x179ee6,'top':_0x3a21f8,'width':_0x3f8482,'height':_0x23abc4},_0x2ff946||0x0);}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};let _0x1294ac={'point':_0x3c51f0,'angle':_0x20847a,'bounds':_0x262f6c},_0x47740c=_0x58706e?_0x1294ac:_0x3b3fdc,_0x525323=_0x58706e?_0x3b3fdc:_0x1294ac,_0x411521=this[_0x2e8b6a(0x1db)]['getShapeType'](),_0x7ca124=_0x449797(_0x47740c,_0x525323,_0x411521);this[_0x2e8b6a(0x1db)][_0x2e8b6a(0x249)]();let _0x1b2606=_0x59ea91(_0x7ca124,_0x411521);_0x3573a0?this[_0x2e8b6a(0x2ea)](_0x1b2606,_0x3573a0,_0x165b34,_0x58706e,_0x423790):this[_0x2e8b6a(0x318)](_0x1b2606,_0x165b34,_0x58706e,_0x423790);}[_0x49d8a2(0x115)](_0x528b85,_0x308519,_0x5cd55e,_0x471b4c){const _0x1e87a2=_0x49d8a2;let _0x4110fd=this[_0x1e87a2(0x1db)][_0x1e87a2(0x205)]()['relation'],_0x5d0df7={..._0x4110fd},_0x34634d={'shapeId':_0x308519['shapeId'],'cxnIndex':_0x308519['cxnIndex']};_0x5cd55e?_0x5d0df7[_0x1e87a2(0x2d3)]=_0x34634d:_0x5d0df7['to']=_0x34634d;let _0x2c57bb=this[_0x1e87a2(0x1db)]['getShapeType'](),_0x19fca4=_0x59ea91(_0x528b85[_0x1e87a2(0x130)],_0x2c57bb),_0x3a6fbf={'unitId':this[_0x1e87a2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1e87a2(0x288)],'width':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x2b9)],'height':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x232)],'left':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x26f)],'top':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x25d)],'flipX':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x31c)]||!0x1,'flipY':_0x528b85['worldRect']['flipY']||!0x1,'newAdjustValues':_0x19fca4['adjustValues'],'oldAdjustValues':_0x471b4c,'oldRelation':_0x4110fd,'newRelation':_0x5d0df7,'newLineType':_0x19fca4[_0x1e87a2(0x22e)],'oldLineType':_0x2c57bb};this['_commandService'][_0x1e87a2(0x2c5)](_0x1c01fb['id'],_0x3a6fbf);}['_executeResizeCommand'](_0x144d6b,_0x1b95ab){const _0x1815a6=_0x49d8a2;let _0x49d40a=this[_0x1815a6(0x1db)][_0x1815a6(0x285)](),_0xda55b5=_0x59ea91(_0x144d6b['worldPoints'],_0x49d40a),_0x1730f7={'unitId':this[_0x1815a6(0x330)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x1815a6(0x288)],'width':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x2b9)],'height':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x232)],'left':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x26f)],'top':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x25d)],'flipX':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x31c)]||!0x1,'flipY':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x132)]||!0x1,'angle':_0x144d6b['worldRect'][_0x1815a6(0x1fa)]||0x0,'newAdjustValues':_0xda55b5[_0x1815a6(0x114)],'oldAdjustValues':_0x1b95ab,'newLineType':_0xda55b5[_0x1815a6(0x22e)],'oldLineType':_0x49d40a};this['_commandService']['executeCommand'](_0x3b0863['id'],_0x1730f7);}[_0x49d8a2(0x2ea)](_0x11135d,_0xbd6a8e,_0x1a8754,_0x396801,_0x31024d){const _0x878b2=_0x49d8a2;let _0x286e21=this[_0x878b2(0x1db)][_0x878b2(0x205)]()['relation'],_0x1ae491={..._0x286e21},_0x164ca1={'shapeId':_0xbd6a8e[_0x878b2(0x142)],'cxnIndex':_0xbd6a8e[_0x878b2(0x217)]};_0x396801?(_0x1ae491['from']=_0x164ca1,_0x1ae491['to']=_0x1a8754):(_0x1ae491['from']=_0x1a8754,_0x1ae491['to']=_0x164ca1);let _0x42f758={'unitId':this[_0x878b2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x878b2(0x288)],'width':_0x11135d[_0x878b2(0x238)][_0x878b2(0x2b9)],'height':_0x11135d[_0x878b2(0x238)]['height'],'left':_0x11135d[_0x878b2(0x238)][_0x878b2(0x26f)],'top':_0x11135d[_0x878b2(0x238)]['top'],'flipX':_0x11135d['worldRect'][_0x878b2(0x31c)]||!0x1,'flipY':_0x11135d['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x31024d,'newAdjustValues':_0x11135d[_0x878b2(0x114)],'newLineType':_0x11135d[_0x878b2(0x22e)],'rotation':_0x11135d[_0x878b2(0x184)],'oldRelation':_0x286e21,'newRelation':_0x1ae491};this[_0x878b2(0x2af)][_0x878b2(0x2c5)](_0x1c01fb['id'],_0x42f758);}[_0x49d8a2(0x318)](_0x272335,_0x180284,_0x5d1191,_0x258a45){const _0x1decfc=_0x49d8a2;let _0x1d7a4a=this[_0x1decfc(0x1db)]['getShapeData']()[_0x1decfc(0x2e6)],_0x66d17={};_0x5d1191?(_0x66d17['to']=_0x180284,_0x66d17[_0x1decfc(0x2d3)]=void 0x0):(_0x66d17[_0x1decfc(0x2d3)]=_0x180284,_0x66d17['to']=void 0x0);let _0x3fb0f2={'unitId':this[_0x1decfc(0x330)],'subUnitId':this[_0x1decfc(0x227)],'connectorShapeId':this[_0x1decfc(0x288)],'width':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x2b9)],'height':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x232)],'left':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x26f)],'top':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x25d)],'flipX':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x31c)]||!0x1,'flipY':_0x272335[_0x1decfc(0x238)]['flipY']||!0x1,'oldAdjustValues':_0x258a45,'newAdjustValues':_0x272335[_0x1decfc(0x114)],'newLineType':_0x272335[_0x1decfc(0x22e)],'rotation':_0x272335[_0x1decfc(0x184)],'oldRelation':_0x1d7a4a,'newRelation':_0x66d17};this['_commandService'][_0x1decfc(0x2c5)](_0x1c01fb['id'],_0x3fb0f2);}[_0x49d8a2(0x129)](_0x433c96,_0x4650a8,_0x2a9435){const _0x5336bc=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x433c96[_0x5336bc(0x1ca)][_0x5336bc(0x19b)]((_0x52f961,_0x1548e2)=>{const _0x2ebb38=_0x5336bc;let _0x1f0ae1=_0x433c96[_0x2ebb38(0x275)]();if(this[_0x2ebb38(0x1db)]=this[_0x2ebb38(0x220)][_0x2ebb38(0x296)](_0x1f0ae1[_0x2ebb38(0x1b7)],_0x1f0ae1[_0x2ebb38(0x2b4)],_0x1f0ae1[_0x2ebb38(0x20e)]),!this[_0x2ebb38(0x1db)])return;let _0x1a13b3={};this[_0x2ebb38(0x1db)][_0x2ebb38(0x325)]()[_0x2ebb38(0x111)](_0x5e526c=>{const _0x519e88=_0x2ebb38;let _0x59a92e=this[_0x519e88(0x1db)][_0x519e88(0x27e)](_0x5e526c);_0x59a92e!==void 0x0&&(_0x1a13b3[_0x5e526c]=_0x59a92e);});let _0x5d45ac=this['_getDrawingRect']();if(!_0x5d45ac)return;this['_baseDrawingRect']={..._0x5d45ac};let _0x529f78=new _0x20c995(this[_0x2ebb38(0x1f8)]),_0x4b24ff=_0x24e648({'unitId':this[_0x2ebb38(0x330)],'subUnitId':this[_0x2ebb38(0x227)],'drawingId':this['_activeShapeId']}),_0x1fac8f=_0x4650a8[_0x2ebb38(0xda)](_0x4b24ff);this[_0x2ebb38(0x1d2)]=!0x0,_0x4650a8[_0x2ebb38(0x162)](),this['_sheetBasicShapeConnectionPointController'][_0x2ebb38(0x2a4)](_0x4650a8,this[_0x2ebb38(0x330)],this['_subUnitId'],this[_0x2ebb38(0x288)]),this['_currentConnectionTarget']=null;let _0x3d2c6d=this[_0x2ebb38(0x1db)][_0x2ebb38(0x2de)](),_0x182d5c=_0x3d2c6d[0x0],_0x47759b=_0x3d2c6d[_0x3d2c6d[_0x2ebb38(0x289)]-0x1],_0x167ef9=_0x2a9435?_0x529f78[_0x2ebb38(0x123)](_0x47759b):_0x529f78['localToWorld'](_0x182d5c);this[_0x2ebb38(0x22b)]=_0x4650a8[_0x2ebb38(0x301)][_0x2ebb38(0x19b)]((_0x5822f5,_0x17460e)=>{const _0x2ca34d=_0x2ebb38;if(!this['_isConnecting']||!this['_activeShapeModel'])return;this[_0x2ca34d(0xdc)]||(this[_0x2ca34d(0x26e)][_0x2ca34d(0x2cb)](),this[_0x2ca34d(0x1db)][_0x2ca34d(0xea)](),this[_0x2ca34d(0xdc)]=!0x0);let _0x3a8154=this[_0x2ca34d(0x30e)](this[_0x2ca34d(0x330)],this[_0x2ca34d(0x227)]),_0x1f489b=this['_getZoomRatio'](this['_unitId'],this[_0x2ca34d(0x227)]),_0x2ba099={'x':_0x5822f5[_0x2ca34d(0x30d)]/_0x1f489b+_0x3a8154['x'],'y':_0x5822f5[_0x2ca34d(0x18e)]/_0x1f489b+_0x3a8154['y']},_0x4f1aa2=this[_0x2ca34d(0x17d)][_0x2ca34d(0x14a)](_0x2ba099);if(_0x4f1aa2){let {shapeId:_0x56c8d3,unitId:_0x48f239,subUnitId:_0x1ea885}=_0x4f1aa2;if(_0x56c8d3&&_0x48f239&&_0x1ea885){let _0x245d47=_0x24e648({'unitId':_0x48f239,'subUnitId':_0x1ea885,'drawingId':_0x56c8d3});_0x4f1aa2[_0x2ca34d(0x1fa)]=(_0x4650a8['getObjectIncludeInGroup'](_0x245d47)[_0x2ca34d(0x1fa)]||0x0)+_0x4f1aa2['angle'];}}this['_currentConnectionTarget']=_0x4f1aa2;let _0x5cedbe=_0x2a9435?this[_0x2ca34d(0x1db)][_0x2ca34d(0x223)]():this[_0x2ca34d(0x1db)][_0x2ca34d(0x1d9)]();if(_0x5cedbe){this[_0x2ca34d(0xe4)](_0x5cedbe,_0x2ba099,_0x2a9435,_0x1fac8f,_0x433c96);return;}this[_0x2ca34d(0x21f)](_0x2ba099,_0x167ef9,_0x2a9435,_0x1fac8f,_0x433c96);}),this[_0x2ebb38(0x101)]=_0x4650a8[_0x2ebb38(0x1fc)][_0x2ebb38(0x19b)]((_0x2173f3,_0x3f4b0f)=>{const _0x1ef1ee=_0x2ebb38;this[_0x1ef1ee(0x197)](_0x4650a8,_0x167ef9,_0x2173f3,_0x2a9435,_0x1a13b3);}),_0x1548e2['stopPropagation']();})));}[_0x49d8a2(0x294)](_0xa537e5,_0x4a8bb8,_0x154192){const _0x2b58d9=_0x49d8a2;let _0x1f3a6f=this['_sheetsShapeService'][_0x2b58d9(0x1ba)](_0xa537e5,_0x4a8bb8,_0x154192);if(!_0x1f3a6f||_0x1f3a6f[_0x2b58d9(0x289)]===0x0)return;let _0x10f285=this[_0x2b58d9(0x107)][_0x2b58d9(0x2c4)](_0xa537e5);if(!_0x10f285)return;let {scene:_0x4d3f58}=_0x10f285;for(let _0x1c4f2b of _0x1f3a6f){let _0xecfcfa=_0x1c4f2b[_0x2b58d9(0x235)],_0x16bfa6=this[_0x2b58d9(0x220)][_0x2b58d9(0x296)](_0xa537e5,_0x4a8bb8,_0xecfcfa);if(!_0x16bfa6)continue;let _0x49c2af=_0x16bfa6[_0x2b58d9(0x1d9)](),_0x434e3c=_0x16bfa6[_0x2b58d9(0x223)](),_0x540d0d=(_0x49c2af==null?void 0x0:_0x49c2af[_0x2b58d9(0x142)])===_0x154192,_0x14db02=_0x24e648({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa}),_0x5c701d=_0x4d3f58['getObjectIncludeInGroup'](_0x14db02);if(!_0x5c701d)continue;let _0x5747cc=this['_drawingManagerService'][_0x2b58d9(0x26a)]({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa});_0x5747cc!=null&&_0x5747cc['transform']&&(_0x49c2af&&_0x434e3c?this['_rerouteConnectorLine'](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x49c2af,_0x434e3c,_0x5c701d):this[_0x2b58d9(0x19e)](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x540d0d?_0x49c2af:_0x434e3c,_0x540d0d,_0x5747cc,_0x5c701d));}}[_0x49d8a2(0x1b3)](_0x3562e7,_0x5ccfa1,_0x31dd74,_0x946870,_0x3aaf39,_0x421489,_0x4fa869){const _0xb5bc49=_0x49d8a2;let _0x3929b9=this['_unitId'],_0xa8b4cf=this[_0xb5bc49(0x227)];this[_0xb5bc49(0x330)]=_0x3562e7,this[_0xb5bc49(0x227)]=_0x5ccfa1;let _0x1eac42=this[_0xb5bc49(0x1b9)](_0x3aaf39),_0x2038b3=this[_0xb5bc49(0x1b9)](_0x421489);if(this[_0xb5bc49(0x330)]=_0x3929b9,this[_0xb5bc49(0x227)]=_0xa8b4cf,!_0x1eac42||!_0x2038b3)return;let _0x3148e8=_0x946870[_0xb5bc49(0x285)](),_0xc85d88=_0x449797(_0x1eac42,_0x2038b3,_0x3148e8);_0xc85d88&&_0x946870[_0xb5bc49(0x333)](_0xc85d88);let _0x3d6fae=_0x59ea91(_0xc85d88,_0x3148e8);_0x3d6fae['lineType']!==_0x3148e8&&_0x946870[_0xb5bc49(0x290)](_0x3d6fae['lineType']),_0x946870[_0xb5bc49(0xea)]();for(let [_0x129fe0,_0x4522ca]of Object[_0xb5bc49(0x13c)](_0x3d6fae[_0xb5bc49(0x114)]))_0x946870[_0xb5bc49(0x1cf)](_0x129fe0,_0x4522ca);_0x946870[_0xb5bc49(0x314)]({'width':_0x3d6fae['worldRect'][_0xb5bc49(0x2b9)],'height':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x232)]}),_0x4fa869[_0xb5bc49(0x112)]({'flipX':_0x3d6fae[_0xb5bc49(0x238)]['flipX'],'flipY':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x132)],'left':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x26f)],'top':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x25d)],'width':_0x3d6fae[_0xb5bc49(0x238)]['width'],'height':_0x3d6fae[_0xb5bc49(0x238)]['height'],'angle':_0x3d6fae['rotation']}),_0x946870[_0xb5bc49(0x249)]();}['_moveConnectorWithShape'](_0x2475af,_0x36a2d7,_0x12457a,_0x30a804,_0x1d62d8,_0x390662,_0x55a887,_0x7c2153){const _0x1ebee6=_0x49d8a2;let _0x3e77a6=this[_0x1ebee6(0x330)],_0x3b3915=this['_subUnitId'];this['_unitId']=_0x2475af,this[_0x1ebee6(0x227)]=_0x36a2d7;let _0x47f534=this[_0x1ebee6(0x1b9)](_0x1d62d8);if(this[_0x1ebee6(0x330)]=_0x3e77a6,this[_0x1ebee6(0x227)]=_0x3b3915,!_0x47f534)return;let {left:_0x5a43d9=0x0,top:_0x1a5bcf=0x0,width:_0x4f73cc=0x0,height:_0x3ffc48=0x0,flipX:_0x449082=!0x1,flipY:_0x62b658=!0x1}=_0x55a887[_0x1ebee6(0x166)],_0x59dbb2=_0x30a804['getConnectorLinePoints']();if(_0x59dbb2[_0x1ebee6(0x289)]<0x2)return;let _0x4eee31=new _0x20c995({'left':_0x5a43d9,'top':_0x1a5bcf,'width':_0x4f73cc,'height':_0x3ffc48,'flipX':_0x449082,'flipY':_0x62b658}),_0x161c88=_0x390662?_0x59dbb2[_0x59dbb2[_0x1ebee6(0x289)]-0x1]:_0x59dbb2[0x0],_0x4bd10b=_0x4eee31['localToWorld'](_0x161c88),_0x1dc217=_0x20c995[_0x1ebee6(0x1e7)](_0x4bd10b,_0x47f534[_0x1ebee6(0x22c)],!_0x390662);_0x7c2153['transformByState']({'flipX':_0x1dc217[_0x1ebee6(0x238)]['flipX'],'flipY':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x132)],'left':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x26f)],'top':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x25d)],'width':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x2b9)],'height':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x232)],'angle':_0x1dc217['worldRect'][_0x1ebee6(0x1fa)]}),_0x7c2153[_0x1ebee6(0x165)](!0x0);}[_0x49d8a2(0x1c1)](){const _0x427b1f=_0x49d8a2;this['_connectorObjects'][_0x427b1f(0x289)]!==0x0&&(this[_0x427b1f(0x272)]['forEach'](_0x1f6438=>{const _0x4afc6f=_0x427b1f;_0x1f6438[_0x4afc6f(0x2b0)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x54edf2=_0x49d8a2;let _0x8bbe79=this[_0x54edf2(0x1b8)][_0x54edf2(0x278)](_0x4c1a31[_0x54edf2(0x261)]);this[_0x54edf2(0x16d)](_0x8bbe79[_0x54edf2(0x26c)](_0x48371d(_0x37368c=>_0x37368c?_0x37368c[_0x54edf2(0x18c)][_0x54edf2(0x26c)](_0x48371d(_0x3bc779=>{const _0xa9db16=_0x54edf2;if(!_0x3bc779)return _0x4e602d;let _0x57f444=_0x37368c['getUnitId'](),_0x2f5acf=this[_0xa9db16(0x107)][_0xa9db16(0x2c4)](_0x57f444),_0x3c350e=_0x2f5acf==null?void 0x0:_0x2f5acf['scene'];return _0x3c350e?_0x5ba9b9(_0x3c350e):_0x4e602d;})):_0x4e602d))[_0x54edf2(0x212)](_0x336a5c=>{const _0x5d8973=_0x54edf2;let _0x8586e5=_0x336a5c[_0x5d8973(0x14b)]();this['disposeWithMe'](_0x336a5c[_0x5d8973(0x301)][_0x5d8973(0x19b)](_0x22f7c5=>{const _0xbe9ac0=_0x5d8973;this[_0xbe9ac0(0x27c)]&&this[_0xbe9ac0(0x288)]&&this[_0xbe9ac0(0x1c1)]();})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x1f2)][_0x5d8973(0x212)](_0x2e2a5d=>{const _0x25094d=_0x5d8973;let {objects:_0x2565bc}=_0x2e2a5d;this[_0x25094d(0x1c1)](),_0x2565bc!==null&&_0x2565bc['size']===0x1&&_0x2565bc[_0x25094d(0x2cc)]()[_0x25094d(0x15a)]()[_0x25094d(0x21c)]instanceof vn&&(this[_0x25094d(0x27c)]=!0x0);})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x2f4)][_0x5d8973(0x212)](_0x57fddb=>{const _0x4e2dc0=_0x5d8973;this[_0x4e2dc0(0x27c)]&&this[_0x4e2dc0(0x1c1)]();})),this[_0x5d8973(0x16d)](_0x336a5c[_0x5d8973(0x1fc)][_0x5d8973(0x19b)](()=>{const _0x3530eb=_0x5d8973;this[_0x3530eb(0x27c)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3530eb(0x211)]());})),this[_0x5d8973(0x16d)](_0x8586e5['changeEnd$']['subscribe'](()=>{const _0x5b6e65=_0x5d8973;this[_0x5b6e65(0x330)]&&this[_0x5b6e65(0x227)]&&this[_0x5b6e65(0x288)]&&this[_0x5b6e65(0x159)]['getDrawingByParam']({'unitId':this[_0x5b6e65(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5b6e65(0x288)]})&&(this[_0x5b6e65(0x1c1)](),this[_0x5b6e65(0x211)]());}));}));}[_0x49d8a2(0x2d1)](){const _0x1b46fd=_0x49d8a2;this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x139)][_0x1b46fd(0x212)](_0x1b842c=>{const _0x107bfd=_0x1b46fd;if(_0x1b842c[_0x107bfd(0x289)]===0x1){let _0xa18e61=_0x1b842c[0x0];if(_0xa18e61[_0x107bfd(0x12e)]===_0x336997[_0x107bfd(0x181)]){let _0x4ba26d=this[_0x107bfd(0x220)][_0x107bfd(0x296)](_0xa18e61[_0x107bfd(0x1b7)],_0xa18e61['subUnitId'],_0xa18e61[_0x107bfd(0x20e)]);if(_0x4ba26d&&_0x5d2a5e(_0x4ba26d['getShapeType']())){this[_0x107bfd(0x288)]=_0xa18e61[_0x107bfd(0x20e)],this['_unitId']=_0xa18e61[_0x107bfd(0x1b7)],this[_0x107bfd(0x227)]=_0xa18e61[_0x107bfd(0x2b4)],this['_clearShapeConnectorHandlerObjects'](),this[_0x107bfd(0x211)]();return;}}}this[_0x107bfd(0x288)]=void 0x0,this[_0x107bfd(0x330)]=void 0x0,this[_0x107bfd(0x227)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x127)][_0x1b46fd(0x212)](_0x8dca6e=>{const _0x3efe75=_0x1b46fd;if(_0x8dca6e['length']===0x1){var _0x514981;let _0x28b06f=_0x8dca6e[0x0],_0x279703=(_0x514981=this[_0x3efe75(0x159)][_0x3efe75(0x26a)](_0x28b06f))==null?void 0x0:_0x514981['drawingType'];_0x279703===_0x336997['DRAWING_SHAPE']&&_0x28b06f['drawingId']===this['_activeShapeId']?(this[_0x3efe75(0x1c1)](),this[_0x3efe75(0x211)]()):!this[_0x3efe75(0x288)]&&_0x279703===_0x336997[_0x3efe75(0x181)]&&this[_0x3efe75(0x294)](_0x28b06f[_0x3efe75(0x1b7)],_0x28b06f['subUnitId'],_0x28b06f[_0x3efe75(0x20e)]);}})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x2dc)]['subscribe'](_0x385460=>{const _0x166a29=_0x1b46fd;for(let _0x392bbe of _0x385460){let {drawingId:_0x25fb77}=_0x392bbe;if(this['_activeShapeId']===_0x25fb77){this[_0x166a29(0x2a6)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5b4f5e,_0x26f6d1,_0x468d8d,_0x424105,_0x14503e){const _0x2dc4d9=_0x49d8a2;var _0x34cce2,_0x2f69a1;if(!this[_0x2dc4d9(0x1db)])return;let _0x278c4a=this[_0x2dc4d9(0x1b9)](_0x5b4f5e);if(!_0x278c4a)return;let _0x2ccc09=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1c4)]:_0x26f6d1,_0x17e52b=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1fa)]:this['_calculateFreeEndpointAngle'](_0x278c4a[_0x2dc4d9(0x22c)],_0x2ccc09),_0x1188cc;if(this['_currentConnectionTarget']){let _0x349883=this[_0x2dc4d9(0x159)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x2dc4d9(0x1b7)],'subUnitId':this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x2b4)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x349883!=null&&_0x349883[_0x2dc4d9(0x166)]){let {left:_0x332214=0x0,top:_0x5a2c04=0x0,width:_0x1d7e2d=0x0,height:_0xd2bdf4=0x0,angle:_0x4eeead}=_0x349883['transform'];_0x1188cc=_0x4d4669({'left':_0x332214,'top':_0x5a2c04,'width':_0x1d7e2d,'height':_0xd2bdf4},_0x4eeead||0x0);}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};let _0x52a8ab={'point':_0x2ccc09,'angle':_0x17e52b,'bounds':_0x1188cc},_0x1d918e=_0x468d8d?_0x52a8ab:_0x278c4a,_0x5e68cb=_0x468d8d?_0x278c4a:_0x52a8ab,_0x367295=this['_activeShapeModel']['getShapeType'](),_0x4ff554=_0x449797(_0x1d918e,_0x5e68cb,_0x367295);_0x4ff554&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x333)](_0x4ff554);let _0x536a5b=_0x59ea91(_0x4ff554,_0x367295);_0x536a5b['lineType']!==_0x367295&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x290)](_0x536a5b[_0x2dc4d9(0x22e)]);for(let [_0x426437,_0x123304]of Object[_0x2dc4d9(0x13c)](_0x536a5b[_0x2dc4d9(0x114)]))this['_activeShapeModel'][_0x2dc4d9(0x1cf)](_0x426437,_0x123304);this['_activeShapeModel'][_0x2dc4d9(0x314)]({'width':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x2b9)],'height':_0x536a5b['worldRect'][_0x2dc4d9(0x232)]}),_0x424105[_0x2dc4d9(0x112)]({'flipX':_0x536a5b['worldRect'][_0x2dc4d9(0x31c)],'flipY':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x132)],'left':_0x536a5b['worldRect'][_0x2dc4d9(0x26f)],'top':_0x536a5b[_0x2dc4d9(0x238)]['top'],'width':_0x536a5b[_0x2dc4d9(0x238)]['width'],'height':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x232)],'angle':_0x536a5b[_0x2dc4d9(0x184)]}),_0x424105['makeDirty'](!0x0);let _0x547ffa=(_0x34cce2=(_0x2f69a1=this[_0x2dc4d9(0xf0)])==null?void 0x0:_0x2f69a1['worldPoint'])==null?_0x26f6d1:_0x34cce2;_0x14503e[_0x2dc4d9(0x112)]({'left':_0x547ffa['x']-_0x2bea1d[_0x2dc4d9(0x1eb)],'top':_0x547ffa['y']-_0x2bea1d['cxnPointRadius']});}[_0x49d8a2(0x21f)](_0x6aff35,_0x8a8f5f,_0x4d86d3,_0x108a14,_0x1c6891){const _0xcb95ac=_0x49d8a2;var _0x332b09,_0x10485f,_0xdd0833,_0x367e69;let _0x313143=(_0x332b09=(_0x10485f=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x10485f['worldPoint'])==null?_0x6aff35:_0x332b09,_0x24311a=_0x20c995[_0xcb95ac(0x1e7)](_0x8a8f5f,_0x313143,_0x4d86d3);_0x108a14['transformByState']({'flipX':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x31c)],'flipY':_0x24311a[_0xcb95ac(0x238)]['flipY'],'left':_0x24311a[_0xcb95ac(0x238)]['left'],'top':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x25d)],'width':_0x24311a['worldRect'][_0xcb95ac(0x2b9)],'height':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x232)],'angle':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x1fa)]});let _0x512170=(_0xdd0833=(_0x367e69=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x367e69[_0xcb95ac(0x1c4)])==null?_0x6aff35:_0xdd0833;_0x1c6891[_0xcb95ac(0x112)]({'left':_0x512170['x']-_0x2bea1d['cxnPointRadius'],'top':_0x512170['y']-_0x2bea1d[_0xcb95ac(0x1eb)]});}[_0x49d8a2(0x1b9)](_0x4474f1){const _0x261b8e=_0x49d8a2;if(!this[_0x261b8e(0x330)]||!this['_subUnitId'])return null;let {shapeId:_0x2908b6,cxnIndex:_0xe075e3}=_0x4474f1,_0x385b19=this[_0x261b8e(0x220)]['getShapeModel'](this[_0x261b8e(0x330)],this[_0x261b8e(0x227)],_0x2908b6);if(!_0x385b19)return null;let _0x1d3b9d=this[_0x261b8e(0x159)][_0x261b8e(0x26a)]({'unitId':this[_0x261b8e(0x330)],'subUnitId':this[_0x261b8e(0x227)],'drawingId':_0x2908b6});if(!(_0x1d3b9d!=null&&_0x1d3b9d['transform']))return null;let {left:_0x559a80=0x0,top:_0x5c8b46=0x0,width:_0x11dea7=0x0,height:_0x35f580=0x0,flipX:_0x3ee292=!0x1,flipY:_0x5c2784=!0x1,angle:_0x344afb}=_0x1d3b9d[_0x261b8e(0x166)];_0x385b19['updateContext']({'width':_0x11dea7,'height':_0x35f580});let _0x3e2efb=_0x385b19[_0x261b8e(0x198)]()[_0x261b8e(0x138)](_0x3c2434=>_0x3c2434[_0x261b8e(0x2d2)]===_0xe075e3);if(!_0x3e2efb)return null;let _0x5b15ab=_0x3ee292?_0x11dea7-_0x3e2efb['x']:_0x3e2efb['x'],_0x337684=_0x5c2784?_0x35f580-_0x3e2efb['y']:_0x3e2efb['y'];if(_0x344afb!==0x0&&_0x344afb!=null){let _0x10d3be=_0x344afb*Math['PI']/0xb4,_0x1a56f4=Math[_0x261b8e(0x17b)](_0x10d3be),_0x343ff5=Math[_0x261b8e(0x2c0)](_0x10d3be),_0x1b659c=_0x11dea7/0x2,_0x2c790f=_0x35f580/0x2,_0x4d72b3=_0x5b15ab-_0x1b659c,_0x48100a=_0x337684-_0x2c790f;_0x5b15ab=_0x1b659c+_0x4d72b3*_0x1a56f4-_0x48100a*_0x343ff5,_0x337684=_0x2c790f+_0x4d72b3*_0x343ff5+_0x48100a*_0x1a56f4;}_0x5b15ab+=_0x559a80,_0x337684+=_0x5c8b46;let _0x4e6e08=_0x3e2efb[_0x261b8e(0x2db)]/0xea60;_0x3ee292&&(_0x4e6e08=0xb4-_0x4e6e08),_0x5c2784&&(_0x4e6e08=-_0x4e6e08),_0x4e6e08+=_0x344afb||0x0,_0x4e6e08=(_0x4e6e08%0x168+0x168)%0x168;let _0x57adb6=_0x4d4669({'left':_0x559a80,'top':_0x5c8b46,'width':_0x11dea7,'height':_0x35f580},_0x344afb||0x0);return{'point':{'x':_0x5b15ab,'y':_0x337684},'angle':_0x4e6e08,'bounds':_0x57adb6};}[_0x49d8a2(0x25c)](_0x84120,_0x4c364e){const _0x4ac14=_0x49d8a2;let _0x10d9af=_0x4c364e['x']-_0x84120['x'],_0xcc06c4=_0x4c364e['y']-_0x84120['y'];return Math[_0x4ac14(0x1ea)](_0x10d9af)>=Math[_0x4ac14(0x1ea)](_0xcc06c4)?_0x10d9af>=0x0?0xb4:0x0:_0xcc06c4>=0x0?0x10e:0x5a;}['_reset'](){const _0x23b993=_0x49d8a2;this[_0x23b993(0x288)]=void 0x0,this['_unitId']=void 0x0,this[_0x23b993(0x227)]=void 0x0,this[_0x23b993(0x1c1)]();}['dispose'](){const _0x34341e=_0x49d8a2;this[_0x34341e(0x1c1)](),super[_0x34341e(0x2b0)]();}};ur=Y([J(0x1,_0x3002c9),J(0x2,_0x2565d9),J(0x3,_0x5a9176),J(0x4,_0x2320a1),J(0x5,_0x3465f0(_0x1a451a)),J(0x6,_0x3465f0(Z)),J(0x7,_0x3465f0(sr))],ur);let dr=class extends _0x1e0fa2{constructor(_0x234c61,_0x57459e,_0x4e71e4){const _0x531236=_0x49d8a2;super(),this[_0x531236(0x15b)]=_0x234c61,this['_drawingManagerService']=_0x57459e,this['_shapeRenderController']=_0x4e71e4,this[_0x531236(0x11a)]();}[_0x49d8a2(0x11a)](){const _0x3ecbb1=_0x49d8a2;this['disposeWithMe'](this[_0x3ecbb1(0x15b)][_0x3ecbb1(0x116)]['intercept'](this[_0x3ecbb1(0x15b)]['interceptor']['getInterceptPoints']()[_0x3ecbb1(0x2a0)],{'handler':(_0xe2b431,_0x303e55,_0xbd23a)=>{const _0x1a1c9a=_0x3ecbb1;var _0xdcd4b4;let {unitId:_0x131d39,subUnitId:_0x40f5e9,scene:_0x5149ef,resourceCollector:_0x219f8a}=_0x303e55,_0x41031c=(_0xdcd4b4=this['_drawingManagerService'][_0x1a1c9a(0x22d)](_0x131d39))==null?void 0x0:_0xdcd4b4[_0x40f5e9];return _0x41031c==null||_0x41031c[_0x1a1c9a(0xf9)][_0x1a1c9a(0x111)](_0xf3030e=>{const _0x5a8563=_0x1a1c9a;let _0x112ae9=_0x41031c[_0x5a8563(0x2f1)][_0xf3030e];_0x112ae9[_0x5a8563(0x12e)]===_0x336997[_0x5a8563(0x181)]&&!_0x112ae9[_0x5a8563(0x15c)]&&this[_0x5a8563(0x267)]['renderDrawingShape'](_0x112ae9,_0x5149ef,{'resourceCollector':_0x219f8a});}),_0xbd23a(_0xe2b431);}}));}};dr=Y([J(0x0,_0x3465f0(_0x4f0169)),J(0x1,_0x5a9176),J(0x2,_0x3465f0(X))],dr);let fr=class extends _0x1e0fa2{constructor(_0x56f396,_0x30409c,_0x377d64){const _0x4cd36f=_0x49d8a2;super(),this[_0x4cd36f(0x2af)]=_0x56f396,this[_0x4cd36f(0x2df)]=_0x30409c,this['_sheetPermissionCheckController']=_0x377d64,this[_0x4cd36f(0x231)]();}[_0x49d8a2(0x231)](){const _0x10c342=_0x49d8a2;this['disposeWithMe'](this[_0x10c342(0x2af)][_0x10c342(0x171)](_0xdc5f95=>{const _0x295723=_0x10c342;let _0x59fe05,_0x43fa45;if(_0xdc5f95['id']===_0x5db24c['id']||_0xdc5f95['id']===_0x357925['id']||_0xdc5f95['id']===_0x1c01fb['id']){let _0x97ca05=_0xdc5f95[_0x295723(0x2ba)];_0x59fe05=_0x97ca05[_0x295723(0x1b7)],_0x43fa45=_0x97ca05[_0x295723(0x2b4)];}!_0x59fe05||!_0x43fa45||this[_0x295723(0x207)][_0x295723(0x17f)]({'workbookTypes':[_0x3216bb],'worksheetTypes':[_0x57e1db]},_0x59fe05,_0x43fa45)||this['_sheetPermissionCheckController'][_0x295723(0x1f1)](this[_0x295723(0x2df)]['t'](_0x295723(0x10e)));}));}};fr=Y([J(0x0,_0x3465f0(_0x3002c9)),J(0x1,_0x3465f0(_0x9a7c24)),J(0x2,_0x3465f0(_0x2cc1a0))],fr);let pr=class extends _0x1e0fa2{constructor(_0x5432ad,_0x2e1647,_0x3637b4,_0x13d889,_0x416c1b,_0x7899bc,_0x242482,_0x131a5e,_0x4ff1da,_0x1e73a0,_0x161bab){const _0x32591b=_0x49d8a2;super(),this[_0x32591b(0x1b8)]=_0x5432ad,this[_0x32591b(0x175)]=_0x2e1647,this['_menuManagerService']=_0x3637b4,this['_sheetsShapeService']=_0x13d889,this['_localeService']=_0x416c1b,this[_0x32591b(0x2af)]=_0x7899bc,this[_0x32591b(0x159)]=_0x242482,this[_0x32591b(0x182)]=_0x131a5e,this[_0x32591b(0x2e9)]=_0x4ff1da,this[_0x32591b(0x107)]=_0x1e73a0,this[_0x32591b(0x185)]=_0x161bab,q(this,'_sidebarDisposable',null),q(this,_0x32591b(0x313),null),q(this,_0x32591b(0x273),!0x1),q(this,_0x32591b(0x203),0x0),q(this,_0x32591b(0xe5),new Set()),q(this,'_disposePopups',[]),this['_initMenu'](),this[_0x32591b(0x16d)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x32591b(0x261)])['subscribe'](_0xfc6a06=>{const _0x28c130=_0x32591b;if(!_0xfc6a06){var _0x530735;(_0x530735=this[_0x28c130(0x257)])==null||_0x530735[_0x28c130(0x2b0)]();return;}this[_0x28c130(0x303)](_0xfc6a06);})),this[_0x32591b(0x280)](),this['_registerShapeMenu'](),this[_0x32591b(0x291)](),this[_0x32591b(0x16d)](this[_0x32591b(0x185)][_0x32591b(0xfa)][_0x32591b(0x212)](_0x2af91a=>{const _0x2e696f=_0x32591b;_0x2af91a&&this[_0x2e696f(0x27d)]();}));}[_0x49d8a2(0x13f)](){this['_menuManagerService']['mergeMenu'](In);}['_registerShapeMenu'](){const _0x561c70=_0x49d8a2;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x336997[_0x561c70(0x181)],this[_0x561c70(0x239)][_0x561c70(0x1ab)](this)),this[_0x561c70(0x182)][_0x561c70(0x1a0)](_0x336997[_0x561c70(0x181)],0x6,0x4);}[_0x49d8a2(0x291)](){const _0x3826a2=_0x49d8a2;this[_0x3826a2(0x1b8)]['getAllUnitsForType'](_0x4c1a31[_0x3826a2(0x261)])['forEach'](_0x3057d4=>this[_0x3826a2(0x303)](_0x3057d4));}[_0x49d8a2(0x239)](_0x111a23,_0x387600,_0x4f8651,_0x3962c1){const _0x33ce89=_0x49d8a2;return[{'label':_0x33ce89(0x1f6),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':_0x3962c1===_0x336997[_0x33ce89(0x173)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x5f4db7['id'],'commandParams':{'unitId':_0x111a23,'drawings':[{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651,'drawingType':_0x3962c1}]},'disable':!0x1},{'label':_0x33ce89(0xfc),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':!0x1},{'label':_0x33ce89(0x332),'index':0x3,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipV':!0x0},'disable':!0x1},{'label':_0x33ce89(0x2ef),'index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':-0x5a},'disable':!0x1},{'label':_0x33ce89(0x1e1),'index':0x4,'commandId':_0x3209a5['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651},'disable':!0x1}];}[_0x49d8a2(0xf1)](_0x5f5098,_0x56177f,_0x320df2){const _0x21abf4=_0x49d8a2;let _0x222d3f=this[_0x21abf4(0x220)][_0x21abf4(0xeb)](_0x5f5098,_0x56177f,_0x320df2),_0x435bae=this['_sheetsShapeService'][_0x21abf4(0x264)](_0x5f5098,_0x56177f,_0x320df2);return _0x222d3f!==void 0x0&&_0x435bae!==void 0x0?{'shapeData':_0x435bae,'shapeId':_0x320df2,'shapeType':_0x222d3f,'unitId':_0x5f5098,'subUnitId':_0x56177f,'version':this[_0x21abf4(0x203)],'disableShapeOption':!0x1}:null;}[_0x49d8a2(0x303)](_0x542536){const _0x66e18c=_0x49d8a2;if(!_0x542536)return;let _0x257f19=_0x542536[_0x66e18c(0x229)]();this[_0x66e18c(0x107)][_0x66e18c(0x215)](_0x257f19)&&!this[_0x66e18c(0xe5)][_0x66e18c(0x215)](_0x257f19)&&(this[_0x66e18c(0x326)](_0x257f19),this[_0x66e18c(0xe5)][_0x66e18c(0x120)](_0x257f19));}['_clearPopups'](){const _0x514ff9=_0x49d8a2;this[_0x514ff9(0x286)][_0x514ff9(0x111)](_0x5e1f38=>_0x5e1f38['dispose']()),this['_disposePopups'][_0x514ff9(0x289)]=0x0;}[_0x49d8a2(0x326)](_0x1a335b){const _0x493db5=_0x49d8a2;var _0x1830a0;let _0x135bee=(_0x1830a0=this[_0x493db5(0x107)][_0x493db5(0x2c4)](_0x1a335b))==null?void 0x0:_0x1830a0[_0x493db5(0x228)],_0x58e87e=_0x135bee==null?void 0x0:_0x135bee[_0x493db5(0x14b)]();!_0x135bee||!_0x58e87e||(this[_0x493db5(0x16d)](_0x58e87e['createControl$'][_0x493db5(0x212)](()=>{const _0x465f5b=_0x493db5;let _0x246d53=_0x58e87e[_0x465f5b(0x149)]();if(this[_0x465f5b(0x27d)](),this['_isOpenedShapeEditPanel']||_0x246d53[_0x465f5b(0x105)]>0x1)return;let _0xa9cbf4=_0x246d53['values']()[_0x465f5b(0x15a)]()[_0x465f5b(0x21c)];if(!_0xa9cbf4)return;let _0x282dd0=this[_0x465f5b(0x159)][_0x465f5b(0x18b)](_0xa9cbf4[_0x465f5b(0x163)]);if(!_0x282dd0||_0x282dd0[_0x465f5b(0x12e)]!==_0x336997[_0x465f5b(0x181)])return;let {unitId:_0x23498d,subUnitId:_0x582e8d,drawingId:_0x1d11a4,drawingType:_0x557e8f}=_0x282dd0,_0x5881b9=this['_getShapeInfo'](_0x23498d,_0x582e8d,_0x1d11a4);if(!_0x5881b9)return;this[_0x465f5b(0x2e9)][_0x465f5b(0x14f)](_0x26ab00,!0x0);let _0x159c90=this[_0x465f5b(0x182)][_0x465f5b(0x259)](_0xa9cbf4,{'componentKey':wn,'direction':_0x465f5b(0x2ec),'offset':[0x0,_0x229ba4],'extraProps':{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4,'drawingType':_0x557e8f,'shapeType':_0x5881b9[_0x465f5b(0x2b2)],'shapeData':_0x5881b9[_0x465f5b(0x1c5)]}});this['_disposePopups'][_0x465f5b(0x214)](this[_0x465f5b(0x16d)](_0x159c90)),this[_0x465f5b(0x159)][_0x465f5b(0x32c)]()[_0x465f5b(0x138)](_0x3909af=>_0x3909af['unitId']===_0x23498d&&_0x3909af[_0x465f5b(0x2b4)]===_0x582e8d&&_0x3909af[_0x465f5b(0x20e)]===_0x1d11a4)||this[_0x465f5b(0x159)]['focusDrawing']([{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4}]);})),this[_0x493db5(0x16d)](_0x58e87e['clearControl$'][_0x493db5(0x212)](()=>{const _0x1bcf37=_0x493db5;this['_clearPopups'](),this['_contextService'][_0x1bcf37(0x14f)](_0x26ab00,!0x1),this[_0x1bcf37(0x159)][_0x1bcf37(0x2c8)](null);})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x2f4)][_0x493db5(0x212)](()=>{this['_clearPopups']();})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x1f2)][_0x493db5(0x212)](()=>{const _0x4f1cff=_0x493db5;this[_0x4f1cff(0x27d)]();})));}['_registerOperations'](){const _0x3bd3b2=_0x49d8a2;this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x2af)][_0x3bd3b2(0x242)](_0x77c92=>{const _0x3bd0f4=_0x3bd3b2;if(_0x77c92['id']===Bn['id']){let {unitId:_0x330868,subUnitId:_0x2898ee,drawingId:_0x34aa8f}=_0x77c92['params'];this[_0x3bd0f4(0x203)]+=0x1,this[_0x3bd0f4(0x313)]=this['_getShapeInfo'](_0x330868,_0x2898ee,_0x34aa8f),this['_clearPopups'](),this[_0x3bd0f4(0x315)]();}if(_0x77c92['id']===zn['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x77c92['id']===_0x22295a['id']){let {unitId:_0x5b5137,subUnitId:_0x615b87,shapeId:_0x347c0f}=_0x77c92[_0x3bd0f4(0x2ba)];if(this[_0x3bd0f4(0x313)]&&this[_0x3bd0f4(0x313)][_0x3bd0f4(0x142)]===_0x347c0f){let _0x33a72b=this[_0x3bd0f4(0xf1)](_0x5b5137,_0x615b87,_0x347c0f);_0x33a72b&&(this[_0x3bd0f4(0x203)]+=0x1,_0x33a72b[_0x3bd0f4(0x1e2)]=this[_0x3bd0f4(0x203)],this[_0x3bd0f4(0x313)]=_0x33a72b,this[_0x3bd0f4(0x273)]&&this[_0x3bd0f4(0x315)]());}}})),this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x159)]['focus$'][_0x3bd3b2(0x212)](_0x14ff20=>{const _0x4cee72=_0x3bd3b2;if(this[_0x4cee72(0x273)]===!0x1)return;if(_0x14ff20[_0x4cee72(0x289)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x14ff20[_0x4cee72(0x289)]===0x1&&_0x14ff20[0x0][_0x4cee72(0x12e)]===_0x336997[_0x4cee72(0x181)]&&(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)])){this[_0x4cee72(0x315)]();return;}let _0x5df85c=_0x14ff20['filter'](_0x18ac1d=>_0x18ac1d[_0x4cee72(0x12e)]===_0x336997['DRAWING_SHAPE']);if(_0x14ff20[_0x4cee72(0x289)]>0x1&&_0x5df85c[_0x4cee72(0x289)]===_0x14ff20[_0x4cee72(0x289)]){if(this[_0x4cee72(0x203)]+=0x1,this[_0x4cee72(0x313)]=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0]['drawingId']),this[_0x4cee72(0x313)]){this[_0x4cee72(0x315)]();return;}}else{if(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0]['unitId'],_0x14ff20[0x0]['subUnitId'],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)]){this[_0x4cee72(0x313)]['disableShapeOption']=!0x0,this[_0x4cee72(0x315)]();return;}}this[_0x4cee72(0x33a)]();}));}[_0x49d8a2(0x315)](){const _0x2ce5f9=_0x49d8a2;this[_0x2ce5f9(0x313)]&&(this[_0x2ce5f9(0x257)]=this[_0x2ce5f9(0x175)][_0x2ce5f9(0x277)]({'id':Sn,'header':{'title':this[_0x2ce5f9(0x2df)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Sn,...this[_0x2ce5f9(0x313)]},'onClose':()=>{const _0x7ba8b1=_0x2ce5f9;this[_0x7ba8b1(0x159)][_0x7ba8b1(0x2c8)](null),this['_contextService'][_0x7ba8b1(0x14f)](_0x26ab00,!0x1),this[_0x7ba8b1(0x257)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xd16ec=_0x49d8a2;this[_0xd16ec(0x273)]=!0x1,this[_0xd16ec(0x175)][_0xd16ec(0x113)](Sn),this['_sidebarDisposable']=null,this['_contextService'][_0xd16ec(0x14f)](_0x26ab00,!0x1),this[_0xd16ec(0x159)][_0xd16ec(0x2c8)](null);}};pr=Y([J(0x0,_0x2320a1),J(0x1,_0x3465f0(_0xf1c3ee)),J(0x2,_0x25cc13),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x9a7c24)),J(0x5,_0x3002c9),J(0x6,_0x5a9176),J(0x7,_0x3465f0(_0x57df42)),J(0x8,_0x2d429f),J(0x9,_0x2565d9),J(0xa,_0x3465f0(Zn))],pr);let $=class extends _0x257c5b{constructor(_0x50c0ea=Vn,_0x42d6fe,_0x4ceb7b,_0x562450,_0x1b7580){const _0xf6f511=_0x49d8a2;super(),this[_0xf6f511(0x18f)]=_0x50c0ea,this[_0xf6f511(0x26b)]=_0x42d6fe,this[_0xf6f511(0x2af)]=_0x4ceb7b,this[_0xf6f511(0x23b)]=_0x562450,this[_0xf6f511(0x107)]=_0x1b7580;let {..._0xce0423}=_0x1c7285({},Vn,this[_0xf6f511(0x18f)]);this[_0xf6f511(0x23b)]['setConfig'](_0xf6f511(0x218),_0xce0423),this[_0xf6f511(0x23e)]();}[_0x49d8a2(0x328)](){_0x14b49a(this['_injector'],[[pr],[ir],[X],[dr]]);}['onSteady'](){const _0x481086=_0x49d8a2;this[_0x481086(0x26b)]['get'](pr)[_0x481086(0x291)]();}[_0x49d8a2(0x320)](){const _0x4ca7bc=_0x49d8a2;[[sr],[Z],[cr]][_0x4ca7bc(0x111)](_0x49a005=>this[_0x4ca7bc(0x26b)][_0x4ca7bc(0x120)](_0x49a005)),_0x14b49a(this[_0x4ca7bc(0x26b)],[[cr],[Z]]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[sr]),this[_0x4ca7bc(0x107)]['registerRenderModule'](_0x4c1a31['UNIVER_SHEET'],[er]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31['UNIVER_SHEET'],[ur]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[nr]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x2ae)],[rr]);}['onStarting'](){const _0x22f8a0=_0x49d8a2;this['_injector'][_0x22f8a0(0x120)]([$n]),this[_0x22f8a0(0x26b)][_0x22f8a0(0x1bc)]($n);let _0x527ee2=this[_0x22f8a0(0x26b)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]]['forEach'](_0x2fa7d0=>_0x527ee2['add'](_0x2fa7d0)),_0x14b49a(this[_0x22f8a0(0x26b)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x49d8a2(0x23e)](){const _0x280c79=_0x49d8a2;[xn,dn,zn,Bn,Dn,bn][_0x280c79(0x111)](_0x443269=>this['disposeWithMe'](this[_0x280c79(0x2af)][_0x280c79(0x147)](_0x443269)));}};q($,_0x49d8a2(0x1ff),_0x4c1a31['UNIVER_SHEET']),q($,'pluginName',_0x49d8a2(0x2c9)),q($,_0x49d8a2(0x208),Ln),q($,_0x49d8a2(0x1e2),Rn),$=Y([_0x15410a(_0x2da0f1,_0x464a71,_0x1c2191,_0x551142),J(0x1,_0x3465f0(_0xab16b2)),J(0x2,_0x3002c9),J(0x3,_0xb443b),J(0x4,_0x2565d9)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|