@univerjs-pro/sheets-shape-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/README.md +5 -3
- 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.css +21 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/command-util.d.ts +0 -11
- package/lib/types/commands/operations/open-object-list-panel.operation.d.ts +5 -0
- package/lib/types/const.d.ts +3 -1
- package/lib/types/controllers/components.controller.d.ts +4 -2
- package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +1 -2
- package/lib/types/controllers/shape-update.controller.d.ts +1 -0
- package/lib/types/controllers/sheet-shape-adjust.controller.d.ts +3 -6
- package/lib/types/controllers/sheet-shape-printing.controller.d.ts +12 -0
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +9 -3
- package/lib/types/index.d.ts +1 -7
- package/lib/types/locale/en-US.d.ts +18 -33
- package/lib/types/menu/object-list.menu.d.ts +4 -0
- package/lib/types/services/shape-text-editing.service.d.ts +8 -0
- package/lib/types/utils/shape-text-document.d.ts +1 -11
- package/lib/types/view-model/drawing-shape.d.ts +6 -2
- package/lib/types/views/ShapePicker.d.ts +2 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/shape-editor-panel/ShapeFillEditor.d.ts +1 -2
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -19
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
- package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
- package/lib/types/view-model/shape-data-model.d.ts +0 -6
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- /package/lib/types/commands/operations/{actvie-drawing-operation.d.ts → active-drawing-operation.d.ts} +0 -0
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3edb(_0x18f917,_0xffab5a){_0x18f917=_0x18f917-0x1e7;const _0x431417=_0x4314();let _0x3edbbf=_0x431417[_0x18f917];return _0x3edbbf;}(function(_0x2ba031,_0x54ba7f){const _0x580939=_0x3edb,_0x39e291=_0x2ba031();while(!![]){try{const _0x58107e=parseInt(_0x580939(0x229))/0x1*(parseInt(_0x580939(0x3c6))/0x2)+-parseInt(_0x580939(0x44a))/0x3+-parseInt(_0x580939(0x291))/0x4+-parseInt(_0x580939(0x413))/0x5+-parseInt(_0x580939(0x2db))/0x6*(-parseInt(_0x580939(0x3eb))/0x7)+parseInt(_0x580939(0x362))/0x8*(parseInt(_0x580939(0x2b0))/0x9)+parseInt(_0x580939(0x3ce))/0xa;if(_0x58107e===_0x54ba7f)break;else _0x39e291['push'](_0x39e291['shift']());}catch(_0x394ad1){_0x39e291['push'](_0x39e291['shift']());}}}(_0x4314,0xde222),function(_0x254f47,_0xde4647){const _0x4ec3ef=_0x3edb;typeof exports==_0x4ec3ef(0x2d3)&&typeof module<'u'?_0xde4647(exports,require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('rxjs'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/docs-ui'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs/drawing-ui'),require('@univerjs/docs'),require('@univerjs-pro/shape-editor-ui'),require('react/jsx-runtime'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0x4ec3ef(0x244)&&define[_0x4ec3ef(0x37f)]?define([_0x4ec3ef(0x495),_0x4ec3ef(0x2f7),_0x4ec3ef(0x269),'@univerjs/sheets',_0x4ec3ef(0x243),_0x4ec3ef(0x1f1),_0x4ec3ef(0x41a),_0x4ec3ef(0x2ad),_0x4ec3ef(0x379),_0x4ec3ef(0x227),_0x4ec3ef(0x27e),_0x4ec3ef(0x4cb),_0x4ec3ef(0x25b),_0x4ec3ef(0x328),_0x4ec3ef(0x445),'react/jsx-runtime','@univerjs/sheets-drawing-ui',_0x4ec3ef(0x2d0)],_0xde4647):(_0x254f47=typeof globalThis<'u'?globalThis:_0x254f47||self,_0xde4647(_0x254f47[_0x4ec3ef(0x385)]={},_0x254f47[_0x4ec3ef(0x497)],_0x254f47[_0x4ec3ef(0x26e)],_0x254f47[_0x4ec3ef(0x2fd)],_0x254f47[_0x4ec3ef(0x2c3)],_0x254f47['rxjs'],_0x254f47[_0x4ec3ef(0x2cd)],_0x254f47[_0x4ec3ef(0x34e)],_0x254f47[_0x4ec3ef(0x3d2)],_0x254f47[_0x4ec3ef(0x477)],_0x254f47[_0x4ec3ef(0x2a6)],_0x254f47[_0x4ec3ef(0x1f8)],_0x254f47['UniverDrawingUi'],_0x254f47[_0x4ec3ef(0x3d4)],_0x254f47[_0x4ec3ef(0x49e)],_0x254f47[_0x4ec3ef(0x476)],_0x254f47[_0x4ec3ef(0x287)],_0x254f47[_0x4ec3ef(0x476)]));}(this,function(_0x156817,_0x50ebc5,_0x4292c2,_0x4eb9c3,_0x322890,_0x1d5c96,_0x2a6651,_0x5446b3,_0x113d0c,_0x4f2ee7,_0x4bdb1b,_0x1f20eb,_0x4adf10,_0x3c962b,_0xd47359,_0x2e5d70,_0x20dd8d,_0x93f45f){const _0x38c45a=_0x3edb;Object[_0x38c45a(0x40b)](_0x156817,Symbol[_0x38c45a(0x3a0)],{'value':_0x38c45a(0x475)});function _0x408038(_0x1ea6f7){'@babel/helpers - typeof';const _0x63083e=_0x38c45a;return _0x408038=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x63083e(0x224)?function(_0x48c3b5){return typeof _0x48c3b5;}:function(_0x3f28d7){const _0x15800c=_0x63083e;return _0x3f28d7&&typeof Symbol==_0x15800c(0x244)&&_0x3f28d7[_0x15800c(0x2fe)]===Symbol&&_0x3f28d7!==Symbol[_0x15800c(0x32e)]?_0x15800c(0x224):typeof _0x3f28d7;},_0x408038(_0x1ea6f7);}function _0x588cf2(_0x57c277,_0x3a861d){const _0x75fca9=_0x38c45a;if(_0x408038(_0x57c277)!=_0x75fca9(0x2d3)||!_0x57c277)return _0x57c277;var _0x1f29c7=_0x57c277[Symbol[_0x75fca9(0x440)]];if(_0x1f29c7!==void 0x0){var _0x39c28e=_0x1f29c7[_0x75fca9(0x4a4)](_0x57c277,_0x3a861d||'default');if(_0x408038(_0x39c28e)!='object')return _0x39c28e;throw TypeError(_0x75fca9(0x404));}return(_0x3a861d===_0x75fca9(0x391)?String:Number)(_0x57c277);}function _0xb0b28d(_0x5d4761){const _0x25d340=_0x38c45a;var _0x379a04=_0x588cf2(_0x5d4761,_0x25d340(0x391));return _0x408038(_0x379a04)==_0x25d340(0x224)?_0x379a04:_0x379a04+'';}function _0x1d4f9f(_0x50b918,_0x31842f,_0x76a4f4){const _0x63df6f=_0x38c45a;return(_0x31842f=_0xb0b28d(_0x31842f))in _0x50b918?Object[_0x63df6f(0x40b)](_0x50b918,_0x31842f,{'value':_0x76a4f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x50b918[_0x31842f]=_0x76a4f4,_0x50b918;}var _0x512648=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(..._0x327ace){const _0x4eb209=_0x38c45a;super(..._0x327ace),_0x1d4f9f(this,_0x4eb209(0x3d1),new _0x1d5c96[(_0x4eb209(0x357))](null)),_0x1d4f9f(this,_0x4eb209(0x2f8),this['_editingParams$'][_0x4eb209(0x3cb)]()),_0x1d4f9f(this,_0x4eb209(0x36e),new _0x1d5c96[(_0x4eb209(0x357))](!0x1)),_0x1d4f9f(this,'onSavingEditorData$',this[_0x4eb209(0x36e)][_0x4eb209(0x3cb)]());}['dispose'](){const _0x59804c=_0x38c45a;this[_0x59804c(0x3d1)][_0x59804c(0x29f)](null),this['_editingParams$'][_0x59804c(0x448)](),this[_0x59804c(0x36e)]['next'](!0x1),this[_0x59804c(0x36e)][_0x59804c(0x448)](),super['dispose']();}[_0x38c45a(0x44e)](_0x2e4169){const _0x238fd1=_0x38c45a;this[_0x238fd1(0x3d1)][_0x238fd1(0x29f)](_0x2e4169),_0x2e4169==null&&this[_0x238fd1(0x36e)][_0x238fd1(0x29f)](!0x1);}['setOnSavingEditorData'](_0x5623c0){this['_onSavingEditorData$']['next'](_0x5623c0);}[_0x38c45a(0x1ee)](){const _0x22992a=_0x38c45a;return this[_0x22992a(0x3d1)]['getValue']();}};function _0x29bc45(_0x3d380a,_0x342ad4){const _0x548368=_0x38c45a;let _0x953936={};for(let _0x35edae of Object[_0x548368(0x214)](_0x342ad4)){let _0x5c1abc=_0x342ad4[_0x35edae],_0x3e6c22=_0x3d380a[_0x35edae];if(_0x5c1abc!==void 0x0){if(_0x3e6c22===void 0x0){_0x953936[_0x35edae]=void 0x0;continue;}typeof _0x5c1abc==_0x548368(0x2d3)&&_0x5c1abc&&!Array[_0x548368(0x216)](_0x5c1abc)&&typeof _0x3e6c22==_0x548368(0x2d3)&&_0x3e6c22&&!Array['isArray'](_0x3e6c22)?_0x953936[_0x35edae]=_0x29bc45(_0x3e6c22,_0x5c1abc):_0x953936[_0x35edae]=_0x3e6c22;}}return _0x953936;}let _0x3e9f73={'type':_0x4292c2['CommandType'][_0x38c45a(0x378)],'id':_0x38c45a(0x28b),'handler':(_0x10801d,_0x1e2f6a)=>{const _0xdcce20=_0x38c45a;let _0x1c3a84=_0x10801d['get'](_0x50ebc5[_0xdcce20(0x1f3)]),{unitId:_0x3a7285,subUnitId:_0x547613,shapeType:_0x3a80a8,shapeId:_0x156b40,shapeData:_0x1752e7,oldShapeJSON:_0x1f53e9}=_0x1e2f6a;if(!_0x1c3a84[_0xdcce20(0x351)](_0x3a7285,_0x547613,_0x156b40))return!0x1;let _0x5e7d3=_0x10801d[_0xdcce20(0x3d3)](_0x4292c2[_0xdcce20(0x3de)]),_0x28fd32=_0x10801d[_0xdcce20(0x3d3)](_0x4292c2['IUndoRedoService']),{oldShapeType:_0x4f460e,oldShapeData:_0x1dceb9={}}=_0x1f53e9,_0x422924=_0x29bc45(_0x1dceb9,_0x1752e7||{}),_0x42206b={'id':_0x50ebc5[_0xdcce20(0x35e)]['id'],'params':{'unitId':_0x3a7285,'subUnitId':_0x547613,'shapeId':_0x156b40,'shapeType':_0x3a80a8,'shapeData':_0x1752e7}},_0x15d84f={'id':_0x50ebc5['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x3a7285,'subUnitId':_0x547613,'shapeId':_0x156b40,'shapeType':_0x4f460e,'shapeData':_0x422924}};return _0x5e7d3[_0xdcce20(0x2d7)](_0x42206b['id'],_0x42206b['params'])?(_0x28fd32['pushUndoRedo']({'unitID':_0x3a7285,'undoMutations':[_0x15d84f],'redoMutations':[_0x42206b]}),!0x0):!0x1;}},_0x51f215={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':_0x38c45a(0x2f3),'handler':async(_0x2b8a7f,_0x30c0fa)=>{const _0x423073=_0x38c45a;var _0x1085c9;if(!(0x0,_0x4eb9c3['getSheetCommandTarget'])(_0x2b8a7f['get'](_0x4292c2['IUniverInstanceService'])))return!0x1;let _0xd3909e=_0x2b8a7f['get'](_0x322890['ISheetDrawingService'])[_0x423073(0x365)]()[_0x423073(0x3d5)](_0xecb497=>_0xecb497[_0x423073(0x372)]===_0x4292c2['DrawingTypeEnum'][_0x423073(0x252)]);if(_0xd3909e[_0x423073(0x492)]!==0x1)return!0x1;let _0x565e58=_0x2b8a7f[_0x423073(0x3d3)](_0x512648)[_0x423073(0x1ee)](),_0x3ca183=(_0x565e58==null?void 0x0:_0x565e58[_0x423073(0x3fb)])||_0xd3909e[0x0]['unitId'],_0x183409=(_0x565e58==null?void 0x0:_0x565e58[_0x423073(0x2cb)])||_0xd3909e[0x0][_0x423073(0x2cb)],_0x52116c=(_0x565e58==null?void 0x0:_0x565e58[_0x423073(0x201)])||_0xd3909e[0x0][_0x423073(0x30a)],_0x4313f7=_0x2b8a7f[_0x423073(0x3d3)](_0x50ebc5[_0x423073(0x1f3)])[_0x423073(0x351)](_0x3ca183,_0x183409,_0x52116c);if(!_0x4313f7)return!0x1;let _0x1e2697=_0x4313f7[_0x423073(0x3a2)]();if(!_0x1e2697||!(_0x423073(0x3ca)in _0x1e2697))return!0x1;let _0xbb6048=_0x2b8a7f['get'](_0x4292c2[_0x423073(0x3de)]),{value:_0xb1bfc7}=_0x30c0fa,_0x4f4ac9=_0x4313f7['getShapeType'](),_0x58ff75=_0x4313f7[_0x423073(0x473)](),_0x10205f={..._0x1e2697[_0x423073(0x3ca)],'ha':_0xb1bfc7};return await _0xbb6048['executeCommand'](_0x3e9f73['id'],{'unitId':_0x3ca183,'subUnitId':_0x183409,'shapeId':_0x52116c,'shapeType':_0x4f4ac9,'shapeData':{'shapeText':{'isHorizontal':(_0x1085c9=_0x1e2697[_0x423073(0x45c)])==null?!0x0:_0x1085c9,'dataModel':_0x10205f}},'oldShapeJSON':{'oldShapeType':_0x4f4ac9,'oldShapeData':_0x58ff75}});}},_0x51350f={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':_0x38c45a(0x2c2),'handler':async(_0x214f4d,_0x55be57)=>{const _0x3ddffc=_0x38c45a;var _0x5afda9;if(!_0x55be57)return!0x1;let {value:_0x18f756}=_0x55be57,_0xd14090=_0x214f4d[_0x3ddffc(0x3d3)](_0x4292c2[_0x3ddffc(0x3de)]),_0x2c6bed=_0x214f4d[_0x3ddffc(0x3d3)](_0x512648),_0x4567d3=_0x214f4d[_0x3ddffc(0x3d3)](_0x50ebc5[_0x3ddffc(0x1f3)]),_0x479d93=_0x214f4d[_0x3ddffc(0x3d3)](_0x5446b3[_0x3ddffc(0x2dd)]),_0x368237=_0x2c6bed[_0x3ddffc(0x1ee)]();if(!_0x368237)return!0x1;let {unitId:_0x28ca24,subUnitId:_0xdc4a5e,shapeId:_0x3bfe38}=_0x368237,_0x1eb2db=_0x4567d3[_0x3ddffc(0x351)](_0x28ca24,_0xdc4a5e,_0x3bfe38);if(!_0x1eb2db)return!0x1;let _0x28c8ef=_0x1eb2db[_0x3ddffc(0x3a2)]();if(!_0x28c8ef||!('dataModel'in _0x28c8ef))return!0x1;let _0x2bd10c=_0x28c8ef[_0x3ddffc(0x3ca)];if(!_0x2bd10c)return!0x1;let _0x1d4783={..._0x2bd10c,'fs':_0x18f756},_0xfcb52d=await _0xd14090['executeCommand'](_0x3e9f73['id'],{'unitId':_0x28ca24,'subUnitId':_0xdc4a5e,'shapeId':_0x3bfe38,'shapeData':{'shapeText':{'isHorizontal':(_0x5afda9=_0x28c8ef[_0x3ddffc(0x45c)])==null?!0x0:_0x5afda9,'dataModel':_0x1d4783}}});if(_0xfcb52d){let _0x54df3c=_0x479d93[_0x3ddffc(0x407)](_0x28ca24);if(_0x54df3c!=null&&_0x54df3c[_0x3ddffc(0x30b)]){let _0x92d1e1=(0x0,_0x2a6651[_0x3ddffc(0x215)])({'unitId':_0x28ca24,'subUnitId':_0xdc4a5e,'drawingId':_0x3bfe38}),_0x8019a0=_0x54df3c[_0x3ddffc(0x30b)][_0x3ddffc(0x323)](_0x92d1e1);_0x8019a0&&_0x8019a0[_0x3ddffc(0x4c8)](!0x0);}}return _0xfcb52d;}},_0x20fc35={'type':_0x4292c2[_0x38c45a(0x49c)]['COMMAND'],'id':_0x38c45a(0x241),'handler':async _0x575e92=>{const _0x27ba99=_0x38c45a;var _0x1fa22c;let _0x4d3999=_0x575e92[_0x27ba99(0x3d3)](_0x512648),_0xdff3d9=_0x575e92[_0x27ba99(0x3d3)](_0x50ebc5[_0x27ba99(0x1f3)]),_0x3ba31e=_0x575e92[_0x27ba99(0x3d3)](_0x4292c2[_0x27ba99(0x3de)]),_0x44af16=_0x4d3999[_0x27ba99(0x1ee)]();if(!_0x44af16)return!0x1;let {unitId:_0x4e7b8e,subUnitId:_0x459e11,shapeId:_0x4b346e}=_0x44af16,_0x2e62b0=_0xdff3d9[_0x27ba99(0x351)](_0x4e7b8e,_0x459e11,_0x4b346e);if(!_0x2e62b0)return!0x1;let _0x563da0=_0x2e62b0[_0x27ba99(0x3a2)]();if(!_0x563da0||!(_0x27ba99(0x3ca)in _0x563da0))return!0x1;let _0x514cf2=_0x563da0[_0x27ba99(0x3ca)],_0x348def=(_0x1fa22c=_0x514cf2==null?void 0x0:_0x514cf2['fs'])==null?0xe:_0x1fa22c,_0x5abecc=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x2b72cd=_0x348def,_0x324e19=_0x5abecc['indexOf'](_0x348def);return _0x324e19!==-0x1&&_0x324e19<_0x5abecc[_0x27ba99(0x492)]-0x1?_0x2b72cd=_0x5abecc[_0x324e19+0x1]:_0x324e19===-0x1&&(_0x2b72cd=Math['floor'](_0x348def)+0x1),_0x3ba31e[_0x27ba99(0x204)](_0x51350f['id'],{'value':_0x2b72cd});}},_0x2cfc00={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':_0x38c45a(0x397),'handler':async _0x14db43=>{const _0x54ae9d=_0x38c45a;var _0xd6f17b;let _0x45f8a6=_0x14db43[_0x54ae9d(0x3d3)](_0x512648),_0x5de589=_0x14db43[_0x54ae9d(0x3d3)](_0x50ebc5[_0x54ae9d(0x1f3)]),_0x323b30=_0x14db43[_0x54ae9d(0x3d3)](_0x4292c2['ICommandService']),_0x4951dc=_0x45f8a6['getEditing']();if(!_0x4951dc)return!0x1;let {unitId:_0x3049f2,subUnitId:_0xd9817,shapeId:_0x367641}=_0x4951dc,_0x573300=_0x5de589[_0x54ae9d(0x351)](_0x3049f2,_0xd9817,_0x367641);if(!_0x573300)return!0x1;let _0x533142=_0x573300[_0x54ae9d(0x3a2)]();if(!_0x533142||!('dataModel'in _0x533142))return!0x1;let _0x50ccb2=_0x533142[_0x54ae9d(0x3ca)],_0x13ab40=(_0xd6f17b=_0x50ccb2==null?void 0x0:_0x50ccb2['fs'])==null?0xe:_0xd6f17b,_0x5254bd=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x3e23dc=_0x13ab40,_0x85c3c2=_0x5254bd[_0x54ae9d(0x293)](_0x13ab40);return _0x85c3c2!==-0x1&&_0x85c3c2>0x0?_0x3e23dc=_0x5254bd[_0x85c3c2-0x1]:_0x85c3c2===-0x1&&(_0x3e23dc=Math[_0x54ae9d(0x3fc)](_0x13ab40)-0x1),_0x3e23dc<0x1&&(_0x3e23dc=0x1),_0x323b30[_0x54ae9d(0x204)](_0x51350f['id'],{'value':_0x3e23dc});}},_0x4301de={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':_0x38c45a(0x38e),'handler':async(_0x186acc,_0x308938)=>{const _0x5ed1b1=_0x38c45a;var _0x31e2fe;if(!(0x0,_0x4eb9c3['getSheetCommandTarget'])(_0x186acc[_0x5ed1b1(0x3d3)](_0x4292c2[_0x5ed1b1(0x403)])))return!0x1;let _0xcf6e67=_0x186acc[_0x5ed1b1(0x3d3)](_0x322890[_0x5ed1b1(0x2ff)])[_0x5ed1b1(0x365)]()['filter'](_0x3f9b3b=>_0x3f9b3b[_0x5ed1b1(0x372)]===_0x4292c2[_0x5ed1b1(0x47d)][_0x5ed1b1(0x252)]);if(_0xcf6e67['length']!==0x1)return!0x1;let _0x59ac8c=_0x186acc[_0x5ed1b1(0x3d3)](_0x512648)[_0x5ed1b1(0x1ee)](),_0x6f5824=(_0x59ac8c==null?void 0x0:_0x59ac8c[_0x5ed1b1(0x3fb)])||_0xcf6e67[0x0]['unitId'],_0x1e58e6=(_0x59ac8c==null?void 0x0:_0x59ac8c[_0x5ed1b1(0x2cb)])||_0xcf6e67[0x0][_0x5ed1b1(0x2cb)],_0x33e333=(_0x59ac8c==null?void 0x0:_0x59ac8c['shapeId'])||_0xcf6e67[0x0]['drawingId'],_0x4a566f=_0x186acc[_0x5ed1b1(0x3d3)](_0x50ebc5[_0x5ed1b1(0x1f3)])[_0x5ed1b1(0x351)](_0x6f5824,_0x1e58e6,_0x33e333);if(!_0x4a566f)return!0x1;let _0x44840d=_0x4a566f['getShapeTextData']();if(!_0x44840d||!(_0x5ed1b1(0x3ca)in _0x44840d))return!0x1;let _0x194022=_0x186acc[_0x5ed1b1(0x3d3)](_0x4292c2[_0x5ed1b1(0x3de)]),{value:_0x6200bf}=_0x308938,_0x1d21e0=_0x4a566f[_0x5ed1b1(0x3aa)](),_0x3a3a5d=_0x4a566f[_0x5ed1b1(0x473)](),_0x557b40={..._0x44840d[_0x5ed1b1(0x3ca)],'va':_0x6200bf};return await _0x194022[_0x5ed1b1(0x204)](_0x3e9f73['id'],{'unitId':_0x6f5824,'subUnitId':_0x1e58e6,'shapeId':_0x33e333,'shapeType':_0x1d21e0,'shapeData':{'shapeText':{'isHorizontal':(_0x31e2fe=_0x44840d[_0x5ed1b1(0x45c)])==null?!0x0:_0x31e2fe,'dataModel':_0x557b40}},'oldShapeJSON':{'oldShapeType':_0x1d21e0,'oldShapeData':_0x3a3a5d}});}},_0x58f5d9={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':_0x38c45a(0x46f),'handler':(_0x3dec1c,_0x7138d8)=>{const _0x418222=_0x38c45a;if(!_0x7138d8)return!0x1;let {value:_0x55d847}=_0x7138d8;return _0x3dec1c[_0x418222(0x3d3)](_0x4292c2['ICommandService'])['syncExecuteCommand'](_0x113d0c[_0x418222(0x2d6)]['id'],{'alignType':_0x55d847});}},_0x4db0c5={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x349)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},_0x23d8b4={'type':_0x4292c2['CommandType'][_0x38c45a(0x349)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},_0x345fa2=_0x38c45a(0x40c),_0x35c022=_0x38c45a(0x1e8),_0x5eb222=(0x0,_0x4292c2[_0x38c45a(0x3f0)])(_0x38c45a(0x421));function _0x559673(_0x2ef76e,_0x14481f,_0x1e5d8e,_0x584105,_0x8aff4d,_0x4fe1f2){const _0xb7ca0d=_0x38c45a;let _0x3b9ea9={'unitId':_0x14481f,'subUnitId':_0x1e5d8e,'shapeId':_0x584105,'shapeData':_0x4fe1f2,'oldShapeJSON':_0x8aff4d};return _0x2ef76e[_0xb7ca0d(0x204)](_0x3e9f73['id'],_0x3b9ea9);}function _0x1b9e1a(_0xd20745,_0x171b0b,_0x2778ff,_0x3397d5,_0x2632d8,_0x14e112){let _0x56329a={'unitId':_0x171b0b,'subUnitId':_0x2778ff,'shapeId':_0x3397d5,'shapeData':_0x14e112,'oldShapeJSON':_0x2632d8};return _0xd20745['executeCommand'](_0x3e9f73['id'],_0x56329a);}function _0x2136d2(_0x11aa80){const _0x3ed5f0=_0x38c45a;var _0x2a4f66,_0x1e9bd8,_0x582dfc,_0x34b8e2;let _0x14e53a=(_0x2a4f66=(_0x1e9bd8=_0x11aa80[_0x3ed5f0(0x3f9)])==null||(_0x1e9bd8=_0x1e9bd8[_0x3ed5f0(0x38d)])==null?void 0x0:_0x1e9bd8[_0x3ed5f0(0x492)])==null?0x0:_0x2a4f66,_0x1edc74=(_0x582dfc=_0x11aa80[_0x3ed5f0(0x3f9)])==null?void 0x0:_0x582dfc[_0x3ed5f0(0x43f)];if(_0x1edc74!=null&&_0x1edc74['length'])for(let _0x5226de of _0x1edc74){var _0x2f06f0;_0x5226de[_0x3ed5f0(0x34a)]=(_0x2f06f0=_0x5226de[_0x3ed5f0(0x34a)])==null?_0x4292c2[_0x3ed5f0(0x2de)][_0x3ed5f0(0x2bb)]:_0x2f06f0;}else _0x11aa80[_0x3ed5f0(0x3f9)]&&(_0x11aa80[_0x3ed5f0(0x3f9)][_0x3ed5f0(0x43f)]=[{'startIndex':Math[_0x3ed5f0(0x213)](0x0,_0x14e53a-0x1),'gridType':_0x4292c2[_0x3ed5f0(0x2de)]['DEFAULT']}]);let _0x5beb01=(_0x34b8e2=_0x11aa80['body'])==null?void 0x0:_0x34b8e2['paragraphs'];if(_0x5beb01)for(let _0x36b5ee of _0x5beb01){var _0x55605f,_0x2041c0,_0xc26579,_0xbdc4a9,_0x3d6dc6,_0x4b0c14,_0x1444ff,_0x13a667;_0x36b5ee[_0x3ed5f0(0x3f4)]={..._0x36b5ee['paragraphStyle'],'lineSpacing':(_0x55605f=(_0x2041c0=_0x36b5ee['paragraphStyle'])==null?void 0x0:_0x2041c0[_0x3ed5f0(0x34b)])==null?0x1:_0x55605f,'snapToGrid':(_0xc26579=(_0xbdc4a9=_0x36b5ee[_0x3ed5f0(0x3f4)])==null?void 0x0:_0xbdc4a9[_0x3ed5f0(0x48a)])==null?_0x4292c2[_0x3ed5f0(0x1f6)][_0x3ed5f0(0x37a)]:_0xc26579,'spaceAbove':(_0x3d6dc6=(_0x4b0c14=_0x36b5ee[_0x3ed5f0(0x3f4)])==null?void 0x0:_0x4b0c14['spaceAbove'])==null?{'v':0x0}:_0x3d6dc6,'spaceBelow':(_0x1444ff=(_0x13a667=_0x36b5ee[_0x3ed5f0(0x3f4)])==null?void 0x0:_0x13a667[_0x3ed5f0(0x322)])==null?{'v':0x0}:_0x1444ff};}}function _0xb929bb(_0x17e06e){const _0x1eb39a=_0x38c45a;let _0x500f7d=_0x17e06e[_0x1eb39a(0x3f9)],_0x50ce03=_0x500f7d==null?void 0x0:_0x500f7d[_0x1eb39a(0x35a)],_0x30e08e=_0x500f7d==null?void 0x0:_0x500f7d[_0x1eb39a(0x38d)];if(!_0x500f7d||!(_0x50ce03!=null&&_0x50ce03[_0x1eb39a(0x492)])||!_0x30e08e)return;let _0x5b5e09=[];for(let _0x2333c9=0x0;_0x2333c9<_0x30e08e[_0x1eb39a(0x492)];_0x2333c9++)_0x30e08e[_0x2333c9]==='\x0d'&&_0x5b5e09[_0x1eb39a(0x33f)](_0x2333c9);_0x5b5e09['length']===_0x50ce03[_0x1eb39a(0x492)]&&(_0x500f7d[_0x1eb39a(0x35a)]=_0x50ce03[_0x1eb39a(0x317)]((_0x2b3b71,_0x2ffbf1)=>({..._0x2b3b71,'startIndex':_0x5b5e09[_0x2ffbf1]})));}function _0x1886be(_0x3d8d91,_0x3303eb){const _0x1eac10=_0x38c45a;var _0x2add4d,_0x1c9b5e,_0xeab752;let {isHorizontal:_0x17b42c,textRect:_0x48f7e0,verticalAlign:_0x556335}=_0x3303eb,_0xfd9ff2=_0x17b42c?_0x48f7e0[_0x1eac10(0x24b)]:_0x48f7e0[_0x1eac10(0x26d)],_0x315c5c=_0x4292c2['Tools']['deepClone'](_0x3d8d91),_0x3f7300=(_0x2add4d=_0x315c5c[_0x1eac10(0x361)])==null?{}:_0x2add4d,_0x209370={..._0x3f7300[_0x1eac10(0x498)],'centerAngle':_0x17b42c?0x0:_0x5446b3['VERTICAL_ROTATE_ANGLE'],'vertexAngle':_0x17b42c?0x0:_0x5446b3[_0x1eac10(0x33a)],'wrapStrategy':_0x4292c2[_0x1eac10(0x449)][_0x1eac10(0x4c7)],'zeroWidthParagraphBreak':(_0x1c9b5e=(_0xeab752=_0x3f7300[_0x1eac10(0x498)])==null?void 0x0:_0xeab752[_0x1eac10(0x39f)])==null?_0x4292c2['BooleanNumber'][_0x1eac10(0x487)]:_0x1c9b5e};if(_0x556335!==void 0x0&&(_0x209370['verticalAlign']=_0x556335),_0x3303eb[_0x1eac10(0x377)]!==void 0x0){var _0x110ca2;_0x209370[_0x1eac10(0x377)]=_0x3303eb[_0x1eac10(0x377)];let _0x26eb08=(_0x110ca2=_0x315c5c['body'])==null?void 0x0:_0x110ca2[_0x1eac10(0x35a)];if(_0x26eb08){for(let _0x34fa04 of _0x26eb08)_0x34fa04[_0x1eac10(0x3f4)]||(_0x34fa04['paragraphStyle']={}),_0x34fa04[_0x1eac10(0x3f4)][_0x1eac10(0x377)]=_0x3303eb[_0x1eac10(0x377)];}}return _0x315c5c[_0x1eac10(0x361)]={..._0x3f7300,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0xfd9ff2,'height':0x1/0x0},'renderConfig':_0x209370},_0xb929bb(_0x315c5c),_0x2136d2(_0x315c5c),_0x315c5c;}var _0x13daea=class extends _0x5446b3['Shape']{constructor(_0xa602c1,_0x404222){const _0x3a2052=_0x38c45a;super(_0xa602c1,_0x404222),_0x1d4f9f(this,_0x3a2052(0x46a),void 0x0),_0x1d4f9f(this,_0x3a2052(0x324),!0x0),_0x1d4f9f(this,'_drawingType',_0x4292c2[_0x3a2052(0x47d)][_0x3a2052(0x252)]),_0x1d4f9f(this,_0x3a2052(0x272),!0x0),this[_0x3a2052(0x46a)]={..._0x404222},this[_0x3a2052(0x35c)]();}['_init'](){const _0x1676c9=_0x38c45a;this[_0x1676c9(0x4d9)]['subscribeEvent'](_0x389e05=>{const _0x5784fa=_0x1676c9;this[_0x5784fa(0x4e5)](_0x389e05);});}[_0x38c45a(0x453)](_0x25d45a){const _0x3ef40a=_0x38c45a;this[_0x3ef40a(0x46a)][_0x3ef40a(0x28e)]=_0x25d45a;}[_0x38c45a(0x44e)](_0x3dc6e6){const _0x41cc40=_0x38c45a;this[_0x41cc40(0x46a)]['isEditing']=_0x3dc6e6,this[_0x41cc40(0x4c8)](!0x0);}get[_0x38c45a(0x3fb)](){return this['_props']['unitId'];}get[_0x38c45a(0x2cb)](){const _0x2477f6=_0x38c45a;return this[_0x2477f6(0x46a)]['subUnitId'];}[_0x38c45a(0x4e5)](_0xc7312a){const _0x4c7d2b=_0x38c45a;if(this[_0x4c7d2b(0x46a)][_0x4c7d2b(0x33c)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x1ce01d,height:_0x220d78}=this,{width:_0x8cb421=0x0,height:_0x30ad14=0x0}=_0xc7312a[_0x4c7d2b(0x248)],{left:_0x53d536=0x0,top:_0x1b0788=0x0,right:_0xded82c=0x0,bottom:_0x25f9a2=0x0}=this[_0x4c7d2b(0x46a)][_0x4c7d2b(0x33c)],_0x42cb37=_0x53d536,_0x1d10f8=_0x1b0788,_0x4e5c43=_0xded82c,_0x9a86b1=_0x25f9a2,_0x7e4e29=!0x1;if(_0x8cb421!==0x0&&_0x8cb421!==_0x1ce01d){let _0x8deb3=_0x53d536/_0x8cb421,_0x2b3c2c=_0xded82c/_0x8cb421;_0x42cb37=_0x1ce01d*_0x8deb3,_0x4e5c43=_0x1ce01d*_0x2b3c2c,_0x7e4e29=!0x0;}if(_0x30ad14!==0x0&&_0x30ad14!==_0x220d78){let _0x1e18eb=_0x1b0788/_0x30ad14,_0x4548e3=_0x25f9a2/_0x30ad14;_0x1d10f8=_0x220d78*_0x1e18eb,_0x9a86b1=_0x220d78*_0x4548e3,_0x7e4e29=!0x0;}_0x7e4e29&&this[_0x4c7d2b(0x4cf)]({'left':_0x42cb37,'top':_0x1d10f8,'right':_0x4e5c43,'bottom':_0x9a86b1});}[_0x38c45a(0x4cf)](_0x52b582){const _0xfcdf86=_0x38c45a;this[_0xfcdf86(0x46a)][_0xfcdf86(0x33c)]=_0x52b582,this[_0xfcdf86(0x4c8)](!0x0);}[_0x38c45a(0x2ae)](_0x340f13){const _0xe095b3=_0x38c45a;this[_0xe095b3(0x46a)][_0xe095b3(0x259)]=_0x340f13,this[_0xe095b3(0x4c8)](!0x0);}set[_0x38c45a(0x217)](_0x4731b3){const _0x5dc580=_0x38c45a;this[_0x5dc580(0x370)]=_0x4731b3;}get[_0x38c45a(0x217)](){const _0x2fe4a5=_0x38c45a;this['_transform']||this['_setTransForm']();let _0x4b197d=this[_0x2fe4a5(0x370)][_0x2fe4a5(0x32f)]();return this[_0x2fe4a5(0x314)](_0x4b197d);}get[_0x38c45a(0x3b5)](){const _0xce215d=_0x38c45a;return this[_0xce215d(0x46a)]['shapeModel'];}get[_0x38c45a(0x201)](){const _0x4065ec=_0x38c45a;return this[_0x4065ec(0x46a)]['shapeId'];}get[_0x38c45a(0x374)](){const _0x135533=_0x38c45a;return _0x5446b3[_0x135533(0x43c)]['SHAPE'];}[_0x38c45a(0x31e)](_0xa849be,_0x5b4b33,_0x152ee2,_0xa07978){const _0x2b53ec=_0x38c45a;let _0x2d0086=this[_0x2b53ec(0x46a)][_0x2b53ec(0x3b5)];if(!_0x2d0086||!_0x5b4b33)return;let _0xe9180=_0x152ee2==null?this[_0x2b53ec(0x24b)]:_0x152ee2,_0x1cf43f=_0xa07978==null?this[_0x2b53ec(0x26d)]:_0xa07978,_0x1ec4bc={'shapeType':_0x2d0086['getShapeType'](),'width':_0xe9180,'height':_0x1cf43f},_0x2d9dc1={'renderMode':_0x1f20eb[_0x2b53ec(0x418)][_0x2b53ec(0x46c)],'oKey':this[_0x2b53ec(0x406)],'image':this['_props'][_0x2b53ec(0x259)],'angle':this[_0x2b53ec(0x28a)]};_0x2d0086[_0x2b53ec(0x42b)](_0x1ec4bc),_0xa849be[_0x2b53ec(0x4e0)]();let _0x1ea024={'top':0x0,'left':0x0,'width':_0xe9180,'height':_0x1cf43f};_0x2d0086[_0x2b53ec(0x2e9)](_0xa849be,_0x1ea024,_0x2d9dc1),_0xa849be[_0x2b53ec(0x294)]();let _0x5adab3=_0x2d0086[_0x2b53ec(0x3a2)](),_0x30f5ec=_0x2d0086[_0x2b53ec(0x32c)](_0x1ea024),_0x2d137c=_0x2d0086[_0x2b53ec(0x37b)]();if(_0x5adab3&&_0x30f5ec&&!_0x2d137c){_0xa849be[_0x2b53ec(0x4e0)](),this[_0x2b53ec(0x306)]()[_0x2b53ec(0x21a)]&&_0xa849be[_0x2b53ec(0x458)](-0x1,0x1);let _0x4d51be=_0xe9180/0x2,_0x19a321=_0x1cf43f/0x2;_0xa849be[_0x2b53ec(0x408)](-_0x4d51be,-_0x19a321),_0xa849be['beginPath'](),this[_0x2b53ec(0x3cc)](_0xa849be,_0x5adab3,_0x30f5ec),_0xa849be['restore']();}}['getDrawingPoints'](_0x3d39a7){}[_0x38c45a(0x3cc)](_0x6de722,_0x265d2d,_0x4177e1){const _0x1f8199=_0x38c45a;this[_0x1f8199(0x46a)][_0x1f8199(0x41f)]||('isRichText'in _0x265d2d&&_0x265d2d[_0x1f8199(0x2ef)]===!0x1?this[_0x1f8199(0x2ba)](_0x6de722,_0x265d2d,_0x4177e1):this['_drawRichText'](_0x6de722,_0x265d2d,_0x4177e1));}[_0x38c45a(0x2ba)](_0x59e03b,_0x321001,_0x1bc3c2){}[_0x38c45a(0x3d6)](_0xc1377b,_0x47a888,_0x293dac){const _0x1bf92d=_0x38c45a;var _0x8db9fa,_0x8ca94c;let _0xb6aaec=this[_0x1bf92d(0x46a)][_0x1bf92d(0x371)];if(!_0x47a888['dataModel']||!_0xb6aaec)return;let _0x58d0be=_0x47a888[_0x1bf92d(0x3ca)],_0x1a94ba=_0x58d0be['doc'],_0x319893=(_0x8db9fa=_0x58d0be['va'])==null?_0x4292c2['VerticalAlign'][_0x1bf92d(0x288)]:_0x8db9fa,_0x3f2a61=(_0x8ca94c=_0x58d0be['ha'])==null?_0x4292c2[_0x1bf92d(0x315)][_0x1bf92d(0x48d)]:_0x8ca94c;if(!_0x1a94ba)return;let _0x59d14b=_0x47a888[_0x1bf92d(0x45c)],_0x5959ca=new _0x4292c2['DocumentDataModel'](_0x1886be(_0x1a94ba,{'isHorizontal':_0x59d14b!==!0x1,'textRect':_0x293dac,'verticalAlign':_0x319893,'horizontalAlign':_0x3f2a61})),_0x595c61=new _0x5446b3['DocumentViewModel'](_0x5959ca),_0x470ba6=_0x5446b3[_0x1bf92d(0x3a1)][_0x1bf92d(0x30c)](_0x595c61,_0xb6aaec);_0x470ba6[_0x1bf92d(0x489)]();let _0x42db9f=new _0x5446b3[(_0x1bf92d(0x4c9))](_0x1bf92d(0x283)+this[_0x1bf92d(0x406)],_0x470ba6,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x42db9f[_0x1bf92d(0x3e8)](_0x293dac['width'],_0x293dac['height']),_0xc1377b[_0x1bf92d(0x4e0)](),_0xc1377b[_0x1bf92d(0x273)](_0x293dac[_0x1bf92d(0x346)],_0x293dac[_0x1bf92d(0x38a)]),_0xc1377b[_0x1bf92d(0x44c)](),_0xc1377b[_0x1bf92d(0x3ff)](0x0,0x0,_0x293dac[_0x1bf92d(0x24b)],_0x293dac[_0x1bf92d(0x26d)]),_0xc1377b[_0x1bf92d(0x401)](),_0x42db9f[_0x1bf92d(0x25c)](_0xc1377b),_0xc1377b[_0x1bf92d(0x294)](),_0x42db9f['dispose'](),_0x470ba6[_0x1bf92d(0x4db)](),_0x595c61['dispose'](),_0x5959ca['dispose']();}['render'](_0x39d430,_0x2cda72,_0x4d9f01=!0x1){const _0x2aa7aa=_0x38c45a;if(!this[_0x2aa7aa(0x29c)])return this[_0x2aa7aa(0x4c8)](!0x1),this;let {width:_0x2e8e7a,height:_0x46dc52,left:_0x42e436,top:_0x4e68e8}=this,_0x253cdb=this[_0x2aa7aa(0x435)]();if(_0x2e8e7a=_0x253cdb[_0x2aa7aa(0x24b)],_0x46dc52=_0x253cdb['height'],_0x42e436=_0x253cdb[_0x2aa7aa(0x346)],_0x4e68e8=_0x253cdb[_0x2aa7aa(0x38a)],this[_0x2aa7aa(0x338)](_0x2cda72)){let {top:_0x2ee8ea,left:_0x3b3dbf,bottom:_0x4b5b52,right:_0x52bde6}=_0x2cda72[_0x2aa7aa(0x1ed)];if(_0x2e8e7a+this[_0x2aa7aa(0x21b)]+_0x42e436<_0x3b3dbf||_0x52bde6<_0x42e436||_0x46dc52+this[_0x2aa7aa(0x21b)]+_0x4e68e8<_0x2ee8ea||_0x4b5b52<_0x4e68e8)return this;}let _0x618dd7=_0x42e436+_0x2e8e7a/0x2,_0x2b35e9=_0x4e68e8+_0x46dc52/0x2,_0x1e5e7c=this[_0x2aa7aa(0x217)][_0x2aa7aa(0x304)]();if(this[_0x2aa7aa(0x46a)][_0x2aa7aa(0x41f)]){let _0x3aeb09=this[_0x2aa7aa(0x306)](),_0x1129c5=new _0x5446b3[(_0x2aa7aa(0x3b7))]();_0x1129c5['composeMatrix']({..._0x3aeb09}),_0x1e5e7c=_0x1129c5[_0x2aa7aa(0x304)]();}return _0x39d430[_0x2aa7aa(0x4e0)](),this[_0x2aa7aa(0x46a)][_0x2aa7aa(0x3b5)][_0x2aa7aa(0x45e)]===!0x0||_0x39d430['transform'](_0x1e5e7c[0x0],_0x1e5e7c[0x1],_0x1e5e7c[0x2],_0x1e5e7c[0x3],_0x618dd7,_0x2b35e9),this[_0x2aa7aa(0x31e)](_0x39d430,_0x2cda72,_0x2e8e7a,_0x46dc52),_0x39d430[_0x2aa7aa(0x294)](),this[_0x2aa7aa(0x4c8)](!0x1),this;}['getInverseCoord'](_0xfe8f3){const _0x36f198=_0x38c45a;let {left:_0x1e909c,top:_0x4c822d,width:_0x2e74c1,height:_0x1d0da8}=this[_0x36f198(0x435)](),_0x2f46fb=this[_0x36f198(0x217)]['getMatrix'](),_0x16407b=_0x1e909c+_0x2e74c1/0x2,_0x23e99e=_0x4c822d+_0x1d0da8/0x2,_0x3f5a64=new _0x5446b3[(_0x36f198(0x3b7))]([_0x2f46fb[0x0],_0x2f46fb[0x1],_0x2f46fb[0x2],_0x2f46fb[0x3],_0x16407b,_0x23e99e]),_0x215737=this[_0x36f198(0x3c9)]();return(this[_0x36f198(0x360)]&&(_0x215737==null?void 0x0:_0x215737[_0x36f198(0x374)])===_0x5446b3[_0x36f198(0x43c)][_0x36f198(0x2d2)]?_0x215737[_0x36f198(0x289)][_0x36f198(0x249)](_0x3f5a64):_0x3f5a64)[_0x36f198(0x242)]()['applyPoint'](_0xfe8f3);}['isHit'](_0x404ac2){const _0x3fc2df=_0x38c45a;let {left:_0x5509e2,top:_0x18fdc7,width:_0x6817e5,height:_0x20dd2c}=this[_0x3fc2df(0x435)](),_0x41bfa9=_0x5509e2+_0x6817e5/0x2,_0x5dee97=_0x18fdc7+_0x20dd2c/0x2,_0x1b9047=this[_0x3fc2df(0x217)][_0x3fc2df(0x304)](),_0x17c1c8=new _0x5446b3[(_0x3fc2df(0x3b7))]([_0x1b9047[0x0],_0x1b9047[0x1],_0x1b9047[0x2],_0x1b9047[0x3],_0x41bfa9,_0x5dee97]),_0x5140d0=this['getParent'](),_0x2a1e11=(this[_0x3fc2df(0x360)]&&(_0x5140d0==null?void 0x0:_0x5140d0['classType'])===_0x5446b3['RENDER_CLASS_TYPE']['GROUP']?_0x5140d0[_0x3fc2df(0x289)][_0x3fc2df(0x249)](_0x17c1c8):_0x17c1c8)[_0x3fc2df(0x242)]()[_0x3fc2df(0x45d)](_0x404ac2),_0x261668=_0x6817e5/0x2,_0x537106=_0x20dd2c/0x2,_0x1298f0=this['_props'][_0x3fc2df(0x3b5)];return _0x1298f0&&_0x1298f0[_0x3fc2df(0x37b)]()?_0x1298f0[_0x3fc2df(0x42d)](_0x2a1e11['x'],_0x2a1e11['y'],_0x6817e5,_0x20dd2c):_0x2a1e11['x']>=-_0x261668-this['strokeWidth']/0x2&&_0x2a1e11['x']<=_0x261668+this[_0x3fc2df(0x21b)]/0x2&&_0x2a1e11['y']>=-_0x537106-this[_0x3fc2df(0x21b)]/0x2&&_0x2a1e11['y']<=_0x537106+this[_0x3fc2df(0x21b)]/0x2;}['dispose'](){const _0x3c857e=_0x38c45a;this[_0x3c857e(0x46a)]['shapeModel']=null,super[_0x3c857e(0x4db)]();}},_0x1d18eb=class extends _0x5446b3[_0x38c45a(0x21e)]{constructor(_0x4aafe7,_0x3df7be){const _0x460467=_0x38c45a;super(_0x4aafe7,_0x3df7be),_0x1d4f9f(this,_0x460467(0x3d0),null),_0x1d4f9f(this,'_adjName',null),_0x1d4f9f(this,_0x460467(0x2bf),null),_0x1d4f9f(this,_0x460467(0x1fa),null),_0x3df7be&&this[_0x460467(0x417)](_0x3df7be);}[_0x38c45a(0x482)](){const _0xee6b73=_0x38c45a;return{'unitId':this[_0xee6b73(0x2bf)],'subUnitId':this[_0xee6b73(0x1fa)],'drawingId':this[_0xee6b73(0x3d0)]};}[_0x38c45a(0x417)](_0x52c38e){const _0x44f79e=_0x38c45a;_0x52c38e[_0x44f79e(0x201)]!==void 0x0&&(this[_0x44f79e(0x3d0)]=_0x52c38e['shapeId']),_0x52c38e['adjName']!==void 0x0&&(this[_0x44f79e(0x2f4)]=_0x52c38e['adjName']),_0x52c38e[_0x44f79e(0x3fb)]!==void 0x0&&(this[_0x44f79e(0x2bf)]=_0x52c38e[_0x44f79e(0x3fb)]),_0x52c38e[_0x44f79e(0x2cb)]!==void 0x0&&(this[_0x44f79e(0x1fa)]=_0x52c38e[_0x44f79e(0x2cb)]),this[_0x44f79e(0x441)]({'width':_0x52c38e[_0x44f79e(0x24b)],'height':_0x52c38e[_0x44f79e(0x26d)]});}[_0x38c45a(0x31e)](_0xce4695){const _0x1b07e4=_0x38c45a;_0x5446b3[_0x1b07e4(0x2f6)][_0x1b07e4(0x37e)](_0xce4695,{'radius':_0x1f20eb[_0x1b07e4(0x257)][_0x1b07e4(0x490)],'fill':_0x1f20eb[_0x1b07e4(0x257)][_0x1b07e4(0x35b)],'stroke':_0x1f20eb['ShapeDefaultConfig'][_0x1b07e4(0x2e2)],'strokeWidth':0x1,'evented':!0x0});}};function _0x403efc(_0x507d6e,_0x224c04){return function(_0x3e75d1,_0x2173d1){_0x224c04(_0x3e75d1,_0x2173d1,_0x507d6e);};}function _0x47d9ca(_0x4a9442,_0x18a72e,_0x91522a,_0x3397fa){const _0x4155a5=_0x38c45a;var _0x2eb3a8=arguments[_0x4155a5(0x492)],_0x435d72=_0x2eb3a8<0x3?_0x18a72e:_0x3397fa===null?_0x3397fa=Object[_0x4155a5(0x279)](_0x18a72e,_0x91522a):_0x3397fa,_0x107e75;if(typeof Reflect==_0x4155a5(0x2d3)&&typeof Reflect[_0x4155a5(0x303)]==_0x4155a5(0x244))_0x435d72=Reflect['decorate'](_0x4a9442,_0x18a72e,_0x91522a,_0x3397fa);else{for(var _0x16fb6e=_0x4a9442[_0x4155a5(0x492)]-0x1;_0x16fb6e>=0x0;_0x16fb6e--)(_0x107e75=_0x4a9442[_0x16fb6e])&&(_0x435d72=(_0x2eb3a8<0x3?_0x107e75(_0x435d72):_0x2eb3a8>0x3?_0x107e75(_0x18a72e,_0x91522a,_0x435d72):_0x107e75(_0x18a72e,_0x91522a))||_0x435d72);}return _0x2eb3a8>0x3&&_0x435d72&&Object['defineProperty'](_0x18a72e,_0x91522a,_0x435d72),_0x435d72;}let _0x3602fc=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x4d3336,_0x55eb69,_0x2f59fd,_0x499c56,_0x5b1285){const _0x3b7f5c=_0x38c45a;super(),this['_drawingManagerService']=_0x4d3336,this[_0x3b7f5c(0x49d)]=_0x55eb69,this[_0x3b7f5c(0x376)]=_0x2f59fd,this[_0x3b7f5c(0x4ac)]=_0x499c56,this['_urlImageService']=_0x5b1285;}[_0x38c45a(0x4c6)](_0x39ba36,_0x367dac){const _0x59420f=_0x38c45a;let {transform:_0x5b5b10,drawingType:_0x4d1394,srcRect:_0x4a7ead,prstGeom:_0x23673b,groupId:_0x5f4c92,unitId:_0x4ae7f5,subUnitId:_0x41edaa,drawingId:_0x5383c3,isMultiTransform:_0x74f1b7,transforms:_0x56b280,hidden:_0xd46ca6}=_0x39ba36;if(_0x4d1394!==_0x4292c2[_0x59420f(0x47d)]['DRAWING_SHAPE']||!this[_0x59420f(0x384)][_0x59420f(0x44f)]()||_0x5b5b10==null)return;let _0x44df43=_0x74f1b7&&_0x56b280?_0x56b280:[_0x5b5b10],_0x1d53a8=[];for(let _0x6b8b05 of _0x44df43){let {left:_0x27afb7,top:_0x235029,width:_0x1a430f,height:_0x1b4a4b,angle:_0x13cb9e,flipX:_0x4e7b45,flipY:_0x348402,skewX:_0x12914f,skewY:_0x105d92}=_0x6b8b05,_0x2882f1=_0x44df43[_0x59420f(0x293)](_0x6b8b05),_0x673552=(0x0,_0x2a6651['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x4ae7f5,'subUnitId':_0x41edaa,'drawingId':_0x5383c3},_0x74f1b7?_0x2882f1:void 0x0),_0x338334=_0x367dac[_0x59420f(0x323)](_0x673552);if(_0x338334!=null){_0x338334[_0x59420f(0x441)]({'left':_0x27afb7,'top':_0x235029,'width':_0x1a430f,'height':_0x1b4a4b,'angle':_0x13cb9e,'flipX':_0x4e7b45,'flipY':_0x348402,'skewX':_0x12914f,'skewY':_0x105d92});continue;}let _0x29295c=this['_drawingManagerService'][_0x59420f(0x352)](_0x4ae7f5,_0x41edaa),_0x243bc6=_0x29295c[_0x59420f(0x293)](_0x5383c3);if(_0x367dac[_0x59420f(0x323)](_0x673552)||!this['_drawingManagerService']['getDrawingVisible']())continue;let _0x5577af=this[_0x59420f(0x49d)][_0x59420f(0x351)](_0x4ae7f5,_0x41edaa,_0x5383c3);if(!_0x5577af)continue;let _0x499fba=new _0x13daea(_0x673552,{...(0x0,_0x1f20eb['isConnectorShape'])(_0x5577af['getShapeType']())?{..._0x6b8b05,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x6b8b05},'zIndex':_0x243bc6===-0x1?_0x29295c[_0x59420f(0x492)]-0x1:_0x243bc6,'shapeModel':_0x5577af,'localeService':this[_0x59420f(0x376)],'shapeId':_0x5383c3,'unitId':_0x4ae7f5,'subUnitId':_0x41edaa,'visible':_0xd46ca6!==!0x0});_0x367dac[_0x59420f(0x4da)](_0x499fba,_0x5446b3[_0x59420f(0x275)]),this['_drawingManagerService'][_0x59420f(0x308)]()&&_0x367dac[_0x59420f(0x3dc)](_0x499fba),_0x5f4c92&&(0x0,_0x4adf10[_0x59420f(0x253)])({'drawingId':_0x5f4c92,'unitId':_0x4ae7f5,'subUnitId':_0x41edaa},_0x499fba,_0x367dac,this[_0x59420f(0x384)]),_0x23673b!=null&&_0x499fba['setPrstGeom'](_0x23673b),_0x4a7ead!=null&&_0x499fba[_0x59420f(0x4cf)](_0x4a7ead),this[_0x59420f(0x43e)](_0x499fba,_0x5577af[_0x59420f(0x473)]()),_0x1d53a8[_0x59420f(0x33f)](_0x499fba);}return _0x1d53a8;}[_0x38c45a(0x43e)](_0x18a304,_0x5ac774){const _0x11d8b2=_0x38c45a;var _0x37f815;let _0x366a3d=_0x5ac774[_0x11d8b2(0x311)];if(!_0x366a3d||_0x366a3d[_0x11d8b2(0x38f)]!==_0x1f20eb[_0x11d8b2(0x36d)]['PictureFill']||!_0x366a3d[_0x11d8b2(0x3bf)])return;let _0x105e91=_0x366a3d[_0x11d8b2(0x3bf)],_0x5322cf=(_0x37f815=_0x366a3d[_0x11d8b2(0x268)])==null?_0x1f20eb[_0x11d8b2(0x4be)][_0x11d8b2(0x359)]:_0x37f815,_0x1a3739=this[_0x11d8b2(0x4ac)][_0x11d8b2(0x4cc)](_0x105e91,_0x5322cf);if(_0x1a3739){_0x18a304[_0x11d8b2(0x2ae)](_0x1a3739);return;}this['_loadAndSetImage'](_0x18a304,_0x105e91,_0x5322cf);}async['_loadAndSetImage'](_0x4d5d21,_0x3524bf,_0x51b19d){const _0x192842=_0x38c45a;let _0x296555;try{if(_0x51b19d===_0x1f20eb['ImageSourceTypeEnum'][_0x192842(0x2b9)])_0x296555=await this[_0x192842(0x4ac)][_0x192842(0x46d)](_0x3524bf);else{if(_0x51b19d===_0x1f20eb['ImageSourceTypeEnum'][_0x192842(0x359)])try{_0x296555=await this[_0x192842(0x411)][_0x192842(0x46d)](_0x3524bf);}catch{_0x296555=_0x3524bf;}else _0x296555=_0x3524bf;}}catch(_0x5ca71e){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x5ca71e);return;}let _0x30bc24=new window[(_0x192842(0x414))]();_0x30bc24[_0x192842(0x27c)]=()=>{const _0xf6276d=_0x192842;this[_0xf6276d(0x4ac)][_0xf6276d(0x27f)](_0x3524bf,_0x51b19d,_0x30bc24),_0x4d5d21[_0xf6276d(0x2ae)](_0x30bc24);},_0x30bc24[_0x192842(0x2e5)]=()=>{const _0x5ea4ae=_0x192842;console[_0x5ea4ae(0x35f)](_0x5ea4ae(0x332),_0x3524bf);},_0x30bc24[_0x192842(0x4d3)]=_0x296555;}};_0x3602fc=_0x47d9ca([_0x403efc(0x0,_0x2a6651['IDrawingManagerService']),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5['SheetsShapeService'])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4292c2[_0x38c45a(0x4ce)])),_0x403efc(0x3,_0x2a6651[_0x38c45a(0x250)]),_0x403efc(0x4,_0x4292c2['IURLImageService'])],_0x3602fc);let _0x3509b4=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x1ba1d0,_0x1cb144,_0x1c5641,_0x39c4a2,_0x2f6948,_0x5dfff5,_0x18f344,_0x1f39a5){const _0x37da38=_0x38c45a;super(),this[_0x37da38(0x245)]=_0x1ba1d0,this[_0x37da38(0x4c1)]=_0x1cb144,this[_0x37da38(0x384)]=_0x1c5641,this[_0x37da38(0x49d)]=_0x39c4a2,this[_0x37da38(0x2a5)]=_0x2f6948,this[_0x37da38(0x4bd)]=_0x5dfff5,this[_0x37da38(0x4b8)]=_0x18f344,this['_commandService']=_0x1f39a5,_0x1d4f9f(this,_0x37da38(0x3b0),null),_0x1d4f9f(this,_0x37da38(0x2bf),null),_0x1d4f9f(this,_0x37da38(0x1fa),null),_0x1d4f9f(this,_0x37da38(0x491),void 0x0),_0x1d4f9f(this,'_shapes',[]),_0x1d4f9f(this,_0x37da38(0x444),0x0),_0x1d4f9f(this,'_baseShapeTop',0x0),_0x1d4f9f(this,_0x37da38(0x23a),0x0),_0x1d4f9f(this,'_baseShapeHeight',0x0),_0x1d4f9f(this,_0x37da38(0x24e),!0x1),_0x1d4f9f(this,_0x37da38(0x419),void 0x0),_0x1d4f9f(this,_0x37da38(0x3c7),void 0x0),_0x1d4f9f(this,_0x37da38(0x21c),void 0x0),_0x1d4f9f(this,'_adjHandlerPointerUp',void 0x0),_0x1d4f9f(this,_0x37da38(0x3b4),!0x1),this[_0x37da38(0x2e3)](),this[_0x37da38(0x3a6)]();}[_0x38c45a(0x2ca)](_0x126df2,_0x1f0f41,_0x2ab5e6){const _0x36b1d2=_0x38c45a;let _0x1c308a=this[_0x36b1d2(0x49d)][_0x36b1d2(0x351)](_0x126df2,_0x1f0f41,_0x2ab5e6);if(_0x1c308a)return _0x1c308a[_0x36b1d2(0x20a)]();}['clearAdjustControls'](){const _0x5e6405=_0x38c45a;this[_0x5e6405(0x2ec)]();}[_0x38c45a(0x270)](){const _0x515676=_0x38c45a;this[_0x515676(0x43d)](!0x0);}['setShouldShowAdjust'](_0x520230){const _0x3b5532=_0x38c45a;this[_0x3b5532(0x3b4)]=_0x520230;}[_0x38c45a(0x465)](_0x3ef616,_0x3efe41,_0x36b634,_0x583543){const _0x1d089e=_0x38c45a;let _0x16dc5f=this[_0x1d089e(0x49d)][_0x1d089e(0x351)](_0x3ef616,_0x3efe41,_0x36b634);if(_0x16dc5f)return _0x16dc5f[_0x1d089e(0x222)](_0x583543);}[_0x38c45a(0x2c9)](_0xf43f99=!0x1){const _0x5b43a5=_0x38c45a;if(this[_0x5b43a5(0x2bf)]===null||this['_subUnitId']===null||this[_0x5b43a5(0x3b0)]===null)return;let _0x313619=this[_0x5b43a5(0x2a5)][_0x5b43a5(0x407)](this['_unitId']);if(!_0x313619||!_0x313619[_0x5b43a5(0x474)](_0x4f2ee7[_0x5b43a5(0x4d1)])[_0x5b43a5(0x3df)]())return;let {scene:_0x59ff44}=_0x313619,_0x2f583c={'unitId':this[_0x5b43a5(0x2bf)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5b43a5(0x3b0)]},_0x2e1e77=this['_drawingManagerService']['getDrawingByParam'](_0x2f583c),{transform:_0x585753}=_0x2e1e77;if(!_0x585753||_0x2e1e77[_0x5b43a5(0x372)]!==_0x4292c2[_0x5b43a5(0x47d)][_0x5b43a5(0x252)])return;let {left:_0x38c9ee,top:_0x545ee2,width:_0x57c0a0,height:_0x286585,flipX:_0x329d31,flipY:_0x587388,angle:_0x2f8e2b=0x0}=_0x585753;if(_0x38c9ee===void 0x0||_0x545ee2===void 0x0)return;_0xf43f99&&(this[_0x5b43a5(0x491)]=this[_0x5b43a5(0x2ca)](this[_0x5b43a5(0x2bf)],this[_0x5b43a5(0x1fa)],this[_0x5b43a5(0x3b0)]));let _0xb30094=this[_0x5b43a5(0x491)];for(let _0x46447f=0x0;_0x46447f<_0xb30094['length'];_0x46447f++){let _0x1a5ddc=_0xb30094[_0x46447f],_0x2af978=_0x1a5ddc['x'],_0x29a8d4=_0x1a5ddc['y'];if(_0x329d31&&(_0x2af978=(_0x57c0a0||0x0)-_0x2af978),_0x587388&&(_0x29a8d4=(_0x286585||0x0)-_0x29a8d4),_0x2f8e2b!==0x0){let _0x4c9281=(_0x57c0a0||0x0)/0x2,_0x14d847=(_0x286585||0x0)/0x2,_0x454ba5=_0x2f8e2b*Math['PI']/0xb4,_0x13160a=Math[_0x5b43a5(0x221)](_0x454ba5),_0x1f790e=Math[_0x5b43a5(0x3f3)](_0x454ba5),_0x7553a8=_0x2af978-_0x4c9281,_0x26a8c5=_0x29a8d4-_0x14d847;_0x2af978=_0x4c9281+(_0x7553a8*_0x13160a-_0x26a8c5*_0x1f790e),_0x29a8d4=_0x14d847+(_0x7553a8*_0x1f790e+_0x26a8c5*_0x13160a);}let _0x5f0bc2={'x':_0x2af978,'y':_0x29a8d4,'adjName':_0x1a5ddc['adjName']};this['_addShapeAdjustControl'](_0x59ff44,_0x5f0bc2,_0x5f0bc2['adjName'],_0x38c9ee,_0x545ee2,this[_0x5b43a5(0x2bf)],this[_0x5b43a5(0x1fa)]);}}['_updateShapeAdjustControls'](_0x20c3f8=!0x1){const _0x20654f=_0x38c45a;_0x20c3f8&&(this[_0x20654f(0x2ec)](),this['_createShapeAdjustControls'](_0x20c3f8));}[_0x38c45a(0x395)](_0x7fee9d,_0x6f1f91,_0x1445e2,_0xc6b28,_0x3d54a2,_0x127d5e,_0x4f7bcc){const _0x50cbf9=_0x38c45a;if(!this[_0x50cbf9(0x3b0)])return;let _0x9e2651=_0x7fee9d['getObjectIncludeInGroup'](_0x50cbf9(0x22c)+this[_0x50cbf9(0x3b0)]+'-'+_0x1445e2);if(_0x9e2651){_0x9e2651[_0x50cbf9(0x441)]({'left':_0x6f1f91['x']+_0xc6b28-_0x1f20eb[_0x50cbf9(0x257)]['adjHandleSize'],'top':_0x6f1f91['y']+_0x3d54a2-_0x1f20eb[_0x50cbf9(0x257)][_0x50cbf9(0x490)]});return;}let _0x50e617={'left':_0x6f1f91['x']+_0xc6b28-_0x1f20eb[_0x50cbf9(0x257)][_0x50cbf9(0x490)],'top':_0x6f1f91['y']+_0x3d54a2-_0x1f20eb[_0x50cbf9(0x257)][_0x50cbf9(0x490)],'adjName':_0x1445e2,'shapeId':this['_activeShapeId'],'unitId':_0x127d5e,'subUnitId':_0x4f7bcc,'width':_0x1f20eb[_0x50cbf9(0x257)][_0x50cbf9(0x490)]+0x8,'height':_0x1f20eb[_0x50cbf9(0x257)][_0x50cbf9(0x490)]+0x8,'zIndex':_0x5446b3[_0x50cbf9(0x275)]+0x1,'evented':!0x0},_0x55a3d4=new _0x1d18eb('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x1445e2,_0x50e617);this[_0x50cbf9(0x3e3)][_0x50cbf9(0x33f)](_0x55a3d4),this['_attachAdjustEvent'](_0x55a3d4,_0x7fee9d,_0x1445e2),_0x7fee9d[_0x50cbf9(0x4da)](_0x55a3d4,_0x5446b3['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x38c45a(0x2ec)](){const _0xeda713=_0x38c45a;this[_0xeda713(0x3e3)][_0xeda713(0x492)]!==0x0&&(this[_0xeda713(0x3e3)]['forEach'](_0x376aca=>{const _0x1115f4=_0xeda713;_0x376aca[_0x1115f4(0x4db)]();}),this['_shapes']=[]);}[_0x38c45a(0x459)](){const _0xd8d129=_0x38c45a;this[_0xd8d129(0x2c9)]();}['_getScrollInfo'](_0x2f729f,_0x509842){const _0x5c2450=_0x38c45a;var _0x325619;let _0x22dbf8={'x':0x0,'y':0x0};if(!_0x2f729f||!_0x509842)return _0x22dbf8;let _0x1e9019=this[_0x5c2450(0x2a5)][_0x5c2450(0x407)](_0x2f729f);if(!_0x1e9019||!_0x1e9019[_0x5c2450(0x474)](_0x4f2ee7['SheetSkeletonManagerService'])[_0x5c2450(0x389)](_0x509842))return _0x22dbf8;let _0x377b79=_0x1e9019[_0x5c2450(0x474)](_0x4f2ee7['SheetScrollManagerService']),_0xa17d37=_0x377b79==null?void 0x0:_0x377b79['getCurrentScrollState']();if(!_0xa17d37)return _0x22dbf8;let _0x59e6b1=(_0x325619=this[_0x5c2450(0x4b8)][_0x5c2450(0x41e)](_0x2f729f))==null?void 0x0:_0x325619['getSheetBySheetId'](_0x509842);if(!_0x59e6b1)return _0x22dbf8;let _0x18380b=(0x0,_0x4f2ee7[_0x5c2450(0x427)])(_0xa17d37[_0x5c2450(0x3a3)],_0xa17d37[_0x5c2450(0x42c)],_0x1e9019[_0x5c2450(0x30b)],_0x59e6b1);return _0x18380b?{'x':_0x18380b[_0x5c2450(0x347)],'y':_0x18380b[_0x5c2450(0x2f2)]}:_0x22dbf8;}[_0x38c45a(0x230)](_0x545bcf,_0x7a324f){const _0x31e45b=_0x38c45a;var _0x1710b0,_0x3d48d7;let _0x2d8001=(_0x1710b0=this[_0x31e45b(0x4b8)][_0x31e45b(0x41e)](_0x545bcf))==null?void 0x0:_0x1710b0[_0x31e45b(0x343)](_0x7a324f);return(_0x3d48d7=_0x2d8001==null?void 0x0:_0x2d8001[_0x31e45b(0x24c)]())==null?0x1:_0x3d48d7;}['_attachAdjustEvent'](_0x43d6c2,_0x50c507,_0x5f4617){const _0x4fdc07=_0x38c45a;this['disposeWithMe']((0x0,_0x4292c2[_0x4fdc07(0x2e0)])(_0x43d6c2['onPointerDown$'][_0x4fdc07(0x280)]((_0x531771,_0x3da084)=>{const _0xb2b33a=_0x4fdc07;var _0x530434,_0x25210d,_0x2ae329,_0x1dd825;let _0x1e126f=_0x43d6c2['getDrawingSearch']();this[_0xb2b33a(0x419)]=this[_0xb2b33a(0x465)](_0x1e126f[_0xb2b33a(0x3fb)],_0x1e126f[_0xb2b33a(0x2cb)],_0x1e126f[_0xb2b33a(0x30a)],_0x5f4617),this[_0xb2b33a(0x3c7)]=this[_0xb2b33a(0x49d)][_0xb2b33a(0x351)](_0x1e126f[_0xb2b33a(0x3fb)],_0x1e126f[_0xb2b33a(0x2cb)],_0x1e126f[_0xb2b33a(0x30a)]);let _0x3d8bc8=this[_0xb2b33a(0x384)][_0xb2b33a(0x329)]({'unitId':this[_0xb2b33a(0x2bf)],'subUnitId':this[_0xb2b33a(0x1fa)],'drawingId':this[_0xb2b33a(0x3b0)]}),{transform:_0x2cfbf1}=_0x3d8bc8;if(_0x2cfbf1){let {left:_0x3b1b48,top:_0x2be800,width:_0x31eb58,height:_0x28190c}=_0x2cfbf1;this['_baseShapeLeft']=_0x3b1b48||0x0,this[_0xb2b33a(0x398)]=_0x2be800||0x0,this[_0xb2b33a(0x23a)]=_0x31eb58||0x0,this['_baseShapeHeight']=_0x28190c||0x0;}let _0x41b78e=!!((_0x530434=_0x3d8bc8[_0xb2b33a(0x217)])!=null&&_0x530434[_0xb2b33a(0x21a)]),_0x13c2c4=!!((_0x25210d=_0x3d8bc8[_0xb2b33a(0x217)])!=null&&_0x25210d[_0xb2b33a(0x30d)]),_0x4d9062=((_0x2ae329=_0x3d8bc8[_0xb2b33a(0x217)])==null?void 0x0:_0x2ae329[_0xb2b33a(0x28a)])||0x0;this[_0xb2b33a(0x24e)]=!0x0,_0x50c507['disableObjectsEvent']();let _0x44b181=(_0x1dd825=this[_0xb2b33a(0x3c7)])==null?void 0x0:_0x1dd825[_0xb2b33a(0x309)](_0x5f4617),_0x108007={[_0x5f4617]:_0x44b181};this[_0xb2b33a(0x21c)]=_0x50c507['onPointerMove$'][_0xb2b33a(0x280)]((_0x13f738,_0xd0f623)=>{const _0x2958bd=_0xb2b33a;if(!this[_0x2958bd(0x24e)])return;let {offsetX:_0x5b7fa7,offsetY:_0x57fb1d}=_0x13f738,_0x2d2cfd=this[_0x2958bd(0x419)];if(this[_0x2958bd(0x3c7)]&&_0x2d2cfd){_0x50c507[_0x2958bd(0x234)](),_0x50c507[_0x2958bd(0x2b8)](_0x5446b3[_0x2958bd(0x468)]['CROSSHAIR']);let _0x2d79e5={'left':0x0,'top':0x0,'width':this[_0x2958bd(0x23a)],'height':this['_baseShapeHeight']},_0x3acdc9=this[_0x2958bd(0x2a0)](this[_0x2958bd(0x2bf)],this[_0x2958bd(0x1fa)]),_0x5325c9=this[_0x2958bd(0x230)](this['_unitId'],this['_subUnitId']),_0x337235=_0x5b7fa7/_0x5325c9+_0x3acdc9['x']-this[_0x2958bd(0x444)],_0x1064fe=_0x57fb1d/_0x5325c9+_0x3acdc9['y']-this[_0x2958bd(0x398)];if(_0x4d9062!==0x0){let _0x3e62f9=this[_0x2958bd(0x23a)]/0x2,_0x3ba090=this[_0x2958bd(0x4b5)]/0x2,_0xa0825d=_0x4d9062*Math['PI']/0xb4,_0xcee5ed=Math[_0x2958bd(0x221)](_0xa0825d),_0x3b3430=Math[_0x2958bd(0x3f3)](_0xa0825d),_0xc77855=_0x337235-_0x3e62f9,_0x344126=_0x1064fe-_0x3ba090;_0x337235=_0x3e62f9+(_0xc77855*_0xcee5ed+_0x344126*_0x3b3430),_0x1064fe=_0x3ba090+(-_0xc77855*_0x3b3430+_0x344126*_0xcee5ed);}_0x41b78e&&(_0x337235=this[_0x2958bd(0x23a)]-_0x337235),_0x13c2c4&&(_0x1064fe=this[_0x2958bd(0x4b5)]-_0x1064fe);let _0x53ac0e={'x':_0x337235,'y':_0x1064fe},_0x294695=this[_0x2958bd(0x3c7)]['calcAdjValue'](_0x2d79e5,_0x53ac0e,_0x2d2cfd,_0x41b78e,_0x13c2c4),_0x1f3d0f=_0x2d2cfd[_0x2958bd(0x3e9)]||_0x2d2cfd[_0x2958bd(0x1f5)]||_0x2d2cfd[_0x2958bd(0x3e0)]||_0x2d2cfd['gdRefR'];if(_0x1f3d0f===void 0x0)return;this[_0x2958bd(0x3c7)][_0x2958bd(0x2a2)](_0x1f3d0f,_0x294695);let _0x313783=this[_0x2958bd(0x384)]['getDrawingByParam']({'unitId':_0x1e126f['unitId'],'subUnitId':_0x1e126f[_0x2958bd(0x2cb)],'drawingId':_0x1e126f[_0x2958bd(0x30a)]});_0x313783&&(this[_0x2958bd(0x4bd)][_0x2958bd(0x4c6)](_0x313783,_0x50c507),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x1e126f[_0x2958bd(0x3fb)],_0x1e126f[_0x2958bd(0x2cb)],_0x1e126f[_0x2958bd(0x30a)]),this[_0x2958bd(0x459)]());}_0xd0f623['stopPropagation']();}),this[_0xb2b33a(0x237)]=_0x50c507[_0xb2b33a(0x3c4)]['subscribeEvent']((_0x357d4d,_0x5cb496)=>{const _0x373a97=_0xb2b33a;this[_0x373a97(0x21c)][_0x373a97(0x3b1)](),this[_0x373a97(0x237)]['unsubscribe'](),_0x50c507[_0x373a97(0x1f9)]();let _0x276af2=this['_activeAdjustInfo'];if(_0x276af2){let _0x23b07a=_0x1e126f['unitId'],_0x233268=_0x1e126f[_0x373a97(0x2cb)],_0x22a938=_0x1e126f[_0x373a97(0x30a)],_0x3b61f2=_0x276af2[_0x373a97(0x3e9)]||_0x276af2[_0x373a97(0x1f5)]||_0x276af2[_0x373a97(0x3e0)]||_0x276af2[_0x373a97(0x2c8)];if(_0x3b61f2!==void 0x0){var _0x1383d0;let _0x1a7826=(_0x1383d0=this[_0x373a97(0x3c7)])==null?void 0x0:_0x1383d0[_0x373a97(0x309)](_0x3b61f2);_0x1a7826!==void 0x0&&_0x559673(this[_0x373a97(0x494)],_0x23b07a,_0x233268,_0x22a938,{'oldShapeData':{'adjustValues':_0x108007}},{'adjustValues':{[_0x3b61f2]:_0x1a7826}});}}this[_0x373a97(0x419)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x373a97(0x24e)]=!0x1,_0x5cb496['stopPropagation'](),_0x50c507['enableObjectsEvent']();}),_0x3da084[_0xb2b33a(0x388)]();})));}[_0x38c45a(0x3a6)](){const _0x127920=_0x38c45a;let _0x46e11f=this[_0x127920(0x4b8)][_0x127920(0x263)](_0x4292c2['UniverInstanceType'][_0x127920(0x368)]);this[_0x127920(0x29a)](_0x46e11f['pipe']((0x0,_0x1d5c96['switchMap'])(_0x5008ef=>_0x5008ef?_0x5008ef['activeSheet$'][_0x127920(0x38c)]((0x0,_0x1d5c96[_0x127920(0x380)])(_0x3d894b=>{const _0x205cd1=_0x127920;if(!_0x3d894b)return _0x1d5c96[_0x205cd1(0x2e7)];let _0x497127=_0x5008ef[_0x205cd1(0x4de)](),_0x40da7e=this[_0x205cd1(0x2a5)][_0x205cd1(0x407)](_0x497127),_0x134035=_0x40da7e==null?void 0x0:_0x40da7e[_0x205cd1(0x30b)];return _0x134035?(0x0,_0x1d5c96['of'])(_0x134035):_0x1d5c96['EMPTY'];})):_0x1d5c96['EMPTY']))[_0x127920(0x233)](_0x5d3845=>{const _0x12692a=_0x127920;let _0x51fe2d=_0x5d3845[_0x12692a(0x2e8)]();this[_0x12692a(0x29a)](_0x5d3845['onPointerMove$'][_0x12692a(0x280)](()=>{const _0x350123=_0x12692a;this[_0x350123(0x3b4)];})),this[_0x12692a(0x29a)](_0x51fe2d['changeStart$'][_0x12692a(0x233)](_0x5a34ba=>{const _0x2bde40=_0x12692a;let {objects:_0x39dee6}=_0x5a34ba;this[_0x2bde40(0x2c9)](),_0x39dee6!==null&&_0x39dee6[_0x2bde40(0x454)]===0x1&&_0x39dee6[_0x2bde40(0x231)]()[_0x2bde40(0x29f)]()['value']instanceof _0x13daea&&this['setShouldShowAdjust'](!0x0);})),this[_0x12692a(0x29a)](_0x51fe2d['changing$'][_0x12692a(0x233)](()=>{this['_isShouldShowDrawingShapeAdjust']&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x5d3845[_0x12692a(0x3c4)]['subscribeEvent'](()=>{const _0x30f296=_0x12692a;this[_0x30f296(0x3b4)]&&(this['setShouldShowAdjust'](!0x1),this[_0x30f296(0x2c9)]());})),this[_0x12692a(0x29a)](_0x51fe2d['changeEnd$']['subscribe'](()=>{const _0x57cbd4=_0x12692a;this[_0x57cbd4(0x2bf)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x57cbd4(0x384)][_0x57cbd4(0x329)]({'unitId':this[_0x57cbd4(0x2bf)],'subUnitId':this[_0x57cbd4(0x1fa)],'drawingId':this[_0x57cbd4(0x3b0)]})&&(this[_0x57cbd4(0x491)]=this[_0x57cbd4(0x2ca)](this['_unitId'],this[_0x57cbd4(0x1fa)],this[_0x57cbd4(0x3b0)]),this[_0x57cbd4(0x459)]());}));}));}[_0x38c45a(0x2e3)](){const _0x4a5ebc=_0x38c45a;this[_0x4a5ebc(0x29a)](this[_0x4a5ebc(0x384)]['focus$'][_0x4a5ebc(0x233)](_0x339e81=>{const _0x5b5052=_0x4a5ebc;if(_0x339e81[_0x5b5052(0x492)]===0x1){let _0x49c74c=_0x339e81[0x0];if(_0x49c74c[_0x5b5052(0x372)]===_0x4292c2[_0x5b5052(0x47d)][_0x5b5052(0x252)]){this[_0x5b5052(0x3b0)]=_0x49c74c[_0x5b5052(0x30a)];let {unitId:_0x3697f4,subUnitId:_0x5bdb56}=_0x49c74c;this[_0x5b5052(0x491)]=this[_0x5b5052(0x2ca)](_0x3697f4,_0x5bdb56,this['_activeShapeId']),this[_0x5b5052(0x2bf)]=_0x3697f4,this[_0x5b5052(0x1fa)]=_0x5bdb56,this[_0x5b5052(0x2ec)](),this[_0x5b5052(0x2c9)]();}else this[_0x5b5052(0x3b0)]=null,this[_0x5b5052(0x491)]=void 0x0,this[_0x5b5052(0x2bf)]=null,this[_0x5b5052(0x1fa)]=null,this['_clearShapeAdjustControls']();}(_0x339e81[_0x5b5052(0x492)]>0x1||_0x339e81[_0x5b5052(0x492)]===0x0)&&(this[_0x5b5052(0x3b0)]=null,this[_0x5b5052(0x491)]=void 0x0,this[_0x5b5052(0x2bf)]=null,this[_0x5b5052(0x1fa)]=null,this[_0x5b5052(0x2ec)]());})),this[_0x4a5ebc(0x29a)](this[_0x4a5ebc(0x384)][_0x4a5ebc(0x262)][_0x4a5ebc(0x233)](_0x194d7b=>{const _0x50f8a5=_0x4a5ebc;if(_0x194d7b['length']===0x1){var _0x392105;let _0x4b50fa=_0x194d7b[0x0];((_0x392105=this[_0x50f8a5(0x384)][_0x50f8a5(0x329)](_0x4b50fa))==null?void 0x0:_0x392105[_0x50f8a5(0x372)])===_0x4292c2['DrawingTypeEnum'][_0x50f8a5(0x252)]&&this[_0x50f8a5(0x43d)](!0x0);}})),this[_0x4a5ebc(0x29a)](this['_drawingManagerService'][_0x4a5ebc(0x364)][_0x4a5ebc(0x233)](_0x454fec=>{const _0x268635=_0x4a5ebc;for(let _0xd4fb03 of _0x454fec)this[_0x268635(0x3b0)]===_0xd4fb03[_0x268635(0x30a)]&&(this[_0x268635(0x3b0)]=null,this[_0x268635(0x491)]=void 0x0,this[_0x268635(0x2bf)]=null,this[_0x268635(0x1fa)]=null,this[_0x268635(0x2ec)]());}));}};_0x3509b4=_0x47d9ca([_0x403efc(0x1,_0x4292c2[_0x38c45a(0x31a)]),_0x403efc(0x2,_0x2a6651[_0x38c45a(0x3fd)]),_0x403efc(0x3,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5[_0x38c45a(0x1f3)])),_0x403efc(0x4,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x5446b3['IRenderManagerService'])),_0x403efc(0x5,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x3602fc)),_0x403efc(0x6,_0x4292c2['IUniverInstanceService']),_0x403efc(0x7,_0x4292c2[_0x38c45a(0x3de)])],_0x3509b4);let _0x14c47b={'id':_0x38c45a(0x387),'type':_0x4292c2['CommandType'][_0x38c45a(0x349)],'handler':(_0x81f621,_0x5c16c4)=>{const _0x290837=_0x38c45a;let _0x551604=_0x81f621['get'](_0x2a6651[_0x290837(0x3fd)]),_0x3d6e80=_0x81f621[_0x290837(0x3d3)](_0x5446b3['IRenderManagerService']),_0x11a654=_0x81f621[_0x290837(0x3d3)](_0x3509b4);if(_0x5c16c4==null)return!0x0;if(_0x5c16c4[_0x290837(0x492)]>0x0){var _0x5ee8d8;let _0x19f5a8=(_0x5ee8d8=_0x3d6e80[_0x290837(0x407)](_0x5c16c4[0x0][_0x290837(0x3fb)]))==null?void 0x0:_0x5ee8d8[_0x290837(0x30b)];if(_0x19f5a8){let {unitId:_0x32abcc,subUnitId:_0x57f1f6,drawingId:_0x3f47ef}=_0x5c16c4[0x0],_0x3303e5=(0x0,_0x2a6651[_0x290837(0x215)])({'unitId':_0x32abcc,'subUnitId':_0x57f1f6,'drawingId':_0x3f47ef},void 0x0),_0x54c023=_0x19f5a8['getObjectIncludeInGroup'](_0x3303e5);if(_0x54c023){var _0x3ae3c6;(_0x3ae3c6=_0x3d6e80[_0x290837(0x407)](_0x5c16c4[0x0][_0x290837(0x3fb)]))==null||(_0x3ae3c6=_0x3ae3c6['scene']['getTransformer']())==null||_0x3ae3c6[_0x290837(0x203)](_0x54c023);}}_0x551604[_0x290837(0x450)](_0x5c16c4),_0x11a654[_0x290837(0x2ea)](!0x1);}return!0x0;}},_0x22bd17={'type':_0x4292c2[_0x38c45a(0x49c)][_0x38c45a(0x378)],'id':'sheet.command.menu-insert-shape','handler':async(_0x9986fc,_0x12c2c0)=>{const _0x4a773b=_0x38c45a;let _0x4148a2=(0x0,_0x4eb9c3[_0x4a773b(0x382)])(_0x9986fc[_0x4a773b(0x3d3)](_0x4292c2[_0x4a773b(0x403)]));if(!_0x4148a2)return!0x1;let _0x2f127e=_0x9986fc['get'](_0x4eb9c3[_0x4a773b(0x290)])[_0x4a773b(0x4ba)]();if(!_0x2f127e)return!0x1;let _0xa62fe3=_0x9986fc[_0x4a773b(0x3d3)](_0x4292c2['ICommandService']),{unitId:_0x5f35f5,subUnitId:_0x2b2ffb}=_0x4148a2,{value:_0xff93f5,enhanceParams:_0x2c01de}=_0x12c2c0,{range:_0x27f31b}=_0x2f127e,_0x575bd0={'unitId':_0x5f35f5,'subUnitId':_0x2b2ffb,'shapeType':_0xff93f5,'range':_0x27f31b,'shapeId':(0x0,_0x4292c2[_0x4a773b(0x3ac)])()};if(_0x2c01de){let _0x16144e=(0x0,_0x1f20eb[_0x4a773b(0x452)])(_0xff93f5),_0x2c585c=_0xff93f5===_0x1f20eb['ShapeTypeEnum']['Rect'];_0x16144e&&(_0x2c01de[_0x4a773b(0x2c4)]||_0x2c01de[_0x4a773b(0x232)])&&(_0x575bd0[_0x4a773b(0x2be)]={'ln':{'startArrow':_0x2c01de['startArrow']?{'type':_0x1f20eb[_0x4a773b(0x3bc)][_0x4a773b(0x3c0)],'size':_0x1f20eb[_0x4a773b(0x3e5)]['Medium']}:void 0x0,'endArrow':_0x2c01de[_0x4a773b(0x232)]?{'type':_0x1f20eb[_0x4a773b(0x3bc)][_0x4a773b(0x3c0)],'size':_0x1f20eb[_0x4a773b(0x3e5)][_0x4a773b(0x43b)]}:void 0x0}}),_0x2c585c&&(_0x2c01de['horizontal']||_0x2c01de['vertical'])&&(_0x575bd0[_0x4a773b(0x2be)]={'fill':{'fillType':_0x1f20eb[_0x4a773b(0x36d)][_0x4a773b(0x1eb)],'color':_0x4a773b(0x1ff)},'stroke':{'lineStrokeType':_0x1f20eb['ShapeLineTypeEnum'][_0x4a773b(0x4a9)],'width':0x1,'color':_0x4a773b(0x1fb)},'shapeText':{'isHorizontal':!!_0x2c01de[_0x4a773b(0x2dc)]}});}let _0x2fe56e=_0xa62fe3[_0x4a773b(0x2d7)](_0x50ebc5[_0x4a773b(0x260)]['id'],_0x575bd0);return setTimeout(()=>{const _0x13b173=_0x4a773b;_0xa62fe3['executeCommand'](_0x14c47b['id'],[{'unitId':_0x5f35f5,'subUnitId':_0x2b2ffb,'drawingId':_0x575bd0[_0x13b173(0x201)]}]);},0xc8),_0x2fe56e;}};_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x48d)],_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x423)],_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x210)];function _0x59c7c2(_0x11de2c){const _0xe72915=_0x38c45a;let _0xbfec35=_0x11de2c['get'](_0x4292c2[_0xe72915(0x31a)]),_0x14ad0e=_0x11de2c[_0xe72915(0x3d3)](_0x4292c2[_0xe72915(0x462)]);return{'id':_0x113d0c['SetInlineFormatTextBackgroundColorCommand']['id'],'tooltip':_0xe72915(0x48c),'type':_0x4bdb1b[_0xe72915(0x20e)][_0xe72915(0x2c7)],'icon':_0xe72915(0x45a),'selections':[{'label':{'name':_0x4bdb1b[_0xe72915(0x348)],'hoverable':!0x1,'selectable':!0x1}}],'value$':new _0x1d5c96[(_0xe72915(0x478))](_0x3ed212=>{const _0x1d3021=_0xe72915;_0x3ed212[_0x1d3021(0x29f)](_0x14ad0e[_0x1d3021(0x2a7)](_0x1d3021(0x26a)));}),'hidden$':_0xbfec35[_0xe72915(0x451)](_0x4292c2['FOCUSING_COMMON_DRAWINGS'])['pipe']((0x0,_0x1d5c96[_0xe72915(0x455)])(_0xbfec35[_0xe72915(0x3af)](_0x4292c2[_0xe72915(0x1fc)])),(0x0,_0x1d5c96['map'])(_0x1e3666=>!_0x1e3666))};}function _0x124bc5(_0x330cab){const _0x11831c=_0x38c45a;let _0x26d328=_0x330cab[_0x11831c(0x3d3)](_0x4292c2['IContextService']);return{'id':_0x113d0c[_0x11831c(0x2df)]['id'],'type':_0x4bdb1b[_0x11831c(0x20e)][_0x11831c(0x2d5)],'title':_0x11831c(0x45b),'hidden$':_0x26d328['subscribeContextValue$'](_0x4292c2[_0x11831c(0x1fc)])[_0x11831c(0x38c)]((0x0,_0x1d5c96[_0x11831c(0x455)])(_0x26d328[_0x11831c(0x3af)](_0x4292c2['FOCUSING_COMMON_DRAWINGS'])),(0x0,_0x1d5c96[_0x11831c(0x317)])(_0x2e43d7=>!_0x2e43d7))};}let _0x175918=[{'label':_0x38c45a(0x341),'icon':_0x38c45a(0x3ab),'value':_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x48d)]},{'label':_0x38c45a(0x483),'icon':'HorizontallyIcon','value':_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x423)]},{'label':_0x38c45a(0x46b),'icon':'RightJustifyingIcon','value':_0x4292c2[_0x38c45a(0x315)][_0x38c45a(0x210)]}];function _0x1a2ba4(_0x39df3d){const _0x53b28a=_0x38c45a;var _0x456ce9;let _0xbde2d6=_0x39df3d[_0x53b28a(0x3d3)](_0x4292c2['ICommandService']),_0x13c3ad=_0x39df3d[_0x53b28a(0x3d3)](_0x4292c2[_0x53b28a(0x31a)]),_0x172efd=_0x39df3d[_0x53b28a(0x3d3)](_0x322890[_0x53b28a(0x2ff)]),_0x2ca9d2=_0x39df3d[_0x53b28a(0x3d3)](_0x512648),_0x1a7c4e=_0x39df3d[_0x53b28a(0x3d3)](_0x50ebc5[_0x53b28a(0x1f3)]),_0x20ae24=_0x4292c2[_0x53b28a(0x315)][_0x53b28a(0x48d)],_0x324b95=()=>{const _0x54e8fb=_0x53b28a;var _0x38425e;let _0x3832d8=_0x172efd[_0x54e8fb(0x365)]()[_0x54e8fb(0x3d5)](_0x571f31=>_0x571f31[_0x54e8fb(0x372)]===_0x4292c2['DrawingTypeEnum'][_0x54e8fb(0x252)]);if(_0x3832d8[_0x54e8fb(0x492)]!==0x1)return _0x20ae24;let _0xaa709=_0x2ca9d2[_0x54e8fb(0x1ee)](),_0x33e773=(_0xaa709==null?void 0x0:_0xaa709[_0x54e8fb(0x3fb)])||_0x3832d8[0x0][_0x54e8fb(0x3fb)],_0x54b984=(_0xaa709==null?void 0x0:_0xaa709[_0x54e8fb(0x2cb)])||_0x3832d8[0x0][_0x54e8fb(0x2cb)],_0x4265fb=(_0xaa709==null?void 0x0:_0xaa709[_0x54e8fb(0x201)])||_0x3832d8[0x0][_0x54e8fb(0x30a)],_0x1d8172=_0x1a7c4e[_0x54e8fb(0x351)](_0x33e773,_0x54b984,_0x4265fb);if(!_0x1d8172)return _0x20ae24;let _0x58a815=_0x1d8172[_0x54e8fb(0x3a2)]();if(!_0x58a815||!(_0x54e8fb(0x3ca)in _0x58a815))return _0x20ae24;let _0x3a0875=_0x58a815[_0x54e8fb(0x3ca)];return(_0x38425e=_0x3a0875==null?void 0x0:_0x3a0875['ha'])==null?_0x20ae24:_0x38425e;};return{'id':_0x51f215['id'],'icon':(_0x456ce9=_0x175918[_0x53b28a(0x44d)](_0x1c89c8=>_0x1c89c8[_0x53b28a(0x481)]===_0x20ae24))==null?void 0x0:_0x456ce9[_0x53b28a(0x2b4)],'tooltip':_0x53b28a(0x26f),'type':_0x4bdb1b[_0x53b28a(0x20e)]['SELECTOR'],'selections':_0x175918,'value$':new _0x1d5c96['Observable'](_0x26e044=>{const _0x1632dd=_0x53b28a;let _0x20a24d=_0xbde2d6[_0x1632dd(0x467)](_0x25e658=>{const _0x1f5fd2=_0x1632dd;_0x25e658['id']===_0x51f215['id']&&_0x26e044[_0x1f5fd2(0x29f)](_0x324b95());}),_0x14af71=_0x2ca9d2[_0x1632dd(0x2f8)][_0x1632dd(0x233)](()=>{const _0x48702b=_0x1632dd;_0x26e044[_0x48702b(0x29f)](_0x324b95());});return _0x26e044[_0x1632dd(0x29f)](_0x324b95()),()=>{_0x20a24d['dispose'](),_0x14af71['unsubscribe']();};}),'hidden$':_0x13c3ad[_0x53b28a(0x451)](_0x4292c2['FOCUSING_COMMON_DRAWINGS'])[_0x53b28a(0x38c)]((0x0,_0x1d5c96[_0x53b28a(0x317)])(_0x4ce68e=>!_0x4ce68e))};}let _0x31c202=[{'label':'sheets-shape-ui.align.top','icon':'AlignTopIcon','value':_0x4292c2[_0x38c45a(0x305)][_0x38c45a(0x288)]},{'label':_0x38c45a(0x22b),'icon':'VerticalCenterIcon','value':_0x4292c2['VerticalAlign'][_0x38c45a(0x3ed)]},{'label':_0x38c45a(0x2da),'icon':_0x38c45a(0x3a8),'value':_0x4292c2[_0x38c45a(0x305)]['BOTTOM']}];function _0x3b92ed(_0x157849){const _0x34819a=_0x38c45a;var _0x1a41a6;let _0x2f329b=_0x157849[_0x34819a(0x3d3)](_0x4292c2[_0x34819a(0x3de)]),_0x10c7af=_0x157849[_0x34819a(0x3d3)](_0x4292c2[_0x34819a(0x31a)]),_0x4d3fa2=_0x157849[_0x34819a(0x3d3)](_0x322890[_0x34819a(0x2ff)]),_0x45735a=_0x157849['get'](_0x512648),_0x582b=_0x157849[_0x34819a(0x3d3)](_0x50ebc5[_0x34819a(0x1f3)]),_0x3fb640=_0x4292c2[_0x34819a(0x305)][_0x34819a(0x288)],_0x2dbe38=()=>{const _0x5b1087=_0x34819a;var _0x1d4688;let _0x5826fe=_0x4d3fa2[_0x5b1087(0x365)]()[_0x5b1087(0x3d5)](_0x440cac=>_0x440cac[_0x5b1087(0x372)]===_0x4292c2[_0x5b1087(0x47d)]['DRAWING_SHAPE']);if(_0x5826fe[_0x5b1087(0x492)]!==0x1)return _0x3fb640;let _0xe5942b=_0x45735a['getEditing'](),_0x973497=(_0xe5942b==null?void 0x0:_0xe5942b[_0x5b1087(0x3fb)])||_0x5826fe[0x0][_0x5b1087(0x3fb)],_0xa44442=(_0xe5942b==null?void 0x0:_0xe5942b['subUnitId'])||_0x5826fe[0x0]['subUnitId'],_0x1f0268=(_0xe5942b==null?void 0x0:_0xe5942b[_0x5b1087(0x201)])||_0x5826fe[0x0]['drawingId'],_0x5a8bb4=_0x582b[_0x5b1087(0x351)](_0x973497,_0xa44442,_0x1f0268);if(!_0x5a8bb4)return _0x3fb640;let _0x532d38=_0x5a8bb4[_0x5b1087(0x3a2)]();if(!_0x532d38||!(_0x5b1087(0x3ca)in _0x532d38))return _0x3fb640;let _0x31b03d=_0x532d38[_0x5b1087(0x3ca)];return(_0x1d4688=_0x31b03d==null?void 0x0:_0x31b03d['va'])==null?_0x3fb640:_0x1d4688;};return{'id':_0x4301de['id'],'icon':(_0x1a41a6=_0x31c202['find'](_0x23cf20=>_0x23cf20[_0x34819a(0x481)]===_0x3fb640))==null?void 0x0:_0x1a41a6['icon'],'tooltip':_0x34819a(0x463),'type':_0x4bdb1b['MenuItemType'][_0x34819a(0x375)],'selections':_0x31c202,'value$':new _0x1d5c96[(_0x34819a(0x478))](_0xb13896=>{const _0x746dc6=_0x34819a;let _0x2809db=_0x2f329b[_0x746dc6(0x467)](_0x3024ae=>{const _0x2705de=_0x746dc6;_0x3024ae['id']===_0x4301de['id']&&_0xb13896[_0x2705de(0x29f)](_0x2dbe38());}),_0x4208aa=_0x45735a['editingParams$'][_0x746dc6(0x233)](()=>{const _0x2d970a=_0x746dc6;_0xb13896[_0x2d970a(0x29f)](_0x2dbe38());});return _0xb13896[_0x746dc6(0x29f)](_0x2dbe38()),()=>{const _0xa69072=_0x746dc6;_0x2809db['dispose'](),_0x4208aa[_0xa69072(0x3b1)]();};}),'hidden$':_0x10c7af[_0x34819a(0x451)](_0x4292c2[_0x34819a(0x1fc)])[_0x34819a(0x38c)]((0x0,_0x1d5c96[_0x34819a(0x317)])(_0x559b2b=>!_0x559b2b))};}let _0x9cba75=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x5aaff0,_0x21369a){const _0x306d11=_0x38c45a;super(),this[_0x306d11(0x3a7)]=_0x5aaff0,this[_0x306d11(0x384)]=_0x21369a,this[_0x306d11(0x3a9)](),this['_clipService'][_0x306d11(0x369)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x306d11(0x3a7)]['setCanUseShapeClip'](!0x1)});}[_0x38c45a(0x3a9)](){const _0x5c929e=_0x38c45a;let _0x47b9c6=this[_0x5c929e(0x3a7)],_0x3555b1=new Map(),_0x98e35=_0x47b9c6['registerClipDelegate']((_0x3f5a30,_0x1ae2de,_0x3321d5,_0x114666,_0x23218d)=>{const _0x3cda32=_0x5c929e;let _0x54784a=_0x1ae2de;if(_0x54784a===_0x1f20eb['ShapeTypeEnum']['None']||_0x1ae2de===_0x3cda32(0x4d5))return!0x1;try{let _0x17851c=_0x3555b1[_0x3cda32(0x3d3)](_0x1ae2de);return _0x17851c||(_0x17851c=new _0x1f20eb['ShapeModel'](_0x54784a,'clip-'+_0x1ae2de),_0x3555b1[_0x3cda32(0x356)](_0x1ae2de,_0x17851c)),_0x23218d&&_0x17851c[_0x3cda32(0x4bf)]({'adjustValues':_0x23218d},!0x0),_0x17851c[_0x3cda32(0x42b)]({'width':_0x3321d5,'height':_0x114666}),_0x17851c[_0x3cda32(0x21f)](_0x3f5a30,{'left':0x0,'top':0x0,'width':_0x3321d5,'height':_0x114666});}catch{return!0x1;}});this['disposeWithMe'](_0x98e35),this[_0x5c929e(0x29a)]({'dispose':()=>_0x3555b1['clear']()});}[_0x38c45a(0x2ab)](_0x4254f0,_0x3d61fe,_0x56989f,_0x3d465b,_0x2a1f14){const _0x3fc8ea=_0x38c45a;let _0x429c0f=this['_drawingManagerService'][_0x3fc8ea(0x240)](_0x4254f0,_0x3d61fe);if(!_0x429c0f[_0x56989f])return;let _0x124ab6={..._0x429c0f[_0x56989f],'prstGeom':_0x3d465b,'adjustValues':_0x2a1f14};this[_0x3fc8ea(0x384)]['featurePluginUpdateNotification']([_0x124ab6]);}};_0x9cba75=_0x47d9ca([_0x403efc(0x0,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4adf10[_0x38c45a(0x393)])),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x2a6651[_0x38c45a(0x3fd)]))],_0x9cba75);let _0x28ad9c=_0x38c45a(0x3a4);function _0x529110({onShapeClick:_0x51eb95,excludeGroups:_0x2efd53}){const _0xd74e1f=_0x38c45a;return(0x0,_0x2e5d70[_0xd74e1f(0x2b2)])(_0xd47359['ShapePickerPanel'],{'excludeGroups':_0x2efd53,'onShapeClick':_0x51eb95});}function _0x28e437(){const _0x8ff30f=_0x38c45a;let _0x5e31a5=(0x0,_0x4bdb1b['useDependency'])(_0x2a6651[_0x8ff30f(0x3fd)]),_0x30d112=(0x0,_0x4bdb1b[_0x8ff30f(0x271)])(_0x9cba75);return(0x0,_0x2e5d70['jsx'])(_0xd47359[_0x8ff30f(0x4b1)],{'buttonLabel':_0x8ff30f(0x2b3),'excludeGroups':[_0xd47359[_0x8ff30f(0x298)][_0x8ff30f(0x438)]],'onShapeClick':_0x3b70e2=>{const _0x335202=_0x8ff30f;let _0x534627=_0x5e31a5[_0x335202(0x365)]()['find'](_0x5a5663=>_0x5a5663[_0x335202(0x372)]===_0x4292c2[_0x335202(0x47d)]['DRAWING_IMAGE']);if(!_0x534627)return;let {unitId:_0x2630b8,subUnitId:_0x5a2a3c,drawingId:_0x1c29eb}=_0x534627;_0x30d112['clipByShape'](_0x2630b8,_0x5a2a3c,_0x1c29eb,_0x3b70e2['type']);}});}function _0x420947(){const _0x49ef4e=_0x38c45a;let _0x3afec8=(0x0,_0x4bdb1b[_0x49ef4e(0x271)])(_0x4292c2[_0x49ef4e(0x3de)]);return(0x0,_0x2e5d70['jsx'])(_0x529110,{'onShapeClick':_0x35a61c=>{const _0x562f36=_0x49ef4e;_0x3afec8[_0x562f36(0x204)](_0x22bd17['id'],{'value':_0x35a61c[_0x562f36(0x442)],'enhanceParams':{'endArrow':_0x35a61c[_0x562f36(0x232)],'startArrow':_0x35a61c[_0x562f36(0x2c4)],'horizontal':_0x35a61c['horizontal'],'vertical':_0x35a61c[_0x562f36(0x40a)]}});}});}function _0x54e3e5(_0x23c3f5){const _0x5c05fa=_0x38c45a;let _0x58e33f=_0x23c3f5[_0x5c05fa(0x3d3)](_0x4292c2[_0x5c05fa(0x403)]);return{'id':_0x22bd17['id'],'type':_0x4bdb1b[_0x5c05fa(0x20e)][_0x5c05fa(0x375)],'selections':[{'label':{'name':_0x28ad9c,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x22bd17['id']}}}],'icon':'ShapeIcon','tooltip':_0x5c05fa(0x20d),'activated$':(0x0,_0x4f2ee7[_0x5c05fa(0x355)])(_0x58e33f,!0x1,()=>new _0x1d5c96[(_0x5c05fa(0x478))](_0x1aed15=>{const _0x40b729=_0x5c05fa;_0x1aed15[_0x40b729(0x29f)](!0x1);})),'hidden$':(0x0,_0x4bdb1b[_0x5c05fa(0x27d)])(_0x23c3f5,_0x4292c2[_0x5c05fa(0x45f)]['UNIVER_SHEET']),'disabled$':(0x0,_0x4f2ee7['getCurrentRangeDisable$'])(_0x23c3f5)};}let _0x16a318={[_0x4bdb1b[_0x38c45a(0x3c3)][_0x38c45a(0x29e)]]:{[_0x4bdb1b['RibbonStartGroup'][_0x38c45a(0x3e1)]]:{[_0x4301de['id']]:{'order':3.5,'menuItemFactory':_0x3b92ed},[_0x51f215['id']]:{'order':3.4,'menuItemFactory':_0x1a2ba4}},[_0x4bdb1b[_0x38c45a(0x431)][_0x38c45a(0x2a3)]]:{[_0x113d0c[_0x38c45a(0x488)]['id']]:{'order':0x1,'menuItemFactory':_0x59c7c2,[_0x113d0c[_0x38c45a(0x2df)]['id']]:{'order':0x0,'menuItemFactory':_0x124bc5}}}},[_0x4bdb1b[_0x38c45a(0x2b6)][_0x38c45a(0x312)]]:{[_0x22bd17['id']]:{'order':0x4,'menuItemFactory':_0x54e3e5}}},_0x11625a=class extends _0x4292c2['Disposable']{constructor(_0x4dfbd2,_0x2388f9,_0x55f486,_0x1d3aa5,_0x23b1bf,_0x2fc5b8,_0x22f2c7,_0x5c9f38,_0x3e40b1,_0x3ecc35,_0x3590eb){const _0x34a66b=_0x38c45a;super(),this[_0x34a66b(0x4b8)]=_0x4dfbd2,this[_0x34a66b(0x480)]=_0x2388f9,this[_0x34a66b(0x428)]=_0x55f486,this['_sheetsShapeService']=_0x1d3aa5,this['_localeService']=_0x23b1bf,this[_0x34a66b(0x494)]=_0x2fc5b8,this[_0x34a66b(0x384)]=_0x22f2c7,this['_sheetCanvasPopManagerService']=_0x5c9f38,this[_0x34a66b(0x4c1)]=_0x3e40b1,this['_renderManagerService']=_0x3ecc35,this[_0x34a66b(0x326)]=_0x3590eb,_0x1d4f9f(this,_0x34a66b(0x2e4),null),_0x1d4f9f(this,'_activeShapeInfo',null),_0x1d4f9f(this,_0x34a66b(0x484),!0x1),_0x1d4f9f(this,'_shapeEditPanelVersion',0x0),_0x1d4f9f(this,_0x34a66b(0x219),new Set()),_0x1d4f9f(this,_0x34a66b(0x228),[]),this[_0x34a66b(0x2e1)](),this[_0x34a66b(0x29a)](this[_0x34a66b(0x4b8)][_0x34a66b(0x263)](_0x4292c2[_0x34a66b(0x45f)][_0x34a66b(0x368)])['subscribe'](_0x158150=>{const _0x1b462e=_0x34a66b;if(!_0x158150){var _0x430c8a;(_0x430c8a=this[_0x1b462e(0x2e4)])==null||_0x430c8a[_0x1b462e(0x4db)]();return;}this[_0x1b462e(0x1ea)](_0x158150);})),this[_0x34a66b(0x320)](),this[_0x34a66b(0x4c3)](),this[_0x34a66b(0x3f2)](),this['disposeWithMe'](this[_0x34a66b(0x326)][_0x34a66b(0x2f8)][_0x34a66b(0x233)](_0xa3c815=>{_0xa3c815&&this['_clearPopups']();}));}['_initMenu'](){const _0x190d0a=_0x38c45a;this[_0x190d0a(0x428)][_0x190d0a(0x40d)](_0x16a318);}[_0x38c45a(0x4c3)](){const _0x56dae4=_0x38c45a;this[_0x56dae4(0x36c)]['registerFeatureMenu'](_0x4292c2['DrawingTypeEnum'][_0x56dae4(0x252)],this[_0x56dae4(0x4ab)]['bind'](this)),this[_0x56dae4(0x36c)][_0x56dae4(0x30f)](_0x4292c2[_0x56dae4(0x47d)][_0x56dae4(0x252)],0x6,0x4);}[_0x38c45a(0x3f2)](){const _0x43af0d=_0x38c45a;this['_univerInstanceService']['getAllUnitsForType'](_0x4292c2['UniverInstanceType'][_0x43af0d(0x368)])[_0x43af0d(0x4d2)](_0x111532=>this[_0x43af0d(0x1ea)](_0x111532));}[_0x38c45a(0x4ab)](_0x49621b,_0x4c955b,_0x400151,_0x4445de){const _0x1b5ce8=_0x38c45a;return[{'label':'sheets-shape-ui.openPanel','index':0x0,'commandId':_0x23d8b4['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'drawingId':_0x400151},'disable':_0x4445de===_0x4292c2[_0x1b5ce8(0x47d)]['DRAWING_DOM']},{'label':_0x1b5ce8(0x353),'index':0x1,'commandId':_0x322890[_0x1b5ce8(0x457)]['id'],'commandParams':{'unitId':_0x49621b,'drawings':[{'unitId':_0x49621b,'subUnitId':_0x4c955b,'drawingId':_0x400151,'drawingType':_0x4445de}]},'disable':!0x1},{'label':'sheets-shape-ui.hidePanel','index':0x2,'commandId':_0x4db0c5['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'drawingId':_0x400151},'disable':!0x1},{'label':_0x1b5ce8(0x3c2),'index':0x3,'commandId':_0x50ebc5['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'shapeId':_0x400151,'flipH':!0x0},'disable':!0x1},{'label':_0x1b5ce8(0x424),'index':0x4,'commandId':_0x50ebc5[_0x1b5ce8(0x3f8)]['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'shapeId':_0x400151,'flipV':!0x0},'disable':!0x1},{'label':_0x1b5ce8(0x39b),'index':0x4,'commandId':_0x50ebc5['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'shapeId':_0x400151,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x50ebc5[_0x1b5ce8(0x422)]['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'shapeId':_0x400151,'rotate':-0x5a},'disable':!0x1},{'label':_0x1b5ce8(0x2bc),'index':0x4,'commandId':_0x50ebc5[_0x1b5ce8(0x202)]['id'],'commandParams':{'unitId':_0x49621b,'subUnitId':_0x4c955b,'shapeId':_0x400151},'disable':!0x1}];}[_0x38c45a(0x34d)](_0x49de68,_0x239f08,_0x5131ce){const _0x9c4df0=_0x38c45a;let _0x5796e2=this[_0x9c4df0(0x49d)][_0x9c4df0(0x466)](_0x49de68,_0x239f08,_0x5131ce),_0x2bf796=this[_0x9c4df0(0x49d)]['getShapeDataById'](_0x49de68,_0x239f08,_0x5131ce);return _0x5796e2!==void 0x0&&_0x2bf796!==void 0x0?{'shapeData':_0x2bf796,'shapeId':_0x5131ce,'shapeType':_0x5796e2,'unitId':_0x49de68,'subUnitId':_0x239f08,'version':this[_0x9c4df0(0x4d0)],'disableShapeOption':!0x1}:null;}[_0x38c45a(0x1ea)](_0x1ff2af){const _0x4b168b=_0x38c45a;if(!_0x1ff2af)return;let _0x13b33e=_0x1ff2af[_0x4b168b(0x4de)]();this[_0x4b168b(0x2a5)][_0x4b168b(0x2f5)](_0x13b33e)&&!this[_0x4b168b(0x219)][_0x4b168b(0x2f5)](_0x13b33e)&&(this[_0x4b168b(0x3ad)](_0x13b33e),this['_initializedShapePopupMenu'][_0x4b168b(0x339)](_0x13b33e));}[_0x38c45a(0x447)](){const _0x318854=_0x38c45a;this[_0x318854(0x228)][_0x318854(0x4d2)](_0xe0675f=>_0xe0675f[_0x318854(0x4db)]()),this[_0x318854(0x228)][_0x318854(0x492)]=0x0;}[_0x38c45a(0x3ad)](_0x14bf83){const _0x4b24a6=_0x38c45a;var _0x2f5839;let _0x5167ec=(_0x2f5839=this[_0x4b24a6(0x2a5)][_0x4b24a6(0x407)](_0x14bf83))==null?void 0x0:_0x2f5839[_0x4b24a6(0x30b)],_0x41597d=_0x5167ec==null?void 0x0:_0x5167ec[_0x4b24a6(0x2e8)]();!_0x5167ec||!_0x41597d||(this[_0x4b24a6(0x29a)](_0x41597d[_0x4b24a6(0x4d8)][_0x4b24a6(0x233)](()=>{const _0x2e2b6e=_0x4b24a6;let _0x32e1c7=_0x41597d['getSelectedObjectMap']();if(this[_0x2e2b6e(0x447)](),this[_0x2e2b6e(0x484)]||_0x32e1c7['size']>0x1)return;let _0x1fec67=_0x32e1c7[_0x2e2b6e(0x231)]()[_0x2e2b6e(0x29f)]()['value'];if(!_0x1fec67)return;let _0x7c6f6a=this[_0x2e2b6e(0x384)][_0x2e2b6e(0x4a6)](_0x1fec67[_0x2e2b6e(0x406)]);if(!_0x7c6f6a||_0x7c6f6a[_0x2e2b6e(0x372)]!==_0x4292c2[_0x2e2b6e(0x47d)][_0x2e2b6e(0x252)])return;let {unitId:_0x2f3e5d,subUnitId:_0xd0d6e0,drawingId:_0x21b6c5,drawingType:_0x1b72c3}=_0x7c6f6a,_0x1e8c6d=this[_0x2e2b6e(0x34d)](_0x2f3e5d,_0xd0d6e0,_0x21b6c5);if(!_0x1e8c6d)return;this['_contextService'][_0x2e2b6e(0x4b0)](_0x4292c2[_0x2e2b6e(0x1fc)],!0x0);let _0x135c0b=this[_0x2e2b6e(0x36c)]['attachPopupToObject'](_0x1fec67,{'componentKey':_0x35c022,'direction':_0x2e2b6e(0x470),'offset':[0x0,0x8],'extraProps':{'unitId':_0x2f3e5d,'subUnitId':_0xd0d6e0,'drawingId':_0x21b6c5,'drawingType':_0x1b72c3,'shapeType':_0x1e8c6d[_0x2e2b6e(0x4c0)],'shapeData':_0x1e8c6d[_0x2e2b6e(0x2be)]}});this[_0x2e2b6e(0x228)][_0x2e2b6e(0x33f)](this['disposeWithMe'](_0x135c0b)),this[_0x2e2b6e(0x384)]['getFocusDrawings']()[_0x2e2b6e(0x44d)](_0x5c8e18=>_0x5c8e18['unitId']===_0x2f3e5d&&_0x5c8e18['subUnitId']===_0xd0d6e0&&_0x5c8e18[_0x2e2b6e(0x30a)]===_0x21b6c5)||this[_0x2e2b6e(0x384)][_0x2e2b6e(0x450)]([{'unitId':_0x2f3e5d,'subUnitId':_0xd0d6e0,'drawingId':_0x21b6c5}]);})),this[_0x4b24a6(0x29a)](_0x41597d['clearControl$'][_0x4b24a6(0x233)](()=>{const _0x36593d=_0x4b24a6;this['_clearPopups'](),this['_contextService'][_0x36593d(0x4b0)](_0x4292c2['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x36593d(0x450)](null);})),this[_0x4b24a6(0x29a)](_0x41597d[_0x4b24a6(0x28c)][_0x4b24a6(0x233)](()=>{const _0x57f871=_0x4b24a6;this[_0x57f871(0x447)]();})),this[_0x4b24a6(0x29a)](_0x41597d[_0x4b24a6(0x3f5)][_0x4b24a6(0x233)](()=>{const _0x310f04=_0x4b24a6;this[_0x310f04(0x447)]();})));}[_0x38c45a(0x320)](){const _0x3a3af9=_0x38c45a;this[_0x3a3af9(0x29a)](this[_0x3a3af9(0x494)][_0x3a3af9(0x467)](_0x2ef793=>{const _0x18b47f=_0x3a3af9;if(_0x2ef793['id']===_0x23d8b4['id']){let {unitId:_0x4338bd,subUnitId:_0x37c19d,drawingId:_0x6f60cd}=_0x2ef793[_0x18b47f(0x44b)];this[_0x18b47f(0x4d0)]+=0x1,this[_0x18b47f(0x3da)]=this['_getShapeInfo'](_0x4338bd,_0x37c19d,_0x6f60cd),this[_0x18b47f(0x447)](),this['_openShapeEditPanel']();}if(_0x2ef793['id']===_0x4db0c5['id']&&(this['_activeShapeInfo']=null,this[_0x18b47f(0x41d)]()),_0x2ef793['id']===_0x50ebc5[_0x18b47f(0x35e)]['id']){let {unitId:_0x5c60d7,subUnitId:_0x18ea68,shapeId:_0x27d889}=_0x2ef793['params'];if(this[_0x18b47f(0x3da)]&&this[_0x18b47f(0x3da)][_0x18b47f(0x201)]===_0x27d889){let _0x1215c0=this[_0x18b47f(0x34d)](_0x5c60d7,_0x18ea68,_0x27d889);_0x1215c0&&(this[_0x18b47f(0x4d0)]+=0x1,_0x1215c0[_0x18b47f(0x23c)]=this[_0x18b47f(0x4d0)],this[_0x18b47f(0x3da)]=_0x1215c0,this[_0x18b47f(0x484)]&&this[_0x18b47f(0x286)]());}}})),this[_0x3a3af9(0x29a)](this[_0x3a3af9(0x384)]['focus$'][_0x3a3af9(0x233)](_0x220dc3=>{const _0x4863ea=_0x3a3af9;if(this[_0x4863ea(0x484)]===!0x1)return;if(_0x220dc3[_0x4863ea(0x492)]===0x0){this[_0x4863ea(0x3da)]=null,this[_0x4863ea(0x41d)]();return;}if(_0x220dc3[_0x4863ea(0x492)]===0x1&&_0x220dc3[0x0][_0x4863ea(0x372)]===_0x4292c2[_0x4863ea(0x47d)][_0x4863ea(0x252)]&&(this[_0x4863ea(0x4d0)]+=0x1,this[_0x4863ea(0x3da)]=this['_getShapeInfo'](_0x220dc3[0x0][_0x4863ea(0x3fb)],_0x220dc3[0x0][_0x4863ea(0x2cb)],_0x220dc3[0x0]['drawingId']),this[_0x4863ea(0x3da)])){this[_0x4863ea(0x286)]();return;}let _0x2777ba=_0x220dc3['filter'](_0x70c728=>_0x70c728[_0x4863ea(0x372)]===_0x4292c2['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x220dc3[_0x4863ea(0x492)]>0x1&&_0x2777ba[_0x4863ea(0x492)]===_0x220dc3[_0x4863ea(0x492)]){if(this[_0x4863ea(0x4d0)]+=0x1,this[_0x4863ea(0x3da)]=this[_0x4863ea(0x34d)](_0x220dc3[0x0][_0x4863ea(0x3fb)],_0x220dc3[0x0][_0x4863ea(0x2cb)],_0x220dc3[0x0][_0x4863ea(0x30a)]),this[_0x4863ea(0x3da)]){this[_0x4863ea(0x286)]();return;}}else{if(this[_0x4863ea(0x4d0)]+=0x1,this['_activeShapeInfo']=this[_0x4863ea(0x34d)](_0x220dc3[0x0][_0x4863ea(0x3fb)],_0x220dc3[0x0][_0x4863ea(0x2cb)],_0x220dc3[0x0]['drawingId']),this[_0x4863ea(0x3da)]){this['_activeShapeInfo'][_0x4863ea(0x4af)]=!0x0,this[_0x4863ea(0x286)]();return;}}this['_closeShapeEditPanel']();}));}[_0x38c45a(0x286)](){const _0xea8903=_0x38c45a;this[_0xea8903(0x3da)]&&(this['_sidebarDisposable']=this[_0xea8903(0x480)][_0xea8903(0x22a)]({'id':_0x345fa2,'header':{'title':this['_localeService']['t'](_0xea8903(0x33e))},'width':0x184,'children':{'label':_0x345fa2,...this[_0xea8903(0x3da)]},'onClose':()=>{const _0x315e2c=_0xea8903;this[_0x315e2c(0x384)][_0x315e2c(0x450)](null),this['_contextService']['setContextValue'](_0x4292c2[_0x315e2c(0x1fc)],!0x1),this[_0x315e2c(0x2e4)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x38c45a(0x41d)](){const _0x462f3e=_0x38c45a;this[_0x462f3e(0x484)]=!0x1,this[_0x462f3e(0x480)]['close'](_0x345fa2),this[_0x462f3e(0x2e4)]=null,this[_0x462f3e(0x4c1)][_0x462f3e(0x4b0)](_0x4292c2[_0x462f3e(0x1fc)],!0x1),this[_0x462f3e(0x384)]['focusDrawing'](null);}};_0x11625a=_0x47d9ca([_0x403efc(0x0,_0x4292c2[_0x38c45a(0x403)]),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4bdb1b[_0x38c45a(0x432)])),_0x403efc(0x2,_0x4bdb1b[_0x38c45a(0x246)]),_0x403efc(0x3,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5[_0x38c45a(0x1f3)])),_0x403efc(0x4,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4292c2[_0x38c45a(0x4ce)])),_0x403efc(0x5,_0x4292c2[_0x38c45a(0x3de)]),_0x403efc(0x6,_0x2a6651[_0x38c45a(0x3fd)]),_0x403efc(0x7,(0x0,_0x4292c2['Inject'])(_0x4f2ee7[_0x38c45a(0x1e7)])),_0x403efc(0x8,_0x4292c2[_0x38c45a(0x31a)]),_0x403efc(0x9,_0x5446b3[_0x38c45a(0x2dd)]),_0x403efc(0xa,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x512648))],_0x11625a);var _0x28b090=_0x38c45a(0x25f),_0xbbfd89='1.0.0-alpha.2';let _0x34c2fd={},_0x453768=class{constructor(_0x4764d4){this['_renderManagerService']=_0x4764d4;}[_0x38c45a(0x276)](_0x127142,_0x1974ef){const _0x32ecbb=_0x38c45a;let _0x3b7c05=this[_0x32ecbb(0x2a5)][_0x32ecbb(0x407)](_0x127142[_0x32ecbb(0x3fb)]),_0xea1b59=_0x3b7c05==null?void 0x0:_0x3b7c05[_0x32ecbb(0x30b)];if(!_0xea1b59)return;let _0x31a10c=(0x0,_0x2a6651[_0x32ecbb(0x215)])(_0x127142),_0x3cdf1f=_0xea1b59['getObjectIncludeInGroup'](_0x31a10c);_0x3cdf1f==null||_0x3cdf1f[_0x32ecbb(0x2ae)](_0x1974ef);}};_0x453768=_0x47d9ca([_0x403efc(0x0,_0x5446b3[_0x38c45a(0x2dd)])],_0x453768);function _0x318397(){const _0x26c232=_0x38c45a;let _0x4f3b17=(0x0,_0x4bdb1b[_0x26c232(0x271)])(_0x2a6651[_0x26c232(0x3fd)]),[_0x403cb3,_0x259a04]=(0x0,_0x93f45f['useState'])(_0x4f3b17[_0x26c232(0x365)]());return(0x0,_0x93f45f[_0x26c232(0x24f)])(()=>{const _0x2a79ee=_0x26c232;let _0x43c294=_0x4f3b17[_0x2a79ee(0x4d4)][_0x2a79ee(0x233)](_0x3a6925=>{_0x259a04(_0x3a6925);});return()=>{const _0x26e206=_0x2a79ee;_0x43c294[_0x26e206(0x3b1)]();};},[]),_0x403cb3[_0x26c232(0x492)]===0x0?null:(0x0,_0x2e5d70[_0x26c232(0x2b2)])(_0x26c232(0x48b),{'children':(0x0,_0x2e5d70[_0x26c232(0x400)])(_0x26c232(0x48b),{'className':_0x26c232(0x39e),'children':[(0x0,_0x2e5d70[_0x26c232(0x2b2)])(_0x4adf10[_0x26c232(0x47c)],{'drawings':_0x403cb3,'hasCropper':!0x1}),(0x0,_0x2e5d70['jsx'])(_0x20dd8d[_0x26c232(0x4a8)],{'drawings':_0x403cb3})]})});}function _0x134d50(_0x59b2d0){const _0x343e42=_0x38c45a;let {unitId:_0x279b12,subUnitId:_0x5263aa,shapeId:_0x36385d}=_0x59b2d0,_0x1eaebd=(0x0,_0x4bdb1b[_0x343e42(0x271)])(_0x4292c2[_0x343e42(0x3de)]),_0x275bce=(0x0,_0x4bdb1b[_0x343e42(0x271)])(_0x453768);return(0x0,_0x2e5d70[_0x343e42(0x2b2)])(_0xd47359[_0x343e42(0x302)],{..._0x59b2d0,'positionEditor':(0x0,_0x2e5d70[_0x343e42(0x2b2)])(_0x318397,{}),'onUpdateShapeData':(_0x18912c,_0x4492ce)=>{_0x559673(_0x1eaebd,_0x279b12,_0x5263aa,_0x36385d,_0x18912c,_0x4492ce);},'onUpdateLineShapeData':(_0x42064b,_0x24fd84)=>{_0x1b9e1a(_0x1eaebd,_0x279b12,_0x5263aa,_0x36385d,_0x42064b,_0x24fd84);},'onUpdateShapeFillImage':_0x361645=>{_0x275bce['updateShapeFillImage']({'unitId':_0x279b12,'subUnitId':_0x5263aa,'drawingId':_0x36385d},_0x361645);}});}function _0x3f69bf(_0x4c480d){const _0x2be926=_0x38c45a;let _0x11a172=_0x4c480d[_0x2be926(0x28f)];return _0x11a172&&_0x2be926(0x3ca)in _0x11a172&&_0x11a172[_0x2be926(0x3ca)]?_0x11a172[_0x2be926(0x3ca)]:null;}function _0x473b21(_0x133282){const _0xa04a4f=_0x38c45a;var _0x22897d,_0x5df437,_0x297370,_0x2c2c54;let _0x362aaa=(_0x22897d=_0x3f69bf(_0x133282))==null?void 0x0:_0x22897d[_0xa04a4f(0x300)],_0x1dab8a=(_0x5df437=_0x362aaa==null||(_0x297370=_0x362aaa[_0xa04a4f(0x3f9)])==null||(_0x297370=_0x297370[_0xa04a4f(0x225)])==null||(_0x297370=_0x297370[0x0])==null?void 0x0:_0x297370['ts'])==null?{}:_0x5df437;return{..._0x362aaa==null||(_0x2c2c54=_0x362aaa['documentStyle'])==null?void 0x0:_0x2c2c54[_0xa04a4f(0x2ed)],..._0x1dab8a};}function _0x58339b(_0x36cf19){const _0x49064b=_0x38c45a;let _0x108836=_0x36cf19[_0x49064b(0x251)]['extraProps'];return _0x108836?(0x0,_0x2e5d70[_0x49064b(0x2b2)])(_0x1cebdd,{..._0x108836}):null;}function _0x1cebdd(_0xce96a8){const _0x4dc4f0=_0x38c45a;var _0x522773,_0x4671c8;let _0x4ed83e=(0x0,_0x4bdb1b[_0x4dc4f0(0x271)])(_0x4292c2[_0x4dc4f0(0x3de)]),_0x5d69a6=(0x0,_0x4bdb1b[_0x4dc4f0(0x271)])(_0x50ebc5[_0x4dc4f0(0x1f3)]),{unitId:_0x3da1ac,subUnitId:_0x557afd,drawingId:_0x2f7c85,drawingType:_0x10efbb,shapeType:_0x4cd74d}=_0xce96a8,[_0xbd378f,_0xd229f9]=(0x0,_0x93f45f[_0x4dc4f0(0x3cd)])(_0xce96a8[_0x4dc4f0(0x2be)]),_0x1f7716=(0x0,_0x93f45f[_0x4dc4f0(0x278)])(()=>_0x473b21(_0xbd378f),[_0xbd378f]),_0x5a2b49=(0x0,_0x93f45f[_0x4dc4f0(0x278)])(()=>_0x3f69bf(_0xbd378f),[_0xbd378f]);(0x0,_0x93f45f[_0x4dc4f0(0x24f)])(()=>{const _0x3e1ef2=_0x4dc4f0;let _0x4da1d7=_0x4ed83e[_0x3e1ef2(0x467)](_0x277158=>{const _0x5c238f=_0x3e1ef2;if(_0x277158['id']!==_0x50ebc5[_0x5c238f(0x35e)]['id'])return;let _0x1dca68=_0x5d69a6[_0x5c238f(0x2ee)](_0x3da1ac,_0x557afd,_0x2f7c85);_0x1dca68&&_0xd229f9(_0x1dca68);});return()=>_0x4da1d7[_0x3e1ef2(0x4db)]();},[_0x4ed83e,_0x2f7c85,_0x5d69a6,_0x557afd,_0x3da1ac]);let _0x18dd4=_0x17db60=>{_0xd229f9(_0x4e7f3b=>({..._0x4e7f3b,..._0x17db60}));},_0x1d7e47=_0x222155=>{const _0x54e3f3=_0x4dc4f0;let _0x4ed3a9=(0x0,_0xd47359[_0x54e3f3(0x4ca)])(_0xbd378f,_0x222155);_0x559673(_0x4ed83e,_0x3da1ac,_0x557afd,_0x2f7c85,{'oldShapeData':{'shapeText':_0xbd378f['shapeText']}},_0x4ed3a9),_0x18dd4(_0x4ed3a9);};return(0x0,_0x2e5d70[_0x4dc4f0(0x2b2)])(_0xd47359[_0x4dc4f0(0x3f7)],{'shapeData':_0xbd378f,'shapeType':_0x4cd74d,'textStyle':{'cl':{'rgb':_0x4dc4f0(0x2cf)},..._0x1f7716},'textModel':_0x5a2b49?{'ha':(_0x522773=_0x5a2b49['ha'])==null?_0x4292c2[_0x4dc4f0(0x315)][_0x4dc4f0(0x48d)]:_0x522773,'va':(_0x4671c8=_0x5a2b49['va'])==null?_0x4292c2[_0x4dc4f0(0x305)][_0x4dc4f0(0x288)]:_0x4671c8}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'onUpdateShapeData':(_0xe5b347,_0x2c915e)=>{_0x559673(_0x4ed83e,_0x3da1ac,_0x557afd,_0x2f7c85,_0xe5b347,_0x2c915e),_0x2c915e&&_0x18dd4(_0x2c915e);},'onUpdateText':_0x1d7e47,'onOpenPanel':()=>{const _0x2e7282=_0x4dc4f0;_0x4ed83e[_0x2e7282(0x204)](_0x23d8b4['id'],{'unitId':_0x3da1ac,'subUnitId':_0x557afd,'drawingId':_0x2f7c85});},'onDelete':()=>{const _0x45ecbf=_0x4dc4f0;_0x4ed83e[_0x45ecbf(0x204)](_0x322890[_0x45ecbf(0x457)]['id'],{'unitId':_0x3da1ac,'drawings':[{'unitId':_0x3da1ac,'subUnitId':_0x557afd,'drawingId':_0x2f7c85,'drawingType':_0x10efbb}]});}});}let _0x190897=(0x0,_0x93f45f[_0x38c45a(0x2ce)])(()=>{const _0x1efec5=_0x38c45a;let _0x5c497e=(0x0,_0x4bdb1b['useDependency'])(_0x512648),_0x35b695=(0x0,_0x4bdb1b[_0x1efec5(0x271)])(_0x50ebc5[_0x1efec5(0x1f3)]),_0x2d2a8a=(0x0,_0x4bdb1b[_0x1efec5(0x271)])(_0x2a6651[_0x1efec5(0x3fd)]),_0x24d60b=(0x0,_0x4bdb1b['useDependency'])(_0x4292c2[_0x1efec5(0x3de)]);return(0x0,_0x2e5d70['jsx'])(_0xd47359[_0x1efec5(0x3db)],{'adapter':(0x0,_0x93f45f['useMemo'])(()=>({'getShapeModel':(_0x2c0dc3,_0x51fe13,_0x159342)=>_0x35b695['getShapeModel'](_0x2c0dc3,_0x51fe13,_0x159342),'getDrawingTransform':(_0x536528,_0x5f70b4,_0x5233b3)=>{const _0x2b8028=_0x1efec5;let _0x4b9977=_0x2d2a8a['getDrawingByParam']({'unitId':_0x536528,'subUnitId':_0x5f70b4,'drawingId':_0x5233b3});return _0x4b9977==null?void 0x0:_0x4b9977[_0x2b8028(0x217)];},'updateShapeText':({unitId:_0x55fe0e,subUnitId:_0x16d833,shapeId:_0x11eb77,shapeText:_0x8fc630,oldShapeText:_0x125708})=>{const _0x7312f1=_0x1efec5;_0x24d60b[_0x7312f1(0x204)](_0x3e9f73['id'],{'unitId':_0x55fe0e,'subUnitId':_0x16d833,'shapeId':_0x11eb77,'shapeData':{'shapeText':_0x8fc630},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x125708}}});}}),[_0x24d60b,_0x2d2a8a,_0x35b695]),'editingService':_0x5c497e,'editorUnitId':_0x5eb222,'positionOptions':(0x0,_0x93f45f['useMemo'])(()=>({'viewportKeys':{'main':_0x5446b3['SHEET_VIEWPORT_KEY'][_0x1efec5(0x363)],'leftTop':_0x5446b3[_0x1efec5(0x41c)][_0x1efec5(0x39a)],'top':_0x5446b3[_0x1efec5(0x41c)]['VIEW_MAIN_TOP'],'left':_0x5446b3['SHEET_VIEWPORT_KEY'][_0x1efec5(0x373)]},'getSkeleton':(_0x251691,_0x48186f)=>{const _0x3b67b9=_0x1efec5;var _0x318353,_0x1c9328;return(_0x318353=(_0x1c9328=_0x251691['with'](_0x4f2ee7[_0x3b67b9(0x4d1)])['getSkeletonParam'](_0x48186f[_0x3b67b9(0x2cb)]))==null?void 0x0:_0x1c9328[_0x3b67b9(0x3d8)])==null?null:_0x318353;}}),[]),'verticalAlignCommandId':_0x4301de['id']});}),_0x5ef8fb=class extends _0x4292c2['Disposable']{constructor(_0x3979db){const _0x21f8eb=_0x38c45a;super(),this[_0x21f8eb(0x266)]=_0x3979db,this['_registerComponents']();}[_0x38c45a(0x3ae)](){const _0x325bdd=_0x38c45a;this[_0x325bdd(0x29a)](this[_0x325bdd(0x266)][_0x325bdd(0x26b)](_0x345fa2,_0x134d50)),this[_0x325bdd(0x29a)](this[_0x325bdd(0x266)][_0x325bdd(0x26b)](_0x28ad9c,_0x420947)),this[_0x325bdd(0x29a)](this[_0x325bdd(0x266)][_0x325bdd(0x26b)](_0x4adf10[_0x325bdd(0x3f1)],_0x28e437)),this['disposeWithMe'](this[_0x325bdd(0x266)][_0x325bdd(0x26b)](_0x35c022,_0x58339b)),this[_0x325bdd(0x29a)](this['_componentManager'][_0x325bdd(0x26b)](_0x325bdd(0x3db),_0x190897));}};_0x5ef8fb=_0x47d9ca([_0x403efc(0x0,(0x0,_0x4292c2['Inject'])(_0x4bdb1b[_0x38c45a(0x2eb)]))],_0x5ef8fb);let _0x4eb59a=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x27f8ef,_0x411569,_0x320a6d,_0x5cfbfd,_0x145953){const _0x9274b2=_0x38c45a;super(),this[_0x9274b2(0x245)]=_0x27f8ef,this['_drawingManagerService']=_0x411569,this['_renderManagerService']=_0x320a6d,this['_univerInstanceService']=_0x5cfbfd,this[_0x9274b2(0x2a8)]=_0x145953,_0x1d4f9f(this,_0x9274b2(0x335),null),_0x1d4f9f(this,_0x9274b2(0x2bf),null),_0x1d4f9f(this,_0x9274b2(0x1fa),null),_0x1d4f9f(this,_0x9274b2(0x4b2),void 0x0),_0x1d4f9f(this,_0x9274b2(0x3e3),[]),_0x1d4f9f(this,'_baseLeft',0x0),_0x1d4f9f(this,'_baseTop',0x0),_0x1d4f9f(this,_0x9274b2(0x3c8),0x0),_0x1d4f9f(this,_0x9274b2(0x211),0x0),_0x1d4f9f(this,'_isStartAdjusting',!0x1),_0x1d4f9f(this,_0x9274b2(0x419),void 0x0),_0x1d4f9f(this,'_activeShapeModel',void 0x0),_0x1d4f9f(this,_0x9274b2(0x21c),void 0x0),_0x1d4f9f(this,'_adjHandlerPointerUp',void 0x0),_0x1d4f9f(this,_0x9274b2(0x3bb),!0x1),this[_0x9274b2(0x254)](),this[_0x9274b2(0x4cd)]();}['clearAdjustControls'](){const _0x2f574f=_0x38c45a;this[_0x2f574f(0x238)]();}[_0x38c45a(0x270)](){this['_clearControls'](),this['_createControls'](!0x0);}[_0x38c45a(0x316)](_0x1f1868,_0x441019,_0x3507da,_0x12b84b){const _0x3d1baa=_0x38c45a;let _0x404542=_0x1f1868;if(!(_0x404542===_0x1f20eb[_0x3d1baa(0x4dd)][_0x3d1baa(0x2fa)]||_0x1f1868===_0x3d1baa(0x4d5)))try{let _0x3b5272=new _0x1f20eb[(_0x3d1baa(0x2fb))](_0x404542,'clip-adj-'+_0x1f1868);return _0x12b84b&&_0x3b5272[_0x3d1baa(0x4bf)]({'adjustValues':_0x12b84b},!0x0),_0x3b5272[_0x3d1baa(0x42b)]({'width':_0x441019,'height':_0x3507da}),_0x3b5272;}catch{return;}}[_0x38c45a(0x256)](_0x3c9568,_0x847b81,_0x36079a){const _0x49636f=_0x38c45a;let _0x3e7467={'unitId':_0x3c9568,'subUnitId':_0x847b81,'drawingId':_0x36079a},_0x592a13=this[_0x49636f(0x384)]['getDrawingByParam'](_0x3e7467);if(!(!_0x592a13||_0x592a13[_0x49636f(0x372)]!==_0x4292c2[_0x49636f(0x47d)][_0x49636f(0x36f)]))return _0x592a13;}[_0x38c45a(0x3d7)](_0x1b35ff,_0x5f1481,_0x2f10ad){const _0x2bbdcf=_0x38c45a;let _0x55a912=this['_renderManagerService'][_0x2bbdcf(0x407)](_0x1b35ff);if(!_0x55a912)return;let {scene:_0xdf2016}=_0x55a912,_0x3887e6=(0x0,_0x2a6651[_0x2bbdcf(0x215)])({'unitId':_0x1b35ff,'subUnitId':_0x5f1481,'drawingId':_0x2f10ad}),_0xbc4abd=_0xdf2016[_0x2bbdcf(0x358)](_0x3887e6);if(_0xbc4abd instanceof _0x5446b3[_0x2bbdcf(0x414)]){let _0x2d18c3=_0xbc4abd['prstGeom'];if(_0x2d18c3)return{'prstGeom':_0x2d18c3,'adjustValues':_0xbc4abd[_0x2bbdcf(0x331)]};}}[_0x38c45a(0x218)](_0xcd5ff9=!0x1){const _0x8d1119=_0x38c45a;if(!this[_0x8d1119(0x2bf)]||!this[_0x8d1119(0x1fa)]||!this[_0x8d1119(0x335)])return;let _0x5e1796=this[_0x8d1119(0x2a5)][_0x8d1119(0x407)](this['_unitId']);if(!_0x5e1796||!_0x5e1796[_0x8d1119(0x474)](_0x4f2ee7[_0x8d1119(0x4d1)])[_0x8d1119(0x3df)]())return;let {scene:_0x3ccf10}=_0x5e1796,_0x544ccb=this[_0x8d1119(0x256)](this[_0x8d1119(0x2bf)],this[_0x8d1119(0x1fa)],this[_0x8d1119(0x335)]);if(!_0x544ccb)return;let {transform:_0x525832}=_0x544ccb;if(!_0x525832)return;let {left:_0x41d10e,top:_0x32cae2,width:_0x59ddc9,height:_0xae226a,flipX:_0x4da1e,flipY:_0x361a3c,angle:_0x971a1d=0x0}=_0x525832;if(_0x41d10e===void 0x0||_0x32cae2===void 0x0)return;let _0x5cad8f=this[_0x8d1119(0x3d7)](this[_0x8d1119(0x2bf)],this['_subUnitId'],this['_activeImageId']);if(!_0x5cad8f)return;if(_0xcd5ff9){let _0x15cb26=this['_getOrCreateShapeModel'](_0x5cad8f[_0x8d1119(0x28e)],_0x59ddc9||0x0,_0xae226a||0x0,_0x5cad8f['adjustValues']);if(!_0x15cb26)return;this[_0x8d1119(0x4b2)]=_0x15cb26[_0x8d1119(0x20a)]();}let _0x528436=this[_0x8d1119(0x4b2)];if(!(!_0x528436||_0x528436[_0x8d1119(0x492)]===0x0))for(let _0x23195b=0x0;_0x23195b<_0x528436[_0x8d1119(0x492)];_0x23195b++){let _0x7b95d=_0x528436[_0x23195b],_0x1ef3b4=_0x7b95d['x'],_0xf7490e=_0x7b95d['y'];if(_0x4da1e&&(_0x1ef3b4=(_0x59ddc9||0x0)-_0x1ef3b4),_0x361a3c&&(_0xf7490e=(_0xae226a||0x0)-_0xf7490e),_0x971a1d!==0x0){let _0x5c557f=(_0x59ddc9||0x0)/0x2,_0x1fc380=(_0xae226a||0x0)/0x2,_0x5be4c0=_0x971a1d*Math['PI']/0xb4,_0x3058db=Math[_0x8d1119(0x221)](_0x5be4c0),_0x1687ba=Math[_0x8d1119(0x3f3)](_0x5be4c0),_0x2b88ad=_0x1ef3b4-_0x5c557f,_0x2020ae=_0xf7490e-_0x1fc380;_0x1ef3b4=_0x5c557f+(_0x2b88ad*_0x3058db-_0x2020ae*_0x1687ba),_0xf7490e=_0x1fc380+(_0x2b88ad*_0x1687ba+_0x2020ae*_0x3058db);}let _0x2597a2={'x':_0x1ef3b4,'y':_0xf7490e,'adjName':_0x7b95d[_0x8d1119(0x34c)]};this[_0x8d1119(0x486)](_0x3ccf10,_0x2597a2,_0x2597a2['adjName'],_0x41d10e,_0x32cae2,this[_0x8d1119(0x2bf)],this[_0x8d1119(0x1fa)]);}}[_0x38c45a(0x486)](_0x10d7f2,_0x22142e,_0x1cee4e,_0x20f757,_0xc235c9,_0x4e9009,_0xc4aafb){const _0x52fbc9=_0x38c45a;if(!this[_0x52fbc9(0x335)])return;let _0x4c30ad=_0x52fbc9(0x209)+this[_0x52fbc9(0x335)]+'-'+_0x1cee4e,_0x2fd869=_0x10d7f2[_0x52fbc9(0x323)](_0x4c30ad);if(_0x2fd869){_0x2fd869[_0x52fbc9(0x441)]({'left':_0x22142e['x']+_0x20f757-_0x1f20eb[_0x52fbc9(0x257)][_0x52fbc9(0x490)],'top':_0x22142e['y']+_0xc235c9-_0x1f20eb['ShapeDefaultConfig'][_0x52fbc9(0x490)]});return;}let _0x4dfd15=new _0x1d18eb(_0x4c30ad,{'left':_0x22142e['x']+_0x20f757-_0x1f20eb[_0x52fbc9(0x257)][_0x52fbc9(0x490)],'top':_0x22142e['y']+_0xc235c9-_0x1f20eb[_0x52fbc9(0x257)][_0x52fbc9(0x490)],'adjName':_0x1cee4e,'shapeId':this[_0x52fbc9(0x335)],'unitId':_0x4e9009,'subUnitId':_0xc4aafb,'width':_0x1f20eb['ShapeDefaultConfig'][_0x52fbc9(0x490)]+0x8,'height':_0x1f20eb[_0x52fbc9(0x257)][_0x52fbc9(0x490)]+0x8,'zIndex':_0x5446b3[_0x52fbc9(0x275)]+0x1,'evented':!0x0});this[_0x52fbc9(0x3e3)]['push'](_0x4dfd15),this[_0x52fbc9(0x433)](_0x4dfd15,_0x10d7f2,_0x1cee4e),_0x10d7f2[_0x52fbc9(0x4da)](_0x4dfd15,_0x5446b3[_0x52fbc9(0x275)]+0x1);}[_0x38c45a(0x238)](){const _0x51fb2d=_0x38c45a;this[_0x51fb2d(0x3e3)][_0x51fb2d(0x492)]!==0x0&&(this[_0x51fb2d(0x3e3)][_0x51fb2d(0x4d2)](_0x3806da=>_0x3806da['dispose']()),this['_shapes']=[]);}[_0x38c45a(0x2a0)](_0xee57e0,_0x1ae3cf){const _0x20e5b3=_0x38c45a;var _0x17f879;let _0x5e3fd2={'x':0x0,'y':0x0},_0x16558c=this[_0x20e5b3(0x2a5)][_0x20e5b3(0x407)](_0xee57e0);if(!_0x16558c||!_0x16558c[_0x20e5b3(0x474)](_0x4f2ee7['SheetSkeletonManagerService'])[_0x20e5b3(0x389)](_0x1ae3cf))return _0x5e3fd2;let _0x5d86d8=_0x16558c[_0x20e5b3(0x474)](_0x4f2ee7[_0x20e5b3(0x392)]),_0x26f787=_0x5d86d8==null?void 0x0:_0x5d86d8[_0x20e5b3(0x2bd)]();if(!_0x26f787)return _0x5e3fd2;let _0x587a18=(_0x17f879=this[_0x20e5b3(0x4b8)][_0x20e5b3(0x41e)](_0xee57e0))==null?void 0x0:_0x17f879[_0x20e5b3(0x343)](_0x1ae3cf);if(!_0x587a18)return _0x5e3fd2;let _0x1415ee=(0x0,_0x4f2ee7[_0x20e5b3(0x427)])(_0x26f787[_0x20e5b3(0x3a3)],_0x26f787[_0x20e5b3(0x42c)],_0x16558c[_0x20e5b3(0x30b)],_0x587a18);return _0x1415ee?{'x':_0x1415ee[_0x20e5b3(0x347)],'y':_0x1415ee[_0x20e5b3(0x2f2)]}:_0x5e3fd2;}[_0x38c45a(0x230)](_0x15f46d,_0x5cc309){const _0xe0aca8=_0x38c45a;var _0x4c0312,_0x11e05c;let _0x4b1828=(_0x4c0312=this[_0xe0aca8(0x4b8)][_0xe0aca8(0x41e)](_0x15f46d))==null?void 0x0:_0x4c0312[_0xe0aca8(0x343)](_0x5cc309);return(_0x11e05c=_0x4b1828==null?void 0x0:_0x4b1828['getZoomRatio']())==null?0x1:_0x11e05c;}[_0x38c45a(0x433)](_0x427c12,_0x563cac,_0xd15b06){const _0x22346a=_0x38c45a;this[_0x22346a(0x29a)]((0x0,_0x4292c2[_0x22346a(0x2e0)])(_0x427c12[_0x22346a(0x31f)][_0x22346a(0x280)]((_0x26510a,_0x253cc1)=>{const _0x3fc3e4=_0x22346a;var _0x2de86a,_0x307179,_0x84a106;let {unitId:_0x583da7,subUnitId:_0x53fa79,drawingId:_0x4c523f}=_0x427c12[_0x3fc3e4(0x482)](),_0x245ccb=this['_getImageDrawingInfo'](_0x583da7,_0x53fa79,_0x4c523f);if(!(_0x245ccb!=null&&_0x245ccb[_0x3fc3e4(0x217)]))return;let {left:_0x3c9636,top:_0x13cdeb,width:_0x2ad426,height:_0x2a37e5}=_0x245ccb[_0x3fc3e4(0x217)];this[_0x3fc3e4(0x381)]=_0x3c9636||0x0,this[_0x3fc3e4(0x446)]=_0x13cdeb||0x0,this['_baseWidth']=_0x2ad426||0x0,this[_0x3fc3e4(0x211)]=_0x2a37e5||0x0;let _0x3fcb58=!!((_0x2de86a=_0x245ccb['transform'])!=null&&_0x2de86a['flipX']),_0xca96=!!((_0x307179=_0x245ccb[_0x3fc3e4(0x217)])!=null&&_0x307179[_0x3fc3e4(0x30d)]),_0x3407b7=((_0x84a106=_0x245ccb['transform'])==null?void 0x0:_0x84a106[_0x3fc3e4(0x28a)])||0x0,_0x562103=this['_getImagePrstGeom'](_0x583da7,_0x53fa79,_0x4c523f);if(!_0x562103)return;let _0x192e78=this[_0x3fc3e4(0x316)](_0x562103[_0x3fc3e4(0x28e)],this[_0x3fc3e4(0x3c8)],this[_0x3fc3e4(0x211)],_0x562103[_0x3fc3e4(0x3b6)]);if(!_0x192e78||(this[_0x3fc3e4(0x3c7)]=_0x192e78,this[_0x3fc3e4(0x419)]=_0x192e78[_0x3fc3e4(0x222)](_0xd15b06),!this['_activeAdjustInfo']))return;this[_0x3fc3e4(0x24e)]=!0x0,_0x563cac[_0x3fc3e4(0x234)]();let _0xb8b81f=_0x562103[_0x3fc3e4(0x28e)];this['_adjHandlerPointerMove']=_0x563cac[_0x3fc3e4(0x4c2)]['subscribeEvent']((_0x491257,_0xdb3d9c)=>{const _0x4f1191=_0x3fc3e4;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2af778,offsetY:_0x553eda}=_0x491257,_0x2fc68f=this[_0x4f1191(0x419)];if(!this[_0x4f1191(0x3c7)]||!_0x2fc68f)return;_0x563cac[_0x4f1191(0x234)](),_0x563cac[_0x4f1191(0x2b8)](_0x5446b3[_0x4f1191(0x468)][_0x4f1191(0x46e)]);let _0x4e2759={'left':0x0,'top':0x0,'width':this[_0x4f1191(0x3c8)],'height':this[_0x4f1191(0x211)]},_0x532a22=this['_getScrollInfo'](_0x583da7,_0x53fa79),_0x3fd12b=this['_getZoomRatio'](_0x583da7,_0x53fa79),_0x3cf18b=_0x2af778/_0x3fd12b+_0x532a22['x']-this[_0x4f1191(0x381)],_0x3ccdf7=_0x553eda/_0x3fd12b+_0x532a22['y']-this[_0x4f1191(0x446)];if(_0x3407b7!==0x0){let _0x29d3ab=this[_0x4f1191(0x3c8)]/0x2,_0x537dcb=this['_baseHeight']/0x2,_0x3d9aec=_0x3407b7*Math['PI']/0xb4,_0x2e0524=Math[_0x4f1191(0x221)](_0x3d9aec),_0x256a2c=Math[_0x4f1191(0x3f3)](_0x3d9aec),_0x163149=_0x3cf18b-_0x29d3ab,_0x344653=_0x3ccdf7-_0x537dcb;_0x3cf18b=_0x29d3ab+(_0x163149*_0x2e0524+_0x344653*_0x256a2c),_0x3ccdf7=_0x537dcb+(-_0x163149*_0x256a2c+_0x344653*_0x2e0524);}_0x3fcb58&&(_0x3cf18b=this['_baseWidth']-_0x3cf18b),_0xca96&&(_0x3ccdf7=this[_0x4f1191(0x211)]-_0x3ccdf7);let _0x17283b=this[_0x4f1191(0x3c7)][_0x4f1191(0x2a1)](_0x4e2759,{'x':_0x3cf18b,'y':_0x3ccdf7},_0x2fc68f,_0x3fcb58,_0xca96),_0x183c9a=_0x2fc68f[_0x4f1191(0x3e9)]||_0x2fc68f[_0x4f1191(0x1f5)]||_0x2fc68f[_0x4f1191(0x3e0)]||_0x2fc68f[_0x4f1191(0x2c8)];_0x183c9a!==void 0x0&&(this[_0x4f1191(0x3c7)][_0x4f1191(0x2a2)](_0x183c9a,_0x17283b),this[_0x4f1191(0x3c7)][_0x4f1191(0x42b)]({'width':this[_0x4f1191(0x3c8)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x583da7,_0x53fa79,_0x4c523f,_0x183c9a,_0x17283b),this[_0x4f1191(0x4b2)]=this[_0x4f1191(0x3c7)][_0x4f1191(0x20a)](),this['_activeAdjustInfo']=this[_0x4f1191(0x3c7)]['getAdjustInfoByName'](_0xd15b06),this[_0x4f1191(0x218)](),_0xdb3d9c[_0x4f1191(0x388)]());}),this[_0x3fc3e4(0x237)]=_0x563cac[_0x3fc3e4(0x3c4)][_0x3fc3e4(0x280)]((_0x97bc26,_0x579d7d)=>{const _0x33b77c=_0x3fc3e4;if(this[_0x33b77c(0x21c)][_0x33b77c(0x3b1)](),this[_0x33b77c(0x237)][_0x33b77c(0x3b1)](),_0x563cac[_0x33b77c(0x1f9)](),this['_activeShapeModel']){let _0x228940=this[_0x33b77c(0x3c7)][_0x33b77c(0x48f)](),_0x1b1910={};for(let _0x4b0001 of _0x228940){let _0xadc5be=this[_0x33b77c(0x3c7)][_0x33b77c(0x309)](_0x4b0001);_0xadc5be!==void 0x0&&(_0x1b1910[_0x4b0001]=_0xadc5be);}this[_0x33b77c(0x2a8)][_0x33b77c(0x2ab)](_0x583da7,_0x53fa79,_0x4c523f,_0xb8b81f,_0x1b1910);}this[_0x33b77c(0x419)]=void 0x0,this[_0x33b77c(0x3c7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x579d7d[_0x33b77c(0x388)](),_0x563cac[_0x33b77c(0x3b8)]();}),_0x253cc1[_0x3fc3e4(0x388)]();})));}[_0x38c45a(0x208)](_0x218c2f,_0x9de8bf,_0x2d0124,_0x4b5cd8,_0x54c3c2){const _0x567de9=_0x38c45a;let _0x1819fc=this[_0x567de9(0x2a5)][_0x567de9(0x407)](_0x218c2f);if(!_0x1819fc)return;let {scene:_0x1e798a}=_0x1819fc,_0x3ecd01=(0x0,_0x2a6651[_0x567de9(0x215)])({'unitId':_0x218c2f,'subUnitId':_0x9de8bf,'drawingId':_0x2d0124}),_0x4e38fc=_0x1e798a[_0x567de9(0x358)](_0x3ecd01);if(_0x4e38fc instanceof _0x5446b3[_0x567de9(0x414)]){var _0x5a4796;let _0x395289=(_0x5a4796=_0x4e38fc['prstGeomAdjValues'])==null?{}:_0x5a4796;_0x4e38fc[_0x567de9(0x25d)]({..._0x395289,[_0x4b5cd8]:_0x54c3c2}),_0x4e38fc[_0x567de9(0x4c8)](!0x0);}}[_0x38c45a(0x4cd)](){const _0x40ad3c=_0x38c45a;let _0x70c6da=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4292c2[_0x40ad3c(0x45f)][_0x40ad3c(0x368)]);this[_0x40ad3c(0x29a)](_0x70c6da['pipe']((0x0,_0x1d5c96[_0x40ad3c(0x380)])(_0x571c84=>_0x571c84?_0x571c84[_0x40ad3c(0x471)][_0x40ad3c(0x38c)]((0x0,_0x1d5c96[_0x40ad3c(0x380)])(_0x14d716=>{const _0x2fce79=_0x40ad3c;if(!_0x14d716)return _0x1d5c96[_0x2fce79(0x2e7)];let _0x2ba6d4=_0x571c84[_0x2fce79(0x4de)](),_0x3a5a8a=this[_0x2fce79(0x2a5)][_0x2fce79(0x407)](_0x2ba6d4),_0x983a4f=_0x3a5a8a==null?void 0x0:_0x3a5a8a[_0x2fce79(0x30b)];return _0x983a4f?(0x0,_0x1d5c96['of'])(_0x983a4f):_0x1d5c96[_0x2fce79(0x2e7)];})):_0x1d5c96[_0x40ad3c(0x2e7)]))['subscribe'](_0x598f64=>{const _0x13d5bd=_0x40ad3c;let _0x42259b=_0x598f64['getTransformerByCreate']();this[_0x13d5bd(0x29a)](_0x598f64[_0x13d5bd(0x4c2)]['subscribeEvent'](()=>{const _0xcb1b5a=_0x13d5bd;this[_0xcb1b5a(0x3bb)]&&this[_0xcb1b5a(0x238)]();})),this[_0x13d5bd(0x29a)](_0x42259b['changeStart$'][_0x13d5bd(0x233)](_0x1a5b9d=>{const _0x27bfc0=_0x13d5bd;let {objects:_0x2da6a5}=_0x1a5b9d;if(this[_0x27bfc0(0x218)](),_0x2da6a5!==null&&_0x2da6a5[_0x27bfc0(0x454)]===0x1){let _0x39890d=_0x2da6a5[_0x27bfc0(0x231)]()[_0x27bfc0(0x29f)]()['value'];_0x39890d instanceof _0x5446b3[_0x27bfc0(0x414)]&&_0x39890d[_0x27bfc0(0x28e)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x13d5bd(0x29a)](_0x42259b[_0x13d5bd(0x28c)][_0x13d5bd(0x233)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0x13d5bd(0x29a)](_0x598f64[_0x13d5bd(0x3c4)][_0x13d5bd(0x280)](()=>{const _0x3c1c5b=_0x13d5bd;this[_0x3c1c5b(0x3bb)]&&(this[_0x3c1c5b(0x3bb)]=!0x1,this['_createControls']());})),this[_0x13d5bd(0x29a)](_0x42259b[_0x13d5bd(0x47f)][_0x13d5bd(0x233)](()=>{const _0x55ee4f=_0x13d5bd;if(this[_0x55ee4f(0x2bf)]&&this[_0x55ee4f(0x1fa)]&&this[_0x55ee4f(0x335)]){let _0x2af527=this[_0x55ee4f(0x3d7)](this['_unitId'],this[_0x55ee4f(0x1fa)],this['_activeImageId']);if(_0x2af527){var _0x50cb74,_0xa4c591;let _0x4df0e5=this[_0x55ee4f(0x256)](this[_0x55ee4f(0x2bf)],this[_0x55ee4f(0x1fa)],this[_0x55ee4f(0x335)]),_0xca3ebf=(_0x4df0e5==null||(_0x50cb74=_0x4df0e5[_0x55ee4f(0x217)])==null?void 0x0:_0x50cb74[_0x55ee4f(0x24b)])||0x0,_0x149c81=(_0x4df0e5==null||(_0xa4c591=_0x4df0e5[_0x55ee4f(0x217)])==null?void 0x0:_0xa4c591[_0x55ee4f(0x26d)])||0x0,_0x256b71=this[_0x55ee4f(0x316)](_0x2af527[_0x55ee4f(0x28e)],_0xca3ebf,_0x149c81,_0x2af527[_0x55ee4f(0x3b6)]);_0x256b71&&(this[_0x55ee4f(0x4b2)]=_0x256b71[_0x55ee4f(0x20a)](),this['_clearControls'](),this[_0x55ee4f(0x218)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x18f569=_0x38c45a;this[_0x18f569(0x29a)](this['_drawingManagerService'][_0x18f569(0x4d4)][_0x18f569(0x233)](_0x3620c9=>{const _0x2b04ff=_0x18f569;if(_0x3620c9['length']===0x1){let _0x87a200=_0x3620c9[0x0];if(_0x87a200['drawingType']===_0x4292c2[_0x2b04ff(0x47d)][_0x2b04ff(0x36f)]){let {unitId:_0x5b7b08,subUnitId:_0x12afa9,drawingId:_0x55c81c}=_0x87a200,_0x7d265d=this[_0x2b04ff(0x3d7)](_0x5b7b08,_0x12afa9,_0x55c81c);if(_0x7d265d){var _0x160617,_0x3eae8d;this[_0x2b04ff(0x335)]=_0x55c81c,this[_0x2b04ff(0x2bf)]=_0x5b7b08,this[_0x2b04ff(0x1fa)]=_0x12afa9;let _0x52d311=this[_0x2b04ff(0x256)](_0x5b7b08,_0x12afa9,_0x55c81c),_0x466dea=(_0x52d311==null||(_0x160617=_0x52d311[_0x2b04ff(0x217)])==null?void 0x0:_0x160617[_0x2b04ff(0x24b)])||0x0,_0x2b366d=(_0x52d311==null||(_0x3eae8d=_0x52d311[_0x2b04ff(0x217)])==null?void 0x0:_0x3eae8d[_0x2b04ff(0x26d)])||0x0,_0x29d2a3=this[_0x2b04ff(0x316)](_0x7d265d[_0x2b04ff(0x28e)],_0x466dea,_0x2b366d,_0x7d265d['adjustValues']);_0x29d2a3&&(this[_0x2b04ff(0x4b2)]=_0x29d2a3[_0x2b04ff(0x20a)]()),this[_0x2b04ff(0x238)](),this[_0x2b04ff(0x218)](!0x0);}else this[_0x2b04ff(0x313)]();}else this['_resetState']();}else this[_0x2b04ff(0x313)]();})),this[_0x18f569(0x29a)](this[_0x18f569(0x384)][_0x18f569(0x262)]['subscribe'](_0x23fc2c=>{const _0x3dac76=_0x18f569;if(_0x23fc2c[_0x3dac76(0x492)]===0x1){let _0x4b15d1=_0x23fc2c[0x0],_0x59488a=this['_drawingManagerService'][_0x3dac76(0x329)](_0x4b15d1);(_0x59488a==null?void 0x0:_0x59488a[_0x3dac76(0x372)])===_0x4292c2['DrawingTypeEnum'][_0x3dac76(0x36f)]&&this[_0x3dac76(0x335)]===_0x4b15d1[_0x3dac76(0x30a)]&&(this[_0x3dac76(0x238)](),this[_0x3dac76(0x218)](!0x0));}})),this[_0x18f569(0x29a)](this[_0x18f569(0x384)]['remove$']['subscribe'](_0x3a6965=>{const _0x5063c8=_0x18f569;for(let _0x9e4d9a of _0x3a6965)this['_activeImageId']===_0x9e4d9a['drawingId']&&this[_0x5063c8(0x313)]();}));}[_0x38c45a(0x313)](){const _0x67d66a=_0x38c45a;this[_0x67d66a(0x335)]=null,this[_0x67d66a(0x2bf)]=null,this['_subUnitId']=null,this[_0x67d66a(0x4b2)]=void 0x0,this[_0x67d66a(0x238)]();}};_0x4eb59a=_0x47d9ca([_0x403efc(0x1,_0x2a6651[_0x38c45a(0x3fd)]),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x5446b3[_0x38c45a(0x2dd)])),_0x403efc(0x3,_0x4292c2[_0x38c45a(0x403)]),_0x403efc(0x4,(0x0,_0x4292c2['Inject'])(_0x9cba75))],_0x4eb59a);let _0x316ce3=class extends _0x4292c2['Disposable']{constructor(_0x36cfd3,_0x4cf82b,_0x4f398f,_0x548248){const _0x17da40=_0x38c45a;super(),this['_univerInstanceService']=_0x36cfd3,this['_sheetInterceptorService']=_0x4cf82b,this[_0x17da40(0x3b2)]=_0x4f398f,this['_sheetsShapeService']=_0x548248,this[_0x17da40(0x47b)]();}[_0x38c45a(0x47b)](){const _0x116bc4=_0x38c45a;this[_0x116bc4(0x29a)](this[_0x116bc4(0x2c5)][_0x116bc4(0x4bb)]({'getMutations':_0x1f3584=>{const _0x43ae06=_0x116bc4;if(_0x1f3584['id']===_0x4eb9c3[_0x43ae06(0x22f)]['id']){let _0x5bb5cc=(0x0,_0x4eb9c3['getSheetCommandTarget'])(this['_univerInstanceService'],_0x1f3584[_0x43ae06(0x44b)]);if(!_0x5bb5cc)return{'redos':[],'undos':[]};let {unitId:_0x28905c,subUnitId:_0x473f9e}=_0x5bb5cc,_0x374571=this[_0x43ae06(0x3b2)][_0x43ae06(0x240)](_0x28905c,_0x473f9e),_0x43a5fc=Object['values'](_0x374571)[_0x43ae06(0x3d5)](_0x588e4c=>_0x588e4c[_0x43ae06(0x372)]===_0x4292c2['DrawingTypeEnum'][_0x43ae06(0x252)]);if(_0x43a5fc[_0x43ae06(0x492)]===0x0)return{'redos':[],'undos':[]};let _0x45a624=[],_0x1904b7=[];for(let _0x5bb626=0x0;_0x5bb626<_0x43a5fc[_0x43ae06(0x492)];_0x5bb626++){let _0x52ab54=_0x43a5fc[_0x5bb626],_0x233cfe=this[_0x43ae06(0x49d)][_0x43ae06(0x351)](_0x52ab54['unitId'],_0x52ab54[_0x43ae06(0x2cb)],_0x52ab54[_0x43ae06(0x30a)]);if(!_0x233cfe)continue;let {redo:_0x2dfc22,undo:_0x5208c5,objects:_0x36c554}=this['_sheetDrawingService']['getBatchRemoveOp']([_0x52ab54]);_0x45a624[_0x43ae06(0x33f)]({'id':_0x50ebc5[_0x43ae06(0x301)]['id'],'params':{'unitId':_0x28905c,'subUnitId':_0x473f9e,'shapeId':_0x52ab54[_0x43ae06(0x30a)]}}),_0x45a624[_0x43ae06(0x33f)]({'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x28905c,'subUnitId':_0x473f9e,'type':_0x322890[_0x43ae06(0x36a)]['REMOVE'],'op':_0x2dfc22,'objects':_0x36c554}}),_0x1904b7[_0x43ae06(0x33f)]({'id':_0x322890[_0x43ae06(0x472)]['id'],'params':{'unitId':_0x28905c,'subUnitId':_0x473f9e,'type':_0x322890[_0x43ae06(0x36a)][_0x43ae06(0x295)],'op':_0x5208c5,'objects':_0x36c554}}),_0x1904b7['push']({'id':_0x50ebc5['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x28905c,'subUnitId':_0x473f9e,'shapeId':_0x52ab54['drawingId'],'shapeType':_0x233cfe[_0x43ae06(0x3aa)](),'shapeData':JSON[_0x43ae06(0x496)](JSON[_0x43ae06(0x485)](_0x233cfe[_0x43ae06(0x473)]()))}});}return{'redos':_0x45a624,'undos':_0x1904b7};}else{if(_0x1f3584['id']===_0x4eb9c3['CopySheetCommand']['id']){let {unitId:_0x14d625,subUnitId:_0x4d7424,targetSubUnitId:_0x223b78}=_0x1f3584[_0x43ae06(0x44b)];if(!_0x14d625||!_0x4d7424||!_0x223b78)return{'redos':[],'undos':[]};let _0x1d272d=this['_sheetDrawingService']['getDrawingData'](_0x14d625,_0x4d7424),_0x40f2e2=Object[_0x43ae06(0x231)](_0x1d272d)[_0x43ae06(0x3d5)](_0x6220b0=>_0x6220b0['drawingType']===_0x4292c2[_0x43ae06(0x47d)]['DRAWING_SHAPE']);if(_0x40f2e2[_0x43ae06(0x492)]===0x0)return{'redos':[],'undos':[]};let _0x881533=[],_0x1ed40c=[];for(let _0x4811a4=0x0;_0x4811a4<_0x40f2e2[_0x43ae06(0x492)];_0x4811a4++){let _0x2b0fc8=_0x40f2e2[_0x4811a4],_0xf69c1=this[_0x43ae06(0x49d)][_0x43ae06(0x351)](_0x2b0fc8[_0x43ae06(0x3fb)],_0x2b0fc8[_0x43ae06(0x2cb)],_0x2b0fc8[_0x43ae06(0x30a)]);if(!_0xf69c1)continue;let _0x2e2061=(0x0,_0x4292c2[_0x43ae06(0x3ac)])(),_0x587449={..._0x2b0fc8,'unitId':_0x14d625,'subUnitId':_0x223b78,'drawingId':_0x2e2061},{redo:_0x3e5ab1,undo:_0x5ab281,objects:_0x215f68}=this[_0x43ae06(0x3b2)]['getBatchAddOp']([_0x587449]);_0x881533['push']({'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x14d625,'subUnitId':_0x223b78,'type':_0x322890['DrawingApplyType'][_0x43ae06(0x295)],'op':_0x3e5ab1,'objects':_0x215f68}}),_0x881533[_0x43ae06(0x33f)]({'id':_0x50ebc5[_0x43ae06(0x1e9)]['id'],'params':{'unitId':_0x14d625,'subUnitId':_0x223b78,'shapeId':_0x2e2061,'shapeType':_0xf69c1[_0x43ae06(0x3aa)](),'shapeData':JSON[_0x43ae06(0x496)](JSON[_0x43ae06(0x485)](_0xf69c1[_0x43ae06(0x473)]()))}}),_0x1ed40c[_0x43ae06(0x33f)]({'id':_0x50ebc5[_0x43ae06(0x301)]['id'],'params':{'unitId':_0x14d625,'subUnitId':_0x223b78,'shapeId':_0x2e2061}}),_0x1ed40c[_0x43ae06(0x33f)]({'id':_0x322890[_0x43ae06(0x472)]['id'],'params':{'unitId':_0x14d625,'subUnitId':_0x223b78,'type':_0x322890[_0x43ae06(0x36a)]['REMOVE'],'op':_0x5ab281,'objects':_0x215f68}});}return{'redos':_0x881533,'undos':_0x1ed40c};}}return{'redos':[],'undos':[]};}}));}};_0x316ce3=_0x47d9ca([_0x403efc(0x0,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4292c2[_0x38c45a(0x403)])),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4eb9c3[_0x38c45a(0x416)])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x322890['ISheetDrawingService'])),_0x403efc(0x3,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5['SheetsShapeService']))],_0x316ce3);let _0x5175b6=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x2ceca9,_0x52dd6c,_0x116480,_0x44e2f2,_0x2bf956){const _0x3b52ae=_0x38c45a;super(),this[_0x3b52ae(0x245)]=_0x2ceca9,this['_shapeTextEditingService']=_0x52dd6c,this[_0x3b52ae(0x384)]=_0x116480,this[_0x3b52ae(0x4c1)]=_0x44e2f2,this['_sheetsShapeService']=_0x2bf956,_0x1d4f9f(this,_0x3b52ae(0x4a5),null),this['_initEvents'](),this['_initSelection'](),this[_0x3b52ae(0x4b9)]();}[_0x38c45a(0x20f)](){const _0x4663b0=_0x38c45a;let {scene:_0x49205c}=this[_0x4663b0(0x245)];this[_0x4663b0(0x29a)](_0x49205c[_0x4663b0(0x23f)][_0x4663b0(0x280)](_0x453ede=>{const _0x1f2be3=_0x4663b0;let {offsetX:_0x3118b3,offsetY:_0x407944}=_0x453ede,_0xb839a5=_0x49205c[_0x1f2be3(0x3cf)](_0x5446b3[_0x1f2be3(0x437)]['FromArray']([_0x3118b3,_0x407944]));if(_0xb839a5 instanceof _0x13daea){if((0x0,_0x1f20eb['isConnectorShape'])(this[_0x1f2be3(0x49d)]['getShapeType'](_0xb839a5['unitId'],_0xb839a5[_0x1f2be3(0x2cb)],_0xb839a5['shapeId'])))return;this[_0x1f2be3(0x326)][_0x1f2be3(0x44e)]({'visible':!0x0,'unitId':_0xb839a5[_0x1f2be3(0x3fb)],'subUnitId':_0xb839a5[_0x1f2be3(0x2cb)],'shapeId':_0xb839a5[_0x1f2be3(0x201)],'shapeKey':_0xb839a5[_0x1f2be3(0x406)]});}}));}[_0x38c45a(0x3e2)](){const _0x520956=_0x38c45a;this[_0x520956(0x29a)](this[_0x520956(0x384)]['focus$'][_0x520956(0x233)](_0x27dc7c=>{const _0x52b6c8=_0x520956;if(_0x27dc7c['length']===0x1){let _0x469edd=_0x27dc7c[0x0],_0x34eb25=this[_0x52b6c8(0x384)][_0x52b6c8(0x329)](_0x469edd);if((_0x34eb25==null?void 0x0:_0x34eb25[_0x52b6c8(0x372)])===_0x4292c2[_0x52b6c8(0x47d)][_0x52b6c8(0x252)]){let _0x77d5ef=this[_0x52b6c8(0x326)][_0x52b6c8(0x1ee)]();if((_0x77d5ef==null?void 0x0:_0x77d5ef[_0x52b6c8(0x201)])===_0x469edd[_0x52b6c8(0x30a)]&&_0x77d5ef[_0x52b6c8(0x29c)])return;(0x0,_0x1f20eb[_0x52b6c8(0x452)])(this[_0x52b6c8(0x49d)][_0x52b6c8(0x3aa)](_0x469edd[_0x52b6c8(0x3fb)],_0x469edd[_0x52b6c8(0x2cb)],_0x469edd['drawingId']))&&this[_0x52b6c8(0x326)][_0x52b6c8(0x44e)](null);}else this['_shapeTextEditingService']['getEditing']()&&(this[_0x52b6c8(0x326)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x307fc8=_0x52b6c8;this[_0x307fc8(0x326)][_0x307fc8(0x44e)](null);}));}else this[_0x52b6c8(0x326)][_0x52b6c8(0x1ee)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x3228b7=_0x52b6c8;this[_0x3228b7(0x326)][_0x3228b7(0x44e)](null);}));})),this[_0x520956(0x29a)](this[_0x520956(0x384)][_0x520956(0x364)][_0x520956(0x233)](_0x1aaff0=>{const _0x2668fb=_0x520956;let _0x548bfa=this['_shapeTextEditingService']['getEditing']();_0x548bfa&&_0x1aaff0['some'](_0x5b0060=>_0x5b0060[_0x2668fb(0x30a)]===_0x548bfa['shapeId'])&&this[_0x2668fb(0x326)][_0x2668fb(0x44e)](null);}));}[_0x38c45a(0x4b9)](){const _0x539f86=_0x38c45a;this[_0x539f86(0x29a)](this[_0x539f86(0x326)][_0x539f86(0x2f8)][_0x539f86(0x233)](_0x89dd46=>{const _0xb3a30e=_0x539f86;let {scene:_0x4d027c}=this[_0xb3a30e(0x245)];if(this['_lastEditingShapeKey']){let _0x98f65a=_0x4d027c[_0xb3a30e(0x323)](this[_0xb3a30e(0x4a5)]);_0x98f65a&&_0x98f65a[_0xb3a30e(0x44e)](!0x1);}if(_0x89dd46){let _0x5ba4df=!!_0x89dd46['visible'],_0x126bd2=_0x4d027c[_0xb3a30e(0x323)](_0x89dd46[_0xb3a30e(0x3fe)]);_0x126bd2&&(_0x126bd2['setEditing'](_0x5ba4df),this['_lastEditingShapeKey']=_0x89dd46[_0xb3a30e(0x3fe)]),this[_0xb3a30e(0x4c1)]['setContextValue'](_0x4292c2[_0xb3a30e(0x20c)],_0x5ba4df);}else this[_0xb3a30e(0x4a5)]=null,this[_0xb3a30e(0x4c1)][_0xb3a30e(0x4b0)](_0x4292c2[_0xb3a30e(0x20c)],!0x1);}));}};_0x5175b6=_0x47d9ca([_0x403efc(0x1,(0x0,_0x4292c2['Inject'])(_0x512648)),_0x403efc(0x2,_0x2a6651['IDrawingManagerService']),_0x403efc(0x3,_0x4292c2[_0x38c45a(0x31a)]),_0x403efc(0x4,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5['SheetsShapeService']))],_0x5175b6);function _0x2ac626(){const _0x17b7f8=_0x38c45a;return(0x0,_0x2e5d70['jsx'])(_0xd47359[_0x17b7f8(0x333)],{});}let _0x2f3f3b=class extends _0xd47359[_0x38c45a(0x402)]{constructor(_0x350152,_0x4b3f28,_0x4bcae4,_0x374ab4,_0x2bb676){const _0x4f1a83=_0x38c45a;super(_0x350152,_0x4b3f28,_0x4bcae4,_0x374ab4,_0x2bb676,{'componentKey':_0x4f1a83(0x390),'editorUnitId':_0x5eb222,'toolbarComponent':_0x2ac626});}};_0x2f3f3b=_0x47d9ca([_0x403efc(0x1,(0x0,_0x4292c2['Inject'])(_0x3c962b[_0x38c45a(0x2fc)])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x113d0c[_0x38c45a(0x4a1)])),_0x403efc(0x3,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4bdb1b['ComponentManager'])),_0x403efc(0x4,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x113d0c[_0x38c45a(0x285)]))],_0x2f3f3b);let _0x2710a0=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x19a2d3,_0x50be1e,_0x37037e,_0x5573aa,_0xaf78f,_0x1bfa50){const _0x2c7090=_0x38c45a;super(),this['_commandService']=_0x19a2d3,this['_renderManagerService']=_0x50be1e,this[_0x2c7090(0x384)]=_0x37037e,this[_0x2c7090(0x479)]=_0x5573aa,this[_0x2c7090(0x354)]=_0xaf78f,this[_0x2c7090(0x4bd)]=_0x1bfa50,this[_0x2c7090(0x4dc)]();}[_0x38c45a(0x4dc)](){const _0x1f3b05=_0x38c45a;this[_0x1f3b05(0x23b)](),this[_0x1f3b05(0x4d7)](),this[_0x1f3b05(0x32a)]();}[_0x38c45a(0x23b)](){const _0x3aa3a7=_0x38c45a;this[_0x3aa3a7(0x29a)](this[_0x3aa3a7(0x384)][_0x3aa3a7(0x205)][_0x3aa3a7(0x233)](_0x575e6b=>{const _0x2abfa0=_0x3aa3a7;this[_0x2abfa0(0x31c)](_0x575e6b);}));}['_commandExecutedListener'](){const _0x3b2d46=_0x38c45a;this[_0x3b2d46(0x29a)](this[_0x3b2d46(0x494)][_0x3b2d46(0x467)](_0x5e3cce=>{const _0x537164=_0x3b2d46;if(_0x5e3cce['id']===_0x50ebc5[_0x537164(0x1e9)]['id']){var _0x543521;let {unitId:_0x389b4d,subUnitId:_0x63ec90,shapeId:_0xbc7be8}=_0x5e3cce[_0x537164(0x44b)],_0x14b79b=this[_0x537164(0x1ef)](_0x389b4d);if(_0x14b79b==null)return;let {scene:_0xef8c8c}=_0x14b79b,_0xcc5f70=(0x0,_0x2a6651['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x389b4d,'subUnitId':_0x63ec90,'drawingId':_0xbc7be8}),_0x374a03=_0xef8c8c['getObjectIncludeInGroup'](_0xcc5f70);if(!((_0x543521=this[_0x537164(0x2a5)][_0x537164(0x407)](_0x389b4d))!=null&&_0x543521[_0x537164(0x474)](_0x4f2ee7[_0x537164(0x4d1)])[_0x537164(0x389)](_0x63ec90)))return!0x1;if(_0x374a03)return;this[_0x537164(0x31c)]([{'unitId':_0x389b4d,'subUnitId':_0x63ec90,'drawingId':_0xbc7be8}]);}}));}[_0x38c45a(0x32a)](){const _0x11e72a=_0x38c45a;this[_0x11e72a(0x29a)](this['_drawingManagerService'][_0x11e72a(0x262)][_0x11e72a(0x233)](_0x5eb095=>{_0x5eb095['forEach'](_0x1b5496=>{const _0x2228f5=_0x3edb;let {unitId:_0x2be640,subUnitId:_0x120861,drawingId:_0x57f9c0}=_0x1b5496,_0x58dfb8=this[_0x2228f5(0x384)]['getDrawingByParam'](_0x1b5496);if(_0x58dfb8==null)return;let {transform:_0x2b9a2b,drawingType:_0x5055e8,srcRect:_0xcc552e,prstGeom:_0x23633f}=_0x58dfb8;if(_0x5055e8!==_0x4292c2['DrawingTypeEnum'][_0x2228f5(0x252)])return;let _0x4e9268=this[_0x2228f5(0x1ef)](_0x2be640);if(_0x4e9268==null)return;let {scene:_0x56e995,transformer:_0x113092}=_0x4e9268;if(_0x2b9a2b==null)return!0x0;let _0x29e695=(0x0,_0x2a6651['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2be640,'subUnitId':_0x120861,'drawingId':_0x57f9c0}),_0x398ade=_0x56e995[_0x2228f5(0x323)](_0x29e695);if(_0x398ade==null)return!0x0;_0x398ade[_0x2228f5(0x4cf)](_0xcc552e),_0x398ade[_0x2228f5(0x453)](_0x23633f);});}));}[_0x38c45a(0x31c)](_0x490c29){const _0x10aea6=_0x38c45a;_0x490c29[_0x10aea6(0x4d2)](async _0x293155=>{const _0x229531=_0x10aea6;var _0x17bbe8;let {unitId:_0x72db13,subUnitId:_0x1cb5a0}=_0x293155,_0x470708=this[_0x229531(0x1ef)](_0x72db13),_0x1e1e01=(_0x17bbe8=(0x0,_0x4adf10[_0x229531(0x321)])(this[_0x229531(0x479)],_0x72db13))==null?void 0x0:_0x17bbe8[_0x229531(0x2cb)];if(_0x470708==null||_0x1e1e01!==_0x1cb5a0)return;let _0x3decde=this[_0x229531(0x384)][_0x229531(0x329)](_0x293155);if(_0x3decde!=null&&_0x3decde[_0x229531(0x372)]===_0x4292c2[_0x229531(0x47d)]['DRAWING_SHAPE']){if((0x0,_0x1f20eb['isConnectorShape'])((_0x3decde[_0x229531(0x22d)]||{})['shapeType'])){let _0x51a2e9=_0x3decde['transform'];_0x51a2e9&&(_0x3decde['transform']={..._0x51a2e9,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x229531(0x4bd)]['renderDrawingShape'](_0x3decde,_0x470708[_0x229531(0x30b)]),this['_drawingManagerService'][_0x229531(0x425)]([_0x3decde]);}});}[_0x38c45a(0x1ef)](_0x41f52d){const _0x5c22a7=_0x38c45a;if(_0x41f52d==null)return;let _0x32c629=this['_renderManagerService'][_0x5c22a7(0x407)](_0x41f52d),_0x20a957=_0x32c629==null?void 0x0:_0x32c629[_0x5c22a7(0x30b)];return _0x20a957==null?null:{'scene':_0x20a957,'transformer':_0x20a957[_0x5c22a7(0x2e8)]()};}};_0x2710a0=_0x47d9ca([_0x403efc(0x0,_0x4292c2[_0x38c45a(0x3de)]),_0x403efc(0x1,_0x5446b3[_0x38c45a(0x2dd)]),_0x403efc(0x2,_0x2a6651[_0x38c45a(0x3fd)]),_0x403efc(0x3,_0x4292c2[_0x38c45a(0x403)]),_0x403efc(0x4,(0x0,_0x4292c2['Inject'])(_0x4adf10[_0x38c45a(0x319)])),_0x403efc(0x5,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x3602fc))],_0x2710a0);let _0x34c96f={'normal':{'fill':_0x1f20eb[_0x38c45a(0x257)][_0x38c45a(0x4a2)],'stroke':_0x1f20eb[_0x38c45a(0x257)][_0x38c45a(0x4aa)],'strokeWidth':_0x1f20eb[_0x38c45a(0x257)][_0x38c45a(0x28d)]},'highlighted':{'fill':_0x38c45a(0x396),'stroke':_0x38c45a(0x1f7),'strokeWidth':0x2}};var _0xb305f8=class extends _0x5446b3[_0x38c45a(0x21e)]{constructor(_0x435b37,_0x2c6287){const _0x1cab61=_0x38c45a;super(_0x435b37,_0x2c6287),_0x1d4f9f(this,_0x1cab61(0x493),''),_0x1d4f9f(this,_0x1cab61(0x1fd),-0x1),_0x1d4f9f(this,_0x1cab61(0x2bf),''),_0x1d4f9f(this,_0x1cab61(0x1fa),''),_0x1d4f9f(this,_0x1cab61(0x36b),!0x1),_0x2c6287&&this[_0x1cab61(0x417)](_0x2c6287);}['getConnectionInfo'](){const _0x401bb5=_0x38c45a;return{'unitId':this[_0x401bb5(0x2bf)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x401bb5(0x493)],'cxnIndex':this[_0x401bb5(0x1fd)]};}[_0x38c45a(0x43a)](_0x560cb1){const _0x36eca3=_0x38c45a;this[_0x36eca3(0x36b)]!==_0x560cb1&&(this[_0x36eca3(0x36b)]=_0x560cb1,this[_0x36eca3(0x4c8)](!0x0));}[_0x38c45a(0x4c5)](){const _0x25f8b2=_0x38c45a;return this[_0x25f8b2(0x36b)];}[_0x38c45a(0x417)](_0x1b757d){const _0x3ad501=_0x38c45a;var _0x314163,_0xcfd082;_0x1b757d[_0x3ad501(0x284)]!==void 0x0&&(this['_targetShapeId']=_0x1b757d[_0x3ad501(0x284)]),_0x1b757d[_0x3ad501(0x366)]!==void 0x0&&(this['_cxnIndex']=_0x1b757d[_0x3ad501(0x366)]),_0x1b757d[_0x3ad501(0x3fb)]!==void 0x0&&(this[_0x3ad501(0x2bf)]=_0x1b757d[_0x3ad501(0x3fb)]),_0x1b757d[_0x3ad501(0x2cb)]!==void 0x0&&(this[_0x3ad501(0x1fa)]=_0x1b757d[_0x3ad501(0x2cb)]),_0x1b757d[_0x3ad501(0x4c5)]!==void 0x0&&(this[_0x3ad501(0x36b)]=_0x1b757d[_0x3ad501(0x4c5)]),this['transformByState']({'width':(_0x314163=_0x1b757d[_0x3ad501(0x24b)])==null?_0x1f20eb[_0x3ad501(0x257)][_0x3ad501(0x235)]*0x2:_0x314163,'height':(_0xcfd082=_0x1b757d[_0x3ad501(0x26d)])==null?_0x1f20eb[_0x3ad501(0x257)][_0x3ad501(0x235)]*0x2:_0xcfd082});}[_0x38c45a(0x31e)](_0x48ef78){const _0x2aa1d2=_0x38c45a;let _0x51db1b=this['_isHighlighted']?_0x34c96f[_0x2aa1d2(0x226)]:_0x34c96f[_0x2aa1d2(0x4e4)];_0x5446b3[_0x2aa1d2(0x2f6)][_0x2aa1d2(0x37e)](_0x48ef78,{'radius':_0x1f20eb[_0x2aa1d2(0x257)][_0x2aa1d2(0x235)],'fill':_0x51db1b[_0x2aa1d2(0x311)],'stroke':_0x51db1b[_0x2aa1d2(0x47e)],'strokeWidth':_0x51db1b['strokeWidth'],'evented':!0x0});}};let _0x54d996=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x3609b3,_0x2834a1,_0x1a6987,_0x33ca6b){const _0x1f7f97=_0x38c45a;super(),this[_0x1f7f97(0x245)]=_0x3609b3,this['_renderManagerService']=_0x2834a1,this['_drawingManagerService']=_0x1a6987,this[_0x1f7f97(0x49d)]=_0x33ca6b,_0x1d4f9f(this,_0x1f7f97(0x25e),[]),_0x1d4f9f(this,_0x1f7f97(0x3e7),null),_0x1d4f9f(this,'_highlightedSiteIndex',-0x1),_0x1d4f9f(this,'_currentScene',null),_0x1d4f9f(this,_0x1f7f97(0x2bf),''),_0x1d4f9f(this,_0x1f7f97(0x1fa),''),_0x1d4f9f(this,_0x1f7f97(0x2b7),null);}[_0x38c45a(0x461)](_0x35e689,_0x333336,_0x1d0a75,_0x338310){const _0x148c63=_0x38c45a;this[_0x148c63(0x3a5)]=_0x35e689,this[_0x148c63(0x2bf)]=_0x333336,this['_subUnitId']=_0x1d0a75,this[_0x148c63(0x2b7)]=_0x338310;}[_0x38c45a(0x3ea)](_0x134456){const _0x5286c9=_0x38c45a;if(!this['_currentScene'])return null;let _0x1eb645=this[_0x5286c9(0x4a7)](_0x134456);return _0x1eb645?(this[_0x5286c9(0x3e7)]!==_0x1eb645[_0x5286c9(0x201)]&&(this[_0x5286c9(0x3b9)](),this[_0x5286c9(0x32d)](_0x1eb645['shapeId'],_0x1eb645[_0x5286c9(0x3b5)]),this[_0x5286c9(0x3e7)]=_0x1eb645[_0x5286c9(0x201)]),this[_0x5286c9(0x405)](_0x134456)):(this[_0x5286c9(0x3e7)]!==null&&(this[_0x5286c9(0x3b9)](),this[_0x5286c9(0x3e7)]=null),null);}[_0x38c45a(0x48e)](){const _0x406738=_0x38c45a;this[_0x406738(0x3b9)](),this[_0x406738(0x3a5)]=null,this[_0x406738(0x3e7)]=null,this[_0x406738(0x21d)]=-0x1,this[_0x406738(0x2b7)]=null;}[_0x38c45a(0x350)](){const _0x45e7dd=_0x38c45a;return this['_activeTargetShapeId']===null||this[_0x45e7dd(0x21d)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x45e7dd(0x21d)]};}[_0x38c45a(0x4a7)](_0x3d141a){const _0x4d18b1=_0x38c45a;let _0x53eb6e=this[_0x4d18b1(0x384)][_0x4d18b1(0x240)](this['_unitId'],this['_subUnitId']);for(let _0x5cc1f7 of Object[_0x4d18b1(0x214)](_0x53eb6e)){if(_0x5cc1f7===this[_0x4d18b1(0x2b7)]||_0x53eb6e[_0x5cc1f7][_0x4d18b1(0x372)]!==_0x4292c2[_0x4d18b1(0x47d)][_0x4d18b1(0x252)])continue;let _0x2f6eaf=this[_0x4d18b1(0x49d)]['getShapeModel'](this[_0x4d18b1(0x2bf)],this[_0x4d18b1(0x1fa)],_0x5cc1f7);if(!_0x2f6eaf||(0x0,_0x1f20eb[_0x4d18b1(0x452)])(_0x2f6eaf['getShapeType']())||_0x2f6eaf['getConnectionSiteList']()[_0x4d18b1(0x492)]===0x0||!this[_0x4d18b1(0x3a5)])continue;let _0x462026=(0x0,_0x2a6651[_0x4d18b1(0x215)])({'unitId':this[_0x4d18b1(0x2bf)],'subUnitId':this[_0x4d18b1(0x1fa)],'drawingId':_0x5cc1f7}),_0x20d2f6=this[_0x4d18b1(0x3a5)]['getObjectIncludeInGroup'](_0x462026);if(!_0x20d2f6)continue;let {left:_0x1a6646,top:_0x3f739c,width:_0x2d6e46,height:_0x14330e}=_0x20d2f6[_0x4d18b1(0x435)](),_0x539a4e=_0x1a6646+_0x2d6e46/0x2,_0xbd8108=_0x3f739c+_0x14330e/0x2,_0x24e372=_0x20d2f6['transform']['getMatrix'](),_0x4e3feb=new _0x5446b3[(_0x4d18b1(0x3b7))]([_0x24e372[0x0],_0x24e372[0x1],_0x24e372[0x2],_0x24e372[0x3],_0x539a4e,_0xbd8108]),_0x22469a=_0x20d2f6[_0x4d18b1(0x3c9)](),_0x803b8a=(_0x20d2f6['isInGroup']&&(_0x22469a==null?void 0x0:_0x22469a[_0x4d18b1(0x374)])===_0x5446b3[_0x4d18b1(0x43c)][_0x4d18b1(0x2d2)]?_0x22469a[_0x4d18b1(0x289)][_0x4d18b1(0x249)](_0x4e3feb):_0x4e3feb)[_0x4d18b1(0x242)]()[_0x4d18b1(0x45d)](_0x3d141a),_0x7dd377=_0x2d6e46/0x2,_0x328461=_0x14330e/0x2;if(_0x803b8a['x']>=-_0x7dd377-0x5&&_0x803b8a['x']<=_0x7dd377+0x5&&_0x803b8a['y']>=-_0x328461-0x5&&_0x803b8a['y']<=_0x328461+0x5)return{'shapeId':_0x5cc1f7,'shapeModel':_0x2f6eaf};}return null;}[_0x38c45a(0x32d)](_0xe53f24,_0x48ddf4){const _0x3ce7d4=_0x38c45a;if(!this[_0x3ce7d4(0x3a5)])return;let _0x12d667=(0x0,_0x2a6651['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x3ce7d4(0x2bf)],'subUnitId':this['_subUnitId'],'drawingId':_0xe53f24}),_0x21250a=this['_currentScene'][_0x3ce7d4(0x323)](_0x12d667);if(!_0x21250a)return;let {left:_0x5ebbb1,top:_0x3db8ca,width:_0x1b6fb2,height:_0xc82ffe}=_0x21250a[_0x3ce7d4(0x435)](),_0x366380=_0x5ebbb1+_0x1b6fb2/0x2,_0x66db8c=_0x3db8ca+_0xc82ffe/0x2,_0x278c65=_0x21250a[_0x3ce7d4(0x217)][_0x3ce7d4(0x304)](),_0x146480=new _0x5446b3['Transform']([_0x278c65[0x0],_0x278c65[0x1],_0x278c65[0x2],_0x278c65[0x3],_0x366380,_0x66db8c]),_0x386e9b=_0x21250a[_0x3ce7d4(0x3c9)](),_0x4f4373=_0x21250a[_0x3ce7d4(0x360)]&&(_0x386e9b==null?void 0x0:_0x386e9b[_0x3ce7d4(0x374)])===_0x5446b3[_0x3ce7d4(0x43c)]['GROUP']?_0x386e9b[_0x3ce7d4(0x289)][_0x3ce7d4(0x249)](_0x146480):_0x146480;_0x48ddf4[_0x3ce7d4(0x42b)]({'width':_0x1b6fb2,'height':_0xc82ffe});let _0x40ea43=_0x48ddf4[_0x3ce7d4(0x456)]();for(let _0x5a6809 of _0x40ea43){let _0x272269=_0x5a6809['x']-_0x1b6fb2/0x2,_0x45edd3=_0x5a6809['y']-_0xc82ffe/0x2,_0x5349fe=_0x4f4373[_0x3ce7d4(0x45d)]({'x':_0x272269,'y':_0x45edd3}),_0x175c02=_0x5349fe['x'],_0x347458=_0x5349fe['y'],_0x86454a=new _0xb305f8(_0x3ce7d4(0x37d)+_0xe53f24+'-'+_0x5a6809[_0x3ce7d4(0x2c0)],{'left':_0x175c02-_0x1f20eb[_0x3ce7d4(0x257)][_0x3ce7d4(0x235)],'top':_0x347458-_0x1f20eb[_0x3ce7d4(0x257)][_0x3ce7d4(0x235)],'targetShapeId':_0xe53f24,'cxnIndex':_0x5a6809[_0x3ce7d4(0x2c0)],'unitId':this['_unitId'],'subUnitId':this[_0x3ce7d4(0x1fa)],'width':_0x1f20eb[_0x3ce7d4(0x257)][_0x3ce7d4(0x235)]*0x2,'height':_0x1f20eb[_0x3ce7d4(0x257)][_0x3ce7d4(0x235)]*0x2,'zIndex':_0x5446b3['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x3ce7d4(0x25e)]['push'](_0x86454a),this[_0x3ce7d4(0x3a5)]['addObject'](_0x86454a,_0x5446b3[_0x3ce7d4(0x275)]+0x2);}}['_findNearestConnectionSite'](_0x3a5541){const _0x716e4=_0x38c45a;let _0x7db246=null,_0x1525e8=0x1/0x0,_0x55fbe4=null;for(let _0x1b771e of this[_0x716e4(0x25e)]){let _0x4a120f=_0x1b771e[_0x716e4(0x346)]+_0x1f20eb[_0x716e4(0x257)][_0x716e4(0x235)],_0x2cf1f2=_0x1b771e['top']+_0x1f20eb['ShapeDefaultConfig'][_0x716e4(0x235)],_0xa3d654=_0x3a5541['x']-_0x4a120f,_0x231ae3=_0x3a5541['y']-_0x2cf1f2,_0x3627c0=Math[_0x716e4(0x3d9)](_0xa3d654*_0xa3d654+_0x231ae3*_0x231ae3);_0x3627c0<_0x1525e8&&(_0x1525e8=_0x3627c0,_0x7db246=_0x1b771e,_0x55fbe4={'x':_0x4a120f,'y':_0x2cf1f2});}let _0xae56c8=_0x1525e8<=0xa&&_0x7db246?_0x7db246[_0x716e4(0x340)]()[_0x716e4(0x366)]:-0x1;if(_0xae56c8!==this['_highlightedSiteIndex']){for(let _0x3d89a3 of this[_0x716e4(0x25e)]){let _0x1ec369=_0x3d89a3[_0x716e4(0x340)]();_0x3d89a3[_0x716e4(0x43a)](_0x1ec369[_0x716e4(0x366)]===_0xae56c8);}this['_highlightedSiteIndex']=_0xae56c8;}if(_0x1525e8<=0xa&&_0x7db246&&_0x55fbe4){let _0x5bf398=_0x7db246[_0x716e4(0x340)](),_0xae0dd0=this[_0x716e4(0x4e3)](_0x5bf398[_0x716e4(0x201)],_0x5bf398[_0x716e4(0x366)]);return{'shapeId':_0x5bf398[_0x716e4(0x201)],'cxnIndex':_0x5bf398[_0x716e4(0x366)],'unitId':_0x5bf398[_0x716e4(0x3fb)],'subUnitId':_0x5bf398[_0x716e4(0x2cb)],'worldPoint':_0x55fbe4,'angle':_0xae0dd0};}return null;}[_0x38c45a(0x4e3)](_0x2975d2,_0x3c56ed){const _0x2083d6=_0x38c45a;let _0x35a71b=this[_0x2083d6(0x49d)][_0x2083d6(0x351)](this[_0x2083d6(0x2bf)],this[_0x2083d6(0x1fa)],_0x2975d2);if(!_0x35a71b)return 0x0;let _0x4e715c=this['_drawingManagerService'][_0x2083d6(0x329)]({'unitId':this[_0x2083d6(0x2bf)],'subUnitId':this[_0x2083d6(0x1fa)],'drawingId':_0x2975d2});if(!(_0x4e715c!=null&&_0x4e715c[_0x2083d6(0x217)]))return 0x0;let {width:_0x4c4823=0x0,height:_0x26842b=0x0,flipX:_0xce6c8e=!0x1,flipY:_0x224fb3=!0x1}=_0x4e715c['transform'];_0x35a71b['updateContext']({'width':_0x4c4823,'height':_0x26842b});let _0x5cd6d9=_0x35a71b[_0x2083d6(0x456)]()[_0x2083d6(0x44d)](_0x5c8d9c=>_0x5c8d9c['index']===_0x3c56ed);if(!_0x5cd6d9)return 0x0;let _0x228493=_0x5cd6d9[_0x2083d6(0x327)]/0xea60;return _0xce6c8e&&(_0x228493=0xb4-_0x228493),_0x224fb3&&(_0x228493=-_0x228493),_0x228493=(_0x228493%0x168+0x168)%0x168,_0x228493;}[_0x38c45a(0x3b9)](){const _0x2237ee=_0x38c45a;for(let _0x6c8ab6 of this[_0x2237ee(0x25e)])_0x6c8ab6[_0x2237ee(0x4db)]();this[_0x2237ee(0x25e)]=[],this[_0x2237ee(0x21d)]=-0x1;}[_0x38c45a(0x4db)](){const _0x500646=_0x38c45a;this[_0x500646(0x3b9)](),super[_0x500646(0x4db)]();}};_0x54d996=_0x47d9ca([_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x5446b3[_0x38c45a(0x2dd)])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x2a6651['IDrawingManagerService'])),_0x403efc(0x3,(0x0,_0x4292c2['Inject'])(_0x50ebc5[_0x38c45a(0x1f3)]))],_0x54d996);let _0x439fbe=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x1cf348,_0x740fc6,_0x22254f,_0x19ce82,_0x4967da){const _0x5d2a67=_0x38c45a;super(),this[_0x5d2a67(0x27a)]=_0x1cf348,this[_0x5d2a67(0x32b)]=_0x740fc6,this['_sheetDrawingService']=_0x22254f,this['_shapeService']=_0x19ce82,this[_0x5d2a67(0x38b)]=_0x4967da,_0x1d4f9f(this,_0x5d2a67(0x40f),void 0x0),this['_initCopyPaste'](),this[_0x5d2a67(0x212)]();}get[_0x38c45a(0x282)](){const _0x17a923=_0x38c45a;return this['_sheetDrawingService'][_0x17a923(0x365)]();}['_registerGroupFeaturePasteHook'](){const _0x4d56f4=_0x38c45a;this[_0x4d56f4(0x38b)]['registerFeaturePasteHook'](({fromUnitId:_0xd06f78,fromSubUnitId:_0x7ea6fb,toUnitId:_0x5a87ba,toSubUnitId:_0x322218,idMap:_0x315270})=>{const _0x4e97eb=_0x4d56f4;let _0xf45abb=[],_0x93a4a0=[];for(let [_0x12e943,_0x467868]of _0x315270[_0x4e97eb(0x37c)]()){let _0x3338fa=this[_0x4e97eb(0x20b)][_0x4e97eb(0x351)](_0xd06f78,_0x7ea6fb,_0x12e943);if(!_0x3338fa)continue;let _0x59dd24=_0x3338fa[_0x4e97eb(0x3aa)](),_0x14b1e4=JSON['parse'](JSON['stringify'](_0x3338fa[_0x4e97eb(0x473)]()));if(_0x14b1e4['relation']){var _0x497cf5,_0x34b5b3;let _0x206a41=(_0x497cf5=_0x14b1e4[_0x4e97eb(0x2b1)]['from'])==null?void 0x0:_0x497cf5[_0x4e97eb(0x201)],_0x273975=(_0x34b5b3=_0x14b1e4[_0x4e97eb(0x2b1)]['to'])==null?void 0x0:_0x34b5b3['shapeId'],_0x49d29d=_0x206a41?_0x315270[_0x4e97eb(0x2f5)](_0x206a41):!0x0,_0x4c5831=_0x273975?_0x315270[_0x4e97eb(0x2f5)](_0x273975):!0x0;_0x49d29d&&_0x206a41&&_0x14b1e4[_0x4e97eb(0x2b1)][_0x4e97eb(0x4e2)]?_0x14b1e4[_0x4e97eb(0x2b1)][_0x4e97eb(0x4e2)]={..._0x14b1e4[_0x4e97eb(0x2b1)][_0x4e97eb(0x4e2)],'shapeId':_0x315270[_0x4e97eb(0x3d3)](_0x206a41)}:_0x14b1e4[_0x4e97eb(0x2b1)][_0x4e97eb(0x4e2)]=void 0x0,_0x4c5831&&_0x273975&&_0x14b1e4[_0x4e97eb(0x2b1)]['to']?_0x14b1e4[_0x4e97eb(0x2b1)]['to']={..._0x14b1e4['relation']['to'],'shapeId':_0x315270[_0x4e97eb(0x3d3)](_0x273975)}:_0x14b1e4[_0x4e97eb(0x2b1)]['to']=void 0x0;}_0xf45abb['push']({'id':_0x50ebc5[_0x4e97eb(0x1e9)]['id'],'params':{'unitId':_0x5a87ba,'subUnitId':_0x322218,'shapeId':_0x467868,'shapeType':_0x59dd24,'shapeData':_0x14b1e4}}),_0x93a4a0[_0x4e97eb(0x33f)]({'id':_0x50ebc5['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5a87ba,'subUnitId':_0x322218,'shapeId':_0x467868}});}return{'redos':_0xf45abb,'undos':_0x93a4a0};});}['_initCopyPaste'](){const _0x27e5cc=_0x38c45a;this[_0x27e5cc(0x29a)](this['_sheetClipboardService'][_0x27e5cc(0x223)]({'id':_0x27e5cc(0x207),'onBeforeCopy':(_0x4bd440,_0x249dd2,_0x289415,_0x34b7be)=>{const _0x2f19f1=_0x27e5cc;this[_0x2f19f1(0x40f)]=null;let _0x1d84d8=this['_focusedDrawings'];if(_0x1d84d8[_0x2f19f1(0x492)]){let _0x18ff57=_0x1d84d8[_0x2f19f1(0x3d5)](_0x43c56b=>_0x43c56b['drawingType']===_0x4292c2[_0x2f19f1(0x47d)]['DRAWING_SHAPE']);if(_0x18ff57['length']===0x0)return;this[_0x2f19f1(0x40f)]={'unitId':_0x4bd440,'subUnitId':_0x249dd2,'copyType':_0x34b7be,'drawings':_0x18ff57};}else this['_createCopyInfoByRange'](_0x4bd440,_0x249dd2,_0x289415,_0x34b7be);},'onPasteCells':(_0x308309,_0x4a24f7,_0x8d2398,_0x441f72)=>{const _0x49b2bb=_0x27e5cc;if(!this[_0x49b2bb(0x40f)])return{'redos':[],'undos':[]};let {pasteType:_0x4ae204}=_0x441f72;return _0x4ae204===_0x4f2ee7['PREDEFINED_HOOK_NAME'][_0x49b2bb(0x334)]?this[_0x49b2bb(0x434)](_0x4a24f7,this[_0x49b2bb(0x40f)][_0x49b2bb(0x29d)]===_0x4f2ee7['COPY_TYPE'][_0x49b2bb(0x412)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xb8c42d=>this['_copyInfo']?this[_0x27e5cc(0x434)](_0xb8c42d,this[_0x27e5cc(0x40f)]['copyType']===_0x4f2ee7[_0x27e5cc(0x2c1)][_0x27e5cc(0x412)]):{'redos':[],'undos':[]}}));}[_0x38c45a(0x4ae)](_0x3009b5,_0x54885c,_0x9e6c6b,_0x458a46){const _0x4d0357=_0x38c45a;let _0x5280be=this['_sheetSkeletonService'][_0x4d0357(0x389)](_0x3009b5,_0x54885c);if(!_0x5280be)return;let _0x5146aa=(0x0,_0x4eb9c3[_0x4d0357(0x2a4)])(_0x5280be,_0x9e6c6b);if(!_0x5146aa)return;let {startX:_0x2537b2,endX:_0x100671,startY:_0x16e177,endY:_0x4188d5}=_0x5146aa,_0x3d702a=this[_0x4d0357(0x3b2)]['getDrawingData'](_0x3009b5,_0x54885c),_0x11d4ce=this['_focusedDrawings'][_0x4d0357(0x310)]();for(let [_0x4cf0a2,_0x42883f]of Object[_0x4d0357(0x37c)](_0x3d702a)){if(_0x42883f['drawingType']!==_0x4292c2[_0x4d0357(0x47d)][_0x4d0357(0x252)])continue;let {transform:_0x425927}=_0x42883f;if(!_0x425927)continue;let {left:_0x5798a0=0x0,top:_0x241596=0x0,width:_0x1b8b34=0x0,height:_0xe192a5=0x0}=_0x425927;_0x2537b2<=_0x5798a0&&_0x100671>=_0x5798a0+_0x1b8b34&&_0x16e177<=_0x241596&&_0x4188d5>=_0x241596+_0xe192a5&&_0x11d4ce['push'](_0x42883f);}_0x11d4ce[_0x4d0357(0x492)]>0x0&&(this[_0x4d0357(0x40f)]={'unitId':_0x3009b5,'subUnitId':_0x54885c,'copyType':_0x458a46,'copyRange':_0x9e6c6b,'drawings':_0x11d4ce});}['_generatePasteMutations'](_0x26934e,_0x198d65){const _0x321f25=_0x38c45a;let {unitId:_0x594372,subUnitId:_0x1c36fa,range:_0x12bc49}=_0x26934e,_0x365eec=this[_0x321f25(0x27a)][_0x321f25(0x389)](_0x594372,_0x1c36fa);if(!_0x365eec)return{'redos':[],'undos':[]};let _0x46bf6c=(0x0,_0x4eb9c3[_0x321f25(0x24d)])(_0x12bc49),{unitId:_0x451d94,subUnitId:_0x2994f5,copyRange:_0x14a890,drawings:_0x183c60}=this[_0x321f25(0x40f)],_0x5d27d8=this[_0x321f25(0x27a)]['getSkeleton'](_0x451d94,_0x2994f5);if(!_0x5d27d8)return{'redos':[],'undos':[]};let _0x26dfd5;if(!_0x14a890){let _0x5ca9a9=0x1/0x0,_0x68f138=0x1/0x0;for(let _0x2e30a1 of _0x183c60){var _0x253a84;let {left:_0x9bfe3a=0x0,top:_0x23c5a7=0x0}=(_0x253a84=_0x2e30a1[_0x321f25(0x217)])==null?{}:_0x253a84;_0x9bfe3a<_0x5ca9a9&&(_0x5ca9a9=_0x9bfe3a),_0x23c5a7<_0x68f138&&(_0x68f138=_0x23c5a7);}_0x5ca9a9!==0x1/0x0&&_0x68f138!==0x1/0x0&&(_0x26dfd5={'left':_0x5ca9a9,'top':_0x68f138});}let _0x55c891=new Map();if(!_0x198d65){for(let _0x83318f of _0x183c60)_0x55c891[_0x321f25(0x356)](_0x83318f[_0x321f25(0x30a)],(0x0,_0x4292c2[_0x321f25(0x3ac)])());}let _0x3c116b=[],_0x58fb11=[];for(let _0x28f1da of _0x183c60){let {drawingId:_0x257a18,transform:_0x2fe555,sheetTransform:_0x2a7b15}=_0x28f1da;if(!_0x2fe555||!_0x2a7b15)continue;let _0x186254=this[_0x321f25(0x386)]({'transform':_0x2fe555,'sheetTransform':_0x2a7b15},{'skeleton':_0x5d27d8,'range':_0x14a890},{'skeleton':_0x365eec,'range':_0x46bf6c},_0x26dfd5);if(_0x198d65){let {redos:_0xa7934f,undos:_0x4c95ce}=this[_0x321f25(0x26c)]({'fromUnitId':_0x451d94,'fromSubUnitId':_0x2994f5,'toUnitId':_0x594372,'toSubUnitId':_0x1c36fa,'drawing':_0x28f1da,'newTransforms':_0x186254});_0x3c116b[_0x321f25(0x33f)](..._0xa7934f),_0x58fb11[_0x321f25(0x33f)](..._0x4c95ce);continue;}let {redos:_0x4ad68d,undos:_0x1e6066}=this[_0x321f25(0x2d8)]({'toUnitId':_0x594372,'toSubUnitId':_0x1c36fa,'drawing':_0x28f1da,'newTransforms':_0x186254,'newDrawingId':_0x55c891['get'](_0x257a18),'idMap':_0x55c891});_0x3c116b[_0x321f25(0x33f)](..._0x4ad68d),_0x58fb11[_0x321f25(0x33f)](..._0x1e6066);}return{'redos':_0x3c116b,'undos':_0x58fb11};}[_0x38c45a(0x26c)](_0x38de72){const _0x49b314=_0x38c45a;let {fromUnitId:_0x40b4c8,fromSubUnitId:_0x224045,toUnitId:_0x42afbc,toSubUnitId:_0x49d640,drawing:_0x21ba31,newTransforms:_0x3d6b97}=_0x38de72,_0x28c51e={..._0x21ba31,'unitId':_0x42afbc,'subUnitId':_0x49d640,'transform':_0x3d6b97['transform'],'sheetTransform':_0x3d6b97[_0x49b314(0x2cc)]};if(_0x42afbc===_0x40b4c8&&_0x49d640===_0x224045){let {redo:_0x36e2fd,undo:_0x28be69,objects:_0x220205}=this[_0x49b314(0x3b2)][_0x49b314(0x265)]([_0x28c51e]);return{'redos':[{'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x2f1)],'op':_0x36e2fd,'objects':_0x220205}}],'undos':[{'id':_0x322890[_0x49b314(0x472)]['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x2f1)],'op':_0x28be69,'objects':_0x220205}}]};}else{let _0x55dfd7=this['_sheetDrawingService'][_0x49b314(0x2b5)]([_0x21ba31]),_0x41db84=this[_0x49b314(0x3b2)][_0x49b314(0x426)]([_0x28c51e]),_0x550f1d=this[_0x49b314(0x20b)][_0x49b314(0x351)](_0x21ba31[_0x49b314(0x3fb)],_0x21ba31[_0x49b314(0x2cb)],_0x21ba31[_0x49b314(0x30a)]);if(!_0x550f1d)return{'redos':[],'undos':[]};let _0x1013de=_0x550f1d[_0x49b314(0x3aa)](),_0x5f0668=JSON[_0x49b314(0x496)](JSON['stringify'](_0x550f1d[_0x49b314(0x473)]()));return{'redos':[{'id':_0x322890[_0x49b314(0x472)]['id'],'params':{'unitId':_0x40b4c8,'subUnitId':_0x224045,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x33b)],'op':_0x55dfd7[_0x49b314(0x342)],'objects':_0x55dfd7[_0x49b314(0x220)]}},{'id':_0x50ebc5['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x40b4c8,'subUnitId':_0x224045,'shapeId':_0x21ba31[_0x49b314(0x30a)]}},{'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x295)],'op':_0x41db84[_0x49b314(0x342)],'objects':_0x41db84['objects']}},{'id':_0x50ebc5[_0x49b314(0x1e9)]['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'shapeId':_0x21ba31[_0x49b314(0x30a)],'shapeType':_0x1013de,'shapeData':_0x5f0668}}],'undos':[{'id':_0x322890[_0x49b314(0x472)]['id'],'params':{'unitId':_0x40b4c8,'subUnitId':_0x224045,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x295)],'op':_0x55dfd7[_0x49b314(0x3bd)],'objects':_0x55dfd7['objects']}},{'id':_0x50ebc5[_0x49b314(0x1e9)]['id'],'params':{'unitId':_0x40b4c8,'subUnitId':_0x224045,'shapeId':_0x21ba31[_0x49b314(0x30a)],'shapeType':_0x1013de,'shapeData':_0x5f0668}},{'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'type':_0x322890[_0x49b314(0x36a)][_0x49b314(0x33b)],'op':_0x41db84['undo'],'objects':_0x41db84['objects']}},{'id':_0x50ebc5['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x42afbc,'subUnitId':_0x49d640,'shapeId':_0x21ba31[_0x49b314(0x30a)]}}]};}}['_generateCopyPasteMutations'](_0x2e5fdd){const _0x3e6d28=_0x38c45a;let {toUnitId:_0x2b03ac,toSubUnitId:_0xbd0e2,drawing:_0x4522a5,newTransforms:_0x1e0b92,newDrawingId:_0x3eb7d7,idMap:_0x321103}=_0x2e5fdd,_0x4dbb61={..._0x4522a5,'unitId':_0x2b03ac,'subUnitId':_0xbd0e2,'drawingId':_0x3eb7d7,'transform':_0x1e0b92[_0x3e6d28(0x217)],'sheetTransform':_0x1e0b92['sheetTransform']},{redo:_0x4cef87,undo:_0x1ef4ec,objects:_0xea29f5}=this[_0x3e6d28(0x3b2)][_0x3e6d28(0x426)]([_0x4dbb61]),_0x6dd6bd=this[_0x3e6d28(0x20b)][_0x3e6d28(0x351)](_0x4522a5[_0x3e6d28(0x3fb)],_0x4522a5[_0x3e6d28(0x2cb)],_0x4522a5[_0x3e6d28(0x30a)]);if(!_0x6dd6bd)return{'redos':[],'undos':[]};let _0x595f3d=_0x6dd6bd[_0x3e6d28(0x3aa)](),_0x929008=JSON['parse'](JSON[_0x3e6d28(0x485)](_0x6dd6bd[_0x3e6d28(0x473)]()));if(_0x929008[_0x3e6d28(0x2b1)]){var _0x5ead30,_0xea39d6;let _0x90d499=(_0x5ead30=_0x929008['relation'][_0x3e6d28(0x4e2)])==null?void 0x0:_0x5ead30['shapeId'],_0x5a5ec9=(_0xea39d6=_0x929008[_0x3e6d28(0x2b1)]['to'])==null?void 0x0:_0xea39d6[_0x3e6d28(0x201)],_0x1dfdff=_0x90d499?_0x321103[_0x3e6d28(0x2f5)](_0x90d499):!0x0,_0x28c22b=_0x5a5ec9?_0x321103[_0x3e6d28(0x2f5)](_0x5a5ec9):!0x0;_0x1dfdff&&_0x90d499&&_0x929008[_0x3e6d28(0x2b1)][_0x3e6d28(0x4e2)]?_0x929008[_0x3e6d28(0x2b1)][_0x3e6d28(0x4e2)]={..._0x929008[_0x3e6d28(0x2b1)][_0x3e6d28(0x4e2)],'shapeId':_0x321103['get'](_0x90d499)}:_0x929008[_0x3e6d28(0x2b1)][_0x3e6d28(0x4e2)]=void 0x0,_0x28c22b&&_0x5a5ec9&&_0x929008[_0x3e6d28(0x2b1)]['to']?_0x929008[_0x3e6d28(0x2b1)]['to']={..._0x929008['relation']['to'],'shapeId':_0x321103['get'](_0x5a5ec9)}:_0x929008[_0x3e6d28(0x2b1)]['to']=void 0x0;}return{'redos':[{'id':_0x322890['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2b03ac,'subUnitId':_0xbd0e2,'type':_0x322890[_0x3e6d28(0x36a)][_0x3e6d28(0x295)],'op':_0x4cef87,'objects':_0xea29f5}},{'id':_0x50ebc5[_0x3e6d28(0x1e9)]['id'],'params':{'unitId':_0x2b03ac,'subUnitId':_0xbd0e2,'shapeId':_0x3eb7d7,'shapeType':_0x595f3d,'shapeData':_0x929008}}],'undos':[{'id':_0x322890[_0x3e6d28(0x472)]['id'],'params':{'unitId':_0x2b03ac,'subUnitId':_0xbd0e2,'type':_0x322890['DrawingApplyType'][_0x3e6d28(0x33b)],'op':_0x1ef4ec,'objects':_0xea29f5}},{'id':_0x50ebc5['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x2b03ac,'subUnitId':_0xbd0e2,'shapeId':_0x3eb7d7}}]};}[_0x38c45a(0x386)](_0x3a422d,_0x13828c,_0x47672c,_0x464136){const _0xca22e8=_0x38c45a;var _0x13d824;let {range:_0x4934e5,skeleton:_0x16ee31}=_0x13828c,{range:_0x4becf9,skeleton:_0x2737df}=_0x47672c,{transform:_0x27e4ce,sheetTransform:_0x16dabc}=_0x3a422d,_0x4bc7f3={..._0x27e4ce};if(_0x4934e5){let _0x4f8bdf=(0x0,_0x4eb9c3['attachRangeWithCoord'])(_0x16ee31,_0x4934e5),_0x5d1b4e=(0x0,_0x4eb9c3[_0xca22e8(0x2a4)])(_0x2737df,_0x4becf9);if(_0x4f8bdf&&_0x5d1b4e){var _0x36789a,_0x56b286;let _0x4cc0ee=_0x5d1b4e[_0xca22e8(0x2f0)]-_0x4f8bdf['startX'],_0x2b9c7b=_0x5d1b4e[_0xca22e8(0x325)]-_0x4f8bdf[_0xca22e8(0x325)];_0x4bc7f3['left']=((_0x36789a=_0x4bc7f3[_0xca22e8(0x346)])==null?0x0:_0x36789a)+_0x4cc0ee,_0x4bc7f3[_0xca22e8(0x38a)]=((_0x56b286=_0x4bc7f3[_0xca22e8(0x38a)])==null?0x0:_0x56b286)+_0x2b9c7b;}}else{let _0x2c284a=(0x0,_0x4eb9c3[_0xca22e8(0x2a4)])(_0x2737df,_0x4becf9);if(_0x464136&&_0x2c284a){var _0x3dd129,_0x815e6e;let _0x4cc473=((_0x3dd129=_0x4bc7f3[_0xca22e8(0x346)])==null?0x0:_0x3dd129)-_0x464136['left'],_0x225501=((_0x815e6e=_0x4bc7f3[_0xca22e8(0x38a)])==null?0x0:_0x815e6e)-_0x464136[_0xca22e8(0x38a)];_0x4bc7f3[_0xca22e8(0x346)]=_0x2c284a[_0xca22e8(0x2f0)]+_0x4cc473,_0x4bc7f3[_0xca22e8(0x38a)]=_0x2c284a[_0xca22e8(0x325)]+_0x225501;}else _0x4bc7f3[_0xca22e8(0x346)]=_0x2c284a==null?void 0x0:_0x2c284a[_0xca22e8(0x2f0)],_0x4bc7f3[_0xca22e8(0x38a)]=_0x2c284a==null?void 0x0:_0x2c284a[_0xca22e8(0x325)];}return{'transform':_0x4bc7f3,'sheetTransform':(_0x13d824=(0x0,_0x322890[_0xca22e8(0x25a)])(_0x4bc7f3,_0x2737df))==null?_0x16dabc:_0x13d824};}};_0x439fbe=_0x47d9ca([_0x403efc(0x0,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4eb9c3[_0x38c45a(0x2e6)])),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4f2ee7[_0x38c45a(0x1f2)])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x322890[_0x38c45a(0x2ff)])),_0x403efc(0x3,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5[_0x38c45a(0x1f3)])),_0x403efc(0x4,(0x0,_0x4292c2['Inject'])(_0x20dd8d[_0x38c45a(0x2d1)]))],_0x439fbe);var _0x438726=class extends _0x5446b3[_0x38c45a(0x21e)]{constructor(_0x89798d,_0xdac556){const _0x5eed2d=_0x38c45a;super(_0x89798d,_0xdac556),_0x1d4f9f(this,'_shapeId',null),_0x1d4f9f(this,'_index',null),_0x1d4f9f(this,_0x5eed2d(0x2bf),null),_0x1d4f9f(this,_0x5eed2d(0x1fa),null),_0x1d4f9f(this,_0x5eed2d(0x27b),!0x1),_0xdac556&&this['setShapeProps'](_0xdac556);}[_0x38c45a(0x482)](){const _0x43dfe3=_0x38c45a;return{'unitId':this[_0x43dfe3(0x2bf)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x38c45a(0x417)](_0x31158c){const _0x3dec4c=_0x38c45a;_0x31158c[_0x3dec4c(0x201)]!==void 0x0&&(this['_shapeId']=_0x31158c['shapeId']),_0x31158c['unitId']!==void 0x0&&(this['_unitId']=_0x31158c[_0x3dec4c(0x3fb)]),_0x31158c[_0x3dec4c(0x2cb)]!==void 0x0&&(this[_0x3dec4c(0x1fa)]=_0x31158c[_0x3dec4c(0x2cb)]),_0x31158c[_0x3dec4c(0x394)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x31158c[_0x3dec4c(0x394)]),this[_0x3dec4c(0x441)]({'width':_0x31158c[_0x3dec4c(0x24b)],'height':_0x31158c[_0x3dec4c(0x26d)]});}['_draw'](_0x3b83aa){const _0x3c9ed8=_0x38c45a;_0x5446b3['Circle']['drawWith'](_0x3b83aa,{'radius':_0x1f20eb[_0x3c9ed8(0x257)][_0x3c9ed8(0x235)],'fill':_0x1f20eb[_0x3c9ed8(0x257)][_0x3c9ed8(0x4a2)],'stroke':_0x1f20eb['ShapeDefaultConfig']['cxnPointStroke'],'strokeWidth':_0x1f20eb[_0x3c9ed8(0x257)][_0x3c9ed8(0x28d)],'evented':!0x0});}};let _0x36e164=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0xdbe25,_0x4a3b79,_0xf3a499,_0x15a303,_0x5d4361,_0x2ff5bd,_0x18f990,_0x24470d){const _0x447b1d=_0x38c45a;super(),this[_0x447b1d(0x245)]=_0xdbe25,this['_commandService']=_0x4a3b79,this['_renderManagerService']=_0xf3a499,this[_0x447b1d(0x384)]=_0x15a303,this['_univerInstanceService']=_0x5d4361,this[_0x447b1d(0x49d)]=_0x2ff5bd,this[_0x447b1d(0x261)]=_0x18f990,this[_0x447b1d(0x399)]=_0x24470d,_0x1d4f9f(this,_0x447b1d(0x3b0),void 0x0),_0x1d4f9f(this,'_unitId',void 0x0),_0x1d4f9f(this,'_subUnitId',void 0x0),_0x1d4f9f(this,'_connectorObjects',[]),_0x1d4f9f(this,_0x447b1d(0x264),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x1d4f9f(this,'_activeShapeModel',void 0x0),_0x1d4f9f(this,_0x447b1d(0x4d6),!0x1),_0x1d4f9f(this,_0x447b1d(0x367),!0x1),_0x1d4f9f(this,'_hasReset',!0x1),_0x1d4f9f(this,_0x447b1d(0x415),void 0x0),_0x1d4f9f(this,'_cxtHandlerPointerUp',void 0x0),_0x1d4f9f(this,_0x447b1d(0x2ac),null),this[_0x447b1d(0x4dc)]();}[_0x38c45a(0x4dc)](){const _0x2f7807=_0x38c45a;this[_0x2f7807(0x2e3)](),this[_0x2f7807(0x3a6)]();}[_0x38c45a(0x1ec)](){const _0x5b7976=_0x38c45a;if(!this[_0x5b7976(0x2bf)]||!this[_0x5b7976(0x1fa)]||!this[_0x5b7976(0x3b0)])return;let _0x5f4fa1={'unitId':this[_0x5b7976(0x2bf)],'subUnitId':this[_0x5b7976(0x1fa)],'drawingId':this['_activeShapeId']},{transform:_0x2c2a4a}=this['_drawingManagerService'][_0x5b7976(0x329)](_0x5f4fa1);if(_0x2c2a4a)return{'left':_0x2c2a4a['left']||0x0,'top':_0x2c2a4a['top']||0x0,'width':_0x2c2a4a[_0x5b7976(0x24b)]||0x0,'height':_0x2c2a4a[_0x5b7976(0x26d)]||0x0,'flipX':_0x2c2a4a[_0x5b7976(0x21a)]||!0x1,'flipY':_0x2c2a4a[_0x5b7976(0x30d)]||!0x1,'angle':_0x2c2a4a['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x11a57e=_0x38c45a;if(this['_unitId']===void 0x0||this[_0x11a57e(0x1fa)]===void 0x0||this[_0x11a57e(0x3b0)]===void 0x0)return;let _0x29f5b1=this['_renderManagerService'][_0x11a57e(0x407)](this['_unitId']);if(!_0x29f5b1||!_0x29f5b1[_0x11a57e(0x474)](_0x4f2ee7[_0x11a57e(0x4d1)])['getCurrentSkeleton']())return;let {scene:_0x45705c}=_0x29f5b1,_0x25d802=this['_getDrawingRect']();if(!_0x25d802)return;let _0x409faf=this[_0x11a57e(0x49d)][_0x11a57e(0x351)](this['_unitId'],this[_0x11a57e(0x1fa)],this[_0x11a57e(0x3b0)]);if(!_0x409faf||!(0x0,_0x1f20eb[_0x11a57e(0x452)])(_0x409faf[_0x11a57e(0x3aa)]()))return;let _0x3efc08=_0x409faf['getConnectorLinePoints']();if(_0x3efc08[_0x11a57e(0x492)]<0x2)return;let _0x103a5a=new _0x1f20eb['ConnectorCoordinateTransform'](_0x25d802),_0x5544be=_0x3efc08[0x0],_0xac9381=_0x3efc08[_0x3efc08['length']-0x1],_0x2f239a=_0x103a5a[_0x11a57e(0x4b6)](_0x5544be),_0xca4834=_0x103a5a['localToWorld'](_0xac9381);this[_0x11a57e(0x420)](_0x45705c,{..._0x2f239a},!0x0),this[_0x11a57e(0x420)](_0x45705c,{..._0xca4834},!0x1);}['_addShapeConnectorHandlerObject'](_0x39419f,_0x46b421,_0x748f47){const _0x1c0a20=_0x38c45a;if(this[_0x1c0a20(0x3b0)]===void 0x0||this[_0x1c0a20(0x2bf)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2334f5=_0x1c0a20(0x2c6)+this['_unitId']+'-'+this[_0x1c0a20(0x1fa)]+'-'+this[_0x1c0a20(0x3b0)]+'-'+(_0x748f47?'start':_0x1c0a20(0x200)),_0x275249=_0x39419f[_0x1c0a20(0x323)](_0x2334f5);if(_0x275249){_0x275249[_0x1c0a20(0x441)]({'left':_0x46b421['x']-_0x1f20eb[_0x1c0a20(0x257)]['cxnPointRadius'],'top':_0x46b421['y']-_0x1f20eb[_0x1c0a20(0x257)][_0x1c0a20(0x235)]});return;}let _0x12b5bb=new _0x438726(_0x2334f5,{'left':_0x46b421['x']-_0x1f20eb[_0x1c0a20(0x257)]['cxnPointRadius'],'top':_0x46b421['y']-_0x1f20eb[_0x1c0a20(0x257)][_0x1c0a20(0x235)],'shapeId':this[_0x1c0a20(0x3b0)],'unitId':this[_0x1c0a20(0x2bf)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x748f47,'width':_0x1f20eb[_0x1c0a20(0x257)][_0x1c0a20(0x235)]*0x2,'height':_0x1f20eb[_0x1c0a20(0x257)][_0x1c0a20(0x235)]*0x2,'zIndex':_0x5446b3['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x1c0a20(0x23e)]['push'](_0x12b5bb),this[_0x1c0a20(0x344)](_0x12b5bb,_0x39419f,_0x748f47),_0x39419f[_0x1c0a20(0x4da)](_0x12b5bb,_0x5446b3['DRAWING_OBJECT_LAYER_INDEX']+0x1);}['_getScrollInfo'](_0x1b4e62,_0x47560d){const _0x57efc3=_0x38c45a;var _0x38cde1;let _0x390815={'x':0x0,'y':0x0};if(!_0x1b4e62||!_0x47560d)return _0x390815;let _0x2bb67b=this[_0x57efc3(0x2a5)]['getRenderById'](_0x1b4e62);if(!_0x2bb67b||!_0x2bb67b[_0x57efc3(0x474)](_0x4f2ee7[_0x57efc3(0x4d1)])[_0x57efc3(0x389)](_0x47560d))return _0x390815;let _0x565e77=_0x2bb67b[_0x57efc3(0x474)](_0x4f2ee7[_0x57efc3(0x392)]),_0x58b30d=_0x565e77==null?void 0x0:_0x565e77['getCurrentScrollState']();if(!_0x58b30d)return _0x390815;let _0x191e6b=(_0x38cde1=this[_0x57efc3(0x4b8)][_0x57efc3(0x41e)](_0x1b4e62))==null?void 0x0:_0x38cde1[_0x57efc3(0x343)](_0x47560d);if(!_0x191e6b)return _0x390815;let _0x303213=(0x0,_0x4f2ee7[_0x57efc3(0x427)])(_0x58b30d[_0x57efc3(0x3a3)],_0x58b30d[_0x57efc3(0x42c)],_0x2bb67b['scene'],_0x191e6b);return _0x303213?{'x':_0x303213[_0x57efc3(0x347)],'y':_0x303213[_0x57efc3(0x2f2)]}:_0x390815;}['_getZoomRatio'](_0x56573f,_0x5f2224){var _0x3cd9ff,_0x369210;let _0x5915cb=(_0x3cd9ff=this['_univerInstanceService']['getUnit'](_0x56573f))==null?void 0x0:_0x3cd9ff['getSheetBySheetId'](_0x5f2224);return(_0x369210=_0x5915cb==null?void 0x0:_0x5915cb['getZoomRatio']())==null?0x1:_0x369210;}[_0x38c45a(0x460)](_0x105656,_0x50e4a4,_0x50df97,_0x5b91a7,_0x522f36){const _0x5967ac=_0x38c45a;this[_0x5967ac(0x415)][_0x5967ac(0x3b1)](),this[_0x5967ac(0x430)][_0x5967ac(0x3b1)](),this[_0x5967ac(0x261)][_0x5967ac(0x270)]();let _0x24a9ef=this[_0x5967ac(0x2ac)];this[_0x5967ac(0x399)][_0x5967ac(0x48e)]();let _0x2c280f=this[_0x5967ac(0x2a0)](this['_unitId'],this[_0x5967ac(0x1fa)]),_0x277895=this[_0x5967ac(0x230)](this[_0x5967ac(0x2bf)],this[_0x5967ac(0x1fa)]),_0x448329={'x':_0x50df97['offsetX']/_0x277895+_0x2c280f['x'],'y':_0x50df97[_0x5967ac(0x42a)]/_0x277895+_0x2c280f['y']},_0x33ee40=_0x24a9ef?_0x24a9ef[_0x5967ac(0x429)]:_0x448329,_0x35981b=_0x5b91a7?this['_activeShapeModel']['getEndConnectInfo']():this[_0x5967ac(0x3c7)][_0x5967ac(0x297)](),_0x27d336=this[_0x5967ac(0x3c7)]['getShapeType']();_0x35981b?this['_handleConnectedEndpointPointerUp'](_0x35981b,_0x33ee40,_0x5b91a7,_0x24a9ef,_0x522f36):this[_0x5967ac(0x23d)](_0x50e4a4,_0x33ee40,_0x5b91a7,_0x24a9ef,_0x522f36,_0x27d336),this['_isConnecting']=!0x1,this[_0x5967ac(0x499)]=!0x1,this[_0x5967ac(0x2ac)]=null,_0x105656['enableObjectsEvent']();}[_0x38c45a(0x23d)](_0x55be69,_0x4edfbd,_0xf30cbf,_0x5e793e,_0x14884e,_0x168a58){const _0x56747a=_0x38c45a;let _0x485e01=_0x168a58===_0x1f20eb[_0x56747a(0x4dd)][_0x56747a(0x438)]||_0x168a58===_0x1f20eb[_0x56747a(0x4dd)][_0x56747a(0x3f6)],_0x16e835=_0xf30cbf?_0x4edfbd:_0x55be69,_0x570ab1=_0xf30cbf?_0x55be69:_0x4edfbd,_0x55bcf6=this[_0x56747a(0x3c7)][_0x56747a(0x34f)](),_0x2238b4=(0x0,_0x1f20eb[_0x56747a(0x3ba)])(this[_0x56747a(0x3c7)][_0x56747a(0x3aa)]()),_0x470eec=_0x1f20eb[_0x56747a(0x3ee)][_0x56747a(0x299)](_0x55bcf6,_0x2238b4),_0x39db66=_0x485e01?_0x1f20eb['ConnectorCoordinateTransform']['computeStraightConnectorLayout'](_0x16e835,_0x570ab1):_0x1f20eb['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x55be69,_0x4edfbd,_0xf30cbf,_0x470eec);_0x5e793e?this['_executeConnectionCommand'](_0x39db66,_0x5e793e,_0xf30cbf,_0x14884e):this['_executeResizeCommand'](_0x39db66,_0x14884e);}[_0x38c45a(0x236)](_0x3931ae,_0x3d9432,_0x51a6a5,_0x544dda,_0x1024c8){const _0x190283=_0x38c45a;let _0x141bc4=this[_0x190283(0x4b4)](_0x3931ae);if(!_0x141bc4)return;let _0x27f41f=_0x544dda?_0x544dda['angle']:this[_0x190283(0x3dd)](_0x141bc4[_0x190283(0x24a)],_0x3d9432),_0x4d877d;if(_0x544dda){let _0x3f45a5=this['_drawingManagerService'][_0x190283(0x329)]({'unitId':_0x544dda['unitId'],'subUnitId':_0x544dda['subUnitId'],'drawingId':_0x544dda[_0x190283(0x201)]});if(_0x3f45a5!=null&&_0x3f45a5[_0x190283(0x217)]){let {left:_0x297a00=0x0,top:_0x36a796=0x0,width:_0x457ccd=0x0,height:_0xc49c4b=0x0,angle:_0x5785b2}=_0x3f45a5[_0x190283(0x217)];_0x4d877d=(0x0,_0x1f20eb['getBasicShapeRotateBound'])({'left':_0x297a00,'top':_0x36a796,'width':_0x457ccd,'height':_0xc49c4b},_0x5785b2||0x0);}else _0x4d877d={'left':_0x3d9432['x'],'top':_0x3d9432['y'],'width':0x0,'height':0x0};}else _0x4d877d={'left':_0x3d9432['x'],'top':_0x3d9432['y'],'width':0x0,'height':0x0};let _0x14cd8f={'point':_0x3d9432,'angle':_0x27f41f,'bounds':_0x4d877d},_0x22c69e=_0x51a6a5?_0x14cd8f:_0x141bc4,_0x29b1a7=_0x51a6a5?_0x141bc4:_0x14cd8f,_0x4e75de=this[_0x190283(0x3c7)][_0x190283(0x3aa)](),_0x142f8a=(0x0,_0x1f20eb['routeConnectorLineShape'])(_0x22c69e,_0x29b1a7,_0x4e75de);this[_0x190283(0x3c7)][_0x190283(0x42f)]();let _0x3354c1=(0x0,_0x1f20eb[_0x190283(0x1f0)])(_0x142f8a,_0x4e75de);_0x544dda?this[_0x190283(0x4e1)](_0x3354c1,_0x544dda,_0x3931ae,_0x51a6a5,_0x1024c8):this[_0x190283(0x42e)](_0x3354c1,_0x3931ae,_0x51a6a5,_0x1024c8);}[_0x38c45a(0x410)](_0x19ee8d,_0x5d4a87,_0x47f58b,_0x4c9c3d){const _0x5cac3d=_0x38c45a;let _0xd38c36=this[_0x5cac3d(0x3c7)][_0x5cac3d(0x473)]()[_0x5cac3d(0x2b1)],_0x3a6a76={..._0xd38c36},_0x2c2bbd={'shapeId':_0x5d4a87['shapeId'],'cxnIndex':_0x5d4a87[_0x5cac3d(0x366)]};_0x47f58b?_0x3a6a76[_0x5cac3d(0x4e2)]=_0x2c2bbd:_0x3a6a76['to']=_0x2c2bbd;let _0x9e0f05=this[_0x5cac3d(0x3c7)][_0x5cac3d(0x3aa)](),_0x1085ae=(0x0,_0x1f20eb[_0x5cac3d(0x1f0)])(_0x19ee8d[_0x5cac3d(0x4c4)],_0x9e0f05),_0x43c3b3={'unitId':this[_0x5cac3d(0x2bf)],'subUnitId':this[_0x5cac3d(0x1fa)],'connectorShapeId':this[_0x5cac3d(0x3b0)],'width':_0x19ee8d[_0x5cac3d(0x39d)][_0x5cac3d(0x24b)],'height':_0x19ee8d[_0x5cac3d(0x39d)][_0x5cac3d(0x26d)],'left':_0x19ee8d['worldRect'][_0x5cac3d(0x346)],'top':_0x19ee8d['worldRect'][_0x5cac3d(0x38a)],'flipX':_0x19ee8d['worldRect']['flipX']||!0x1,'flipY':_0x19ee8d[_0x5cac3d(0x39d)]['flipY']||!0x1,'newAdjustValues':_0x1085ae[_0x5cac3d(0x3b6)],'oldAdjustValues':_0x4c9c3d,'oldRelation':_0xd38c36,'newRelation':_0x3a6a76,'newLineType':_0x1085ae[_0x5cac3d(0x49f)],'oldLineType':_0x9e0f05};this[_0x5cac3d(0x494)][_0x5cac3d(0x204)](_0x50ebc5[_0x5cac3d(0x255)]['id'],_0x43c3b3);}[_0x38c45a(0x239)](_0x38ab68,_0x5c658f){const _0x32a040=_0x38c45a;let _0x18831b=this[_0x32a040(0x3c7)][_0x32a040(0x3aa)](),_0x3e1d7f=(0x0,_0x1f20eb[_0x32a040(0x1f0)])(_0x38ab68['worldPoints'],_0x18831b),_0x3b7cde={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_activeShapeId'],'width':_0x38ab68[_0x32a040(0x39d)][_0x32a040(0x24b)],'height':_0x38ab68[_0x32a040(0x39d)][_0x32a040(0x26d)],'left':_0x38ab68[_0x32a040(0x39d)][_0x32a040(0x346)],'top':_0x38ab68[_0x32a040(0x39d)]['top'],'flipX':_0x38ab68[_0x32a040(0x39d)]['flipX']||!0x1,'flipY':_0x38ab68[_0x32a040(0x39d)][_0x32a040(0x30d)]||!0x1,'angle':_0x38ab68['worldRect']['angle']||0x0,'newAdjustValues':_0x3e1d7f[_0x32a040(0x3b6)],'oldAdjustValues':_0x5c658f,'newLineType':_0x3e1d7f[_0x32a040(0x49f)],'oldLineType':_0x18831b};this['_commandService']['executeCommand'](_0x50ebc5[_0x32a040(0x4ad)]['id'],_0x3b7cde);}[_0x38c45a(0x4e1)](_0x2eead4,_0x39c07d,_0x51f226,_0x11427a,_0x489c4c){const _0x1da785=_0x38c45a;let _0x24f067=this['_activeShapeModel'][_0x1da785(0x473)]()['relation'],_0x5d3023={..._0x24f067},_0x4c9233={'shapeId':_0x39c07d['shapeId'],'cxnIndex':_0x39c07d['cxnIndex']};_0x11427a?(_0x5d3023['from']=_0x4c9233,_0x5d3023['to']=_0x51f226):(_0x5d3023[_0x1da785(0x4e2)]=_0x51f226,_0x5d3023['to']=_0x4c9233);let _0x2f41d0={'unitId':this[_0x1da785(0x2bf)],'subUnitId':this[_0x1da785(0x1fa)],'connectorShapeId':this[_0x1da785(0x3b0)],'width':_0x2eead4[_0x1da785(0x39d)][_0x1da785(0x24b)],'height':_0x2eead4[_0x1da785(0x39d)]['height'],'left':_0x2eead4[_0x1da785(0x39d)][_0x1da785(0x346)],'top':_0x2eead4[_0x1da785(0x39d)][_0x1da785(0x38a)],'flipX':_0x2eead4['worldRect']['flipX']||!0x1,'flipY':_0x2eead4[_0x1da785(0x39d)][_0x1da785(0x30d)]||!0x1,'oldAdjustValues':_0x489c4c,'newAdjustValues':_0x2eead4[_0x1da785(0x3b6)],'newLineType':_0x2eead4['lineType'],'rotation':_0x2eead4['rotation'],'oldRelation':_0x24f067,'newRelation':_0x5d3023};this[_0x1da785(0x494)][_0x1da785(0x204)](_0x50ebc5[_0x1da785(0x255)]['id'],_0x2f41d0);}[_0x38c45a(0x42e)](_0x152cec,_0x145783,_0x4c55dc,_0x4e085b){const _0x20f1d9=_0x38c45a;let _0x5b3729=this[_0x20f1d9(0x3c7)][_0x20f1d9(0x473)]()[_0x20f1d9(0x2b1)],_0x13d02e={};_0x4c55dc?(_0x13d02e['to']=_0x145783,_0x13d02e[_0x20f1d9(0x4e2)]=void 0x0):(_0x13d02e[_0x20f1d9(0x4e2)]=_0x145783,_0x13d02e['to']=void 0x0);let _0x7ace35={'unitId':this[_0x20f1d9(0x2bf)],'subUnitId':this[_0x20f1d9(0x1fa)],'connectorShapeId':this[_0x20f1d9(0x3b0)],'width':_0x152cec[_0x20f1d9(0x39d)][_0x20f1d9(0x24b)],'height':_0x152cec['worldRect'][_0x20f1d9(0x26d)],'left':_0x152cec[_0x20f1d9(0x39d)][_0x20f1d9(0x346)],'top':_0x152cec[_0x20f1d9(0x39d)]['top'],'flipX':_0x152cec[_0x20f1d9(0x39d)][_0x20f1d9(0x21a)]||!0x1,'flipY':_0x152cec[_0x20f1d9(0x39d)][_0x20f1d9(0x30d)]||!0x1,'oldAdjustValues':_0x4e085b,'newAdjustValues':_0x152cec[_0x20f1d9(0x3b6)],'newLineType':_0x152cec['lineType'],'rotation':_0x152cec[_0x20f1d9(0x318)],'oldRelation':_0x5b3729,'newRelation':_0x13d02e};this[_0x20f1d9(0x494)][_0x20f1d9(0x204)](_0x50ebc5[_0x20f1d9(0x255)]['id'],_0x7ace35);}[_0x38c45a(0x344)](_0x2f2235,_0x53e7d1,_0x6c2a13){const _0x5dab09=_0x38c45a;this[_0x5dab09(0x29a)]((0x0,_0x4292c2[_0x5dab09(0x2e0)])(_0x2f2235[_0x5dab09(0x31f)]['subscribeEvent']((_0x50b71c,_0x130cba)=>{const _0x368388=_0x5dab09;let _0x5eedf7=_0x2f2235[_0x368388(0x482)]();if(this[_0x368388(0x3c7)]=this[_0x368388(0x49d)]['getShapeModel'](_0x5eedf7[_0x368388(0x3fb)],_0x5eedf7[_0x368388(0x2cb)],_0x5eedf7[_0x368388(0x30a)]),!this['_activeShapeModel'])return;let _0x38d816={};this[_0x368388(0x3c7)]['getAdjustNames']()[_0x368388(0x4d2)](_0xd45255=>{const _0x2c6df9=_0x368388;let _0xca9378=this['_activeShapeModel'][_0x2c6df9(0x309)](_0xd45255);_0xca9378!==void 0x0&&(_0x38d816[_0xd45255]=_0xca9378);});let _0x3644fe=this[_0x368388(0x1ec)]();if(!_0x3644fe)return;this[_0x368388(0x264)]={..._0x3644fe};let _0x332afc=new _0x1f20eb[(_0x368388(0x3ee))](this['_baseDrawingRect']),_0x252562=(0x0,_0x2a6651[_0x368388(0x215)])({'unitId':this[_0x368388(0x2bf)],'subUnitId':this[_0x368388(0x1fa)],'drawingId':this['_activeShapeId']}),_0x2e6737=_0x53e7d1['getObjectIncludeInGroup'](_0x252562);this['_isConnecting']=!0x0,_0x53e7d1[_0x368388(0x234)](),this[_0x368388(0x399)][_0x368388(0x461)](_0x53e7d1,this[_0x368388(0x2bf)],this['_subUnitId'],this[_0x368388(0x3b0)]),this[_0x368388(0x2ac)]=null;let _0x394509=this[_0x368388(0x3c7)]['getConnectorLinePoints'](),_0x3c3c22=_0x394509[0x0],_0x5d675c=_0x394509[_0x394509['length']-0x1],_0x371804=_0x6c2a13?_0x332afc[_0x368388(0x4b6)](_0x5d675c):_0x332afc[_0x368388(0x4b6)](_0x3c3c22);this[_0x368388(0x415)]=_0x53e7d1[_0x368388(0x4c2)][_0x368388(0x280)]((_0x2a67e2,_0x380b43)=>{const _0x3fe23e=_0x368388;if(!this[_0x3fe23e(0x4d6)]||!this['_activeShapeModel'])return;this['_hasReset']||(this[_0x3fe23e(0x261)][_0x3fe23e(0x3e6)](),this[_0x3fe23e(0x3c7)][_0x3fe23e(0x2d4)](),this[_0x3fe23e(0x499)]=!0x0);let _0x4f4015=this[_0x3fe23e(0x2a0)](this[_0x3fe23e(0x2bf)],this[_0x3fe23e(0x1fa)]),_0x5ac9e2=this[_0x3fe23e(0x230)](this['_unitId'],this[_0x3fe23e(0x1fa)]),_0xbf04d6={'x':_0x2a67e2[_0x3fe23e(0x2aa)]/_0x5ac9e2+_0x4f4015['x'],'y':_0x2a67e2['offsetY']/_0x5ac9e2+_0x4f4015['y']},_0x1d58e2=this[_0x3fe23e(0x399)][_0x3fe23e(0x3ea)](_0xbf04d6);if(_0x1d58e2){let {shapeId:_0x3ae698,unitId:_0xb224c3,subUnitId:_0x521472}=_0x1d58e2;if(_0x3ae698&&_0xb224c3&&_0x521472){let _0x271041=(0x0,_0x2a6651[_0x3fe23e(0x215)])({'unitId':_0xb224c3,'subUnitId':_0x521472,'drawingId':_0x3ae698});_0x1d58e2[_0x3fe23e(0x28a)]=(_0x53e7d1[_0x3fe23e(0x323)](_0x271041)[_0x3fe23e(0x28a)]||0x0)+_0x1d58e2['angle'];}}this[_0x3fe23e(0x2ac)]=_0x1d58e2;let _0x3cb6b3=_0x6c2a13?this[_0x3fe23e(0x3c7)]['getEndConnectInfo']():this[_0x3fe23e(0x3c7)][_0x3fe23e(0x297)]();if(_0x3cb6b3){this[_0x3fe23e(0x33d)](_0x3cb6b3,_0xbf04d6,_0x6c2a13,_0x2e6737,_0x2f2235);return;}this[_0x3fe23e(0x336)](_0xbf04d6,_0x371804,_0x6c2a13,_0x2e6737,_0x2f2235);}),this[_0x368388(0x430)]=_0x53e7d1[_0x368388(0x3c4)][_0x368388(0x280)]((_0x30fe73,_0x30cff8)=>{this['_handleConnectorPointerUp'](_0x53e7d1,_0x371804,_0x30fe73,_0x6c2a13,_0x38d816);}),_0x130cba['stopPropagation']();})));}[_0x38c45a(0x439)](_0x52ad32,_0x51d4ca,_0x127170){const _0xd8b22d=_0x38c45a;let _0x8cb81=this[_0xd8b22d(0x49d)][_0xd8b22d(0x277)](_0x52ad32,_0x51d4ca,_0x127170);if(!_0x8cb81||_0x8cb81[_0xd8b22d(0x492)]===0x0)return;let _0xb25e6e=this[_0xd8b22d(0x2a5)][_0xd8b22d(0x407)](_0x52ad32);if(!_0xb25e6e)return;let {scene:_0x2a823e}=_0xb25e6e;for(let _0x53d96a of _0x8cb81){let _0x49a140=_0x53d96a[_0xd8b22d(0x409)],_0x1552da=this[_0xd8b22d(0x49d)][_0xd8b22d(0x351)](_0x52ad32,_0x51d4ca,_0x49a140);if(!_0x1552da)continue;let _0x1a543e=_0x1552da[_0xd8b22d(0x297)](),_0x5b6756=_0x1552da[_0xd8b22d(0x296)](),_0x52aabb=(_0x1a543e==null?void 0x0:_0x1a543e[_0xd8b22d(0x201)])===_0x127170,_0x51cbbc=(0x0,_0x2a6651[_0xd8b22d(0x215)])({'unitId':_0x52ad32,'subUnitId':_0x51d4ca,'drawingId':_0x49a140}),_0x3d6f90=_0x2a823e[_0xd8b22d(0x323)](_0x51cbbc);if(!_0x3d6f90)continue;let _0x3d22d3=this['_drawingManagerService'][_0xd8b22d(0x329)]({'unitId':_0x52ad32,'subUnitId':_0x51d4ca,'drawingId':_0x49a140});_0x3d22d3!=null&&_0x3d22d3[_0xd8b22d(0x217)]&&(_0x1a543e&&_0x5b6756?this[_0xd8b22d(0x49b)](_0x52ad32,_0x51d4ca,_0x49a140,_0x1552da,_0x1a543e,_0x5b6756,_0x3d6f90):this[_0xd8b22d(0x49a)](_0x52ad32,_0x51d4ca,_0x49a140,_0x1552da,_0x52aabb?_0x1a543e:_0x5b6756,_0x52aabb,_0x3d22d3,_0x3d6f90));}}[_0x38c45a(0x49b)](_0x242d79,_0x1420e0,_0x11059d,_0x36956a,_0x4e598c,_0x5d2f56,_0x2cb1e2){const _0x3d8956=_0x38c45a;let _0x2a1b10=this[_0x3d8956(0x2bf)],_0x1849e4=this[_0x3d8956(0x1fa)];this[_0x3d8956(0x2bf)]=_0x242d79,this[_0x3d8956(0x1fa)]=_0x1420e0;let _0x28cccb=this['_getConnectPointInfo'](_0x4e598c),_0x4b8bc8=this['_getConnectPointInfo'](_0x5d2f56);if(this[_0x3d8956(0x2bf)]=_0x2a1b10,this['_subUnitId']=_0x1849e4,!_0x28cccb||!_0x4b8bc8)return;let _0x5270a0=_0x36956a['getShapeType'](),_0x19001e=(0x0,_0x1f20eb[_0x3d8956(0x47a)])(_0x28cccb,_0x4b8bc8,_0x5270a0);_0x19001e&&_0x36956a[_0x3d8956(0x345)](_0x19001e);let _0x48174c=(0x0,_0x1f20eb['computeConnectorRouteLayout'])(_0x19001e,_0x5270a0);_0x48174c[_0x3d8956(0x49f)]!==_0x5270a0&&_0x36956a[_0x3d8956(0x258)](_0x48174c[_0x3d8956(0x49f)]),_0x36956a['clearAdjustValue']();for(let [_0x50c52,_0x2defb3]of Object[_0x3d8956(0x37c)](_0x48174c[_0x3d8956(0x3b6)]))_0x36956a[_0x3d8956(0x2a2)](_0x50c52,_0x2defb3);_0x36956a['updateContext']({'width':_0x48174c['worldRect'][_0x3d8956(0x24b)],'height':_0x48174c[_0x3d8956(0x39d)]['height']}),_0x2cb1e2['transformByState']({'flipX':_0x48174c[_0x3d8956(0x39d)][_0x3d8956(0x21a)],'flipY':_0x48174c[_0x3d8956(0x39d)][_0x3d8956(0x30d)],'left':_0x48174c[_0x3d8956(0x39d)][_0x3d8956(0x346)],'top':_0x48174c[_0x3d8956(0x39d)][_0x3d8956(0x38a)],'width':_0x48174c[_0x3d8956(0x39d)][_0x3d8956(0x24b)],'height':_0x48174c['worldRect']['height'],'angle':_0x48174c['rotation']}),_0x36956a[_0x3d8956(0x42f)]();}[_0x38c45a(0x49a)](_0x6e499f,_0x4ee08a,_0x3113ba,_0x2c7458,_0x3f46d8,_0x404776,_0x1e81e1,_0x407c3b){const _0x2a6624=_0x38c45a;let _0x272672=this[_0x2a6624(0x2bf)],_0x878f=this[_0x2a6624(0x1fa)];this['_unitId']=_0x6e499f,this[_0x2a6624(0x1fa)]=_0x4ee08a;let _0x29f328=this['_getConnectPointInfo'](_0x3f46d8);if(this[_0x2a6624(0x2bf)]=_0x272672,this[_0x2a6624(0x1fa)]=_0x878f,!_0x29f328)return;let {left:_0x4e54c4=0x0,top:_0x17d46c=0x0,width:_0x462806=0x0,height:_0x23eed8=0x0,flipX:_0x171f7b=!0x1,flipY:_0x477b33=!0x1}=_0x1e81e1[_0x2a6624(0x217)],_0x55d9b6=_0x2c7458[_0x2a6624(0x34f)]();if(_0x55d9b6[_0x2a6624(0x492)]<0x2)return;let _0x198e0c=new _0x1f20eb[(_0x2a6624(0x3ee))]({'left':_0x4e54c4,'top':_0x17d46c,'width':_0x462806,'height':_0x23eed8,'flipX':_0x171f7b,'flipY':_0x477b33}),_0x20134d=_0x404776?_0x55d9b6[_0x55d9b6['length']-0x1]:_0x55d9b6[0x0],_0x317201=_0x198e0c[_0x2a6624(0x4b6)](_0x20134d),_0x2117ab=_0x1f20eb[_0x2a6624(0x3ee)][_0x2a6624(0x3c1)](_0x317201,_0x29f328['point'],!_0x404776);_0x407c3b[_0x2a6624(0x441)]({'flipX':_0x2117ab['worldRect'][_0x2a6624(0x21a)],'flipY':_0x2117ab[_0x2a6624(0x39d)][_0x2a6624(0x30d)],'left':_0x2117ab[_0x2a6624(0x39d)][_0x2a6624(0x346)],'top':_0x2117ab['worldRect'][_0x2a6624(0x38a)],'width':_0x2117ab[_0x2a6624(0x39d)][_0x2a6624(0x24b)],'height':_0x2117ab[_0x2a6624(0x39d)][_0x2a6624(0x26d)],'angle':_0x2117ab[_0x2a6624(0x39d)][_0x2a6624(0x28a)]}),_0x407c3b[_0x2a6624(0x4c8)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x1c471f=_0x38c45a;this['_connectorObjects'][_0x1c471f(0x492)]!==0x0&&(this[_0x1c471f(0x23e)][_0x1c471f(0x4d2)](_0x5ad226=>{const _0x3eb2d0=_0x1c471f;_0x5ad226[_0x3eb2d0(0x4db)]();}),this[_0x1c471f(0x23e)]=[]);}['_registerDrawingMoveHandler'](){const _0x524de3=_0x38c45a;let _0x9618a8=this[_0x524de3(0x4b8)][_0x524de3(0x263)](_0x4292c2[_0x524de3(0x45f)][_0x524de3(0x368)]);this[_0x524de3(0x29a)](_0x9618a8[_0x524de3(0x38c)]((0x0,_0x1d5c96[_0x524de3(0x380)])(_0x1d9da5=>_0x1d9da5?_0x1d9da5['activeSheet$'][_0x524de3(0x38c)]((0x0,_0x1d5c96[_0x524de3(0x380)])(_0x53a265=>{const _0x13b3ec=_0x524de3;if(!_0x53a265)return _0x1d5c96[_0x13b3ec(0x2e7)];let _0x3f3e49=_0x1d9da5[_0x13b3ec(0x4de)](),_0x3709b8=this[_0x13b3ec(0x2a5)][_0x13b3ec(0x407)](_0x3f3e49),_0x37b6f5=_0x3709b8==null?void 0x0:_0x3709b8[_0x13b3ec(0x30b)];return _0x37b6f5?(0x0,_0x1d5c96['of'])(_0x37b6f5):_0x1d5c96[_0x13b3ec(0x2e7)];})):_0x1d5c96[_0x524de3(0x2e7)]))['subscribe'](_0x48ea97=>{const _0x105767=_0x524de3;let _0x1fcca4=_0x48ea97['getTransformerByCreate']();this[_0x105767(0x29a)](_0x48ea97[_0x105767(0x4c2)][_0x105767(0x280)](_0x4db326=>{const _0x433630=_0x105767;this[_0x433630(0x367)]&&this['_activeShapeId']&&this[_0x433630(0x3c5)]();})),this[_0x105767(0x29a)](_0x1fcca4[_0x105767(0x3f5)]['subscribe'](_0x49ff57=>{const _0x3d9671=_0x105767;let {objects:_0x476c83}=_0x49ff57;this['_clearShapeConnectorHandlerObjects'](),_0x476c83!==null&&_0x476c83[_0x3d9671(0x454)]===0x1&&_0x476c83[_0x3d9671(0x231)]()[_0x3d9671(0x29f)]()[_0x3d9671(0x481)]instanceof _0x13daea&&(this[_0x3d9671(0x367)]=!0x0);})),this[_0x105767(0x29a)](_0x1fcca4[_0x105767(0x28c)][_0x105767(0x233)](_0x21951e=>{const _0x2786d=_0x105767;this[_0x2786d(0x367)]&&this[_0x2786d(0x3c5)]();})),this[_0x105767(0x29a)](_0x48ea97['onPointerUp$'][_0x105767(0x280)](()=>{const _0x253a0f=_0x105767;this['_isDrawingShapePointDown']&&(this[_0x253a0f(0x367)]=!0x1,this[_0x253a0f(0x4b3)]());})),this[_0x105767(0x29a)](_0x1fcca4[_0x105767(0x47f)][_0x105767(0x233)](()=>{const _0x27c1c7=_0x105767;this[_0x27c1c7(0x2bf)]&&this[_0x27c1c7(0x1fa)]&&this[_0x27c1c7(0x3b0)]&&this[_0x27c1c7(0x384)][_0x27c1c7(0x329)]({'unitId':this[_0x27c1c7(0x2bf)],'subUnitId':this[_0x27c1c7(0x1fa)],'drawingId':this[_0x27c1c7(0x3b0)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x27c1c7(0x4b3)]());}));}));}[_0x38c45a(0x2e3)](){const _0x4655f3=_0x38c45a;this[_0x4655f3(0x29a)](this['_drawingManagerService']['focus$'][_0x4655f3(0x233)](_0x269ebe=>{const _0x4e5bdf=_0x4655f3;if(_0x269ebe[_0x4e5bdf(0x492)]===0x1){let _0x396f3b=_0x269ebe[0x0];if(_0x396f3b['drawingType']===_0x4292c2['DrawingTypeEnum'][_0x4e5bdf(0x252)]){let _0x2df2a8=this[_0x4e5bdf(0x49d)][_0x4e5bdf(0x351)](_0x396f3b[_0x4e5bdf(0x3fb)],_0x396f3b[_0x4e5bdf(0x2cb)],_0x396f3b[_0x4e5bdf(0x30a)]);if(_0x2df2a8&&(0x0,_0x1f20eb[_0x4e5bdf(0x452)])(_0x2df2a8[_0x4e5bdf(0x3aa)]())){this['_activeShapeId']=_0x396f3b[_0x4e5bdf(0x30a)],this[_0x4e5bdf(0x2bf)]=_0x396f3b[_0x4e5bdf(0x3fb)],this['_subUnitId']=_0x396f3b['subUnitId'],this[_0x4e5bdf(0x3c5)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x4e5bdf(0x3b0)]=void 0x0,this[_0x4e5bdf(0x2bf)]=void 0x0,this[_0x4e5bdf(0x1fa)]=void 0x0,this[_0x4e5bdf(0x3c5)]();})),this[_0x4655f3(0x29a)](this['_drawingManagerService'][_0x4655f3(0x262)][_0x4655f3(0x233)](_0x3e96cf=>{const _0x189670=_0x4655f3;if(_0x3e96cf[_0x189670(0x492)]===0x1){var _0x325a60;let _0xd5c987=_0x3e96cf[0x0],_0x129e98=(_0x325a60=this[_0x189670(0x384)][_0x189670(0x329)](_0xd5c987))==null?void 0x0:_0x325a60[_0x189670(0x372)];_0x129e98===_0x4292c2[_0x189670(0x47d)][_0x189670(0x252)]&&_0xd5c987[_0x189670(0x30a)]===this[_0x189670(0x3b0)]?(this[_0x189670(0x3c5)](),this[_0x189670(0x4b3)]()):!this['_activeShapeId']&&_0x129e98===_0x4292c2[_0x189670(0x47d)][_0x189670(0x252)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0xd5c987[_0x189670(0x3fb)],_0xd5c987['subUnitId'],_0xd5c987[_0x189670(0x30a)]);}})),this[_0x4655f3(0x29a)](this[_0x4655f3(0x384)][_0x4655f3(0x364)][_0x4655f3(0x233)](_0x451b89=>{const _0x52c2d5=_0x4655f3;for(let _0x563b2d of _0x451b89){let {drawingId:_0x1b84ef}=_0x563b2d;if(this['_activeShapeId']===_0x1b84ef){this[_0x52c2d5(0x337)]();return;}}}));}[_0x38c45a(0x33d)](_0x58905d,_0x17edba,_0x25695d,_0x5664c4,_0x626d70){const _0xa85b8e=_0x38c45a;var _0x5d8a35,_0x23534c;if(!this[_0xa85b8e(0x3c7)])return;let _0x1e5e7a=this[_0xa85b8e(0x4b4)](_0x58905d);if(!_0x1e5e7a)return;let _0x241733=this[_0xa85b8e(0x2ac)]?this[_0xa85b8e(0x2ac)]['worldPoint']:_0x17edba,_0x5cc969=this[_0xa85b8e(0x2ac)]?this[_0xa85b8e(0x2ac)][_0xa85b8e(0x28a)]:this[_0xa85b8e(0x3dd)](_0x1e5e7a[_0xa85b8e(0x24a)],_0x241733),_0xc8f66e;if(this['_currentConnectionTarget']){let _0x281479=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this['_currentConnectionTarget'][_0xa85b8e(0x2cb)],'drawingId':this[_0xa85b8e(0x2ac)][_0xa85b8e(0x201)]});if(_0x281479!=null&&_0x281479['transform']){let {left:_0x113081=0x0,top:_0x50c38e=0x0,width:_0x2dacd6=0x0,height:_0x438c0d=0x0,angle:_0x440d95}=_0x281479[_0xa85b8e(0x217)];_0xc8f66e=(0x0,_0x1f20eb[_0xa85b8e(0x2af)])({'left':_0x113081,'top':_0x50c38e,'width':_0x2dacd6,'height':_0x438c0d},_0x440d95||0x0);}else _0xc8f66e={'left':_0x241733['x'],'top':_0x241733['y'],'width':0x0,'height':0x0};}else _0xc8f66e={'left':_0x241733['x'],'top':_0x241733['y'],'width':0x0,'height':0x0};let _0xdd1f3d={'point':_0x241733,'angle':_0x5cc969,'bounds':_0xc8f66e},_0x4f0a42=_0x25695d?_0xdd1f3d:_0x1e5e7a,_0x4d4080=_0x25695d?_0x1e5e7a:_0xdd1f3d,_0x1d0a3c=this[_0xa85b8e(0x3c7)][_0xa85b8e(0x3aa)](),_0x54fc80=(0x0,_0x1f20eb['routeConnectorLineShape'])(_0x4f0a42,_0x4d4080,_0x1d0a3c);_0x54fc80&&this[_0xa85b8e(0x3c7)][_0xa85b8e(0x345)](_0x54fc80);let _0x6be654=(0x0,_0x1f20eb[_0xa85b8e(0x1f0)])(_0x54fc80,_0x1d0a3c);_0x6be654[_0xa85b8e(0x49f)]!==_0x1d0a3c&&this['_activeShapeModel']['changeShapeType'](_0x6be654[_0xa85b8e(0x49f)]);for(let [_0x14d366,_0xe2e3f5]of Object['entries'](_0x6be654[_0xa85b8e(0x3b6)]))this[_0xa85b8e(0x3c7)][_0xa85b8e(0x2a2)](_0x14d366,_0xe2e3f5);this[_0xa85b8e(0x3c7)][_0xa85b8e(0x42b)]({'width':_0x6be654[_0xa85b8e(0x39d)]['width'],'height':_0x6be654[_0xa85b8e(0x39d)]['height']}),_0x5664c4[_0xa85b8e(0x441)]({'flipX':_0x6be654['worldRect'][_0xa85b8e(0x21a)],'flipY':_0x6be654[_0xa85b8e(0x39d)][_0xa85b8e(0x30d)],'left':_0x6be654[_0xa85b8e(0x39d)]['left'],'top':_0x6be654['worldRect'][_0xa85b8e(0x38a)],'width':_0x6be654[_0xa85b8e(0x39d)][_0xa85b8e(0x24b)],'height':_0x6be654[_0xa85b8e(0x39d)][_0xa85b8e(0x26d)],'angle':_0x6be654[_0xa85b8e(0x318)]}),_0x5664c4['makeDirty'](!0x0);let _0x4baa6d=(_0x5d8a35=(_0x23534c=this['_currentConnectionTarget'])==null?void 0x0:_0x23534c[_0xa85b8e(0x429)])==null?_0x17edba:_0x5d8a35;_0x626d70[_0xa85b8e(0x441)]({'left':_0x4baa6d['x']-_0x1f20eb[_0xa85b8e(0x257)][_0xa85b8e(0x235)],'top':_0x4baa6d['y']-_0x1f20eb[_0xa85b8e(0x257)][_0xa85b8e(0x235)]});}[_0x38c45a(0x336)](_0x2f09c5,_0x362d07,_0x22f006,_0xc0b5a8,_0x9629db){const _0xa8c66b=_0x38c45a;var _0x41f0a8,_0xd3e21e,_0x5cc12d,_0x1b6939;let _0x530650=(_0x41f0a8=(_0xd3e21e=this['_currentConnectionTarget'])==null?void 0x0:_0xd3e21e['worldPoint'])==null?_0x2f09c5:_0x41f0a8,_0xda0dc9=_0x1f20eb['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x362d07,_0x530650,_0x22f006);_0xc0b5a8[_0xa8c66b(0x441)]({'flipX':_0xda0dc9[_0xa8c66b(0x39d)][_0xa8c66b(0x21a)],'flipY':_0xda0dc9['worldRect']['flipY'],'left':_0xda0dc9['worldRect'][_0xa8c66b(0x346)],'top':_0xda0dc9['worldRect']['top'],'width':_0xda0dc9[_0xa8c66b(0x39d)][_0xa8c66b(0x24b)],'height':_0xda0dc9['worldRect'][_0xa8c66b(0x26d)],'angle':_0xda0dc9[_0xa8c66b(0x39d)]['angle']});let _0x2a93df=(_0x5cc12d=(_0x1b6939=this[_0xa8c66b(0x2ac)])==null?void 0x0:_0x1b6939['worldPoint'])==null?_0x2f09c5:_0x5cc12d;_0x9629db[_0xa8c66b(0x441)]({'left':_0x2a93df['x']-_0x1f20eb[_0xa8c66b(0x257)][_0xa8c66b(0x235)],'top':_0x2a93df['y']-_0x1f20eb[_0xa8c66b(0x257)][_0xa8c66b(0x235)]});}[_0x38c45a(0x4b4)](_0x57b74c){const _0x502cab=_0x38c45a;if(!this[_0x502cab(0x2bf)]||!this[_0x502cab(0x1fa)])return null;let {shapeId:_0xe55d9,cxnIndex:_0x3efc88}=_0x57b74c,_0x97cb63=this[_0x502cab(0x49d)][_0x502cab(0x351)](this[_0x502cab(0x2bf)],this['_subUnitId'],_0xe55d9);if(!_0x97cb63)return null;let _0x4f99c3=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x502cab(0x2bf)],'subUnitId':this[_0x502cab(0x1fa)],'drawingId':_0xe55d9});if(!(_0x4f99c3!=null&&_0x4f99c3['transform']))return null;let {left:_0xaaccd9=0x0,top:_0x2851fc=0x0,width:_0x36d170=0x0,height:_0x418d88=0x0,flipX:_0x228c86=!0x1,flipY:_0x42a61f=!0x1,angle:_0x205706}=_0x4f99c3['transform'];_0x97cb63[_0x502cab(0x42b)]({'width':_0x36d170,'height':_0x418d88});let _0x4d3684=_0x97cb63['getConnectionSiteList']()['find'](_0xb704e8=>_0xb704e8[_0x502cab(0x2c0)]===_0x3efc88);if(!_0x4d3684)return null;let _0x54256b=_0x228c86?_0x36d170-_0x4d3684['x']:_0x4d3684['x'],_0xe7e5db=_0x42a61f?_0x418d88-_0x4d3684['y']:_0x4d3684['y'];if(_0x205706!==0x0&&_0x205706!=null){let _0x116594=_0x205706*Math['PI']/0xb4,_0x1258db=Math[_0x502cab(0x221)](_0x116594),_0x4167e6=Math[_0x502cab(0x3f3)](_0x116594),_0x22583e=_0x36d170/0x2,_0x38f05b=_0x418d88/0x2,_0x6ffcb5=_0x54256b-_0x22583e,_0x1fd69f=_0xe7e5db-_0x38f05b;_0x54256b=_0x22583e+_0x6ffcb5*_0x1258db-_0x1fd69f*_0x4167e6,_0xe7e5db=_0x38f05b+_0x6ffcb5*_0x4167e6+_0x1fd69f*_0x1258db;}_0x54256b+=_0xaaccd9,_0xe7e5db+=_0x2851fc;let _0xcd9be4=_0x4d3684[_0x502cab(0x327)]/0xea60;_0x228c86&&(_0xcd9be4=0xb4-_0xcd9be4),_0x42a61f&&(_0xcd9be4=-_0xcd9be4),_0xcd9be4+=_0x205706||0x0,_0xcd9be4=(_0xcd9be4%0x168+0x168)%0x168;let _0x6c62ab=(0x0,_0x1f20eb[_0x502cab(0x2af)])({'left':_0xaaccd9,'top':_0x2851fc,'width':_0x36d170,'height':_0x418d88},_0x205706||0x0);return{'point':{'x':_0x54256b,'y':_0xe7e5db},'angle':_0xcd9be4,'bounds':_0x6c62ab};}[_0x38c45a(0x3dd)](_0x1370c3,_0x3bdfdd){const _0x25332f=_0x38c45a;let _0x54c62=_0x3bdfdd['x']-_0x1370c3['x'],_0x482706=_0x3bdfdd['y']-_0x1370c3['y'];return Math[_0x25332f(0x247)](_0x54c62)>=Math[_0x25332f(0x247)](_0x482706)?_0x54c62>=0x0?0xb4:0x0:_0x482706>=0x0?0x10e:0x5a;}[_0x38c45a(0x337)](){const _0x182b89=_0x38c45a;this[_0x182b89(0x3b0)]=void 0x0,this[_0x182b89(0x2bf)]=void 0x0,this[_0x182b89(0x1fa)]=void 0x0,this[_0x182b89(0x3c5)]();}['dispose'](){const _0x311105=_0x38c45a;this[_0x311105(0x3c5)](),super[_0x311105(0x4db)]();}};_0x36e164=_0x47d9ca([_0x403efc(0x1,_0x4292c2[_0x38c45a(0x3de)]),_0x403efc(0x2,_0x5446b3['IRenderManagerService']),_0x403efc(0x3,_0x2a6651[_0x38c45a(0x3fd)]),_0x403efc(0x4,_0x4292c2[_0x38c45a(0x403)]),_0x403efc(0x5,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x50ebc5[_0x38c45a(0x1f3)])),_0x403efc(0x6,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x3509b4)),_0x403efc(0x7,(0x0,_0x4292c2['Inject'])(_0x54d996))],_0x36e164);let _0x49478d=class extends _0x4292c2[_0x38c45a(0x4a0)]{constructor(_0x313c46,_0x14ee46,_0xd5ad30){const _0x570fae=_0x38c45a;super(),this['_commandService']=_0x313c46,this[_0x570fae(0x376)]=_0x14ee46,this[_0x570fae(0x464)]=_0xd5ad30,this[_0x570fae(0x267)]();}['_initPermission'](){const _0xcb0a84=_0x38c45a;this[_0xcb0a84(0x29a)](this[_0xcb0a84(0x494)][_0xcb0a84(0x22e)](_0x409518=>{const _0x49c769=_0xcb0a84;let _0x2fee60,_0x3283a5;if(_0x409518['id']===_0x50ebc5[_0x49c769(0x260)]['id']||_0x409518['id']===_0x50ebc5[_0x49c769(0x2a9)]['id']||_0x409518['id']===_0x50ebc5[_0x49c769(0x255)]['id']){let _0x564f56=_0x409518[_0x49c769(0x44b)];_0x2fee60=_0x564f56[_0x49c769(0x3fb)],_0x3283a5=_0x564f56[_0x49c769(0x2cb)];}!_0x2fee60||!_0x3283a5||this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x4eb9c3[_0x49c769(0x31b)]],'worksheetTypes':[_0x4eb9c3['WorksheetEditPermission']]},_0x2fee60,_0x3283a5)||this['_sheetPermissionCheckController'][_0x49c769(0x274)](this[_0x49c769(0x376)]['t'](_0x49c769(0x4a3)));}));}};_0x49478d=_0x47d9ca([_0x403efc(0x0,(0x0,_0x4292c2['Inject'])(_0x4292c2[_0x38c45a(0x3de)])),_0x403efc(0x1,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4292c2[_0x38c45a(0x4ce)])),_0x403efc(0x2,(0x0,_0x4292c2[_0x38c45a(0x3ef)])(_0x4eb9c3[_0x38c45a(0x443)]))],_0x49478d);let _0xf9eeed=class extends _0x4292c2[_0x38c45a(0x3fa)]{constructor(_0x241518=_0x34c2fd,_0x1856d9,_0x10dc14,_0x2a1316,_0x1a8a33){const _0x2a934a=_0x38c45a;super(),this['_config']=_0x241518,this['_injector']=_0x1856d9,this[_0x2a934a(0x494)]=_0x10dc14,this[_0x2a934a(0x436)]=_0x2a1316,this[_0x2a934a(0x2a5)]=_0x1a8a33;let {..._0x242f74}=(0x0,_0x4292c2[_0x2a934a(0x383)])({},_0x34c2fd,this[_0x2a934a(0x4df)]);this[_0x2a934a(0x436)][_0x2a934a(0x281)](_0x2a934a(0x1fe),_0x242f74),this[_0x2a934a(0x2f9)]();}[_0x38c45a(0x35d)](){const _0x18b6bf=_0x38c45a;(0x0,_0x4292c2['touchDependencies'])(this[_0x18b6bf(0x4bc)],[[_0x11625a],[_0x2710a0],[_0x3602fc]]);}[_0x38c45a(0x292)](){const _0x3d10d0=_0x38c45a;this[_0x3d10d0(0x4bc)][_0x3d10d0(0x3d3)](_0x11625a)[_0x3d10d0(0x3f2)]();}[_0x38c45a(0x31d)](){const _0x387dc1=_0x38c45a;[[_0x54d996],[_0x3509b4],[_0x439fbe]][_0x387dc1(0x4d2)](_0x194318=>this[_0x387dc1(0x4bc)]['add'](_0x194318)),(0x0,_0x4292c2['touchDependencies'])(this[_0x387dc1(0x4bc)],[[_0x439fbe]]),this[_0x387dc1(0x2a5)]['registerRenderModule'](_0x4292c2[_0x387dc1(0x45f)]['UNIVER_SHEET'],[_0x54d996]),this['_renderManagerService'][_0x387dc1(0x3be)](_0x4292c2[_0x387dc1(0x45f)][_0x387dc1(0x368)],[_0x3509b4]),this[_0x387dc1(0x2a5)][_0x387dc1(0x3be)](_0x4292c2['UniverInstanceType'][_0x387dc1(0x368)],[_0x4eb59a]),this[_0x387dc1(0x2a5)][_0x387dc1(0x3be)](_0x4292c2[_0x387dc1(0x45f)][_0x387dc1(0x368)],[_0x36e164]),this['_renderManagerService'][_0x387dc1(0x3be)](_0x4292c2['UniverInstanceType']['UNIVER_SHEET'],[_0x5175b6]),this['_renderManagerService']['registerRenderModule'](_0x4292c2[_0x387dc1(0x45f)]['UNIVER_DOC'],[_0x2f3f3b]);}['onStarting'](){const _0x3bdb9e=_0x38c45a;this[_0x3bdb9e(0x4bc)][_0x3bdb9e(0x339)]([_0x5ef8fb]),this['_injector'][_0x3bdb9e(0x3d3)](_0x5ef8fb);let _0x255676=this[_0x3bdb9e(0x4bc)];[[_0x11625a],[_0x2710a0],[_0x3602fc],[_0x453768],[_0x512648],[_0x316ce3],[_0x9cba75],[_0x49478d]][_0x3bdb9e(0x4d2)](_0x1a5dee=>_0x255676['add'](_0x1a5dee)),(0x0,_0x4292c2[_0x3bdb9e(0x41b)])(this[_0x3bdb9e(0x4bc)],[[_0x11625a],[_0x2710a0],[_0x3602fc],[_0x453768],[_0x512648],[_0x316ce3],[_0x9cba75],[_0x49478d]]);}[_0x38c45a(0x2f9)](){const _0x33d15d=_0x38c45a;[_0x22bd17,_0x3e9f73,_0x4301de,_0x51f215,_0x51350f,_0x2cfc00,_0x20fc35,_0x4db0c5,_0x23d8b4,_0x58f5d9,_0x14c47b][_0x33d15d(0x4d2)](_0x35476b=>this[_0x33d15d(0x29a)](this[_0x33d15d(0x494)][_0x33d15d(0x206)](_0x35476b)));}};_0x1d4f9f(_0xf9eeed,_0x38c45a(0x442),_0x4292c2['UniverInstanceType'][_0x38c45a(0x368)]),_0x1d4f9f(_0xf9eeed,_0x38c45a(0x3b3),_0x38c45a(0x307)),_0x1d4f9f(_0xf9eeed,_0x38c45a(0x4b7),_0x28b090),_0x1d4f9f(_0xf9eeed,_0x38c45a(0x23c),_0xbbfd89),_0xf9eeed=_0x47d9ca([(0x0,_0x4292c2['DependentOn'])(_0xd47359[_0x38c45a(0x2d9)],_0x20dd8d[_0x38c45a(0x3e4)],_0x50ebc5['UniverSheetsShapePlugin']),_0x403efc(0x1,(0x0,_0x4292c2['Inject'])(_0x4292c2[_0x38c45a(0x30e)])),_0x403efc(0x2,_0x4292c2[_0x38c45a(0x3de)]),_0x403efc(0x3,_0x4292c2[_0x38c45a(0x469)]),_0x403efc(0x4,_0x5446b3[_0x38c45a(0x2dd)])],_0xf9eeed),_0x156817['SetShapeTextFontSizeCommand']=_0x51350f,_0x156817[_0x38c45a(0x3ec)]=_0x2cfc00,_0x156817[_0x38c45a(0x29b)]=_0x20fc35,_0x156817[_0x38c45a(0x40e)]=_0x51f215,_0x156817['SetShapeTextVerticalAlignCommand']=_0x4301de,_0x156817[_0x38c45a(0x1f4)]=_0x58f5d9,Object[_0x38c45a(0x40b)](_0x156817,'SheetsShapeUIController',{'enumerable':!0x0,'get':function(){return _0x11625a;}}),Object[_0x38c45a(0x40b)](_0x156817,_0x38c45a(0x330),{'enumerable':!0x0,'get':function(){return _0xf9eeed;}}),_0x156817[_0x38c45a(0x39c)]=_0x3e9f73;}));function _0x4314(){const _0x226450=['vertical','defineProperty','sheet.shape.edit.panel','mergeMenu','SetShapeTextHorizontalAlignCommand','_copyInfo','_executeConnectionCommand','_urlImageService','CUT','1342065vLyaIL','Image','_cxtHandlerPointerMove','SheetInterceptorService','setShapeProps','ShapeRenderModeEnum','_activeAdjustInfo','@univerjs/drawing','touchDependencies','SHEET_VIEWPORT_KEY','_closeShapeEditPanel','getUnit','isEditing','_addShapeConnectorHandlerObject','SHAPE_TEXT','SetSheetsShapeRotateCommand','CENTER','sheets-shape-ui.toggleFlipV','refreshTransform','getBatchAddOp','getViewportByCell','_menuManagerService','worldPoint','offsetY','updateContext','sheetViewStartColumn','isHitLine','_executeConnectedRouteResizeCommand','removeLinePoints','_cxtHandlerPointerUp','RibbonStartGroup','ISidebarService','_attachAdjustEvent','_generatePasteMutations','getRealBound','_configService','Vector2','Line','_handleBasicShapeUpdateConnectorLineShape','setHighlighted','Large','RENDER_CLASS_TYPE','_updateShapeAdjustControls','_loadShapePictureFill','sectionBreaks','toPrimitive','transformByState','type','SheetPermissionCheckController','_baseShapeLeft','@univerjs-pro/shape-editor-ui','_baseTop','_clearPopups','complete','WrapStrategy','1610496qHOVee','params','beginPath','find','setEditing','getDrawingVisible','focusDrawing','subscribeContextValue$','isConnectorShape','setPrstGeom','size','startWith','getConnectionSiteList','RemoveSheetDrawingCommand','scale','_updateAdjustControlPositions','PaintBucketDoubleIcon','sheets-shape-ui.toolbar.resetColor','isHorizontal','applyPoint','isRenderLinePointsMode','UniverInstanceType','_handleConnectorPointerUp','startConnectionDetection','ThemeService','sheets-shape-ui.toolbar.verticalAlignMode.main','_sheetPermissionCheckController','_getShapeAdjustInfosById','getShapeTypeById','onCommandExecuted','CURSOR_TYPE','IConfigService','_props','sheets-shape-ui.align.right','Path','getImage','CROSSHAIR','sheet.command.shape-doc-align','top-center','activeSheet$','SetDrawingApplyMutation','getShapeData','with','Module','React','UniverSheetsUi','Observable','_currentUniverService','routeConnectorLineShape','_initSheetChange','DrawingCommonPanel','DrawingTypeEnum','stroke','changeEnd$','_sidebarService','value','getDrawingSearch','sheets-shape-ui.align.center','_isOpenedShapeEditPanel','stringify','_addControl','TRUE','SetInlineFormatTextBackgroundColorCommand','calculate','snapToGrid','div','sheets-shape-ui.toolbar.fillColor.main','LEFT','endConnectionDetection','getAdjustNames','adjHandleSize','_activeShapeAdjustPointList','length','_targetShapeId','_commandService','exports','parse','UniverProSheetsShape','renderConfig','_hasReset','_moveConnectorWithShape','_rerouteConnectorLine','CommandType','_sheetsShapeService','UniverProShapeEditorUi','lineType','Disposable','DocCanvasPopManagerService','cxnPointFill','sheets-shape-ui.permission.editErr','call','_lastEditingShapeKey','getDrawingOKey','_findShapeAtPoint','SheetDrawingAnchor','SolidLine','cxnPointStroke','getShapePopupMenus','_imageIoService','UpdateLineShapeResizeCommand','_createCopyInfoByRange','disableShapeOption','setContextValue','ShapePickerDropdown','_activeAdjustPointList','_addShapeConnectorHandlerObjects','_getConnectPointInfo','_baseShapeHeight','localToWorld','packageName','_univerInstanceService','_initEditingParams','getCurrentLastSelection','interceptCommand','_injector','_sheetDrawingShapeRenderController','ImageSourceTypeEnum','setShapeData','shapeType','_contextService','onPointerMove$','_registerShapeMenu','worldPoints','isHighlighted','renderDrawingShape','WRAP','makeDirty','Documents','buildShapeTextDataUpdate','@univerjs-pro/engine-shape','getImageSourceCache','_registerMoveHandler','LocaleService','setSrcRect','_shapeEditPanelVersion','SheetSkeletonManagerService','forEach','src','focus$','custom','_isConnecting','_commandExecutedListener','createControl$','onTransformChange$','addObject','dispose','_initialize','ShapeTypeEnum','getUnitId','_config','save','_executeConnectedRouteConnectionCommand','from','_getConnectionSiteAngle','normal','_updateSrcRectByTransform','SheetCanvasPopManagerService','sheet.shape.floating-toolbar','InsertSheetsShapeMutation','_createShapePopupMenu','SolidFill','_getDrawingRect','viewBound','getEditing','_getSceneAndTransformerByDrawingSearch','computeConnectorRouteLayout','rxjs','ISheetClipboardService','SheetsShapeService','ShapeDocAlignCommand','gdRefY','BooleanNumber','#1a73e8','UniverProEngineShape','resetCursor','_subUnitId','#bcbcbc','FOCUSING_COMMON_DRAWINGS','_cxnIndex','sheets-shape-ui.config','#FFFFFF','end','shapeId','SetSheetsShapeTextVerticalToggleCommand','activeAnObject','executeCommand','add$','registerCommand','sheets-shape-ui','_updateImageAdjValues','image-clip-adjust-point-','getDrawingPoints','_shapeService','FOCUSING_SHAPE_TEXT_EDITOR','sheets-shape-ui.insertShape','MenuItemType','_initEvents','RIGHT','_baseHeight','_registerGroupFeaturePasteHook','max','keys','getDrawingShapeKeyByDrawingSearch','isArray','transform','_createControls','_initializedShapePopupMenu','flipX','strokeWidth','_adjHandlerPointerMove','_highlightedSiteIndex','Shape','buildClipPath','objects','cos','getAdjustInfoByName','addClipboardHook','symbol','textRuns','highlighted','@univerjs/sheets-ui','_disposePopups','699949zCGfFc','open','sheets-shape-ui.align.middle','shape-adjust-point-','data','beforeCommandExecuted','RemoveSheetCommand','_getZoomRatio','values','endArrow','subscribe','disableObjectsEvent','cxnPointRadius','_handleConnectedEndpointPointerUp','_adjHandlerPointerUp','_clearControls','_executeResizeCommand','_baseShapeWidth','_drawingAddListener','version','_handleFreeEndpointPointerUp','_connectorObjects','onDblclick$','getDrawingData','sheet.command.set-shape-text-font-size-increase','invert','@univerjs/sheets-drawing','function','_context','IMenuManagerService','abs','preValue','multiply','point','width','getZoomRatio','discreteRangeToRange','_isStartAdjusting','useEffect','IImageIoService','popup','DRAWING_SHAPE','insertGroupObject','_registerFocusChangeHandler','UpdateConnectorRelationCommand','_getImageDrawingInfo','ShapeDefaultConfig','changeShapeType','image','transformToDrawingPosition','@univerjs/drawing-ui','draw','setPrstGeomAdjValues','_connectionSiteObjects','@univerjs-pro/sheets-shape-ui','InsertShapeCommand','_sheetShapeAdjustController','update$','getCurrentTypeOfUnit$','_baseDrawingRect','getBatchUpdateOp','_componentManager','_initPermission','fillImageSourceType','@univerjs/core','primary.600','register','_generateCutPasteMutations','height','UniverCore','sheets-shape-ui.toolbar.horizontalAlignMode.main','refreshAdjustControls','useDependency','isDrawingObject','translateWithPrecision','blockExecuteWithoutPermission','DRAWING_OBJECT_LAYER_INDEX','updateShapeFillImage','getBasicShapeRelation','useMemo','getOwnPropertyDescriptor','_sheetSkeletonService','_isStartConnectorPoint','onload','getMenuHiddenObservable','@univerjs/ui','addImageSourceCache','subscribeEvent','setConfig','_focusedDrawings','shape-text-','targetShapeId','DocSelectionRenderService','_openShapeEditPanel','UniverSheetsDrawingUi','TOP','ancestorTransform','angle','sheet.command.update-shape-data','changing$','cxnPointStrokeWidth','prstGeom','shapeText','SheetsSelectionsService','6258852szNQmd','onSteady','indexOf','restore','INSERT','getEndConnectInfo','getStartConnectInfo','ShapeGroupEnum','getBentTypeFromPoints','disposeWithMe','SetShapeTextFontSizeIncreaseCommand','visible','copyType','START','next','_getScrollInfo','calcAdjValue','setAdjustValueByName','FORMAT','attachRangeWithCoord','_renderManagerService','UniverUi','getColorFromTheme','_imageShapeClipController','SetShapeDrawingDataCommand','offsetX','clipByShape','_currentConnectionTarget','@univerjs/engine-render','setFillImage','getBasicShapeRotateBound','18XjknGc','relation','jsx','sheets-shape-ui.imagePanel.crop.shape','icon','getBatchRemoveOp','RibbonInsertGroup','_draggingConnectorId','setCursor','UUID','_drawSimpleText','DEFAULT','sheets-shape-ui.toggleTextVertical','getCurrentScrollState','shapeData','_unitId','index','COPY_TYPE','sheet.command.set-shape-text-font-size','UniverSheetsDrawing','startArrow','_sheetInterceptorService','connector-handler-','BUTTON_SELECTOR','gdRefR','_createShapeAdjustControls','_getShapeAdjustPointListById','subUnitId','sheetTransform','UniverDrawing','memo','#111827','react','SheetsDrawingGroupCopyPasteController','GROUP','object','clearAdjustValue','BUTTON','AlignOperationCommand','syncExecuteCommand','_generateCopyPasteMutations','UniverShapeEditorUIPlugin','sheets-shape-ui.align.bottom','228QZgvnQ','horizontal','IRenderManagerService','GridType','ResetInlineFormatTextBackgroundColorCommand','toDisposable','_initMenu','adjHandleStroke','_registerDrawingFocusChangeHandler','_sidebarDisposable','onerror','SheetSkeletonService','EMPTY','getTransformerByCreate','render','setShouldShowAdjust','ComponentManager','_clearShapeAdjustControls','textStyle','getShapeDataById','isRichText','startX','UPDATE','viewportScrollY','sheet.command.set-shape-text-horizontal-align','_adjName','has','Circle','@univerjs-pro/sheets-shape','editingParams$','_initCommands','None','ShapeModel','DocSelectionManagerService','UniverSheets','constructor','ISheetDrawingService','doc','RemoveSheetsShapeMutation','ShapeEditPanel','decorate','getMatrix','VerticalAlign','getState','SHEET_SHAPE_UI_PLUGIN','getDrawingEditable','getAdjustValueByName','drawingId','scene','create','flipY','Injector','registerFeatureMenuOffset','slice','fill','MEDIA','_resetState','transformForAngle','HorizontalAlign','_getOrCreateShapeModel','map','rotation','DrawingRenderService','IContextService','WorkbookEditablePermission','_insertShapes','onReady','_draw','onPointerDown$','_registerOperations','getCurrentUnitInfo','spaceBelow','getObjectIncludeInGroup','_transformCalculateSrcRect','startY','_shapeTextEditingService','ang','@univerjs/docs','getDrawingByParam','_shapeUpdateListener','_sheetClipboardService','getShapeTextRect','_showConnectionSites','prototype','clone','UniverSheetsShapeUIPlugin','prstGeomAdjValues','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','ShapeTextFloatToolbar','DEFAULT_PASTE','_activeImageId','_handleFreeEndpointMove','_reset','isRender','add','VERTICAL_ROTATE_ANGLE','REMOVE','srcRect','_handleConnectedEndpointMove','sheets-shape-ui.formatShape','push','getConnectionInfo','sheets-shape-ui.align.left','redo','getSheetBySheetId','_attachConnectorObjectEvent','updateLinePoints','left','viewportScrollX','COLOR_PICKER_COMPONENT','OPERATION','gridType','lineSpacing','adjName','_getShapeInfo','UniverEngineRender','getConnectorLinePoints','getConnectionRelation','getShapeModel','getDrawingOrder','sheets-shape-ui.deleteShape','_drawingRenderService','deriveStateFromActiveSheet$','set','BehaviorSubject','getObject','URL','paragraphs','adjHandleFill','_init','onRendered','UpdateSheetsShapeDataMutation','error','isInGroup','documentStyle','2480664wMdknq','VIEW_MAIN','remove$','getFocusDrawings','cxnIndex','_isDrawingShapePointDown','UNIVER_SHEET','setCanUseShapeClip','DrawingApplyType','_isHighlighted','_sheetCanvasPopManagerService','ShapeFillEnum','_onSavingEditorData$','DRAWING_IMAGE','_transform','localeService','drawingType','VIEW_MAIN_LEFT','classType','SELECTOR','_localeService','horizontalAlign','COMMAND','@univerjs/docs-ui','FALSE','isLineShape','entries','connection-site-','drawWith','amd','switchMap','_baseLeft','getSheetCommandTarget','merge','_drawingManagerService','UniverProSheetsShapeUi','_updateTransform','drawing.operation.set-drawing-active','stopPropagation','getSkeleton','top','_groupCopyPasteController','pipe','dataStream','sheet.command.set-shape-text-vertical-align','fillType','sheet.shape.text.float-menu','string','SheetScrollManagerService','DrawingImageClipService','isStartConnectorPoint','_addShapeAdjustControl','#4285f4','sheet.command.set-shape-text-font-size-decrease','_baseShapeTop','_sheetBasicShapeConnectionPointController','VIEW_MAIN_LEFT_TOP','sheets-shape-ui.rotateRight90','UpdateShapeDataCommand','worldRect','univer-box-border\x20univer-px-4\x20univer-text-sm','zeroWidthParagraphBreak','toStringTag','DocumentSkeleton','getShapeTextData','sheetViewStartRow','sheet.shape.picker.component','_currentScene','_registerDrawingMoveHandler','_clipService','AlignBottomIcon','_registerImageShapeClipDelegate','getShapeType','LeftJustifyingIcon','generateRandomId','_popupMenuListener','_registerComponents','getContextValue','_activeShapeId','unsubscribe','_sheetDrawingService','pluginName','_isShouldShowDrawingShapeAdjust','shapeModel','adjustValues','Transform','enableObjectsEvent','_clearConnectionSites','isCurvedConnectorShape','_isImagePointerDown','ShapeArrowTypeEnum','undo','registerRenderModule','fillImageSource','Arrow','computeConnectorResizeLayout','sheets-shape-ui.toggleFlipH','RibbonPosition','onPointerUp$','_clearShapeConnectorHandlerObjects','2JGsLIy','_activeShapeModel','_baseWidth','getParent','dataModel','asObservable','_drawShapeText','useState','9782370dawPel','pick','_shapeId','_editingParams$','UniverDocsUi','get','UniverDocs','filter','_drawRichText','_getImagePrstGeom','skeleton','sqrt','_activeShapeInfo','ShapeTextEditorContainer','attachTransformerTo','_calculateFreeEndpointAngle','ICommandService','getCurrentSkeleton','gdRefAng','LAYOUT','_initSelection','_shapes','UniverSheetsDrawingUIPlugin','ShapeArrowSizeEnum','clearAdjustControls','_activeTargetShapeId','resize','gdRefX','updateConnectionDetection','180796BsdmHb','SetShapeTextFontSizeDecreaseCommand','MIDDLE','ConnectorCoordinateTransform','Inject','createInternalEditorID','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','initShapePopupMenu','sin','paragraphStyle','changeStart$','StraightConnector1','ShapeFloatingToolbar','ToggleSheetsShapeFlipCommand','body','Plugin','unitId','floor','IDrawingManagerService','shapeKey','rect','jsxs','clip','ShapeTextFloatMenuRenderControllerBase','IUniverInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_findNearestConnectionSite','oKey','getRenderById','translate','lineShapeId'];_0x4314=function(){return _0x226450;};return _0x4314();}
|
|
1
|
+
function _0x5c5d(_0x65067d,_0x3ff196){_0x65067d=_0x65067d-0x1d3;const _0x4bbfcd=_0x4bbf();let _0x5c5df3=_0x4bbfcd[_0x65067d];return _0x5c5df3;}(function(_0x542ce6,_0x217479){const _0x217682=_0x5c5d,_0x1b40fb=_0x542ce6();while(!![]){try{const _0x8027ab=parseInt(_0x217682(0x470))/0x1+-parseInt(_0x217682(0x286))/0x2+-parseInt(_0x217682(0x301))/0x3*(parseInt(_0x217682(0x21b))/0x4)+parseInt(_0x217682(0x4bf))/0x5*(parseInt(_0x217682(0x351))/0x6)+parseInt(_0x217682(0x45c))/0x7*(parseInt(_0x217682(0x340))/0x8)+parseInt(_0x217682(0x3b0))/0x9+-parseInt(_0x217682(0x2c4))/0xa;if(_0x8027ab===_0x217479)break;else _0x1b40fb['push'](_0x1b40fb['shift']());}catch(_0x27813){_0x1b40fb['push'](_0x1b40fb['shift']());}}}(_0x4bbf,0x72b76),function(_0x57074d,_0x2e67d1){const _0x3736fd=_0x5c5d;typeof exports=='object'&&typeof module<'u'?_0x2e67d1(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('@univerjs/docs-ui')):typeof define==_0x3736fd(0x489)&&define['amd']?define(['exports',_0x3736fd(0x3a3),_0x3736fd(0x1d4),_0x3736fd(0x4b5),_0x3736fd(0x322),_0x3736fd(0x341),_0x3736fd(0x3b7),_0x3736fd(0x250),_0x3736fd(0x446),_0x3736fd(0x2f7),'rxjs',_0x3736fd(0x426),_0x3736fd(0x217),_0x3736fd(0x2b5),'@univerjs/sheets-drawing-ui',_0x3736fd(0x34f),_0x3736fd(0x255),_0x3736fd(0x382),_0x3736fd(0x307)],_0x2e67d1):(_0x57074d=typeof globalThis<'u'?globalThis:_0x57074d||self,_0x2e67d1(_0x57074d[_0x3736fd(0x40c)]={},_0x57074d[_0x3736fd(0x3bd)],_0x57074d['UniverProEngineShape'],_0x57074d[_0x3736fd(0x4c5)],_0x57074d['UniverProSheetsShape'],_0x57074d[_0x3736fd(0x391)],_0x57074d[_0x3736fd(0x335)],_0x57074d[_0x3736fd(0x4f4)],_0x57074d[_0x3736fd(0x37a)],_0x57074d['UniverSheetsUi'],_0x57074d[_0x3736fd(0x4ec)],_0x57074d[_0x3736fd(0x3f2)],_0x57074d[_0x3736fd(0x4b7)],_0x57074d['UniverProLicense'],_0x57074d['UniverSheetsDrawingUi'],_0x57074d[_0x3736fd(0x4b7)],_0x57074d['UniverSheetsDrawing'],_0x57074d[_0x3736fd(0x4a3)],_0x57074d[_0x3736fd(0x48e)]));}(this,function(_0x3349db,_0x229cfc,_0x4f5ff8,_0x10236c,_0x5927be,_0x1f6ce6,_0x231b82,_0x2ee308,_0x58b748,_0x522354,_0x21c04f,_0x25185e,_0x2508da,_0x45c59e,_0x1700e5,_0x44112a,_0x43e147,_0x1ed768,_0x44ec79){const _0x47cc0f=_0x5c5d;Object[_0x47cc0f(0x2de)](_0x3349db,Symbol[_0x47cc0f(0x439)],{'value':_0x47cc0f(0x4c3)});function _0x489083(_0x5e455b,_0x1490a2){const _0x2a47eb=_0x47cc0f;let _0x5d81e9={};for(let _0x2e0ac3 of Object['keys'](_0x1490a2)){let _0x28ef1f=_0x1490a2[_0x2e0ac3],_0xf62a61=_0x5e455b[_0x2e0ac3];if(_0x28ef1f!==void 0x0){if(_0xf62a61===void 0x0){_0x5d81e9[_0x2e0ac3]=void 0x0;continue;}typeof _0x28ef1f==_0x2a47eb(0x467)&&_0x28ef1f&&!Array['isArray'](_0x28ef1f)&&typeof _0xf62a61=='object'&&_0xf62a61&&!Array[_0x2a47eb(0x481)](_0xf62a61)?_0x5d81e9[_0x2e0ac3]=_0x489083(_0xf62a61,_0x28ef1f):_0x5d81e9[_0x2e0ac3]=_0xf62a61;}}return _0x5d81e9;}let _0x4417a8={'type':_0x1f6ce6[_0x47cc0f(0x30e)][_0x47cc0f(0x3ff)],'id':_0x47cc0f(0x249),'handler':(_0x2ef1fc,_0x4bb7fd)=>{const _0x40693e=_0x47cc0f;let _0xa7b636=_0x2ef1fc[_0x40693e(0x1e3)](_0x5927be['SheetsShapeService']),{unitId:_0x2dc0b7,subUnitId:_0x5722c5,shapeType:_0x20f89c,shapeId:_0x1a4af8,shapeData:_0x1586de,oldShapeJSON:_0x468c3b}=_0x4bb7fd;if(!_0xa7b636[_0x40693e(0x381)](_0x2dc0b7,_0x5722c5,_0x1a4af8))return!0x1;let _0x4b56e5=_0x2ef1fc[_0x40693e(0x1e3)](_0x1f6ce6[_0x40693e(0x2bd)]),_0x58dc54=_0x2ef1fc['get'](_0x1f6ce6['IUndoRedoService']),{oldShapeType:_0x1255ea,oldShapeData:_0x443dfa={}}=_0x468c3b,_0x3b4320=_0x489083(_0x443dfa,_0x1586de||{}),_0x47acf9={'id':_0x5927be[_0x40693e(0x431)]['id'],'params':{'unitId':_0x2dc0b7,'subUnitId':_0x5722c5,'shapeId':_0x1a4af8,'shapeType':_0x20f89c,'shapeData':_0x1586de}},_0x17d5f0={'id':_0x5927be['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x2dc0b7,'subUnitId':_0x5722c5,'shapeId':_0x1a4af8,'shapeType':_0x1255ea,'shapeData':_0x3b4320}};return _0x4b56e5[_0x40693e(0x4e1)](_0x47acf9['id'],_0x47acf9[_0x40693e(0x305)])?(_0x58dc54[_0x40693e(0x430)]({'unitID':_0x2dc0b7,'undoMutations':[_0x17d5f0],'redoMutations':[_0x47acf9]}),!0x0):!0x1;}};function _0x3cbdfc(_0x1ab0cb,_0x29e98b,_0x25d604,_0x15a1b3,_0x35f80b,_0xc3ca5d){const _0x23aa63=_0x47cc0f;let _0x2254a5={'unitId':_0x29e98b,'subUnitId':_0x25d604,'shapeId':_0x15a1b3,'shapeData':_0xc3ca5d,'oldShapeJSON':_0x35f80b};return _0x1ab0cb[_0x23aa63(0x2cb)](_0x4417a8['id'],_0x2254a5);}function _0x44fc43(_0x1742f2,_0x420403,_0x276a5f,_0x4efbf9,_0x12b72a,_0x3c99b5){const _0x28ea42=_0x47cc0f;let _0x264918={'unitId':_0x420403,'subUnitId':_0x276a5f,'shapeId':_0x4efbf9,'shapeData':_0x3c99b5,'oldShapeJSON':_0x12b72a};return _0x1742f2[_0x28ea42(0x2cb)](_0x4417a8['id'],_0x264918);}function _0x4b708f(_0x37ba92){'@babel/helpers - typeof';return _0x4b708f=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x2628cc){return typeof _0x2628cc;}:function(_0x47ac08){const _0x4e4e81=_0x5c5d;return _0x47ac08&&typeof Symbol==_0x4e4e81(0x489)&&_0x47ac08[_0x4e4e81(0x390)]===Symbol&&_0x47ac08!==Symbol['prototype']?_0x4e4e81(0x310):typeof _0x47ac08;},_0x4b708f(_0x37ba92);}function _0x3ed04f(_0x70e2c2,_0x58add6){const _0x9b8b2=_0x47cc0f;if(_0x4b708f(_0x70e2c2)!=_0x9b8b2(0x467)||!_0x70e2c2)return _0x70e2c2;var _0x25428b=_0x70e2c2[Symbol['toPrimitive']];if(_0x25428b!==void 0x0){var _0x1046f0=_0x25428b[_0x9b8b2(0x3ca)](_0x70e2c2,_0x58add6||_0x9b8b2(0x20f));if(_0x4b708f(_0x1046f0)!='object')return _0x1046f0;throw TypeError(_0x9b8b2(0x24a));}return(_0x58add6===_0x9b8b2(0x319)?String:Number)(_0x70e2c2);}function _0x2954f(_0x219237){const _0x1d2abd=_0x47cc0f;var _0xbe82a9=_0x3ed04f(_0x219237,_0x1d2abd(0x319));return _0x4b708f(_0xbe82a9)==_0x1d2abd(0x310)?_0xbe82a9:_0xbe82a9+'';}function _0x562cac(_0x387b16,_0x5e3a92,_0x270a57){const _0x4e3987=_0x47cc0f;return(_0x5e3a92=_0x2954f(_0x5e3a92))in _0x387b16?Object[_0x4e3987(0x2de)](_0x387b16,_0x5e3a92,{'value':_0x270a57,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x387b16[_0x5e3a92]=_0x270a57,_0x387b16;}function _0x527b23(_0x12cd62,_0x4b7576,_0x615d44){const _0x5c64a9=_0x47cc0f;var _0x193155;let _0x4e8f2e=(0x0,_0x10236c[_0x5c64a9(0x3dd)])(_0x12cd62,{..._0x4b7576,'dataModel':{...(_0x193155=_0x4b7576[_0x5c64a9(0x3d9)])==null?{}:_0x193155,..._0x615d44?{'doc':_0x615d44}:null}}),_0x59ce57=(0x0,_0x10236c[_0x5c64a9(0x47a)])(_0x4e8f2e);return{'clip':(0x0,_0x10236c['shouldClipShapeTextDocument'])(_0x4e8f2e,_0x59ce57),'wrapStrategy':_0x59ce57};}var _0x2f4556=class extends _0x58b748[_0x47cc0f(0x207)]{constructor(_0x574027,_0x33b8ab){const _0x37aa73=_0x47cc0f;super(_0x574027,_0x33b8ab),_0x562cac(this,'_props',void 0x0),_0x562cac(this,'_transformCalculateSrcRect',!0x0),_0x562cac(this,_0x37aa73(0x47b),_0x1f6ce6['DrawingTypeEnum']['DRAWING_SHAPE']),_0x562cac(this,_0x37aa73(0x413),!0x0),this[_0x37aa73(0x2f8)]={..._0x33b8ab},this[_0x37aa73(0x45d)]();}['_init'](){const _0x1686bd=_0x47cc0f;this['onTransformChange$'][_0x1686bd(0x4a2)](_0x4711a9=>{const _0x250a9f=_0x1686bd;this[_0x250a9f(0x29d)](_0x4711a9);});}[_0x47cc0f(0x2fe)](_0x9888b2){const _0x4b12cc=_0x47cc0f;this['_props'][_0x4b12cc(0x323)]=_0x9888b2;}[_0x47cc0f(0x302)](_0xb7cecf){const _0xcfa018=_0x47cc0f;this[_0xcfa018(0x2f8)][_0xcfa018(0x206)]=_0xb7cecf,this[_0xcfa018(0x49b)](!0x0);}get['unitId'](){return this['_props']['unitId'];}get[_0x47cc0f(0x2e1)](){const _0x54edbc=_0x47cc0f;return this['_props'][_0x54edbc(0x2e1)];}[_0x47cc0f(0x29d)](_0xe6baa7){const _0x5c827a=_0x47cc0f;if(this[_0x5c827a(0x2f8)]['srcRect']==null||!this[_0x5c827a(0x2b9)])return;let {width:_0x416c44,height:_0x18565c}=this,{width:_0x56fa3a=0x0,height:_0x23cf35=0x0}=_0xe6baa7[_0x5c827a(0x4b3)],{left:_0x1baaff=0x0,top:_0xa9e206=0x0,right:_0x44fd75=0x0,bottom:_0x2960e7=0x0}=this[_0x5c827a(0x2f8)][_0x5c827a(0x3a1)],_0x4c4de8=_0x1baaff,_0x3160e2=_0xa9e206,_0x4cce58=_0x44fd75,_0x5a5a93=_0x2960e7,_0x585aea=!0x1;if(_0x56fa3a!==0x0&&_0x56fa3a!==_0x416c44){let _0x5f19c6=_0x1baaff/_0x56fa3a,_0x38e96b=_0x44fd75/_0x56fa3a;_0x4c4de8=_0x416c44*_0x5f19c6,_0x4cce58=_0x416c44*_0x38e96b,_0x585aea=!0x0;}if(_0x23cf35!==0x0&&_0x23cf35!==_0x18565c){let _0x5bf265=_0xa9e206/_0x23cf35,_0x516d26=_0x2960e7/_0x23cf35;_0x3160e2=_0x18565c*_0x5bf265,_0x5a5a93=_0x18565c*_0x516d26,_0x585aea=!0x0;}_0x585aea&&this[_0x5c827a(0x42e)]({'left':_0x4c4de8,'top':_0x3160e2,'right':_0x4cce58,'bottom':_0x5a5a93});}['setSrcRect'](_0x1ed0c7){const _0xa983ee=_0x47cc0f;this[_0xa983ee(0x2f8)][_0xa983ee(0x3a1)]=_0x1ed0c7,this['makeDirty'](!0x0);}['setFillImage'](_0x6aff8){const _0x1868ae=_0x47cc0f;this['_props'][_0x1868ae(0x4ef)]=_0x6aff8,this[_0x1868ae(0x49b)](!0x0);}set['transform'](_0x4fa960){const _0x6a72e5=_0x47cc0f;this[_0x6a72e5(0x289)]=_0x4fa960;}get[_0x47cc0f(0x23f)](){const _0x2bcff9=_0x47cc0f;this[_0x2bcff9(0x289)]||this['_setTransForm']();let _0x2c1941=this['_transform']['clone']();return this[_0x2bcff9(0x379)](_0x2c1941);}get[_0x47cc0f(0x28c)](){const _0x2b92cf=_0x47cc0f;return this[_0x2b92cf(0x2f8)][_0x2b92cf(0x28c)];}get[_0x47cc0f(0x4d8)](){const _0x38ee71=_0x47cc0f;return this[_0x38ee71(0x2f8)][_0x38ee71(0x4d8)];}get[_0x47cc0f(0x2a8)](){const _0x1d6446=_0x47cc0f;return _0x58b748['RENDER_CLASS_TYPE'][_0x1d6446(0x2d1)];}[_0x47cc0f(0x464)](_0x4d9e28,_0x2bcd41,_0x5c47bd,_0x172960){const _0xd6b8ed=_0x47cc0f;let _0x1d350b=this[_0xd6b8ed(0x2f8)]['shapeModel'];if(!_0x1d350b||!_0x2bcd41)return;let _0x323f72=_0x5c47bd==null?this[_0xd6b8ed(0x300)]:_0x5c47bd,_0x12af7e=_0x172960==null?this[_0xd6b8ed(0x1e8)]:_0x172960,_0xc3707f={'shapeType':_0x1d350b[_0xd6b8ed(0x2d8)](),'width':_0x323f72,'height':_0x12af7e},_0x3ed73e={'renderMode':_0x4f5ff8[_0xd6b8ed(0x438)][_0xd6b8ed(0x397)],'oKey':this[_0xd6b8ed(0x3bc)],'image':this[_0xd6b8ed(0x2f8)]['image'],'angle':this['angle']};_0x1d350b[_0xd6b8ed(0x210)](_0xc3707f),_0x4d9e28[_0xd6b8ed(0x415)]();let _0x148c2c={'top':0x0,'left':0x0,'width':_0x323f72,'height':_0x12af7e};_0x1d350b[_0xd6b8ed(0x371)](_0x4d9e28,_0x148c2c,_0x3ed73e),_0x4d9e28[_0xd6b8ed(0x27c)]();let _0x1e3837=_0x1d350b[_0xd6b8ed(0x1ea)](),_0x2ca0dc=_0x1d350b[_0xd6b8ed(0x202)](_0x148c2c),_0x41bbc7=_0x1d350b['isLineShape']();if(_0x1e3837&&_0x2ca0dc&&!_0x41bbc7){_0x4d9e28[_0xd6b8ed(0x415)](),this[_0xd6b8ed(0x344)]()[_0xd6b8ed(0x42d)]&&_0x4d9e28[_0xd6b8ed(0x20a)](-0x1,0x1);let _0x25f91a=_0x323f72/0x2,_0x4210a5=_0x12af7e/0x2;_0x4d9e28[_0xd6b8ed(0x357)](-_0x25f91a,-_0x4210a5),_0x4d9e28[_0xd6b8ed(0x4e6)](),this['_drawShapeText'](_0x4d9e28,_0x1e3837,_0x2ca0dc),_0x4d9e28['restore']();}}['getDrawingPoints'](_0x202822){}['_drawShapeText'](_0x34ed2b,_0x35dddf,_0x428696){const _0x570157=_0x47cc0f;var _0x464415;this['_props'][_0x570157(0x206)]||(!((_0x464415=_0x35dddf['dataModel'])!=null&&_0x464415['doc'])&&_0x570157(0x2ce)in _0x35dddf&&_0x35dddf[_0x570157(0x2ce)]===!0x1?this[_0x570157(0x348)](_0x34ed2b,_0x35dddf,_0x428696):this[_0x570157(0x21f)](_0x34ed2b,_0x35dddf,_0x428696));}['_drawSimpleText'](_0x477c29,_0xb1d490,_0x21eaf9){const _0x114536=_0x47cc0f;var _0x573315;this['_drawRichText'](_0x477c29,{..._0xb1d490,'text':(_0x573315=_0xb1d490['text'])==null?'':_0x573315,'dataModel':{'doc':(0x0,_0x10236c['plainShapeTextToDocumentData'])(_0xb1d490,_0x114536(0x251)+this[_0x114536(0x3bc)])}},_0x21eaf9);}[_0x47cc0f(0x21f)](_0xb13f6d,_0x1fa068,_0x4160bf){const _0x4b6bb1=_0x47cc0f;var _0xd9b723,_0x489029;let _0x48fc2c=this[_0x4b6bb1(0x2f8)][_0x4b6bb1(0x205)];if(!_0x1fa068[_0x4b6bb1(0x3d9)]||!_0x48fc2c)return;let _0x29f40a=(0x0,_0x10236c[_0x4b6bb1(0x3d5)])(_0x1fa068['dataModel']);if(!_0x29f40a)return;let _0x1c1eda=_0x29f40a['doc'];if(!_0x1c1eda)return;let _0x449929=(_0xd9b723=_0x29f40a['va'])==null?_0x1f6ce6[_0x4b6bb1(0x484)][_0x4b6bb1(0x2c3)]:_0xd9b723,_0x4e5ff3=(_0x489029=_0x29f40a['ha'])==null?_0x1f6ce6['HorizontalAlign'][_0x4b6bb1(0x463)]:_0x489029,_0x3ae4b1=_0x527b23(this[_0x4b6bb1(0x2f8)][_0x4b6bb1(0x28c)][_0x4b6bb1(0x3b4)](),_0x1fa068,_0x1c1eda),_0x1a90df=_0x1fa068[_0x4b6bb1(0x33b)],_0xe60d75=new _0x1f6ce6[(_0x4b6bb1(0x4e2))]((0x0,_0x10236c[_0x4b6bb1(0x457)])(_0x1c1eda,{'isHorizontal':_0x1a90df!==!0x1,'textRect':_0x4160bf,'verticalAlign':_0x449929,'horizontalAlign':_0x4e5ff3,'wrapStrategy':_0x3ae4b1['wrapStrategy']})),_0x349bb2=new _0x58b748[(_0x4b6bb1(0x36f))](_0xe60d75),_0x28a1c2=_0x58b748[_0x4b6bb1(0x363)]['create'](_0x349bb2,_0x48fc2c);_0x28a1c2[_0x4b6bb1(0x26c)]();let _0x216ece=_0x28a1c2[_0x4b6bb1(0x252)]()[_0x4b6bb1(0x2b0)],_0x5ab379=(0x0,_0x10236c[_0x4b6bb1(0x29c)])({'contentHeight':_0x216ece,'verticalAlign':_0x449929,'viewportHeight':_0x4160bf[_0x4b6bb1(0x1e8)]});_0xe60d75[_0x4b6bb1(0x20e)]({'pageSize':{'width':_0x1a90df===!0x1?_0x4160bf[_0x4b6bb1(0x1e8)]:_0x4160bf[_0x4b6bb1(0x300)],'height':_0x5ab379['contentHeight']}}),_0xe60d75[_0x4b6bb1(0x445)]({'t':_0x5ab379[_0x4b6bb1(0x456)]}),_0x28a1c2['calculate']();let _0x2ce6e6=new _0x58b748[(_0x4b6bb1(0x4e5))](_0x4b6bb1(0x4ac)+this[_0x4b6bb1(0x3bc)],_0x28a1c2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x2ce6e6[_0x4b6bb1(0x33a)](_0x4160bf[_0x4b6bb1(0x300)],_0x5ab379['contentHeight']),_0xb13f6d[_0x4b6bb1(0x415)](),_0xb13f6d[_0x4b6bb1(0x4d3)](_0x4160bf[_0x4b6bb1(0x3c3)],_0x4160bf['top']),_0x3ae4b1[_0x4b6bb1(0x3af)]&&(_0xb13f6d['beginPath'](),_0xb13f6d[_0x4b6bb1(0x23c)](0x0,_0x5ab379[_0x4b6bb1(0x1e2)],_0x4160bf[_0x4b6bb1(0x300)],_0x5ab379[_0x4b6bb1(0x32f)]),_0xb13f6d[_0x4b6bb1(0x3af)]()),_0x5ab379[_0x4b6bb1(0x362)]&&_0xb13f6d[_0x4b6bb1(0x4d3)](0x0,_0x5ab379[_0x4b6bb1(0x362)]),_0x2ce6e6[_0x4b6bb1(0x3fb)](_0xb13f6d),_0xb13f6d['restore'](),_0x2ce6e6[_0x4b6bb1(0x435)](),_0x28a1c2[_0x4b6bb1(0x435)](),_0x349bb2['dispose'](),_0xe60d75[_0x4b6bb1(0x435)]();}[_0x47cc0f(0x371)](_0x24b6dc,_0x56b040,_0x4aa8ad=!0x1){const _0x5860b5=_0x47cc0f;if(!this[_0x5860b5(0x367)])return this[_0x5860b5(0x49b)](!0x1),this;let {width:_0x20ce58,height:_0x2d8878,left:_0x344d2f,top:_0x5d6552}=this,_0x3a841f=this[_0x5860b5(0x3f7)]();if(_0x20ce58=_0x3a841f['width'],_0x2d8878=_0x3a841f[_0x5860b5(0x1e8)],_0x344d2f=_0x3a841f[_0x5860b5(0x3c3)],_0x5d6552=_0x3a841f[_0x5860b5(0x3ad)],this['isRender'](_0x56b040)){let {top:_0x2e5682,left:_0xabf606,bottom:_0x3aef44,right:_0x32836f}=_0x56b040[_0x5860b5(0x222)];if(_0x20ce58+this[_0x5860b5(0x208)]+_0x344d2f<_0xabf606||_0x32836f<_0x344d2f||_0x2d8878+this[_0x5860b5(0x208)]+_0x5d6552<_0x2e5682||_0x3aef44<_0x5d6552)return this;}let _0xf5a7f6=_0x344d2f+_0x20ce58/0x2,_0x3cb9a0=_0x5d6552+_0x2d8878/0x2,_0x17de5c=this[_0x5860b5(0x23f)][_0x5860b5(0x34d)]();if(this[_0x5860b5(0x2f8)]['isEditing']){let _0x4eb6ed=this['getState'](),_0x218cf6=new _0x58b748[(_0x5860b5(0x2ba))]();_0x218cf6['composeMatrix']({..._0x4eb6ed}),_0x17de5c=_0x218cf6['getMatrix']();}return _0x24b6dc[_0x5860b5(0x415)](),this[_0x5860b5(0x2f8)][_0x5860b5(0x28c)]['isRenderLinePointsMode']===!0x0||_0x24b6dc[_0x5860b5(0x23f)](_0x17de5c[0x0],_0x17de5c[0x1],_0x17de5c[0x2],_0x17de5c[0x3],_0xf5a7f6,_0x3cb9a0),this['_draw'](_0x24b6dc,_0x56b040,_0x20ce58,_0x2d8878),_0x24b6dc[_0x5860b5(0x27c)](),this['makeDirty'](!0x1),this;}[_0x47cc0f(0x204)](_0x3dd0d8){const _0x12777d=_0x47cc0f;let {left:_0x16ee3e,top:_0x37a6e6,width:_0x1034de,height:_0x3af650}=this[_0x12777d(0x3f7)](),_0x34a2bf=this[_0x12777d(0x23f)][_0x12777d(0x34d)](),_0x439aaa=_0x16ee3e+_0x1034de/0x2,_0x1b7299=_0x37a6e6+_0x3af650/0x2,_0x1447ce=new _0x58b748['Transform']([_0x34a2bf[0x0],_0x34a2bf[0x1],_0x34a2bf[0x2],_0x34a2bf[0x3],_0x439aaa,_0x1b7299]),_0x133ddb=this[_0x12777d(0x2bf)]();return(this[_0x12777d(0x20d)]&&(_0x133ddb==null?void 0x0:_0x133ddb['classType'])===_0x58b748[_0x12777d(0x3a7)][_0x12777d(0x43b)]?_0x133ddb[_0x12777d(0x354)]['multiply'](_0x1447ce):_0x1447ce)[_0x12777d(0x1f0)]()[_0x12777d(0x4a4)](_0x3dd0d8);}[_0x47cc0f(0x479)](_0x13b6e6){const _0x4be2d7=_0x47cc0f;let {left:_0x6fec28,top:_0x4382f0,width:_0x16ac7c,height:_0x1609ab}=this[_0x4be2d7(0x3f7)](),_0xa4b200=_0x6fec28+_0x16ac7c/0x2,_0x29bbb9=_0x4382f0+_0x1609ab/0x2,_0x5a3dcf=this[_0x4be2d7(0x23f)][_0x4be2d7(0x34d)](),_0x2a5302=new _0x58b748['Transform']([_0x5a3dcf[0x0],_0x5a3dcf[0x1],_0x5a3dcf[0x2],_0x5a3dcf[0x3],_0xa4b200,_0x29bbb9]),_0x1e85a7=this[_0x4be2d7(0x2bf)](),_0x41a8bb=(this['isInGroup']&&(_0x1e85a7==null?void 0x0:_0x1e85a7[_0x4be2d7(0x2a8)])===_0x58b748[_0x4be2d7(0x3a7)][_0x4be2d7(0x43b)]?_0x1e85a7[_0x4be2d7(0x354)][_0x4be2d7(0x4ad)](_0x2a5302):_0x2a5302)[_0x4be2d7(0x1f0)]()[_0x4be2d7(0x4a4)](_0x13b6e6),_0x5d1641=_0x16ac7c/0x2,_0x312f21=_0x1609ab/0x2,_0x1d08b2=this[_0x4be2d7(0x2f8)][_0x4be2d7(0x28c)];return _0x1d08b2&&_0x1d08b2['isLineShape']()?_0x1d08b2['isHitLine'](_0x41a8bb['x'],_0x41a8bb['y'],_0x16ac7c,_0x1609ab):_0x41a8bb['x']>=-_0x5d1641-this[_0x4be2d7(0x208)]/0x2&&_0x41a8bb['x']<=_0x5d1641+this[_0x4be2d7(0x208)]/0x2&&_0x41a8bb['y']>=-_0x312f21-this['strokeWidth']/0x2&&_0x41a8bb['y']<=_0x312f21+this[_0x4be2d7(0x208)]/0x2;}[_0x47cc0f(0x435)](){const _0x4bbc72=_0x47cc0f;this[_0x4bbc72(0x2f8)]['shapeModel']=null,super[_0x4bbc72(0x435)]();}},_0x50c784=class extends _0x58b748['Shape']{constructor(_0x5670cc,_0x307919){const _0x198740=_0x47cc0f;super(_0x5670cc,_0x307919),_0x562cac(this,_0x198740(0x475),null),_0x562cac(this,_0x198740(0x26a),null),_0x562cac(this,_0x198740(0x242),null),_0x562cac(this,_0x198740(0x2ab),null),_0x307919&&this['setShapeProps'](_0x307919);}['getDrawingSearch'](){const _0x44705c=_0x47cc0f;return{'unitId':this[_0x44705c(0x242)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x44705c(0x475)]};}['setShapeProps'](_0x4f4eb5){const _0x81b292=_0x47cc0f;_0x4f4eb5[_0x81b292(0x4d8)]!==void 0x0&&(this['_shapeId']=_0x4f4eb5[_0x81b292(0x4d8)]),_0x4f4eb5[_0x81b292(0x4e0)]!==void 0x0&&(this[_0x81b292(0x26a)]=_0x4f4eb5[_0x81b292(0x4e0)]),_0x4f4eb5['unitId']!==void 0x0&&(this[_0x81b292(0x242)]=_0x4f4eb5[_0x81b292(0x394)]),_0x4f4eb5[_0x81b292(0x2e1)]!==void 0x0&&(this[_0x81b292(0x2ab)]=_0x4f4eb5[_0x81b292(0x2e1)]),this['transformByState']({'width':_0x4f4eb5['width'],'height':_0x4f4eb5[_0x81b292(0x1e8)]});}[_0x47cc0f(0x464)](_0x46480f){const _0x3552de=_0x47cc0f;_0x58b748[_0x3552de(0x4cb)][_0x3552de(0x237)](_0x46480f,{'radius':_0x4f5ff8[_0x3552de(0x4db)][_0x3552de(0x33f)],'fill':_0x4f5ff8[_0x3552de(0x4db)]['adjHandleFill'],'stroke':_0x4f5ff8[_0x3552de(0x4db)][_0x3552de(0x478)],'strokeWidth':0x1,'evented':!0x0});}};function _0x3607f9(_0x5aa37d,_0x33c223){return function(_0x3a879e,_0x429a5f){_0x33c223(_0x3a879e,_0x429a5f,_0x5aa37d);};}function _0x51130a(_0x2bfa34,_0x15f3fd,_0x4453c0,_0x5c4c59){const _0x50b9ea=_0x47cc0f;var _0x4449bf=arguments['length'],_0x1381ec=_0x4449bf<0x3?_0x15f3fd:_0x5c4c59===null?_0x5c4c59=Object['getOwnPropertyDescriptor'](_0x15f3fd,_0x4453c0):_0x5c4c59,_0x555490;if(typeof Reflect==_0x50b9ea(0x467)&&typeof Reflect['decorate']=='function')_0x1381ec=Reflect['decorate'](_0x2bfa34,_0x15f3fd,_0x4453c0,_0x5c4c59);else{for(var _0x2df6cf=_0x2bfa34['length']-0x1;_0x2df6cf>=0x0;_0x2df6cf--)(_0x555490=_0x2bfa34[_0x2df6cf])&&(_0x1381ec=(_0x4449bf<0x3?_0x555490(_0x1381ec):_0x4449bf>0x3?_0x555490(_0x15f3fd,_0x4453c0,_0x1381ec):_0x555490(_0x15f3fd,_0x4453c0))||_0x1381ec);}return _0x4449bf>0x3&&_0x1381ec&&Object[_0x50b9ea(0x2de)](_0x15f3fd,_0x4453c0,_0x1381ec),_0x1381ec;}let _0x32bb5d=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x35987f,_0x50803f,_0x27e756,_0x14025b,_0x2c0184){const _0xff16c6=_0x47cc0f;super(),this[_0xff16c6(0x416)]=_0x35987f,this[_0xff16c6(0x3c4)]=_0x50803f,this[_0xff16c6(0x3c6)]=_0x27e756,this[_0xff16c6(0x24e)]=_0x14025b,this[_0xff16c6(0x44a)]=_0x2c0184;}[_0x47cc0f(0x4ae)](_0x2d04ce,_0x1e81af,_0x38b27b){const _0x234418=_0x47cc0f;let {transform:_0x1a9903,drawingType:_0x7ca0be,srcRect:_0x5c1331,prstGeom:_0x33bbbc,groupId:_0x4cc6bb,unitId:_0x5d4a3d,subUnitId:_0x1e0e1f,drawingId:_0x235c94,isMultiTransform:_0x551aa3,transforms:_0x4c56af,hidden:_0x962f85,selectable:_0x5d94c9}=_0x2d04ce;if(_0x7ca0be!==_0x1f6ce6['DrawingTypeEnum'][_0x234418(0x3c0)]||!this['_drawingManagerService'][_0x234418(0x47c)]()||_0x1a9903==null)return;let _0x2b715a=this[_0x234418(0x416)][_0x234418(0x39b)]();_0x2b715a&&_0x1e81af['initTransformer'](_0x10236c[_0x234418(0x2f0)]);let _0x522c65=_0x551aa3&&_0x4c56af?_0x4c56af:[_0x1a9903],_0x273a6a=[];for(let _0x36ad24 of _0x522c65){let {left:_0x26a230,top:_0x327a18,width:_0x19a8ae,height:_0x22686d,angle:_0x17ec39,flipX:_0xd0949,flipY:_0x106388,skewX:_0x343913,skewY:_0x4dd5e6}=_0x36ad24,_0x3386d7=_0x522c65[_0x234418(0x486)](_0x36ad24),_0x31f94c=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5d4a3d,'subUnitId':_0x1e0e1f,'drawingId':_0x235c94},_0x551aa3?_0x3386d7:void 0x0),_0x2f2468=_0x1e81af[_0x234418(0x4d7)](_0x31f94c);if(_0x2f2468!=null){_0x2f2468[_0x234418(0x4a6)]({'left':_0x26a230,'top':_0x327a18,'width':_0x19a8ae,'height':_0x22686d,'angle':_0x17ec39,'flipX':_0xd0949,'flipY':_0x106388,'skewX':_0x343913,'skewY':_0x4dd5e6});continue;}let _0x2c779e=this[_0x234418(0x416)][_0x234418(0x40f)](_0x5d4a3d,_0x1e0e1f),_0x4cc931=_0x2c779e[_0x234418(0x486)](_0x235c94);if(_0x1e81af[_0x234418(0x4d7)](_0x31f94c)||!this[_0x234418(0x416)][_0x234418(0x47c)]())continue;let _0x5c6c15=this['_sheetsShapeService'][_0x234418(0x381)](_0x5d4a3d,_0x1e0e1f,_0x235c94);if(!_0x5c6c15)continue;let _0x181471=new _0x2f4556(_0x31f94c,{...(0x0,_0x4f5ff8['isConnectorShape'])(_0x5c6c15[_0x234418(0x2d8)]())?{..._0x36ad24,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x36ad24},'zIndex':_0x4cc931===-0x1?_0x2c779e[_0x234418(0x28e)]-0x1:_0x4cc931,'shapeModel':_0x5c6c15,'localeService':this[_0x234418(0x3c6)],'shapeId':_0x235c94,'unitId':_0x5d4a3d,'subUnitId':_0x1e0e1f,'visible':_0x962f85!==!0x0,'evented':_0x5d94c9!==!0x1});_0x1e81af[_0x234418(0x408)](_0x181471,_0x58b748['DRAWING_OBJECT_LAYER_INDEX']),_0x2b715a&&_0x1e81af[_0x234418(0x24f)](_0x181471),_0x4cc6bb&&(0x0,_0x25185e[_0x234418(0x25b)])({'drawingId':_0x4cc6bb,'unitId':_0x5d4a3d,'subUnitId':_0x1e0e1f},_0x181471,_0x1e81af,this[_0x234418(0x416)]),_0x33bbbc!=null&&_0x181471[_0x234418(0x2fe)](_0x33bbbc),_0x5c1331!=null&&_0x181471[_0x234418(0x42e)](_0x5c1331);let _0x40f666=this['_loadShapePictureFill'](_0x181471,_0x5c6c15[_0x234418(0x3b4)]());if(_0x40f666){var _0x1fe1a9;_0x38b27b==null||(_0x1fe1a9=_0x38b27b[_0x234418(0x321)])==null||_0x1fe1a9[_0x234418(0x317)](_0x40f666);}_0x273a6a[_0x234418(0x3e5)](_0x181471);}return _0x273a6a;}[_0x47cc0f(0x403)](_0x9b4d97){const _0x328036=_0x47cc0f;let _0x96eeca=_0x9b4d97[_0x328036(0x28c)][_0x328036(0x3b4)](),_0x1b39ea=_0x96eeca[_0x328036(0x266)];if(!_0x1b39ea||_0x1b39ea[_0x328036(0x230)]!==_0x4f5ff8[_0x328036(0x2ec)]['PictureFill']||!_0x1b39ea[_0x328036(0x215)]){_0x9b4d97['setFillImage'](void 0x0);return;}this[_0x328036(0x27f)](_0x9b4d97,_0x96eeca);}[_0x47cc0f(0x27f)](_0x59072c,_0xbaeea9){const _0x274ee6=_0x47cc0f;var _0x267d4c;let _0x41f170=_0xbaeea9[_0x274ee6(0x266)];if(!_0x41f170||_0x41f170[_0x274ee6(0x230)]!==_0x4f5ff8[_0x274ee6(0x2ec)][_0x274ee6(0x35b)]||!_0x41f170[_0x274ee6(0x215)])return;let _0x40c961=_0x41f170['fillImageSource'],_0x4ebec6=(_0x267d4c=_0x41f170[_0x274ee6(0x2a6)])==null?_0x4f5ff8['ImageSourceTypeEnum'][_0x274ee6(0x338)]:_0x267d4c,_0x415400=this[_0x274ee6(0x24e)][_0x274ee6(0x449)](_0x40c961,_0x4ebec6);if(_0x415400){_0x59072c[_0x274ee6(0x3d0)](_0x415400);return;}return this[_0x274ee6(0x3ea)](_0x59072c,_0x40c961,_0x4ebec6);}async[_0x47cc0f(0x3ea)](_0x272ebc,_0x3ee6a4,_0xbdafc){const _0x252144=_0x47cc0f;let _0x29abde;try{if(_0xbdafc===_0x4f5ff8[_0x252144(0x1db)][_0x252144(0x422)])_0x29abde=await this[_0x252144(0x24e)][_0x252144(0x23e)](_0x3ee6a4);else{if(_0xbdafc===_0x4f5ff8[_0x252144(0x1db)][_0x252144(0x338)])try{_0x29abde=await this[_0x252144(0x44a)]['getImage'](_0x3ee6a4);}catch{_0x29abde=_0x3ee6a4;}else _0x29abde=_0x3ee6a4;}}catch(_0x306189){console[_0x252144(0x4b9)](_0x252144(0x295),_0x306189);return;}await new Promise(_0x36b750=>{const _0x5b2482=_0x252144;let _0x5123d0=new window[(_0x5b2482(0x33e))]();_0x5123d0[_0x5b2482(0x425)]=()=>{const _0x10f857=_0x5b2482;this[_0x10f857(0x24e)][_0x10f857(0x231)](_0x3ee6a4,_0xbdafc,_0x5123d0),_0x272ebc['setFillImage'](_0x5123d0),_0x36b750();},_0x5123d0['onerror']=()=>{const _0x105970=_0x5b2482;console[_0x105970(0x4b9)](_0x105970(0x243),_0x3ee6a4),_0x36b750();},_0x5123d0[_0x5b2482(0x278)]=_0x29abde;});}};_0x32bb5d=_0x51130a([_0x3607f9(0x0,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be[_0x47cc0f(0x21d)])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1f6ce6[_0x47cc0f(0x406)])),_0x3607f9(0x3,_0x1f6ce6['IImageIoService']),_0x3607f9(0x4,_0x1f6ce6[_0x47cc0f(0x471)])],_0x32bb5d);let _0x40f08e=class extends _0x1f6ce6['Disposable']{constructor(_0x2feb75,_0x3799c4,_0x1fb785,_0x1fd81e,_0x17e369,_0xdbe408){const _0x233a99=_0x47cc0f;super(),this[_0x233a99(0x416)]=_0x2feb75,this[_0x233a99(0x3c4)]=_0x3799c4,this['_renderManagerService']=_0x1fb785,this['_sheetDrawingShapeRenderController']=_0x1fd81e,this['_univerInstanceService']=_0x17e369,this[_0x233a99(0x3e1)]=_0xdbe408,_0x562cac(this,_0x233a99(0x333),null),_0x562cac(this,'_unitId',null),_0x562cac(this,_0x233a99(0x2ab),null),_0x562cac(this,_0x233a99(0x4ed),void 0x0),_0x562cac(this,_0x233a99(0x4d0),[]),_0x562cac(this,'_baseShapeLeft',0x0),_0x562cac(this,_0x233a99(0x444),0x0),_0x562cac(this,_0x233a99(0x4c9),0x0),_0x562cac(this,'_baseShapeHeight',0x0),_0x562cac(this,_0x233a99(0x25a),!0x1),_0x562cac(this,'_activeAdjustInfo',void 0x0),_0x562cac(this,_0x233a99(0x2f6),void 0x0),_0x562cac(this,_0x233a99(0x2a7),void 0x0),_0x562cac(this,'_adjHandlerPointerUp',void 0x0),_0x562cac(this,_0x233a99(0x28b),!0x1),this[_0x233a99(0x4ea)](),this[_0x233a99(0x2af)]();}[_0x47cc0f(0x40b)](_0xa88784,_0x24df34,_0x372591){const _0x3e0dc9=_0x47cc0f;let _0x442446=this[_0x3e0dc9(0x3c4)]['getShapeModel'](_0xa88784,_0x24df34,_0x372591);if(_0x442446)return _0x442446[_0x3e0dc9(0x3f9)]();}[_0x47cc0f(0x46f)](){const _0x510d77=_0x47cc0f;this[_0x510d77(0x3d4)]();}[_0x47cc0f(0x3f5)](){const _0x21030d=_0x47cc0f;this[_0x21030d(0x1ff)](!0x0);}[_0x47cc0f(0x2e2)](_0x55f5eb){const _0x3d6c3a=_0x47cc0f;this[_0x3d6c3a(0x28b)]=_0x55f5eb;}['_getShapeAdjustInfosById'](_0x22ec4c,_0x538321,_0x338143,_0xdca310){const _0x72d920=_0x47cc0f;let _0x1a7d72=this[_0x72d920(0x3c4)][_0x72d920(0x381)](_0x22ec4c,_0x538321,_0x338143);if(_0x1a7d72)return _0x1a7d72[_0x72d920(0x223)](_0xdca310);}[_0x47cc0f(0x3a0)](_0xe68a9a=!0x1){const _0x4efa47=_0x47cc0f;if(this[_0x4efa47(0x242)]===null||this['_subUnitId']===null||this[_0x4efa47(0x333)]===null)return;let _0x14b389=this['_renderManagerService']['getRenderById'](this[_0x4efa47(0x242)]);if(!_0x14b389||!_0x14b389[_0x4efa47(0x1e4)](_0x522354[_0x4efa47(0x4ba)])[_0x4efa47(0x27d)]())return;let {scene:_0x37f590}=_0x14b389,_0x4f4fd4={'unitId':this[_0x4efa47(0x242)],'subUnitId':this[_0x4efa47(0x2ab)],'drawingId':this[_0x4efa47(0x333)]},_0x2f914f=this[_0x4efa47(0x416)]['getDrawingByParam'](_0x4f4fd4),{transform:_0x3484e8}=_0x2f914f;if(!_0x3484e8||_0x2f914f[_0x4efa47(0x2b2)]!==_0x1f6ce6[_0x4efa47(0x38b)][_0x4efa47(0x3c0)])return;let {left:_0x50d890,top:_0x78d03d,width:_0x30d841,height:_0x20eaa6,flipX:_0x10a25b,flipY:_0x8e00a9,angle:_0x3c1515=0x0}=_0x3484e8;if(_0x50d890===void 0x0||_0x78d03d===void 0x0)return;_0xe68a9a&&(this[_0x4efa47(0x4ed)]=this[_0x4efa47(0x40b)](this['_unitId'],this[_0x4efa47(0x2ab)],this[_0x4efa47(0x333)]));let _0x3fb4cc=this['_activeShapeAdjustPointList'];for(let _0x14ebb8=0x0;_0x14ebb8<_0x3fb4cc['length'];_0x14ebb8++){let _0x5d83b6=_0x3fb4cc[_0x14ebb8],_0x336d1c=_0x5d83b6['x'],_0x38c6bc=_0x5d83b6['y'];if(_0x10a25b&&(_0x336d1c=(_0x30d841||0x0)-_0x336d1c),_0x8e00a9&&(_0x38c6bc=(_0x20eaa6||0x0)-_0x38c6bc),_0x3c1515!==0x0){let _0x463837=(_0x30d841||0x0)/0x2,_0x576aa4=(_0x20eaa6||0x0)/0x2,_0x4fe077=_0x3c1515*Math['PI']/0xb4,_0xe5579f=Math[_0x4efa47(0x46c)](_0x4fe077),_0x5bc765=Math[_0x4efa47(0x494)](_0x4fe077),_0x86605c=_0x336d1c-_0x463837,_0x22a1e4=_0x38c6bc-_0x576aa4;_0x336d1c=_0x463837+(_0x86605c*_0xe5579f-_0x22a1e4*_0x5bc765),_0x38c6bc=_0x576aa4+(_0x86605c*_0x5bc765+_0x22a1e4*_0xe5579f);}let _0x9268e6={'x':_0x336d1c,'y':_0x38c6bc,'adjName':_0x5d83b6['adjName']};this[_0x4efa47(0x3c8)](_0x37f590,_0x9268e6,_0x9268e6[_0x4efa47(0x4e0)],_0x50d890,_0x78d03d,this[_0x4efa47(0x242)],this[_0x4efa47(0x2ab)]);}}[_0x47cc0f(0x1ff)](_0x20c0a3=!0x1){const _0xb530a4=_0x47cc0f;_0x20c0a3&&(this[_0xb530a4(0x3d4)](),this['_createShapeAdjustControls'](_0x20c0a3));}[_0x47cc0f(0x3c8)](_0x1026ac,_0x4af9ac,_0x35a49d,_0x575be2,_0x456400,_0x55dee1,_0x219b36){const _0x4c1159=_0x47cc0f;if(!this[_0x4c1159(0x333)])return;let _0x479e66=_0x1026ac[_0x4c1159(0x4d7)](_0x4c1159(0x331)+this[_0x4c1159(0x333)]+'-'+_0x35a49d);if(_0x479e66){_0x479e66['transformByState']({'left':_0x4af9ac['x']+_0x575be2-_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)],'top':_0x4af9ac['y']+_0x456400-_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)]});return;}let _0x2c0658={'left':_0x4af9ac['x']+_0x575be2-_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)],'top':_0x4af9ac['y']+_0x456400-_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)],'adjName':_0x35a49d,'shapeId':this[_0x4c1159(0x333)],'unitId':_0x55dee1,'subUnitId':_0x219b36,'width':_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)]+0x8,'height':_0x4f5ff8[_0x4c1159(0x4db)][_0x4c1159(0x33f)]+0x8,'zIndex':_0x58b748[_0x4c1159(0x43c)]+0x1,'evented':!0x0},_0xbd8063=new _0x50c784(_0x4c1159(0x331)+this[_0x4c1159(0x333)]+'-'+_0x35a49d,_0x2c0658);this[_0x4c1159(0x4d0)][_0x4c1159(0x3e5)](_0xbd8063),this[_0x4c1159(0x393)](_0xbd8063,_0x1026ac,_0x35a49d),_0x1026ac[_0x4c1159(0x408)](_0xbd8063,_0x58b748[_0x4c1159(0x43c)]+0x1);}[_0x47cc0f(0x3d4)](){const _0x26a714=_0x47cc0f;this[_0x26a714(0x4d0)][_0x26a714(0x28e)]!==0x0&&(this[_0x26a714(0x4d0)][_0x26a714(0x3ec)](_0x47fccd=>{const _0x422f1=_0x26a714;_0x47fccd[_0x422f1(0x435)]();}),this['_shapes']=[]);}[_0x47cc0f(0x221)](){const _0x9ba148=_0x47cc0f;this[_0x9ba148(0x3a0)]();}[_0x47cc0f(0x320)](_0x28d53e,_0x37b362){const _0x1e07c9=_0x47cc0f;var _0x49411c;let _0x114627={'x':0x0,'y':0x0};if(!_0x28d53e||!_0x37b362)return _0x114627;let _0x3f4b8d=this['_renderManagerService'][_0x1e07c9(0x350)](_0x28d53e);if(!_0x3f4b8d||!_0x3f4b8d[_0x1e07c9(0x1e4)](_0x522354[_0x1e07c9(0x4ba)])['getSkeleton'](_0x37b362))return _0x114627;let _0xc0fd3a=_0x3f4b8d[_0x1e07c9(0x1e4)](_0x522354[_0x1e07c9(0x41a)]),_0x73fe6e=_0xc0fd3a==null?void 0x0:_0xc0fd3a[_0x1e07c9(0x224)]();if(!_0x73fe6e)return _0x114627;let _0x5c89c8=(_0x49411c=this[_0x1e07c9(0x26b)][_0x1e07c9(0x49f)](_0x28d53e))==null?void 0x0:_0x49411c[_0x1e07c9(0x277)](_0x37b362);if(!_0x5c89c8)return _0x114627;let _0x4cdb7e=(0x0,_0x522354['getViewportByCell'])(_0x73fe6e[_0x1e07c9(0x389)],_0x73fe6e[_0x1e07c9(0x3ee)],_0x3f4b8d[_0x1e07c9(0x469)],_0x5c89c8);return _0x4cdb7e?{'x':_0x4cdb7e['viewportScrollX'],'y':_0x4cdb7e['viewportScrollY']}:_0x114627;}[_0x47cc0f(0x402)](_0x153a77,_0x5c3c31){const _0xc408f4=_0x47cc0f;var _0x2db1f3,_0x458450;let _0x3a1117=(_0x2db1f3=this[_0xc408f4(0x26b)][_0xc408f4(0x49f)](_0x153a77))==null?void 0x0:_0x2db1f3[_0xc408f4(0x277)](_0x5c3c31);return(_0x458450=_0x3a1117==null?void 0x0:_0x3a1117[_0xc408f4(0x38d)]())==null?0x1:_0x458450;}[_0x47cc0f(0x393)](_0x27cc4f,_0x8696fd,_0x3460e9){const _0xb75e1c=_0x47cc0f;this[_0xb75e1c(0x216)]((0x0,_0x1f6ce6[_0xb75e1c(0x31d)])(_0x27cc4f[_0xb75e1c(0x2ef)]['subscribeEvent']((_0x1da5e3,_0x28a0e9)=>{const _0x165436=_0xb75e1c;var _0x47f808,_0x38df39,_0x232895,_0x24eef0;let _0x5abca9=_0x27cc4f['getDrawingSearch']();this[_0x165436(0x44b)]=this[_0x165436(0x3b9)](_0x5abca9[_0x165436(0x394)],_0x5abca9[_0x165436(0x2e1)],_0x5abca9[_0x165436(0x257)],_0x3460e9),this[_0x165436(0x2f6)]=this[_0x165436(0x3c4)]['getShapeModel'](_0x5abca9[_0x165436(0x394)],_0x5abca9[_0x165436(0x2e1)],_0x5abca9[_0x165436(0x257)]);let _0x2b14cb=this[_0x165436(0x416)][_0x165436(0x3a2)]({'unitId':this[_0x165436(0x242)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x165436(0x333)]}),{transform:_0x5940fc}=_0x2b14cb;if(_0x5940fc){let {left:_0x1d6162,top:_0x3562aa,width:_0x2616e9,height:_0x2c9be6}=_0x5940fc;this[_0x165436(0x1d6)]=_0x1d6162||0x0,this['_baseShapeTop']=_0x3562aa||0x0,this[_0x165436(0x4c9)]=_0x2616e9||0x0,this['_baseShapeHeight']=_0x2c9be6||0x0;}let _0x5cb0a0=!!((_0x47f808=_0x2b14cb[_0x165436(0x23f)])!=null&&_0x47f808[_0x165436(0x42d)]),_0x370aa8=!!((_0x38df39=_0x2b14cb[_0x165436(0x23f)])!=null&&_0x38df39['flipY']),_0x1f574d=((_0x232895=_0x2b14cb[_0x165436(0x23f)])==null?void 0x0:_0x232895[_0x165436(0x25f)])||0x0;this['_isStartAdjusting']=!0x0,_0x8696fd[_0x165436(0x345)]();let _0x4f93bc=(_0x24eef0=this[_0x165436(0x2f6)])==null?void 0x0:_0x24eef0[_0x165436(0x327)](_0x3460e9),_0xb21d1c={[_0x3460e9]:_0x4f93bc};this[_0x165436(0x2a7)]=_0x8696fd[_0x165436(0x3ac)][_0x165436(0x4a2)]((_0x3ff7e0,_0x333561)=>{const _0x49a802=_0x165436;if(!this['_isStartAdjusting'])return;let {offsetX:_0x12706b,offsetY:_0x236044}=_0x3ff7e0,_0x2d0bac=this[_0x49a802(0x44b)];if(this[_0x49a802(0x2f6)]&&_0x2d0bac){_0x8696fd[_0x49a802(0x345)](),_0x8696fd[_0x49a802(0x23a)](_0x58b748['CURSOR_TYPE'][_0x49a802(0x3e8)]);let _0x4b030b={'left':0x0,'top':0x0,'width':this[_0x49a802(0x4c9)],'height':this[_0x49a802(0x3b1)]},_0x34519=this[_0x49a802(0x320)](this[_0x49a802(0x242)],this['_subUnitId']),_0x56b834=this[_0x49a802(0x402)](this['_unitId'],this[_0x49a802(0x2ab)]),_0x612204=_0x12706b/_0x56b834+_0x34519['x']-this[_0x49a802(0x1d6)],_0x597929=_0x236044/_0x56b834+_0x34519['y']-this['_baseShapeTop'];if(_0x1f574d!==0x0){let _0x3f495f=this[_0x49a802(0x4c9)]/0x2,_0x4f6287=this[_0x49a802(0x3b1)]/0x2,_0x1ceb5f=_0x1f574d*Math['PI']/0xb4,_0x462767=Math[_0x49a802(0x46c)](_0x1ceb5f),_0x34076b=Math[_0x49a802(0x494)](_0x1ceb5f),_0x3319bf=_0x612204-_0x3f495f,_0x58f599=_0x597929-_0x4f6287;_0x612204=_0x3f495f+(_0x3319bf*_0x462767+_0x58f599*_0x34076b),_0x597929=_0x4f6287+(-_0x3319bf*_0x34076b+_0x58f599*_0x462767);}_0x5cb0a0&&(_0x612204=this[_0x49a802(0x4c9)]-_0x612204),_0x370aa8&&(_0x597929=this[_0x49a802(0x3b1)]-_0x597929);let _0x3f3f49={'x':_0x612204,'y':_0x597929},_0x3dabef=this[_0x49a802(0x2f6)][_0x49a802(0x2a1)](_0x4b030b,_0x3f3f49,_0x2d0bac,_0x5cb0a0,_0x370aa8),_0x42287a=_0x2d0bac[_0x49a802(0x247)]||_0x2d0bac[_0x49a802(0x2f1)]||_0x2d0bac[_0x49a802(0x39d)]||_0x2d0bac[_0x49a802(0x3ae)];if(_0x42287a===void 0x0)return;this[_0x49a802(0x2f6)][_0x49a802(0x44d)](_0x42287a,_0x3dabef);let _0x55be0d=this[_0x49a802(0x416)][_0x49a802(0x3a2)]({'unitId':_0x5abca9[_0x49a802(0x394)],'subUnitId':_0x5abca9['subUnitId'],'drawingId':_0x5abca9[_0x49a802(0x257)]});_0x55be0d&&(this['_sheetDrawingShapeRenderController'][_0x49a802(0x4ae)](_0x55be0d,_0x8696fd),this[_0x49a802(0x4ed)]=this[_0x49a802(0x40b)](_0x5abca9[_0x49a802(0x394)],_0x5abca9[_0x49a802(0x2e1)],_0x5abca9[_0x49a802(0x257)]),this[_0x49a802(0x221)]());}_0x333561[_0x49a802(0x412)]();}),this[_0x165436(0x4af)]=_0x8696fd[_0x165436(0x1e9)][_0x165436(0x4a2)]((_0x12ae18,_0x9bded6)=>{const _0x1a572e=_0x165436;this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x1a572e(0x4af)][_0x1a572e(0x212)](),_0x8696fd[_0x1a572e(0x2ac)]();let _0x508eaf=this['_activeAdjustInfo'];if(_0x508eaf){let _0x336522=_0x5abca9[_0x1a572e(0x394)],_0x256718=_0x5abca9[_0x1a572e(0x2e1)],_0x2e0ab5=_0x5abca9[_0x1a572e(0x257)],_0x3ee835=_0x508eaf[_0x1a572e(0x247)]||_0x508eaf[_0x1a572e(0x2f1)]||_0x508eaf[_0x1a572e(0x39d)]||_0x508eaf[_0x1a572e(0x3ae)];if(_0x3ee835!==void 0x0){var _0x1f9413;let _0x1f9295=(_0x1f9413=this[_0x1a572e(0x2f6)])==null?void 0x0:_0x1f9413[_0x1a572e(0x327)](_0x3ee835);_0x1f9295!==void 0x0&&_0x3cbdfc(this['_commandService'],_0x336522,_0x256718,_0x2e0ab5,{'oldShapeData':{'adjustValues':_0xb21d1c}},{'adjustValues':{[_0x3ee835]:_0x1f9295}});}}this[_0x1a572e(0x44b)]=void 0x0,this[_0x1a572e(0x2f6)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x9bded6['stopPropagation'](),_0x8696fd[_0x1a572e(0x2d4)]();}),_0x28a0e9['stopPropagation']();})));}[_0x47cc0f(0x2af)](){const _0x39b57b=_0x47cc0f;let _0x3fd911=this[_0x39b57b(0x26b)]['getCurrentTypeOfUnit$'](_0x1f6ce6[_0x39b57b(0x2c2)]['UNIVER_SHEET']);this[_0x39b57b(0x216)](_0x3fd911[_0x39b57b(0x43f)]((0x0,_0x21c04f[_0x39b57b(0x316)])(_0x109b21=>_0x109b21?_0x109b21['activeSheet$'][_0x39b57b(0x43f)]((0x0,_0x21c04f[_0x39b57b(0x316)])(_0x5c7697=>{const _0x267898=_0x39b57b;if(!_0x5c7697)return _0x21c04f[_0x267898(0x30d)];let _0x1054e1=_0x109b21[_0x267898(0x488)](),_0x444920=this[_0x267898(0x4bb)][_0x267898(0x350)](_0x1054e1),_0x4813cd=_0x444920==null?void 0x0:_0x444920[_0x267898(0x469)];return _0x4813cd?(0x0,_0x21c04f['of'])(_0x4813cd):_0x21c04f[_0x267898(0x30d)];})):_0x21c04f[_0x39b57b(0x30d)]))['subscribe'](_0x1b40d9=>{const _0x47fde8=_0x39b57b;let _0x3be47b=_0x1b40d9[_0x47fde8(0x33c)]();this[_0x47fde8(0x216)](_0x1b40d9[_0x47fde8(0x3ac)][_0x47fde8(0x4a2)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x47fde8(0x216)](_0x3be47b['changeStart$'][_0x47fde8(0x4b1)](_0x2d5a61=>{const _0x330579=_0x47fde8;let {objects:_0x2a72ad}=_0x2d5a61;this['_createShapeAdjustControls'](),_0x2a72ad!==null&&_0x2a72ad['size']===0x1&&_0x2a72ad[_0x330579(0x4a9)]()['next']()[_0x330579(0x337)]instanceof _0x2f4556&&this['setShouldShowAdjust'](!0x0);})),this[_0x47fde8(0x216)](_0x3be47b['changing$'][_0x47fde8(0x4b1)](()=>{const _0x194a79=_0x47fde8;this[_0x194a79(0x28b)]&&this[_0x194a79(0x3d4)]();})),this[_0x47fde8(0x216)](_0x1b40d9[_0x47fde8(0x1e9)]['subscribeEvent'](()=>{const _0x4af185=_0x47fde8;this[_0x4af185(0x28b)]&&(this[_0x4af185(0x2e2)](!0x1),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x3be47b[_0x47fde8(0x1da)]['subscribe'](()=>{const _0x345adb=_0x47fde8;this['_unitId']&&this['_subUnitId']&&this[_0x345adb(0x333)]&&this[_0x345adb(0x416)][_0x345adb(0x3a2)]({'unitId':this[_0x345adb(0x242)],'subUnitId':this[_0x345adb(0x2ab)],'drawingId':this[_0x345adb(0x333)]})&&(this['_activeShapeAdjustPointList']=this[_0x345adb(0x40b)](this[_0x345adb(0x242)],this[_0x345adb(0x2ab)],this[_0x345adb(0x333)]),this[_0x345adb(0x221)]());}));}));}[_0x47cc0f(0x4ea)](){const _0x561e4d=_0x47cc0f;this[_0x561e4d(0x216)](this['_drawingManagerService'][_0x561e4d(0x2c6)][_0x561e4d(0x4b1)](_0x545e54=>{const _0x522ece=_0x561e4d;if(_0x545e54[_0x522ece(0x28e)]===0x1){let _0x5ddac6=_0x545e54[0x0];if(_0x5ddac6[_0x522ece(0x2b2)]===_0x1f6ce6[_0x522ece(0x38b)]['DRAWING_SHAPE']){this[_0x522ece(0x333)]=_0x5ddac6[_0x522ece(0x257)];let {unitId:_0x2eca0a,subUnitId:_0x1d9f6e}=_0x5ddac6;this[_0x522ece(0x4ed)]=this[_0x522ece(0x40b)](_0x2eca0a,_0x1d9f6e,this[_0x522ece(0x333)]),this[_0x522ece(0x242)]=_0x2eca0a,this[_0x522ece(0x2ab)]=_0x1d9f6e,this['_clearShapeAdjustControls'](),this[_0x522ece(0x3a0)]();}else this[_0x522ece(0x333)]=null,this[_0x522ece(0x4ed)]=void 0x0,this[_0x522ece(0x242)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();}(_0x545e54[_0x522ece(0x28e)]>0x1||_0x545e54[_0x522ece(0x28e)]===0x0)&&(this[_0x522ece(0x333)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x522ece(0x242)]=null,this[_0x522ece(0x2ab)]=null,this[_0x522ece(0x3d4)]());})),this['disposeWithMe'](this['_drawingManagerService'][_0x561e4d(0x213)]['subscribe'](_0xd66fbc=>{const _0x5cfe50=_0x561e4d;if(_0xd66fbc[_0x5cfe50(0x28e)]===0x1){var _0x132b7a;let _0x1477ba=_0xd66fbc[0x0];((_0x132b7a=this[_0x5cfe50(0x416)]['getDrawingByParam'](_0x1477ba))==null?void 0x0:_0x132b7a['drawingType'])===_0x1f6ce6['DrawingTypeEnum'][_0x5cfe50(0x3c0)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x561e4d(0x216)](this[_0x561e4d(0x416)]['remove$'][_0x561e4d(0x4b1)](_0x15f4ad=>{const _0x18176e=_0x561e4d;for(let _0x2fb81f of _0x15f4ad)this[_0x18176e(0x333)]===_0x2fb81f[_0x18176e(0x257)]&&(this[_0x18176e(0x333)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x18176e(0x2ab)]=null,this['_clearShapeAdjustControls']());}));}};_0x40f08e=_0x51130a([_0x3607f9(0x0,_0x2ee308['IDrawingManagerService']),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be[_0x47cc0f(0x21d)])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x58b748[_0x47cc0f(0x34e)])),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x32bb5d)),_0x3607f9(0x4,_0x1f6ce6['IUniverInstanceService']),_0x3607f9(0x5,_0x1f6ce6[_0x47cc0f(0x2bd)])],_0x40f08e);let _0x8a7706={'id':_0x47cc0f(0x48a),'type':_0x1f6ce6[_0x47cc0f(0x30e)]['OPERATION'],'handler':(_0x3bb54f,_0x5a0c7b)=>{const _0x43a191=_0x47cc0f;let _0x25d57f=_0x3bb54f[_0x43a191(0x1e3)](_0x2ee308[_0x43a191(0x4c1)]),_0x4ee2e1=_0x3bb54f['get'](_0x58b748[_0x43a191(0x34e)]),_0x401709=_0x3bb54f[_0x43a191(0x1e3)](_0x40f08e);if(_0x5a0c7b==null)return!0x0;if(_0x5a0c7b[_0x43a191(0x28e)]>0x0){var _0x303795;let _0x4b55b5=(_0x303795=_0x4ee2e1[_0x43a191(0x350)](_0x5a0c7b[0x0][_0x43a191(0x394)]))==null?void 0x0:_0x303795[_0x43a191(0x469)];if(_0x4b55b5){let {unitId:_0x38fa50,subUnitId:_0x3c526d,drawingId:_0x4b2b4c}=_0x5a0c7b[0x0],_0x46a532=(0x0,_0x2ee308[_0x43a191(0x4d4)])({'unitId':_0x38fa50,'subUnitId':_0x3c526d,'drawingId':_0x4b2b4c},void 0x0),_0x4e4e46=_0x4b55b5[_0x43a191(0x4d7)](_0x46a532);if(_0x4e4e46){var _0xa8766;(_0xa8766=_0x4ee2e1[_0x43a191(0x350)](_0x5a0c7b[0x0][_0x43a191(0x394)]))==null||(_0xa8766=_0xa8766[_0x43a191(0x469)]['getTransformer']())==null||_0xa8766[_0x43a191(0x3d6)](_0x4e4e46);}}_0x25d57f[_0x43a191(0x4bc)](_0x5a0c7b),_0x401709['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x5cbac9={'type':_0x1f6ce6['CommandType']['COMMAND'],'id':_0x47cc0f(0x2e7),'handler':async(_0x58534a,_0x519dfc)=>{const _0x20bbef=_0x47cc0f;let _0x387e81=(0x0,_0x231b82[_0x20bbef(0x226)])(_0x58534a['get'](_0x1f6ce6[_0x20bbef(0x32e)]));if(!_0x387e81)return!0x1;let _0x25f574=_0x58534a[_0x20bbef(0x1e3)](_0x231b82[_0x20bbef(0x273)])[_0x20bbef(0x4d5)]();if(!_0x25f574)return!0x1;let _0x3858a6=_0x58534a[_0x20bbef(0x1e3)](_0x1f6ce6[_0x20bbef(0x2bd)]),{unitId:_0x36b7d5,subUnitId:_0x47816e}=_0x387e81,{value:_0x7770cd,enhanceParams:_0x6dc59b}=_0x519dfc,{range:_0x599f7c}=_0x25f574,_0x1117cf={'unitId':_0x36b7d5,'subUnitId':_0x47816e,'shapeType':_0x7770cd,'range':_0x599f7c,'shapeId':(0x0,_0x1f6ce6['generateRandomId'])()};if(_0x6dc59b){let _0x2576e3=(0x0,_0x4f5ff8[_0x20bbef(0x3d1)])(_0x7770cd),_0x28f8e2=_0x7770cd===_0x4f5ff8['ShapeTypeEnum']['Rect'];_0x2576e3&&(_0x6dc59b[_0x20bbef(0x2d2)]||_0x6dc59b[_0x20bbef(0x28a)])&&(_0x1117cf[_0x20bbef(0x4e4)]={'ln':{'startArrow':_0x6dc59b['startArrow']?{'type':_0x4f5ff8['ShapeArrowTypeEnum'][_0x20bbef(0x2ea)],'size':_0x4f5ff8[_0x20bbef(0x267)][_0x20bbef(0x30a)]}:void 0x0,'endArrow':_0x6dc59b[_0x20bbef(0x28a)]?{'type':_0x4f5ff8[_0x20bbef(0x33d)][_0x20bbef(0x2ea)],'size':_0x4f5ff8[_0x20bbef(0x267)]['Large']}:void 0x0}}),_0x28f8e2&&(_0x6dc59b[_0x20bbef(0x308)]||_0x6dc59b[_0x20bbef(0x490)])&&(_0x1117cf['shapeData']=(0x0,_0x10236c[_0x20bbef(0x443)])({'fill':{'fillType':_0x4f5ff8[_0x20bbef(0x2ec)][_0x20bbef(0x2d0)],'color':_0x20bbef(0x466)},'isHorizontal':!!_0x6dc59b[_0x20bbef(0x308)],'stroke':{'lineStrokeType':_0x4f5ff8[_0x20bbef(0x372)][_0x20bbef(0x41d)],'width':0x1,'color':_0x20bbef(0x43a)}}));}let _0x260fc9=_0x3858a6[_0x20bbef(0x4e1)](_0x5927be['InsertShapeCommand']['id'],_0x1117cf);return setTimeout(()=>{const _0x370f6a=_0x20bbef;_0x3858a6[_0x370f6a(0x2cb)](_0x8a7706['id'],[{'unitId':_0x36b7d5,'subUnitId':_0x47816e,'drawingId':_0x1117cf['shapeId']}]);},0xc8),_0x260fc9;}},_0x449f94='sheet.shape.edit.panel',_0x1c0aed=_0x47cc0f(0x3cf),_0x187552=_0x47cc0f(0x258),_0x4bb51f=(0x0,_0x1f6ce6[_0x47cc0f(0x1d7)])('SHAPE_TEXT'),_0x506261=_0x47cc0f(0x2c9),_0x28d529={'id':_0x47cc0f(0x1dc),'type':_0x1f6ce6[_0x47cc0f(0x30e)][_0x47cc0f(0x3ff)],'handler':(_0x125141,_0x43378e)=>{const _0x105721=_0x47cc0f;let _0x3cac42=_0x125141['get'](_0x229cfc[_0x105721(0x434)]),_0x5e4d7f=_0x125141[_0x105721(0x1e3)](_0x1f6ce6[_0x105721(0x406)]),_0x3943d2=_0x125141[_0x105721(0x1e3)](_0x1f6ce6['IUniverInstanceService']),_0x5ad9df=_0x125141['get'](_0x1f6ce6[_0x105721(0x2bd)]);return(0x0,_0x231b82[_0x105721(0x226)])(_0x3943d2)?(_0x43378e==null?void 0x0:_0x43378e[_0x105721(0x337)])===_0x105721(0x452)?(_0x3cac42['close'](_0x1c0aed),!0x0):(_0x3cac42[_0x105721(0x270)]({'id':_0x1c0aed,'header':{'title':_0x5e4d7f['t'](_0x105721(0x32a))},'children':{'label':_0x1c0aed},'onClose':()=>{const _0x52ff1b=_0x105721;_0x5ad9df['syncExecuteCommand'](_0x2ee308[_0x52ff1b(0x429)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x277ed1=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x3505bc,_0x252478){const _0x6ea5cd=_0x47cc0f;super(),this[_0x6ea5cd(0x49d)]=_0x3505bc,this[_0x6ea5cd(0x416)]=_0x252478,this[_0x6ea5cd(0x41f)](),this['_clipService'][_0x6ea5cd(0x383)](!0x0),this[_0x6ea5cd(0x216)]({'dispose':()=>this[_0x6ea5cd(0x49d)][_0x6ea5cd(0x383)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x489943=_0x47cc0f;let _0x117be7=this[_0x489943(0x49d)],_0x12840c=new Map(),_0x14d2f4=_0x117be7['registerClipDelegate']((_0x4fddfe,_0x25adc2,_0x30316f,_0x48dfee,_0x4e4825)=>{const _0x34005e=_0x489943;let _0x5e773a=_0x25adc2;if(_0x5e773a===_0x4f5ff8[_0x34005e(0x4d9)][_0x34005e(0x2a4)]||_0x25adc2===_0x34005e(0x2ad))return!0x1;try{let _0x149eee=_0x12840c['get'](_0x25adc2);return _0x149eee||(_0x149eee=new _0x4f5ff8[(_0x34005e(0x298))](_0x5e773a,_0x34005e(0x2fb)+_0x25adc2),_0x12840c['set'](_0x25adc2,_0x149eee)),_0x4e4825&&_0x149eee[_0x34005e(0x3ba)]({'adjustValues':_0x4e4825},!0x0),_0x149eee[_0x34005e(0x210)]({'width':_0x30316f,'height':_0x48dfee}),_0x149eee[_0x34005e(0x22d)](_0x4fddfe,{'left':0x0,'top':0x0,'width':_0x30316f,'height':_0x48dfee});}catch{return!0x1;}});this[_0x489943(0x216)](_0x14d2f4),this['disposeWithMe']({'dispose':()=>_0x12840c['clear']()});}[_0x47cc0f(0x3ef)](_0x58b39d,_0x1c7e3c,_0xf86166,_0x5a7921,_0x408cbf){const _0x4bab29=_0x47cc0f;let _0x572b3c=this['_drawingManagerService'][_0x4bab29(0x29b)](_0x58b39d,_0x1c7e3c);if(!_0x572b3c[_0xf86166])return;let _0x2b46d4={..._0x572b3c[_0xf86166],'prstGeom':_0x5a7921,'adjustValues':_0x408cbf};this[_0x4bab29(0x416)][_0x4bab29(0x3d7)]([_0x2b46d4]);}};_0x277ed1=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x25185e[_0x47cc0f(0x2a5)])),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x2ee308['IDrawingManagerService']))],_0x277ed1);let _0xe7fbe9=_0x47cc0f(0x399),_0x276531=_0x47cc0f(0x1d9);function _0x1ef5f0({onShapeClick:_0x119f0e,excludeGroups:_0x44df7f}){const _0x473853=_0x47cc0f;return(0x0,_0x2508da[_0x473853(0x4c2)])(_0x10236c[_0x473853(0x263)],{'excludeGroups':_0x44df7f,'onShapeClick':_0x119f0e,'scrollContainer':_0x473853(0x405)});}function _0x4cf7ba(){const _0x5b9442=_0x47cc0f;let _0x265182=(0x0,_0x229cfc[_0x5b9442(0x3fd)])(_0x2ee308['IDrawingManagerService']),_0x3da362=(0x0,_0x229cfc[_0x5b9442(0x3fd)])(_0x277ed1);return(0x0,_0x2508da[_0x5b9442(0x4c2)])(_0x10236c[_0x5b9442(0x41e)],{'buttonLabel':_0x5b9442(0x3e2),'excludeGroups':[_0x10236c['ShapeGroupEnum'][_0x5b9442(0x407)]],'onShapeClick':_0x4c9adb=>{const _0x3fb77d=_0x5b9442;let _0x35eaca=_0x265182['getFocusDrawings']()[_0x3fb77d(0x3f8)](_0x77bbfb=>_0x77bbfb[_0x3fb77d(0x2b2)]===_0x1f6ce6[_0x3fb77d(0x38b)][_0x3fb77d(0x473)]);if(!_0x35eaca)return;let {unitId:_0x16febd,subUnitId:_0x316ed5,drawingId:_0x5d389f}=_0x35eaca;_0x3da362['clipByShape'](_0x16febd,_0x316ed5,_0x5d389f,_0x4c9adb[_0x3fb77d(0x4b8)]);}});}function _0x538841(){const _0x176b99=_0x47cc0f;let _0x93fd44=(0x0,_0x229cfc[_0x176b99(0x3fd)])(_0x229cfc['ComponentManager']),_0x524f60=(0x0,_0x229cfc['useDependency'])(_0x2ee308[_0x176b99(0x4c1)]),_0x1605c6=(0x0,_0x229cfc[_0x176b99(0x3fd)])(_0x1f6ce6[_0x176b99(0x32e)]),_0x5a2653=_0x524f60['getFocusDrawings']()[0x0],_0x19b880=_0x5a2653?_0x1605c6[_0x176b99(0x34a)](_0x5a2653[_0x176b99(0x394)]):void 0x0,_0x21b6ef=_0x19b880===_0x1f6ce6['UniverInstanceType'][_0x176b99(0x4f2)]?'doc.image-clip.shape-picker.component':_0x19b880===_0x1f6ce6[_0x176b99(0x2c2)][_0x176b99(0x1e0)]?_0x276531:void 0x0,_0x1517ef=_0x21b6ef?_0x93fd44[_0x176b99(0x1e3)](_0x21b6ef):void 0x0;return _0x1517ef?(0x0,_0x2508da[_0x176b99(0x4c2)])(_0x1517ef,{}):null;}function _0x4ce77b(){const _0x4dce6e=_0x47cc0f;let _0x1d6bc3=(0x0,_0x229cfc[_0x4dce6e(0x3fd)])(_0x1f6ce6['ICommandService']);return(0x0,_0x2508da[_0x4dce6e(0x4c2)])(_0x1ef5f0,{'onShapeClick':_0x121bdd=>{const _0x5c2282=_0x4dce6e;_0x1d6bc3['executeCommand'](_0x5cbac9['id'],{'value':_0x121bdd['type'],'enhanceParams':{'endArrow':_0x121bdd[_0x5c2282(0x28a)],'startArrow':_0x121bdd[_0x5c2282(0x2d2)],'horizontal':_0x121bdd[_0x5c2282(0x308)],'vertical':_0x121bdd['vertical']}});}});}function _0x48959e(_0x5c8cd7){const _0x7ae594=_0x47cc0f;let _0x1339e0=_0x5c8cd7['get'](_0x1f6ce6[_0x7ae594(0x32e)]);return{'id':_0x5cbac9['id'],'type':_0x229cfc[_0x7ae594(0x499)]['SELECTOR'],'selections':[{'label':{'name':_0xe7fbe9,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x5cbac9['id']}}}],'icon':_0x7ae594(0x465),'tooltip':_0x7ae594(0x1e7),'activated$':(0x0,_0x522354[_0x7ae594(0x4bd)])(_0x1339e0,!0x1,()=>new _0x21c04f[(_0x7ae594(0x420))](_0x19ce03=>{const _0x458010=_0x7ae594;_0x19ce03[_0x458010(0x232)](!0x1);})),'hidden$':(0x0,_0x229cfc[_0x7ae594(0x2f2)])(_0x5c8cd7,_0x1f6ce6[_0x7ae594(0x2c2)][_0x7ae594(0x1e0)]),'disabled$':(0x0,_0x522354[_0x7ae594(0x27b)])(_0x5c8cd7)};}function _0x44ae8d(_0x228596){const _0x2785df=_0x47cc0f;let _0x1e8e58=_0x228596[_0x2785df(0x1e3)](_0x1f6ce6[_0x2785df(0x32e)]);return{'id':_0x28d529['id'],'type':_0x229cfc[_0x2785df(0x499)][_0x2785df(0x2b1)],'icon':_0x2785df(0x364),'title':_0x2785df(0x3c7),'tooltip':_0x2785df(0x3c7),'activated$':(0x0,_0x522354[_0x2785df(0x4bd)])(_0x1e8e58,!0x1,()=>new _0x21c04f[(_0x2785df(0x420))](_0x5b84e5=>{const _0x553ef1=_0x2785df;_0x5b84e5[_0x553ef1(0x232)](!0x1);})),'hidden$':(0x0,_0x229cfc['getMenuHiddenObservable'])(_0x228596,_0x1f6ce6[_0x2785df(0x2c2)][_0x2785df(0x1e0)]),'disabled$':(0x0,_0x522354['getCurrentRangeDisable$'])(_0x228596)};}let _0x23ff6d={[_0x229cfc[_0x47cc0f(0x1f2)]['MEDIA']]:{[_0x5cbac9['id']]:{'order':0x4,'menuItemFactory':_0x48959e},[_0x28d529['id']]:{'order':4.1,'menuItemFactory':_0x44ae8d}}};var _0x42bb74=_0x47cc0f(0x4eb),_0x2a0107=_0x47cc0f(0x2da);let _0x37a4eb={'type':_0x1f6ce6[_0x47cc0f(0x30e)][_0x47cc0f(0x2e0)],'id':_0x47cc0f(0x1fd),'handler'(){return!0x0;}},_0xff3fa={'type':_0x1f6ce6[_0x47cc0f(0x30e)][_0x47cc0f(0x2e0)],'id':_0x47cc0f(0x315),'handler'(){return!0x0;}},_0x796f15={};function _0x2cff8b({ref:_0x5c53cd,..._0x2441a1}){const _0x21bbe7=_0x47cc0f;let {icon:_0x465498,id:_0x5d2c28,className:_0x48812f,extend:_0x448612,..._0x4a8a8c}=_0x2441a1,_0x2b2e52=(_0x21bbe7(0x3b2)+_0x5d2c28+'\x20'+(_0x48812f||''))['trim'](),_0x19f2b8=(0x0,_0x44112a[_0x21bbe7(0x424)])('_'+_0x3db052());return _0xe1b2be(_0x465498,''+_0x5d2c28,{'defIds':_0x465498['defIds'],'idSuffix':_0x19f2b8[_0x21bbe7(0x22e)]},{'ref':_0x5c53cd,'className':_0x2b2e52,..._0x4a8a8c},_0x448612);}function _0xe1b2be(_0x2680b4,_0x9a709b,_0x173e44,_0x2bad1a,_0x5971db){const _0x33eadc=_0x47cc0f;return(0x0,_0x44112a['createElement'])(_0x2680b4[_0x33eadc(0x417)],{'key':_0x9a709b,..._0x251395(_0x2680b4,_0x173e44,_0x5971db),..._0x2bad1a},(_0x26c815(_0x2680b4,_0x173e44)['children']||[])[_0x33eadc(0x358)]((_0xd190c4,_0x1a1e87)=>_0xe1b2be(_0xd190c4,_0x9a709b+'-'+_0x2680b4['tag']+'-'+_0x1a1e87,_0x173e44,void 0x0,_0x5971db)));}function _0x251395(_0x47fa9e,_0x5d0651,_0x73fd89){const _0x52cacf=_0x47cc0f;let _0x3030a4={..._0x47fa9e[_0x52cacf(0x2cd)]};_0x73fd89!=null&&_0x73fd89[_0x52cacf(0x24d)]&&_0x3030a4[_0x52cacf(0x266)]===_0x52cacf(0x24d)&&(_0x3030a4['fill']=_0x73fd89[_0x52cacf(0x24d)]),_0x73fd89!=null&&_0x73fd89[_0x52cacf(0x24d)]&&_0x3030a4[_0x52cacf(0x3da)]===_0x52cacf(0x24d)&&(_0x3030a4[_0x52cacf(0x3da)]=_0x73fd89[_0x52cacf(0x24d)]),_0x47fa9e[_0x52cacf(0x417)]===_0x52cacf(0x37d)&&_0x3030a4['id']&&(_0x3030a4['id']+=_0x5d0651[_0x52cacf(0x49e)]),Object[_0x52cacf(0x410)](_0x3030a4)['forEach'](([_0x23d05f,_0x3f3c1e])=>{const _0x48aef0=_0x52cacf;_0x23d05f==='mask'&&typeof _0x3f3c1e==_0x48aef0(0x319)&&(_0x3030a4[_0x23d05f]=_0x3f3c1e[_0x48aef0(0x2b4)](/url\(#(.*)\)/,_0x48aef0(0x4cd)+_0x5d0651[_0x48aef0(0x49e)]+')'));});let {defIds:_0x328d17}=_0x5d0651;return!_0x328d17||_0x328d17[_0x52cacf(0x28e)]===0x0?_0x3030a4:(_0x47fa9e['tag']==='use'&&_0x3030a4[_0x52cacf(0x4c6)]&&(_0x3030a4[_0x52cacf(0x4c6)]+=_0x5d0651[_0x52cacf(0x49e)]),Object['entries'](_0x3030a4)[_0x52cacf(0x3ec)](([_0x5e95e0,_0x52351d])=>{const _0x39cf7d=_0x52cacf;typeof _0x52351d==_0x39cf7d(0x319)&&(_0x3030a4[_0x5e95e0]=_0x52351d['replace'](/url\(#(.*)\)/,_0x39cf7d(0x4cd)+_0x5d0651['idSuffix']+')'));}),_0x3030a4);}function _0x26c815(_0x1e3f5e,_0x54419c){const _0x11b49d=_0x47cc0f;var _0x5219c;let {defIds:_0x2ecf27}=_0x54419c;return!_0x2ecf27||_0x2ecf27['length']===0x0?_0x1e3f5e:_0x1e3f5e[_0x11b49d(0x417)]===_0x11b49d(0x2d5)&&(_0x5219c=_0x1e3f5e[_0x11b49d(0x482)])!=null&&_0x5219c[_0x11b49d(0x28e)]?{..._0x1e3f5e,'children':_0x1e3f5e[_0x11b49d(0x482)][_0x11b49d(0x358)](_0x4f5a4b=>typeof _0x4f5a4b[_0x11b49d(0x2cd)]['id']=='string'&&_0x2ecf27&&_0x2ecf27['includes'](_0x4f5a4b[_0x11b49d(0x2cd)]['id'])?{..._0x4f5a4b,'attrs':{..._0x4f5a4b[_0x11b49d(0x2cd)],'id':_0x4f5a4b[_0x11b49d(0x2cd)]['id']+_0x54419c['idSuffix']}}:_0x4f5a4b)}:_0x1e3f5e;}function _0x3db052(){const _0x6af5c8=_0x47cc0f;return Math[_0x6af5c8(0x2fd)]()['toString'](0x24)[_0x6af5c8(0x36c)](0x2,0x8);}_0x2cff8b[_0x47cc0f(0x1eb)]=_0x47cc0f(0x3a4);let _0x4cd9c6={'tag':_0x47cc0f(0x274),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x47cc0f(0x419),'viewBox':_0x47cc0f(0x353),'width':_0x47cc0f(0x26e),'height':'1em'},'children':[{'tag':_0x47cc0f(0x2dc),'attrs':{'fill':'colorChannel1','d':'M5.4004\x202.60213C5.25792\x202.60213\x205.14241\x202.71763\x205.14241\x202.86011V4.32679C5.14241\x204.67752\x204.85809\x204.96184\x204.50736\x204.96184C4.15663\x204.96184\x203.87231\x204.67752\x203.87231\x204.32679V2.86011C3.87231\x202.01618\x204.55646\x201.33203\x205.4004\x201.33203H13.14C13.984\x201.33203\x2014.6681\x202.01618\x2014.6681\x202.86011V10.5998C14.6681\x2011.4437\x2013.984\x2012.1278\x2013.14\x2012.1278H11.6568C11.3061\x2012.1278\x2011.0218\x2011.8435\x2011.0218\x2011.4928C11.0218\x2011.1421\x2011.3061\x2010.8577\x2011.6568\x2010.8577H13.14C13.2825\x2010.8577\x2013.398\x2010.7422\x2013.398\x2010.5998V2.86011C13.398\x202.71763\x2013.2825\x202.60213\x2013.14\x202.60213H5.4004Z','fillRule':_0x47cc0f(0x45e),'clipRule':_0x47cc0f(0x45e)}},{'tag':_0x47cc0f(0x2dc),'attrs':{'fill':_0x47cc0f(0x458),'d':_0x47cc0f(0x1d8),'fillRule':_0x47cc0f(0x45e),'clipRule':_0x47cc0f(0x45e)}}]},_0x5d4a5c=(0x0,_0x44112a[_0x47cc0f(0x253)])(function(_0x3a9111,_0x1e5ba4){const _0x51cbc9=_0x47cc0f;return(0x0,_0x44112a[_0x51cbc9(0x1f1)])(_0x2cff8b,Object[_0x51cbc9(0x1df)]({},_0x3a9111,{'id':'copy-double-icon','ref':_0x1e5ba4,'icon':_0x4cd9c6}));});_0x5d4a5c[_0x47cc0f(0x1eb)]=_0x47cc0f(0x364);function _0x2e0e5d(_0xd16ff4){const _0x5648d3=_0x47cc0f;return _0xd16ff4[_0x5648d3(0x2e6)]()||void 0x0;}function _0x33c913(_0x38157f){const _0x4cf9da=_0x47cc0f;switch(_0x38157f[_0x4cf9da(0x2b2)]){case _0x1f6ce6['DrawingTypeEnum'][_0x4cf9da(0x473)]:return _0x4cf9da(0x4ef);case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x325)]:return'chart';case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x29f)]:return'table';case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x3e9)]:return _0x4cf9da(0x1f8);case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x332)]:return'video';case _0x1f6ce6['DrawingTypeEnum'][_0x4cf9da(0x3cb)]:return _0x4cf9da(0x218);case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x36a)]:return _0x4cf9da(0x4e3);case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x324)]:return _0x4cf9da(0x2a0);case _0x1f6ce6[_0x4cf9da(0x38b)][_0x4cf9da(0x3c0)]:return _0x4cf9da(0x1ee);default:return'object';}}function _0x5a0386(_0xea5178,_0x395b79,_0x52a386){const _0x41061c=_0x47cc0f;var _0x475935;return((_0x475935=_0xea5178[_0x41061c(0x244)])==null?void 0x0:_0x475935[_0x41061c(0x2e6)]())||(0x0,_0x25185e[_0x41061c(0x361)])(_0x52a386,_0x33c913(_0xea5178))+'\x20'+(_0x395b79+0x1);}function _0x3b58fc(){const _0x3a4ceb=_0x47cc0f;var _0x8f38b1,_0x2b9061,_0x25da61,_0x45c4e9;let _0x2b787b=(0x0,_0x229cfc[_0x3a4ceb(0x3fd)])(_0x1f6ce6[_0x3a4ceb(0x406)]),_0x1eb967=(0x0,_0x229cfc['useDependency'])(_0x1f6ce6[_0x3a4ceb(0x2bd)]),_0x204dab=(0x0,_0x229cfc[_0x3a4ceb(0x3fd)])(_0x1f6ce6['IUniverInstanceService']),_0x5ade66=(0x0,_0x229cfc[_0x3a4ceb(0x3fd)])(_0x43e147[_0x3a4ceb(0x365)]),_0xa4ec93=(0x0,_0x229cfc[_0x3a4ceb(0x3fd)])(_0x2ee308[_0x3a4ceb(0x4c1)]),_0x3c5394=(0x0,_0x229cfc[_0x3a4ceb(0x3fd)])(_0x58b748['IRenderManagerService']),[,_0xf48e46]=(0x0,_0x44112a[_0x3a4ceb(0x248)])(_0x45ea90=>_0x45ea90+0x1,0x0),_0x181677=_0x204dab['getCurrentUnitOfType'](_0x1f6ce6[_0x3a4ceb(0x2c2)][_0x3a4ceb(0x1e0)]),_0x581503=(_0x8f38b1=_0x181677==null?void 0x0:_0x181677[_0x3a4ceb(0x488)]())==null?'':_0x8f38b1,_0x58fe4=(_0x2b9061=_0x181677==null||(_0x25da61=_0x181677[_0x3a4ceb(0x46b)]())==null?void 0x0:_0x25da61[_0x3a4ceb(0x401)]())==null?'':_0x2b9061,_0x1d0f27=(0x0,_0x229cfc[_0x3a4ceb(0x423)])(()=>_0xa4ec93[_0x3a4ceb(0x2c6)],_0xa4ec93['getFocusDrawings'](),!0x1,[_0xa4ec93]);(0x0,_0x44112a[_0x3a4ceb(0x2d6)])(()=>{const _0x545f5c=_0x3a4ceb;let _0x36d533=_0x1eb967[_0x545f5c(0x225)](()=>_0xf48e46());return()=>_0x36d533['dispose']();},[_0x1eb967]);let _0x39bc5a=_0x581503&&_0x58fe4?_0x5ade66['getDrawingData'](_0x581503,_0x58fe4):{},_0x4166b1=_0x581503&&_0x58fe4?_0x5ade66[_0x3a4ceb(0x40f)](_0x581503,_0x58fe4):[],_0x2c433f=(0x0,_0x44112a['useMemo'])(()=>(0x0,_0x25185e['getObjectListPanelLabels'])(_0x2b787b),[_0x2b787b]),_0x4b3ead=(0x0,_0x44112a['useMemo'])(()=>{const _0x2bd817=_0x3a4ceb;let _0x37fd15=_0x4166b1[_0x2bd817(0x358)](_0x47c37b=>_0x39bc5a[_0x47c37b])['filter'](_0x5e79f4=>!!_0x5e79f4)[_0x2bd817(0x21a)](),_0x3d357=_0x37fd15['reduce']((_0x402355,_0x24196b)=>(_0x402355[(0x0,_0x25185e[_0x2bd817(0x228)])(_0x24196b[_0x2bd817(0x2b2)])]+=0x1,_0x402355),{'canvas':0x0,'floating':0x0}),_0x5ab912={'canvas':0x0,'floating':0x0};return _0x37fd15[_0x2bd817(0x358)]((_0x3b72f7,_0x17b3aa)=>{const _0xd63fd=_0x2bd817;let _0x847374=(0x0,_0x25185e['getObjectListPanelSectionIdForDrawingType'])(_0x3b72f7[_0xd63fd(0x2b2)]),_0x55ee4f=_0x847374===_0x25185e[_0xd63fd(0x24b)],_0x20200d=_0x5ab912[_0x847374]++;return{'id':_0x3b72f7[_0xd63fd(0x257)],'name':_0x5a0386(_0x3b72f7,_0x17b3aa,_0x2b787b),'description':_0x3b72f7[_0xd63fd(0x4a5)],'visible':_0x3b72f7[_0xd63fd(0x233)]!==!0x0,'selectable':_0x3b72f7[_0xd63fd(0x4ee)]!==!0x1,'sectionId':_0x847374,'sectionTitle':_0x55ee4f?_0x2c433f['sectionFloating']:_0x2c433f[_0xd63fd(0x4cc)],'capabilities':_0x55ee4f?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x55ee4f&&_0x20200d>0x0,'canMoveBackward':!_0x55ee4f&&_0x20200d<_0x3d357[_0xd63fd(0x493)]-0x1,'canReorder':!_0x55ee4f};});},[_0x39bc5a,_0x4166b1,_0x2c433f[_0x3a4ceb(0x4cc)],_0x2c433f['sectionFloating'],_0x2b787b]),_0x4fbc43=(0x0,_0x44112a[_0x3a4ceb(0x245)])(()=>(_0x1d0f27==null?[]:_0x1d0f27)[_0x3a4ceb(0x272)](_0x2d1d21=>_0x2d1d21[_0x3a4ceb(0x394)]===_0x581503&&_0x2d1d21[_0x3a4ceb(0x2e1)]===_0x58fe4)['map'](_0xe66a85=>_0xe66a85[_0x3a4ceb(0x257)]),[_0x1d0f27,_0x58fe4,_0x581503]),_0x50759d=(_0x45c4e9=_0x4fbc43[_0x4fbc43[_0x3a4ceb(0x28e)]-0x1])==null?null:_0x45c4e9,_0x2a988d=_0x1c8bef=>{const _0x3be30d=_0x3a4ceb;var _0x442dbb;return(_0x442dbb=_0x5ade66[_0x3be30d(0x3a2)]({'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingId':_0x1c8bef}))==null?null:_0x442dbb;},_0x5ea404=_0x19eee2=>{const _0x1838d0=_0x3a4ceb;!_0x581503||!_0x19eee2[_0x1838d0(0x28e)]||_0x1eb967['executeCommand'](_0x43e147['SetSheetDrawingCommand']['id'],{'unitId':_0x581503,'drawings':_0x19eee2});},_0x554bc0=(_0x260505,_0x39d9c3)=>{_0x2a988d(_0x260505)&&_0x5ea404([{'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingId':_0x260505,..._0x39d9c3}]);},_0xfc164c=(_0x129437,_0x2d7785)=>{const _0x26801d=_0x3a4ceb;if(!_0x581503||!_0x58fe4)return;let _0x408757=_0x2d7785?_0x4fbc43[_0x26801d(0x3f0)](_0x129437)?_0x4fbc43[_0x26801d(0x272)](_0xf34e45=>_0xf34e45!==_0x129437):[..._0x4fbc43,_0x129437]:[_0x129437];_0x1eb967['syncExecuteCommand'](_0x2ee308[_0x26801d(0x429)]['id'],_0x408757[_0x26801d(0x358)](_0x4186c8=>({'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingId':_0x4186c8})));let _0x4192eb=_0x408757[_0x408757['length']-0x1];_0x4192eb?(0x0,_0x10236c[_0x26801d(0x42a)])(_0x3c5394,{'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingId':_0x4192eb}):(0x0,_0x10236c[_0x26801d(0x285)])(_0x3c5394,_0x581503);},_0x7c3839=(_0x4179a0,_0x584baa)=>{const _0x5ec5ad=_0x3a4ceb;_0x5ea404(_0x4179a0[_0x5ec5ad(0x358)](_0xbbc272=>_0x2a988d(_0xbbc272))[_0x5ec5ad(0x272)](_0x2d3ce4=>!!_0x2d3ce4)['filter'](_0x157f1d=>_0x157f1d['hidden']!==!0x0!==_0x584baa)[_0x5ec5ad(0x358)](_0x213c8d=>({'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingId':_0x213c8d[_0x5ec5ad(0x257)],'hidden':!_0x584baa})));},_0x4fb4a1=_0xf7cee4=>{const _0x495250=_0x3a4ceb;let _0x416568=_0x2a988d(_0xf7cee4);_0x416568&&_0x554bc0(_0xf7cee4,{'selectable':_0x416568[_0x495250(0x4ee)]===!0x1?void 0x0:!0x1});},_0xe284c7=(_0x474b27,_0xa45072)=>{const _0x1d47ba=_0x3a4ceb;var _0xc88e1e,_0x315dad;let _0x1c981e=_0x2e0e5d(_0xa45072);((_0xc88e1e=(_0x315dad=_0x2a988d(_0x474b27))==null?void 0x0:_0x315dad[_0x1d47ba(0x244)])==null?void 0x0:_0xc88e1e)!==_0x1c981e&&_0x554bc0(_0x474b27,{'name':_0x1c981e});},_0x190587=(_0xdb3fd4,_0xbdab1)=>{const _0x2615d7=_0x3a4ceb;var _0x5a4c71,_0x49140;let _0x2f2cc4=_0x2e0e5d(_0xbdab1);((_0x5a4c71=(_0x49140=_0x2a988d(_0xdb3fd4))==null?void 0x0:_0x49140[_0x2615d7(0x4a5)])==null?void 0x0:_0x5a4c71)!==_0x2f2cc4&&_0x554bc0(_0xdb3fd4,{'description':_0x2f2cc4});},_0x20f74b=(_0x35edc2,_0x30a8e5)=>{const _0x1e0887=_0x3a4ceb;!_0x581503||!_0x58fe4||_0x1eb967['executeCommand'](_0x43e147[_0x1e0887(0x468)]['id'],{'unitId':_0x581503,'subUnitId':_0x58fe4,'drawingIds':[_0x35edc2],'arrangeType':_0x30a8e5});};return!_0x581503||!_0x58fe4?(0x0,_0x2508da[_0x3a4ceb(0x4c2)])(_0x3a4ceb(0x3de),{'className':_0x3a4ceb(0x461),'children':_0x2c433f[_0x3a4ceb(0x388)]}):(0x0,_0x2508da['jsx'])(_0x25185e['ObjectListPanelBase'],{'items':_0x4b3ead,'selectedIds':_0x4fbc43,'focusedId':_0x50759d,'labels':_0x2c433f,'onSelect':_0xfc164c,'onSetVisible':_0x7c3839,'onCommitName':_0xe284c7,'onCommitDescription':_0x190587,'onMoveForward':_0x1ad46f=>_0x20f74b(_0x1ad46f,_0x1f6ce6[_0x3a4ceb(0x360)][_0x3a4ceb(0x453)]),'onMoveBackward':_0x385537=>_0x20f74b(_0x385537,_0x1f6ce6[_0x3a4ceb(0x360)]['backward']),'onToggleSelectable':_0x4fb4a1});}let _0x3e709a=class{constructor(_0x13a4f0){const _0xd563eb=_0x47cc0f;this[_0xd563eb(0x4bb)]=_0x13a4f0;}[_0x47cc0f(0x4aa)](_0x3ba358,_0x36502e){const _0x260ef7=_0x47cc0f;let _0x16494d=this[_0x260ef7(0x4bb)][_0x260ef7(0x350)](_0x3ba358[_0x260ef7(0x394)]),_0x2b1bce=_0x16494d==null?void 0x0:_0x16494d['scene'];if(!_0x2b1bce)return;let _0x213a21=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])(_0x3ba358),_0x25b512=_0x2b1bce[_0x260ef7(0x4d7)](_0x213a21);_0x25b512==null||_0x25b512[_0x260ef7(0x3d0)](_0x36502e);}};_0x3e709a=_0x51130a([_0x3607f9(0x0,_0x58b748[_0x47cc0f(0x34e)])],_0x3e709a);function _0x219aad(){const _0x369fab=_0x47cc0f;let _0x510205=(0x0,_0x229cfc[_0x369fab(0x3fd)])(_0x2ee308[_0x369fab(0x4c1)]),_0x2bc179=(0x0,_0x229cfc[_0x369fab(0x423)])(()=>_0x510205[_0x369fab(0x2c6)],_0x510205[_0x369fab(0x436)](),!0x1,[_0x510205]);return _0x2bc179[_0x369fab(0x28e)]===0x0?null:(0x0,_0x2508da[_0x369fab(0x4c2)])(_0x369fab(0x3de),{'children':(0x0,_0x2508da[_0x369fab(0x2c7)])('div',{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,_0x2508da[_0x369fab(0x4c2)])(_0x25185e[_0x369fab(0x459)],{'drawings':_0x2bc179,'hasCropper':!0x1}),(0x0,_0x2508da[_0x369fab(0x4c2)])(_0x1700e5[_0x369fab(0x3a9)],{'drawings':_0x2bc179})]})});}function _0x34128a(_0x439147){const _0x42a890=_0x47cc0f;let {unitId:_0x5df6a0,subUnitId:_0x299de9,shapeId:_0x1eac04}=_0x439147,_0x573ef9=(0x0,_0x229cfc[_0x42a890(0x3fd)])(_0x1f6ce6[_0x42a890(0x2bd)]),_0x29866e=(0x0,_0x229cfc[_0x42a890(0x3fd)])(_0x3e709a);return(0x0,_0x2508da[_0x42a890(0x4c2)])(_0x10236c['ShapeEditPanel'],{..._0x439147,'positionEditor':(0x0,_0x2508da[_0x42a890(0x4c2)])(_0x219aad,{}),'onUpdateShapeData':(_0x3fe373,_0x49a0b4)=>{_0x3cbdfc(_0x573ef9,_0x5df6a0,_0x299de9,_0x1eac04,_0x3fe373,_0x49a0b4);},'onUpdateLineShapeData':(_0x508982,_0x3dc26c)=>{_0x44fc43(_0x573ef9,_0x5df6a0,_0x299de9,_0x1eac04,_0x508982,_0x3dc26c);},'onUpdateShapeFillImage':_0x314415=>{const _0x4a0f82=_0x42a890;_0x29866e[_0x4a0f82(0x4aa)]({'unitId':_0x5df6a0,'subUnitId':_0x299de9,'drawingId':_0x1eac04},_0x314415);}});}function _0x353a7a(_0x2c8b6b){const _0xe2cbe0=_0x47cc0f;let _0x45b9d2=_0x2c8b6b[_0xe2cbe0(0x3a6)][_0xe2cbe0(0x2c0)];return _0x45b9d2?(0x0,_0x2508da[_0xe2cbe0(0x4c2)])(_0x483a9c,{..._0x45b9d2}):null;}function _0x483a9c(_0x3c21e4){const _0x27c6d9=_0x47cc0f;var _0x99f670,_0x1b6586;let _0x5b5378=(0x0,_0x229cfc['useDependency'])(_0x1f6ce6[_0x27c6d9(0x2bd)]),_0x4a8ac5=(0x0,_0x229cfc[_0x27c6d9(0x3fd)])(_0x5927be[_0x27c6d9(0x21d)]),{unitId:_0x365193,subUnitId:_0x175df5,drawingId:_0x26efb0,drawingType:_0x31ef3b,shapeType:_0x29a135}=_0x3c21e4,[_0x1ab760,_0x406187]=(0x0,_0x44112a['useState'])(_0x3c21e4[_0x27c6d9(0x4e4)]),_0xec6fbb=(0x0,_0x44112a[_0x27c6d9(0x245)])(()=>(0x0,_0x10236c[_0x27c6d9(0x4f0)])(_0x1ab760),[_0x1ab760]),_0x30632b=(0x0,_0x44112a[_0x27c6d9(0x245)])(()=>(0x0,_0x10236c[_0x27c6d9(0x437)])(_0x1ab760),[_0x1ab760]);(0x0,_0x44112a[_0x27c6d9(0x2d6)])(()=>{const _0x152a72=_0x27c6d9;let _0x110d4e=_0x5b5378[_0x152a72(0x225)](_0x47bbea=>{const _0x23ee7c=_0x152a72;if(_0x47bbea['id']!==_0x5927be[_0x23ee7c(0x431)]['id'])return;let _0x6973bf=_0x4a8ac5[_0x23ee7c(0x45b)](_0x365193,_0x175df5,_0x26efb0);_0x6973bf&&_0x406187(_0x6973bf);});return()=>_0x110d4e['dispose']();},[_0x5b5378,_0x26efb0,_0x4a8ac5,_0x175df5,_0x365193]);let _0x58c220=_0x388f0a=>{_0x406187(_0x293a8e=>({..._0x293a8e,..._0x388f0a}));},_0x388455=_0x2c0e7d=>{const _0x244a24=_0x27c6d9;let _0x5e09e3=(0x0,_0x10236c['buildShapeTextDataUpdate'])(_0x1ab760,_0x2c0e7d);_0x3cbdfc(_0x5b5378,_0x365193,_0x175df5,_0x26efb0,{'oldShapeData':{'shapeText':_0x1ab760[_0x244a24(0x368)]}},_0x5e09e3),_0x58c220(_0x5e09e3);};return(0x0,_0x2508da[_0x27c6d9(0x4c2)])(_0x10236c[_0x27c6d9(0x38e)],{'shapeData':_0x1ab760,'shapeType':_0x29a135,'textStyle':{'ff':_0x4f5ff8[_0x27c6d9(0x4db)][_0x27c6d9(0x368)][_0x27c6d9(0x346)],'fs':_0x4f5ff8['ShapeDefaultConfig']['shapeText'][_0x27c6d9(0x398)],'cl':{'rgb':_0x4f5ff8[_0x27c6d9(0x4db)]['shapeText'][_0x27c6d9(0x32d)]},..._0xec6fbb},'textModel':_0x30632b?{'ha':(_0x99f670=_0x30632b['ha'])==null?_0x1f6ce6['HorizontalAlign'][_0x27c6d9(0x463)]:_0x99f670,'va':(_0x1b6586=_0x30632b['va'])==null?_0x1f6ce6[_0x27c6d9(0x484)][_0x27c6d9(0x2c3)]:_0x1b6586}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4f5ff8[_0x27c6d9(0x4db)][_0x27c6d9(0x266)],'defaultGradientEndColor':_0x4f5ff8[_0x27c6d9(0x4db)][_0x27c6d9(0x414)],'defaultStrokeColor':_0x4f5ff8[_0x27c6d9(0x4db)][_0x27c6d9(0x3da)],'onUpdateShapeData':(_0x51ebdf,_0x5100b5)=>{_0x3cbdfc(_0x5b5378,_0x365193,_0x175df5,_0x26efb0,_0x51ebdf,_0x5100b5),_0x5100b5&&_0x58c220(_0x5100b5);},'onUpdateText':_0x388455,'onOpenPanel':()=>{_0x5b5378['executeCommand'](_0xff3fa['id'],{'unitId':_0x365193,'subUnitId':_0x175df5,'drawingId':_0x26efb0});},'onDelete':()=>{const _0x1015eb=_0x27c6d9;_0x5b5378[_0x1015eb(0x2cb)](_0x43e147['RemoveSheetDrawingCommand']['id'],{'unitId':_0x365193,'drawings':[{'unitId':_0x365193,'subUnitId':_0x175df5,'drawingId':_0x26efb0,'drawingType':_0x31ef3b}]});}});}var _0x58197e=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(..._0x24d9e0){const _0x5ee6da=_0x47cc0f;super(..._0x24d9e0),_0x562cac(this,_0x5ee6da(0x280),new _0x21c04f[(_0x5ee6da(0x30b))](null)),_0x562cac(this,_0x5ee6da(0x385),this[_0x5ee6da(0x280)][_0x5ee6da(0x25e)]()),_0x562cac(this,_0x5ee6da(0x34c),new _0x21c04f[(_0x5ee6da(0x30b))](!0x1)),_0x562cac(this,_0x5ee6da(0x450),this['_onSavingEditorData$'][_0x5ee6da(0x25e)]());}['dispose'](){const _0x5dfbc2=_0x47cc0f;this[_0x5dfbc2(0x280)]['next'](null),this[_0x5dfbc2(0x280)]['complete'](),this[_0x5dfbc2(0x34c)][_0x5dfbc2(0x232)](!0x1),this['_onSavingEditorData$'][_0x5dfbc2(0x2a2)](),super[_0x5dfbc2(0x435)]();}[_0x47cc0f(0x302)](_0x5154da){const _0xc9238=_0x47cc0f;this[_0xc9238(0x280)][_0xc9238(0x232)](_0x5154da),_0x5154da==null&&this[_0xc9238(0x34c)][_0xc9238(0x232)](!0x1);}[_0x47cc0f(0x441)](_0x4340fa){const _0x433b80=_0x47cc0f;this[_0x433b80(0x34c)][_0x433b80(0x232)](_0x4340fa);}[_0x47cc0f(0x256)](){const _0x4be0be=_0x47cc0f;return this[_0x4be0be(0x280)][_0x4be0be(0x38f)]();}['completeEditing'](_0x49fdf1){const _0x5c7927=_0x47cc0f;this[_0x5c7927(0x256)]()&&(this[_0x5c7927(0x441)](!0x0),requestAnimationFrame(()=>{const _0x3d7dab=_0x5c7927;this[_0x3d7dab(0x302)](null);}));}[_0x47cc0f(0x2fa)](){this['getEditing']()&&this['setEditing'](null);}};let _0x92e99d=(0x0,_0x44112a['memo'])(()=>{const _0x1554e5=_0x47cc0f;let _0x3c9292=(0x0,_0x229cfc[_0x1554e5(0x3fd)])(_0x58197e),_0x552124=(0x0,_0x229cfc[_0x1554e5(0x3fd)])(_0x5927be[_0x1554e5(0x21d)]),_0x42d592=(0x0,_0x229cfc[_0x1554e5(0x3fd)])(_0x2ee308[_0x1554e5(0x4c1)]),_0x775460=(0x0,_0x229cfc[_0x1554e5(0x3fd)])(_0x1f6ce6[_0x1554e5(0x2bd)]),_0x53e457=(0x0,_0x229cfc['useDependency'])(_0x58b748['IRenderManagerService']);return(0x0,_0x2508da[_0x1554e5(0x4c2)])(_0x10236c[_0x1554e5(0x462)],{'adapter':(0x0,_0x44112a[_0x1554e5(0x245)])(()=>({'getShapeModel':(_0x4af88a,_0x339b87,_0xf4326d)=>_0x552124[_0x1554e5(0x381)](_0x4af88a,_0x339b87,_0xf4326d),'getShapeData':(_0x321ee3,_0x360eda,_0x3120fe)=>_0x552124[_0x1554e5(0x45b)](_0x321ee3,_0x360eda,_0x3120fe),'getDrawingTransform':(_0x166766,_0x352fa3,_0x5f00bb)=>{const _0xa615=_0x1554e5;let _0xe18cf1=_0x42d592[_0xa615(0x3a2)]({'unitId':_0x166766,'subUnitId':_0x352fa3,'drawingId':_0x5f00bb});return _0xe18cf1==null?void 0x0:_0xe18cf1[_0xa615(0x23f)];},'updateShapeText':({unitId:_0x3c371f,subUnitId:_0xd11785,shapeId:_0x7b9a0f,shapeText:_0x624245,oldShapeText:_0x3a25fa})=>{_0x775460['executeCommand'](_0x4417a8['id'],{'unitId':_0x3c371f,'subUnitId':_0xd11785,'shapeId':_0x7b9a0f,'shapeData':{'shapeText':_0x624245},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3a25fa}}});},'updateHostSize':({unitId:_0x5865ff,subUnitId:_0x148db2,shapeId:_0x4d966b,width:_0x45b935,height:_0x5e4d74})=>{const _0x5293cc=_0x1554e5;var _0x4adf62,_0xe447ef,_0x51f066;let _0x32aac9=_0x42d592[_0x5293cc(0x3a2)]({'unitId':_0x5865ff,'subUnitId':_0x148db2,'drawingId':_0x4d966b}),_0x125765=_0x32aac9==null?void 0x0:_0x32aac9[_0x5293cc(0x23f)];if(!_0x32aac9||!_0x125765)return;let _0x5898a8={..._0x125765,'width':_0x45b935,'height':_0x5e4d74},_0x3ab588=(_0x4adf62=_0x53e457[_0x5293cc(0x350)](_0x5865ff))==null||(_0x4adf62=_0x4adf62[_0x5293cc(0x1e4)](_0x522354[_0x5293cc(0x4ba)])[_0x5293cc(0x46d)](_0x148db2))==null?void 0x0:_0x4adf62['skeleton'],_0x1f3db7=_0x3ab588?(_0xe447ef=(0x0,_0x43e147[_0x5293cc(0x427)])(_0x5898a8,_0x3ab588))==null?_0x32aac9['sheetTransform']:_0xe447ef:_0x32aac9['sheetTransform'],_0x4e5a22=_0x3ab588?(_0x51f066=(0x0,_0x43e147[_0x5293cc(0x342)])(_0x5898a8,_0x3ab588))==null?_0x32aac9[_0x5293cc(0x395)]:_0x51f066:_0x32aac9[_0x5293cc(0x395)];_0x775460[_0x5293cc(0x2cb)](_0x43e147['SetSheetDrawingCommand']['id'],{'unitId':_0x5865ff,'drawings':[{..._0x32aac9,'transform':_0x5898a8,'sheetTransform':_0x1f3db7,'axisAlignSheetTransform':_0x4e5a22}]});},'allowHostSizeShrink':({unitId:_0x21136c,subUnitId:_0x3c8cf1,shapeId:_0x315a6c})=>(0x0,_0x10236c[_0x1554e5(0x46e)])(_0x552124[_0x1554e5(0x45b)](_0x21136c,_0x3c8cf1,_0x315a6c))}),[_0x775460,_0x42d592,_0x53e457,_0x552124]),'editingService':_0x3c9292,'editorUnitId':_0x4bb51f,'positionOptions':(0x0,_0x44112a[_0x1554e5(0x245)])(()=>({'viewportKeys':{'main':_0x58b748[_0x1554e5(0x41b)][_0x1554e5(0x1de)],'leftTop':_0x58b748[_0x1554e5(0x41b)][_0x1554e5(0x2ca)],'top':_0x58b748['SHEET_VIEWPORT_KEY'][_0x1554e5(0x454)],'left':_0x58b748[_0x1554e5(0x41b)][_0x1554e5(0x4b6)]},'getSkeleton':(_0x1d098f,_0x3fd2f8)=>{const _0x484201=_0x1554e5;var _0x7a4cc6,_0x131993;return(_0x7a4cc6=(_0x131993=_0x1d098f[_0x484201(0x1e4)](_0x522354['SheetSkeletonManagerService'])[_0x484201(0x46d)](_0x3fd2f8[_0x484201(0x2e1)]))==null?void 0x0:_0x131993[_0x484201(0x43e)])==null?null:_0x7a4cc6;}}),[])});}),_0x4c917c=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x476651,_0x7b6d3c){const _0x113f78=_0x47cc0f;super(),this[_0x113f78(0x330)]=_0x476651,this[_0x113f78(0x48d)]=_0x7b6d3c,this[_0x113f78(0x37e)](),this[_0x113f78(0x4ab)]();}[_0x47cc0f(0x37e)](){const _0x18eb0a=_0x47cc0f;this[_0x18eb0a(0x48d)][_0x18eb0a(0x2ff)](_0x18eb0a(0x364))||this[_0x18eb0a(0x216)](this[_0x18eb0a(0x48d)]['register']({'CopyDoubleIcon':_0x5d4a5c}));}['_registerComponents'](){const _0x127ea2=_0x47cc0f;this['disposeWithMe'](this[_0x127ea2(0x330)][_0x127ea2(0x279)](_0x449f94,_0x34128a)),this['disposeWithMe'](this[_0x127ea2(0x330)][_0x127ea2(0x279)](_0x1c0aed,_0x3b58fc)),this[_0x127ea2(0x216)](this[_0x127ea2(0x330)][_0x127ea2(0x279)](_0xe7fbe9,_0x4ce77b)),this[_0x127ea2(0x216)](this['_componentManager'][_0x127ea2(0x279)](_0x276531,_0x4cf7ba)),this[_0x127ea2(0x330)][_0x127ea2(0x1e3)](_0x25185e[_0x127ea2(0x312)])||this['disposeWithMe'](this[_0x127ea2(0x330)][_0x127ea2(0x279)](_0x25185e[_0x127ea2(0x312)],_0x538841)),this[_0x127ea2(0x216)](this['_componentManager']['register'](_0x187552,_0x353a7a)),this[_0x127ea2(0x216)](this['_componentManager'][_0x127ea2(0x279)](_0x506261,_0x10236c[_0x127ea2(0x2ee)])),this[_0x127ea2(0x216)](this['_componentManager']['register'](_0x127ea2(0x3e7),_0x92e99d));}};_0x4c917c=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x229cfc['ComponentManager'])),_0x3607f9(0x1,(0x0,_0x1f6ce6['Inject'])(_0x229cfc['IconManager']))],_0x4c917c);let _0x4cfdda=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x4f5b33,_0x1e8926,_0x5a7cf6,_0x1a1c22,_0x4e3766){const _0x49e6d7=_0x47cc0f;super(),this[_0x49e6d7(0x2c8)]=_0x4f5b33,this[_0x49e6d7(0x416)]=_0x1e8926,this['_renderManagerService']=_0x5a7cf6,this[_0x49e6d7(0x26b)]=_0x1a1c22,this['_imageShapeClipController']=_0x4e3766,_0x562cac(this,'_activeImageId',null),_0x562cac(this,_0x49e6d7(0x242),null),_0x562cac(this,_0x49e6d7(0x2ab),null),_0x562cac(this,_0x49e6d7(0x38c),void 0x0),_0x562cac(this,_0x49e6d7(0x4d0),[]),_0x562cac(this,'_baseLeft',0x0),_0x562cac(this,_0x49e6d7(0x3be),0x0),_0x562cac(this,_0x49e6d7(0x2df),0x0),_0x562cac(this,_0x49e6d7(0x370),0x0),_0x562cac(this,_0x49e6d7(0x25a),!0x1),_0x562cac(this,_0x49e6d7(0x44b),void 0x0),_0x562cac(this,_0x49e6d7(0x2f6),void 0x0),_0x562cac(this,_0x49e6d7(0x2a7),void 0x0),_0x562cac(this,_0x49e6d7(0x4af),void 0x0),_0x562cac(this,'_isImagePointerDown',!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}[_0x47cc0f(0x46f)](){const _0xf0f603=_0x47cc0f;this[_0xf0f603(0x48f)]();}[_0x47cc0f(0x3f5)](){const _0x273116=_0x47cc0f;this[_0x273116(0x48f)](),this['_createControls'](!0x0);}[_0x47cc0f(0x3ed)](_0x19af56,_0x9cca07,_0x5cff87,_0x425f0a){const _0x24e291=_0x47cc0f;let _0x5f1d84=_0x19af56;if(!(_0x5f1d84===_0x4f5ff8[_0x24e291(0x4d9)][_0x24e291(0x2a4)]||_0x19af56===_0x24e291(0x2ad)))try{let _0x161fce=new _0x4f5ff8[(_0x24e291(0x298))](_0x5f1d84,_0x24e291(0x2cf)+_0x19af56);return _0x425f0a&&_0x161fce[_0x24e291(0x3ba)]({'adjustValues':_0x425f0a},!0x0),_0x161fce['updateContext']({'width':_0x9cca07,'height':_0x5cff87}),_0x161fce;}catch{return;}}[_0x47cc0f(0x2a3)](_0x23b567,_0x3589b5,_0x153b47){const _0x236f1d=_0x47cc0f;let _0x1193b1={'unitId':_0x23b567,'subUnitId':_0x3589b5,'drawingId':_0x153b47},_0x5ccc74=this['_drawingManagerService'][_0x236f1d(0x3a2)](_0x1193b1);if(!(!_0x5ccc74||_0x5ccc74[_0x236f1d(0x2b2)]!==_0x1f6ce6[_0x236f1d(0x38b)]['DRAWING_IMAGE']))return _0x5ccc74;}['_getImagePrstGeom'](_0x2b044e,_0x3d8fa4,_0x1d161d){const _0x16ff1e=_0x47cc0f;let _0x4078b6=this['_renderManagerService'][_0x16ff1e(0x350)](_0x2b044e);if(!_0x4078b6)return;let {scene:_0x282a3f}=_0x4078b6,_0x50f3fc=(0x0,_0x2ee308[_0x16ff1e(0x4d4)])({'unitId':_0x2b044e,'subUnitId':_0x3d8fa4,'drawingId':_0x1d161d}),_0x128735=_0x282a3f['getObject'](_0x50f3fc);if(_0x128735 instanceof _0x58b748['Image']){let _0x3a176a=_0x128735[_0x16ff1e(0x323)];if(_0x3a176a)return{'prstGeom':_0x3a176a,'adjustValues':_0x128735[_0x16ff1e(0x24c)]};}}[_0x47cc0f(0x433)](_0x1ea9b9=!0x1){const _0x359bb3=_0x47cc0f;if(!this[_0x359bb3(0x242)]||!this[_0x359bb3(0x2ab)]||!this[_0x359bb3(0x246)])return;let _0x28f78a=this['_renderManagerService'][_0x359bb3(0x350)](this[_0x359bb3(0x242)]);if(!_0x28f78a||!_0x28f78a[_0x359bb3(0x1e4)](_0x522354[_0x359bb3(0x4ba)])[_0x359bb3(0x27d)]())return;let {scene:_0x4f6377}=_0x28f78a,_0x4e706a=this[_0x359bb3(0x2a3)](this[_0x359bb3(0x242)],this[_0x359bb3(0x2ab)],this['_activeImageId']);if(!_0x4e706a)return;let {transform:_0x13888b}=_0x4e706a;if(!_0x13888b)return;let {left:_0x139ac2,top:_0x2151d8,width:_0x198070,height:_0x447fa0,flipX:_0x4b21f5,flipY:_0x2bf3a0,angle:_0xe3ff88=0x0}=_0x13888b;if(_0x139ac2===void 0x0||_0x2151d8===void 0x0)return;let _0x45962f=this[_0x359bb3(0x297)](this[_0x359bb3(0x242)],this[_0x359bb3(0x2ab)],this[_0x359bb3(0x246)]);if(!_0x45962f)return;if(_0x1ea9b9){let _0x471c5c=this[_0x359bb3(0x3ed)](_0x45962f['prstGeom'],_0x198070||0x0,_0x447fa0||0x0,_0x45962f[_0x359bb3(0x296)]);if(!_0x471c5c)return;this[_0x359bb3(0x38c)]=_0x471c5c[_0x359bb3(0x3f9)]();}let _0x41f438=this[_0x359bb3(0x38c)];if(!(!_0x41f438||_0x41f438[_0x359bb3(0x28e)]===0x0))for(let _0x43fe78=0x0;_0x43fe78<_0x41f438[_0x359bb3(0x28e)];_0x43fe78++){let _0x201044=_0x41f438[_0x43fe78],_0x2e7f8b=_0x201044['x'],_0x396d36=_0x201044['y'];if(_0x4b21f5&&(_0x2e7f8b=(_0x198070||0x0)-_0x2e7f8b),_0x2bf3a0&&(_0x396d36=(_0x447fa0||0x0)-_0x396d36),_0xe3ff88!==0x0){let _0x490cb4=(_0x198070||0x0)/0x2,_0x4c6559=(_0x447fa0||0x0)/0x2,_0x53b8eb=_0xe3ff88*Math['PI']/0xb4,_0x3edbf7=Math[_0x359bb3(0x46c)](_0x53b8eb),_0x1e7349=Math['sin'](_0x53b8eb),_0x1ed40d=_0x2e7f8b-_0x490cb4,_0x6ee0fe=_0x396d36-_0x4c6559;_0x2e7f8b=_0x490cb4+(_0x1ed40d*_0x3edbf7-_0x6ee0fe*_0x1e7349),_0x396d36=_0x4c6559+(_0x1ed40d*_0x1e7349+_0x6ee0fe*_0x3edbf7);}let _0x5c6060={'x':_0x2e7f8b,'y':_0x396d36,'adjName':_0x201044['adjName']};this['_addControl'](_0x4f6377,_0x5c6060,_0x5c6060[_0x359bb3(0x4e0)],_0x139ac2,_0x2151d8,this['_unitId'],this[_0x359bb3(0x2ab)]);}}[_0x47cc0f(0x1f9)](_0x177a62,_0x5f07ef,_0x24554e,_0x25e519,_0x39f94e,_0x3d93da,_0x56be14){const _0x5cb1b3=_0x47cc0f;if(!this['_activeImageId'])return;let _0x2801ce=_0x5cb1b3(0x2c5)+this['_activeImageId']+'-'+_0x24554e,_0xbb5aaa=_0x177a62['getObjectIncludeInGroup'](_0x2801ce);if(_0xbb5aaa){_0xbb5aaa[_0x5cb1b3(0x4a6)]({'left':_0x5f07ef['x']+_0x25e519-_0x4f5ff8[_0x5cb1b3(0x4db)][_0x5cb1b3(0x33f)],'top':_0x5f07ef['y']+_0x39f94e-_0x4f5ff8[_0x5cb1b3(0x4db)][_0x5cb1b3(0x33f)]});return;}let _0x22ad6f=new _0x50c784(_0x2801ce,{'left':_0x5f07ef['x']+_0x25e519-_0x4f5ff8['ShapeDefaultConfig'][_0x5cb1b3(0x33f)],'top':_0x5f07ef['y']+_0x39f94e-_0x4f5ff8[_0x5cb1b3(0x4db)][_0x5cb1b3(0x33f)],'adjName':_0x24554e,'shapeId':this[_0x5cb1b3(0x246)],'unitId':_0x3d93da,'subUnitId':_0x56be14,'width':_0x4f5ff8[_0x5cb1b3(0x4db)]['adjHandleSize']+0x8,'height':_0x4f5ff8[_0x5cb1b3(0x4db)][_0x5cb1b3(0x33f)]+0x8,'zIndex':_0x58b748[_0x5cb1b3(0x43c)]+0x1,'evented':!0x0});this[_0x5cb1b3(0x4d0)]['push'](_0x22ad6f),this['_attachAdjustEvent'](_0x22ad6f,_0x177a62,_0x24554e),_0x177a62[_0x5cb1b3(0x408)](_0x22ad6f,_0x58b748[_0x5cb1b3(0x43c)]+0x1);}[_0x47cc0f(0x48f)](){const _0x1e759f=_0x47cc0f;this[_0x1e759f(0x4d0)]['length']!==0x0&&(this[_0x1e759f(0x4d0)]['forEach'](_0x179c46=>_0x179c46['dispose']()),this[_0x1e759f(0x4d0)]=[]);}[_0x47cc0f(0x320)](_0x544e4e,_0x1be7bf){const _0x17a885=_0x47cc0f;var _0x4cc4c5;let _0x3512f9={'x':0x0,'y':0x0},_0x2560a9=this['_renderManagerService'][_0x17a885(0x350)](_0x544e4e);if(!_0x2560a9||!_0x2560a9['with'](_0x522354[_0x17a885(0x4ba)])['getSkeleton'](_0x1be7bf))return _0x3512f9;let _0x4ba9a0=_0x2560a9[_0x17a885(0x1e4)](_0x522354[_0x17a885(0x41a)]),_0x38c50e=_0x4ba9a0==null?void 0x0:_0x4ba9a0[_0x17a885(0x224)]();if(!_0x38c50e)return _0x3512f9;let _0x2f1733=(_0x4cc4c5=this[_0x17a885(0x26b)]['getUnit'](_0x544e4e))==null?void 0x0:_0x4cc4c5[_0x17a885(0x277)](_0x1be7bf);if(!_0x2f1733)return _0x3512f9;let _0x5c98d4=(0x0,_0x522354[_0x17a885(0x3fa)])(_0x38c50e[_0x17a885(0x389)],_0x38c50e[_0x17a885(0x3ee)],_0x2560a9[_0x17a885(0x469)],_0x2f1733);return _0x5c98d4?{'x':_0x5c98d4[_0x17a885(0x1d5)],'y':_0x5c98d4[_0x17a885(0x3c5)]}:_0x3512f9;}[_0x47cc0f(0x402)](_0x46ab7c,_0x13a693){const _0x4606c7=_0x47cc0f;var _0xe0ca0,_0x46126f;let _0x83b2f4=(_0xe0ca0=this[_0x4606c7(0x26b)][_0x4606c7(0x49f)](_0x46ab7c))==null?void 0x0:_0xe0ca0[_0x4606c7(0x277)](_0x13a693);return(_0x46126f=_0x83b2f4==null?void 0x0:_0x83b2f4[_0x4606c7(0x38d)]())==null?0x1:_0x46126f;}[_0x47cc0f(0x393)](_0x1b567f,_0x380ee1,_0x46bc93){const _0x22f464=_0x47cc0f;this[_0x22f464(0x216)]((0x0,_0x1f6ce6[_0x22f464(0x31d)])(_0x1b567f[_0x22f464(0x2ef)]['subscribeEvent']((_0x4a7895,_0x1ccc03)=>{const _0x5500d0=_0x22f464;var _0x2cea35,_0x5b5c2b,_0x26f5bd;let {unitId:_0x5008c2,subUnitId:_0x41ecd2,drawingId:_0x356f84}=_0x1b567f['getDrawingSearch'](),_0x5daaa7=this[_0x5500d0(0x2a3)](_0x5008c2,_0x41ecd2,_0x356f84);if(!(_0x5daaa7!=null&&_0x5daaa7[_0x5500d0(0x23f)]))return;let {left:_0x3eea13,top:_0x30a197,width:_0x49b558,height:_0x54b3fe}=_0x5daaa7[_0x5500d0(0x23f)];this[_0x5500d0(0x25c)]=_0x3eea13||0x0,this['_baseTop']=_0x30a197||0x0,this[_0x5500d0(0x2df)]=_0x49b558||0x0,this[_0x5500d0(0x370)]=_0x54b3fe||0x0;let _0x1de031=!!((_0x2cea35=_0x5daaa7[_0x5500d0(0x23f)])!=null&&_0x2cea35[_0x5500d0(0x42d)]),_0x3ea2e5=!!((_0x5b5c2b=_0x5daaa7[_0x5500d0(0x23f)])!=null&&_0x5b5c2b['flipY']),_0x10c5e0=((_0x26f5bd=_0x5daaa7[_0x5500d0(0x23f)])==null?void 0x0:_0x26f5bd['angle'])||0x0,_0x1bb44c=this[_0x5500d0(0x297)](_0x5008c2,_0x41ecd2,_0x356f84);if(!_0x1bb44c)return;let _0x2c2d2b=this[_0x5500d0(0x3ed)](_0x1bb44c[_0x5500d0(0x323)],this[_0x5500d0(0x2df)],this['_baseHeight'],_0x1bb44c[_0x5500d0(0x296)]);if(!_0x2c2d2b||(this[_0x5500d0(0x2f6)]=_0x2c2d2b,this[_0x5500d0(0x44b)]=_0x2c2d2b['getAdjustInfoByName'](_0x46bc93),!this[_0x5500d0(0x44b)]))return;this[_0x5500d0(0x25a)]=!0x0,_0x380ee1[_0x5500d0(0x345)]();let _0x144d0b=_0x1bb44c[_0x5500d0(0x323)];this[_0x5500d0(0x2a7)]=_0x380ee1[_0x5500d0(0x3ac)]['subscribeEvent']((_0x191d0a,_0x17a115)=>{const _0x1a52b3=_0x5500d0;if(!this[_0x1a52b3(0x25a)])return;let {offsetX:_0x2029df,offsetY:_0x5dc05e}=_0x191d0a,_0x2254aa=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x2254aa)return;_0x380ee1['disableObjectsEvent'](),_0x380ee1[_0x1a52b3(0x23a)](_0x58b748[_0x1a52b3(0x31c)][_0x1a52b3(0x3e8)]);let _0x12a9ee={'left':0x0,'top':0x0,'width':this[_0x1a52b3(0x2df)],'height':this['_baseHeight']},_0x474e99=this['_getScrollInfo'](_0x5008c2,_0x41ecd2),_0x20ce40=this['_getZoomRatio'](_0x5008c2,_0x41ecd2),_0x1fe651=_0x2029df/_0x20ce40+_0x474e99['x']-this[_0x1a52b3(0x25c)],_0x10bd0c=_0x5dc05e/_0x20ce40+_0x474e99['y']-this[_0x1a52b3(0x3be)];if(_0x10c5e0!==0x0){let _0x3a5082=this['_baseWidth']/0x2,_0x2f6e88=this[_0x1a52b3(0x370)]/0x2,_0x330d22=_0x10c5e0*Math['PI']/0xb4,_0x45a028=Math[_0x1a52b3(0x46c)](_0x330d22),_0x25fe64=Math[_0x1a52b3(0x494)](_0x330d22),_0x53cbc9=_0x1fe651-_0x3a5082,_0x39d88d=_0x10bd0c-_0x2f6e88;_0x1fe651=_0x3a5082+(_0x53cbc9*_0x45a028+_0x39d88d*_0x25fe64),_0x10bd0c=_0x2f6e88+(-_0x53cbc9*_0x25fe64+_0x39d88d*_0x45a028);}_0x1de031&&(_0x1fe651=this[_0x1a52b3(0x2df)]-_0x1fe651),_0x3ea2e5&&(_0x10bd0c=this[_0x1a52b3(0x370)]-_0x10bd0c);let _0x3b7334=this[_0x1a52b3(0x2f6)][_0x1a52b3(0x2a1)](_0x12a9ee,{'x':_0x1fe651,'y':_0x10bd0c},_0x2254aa,_0x1de031,_0x3ea2e5),_0x46e2c9=_0x2254aa[_0x1a52b3(0x247)]||_0x2254aa[_0x1a52b3(0x2f1)]||_0x2254aa['gdRefAng']||_0x2254aa[_0x1a52b3(0x3ae)];_0x46e2c9!==void 0x0&&(this[_0x1a52b3(0x2f6)]['setAdjustValueByName'](_0x46e2c9,_0x3b7334),this[_0x1a52b3(0x2f6)][_0x1a52b3(0x210)]({'width':this['_baseWidth'],'height':this['_baseHeight']}),this[_0x1a52b3(0x311)](_0x5008c2,_0x41ecd2,_0x356f84,_0x46e2c9,_0x3b7334),this[_0x1a52b3(0x38c)]=this[_0x1a52b3(0x2f6)]['getDrawingPoints'](),this[_0x1a52b3(0x44b)]=this[_0x1a52b3(0x2f6)][_0x1a52b3(0x223)](_0x46bc93),this['_createControls'](),_0x17a115[_0x1a52b3(0x412)]());}),this[_0x5500d0(0x4af)]=_0x380ee1[_0x5500d0(0x1e9)][_0x5500d0(0x4a2)]((_0x3462a6,_0x121dc3)=>{const _0x3c1b92=_0x5500d0;if(this[_0x3c1b92(0x2a7)][_0x3c1b92(0x212)](),this[_0x3c1b92(0x4af)][_0x3c1b92(0x212)](),_0x380ee1['resetCursor'](),this[_0x3c1b92(0x2f6)]){let _0x27d694=this['_activeShapeModel'][_0x3c1b92(0x259)](),_0x4086b2={};for(let _0x40c151 of _0x27d694){let _0x2702ee=this[_0x3c1b92(0x2f6)][_0x3c1b92(0x327)](_0x40c151);_0x2702ee!==void 0x0&&(_0x4086b2[_0x40c151]=_0x2702ee);}this['_imageShapeClipController'][_0x3c1b92(0x3ef)](_0x5008c2,_0x41ecd2,_0x356f84,_0x144d0b,_0x4086b2);}this['_activeAdjustInfo']=void 0x0,this[_0x3c1b92(0x2f6)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x121dc3[_0x3c1b92(0x412)](),_0x380ee1['enableObjectsEvent']();}),_0x1ccc03[_0x5500d0(0x412)]();})));}[_0x47cc0f(0x311)](_0x1c0947,_0x518d9a,_0x5519eb,_0x5d5fef,_0x1c3913){const _0x47ae06=_0x47cc0f;let _0x197a6a=this[_0x47ae06(0x4bb)][_0x47ae06(0x350)](_0x1c0947);if(!_0x197a6a)return;let {scene:_0x7f74ad}=_0x197a6a,_0x25ca0d=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1c0947,'subUnitId':_0x518d9a,'drawingId':_0x5519eb}),_0x55dbba=_0x7f74ad[_0x47ae06(0x290)](_0x25ca0d);if(_0x55dbba instanceof _0x58b748[_0x47ae06(0x33e)]){var _0x1c0d42;let _0x611d7a=(_0x1c0d42=_0x55dbba['prstGeomAdjValues'])==null?{}:_0x1c0d42;_0x55dbba[_0x47ae06(0x3e0)]({..._0x611d7a,[_0x5d5fef]:_0x1c3913}),_0x55dbba[_0x47ae06(0x49b)](!0x0);}}[_0x47cc0f(0x49c)](){const _0x19775b=_0x47cc0f;let _0x2a38c0=this['_univerInstanceService'][_0x19775b(0x22a)](_0x1f6ce6[_0x19775b(0x2c2)][_0x19775b(0x1e0)]);this[_0x19775b(0x216)](_0x2a38c0[_0x19775b(0x43f)]((0x0,_0x21c04f[_0x19775b(0x316)])(_0x49322e=>_0x49322e?_0x49322e[_0x19775b(0x42b)][_0x19775b(0x43f)]((0x0,_0x21c04f[_0x19775b(0x316)])(_0x5736d5=>{const _0x257868=_0x19775b;if(!_0x5736d5)return _0x21c04f['EMPTY'];let _0x2a2a43=_0x49322e[_0x257868(0x488)](),_0x535c10=this['_renderManagerService'][_0x257868(0x350)](_0x2a2a43),_0x5040e3=_0x535c10==null?void 0x0:_0x535c10['scene'];return _0x5040e3?(0x0,_0x21c04f['of'])(_0x5040e3):_0x21c04f[_0x257868(0x30d)];})):_0x21c04f[_0x19775b(0x30d)]))[_0x19775b(0x4b1)](_0x580cee=>{const _0x4091ff=_0x19775b;let _0x3e8cb4=_0x580cee['getTransformerByCreate']();this[_0x4091ff(0x216)](_0x580cee[_0x4091ff(0x3ac)][_0x4091ff(0x4a2)](()=>{const _0x48c1a5=_0x4091ff;this[_0x48c1a5(0x3d8)]&&this[_0x48c1a5(0x48f)]();})),this['disposeWithMe'](_0x3e8cb4['changeStart$']['subscribe'](_0x445a4b=>{const _0x3bc4d6=_0x4091ff;let {objects:_0x402bbf}=_0x445a4b;if(this['_createControls'](),_0x402bbf!==null&&_0x402bbf[_0x3bc4d6(0x1ec)]===0x1){let _0x1cab05=_0x402bbf[_0x3bc4d6(0x4a9)]()['next']()[_0x3bc4d6(0x337)];_0x1cab05 instanceof _0x58b748['Image']&&_0x1cab05['prstGeom']&&(this['_isImagePointerDown']=!0x0);}})),this[_0x4091ff(0x216)](_0x3e8cb4[_0x4091ff(0x39c)][_0x4091ff(0x4b1)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0x4091ff(0x216)](_0x580cee['onPointerUp$'][_0x4091ff(0x4a2)](()=>{const _0x27be8b=_0x4091ff;this[_0x27be8b(0x3d8)]&&(this[_0x27be8b(0x3d8)]=!0x1,this[_0x27be8b(0x433)]());})),this[_0x4091ff(0x216)](_0x3e8cb4[_0x4091ff(0x1da)]['subscribe'](()=>{const _0x262d13=_0x4091ff;if(this[_0x262d13(0x242)]&&this[_0x262d13(0x2ab)]&&this[_0x262d13(0x246)]){let _0x4d323b=this[_0x262d13(0x297)](this[_0x262d13(0x242)],this[_0x262d13(0x2ab)],this[_0x262d13(0x246)]);if(_0x4d323b){var _0x19ae74,_0x106497;let _0x340fde=this[_0x262d13(0x2a3)](this[_0x262d13(0x242)],this[_0x262d13(0x2ab)],this[_0x262d13(0x246)]),_0xb831d5=(_0x340fde==null||(_0x19ae74=_0x340fde[_0x262d13(0x23f)])==null?void 0x0:_0x19ae74[_0x262d13(0x300)])||0x0,_0x39c24b=(_0x340fde==null||(_0x106497=_0x340fde[_0x262d13(0x23f)])==null?void 0x0:_0x106497[_0x262d13(0x1e8)])||0x0,_0x5e34d0=this[_0x262d13(0x3ed)](_0x4d323b['prstGeom'],_0xb831d5,_0x39c24b,_0x4d323b[_0x262d13(0x296)]);_0x5e34d0&&(this['_activeAdjustPointList']=_0x5e34d0['getDrawingPoints'](),this[_0x262d13(0x48f)](),this[_0x262d13(0x433)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x314957=_0x47cc0f;this[_0x314957(0x216)](this['_drawingManagerService'][_0x314957(0x2c6)][_0x314957(0x4b1)](_0x3e946b=>{const _0x30ce3a=_0x314957;if(_0x3e946b[_0x30ce3a(0x28e)]===0x1){let _0x261ea9=_0x3e946b[0x0];if(_0x261ea9[_0x30ce3a(0x2b2)]===_0x1f6ce6[_0x30ce3a(0x38b)][_0x30ce3a(0x473)]){let {unitId:_0x40da84,subUnitId:_0x12ce4f,drawingId:_0x58eb84}=_0x261ea9,_0x2f247d=this['_getImagePrstGeom'](_0x40da84,_0x12ce4f,_0x58eb84);if(_0x2f247d){var _0x228fcd,_0x1a2cf2;this['_activeImageId']=_0x58eb84,this[_0x30ce3a(0x242)]=_0x40da84,this[_0x30ce3a(0x2ab)]=_0x12ce4f;let _0x325da6=this[_0x30ce3a(0x2a3)](_0x40da84,_0x12ce4f,_0x58eb84),_0x34580c=(_0x325da6==null||(_0x228fcd=_0x325da6[_0x30ce3a(0x23f)])==null?void 0x0:_0x228fcd[_0x30ce3a(0x300)])||0x0,_0x359496=(_0x325da6==null||(_0x1a2cf2=_0x325da6[_0x30ce3a(0x23f)])==null?void 0x0:_0x1a2cf2['height'])||0x0,_0x181d05=this[_0x30ce3a(0x3ed)](_0x2f247d[_0x30ce3a(0x323)],_0x34580c,_0x359496,_0x2f247d['adjustValues']);_0x181d05&&(this[_0x30ce3a(0x38c)]=_0x181d05[_0x30ce3a(0x3f9)]()),this[_0x30ce3a(0x48f)](),this[_0x30ce3a(0x433)](!0x0);}else this[_0x30ce3a(0x448)]();}else this[_0x30ce3a(0x448)]();}else this[_0x30ce3a(0x448)]();})),this[_0x314957(0x216)](this[_0x314957(0x416)][_0x314957(0x213)][_0x314957(0x4b1)](_0x473961=>{const _0x22ac99=_0x314957;if(_0x473961['length']===0x1){let _0x32d60a=_0x473961[0x0],_0x5f05f8=this[_0x22ac99(0x416)][_0x22ac99(0x3a2)](_0x32d60a);(_0x5f05f8==null?void 0x0:_0x5f05f8[_0x22ac99(0x2b2)])===_0x1f6ce6[_0x22ac99(0x38b)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x32d60a['drawingId']&&(this[_0x22ac99(0x48f)](),this[_0x22ac99(0x433)](!0x0));}})),this['disposeWithMe'](this[_0x314957(0x416)][_0x314957(0x1e6)]['subscribe'](_0x746223=>{const _0x26ce73=_0x314957;for(let _0x12e301 of _0x746223)this[_0x26ce73(0x246)]===_0x12e301[_0x26ce73(0x257)]&&this['_resetState']();}));}['_resetState'](){const _0x26d141=_0x47cc0f;this[_0x26d141(0x246)]=null,this[_0x26d141(0x242)]=null,this[_0x26d141(0x2ab)]=null,this[_0x26d141(0x38c)]=void 0x0,this['_clearControls']();}};_0x4cfdda=_0x51130a([_0x3607f9(0x1,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x58b748['IRenderManagerService'])),_0x3607f9(0x3,_0x1f6ce6[_0x47cc0f(0x32e)]),_0x3607f9(0x4,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x277ed1))],_0x4cfdda);let _0x28ef11=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x4eff03,_0x11db36,_0x50e658,_0x351956){const _0x37c8de=_0x47cc0f;super(),this['_univerInstanceService']=_0x4eff03,this[_0x37c8de(0x20c)]=_0x11db36,this[_0x37c8de(0x3bf)]=_0x50e658,this[_0x37c8de(0x3c4)]=_0x351956,this[_0x37c8de(0x3fe)]();}[_0x47cc0f(0x3fe)](){const _0x44dd6a=_0x47cc0f;this[_0x44dd6a(0x216)](this[_0x44dd6a(0x20c)][_0x44dd6a(0x42c)]({'getMutations':_0x55c64e=>{const _0x4ea1c6=_0x44dd6a;if(_0x55c64e['id']===_0x231b82['RemoveSheetCommand']['id']){let _0x6db38f=(0x0,_0x231b82[_0x4ea1c6(0x226)])(this[_0x4ea1c6(0x26b)],_0x55c64e[_0x4ea1c6(0x305)]);if(!_0x6db38f)return{'redos':[],'undos':[]};let {unitId:_0x3ecf44,subUnitId:_0x544181}=_0x6db38f,_0x1e1c8f=this[_0x4ea1c6(0x3bf)][_0x4ea1c6(0x29b)](_0x3ecf44,_0x544181),_0x1220a2=Object[_0x4ea1c6(0x4a9)](_0x1e1c8f)[_0x4ea1c6(0x272)](_0x3203a7=>_0x3203a7['drawingType']===_0x1f6ce6[_0x4ea1c6(0x38b)][_0x4ea1c6(0x3c0)]);if(_0x1220a2[_0x4ea1c6(0x28e)]===0x0)return{'redos':[],'undos':[]};let _0x4a3d64=[],_0x51a0b2=[];for(let _0x130c98=0x0;_0x130c98<_0x1220a2[_0x4ea1c6(0x28e)];_0x130c98++){let _0x129994=_0x1220a2[_0x130c98],_0xe72a72=this[_0x4ea1c6(0x3c4)][_0x4ea1c6(0x381)](_0x129994[_0x4ea1c6(0x394)],_0x129994[_0x4ea1c6(0x2e1)],_0x129994[_0x4ea1c6(0x257)]);if(!_0xe72a72)continue;let {redo:_0xbb192e,undo:_0x4c3988,objects:_0x38569f}=this['_sheetDrawingService'][_0x4ea1c6(0x3e4)]([_0x129994]);_0x4a3d64[_0x4ea1c6(0x3e5)]({'id':_0x5927be[_0x4ea1c6(0x39e)]['id'],'params':{'unitId':_0x3ecf44,'subUnitId':_0x544181,'shapeId':_0x129994[_0x4ea1c6(0x257)]}}),_0x4a3d64[_0x4ea1c6(0x3e5)]({'id':_0x43e147['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3ecf44,'subUnitId':_0x544181,'type':_0x43e147[_0x4ea1c6(0x34b)]['REMOVE'],'op':_0xbb192e,'objects':_0x38569f}}),_0x51a0b2[_0x4ea1c6(0x3e5)]({'id':_0x43e147[_0x4ea1c6(0x2dd)]['id'],'params':{'unitId':_0x3ecf44,'subUnitId':_0x544181,'type':_0x43e147[_0x4ea1c6(0x34b)][_0x4ea1c6(0x3ab)],'op':_0x4c3988,'objects':_0x38569f}}),_0x51a0b2[_0x4ea1c6(0x3e5)]({'id':_0x5927be[_0x4ea1c6(0x318)]['id'],'params':{'unitId':_0x3ecf44,'subUnitId':_0x544181,'shapeId':_0x129994[_0x4ea1c6(0x257)],'shapeType':_0xe72a72[_0x4ea1c6(0x2d8)](),'shapeData':JSON[_0x4ea1c6(0x4c0)](JSON[_0x4ea1c6(0x4f7)](_0xe72a72['getShapeData']()))}});}return{'redos':_0x4a3d64,'undos':_0x51a0b2};}else{if(_0x55c64e['id']===_0x231b82[_0x4ea1c6(0x28f)]['id']){let {unitId:_0x3b28b3,subUnitId:_0x588e2a,targetSubUnitId:_0x30cef5}=_0x55c64e[_0x4ea1c6(0x305)];if(!_0x3b28b3||!_0x588e2a||!_0x30cef5)return{'redos':[],'undos':[]};let _0x368f02=this[_0x4ea1c6(0x3bf)][_0x4ea1c6(0x29b)](_0x3b28b3,_0x588e2a),_0x4b3d4c=Object[_0x4ea1c6(0x4a9)](_0x368f02)[_0x4ea1c6(0x272)](_0x26eff1=>_0x26eff1[_0x4ea1c6(0x2b2)]===_0x1f6ce6[_0x4ea1c6(0x38b)][_0x4ea1c6(0x3c0)]);if(_0x4b3d4c[_0x4ea1c6(0x28e)]===0x0)return{'redos':[],'undos':[]};let _0x5e30ff=[],_0x511c13=[];for(let _0x53882a=0x0;_0x53882a<_0x4b3d4c['length'];_0x53882a++){let _0x1cd097=_0x4b3d4c[_0x53882a],_0x15e03d=this[_0x4ea1c6(0x3c4)][_0x4ea1c6(0x381)](_0x1cd097[_0x4ea1c6(0x394)],_0x1cd097[_0x4ea1c6(0x2e1)],_0x1cd097[_0x4ea1c6(0x257)]);if(!_0x15e03d)continue;let _0x4029bb=(0x0,_0x1f6ce6[_0x4ea1c6(0x472)])(),_0x1fd394={..._0x1cd097,'unitId':_0x3b28b3,'subUnitId':_0x30cef5,'drawingId':_0x4029bb},{redo:_0x407223,undo:_0x4295dd,objects:_0x1e4089}=this[_0x4ea1c6(0x3bf)][_0x4ea1c6(0x26d)]([_0x1fd394]);_0x5e30ff['push']({'id':_0x43e147[_0x4ea1c6(0x2dd)]['id'],'params':{'unitId':_0x3b28b3,'subUnitId':_0x30cef5,'type':_0x43e147[_0x4ea1c6(0x34b)][_0x4ea1c6(0x3ab)],'op':_0x407223,'objects':_0x1e4089}}),_0x5e30ff[_0x4ea1c6(0x3e5)]({'id':_0x5927be[_0x4ea1c6(0x318)]['id'],'params':{'unitId':_0x3b28b3,'subUnitId':_0x30cef5,'shapeId':_0x4029bb,'shapeType':_0x15e03d['getShapeType'](),'shapeData':JSON[_0x4ea1c6(0x4c0)](JSON[_0x4ea1c6(0x4f7)](_0x15e03d[_0x4ea1c6(0x3b4)]()))}}),_0x511c13[_0x4ea1c6(0x3e5)]({'id':_0x5927be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3b28b3,'subUnitId':_0x30cef5,'shapeId':_0x4029bb}}),_0x511c13['push']({'id':_0x43e147[_0x4ea1c6(0x2dd)]['id'],'params':{'unitId':_0x3b28b3,'subUnitId':_0x30cef5,'type':_0x43e147[_0x4ea1c6(0x34b)][_0x4ea1c6(0x32b)],'op':_0x4295dd,'objects':_0x1e4089}});}return{'redos':_0x5e30ff,'undos':_0x511c13};}}return{'redos':[],'undos':[]};}}));}};_0x28ef11=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1f6ce6['IUniverInstanceService'])),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x231b82['SheetInterceptorService'])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x43e147[_0x47cc0f(0x365)])),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be[_0x47cc0f(0x21d)]))],_0x28ef11);let _0x3066a2=class extends _0x1f6ce6['Disposable']{constructor(_0x5ad4b2,_0x576960,_0xfec61,_0x3fb20f,_0x195a48){const _0x38e330=_0x47cc0f;super(),this['_context']=_0x5ad4b2,this[_0x38e330(0x288)]=_0x576960,this['_drawingManagerService']=_0xfec61,this[_0x38e330(0x4d2)]=_0x3fb20f,this[_0x38e330(0x3c4)]=_0x195a48,_0x562cac(this,_0x38e330(0x3f4),null),this['_initEvents'](),this['_initSelection'](),this[_0x38e330(0x37f)]();}['_initEvents'](){const _0xe77601=_0x47cc0f;let {scene:_0x302fce}=this['_context'];this[_0xe77601(0x216)](_0x302fce[_0xe77601(0x373)][_0xe77601(0x4a2)](_0x5dfb0c=>{const _0x13962a=_0xe77601;let {offsetX:_0x5a1927,offsetY:_0x3f17e2}=_0x5dfb0c,_0x5d9a97=_0x302fce[_0x13962a(0x474)](_0x58b748[_0x13962a(0x495)][_0x13962a(0x4ca)]([_0x5a1927,_0x3f17e2]));if(_0x5d9a97 instanceof _0x2f4556){if((0x0,_0x4f5ff8[_0x13962a(0x3d1)])(this[_0x13962a(0x3c4)][_0x13962a(0x2d8)](_0x5d9a97['unitId'],_0x5d9a97[_0x13962a(0x2e1)],_0x5d9a97[_0x13962a(0x4d8)])))return;this['_shapeTextEditingService'][_0x13962a(0x302)]({'visible':!0x0,'unitId':_0x5d9a97[_0x13962a(0x394)],'subUnitId':_0x5d9a97[_0x13962a(0x2e1)],'shapeId':_0x5d9a97[_0x13962a(0x4d8)],'shapeKey':_0x5d9a97[_0x13962a(0x3bc)]});}}));}[_0x47cc0f(0x29e)](){const _0x3adb6b=_0x47cc0f;this[_0x3adb6b(0x216)](this[_0x3adb6b(0x416)][_0x3adb6b(0x2c6)][_0x3adb6b(0x4b1)](_0x1e77c3=>{const _0x20c77a=_0x3adb6b;if(_0x1e77c3[_0x20c77a(0x28e)]===0x1){let _0x1fd26f=_0x1e77c3[0x0],_0x18e9fc=this['_drawingManagerService'][_0x20c77a(0x3a2)](_0x1fd26f);if((_0x18e9fc==null?void 0x0:_0x18e9fc[_0x20c77a(0x2b2)])===_0x1f6ce6[_0x20c77a(0x38b)][_0x20c77a(0x3c0)]){let _0x21e386=this[_0x20c77a(0x288)][_0x20c77a(0x256)]();if((_0x21e386==null?void 0x0:_0x21e386[_0x20c77a(0x4d8)])===_0x1fd26f[_0x20c77a(0x257)]&&_0x21e386[_0x20c77a(0x367)])return;(0x0,_0x4f5ff8[_0x20c77a(0x3d1)])(this[_0x20c77a(0x3c4)][_0x20c77a(0x2d8)](_0x1fd26f['unitId'],_0x1fd26f[_0x20c77a(0x2e1)],_0x1fd26f[_0x20c77a(0x257)]))&&this[_0x20c77a(0x288)]['setEditing'](null);}else this[_0x20c77a(0x288)][_0x20c77a(0x256)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x47ff6b=_0x20c77a;this['_shapeTextEditingService'][_0x47ff6b(0x302)](null);}));}else this['_shapeTextEditingService'][_0x20c77a(0x256)]()&&(this[_0x20c77a(0x288)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0xf710f8=_0x20c77a;this[_0xf710f8(0x288)][_0xf710f8(0x302)](null);}));})),this[_0x3adb6b(0x216)](this[_0x3adb6b(0x416)][_0x3adb6b(0x1e6)][_0x3adb6b(0x4b1)](_0x2f7136=>{const _0x1c9131=_0x3adb6b;let _0x5441f4=this['_shapeTextEditingService'][_0x1c9131(0x256)]();_0x5441f4&&_0x2f7136[_0x1c9131(0x2b6)](_0x271504=>_0x271504[_0x1c9131(0x257)]===_0x5441f4[_0x1c9131(0x4d8)])&&this[_0x1c9131(0x288)][_0x1c9131(0x302)](null);}));}[_0x47cc0f(0x37f)](){const _0x4cf1f4=_0x47cc0f;this[_0x4cf1f4(0x216)](this[_0x4cf1f4(0x288)][_0x4cf1f4(0x385)][_0x4cf1f4(0x4b1)](_0x4e59e2=>{const _0x276f5e=_0x4cf1f4;let {scene:_0x4a9860}=this[_0x276f5e(0x2c8)];if(this[_0x276f5e(0x3f4)]){let _0x1a74d0=_0x4a9860['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x1a74d0&&_0x1a74d0[_0x276f5e(0x302)](!0x1);}if(_0x4e59e2){let _0x4d251e=!!_0x4e59e2[_0x276f5e(0x367)],_0xef81b9=_0x4a9860['getObjectIncludeInGroup'](_0x4e59e2[_0x276f5e(0x349)]);_0xef81b9&&(_0xef81b9['setEditing'](_0x4d251e),this[_0x276f5e(0x3f4)]=_0x4e59e2[_0x276f5e(0x349)]),this['_contextService'][_0x276f5e(0x3f6)](_0x1f6ce6[_0x276f5e(0x3c2)],_0x4d251e);}else this['_lastEditingShapeKey']=null,this[_0x276f5e(0x4d2)][_0x276f5e(0x3f6)](_0x1f6ce6['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x3066a2=_0x51130a([_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x58197e)),_0x3607f9(0x2,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x3,_0x1f6ce6['IContextService']),_0x3607f9(0x4,(0x0,_0x1f6ce6['Inject'])(_0x5927be[_0x47cc0f(0x21d)]))],_0x3066a2);let _0x28e3b2=class extends _0x10236c['ShapeTextFloatMenuRenderControllerBase']{constructor(_0x3114fc,_0x350acc,_0x495257,_0xc3a3e5){super(_0x3114fc,_0x350acc,_0x495257,_0xc3a3e5,{'componentKey':_0x506261,'editorUnitId':_0x4bb51f});}};_0x28e3b2=_0x51130a([_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1ed768[_0x47cc0f(0x3f1)])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x44ec79[_0x47cc0f(0x455)])),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x44ec79[_0x47cc0f(0x2e8)]))],_0x28e3b2);let _0x22592a=class extends _0x1f6ce6['Disposable']{constructor(_0x5b3f17,_0x1735c7,_0x27c79b,_0x9ebba9,_0x258d26,_0x6a04ab){const _0x52562a=_0x47cc0f;super(),this['_commandService']=_0x5b3f17,this[_0x52562a(0x4bb)]=_0x1735c7,this[_0x52562a(0x416)]=_0x27c79b,this[_0x52562a(0x1ef)]=_0x9ebba9,this[_0x52562a(0x378)]=_0x258d26,this['_sheetDrawingShapeRenderController']=_0x6a04ab,_0x562cac(this,_0x52562a(0x47f),new Set()),this[_0x52562a(0x27a)]();}['_initialize'](){const _0x34f884=_0x47cc0f;this[_0x34f884(0x498)](),this[_0x34f884(0x32c)](),this[_0x34f884(0x400)]();}['_drawingAddListener'](){const _0x14fc3e=_0x47cc0f;this[_0x14fc3e(0x216)](this[_0x14fc3e(0x416)]['add$']['subscribe'](_0x834d84=>{this['_insertShapes'](_0x834d84);}));}[_0x47cc0f(0x32c)](){const _0x4a164c=_0x47cc0f;this['disposeWithMe'](this[_0x4a164c(0x3e1)]['onCommandExecuted'](_0xaded8f=>{const _0x2607dd=_0x4a164c;if(_0xaded8f['id']===_0x5927be[_0x2607dd(0x431)]['id']){let {unitId:_0x4f21f0,subUnitId:_0x369beb,shapeId:_0x441a86}=_0xaded8f[_0x2607dd(0x305)],_0xdfdfc8=this[_0x2607dd(0x1e1)](_0x4f21f0),_0x5dc542=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x4f21f0,'subUnitId':_0x369beb,'drawingId':_0x441a86}),_0x780f47=_0xdfdfc8==null?void 0x0:_0xdfdfc8[_0x2607dd(0x469)][_0x2607dd(0x4d7)](_0x5dc542);_0x780f47&&(this[_0x2607dd(0x4dd)][_0x2607dd(0x403)](_0x780f47),_0x780f47[_0x2607dd(0x49b)](!0x0));return;}if(_0xaded8f['id']===_0x5927be['InsertSheetsShapeMutation']['id']){var _0x8de3d;let {unitId:_0x1d23f2,subUnitId:_0x5d92c2,shapeId:_0x44001d}=_0xaded8f[_0x2607dd(0x305)],_0x4b4ea7=this[_0x2607dd(0x1e1)](_0x1d23f2);if(_0x4b4ea7==null)return;let {scene:_0x5afe9b}=_0x4b4ea7,_0x3c1fdc=(0x0,_0x2ee308[_0x2607dd(0x4d4)])({'unitId':_0x1d23f2,'subUnitId':_0x5d92c2,'drawingId':_0x44001d}),_0x4b8767=_0x5afe9b[_0x2607dd(0x4d7)](_0x3c1fdc);if(!((_0x8de3d=this[_0x2607dd(0x4bb)][_0x2607dd(0x350)](_0x1d23f2))!=null&&_0x8de3d['with'](_0x522354['SheetSkeletonManagerService'])[_0x2607dd(0x229)](_0x5d92c2)))return!0x1;if(_0x4b8767)return;this['_insertShapes']([{'unitId':_0x1d23f2,'subUnitId':_0x5d92c2,'drawingId':_0x44001d}]);}}));}[_0x47cc0f(0x400)](){const _0x1f7c51=_0x47cc0f;this['disposeWithMe'](this['_drawingManagerService']['update$'][_0x1f7c51(0x4b1)](_0x4cf474=>{const _0x191b53=_0x1f7c51;_0x4cf474[_0x191b53(0x3ec)](_0x3b31ea=>{const _0x4e1dae=_0x191b53;let {unitId:_0x597d66,subUnitId:_0x5c1b0e,drawingId:_0x592215}=_0x3b31ea,_0x1bd696=this[_0x4e1dae(0x416)][_0x4e1dae(0x3a2)](_0x3b31ea);if(_0x1bd696==null)return;let {transform:_0x33d0ed,drawingType:_0x5af97b,srcRect:_0x5990bc,prstGeom:_0x3824f8}=_0x1bd696;if(_0x5af97b!==_0x1f6ce6[_0x4e1dae(0x38b)][_0x4e1dae(0x3c0)])return;let _0x226316=this[_0x4e1dae(0x1e1)](_0x597d66);if(_0x226316==null)return;let {scene:_0x153fe5,transformer:_0x1d4364}=_0x226316;if(_0x33d0ed==null)return!0x0;let _0x267828=(0x0,_0x2ee308[_0x4e1dae(0x4d4)])({'unitId':_0x597d66,'subUnitId':_0x5c1b0e,'drawingId':_0x592215}),_0x21fe1a=_0x153fe5[_0x4e1dae(0x4d7)](_0x267828);if(_0x21fe1a==null)return!0x0;_0x21fe1a['setSrcRect'](_0x5990bc),_0x21fe1a['setPrstGeom'](_0x3824f8);});}));}[_0x47cc0f(0x306)](_0x43b0a7){const _0x42c522=_0x47cc0f;for(let _0x20b1eb of _0x43b0a7){var _0x4c1b24;let {unitId:_0x8347bd,subUnitId:_0x67fab9,drawingId:_0x5c6979}=_0x20b1eb,_0xe960f=this['_getSceneAndTransformerByDrawingSearch'](_0x8347bd),_0x200ceb=(_0x4c1b24=(0x0,_0x25185e[_0x42c522(0x269)])(this['_currentUniverService'],_0x8347bd))==null?void 0x0:_0x4c1b24[_0x42c522(0x2e1)];if(_0xe960f==null||_0x200ceb!==_0x67fab9)return;let _0x24c196=(0x0,_0x2ee308[_0x42c522(0x4d4)])({'unitId':_0x8347bd,'subUnitId':_0x67fab9,'drawingId':_0x5c6979});if(this[_0x42c522(0x47f)][_0x42c522(0x2ff)](_0x24c196)||_0xe960f[_0x42c522(0x469)][_0x42c522(0x4d7)](_0x24c196)!=null)return;let _0x53fa37=this[_0x42c522(0x416)][_0x42c522(0x3a2)](_0x20b1eb);if(_0x53fa37==null||_0x53fa37[_0x42c522(0x2b2)]!==_0x1f6ce6[_0x42c522(0x38b)][_0x42c522(0x3c0)])return;if((0x0,_0x4f5ff8[_0x42c522(0x3d1)])((_0x53fa37[_0x42c522(0x2aa)]||{})[_0x42c522(0x40e)])){let _0x4b265d=_0x53fa37[_0x42c522(0x23f)];_0x4b265d&&(_0x53fa37[_0x42c522(0x23f)]={..._0x4b265d,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x42c522(0x47f)]['add'](_0x24c196);try{this[_0x42c522(0x4dd)]['renderDrawingShape'](_0x53fa37,_0xe960f[_0x42c522(0x469)]);}finally{this['_insertingShapeKeys'][_0x42c522(0x36e)](_0x24c196);}queueMicrotask(()=>{const _0x241b42=_0x42c522;if(this[_0x241b42(0x236)])return;let _0x4cce46=(0x0,_0x2ee308[_0x241b42(0x4d4)])(_0x20b1eb);if(!_0xe960f[_0x241b42(0x469)][_0x241b42(0x4d7)](_0x4cce46))return;let _0x94f0e1=this['_drawingManagerService'][_0x241b42(0x3a2)](_0x20b1eb);_0x94f0e1&&this[_0x241b42(0x416)][_0x241b42(0x356)]([_0x94f0e1]);});}}[_0x47cc0f(0x1e1)](_0x57c6f3){const _0x238a01=_0x47cc0f;if(_0x57c6f3==null)return;let _0x30dd04=this[_0x238a01(0x4bb)]['getRenderById'](_0x57c6f3),_0x36ffd1=_0x30dd04==null?void 0x0:_0x30dd04[_0x238a01(0x469)];return _0x36ffd1==null?null:{'scene':_0x36ffd1,'transformer':_0x36ffd1['getTransformerByCreate']()};}};_0x22592a=_0x51130a([_0x3607f9(0x0,_0x1f6ce6[_0x47cc0f(0x2bd)]),_0x3607f9(0x1,_0x58b748['IRenderManagerService']),_0x3607f9(0x2,_0x2ee308['IDrawingManagerService']),_0x3607f9(0x3,_0x1f6ce6[_0x47cc0f(0x32e)]),_0x3607f9(0x4,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x25185e[_0x47cc0f(0x2a9)])),_0x3607f9(0x5,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x32bb5d))],_0x22592a);let _0x490a61={'normal':{'fill':_0x4f5ff8[_0x47cc0f(0x4db)][_0x47cc0f(0x27e)],'stroke':_0x4f5ff8[_0x47cc0f(0x4db)]['cxnPointStroke'],'strokeWidth':_0x4f5ff8[_0x47cc0f(0x4db)][_0x47cc0f(0x4e9)]},'highlighted':{'fill':'#4285f4','stroke':_0x47cc0f(0x31f),'strokeWidth':0x2}};var _0x29ee69=class extends _0x58b748['Shape']{constructor(_0x4c9606,_0x14fc77){const _0x2fb01d=_0x47cc0f;super(_0x4c9606,_0x14fc77),_0x562cac(this,_0x2fb01d(0x294),''),_0x562cac(this,'_cxnIndex',-0x1),_0x562cac(this,_0x2fb01d(0x242),''),_0x562cac(this,_0x2fb01d(0x2ab),''),_0x562cac(this,_0x2fb01d(0x4a8),!0x1),_0x14fc77&&this['setShapeProps'](_0x14fc77);}['getConnectionInfo'](){const _0x1e4bb3=_0x47cc0f;return{'unitId':this[_0x1e4bb3(0x242)],'subUnitId':this[_0x1e4bb3(0x2ab)],'shapeId':this[_0x1e4bb3(0x294)],'cxnIndex':this[_0x1e4bb3(0x497)]};}[_0x47cc0f(0x303)](_0x282706){const _0x24ecd3=_0x47cc0f;this[_0x24ecd3(0x4a8)]!==_0x282706&&(this[_0x24ecd3(0x4a8)]=_0x282706,this[_0x24ecd3(0x49b)](!0x0));}[_0x47cc0f(0x409)](){const _0x3fa7b0=_0x47cc0f;return this[_0x3fa7b0(0x4a8)];}[_0x47cc0f(0x4a1)](_0x47427f){const _0x38684e=_0x47cc0f;var _0x5f43c2,_0xef59b2;_0x47427f[_0x38684e(0x2fc)]!==void 0x0&&(this[_0x38684e(0x294)]=_0x47427f[_0x38684e(0x2fc)]),_0x47427f['cxnIndex']!==void 0x0&&(this['_cxnIndex']=_0x47427f[_0x38684e(0x375)]),_0x47427f[_0x38684e(0x394)]!==void 0x0&&(this[_0x38684e(0x242)]=_0x47427f[_0x38684e(0x394)]),_0x47427f[_0x38684e(0x2e1)]!==void 0x0&&(this[_0x38684e(0x2ab)]=_0x47427f[_0x38684e(0x2e1)]),_0x47427f[_0x38684e(0x409)]!==void 0x0&&(this[_0x38684e(0x4a8)]=_0x47427f[_0x38684e(0x409)]),this['transformByState']({'width':(_0x5f43c2=_0x47427f['width'])==null?_0x4f5ff8[_0x38684e(0x4db)][_0x38684e(0x366)]*0x2:_0x5f43c2,'height':(_0xef59b2=_0x47427f[_0x38684e(0x1e8)])==null?_0x4f5ff8['ShapeDefaultConfig']['cxnPointRadius']*0x2:_0xef59b2});}[_0x47cc0f(0x464)](_0xa732c4){const _0x586509=_0x47cc0f;let _0x202a37=this[_0x586509(0x4a8)]?_0x490a61[_0x586509(0x4d6)]:_0x490a61['normal'];_0x58b748[_0x586509(0x4cb)][_0x586509(0x237)](_0xa732c4,{'radius':_0x4f5ff8['ShapeDefaultConfig'][_0x586509(0x366)],'fill':_0x202a37[_0x586509(0x266)],'stroke':_0x202a37[_0x586509(0x3da)],'strokeWidth':_0x202a37[_0x586509(0x208)],'evented':!0x0});}};let _0x53675d=class extends _0x1f6ce6['Disposable']{constructor(_0x4dfc3f,_0x356fdd,_0x1443f8,_0x23f69c){const _0x2a7aac=_0x47cc0f;super(),this[_0x2a7aac(0x2c8)]=_0x4dfc3f,this[_0x2a7aac(0x4bb)]=_0x356fdd,this[_0x2a7aac(0x416)]=_0x1443f8,this['_sheetsShapeService']=_0x23f69c,_0x562cac(this,'_connectionSiteObjects',[]),_0x562cac(this,_0x2a7aac(0x329),null),_0x562cac(this,_0x2a7aac(0x476),-0x1),_0x562cac(this,'_currentScene',null),_0x562cac(this,'_unitId',''),_0x562cac(this,'_subUnitId',''),_0x562cac(this,_0x2a7aac(0x2f9),null);}[_0x47cc0f(0x271)](_0x19e5bb,_0xdb1e68,_0x45ac58,_0x573204){const _0x41bc64=_0x47cc0f;this[_0x41bc64(0x2b8)]=_0x19e5bb,this['_unitId']=_0xdb1e68,this[_0x41bc64(0x2ab)]=_0x45ac58,this[_0x41bc64(0x2f9)]=_0x573204;}[_0x47cc0f(0x339)](_0x3994db){const _0x1253b9=_0x47cc0f;if(!this[_0x1253b9(0x2b8)])return null;let _0x21b15c=this[_0x1253b9(0x4f8)](_0x3994db);return _0x21b15c?(this[_0x1253b9(0x329)]!==_0x21b15c['shapeId']&&(this[_0x1253b9(0x3ce)](),this[_0x1253b9(0x47d)](_0x21b15c[_0x1253b9(0x4d8)],_0x21b15c[_0x1253b9(0x28c)]),this[_0x1253b9(0x329)]=_0x21b15c[_0x1253b9(0x4d8)]),this[_0x1253b9(0x262)](_0x3994db)):(this[_0x1253b9(0x329)]!==null&&(this[_0x1253b9(0x3ce)](),this[_0x1253b9(0x329)]=null),null);}['endConnectionDetection'](){const _0x558a3c=_0x47cc0f;this[_0x558a3c(0x3ce)](),this[_0x558a3c(0x2b8)]=null,this['_activeTargetShapeId']=null,this[_0x558a3c(0x476)]=-0x1,this[_0x558a3c(0x2f9)]=null;}[_0x47cc0f(0x281)](){const _0x572d9f=_0x47cc0f;return this[_0x572d9f(0x329)]===null||this[_0x572d9f(0x476)]<0x0?null:{'shapeId':this[_0x572d9f(0x329)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x47cc0f(0x4f8)](_0x24aa9e){const _0x42126a=_0x47cc0f;let _0xfd27fa=this[_0x42126a(0x416)]['getDrawingData'](this[_0x42126a(0x242)],this[_0x42126a(0x2ab)]);for(let _0x2c4fdb of Object['keys'](_0xfd27fa)){if(_0x2c4fdb===this[_0x42126a(0x2f9)]||_0xfd27fa[_0x2c4fdb][_0x42126a(0x2b2)]!==_0x1f6ce6['DrawingTypeEnum'][_0x42126a(0x3c0)])continue;let _0xdb703=this[_0x42126a(0x3c4)][_0x42126a(0x381)](this[_0x42126a(0x242)],this['_subUnitId'],_0x2c4fdb);if(!_0xdb703||(0x0,_0x4f5ff8['isConnectorShape'])(_0xdb703[_0x42126a(0x2d8)]())||_0xdb703[_0x42126a(0x3b8)]()[_0x42126a(0x28e)]===0x0||!this[_0x42126a(0x2b8)])continue;let _0xccb027=(0x0,_0x2ee308[_0x42126a(0x4d4)])({'unitId':this[_0x42126a(0x242)],'subUnitId':this[_0x42126a(0x2ab)],'drawingId':_0x2c4fdb}),_0x39e3db=this[_0x42126a(0x2b8)][_0x42126a(0x4d7)](_0xccb027);if(!_0x39e3db)continue;let {left:_0x147dba,top:_0x319501,width:_0x2691c2,height:_0xaad52}=_0x39e3db['getRealBound'](),_0x41e7cb=_0x147dba+_0x2691c2/0x2,_0x28ad02=_0x319501+_0xaad52/0x2,_0x50059d=_0x39e3db['transform'][_0x42126a(0x34d)](),_0x3c56f9=new _0x58b748[(_0x42126a(0x2ba))]([_0x50059d[0x0],_0x50059d[0x1],_0x50059d[0x2],_0x50059d[0x3],_0x41e7cb,_0x28ad02]),_0x15d6a8=_0x39e3db[_0x42126a(0x2bf)](),_0x236193=(_0x39e3db[_0x42126a(0x20d)]&&(_0x15d6a8==null?void 0x0:_0x15d6a8[_0x42126a(0x2a8)])===_0x58b748[_0x42126a(0x3a7)]['GROUP']?_0x15d6a8[_0x42126a(0x354)][_0x42126a(0x4ad)](_0x3c56f9):_0x3c56f9)[_0x42126a(0x1f0)]()['applyPoint'](_0x24aa9e),_0x4414e3=_0x2691c2/0x2,_0x52459a=_0xaad52/0x2;if(_0x236193['x']>=-_0x4414e3-0x5&&_0x236193['x']<=_0x4414e3+0x5&&_0x236193['y']>=-_0x52459a-0x5&&_0x236193['y']<=_0x52459a+0x5)return{'shapeId':_0x2c4fdb,'shapeModel':_0xdb703};}return null;}[_0x47cc0f(0x47d)](_0x2cfb87,_0x3d68fb){const _0x4ae778=_0x47cc0f;if(!this[_0x4ae778(0x2b8)])return;let _0x578443=(0x0,_0x2ee308[_0x4ae778(0x4d4)])({'unitId':this[_0x4ae778(0x242)],'subUnitId':this[_0x4ae778(0x2ab)],'drawingId':_0x2cfb87}),_0x3105ba=this['_currentScene'][_0x4ae778(0x4d7)](_0x578443);if(!_0x3105ba)return;let {left:_0x36439e,top:_0x4ce365,width:_0x16938e,height:_0x176e9c}=_0x3105ba[_0x4ae778(0x3f7)](),_0x57ff1d=_0x36439e+_0x16938e/0x2,_0x15f18b=_0x4ce365+_0x176e9c/0x2,_0x5e9a06=_0x3105ba[_0x4ae778(0x23f)][_0x4ae778(0x34d)](),_0x5d5180=new _0x58b748['Transform']([_0x5e9a06[0x0],_0x5e9a06[0x1],_0x5e9a06[0x2],_0x5e9a06[0x3],_0x57ff1d,_0x15f18b]),_0x23e213=_0x3105ba[_0x4ae778(0x2bf)](),_0x47a7d4=_0x3105ba[_0x4ae778(0x20d)]&&(_0x23e213==null?void 0x0:_0x23e213[_0x4ae778(0x2a8)])===_0x58b748[_0x4ae778(0x3a7)][_0x4ae778(0x43b)]?_0x23e213[_0x4ae778(0x354)][_0x4ae778(0x4ad)](_0x5d5180):_0x5d5180;_0x3d68fb[_0x4ae778(0x210)]({'width':_0x16938e,'height':_0x176e9c});let _0x6a9e9c=_0x3d68fb[_0x4ae778(0x3b8)]();for(let _0x7e2dfd of _0x6a9e9c){let _0x1a8e0b=_0x7e2dfd['x']-_0x16938e/0x2,_0x163840=_0x7e2dfd['y']-_0x176e9c/0x2,_0x1976b5=_0x47a7d4[_0x4ae778(0x4a4)]({'x':_0x1a8e0b,'y':_0x163840}),_0x55bf39=_0x1976b5['x'],_0x9d4706=_0x1976b5['y'],_0x5f076f=new _0x29ee69('connection-site-'+_0x2cfb87+'-'+_0x7e2dfd[_0x4ae778(0x44c)],{'left':_0x55bf39-_0x4f5ff8[_0x4ae778(0x4db)][_0x4ae778(0x366)],'top':_0x9d4706-_0x4f5ff8[_0x4ae778(0x4db)][_0x4ae778(0x366)],'targetShapeId':_0x2cfb87,'cxnIndex':_0x7e2dfd[_0x4ae778(0x44c)],'unitId':this[_0x4ae778(0x242)],'subUnitId':this[_0x4ae778(0x2ab)],'width':_0x4f5ff8[_0x4ae778(0x4db)][_0x4ae778(0x366)]*0x2,'height':_0x4f5ff8[_0x4ae778(0x4db)][_0x4ae778(0x366)]*0x2,'zIndex':_0x58b748['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x4ae778(0x411)][_0x4ae778(0x3e5)](_0x5f076f),this[_0x4ae778(0x2b8)][_0x4ae778(0x408)](_0x5f076f,_0x58b748[_0x4ae778(0x43c)]+0x2);}}[_0x47cc0f(0x262)](_0x375688){const _0x5fa531=_0x47cc0f;let _0x255993=null,_0x3239a1=0x1/0x0,_0x367b0f=null;for(let _0x75b6a3 of this['_connectionSiteObjects']){let _0x6043d0=_0x75b6a3[_0x5fa531(0x3c3)]+_0x4f5ff8[_0x5fa531(0x4db)][_0x5fa531(0x366)],_0x30f589=_0x75b6a3[_0x5fa531(0x3ad)]+_0x4f5ff8[_0x5fa531(0x4db)][_0x5fa531(0x366)],_0x40aed0=_0x375688['x']-_0x6043d0,_0x410c4b=_0x375688['y']-_0x30f589,_0x115159=Math[_0x5fa531(0x352)](_0x40aed0*_0x40aed0+_0x410c4b*_0x410c4b);_0x115159<_0x3239a1&&(_0x3239a1=_0x115159,_0x255993=_0x75b6a3,_0x367b0f={'x':_0x6043d0,'y':_0x30f589});}let _0x1a86fc=_0x3239a1<=0xa&&_0x255993?_0x255993['getConnectionInfo']()[_0x5fa531(0x375)]:-0x1;if(_0x1a86fc!==this[_0x5fa531(0x476)]){for(let _0x1d813d of this[_0x5fa531(0x411)]){let _0x19b1a3=_0x1d813d['getConnectionInfo']();_0x1d813d[_0x5fa531(0x303)](_0x19b1a3[_0x5fa531(0x375)]===_0x1a86fc);}this[_0x5fa531(0x476)]=_0x1a86fc;}if(_0x3239a1<=0xa&&_0x255993&&_0x367b0f){let _0x3e15db=_0x255993[_0x5fa531(0x4d1)](),_0x4dbc63=this[_0x5fa531(0x30f)](_0x3e15db['shapeId'],_0x3e15db[_0x5fa531(0x375)]);return{'shapeId':_0x3e15db['shapeId'],'cxnIndex':_0x3e15db[_0x5fa531(0x375)],'unitId':_0x3e15db['unitId'],'subUnitId':_0x3e15db[_0x5fa531(0x2e1)],'worldPoint':_0x367b0f,'angle':_0x4dbc63};}return null;}[_0x47cc0f(0x30f)](_0x3fd638,_0x195ac4){const _0x2a5441=_0x47cc0f;let _0x3c6f5f=this[_0x2a5441(0x3c4)][_0x2a5441(0x381)](this['_unitId'],this['_subUnitId'],_0x3fd638);if(!_0x3c6f5f)return 0x0;let _0x136764=this[_0x2a5441(0x416)][_0x2a5441(0x3a2)]({'unitId':this[_0x2a5441(0x242)],'subUnitId':this['_subUnitId'],'drawingId':_0x3fd638});if(!(_0x136764!=null&&_0x136764['transform']))return 0x0;let {width:_0x5f4208=0x0,height:_0x4ccf6a=0x0,flipX:_0x4d9722=!0x1,flipY:_0x4da8a6=!0x1}=_0x136764['transform'];_0x3c6f5f[_0x2a5441(0x210)]({'width':_0x5f4208,'height':_0x4ccf6a});let _0x36349d=_0x3c6f5f[_0x2a5441(0x3b8)]()['find'](_0x22db0b=>_0x22db0b[_0x2a5441(0x44c)]===_0x195ac4);if(!_0x36349d)return 0x0;let _0x450f37=_0x36349d[_0x2a5441(0x4f6)]/0xea60;return _0x4d9722&&(_0x450f37=0xb4-_0x450f37),_0x4da8a6&&(_0x450f37=-_0x450f37),_0x450f37=(_0x450f37%0x168+0x168)%0x168,_0x450f37;}[_0x47cc0f(0x3ce)](){const _0x55db45=_0x47cc0f;for(let _0x1b96f3 of this[_0x55db45(0x411)])_0x1b96f3['dispose']();this['_connectionSiteObjects']=[],this[_0x55db45(0x476)]=-0x1;}[_0x47cc0f(0x435)](){const _0x429100=_0x47cc0f;this[_0x429100(0x3ce)](),super[_0x429100(0x435)]();}};_0x53675d=_0x51130a([_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x58b748[_0x47cc0f(0x34e)])),_0x3607f9(0x2,(0x0,_0x1f6ce6['Inject'])(_0x2ee308[_0x47cc0f(0x4c1)])),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be['SheetsShapeService']))],_0x53675d);let _0x14dca1=class extends _0x1f6ce6['Disposable']{constructor(_0x3c77d2,_0x403121,_0x1a2669,_0x42a6dc,_0x42fa06){const _0x1dfd84=_0x47cc0f;super(),this[_0x1dfd84(0x30c)]=_0x3c77d2,this[_0x1dfd84(0x2d9)]=_0x403121,this[_0x1dfd84(0x3bf)]=_0x1a2669,this[_0x1dfd84(0x4c7)]=_0x42a6dc,this['_groupCopyPasteController']=_0x42fa06,_0x562cac(this,_0x1dfd84(0x4de),void 0x0),this[_0x1dfd84(0x380)](),this['_registerGroupFeaturePasteHook']();}get[_0x47cc0f(0x241)](){const _0x1a4ab0=_0x47cc0f;return this[_0x1a4ab0(0x3bf)][_0x1a4ab0(0x436)]();}[_0x47cc0f(0x460)](){const _0x4c5494=_0x47cc0f;this[_0x4c5494(0x3eb)][_0x4c5494(0x4ce)](({fromUnitId:_0xeb0b0b,fromSubUnitId:_0x1cb168,toUnitId:_0x15d759,toSubUnitId:_0x57bfb2,idMap:_0x55b2d4})=>{const _0x26067a=_0x4c5494;let _0x3f51d7=[],_0x3fa15b=[];for(let [_0x5f48fe,_0x28e16e]of _0x55b2d4[_0x26067a(0x410)]()){let _0x5a1419=this[_0x26067a(0x4c7)][_0x26067a(0x381)](_0xeb0b0b,_0x1cb168,_0x5f48fe);if(!_0x5a1419)continue;let _0xa7872e=_0x5a1419[_0x26067a(0x2d8)](),_0x214ddf=JSON[_0x26067a(0x4c0)](JSON[_0x26067a(0x4f7)](_0x5a1419[_0x26067a(0x3b4)]()));if(_0x214ddf[_0x26067a(0x1d3)]){var _0x4afb34,_0x1a2a59;let _0x53655a=(_0x4afb34=_0x214ddf['relation']['from'])==null?void 0x0:_0x4afb34[_0x26067a(0x4d8)],_0x3d7301=(_0x1a2a59=_0x214ddf[_0x26067a(0x1d3)]['to'])==null?void 0x0:_0x1a2a59[_0x26067a(0x4d8)],_0x16554f=_0x53655a?_0x55b2d4[_0x26067a(0x2ff)](_0x53655a):!0x0,_0x7ceb41=_0x3d7301?_0x55b2d4[_0x26067a(0x2ff)](_0x3d7301):!0x0;_0x16554f&&_0x53655a&&_0x214ddf[_0x26067a(0x1d3)]['from']?_0x214ddf[_0x26067a(0x1d3)][_0x26067a(0x292)]={..._0x214ddf[_0x26067a(0x1d3)]['from'],'shapeId':_0x55b2d4[_0x26067a(0x1e3)](_0x53655a)}:_0x214ddf[_0x26067a(0x1d3)][_0x26067a(0x292)]=void 0x0,_0x7ceb41&&_0x3d7301&&_0x214ddf[_0x26067a(0x1d3)]['to']?_0x214ddf[_0x26067a(0x1d3)]['to']={..._0x214ddf['relation']['to'],'shapeId':_0x55b2d4[_0x26067a(0x1e3)](_0x3d7301)}:_0x214ddf[_0x26067a(0x1d3)]['to']=void 0x0;}_0x3f51d7[_0x26067a(0x3e5)]({'id':_0x5927be[_0x26067a(0x318)]['id'],'params':{'unitId':_0x15d759,'subUnitId':_0x57bfb2,'shapeId':_0x28e16e,'shapeType':_0xa7872e,'shapeData':_0x214ddf}}),_0x3fa15b[_0x26067a(0x3e5)]({'id':_0x5927be[_0x26067a(0x39e)]['id'],'params':{'unitId':_0x15d759,'subUnitId':_0x57bfb2,'shapeId':_0x28e16e}});}return{'redos':_0x3f51d7,'undos':_0x3fa15b};});}[_0x47cc0f(0x380)](){const _0x257f0a=_0x47cc0f;this['disposeWithMe'](this[_0x257f0a(0x2d9)]['addClipboardHook']({'id':_0x257f0a(0x3c1),'onBeforeCopy':(_0x462c1d,_0xe4c61c,_0x1dd317,_0x4e21fe)=>{const _0x477a60=_0x257f0a;this[_0x477a60(0x4de)]=null;let _0x3f0180=this[_0x477a60(0x241)];if(_0x3f0180[_0x477a60(0x28e)]){let _0x3587f5=_0x3f0180[_0x477a60(0x272)](_0x44e892=>_0x44e892[_0x477a60(0x2b2)]===_0x1f6ce6[_0x477a60(0x38b)][_0x477a60(0x3c0)]);if(_0x3587f5[_0x477a60(0x28e)]===0x0)return;this['_copyInfo']={'unitId':_0x462c1d,'subUnitId':_0xe4c61c,'copyType':_0x4e21fe,'drawings':_0x3587f5};}else this['_createCopyInfoByRange'](_0x462c1d,_0xe4c61c,_0x1dd317,_0x4e21fe);},'onPasteCells':(_0x1a2701,_0x25ed8e,_0x1f16ee,_0x4e381)=>{const _0x2d0d53=_0x257f0a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x5670c1}=_0x4e381;return _0x5670c1===_0x522354[_0x2d0d53(0x2bb)][_0x2d0d53(0x283)]?this[_0x2d0d53(0x238)](_0x25ed8e,this[_0x2d0d53(0x4de)]['copyType']===_0x522354['COPY_TYPE'][_0x2d0d53(0x309)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x2d90c9=>this['_copyInfo']?this['_generatePasteMutations'](_0x2d90c9,this[_0x257f0a(0x4de)][_0x257f0a(0x483)]===_0x522354[_0x257f0a(0x44f)][_0x257f0a(0x309)]):{'redos':[],'undos':[]}}));}[_0x47cc0f(0x20b)](_0x1130e2,_0x4f1ce0,_0x58cb61,_0x3b7783){const _0x2c8da1=_0x47cc0f;let _0xc54ad7=this[_0x2c8da1(0x30c)]['getSkeleton'](_0x1130e2,_0x4f1ce0);if(!_0xc54ad7)return;let _0x18f349=(0x0,_0x231b82[_0x2c8da1(0x1fc)])(_0xc54ad7,_0x58cb61);if(!_0x18f349)return;let {startX:_0x4710ea,endX:_0x412930,startY:_0x1f5d1a,endY:_0x318790}=_0x18f349,_0x21e6d4=this[_0x2c8da1(0x3bf)][_0x2c8da1(0x29b)](_0x1130e2,_0x4f1ce0),_0x573eb1=this[_0x2c8da1(0x241)][_0x2c8da1(0x3a8)]();for(let [_0x41e9b9,_0x31f506]of Object[_0x2c8da1(0x410)](_0x21e6d4)){if(_0x31f506[_0x2c8da1(0x2b2)]!==_0x1f6ce6[_0x2c8da1(0x38b)][_0x2c8da1(0x3c0)])continue;let {transform:_0x42edb4}=_0x31f506;if(!_0x42edb4)continue;let {left:_0x3a5f47=0x0,top:_0x3ceef5=0x0,width:_0x4b5ebd=0x0,height:_0x3e9403=0x0}=_0x42edb4;_0x4710ea<=_0x3a5f47&&_0x412930>=_0x3a5f47+_0x4b5ebd&&_0x1f5d1a<=_0x3ceef5&&_0x318790>=_0x3ceef5+_0x3e9403&&_0x573eb1['push'](_0x31f506);}_0x573eb1[_0x2c8da1(0x28e)]>0x0&&(this[_0x2c8da1(0x4de)]={'unitId':_0x1130e2,'subUnitId':_0x4f1ce0,'copyType':_0x3b7783,'copyRange':_0x58cb61,'drawings':_0x573eb1});}[_0x47cc0f(0x238)](_0x524c02,_0x29b567){const _0x4ad6e7=_0x47cc0f;let {unitId:_0x1aa21c,subUnitId:_0x1e9b15,range:_0x245eb4}=_0x524c02,_0x368eb=this[_0x4ad6e7(0x30c)]['getSkeleton'](_0x1aa21c,_0x1e9b15);if(!_0x368eb)return{'redos':[],'undos':[]};let _0x308129=(0x0,_0x231b82[_0x4ad6e7(0x4a0)])(_0x245eb4),{unitId:_0x2c74a4,subUnitId:_0x3a6d12,copyRange:_0xf1186e,drawings:_0x1f0419}=this[_0x4ad6e7(0x4de)],_0x4caac1=this[_0x4ad6e7(0x30c)]['getSkeleton'](_0x2c74a4,_0x3a6d12);if(!_0x4caac1)return{'redos':[],'undos':[]};let _0x3856d3;if(!_0xf1186e){let _0x579746=0x1/0x0,_0xdc7eae=0x1/0x0;for(let _0x2a59ef of _0x1f0419){var _0x31a505;let {left:_0xe5be2=0x0,top:_0x3ff8c3=0x0}=(_0x31a505=_0x2a59ef[_0x4ad6e7(0x23f)])==null?{}:_0x31a505;_0xe5be2<_0x579746&&(_0x579746=_0xe5be2),_0x3ff8c3<_0xdc7eae&&(_0xdc7eae=_0x3ff8c3);}_0x579746!==0x1/0x0&&_0xdc7eae!==0x1/0x0&&(_0x3856d3={'left':_0x579746,'top':_0xdc7eae});}let _0x21a84f=new Map();if(!_0x29b567){for(let _0x187265 of _0x1f0419)_0x21a84f[_0x4ad6e7(0x293)](_0x187265[_0x4ad6e7(0x257)],(0x0,_0x1f6ce6[_0x4ad6e7(0x472)])());}let _0x3a626b=[],_0x29e259=[];for(let _0x4a3428 of _0x1f0419){let {drawingId:_0x5de8ac,transform:_0x51052b,sheetTransform:_0x14a6df}=_0x4a3428;if(!_0x51052b||!_0x14a6df)continue;let _0x272cab=this['_updateTransform']({'transform':_0x51052b,'sheetTransform':_0x14a6df},{'skeleton':_0x4caac1,'range':_0xf1186e},{'skeleton':_0x368eb,'range':_0x308129},_0x3856d3);if(_0x29b567){let {redos:_0x42226d,undos:_0x56a0fa}=this['_generateCutPasteMutations']({'fromUnitId':_0x2c74a4,'fromSubUnitId':_0x3a6d12,'toUnitId':_0x1aa21c,'toSubUnitId':_0x1e9b15,'drawing':_0x4a3428,'newTransforms':_0x272cab});_0x3a626b[_0x4ad6e7(0x3e5)](..._0x42226d),_0x29e259['push'](..._0x56a0fa);continue;}let {redos:_0x12b78f,undos:_0x5cd0ac}=this['_generateCopyPasteMutations']({'toUnitId':_0x1aa21c,'toSubUnitId':_0x1e9b15,'drawing':_0x4a3428,'newTransforms':_0x272cab,'newDrawingId':_0x21a84f[_0x4ad6e7(0x1e3)](_0x5de8ac),'idMap':_0x21a84f});_0x3a626b[_0x4ad6e7(0x3e5)](..._0x12b78f),_0x29e259[_0x4ad6e7(0x3e5)](..._0x5cd0ac);}return{'redos':_0x3a626b,'undos':_0x29e259};}[_0x47cc0f(0x3b3)](_0x3d4a63){const _0x151bd4=_0x47cc0f;let {fromUnitId:_0x347569,fromSubUnitId:_0x5e2055,toUnitId:_0x21a9cd,toSubUnitId:_0x92b246,drawing:_0x47425b,newTransforms:_0x5f45f8}=_0x3d4a63,_0x39611a={..._0x47425b,'unitId':_0x21a9cd,'subUnitId':_0x92b246,'transform':_0x5f45f8[_0x151bd4(0x23f)],'sheetTransform':_0x5f45f8['sheetTransform']};if(_0x21a9cd===_0x347569&&_0x92b246===_0x5e2055){let {redo:_0x4014d4,undo:_0x478206,objects:_0x2af580}=this[_0x151bd4(0x3bf)][_0x151bd4(0x41c)]([_0x39611a]);return{'redos':[{'id':_0x43e147[_0x151bd4(0x2dd)]['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'type':_0x43e147['DrawingApplyType']['UPDATE'],'op':_0x4014d4,'objects':_0x2af580}}],'undos':[{'id':_0x43e147['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'type':_0x43e147[_0x151bd4(0x34b)][_0x151bd4(0x39f)],'op':_0x478206,'objects':_0x2af580}}]};}else{let _0x5bfbe5=this['_sheetDrawingService'][_0x151bd4(0x3e4)]([_0x47425b]),_0x137534=this[_0x151bd4(0x3bf)][_0x151bd4(0x26d)]([_0x39611a]),_0x27ef69=this[_0x151bd4(0x4c7)][_0x151bd4(0x381)](_0x47425b[_0x151bd4(0x394)],_0x47425b[_0x151bd4(0x2e1)],_0x47425b['drawingId']);if(!_0x27ef69)return{'redos':[],'undos':[]};let _0x2942c6=_0x27ef69[_0x151bd4(0x2d8)](),_0x1fd41b=JSON[_0x151bd4(0x4c0)](JSON['stringify'](_0x27ef69[_0x151bd4(0x3b4)]()));return{'redos':[{'id':_0x43e147[_0x151bd4(0x2dd)]['id'],'params':{'unitId':_0x347569,'subUnitId':_0x5e2055,'type':_0x43e147['DrawingApplyType'][_0x151bd4(0x32b)],'op':_0x5bfbe5[_0x151bd4(0x3b5)],'objects':_0x5bfbe5[_0x151bd4(0x239)]}},{'id':_0x5927be[_0x151bd4(0x39e)]['id'],'params':{'unitId':_0x347569,'subUnitId':_0x5e2055,'shapeId':_0x47425b[_0x151bd4(0x257)]}},{'id':_0x43e147[_0x151bd4(0x2dd)]['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'type':_0x43e147[_0x151bd4(0x34b)]['INSERT'],'op':_0x137534[_0x151bd4(0x3b5)],'objects':_0x137534[_0x151bd4(0x239)]}},{'id':_0x5927be[_0x151bd4(0x318)]['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'shapeId':_0x47425b[_0x151bd4(0x257)],'shapeType':_0x2942c6,'shapeData':_0x1fd41b}}],'undos':[{'id':_0x43e147[_0x151bd4(0x2dd)]['id'],'params':{'unitId':_0x347569,'subUnitId':_0x5e2055,'type':_0x43e147[_0x151bd4(0x34b)]['INSERT'],'op':_0x5bfbe5[_0x151bd4(0x284)],'objects':_0x5bfbe5['objects']}},{'id':_0x5927be[_0x151bd4(0x318)]['id'],'params':{'unitId':_0x347569,'subUnitId':_0x5e2055,'shapeId':_0x47425b[_0x151bd4(0x257)],'shapeType':_0x2942c6,'shapeData':_0x1fd41b}},{'id':_0x43e147[_0x151bd4(0x2dd)]['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'type':_0x43e147[_0x151bd4(0x34b)][_0x151bd4(0x32b)],'op':_0x137534[_0x151bd4(0x284)],'objects':_0x137534[_0x151bd4(0x239)]}},{'id':_0x5927be[_0x151bd4(0x39e)]['id'],'params':{'unitId':_0x21a9cd,'subUnitId':_0x92b246,'shapeId':_0x47425b[_0x151bd4(0x257)]}}]};}}[_0x47cc0f(0x39a)](_0x320749){const _0x10b764=_0x47cc0f;let {toUnitId:_0x58e437,toSubUnitId:_0x1575e9,drawing:_0x836bf9,newTransforms:_0x2d18b8,newDrawingId:_0x2fb936,idMap:_0x4e3bae}=_0x320749,_0x58219e={..._0x836bf9,'unitId':_0x58e437,'subUnitId':_0x1575e9,'drawingId':_0x2fb936,'transform':_0x2d18b8[_0x10b764(0x23f)],'sheetTransform':_0x2d18b8[_0x10b764(0x384)]},{redo:_0xf6cfc3,undo:_0x433a8a,objects:_0x249ade}=this[_0x10b764(0x3bf)][_0x10b764(0x26d)]([_0x58219e]),_0xed6809=this[_0x10b764(0x4c7)][_0x10b764(0x381)](_0x836bf9[_0x10b764(0x394)],_0x836bf9[_0x10b764(0x2e1)],_0x836bf9[_0x10b764(0x257)]);if(!_0xed6809)return{'redos':[],'undos':[]};let _0x55ce47=_0xed6809[_0x10b764(0x2d8)](),_0x260240=JSON['parse'](JSON['stringify'](_0xed6809[_0x10b764(0x3b4)]()));if(_0x260240[_0x10b764(0x1d3)]){var _0x3fd3ff,_0x16f6d9;let _0x2b7f48=(_0x3fd3ff=_0x260240[_0x10b764(0x1d3)]['from'])==null?void 0x0:_0x3fd3ff[_0x10b764(0x4d8)],_0x18636c=(_0x16f6d9=_0x260240[_0x10b764(0x1d3)]['to'])==null?void 0x0:_0x16f6d9[_0x10b764(0x4d8)],_0x1fdd3d=_0x2b7f48?_0x4e3bae[_0x10b764(0x2ff)](_0x2b7f48):!0x0,_0x53099e=_0x18636c?_0x4e3bae[_0x10b764(0x2ff)](_0x18636c):!0x0;_0x1fdd3d&&_0x2b7f48&&_0x260240[_0x10b764(0x1d3)]['from']?_0x260240[_0x10b764(0x1d3)][_0x10b764(0x292)]={..._0x260240[_0x10b764(0x1d3)][_0x10b764(0x292)],'shapeId':_0x4e3bae[_0x10b764(0x1e3)](_0x2b7f48)}:_0x260240[_0x10b764(0x1d3)][_0x10b764(0x292)]=void 0x0,_0x53099e&&_0x18636c&&_0x260240[_0x10b764(0x1d3)]['to']?_0x260240['relation']['to']={..._0x260240[_0x10b764(0x1d3)]['to'],'shapeId':_0x4e3bae[_0x10b764(0x1e3)](_0x18636c)}:_0x260240['relation']['to']=void 0x0;}return{'redos':[{'id':_0x43e147['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x58e437,'subUnitId':_0x1575e9,'type':_0x43e147['DrawingApplyType'][_0x10b764(0x3ab)],'op':_0xf6cfc3,'objects':_0x249ade}},{'id':_0x5927be[_0x10b764(0x318)]['id'],'params':{'unitId':_0x58e437,'subUnitId':_0x1575e9,'shapeId':_0x2fb936,'shapeType':_0x55ce47,'shapeData':_0x260240}}],'undos':[{'id':_0x43e147[_0x10b764(0x2dd)]['id'],'params':{'unitId':_0x58e437,'subUnitId':_0x1575e9,'type':_0x43e147[_0x10b764(0x34b)][_0x10b764(0x32b)],'op':_0x433a8a,'objects':_0x249ade}},{'id':_0x5927be[_0x10b764(0x39e)]['id'],'params':{'unitId':_0x58e437,'subUnitId':_0x1575e9,'shapeId':_0x2fb936}}]};}[_0x47cc0f(0x3dc)](_0x325a66,_0x48f638,_0xf7d399,_0x525993){const _0x58a6c5=_0x47cc0f;var _0x13c82e;let {range:_0xd2b0fe,skeleton:_0x44b851}=_0x48f638,{range:_0x3d6ce6,skeleton:_0x34fc8c}=_0xf7d399,{transform:_0x7e96ee,sheetTransform:_0x5abe72}=_0x325a66,_0x76adae={..._0x7e96ee};if(_0xd2b0fe){let _0x2eb493=(0x0,_0x231b82[_0x58a6c5(0x1fc)])(_0x44b851,_0xd2b0fe),_0x1bed3c=(0x0,_0x231b82[_0x58a6c5(0x1fc)])(_0x34fc8c,_0x3d6ce6);if(_0x2eb493&&_0x1bed3c){var _0x17003b,_0xe38dde;let _0x49e1f2=_0x1bed3c[_0x58a6c5(0x2c1)]-_0x2eb493['startX'],_0x441c17=_0x1bed3c[_0x58a6c5(0x3c9)]-_0x2eb493['startY'];_0x76adae[_0x58a6c5(0x3c3)]=((_0x17003b=_0x76adae[_0x58a6c5(0x3c3)])==null?0x0:_0x17003b)+_0x49e1f2,_0x76adae['top']=((_0xe38dde=_0x76adae[_0x58a6c5(0x3ad)])==null?0x0:_0xe38dde)+_0x441c17;}}else{let _0x11815c=(0x0,_0x231b82['attachRangeWithCoord'])(_0x34fc8c,_0x3d6ce6);if(_0x525993&&_0x11815c){var _0x16b776,_0x2fa6e0;let _0x5678f7=((_0x16b776=_0x76adae['left'])==null?0x0:_0x16b776)-_0x525993[_0x58a6c5(0x3c3)],_0x19cd70=((_0x2fa6e0=_0x76adae['top'])==null?0x0:_0x2fa6e0)-_0x525993[_0x58a6c5(0x3ad)];_0x76adae['left']=_0x11815c[_0x58a6c5(0x2c1)]+_0x5678f7,_0x76adae['top']=_0x11815c[_0x58a6c5(0x3c9)]+_0x19cd70;}else _0x76adae[_0x58a6c5(0x3c3)]=_0x11815c==null?void 0x0:_0x11815c[_0x58a6c5(0x2c1)],_0x76adae[_0x58a6c5(0x3ad)]=_0x11815c==null?void 0x0:_0x11815c['startY'];}return{'transform':_0x76adae,'sheetTransform':(_0x13c82e=(0x0,_0x43e147['transformToDrawingPosition'])(_0x76adae,_0x34fc8c))==null?_0x5abe72:_0x13c82e};}};_0x14dca1=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x231b82[_0x47cc0f(0x21e)])),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x522354['ISheetClipboardService'])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x43e147[_0x47cc0f(0x365)])),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be[_0x47cc0f(0x21d)])),_0x3607f9(0x4,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1700e5['SheetsDrawingGroupCopyPasteController']))],_0x14dca1);var _0x4ce54b=class extends _0x58b748[_0x47cc0f(0x207)]{constructor(_0x2535ea,_0x1f1f5b){const _0x478d76=_0x47cc0f;super(_0x2535ea,_0x1f1f5b),_0x562cac(this,_0x478d76(0x475),null),_0x562cac(this,'_index',null),_0x562cac(this,_0x478d76(0x242),null),_0x562cac(this,_0x478d76(0x2ab),null),_0x562cac(this,_0x478d76(0x3b6),!0x1),_0x1f1f5b&&this[_0x478d76(0x4a1)](_0x1f1f5b);}[_0x47cc0f(0x260)](){const _0x59bca8=_0x47cc0f;return{'unitId':this[_0x59bca8(0x242)],'subUnitId':this[_0x59bca8(0x2ab)],'drawingId':this[_0x59bca8(0x475)]};}[_0x47cc0f(0x4a1)](_0x444496){const _0x5f5769=_0x47cc0f;_0x444496[_0x5f5769(0x4d8)]!==void 0x0&&(this[_0x5f5769(0x475)]=_0x444496[_0x5f5769(0x4d8)]),_0x444496['unitId']!==void 0x0&&(this[_0x5f5769(0x242)]=_0x444496[_0x5f5769(0x394)]),_0x444496[_0x5f5769(0x2e1)]!==void 0x0&&(this[_0x5f5769(0x2ab)]=_0x444496[_0x5f5769(0x2e1)]),_0x444496[_0x5f5769(0x2f3)]!==void 0x0&&(this[_0x5f5769(0x3b6)]=_0x444496[_0x5f5769(0x2f3)]),this[_0x5f5769(0x4a6)]({'width':_0x444496[_0x5f5769(0x300)],'height':_0x444496[_0x5f5769(0x1e8)]});}['_draw'](_0x13bf08){const _0x4fda68=_0x47cc0f;_0x58b748[_0x4fda68(0x4cb)][_0x4fda68(0x237)](_0x13bf08,{'radius':_0x4f5ff8[_0x4fda68(0x4db)][_0x4fda68(0x366)],'fill':_0x4f5ff8[_0x4fda68(0x4db)]['cxnPointFill'],'stroke':_0x4f5ff8['ShapeDefaultConfig'][_0x4fda68(0x240)],'strokeWidth':_0x4f5ff8[_0x4fda68(0x4db)]['cxnPointStrokeWidth'],'evented':!0x0});}};let _0x410c0c=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x3cf461,_0x44ea04,_0x183645,_0x2b09b6,_0x5023ca,_0x3609fd,_0x4dbf2e,_0xeb43a7){const _0x1ff261=_0x47cc0f;super(),this[_0x1ff261(0x2c8)]=_0x3cf461,this['_commandService']=_0x44ea04,this['_renderManagerService']=_0x183645,this[_0x1ff261(0x416)]=_0x2b09b6,this['_univerInstanceService']=_0x5023ca,this[_0x1ff261(0x3c4)]=_0x3609fd,this[_0x1ff261(0x447)]=_0x4dbf2e,this[_0x1ff261(0x336)]=_0xeb43a7,_0x562cac(this,_0x1ff261(0x333),void 0x0),_0x562cac(this,_0x1ff261(0x242),void 0x0),_0x562cac(this,_0x1ff261(0x2ab),void 0x0),_0x562cac(this,_0x1ff261(0x299),[]),_0x562cac(this,_0x1ff261(0x1dd),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x562cac(this,_0x1ff261(0x2f6),void 0x0),_0x562cac(this,_0x1ff261(0x4f3),!0x1),_0x562cac(this,_0x1ff261(0x304),!0x1),_0x562cac(this,_0x1ff261(0x4da),!0x1),_0x562cac(this,_0x1ff261(0x2d3),void 0x0),_0x562cac(this,'_cxtHandlerPointerUp',void 0x0),_0x562cac(this,_0x1ff261(0x46a),null),this[_0x1ff261(0x27a)]();}[_0x47cc0f(0x27a)](){const _0x36e4f4=_0x47cc0f;this['_registerDrawingFocusChangeHandler'](),this[_0x36e4f4(0x2af)]();}[_0x47cc0f(0x2e4)](){const _0x26fc4e=_0x47cc0f;if(!this[_0x26fc4e(0x242)]||!this[_0x26fc4e(0x2ab)]||!this[_0x26fc4e(0x333)])return;let _0x27f211={'unitId':this[_0x26fc4e(0x242)],'subUnitId':this[_0x26fc4e(0x2ab)],'drawingId':this[_0x26fc4e(0x333)]},{transform:_0x4e43ee}=this[_0x26fc4e(0x416)][_0x26fc4e(0x3a2)](_0x27f211);if(_0x4e43ee)return{'left':_0x4e43ee[_0x26fc4e(0x3c3)]||0x0,'top':_0x4e43ee[_0x26fc4e(0x3ad)]||0x0,'width':_0x4e43ee['width']||0x0,'height':_0x4e43ee[_0x26fc4e(0x1e8)]||0x0,'flipX':_0x4e43ee[_0x26fc4e(0x42d)]||!0x1,'flipY':_0x4e43ee['flipY']||!0x1,'angle':_0x4e43ee['angle']};}[_0x47cc0f(0x396)](){const _0x51d58f=_0x47cc0f;if(this[_0x51d58f(0x242)]===void 0x0||this[_0x51d58f(0x2ab)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x3a5491=this[_0x51d58f(0x4bb)][_0x51d58f(0x350)](this['_unitId']);if(!_0x3a5491||!_0x3a5491[_0x51d58f(0x1e4)](_0x522354[_0x51d58f(0x4ba)])[_0x51d58f(0x27d)]())return;let {scene:_0xbac234}=_0x3a5491,_0x173a8a=this[_0x51d58f(0x2e4)]();if(!_0x173a8a)return;let _0x10f47f=this['_sheetsShapeService'][_0x51d58f(0x381)](this[_0x51d58f(0x242)],this[_0x51d58f(0x2ab)],this[_0x51d58f(0x333)]);if(!_0x10f47f||!(0x0,_0x4f5ff8[_0x51d58f(0x3d1)])(_0x10f47f[_0x51d58f(0x2d8)]()))return;let _0x23f7db=_0x10f47f[_0x51d58f(0x1f5)]();if(_0x23f7db[_0x51d58f(0x28e)]<0x2)return;let _0x466a1a=new _0x4f5ff8[(_0x51d58f(0x275))](_0x173a8a),_0x18d888=_0x23f7db[0x0],_0x5817f2=_0x23f7db[_0x23f7db['length']-0x1],_0x1ae5a2=_0x466a1a[_0x51d58f(0x42f)](_0x18d888),_0x2deb8a=_0x466a1a[_0x51d58f(0x42f)](_0x5817f2);this['_addShapeConnectorHandlerObject'](_0xbac234,{..._0x1ae5a2},!0x0),this[_0x51d58f(0x326)](_0xbac234,{..._0x2deb8a},!0x1);}[_0x47cc0f(0x326)](_0x43a909,_0x4ffb45,_0x50de84){const _0x9e2152=_0x47cc0f;if(this['_activeShapeId']===void 0x0||this[_0x9e2152(0x242)]===void 0x0||this[_0x9e2152(0x2ab)]===void 0x0)return;let _0x2f1e32=_0x9e2152(0x3a5)+this[_0x9e2152(0x242)]+'-'+this[_0x9e2152(0x2ab)]+'-'+this[_0x9e2152(0x333)]+'-'+(_0x50de84?_0x9e2152(0x359):_0x9e2152(0x1f7)),_0x452c97=_0x43a909[_0x9e2152(0x4d7)](_0x2f1e32);if(_0x452c97){_0x452c97[_0x9e2152(0x4a6)]({'left':_0x4ffb45['x']-_0x4f5ff8[_0x9e2152(0x4db)][_0x9e2152(0x366)],'top':_0x4ffb45['y']-_0x4f5ff8[_0x9e2152(0x4db)]['cxnPointRadius']});return;}let _0x2e8bde=new _0x4ce54b(_0x2f1e32,{'left':_0x4ffb45['x']-_0x4f5ff8['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x4ffb45['y']-_0x4f5ff8[_0x9e2152(0x4db)]['cxnPointRadius'],'shapeId':this[_0x9e2152(0x333)],'unitId':this[_0x9e2152(0x242)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x50de84,'width':_0x4f5ff8[_0x9e2152(0x4db)][_0x9e2152(0x366)]*0x2,'height':_0x4f5ff8[_0x9e2152(0x4db)][_0x9e2152(0x366)]*0x2,'zIndex':_0x58b748['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x9e2152(0x299)][_0x9e2152(0x3e5)](_0x2e8bde),this[_0x9e2152(0x211)](_0x2e8bde,_0x43a909,_0x50de84),_0x43a909[_0x9e2152(0x408)](_0x2e8bde,_0x58b748[_0x9e2152(0x43c)]+0x1);}[_0x47cc0f(0x320)](_0x51248f,_0x171cfc){const _0x133c0f=_0x47cc0f;var _0x158338;let _0x4caf4c={'x':0x0,'y':0x0};if(!_0x51248f||!_0x171cfc)return _0x4caf4c;let _0x905866=this[_0x133c0f(0x4bb)][_0x133c0f(0x350)](_0x51248f);if(!_0x905866||!_0x905866[_0x133c0f(0x1e4)](_0x522354[_0x133c0f(0x4ba)])[_0x133c0f(0x229)](_0x171cfc))return _0x4caf4c;let _0x3e4a65=_0x905866[_0x133c0f(0x1e4)](_0x522354[_0x133c0f(0x41a)]),_0x5af737=_0x3e4a65==null?void 0x0:_0x3e4a65[_0x133c0f(0x224)]();if(!_0x5af737)return _0x4caf4c;let _0x1282ef=(_0x158338=this['_univerInstanceService'][_0x133c0f(0x49f)](_0x51248f))==null?void 0x0:_0x158338[_0x133c0f(0x277)](_0x171cfc);if(!_0x1282ef)return _0x4caf4c;let _0x371978=(0x0,_0x522354[_0x133c0f(0x3fa)])(_0x5af737[_0x133c0f(0x389)],_0x5af737[_0x133c0f(0x3ee)],_0x905866[_0x133c0f(0x469)],_0x1282ef);return _0x371978?{'x':_0x371978[_0x133c0f(0x1d5)],'y':_0x371978[_0x133c0f(0x3c5)]}:_0x4caf4c;}[_0x47cc0f(0x402)](_0x17d664,_0x1b697a){const _0x13da44=_0x47cc0f;var _0x5c6722,_0x274c01;let _0x2d010b=(_0x5c6722=this['_univerInstanceService'][_0x13da44(0x49f)](_0x17d664))==null?void 0x0:_0x5c6722['getSheetBySheetId'](_0x1b697a);return(_0x274c01=_0x2d010b==null?void 0x0:_0x2d010b[_0x13da44(0x38d)]())==null?0x1:_0x274c01;}[_0x47cc0f(0x35c)](_0x5aabd5,_0x33867d,_0x33bdfe,_0x2967ea,_0x12f9fd){const _0x49715a=_0x47cc0f;this[_0x49715a(0x2d3)][_0x49715a(0x212)](),this['_cxtHandlerPointerUp'][_0x49715a(0x212)](),this[_0x49715a(0x447)]['refreshAdjustControls']();let _0x5a8bac=this[_0x49715a(0x46a)];this[_0x49715a(0x336)][_0x49715a(0x200)]();let _0x22cb9e=this[_0x49715a(0x320)](this[_0x49715a(0x242)],this[_0x49715a(0x2ab)]),_0x189ee7=this[_0x49715a(0x402)](this[_0x49715a(0x242)],this[_0x49715a(0x2ab)]),_0x179f3a={'x':_0x33bdfe[_0x49715a(0x432)]/_0x189ee7+_0x22cb9e['x'],'y':_0x33bdfe[_0x49715a(0x4c8)]/_0x189ee7+_0x22cb9e['y']},_0x51f1bf=_0x5a8bac?_0x5a8bac[_0x49715a(0x38a)]:_0x179f3a,_0x26e811=_0x2967ea?this[_0x49715a(0x2f6)]['getEndConnectInfo']():this['_activeShapeModel'][_0x49715a(0x451)](),_0x5bc3d9=this['_activeShapeModel'][_0x49715a(0x2d8)]();_0x26e811?this['_handleConnectedEndpointPointerUp'](_0x26e811,_0x51f1bf,_0x2967ea,_0x5a8bac,_0x12f9fd):this[_0x49715a(0x404)](_0x33867d,_0x51f1bf,_0x2967ea,_0x5a8bac,_0x12f9fd,_0x5bc3d9),this[_0x49715a(0x4f3)]=!0x1,this[_0x49715a(0x4da)]=!0x1,this[_0x49715a(0x46a)]=null,_0x5aabd5['enableObjectsEvent']();}[_0x47cc0f(0x404)](_0x2be782,_0x6c52e9,_0x5b6169,_0xc3dc1b,_0x166db4,_0x1b164b){const _0x5c2997=_0x47cc0f;let _0x3ade9c=_0x1b164b===_0x4f5ff8[_0x5c2997(0x4d9)][_0x5c2997(0x407)]||_0x1b164b===_0x4f5ff8[_0x5c2997(0x4d9)][_0x5c2997(0x48c)],_0x4d12e8=_0x5b6169?_0x6c52e9:_0x2be782,_0x6ccd9d=_0x5b6169?_0x2be782:_0x6c52e9,_0x43a0e6=this['_activeShapeModel']['getConnectorLinePoints'](),_0x3d6a82=(0x0,_0x4f5ff8[_0x5c2997(0x343)])(this[_0x5c2997(0x2f6)][_0x5c2997(0x2d8)]()),_0x56fde3=_0x4f5ff8[_0x5c2997(0x275)][_0x5c2997(0x2db)](_0x43a0e6,_0x3d6a82),_0x59287a=_0x3ade9c?_0x4f5ff8[_0x5c2997(0x275)]['computeStraightConnectorLayout'](_0x4d12e8,_0x6ccd9d):_0x4f5ff8[_0x5c2997(0x275)][_0x5c2997(0x3d2)](_0x2be782,_0x6c52e9,_0x5b6169,_0x56fde3);_0xc3dc1b?this['_executeConnectionCommand'](_0x59287a,_0xc3dc1b,_0x5b6169,_0x166db4):this[_0x5c2997(0x355)](_0x59287a,_0x166db4);}[_0x47cc0f(0x374)](_0xb23041,_0x7d21f7,_0x21ce47,_0x283c66,_0x381bf6){const _0x346d9d=_0x47cc0f;let _0x25923f=this['_getConnectPointInfo'](_0xb23041);if(!_0x25923f)return;let _0xd2097e=_0x283c66?_0x283c66[_0x346d9d(0x25f)]:this[_0x346d9d(0x4df)](_0x25923f['point'],_0x7d21f7),_0x125d26;if(_0x283c66){let _0x26b1ad=this[_0x346d9d(0x416)]['getDrawingByParam']({'unitId':_0x283c66['unitId'],'subUnitId':_0x283c66[_0x346d9d(0x2e1)],'drawingId':_0x283c66[_0x346d9d(0x4d8)]});if(_0x26b1ad!=null&&_0x26b1ad['transform']){let {left:_0x3676c9=0x0,top:_0x389df2=0x0,width:_0xf3af30=0x0,height:_0x286c50=0x0,angle:_0x5e327f}=_0x26b1ad[_0x346d9d(0x23f)];_0x125d26=(0x0,_0x4f5ff8[_0x346d9d(0x485)])({'left':_0x3676c9,'top':_0x389df2,'width':_0xf3af30,'height':_0x286c50},_0x5e327f||0x0);}else _0x125d26={'left':_0x7d21f7['x'],'top':_0x7d21f7['y'],'width':0x0,'height':0x0};}else _0x125d26={'left':_0x7d21f7['x'],'top':_0x7d21f7['y'],'width':0x0,'height':0x0};let _0x364074={'point':_0x7d21f7,'angle':_0xd2097e,'bounds':_0x125d26},_0x501cb2=_0x21ce47?_0x364074:_0x25923f,_0x3cde30=_0x21ce47?_0x25923f:_0x364074,_0x2b959f=this['_activeShapeModel'][_0x346d9d(0x2d8)](),_0x1c041f=(0x0,_0x4f5ff8[_0x346d9d(0x421)])(_0x501cb2,_0x3cde30,_0x2b959f);this[_0x346d9d(0x2f6)][_0x346d9d(0x45f)]();let _0x477b8c=(0x0,_0x4f5ff8[_0x346d9d(0x22c)])(_0x1c041f,_0x2b959f);_0x283c66?this[_0x346d9d(0x4a7)](_0x477b8c,_0x283c66,_0xb23041,_0x21ce47,_0x381bf6):this[_0x346d9d(0x35a)](_0x477b8c,_0xb23041,_0x21ce47,_0x381bf6);}[_0x47cc0f(0x235)](_0x4f92df,_0x2a62cc,_0x4d2956,_0x4ab408){const _0x5ad670=_0x47cc0f;let _0x3252a8=this[_0x5ad670(0x2f6)][_0x5ad670(0x3b4)]()['relation'],_0x543e04={..._0x3252a8},_0x2eb218={'shapeId':_0x2a62cc['shapeId'],'cxnIndex':_0x2a62cc['cxnIndex']};_0x4d2956?_0x543e04[_0x5ad670(0x292)]=_0x2eb218:_0x543e04['to']=_0x2eb218;let _0x51cb2a=this[_0x5ad670(0x2f6)][_0x5ad670(0x2d8)](),_0x2ff012=(0x0,_0x4f5ff8[_0x5ad670(0x22c)])(_0x4f92df['worldPoints'],_0x51cb2a),_0x26f4b1={'unitId':this[_0x5ad670(0x242)],'subUnitId':this[_0x5ad670(0x2ab)],'connectorShapeId':this[_0x5ad670(0x333)],'width':_0x4f92df['worldRect'][_0x5ad670(0x300)],'height':_0x4f92df[_0x5ad670(0x377)]['height'],'left':_0x4f92df[_0x5ad670(0x377)][_0x5ad670(0x3c3)],'top':_0x4f92df[_0x5ad670(0x377)][_0x5ad670(0x3ad)],'flipX':_0x4f92df['worldRect'][_0x5ad670(0x42d)]||!0x1,'flipY':_0x4f92df['worldRect'][_0x5ad670(0x4b0)]||!0x1,'newAdjustValues':_0x2ff012['adjustValues'],'oldAdjustValues':_0x4ab408,'oldRelation':_0x3252a8,'newRelation':_0x543e04,'newLineType':_0x2ff012[_0x5ad670(0x29a)],'oldLineType':_0x51cb2a};this[_0x5ad670(0x3e1)][_0x5ad670(0x2cb)](_0x5927be['UpdateConnectorRelationCommand']['id'],_0x26f4b1);}[_0x47cc0f(0x355)](_0x18a2b6,_0xddbf2c){const _0x154699=_0x47cc0f;let _0x490b03=this[_0x154699(0x2f6)][_0x154699(0x2d8)](),_0x55ffbd=(0x0,_0x4f5ff8[_0x154699(0x22c)])(_0x18a2b6[_0x154699(0x442)],_0x490b03),_0x1829cf={'unitId':this['_unitId'],'subUnitId':this[_0x154699(0x2ab)],'shapeId':this[_0x154699(0x333)],'width':_0x18a2b6[_0x154699(0x377)]['width'],'height':_0x18a2b6[_0x154699(0x377)][_0x154699(0x1e8)],'left':_0x18a2b6[_0x154699(0x377)]['left'],'top':_0x18a2b6[_0x154699(0x377)][_0x154699(0x3ad)],'flipX':_0x18a2b6['worldRect'][_0x154699(0x42d)]||!0x1,'flipY':_0x18a2b6['worldRect'][_0x154699(0x4b0)]||!0x1,'angle':_0x18a2b6[_0x154699(0x377)][_0x154699(0x25f)]||0x0,'newAdjustValues':_0x55ffbd[_0x154699(0x296)],'oldAdjustValues':_0xddbf2c,'newLineType':_0x55ffbd['lineType'],'oldLineType':_0x490b03};this['_commandService'][_0x154699(0x2cb)](_0x5927be[_0x154699(0x4f1)]['id'],_0x1829cf);}[_0x47cc0f(0x4a7)](_0x4ca0ed,_0x297c46,_0x2eefe8,_0x22cc59,_0xeb4adb){const _0x4c147f=_0x47cc0f;let _0x49320f=this['_activeShapeModel'][_0x4c147f(0x3b4)]()['relation'],_0x4510b8={..._0x49320f},_0x406370={'shapeId':_0x297c46[_0x4c147f(0x4d8)],'cxnIndex':_0x297c46[_0x4c147f(0x375)]};_0x22cc59?(_0x4510b8[_0x4c147f(0x292)]=_0x406370,_0x4510b8['to']=_0x2eefe8):(_0x4510b8[_0x4c147f(0x292)]=_0x2eefe8,_0x4510b8['to']=_0x406370);let _0x29c253={'unitId':this[_0x4c147f(0x242)],'subUnitId':this[_0x4c147f(0x2ab)],'connectorShapeId':this[_0x4c147f(0x333)],'width':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x300)],'height':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x1e8)],'left':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x3c3)],'top':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x3ad)],'flipX':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x42d)]||!0x1,'flipY':_0x4ca0ed[_0x4c147f(0x377)][_0x4c147f(0x4b0)]||!0x1,'oldAdjustValues':_0xeb4adb,'newAdjustValues':_0x4ca0ed[_0x4c147f(0x296)],'newLineType':_0x4ca0ed[_0x4c147f(0x29a)],'rotation':_0x4ca0ed[_0x4c147f(0x4dc)],'oldRelation':_0x49320f,'newRelation':_0x4510b8};this['_commandService'][_0x4c147f(0x2cb)](_0x5927be[_0x4c147f(0x386)]['id'],_0x29c253);}[_0x47cc0f(0x35a)](_0x437b3a,_0x4f6d98,_0xae1969,_0x179976){const _0x57f390=_0x47cc0f;let _0x50eef7=this[_0x57f390(0x2f6)]['getShapeData']()['relation'],_0x43e5ab={};_0xae1969?(_0x43e5ab['to']=_0x4f6d98,_0x43e5ab[_0x57f390(0x292)]=void 0x0):(_0x43e5ab[_0x57f390(0x292)]=_0x4f6d98,_0x43e5ab['to']=void 0x0);let _0x2f8892={'unitId':this[_0x57f390(0x242)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x57f390(0x333)],'width':_0x437b3a[_0x57f390(0x377)][_0x57f390(0x300)],'height':_0x437b3a[_0x57f390(0x377)]['height'],'left':_0x437b3a['worldRect'][_0x57f390(0x3c3)],'top':_0x437b3a['worldRect'][_0x57f390(0x3ad)],'flipX':_0x437b3a[_0x57f390(0x377)]['flipX']||!0x1,'flipY':_0x437b3a[_0x57f390(0x377)][_0x57f390(0x4b0)]||!0x1,'oldAdjustValues':_0x179976,'newAdjustValues':_0x437b3a[_0x57f390(0x296)],'newLineType':_0x437b3a[_0x57f390(0x29a)],'rotation':_0x437b3a[_0x57f390(0x4dc)],'oldRelation':_0x50eef7,'newRelation':_0x43e5ab};this['_commandService'][_0x57f390(0x2cb)](_0x5927be[_0x57f390(0x386)]['id'],_0x2f8892);}[_0x47cc0f(0x211)](_0x14dce5,_0x591f6e,_0x1566e){const _0x3dc0d5=_0x47cc0f;this['disposeWithMe']((0x0,_0x1f6ce6[_0x3dc0d5(0x31d)])(_0x14dce5[_0x3dc0d5(0x2ef)][_0x3dc0d5(0x4a2)]((_0x4ce453,_0x235475)=>{const _0x36e034=_0x3dc0d5;let _0x28b206=_0x14dce5[_0x36e034(0x260)]();if(this[_0x36e034(0x2f6)]=this[_0x36e034(0x3c4)][_0x36e034(0x381)](_0x28b206[_0x36e034(0x394)],_0x28b206[_0x36e034(0x2e1)],_0x28b206['drawingId']),!this['_activeShapeModel'])return;let _0x51dbfe={};this[_0x36e034(0x2f6)][_0x36e034(0x259)]()[_0x36e034(0x3ec)](_0x36e50b=>{const _0x1fa662=_0x36e034;let _0x48f050=this[_0x1fa662(0x2f6)][_0x1fa662(0x327)](_0x36e50b);_0x48f050!==void 0x0&&(_0x51dbfe[_0x36e50b]=_0x48f050);});let _0x18025f=this[_0x36e034(0x2e4)]();if(!_0x18025f)return;this[_0x36e034(0x1dd)]={..._0x18025f};let _0x333ece=new _0x4f5ff8['ConnectorCoordinateTransform'](this[_0x36e034(0x1dd)]),_0x48644d=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x36e034(0x333)]}),_0x37f707=_0x591f6e[_0x36e034(0x4d7)](_0x48644d);this[_0x36e034(0x4f3)]=!0x0,_0x591f6e[_0x36e034(0x345)](),this[_0x36e034(0x336)][_0x36e034(0x271)](_0x591f6e,this[_0x36e034(0x242)],this[_0x36e034(0x2ab)],this[_0x36e034(0x333)]),this[_0x36e034(0x46a)]=null;let _0x47c8cb=this[_0x36e034(0x2f6)]['getConnectorLinePoints'](),_0x59c825=_0x47c8cb[0x0],_0x36d810=_0x47c8cb[_0x47c8cb[_0x36e034(0x28e)]-0x1],_0x4fb416=_0x1566e?_0x333ece[_0x36e034(0x42f)](_0x36d810):_0x333ece[_0x36e034(0x42f)](_0x59c825);this[_0x36e034(0x2d3)]=_0x591f6e['onPointerMove$']['subscribeEvent']((_0x25b986,_0x2d6d45)=>{const _0x2b7316=_0x36e034;if(!this[_0x2b7316(0x4f3)]||!this['_activeShapeModel'])return;this[_0x2b7316(0x4da)]||(this[_0x2b7316(0x447)][_0x2b7316(0x46f)](),this[_0x2b7316(0x2f6)][_0x2b7316(0x4e7)](),this[_0x2b7316(0x4da)]=!0x0);let _0x23a25e=this['_getScrollInfo'](this[_0x2b7316(0x242)],this[_0x2b7316(0x2ab)]),_0xc0dc61=this[_0x2b7316(0x402)](this['_unitId'],this[_0x2b7316(0x2ab)]),_0x315357={'x':_0x25b986['offsetX']/_0xc0dc61+_0x23a25e['x'],'y':_0x25b986[_0x2b7316(0x4c8)]/_0xc0dc61+_0x23a25e['y']},_0x54a10b=this[_0x2b7316(0x336)][_0x2b7316(0x339)](_0x315357);if(_0x54a10b){let {shapeId:_0x5b9774,unitId:_0x26230a,subUnitId:_0x32077b}=_0x54a10b;if(_0x5b9774&&_0x26230a&&_0x32077b){let _0x1aacd6=(0x0,_0x2ee308[_0x2b7316(0x4d4)])({'unitId':_0x26230a,'subUnitId':_0x32077b,'drawingId':_0x5b9774});_0x54a10b['angle']=(_0x591f6e[_0x2b7316(0x4d7)](_0x1aacd6)[_0x2b7316(0x25f)]||0x0)+_0x54a10b[_0x2b7316(0x25f)];}}this[_0x2b7316(0x46a)]=_0x54a10b;let _0x3878b7=_0x1566e?this[_0x2b7316(0x2f6)][_0x2b7316(0x347)]():this[_0x2b7316(0x2f6)][_0x2b7316(0x451)]();if(_0x3878b7){this[_0x2b7316(0x387)](_0x3878b7,_0x315357,_0x1566e,_0x37f707,_0x14dce5);return;}this[_0x2b7316(0x313)](_0x315357,_0x4fb416,_0x1566e,_0x37f707,_0x14dce5);}),this[_0x36e034(0x4b4)]=_0x591f6e['onPointerUp$'][_0x36e034(0x4a2)]((_0x11765b,_0x5cf603)=>{const _0x16bc6e=_0x36e034;this[_0x16bc6e(0x35c)](_0x591f6e,_0x4fb416,_0x11765b,_0x1566e,_0x51dbfe);}),_0x235475['stopPropagation']();})));}[_0x47cc0f(0x219)](_0x1db667,_0xb0b484,_0x2e9cff){const _0x1ef284=_0x47cc0f;let _0x19f93c=this[_0x1ef284(0x3c4)][_0x1ef284(0x35d)](_0x1db667,_0xb0b484,_0x2e9cff);if(!_0x19f93c||_0x19f93c[_0x1ef284(0x28e)]===0x0)return;let _0x58a0f5=this[_0x1ef284(0x4bb)][_0x1ef284(0x350)](_0x1db667);if(!_0x58a0f5)return;let {scene:_0x50452a}=_0x58a0f5;for(let _0x25e161 of _0x19f93c){let _0x518c87=_0x25e161[_0x1ef284(0x1f3)],_0x1fd4f8=this[_0x1ef284(0x3c4)][_0x1ef284(0x381)](_0x1db667,_0xb0b484,_0x518c87);if(!_0x1fd4f8)continue;let _0x40be44=_0x1fd4f8[_0x1ef284(0x451)](),_0x2cad3d=_0x1fd4f8[_0x1ef284(0x347)](),_0x72234a=(_0x40be44==null?void 0x0:_0x40be44[_0x1ef284(0x4d8)])===_0x2e9cff,_0x4d502a=(0x0,_0x2ee308['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1db667,'subUnitId':_0xb0b484,'drawingId':_0x518c87}),_0x42cda5=_0x50452a[_0x1ef284(0x4d7)](_0x4d502a);if(!_0x42cda5)continue;let _0x432a0f=this[_0x1ef284(0x416)][_0x1ef284(0x3a2)]({'unitId':_0x1db667,'subUnitId':_0xb0b484,'drawingId':_0x518c87});_0x432a0f!=null&&_0x432a0f[_0x1ef284(0x23f)]&&(_0x40be44&&_0x2cad3d?this['_rerouteConnectorLine'](_0x1db667,_0xb0b484,_0x518c87,_0x1fd4f8,_0x40be44,_0x2cad3d,_0x42cda5):this[_0x1ef284(0x3df)](_0x1db667,_0xb0b484,_0x518c87,_0x1fd4f8,_0x72234a?_0x40be44:_0x2cad3d,_0x72234a,_0x432a0f,_0x42cda5));}}[_0x47cc0f(0x1fe)](_0x182921,_0x22990c,_0x2e14fa,_0xb421ec,_0x6ba138,_0x284f04,_0x2cf9d9){const _0x1cca46=_0x47cc0f;let _0x4e74c9=this[_0x1cca46(0x242)],_0x5dcfa1=this['_subUnitId'];this[_0x1cca46(0x242)]=_0x182921,this['_subUnitId']=_0x22990c;let _0x151704=this[_0x1cca46(0x496)](_0x6ba138),_0x3af8cb=this[_0x1cca46(0x496)](_0x284f04);if(this[_0x1cca46(0x242)]=_0x4e74c9,this['_subUnitId']=_0x5dcfa1,!_0x151704||!_0x3af8cb)return;let _0x41b6b0=_0xb421ec[_0x1cca46(0x2d8)](),_0x28cdd9=(0x0,_0x4f5ff8[_0x1cca46(0x421)])(_0x151704,_0x3af8cb,_0x41b6b0);_0x28cdd9&&_0xb421ec['updateLinePoints'](_0x28cdd9);let _0x5b8ed8=(0x0,_0x4f5ff8[_0x1cca46(0x22c)])(_0x28cdd9,_0x41b6b0);_0x5b8ed8[_0x1cca46(0x29a)]!==_0x41b6b0&&_0xb421ec[_0x1cca46(0x2eb)](_0x5b8ed8[_0x1cca46(0x29a)]),_0xb421ec[_0x1cca46(0x4e7)]();for(let [_0x1ae63e,_0xea6181]of Object['entries'](_0x5b8ed8[_0x1cca46(0x296)]))_0xb421ec['setAdjustValueByName'](_0x1ae63e,_0xea6181);_0xb421ec[_0x1cca46(0x210)]({'width':_0x5b8ed8[_0x1cca46(0x377)]['width'],'height':_0x5b8ed8[_0x1cca46(0x377)][_0x1cca46(0x1e8)]}),_0x2cf9d9['transformByState']({'flipX':_0x5b8ed8[_0x1cca46(0x377)]['flipX'],'flipY':_0x5b8ed8[_0x1cca46(0x377)][_0x1cca46(0x4b0)],'left':_0x5b8ed8['worldRect'][_0x1cca46(0x3c3)],'top':_0x5b8ed8['worldRect'][_0x1cca46(0x3ad)],'width':_0x5b8ed8['worldRect']['width'],'height':_0x5b8ed8[_0x1cca46(0x377)][_0x1cca46(0x1e8)],'angle':_0x5b8ed8['rotation']}),_0xb421ec[_0x1cca46(0x45f)]();}[_0x47cc0f(0x3df)](_0x1d6c2e,_0x2663cb,_0x142285,_0x4b8253,_0x57cebf,_0x104294,_0x303ef3,_0xb65512){const _0x44c5cb=_0x47cc0f;let _0x3fd264=this[_0x44c5cb(0x242)],_0xa7fdc9=this[_0x44c5cb(0x2ab)];this[_0x44c5cb(0x242)]=_0x1d6c2e,this[_0x44c5cb(0x2ab)]=_0x2663cb;let _0x1d2728=this[_0x44c5cb(0x496)](_0x57cebf);if(this[_0x44c5cb(0x242)]=_0x3fd264,this[_0x44c5cb(0x2ab)]=_0xa7fdc9,!_0x1d2728)return;let {left:_0x5a353e=0x0,top:_0x5c247c=0x0,width:_0x2b60ee=0x0,height:_0x335e34=0x0,flipX:_0xeaed54=!0x1,flipY:_0x589cfb=!0x1}=_0x303ef3[_0x44c5cb(0x23f)],_0x235aea=_0x4b8253['getConnectorLinePoints']();if(_0x235aea['length']<0x2)return;let _0x2c6e0c=new _0x4f5ff8['ConnectorCoordinateTransform']({'left':_0x5a353e,'top':_0x5c247c,'width':_0x2b60ee,'height':_0x335e34,'flipX':_0xeaed54,'flipY':_0x589cfb}),_0x508c79=_0x104294?_0x235aea[_0x235aea[_0x44c5cb(0x28e)]-0x1]:_0x235aea[0x0],_0x1ce91c=_0x2c6e0c[_0x44c5cb(0x42f)](_0x508c79),_0x2c9aab=_0x4f5ff8[_0x44c5cb(0x275)][_0x44c5cb(0x3d2)](_0x1ce91c,_0x1d2728[_0x44c5cb(0x220)],!_0x104294);_0xb65512[_0x44c5cb(0x4a6)]({'flipX':_0x2c9aab[_0x44c5cb(0x377)]['flipX'],'flipY':_0x2c9aab['worldRect']['flipY'],'left':_0x2c9aab[_0x44c5cb(0x377)]['left'],'top':_0x2c9aab[_0x44c5cb(0x377)][_0x44c5cb(0x3ad)],'width':_0x2c9aab[_0x44c5cb(0x377)]['width'],'height':_0x2c9aab['worldRect'][_0x44c5cb(0x1e8)],'angle':_0x2c9aab[_0x44c5cb(0x377)][_0x44c5cb(0x25f)]}),_0xb65512['makeDirty'](!0x0);}[_0x47cc0f(0x3cc)](){const _0x19ae7d=_0x47cc0f;this[_0x19ae7d(0x299)][_0x19ae7d(0x28e)]!==0x0&&(this[_0x19ae7d(0x299)][_0x19ae7d(0x3ec)](_0x3ed745=>{const _0x56ff39=_0x19ae7d;_0x3ed745[_0x56ff39(0x435)]();}),this[_0x19ae7d(0x299)]=[]);}['_registerDrawingMoveHandler'](){const _0x519b9e=_0x47cc0f;let _0x47ef6e=this[_0x519b9e(0x26b)]['getCurrentTypeOfUnit$'](_0x1f6ce6['UniverInstanceType'][_0x519b9e(0x1e0)]);this[_0x519b9e(0x216)](_0x47ef6e[_0x519b9e(0x43f)]((0x0,_0x21c04f[_0x519b9e(0x316)])(_0x5b1985=>_0x5b1985?_0x5b1985[_0x519b9e(0x42b)][_0x519b9e(0x43f)]((0x0,_0x21c04f[_0x519b9e(0x316)])(_0x19e9fb=>{const _0xc124ce=_0x519b9e;if(!_0x19e9fb)return _0x21c04f[_0xc124ce(0x30d)];let _0x53ec88=_0x5b1985[_0xc124ce(0x488)](),_0x54d507=this[_0xc124ce(0x4bb)][_0xc124ce(0x350)](_0x53ec88),_0x1be836=_0x54d507==null?void 0x0:_0x54d507['scene'];return _0x1be836?(0x0,_0x21c04f['of'])(_0x1be836):_0x21c04f['EMPTY'];})):_0x21c04f[_0x519b9e(0x30d)]))['subscribe'](_0x53521b=>{const _0x5c3592=_0x519b9e;let _0x227e03=_0x53521b[_0x5c3592(0x33c)]();this[_0x5c3592(0x216)](_0x53521b[_0x5c3592(0x3ac)][_0x5c3592(0x4a2)](_0x29aa19=>{const _0x1469c3=_0x5c3592;this[_0x1469c3(0x304)]&&this['_activeShapeId']&&this[_0x1469c3(0x3cc)]();})),this[_0x5c3592(0x216)](_0x227e03[_0x5c3592(0x1f6)][_0x5c3592(0x4b1)](_0x367b87=>{const _0xd4039c=_0x5c3592;let {objects:_0x3fbbb2}=_0x367b87;this[_0xd4039c(0x3cc)](),_0x3fbbb2!==null&&_0x3fbbb2[_0xd4039c(0x1ec)]===0x1&&_0x3fbbb2[_0xd4039c(0x4a9)]()[_0xd4039c(0x232)]()[_0xd4039c(0x337)]instanceof _0x2f4556&&(this[_0xd4039c(0x304)]=!0x0);})),this[_0x5c3592(0x216)](_0x227e03[_0x5c3592(0x39c)][_0x5c3592(0x4b1)](_0x45d372=>{const _0x406628=_0x5c3592;this[_0x406628(0x304)]&&this[_0x406628(0x3cc)]();})),this['disposeWithMe'](_0x53521b[_0x5c3592(0x1e9)][_0x5c3592(0x4a2)](()=>{const _0x2bded6=_0x5c3592;this[_0x2bded6(0x304)]&&(this[_0x2bded6(0x304)]=!0x1,this[_0x2bded6(0x396)]());})),this[_0x5c3592(0x216)](_0x227e03[_0x5c3592(0x1da)][_0x5c3592(0x4b1)](()=>{const _0xa61705=_0x5c3592;this[_0xa61705(0x242)]&&this[_0xa61705(0x2ab)]&&this[_0xa61705(0x333)]&&this[_0xa61705(0x416)][_0xa61705(0x3a2)]({'unitId':this['_unitId'],'subUnitId':this[_0xa61705(0x2ab)],'drawingId':this[_0xa61705(0x333)]})&&(this[_0xa61705(0x3cc)](),this['_addShapeConnectorHandlerObjects']());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x804c43=_0x47cc0f;this[_0x804c43(0x216)](this[_0x804c43(0x416)][_0x804c43(0x2c6)][_0x804c43(0x4b1)](_0x42866b=>{const _0x5e4d8a=_0x804c43;if(_0x42866b[_0x5e4d8a(0x28e)]===0x1){let _0x1a12b6=_0x42866b[0x0];if(_0x1a12b6[_0x5e4d8a(0x2b2)]===_0x1f6ce6[_0x5e4d8a(0x38b)][_0x5e4d8a(0x3c0)]){let _0x3e9a82=this[_0x5e4d8a(0x3c4)][_0x5e4d8a(0x381)](_0x1a12b6[_0x5e4d8a(0x394)],_0x1a12b6[_0x5e4d8a(0x2e1)],_0x1a12b6['drawingId']);if(_0x3e9a82&&(0x0,_0x4f5ff8[_0x5e4d8a(0x3d1)])(_0x3e9a82[_0x5e4d8a(0x2d8)]())){this['_activeShapeId']=_0x1a12b6[_0x5e4d8a(0x257)],this['_unitId']=_0x1a12b6[_0x5e4d8a(0x394)],this[_0x5e4d8a(0x2ab)]=_0x1a12b6[_0x5e4d8a(0x2e1)],this[_0x5e4d8a(0x3cc)](),this[_0x5e4d8a(0x396)]();return;}}}this[_0x5e4d8a(0x333)]=void 0x0,this[_0x5e4d8a(0x242)]=void 0x0,this[_0x5e4d8a(0x2ab)]=void 0x0,this[_0x5e4d8a(0x3cc)]();})),this[_0x804c43(0x216)](this['_drawingManagerService'][_0x804c43(0x213)][_0x804c43(0x4b1)](_0x584036=>{const _0x46ac09=_0x804c43;if(_0x584036[_0x46ac09(0x28e)]===0x1){var _0xe57058;let _0x248a9c=_0x584036[0x0],_0x377cbc=(_0xe57058=this['_drawingManagerService']['getDrawingByParam'](_0x248a9c))==null?void 0x0:_0xe57058[_0x46ac09(0x2b2)];_0x377cbc===_0x1f6ce6[_0x46ac09(0x38b)][_0x46ac09(0x3c0)]&&_0x248a9c['drawingId']===this[_0x46ac09(0x333)]?(this[_0x46ac09(0x3cc)](),this[_0x46ac09(0x396)]()):!this[_0x46ac09(0x333)]&&_0x377cbc===_0x1f6ce6[_0x46ac09(0x38b)]['DRAWING_SHAPE']&&this[_0x46ac09(0x219)](_0x248a9c[_0x46ac09(0x394)],_0x248a9c[_0x46ac09(0x2e1)],_0x248a9c[_0x46ac09(0x257)]);}})),this[_0x804c43(0x216)](this[_0x804c43(0x416)][_0x804c43(0x1e6)]['subscribe'](_0x5f32bc=>{const _0x150f15=_0x804c43;for(let _0x27edb5 of _0x5f32bc){let {drawingId:_0x10f1e8}=_0x27edb5;if(this[_0x150f15(0x333)]===_0x10f1e8){this[_0x150f15(0x1f4)]();return;}}}));}['_handleConnectedEndpointMove'](_0xe0ca3f,_0x16e063,_0x3a797e,_0x192ed0,_0x432174){const _0x2a8ca4=_0x47cc0f;var _0x227940,_0x1eafd2;if(!this[_0x2a8ca4(0x2f6)])return;let _0x11ba03=this['_getConnectPointInfo'](_0xe0ca3f);if(!_0x11ba03)return;let _0x597c1b=this[_0x2a8ca4(0x46a)]?this['_currentConnectionTarget'][_0x2a8ca4(0x38a)]:_0x16e063,_0x2282cd=this[_0x2a8ca4(0x46a)]?this[_0x2a8ca4(0x46a)][_0x2a8ca4(0x25f)]:this[_0x2a8ca4(0x4df)](_0x11ba03[_0x2a8ca4(0x220)],_0x597c1b),_0x4b0826;if(this[_0x2a8ca4(0x46a)]){let _0x294492=this[_0x2a8ca4(0x416)][_0x2a8ca4(0x3a2)]({'unitId':this[_0x2a8ca4(0x46a)][_0x2a8ca4(0x394)],'subUnitId':this[_0x2a8ca4(0x46a)][_0x2a8ca4(0x2e1)],'drawingId':this[_0x2a8ca4(0x46a)][_0x2a8ca4(0x4d8)]});if(_0x294492!=null&&_0x294492[_0x2a8ca4(0x23f)]){let {left:_0x404d04=0x0,top:_0x1f97b5=0x0,width:_0x56200f=0x0,height:_0x5cc7e9=0x0,angle:_0x398860}=_0x294492[_0x2a8ca4(0x23f)];_0x4b0826=(0x0,_0x4f5ff8['getBasicShapeRotateBound'])({'left':_0x404d04,'top':_0x1f97b5,'width':_0x56200f,'height':_0x5cc7e9},_0x398860||0x0);}else _0x4b0826={'left':_0x597c1b['x'],'top':_0x597c1b['y'],'width':0x0,'height':0x0};}else _0x4b0826={'left':_0x597c1b['x'],'top':_0x597c1b['y'],'width':0x0,'height':0x0};let _0x30f9ad={'point':_0x597c1b,'angle':_0x2282cd,'bounds':_0x4b0826},_0x1b3987=_0x3a797e?_0x30f9ad:_0x11ba03,_0x5dde9a=_0x3a797e?_0x11ba03:_0x30f9ad,_0x2e31f2=this[_0x2a8ca4(0x2f6)][_0x2a8ca4(0x2d8)](),_0xf85b80=(0x0,_0x4f5ff8[_0x2a8ca4(0x421)])(_0x1b3987,_0x5dde9a,_0x2e31f2);_0xf85b80&&this[_0x2a8ca4(0x2f6)][_0x2a8ca4(0x3e3)](_0xf85b80);let _0x1930a7=(0x0,_0x4f5ff8[_0x2a8ca4(0x22c)])(_0xf85b80,_0x2e31f2);_0x1930a7[_0x2a8ca4(0x29a)]!==_0x2e31f2&&this[_0x2a8ca4(0x2f6)]['changeShapeType'](_0x1930a7[_0x2a8ca4(0x29a)]);for(let [_0x3d8168,_0x502b1c]of Object[_0x2a8ca4(0x410)](_0x1930a7[_0x2a8ca4(0x296)]))this[_0x2a8ca4(0x2f6)][_0x2a8ca4(0x44d)](_0x3d8168,_0x502b1c);this[_0x2a8ca4(0x2f6)][_0x2a8ca4(0x210)]({'width':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x300)],'height':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x1e8)]}),_0x192ed0[_0x2a8ca4(0x4a6)]({'flipX':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x42d)],'flipY':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x4b0)],'left':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x3c3)],'top':_0x1930a7['worldRect'][_0x2a8ca4(0x3ad)],'width':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x300)],'height':_0x1930a7[_0x2a8ca4(0x377)][_0x2a8ca4(0x1e8)],'angle':_0x1930a7[_0x2a8ca4(0x4dc)]}),_0x192ed0[_0x2a8ca4(0x49b)](!0x0);let _0x4c2051=(_0x227940=(_0x1eafd2=this['_currentConnectionTarget'])==null?void 0x0:_0x1eafd2[_0x2a8ca4(0x38a)])==null?_0x16e063:_0x227940;_0x432174[_0x2a8ca4(0x4a6)]({'left':_0x4c2051['x']-_0x4f5ff8[_0x2a8ca4(0x4db)][_0x2a8ca4(0x366)],'top':_0x4c2051['y']-_0x4f5ff8[_0x2a8ca4(0x4db)][_0x2a8ca4(0x366)]});}['_handleFreeEndpointMove'](_0x2b3b1d,_0xad0e0,_0x293d10,_0x31bf69,_0x276422){const _0x3fa779=_0x47cc0f;var _0x129c53,_0x59b8e8,_0xaa68fa,_0x24a996;let _0x2fdc17=(_0x129c53=(_0x59b8e8=this['_currentConnectionTarget'])==null?void 0x0:_0x59b8e8[_0x3fa779(0x38a)])==null?_0x2b3b1d:_0x129c53,_0x1ab1d2=_0x4f5ff8[_0x3fa779(0x275)]['computeConnectorResizeLayout'](_0xad0e0,_0x2fdc17,_0x293d10);_0x31bf69[_0x3fa779(0x4a6)]({'flipX':_0x1ab1d2['worldRect'][_0x3fa779(0x42d)],'flipY':_0x1ab1d2[_0x3fa779(0x377)][_0x3fa779(0x4b0)],'left':_0x1ab1d2[_0x3fa779(0x377)][_0x3fa779(0x3c3)],'top':_0x1ab1d2[_0x3fa779(0x377)]['top'],'width':_0x1ab1d2[_0x3fa779(0x377)][_0x3fa779(0x300)],'height':_0x1ab1d2[_0x3fa779(0x377)][_0x3fa779(0x1e8)],'angle':_0x1ab1d2['worldRect'][_0x3fa779(0x25f)]});let _0x23bdea=(_0xaa68fa=(_0x24a996=this[_0x3fa779(0x46a)])==null?void 0x0:_0x24a996[_0x3fa779(0x38a)])==null?_0x2b3b1d:_0xaa68fa;_0x276422[_0x3fa779(0x4a6)]({'left':_0x23bdea['x']-_0x4f5ff8[_0x3fa779(0x4db)]['cxnPointRadius'],'top':_0x23bdea['y']-_0x4f5ff8[_0x3fa779(0x4db)][_0x3fa779(0x366)]});}[_0x47cc0f(0x496)](_0x184d4c){const _0x5a5e71=_0x47cc0f;if(!this[_0x5a5e71(0x242)]||!this[_0x5a5e71(0x2ab)])return null;let {shapeId:_0x142e96,cxnIndex:_0x3d228b}=_0x184d4c,_0x2aebbe=this[_0x5a5e71(0x3c4)][_0x5a5e71(0x381)](this[_0x5a5e71(0x242)],this[_0x5a5e71(0x2ab)],_0x142e96);if(!_0x2aebbe)return null;let _0x41c88f=this[_0x5a5e71(0x416)][_0x5a5e71(0x3a2)]({'unitId':this[_0x5a5e71(0x242)],'subUnitId':this[_0x5a5e71(0x2ab)],'drawingId':_0x142e96});if(!(_0x41c88f!=null&&_0x41c88f[_0x5a5e71(0x23f)]))return null;let {left:_0xd51f4e=0x0,top:_0x1a8fe9=0x0,width:_0x398dd5=0x0,height:_0x4f5baa=0x0,flipX:_0x34d166=!0x1,flipY:_0x5dcef8=!0x1,angle:_0x101b70}=_0x41c88f[_0x5a5e71(0x23f)];_0x2aebbe[_0x5a5e71(0x210)]({'width':_0x398dd5,'height':_0x4f5baa});let _0x1d363b=_0x2aebbe[_0x5a5e71(0x3b8)]()[_0x5a5e71(0x3f8)](_0x424930=>_0x424930[_0x5a5e71(0x44c)]===_0x3d228b);if(!_0x1d363b)return null;let _0x4f312d=_0x34d166?_0x398dd5-_0x1d363b['x']:_0x1d363b['x'],_0x4d4405=_0x5dcef8?_0x4f5baa-_0x1d363b['y']:_0x1d363b['y'];if(_0x101b70!==0x0&&_0x101b70!=null){let _0x286dd0=_0x101b70*Math['PI']/0xb4,_0x20cd23=Math[_0x5a5e71(0x46c)](_0x286dd0),_0x3fa53a=Math[_0x5a5e71(0x494)](_0x286dd0),_0x3170df=_0x398dd5/0x2,_0x198bc9=_0x4f5baa/0x2,_0x17da06=_0x4f312d-_0x3170df,_0x23cf43=_0x4d4405-_0x198bc9;_0x4f312d=_0x3170df+_0x17da06*_0x20cd23-_0x23cf43*_0x3fa53a,_0x4d4405=_0x198bc9+_0x17da06*_0x3fa53a+_0x23cf43*_0x20cd23;}_0x4f312d+=_0xd51f4e,_0x4d4405+=_0x1a8fe9;let _0x20d25d=_0x1d363b[_0x5a5e71(0x4f6)]/0xea60;_0x34d166&&(_0x20d25d=0xb4-_0x20d25d),_0x5dcef8&&(_0x20d25d=-_0x20d25d),_0x20d25d+=_0x101b70||0x0,_0x20d25d=(_0x20d25d%0x168+0x168)%0x168;let _0x13a15d=(0x0,_0x4f5ff8[_0x5a5e71(0x485)])({'left':_0xd51f4e,'top':_0x1a8fe9,'width':_0x398dd5,'height':_0x4f5baa},_0x101b70||0x0);return{'point':{'x':_0x4f312d,'y':_0x4d4405},'angle':_0x20d25d,'bounds':_0x13a15d};}[_0x47cc0f(0x4df)](_0x4a0156,_0x401ca1){const _0x57613c=_0x47cc0f;let _0x3396e6=_0x401ca1['x']-_0x4a0156['x'],_0x472454=_0x401ca1['y']-_0x4a0156['y'];return Math[_0x57613c(0x21c)](_0x3396e6)>=Math[_0x57613c(0x21c)](_0x472454)?_0x3396e6>=0x0?0xb4:0x0:_0x472454>=0x0?0x10e:0x5a;}['_reset'](){const _0x2a946b=_0x47cc0f;this[_0x2a946b(0x333)]=void 0x0,this[_0x2a946b(0x242)]=void 0x0,this[_0x2a946b(0x2ab)]=void 0x0,this[_0x2a946b(0x3cc)]();}[_0x47cc0f(0x435)](){const _0x1263ea=_0x47cc0f;this[_0x1263ea(0x3cc)](),super['dispose']();}};_0x410c0c=_0x51130a([_0x3607f9(0x1,_0x1f6ce6[_0x47cc0f(0x2bd)]),_0x3607f9(0x2,_0x58b748[_0x47cc0f(0x34e)]),_0x3607f9(0x3,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x4,_0x1f6ce6[_0x47cc0f(0x32e)]),_0x3607f9(0x5,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be['SheetsShapeService'])),_0x3607f9(0x6,(0x0,_0x1f6ce6['Inject'])(_0x40f08e)),_0x3607f9(0x7,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x53675d))],_0x410c0c);let _0x1052b2=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x26186d,_0x1c4194,_0x54d610){const _0x3bae67=_0x47cc0f;super(),this[_0x3bae67(0x314)]=_0x26186d,this[_0x3bae67(0x416)]=_0x1c4194,this[_0x3bae67(0x36d)]=_0x54d610,this[_0x3bae67(0x36b)]();}['_initPrinting'](){const _0x5f2b06=_0x47cc0f;this['disposeWithMe'](this[_0x5f2b06(0x314)][_0x5f2b06(0x3d3)][_0x5f2b06(0x44e)](this[_0x5f2b06(0x314)][_0x5f2b06(0x3d3)][_0x5f2b06(0x31e)]()[_0x5f2b06(0x491)],{'handler':(_0x3e61ce,_0x167e6f,_0x4101c6)=>{const _0x51e637=_0x5f2b06;var _0x4d197d;let {unitId:_0x1c1b4b,subUnitId:_0x32d92e,scene:_0x45e767,resourceCollector:_0x405146}=_0x167e6f,_0x4383c1=(_0x4d197d=this['_drawingManagerService']['getDrawingDataForUnit'](_0x1c1b4b))==null?void 0x0:_0x4d197d[_0x32d92e];return _0x4383c1==null||_0x4383c1['order'][_0x51e637(0x3ec)](_0x2bebaa=>{const _0x16753f=_0x51e637;let _0x4929dc=_0x4383c1['data'][_0x2bebaa];_0x4929dc['drawingType']===_0x1f6ce6[_0x16753f(0x38b)][_0x16753f(0x3c0)]&&!_0x4929dc[_0x16753f(0x233)]&&this[_0x16753f(0x36d)][_0x16753f(0x4ae)](_0x4929dc,_0x45e767,{'resourceCollector':_0x405146});}),_0x4101c6(_0x3e61ce);}}));}};_0x1052b2=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6['Inject'])(_0x522354['SheetPrintInterceptorService'])),_0x3607f9(0x1,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x2,(0x0,_0x1f6ce6['Inject'])(_0x32bb5d))],_0x1052b2);let _0x50cf21=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x20681c,_0x150a7b,_0x3be50b){const _0x2aae3a=_0x47cc0f;super(),this[_0x2aae3a(0x3e1)]=_0x20681c,this[_0x2aae3a(0x3c6)]=_0x150a7b,this[_0x2aae3a(0x40a)]=_0x3be50b,this['_initPermission']();}['_initPermission'](){const _0x1f7f5d=_0x47cc0f;this['disposeWithMe'](this[_0x1f7f5d(0x3e1)]['beforeCommandExecuted'](_0x39c948=>{const _0x223e3d=_0x1f7f5d;let _0x23742a,_0x3923a0;if(_0x39c948['id']===_0x5927be['InsertShapeCommand']['id']||_0x39c948['id']===_0x5927be['SetShapeDrawingDataCommand']['id']||_0x39c948['id']===_0x5927be[_0x223e3d(0x386)]['id']){let _0x4511c3=_0x39c948[_0x223e3d(0x305)];_0x23742a=_0x4511c3['unitId'],_0x3923a0=_0x4511c3['subUnitId'];}!_0x23742a||!_0x3923a0||this[_0x223e3d(0x40a)][_0x223e3d(0x2f4)]({'workbookTypes':[_0x231b82[_0x223e3d(0x261)]],'worksheetTypes':[_0x231b82[_0x223e3d(0x480)]]},_0x23742a,_0x3923a0)||this[_0x223e3d(0x40a)][_0x223e3d(0x209)](this[_0x223e3d(0x3c6)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x50cf21=_0x51130a([_0x3607f9(0x0,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1f6ce6[_0x47cc0f(0x2bd)])),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1f6ce6[_0x47cc0f(0x406)])),_0x3607f9(0x2,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x231b82['SheetPermissionCheckController']))],_0x50cf21);let _0x10984f=class extends _0x1f6ce6[_0x47cc0f(0x25d)]{constructor(_0x2dc798,_0x2443cc,_0x35e6d1,_0x133dd3,_0x3a9ae3,_0x2d19a9,_0x46a17e,_0x500b1b,_0x57703d,_0x713778,_0x57679c){const _0x456208=_0x47cc0f;super(),this['_univerInstanceService']=_0x2dc798,this[_0x456208(0x45a)]=_0x2443cc,this[_0x456208(0x2d7)]=_0x35e6d1,this[_0x456208(0x3c4)]=_0x133dd3,this[_0x456208(0x3c6)]=_0x3a9ae3,this[_0x456208(0x3e1)]=_0x2d19a9,this['_drawingManagerService']=_0x46a17e,this[_0x456208(0x264)]=_0x500b1b,this[_0x456208(0x4d2)]=_0x57703d,this['_renderManagerService']=_0x713778,this[_0x456208(0x288)]=_0x57679c,_0x562cac(this,'_sidebarDisposable',null),_0x562cac(this,'_activeShapeInfo',null),_0x562cac(this,_0x456208(0x287),!0x1),_0x562cac(this,_0x456208(0x3cd),0x0),_0x562cac(this,_0x456208(0x4b2),new Set()),_0x562cac(this,'_disposePopups',[]),this[_0x456208(0x47e)](),this[_0x456208(0x216)](this[_0x456208(0x26b)]['getCurrentTypeOfUnit$'](_0x1f6ce6[_0x456208(0x2c2)][_0x456208(0x1e0)])[_0x456208(0x4b1)](_0x362a1c=>{const _0x425b8c=_0x456208;if(!_0x362a1c){var _0x1f2c1e;(_0x1f2c1e=this[_0x425b8c(0x2bc)])==null||_0x1f2c1e[_0x425b8c(0x435)]();return;}this[_0x425b8c(0x22b)](_0x362a1c);})),this[_0x456208(0x26f)](),this[_0x456208(0x31b)](),this[_0x456208(0x2b3)](),this[_0x456208(0x216)](this['_shapeTextEditingService'][_0x456208(0x385)][_0x456208(0x4b1)](_0x20de1c=>{const _0x1235f6=_0x456208;_0x20de1c&&this[_0x1235f6(0x418)]();}));}[_0x47cc0f(0x47e)](){const _0x42b3b8=_0x47cc0f;this[_0x42b3b8(0x2d7)][_0x42b3b8(0x37b)](_0x23ff6d);}[_0x47cc0f(0x31b)](){const _0x46dd02=_0x47cc0f;this[_0x46dd02(0x264)][_0x46dd02(0x328)](_0x1f6ce6[_0x46dd02(0x38b)][_0x46dd02(0x3c0)],this[_0x46dd02(0x43d)]['bind'](this)),this[_0x46dd02(0x264)][_0x46dd02(0x37c)](_0x1f6ce6[_0x46dd02(0x38b)][_0x46dd02(0x3c0)],0x6,0x4);}[_0x47cc0f(0x2b3)](){const _0x377fa0=_0x47cc0f;this[_0x377fa0(0x26b)][_0x377fa0(0x376)](_0x1f6ce6['UniverInstanceType']['UNIVER_SHEET'])[_0x377fa0(0x3ec)](_0x1fe277=>this[_0x377fa0(0x22b)](_0x1fe277));}[_0x47cc0f(0x43d)](_0xfa8a47,_0x43dc88,_0x2ae66c,_0x41f5fa){const _0x18983b=_0x47cc0f;return[{'label':_0x18983b(0x477),'index':0x0,'commandId':_0xff3fa['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'drawingId':_0x2ae66c},'disable':_0x41f5fa===_0x1f6ce6[_0x18983b(0x38b)][_0x18983b(0x324)]},{'label':_0x18983b(0x2e5),'index':0x1,'commandId':_0x43e147['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0xfa8a47,'drawings':[{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'drawingId':_0x2ae66c,'drawingType':_0x41f5fa}]},'disable':!0x1},{'label':_0x18983b(0x392),'index':0x2,'commandId':_0x37a4eb['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'drawingId':_0x2ae66c},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':_0x5927be[_0x18983b(0x49a)]['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'shapeId':_0x2ae66c,'flipH':!0x0},'disable':!0x1},{'label':_0x18983b(0x334),'index':0x4,'commandId':_0x5927be[_0x18983b(0x49a)]['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'shapeId':_0x2ae66c,'flipV':!0x0},'disable':!0x1},{'label':_0x18983b(0x22f),'index':0x4,'commandId':_0x5927be['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'shapeId':_0x2ae66c,'rotate':0x5a},'disable':!0x1},{'label':_0x18983b(0x1fa),'index':0x4,'commandId':_0x5927be[_0x18983b(0x4c4)]['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'shapeId':_0x2ae66c,'rotate':-0x5a},'disable':!0x1},{'label':_0x18983b(0x31a),'index':0x4,'commandId':_0x5927be[_0x18983b(0x28d)]['id'],'commandParams':{'unitId':_0xfa8a47,'subUnitId':_0x43dc88,'shapeId':_0x2ae66c},'disable':!0x1}];}[_0x47cc0f(0x2f5)](_0xc71503,_0x49f91,_0x1cfe5f){const _0x5a44c7=_0x47cc0f;let _0x52caca=this['_sheetsShapeService'][_0x5a44c7(0x40d)](_0xc71503,_0x49f91,_0x1cfe5f),_0x20e69c=this[_0x5a44c7(0x3c4)]['getShapeDataById'](_0xc71503,_0x49f91,_0x1cfe5f);return _0x52caca!==void 0x0&&_0x20e69c!==void 0x0?{'shapeData':_0x20e69c,'shapeId':_0x1cfe5f,'shapeType':_0x52caca,'unitId':_0xc71503,'subUnitId':_0x49f91,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x47cc0f(0x22b)](_0x4db121){const _0x3cab7d=_0x47cc0f;if(!_0x4db121)return;let _0x143ae7=_0x4db121[_0x3cab7d(0x488)]();this[_0x3cab7d(0x4bb)]['has'](_0x143ae7)&&!this['_initializedShapePopupMenu'][_0x3cab7d(0x2ff)](_0x143ae7)&&(this[_0x3cab7d(0x201)](_0x143ae7),this[_0x3cab7d(0x4b2)][_0x3cab7d(0x317)](_0x143ae7));}['_clearPopups'](){const _0x2bf3ca=_0x47cc0f;this[_0x2bf3ca(0x4e8)][_0x2bf3ca(0x3ec)](_0x563c7e=>_0x563c7e[_0x2bf3ca(0x435)]()),this[_0x2bf3ca(0x4e8)][_0x2bf3ca(0x28e)]=0x0;}[_0x47cc0f(0x201)](_0x143327){const _0x5e7052=_0x47cc0f;var _0x1002bd;let _0x435cc2=(_0x1002bd=this[_0x5e7052(0x4bb)]['getRenderById'](_0x143327))==null?void 0x0:_0x1002bd[_0x5e7052(0x469)],_0x2789db=_0x435cc2==null?void 0x0:_0x435cc2[_0x5e7052(0x33c)]();!_0x435cc2||!_0x2789db||(this[_0x5e7052(0x216)](_0x2789db[_0x5e7052(0x492)]['subscribe'](()=>{const _0x15e7ca=_0x5e7052;let _0x2017fe=_0x2789db[_0x15e7ca(0x268)]();if(this['_clearPopups'](),this[_0x15e7ca(0x287)]||_0x2017fe[_0x15e7ca(0x1ec)]>0x1)return;let _0x44baaa=_0x2017fe[_0x15e7ca(0x4a9)]()[_0x15e7ca(0x232)]()[_0x15e7ca(0x337)];if(!_0x44baaa)return;let _0x5df46b=this['_drawingManagerService'][_0x15e7ca(0x2cc)](_0x44baaa['oKey']);if(!_0x5df46b||_0x5df46b[_0x15e7ca(0x2b2)]!==_0x1f6ce6[_0x15e7ca(0x38b)][_0x15e7ca(0x3c0)])return;let {unitId:_0x5dd816,subUnitId:_0x195037,drawingId:_0x4d3891,drawingType:_0x1ceda5}=_0x5df46b,_0xa084ad=this[_0x15e7ca(0x2f5)](_0x5dd816,_0x195037,_0x4d3891);if(!_0xa084ad)return;this[_0x15e7ca(0x4d2)]['setContextValue'](_0x1f6ce6[_0x15e7ca(0x2b7)],!0x0);let _0xace4c4=this[_0x15e7ca(0x264)]['attachPopupToObject'](_0x44baaa,{'componentKey':_0x187552,'direction':_0x15e7ca(0x214),'offset':[0x0,_0x10236c[_0x15e7ca(0x3db)]],'extraProps':{'unitId':_0x5dd816,'subUnitId':_0x195037,'drawingId':_0x4d3891,'drawingType':_0x1ceda5,'shapeType':_0xa084ad[_0x15e7ca(0x40e)],'shapeData':_0xa084ad[_0x15e7ca(0x4e4)]}});this[_0x15e7ca(0x4e8)][_0x15e7ca(0x3e5)](this['disposeWithMe'](_0xace4c4)),this[_0x15e7ca(0x416)][_0x15e7ca(0x436)]()[_0x15e7ca(0x3f8)](_0x1d7259=>_0x1d7259[_0x15e7ca(0x394)]===_0x5dd816&&_0x1d7259[_0x15e7ca(0x2e1)]===_0x195037&&_0x1d7259[_0x15e7ca(0x257)]===_0x4d3891)||this['_drawingManagerService'][_0x15e7ca(0x4bc)]([{'unitId':_0x5dd816,'subUnitId':_0x195037,'drawingId':_0x4d3891}]);})),this[_0x5e7052(0x216)](_0x2789db[_0x5e7052(0x369)][_0x5e7052(0x4b1)](()=>{const _0x542c6d=_0x5e7052;this[_0x542c6d(0x418)](),this[_0x542c6d(0x4d2)]['setContextValue'](_0x1f6ce6['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x542c6d(0x416)]['focusDrawing'](null);})),this[_0x5e7052(0x216)](_0x2789db['changing$'][_0x5e7052(0x4b1)](()=>{const _0x3064cd=_0x5e7052;this[_0x3064cd(0x418)]();})),this[_0x5e7052(0x216)](_0x2789db[_0x5e7052(0x1f6)][_0x5e7052(0x4b1)](()=>{this['_clearPopups']();})));}[_0x47cc0f(0x26f)](){const _0x3bae46=_0x47cc0f;this[_0x3bae46(0x216)](this[_0x3bae46(0x3e1)][_0x3bae46(0x225)](_0x52cb4a=>{const _0x4b82b5=_0x3bae46;if(_0x52cb4a['id']===_0xff3fa['id']){let {unitId:_0x7b37ba,subUnitId:_0x36a432,drawingId:_0x2c9605}=_0x52cb4a[_0x4b82b5(0x305)];this[_0x4b82b5(0x3cd)]+=0x1,this['_activeShapeInfo']=this[_0x4b82b5(0x2f5)](_0x7b37ba,_0x36a432,_0x2c9605),this[_0x4b82b5(0x418)](),this[_0x4b82b5(0x291)]();}if(_0x52cb4a['id']===_0x37a4eb['id']&&(this[_0x4b82b5(0x1ed)]=null,this['_closeShapeEditPanel']()),_0x52cb4a['id']===_0x5927be[_0x4b82b5(0x431)]['id']){let {unitId:_0x484c47,subUnitId:_0x1c820b,shapeId:_0x5508fd}=_0x52cb4a['params'];if(this[_0x4b82b5(0x1ed)]&&this[_0x4b82b5(0x1ed)][_0x4b82b5(0x4d8)]===_0x5508fd){let _0x2450c9=this['_getShapeInfo'](_0x484c47,_0x1c820b,_0x5508fd);_0x2450c9&&(this[_0x4b82b5(0x3cd)]+=0x1,_0x2450c9[_0x4b82b5(0x4f5)]=this[_0x4b82b5(0x3cd)],this[_0x4b82b5(0x1ed)]=_0x2450c9,this[_0x4b82b5(0x287)]&&this[_0x4b82b5(0x291)]());}}})),this[_0x3bae46(0x216)](this[_0x3bae46(0x416)]['focus$'][_0x3bae46(0x4b1)](_0x46afc9=>{const _0x4f5cd9=_0x3bae46;if(this[_0x4f5cd9(0x287)]===!0x1)return;if(_0x46afc9[_0x4f5cd9(0x28e)]===0x0){this[_0x4f5cd9(0x1ed)]=null,this[_0x4f5cd9(0x254)]();return;}if(_0x46afc9[_0x4f5cd9(0x28e)]===0x1&&_0x46afc9[0x0][_0x4f5cd9(0x2b2)]===_0x1f6ce6['DrawingTypeEnum']['DRAWING_SHAPE']&&(this[_0x4f5cd9(0x3cd)]+=0x1,this['_activeShapeInfo']=this[_0x4f5cd9(0x2f5)](_0x46afc9[0x0][_0x4f5cd9(0x394)],_0x46afc9[0x0]['subUnitId'],_0x46afc9[0x0][_0x4f5cd9(0x257)]),this[_0x4f5cd9(0x1ed)])){this[_0x4f5cd9(0x291)]();return;}let _0x547436=_0x46afc9[_0x4f5cd9(0x272)](_0x56a581=>_0x56a581[_0x4f5cd9(0x2b2)]===_0x1f6ce6[_0x4f5cd9(0x38b)][_0x4f5cd9(0x3c0)]);if(_0x46afc9['length']>0x1&&_0x547436[_0x4f5cd9(0x28e)]===_0x46afc9[_0x4f5cd9(0x28e)]){if(this[_0x4f5cd9(0x3cd)]+=0x1,this[_0x4f5cd9(0x1ed)]=this[_0x4f5cd9(0x2f5)](_0x46afc9[0x0][_0x4f5cd9(0x394)],_0x46afc9[0x0][_0x4f5cd9(0x2e1)],_0x46afc9[0x0][_0x4f5cd9(0x257)]),this[_0x4f5cd9(0x1ed)]){this[_0x4f5cd9(0x291)]();return;}}else{if(this[_0x4f5cd9(0x3cd)]+=0x1,this['_activeShapeInfo']=this[_0x4f5cd9(0x2f5)](_0x46afc9[0x0]['unitId'],_0x46afc9[0x0]['subUnitId'],_0x46afc9[0x0]['drawingId']),this[_0x4f5cd9(0x1ed)]){this[_0x4f5cd9(0x1ed)][_0x4f5cd9(0x440)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x4f5cd9(0x254)]();}));}['_openShapeEditPanel'](){const _0x5a0159=_0x47cc0f;this[_0x5a0159(0x1ed)]&&(this[_0x5a0159(0x2bc)]=this[_0x5a0159(0x45a)][_0x5a0159(0x270)]({'id':_0x449f94,'header':{'title':this[_0x5a0159(0x3c6)]['t'](_0x5a0159(0x4be))},'width':0x184,'children':{'label':_0x449f94,...this[_0x5a0159(0x1ed)]},'onClose':()=>{const _0x502248=_0x5a0159;this['_drawingManagerService']['focusDrawing'](null),this[_0x502248(0x4d2)]['setContextValue'](_0x1f6ce6[_0x502248(0x2b7)],!0x1),this[_0x502248(0x2bc)]=null;}}),this[_0x5a0159(0x287)]=!0x0);}[_0x47cc0f(0x254)](){const _0x13a881=_0x47cc0f;this[_0x13a881(0x287)]=!0x1,this[_0x13a881(0x45a)][_0x13a881(0x452)](_0x449f94),this[_0x13a881(0x2bc)]=null,this[_0x13a881(0x4d2)]['setContextValue'](_0x1f6ce6['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x13a881(0x416)][_0x13a881(0x4bc)](null);}};_0x10984f=_0x51130a([_0x3607f9(0x0,_0x1f6ce6['IUniverInstanceService']),_0x3607f9(0x1,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x229cfc[_0x47cc0f(0x434)])),_0x3607f9(0x2,_0x229cfc[_0x47cc0f(0x265)]),_0x3607f9(0x3,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x5927be[_0x47cc0f(0x21d)])),_0x3607f9(0x4,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x1f6ce6[_0x47cc0f(0x406)])),_0x3607f9(0x5,_0x1f6ce6[_0x47cc0f(0x2bd)]),_0x3607f9(0x6,_0x2ee308[_0x47cc0f(0x4c1)]),_0x3607f9(0x7,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x522354[_0x47cc0f(0x2be)])),_0x3607f9(0x8,_0x1f6ce6['IContextService']),_0x3607f9(0x9,_0x58b748[_0x47cc0f(0x34e)]),_0x3607f9(0xa,(0x0,_0x1f6ce6[_0x47cc0f(0x35f)])(_0x58197e))],_0x10984f);let _0x337844=class extends _0x1f6ce6['Plugin']{constructor(_0x47620e=_0x796f15,_0x36203c,_0x43f417,_0x5a7f69,_0x528b0d){const _0x47d3bf=_0x47cc0f;super(),this[_0x47d3bf(0x48b)]=_0x47620e,this[_0x47d3bf(0x487)]=_0x36203c,this[_0x47d3bf(0x3e1)]=_0x43f417,this[_0x47d3bf(0x3bb)]=_0x5a7f69,this[_0x47d3bf(0x4bb)]=_0x528b0d;let {..._0xffea1e}=(0x0,_0x1f6ce6[_0x47d3bf(0x1e5)])({},_0x796f15,this['_config']);this[_0x47d3bf(0x3bb)][_0x47d3bf(0x227)](_0x47d3bf(0x4cf),_0xffea1e),this[_0x47d3bf(0x2e3)]();}[_0x47cc0f(0x23b)](){const _0x4f2a0c=_0x47cc0f;(0x0,_0x1f6ce6[_0x4f2a0c(0x3f3)])(this[_0x4f2a0c(0x487)],[[_0x10984f],[_0x22592a],[_0x32bb5d],[_0x1052b2]]);}[_0x47cc0f(0x276)](){const _0x4e513a=_0x47cc0f;this[_0x4e513a(0x487)][_0x4e513a(0x1e3)](_0x10984f)['initShapePopupMenu']();}[_0x47cc0f(0x234)](){const _0x1fbf2d=_0x47cc0f;[[_0x53675d],[_0x40f08e],[_0x14dca1]][_0x1fbf2d(0x3ec)](_0xe57e1=>this['_injector'][_0x1fbf2d(0x317)](_0xe57e1)),(0x0,_0x1f6ce6[_0x1fbf2d(0x3f3)])(this[_0x1fbf2d(0x487)],[[_0x14dca1],[_0x40f08e]]),this[_0x1fbf2d(0x4bb)][_0x1fbf2d(0x3aa)](_0x1f6ce6['UniverInstanceType'][_0x1fbf2d(0x1e0)],[_0x53675d]),this[_0x1fbf2d(0x4bb)][_0x1fbf2d(0x3aa)](_0x1f6ce6['UniverInstanceType'][_0x1fbf2d(0x1e0)],[_0x4cfdda]),this[_0x1fbf2d(0x4bb)]['registerRenderModule'](_0x1f6ce6['UniverInstanceType'][_0x1fbf2d(0x1e0)],[_0x410c0c]),this[_0x1fbf2d(0x4bb)]['registerRenderModule'](_0x1f6ce6[_0x1fbf2d(0x2c2)][_0x1fbf2d(0x1e0)],[_0x3066a2]),this['_renderManagerService'][_0x1fbf2d(0x3aa)](_0x1f6ce6[_0x1fbf2d(0x2c2)][_0x1fbf2d(0x4f2)],[_0x28e3b2]);}[_0x47cc0f(0x2e9)](){const _0x2c6dc1=_0x47cc0f;this[_0x2c6dc1(0x487)][_0x2c6dc1(0x317)]([_0x4c917c]),this['_injector'][_0x2c6dc1(0x1e3)](_0x4c917c);let _0x353d98=this[_0x2c6dc1(0x487)];[[_0x10984f],[_0x22592a],[_0x32bb5d],[_0x1052b2],[_0x3e709a],[_0x58197e],[_0x28ef11],[_0x277ed1],[_0x50cf21]][_0x2c6dc1(0x3ec)](_0x2c96c3=>_0x353d98['add'](_0x2c96c3)),(0x0,_0x1f6ce6[_0x2c6dc1(0x3f3)])(this[_0x2c6dc1(0x487)],[[_0x10984f],[_0x22592a],[_0x32bb5d],[_0x3e709a],[_0x58197e],[_0x28ef11],[_0x277ed1],[_0x50cf21]]);}[_0x47cc0f(0x2e3)](){const _0x168694=_0x47cc0f;[_0x5cbac9,_0x4417a8,_0x37a4eb,_0xff3fa,_0x28d529,_0x8a7706][_0x168694(0x3ec)](_0x4a66ea=>this[_0x168694(0x216)](this[_0x168694(0x3e1)][_0x168694(0x282)](_0x4a66ea)));}};_0x562cac(_0x337844,_0x47cc0f(0x4b8),_0x1f6ce6[_0x47cc0f(0x2c2)][_0x47cc0f(0x1e0)]),_0x562cac(_0x337844,_0x47cc0f(0x428),_0x47cc0f(0x2ed)),_0x562cac(_0x337844,_0x47cc0f(0x3e6),_0x42bb74),_0x562cac(_0x337844,_0x47cc0f(0x4f5),_0x2a0107),_0x337844=_0x51130a([(0x0,_0x1f6ce6[_0x47cc0f(0x203)])(_0x45c59e['UniverLicensePlugin'],_0x10236c['UniverShapeEditorUIPlugin'],_0x1700e5[_0x47cc0f(0x3fc)],_0x5927be['UniverSheetsShapePlugin']),_0x3607f9(0x1,(0x0,_0x1f6ce6['Inject'])(_0x1f6ce6[_0x47cc0f(0x2ae)])),_0x3607f9(0x2,_0x1f6ce6[_0x47cc0f(0x2bd)]),_0x3607f9(0x3,_0x1f6ce6[_0x47cc0f(0x23d)]),_0x3607f9(0x4,_0x58b748[_0x47cc0f(0x34e)])],_0x337844),_0x3349db[_0x47cc0f(0x35e)]=_0x23ff6d,Object[_0x47cc0f(0x2de)](_0x3349db,_0x47cc0f(0x1fb),{'enumerable':!0x0,'get':function(){return _0x337844;}});}));function _0x4bbf(){const _0x4d2bf2=['flipX','setSrcRect','localToWorld','pushUndoRedo','UpdateSheetsShapeDataMutation','offsetX','_createControls','ISidebarService','dispose','getFocusDrawings','getTextModel','ShapeRenderModeEnum','toStringTag','#bcbcbc','GROUP','DRAWING_OBJECT_LAYER_INDEX','getShapePopupMenus','skeleton','pipe','disableShapeOption','setOnSavingEditorData','worldPoints','createShapeTextBoxShapeData','_baseShapeTop','updateDocumentDataMargin','@univerjs/engine-render','_sheetShapeAdjustController','_resetState','getImageSourceCache','_urlImageService','_activeAdjustInfo','index','setAdjustValueByName','intercept','COPY_TYPE','onSavingEditorData$','getStartConnectInfo','close','forward','VIEW_MAIN_TOP','DocCanvasPopManagerService','marginTop','prepareShapeTextDocumentData','currentColor','DrawingCommonPanel','_sidebarService','getShapeDataById','7OzlIsM','_init','evenodd','removeLinePoints','_registerGroupFeaturePasteHook','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','ShapeTextEditorContainer','LEFT','_draw','ShapeIcon','#FFFFFF','object','SetDrawingArrangeCommand','scene','_currentConnectionTarget','getActiveSheet','cos','getSkeletonParam','shouldAllowShapeTextEditorHostSizeShrink','clearAdjustControls','461256UIPGPS','IURLImageService','generateRandomId','DRAWING_IMAGE','pick','_shapeId','_highlightedSiteIndex','sheets-shape-ui.openPanel','adjHandleStroke','isHit','resolveShapeTextEditorWrapStrategy','_drawingType','getDrawingVisible','_showConnectionSites','_initMenu','_insertingShapeKeys','WorksheetEditPermission','isArray','children','copyType','VerticalAlign','getBasicShapeRotateBound','indexOf','_injector','getUnitId','function','drawing.operation.set-drawing-active','_config','StraightConnector1','_iconManager','UniverDocsUi','_clearControls','vertical','PRINTING_COMPONENT_COLLECT','createControl$','canvas','sin','Vector2','_getConnectPointInfo','_cxnIndex','_drawingAddListener','MenuItemType','ToggleSheetsShapeFlipCommand','makeDirty','_registerMoveHandler','_clipService','idSuffix','getUnit','discreteRangeToRange','setShapeProps','subscribeEvent','UniverDocs','applyPoint','description','transformByState','_executeConnectedRouteConnectionCommand','_isHighlighted','values','updateShapeFillImage','_registerComponents','shape-text-','multiply','renderDrawingShape','_adjHandlerPointerUp','flipY','subscribe','_initializedShapePopupMenu','preValue','_cxtHandlerPointerUp','@univerjs-pro/shape-editor-ui','VIEW_MAIN_LEFT','React','type','error','SheetSkeletonManagerService','_renderManagerService','focusDrawing','deriveStateFromActiveSheet$','sheets-shape-ui.formatShape','820LvXzcp','parse','IDrawingManagerService','jsx','Module','SetSheetsShapeRotateCommand','UniverProShapeEditorUi','xlink:href','_shapeService','offsetY','_baseShapeWidth','FromArray','Circle','sectionCanvas','url(#$1','registerFeaturePasteHook','sheets-shape-ui.config','_shapes','getConnectionInfo','_contextService','translateWithPrecision','getDrawingShapeKeyByDrawingSearch','getCurrentLastSelection','highlighted','getObjectIncludeInGroup','shapeId','ShapeTypeEnum','_hasReset','ShapeDefaultConfig','rotation','_sheetDrawingShapeRenderController','_copyInfo','_calculateFreeEndpointAngle','adjName','syncExecuteCommand','DocumentDataModel','unit','shapeData','Documents','beginPath','clearAdjustValue','_disposePopups','cxnPointStrokeWidth','_registerDrawingFocusChangeHandler','@univerjs-pro/sheets-shape-ui','rxjs','_activeShapeAdjustPointList','selectable','image','getTextStyle','UpdateLineShapeResizeCommand','UNIVER_DOC','_isConnecting','UniverDrawing','version','ang','stringify','_findShapeAtPoint','relation','@univerjs-pro/engine-shape','viewportScrollX','_baseShapeLeft','createInternalEditorID','M1.33203\x205.40015C1.33203\x204.55622\x202.01618\x203.87207\x202.86011\x203.87207H10.5998C11.4437\x203.87207\x2012.1278\x204.55622\x2012.1278\x205.40015V13.1398C12.1278\x2013.9837\x2011.4437\x2014.6679\x2010.5998\x2014.6679H2.86011C2.01618\x2014.6679\x201.33203\x2013.9837\x201.33203\x2013.1398V5.40015ZM2.86011\x205.14217C2.71763\x205.14217\x202.60213\x205.25767\x202.60213\x205.40015V13.1398C2.60213\x2013.2823\x202.71763\x2013.3978\x202.86011\x2013.3978H10.5998C10.7422\x2013.3978\x2010.8577\x2013.2823\x2010.8577\x2013.1398V5.40015C10.8577\x205.25767\x2010.7422\x205.14217\x2010.5998\x205.14217H2.86011Z','sheet.image-clip.shape-picker.component','changeEnd$','ImageSourceTypeEnum','sheet.operation.open-shape-object-list-panel','_baseDrawingRect','VIEW_MAIN','assign','UNIVER_SHEET','_getSceneAndTransformerByDrawingSearch','clipTop','get','with','merge','remove$','sheets-shape-ui.insertShape','height','onPointerUp$','getShapeTextData','displayName','size','_activeShapeInfo','shape','_currentUniverService','invert','createElement','RibbonInsertGroup','lineShapeId','_reset','getConnectorLinePoints','changeStart$','end','smartArt','_addControl','sheets-shape-ui.rotateLeft90','UniverSheetsShapeUIPlugin','attachRangeWithCoord','sheet.operation.close-sheet-shape-format-panel','_rerouteConnectorLine','_updateShapeAdjustControls','endConnectionDetection','_popupMenuListener','getShapeTextRect','DependentOn','getInverseCoord','localeService','isEditing','Shape','strokeWidth','blockExecuteWithoutPermission','scale','_createCopyInfoByRange','_sheetInterceptorService','isInGroup','updateDocumentStyle','default','updateContext','_attachConnectorObjectEvent','unsubscribe','update$','top-center','fillImageSource','disposeWithMe','react/jsx-runtime','group','_handleBasicShapeUpdateConnectorLineShape','reverse','40704TSYbow','abs','SheetsShapeService','SheetSkeletonService','_drawRichText','point','_updateAdjustControlPositions','viewBound','getAdjustInfoByName','getCurrentScrollState','onCommandExecuted','getSheetCommandTarget','setConfig','getObjectListPanelSectionIdForDrawingType','getSkeleton','getCurrentTypeOfUnit$','_createShapePopupMenu','computeConnectorRouteLayout','buildClipPath','current','sheets-shape-ui.rotateRight90','fillType','addImageSourceCache','next','hidden','onReady','_executeConnectionCommand','_disposed','drawWith','_generatePasteMutations','objects','setCursor','onRendered','rect','IConfigService','getImage','transform','cxnPointStroke','_focusedDrawings','_unitId','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','name','useMemo','_activeImageId','gdRefX','useReducer','sheet.command.update-shape-data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','OBJECT_LIST_FLOATING_SECTION_ID','prstGeomAdjValues','colorChannel1','_imageIoService','attachTransformerTo','@univerjs/drawing','sheets-shape-text-','getActualSize','forwardRef','_closeShapeEditPanel','@univerjs/sheets-drawing','getEditing','drawingId','sheet.shape.floating-toolbar','getAdjustNames','_isStartAdjusting','insertGroupObject','_baseLeft','Disposable','asObservable','angle','getDrawingSearch','WorkbookEditablePermission','_findNearestConnectionSite','ShapePickerPanel','_sheetCanvasPopManagerService','IMenuManagerService','fill','ShapeArrowSizeEnum','getSelectedObjectMap','getCurrentUnitInfo','_adjName','_univerInstanceService','calculate','getBatchAddOp','1em','_registerOperations','open','startConnectionDetection','filter','SheetsSelectionsService','svg','ConnectorCoordinateTransform','onSteady','getSheetBySheetId','src','register','_initialize','getCurrentRangeDisable$','restore','getCurrentSkeleton','cxnPointFill','_loadShapePictureFill','_editingParams$','getConnectionRelation','registerCommand','DEFAULT_PASTE','undo','clearActiveDrawingObjects','548564iMkbpy','_isOpenedShapeEditPanel','_shapeTextEditingService','_transform','endArrow','_isShouldShowDrawingShapeAdjust','shapeModel','SetSheetsShapeTextVerticalToggleCommand','length','CopySheetCommand','getObject','_openShapeEditPanel','from','set','_targetShapeId','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','adjustValues','_getImagePrstGeom','ShapeModel','_connectorObjects','lineType','getDrawingData','resolveShapeTextDocumentRenderLayout','_updateSrcRectByTransform','_initSelection','DRAWING_TABLE','dom','calcAdjValue','complete','_getImageDrawingInfo','None','DrawingImageClipService','fillImageSourceType','_adjHandlerPointerMove','classType','DrawingRenderService','data','_subUnitId','resetCursor','custom','Injector','_registerDrawingMoveHandler','actualHeight','BUTTON','drawingType','initShapePopupMenu','replace','@univerjs-pro/license','some','FOCUSING_COMMON_DRAWINGS','_currentScene','_transformCalculateSrcRect','Transform','PREDEFINED_HOOK_NAME','_sidebarDisposable','ICommandService','SheetCanvasPopManagerService','getParent','extraProps','startX','UniverInstanceType','TOP','9835080OYTrgO','image-clip-adjust-point-','focus$','jsxs','_context','sheet.shape.text.float-menu','VIEW_MAIN_LEFT_TOP','executeCommand','getDrawingOKey','attrs','isRichText','clip-adj-','SolidFill','SHAPE','startArrow','_cxtHandlerPointerMove','enableObjectsEvent','defs','useEffect','_menuManagerService','getShapeType','_sheetClipboardService','1.0.0-alpha.4','getBentTypeFromPoints','path','SetDrawingApplyMutation','defineProperty','_baseWidth','OPERATION','subUnitId','setShouldShowAdjust','_initCommands','_getDrawingRect','sheets-shape-ui.deleteShape','trim','sheet.command.menu-insert-shape','DocSelectionRenderService','onStarting','Arrow','changeShapeType','ShapeFillEnum','SHEET_SHAPE_UI_PLUGIN','ShapeTextFloatToolbar','onPointerDown$','SHAPE_EDITOR_TRANSFORMER_CONFIG','gdRefY','getMenuHiddenObservable','isStartConnectorPoint','permissionCheckWithoutRange','_getShapeInfo','_activeShapeModel','@univerjs/sheets-ui','_props','_draggingConnectorId','cancelEditing','clip-','targetShapeId','random','setPrstGeom','has','width','54qSfNiM','setEditing','setHighlighted','_isDrawingShapePointDown','params','_insertShapes','@univerjs/docs-ui','horizontal','CUT','Medium','BehaviorSubject','_sheetSkeletonService','EMPTY','CommandType','_getConnectionSiteAngle','symbol','_updateImageAdjValues','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_handleFreeEndpointMove','_sheetPrintInterceptorService','sheet.operation.open-sheet-shape-format-panel','switchMap','add','InsertSheetsShapeMutation','string','sheets-shape-ui.toggleTextVertical','_registerShapeMenu','CURSOR_TYPE','toDisposable','getInterceptPoints','#1a73e8','_getScrollInfo','resourceCollector','@univerjs-pro/sheets-shape','prstGeom','DRAWING_DOM','DRAWING_CHART','_addShapeConnectorHandlerObject','getAdjustValueByName','registerFeatureMenu','_activeTargetShapeId','sheets-shape-ui.objectListPanel.title','REMOVE','_commandExecutedListener','color','IUniverInstanceService','clipHeight','_componentManager','shape-adjust-point-','DRAWING_VIDEO','_activeShapeId','sheets-shape-ui.toggleFlipV','UniverSheets','_sheetBasicShapeConnectionPointController','value','URL','updateConnectionDetection','resize','isHorizontal','getTransformerByCreate','ShapeArrowTypeEnum','Image','adjHandleSize','6736504oIRnDT','@univerjs/core','transformToAxisAlignPosition','isCurvedConnectorShape','getState','disableObjectsEvent','fontFamily','getEndConnectInfo','_drawSimpleText','shapeKey','getUnitType','DrawingApplyType','_onSavingEditorData$','getMatrix','IRenderManagerService','react','getRenderById','12nszxBi','sqrt','0\x200\x2016\x2016','ancestorTransform','_executeResizeCommand','refreshTransform','translate','map','start','_executeConnectedRouteResizeCommand','PictureFill','_handleConnectorPointerUp','getBasicShapeRelation','SheetsShapeUIMenuSchema','Inject','ArrangeTypeEnum','getObjectListPanelTypeName','contentVerticalOffset','DocumentSkeleton','CopyDoubleIcon','ISheetDrawingService','cxnPointRadius','visible','shapeText','clearControl$','DRAWING_UNIT','_initPrinting','substring','_shapeRenderController','delete','DocumentViewModel','_baseHeight','render','ShapeLineTypeEnum','onDblclick$','_handleConnectedEndpointPointerUp','cxnIndex','getAllUnitsForType','worldRect','_drawingRenderService','transformForAngle','UniverEngineRender','mergeMenu','registerFeatureMenuOffset','mask','_registerIcons','_initEditingParams','_initCopyPaste','getShapeModel','@univerjs/docs','setCanUseShapeClip','sheetTransform','editingParams$','UpdateConnectorRelationCommand','_handleConnectedEndpointMove','title','sheetViewStartRow','worldPoint','DrawingTypeEnum','_activeAdjustPointList','getZoomRatio','ShapeFloatingToolbar','getValue','constructor','UniverCore','sheets-shape-ui.hidePanel','_attachAdjustEvent','unitId','axisAlignSheetTransform','_addShapeConnectorHandlerObjects','Path','fontSize','sheet.shape.picker.component','_generateCopyPasteMutations','getDrawingEditable','changing$','gdRefAng','RemoveSheetsShapeMutation','UPDATE','_createShapeAdjustControls','srcRect','getDrawingByParam','@univerjs/ui','UniverIcon','connector-handler-','popup','RENDER_CLASS_TYPE','slice','SheetDrawingAnchor','registerRenderModule','INSERT','onPointerMove$','top','gdRefR','clip','5464701qFhmBO','_baseShapeHeight','univerjs-icon\x20univerjs-icon-','_generateCutPasteMutations','getShapeData','redo','_isStartConnectorPoint','@univerjs/sheets','getConnectionSiteList','_getShapeAdjustInfosById','setShapeData','_configService','oKey','UniverUi','_baseTop','_sheetDrawingService','DRAWING_SHAPE','sheets-shape-ui','FOCUSING_SHAPE_TEXT_EDITOR','left','_sheetsShapeService','viewportScrollY','_localeService','sheets-shape-ui.objectListPanel.open','_addShapeAdjustControl','startY','call','DRAWING_GROUP','_clearShapeConnectorHandlerObjects','_shapeEditPanelVersion','_clearConnectionSites','sheet.shape.object-list.panel','setFillImage','isConnectorShape','computeConnectorResizeLayout','interceptor','_clearShapeAdjustControls','normalizeShapeTextModel','activeAnObject','featurePluginUpdateNotification','_isImagePointerDown','dataModel','stroke','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_updateTransform','resolveShapeTextEditorBehaviorShapeData','div','_moveConnectorWithShape','setPrstGeomAdjValues','_commandService','sheets-shape-ui.imagePanel.crop.shape','updateLinePoints','getBatchRemoveOp','push','packageName','SheetShapeTextEditorContainer','CROSSHAIR','DRAWING_SMART_ART','_loadAndSetImage','_groupCopyPasteController','forEach','_getOrCreateShapeModel','sheetViewStartColumn','clipByShape','includes','DocSelectionManagerService','UniverDrawingUi','touchDependencies','_lastEditingShapeKey','refreshAdjustControls','setContextValue','getRealBound','find','getDrawingPoints','getViewportByCell','draw','UniverSheetsDrawingUIPlugin','useDependency','_initSheetChange','COMMAND','_shapeUpdateListener','getSheetId','_getZoomRatio','refreshShapeFillImage','_handleFreeEndpointPointerUp','parent','LocaleService','Line','addObject','isHighlighted','_sheetPermissionCheckController','_getShapeAdjustPointListById','UniverProSheetsShapeUi','getShapeTypeById','shapeType','getDrawingOrder','entries','_connectionSiteObjects','stopPropagation','isDrawingObject','gradientEndColor','save','_drawingManagerService','tag','_clearPopups','none','SheetScrollManagerService','SHEET_VIEWPORT_KEY','getBatchUpdateOp','SolidLine','ShapePickerDropdown','_registerImageShapeClipDelegate','Observable','routeConnectorLineShape','UUID','useObservable','useRef','onload','@univerjs/drawing-ui','transformToDrawingPosition','pluginName','SetDrawingSelectedOperation','activateDrawingObject','activeSheet$','interceptCommand'];_0x4bbf=function(){return _0x4d2bf2;};return _0x4bbf();}
|