@univerjs-pro/sheets-shape-ui 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3ce055=_0x2c57;(function(_0x156c5a,_0x28bd48){const _0x12ae8b=_0x2c57,_0x240545=_0x156c5a();while(!![]){try{const _0x4991fc=-parseInt(_0x12ae8b(0x4c5))/0x1*(-parseInt(_0x12ae8b(0x25c))/0x2)+parseInt(_0x12ae8b(0x5e8))/0x3+parseInt(_0x12ae8b(0x46d))/0x4*(-parseInt(_0x12ae8b(0x134))/0x5)+-parseInt(_0x12ae8b(0x3bf))/0x6*(-parseInt(_0x12ae8b(0x503))/0x7)+-parseInt(_0x12ae8b(0x42e))/0x8+parseInt(_0x12ae8b(0x626))/0x9+-parseInt(_0x12ae8b(0x1a1))/0xa*(parseInt(_0x12ae8b(0x1aa))/0xb);if(_0x4991fc===_0x28bd48)break;else _0x240545['push'](_0x240545['shift']());}catch(_0x3bb074){_0x240545['push'](_0x240545['shift']());}}}(_0x3011,0xf2400),Object[_0x3ce055(0x475)](exports,Symbol[_0x3ce055(0x447)],{'value':_0x3ce055(0x58c)}));var __create=Object['create'],__defProp=Object[_0x3ce055(0x475)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0x3ce055(0x109)],__getProtoOf=Object[_0x3ce055(0x5ea)],__hasOwnProp=Object[_0x3ce055(0x2c1)][_0x3ce055(0x347)],__copyProps=(_0x45c78d,_0x220b9f,_0x2d333c,_0xff2458)=>{const _0x597cb5=_0x3ce055;if(_0x220b9f&&typeof _0x220b9f===_0x597cb5(0x624)||typeof _0x220b9f==='function')for(var _0x5649c3=__getOwnPropNames(_0x220b9f),_0x254443=0x0,_0x17f305=_0x5649c3['length'],_0x201d18;_0x254443<_0x17f305;_0x254443++){_0x201d18=_0x5649c3[_0x254443],!__hasOwnProp[_0x597cb5(0x5d7)](_0x45c78d,_0x201d18)&&_0x201d18!==_0x2d333c&&__defProp(_0x45c78d,_0x201d18,{'get':(_0x2ecaf9=>_0x220b9f[_0x2ecaf9])[_0x597cb5(0x564)](null,_0x201d18),'enumerable':!(_0xff2458=__getOwnPropDesc(_0x220b9f,_0x201d18))||_0xff2458[_0x597cb5(0x41e)]});}return _0x45c78d;},__toESM=(_0x589e29,_0x5ae95a,_0xe06f16)=>(_0xe06f16=_0x589e29!=null?__create(__getProtoOf(_0x589e29)):{},__copyProps(_0x5ae95a||!_0x589e29||!_0x589e29[_0x3ce055(0x26f)]?__defProp(_0xe06f16,'default',{'value':_0x589e29,'enumerable':!![]}):_0xe06f16,_0x589e29));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x518989){'@babel/helpers - typeof';const _0x282e31=_0x3ce055;return _typeof=_0x282e31(0x346)==typeof Symbol&&_0x282e31(0x4d0)==typeof Symbol[_0x282e31(0x3b5)]?function(_0x4239af){return typeof _0x4239af;}:function(_0x1c0393){const _0x2f6f73=_0x282e31;return _0x1c0393&&'function'==typeof Symbol&&_0x1c0393[_0x2f6f73(0x145)]===Symbol&&_0x1c0393!==Symbol['prototype']?_0x2f6f73(0x4d0):typeof _0x1c0393;},_typeof(_0x518989);}function toPrimitive(_0x4d237e,_0x3b10bb){const _0x16cf1e=_0x3ce055;if(_0x16cf1e(0x624)!=_typeof(_0x4d237e)||!_0x4d237e)return _0x4d237e;var _0xcc91d2=_0x4d237e[Symbol[_0x16cf1e(0x526)]];if(void 0x0!==_0xcc91d2){var _0x260e8b=_0xcc91d2['call'](_0x4d237e,_0x3b10bb||'default');if(_0x16cf1e(0x624)!=_typeof(_0x260e8b))return _0x260e8b;throw new TypeError(_0x16cf1e(0x3f6));}return(_0x16cf1e(0x4e6)===_0x3b10bb?String:Number)(_0x4d237e);}function toPropertyKey(_0x46bfa3){const _0x41ba=_0x3ce055;var _0xfcd310=toPrimitive(_0x46bfa3,_0x41ba(0x4e6));return _0x41ba(0x4d0)==_typeof(_0xfcd310)?_0xfcd310:_0xfcd310+'';}function _defineProperty(_0x109ac3,_0x2c0293,_0x10e225){return(_0x2c0293=toPropertyKey(_0x2c0293))in _0x109ac3?Object['defineProperty'](_0x109ac3,_0x2c0293,{'value':_0x10e225,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x109ac3[_0x2c0293]=_0x10e225,_0x109ac3;}var ShapeTextEditingService=class extends _univerjs_core[_0x3ce055(0x396)]{constructor(..._0xa3a4e0){const _0x122e82=_0x3ce055;super(..._0xa3a4e0),_defineProperty(this,_0x122e82(0x228),new rxjs[(_0x122e82(0x3e3))](null)),_defineProperty(this,_0x122e82(0x3db),this['_editingParams$'][_0x122e82(0x509)]()),_defineProperty(this,_0x122e82(0x5f0),new rxjs['BehaviorSubject'](![])),_defineProperty(this,'onSavingEditorData$',this[_0x122e82(0x5f0)][_0x122e82(0x509)]());}['dispose'](){const _0x54b1d7=_0x3ce055;this[_0x54b1d7(0x228)][_0x54b1d7(0x200)](null),this[_0x54b1d7(0x228)]['complete'](),this['_onSavingEditorData$']['next'](![]),this[_0x54b1d7(0x5f0)][_0x54b1d7(0x5b8)](),super[_0x54b1d7(0x467)]();}[_0x3ce055(0x290)](_0x4c9cf6){const _0x29fb4f=_0x3ce055;this[_0x29fb4f(0x228)][_0x29fb4f(0x200)](_0x4c9cf6);if(_0x4c9cf6===null||_0x4c9cf6===void 0x0)this[_0x29fb4f(0x5f0)][_0x29fb4f(0x200)](![]);}['setOnSavingEditorData'](_0x10a26e){const _0xde2905=_0x3ce055;this[_0xde2905(0x5f0)][_0xde2905(0x200)](_0x10a26e);}['getEditing'](){const _0x49365d=_0x3ce055;return this[_0x49365d(0x228)][_0x49365d(0x614)]();}};function getShapeDataDiff(_0x1e1c6d,_0x38f697){const _0x5a765b=_0x3ce055,_0x137935={};for(const _0x1bdef3 of Object[_0x5a765b(0x4af)](_0x38f697)){const _0x3faff0=_0x38f697[_0x1bdef3],_0x1137ad=_0x1e1c6d[_0x1bdef3];if(_0x3faff0===void 0x0)continue;if(_0x1137ad===void 0x0){_0x137935[_0x1bdef3]=void 0x0;continue;}if(typeof _0x3faff0===_0x5a765b(0x624)&&_0x3faff0!==null&&!Array[_0x5a765b(0x3ec)](_0x3faff0)&&typeof _0x1137ad===_0x5a765b(0x624)&&_0x1137ad!==null&&!Array[_0x5a765b(0x3ec)](_0x1137ad))_0x137935[_0x1bdef3]=getShapeDataDiff(_0x1137ad,_0x3faff0);else _0x137935[_0x1bdef3]=_0x1137ad;}return _0x137935;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x3ce055(0x1c2)][_0x3ce055(0x31e)],'id':'sheet.command.update-shape-data','handler':(_0x4f8f96,_0x46650b)=>{const _0xea859f=_0x3ce055,_0xd3be02=_0x4f8f96['get'](_univerjs_pro_sheets_shape[_0xea859f(0x234)]),{unitId:_0x2f5a70,subUnitId:_0x42dedb,shapeType:_0x2d8f70,shapeId:_0xb4fa87,shapeData:_0x6d2640,oldShapeJSON:_0x444882}=_0x46650b;if(!_0xd3be02[_0xea859f(0x272)](_0x2f5a70,_0x42dedb,_0xb4fa87))return![];const _0x4479c9=_0x4f8f96['get'](_univerjs_core[_0xea859f(0x4f7)]),_0x2dfb13=_0x4f8f96[_0xea859f(0x570)](_univerjs_core[_0xea859f(0x395)]),{oldShapeType:_0xac3fd7,oldShapeData:_0x4d4daa={}}=_0x444882,_0x31dc3a=getShapeDataDiff(_0x4d4daa,_0x6d2640||{}),_0x553b40={'id':_univerjs_pro_sheets_shape[_0xea859f(0x403)]['id'],'params':{'unitId':_0x2f5a70,'subUnitId':_0x42dedb,'shapeId':_0xb4fa87,'shapeType':_0x2d8f70,'shapeData':_0x6d2640}},_0x1fb278={'id':_univerjs_pro_sheets_shape[_0xea859f(0x403)]['id'],'params':{'unitId':_0x2f5a70,'subUnitId':_0x42dedb,'shapeId':_0xb4fa87,'shapeType':_0xac3fd7,'shapeData':_0x31dc3a}};if(_0x4479c9[_0xea859f(0x4cb)](_0x553b40['id'],_0x553b40['params']))return _0x2dfb13[_0xea859f(0x2af)]({'unitID':_0x2f5a70,'undoMutations':[_0x1fb278],'redoMutations':[_0x553b40]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x3ce055(0x1c2)]['COMMAND'],'id':'sheet.command.set-shape-text-horizontal-align','handler':async(_0x450e14,_0xe9e18f)=>{const _0x4f26b1=_0x3ce055;var _0x2c42ae;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x450e14[_0x4f26b1(0x570)](_univerjs_core[_0x4f26b1(0x498)])))return![];const _0x527e00=_0x450e14['get'](_univerjs_sheets_drawing[_0x4f26b1(0x63c)])[_0x4f26b1(0x5e2)]()['filter'](_0x2543a5=>_0x2543a5[_0x4f26b1(0x500)]===_univerjs_core['DrawingTypeEnum'][_0x4f26b1(0x253)]);if(_0x527e00[_0x4f26b1(0x49c)]!==0x1)return![];const _0x5f3d63=_0x450e14[_0x4f26b1(0x570)](ShapeTextEditingService)[_0x4f26b1(0x4e0)](),_0x1929cd=(_0x5f3d63===null||_0x5f3d63===void 0x0?void 0x0:_0x5f3d63['unitId'])||_0x527e00[0x0][_0x4f26b1(0x5df)],_0x8837f0=(_0x5f3d63===null||_0x5f3d63===void 0x0?void 0x0:_0x5f3d63[_0x4f26b1(0x54e)])||_0x527e00[0x0]['subUnitId'],_0x1c4e52=(_0x5f3d63===null||_0x5f3d63===void 0x0?void 0x0:_0x5f3d63[_0x4f26b1(0x469)])||_0x527e00[0x0][_0x4f26b1(0x133)],_0x45c0ed=_0x450e14[_0x4f26b1(0x570)](_univerjs_pro_sheets_shape[_0x4f26b1(0x234)])[_0x4f26b1(0x272)](_0x1929cd,_0x8837f0,_0x1c4e52);if(!_0x45c0ed)return![];const _0x49654f=_0x45c0ed[_0x4f26b1(0x2f1)]();if(!_0x49654f||!(_0x4f26b1(0x55f)in _0x49654f))return![];const _0x41a0db=_0x450e14[_0x4f26b1(0x570)](_univerjs_core[_0x4f26b1(0x4f7)]),{value:_0x2b808b}=_0xe9e18f,_0x39339c=_0x45c0ed['getShapeType'](),_0x883444=_0x45c0ed[_0x4f26b1(0x1ca)](),_0x21daab={..._0x49654f[_0x4f26b1(0x55f)],'ha':_0x2b808b};return await _0x41a0db['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x1929cd,'subUnitId':_0x8837f0,'shapeId':_0x1c4e52,'shapeType':_0x39339c,'shapeData':{'shapeText':{'isHorizontal':(_0x2c42ae=_0x49654f[_0x4f26b1(0x61d)])!==null&&_0x2c42ae!==void 0x0?_0x2c42ae:!![],'dataModel':_0x21daab}},'oldShapeJSON':{'oldShapeType':_0x39339c,'oldShapeData':_0x883444}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x3ce055(0x1c2)][_0x3ce055(0x31e)],'id':_0x3ce055(0x135),'handler':async(_0x58e66b,_0x3192a6)=>{const _0xab49d7=_0x3ce055;var _0x6bddb7;if(!_0x3192a6)return![];const {value:_0x43a1b7}=_0x3192a6,_0x2634ac=_0x58e66b['get'](_univerjs_core['ICommandService']),_0x3c56fb=_0x58e66b[_0xab49d7(0x570)](ShapeTextEditingService),_0x2acfe9=_0x58e66b[_0xab49d7(0x570)](_univerjs_pro_sheets_shape[_0xab49d7(0x234)]),_0x212285=_0x58e66b['get'](_univerjs_engine_render[_0xab49d7(0x2b4)]),_0x4ca0c5=_0x3c56fb[_0xab49d7(0x4e0)]();if(!_0x4ca0c5)return![];const {unitId:_0xdd9649,subUnitId:_0x16d00e,shapeId:_0x319a14}=_0x4ca0c5,_0x229ecb=_0x2acfe9['getShapeModel'](_0xdd9649,_0x16d00e,_0x319a14);if(!_0x229ecb)return![];const _0x59c049=_0x229ecb[_0xab49d7(0x2f1)]();if(!_0x59c049||!('dataModel'in _0x59c049))return![];const _0x1d5fe1=_0x59c049[_0xab49d7(0x55f)];if(!_0x1d5fe1)return![];const _0x47538d={..._0x1d5fe1,'fs':_0x43a1b7},_0xc21bed=await _0x2634ac[_0xab49d7(0x405)](UpdateShapeDataCommand['id'],{'unitId':_0xdd9649,'subUnitId':_0x16d00e,'shapeId':_0x319a14,'shapeData':{'shapeText':{'isHorizontal':(_0x6bddb7=_0x59c049[_0xab49d7(0x61d)])!==null&&_0x6bddb7!==void 0x0?_0x6bddb7:!![],'dataModel':_0x47538d}}});if(_0xc21bed){const _0x20d792=_0x212285[_0xab49d7(0x155)](_0xdd9649);if(_0x20d792===null||_0x20d792===void 0x0?void 0x0:_0x20d792['scene']){const _0x205cf2=(0x0,_univerjs_drawing[_0xab49d7(0x582)])({'unitId':_0xdd9649,'subUnitId':_0x16d00e,'drawingId':_0x319a14}),_0x4481e9=_0x20d792[_0xab49d7(0x1bc)][_0xab49d7(0x41b)](_0x205cf2);if(_0x4481e9)_0x4481e9['makeDirty'](!![]);}}return _0xc21bed;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x3ce055(0x1c2)][_0x3ce055(0x31e)],'id':_0x3ce055(0x38d),'handler':async _0x3f41b3=>{const _0x49e403=_0x3ce055;var _0x3dd183;const _0x407879=_0x3f41b3['get'](ShapeTextEditingService),_0x4c4a7a=_0x3f41b3['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1592ca=_0x3f41b3[_0x49e403(0x570)](_univerjs_core['ICommandService']),_0x58a43d=_0x407879['getEditing']();if(!_0x58a43d)return![];const {unitId:_0x62bbba,subUnitId:_0x5f2fb9,shapeId:_0x551d0b}=_0x58a43d,_0x1d62ac=_0x4c4a7a[_0x49e403(0x272)](_0x62bbba,_0x5f2fb9,_0x551d0b);if(!_0x1d62ac)return![];const _0x37eb5a=_0x1d62ac[_0x49e403(0x2f1)]();if(!_0x37eb5a||!(_0x49e403(0x55f)in _0x37eb5a))return![];const _0x1c51d9=_0x37eb5a[_0x49e403(0x55f)],_0x45bc1f=(_0x3dd183=_0x1c51d9===null||_0x1c51d9===void 0x0?void 0x0:_0x1c51d9['fs'])!==null&&_0x3dd183!==void 0x0?_0x3dd183:0xe,_0x72a4bc=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x1a1837=_0x45bc1f;const _0x54e94c=_0x72a4bc[_0x49e403(0x3f0)](_0x45bc1f);if(_0x54e94c!==-0x1&&_0x54e94c<_0x72a4bc[_0x49e403(0x49c)]-0x1)_0x1a1837=_0x72a4bc[_0x54e94c+0x1];else{if(_0x54e94c===-0x1)_0x1a1837=Math[_0x49e403(0x51a)](_0x45bc1f)+0x1;}return _0x1592ca[_0x49e403(0x405)](SetShapeTextFontSizeCommand['id'],{'value':_0x1a1837});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x3ce055(0x1fa),'handler':async _0x1432d0=>{const _0x475037=_0x3ce055;var _0x1b77e8;const _0x533963=_0x1432d0[_0x475037(0x570)](ShapeTextEditingService),_0x23220e=_0x1432d0[_0x475037(0x570)](_univerjs_pro_sheets_shape[_0x475037(0x234)]),_0x2ec325=_0x1432d0[_0x475037(0x570)](_univerjs_core[_0x475037(0x4f7)]),_0x4cdbbe=_0x533963[_0x475037(0x4e0)]();if(!_0x4cdbbe)return![];const {unitId:_0x44ded6,subUnitId:_0x2d84df,shapeId:_0x5a6ef2}=_0x4cdbbe,_0x5a47f9=_0x23220e[_0x475037(0x272)](_0x44ded6,_0x2d84df,_0x5a6ef2);if(!_0x5a47f9)return![];const _0x379216=_0x5a47f9['getShapeTextData']();if(!_0x379216||!(_0x475037(0x55f)in _0x379216))return![];const _0x2554cd=_0x379216['dataModel'],_0x4ad800=(_0x1b77e8=_0x2554cd===null||_0x2554cd===void 0x0?void 0x0:_0x2554cd['fs'])!==null&&_0x1b77e8!==void 0x0?_0x1b77e8:0xe,_0xaa61b5=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x300894=_0x4ad800;const _0x472507=_0xaa61b5[_0x475037(0x3f0)](_0x4ad800);if(_0x472507!==-0x1&&_0x472507>0x0)_0x300894=_0xaa61b5[_0x472507-0x1];else{if(_0x472507===-0x1)_0x300894=Math['floor'](_0x4ad800)-0x1;}if(_0x300894<0x1)_0x300894=0x1;return _0x2ec325[_0x475037(0x405)](SetShapeTextFontSizeCommand['id'],{'value':_0x300894});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x3ce055(0x1c2)]['COMMAND'],'id':_0x3ce055(0x1c1),'handler':async(_0x3e6e6a,_0x376cf2)=>{const _0x57e8a6=_0x3ce055;var _0x3c6b4e;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x3e6e6a[_0x57e8a6(0x570)](_univerjs_core[_0x57e8a6(0x498)])))return![];const _0x5e4177=_0x3e6e6a[_0x57e8a6(0x570)](_univerjs_sheets_drawing[_0x57e8a6(0x63c)])[_0x57e8a6(0x5e2)]()[_0x57e8a6(0x2c5)](_0x1f35fd=>_0x1f35fd[_0x57e8a6(0x500)]===_univerjs_core['DrawingTypeEnum'][_0x57e8a6(0x253)]);if(_0x5e4177[_0x57e8a6(0x49c)]!==0x1)return![];const _0x3be6cb=_0x3e6e6a[_0x57e8a6(0x570)](ShapeTextEditingService)['getEditing'](),_0x7f272b=(_0x3be6cb===null||_0x3be6cb===void 0x0?void 0x0:_0x3be6cb['unitId'])||_0x5e4177[0x0][_0x57e8a6(0x5df)],_0x18f443=(_0x3be6cb===null||_0x3be6cb===void 0x0?void 0x0:_0x3be6cb['subUnitId'])||_0x5e4177[0x0][_0x57e8a6(0x54e)],_0x586e72=(_0x3be6cb===null||_0x3be6cb===void 0x0?void 0x0:_0x3be6cb[_0x57e8a6(0x469)])||_0x5e4177[0x0]['drawingId'],_0x2bdeff=_0x3e6e6a[_0x57e8a6(0x570)](_univerjs_pro_sheets_shape[_0x57e8a6(0x234)])[_0x57e8a6(0x272)](_0x7f272b,_0x18f443,_0x586e72);if(!_0x2bdeff)return![];const _0x3c9ab3=_0x2bdeff[_0x57e8a6(0x2f1)]();if(!_0x3c9ab3||!(_0x57e8a6(0x55f)in _0x3c9ab3))return![];const _0x2a2b65=_0x3e6e6a['get'](_univerjs_core[_0x57e8a6(0x4f7)]),{value:_0x725016}=_0x376cf2,_0x5375e3=_0x2bdeff[_0x57e8a6(0x367)](),_0x56df91=_0x2bdeff['getShapeData'](),_0x41d322={..._0x3c9ab3[_0x57e8a6(0x55f)],'va':_0x725016};return await _0x2a2b65[_0x57e8a6(0x405)](UpdateShapeDataCommand['id'],{'unitId':_0x7f272b,'subUnitId':_0x18f443,'shapeId':_0x586e72,'shapeType':_0x5375e3,'shapeData':{'shapeText':{'isHorizontal':(_0x3c6b4e=_0x3c9ab3[_0x57e8a6(0x61d)])!==null&&_0x3c6b4e!==void 0x0?_0x3c6b4e:!![],'dataModel':_0x41d322}},'oldShapeJSON':{'oldShapeType':_0x5375e3,'oldShapeData':_0x56df91}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x3ce055(0x1c2)][_0x3ce055(0x31e)],'id':'sheet.command.shape-doc-align','handler':(_0x87d6a3,_0x424ec3)=>{const _0x119df8=_0x3ce055;if(!_0x424ec3)return![];const {value:_0x4f53b9}=_0x424ec3;return _0x87d6a3[_0x119df8(0x570)](_univerjs_core[_0x119df8(0x4f7)])['syncExecuteCommand'](_univerjs_docs_ui[_0x119df8(0x5a1)]['id'],{'alignType':_0x4f53b9});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0x3ce055(0x490)],'id':_0x3ce055(0x184),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3ce055(0x1c2)][_0x3ce055(0x490)],'id':_0x3ce055(0x5ca),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x3ce055(0x511),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x3ce055(0x57c)])(_0x3ce055(0x26d)),ShapeTextEditorContainer$1='ShapeTextEditorContainer';function updateShapeData(_0x5843aa,_0x621cae,_0x191ebd,_0xa48eb0,_0x1e0e4f,_0x248c62){const _0x4d4487=_0x3ce055,_0x508823={'unitId':_0x621cae,'subUnitId':_0x191ebd,'shapeId':_0xa48eb0,'shapeData':_0x248c62,'oldShapeJSON':_0x1e0e4f};return _0x5843aa[_0x4d4487(0x405)](UpdateShapeDataCommand['id'],_0x508823);}function updateLineShapeData(_0x4f641b,_0x16fea7,_0x39eb85,_0x3c7539,_0x4a101b,_0x1287d4){const _0x1a6a42={'unitId':_0x16fea7,'subUnitId':_0x39eb85,'shapeId':_0x3c7539,'shapeData':_0x1287d4,'oldShapeJSON':_0x4a101b};return _0x4f641b['executeCommand'](UpdateShapeDataCommand['id'],_0x1a6a42);}function prepareShapeTextDocumentData(_0x1b4f43,_0x44a5b4){const _0x2d187a=_0x3ce055;var _0x26e6e0;const {isHorizontal:_0x5cb8af,textRect:_0x4f1b02,verticalAlign:_0x5a9e18}=_0x44a5b4,_0x49279a=_0x5cb8af?_0x4f1b02['width']:_0x4f1b02[_0x2d187a(0x622)],_0x3da929=_univerjs_core[_0x2d187a(0x19e)][_0x2d187a(0x146)](_0x1b4f43),_0x34cf6d=(_0x26e6e0=_0x3da929[_0x2d187a(0x52a)])!==null&&_0x26e6e0!==void 0x0?_0x26e6e0:{},_0x2c970c={..._0x34cf6d[_0x2d187a(0x16a)],'centerAngle':_0x5cb8af?0x0:_univerjs_engine_render[_0x2d187a(0x1b7)],'vertexAngle':_0x5cb8af?0x0:_univerjs_engine_render[_0x2d187a(0x1b7)],'wrapStrategy':_univerjs_core[_0x2d187a(0x37b)][_0x2d187a(0x62d)]};if(_0x5a9e18!==void 0x0)_0x2c970c[_0x2d187a(0xfa)]=_0x5a9e18;if(_0x44a5b4[_0x2d187a(0x13c)]!==void 0x0){var _0x483f4f;_0x2c970c[_0x2d187a(0x13c)]=_0x44a5b4['horizontalAlign'];const _0x14cd6c=(_0x483f4f=_0x3da929[_0x2d187a(0x455)])===null||_0x483f4f===void 0x0?void 0x0:_0x483f4f[_0x2d187a(0x3f2)];if(_0x14cd6c)for(const _0x4f1a83 of _0x14cd6c){if(!_0x4f1a83[_0x2d187a(0x11f)])_0x4f1a83['paragraphStyle']={};_0x4f1a83[_0x2d187a(0x11f)][_0x2d187a(0x13c)]=_0x44a5b4[_0x2d187a(0x13c)];}}return _0x3da929[_0x2d187a(0x52a)]={..._0x34cf6d,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x49279a,'height':Number[_0x2d187a(0x4b8)]},'renderConfig':_0x2c970c},_0x3da929;}function stripShapeTextDocumentLayout(_0x146c3c){const _0x5e8b1d=_0x3ce055;var _0xa6b6cf;const _0x3d6fd2=_univerjs_core['Tools']['deepClone'](_0x146c3c),_0x55b917=(_0xa6b6cf=_0x3d6fd2['documentStyle'])!==null&&_0xa6b6cf!==void 0x0?_0xa6b6cf:{},_0xeba945={..._0x55b917[_0x5e8b1d(0x16a)]};return delete _0xeba945[_0x5e8b1d(0x3fc)],delete _0xeba945['vertexAngle'],delete _0xeba945[_0x5e8b1d(0xfa)],delete _0xeba945[_0x5e8b1d(0x5e9)],_0x3d6fd2[_0x5e8b1d(0x52a)]={..._0x55b917,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x5e8b1d(0x4b8)],'height':Number[_0x5e8b1d(0x4b8)]},'renderConfig':Object[_0x5e8b1d(0x4af)](_0xeba945)[_0x5e8b1d(0x49c)]>0x0?_0xeba945:void 0x0},_0x3d6fd2;}var DrawingShape=class extends _univerjs_engine_render['Shape']{constructor(_0x342270,_0xf099ed){const _0x519444=_0x3ce055;super(_0x342270,_0xf099ed),_defineProperty(this,_0x519444(0x4aa),void 0x0),_defineProperty(this,_0x519444(0x2f2),!![]),_defineProperty(this,_0x519444(0x359),_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']),_defineProperty(this,_0x519444(0x29c),!![]),this[_0x519444(0x4aa)]={..._0xf099ed},this[_0x519444(0x5f6)]();}['_init'](){const _0x4670c8=_0x3ce055;this['onTransformChange$'][_0x4670c8(0x5c9)](_0x3b8aa0=>{this['_updateSrcRectByTransform'](_0x3b8aa0);});}[_0x3ce055(0x545)](_0x1872fa){const _0x52d146=_0x3ce055;this[_0x52d146(0x4aa)]['prstGeom']=_0x1872fa;}[_0x3ce055(0x290)](_0x1c2d1f){const _0x459d1e=_0x3ce055;this[_0x459d1e(0x4aa)][_0x459d1e(0x190)]=_0x1c2d1f,this[_0x459d1e(0x3ee)](!![]);}get['unitId'](){const _0x20ade1=_0x3ce055;return this[_0x20ade1(0x4aa)][_0x20ade1(0x5df)];}get[_0x3ce055(0x54e)](){const _0x5f07e5=_0x3ce055;return this[_0x5f07e5(0x4aa)][_0x5f07e5(0x54e)];}[_0x3ce055(0x295)](_0x4ecd21){const _0x4dde29=_0x3ce055;if(this['_props'][_0x4dde29(0x1a4)]==null||!this[_0x4dde29(0x2f2)])return;const {width:_0x1abb56,height:_0x5925cf}=this,{width:_0x24feaf=0x0,height:_0x252bf6=0x0}=_0x4ecd21[_0x4dde29(0x380)],{left:_0x8baccc=0x0,top:_0x58c9b6=0x0,right:_0x33567d=0x0,bottom:_0x154f76=0x0}=this[_0x4dde29(0x4aa)][_0x4dde29(0x1a4)];let _0x2e6587=_0x8baccc,_0x200d9a=_0x58c9b6,_0x1ccd9f=_0x33567d,_0x3e5375=_0x154f76,_0x5494de=![];if(_0x24feaf!==0x0&&_0x24feaf!==_0x1abb56){const _0x534087=_0x8baccc/_0x24feaf,_0x11f138=_0x33567d/_0x24feaf;_0x2e6587=_0x1abb56*_0x534087,_0x1ccd9f=_0x1abb56*_0x11f138,_0x5494de=!![];}if(_0x252bf6!==0x0&&_0x252bf6!==_0x5925cf){const _0x5c01ed=_0x58c9b6/_0x252bf6,_0x85f07e=_0x154f76/_0x252bf6;_0x200d9a=_0x5925cf*_0x5c01ed,_0x3e5375=_0x5925cf*_0x85f07e,_0x5494de=!![];}if(_0x5494de)this[_0x4dde29(0x14d)]({'left':_0x2e6587,'top':_0x200d9a,'right':_0x1ccd9f,'bottom':_0x3e5375});}['setSrcRect'](_0x14f91a){const _0x1eaefe=_0x3ce055;this['_props'][_0x1eaefe(0x1a4)]=_0x14f91a,this[_0x1eaefe(0x3ee)](!![]);}[_0x3ce055(0x29b)](_0x2423a9){const _0x2ef0a1=_0x3ce055;this[_0x2ef0a1(0x4aa)][_0x2ef0a1(0x55a)]=_0x2423a9,this[_0x2ef0a1(0x3ee)](!![]);}set[_0x3ce055(0x152)](_0xdb86ee){this['_transform']=_0xdb86ee;}get[_0x3ce055(0x152)](){const _0x29cae0=_0x3ce055;if(!this[_0x29cae0(0x5fa)])this[_0x29cae0(0x652)]();const _0x59a7b6=this[_0x29cae0(0x5fa)][_0x29cae0(0x273)]();return this['transformForAngle'](_0x59a7b6);}get[_0x3ce055(0x2d3)](){const _0x57b178=_0x3ce055;return this[_0x57b178(0x4aa)][_0x57b178(0x2d3)];}get['shapeId'](){const _0x20a8de=_0x3ce055;return this[_0x20a8de(0x4aa)][_0x20a8de(0x469)];}get[_0x3ce055(0x136)](){const _0x341f49=_0x3ce055;return _univerjs_engine_render[_0x341f49(0x161)][_0x341f49(0x27b)];}[_0x3ce055(0x537)](_0x22e42b,_0x5ad63a,_0x460d88,_0x3d7aee){const _0x530fe5=_0x3ce055,_0x3058d7=this['_props'][_0x530fe5(0x2d3)];if(!_0x3058d7||!_0x5ad63a)return;const _0x5ea8cd=_0x460d88!==null&&_0x460d88!==void 0x0?_0x460d88:this[_0x530fe5(0x1f2)],_0x175fc4=_0x3d7aee!==null&&_0x3d7aee!==void 0x0?_0x3d7aee:this[_0x530fe5(0x622)],_0x2d9ba5={'shapeType':_0x3058d7['getShapeType'](),'width':_0x5ea8cd,'height':_0x175fc4},_0x1e3d5a={'renderMode':_univerjs_pro_engine_shape[_0x530fe5(0x27a)]['Path'],'oKey':this[_0x530fe5(0x131)],'image':this['_props']['image'],'angle':this[_0x530fe5(0x163)]};_0x3058d7[_0x530fe5(0x368)](_0x2d9ba5),_0x22e42b['save']();const _0x38d3f1={'top':0x0,'left':0x0,'width':_0x5ea8cd,'height':_0x175fc4};_0x3058d7[_0x530fe5(0x2b8)](_0x22e42b,_0x38d3f1,_0x1e3d5a),_0x22e42b[_0x530fe5(0x37f)]();const _0x191e82=_0x3058d7[_0x530fe5(0x2f1)](),_0x42652f=_0x3058d7[_0x530fe5(0x25b)](_0x38d3f1),_0x5e10d0=_0x3058d7['isLineShape']();if(_0x191e82&&_0x42652f&&!_0x5e10d0){_0x22e42b['save']();if(this[_0x530fe5(0x28e)]()['flipX'])_0x22e42b[_0x530fe5(0x5ac)](-0x1,0x1);const _0x1a8f9=_0x5ea8cd/0x2,_0x41b812=_0x175fc4/0x2;_0x22e42b[_0x530fe5(0x105)](-_0x1a8f9,-_0x41b812),_0x22e42b[_0x530fe5(0x284)](),this[_0x530fe5(0x4b6)](_0x22e42b,_0x191e82,_0x42652f),_0x22e42b[_0x530fe5(0x37f)]();}}[_0x3ce055(0x60d)](_0x49760d){}[_0x3ce055(0x4b6)](_0x131b60,_0x705134,_0x36d656){const _0x10f0f3=_0x3ce055;if(this[_0x10f0f3(0x4aa)][_0x10f0f3(0x190)])return;if(_0x10f0f3(0x280)in _0x705134&&_0x705134[_0x10f0f3(0x280)]===![])this['_drawSimpleText'](_0x131b60,_0x705134,_0x36d656);else this[_0x10f0f3(0x546)](_0x131b60,_0x705134,_0x36d656);}[_0x3ce055(0x2aa)](_0x18b017,_0x456583,_0x5359ed){}['_drawRichText'](_0x4041ee,_0x489692,_0x257f27){const _0x13217=_0x3ce055;var _0x5de03e,_0x9e0b3d;const _0x1ed04c=this[_0x13217(0x4aa)][_0x13217(0x515)];if(!_0x489692[_0x13217(0x55f)]||!_0x1ed04c){if(!_0x1ed04c)console[_0x13217(0x595)](_0x13217(0x30d));return;}const _0x1f45a9=_0x489692[_0x13217(0x55f)],_0x4f62c2=_0x1f45a9[_0x13217(0x10d)],_0x14f346=(_0x5de03e=_0x1f45a9['va'])!==null&&_0x5de03e!==void 0x0?_0x5de03e:_univerjs_core[_0x13217(0x3bc)][_0x13217(0x391)],_0x5bd374=(_0x9e0b3d=_0x1f45a9['ha'])!==null&&_0x9e0b3d!==void 0x0?_0x9e0b3d:_univerjs_core[_0x13217(0x3b6)][_0x13217(0x39c)];if(!_0x4f62c2)return;const _0x5b3e01=_0x489692['isHorizontal'],_0x395dbf=prepareShapeTextDocumentData(_0x4f62c2,{'isHorizontal':_0x5b3e01!==![],'textRect':_0x257f27,'verticalAlign':_0x14f346,'horizontalAlign':_0x5bd374}),_0x1708c6=new _univerjs_core['DocumentDataModel'](_0x395dbf),_0x22a261=new _univerjs_engine_render[(_0x13217(0x2a9))](_0x1708c6),_0x87e819=_univerjs_engine_render[_0x13217(0x65e)][_0x13217(0x51b)](_0x22a261,_0x1ed04c);console['warn'](_0x395dbf,_0x1708c6,_0x87e819),_0x87e819['calculate']();const _0x2fc9fb=new _univerjs_engine_render['Documents']('shape-text-'+this['oKey'],_0x87e819,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x2fc9fb['resize'](_0x257f27[_0x13217(0x1f2)],_0x257f27['height']),_0x4041ee[_0x13217(0x1e1)](),_0x4041ee['translateWithPrecision'](_0x257f27[_0x13217(0x358)],_0x257f27[_0x13217(0x169)]),_0x4041ee[_0x13217(0x284)](),_0x4041ee[_0x13217(0x259)](0x0,0x0,_0x257f27[_0x13217(0x1f2)],_0x257f27[_0x13217(0x622)]),_0x4041ee[_0x13217(0x363)](),_0x2fc9fb[_0x13217(0x1d9)](_0x4041ee),_0x4041ee[_0x13217(0x37f)](),_0x2fc9fb[_0x13217(0x467)](),_0x87e819['dispose'](),_0x22a261['dispose'](),_0x1708c6[_0x13217(0x467)]();}[_0x3ce055(0x2b8)](_0x7d8184,_0x28f0ad,_0x4c9ccb=![]){const _0x5e11c9=_0x3ce055;if(!this['visible'])return this[_0x5e11c9(0x3ee)](![]),this;let {width:_0x30ba95,height:_0x23b9b2,left:_0x2c936e,top:_0x40a22f}=this;const _0x362f90=this['getRealBound']();_0x30ba95=_0x362f90['width'],_0x23b9b2=_0x362f90[_0x5e11c9(0x622)],_0x2c936e=_0x362f90['left'],_0x40a22f=_0x362f90[_0x5e11c9(0x169)];if(this[_0x5e11c9(0x2dd)](_0x28f0ad)){const {top:_0xf2f9da,left:_0x516ce3,bottom:_0x3bad30,right:_0x25bfc7}=_0x28f0ad[_0x5e11c9(0x397)];if(_0x30ba95+this[_0x5e11c9(0x57f)]+_0x2c936e<_0x516ce3||_0x25bfc7<_0x2c936e||_0x23b9b2+this[_0x5e11c9(0x57f)]+_0x40a22f<_0xf2f9da||_0x3bad30<_0x40a22f)return this;}const _0x1d230c=_0x2c936e+_0x30ba95/0x2,_0x52ac76=_0x40a22f+_0x23b9b2/0x2;let _0x207816=this[_0x5e11c9(0x152)]['getMatrix']();if(this['_props'][_0x5e11c9(0x190)]){const _0x467867=this[_0x5e11c9(0x28e)](),_0x11d628=new _univerjs_engine_render[(_0x5e11c9(0x327))]();_0x11d628[_0x5e11c9(0x524)]({..._0x467867}),_0x207816=_0x11d628[_0x5e11c9(0x55e)]();}_0x7d8184['save']();if(this[_0x5e11c9(0x4aa)]['shapeModel']['isRenderLinePointsMode']===!![]){}else _0x7d8184[_0x5e11c9(0x152)](_0x207816[0x0],_0x207816[0x1],_0x207816[0x2],_0x207816[0x3],_0x1d230c,_0x52ac76);return this[_0x5e11c9(0x537)](_0x7d8184,_0x28f0ad,_0x30ba95,_0x23b9b2),_0x7d8184[_0x5e11c9(0x37f)](),this['makeDirty'](![]),this;}['getInverseCoord'](_0x447616){const _0x3e58ed=_0x3ce055,{left:_0x809369,top:_0x1a1b53,width:_0x3215b6,height:_0x227d0d}=this['getRealBound'](),_0xc44747=this[_0x3e58ed(0x152)][_0x3e58ed(0x55e)](),_0x2dd1e4=_0x809369+_0x3215b6/0x2,_0xe89fbc=_0x1a1b53+_0x227d0d/0x2,_0x174ee4=new _univerjs_engine_render[(_0x3e58ed(0x327))]([_0xc44747[0x0],_0xc44747[0x1],_0xc44747[0x2],_0xc44747[0x3],_0x2dd1e4,_0xe89fbc]),_0x4bd503=this['getParent']();return(this[_0x3e58ed(0x473)]&&(_0x4bd503===null||_0x4bd503===void 0x0?void 0x0:_0x4bd503[_0x3e58ed(0x136)])===_univerjs_engine_render[_0x3e58ed(0x161)][_0x3e58ed(0x128)]?_0x4bd503['ancestorTransform'][_0x3e58ed(0x573)](_0x174ee4):_0x174ee4)[_0x3e58ed(0x632)]()[_0x3e58ed(0x4cc)](_0x447616);}[_0x3ce055(0x2d6)](_0x2bb2e5){const _0x20cfe3=_0x3ce055,{left:_0x592992,top:_0x4a166c,width:_0x243099,height:_0x2a8e39}=this['getRealBound'](),_0xe0cd0=_0x592992+_0x243099/0x2,_0x15ea27=_0x4a166c+_0x2a8e39/0x2,_0x41acc7=this[_0x20cfe3(0x152)][_0x20cfe3(0x55e)](),_0x2c4825=new _univerjs_engine_render[(_0x20cfe3(0x327))]([_0x41acc7[0x0],_0x41acc7[0x1],_0x41acc7[0x2],_0x41acc7[0x3],_0xe0cd0,_0x15ea27]),_0x4e3465=this['getParent'](),_0x5733d1=(this[_0x20cfe3(0x473)]&&(_0x4e3465===null||_0x4e3465===void 0x0?void 0x0:_0x4e3465[_0x20cfe3(0x136)])===_univerjs_engine_render[_0x20cfe3(0x161)][_0x20cfe3(0x128)]?_0x4e3465[_0x20cfe3(0x431)]['multiply'](_0x2c4825):_0x2c4825)['invert']()[_0x20cfe3(0x4cc)](_0x2bb2e5),_0x56bb26=_0x243099/0x2,_0x4312b3=_0x2a8e39/0x2,_0x412e1e=this[_0x20cfe3(0x4aa)]['shapeModel'];if(_0x412e1e&&_0x412e1e['isLineShape']())return _0x412e1e[_0x20cfe3(0x658)](_0x5733d1['x'],_0x5733d1['y'],_0x243099,_0x2a8e39);if(_0x5733d1['x']>=-_0x56bb26-this[_0x20cfe3(0x57f)]/0x2&&_0x5733d1['x']<=_0x56bb26+this['strokeWidth']/0x2&&_0x5733d1['y']>=-_0x4312b3-this[_0x20cfe3(0x57f)]/0x2&&_0x5733d1['y']<=_0x4312b3+this['strokeWidth']/0x2)return!![];return![];}[_0x3ce055(0x467)](){const _0x43bea8=_0x3ce055;this[_0x43bea8(0x4aa)][_0x43bea8(0x2d3)]=null,super[_0x43bea8(0x467)]();}};function __decorateParam(_0x53a336,_0x166033){return function(_0x37a436,_0x1f0d6b){_0x166033(_0x37a436,_0x1f0d6b,_0x53a336);};}function __decorate(_0x12be84,_0x16ed36,_0x278e96,_0x29a4e1){const _0x46faa1=_0x3ce055;var _0x2ec6e6=arguments[_0x46faa1(0x49c)],_0x41edb7=_0x2ec6e6<0x3?_0x16ed36:_0x29a4e1===null?_0x29a4e1=Object[_0x46faa1(0x4b7)](_0x16ed36,_0x278e96):_0x29a4e1,_0x2a167;if(typeof Reflect===_0x46faa1(0x624)&&typeof Reflect[_0x46faa1(0x427)]===_0x46faa1(0x346))_0x41edb7=Reflect['decorate'](_0x12be84,_0x16ed36,_0x278e96,_0x29a4e1);else{for(var _0xee4f45=_0x12be84[_0x46faa1(0x49c)]-0x1;_0xee4f45>=0x0;_0xee4f45--)if(_0x2a167=_0x12be84[_0xee4f45])_0x41edb7=(_0x2ec6e6<0x3?_0x2a167(_0x41edb7):_0x2ec6e6>0x3?_0x2a167(_0x16ed36,_0x278e96,_0x41edb7):_0x2a167(_0x16ed36,_0x278e96))||_0x41edb7;}return _0x2ec6e6>0x3&&_0x41edb7&&Object['defineProperty'](_0x16ed36,_0x278e96,_0x41edb7),_0x41edb7;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x39f1ca,_0x446492,_0x5ebb0f,_0x36b033,_0x4ccae5){const _0x53ea6c=_0x3ce055;super(),this[_0x53ea6c(0x591)]=_0x39f1ca,this[_0x53ea6c(0x61c)]=_0x446492,this[_0x53ea6c(0x3e8)]=_0x5ebb0f,this[_0x53ea6c(0x46e)]=_0x36b033,this[_0x53ea6c(0x59a)]=_0x4ccae5;}[_0x3ce055(0x541)](_0x152bcd,_0xa1dae6){const _0x91db38=_0x3ce055,{transform:_0x1d57cc,drawingType:_0x1348b1,srcRect:_0x568499,prstGeom:_0x33dc97,groupId:_0x45fc1d,unitId:_0x2b8bae,subUnitId:_0x187a49,drawingId:_0x2d5668,isMultiTransform:_0x1b356f,transforms:_0x52086a}=_0x152bcd;if(_0x1348b1!==_univerjs_core[_0x91db38(0x5bc)][_0x91db38(0x253)])return;if(!this[_0x91db38(0x591)][_0x91db38(0x1be)]())return;if(_0x1d57cc==null)return;const _0x48431d=_0x1b356f&&_0x52086a?_0x52086a:[_0x1d57cc],_0x3bdaa5=[];for(const _0x21cddf of _0x48431d){const {left:_0x305115,top:_0x430bf6,width:_0x3581b8,height:_0x2f4f90,angle:_0x158627,flipX:_0x16a635,flipY:_0x114994,skewX:_0x13d8eb,skewY:_0x73451a}=_0x21cddf,_0x3f2932=_0x48431d['indexOf'](_0x21cddf),_0x25a641=(0x0,_univerjs_drawing[_0x91db38(0x582)])({'unitId':_0x2b8bae,'subUnitId':_0x187a49,'drawingId':_0x2d5668},_0x1b356f?_0x3f2932:void 0x0),_0x3f4def=_0xa1dae6[_0x91db38(0x41b)](_0x25a641);if(_0x3f4def!=null){_0x3f4def[_0x91db38(0x436)]({'left':_0x305115,'top':_0x430bf6,'width':_0x3581b8,'height':_0x2f4f90,'angle':_0x158627,'flipX':_0x16a635,'flipY':_0x114994,'skewX':_0x13d8eb,'skewY':_0x73451a});continue;}const _0x909ea8=this[_0x91db38(0x591)][_0x91db38(0x260)](_0x2b8bae,_0x187a49),_0xdbab2=_0x909ea8[_0x91db38(0x3f0)](_0x2d5668);if(_0xa1dae6[_0x91db38(0x41b)](_0x25a641))continue;if(!this['_drawingManagerService'][_0x91db38(0x1be)]())continue;const _0x3c62b0=this[_0x91db38(0x61c)][_0x91db38(0x272)](_0x2b8bae,_0x187a49,_0x2d5668);if(!_0x3c62b0)continue;const _0x111ac6=new DrawingShape(_0x25a641,{...(0x0,_univerjs_pro_engine_shape[_0x91db38(0x618)])(_0x3c62b0['getShapeType']())?{..._0x21cddf,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x21cddf},'zIndex':_0xdbab2===-0x1?_0x909ea8[_0x91db38(0x49c)]-0x1:_0xdbab2,'shapeModel':_0x3c62b0,'localeService':this[_0x91db38(0x3e8)],'shapeId':_0x2d5668,'unitId':_0x2b8bae,'subUnitId':_0x187a49});_0xa1dae6[_0x91db38(0x486)](_0x111ac6,_univerjs_engine_render[_0x91db38(0x15f)]);if(this[_0x91db38(0x591)][_0x91db38(0x5e4)]())_0xa1dae6[_0x91db38(0x28c)](_0x111ac6);_0x45fc1d&&(0x0,_univerjs_drawing_ui[_0x91db38(0x577)])({'drawingId':_0x45fc1d,'unitId':_0x2b8bae,'subUnitId':_0x187a49},_0x111ac6,_0xa1dae6,this['_drawingManagerService']);if(_0x33dc97!=null)_0x111ac6[_0x91db38(0x545)](_0x33dc97);if(_0x568499!=null)_0x111ac6[_0x91db38(0x14d)](_0x568499);this[_0x91db38(0x450)](_0x111ac6,_0x3c62b0[_0x91db38(0x1ca)]()),_0x3bdaa5['push'](_0x111ac6);}return _0x3bdaa5;}[_0x3ce055(0x450)](_0x5d7977,_0x1e8cba){const _0x5cc44e=_0x3ce055;var _0x31e8c9;const _0x218415=_0x1e8cba[_0x5cc44e(0x268)];if(!_0x218415||_0x218415['fillType']!==_univerjs_pro_engine_shape[_0x5cc44e(0x57a)][_0x5cc44e(0x5e6)]||!_0x218415['fillImageSource'])return;const _0xcf0f43=_0x218415[_0x5cc44e(0x54d)],_0x2f2a1a=(_0x31e8c9=_0x218415[_0x5cc44e(0x4ed)])!==null&&_0x31e8c9!==void 0x0?_0x31e8c9:_univerjs_pro_engine_shape[_0x5cc44e(0x4f3)][_0x5cc44e(0x302)],_0x1e3bfc=this[_0x5cc44e(0x46e)]['getImageSourceCache'](_0xcf0f43,_0x2f2a1a);if(_0x1e3bfc){_0x5d7977[_0x5cc44e(0x29b)](_0x1e3bfc);return;}this[_0x5cc44e(0x1bb)](_0x5d7977,_0xcf0f43,_0x2f2a1a);}async[_0x3ce055(0x1bb)](_0x146ea2,_0x38dad8,_0x24537f){const _0x5b089c=_0x3ce055;let _0x367c91;try{if(_0x24537f===_univerjs_pro_engine_shape['ImageSourceTypeEnum']['UUID'])_0x367c91=await this[_0x5b089c(0x46e)][_0x5b089c(0x532)](_0x38dad8);else{if(_0x24537f===_univerjs_pro_engine_shape[_0x5b089c(0x4f3)][_0x5b089c(0x302)])try{_0x367c91=await this[_0x5b089c(0x59a)]['getImage'](_0x38dad8);}catch{_0x367c91=_0x38dad8;}else _0x367c91=_0x38dad8;}}catch(_0x36bb99){console[_0x5b089c(0x240)](_0x5b089c(0x20c),_0x36bb99);return;}const _0x207d1e=new window[(_0x5b089c(0x34a))]();_0x207d1e[_0x5b089c(0x332)]=()=>{const _0x3f6ac0=_0x5b089c;this[_0x3f6ac0(0x46e)][_0x3f6ac0(0x114)](_0x38dad8,_0x24537f,_0x207d1e),_0x146ea2[_0x3f6ac0(0x29b)](_0x207d1e);},_0x207d1e['onerror']=()=>{const _0x57c8fd=_0x5b089c;console[_0x57c8fd(0x240)](_0x57c8fd(0x4bb),_0x38dad8);},_0x207d1e[_0x5b089c(0x602)]=_0x367c91;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing[_0x3ce055(0x4ee)]),__decorateParam(0x4,_univerjs_core['IURLImageService'])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core['Disposable']{constructor(_0x3eac71,_0x523166,_0x2f334d,_0x525ae9,_0x359ad8,_0x51b0){const _0x196f25=_0x3ce055;super(),this['_commandService']=_0x3eac71,this[_0x196f25(0x637)]=_0x523166,this['_drawingManagerService']=_0x2f334d,this[_0x196f25(0x57b)]=_0x525ae9,this[_0x196f25(0x5c5)]=_0x359ad8,this[_0x196f25(0x5bd)]=_0x51b0,this[_0x196f25(0x583)]();}[_0x3ce055(0x583)](){const _0x2382bb=_0x3ce055;this[_0x2382bb(0x188)](),this[_0x2382bb(0xfd)](),this['_shapeUpdateListener']();}[_0x3ce055(0x188)](){const _0x25cab0=_0x3ce055;this['disposeWithMe'](this[_0x25cab0(0x591)][_0x25cab0(0x63b)]['subscribe'](_0x2a27cd=>{const _0x29c28a=_0x25cab0;this[_0x29c28a(0x197)](_0x2a27cd);}));}[_0x3ce055(0xfd)](){const _0x25dc79=_0x3ce055;this[_0x25dc79(0x193)](this['_commandService'][_0x25dc79(0x52c)](_0x2af4cb=>{const _0x4fee22=_0x25dc79;if(_0x2af4cb['id']===_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id']){var _0x3801c3;const {unitId:_0x5be5c9,subUnitId:_0x432f7c,shapeId:_0x24c03f}=_0x2af4cb['params'],_0xe8d93=this['_getSceneAndTransformerByDrawingSearch'](_0x5be5c9);if(_0xe8d93==null)return;const {scene:_0x5bd86c}=_0xe8d93,_0x4fddd4=(0x0,_univerjs_drawing[_0x4fee22(0x582)])({'unitId':_0x5be5c9,'subUnitId':_0x432f7c,'drawingId':_0x24c03f}),_0x4c2c2c=_0x5bd86c[_0x4fee22(0x41b)](_0x4fddd4);if(!((_0x3801c3=this[_0x4fee22(0x637)][_0x4fee22(0x155)](_0x5be5c9))===null||_0x3801c3===void 0x0?void 0x0:_0x3801c3[_0x4fee22(0x512)](_univerjs_sheets_ui[_0x4fee22(0x30b)])[_0x4fee22(0x22a)](_0x432f7c)))return![];if(_0x4c2c2c)return;this[_0x4fee22(0x197)]([{'unitId':_0x5be5c9,'subUnitId':_0x432f7c,'drawingId':_0x24c03f}]);}}));}['_shapeUpdateListener'](){const _0x451542=_0x3ce055;this[_0x451542(0x193)](this['_drawingManagerService'][_0x451542(0x5eb)][_0x451542(0x4c3)](_0x44dee9=>{const _0x5d6813=_0x451542;_0x44dee9[_0x5d6813(0x36b)](_0x3250f1=>{const _0x2d876a=_0x5d6813,{unitId:_0x25eb1f,subUnitId:_0x25914b,drawingId:_0x1feccb}=_0x3250f1,_0x3eae4e=this[_0x2d876a(0x591)][_0x2d876a(0x382)](_0x3250f1);if(_0x3eae4e==null)return;const {transform:_0x5eb8a0,drawingType:_0x566058,srcRect:_0x1c0663,prstGeom:_0x26b33c}=_0x3eae4e;if(_0x566058!==_univerjs_core[_0x2d876a(0x5bc)][_0x2d876a(0x253)])return;const _0x40bd66=this[_0x2d876a(0x44b)](_0x25eb1f);if(_0x40bd66==null)return;const {scene:_0x53e985,transformer:_0x2003d8}=_0x40bd66;if(_0x5eb8a0==null)return!![];const _0xae8aed=(0x0,_univerjs_drawing[_0x2d876a(0x582)])({'unitId':_0x25eb1f,'subUnitId':_0x25914b,'drawingId':_0x1feccb}),_0x400c5d=_0x53e985[_0x2d876a(0x41b)](_0xae8aed);if(_0x400c5d==null)return!![];_0x400c5d[_0x2d876a(0x14d)](_0x1c0663),_0x400c5d[_0x2d876a(0x545)](_0x26b33c);});}));}['updateShapeFillImage'](_0x4dbaac,_0xc05288){const _0x5c9a74=_0x3ce055,{unitId:_0x4f96db,subUnitId:_0x47a4ad,drawingId:_0x1dc069}=_0x4dbaac,_0x2b56d3=this[_0x5c9a74(0x44b)](_0x4f96db);if(_0x2b56d3==null)return;const {scene:_0x2d2d38}=_0x2b56d3,_0x46e96e=(0x0,_univerjs_drawing[_0x5c9a74(0x582)])({'unitId':_0x4f96db,'subUnitId':_0x47a4ad,'drawingId':_0x1dc069}),_0x240f5d=_0x2d2d38[_0x5c9a74(0x41b)](_0x46e96e);if(_0x240f5d==null)return;_0x240f5d[_0x5c9a74(0x29b)](_0xc05288);}[_0x3ce055(0x197)](_0x2d4691){_0x2d4691['forEach'](async _0x2d2d0f=>{const _0x573d17=_0x2c57;var _0x3d91aa;const {unitId:_0xf8db48,subUnitId:_0x5ed4fb}=_0x2d2d0f,_0x20cd0e=this[_0x573d17(0x44b)](_0xf8db48),_0x497aaa=(_0x3d91aa=(0x0,_univerjs_drawing_ui[_0x573d17(0x4da)])(this[_0x573d17(0x57b)],_0xf8db48))===null||_0x3d91aa===void 0x0?void 0x0:_0x3d91aa['subUnitId'];if(_0x20cd0e==null||_0x497aaa!==_0x5ed4fb)return;const _0x5080ba=this[_0x573d17(0x591)][_0x573d17(0x382)](_0x2d2d0f);if(_0x5080ba==null)return;if(_0x5080ba[_0x573d17(0x500)]!==_univerjs_core[_0x573d17(0x5bc)][_0x573d17(0x253)])return;if((0x0,_univerjs_pro_engine_shape[_0x573d17(0x618)])((_0x5080ba[_0x573d17(0x417)]||{})['shapeType'])){const _0x4ffcff=_0x5080ba[_0x573d17(0x152)];if(_0x4ffcff)_0x5080ba[_0x573d17(0x152)]={..._0x4ffcff,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x573d17(0x591)][_0x573d17(0x23b)]([_0x5080ba]),this[_0x573d17(0x5bd)][_0x573d17(0x541)](_0x5080ba,_0x20cd0e[_0x573d17(0x1bc)]);});}[_0x3ce055(0x44b)](_0x2ee8f9){const _0x27499f=_0x3ce055;if(_0x2ee8f9==null)return;const _0x15c51e=this[_0x27499f(0x637)][_0x27499f(0x155)](_0x2ee8f9),_0x44189f=_0x15c51e===null||_0x15c51e===void 0x0?void 0x0:_0x15c51e[_0x27499f(0x1bc)];if(_0x44189f==null)return null;return{'scene':_0x44189f,'transformer':_0x44189f[_0x27499f(0x45f)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3ce055(0x4f7)]),__decorateParam(0x1,_univerjs_engine_render[_0x3ce055(0x2b4)]),__decorateParam(0x2,_univerjs_drawing[_0x3ce055(0x4bc)]),__decorateParam(0x3,_univerjs_core[_0x3ce055(0x498)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_drawing_ui[_0x3ce055(0x5b5)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3ce055(0x53e)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x3e0604){const _0x1036d3=_0x3ce055;var _0x568dcb,_0x38c1f7,_0x58219b,_0xc12bc8,_0x791502,_0x4239dc,_0x58d322,_0x50be41,_0x1b1de6,_0x227103,_0x43bf8a,_0x544574,_0x1ad8ed;const {unitId:_0x58d030,subUnitId:_0x265789,shapeId:_0x5aeea5,shapeData:_0x4f87aa,disableShapeOption:_0x5f5331}=_0x3e0604,_0x5bde05=(0x0,_univerjs_ui[_0x1036d3(0x47b)])(_univerjs_core[_0x1036d3(0x112)]),_0x5372ce=(0x0,_univerjs_ui[_0x1036d3(0x47b)])(_univerjs_core[_0x1036d3(0x4f7)]),_0x2e6fe1=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x1036d3(0x639)]),_0x4c8f17=(0x0,_univerjs_ui[_0x1036d3(0x47b)])(ShapeUpdateController),_0x3ecaf9=(0x0,_univerjs_ui[_0x1036d3(0x47b)])(_univerjs_drawing[_0x1036d3(0x4ee)]),_0x562c55=(0x0,react[_0x1036d3(0x399)])(null),_0x56b29b=_0x4f87aa[_0x1036d3(0x268)],_0x2ddc08=!!(_0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x1036d3(0x54d)]),[_0x25fa19,_0xf8c1f0]=(0x0,react[_0x1036d3(0x2ef)])((_0x568dcb=_0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x1036d3(0x408)])!==null&&_0x568dcb!==void 0x0?_0x568dcb:0x1),[_0x1e9eca,_0x356a60]=(0x0,react['useState'])((_0x38c1f7=_0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x1036d3(0x2a4)])!==null&&_0x38c1f7!==void 0x0?_0x38c1f7:_univerjs_pro_engine_shape[_0x1036d3(0x2b1)]['Stretch']),[_0x20e52f,_0x4efc89]=(0x0,react[_0x1036d3(0x2ef)])((_0x58219b=_0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x1036d3(0x18d)])!==null&&_0x58219b!==void 0x0?_0x58219b:![]),[_0x2180e2,_0x5a30f7]=(0x0,react[_0x1036d3(0x2ef)])((_0xc12bc8=_0x56b29b===null||_0x56b29b===void 0x0||(_0x791502=_0x56b29b[_0x1036d3(0x223)])===null||_0x791502===void 0x0?void 0x0:_0x791502['offsetX'])!==null&&_0xc12bc8!==void 0x0?_0xc12bc8:0x0),[_0x4f8b43,_0x4dbf86]=(0x0,react[_0x1036d3(0x2ef)])((_0x4239dc=_0x56b29b===null||_0x56b29b===void 0x0||(_0x58d322=_0x56b29b[_0x1036d3(0x223)])===null||_0x58d322===void 0x0?void 0x0:_0x58d322[_0x1036d3(0x323)])!==null&&_0x4239dc!==void 0x0?_0x4239dc:0x0),[_0x2141e9,_0x5f0d8d]=(0x0,react[_0x1036d3(0x2ef)])((_0x50be41=_0x56b29b===null||_0x56b29b===void 0x0||(_0x1b1de6=_0x56b29b[_0x1036d3(0x223)])===null||_0x1b1de6===void 0x0?void 0x0:_0x1b1de6[_0x1036d3(0x40a)])!==null&&_0x50be41!==void 0x0?_0x50be41:0x1),[_0x203dda,_0x505aad]=(0x0,react[_0x1036d3(0x2ef)])((_0x227103=_0x56b29b===null||_0x56b29b===void 0x0||(_0x43bf8a=_0x56b29b[_0x1036d3(0x223)])===null||_0x43bf8a===void 0x0?void 0x0:_0x43bf8a['scaleY'])!==null&&_0x227103!==void 0x0?_0x227103:0x1),[_0xdfc48b,_0x2c6e25]=(0x0,react[_0x1036d3(0x2ef)])((_0x544574=_0x56b29b===null||_0x56b29b===void 0x0||(_0x1ad8ed=_0x56b29b[_0x1036d3(0x223)])===null||_0x1ad8ed===void 0x0?void 0x0:_0x1ad8ed[_0x1036d3(0x1d1)])!==null&&_0x544574!==void 0x0?_0x544574:'tl'),_0x21eada=_0x1e9eca===_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x1036d3(0x116)],_0x5eda05=Math[_0x1036d3(0x50b)]((0x1-_0x25fa19)*0x64),_0xd511b2=Math[_0x1036d3(0x50b)](_0x2141e9*0x64),_0x2ac2a0=Math[_0x1036d3(0x50b)](_0x203dda*0x64),_0x2f4d05=_0x6d6aa7=>_0x5bde05['t'](_0x6d6aa7),_0x137417=[{'label':_0x2f4d05(_0x1036d3(0x37e)),'value':'tl'},{'label':_0x2f4d05(_0x1036d3(0x2cf)),'value':'t'},{'label':_0x2f4d05(_0x1036d3(0x294)),'value':'tr'},{'label':_0x2f4d05(_0x1036d3(0x32f)),'value':'l'},{'label':_0x2f4d05(_0x1036d3(0x480)),'value':_0x1036d3(0x30e)},{'label':_0x2f4d05(_0x1036d3(0x1b4)),'value':'r'},{'label':_0x2f4d05(_0x1036d3(0x4e2)),'value':'bl'},{'label':_0x2f4d05(_0x1036d3(0x1f5)),'value':'b'},{'label':_0x2f4d05(_0x1036d3(0x285)),'value':'br'}],_0x46a85b=_0x2ad8a3=>{updateShapeData(_0x5372ce,_0x58d030,_0x265789,_0x5aeea5,{'oldShapeData':{'fill':_0x56b29b?{..._0x56b29b}:void 0x0}},{'fill':{..._0x56b29b,..._0x2ad8a3}});},_0x305792=_0x1562f5=>{const _0x43eb6c=_0x1036d3;_0x46a85b({'imageTile':{..._0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x43eb6c(0x223)],..._0x1562f5}});},_0x17961f=()=>{const _0x57c322=_0x1036d3;var _0x4d34b4;return(_0x4d34b4=_0x562c55[_0x57c322(0x494)])===null||_0x4d34b4===void 0x0?void 0x0:_0x4d34b4[_0x57c322(0x41a)]();},_0x38df7f=async _0x1935b6=>{const _0x3a6317=_0x1036d3;var _0x484354;const _0x1681a4=(_0x484354=_0x1935b6[_0x3a6317(0x2fd)][_0x3a6317(0x24b)])===null||_0x484354===void 0x0?void 0x0:_0x484354[0x0];if(!_0x1681a4)return;_0x1935b6[_0x3a6317(0x2fd)][_0x3a6317(0x357)]='';const _0x4df9cd=await _0x3ecaf9[_0x3a6317(0x5fc)](_0x1681a4);if(_0x4df9cd==null)return;const {imageSourceType:_0x2a4f56,source:_0x4cd93b,base64Cache:_0x46b1ba}=_0x4df9cd,{image:_0x3856b3}=await(0x0,_univerjs_drawing['getImageSize'])(_0x46b1ba||'');_0x3ecaf9[_0x3a6317(0x114)](_0x4cd93b,_0x2a4f56,_0x3856b3),updateShapeData(_0x5372ce,_0x58d030,_0x265789,_0x5aeea5,{'oldShapeData':{'fill':_0x56b29b?{..._0x56b29b}:void 0x0}},{'fill':{..._0x56b29b,'fillType':_univerjs_pro_engine_shape[_0x3a6317(0x57a)][_0x3a6317(0x5e6)],'fillImageSource':_0x4cd93b,'fillImageSourceType':_0x2a4f56}}),_0x4c8f17['updateShapeFillImage']({'unitId':_0x58d030,'subUnitId':_0x265789,'drawingId':_0x5aeea5},_0x3856b3);},_0x355e17=_0x1036d3(0x348),_0xa59b38=_0x1036d3(0x2e2);return(0x0,react_jsx_runtime[_0x1036d3(0x636)])(_0x1036d3(0x301),{'className':_0x1036d3(0x47c),'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05(_0x1036d3(0x63f))}),(0x0,react_jsx_runtime[_0x1036d3(0x636)])('div',{'className':_0x1036d3(0x421),'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x664),{'ref':_0x562c55,'type':_0x1036d3(0x375),'accept':_0x1036d3(0x311),'className':'univer-hidden','onChange':_0x38df7f}),(0x0,react_jsx_runtime[_0x1036d3(0x636)])('div',{'className':_0x1036d3(0x165),'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])('button',{'type':_0x1036d3(0x38c),'disabled':_0x5f5331,'className':_0x1036d3(0x12c),'onClick':_0x17961f,'children':(0x0,react_jsx_runtime['jsxs'])(_0x1036d3(0x4e1),{'children':[_0x2f4d05(_0x1036d3(0x4e3)),'\x20']})}),_0x2ddc08&&(0x0,react_jsx_runtime[_0x1036d3(0x430)])('div',{'className':_0x1036d3(0x457),'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x2b3),{'src':_0x56b29b===null||_0x56b29b===void 0x0?void 0x0:_0x56b29b[_0x1036d3(0x54d)],'alt':'','className':_0x1036d3(0x2fe)})})]})]})]}),(0x0,react_jsx_runtime[_0x1036d3(0x636)])(_0x1036d3(0x301),{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05(_0x1036d3(0x1ae))}),(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x301),{'className':_0x1036d3(0x3cb),'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design[_0x1036d3(0x593)],{'className':_0x1036d3(0x404),'value':_0x5eda05,'disabled':_0x5f5331,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x1b1afd=>_0x1b1afd+'%','parser':_0x1815c5=>(_0x1815c5===null||_0x1815c5===void 0x0?void 0x0:_0x1815c5['replace']('%',''))||'','onChange':_0x26e670=>{const _0x524cd1=_0x1036d3,_0xd9a110=(0x64-Math[_0x524cd1(0x3b3)](0x0,Math[_0x524cd1(0x245)](0x64,_0x26e670!==null&&_0x26e670!==void 0x0?_0x26e670:0x0)))/0x64;_0xf8c1f0(_0xd9a110),_0x46a85b({'imageOpacity':_0xd9a110}),_0x2e6fe1['setContextValue'](_univerjs_core[_0x524cd1(0x584)],![]);},'onFocus':()=>_0x2e6fe1[_0x1036d3(0x15a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x2e6fe1['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design[_0x1036d3(0x406)],{'checked':_0x21eada,'disabled':_0x5f5331,'onChange':_0xdcff1a=>{const _0x92666b=_0x1036d3,_0x291487=_0xdcff1a?_univerjs_pro_engine_shape[_0x92666b(0x2b1)]['Tile']:_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x92666b(0x3df)];_0x356a60(_0x291487),_0x46a85b({'imageFillMode':_0x291487});},'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':'univer-text-sm','children':_0x2f4d05(_0x1036d3(0x2b7))})}),_0x21eada&&(0x0,react_jsx_runtime[_0x1036d3(0x636)])('div',{'className':_0x1036d3(0x14e),'children':[(0x0,react_jsx_runtime[_0x1036d3(0x636)])('div',{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05(_0x1036d3(0x44d))}),(0x0,react_jsx_runtime['jsx'])(_0x1036d3(0x301),{'className':_0x1036d3(0x3cb),'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design['InputNumber'],{'className':_0x1036d3(0x404),'value':_0x2180e2,'disabled':_0x5f5331,'step':0x1,'onChange':_0x59ed48=>{_0x305792({'offsetX':_0x59ed48!==null&&_0x59ed48!==void 0x0?_0x59ed48:0x0}),_0x5a30f7(_0x59ed48!==null&&_0x59ed48!==void 0x0?_0x59ed48:0x0);},'onFocus':()=>_0x2e6fe1['setContextValue'](_univerjs_core[_0x1036d3(0x584)],!![]),'onBlur':()=>_0x2e6fe1[_0x1036d3(0x15a)](_univerjs_core[_0x1036d3(0x584)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x301),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design['InputNumber'],{'className':_0x1036d3(0x404),'value':_0x4f8b43,'disabled':_0x5f5331,'step':0x1,'onChange':_0x1a1bf3=>{_0x305792({'offsetY':_0x1a1bf3!==null&&_0x1a1bf3!==void 0x0?_0x1a1bf3:0x0}),_0x4dbf86(_0x1a1bf3!==null&&_0x1a1bf3!==void 0x0?_0x1a1bf3:0x0);},'onFocus':()=>_0x2e6fe1['setContextValue'](_univerjs_core[_0x1036d3(0x584)],!![]),'onBlur':()=>_0x2e6fe1['setContextValue'](_univerjs_core[_0x1036d3(0x584)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x1036d3(0x301),{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05(_0x1036d3(0x318))}),(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x301),{'className':_0x1036d3(0x3cb),'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design[_0x1036d3(0x593)],{'className':_0x1036d3(0x404),'value':_0xd511b2,'disabled':_0x5f5331,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x24f323=>_0x24f323+'%','parser':_0x35b914=>(_0x35b914===null||_0x35b914===void 0x0?void 0x0:_0x35b914[_0x1036d3(0x374)]('%',''))||'','onChange':_0x5a4c79=>{const _0xdd3f60=_0x1036d3,_0x40c7fe=Math[_0xdd3f60(0x3b3)](0.01,(_0x5a4c79!==null&&_0x5a4c79!==void 0x0?_0x5a4c79:0x64)/0x64);_0x5f0d8d(_0x40c7fe),_0x305792({'scaleX':_0x40c7fe}),_0x2e6fe1[_0xdd3f60(0x15a)](_univerjs_core[_0xdd3f60(0x584)],![]);},'onFocus':()=>_0x2e6fe1[_0x1036d3(0x15a)](_univerjs_core[_0x1036d3(0x584)],!![]),'onBlur':()=>_0x2e6fe1['setContextValue'](_univerjs_core[_0x1036d3(0x584)],![])})})]}),(0x0,react_jsx_runtime[_0x1036d3(0x636)])(_0x1036d3(0x301),{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime[_0x1036d3(0x430)])('span',{'className':_0x355e17,'children':_0x2f4d05('sheets-shape.fill.picture.scaleY')}),(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_0x1036d3(0x301),{'className':_0x1036d3(0x3cb),'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])(_univerjs_design[_0x1036d3(0x593)],{'className':'univer-w-full','value':_0x2ac2a0,'disabled':_0x5f5331,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x3865a8=>_0x3865a8+'%','parser':_0x102424=>(_0x102424===null||_0x102424===void 0x0?void 0x0:_0x102424['replace']('%',''))||'','onChange':_0xe6c8cb=>{const _0x666819=_0x1036d3,_0x5d308d=Math['max'](0.01,(_0xe6c8cb!==null&&_0xe6c8cb!==void 0x0?_0xe6c8cb:0x64)/0x64);_0x505aad(_0x5d308d),_0x305792({'scaleY':_0x5d308d}),_0x2e6fe1[_0x666819(0x15a)](_univerjs_core[_0x666819(0x584)],![]);},'onFocus':()=>_0x2e6fe1[_0x1036d3(0x15a)](_univerjs_core[_0x1036d3(0x584)],!![]),'onBlur':()=>_0x2e6fe1['setContextValue'](_univerjs_core[_0x1036d3(0x584)],![])})})]}),(0x0,react_jsx_runtime[_0x1036d3(0x636)])(_0x1036d3(0x301),{'className':_0xa59b38,'children':[(0x0,react_jsx_runtime['jsx'])(_0x1036d3(0x4e1),{'className':_0x355e17,'children':_0x2f4d05('sheets-shape.fill.picture.alignment')}),(0x0,react_jsx_runtime['jsx'])(_0x1036d3(0x301),{'className':_0x1036d3(0x4ba),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x1036d3(0x579)],{'className':_0x1036d3(0x404),'value':_0xdfc48b,'options':_0x137417,'disabled':_0x5f5331,'onChange':_0x467ef3=>{_0x2c6e25(_0x467ef3),_0x305792({'alignment':_0x467ef3});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x1036d3(0x406)],{'checked':_0x20e52f,'disabled':_0x5f5331,'onChange':_0x43c595=>{_0x4efc89(_0x43c595),_0x46a85b({'imageRotateWithShape':_0x43c595});},'children':(0x0,react_jsx_runtime[_0x1036d3(0x430)])('span',{'className':_0x1036d3(0x553),'children':_0x2f4d05('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0xa0682f){const _0x1ea65d=_0x3ce055;var _0x5a0876,_0x1a2e3c,_0x3ae074;const _0x3d60c1=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x1ea65d(0x112)]),_0x25b87d=(0x0,_univerjs_ui[_0x1ea65d(0x47b)])(_univerjs_core[_0x1ea65d(0x4f7)]),_0x386cb6=(0x0,_univerjs_ui[_0x1ea65d(0x47b)])(_univerjs_core[_0x1ea65d(0x639)]),{shapeData:_0x55291b,isLineShape:_0x24a825,unitId:_0x5bfac7,subUnitId:_0x607706,shapeId:_0x258b82,disableShapeOption:_0x4d444d}=_0xa0682f,[_0x1b40e2,_0x539dbb]=(0x0,react['useState'])(((_0x5a0876=_0x55291b[_0x1ea65d(0x268)])===null||_0x5a0876===void 0x0?void 0x0:_0x5a0876[_0x1ea65d(0x3ae)])||_univerjs_pro_engine_shape[_0x1ea65d(0x57a)]['SolidFill']),[_0x52dd0f,_0x24ce0d]=(0x0,react[_0x1ea65d(0x2ef)])(((_0x1a2e3c=_0x55291b[_0x1ea65d(0x268)])===null||_0x1a2e3c===void 0x0?void 0x0:_0x1a2e3c[_0x1ea65d(0x5d9)])||_univerjs_pro_engine_shape[_0x1ea65d(0x2da)][_0x1ea65d(0x268)]),[_0x1ab3ad,_0x53d690]=(0x0,react[_0x1ea65d(0x2ef)])(((_0x3ae074=_0x55291b[_0x1ea65d(0x268)])===null||_0x3ae074===void 0x0?void 0x0:_0x3ae074['opacity'])||0x1),[_0x5aa2da,_0xa291f5]=(0x0,react[_0x1ea65d(0x2ef)])(![]);if(_0x24a825)return null;const _0xef5d5d=0x64-_0x1ab3ad*0x64;return(0x0,react_jsx_runtime[_0x1ea65d(0x636)])(_0x1ea65d(0x301),{'className':_0x1ea65d(0x166),'children':[(0x0,react_jsx_runtime[_0x1ea65d(0x636)])(_univerjs_design['RadioGroup'],{'value':_0x1b40e2,'disabled':_0x4d444d,'onChange':_0x3ac4e8=>{const _0x9bb1e8=_0x1ea65d;var _0x3f8508;updateShapeData(_0x25b87d,_0x5bfac7,_0x607706,_0x258b82,{'oldShapeData':{'fill':{'fillType':(_0x3f8508=_0x55291b['fill'])===null||_0x3f8508===void 0x0?void 0x0:_0x3f8508[_0x9bb1e8(0x3ae)]}}},{'fill':{'fillType':_0x3ac4e8}}),_0x539dbb(_0x3ac4e8);},'direction':_0x1ea65d(0x123),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x1ea65d(0x57a)][_0x1ea65d(0x202)],'children':(0x0,react_jsx_runtime['jsx'])(_0x1ea65d(0x4e1),{'className':_0x1ea65d(0x553),'children':_0x3d60c1['t'](_0x1ea65d(0x304))})}),(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x1ea65d(0x57a)][_0x1ea65d(0x43b)],'children':(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_0x1ea65d(0x4e1),{'className':'univer-text-sm','children':_0x3d60c1['t']('sheets-shape.fill.solidFill')})}),(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_design[_0x1ea65d(0x2d9)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x1ea65d(0x28d)],'children':(0x0,react_jsx_runtime['jsx'])(_0x1ea65d(0x4e1),{'className':_0x1ea65d(0x553),'children':_0x3d60c1['t'](_0x1ea65d(0x594))})}),(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_design[_0x1ea65d(0x2d9)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x1ea65d(0x5e6)],'children':(0x0,react_jsx_runtime[_0x1ea65d(0x430)])('span',{'className':_0x1ea65d(0x553),'children':_0x3d60c1['t'](_0x1ea65d(0x502))})})]}),_0x1b40e2===_univerjs_pro_engine_shape[_0x1ea65d(0x57a)]['SolidFill']&&(0x0,react_jsx_runtime[_0x1ea65d(0x636)])(_0x1ea65d(0x301),{'className':_0x1ea65d(0x231),'children':[(0x0,react_jsx_runtime[_0x1ea65d(0x636)])(_0x1ea65d(0x301),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x1ea65d(0x430)])('span',{'className':_0x1ea65d(0x390),'children':_0x3d60c1['t'](_0x1ea65d(0x609))}),(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_design[_0x1ea65d(0x349)],{'disabled':_0x4d444d,'overlay':(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_0x1ea65d(0x301),{'className':_0x1ea65d(0x33b),'children':(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_design[_0x1ea65d(0x432)],{'value':_0x52dd0f,'onChange':_0x335ce6=>{const _0x429645=_0x1ea65d;var _0x28654f;updateShapeData(_0x25b87d,_0x5bfac7,_0x607706,_0x258b82,{'oldShapeData':{'fill':{'color':(_0x28654f=_0x55291b[_0x429645(0x268)])===null||_0x28654f===void 0x0?void 0x0:_0x28654f[_0x429645(0x5d9)]}}},{'fill':{'color':_0x335ce6}}),_0x24ce0d(_0x335ce6),_0xa291f5(![]);}})}),'open':_0x5aa2da,'onOpenChange':_0xa291f5,'children':(0x0,react_jsx_runtime[_0x1ea65d(0x636)])('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_icons[_0x1ea65d(0x1dc)],{'className':_0x1ea65d(0x580),'extend':{'colorChannel1':_0x52dd0f}}),(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_univerjs_icons[_0x1ea65d(0x5c2)],{'className':(0x0,_univerjs_design[_0x1ea65d(0x2ca)])(_0x1ea65d(0x31a),{'univer-rotate-180':_0x5aa2da})})]})})]}),(0x0,react_jsx_runtime[_0x1ea65d(0x636)])(_0x1ea65d(0x301),{'className':_0x1ea65d(0x2e2),'children':[(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_0x1ea65d(0x4e1),{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3d60c1['t'](_0x1ea65d(0x1ae))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x1ea65d(0x3d6),'children':(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(_0x1ea65d(0x301),{'className':_0x1ea65d(0x3cb),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x1ea65d(0x593)],{'className':_0x1ea65d(0x404),'value':_0xef5d5d,'disabled':_0x4d444d,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x10affb=>_0x10affb+'%','parser':_0x55b871=>(_0x55b871===null||_0x55b871===void 0x0?void 0x0:_0x55b871['replace']('%',''))||'','onChange':_0x336ca0=>{const _0x1ef178=_0x1ea65d,_0x245549=(0x64-Math[_0x1ef178(0x3b3)](0x0,Math[_0x1ef178(0x245)](0x64,_0x336ca0!==null&&_0x336ca0!==void 0x0?_0x336ca0:0x0)))/0x64;_0x53d690(_0x245549),updateShapeData(_0x25b87d,_0x5bfac7,_0x607706,_0x258b82,{'oldShapeData':{'fill':{..._0x55291b[_0x1ef178(0x268)],'fillType':_0x1b40e2}}},{'fill':{..._0x55291b[_0x1ef178(0x268)],'fillType':_0x1b40e2,'opacity':_0x245549}}),_0x386cb6['setContextValue'](_univerjs_core[_0x1ef178(0x584)],![]);},'onFocus':()=>_0x386cb6[_0x1ea65d(0x15a)](_univerjs_core[_0x1ea65d(0x584)],!![]),'onBlur':()=>{const _0x32a410=_0x1ea65d;_0x386cb6[_0x32a410(0x15a)](_univerjs_core[_0x32a410(0x584)],![]);}})})})]})]}),_0x1b40e2===_univerjs_pro_engine_shape[_0x1ea65d(0x57a)]['GradientFill']&&(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(GradientFillEditor,{'shapeData':_0x55291b,'disableShapeOption':_0x4d444d,'onUpdate':_0x445b2e=>{const _0x1c699f=_0x1ea65d;updateShapeData(_0x25b87d,_0x5bfac7,_0x607706,_0x258b82,{'oldShapeData':{'fill':{..._0x55291b[_0x1c699f(0x268)]}}},{'fill':{..._0x55291b[_0x1c699f(0x268)],..._0x445b2e}});}}),_0x1b40e2===_univerjs_pro_engine_shape['ShapeFillEnum'][_0x1ea65d(0x5e6)]&&(0x0,react_jsx_runtime[_0x1ea65d(0x430)])(ShapeImageFillEditor,{'unitId':_0x5bfac7,'subUnitId':_0x607706,'shapeId':_0x258b82,'shapeData':_0x55291b,'disableShapeOption':_0x4d444d})]});}function shapeGradientTypeToPickerType(_0x45b41d){const _0x3b8b2a=_0x3ce055;switch(_0x45b41d){case _univerjs_pro_engine_shape[_0x3b8b2a(0x542)][_0x3b8b2a(0x16e)]:return _0x3b8b2a(0x110);case _univerjs_pro_engine_shape[_0x3b8b2a(0x542)]['Radial']:return _0x3b8b2a(0x18b);case _univerjs_pro_engine_shape[_0x3b8b2a(0x542)]['Angular']:return _0x3b8b2a(0x3d9);case _univerjs_pro_engine_shape[_0x3b8b2a(0x542)]['Diamond']:return'diamond';default:return _0x3b8b2a(0x110);}}function pickerTypeToShapeGradientType(_0x37d2cd){const _0x4185b7=_0x3ce055;switch(_0x37d2cd){case _0x4185b7(0x110):return _univerjs_pro_engine_shape[_0x4185b7(0x542)][_0x4185b7(0x16e)];case _0x4185b7(0x18b):return _univerjs_pro_engine_shape[_0x4185b7(0x542)][_0x4185b7(0x224)];case _0x4185b7(0x3d9):return _univerjs_pro_engine_shape[_0x4185b7(0x542)][_0x4185b7(0x242)];case _0x4185b7(0x47e):return _univerjs_pro_engine_shape[_0x4185b7(0x542)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x4185b7(0x542)]['Linear'];}}function GradientFillEditor(_0x5437aa){const _0x5d2c79=_0x3ce055,{shapeData:_0x34cfb8,disableShapeOption:_0xbf62df,onUpdate:_0x791347}=_0x5437aa,_0x216f5e=(0x0,react[_0x5d2c79(0x300)])(()=>{const _0x6333f=_0x5d2c79;var _0x1cc749;const _0xe80a4c=_0x34cfb8[_0x6333f(0x268)];return{'type':shapeGradientTypeToPickerType(_0xe80a4c===null||_0xe80a4c===void 0x0?void 0x0:_0xe80a4c[_0x6333f(0x227)]),'angle':(_0x1cc749=_0xe80a4c===null||_0xe80a4c===void 0x0?void 0x0:_0xe80a4c[_0x6333f(0x2b9)])!==null&&_0x1cc749!==void 0x0?_0x1cc749:0x5a,'stops':(_0xe80a4c===null||_0xe80a4c===void 0x0?void 0x0:_0xe80a4c[_0x6333f(0x289)])&&_0xe80a4c[_0x6333f(0x289)][_0x6333f(0x49c)]>=0x2?_0xe80a4c[_0x6333f(0x289)][_0x6333f(0x322)](_0xc90499=>({'color':_0xc90499[_0x6333f(0x5d9)],'offset':_0xc90499[_0x6333f(0x1b5)]*0x64})):[{'color':(_0xe80a4c===null||_0xe80a4c===void 0x0?void 0x0:_0xe80a4c[_0x6333f(0x5d9)])||_0x6333f(0x27e),'offset':0x0},{'color':'#000000','offset':0x64}]};},[_0x34cfb8[_0x5d2c79(0x268)]]),_0x4cde25=_0x160833=>{const _0x28b53e=_0x5d2c79,_0x45ab23=pickerTypeToShapeGradientType(_0x160833[_0x28b53e(0x3bd)]),_0x1c9b64=_0x160833[_0x28b53e(0x163)];_0x791347({'gradientType':_0x45ab23,'gradientAngle':_0x1c9b64,'gradientStops':_0x160833['stops'][_0x28b53e(0x322)](_0x544a4d=>({'color':_0x544a4d[_0x28b53e(0x5d9)],'position':_0x544a4d[_0x28b53e(0x328)]/0x64}))});};return(0x0,react_jsx_runtime[_0x5d2c79(0x430)])(_0x5d2c79(0x301),{'className':_0x5d2c79(0x656),'children':(0x0,react_jsx_runtime[_0x5d2c79(0x430)])(_univerjs_design[_0x5d2c79(0x3e4)],{'value':_0x216f5e,'onChange':_0x4cde25})});}function ShapeLineEditor(_0x2c608b){const _0xa358c3=_0x3ce055;var _0x49ca5b,_0x49fcc6,_0x55fbff,_0x1694c1,_0x9da08f,_0x3bd6b4,_0xc28a0e,_0x5c1142,_0x41504c,_0x415354,_0x3cac99,_0xaf60e2,_0x4fdbac,_0x279782,_0x4d2332,_0x2502d4;const _0xbadfaf=(0x0,_univerjs_ui[_0xa358c3(0x47b)])(_univerjs_core[_0xa358c3(0x112)]),_0x47765a=(0x0,_univerjs_ui[_0xa358c3(0x47b)])(_univerjs_core[_0xa358c3(0x4f7)]),_0x1d5d06=(0x0,_univerjs_ui[_0xa358c3(0x47b)])(_univerjs_core[_0xa358c3(0x639)]),{shapeData:_0x7267ed,isLineShape:_0x4e31c0,unitId:_0x5e462f,subUnitId:_0x587098,shapeId:_0x1793ed,disableShapeOption:_0x23b5e6}=_0x2c608b,_0x1a6443=_0x7267ed[_0xa358c3(0x3c1)],[_0x5c9685,_0x7a04dc]=(0x0,react[_0xa358c3(0x2ef)])((_0x49ca5b=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x1b0)])!==null&&_0x49ca5b!==void 0x0?_0x49ca5b:_univerjs_pro_engine_shape[_0xa358c3(0x13e)]['SolidLine']),[_0x4abb30,_0x477486]=(0x0,react[_0xa358c3(0x2ef)])((_0x49fcc6=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x5d9)])!==null&&_0x49fcc6!==void 0x0?_0x49fcc6:_univerjs_pro_engine_shape[_0xa358c3(0x2da)][_0xa358c3(0x3c1)]),[_0x1be855,_0x8f81e4]=(0x0,react['useState'])((_0x55fbff=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x2f0)])!==null&&_0x55fbff!==void 0x0?_0x55fbff:0x1),[_0x353e7f,_0x7761a5]=(0x0,react[_0xa358c3(0x2ef)])((_0x1694c1=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x1f2)])!==null&&_0x1694c1!==void 0x0?_0x1694c1:_univerjs_pro_engine_shape[_0xa358c3(0x2da)][_0xa358c3(0x57f)]),[_0x558a10,_0x49535a]=(0x0,react[_0xa358c3(0x2ef)])((_0x9da08f=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x5bb)])!==null&&_0x9da08f!==void 0x0?_0x9da08f:_univerjs_pro_engine_shape['ShapeLineDashEnum']['Solid']),[_0x1ca36f,_0x17d7a9]=(0x0,react[_0xa358c3(0x2ef)])((_0x3bd6b4=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443['capType'])!==null&&_0x3bd6b4!==void 0x0?_0x3bd6b4:_univerjs_pro_engine_shape[_0xa358c3(0x19c)]['Flat']),[_0x45e959,_0x1d8a96]=(0x0,react['useState'])((_0xc28a0e=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443['lineJoinType'])!==null&&_0xc28a0e!==void 0x0?_0xc28a0e:_univerjs_pro_engine_shape[_0xa358c3(0x18a)][_0xa358c3(0x30f)]),[_0x576afa,_0x10f72f]=(0x0,react[_0xa358c3(0x2ef)])((_0x5c1142=_0x1a6443===null||_0x1a6443===void 0x0?void 0x0:_0x1a6443[_0xa358c3(0x568)])!==null&&_0x5c1142!==void 0x0?_0x5c1142:_univerjs_pro_engine_shape['ShapeSketchTypeEnum']['None']),_0x50c5c6=_0x7267ed,[_0x59b35a,_0x32d5c5]=(0x0,react['useState'])((_0x41504c=(_0x415354=_0x50c5c6['ln'])===null||_0x415354===void 0x0||(_0x415354=_0x415354[_0xa358c3(0x195)])===null||_0x415354===void 0x0?void 0x0:_0x415354[_0xa358c3(0x3bd)])!==null&&_0x41504c!==void 0x0?_0x41504c:_univerjs_pro_engine_shape[_0xa358c3(0x3bb)][_0xa358c3(0x1ce)]),[_0x20acbd,_0x1b7b62]=(0x0,react[_0xa358c3(0x2ef)])((_0x3cac99=(_0xaf60e2=_0x50c5c6['ln'])===null||_0xaf60e2===void 0x0||(_0xaf60e2=_0xaf60e2['startArrow'])===null||_0xaf60e2===void 0x0?void 0x0:_0xaf60e2[_0xa358c3(0x3da)])!==null&&_0x3cac99!==void 0x0?_0x3cac99:_univerjs_pro_engine_shape['ShapeArrowSizeEnum']['Medium']),[_0x2a0a8f,_0xd9ba58]=(0x0,react['useState'])((_0x4fdbac=(_0x279782=_0x50c5c6['ln'])===null||_0x279782===void 0x0||(_0x279782=_0x279782['endArrow'])===null||_0x279782===void 0x0?void 0x0:_0x279782[_0xa358c3(0x3bd)])!==null&&_0x4fdbac!==void 0x0?_0x4fdbac:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0xa358c3(0x1ce)]),[_0x481f87,_0x17ed98]=(0x0,react[_0xa358c3(0x2ef)])((_0x4d2332=(_0x2502d4=_0x50c5c6['ln'])===null||_0x2502d4===void 0x0||(_0x2502d4=_0x2502d4[_0xa358c3(0x407)])===null||_0x2502d4===void 0x0?void 0x0:_0x2502d4[_0xa358c3(0x3da)])!==null&&_0x4d2332!==void 0x0?_0x4d2332:_univerjs_pro_engine_shape[_0xa358c3(0x4e5)][_0xa358c3(0x661)]),[_0x3463e8,_0x3c3889]=(0x0,react[_0xa358c3(0x2ef)])(![]),_0x1ca9bb=0x64-_0x1be855*0x64,_0x4c70d6=[{'label':_0xbadfaf['t'](_0xa358c3(0x1ef)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x276)][_0xa358c3(0x3b1)])},{'label':_0xbadfaf['t'](_0xa358c3(0x4c6)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0xa358c3(0x558)])},{'label':_0xbadfaf['t'](_0xa358c3(0x1d0)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x276)]['SquareDot'])},{'label':_0xbadfaf['t'](_0xa358c3(0x1ed)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x276)][_0xa358c3(0x60e)])},{'label':_0xbadfaf['t'](_0xa358c3(0x198)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['DashDot'])},{'label':_0xbadfaf['t'](_0xa358c3(0x28f)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0xa358c3(0x2de)])},{'label':_0xbadfaf['t'](_0xa358c3(0x309)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x276)]['LongDashDot'])},{'label':_0xbadfaf['t'](_0xa358c3(0x563)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x276)]['LongDashDotDot'])}],_0x41c97e=[{'label':_0xbadfaf['t'](_0xa358c3(0x17e)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x19c)][_0xa358c3(0x56b)])},{'label':_0xbadfaf['t'](_0xa358c3(0x46f)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x19c)][_0xa358c3(0x21a)])},{'label':_0xbadfaf['t']('sheets-shape.line.capType.square'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x19c)][_0xa358c3(0x53d)])}],_0x125d8f=[{'label':_0xbadfaf['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x1e6)]['None'])},{'label':_0xbadfaf['t'](_0xa358c3(0x623)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x1e6)][_0xa358c3(0x1cd)])},{'label':_0xbadfaf['t'](_0xa358c3(0x212)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x1e6)][_0xa358c3(0x11a)])},{'label':_0xbadfaf['t'](_0xa358c3(0x1ff)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x1e6)][_0xa358c3(0x203)])}],_0x584f6f=[{'label':_0xbadfaf['t'](_0xa358c3(0x453)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x18a)][_0xa358c3(0x30f)])},{'label':_0xbadfaf['t']('sheets-shape.line.joinType.round'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x18a)]['Round'])},{'label':_0xbadfaf['t'](_0xa358c3(0x504)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x18a)][_0xa358c3(0x39e)])}],_0x1cba8b=[{'label':_0xbadfaf['t'](_0xa358c3(0x5b2)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x3bb)][_0xa358c3(0x1ce)])},{'label':_0xbadfaf['t']('sheets-shape.line.arrowType.arrow'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x3bb)]['Arrow'])},{'label':_0xbadfaf['t'](_0xa358c3(0x126)),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0xa358c3(0x662)])},{'label':_0xbadfaf['t'](_0xa358c3(0x463)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x3bb)]['StealthArrow'])},{'label':_0xbadfaf['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x3bb)][_0xa358c3(0x5db)])},{'label':_0xbadfaf['t'](_0xa358c3(0x3d7)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x3bb)]['OvalArrow'])}],_0x392c78=[{'label':_0xbadfaf['t'](_0xa358c3(0x3fb)),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x4e5)]['Small'])},{'label':_0xbadfaf['t']('sheets-shape.line.arrowSize.medium'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x4e5)]['Medium'])},{'label':_0xbadfaf['t']('sheets-shape.line.arrowSize.large'),'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x4e5)][_0xa358c3(0x62f)])}];return(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x166),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_univerjs_design[_0xa358c3(0x150)],{'value':String(_0x5c9685),'disabled':_0x23b5e6,'onChange':_0xc48bcb=>{const _0x492876=_0xa358c3;var _0x43315c;_0x7a04dc(Number(_0xc48bcb)),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x43315c=_0x7267ed[_0x492876(0x3c1)])===null||_0x43315c===void 0x0?void 0x0:_0x43315c['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0xc48bcb)}});},'direction':_0xa358c3(0x123),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x2d9)],{'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x13e)]['NoLine']),'children':(0x0,react_jsx_runtime['jsx'])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x553),'children':_0xbadfaf['t'](_0xa358c3(0x571))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0xa358c3(0x2d9)],{'value':String(_univerjs_pro_engine_shape[_0xa358c3(0x13e)][_0xa358c3(0x26b)]),'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0xa358c3(0x553),'children':_0xbadfaf['t'](_0xa358c3(0x3d8))})})]}),_0x5c9685!==_univerjs_pro_engine_shape['ShapeLineTypeEnum']['NoLine']&&(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x231),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0x2f8))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x349)],{'disabled':_0x23b5e6,'overlay':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':_0xa358c3(0x33b),'children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design['ColorPicker'],{'value':_0x4abb30,'onChange':_0x47d9d2=>{const _0x174c73=_0xa358c3;var _0x4af9f6;updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'color':(_0x4af9f6=_0x7267ed[_0x174c73(0x3c1)])===null||_0x4af9f6===void 0x0?void 0x0:_0x4af9f6['color']}}},{'stroke':{'color':_0x47d9d2}}),_0x477486(_0x47d9d2),_0x3c3889(![]);}})}),'open':_0x3463e8,'onOpenChange':_0x3c3889,'children':(0x0,react_jsx_runtime[_0xa358c3(0x636)])('a',{'className':_0xa358c3(0x588),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':'univer-text-gray-500','extend':{'colorChannel1':_0x4abb30}}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0xa358c3(0x2ca)])(_0xa358c3(0x31a),{'univer-rotate-180':_0x3463e8})})]})})]}),(0x0,react_jsx_runtime['jsxs'])(_0xa358c3(0x301),{'className':_0xa358c3(0x2e2),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])('span',{'className':_0xa358c3(0x348),'children':_0xbadfaf['t'](_0xa358c3(0x176))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':_0xa358c3(0x2e2),'children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x593)],{'className':'univer-w-full','value':_0x1ca9bb,'disabled':_0x23b5e6,'min':0x0,'max':0x64,'formatter':_0xddfd1b=>_0xddfd1b+'%','parser':_0x396d09=>(_0x396d09===null||_0x396d09===void 0x0?void 0x0:_0x396d09[_0xa358c3(0x374)]('%',''))||'','onChange':_0x5445a1=>{const _0x14fc47=_0xa358c3;var _0x46f36e;const _0x487950=(0x64-Math['max'](0x0,Math[_0x14fc47(0x245)](0x64,_0x5445a1!==null&&_0x5445a1!==void 0x0?_0x5445a1:0x0)))/0x64;_0x8f81e4(_0x487950),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'opacity':(_0x46f36e=_0x7267ed[_0x14fc47(0x3c1)])===null||_0x46f36e===void 0x0?void 0x0:_0x46f36e[_0x14fc47(0x2f0)]}}},{'stroke':{'opacity':_0x487950}}),_0x1d5d06['setContextValue'](_univerjs_core[_0x14fc47(0x584)],![]);},'onFocus':()=>_0x1d5d06[_0xa358c3(0x15a)](_univerjs_core[_0xa358c3(0x584)],!![]),'onBlur':_0x10a8d6=>{_0x1d5d06['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]}),(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x2e2),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0xf9))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design['InputNumber'],{'className':_0xa358c3(0x404),'disabled':_0x23b5e6,'value':_0x353e7f,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x422e35=>_0x422e35+'\x20px','parser':_0x7abb3c=>(_0x7abb3c===null||_0x7abb3c===void 0x0?void 0x0:_0x7abb3c[_0xa358c3(0x374)](_0xa358c3(0x236),''))||'','onChange':_0xb0d7d7=>{const _0x1f476d=_0xa358c3;if(!Number[_0x1f476d(0x63d)](_0xb0d7d7)&&_0xb0d7d7!==null){var _0x1e17ea;updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'width':(_0x1e17ea=_0x7267ed['stroke'])===null||_0x1e17ea===void 0x0?void 0x0:_0x1e17ea[_0x1f476d(0x1f2)]}}},{'stroke':{'width':_0xb0d7d7}});}_0x1d5d06['setContextValue'](_univerjs_core[_0x1f476d(0x584)],![]);},'onFocus':()=>_0x1d5d06['setContextValue'](_univerjs_core[_0xa358c3(0x584)],!![]),'onBlur':_0x49a929=>{const _0x193620=_0xa358c3;_0x1d5d06['setContextValue'](_univerjs_core[_0x193620(0x584)],![]);}})})]}),(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0x2c7))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])('div',{'className':_0xa358c3(0x4ba),'children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design['Select'],{'className':_0xa358c3(0x404),'value':String(_0x558a10),'options':_0x4c70d6,'disabled':_0x23b5e6,'onChange':_0x1d43fe=>{const _0x177b7e=_0xa358c3;var _0x5a79fc;_0x49535a(Number(_0x1d43fe)),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'dashType':(_0x5a79fc=_0x7267ed[_0x177b7e(0x3c1)])===null||_0x5a79fc===void 0x0?void 0x0:_0x5a79fc[_0x177b7e(0x5bb)]}}},{'stroke':{'dashType':Number(_0x1d43fe)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0x303))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':_0xa358c3(0x4ba),'children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design['Select'],{'className':_0xa358c3(0x404),'value':String(_0x1ca36f),'options':_0x41c97e,'disabled':_0x23b5e6,'onChange':_0x760a08=>{const _0x39078a=_0xa358c3;var _0x284896;_0x17d7a9(Number(_0x760a08)),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'capType':(_0x284896=_0x7267ed[_0x39078a(0x3c1)])===null||_0x284896===void 0x0?void 0x0:_0x284896[_0x39078a(0x1fb)]}}},{'stroke':{'capType':Number(_0x760a08)}});}})})]}),(0x0,react_jsx_runtime[_0xa358c3(0x636)])('div',{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t']('sheets-shape.line.joinType.title')}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x579)],{'className':'univer-w-full','value':String(_0x45e959),'options':_0x584f6f,'disabled':_0x23b5e6,'onChange':_0x2f7234=>{const _0x2dbd98=_0xa358c3;var _0x4589f7;_0x1d8a96(Number(_0x2f7234)),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'lineJoinType':(_0x4589f7=_0x7267ed['stroke'])===null||_0x4589f7===void 0x0?void 0x0:_0x4589f7[_0x2dbd98(0x241)]}}},{'stroke':{'lineJoinType':Number(_0x2f7234)}});}})})]}),!_0x4e31c0&&(0x0,react_jsx_runtime['jsxs'])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime['jsx'])(_0xa358c3(0x4e1),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xbadfaf['t']('sheets-shape.line.sketchType.title')}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0xa358c3(0x4ba),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0xa358c3(0x404),'value':String(_0x576afa),'options':_0x125d8f,'disabled':_0x23b5e6,'onChange':_0x121539=>{const _0x4329ca=_0xa358c3;var _0x2593ad;_0x10f72f(Number(_0x121539)),updateShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'stroke':{'sketchType':(_0x2593ad=_0x7267ed['stroke'])===null||_0x2593ad===void 0x0?void 0x0:_0x2593ad[_0x4329ca(0x568)]}}},{'stroke':{'sketchType':Number(_0x121539)}});}})})]}),_0x4e31c0&&(0x0,react_jsx_runtime['jsxs'])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0xa358c3(0x390),'children':_0xbadfaf['t']('sheets-shape.line.beginArrowType')}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])('div',{'className':_0xa358c3(0x4ba),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0xa358c3(0x579)],{'className':_0xa358c3(0x404),'value':String(_0x59b35a),'options':_0x1cba8b,'onChange':_0x3570a5=>{const _0x38023b=_0xa358c3;var _0x4cd940;_0x32d5c5(Number(_0x3570a5)),updateLineShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x4cd940=_0x7267ed['ln'])===null||_0x4cd940===void 0x0||(_0x4cd940=_0x4cd940[_0x38023b(0x195)])===null||_0x4cd940===void 0x0?void 0x0:_0x4cd940[_0x38023b(0x3bd)]}}}},{'ln':{'startArrow':{'type':Number(_0x3570a5)}}});}})})]}),(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])('span',{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0x4a0))}),(0x0,react_jsx_runtime['jsx'])(_0xa358c3(0x301),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x579)],{'className':'univer-w-full','value':String(_0x20acbd),'options':_0x392c78,'onChange':_0x33fa32=>{const _0x22fac6=_0xa358c3;var _0x2ee494;_0x1b7b62(Number(_0x33fa32)),updateLineShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x2ee494=_0x7267ed['ln'])===null||_0x2ee494===void 0x0||(_0x2ee494=_0x2ee494[_0x22fac6(0x195)])===null||_0x2ee494===void 0x0?void 0x0:_0x2ee494[_0x22fac6(0x3da)]}}}},{'ln':{'startArrow':{'size':Number(_0x33fa32)}}});}})})]}),(0x0,react_jsx_runtime[_0xa358c3(0x636)])(_0xa358c3(0x301),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0xa358c3(0x4e1),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xbadfaf['t'](_0xa358c3(0x5fd))}),(0x0,react_jsx_runtime['jsx'])(_0xa358c3(0x301),{'className':_0xa358c3(0x4ba),'children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design['Select'],{'className':_0xa358c3(0x404),'value':String(_0x2a0a8f),'options':_0x1cba8b,'onChange':_0x34ddcb=>{const _0x4c95e8=_0xa358c3;var _0x12c51a;_0xd9ba58(Number(_0x34ddcb)),updateLineShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x12c51a=_0x7267ed['ln'])===null||_0x12c51a===void 0x0||(_0x12c51a=_0x12c51a[_0x4c95e8(0x407)])===null||_0x12c51a===void 0x0?void 0x0:_0x12c51a['type']}}}},{'ln':{'endArrow':{'type':Number(_0x34ddcb)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0xa358c3(0x301),{'className':_0xa358c3(0x1c3),'children':[(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x4e1),{'className':_0xa358c3(0x390),'children':_0xbadfaf['t'](_0xa358c3(0x5f9))}),(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_0xa358c3(0x301),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0xa358c3(0x430)])(_univerjs_design[_0xa358c3(0x579)],{'className':_0xa358c3(0x404),'value':String(_0x481f87),'options':_0x392c78,'onChange':_0x3ddd6d=>{var _0x101d04;_0x17ed98(Number(_0x3ddd6d)),updateLineShapeData(_0x47765a,_0x5e462f,_0x587098,_0x1793ed,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x101d04=_0x7267ed['ln'])===null||_0x101d04===void 0x0||(_0x101d04=_0x101d04['endArrow'])===null||_0x101d04===void 0x0?void 0x0:_0x101d04['size']}}}},{'ln':{'endArrow':{'size':Number(_0x3ddd6d)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x51dc38=_0x3ce055,_0x5542e8=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IDrawingManagerService']),[_0xd3f1ba,_0x36e90b]=(0x0,react[_0x51dc38(0x2ef)])(_0x5542e8[_0x51dc38(0x5e2)]());(0x0,react[_0x51dc38(0x36a)])(()=>{const _0xa4c918=_0x51dc38,_0x20f578=_0x5542e8[_0xa4c918(0x364)][_0xa4c918(0x4c3)](_0x35acb9=>{_0x36e90b(_0x35acb9);});return()=>{_0x20f578['unsubscribe']();};},[]);if(_0xd3f1ba['length']===0x0)return null;return(0x0,react_jsx_runtime['jsx'])('div',{'children':(0x0,react_jsx_runtime['jsxs'])(_0x51dc38(0x301),{'className':_0x51dc38(0x14a),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_drawing_ui[_0x51dc38(0x38f)],{'drawings':_0xd3f1ba,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x51dc38(0x430)])(_univerjs_sheets_drawing_ui[_0x51dc38(0x4ae)],{'drawings':_0xd3f1ba})]})});}function ShapeEditPanel(_0x54a884){const _0x32489c=_0x3ce055,{shapeData:_0x220f8d,shapeId:_0x534430,shapeType:_0x45120a,version:_0x337ab,unitId:_0x585aa4,subUnitId:_0x16cdd2,disableShapeOption:_0xb9a4ba}=_0x54a884,_0x4eb766=(0x0,_univerjs_ui[_0x32489c(0x47b)])(_univerjs_core[_0x32489c(0x112)]),_0x29d61a=(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x45120a),[_0xbe332,_0x1e80f3]=(0x0,react[_0x32489c(0x2ef)])(0x0),_0x38fa9c=[{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x4eb766['t'](_0x32489c(0x32c))}),'children':(0x0,react_jsx_runtime[_0x32489c(0x430)])(_0x32489c(0x4d5),{'className':_0x32489c(0x507),'children':(0x0,react_jsx_runtime[_0x32489c(0x430)])(ShapeFillEditor,{'shapeId':_0x534430,'shapeData':_0x220f8d,'isLineShape':_0x29d61a,'subUnitId':_0x16cdd2,'unitId':_0x585aa4,'disableShapeOption':_0xb9a4ba},_0x534430)})},{'label':(0x0,react_jsx_runtime[_0x32489c(0x430)])(_0x32489c(0x301),{'children':_0x4eb766['t'](_0x32489c(0x58b))}),'children':(0x0,react_jsx_runtime[_0x32489c(0x430)])(_0x32489c(0x4d5),{'className':_0x32489c(0x507),'children':(0x0,react_jsx_runtime[_0x32489c(0x430)])(ShapeLineEditor,{'shapeId':_0x534430,'shapeData':_0x220f8d,'isLineShape':_0x29d61a,'subUnitId':_0x16cdd2,'unitId':_0x585aa4,'disableShapeOption':_0xb9a4ba},_0x534430)})}];return(0x0,react_jsx_runtime['jsxs'])(_0x32489c(0x301),{'className':_0x32489c(0x649),'children':[(0x0,react_jsx_runtime[_0x32489c(0x636)])(_0x32489c(0x301),{'className':_0x32489c(0x5a8),'children':[(0x0,react_jsx_runtime[_0x32489c(0x636)])(_0x32489c(0x301),{'className':(0x0,_univerjs_design[_0x32489c(0x2ca)])(_0x32489c(0x111),_0xbe332===0x0?_0x32489c(0x3c3):_0x32489c(0x194)),'onClick':()=>_0x1e80f3(0x0),'children':[_0x4eb766['t'](_0x32489c(0x2ea)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x32489c(0x2ca)])(_0x32489c(0x575),{'univer-bg-primary-600':_0xbe332===0x0,'univer-bg-transparent':_0xbe332!==0x0})})]}),(0x0,react_jsx_runtime[_0x32489c(0x636)])(_0x32489c(0x301),{'className':(0x0,_univerjs_design[_0x32489c(0x2ca)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0xbe332===0x1,'univer-text-gray-500':_0xbe332!==0x1}),'onClick':()=>_0x1e80f3(0x1),'children':[_0x4eb766['t'](_0x32489c(0x516)),(0x0,react_jsx_runtime[_0x32489c(0x430)])(_0x32489c(0x301),{'className':(0x0,_univerjs_design[_0x32489c(0x2ca)])(_0x32489c(0x148),{'univer-bg-primary-600':_0xbe332===0x1,'univer-bg-transparent':_0xbe332!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x32489c(0x430)])('div',{'className':_0x32489c(0x1c5),'children':_0xbe332===0x0?(0x0,react_jsx_runtime[_0x32489c(0x430)])(_0x32489c(0x301),{'className':'','children':(0x0,react_jsx_runtime[_0x32489c(0x430)])(_univerjs_design[_0x32489c(0x659)],{'items':_0x38fa9c})},_0x337ab):(0x0,react_jsx_runtime['jsx'])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x3ce055(0x4a5)]{constructor(_0x35e1d4,_0x66ac39){const _0x2c9d4c=_0x3ce055;super(_0x35e1d4,_0x66ac39),_defineProperty(this,'_shapeId',null),_defineProperty(this,_0x2c9d4c(0x219),null),_defineProperty(this,_0x2c9d4c(0x2f5),null),_defineProperty(this,_0x2c9d4c(0x2bc),null);if(_0x66ac39)this['setShapeProps'](_0x66ac39);}['getDrawingSearch'](){const _0x5563f5=_0x3ce055;return{'unitId':this[_0x5563f5(0x2f5)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5563f5(0x556)]};}['setShapeProps'](_0x182f53){const _0x627a65=_0x3ce055;if(typeof _0x182f53[_0x627a65(0x469)]!=='undefined')this[_0x627a65(0x556)]=_0x182f53[_0x627a65(0x469)];if(typeof _0x182f53[_0x627a65(0x4f2)]!=='undefined')this[_0x627a65(0x219)]=_0x182f53[_0x627a65(0x4f2)];if(typeof _0x182f53[_0x627a65(0x5df)]!==_0x627a65(0x23f))this[_0x627a65(0x2f5)]=_0x182f53[_0x627a65(0x5df)];if(typeof _0x182f53[_0x627a65(0x54e)]!==_0x627a65(0x23f))this[_0x627a65(0x2bc)]=_0x182f53[_0x627a65(0x54e)];this[_0x627a65(0x436)]({'width':_0x182f53['width'],'height':_0x182f53[_0x627a65(0x622)]});}[_0x3ce055(0x537)](_0x4aef0f){const _0x213831=_0x3ce055;_univerjs_engine_render['Circle'][_0x213831(0x538)](_0x4aef0f,{'radius':_univerjs_pro_engine_shape[_0x213831(0x2da)][_0x213831(0x2d5)],'fill':_univerjs_pro_engine_shape[_0x213831(0x2da)]['adjHandleFill'],'stroke':_univerjs_pro_engine_shape[_0x213831(0x2da)][_0x213831(0x1eb)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x26f296,_0x467e09,_0x5ab3d2,_0x480655,_0x4313f4,_0x885587,_0x1cdeb6,_0x3b1eff){const _0xc0550c=_0x3ce055;super(),this[_0xc0550c(0x378)]=_0x26f296,this[_0xc0550c(0x26e)]=_0x467e09,this['_drawingManagerService']=_0x5ab3d2,this['_sheetsShapeService']=_0x480655,this[_0xc0550c(0x637)]=_0x4313f4,this['_sheetDrawingShapeRenderController']=_0x885587,this[_0xc0550c(0x3c5)]=_0x1cdeb6,this[_0xc0550c(0x597)]=_0x3b1eff,_defineProperty(this,_0xc0550c(0x534),null),_defineProperty(this,_0xc0550c(0x2f5),null),_defineProperty(this,_0xc0550c(0x2bc),null),_defineProperty(this,'_activeShapeAdjustPointList',void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,_0xc0550c(0x433),0x0),_defineProperty(this,_0xc0550c(0x4dc),0x0),_defineProperty(this,_0xc0550c(0x156),0x0),_defineProperty(this,_0xc0550c(0x477),0x0),_defineProperty(this,_0xc0550c(0x62e),![]),_defineProperty(this,_0xc0550c(0x376),void 0x0),_defineProperty(this,_0xc0550c(0x11e),void 0x0),_defineProperty(this,_0xc0550c(0x1f1),void 0x0),_defineProperty(this,_0xc0550c(0x530),void 0x0),_defineProperty(this,_0xc0550c(0x19f),![]),this[_0xc0550c(0x641)](),this['_registerDrawingMoveHandler']();}[_0x3ce055(0x2c9)](_0x2473dd,_0x29056d,_0x2f0bd3){const _0x17a329=_0x3ce055,_0x2fb0b2=this[_0x17a329(0x61c)][_0x17a329(0x272)](_0x2473dd,_0x29056d,_0x2f0bd3);if(_0x2fb0b2)return _0x2fb0b2[_0x17a329(0x60d)]();}['clearAdjustControls'](){const _0x256965=_0x3ce055;this[_0x256965(0x183)]();}[_0x3ce055(0x3a0)](){const _0x2c2cbe=_0x3ce055;this[_0x2c2cbe(0xff)](!![]);}['setShouldShowAdjust'](_0x2dc93b){const _0x322f77=_0x3ce055;this[_0x322f77(0x19f)]=_0x2dc93b;}['_getShapeAdjustInfosById'](_0x4d5247,_0x139f2b,_0x1bb2e6,_0x133f2c){const _0x5947ae=_0x3ce055,_0x3ab6f4=this[_0x5947ae(0x61c)][_0x5947ae(0x272)](_0x4d5247,_0x139f2b,_0x1bb2e6);if(_0x3ab6f4)return _0x3ab6f4['getAdjustInfoByName'](_0x133f2c);}['_createShapeAdjustControls'](_0x21c77f=![]){const _0x1d632e=_0x3ce055;if(this[_0x1d632e(0x2f5)]===null||this[_0x1d632e(0x2bc)]===null||this[_0x1d632e(0x534)]===null)return;const _0x50ff34=this[_0x1d632e(0x637)]['getRenderById'](this[_0x1d632e(0x2f5)]);if(!_0x50ff34)return;if(!_0x50ff34[_0x1d632e(0x512)](_univerjs_sheets_ui[_0x1d632e(0x30b)])[_0x1d632e(0x615)]())return;const {scene:_0xfde484}=_0x50ff34,_0x138633={'unitId':this[_0x1d632e(0x2f5)],'subUnitId':this[_0x1d632e(0x2bc)],'drawingId':this[_0x1d632e(0x534)]},_0x4be1fc=this['_drawingManagerService'][_0x1d632e(0x382)](_0x138633),{transform:_0x4fcbcb}=_0x4be1fc;if(!_0x4fcbcb)return;if(_0x4be1fc['drawingType']!==_univerjs_core[_0x1d632e(0x5bc)]['DRAWING_SHAPE'])return;const {left:_0x2910bf,top:_0x761c08,width:_0xb4ebed,height:_0x1b5a16,flipX:_0x1a6ba6,flipY:_0x3a55ed,angle:angle=0x0}=_0x4fcbcb;if(_0x2910bf===void 0x0||_0x761c08===void 0x0)return;if(_0x21c77f)this['_activeShapeAdjustPointList']=this[_0x1d632e(0x2c9)](this['_unitId'],this['_subUnitId'],this['_activeShapeId']);const _0x569388=this[_0x1d632e(0x3d0)];for(let _0x18673d=0x0;_0x18673d<_0x569388[_0x1d632e(0x49c)];_0x18673d++){const _0x4e6f14=_0x569388[_0x18673d];let _0x170ac5=_0x4e6f14['x'],_0x44cde9=_0x4e6f14['y'];if(_0x1a6ba6)_0x170ac5=(_0xb4ebed||0x0)-_0x170ac5;if(_0x3a55ed)_0x44cde9=(_0x1b5a16||0x0)-_0x44cde9;if(angle!==0x0){const _0x3122c5=(_0xb4ebed||0x0)/0x2,_0x5c1f60=(_0x1b5a16||0x0)/0x2,_0x310ca2=angle*Math['PI']/0xb4,_0x42e9ad=Math[_0x1d632e(0x238)](_0x310ca2),_0x31abc9=Math[_0x1d632e(0x42a)](_0x310ca2),_0x39ad06=_0x170ac5-_0x3122c5,_0x18a7a9=_0x44cde9-_0x5c1f60;_0x170ac5=_0x3122c5+(_0x39ad06*_0x42e9ad-_0x18a7a9*_0x31abc9),_0x44cde9=_0x5c1f60+(_0x39ad06*_0x31abc9+_0x18a7a9*_0x42e9ad);}const _0x12811a={'x':_0x170ac5,'y':_0x44cde9,'adjName':_0x4e6f14[_0x1d632e(0x4f2)]};this['_addShapeAdjustControl'](_0xfde484,_0x12811a,_0x12811a[_0x1d632e(0x4f2)],_0x2910bf,_0x761c08,this[_0x1d632e(0x2f5)],this[_0x1d632e(0x2bc)]);}}[_0x3ce055(0xff)](_0x3f0aac=![]){const _0x3cb3f5=_0x3ce055;_0x3f0aac&&(this[_0x3cb3f5(0x183)](),this['_createShapeAdjustControls'](_0x3f0aac));}[_0x3ce055(0x4a8)](_0x1b1099,_0x11bb8d,_0x27d36c,_0x5c2d49,_0x1f8eb5,_0x2af14d,_0x35b4e8){const _0x59f159=_0x3ce055;if(!this['_activeShapeId'])return;const _0x549724=_0x1b1099[_0x59f159(0x41b)](_0x59f159(0x249)+this[_0x59f159(0x534)]+'-'+_0x27d36c);if(_0x549724){_0x549724[_0x59f159(0x436)]({'left':_0x11bb8d['x']+_0x5c2d49-_univerjs_pro_engine_shape[_0x59f159(0x2da)][_0x59f159(0x2d5)],'top':_0x11bb8d['y']+_0x1f8eb5-_univerjs_pro_engine_shape[_0x59f159(0x2da)][_0x59f159(0x2d5)]});return;}const _0x907911={'left':_0x11bb8d['x']+_0x5c2d49-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x59f159(0x2d5)],'top':_0x11bb8d['y']+_0x1f8eb5-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x59f159(0x2d5)],'adjName':_0x27d36c,'shapeId':this['_activeShapeId'],'unitId':_0x2af14d,'subUnitId':_0x35b4e8,'width':_univerjs_pro_engine_shape[_0x59f159(0x2da)]['adjHandleSize']+0x8,'height':_univerjs_pro_engine_shape[_0x59f159(0x2da)][_0x59f159(0x2d5)]+0x8,'zIndex':_univerjs_engine_render[_0x59f159(0x15f)]+0x1,'evented':!![]},_0x2f55e3=new SheetShapeAdjustPointObject(_0x59f159(0x249)+this['_activeShapeId']+'-'+_0x27d36c,_0x907911);this[_0x59f159(0x631)][_0x59f159(0x20e)](_0x2f55e3),this['_attachAdjustEvent'](_0x2f55e3,_0x1b1099,_0x27d36c),_0x1b1099[_0x59f159(0x486)](_0x2f55e3,_univerjs_engine_render[_0x59f159(0x15f)]+0x1);}[_0x3ce055(0x183)](){const _0x1bc29b=_0x3ce055;if(this[_0x1bc29b(0x631)]['length']===0x0)return;this[_0x1bc29b(0x631)][_0x1bc29b(0x36b)](_0x2b2a07=>{_0x2b2a07['dispose']();}),this[_0x1bc29b(0x631)]=[];}[_0x3ce055(0x590)](){const _0x1a3b8b=_0x3ce055;this[_0x1a3b8b(0x35a)]();}[_0x3ce055(0x5b0)](_0x4216e9,_0x5026f2){const _0x3df63b=_0x3ce055;var _0x1b82e7;const _0x93d889={'x':0x0,'y':0x0};if(!_0x4216e9||!_0x5026f2)return _0x93d889;const _0x186b3e=this['_renderManagerService'][_0x3df63b(0x155)](_0x4216e9);if(!_0x186b3e)return _0x93d889;if(!_0x186b3e[_0x3df63b(0x512)](_univerjs_sheets_ui[_0x3df63b(0x30b)])[_0x3df63b(0x22a)](_0x5026f2))return _0x93d889;const _0x88394d=_0x186b3e[_0x3df63b(0x512)](_univerjs_sheets_ui[_0x3df63b(0x139)]),_0x18bf49=_0x88394d===null||_0x88394d===void 0x0?void 0x0:_0x88394d[_0x3df63b(0x4a4)]();if(!_0x18bf49)return _0x93d889;const _0x25e096=(_0x1b82e7=this[_0x3df63b(0x3c5)][_0x3df63b(0x3cc)](_0x4216e9))===null||_0x1b82e7===void 0x0?void 0x0:_0x1b82e7['getSheetBySheetId'](_0x5026f2);if(!_0x25e096)return _0x93d889;const _0x19730e=(0x0,_univerjs_sheets_ui[_0x3df63b(0x336)])(_0x18bf49[_0x3df63b(0x569)],_0x18bf49['sheetViewStartColumn'],_0x186b3e[_0x3df63b(0x1bc)],_0x25e096);if(!_0x19730e)return _0x93d889;return{'x':_0x19730e[_0x3df63b(0x361)],'y':_0x19730e[_0x3df63b(0x14b)]};}[_0x3ce055(0x281)](_0x341b12,_0x4cbca2){const _0x56908d=_0x3ce055;var _0x1e49cb,_0x53fcd0;const _0x539a08=(_0x1e49cb=this[_0x56908d(0x3c5)][_0x56908d(0x3cc)](_0x341b12))===null||_0x1e49cb===void 0x0?void 0x0:_0x1e49cb[_0x56908d(0x14f)](_0x4cbca2);return(_0x53fcd0=_0x539a08===null||_0x539a08===void 0x0?void 0x0:_0x539a08[_0x56908d(0x2f9)]())!==null&&_0x53fcd0!==void 0x0?_0x53fcd0:0x1;}[_0x3ce055(0x3f8)](_0x384367,_0x2bc151,_0x5a1a){const _0x273a57=_0x3ce055;this[_0x273a57(0x193)]((0x0,_univerjs_core[_0x273a57(0x10a)])(_0x384367[_0x273a57(0x1d2)][_0x273a57(0x5c9)]((_0x131b8b,_0x35802c)=>{const _0x556894=_0x273a57;var _0x1f881c,_0x552a2,_0x21a5b1,_0x12e5e4;const _0x32c53b=_0x384367['getDrawingSearch']();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x32c53b['unitId'],_0x32c53b[_0x556894(0x54e)],_0x32c53b['drawingId'],_0x5a1a),this['_activeShapeModel']=this[_0x556894(0x61c)][_0x556894(0x272)](_0x32c53b[_0x556894(0x5df)],_0x32c53b[_0x556894(0x54e)],_0x32c53b[_0x556894(0x133)]);const _0x1c93bf=this[_0x556894(0x591)]['getDrawingByParam']({'unitId':this[_0x556894(0x2f5)],'subUnitId':this[_0x556894(0x2bc)],'drawingId':this[_0x556894(0x534)]}),{transform:_0xc808e5}=_0x1c93bf;if(_0xc808e5){const {left:_0x4b941d,top:_0x57f4a3,width:_0x3828ec,height:_0x2a5540}=_0xc808e5;this[_0x556894(0x433)]=_0x4b941d||0x0,this[_0x556894(0x4dc)]=_0x57f4a3||0x0,this[_0x556894(0x156)]=_0x3828ec||0x0,this['_baseShapeHeight']=_0x2a5540||0x0;}const _0x592b90=Boolean((_0x1f881c=_0x1c93bf[_0x556894(0x152)])===null||_0x1f881c===void 0x0?void 0x0:_0x1f881c['flipX']),_0x37ca81=Boolean((_0x552a2=_0x1c93bf[_0x556894(0x152)])===null||_0x552a2===void 0x0?void 0x0:_0x552a2[_0x556894(0x282)]),_0x54aba1=((_0x21a5b1=_0x1c93bf['transform'])===null||_0x21a5b1===void 0x0?void 0x0:_0x21a5b1[_0x556894(0x163)])||0x0;this[_0x556894(0x62e)]=!![],_0x2bc151[_0x556894(0x5dd)]();const _0x49f8d3=(_0x12e5e4=this[_0x556894(0x11e)])===null||_0x12e5e4===void 0x0?void 0x0:_0x12e5e4[_0x556894(0x175)](_0x5a1a),_0x164b86={[_0x5a1a]:_0x49f8d3};this[_0x556894(0x1f1)]=_0x2bc151[_0x556894(0x635)][_0x556894(0x5c9)]((_0x1458ae,_0x1a63e0)=>{const _0x307137=_0x556894;if(!this[_0x307137(0x62e)])return;const {offsetX:_0x2fef9f,offsetY:_0x5144ae}=_0x1458ae,_0x57c0c5=this[_0x307137(0x376)];if(this[_0x307137(0x11e)]&&_0x57c0c5){_0x2bc151[_0x307137(0x5dd)](),_0x2bc151[_0x307137(0x4f0)](_univerjs_engine_render['CURSOR_TYPE']['CROSSHAIR']);const _0xff08e4={'left':0x0,'top':0x0,'width':this[_0x307137(0x156)],'height':this[_0x307137(0x477)]},_0x2e5248=this[_0x307137(0x5b0)](this['_unitId'],this['_subUnitId']),_0x1a59e0=this[_0x307137(0x281)](this['_unitId'],this[_0x307137(0x2bc)]);let _0x1c868a=_0x2fef9f/_0x1a59e0+_0x2e5248['x']-this['_baseShapeLeft'],_0x135ee9=_0x5144ae/_0x1a59e0+_0x2e5248['y']-this[_0x307137(0x4dc)];if(_0x54aba1!==0x0){const _0x304e68=this['_baseShapeWidth']/0x2,_0x240a7f=this['_baseShapeHeight']/0x2,_0x5aa733=_0x54aba1*Math['PI']/0xb4,_0x2e1b5c=Math[_0x307137(0x238)](_0x5aa733),_0x5782b9=Math[_0x307137(0x42a)](_0x5aa733),_0x11627f=_0x1c868a-_0x304e68,_0x3e057d=_0x135ee9-_0x240a7f;_0x1c868a=_0x304e68+(_0x11627f*_0x2e1b5c+_0x3e057d*_0x5782b9),_0x135ee9=_0x240a7f+(-_0x11627f*_0x5782b9+_0x3e057d*_0x2e1b5c);}if(_0x592b90)_0x1c868a=this[_0x307137(0x156)]-_0x1c868a;if(_0x37ca81)_0x135ee9=this[_0x307137(0x477)]-_0x135ee9;const _0x4d6fe6={'x':_0x1c868a,'y':_0x135ee9},_0x1374af=this['_activeShapeModel'][_0x307137(0x3d3)](_0xff08e4,_0x4d6fe6,_0x57c0c5,_0x592b90,_0x37ca81),_0x2cc66c=_0x57c0c5[_0x307137(0x5c7)]||_0x57c0c5[_0x307137(0x1b3)]||_0x57c0c5[_0x307137(0x26c)]||_0x57c0c5[_0x307137(0x501)];if(_0x2cc66c===void 0x0)return;this[_0x307137(0x11e)][_0x307137(0x324)](_0x2cc66c,_0x1374af);const _0x1839ae=this['_drawingManagerService'][_0x307137(0x382)]({'unitId':_0x32c53b[_0x307137(0x5df)],'subUnitId':_0x32c53b['subUnitId'],'drawingId':_0x32c53b[_0x307137(0x133)]});_0x1839ae&&(this[_0x307137(0x5bd)]['renderDrawingShape'](_0x1839ae,_0x2bc151),this[_0x307137(0x3d0)]=this[_0x307137(0x2c9)](_0x32c53b[_0x307137(0x5df)],_0x32c53b[_0x307137(0x54e)],_0x32c53b[_0x307137(0x133)]),this['_updateAdjustControlPositions']());}_0x1a63e0[_0x307137(0x383)]();}),this['_adjHandlerPointerUp']=_0x2bc151[_0x556894(0x2f7)]['subscribeEvent']((_0x378f06,_0x1fb867)=>{const _0x156dd6=_0x556894;this[_0x156dd6(0x1f1)]['unsubscribe'](),this[_0x156dd6(0x530)][_0x156dd6(0x1c0)](),_0x2bc151[_0x156dd6(0x2ad)]();const _0x2c3bf9=this[_0x156dd6(0x376)];if(_0x2c3bf9){const _0x280356=_0x32c53b[_0x156dd6(0x5df)],_0x323083=_0x32c53b['subUnitId'],_0x164dbd=_0x32c53b[_0x156dd6(0x133)],_0x288a44=_0x2c3bf9[_0x156dd6(0x5c7)]||_0x2c3bf9[_0x156dd6(0x1b3)]||_0x2c3bf9[_0x156dd6(0x26c)]||_0x2c3bf9[_0x156dd6(0x501)];if(_0x288a44!==void 0x0){var _0x3fd7e7;const _0x50a0d9=(_0x3fd7e7=this[_0x156dd6(0x11e)])===null||_0x3fd7e7===void 0x0?void 0x0:_0x3fd7e7[_0x156dd6(0x175)](_0x288a44);if(_0x50a0d9!==void 0x0)updateShapeData(this[_0x156dd6(0x597)],_0x280356,_0x323083,_0x164dbd,{'oldShapeData':{'adjustValues':_0x164b86}},{'adjustValues':{[_0x288a44]:_0x50a0d9}});}}this[_0x156dd6(0x376)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x156dd6(0x62e)]=![],_0x1fb867[_0x156dd6(0x383)](),_0x2bc151[_0x156dd6(0x2cc)]();}),_0x35802c[_0x556894(0x383)]();})));}['_registerDrawingMoveHandler'](){const _0x34d3a8=_0x3ce055,_0x1cce32=this[_0x34d3a8(0x3c5)][_0x34d3a8(0x20a)](_univerjs_core[_0x34d3a8(0x34b)]['UNIVER_SHEET']);this[_0x34d3a8(0x193)](_0x1cce32[_0x34d3a8(0x33d)]((0x0,rxjs['switchMap'])(_0x506137=>{const _0x1a4c4b=_0x34d3a8;if(!_0x506137)return rxjs[_0x1a4c4b(0x16c)];return _0x506137[_0x1a4c4b(0x50f)]['pipe']((0x0,rxjs[_0x1a4c4b(0x2a1)])(_0x3a089a=>{const _0x5df6f9=_0x1a4c4b;if(!_0x3a089a)return rxjs[_0x5df6f9(0x16c)];const _0x1ba7a8=_0x506137['getUnitId'](),_0x23bf2a=this[_0x5df6f9(0x637)]['getRenderById'](_0x1ba7a8),_0x3cd105=_0x23bf2a===null||_0x23bf2a===void 0x0?void 0x0:_0x23bf2a['scene'];if(!_0x3cd105)return rxjs[_0x5df6f9(0x16c)];return(0x0,rxjs['of'])(_0x3cd105);}));}))[_0x34d3a8(0x4c3)](_0x5154ed=>{const _0x3e9413=_0x34d3a8,_0x15a5f8=_0x5154ed[_0x3e9413(0x45f)]();this[_0x3e9413(0x193)](_0x5154ed[_0x3e9413(0x635)][_0x3e9413(0x5c9)](()=>{const _0xd8e9e1=_0x3e9413;if(this[_0xd8e9e1(0x19f)]){}})),this[_0x3e9413(0x193)](_0x15a5f8[_0x3e9413(0x191)][_0x3e9413(0x4c3)](_0x485557=>{const _0x1d444e=_0x3e9413,{objects:_0x17990a}=_0x485557;this[_0x1d444e(0x35a)]();if(_0x17990a!==null&&_0x17990a[_0x1d444e(0x3da)]===0x1){if(_0x17990a[_0x1d444e(0x3b2)]()[_0x1d444e(0x200)]()[_0x1d444e(0x357)]instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this[_0x3e9413(0x193)](_0x15a5f8[_0x3e9413(0x44c)]['subscribe'](()=>{const _0x3e01d4=_0x3e9413;if(this[_0x3e01d4(0x19f)])this['_clearShapeAdjustControls']();})),this[_0x3e9413(0x193)](_0x5154ed[_0x3e9413(0x2f7)][_0x3e9413(0x5c9)](()=>{const _0x34d9c9=_0x3e9413;this[_0x34d9c9(0x19f)]&&(this[_0x34d9c9(0x43f)](![]),this['_createShapeAdjustControls']());})),this[_0x3e9413(0x193)](_0x15a5f8['changeEnd$'][_0x3e9413(0x4c3)](()=>{const _0x3b382f=_0x3e9413;this[_0x3b382f(0x2f5)]&&this['_subUnitId']&&this[_0x3b382f(0x534)]&&(this[_0x3b382f(0x591)][_0x3b382f(0x382)]({'unitId':this['_unitId'],'subUnitId':this[_0x3b382f(0x2bc)],'drawingId':this['_activeShapeId']})&&(this[_0x3b382f(0x3d0)]=this[_0x3b382f(0x2c9)](this[_0x3b382f(0x2f5)],this['_subUnitId'],this[_0x3b382f(0x534)]),this[_0x3b382f(0x590)]()));}));}));}[_0x3ce055(0x641)](){const _0xb85b50=_0x3ce055;this['disposeWithMe'](this[_0xb85b50(0x591)][_0xb85b50(0x364)][_0xb85b50(0x4c3)](_0x2ae512=>{const _0x326b87=_0xb85b50;if(_0x2ae512[_0x326b87(0x49c)]===0x1){const _0x271bd1=_0x2ae512[0x0];if(_0x271bd1['drawingType']===_univerjs_core[_0x326b87(0x5bc)]['DRAWING_SHAPE']){this['_activeShapeId']=_0x271bd1[_0x326b87(0x133)];const {unitId:_0x97174f,subUnitId:_0xdd5638}=_0x271bd1;this[_0x326b87(0x3d0)]=this['_getShapeAdjustPointListById'](_0x97174f,_0xdd5638,this[_0x326b87(0x534)]),this[_0x326b87(0x2f5)]=_0x97174f,this['_subUnitId']=_0xdd5638,this[_0x326b87(0x183)](),this[_0x326b87(0x35a)]();}else this[_0x326b87(0x534)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x326b87(0x2f5)]=null,this[_0x326b87(0x2bc)]=null,this[_0x326b87(0x183)]();}(_0x2ae512[_0x326b87(0x49c)]>0x1||_0x2ae512[_0x326b87(0x49c)]===0x0)&&(this['_activeShapeId']=null,this[_0x326b87(0x3d0)]=void 0x0,this[_0x326b87(0x2f5)]=null,this[_0x326b87(0x2bc)]=null,this[_0x326b87(0x183)]());})),this[_0xb85b50(0x193)](this['_drawingManagerService'][_0xb85b50(0x5eb)][_0xb85b50(0x4c3)](_0x5ab7a5=>{const _0x34b6c0=_0xb85b50;if(_0x5ab7a5['length']===0x1){var _0x4060b1;const _0x308104=_0x5ab7a5[0x0];if(((_0x4060b1=this[_0x34b6c0(0x591)]['getDrawingByParam'](_0x308104))===null||_0x4060b1===void 0x0?void 0x0:_0x4060b1[_0x34b6c0(0x500)])===_univerjs_core[_0x34b6c0(0x5bc)]['DRAWING_SHAPE'])this[_0x34b6c0(0xff)](!![]);}})),this[_0xb85b50(0x193)](this[_0xb85b50(0x591)][_0xb85b50(0x5e0)][_0xb85b50(0x4c3)](_0xcc46df=>{const _0x4b6124=_0xb85b50;for(const _0xa733ee of _0xcc46df)this[_0x4b6124(0x534)]===_0xa733ee[_0x4b6124(0x133)]&&(this[_0x4b6124(0x534)]=null,this[_0x4b6124(0x3d0)]=void 0x0,this[_0x4b6124(0x2f5)]=null,this[_0x4b6124(0x2bc)]=null,this[_0x4b6124(0x183)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core['IContextService']),__decorateParam(0x2,_univerjs_drawing[_0x3ce055(0x4bc)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_engine_render[_0x3ce055(0x2b4)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3ce055(0x53e)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core['IUniverInstanceService']),__decorateParam(0x7,_univerjs_core[_0x3ce055(0x4f7)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x3ce055(0x1e8),'type':_univerjs_core['CommandType'][_0x3ce055(0x490)],'handler':(_0x290cbc,_0x380ff5)=>{const _0x2bc0bb=_0x3ce055,_0x5010b3=_0x290cbc[_0x2bc0bb(0x570)](_univerjs_drawing[_0x2bc0bb(0x4bc)]),_0x2e424a=_0x290cbc[_0x2bc0bb(0x570)](_univerjs_engine_render[_0x2bc0bb(0x2b4)]),_0x928791=_0x290cbc['get'](SheetShapeAdjustController);if(_0x380ff5==null)return!![];if(_0x380ff5[_0x2bc0bb(0x49c)]>0x0){var _0x4ed193;const _0x29779a=(_0x4ed193=_0x2e424a[_0x2bc0bb(0x155)](_0x380ff5[0x0][_0x2bc0bb(0x5df)]))===null||_0x4ed193===void 0x0?void 0x0:_0x4ed193[_0x2bc0bb(0x1bc)];if(_0x29779a){const {unitId:_0x1f8351,subUnitId:_0x45a0ba,drawingId:_0x44768d}=_0x380ff5[0x0],_0x5c7dc1=(0x0,_univerjs_drawing[_0x2bc0bb(0x582)])({'unitId':_0x1f8351,'subUnitId':_0x45a0ba,'drawingId':_0x44768d},void 0x0),_0x33c05e=_0x29779a['getObjectIncludeInGroup'](_0x5c7dc1);if(_0x33c05e){var _0x5f25c9;(_0x5f25c9=_0x2e424a['getRenderById'](_0x380ff5[0x0][_0x2bc0bb(0x5df)]))===null||_0x5f25c9===void 0x0||(_0x5f25c9=_0x5f25c9['scene']['getTransformer']())===null||_0x5f25c9===void 0x0||_0x5f25c9['activeAnObject'](_0x33c05e);}}_0x5010b3['focusDrawing'](_0x380ff5),_0x928791[_0x2bc0bb(0x43f)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core['CommandType'][_0x3ce055(0x31e)],'id':_0x3ce055(0x64e),'handler':async(_0x189cd3,_0x1c2f2c)=>{const _0x52b9e6=_0x3ce055,_0x2ea1a3=(0x0,_univerjs_sheets[_0x52b9e6(0x3a3)])(_0x189cd3[_0x52b9e6(0x570)](_univerjs_core[_0x52b9e6(0x498)]));if(!_0x2ea1a3)return![];const _0x478a65=_0x189cd3[_0x52b9e6(0x570)](_univerjs_sheets[_0x52b9e6(0x1b2)])['getCurrentLastSelection']();if(!_0x478a65)return![];const _0x121de5=_0x189cd3[_0x52b9e6(0x570)](_univerjs_core[_0x52b9e6(0x4f7)]),{unitId:_0x3d899c,subUnitId:_0x228450}=_0x2ea1a3,{value:_0x292ac2,enhanceParams:_0x4cc6e5}=_0x1c2f2c,{range:_0xa45212}=_0x478a65,_0x34f32f={'unitId':_0x3d899c,'subUnitId':_0x228450,'shapeType':_0x292ac2,'range':_0xa45212,'shapeId':(0x0,_univerjs_core['generateRandomId'])()};if(_0x4cc6e5){const _0x1af3a1=(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x292ac2),_0x558d8c=_0x292ac2===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x52b9e6(0x560)];if(_0x1af3a1&&(_0x4cc6e5[_0x52b9e6(0x195)]||_0x4cc6e5['endArrow']))_0x34f32f[_0x52b9e6(0x46c)]={'ln':{'startArrow':_0x4cc6e5[_0x52b9e6(0x195)]?{'type':_univerjs_pro_engine_shape[_0x52b9e6(0x3bb)][_0x52b9e6(0x4a6)],'size':_univerjs_pro_engine_shape[_0x52b9e6(0x4e5)][_0x52b9e6(0x661)]}:void 0x0,'endArrow':_0x4cc6e5[_0x52b9e6(0x407)]?{'type':_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x52b9e6(0x4a6)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x52b9e6(0x62f)]}:void 0x0}};if(_0x558d8c&&(_0x4cc6e5[_0x52b9e6(0x55c)]||_0x4cc6e5[_0x52b9e6(0x123)]))_0x34f32f[_0x52b9e6(0x46c)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x52b9e6(0x57a)][_0x52b9e6(0x43b)],'color':_0x52b9e6(0x472)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x52b9e6(0x13e)][_0x52b9e6(0x26b)],'width':0x1,'color':_0x52b9e6(0x296)},'shapeText':{'isHorizontal':!!_0x4cc6e5['horizontal']}};}const _0x2d21b3=_0x121de5['syncExecuteCommand'](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],_0x34f32f);return setTimeout(()=>{const _0x5185b5=_0x52b9e6;_0x121de5['executeCommand'](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x3d899c,'subUnitId':_0x228450,'drawingId':_0x34f32f[_0x5185b5(0x469)]}]);},0xc8),_0x2d21b3;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0xe53bb6,_0x3c1e4a){const _0x210aa2=_0x3ce055;super(),this['_clipService']=_0xe53bb6,this['_drawingManagerService']=_0x3c1e4a,this[_0x210aa2(0x225)](),this[_0x210aa2(0x525)][_0x210aa2(0x299)](!![]),this[_0x210aa2(0x193)]({'dispose':()=>this[_0x210aa2(0x525)][_0x210aa2(0x299)](![])});}[_0x3ce055(0x225)](){const _0x5f4fc3=_0x3ce055,_0x286845=this[_0x5f4fc3(0x525)],_0x231e77=new Map(),_0x58eacc=_0x286845[_0x5f4fc3(0x605)]((_0x5cca87,_0x39b048,_0x2e4f71,_0x93feb5,_0x32b070)=>{const _0x41f371=_0x5f4fc3,_0x3316a0=_0x39b048;if(_0x3316a0===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x41f371(0x1ce)]||_0x39b048===_0x41f371(0x343))return![];try{let _0x3496de=_0x231e77[_0x41f371(0x570)](_0x39b048);!_0x3496de&&(_0x3496de=new _univerjs_pro_engine_shape['ShapeModel'](_0x3316a0,'clip-'+_0x39b048),_0x231e77[_0x41f371(0x3a5)](_0x39b048,_0x3496de));if(_0x32b070)_0x3496de[_0x41f371(0x36d)]({'adjustValues':_0x32b070},!![]);return _0x3496de['updateContext']({'width':_0x2e4f71,'height':_0x93feb5}),_0x3496de[_0x41f371(0x1b1)](_0x5cca87,{'left':0x0,'top':0x0,'width':_0x2e4f71,'height':_0x93feb5});}catch{return![];}});this[_0x5f4fc3(0x193)](_0x58eacc),this[_0x5f4fc3(0x193)]({'dispose':()=>_0x231e77[_0x5f4fc3(0x106)]()});}[_0x3ce055(0x24c)](_0x5c0892,_0x3dcd53,_0x351afc,_0x32a253,_0x3773d9){const _0x339c76=_0x3ce055,_0x45cf02=this['_drawingManagerService'][_0x339c76(0x34f)](_0x5c0892,_0x3dcd53);if(!_0x45cf02[_0x351afc])return;const _0x27299f={..._0x45cf02[_0x351afc],'prstGeom':_0x32a253,'adjustValues':_0x3773d9};this[_0x339c76(0x591)][_0x339c76(0x63e)]([_0x27299f]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_drawing_ui[_0x3ce055(0x2e9)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_drawing[_0x3ce055(0x4bc)]))],ImageShapeClipController);let ShapeGroupEnum=function(_0x2a44c0){const _0x3c5fcc=_0x3ce055;return _0x2a44c0[_0x3c5fcc(0x443)]='line',_0x2a44c0[_0x3c5fcc(0x59b)]=_0x3c5fcc(0x144),_0x2a44c0[_0x3c5fcc(0x2bf)]=_0x3c5fcc(0x229),_0x2a44c0[_0x3c5fcc(0x3ad)]=_0x3c5fcc(0x5cb),_0x2a44c0['EquationShape']=_0x3c5fcc(0x549),_0x2a44c0[_0x3c5fcc(0x4fe)]=_0x3c5fcc(0x25a),_0x2a44c0[_0x3c5fcc(0x44e)]='starAndBanner',_0x2a44c0['Callout']=_0x3c5fcc(0x459),_0x2a44c0[_0x3c5fcc(0x1e0)]='other',_0x2a44c0;}({});const shapeTypeOptions=[{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x443)],'icon':_0x3ce055(0x130),'name':_0x3ce055(0x441)},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x220)],'icon':'ShapeStraightConnector1Icon','name':_0x3ce055(0x5f8),'endArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['StraightConnector1'],'icon':'ShapeStraightConnector2Icon','name':_0x3ce055(0x402),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x292)],'icon':_0x3ce055(0x4df),'name':_0x3ce055(0x45d)},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x292)],'icon':_0x3ce055(0x52b),'name':_0x3ce055(0x365),'endArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x292)],'icon':_0x3ce055(0x271),'name':_0x3ce055(0x244),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4d9)],'icon':_0x3ce055(0x338),'name':_0x3ce055(0x306)},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x4d9)],'icon':_0x3ce055(0x62c),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x443)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4d9)],'icon':_0x3ce055(0x51e),'name':_0x3ce055(0x2fa),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x560)],'icon':_0x3ce055(0x400),'name':_0x3ce055(0x465)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x434)],'icon':_0x3ce055(0x4ac),'name':_0x3ce055(0x5bf)},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x439)],'icon':_0x3ce055(0x377),'name':_0x3ce055(0x2a6)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Snip2SameRect'],'icon':_0x3ce055(0x36f),'name':_0x3ce055(0x1dd)},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1da)],'icon':_0x3ce055(0x429),'name':_0x3ce055(0x261)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x308)],'icon':_0x3ce055(0x372),'name':_0x3ce055(0x18f)},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Round1Rect'],'icon':_0x3ce055(0x237),'name':_0x3ce055(0x180)},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x567)],'icon':_0x3ce055(0x63a),'name':'shape.type.round2-same-rect'},{'group':ShapeGroupEnum[_0x3ce055(0x59b)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5a7)],'icon':'ShapeRound2DiagRectIcon','name':_0x3ce055(0x3cf)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Rect'],'icon':_0x3ce055(0x43a),'name':_0x3ce055(0x487),'horizontal':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x560)],'icon':'ShapeRectTextboxVerticalIcon','name':_0x3ce055(0x40d),'vertical':!![]},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x456)],'icon':_0x3ce055(0x3b7),'name':'shape.type.ellipse'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3a9)],'icon':_0x3ce055(0x40f),'name':_0x3ce055(0x1ea)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['RightTriangle'],'icon':_0x3ce055(0x5d3),'name':_0x3ce055(0x174)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Parallelogram'],'icon':'ShapeParallelogramIcon','name':_0x3ce055(0x4a7)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x341)],'icon':'ShapeTrapezoidIcon','name':'shape.type.trapezoid'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3eb)],'icon':_0x3ce055(0x317),'name':_0x3ce055(0x608)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x578)],'icon':_0x3ce055(0x4ca),'name':_0x3ce055(0x654)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4db)],'icon':_0x3ce055(0x5b4),'name':'shape.type.hexagon'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x562)],'icon':_0x3ce055(0x60c),'name':'shape.type.heptagon'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x496)],'icon':_0x3ce055(0x2d0),'name':_0x3ce055(0x548)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4b1)],'icon':_0x3ce055(0x440),'name':_0x3ce055(0x598)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x138)],'icon':'ShapeDodecagonIcon','name':_0x3ce055(0x65b)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Pie'],'icon':_0x3ce055(0x3ac),'name':_0x3ce055(0x5f2)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x62a)],'icon':'ShapeChordIcon','name':'shape.type.chord'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x426)],'icon':_0x3ce055(0x5ce),'name':'shape.type.teardrop'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1ee)],'icon':_0x3ce055(0x565),'name':_0x3ce055(0x3f5)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['HalfFrame'],'icon':_0x3ce055(0x617),'name':_0x3ce055(0x413)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Corner'],'icon':'ShapeCornerIcon','name':_0x3ce055(0x393)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['DiagStripe'],'icon':_0x3ce055(0x381),'name':'shape.type.diag-stripe'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x506)],'icon':'ShapePlusIcon','name':_0x3ce055(0x3c6)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x531)],'icon':_0x3ce055(0x461),'name':_0x3ce055(0x58e)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x269)],'icon':_0x3ce055(0x458),'name':'shape.type.can'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5a9)],'icon':_0x3ce055(0x275),'name':'shape.type.cube'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x39e)],'icon':_0x3ce055(0x39d),'name':'shape.type.bevel'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x444)],'icon':_0x3ce055(0x32a),'name':_0x3ce055(0x118)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x653)],'icon':_0x3ce055(0x48f),'name':_0x3ce055(0x113)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['BlockArc'],'icon':_0x3ce055(0x460),'name':_0x3ce055(0x2ac)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x616)],'icon':'ShapeFolderCornerIcon','name':_0x3ce055(0x1a3)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5d6)],'icon':'ShapeSmileyFaceIcon','name':'shape.type.smiley-face'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x610)],'icon':'ShapeHeartIcon','name':_0x3ce055(0x466)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['LightningBolt'],'icon':'ShapeLightningBoltIcon','name':_0x3ce055(0x248)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Sun'],'icon':_0x3ce055(0x52e),'name':_0x3ce055(0x572)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x2fb)],'icon':_0x3ce055(0x10c),'name':'shape.type.moon'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x1c8)],'icon':'ShapeCloudIcon','name':'shape.type.cloud'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x2cb)],'icon':_0x3ce055(0x523),'name':'shape.type.arc'},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x278)],'icon':_0x3ce055(0x517),'name':_0x3ce055(0x45c)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x1d6)],'icon':_0x3ce055(0x645),'name':_0x3ce055(0x21c)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['LeftBracket'],'icon':_0x3ce055(0x187),'name':_0x3ce055(0x606)},{'group':ShapeGroupEnum[_0x3ce055(0x2bf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x56c)],'icon':_0x3ce055(0x26a),'name':'shape.type.right-bracket'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x451)],'icon':_0x3ce055(0x2bd),'name':_0x3ce055(0x51c)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x122)],'icon':_0x3ce055(0x46a),'name':_0x3ce055(0x142)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1f4)],'icon':_0x3ce055(0x424),'name':_0x3ce055(0x4fb)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5ec)],'icon':_0x3ce055(0x4f5),'name':_0x3ce055(0x409)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1e5)],'icon':_0x3ce055(0x36c),'name':'shape.type.up-arrow'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x208)],'icon':_0x3ce055(0x1f9),'name':_0x3ce055(0x5b1)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x35d)],'icon':_0x3ce055(0x1b6),'name':'shape.type.left-right-arrow'},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x352)],'icon':_0x3ce055(0x5be),'name':'shape.type.up-down-arrow'},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['QuadArrow'],'icon':_0x3ce055(0x49b),'name':_0x3ce055(0x2f3)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftRightUpArrow'],'icon':_0x3ce055(0x3d4),'name':_0x3ce055(0x53a)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x48e)],'icon':_0x3ce055(0x592),'name':_0x3ce055(0x2b6)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['UturnArrow'],'icon':_0x3ce055(0x4c4),'name':_0x3ce055(0x264)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['LeftUpArrow'],'icon':_0x3ce055(0x650),'name':_0x3ce055(0x18c)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1bf)],'icon':_0x3ce055(0x279),'name':'shape.type.bent-up-arrow'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x140)],'icon':'ShapeCurvedRightArrowIcon','name':_0x3ce055(0x226)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x24d)],'icon':_0x3ce055(0x58d),'name':'shape.type.curved-left-arrow'},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['CurvedUpArrow'],'icon':_0x3ce055(0x2c0),'name':_0x3ce055(0x5ee)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedDownArrow'],'icon':'ShapeCurvedDownArrowIcon','name':_0x3ce055(0x23a)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1af)],'icon':_0x3ce055(0x266),'name':_0x3ce055(0x5d2)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x48a)],'icon':'ShapeNotchedRightArrowIcon','name':_0x3ce055(0x5b9)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5fe)],'icon':_0x3ce055(0x36e),'name':_0x3ce055(0x20b)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x520)],'icon':'ShapeChevronIcon','name':'shape.type.chevron'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x207)],'icon':_0x3ce055(0x2e1),'name':_0x3ce055(0x4b3)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x596)],'icon':_0x3ce055(0xfe),'name':_0x3ce055(0x3ab)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x214)],'icon':_0x3ce055(0x471),'name':'shape.type.left-arrow-callout'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['UpArrowCallout'],'icon':_0x3ce055(0x1a0),'name':_0x3ce055(0x411)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5cd)],'icon':'ShapeLeftRightArrowCalloutIcon','name':'shape.type.left-right-arrow-callout'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5b3)],'icon':_0x3ce055(0x3e7),'name':_0x3ce055(0x59f)},{'group':ShapeGroupEnum[_0x3ce055(0x3ad)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['CircularArrow'],'icon':_0x3ce055(0x159),'name':_0x3ce055(0x603)},{'group':ShapeGroupEnum['EquationShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4f9)],'icon':_0x3ce055(0x12a),'name':_0x3ce055(0x316)},{'group':ShapeGroupEnum['EquationShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x5d4)],'icon':'ShapeMathMinusIcon','name':_0x3ce055(0x414)},{'group':ShapeGroupEnum['EquationShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3ea)],'icon':'ShapeMathMultiplyIcon','name':_0x3ce055(0x192)},{'group':ShapeGroupEnum[_0x3ce055(0x1c6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x233)],'icon':_0x3ce055(0x2ba),'name':_0x3ce055(0x536)},{'group':ShapeGroupEnum['EquationShape'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x642)],'icon':_0x3ce055(0x2b0),'name':_0x3ce055(0x401)},{'group':ShapeGroupEnum[_0x3ce055(0x1c6)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['MathNotEqual'],'icon':_0x3ce055(0x35e),'name':_0x3ce055(0x2d1)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['FlowchartProcess'],'icon':_0x3ce055(0x576),'name':'shape.type.flow-chart-process'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['FlowchartAlternateProcess'],'icon':_0x3ce055(0x33c),'name':_0x3ce055(0x189)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x16b)],'icon':'ShapeFlowChartDecisionIcon','name':_0x3ce055(0x3a6)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x41f)],'icon':_0x3ce055(0x644),'name':_0x3ce055(0x1ec)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x660)],'icon':_0x3ce055(0x420),'name':'shape.type.flow-chart-predefined-process'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x561)],'icon':_0x3ce055(0x4e7),'name':_0x3ce055(0x3e5)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x216)],'icon':'ShapeFlowChartDocumentIcon','name':'shape.type.flow-chart-document'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x65c)],'icon':_0x3ce055(0x62b),'name':_0x3ce055(0x373)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5ed)],'icon':_0x3ce055(0x16d),'name':'shape.type.flow-chart-terminator'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x3dd)],'icon':_0x3ce055(0x25d),'name':_0x3ce055(0x19d)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5e5)],'icon':'ShapeFlowChartManualInputIcon','name':_0x3ce055(0x50d)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x11c)],'icon':_0x3ce055(0x13a),'name':_0x3ce055(0x454)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x54f)],'icon':_0x3ce055(0x173),'name':_0x3ce055(0x360)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x5f1)],'icon':_0x3ce055(0x321),'name':'shape.type.flow-chart-offpage-connector'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartPunchedCard'],'icon':_0x3ce055(0x24f),'name':'shape.type.flow-chart-punched-card'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x58a)],'icon':_0x3ce055(0x153),'name':_0x3ce055(0x143)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x600)],'icon':_0x3ce055(0x1cc),'name':_0x3ce055(0x179)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['FlowchartOr'],'icon':_0x3ce055(0x4c1),'name':_0x3ce055(0x5d1)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartCollate'],'icon':_0x3ce055(0x339),'name':_0x3ce055(0x49a)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartSort'],'icon':_0x3ce055(0x104),'name':'shape.type.flow-chart-sort'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartExtract'],'icon':_0x3ce055(0x21e),'name':_0x3ce055(0x3e2)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4de)],'icon':_0x3ce055(0x353),'name':'shape.type.flow-chart-merge'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartOnlineStorage'],'icon':_0x3ce055(0x13f),'name':'shape.type.flow-chart-online-storage'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartDelay'],'icon':_0x3ce055(0x35c),'name':_0x3ce055(0x55d)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x60f)],'icon':_0x3ce055(0x4e9),'name':_0x3ce055(0x4b9)},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x5c8)],'icon':_0x3ce055(0x4d8),'name':'shape.type.flow-chart-magnetic-disk'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x2ff)],'icon':'ShapeFlowChartMagneticDrumIcon','name':'shape.type.flow-chart-magnetic-drum'},{'group':ShapeGroupEnum[_0x3ce055(0x4fe)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x64c)],'icon':_0x3ce055(0x4c0),'name':_0x3ce055(0x3ce)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['IrregularSeal1'],'icon':_0x3ce055(0x329),'name':_0x3ce055(0x1f0)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x604)],'icon':'ShapeIrregularSeal2Icon','name':'shape.type.irregular-seal2'},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x2a7)],'icon':_0x3ce055(0x46b),'name':'shape.type.star4'},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x15b)],'icon':_0x3ce055(0x181),'name':_0x3ce055(0x13d)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3ed)],'icon':'ShapeStar6Icon','name':_0x3ce055(0x387)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Star7'],'icon':'ShapeStar7Icon','name':_0x3ce055(0x49f)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1ad)],'icon':_0x3ce055(0x15c),'name':_0x3ce055(0x335)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x389)],'icon':'ShapeStar10Icon','name':'shape.type.star10'},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Star12'],'icon':_0x3ce055(0x14c),'name':_0x3ce055(0x1c9)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x633)],'icon':'ShapeStar16Icon','name':_0x3ce055(0x186)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x1a6)],'icon':_0x3ce055(0x314),'name':_0x3ce055(0x2a2)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Star32'],'icon':'ShapeStar32Icon','name':_0x3ce055(0x435)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Ribbon2'],'icon':_0x3ce055(0x4ab),'name':_0x3ce055(0x2e7)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x141)],'icon':_0x3ce055(0x162),'name':_0x3ce055(0x5f4)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x41d)],'icon':'ShapeEllipseRibbon2Icon','name':_0x3ce055(0x527)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5a5)],'icon':_0x3ce055(0x22b),'name':_0x3ce055(0x3af)},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x213)],'icon':_0x3ce055(0x32e),'name':_0x3ce055(0x3c2)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x344)],'icon':_0x3ce055(0x274),'name':'shape.type.horizontal-scroll'},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4be)],'icon':_0x3ce055(0x37a),'name':'shape.type.wave'},{'group':ShapeGroupEnum[_0x3ce055(0x44e)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['DoubleWave'],'icon':_0x3ce055(0x4cf),'name':_0x3ce055(0x5ef)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x313)],'icon':'ShapeWedgeRectCalloutIcon','name':_0x3ce055(0x51d)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['WedgeRoundRectCallout'],'icon':_0x3ce055(0x646),'name':'shape.type.wedge-round-rect-callout'},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x56a)],'icon':_0x3ce055(0x61e),'name':'shape.type.wedge-ellipse-callout'},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x518)],'icon':_0x3ce055(0x17c),'name':'shape.type.cloud-callout'},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4f6)],'icon':_0x3ce055(0x27f),'name':_0x3ce055(0x164)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x149)],'icon':_0x3ce055(0x51f),'name':_0x3ce055(0x3f1)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x470)],'icon':'ShapeBorderCallout3Icon','name':_0x3ce055(0x4ce)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x483)],'icon':'ShapeAccentCallout1Icon','name':_0x3ce055(0x651)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['AccentCallout2'],'icon':'ShapeAccentCallout2Icon','name':_0x3ce055(0x147)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x5e1)],'icon':'ShapeAccentCallout3Icon','name':_0x3ce055(0x340)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Callout1'],'icon':_0x3ce055(0x65d),'name':_0x3ce055(0x258)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Callout2'],'icon':_0x3ce055(0x1f3),'name':_0x3ce055(0x310)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x4f8)],'icon':_0x3ce055(0x37c),'name':_0x3ce055(0x33e)},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3fe)],'icon':_0x3ce055(0x59d),'name':_0x3ce055(0x5b6)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x56d)],'icon':_0x3ce055(0x28a),'name':'shape.type.accent-border-callout2'},{'group':ShapeGroupEnum[_0x3ce055(0x5a6)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['AccentBorderCallout3'],'icon':_0x3ce055(0x15e),'name':_0x3ce055(0x1f6)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['LeftCircularArrow'],'icon':_0x3ce055(0x2d8),'name':_0x3ce055(0x613)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x488)],'icon':_0x3ce055(0x43c),'name':_0x3ce055(0x1ac)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x505)],'icon':'ShapeSwooshArrowIcon','name':'shape.type.swoosh-arrow'},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x559)],'icon':_0x3ce055(0x425),'name':_0x3ce055(0x239)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x58f)],'icon':_0x3ce055(0x168),'name':_0x3ce055(0x15d)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x479)],'icon':_0x3ce055(0x297),'name':_0x3ce055(0x418)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['Gear6'],'icon':_0x3ce055(0x1b8),'name':_0x3ce055(0x158)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x5ff)],'icon':_0x3ce055(0x2a5),'name':'shape.type.gear9'},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x3a8)],'icon':'ShapeCornerTabsIcon','name':_0x3ce055(0x551)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['ActionButtonBackPrevious'],'icon':_0x3ce055(0x657),'name':'shape.type.action-button-back-previous'},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x325)],'icon':_0x3ce055(0x619),'name':_0x3ce055(0x12e)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x232)],'icon':_0x3ce055(0x19b),'name':_0x3ce055(0x4b5)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x5d8)],'icon':'ShapeActionButtonEndIcon','name':'shape.type.action-button-end'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x3f9)],'icon':_0x3ce055(0x56e),'name':_0x3ce055(0x499)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x101)],'icon':_0x3ce055(0x267),'name':_0x3ce055(0x5a4)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['ActionButtonReturn'],'icon':_0x3ce055(0x4d1),'name':_0x3ce055(0x218)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x29d)],'icon':_0x3ce055(0x30a),'name':_0x3ce055(0x64d)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x345)],'icon':_0x3ce055(0x291),'name':'shape.type.action-button-document'},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x2b5)],'icon':_0x3ce055(0x521),'name':_0x3ce055(0x1c7)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['ActionButtonHelp'],'icon':'ShapeActionButtonHelpIcon','name':'shape.type.action-button-help'},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x1a7)],'icon':'ShapeActionButtonBlankIcon','name':_0x3ce055(0x50c)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x102)],'icon':_0x3ce055(0x4d7),'name':_0x3ce055(0x137)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ChartStar'],'icon':'ShapeChartStarIcon','name':'shape.type.chart-star'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x493)],'icon':_0x3ce055(0x252),'name':_0x3ce055(0x35f)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x47a)],'icon':'ShapeFlowChartOfflineStorageIcon','name':'shape.type.flow-chart-offline-storage'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x11d)],'icon':_0x3ce055(0x585),'name':_0x3ce055(0x286)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x151)],'icon':'ShapePlaqueTabsIcon','name':_0x3ce055(0x3b0)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)]['SquareTabs'],'icon':_0x3ce055(0x17b),'name':_0x3ce055(0x42d)},{'group':ShapeGroupEnum[_0x3ce055(0x1e0)],'type':_univerjs_pro_engine_shape[_0x3ce055(0x2c4)][_0x3ce055(0x45b)],'icon':_0x3ce055(0x2eb),'name':_0x3ce055(0x1f7)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3ce055(0x31f)],'icon':_0x3ce055(0x5de),'name':_0x3ce055(0x638)}],SHAPE_PICKER_COMPONENT='sheet.shape.picker.component';function ShapePickerComponent({onShapeClick:_0x2f0005,excludeGroups:_0x57237c}){const _0x41e4c2=_0x3ce055,_0x37f74b=(0x0,_univerjs_ui[_0x41e4c2(0x47b)])(_univerjs_core[_0x41e4c2(0x112)]),_0x485493=(0x0,_univerjs_ui['useDependency'])(_univerjs_ui['ComponentManager']),_0x36db6a=(_0x57237c?shapeTypeOptions['filter'](_0x57c8a5=>!_0x57237c['includes'](_0x57c8a5[_0x41e4c2(0x1c4)])):shapeTypeOptions)[_0x41e4c2(0x4b0)]((_0xb1aabd,_0x25ece1)=>{const _0x393599=_0x41e4c2;if(!_0xb1aabd[_0x25ece1[_0x393599(0x1c4)]])_0xb1aabd[_0x25ece1[_0x393599(0x1c4)]]=[];return _0xb1aabd[_0x25ece1[_0x393599(0x1c4)]][_0x393599(0x20e)](_0x25ece1),_0xb1aabd;},{});return(0x0,react_jsx_runtime[_0x41e4c2(0x430)])(_0x41e4c2(0x301),{'className':_0x41e4c2(0x452),'children':Object[_0x41e4c2(0x12d)](_0x36db6a)[_0x41e4c2(0x322)](([_0x15170b,_0x3e8155])=>(0x0,react_jsx_runtime['jsxs'])(_0x41e4c2(0x301),{'className':_0x41e4c2(0x422),'children':[(0x0,react_jsx_runtime[_0x41e4c2(0x430)])('div',{'className':_0x41e4c2(0x2d7),'children':_0x37f74b['t'](_0x41e4c2(0x5c6)+_0x15170b)}),(0x0,react_jsx_runtime[_0x41e4c2(0x430)])(_0x41e4c2(0x301),{'className':_0x41e4c2(0x468),'children':_0x3e8155['map'](_0x3f7532=>{const _0x263d4e=_0x41e4c2,_0x1ef6be=_0x485493['get'](_0x3f7532[_0x263d4e(0x3d2)]);return(0x0,react_jsx_runtime['jsx'])('div',{'title':_0x37f74b['t'](_0x3f7532[_0x263d4e(0x388)]),'onClick':()=>_0x2f0005(_0x3f7532),'className':_0x263d4e(0x601),'children':_0x1ef6be&&(0x0,react_jsx_runtime[_0x263d4e(0x430)])(_0x1ef6be,{'className':_0x263d4e(0x649)})},_0x3f7532['name']);})})]},_0x15170b))});}function ImageClipShapePicker(){const _0x3d0d47=_0x3ce055,_0x35e00b=(0x0,_univerjs_ui[_0x3d0d47(0x47b)])(_univerjs_core[_0x3d0d47(0x112)]),_0x16d984=(0x0,_univerjs_ui[_0x3d0d47(0x47b)])(_univerjs_drawing[_0x3d0d47(0x4bc)]),_0x1d2411=(0x0,_univerjs_ui['useDependency'])(ImageShapeClipController),[_0xc2ac4e,_0xbd402c]=(0x0,react[_0x3d0d47(0x2ef)])(![]),_0x60389=_0x43da16=>{const _0x1e4986=_0x3d0d47,_0x39d904=_0x16d984['getFocusDrawings']()['find'](_0xaf7b31=>_0xaf7b31[_0x1e4986(0x500)]===_univerjs_core[_0x1e4986(0x5bc)]['DRAWING_IMAGE']);if(!_0x39d904)return;const {unitId:_0x4268b9,subUnitId:_0xa7ce98,drawingId:_0x54bea4}=_0x39d904;_0x1d2411[_0x1e4986(0x24c)](_0x4268b9,_0xa7ce98,_0x54bea4,_0x43da16['type']),_0xbd402c(![]);};return(0x0,react_jsx_runtime[_0x3d0d47(0x430)])(_univerjs_design[_0x3d0d47(0x349)],{'side':_0x3d0d47(0x358),'open':_0xc2ac4e,'onOpenChange':_0xbd402c,'overlay':(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x60389,'excludeGroups':[ShapeGroupEnum[_0x3d0d47(0x443)]]}),'children':(0x0,react_jsx_runtime[_0x3d0d47(0x430)])(_univerjs_design[_0x3d0d47(0x3e0)],{'children':_0x35e00b['t']('image-panel.crop.shape')})});}function ShapePicker(){const _0x2628be=_0x3ce055,_0x5f01fc=(0x0,_univerjs_ui[_0x2628be(0x47b)])(_univerjs_core['ICommandService']),_0xf91d2f=_0x5b05df=>{const _0x3b6c71=_0x2628be;_0x5f01fc['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x5b05df[_0x3b6c71(0x3bd)],'enhanceParams':{'endArrow':_0x5b05df[_0x3b6c71(0x407)],'startArrow':_0x5b05df[_0x3b6c71(0x195)],'horizontal':_0x5b05df['horizontal'],'vertical':_0x5b05df[_0x3b6c71(0x123)]}});};return(0x0,react_jsx_runtime[_0x2628be(0x430)])(ShapePickerComponent,{'onShapeClick':_0xf91d2f});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x3ce055(0x492),'icon':'LeftJustifyingIcon','value':_univerjs_core[_0x3ce055(0x3b6)]['LEFT']},{'label':_0x3ce055(0x4e4),'icon':_0x3ce055(0x4d6),'value':_univerjs_core[_0x3ce055(0x3b6)][_0x3ce055(0x182)]},{'label':_0x3ce055(0x64b),'icon':_0x3ce055(0x416),'value':_univerjs_core[_0x3ce055(0x3b6)][_0x3ce055(0x2f6)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x3d943e){const _0x245630=_0x3ce055,_0x396299=_0x3d943e[_0x245630(0x570)](_univerjs_core[_0x245630(0x639)]),_0x20d477=_0x3d943e[_0x245630(0x570)](_univerjs_core[_0x245630(0x4bf)]);return{'id':_univerjs_docs_ui[_0x245630(0x491)]['id'],'tooltip':_0x245630(0x44f),'type':_univerjs_ui[_0x245630(0x647)][_0x245630(0x495)],'icon':_0x245630(0x1dc),'selections':[{'label':{'name':_univerjs_ui[_0x245630(0x270)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x245630(0x3f4))](_0x2e657e=>{const _0x3587bb=_0x245630;_0x2e657e['next'](_0x20d477[_0x3587bb(0x3cd)](_0x3587bb(0x172)));}),'hidden$':_0x396299[_0x245630(0xfc)](_univerjs_core[_0x245630(0x4a2)])['pipe']((0x0,rxjs[_0x245630(0x41c)])(_0x396299['getContextValue'](_univerjs_core[_0x245630(0x4a2)])),(0x0,rxjs[_0x245630(0x322)])(_0x1c7f98=>!_0x1c7f98))};}function ShapeResetBackgroundColorMenuItemFactory(_0x1efda1){const _0x990d83=_0x3ce055,_0x512b10=_0x1efda1['get'](_univerjs_core['IContextService']);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x990d83(0x647)][_0x990d83(0x648)],'title':_0x990d83(0x201),'hidden$':_0x512b10['subscribeContextValue$'](_univerjs_core[_0x990d83(0x4a2)])[_0x990d83(0x33d)]((0x0,rxjs[_0x990d83(0x41c)])(_0x512b10[_0x990d83(0x22d)](_univerjs_core[_0x990d83(0x4a2)])),(0x0,rxjs['map'])(_0x582c71=>!_0x582c71))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':'align.left','icon':_0x3ce055(0x5ba),'value':_univerjs_core[_0x3ce055(0x3b6)]['LEFT']},{'label':_0x3ce055(0x4e4),'icon':_0x3ce055(0x4d6),'value':_univerjs_core[_0x3ce055(0x3b6)]['CENTER']},{'label':'align.right','icon':_0x3ce055(0x416),'value':_univerjs_core[_0x3ce055(0x3b6)][_0x3ce055(0x2f6)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x1c01b2){const _0x21884e=_0x3ce055;var _0x5558c6;const _0x51f177=_0x1c01b2[_0x21884e(0x570)](_univerjs_core['ICommandService']),_0x3a356b=_0x1c01b2['get'](_univerjs_core[_0x21884e(0x639)]),_0x52cbcb=_0x1c01b2[_0x21884e(0x570)](_univerjs_sheets_drawing[_0x21884e(0x63c)]),_0x1743d7=_0x1c01b2[_0x21884e(0x570)](ShapeTextEditingService),_0xd658c7=_0x1c01b2[_0x21884e(0x570)](_univerjs_pro_sheets_shape[_0x21884e(0x234)]),_0x2408a5=_univerjs_core[_0x21884e(0x3b6)]['LEFT'],_0x2b6cc8=()=>{const _0x526fde=_0x21884e;var _0x1d39cb;const _0x153f89=_0x52cbcb[_0x526fde(0x5e2)]()[_0x526fde(0x2c5)](_0x3d60e9=>_0x3d60e9['drawingType']===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x153f89[_0x526fde(0x49c)]!==0x1)return _0x2408a5;const _0x3dae2f=_0x1743d7[_0x526fde(0x4e0)](),_0x3ef95c=(_0x3dae2f===null||_0x3dae2f===void 0x0?void 0x0:_0x3dae2f[_0x526fde(0x5df)])||_0x153f89[0x0]['unitId'],_0xa10447=(_0x3dae2f===null||_0x3dae2f===void 0x0?void 0x0:_0x3dae2f[_0x526fde(0x54e)])||_0x153f89[0x0][_0x526fde(0x54e)],_0x58d167=(_0x3dae2f===null||_0x3dae2f===void 0x0?void 0x0:_0x3dae2f[_0x526fde(0x469)])||_0x153f89[0x0]['drawingId'],_0x286554=_0xd658c7[_0x526fde(0x272)](_0x3ef95c,_0xa10447,_0x58d167);if(!_0x286554)return _0x2408a5;const _0x3dca6b=_0x286554[_0x526fde(0x2f1)]();if(!_0x3dca6b||!(_0x526fde(0x55f)in _0x3dca6b))return _0x2408a5;const _0x1e7ec6=_0x3dca6b[_0x526fde(0x55f)];return(_0x1d39cb=_0x1e7ec6===null||_0x1e7ec6===void 0x0?void 0x0:_0x1e7ec6['ha'])!==null&&_0x1d39cb!==void 0x0?_0x1d39cb:_0x2408a5;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x5558c6=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x21884e(0x211)](_0x59f7c2=>_0x59f7c2[_0x21884e(0x357)]===_0x2408a5))===null||_0x5558c6===void 0x0?void 0x0:_0x5558c6[_0x21884e(0x3d2)],'tooltip':_0x21884e(0x37d),'type':_univerjs_ui[_0x21884e(0x647)][_0x21884e(0x1d3)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x21884e(0x3f4))](_0x60559=>{const _0x1d04ee=_0x21884e,_0x132f33=_0x51f177[_0x1d04ee(0x52c)](_0x25cc02=>{const _0x58fe17=_0x1d04ee;if(_0x25cc02['id']===SetShapeTextHorizontalAlignCommand['id'])_0x60559[_0x58fe17(0x200)](_0x2b6cc8());}),_0x2c9cd5=_0x1743d7[_0x1d04ee(0x3db)]['subscribe'](()=>{const _0x4de6a1=_0x1d04ee;_0x60559[_0x4de6a1(0x200)](_0x2b6cc8());});return _0x60559[_0x1d04ee(0x200)](_0x2b6cc8()),()=>{const _0x5c7839=_0x1d04ee;_0x132f33[_0x5c7839(0x467)](),_0x2c9cd5[_0x5c7839(0x1c0)]();};}),'hidden$':_0x3a356b[_0x21884e(0xfc)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])['pipe']((0x0,rxjs['map'])(_0x1bdf9e=>!_0x1bdf9e))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x3ce055(0x263),'icon':_0x3ce055(0x22c),'value':_univerjs_core[_0x3ce055(0x3bc)][_0x3ce055(0x391)]},{'label':_0x3ce055(0x11b),'icon':_0x3ce055(0x10b),'value':_univerjs_core[_0x3ce055(0x3bc)]['MIDDLE']},{'label':_0x3ce055(0x61f),'icon':_0x3ce055(0x474),'value':_univerjs_core['VerticalAlign'][_0x3ce055(0x350)]}];function ShapeVerticalAlignMenuItemFactory(_0x18f92c){const _0x2da6cf=_0x3ce055;var _0xfef642;const _0x30c1f9=_0x18f92c['get'](_univerjs_core[_0x2da6cf(0x4f7)]),_0x5b1b39=_0x18f92c[_0x2da6cf(0x570)](_univerjs_core['IContextService']),_0x200110=_0x18f92c[_0x2da6cf(0x570)](_univerjs_sheets_drawing[_0x2da6cf(0x63c)]),_0x26fcb5=_0x18f92c['get'](ShapeTextEditingService),_0x39850c=_0x18f92c[_0x2da6cf(0x570)](_univerjs_pro_sheets_shape[_0x2da6cf(0x234)]),_0x3f3730=_univerjs_core[_0x2da6cf(0x3bc)][_0x2da6cf(0x391)],_0x4ca4b6=()=>{const _0x14b987=_0x2da6cf;var _0x30a652;const _0x541b61=_0x200110[_0x14b987(0x5e2)]()[_0x14b987(0x2c5)](_0x3609d9=>_0x3609d9[_0x14b987(0x500)]===_univerjs_core[_0x14b987(0x5bc)][_0x14b987(0x253)]);if(_0x541b61[_0x14b987(0x49c)]!==0x1)return _0x3f3730;const _0x3b0f55=_0x26fcb5['getEditing'](),_0x230c32=(_0x3b0f55===null||_0x3b0f55===void 0x0?void 0x0:_0x3b0f55[_0x14b987(0x5df)])||_0x541b61[0x0][_0x14b987(0x5df)],_0x9b0d59=(_0x3b0f55===null||_0x3b0f55===void 0x0?void 0x0:_0x3b0f55[_0x14b987(0x54e)])||_0x541b61[0x0][_0x14b987(0x54e)],_0x4e164e=(_0x3b0f55===null||_0x3b0f55===void 0x0?void 0x0:_0x3b0f55['shapeId'])||_0x541b61[0x0][_0x14b987(0x133)],_0x32baa0=_0x39850c[_0x14b987(0x272)](_0x230c32,_0x9b0d59,_0x4e164e);if(!_0x32baa0)return _0x3f3730;const _0x210df7=_0x32baa0[_0x14b987(0x2f1)]();if(!_0x210df7||!(_0x14b987(0x55f)in _0x210df7))return _0x3f3730;const _0x354c7c=_0x210df7[_0x14b987(0x55f)];return(_0x30a652=_0x354c7c===null||_0x354c7c===void 0x0?void 0x0:_0x354c7c['va'])!==null&&_0x30a652!==void 0x0?_0x30a652:_0x3f3730;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0xfef642=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x2da6cf(0x211)](_0x99730b=>_0x99730b[_0x2da6cf(0x357)]===_0x3f3730))===null||_0xfef642===void 0x0?void 0x0:_0xfef642['icon'],'tooltip':_0x2da6cf(0x5c3),'type':_univerjs_ui[_0x2da6cf(0x647)][_0x2da6cf(0x1d3)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x228445=>{const _0x5adeae=_0x2da6cf,_0x4d4433=_0x30c1f9[_0x5adeae(0x52c)](_0x28d8ee=>{const _0x57d3f3=_0x5adeae;if(_0x28d8ee['id']===SetShapeTextVerticalAlignCommand['id'])_0x228445[_0x57d3f3(0x200)](_0x4ca4b6());}),_0x618b56=_0x26fcb5['editingParams$'][_0x5adeae(0x4c3)](()=>{const _0x5e059=_0x5adeae;_0x228445[_0x5e059(0x200)](_0x4ca4b6());});return _0x228445[_0x5adeae(0x200)](_0x4ca4b6()),()=>{const _0x4ec93b=_0x5adeae;_0x4d4433[_0x4ec93b(0x467)](),_0x618b56[_0x4ec93b(0x1c0)]();};}),'hidden$':_0x5b1b39[_0x2da6cf(0xfc)](_univerjs_core[_0x2da6cf(0x4a2)])[_0x2da6cf(0x33d)]((0x0,rxjs[_0x2da6cf(0x322)])(_0x4e057f=>!_0x4e057f))};}function ShapeMenuItemFactory(_0x307e15){const _0x5962e7=_0x3ce055,_0x5ef81f=_0x307e15['get'](_univerjs_core['IUniverInstanceService']);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x5962e7(0x647)]['SELECTOR'],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x5962e7(0x1ab),'tooltip':_0x5962e7(0x47f),'activated$':(0x0,_univerjs_sheets_ui[_0x5962e7(0x555)])(_0x5ef81f,![],()=>new rxjs[(_0x5962e7(0x3f4))](_0x4f5aaa=>{const _0x4a6de5=_0x5962e7;_0x4f5aaa[_0x4a6de5(0x200)](![]);})),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x307e15,_univerjs_core[_0x5962e7(0x34b)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x5962e7(0x23e)])(_0x307e15)};}const menuSchema={[_univerjs_ui['RibbonPosition'][_0x3ce055(0x293)]]:{[_univerjs_ui[_0x3ce055(0x4bd)][_0x3ce055(0x29f)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x3ce055(0x4bd)][_0x3ce055(0x2be)]]:{[_univerjs_docs_ui[_0x3ce055(0x491)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui[_0x3ce055(0x43d)]['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui['RibbonInsertGroup']['MEDIA']]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x186d2a,_0x5698a3,_0x43766f,_0x196fac,_0x42dd2b,_0x3c2b2d,_0x6bf6fb,_0x4b7909,_0x1567f0,_0x237ef1,_0x16cc18){const _0x5a4d45=_0x3ce055;super(),this[_0x5a4d45(0x3c5)]=_0x186d2a,this[_0x5a4d45(0x13b)]=_0x5698a3,this[_0x5a4d45(0x3a4)]=_0x43766f,this[_0x5a4d45(0xfb)]=_0x196fac,this[_0x5a4d45(0x61c)]=_0x42dd2b,this[_0x5a4d45(0x3e8)]=_0x3c2b2d,this[_0x5a4d45(0x204)]=_0x6bf6fb,this['_commandService']=_0x4b7909,this['_drawingManagerService']=_0x1567f0,this[_0x5a4d45(0x5ae)]=_0x237ef1,this[_0x5a4d45(0x26e)]=_0x16cc18,_defineProperty(this,'_sidebarDisposable',null),_defineProperty(this,_0x5a4d45(0x31d),null),_defineProperty(this,_0x5a4d45(0x222),![]),this[_0x5a4d45(0x315)](),this['_initMenu'](),this['disposeWithMe'](this[_0x5a4d45(0x3c5)][_0x5a4d45(0x20a)](_univerjs_core['UniverInstanceType'][_0x5a4d45(0x1db)])[_0x5a4d45(0x4c3)](_0x18a15e=>{const _0x3fe6c5=_0x5a4d45;var _0xf5971f;if(!_0x18a15e)(_0xf5971f=this['_sidebarDisposable'])===null||_0xf5971f===void 0x0||_0xf5971f[_0x3fe6c5(0x467)]();})),this[_0x5a4d45(0x331)](),this[_0x5a4d45(0x4dd)]();}[_0x3ce055(0x177)](){const _0x2f9fe2=_0x3ce055;this[_0x2f9fe2(0xfb)][_0x2f9fe2(0x5d5)](menuSchema);}['_registerShapeMenu'](){const _0x1135c7=_0x3ce055;this[_0x1135c7(0x5ae)]['registerFeatureMenu'](_univerjs_core[_0x1135c7(0x5bc)][_0x1135c7(0x253)],this[_0x1135c7(0x510)]['bind'](this)),this['_sheetCanvasPopManagerService']['registerFeatureMenuOffset'](_univerjs_core[_0x1135c7(0x5bc)]['DRAWING_SHAPE'],0x6,0x4);}[_0x3ce055(0x510)](_0x309d74,_0x478621,_0x223fa7,_0x4816d1){const _0x1c03b2=_0x3ce055;return[{'label':_0x1c03b2(0x251),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'drawingId':_0x223fa7},'disable':_0x4816d1===_univerjs_core['DrawingTypeEnum'][_0x1c03b2(0x3b4)]},{'label':_0x1c03b2(0x43e),'index':0x1,'commandId':_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x309d74,'drawings':[{'unitId':_0x309d74,'subUnitId':_0x478621,'drawingId':_0x223fa7,'drawingType':_0x4816d1}]},'disable':![]},{'label':_0x1c03b2(0x40b),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'drawingId':_0x223fa7},'disable':![]},{'label':_0x1c03b2(0x120),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0x1c03b2(0x337)]['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'shapeId':_0x223fa7,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1c03b2(0x337)]['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'shapeId':_0x223fa7,'flipV':!![]},'disable':![]},{'label':_0x1c03b2(0x394),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1c03b2(0x35b)]['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'shapeId':_0x223fa7,'rotate':0x5a},'disable':![]},{'label':_0x1c03b2(0x103),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1c03b2(0x35b)]['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'shapeId':_0x223fa7,'rotate':-0x5a},'disable':![]},{'label':_0x1c03b2(0x54a),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1c03b2(0x129)]['id'],'commandParams':{'unitId':_0x309d74,'subUnitId':_0x478621,'shapeId':_0x223fa7},'disable':![]}];}[_0x3ce055(0x625)](_0x4e58c2,_0x2a246e,_0x1da90f){const _0x217842=_0x3ce055,_0x37a08d=this[_0x217842(0x61c)][_0x217842(0x630)](_0x4e58c2,_0x2a246e,_0x1da90f),_0x53b0db=this['_sheetsShapeService'][_0x217842(0x5cc)](_0x4e58c2,_0x2a246e,_0x1da90f);if(_0x37a08d!==void 0x0&&_0x53b0db!==void 0x0)return{'shapeData':_0x53b0db,'shapeId':_0x1da90f,'shapeType':_0x37a08d,'unitId':_0x4e58c2,'subUnitId':_0x2a246e,'disableShapeOption':![]};return null;}[_0x3ce055(0x331)](){const _0x18c68b=_0x3ce055;this['disposeWithMe'](this[_0x18c68b(0x597)][_0x18c68b(0x52c)](_0x76c508=>{const _0xbb12d8=_0x18c68b;if(_0x76c508['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x1adfed,subUnitId:_0x49b7f9,drawingId:_0x5986a9}=_0x76c508[_0xbb12d8(0x1cb)];this[_0xbb12d8(0x31d)]=this[_0xbb12d8(0x625)](_0x1adfed,_0x49b7f9,_0x5986a9),this[_0xbb12d8(0x369)]();}_0x76c508['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0xbb12d8(0x31d)]=null,this[_0xbb12d8(0x196)]());if(_0x76c508['id']===_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id']){const {unitId:_0x2bee01,subUnitId:_0x12ef8e,shapeId:_0x51e1dc}=_0x76c508[_0xbb12d8(0x1cb)];if(this[_0xbb12d8(0x31d)]&&this[_0xbb12d8(0x31d)]['shapeId']===_0x51e1dc){const _0x4513e5=this[_0xbb12d8(0x625)](_0x2bee01,_0x12ef8e,_0x51e1dc);if(_0x4513e5)this[_0xbb12d8(0x31d)]=_0x4513e5;}}})),this[_0x18c68b(0x193)](this['_drawingManagerService'][_0x18c68b(0x364)][_0x18c68b(0x4c3)](_0x12c4cd=>{const _0x122085=_0x18c68b;if(this[_0x122085(0x222)]===![])return;if(_0x12c4cd['length']===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x12c4cd[_0x122085(0x49c)]===0x1&&_0x12c4cd[0x0]['drawingType']===_univerjs_core[_0x122085(0x5bc)][_0x122085(0x253)]){this[_0x122085(0x31d)]=this['_getShapeInfo'](_0x12c4cd[0x0][_0x122085(0x5df)],_0x12c4cd[0x0][_0x122085(0x54e)],_0x12c4cd[0x0][_0x122085(0x133)]);if(this[_0x122085(0x31d)]){this[_0x122085(0x369)]();return;}}const _0x1eb70d=_0x12c4cd[_0x122085(0x2c5)](_0x3f3f6c=>{const _0x3984d3=_0x122085;return _0x3f3f6c[_0x3984d3(0x500)]===_univerjs_core[_0x3984d3(0x5bc)][_0x3984d3(0x253)];});if(_0x12c4cd[_0x122085(0x49c)]>0x1&&_0x1eb70d[_0x122085(0x49c)]===_0x12c4cd['length']){this[_0x122085(0x31d)]=this[_0x122085(0x625)](_0x12c4cd[0x0][_0x122085(0x5df)],_0x12c4cd[0x0][_0x122085(0x54e)],_0x12c4cd[0x0][_0x122085(0x133)]);if(this[_0x122085(0x31d)]){this['_openShapeEditPanel']();return;}}else{this['_activeShapeInfo']=this[_0x122085(0x625)](_0x12c4cd[0x0][_0x122085(0x5df)],_0x12c4cd[0x0][_0x122085(0x54e)],_0x12c4cd[0x0][_0x122085(0x133)]);if(this[_0x122085(0x31d)]){this[_0x122085(0x31d)][_0x122085(0x60b)]=!![],this[_0x122085(0x369)]();return;}}this['_closeShapeEditPanel']();}));}['_registerComponent'](){const _0x572e03=_0x3ce055;[['ShapeIcon',_univerjs_icons['ShapeIcon']],[_0x572e03(0x59d),_univerjs_icons[_0x572e03(0x59d)]],['ShapeAccentBorderCallout2Icon',_univerjs_icons[_0x572e03(0x28a)]],[_0x572e03(0x15e),_univerjs_icons[_0x572e03(0x15e)]],[_0x572e03(0x533),_univerjs_icons['ShapeAccentCallout1Icon']],[_0x572e03(0x1d5),_univerjs_icons['ShapeAccentCallout2Icon']],[_0x572e03(0x160),_univerjs_icons[_0x572e03(0x160)]],['ShapeActionButtonBackPreviousIcon',_univerjs_icons['ShapeActionButtonBackPreviousIcon']],[_0x572e03(0x19b),_univerjs_icons[_0x572e03(0x19b)]],[_0x572e03(0x298),_univerjs_icons[_0x572e03(0x298)]],[_0x572e03(0x291),_univerjs_icons[_0x572e03(0x291)]],[_0x572e03(0x665),_univerjs_icons['ShapeActionButtonEndIcon']],[_0x572e03(0x619),_univerjs_icons[_0x572e03(0x619)]],['ShapeActionButtonHelpIcon',_univerjs_icons[_0x572e03(0x3c0)]],[_0x572e03(0x56e),_univerjs_icons[_0x572e03(0x56e)]],['ShapeActionButtonInformationIcon',_univerjs_icons[_0x572e03(0x267)]],[_0x572e03(0x30a),_univerjs_icons[_0x572e03(0x30a)]],['ShapeActionButtonReturnIcon',_univerjs_icons[_0x572e03(0x4d1)]],[_0x572e03(0x521),_univerjs_icons[_0x572e03(0x521)]],[_0x572e03(0x523),_univerjs_icons[_0x572e03(0x523)]],['ShapeBentArrowIcon',_univerjs_icons['ShapeBentArrowIcon']],[_0x572e03(0x52b),_univerjs_icons['ShapeBentConnector3Arrow1Icon']],[_0x572e03(0x271),_univerjs_icons[_0x572e03(0x271)]],[_0x572e03(0x4df),_univerjs_icons[_0x572e03(0x4df)]],['ShapeBentUpArrowIcon',_univerjs_icons[_0x572e03(0x279)]],['ShapeBevelIcon',_univerjs_icons[_0x572e03(0x39d)]],[_0x572e03(0x460),_univerjs_icons[_0x572e03(0x460)]],['ShapeBorderCallout1Icon',_univerjs_icons[_0x572e03(0x27f)]],[_0x572e03(0x51f),_univerjs_icons['ShapeBorderCallout2Icon']],[_0x572e03(0x442),_univerjs_icons[_0x572e03(0x442)]],['ShapeBracePairIcon',_univerjs_icons[_0x572e03(0x645)]],['ShapeBracketPairIcon',_univerjs_icons[_0x572e03(0x517)]],[_0x572e03(0x65d),_univerjs_icons[_0x572e03(0x65d)]],['ShapeCallout2Icon',_univerjs_icons['ShapeCallout2Icon']],[_0x572e03(0x37c),_univerjs_icons[_0x572e03(0x37c)]],[_0x572e03(0x458),_univerjs_icons[_0x572e03(0x458)]],[_0x572e03(0x4d7),_univerjs_icons[_0x572e03(0x4d7)]],[_0x572e03(0x513),_univerjs_icons[_0x572e03(0x513)]],[_0x572e03(0x252),_univerjs_icons['ShapeChartXIcon']],['ShapeChevronIcon',_univerjs_icons[_0x572e03(0x4f4)]],[_0x572e03(0x31b),_univerjs_icons[_0x572e03(0x31b)]],[_0x572e03(0x159),_univerjs_icons[_0x572e03(0x159)]],['ShapeCloudCalloutIcon',_univerjs_icons[_0x572e03(0x17c)]],[_0x572e03(0x2ee),_univerjs_icons[_0x572e03(0x2ee)]],['ShapeCornerIcon',_univerjs_icons[_0x572e03(0x50e)]],['ShapeCornerTabsIcon',_univerjs_icons['ShapeCornerTabsIcon']],[_0x572e03(0x275),_univerjs_icons[_0x572e03(0x275)]],[_0x572e03(0x62c),_univerjs_icons['ShapeCurvedConnector3Arrow1Icon']],[_0x572e03(0x51e),_univerjs_icons[_0x572e03(0x51e)]],[_0x572e03(0x338),_univerjs_icons[_0x572e03(0x338)]],['ShapeCurvedDownArrowIcon',_univerjs_icons[_0x572e03(0x221)]],['ShapeCurvedLeftArrowIcon',_univerjs_icons['ShapeCurvedLeftArrowIcon']],[_0x572e03(0x5c4),_univerjs_icons[_0x572e03(0x5c4)]],[_0x572e03(0x2c0),_univerjs_icons[_0x572e03(0x2c0)]],['ShapeDecagonIcon',_univerjs_icons['ShapeDecagonIcon']],['ShapeDiagStripeIcon',_univerjs_icons[_0x572e03(0x381)]],[_0x572e03(0x317),_univerjs_icons[_0x572e03(0x317)]],[_0x572e03(0x12b),_univerjs_icons[_0x572e03(0x12b)]],['ShapeDonutIcon',_univerjs_icons[_0x572e03(0x32a)]],[_0x572e03(0x4cf),_univerjs_icons[_0x572e03(0x4cf)]],[_0x572e03(0xfe),_univerjs_icons[_0x572e03(0xfe)]],['ShapeDownArrowIcon',_univerjs_icons[_0x572e03(0x1f9)]],[_0x572e03(0x3b7),_univerjs_icons[_0x572e03(0x3b7)]],['ShapeEllipseRibbon2Icon',_univerjs_icons[_0x572e03(0x554)]],[_0x572e03(0x22b),_univerjs_icons[_0x572e03(0x22b)]],[_0x572e03(0x33c),_univerjs_icons[_0x572e03(0x33c)]],[_0x572e03(0x339),_univerjs_icons['ShapeFlowChartCollateIcon']],[_0x572e03(0x173),_univerjs_icons['ShapeFlowChartConnectorIcon']],['ShapeFlowChartDecisionIcon',_univerjs_icons[_0x572e03(0x2ed)]],['ShapeFlowChartDelayIcon',_univerjs_icons['ShapeFlowChartDelayIcon']],[_0x572e03(0x4c0),_univerjs_icons[_0x572e03(0x4c0)]],[_0x572e03(0x57e),_univerjs_icons[_0x572e03(0x57e)]],[_0x572e03(0x21e),_univerjs_icons[_0x572e03(0x21e)]],['ShapeFlowChartInputOutputIcon',_univerjs_icons[_0x572e03(0x644)]],['ShapeFlowChartInternalStorageIcon',_univerjs_icons[_0x572e03(0x4e7)]],[_0x572e03(0x4d8),_univerjs_icons[_0x572e03(0x4d8)]],[_0x572e03(0x2c2),_univerjs_icons[_0x572e03(0x2c2)]],[_0x572e03(0x4e9),_univerjs_icons[_0x572e03(0x4e9)]],[_0x572e03(0x121),_univerjs_icons[_0x572e03(0x121)]],[_0x572e03(0x13a),_univerjs_icons[_0x572e03(0x13a)]],[_0x572e03(0x353),_univerjs_icons[_0x572e03(0x353)]],[_0x572e03(0x62b),_univerjs_icons[_0x572e03(0x62b)]],['ShapeFlowChartOfflineStorageIcon',_univerjs_icons[_0x572e03(0x23d)]],['ShapeFlowChartOffpageConnectorIcon',_univerjs_icons['ShapeFlowChartOffpageConnectorIcon']],[_0x572e03(0x13f),_univerjs_icons[_0x572e03(0x13f)]],['ShapeFlowChartOrIcon',_univerjs_icons[_0x572e03(0x4c1)]],[_0x572e03(0x420),_univerjs_icons[_0x572e03(0x420)]],['ShapeFlowChartPreparationIcon',_univerjs_icons[_0x572e03(0x25d)]],[_0x572e03(0x576),_univerjs_icons[_0x572e03(0x576)]],['ShapeFlowChartPunchedCardIcon',_univerjs_icons['ShapeFlowChartPunchedCardIcon']],[_0x572e03(0x153),_univerjs_icons[_0x572e03(0x153)]],[_0x572e03(0x104),_univerjs_icons[_0x572e03(0x104)]],[_0x572e03(0x1cc),_univerjs_icons[_0x572e03(0x1cc)]],[_0x572e03(0x16d),_univerjs_icons[_0x572e03(0x16d)]],[_0x572e03(0x38e),_univerjs_icons['ShapeFolderCornerIcon']],[_0x572e03(0x565),_univerjs_icons[_0x572e03(0x565)]],['ShapeFunnelIcon',_univerjs_icons[_0x572e03(0x297)]],[_0x572e03(0x1b8),_univerjs_icons['ShapeGear6Icon']],[_0x572e03(0x2a5),_univerjs_icons[_0x572e03(0x2a5)]],[_0x572e03(0x617),_univerjs_icons[_0x572e03(0x617)]],[_0x572e03(0x53b),_univerjs_icons[_0x572e03(0x53b)]],[_0x572e03(0x60c),_univerjs_icons[_0x572e03(0x60c)]],[_0x572e03(0x5b4),_univerjs_icons[_0x572e03(0x5b4)]],[_0x572e03(0x36e),_univerjs_icons['ShapeHomePlateIcon']],[_0x572e03(0x274),_univerjs_icons[_0x572e03(0x274)]],['ShapeIrregularSeal1Icon',_univerjs_icons[_0x572e03(0x329)]],[_0x572e03(0x362),_univerjs_icons[_0x572e03(0x362)]],['ShapeLeftArrowCalloutIcon',_univerjs_icons[_0x572e03(0x471)]],[_0x572e03(0x4f5),_univerjs_icons[_0x572e03(0x4f5)]],[_0x572e03(0x2bd),_univerjs_icons[_0x572e03(0x2bd)]],['ShapeLeftBracketIcon',_univerjs_icons[_0x572e03(0x187)]],['ShapeLeftCircularArrowIcon',_univerjs_icons[_0x572e03(0x2d8)]],[_0x572e03(0x4ea),_univerjs_icons[_0x572e03(0x4ea)]],[_0x572e03(0x1b6),_univerjs_icons['ShapeLeftRightArrowIcon']],[_0x572e03(0x43c),_univerjs_icons[_0x572e03(0x43c)]],['ShapeLeftRightRibbonIcon',_univerjs_icons[_0x572e03(0x425)]],[_0x572e03(0x3d4),_univerjs_icons[_0x572e03(0x3d4)]],[_0x572e03(0x650),_univerjs_icons[_0x572e03(0x650)]],[_0x572e03(0x235),_univerjs_icons[_0x572e03(0x235)]],[_0x572e03(0x130),_univerjs_icons[_0x572e03(0x130)]],[_0x572e03(0x585),_univerjs_icons[_0x572e03(0x585)]],[_0x572e03(0x2ba),_univerjs_icons[_0x572e03(0x2ba)]],[_0x572e03(0x2b0),_univerjs_icons['ShapeMathEqualIcon']],[_0x572e03(0x4ff),_univerjs_icons[_0x572e03(0x4ff)]],[_0x572e03(0x3ef),_univerjs_icons['ShapeMathMultiplyIcon']],[_0x572e03(0x35e),_univerjs_icons[_0x572e03(0x35e)]],[_0x572e03(0x12a),_univerjs_icons['ShapeMathPlusIcon']],['ShapeMoonIcon',_univerjs_icons[_0x572e03(0x10c)]],[_0x572e03(0x48f),_univerjs_icons[_0x572e03(0x48f)]],['ShapeNonIsoscelesTrapezoidIcon',_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],[_0x572e03(0x1d8),_univerjs_icons[_0x572e03(0x1d8)]],['ShapeOctagonIcon',_univerjs_icons[_0x572e03(0x2d0)]],[_0x572e03(0x277),_univerjs_icons[_0x572e03(0x277)]],['ShapePentagonIcon',_univerjs_icons[_0x572e03(0x4ca)]],['ShapePieIcon',_univerjs_icons[_0x572e03(0x3ac)]],[_0x572e03(0x168),_univerjs_icons[_0x572e03(0x168)]],[_0x572e03(0x461),_univerjs_icons[_0x572e03(0x461)]],[_0x572e03(0x634),_univerjs_icons[_0x572e03(0x634)]],[_0x572e03(0x307),_univerjs_icons['ShapePlusIcon']],[_0x572e03(0x3e7),_univerjs_icons[_0x572e03(0x3e7)]],[_0x572e03(0x49b),_univerjs_icons['ShapeQuadArrowIcon']],[_0x572e03(0x400),_univerjs_icons[_0x572e03(0x400)]],[_0x572e03(0x43a),_univerjs_icons[_0x572e03(0x43a)]],['ShapeRectTextboxVerticalIcon',_univerjs_icons['ShapeRectTextboxVerticalIcon']],[_0x572e03(0x4ab),_univerjs_icons[_0x572e03(0x4ab)]],[_0x572e03(0x162),_univerjs_icons[_0x572e03(0x162)]],[_0x572e03(0x2e1),_univerjs_icons[_0x572e03(0x2e1)]],[_0x572e03(0x424),_univerjs_icons[_0x572e03(0x424)]],[_0x572e03(0x46a),_univerjs_icons['ShapeRightBraceIcon']],[_0x572e03(0x26a),_univerjs_icons[_0x572e03(0x26a)]],[_0x572e03(0x237),_univerjs_icons[_0x572e03(0x237)]],[_0x572e03(0x3c9),_univerjs_icons[_0x572e03(0x3c9)]],['ShapeRound2SameRectIcon',_univerjs_icons[_0x572e03(0x63a)]],[_0x572e03(0x4ac),_univerjs_icons[_0x572e03(0x4ac)]],[_0x572e03(0x5d3),_univerjs_icons[_0x572e03(0x5d3)]],[_0x572e03(0x319),_univerjs_icons[_0x572e03(0x319)]],[_0x572e03(0x377),_univerjs_icons['ShapeSnip1RectIcon']],['ShapeSnip2DiagRectIcon',_univerjs_icons[_0x572e03(0x429)]],[_0x572e03(0x36f),_univerjs_icons[_0x572e03(0x36f)]],[_0x572e03(0x372),_univerjs_icons[_0x572e03(0x372)]],[_0x572e03(0x17b),_univerjs_icons['ShapeSquareTabsIcon']],[_0x572e03(0x19a),_univerjs_icons[_0x572e03(0x19a)]],[_0x572e03(0x14c),_univerjs_icons[_0x572e03(0x14c)]],[_0x572e03(0x1e3),_univerjs_icons[_0x572e03(0x1e3)]],[_0x572e03(0x314),_univerjs_icons[_0x572e03(0x314)]],[_0x572e03(0x48d),_univerjs_icons[_0x572e03(0x48d)]],['ShapeStar4Icon',_univerjs_icons[_0x572e03(0x46b)]],[_0x572e03(0x181),_univerjs_icons[_0x572e03(0x181)]],[_0x572e03(0x2d2),_univerjs_icons[_0x572e03(0x2d2)]],[_0x572e03(0x2e8),_univerjs_icons[_0x572e03(0x2e8)]],[_0x572e03(0x15c),_univerjs_icons[_0x572e03(0x15c)]],['ShapeStraightConnector1Icon',_univerjs_icons[_0x572e03(0x125)]],[_0x572e03(0x5fb),_univerjs_icons[_0x572e03(0x5fb)]],['ShapeStripedRightArrowIcon',_univerjs_icons['ShapeStripedRightArrowIcon']],[_0x572e03(0x52e),_univerjs_icons[_0x572e03(0x52e)]],[_0x572e03(0x627),_univerjs_icons['ShapeSwooshArrowIcon']],[_0x572e03(0x5ce),_univerjs_icons[_0x572e03(0x5ce)]],[_0x572e03(0x2e0),_univerjs_icons[_0x572e03(0x2e0)]],[_0x572e03(0x40f),_univerjs_icons[_0x572e03(0x40f)]],[_0x572e03(0x1a0),_univerjs_icons[_0x572e03(0x1a0)]],[_0x572e03(0x36c),_univerjs_icons[_0x572e03(0x36c)]],[_0x572e03(0x2eb),_univerjs_icons['ShapeUpDownArrowCalloutIcon']],[_0x572e03(0x5be),_univerjs_icons[_0x572e03(0x5be)]],['ShapeUturnArrowIcon',_univerjs_icons[_0x572e03(0x4c4)]],[_0x572e03(0x32e),_univerjs_icons['ShapeVerticalScrollIcon']],[_0x572e03(0x37a),_univerjs_icons['ShapeWaveIcon']],[_0x572e03(0x61e),_univerjs_icons[_0x572e03(0x61e)]],[_0x572e03(0x44a),_univerjs_icons[_0x572e03(0x44a)]],[_0x572e03(0x646),_univerjs_icons['ShapeWedgeRoundRectCalloutIcon']],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],ImageClipShapePicker]]['forEach'](([_0x382e4c,_0x2b5b1e])=>{const _0x50056a=_0x572e03;this['disposeWithMe'](this['_componentManager'][_0x50056a(0x40e)](_0x382e4c,_0x2b5b1e));});}[_0x3ce055(0x369)](){const _0x1dcb6d=_0x3ce055;this[_0x1dcb6d(0x392)]=this[_0x1dcb6d(0x3a4)][_0x1dcb6d(0x611)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x1dcb6d(0x3e8)]['t'](_0x1dcb6d(0x3e6))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x1dcb6d(0x31d)]},'onClose':()=>{const _0x9802d1=_0x1dcb6d;this[_0x9802d1(0x591)]['focusDrawing'](null),this[_0x9802d1(0x26e)]['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x9802d1(0x392)]=null;}}),this['_isOpenedShapeEditPanel']=!![];}[_0x3ce055(0x196)](){const _0x41b707=_0x3ce055;this[_0x41b707(0x222)]=![],this[_0x41b707(0x3a4)][_0x41b707(0x312)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x41b707(0x392)]=null,this[_0x41b707(0x26e)][_0x41b707(0x15a)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x41b707(0x591)][_0x41b707(0x4ec)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3ce055(0x498)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets[_0x3ce055(0x54b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_ui[_0x3ce055(0x628)])),__decorateParam(0x3,_univerjs_ui[_0x3ce055(0x1e7)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_core[_0x3ce055(0x112)])),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x3ce055(0x3a2)])),__decorateParam(0x7,_univerjs_core[_0x3ce055(0x4f7)]),__decorateParam(0x8,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x9,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_ui[_0x3ce055(0x3dc)])),__decorateParam(0xa,_univerjs_core[_0x3ce055(0x639)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0x3ce055(0x478);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x3ce055(0x3a1),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x45c463,_0x1b13e2,_0x1dbf17,_0x13aacf,_0x430992){const _0x4fc6a3=_0x3ce055;super(),this[_0x4fc6a3(0x378)]=_0x45c463,this['_drawingManagerService']=_0x1b13e2,this['_renderManagerService']=_0x1dbf17,this[_0x4fc6a3(0x3c5)]=_0x13aacf,this[_0x4fc6a3(0x497)]=_0x430992,_defineProperty(this,'_activeImageId',null),_defineProperty(this,_0x4fc6a3(0x2f5),null),_defineProperty(this,_0x4fc6a3(0x2bc),null),_defineProperty(this,'_activeAdjustPointList',void 0x0),_defineProperty(this,_0x4fc6a3(0x631),[]),_defineProperty(this,_0x4fc6a3(0x398),0x0),_defineProperty(this,_0x4fc6a3(0x17d),0x0),_defineProperty(this,_0x4fc6a3(0x157),0x0),_defineProperty(this,_0x4fc6a3(0x3ff),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x4fc6a3(0x376),void 0x0),_defineProperty(this,_0x4fc6a3(0x11e),void 0x0),_defineProperty(this,_0x4fc6a3(0x1f1),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x4fc6a3(0x217),![]),this['_registerFocusChangeHandler'](),this[_0x4fc6a3(0x38b)]();}['clearAdjustControls'](){const _0x4a7485=_0x3ce055;this[_0x4a7485(0x1a9)]();}[_0x3ce055(0x3a0)](){const _0x564629=_0x3ce055;this[_0x564629(0x1a9)](),this[_0x564629(0x437)](!![]);}[_0x3ce055(0x3c8)](_0x3f0250,_0x59af05,_0x1c61ab,_0x2556e4){const _0x1a7c67=_0x3ce055,_0xc23388=_0x3f0250;if(_0xc23388===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x1a7c67(0x1ce)]||_0x3f0250===_0x1a7c67(0x343))return;try{const _0x58e5d9=new _univerjs_pro_engine_shape[(_0x1a7c67(0x4ef))](_0xc23388,_0x1a7c67(0x283)+_0x3f0250);if(_0x2556e4)_0x58e5d9[_0x1a7c67(0x36d)]({'adjustValues':_0x2556e4},!![]);return _0x58e5d9['updateContext']({'width':_0x59af05,'height':_0x1c61ab}),_0x58e5d9;}catch{return;}}['_getImageDrawingInfo'](_0x5b4317,_0x5a1e4d,_0x4f85b4){const _0x3d57f0=_0x3ce055,_0x1b9b9c={'unitId':_0x5b4317,'subUnitId':_0x5a1e4d,'drawingId':_0x4f85b4},_0x130081=this[_0x3d57f0(0x591)]['getDrawingByParam'](_0x1b9b9c);if(!_0x130081||_0x130081[_0x3d57f0(0x500)]!==_univerjs_core[_0x3d57f0(0x5bc)][_0x3d57f0(0x5c0)])return;return _0x130081;}['_getImagePrstGeom'](_0x523aa9,_0xe459c1,_0x2a0a95){const _0x512f0b=_0x3ce055,_0x13ce71=this[_0x512f0b(0x637)]['getRenderById'](_0x523aa9);if(!_0x13ce71)return void 0x0;const {scene:_0x299206}=_0x13ce71,_0x24eaa7=(0x0,_univerjs_drawing[_0x512f0b(0x582)])({'unitId':_0x523aa9,'subUnitId':_0xe459c1,'drawingId':_0x2a0a95}),_0x27ae5e=_0x299206['getObject'](_0x24eaa7);if(_0x27ae5e instanceof _univerjs_engine_render[_0x512f0b(0x34a)]){const _0x2d92a1=_0x27ae5e[_0x512f0b(0x2e4)];if(_0x2d92a1)return{'prstGeom':_0x2d92a1,'adjustValues':_0x27ae5e['prstGeomAdjValues']};}}['_createControls'](_0x13e407=![]){const _0x4a4d9f=_0x3ce055;if(!this[_0x4a4d9f(0x2f5)]||!this[_0x4a4d9f(0x2bc)]||!this[_0x4a4d9f(0x2a3)])return;const _0x5cd1c5=this[_0x4a4d9f(0x637)][_0x4a4d9f(0x155)](this[_0x4a4d9f(0x2f5)]);if(!_0x5cd1c5)return;if(!_0x5cd1c5[_0x4a4d9f(0x512)](_univerjs_sheets_ui[_0x4a4d9f(0x30b)])[_0x4a4d9f(0x615)]())return;const {scene:_0x16f9ed}=_0x5cd1c5,_0x2af104=this[_0x4a4d9f(0x4c9)](this['_unitId'],this['_subUnitId'],this[_0x4a4d9f(0x2a3)]);if(!_0x2af104)return;const {transform:_0x131a30}=_0x2af104;if(!_0x131a30)return;const {left:_0x22f9fc,top:_0x555b97,width:_0x2c7fd3,height:_0x368c10,flipX:_0x594949,flipY:_0x337df2,angle:angle=0x0}=_0x131a30;if(_0x22f9fc===void 0x0||_0x555b97===void 0x0)return;const _0x525065=this['_getImagePrstGeom'](this[_0x4a4d9f(0x2f5)],this[_0x4a4d9f(0x2bc)],this[_0x4a4d9f(0x2a3)]);if(!_0x525065)return;if(_0x13e407){const _0x270cbc=this[_0x4a4d9f(0x3c8)](_0x525065['prstGeom'],_0x2c7fd3||0x0,_0x368c10||0x0,_0x525065[_0x4a4d9f(0x22f)]);if(!_0x270cbc)return;this['_activeAdjustPointList']=_0x270cbc[_0x4a4d9f(0x60d)]();}const _0x12fe73=this[_0x4a4d9f(0x462)];if(!_0x12fe73||_0x12fe73[_0x4a4d9f(0x49c)]===0x0)return;for(let _0x21cdcd=0x0;_0x21cdcd<_0x12fe73[_0x4a4d9f(0x49c)];_0x21cdcd++){const _0x4f8b1e=_0x12fe73[_0x21cdcd];let _0x5f4ffd=_0x4f8b1e['x'],_0x2b84de=_0x4f8b1e['y'];if(_0x594949)_0x5f4ffd=(_0x2c7fd3||0x0)-_0x5f4ffd;if(_0x337df2)_0x2b84de=(_0x368c10||0x0)-_0x2b84de;if(angle!==0x0){const _0xb4191a=(_0x2c7fd3||0x0)/0x2,_0x5bd8c2=(_0x368c10||0x0)/0x2,_0x34ab5e=angle*Math['PI']/0xb4,_0x1def2a=Math[_0x4a4d9f(0x238)](_0x34ab5e),_0x5e6dd8=Math[_0x4a4d9f(0x42a)](_0x34ab5e),_0x362ef1=_0x5f4ffd-_0xb4191a,_0x4b2b02=_0x2b84de-_0x5bd8c2;_0x5f4ffd=_0xb4191a+(_0x362ef1*_0x1def2a-_0x4b2b02*_0x5e6dd8),_0x2b84de=_0x5bd8c2+(_0x362ef1*_0x5e6dd8+_0x4b2b02*_0x1def2a);}const _0x552762={'x':_0x5f4ffd,'y':_0x2b84de,'adjName':_0x4f8b1e[_0x4a4d9f(0x4f2)]};this['_addControl'](_0x16f9ed,_0x552762,_0x552762[_0x4a4d9f(0x4f2)],_0x22f9fc,_0x555b97,this[_0x4a4d9f(0x2f5)],this['_subUnitId']);}}[_0x3ce055(0x464)](_0x210e7d,_0x44c4a7,_0x15697c,_0x42a7cb,_0x421efd,_0x4880e3,_0x3432ae){const _0x4084a4=_0x3ce055;if(!this[_0x4084a4(0x2a3)])return;const _0x213894=_0x4084a4(0x45e)+this[_0x4084a4(0x2a3)]+'-'+_0x15697c,_0x3c8abb=_0x210e7d[_0x4084a4(0x41b)](_0x213894);if(_0x3c8abb){_0x3c8abb[_0x4084a4(0x436)]({'left':_0x44c4a7['x']+_0x42a7cb-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize'],'top':_0x44c4a7['y']+_0x421efd-_univerjs_pro_engine_shape[_0x4084a4(0x2da)][_0x4084a4(0x2d5)]});return;}const _0x1de92d=new SheetShapeAdjustPointObject(_0x213894,{'left':_0x44c4a7['x']+_0x42a7cb-_univerjs_pro_engine_shape[_0x4084a4(0x2da)][_0x4084a4(0x2d5)],'top':_0x44c4a7['y']+_0x421efd-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize'],'adjName':_0x15697c,'shapeId':this[_0x4084a4(0x2a3)],'unitId':_0x4880e3,'subUnitId':_0x3432ae,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x4084a4(0x2d5)]+0x8,'height':_univerjs_pro_engine_shape[_0x4084a4(0x2da)][_0x4084a4(0x2d5)]+0x8,'zIndex':_univerjs_engine_render[_0x4084a4(0x15f)]+0x1,'evented':!![]});this[_0x4084a4(0x631)]['push'](_0x1de92d),this['_attachAdjustEvent'](_0x1de92d,_0x210e7d,_0x15697c),_0x210e7d[_0x4084a4(0x486)](_0x1de92d,_univerjs_engine_render[_0x4084a4(0x15f)]+0x1);}[_0x3ce055(0x1a9)](){const _0x3564a8=_0x3ce055;if(this[_0x3564a8(0x631)]['length']===0x0)return;this[_0x3564a8(0x631)][_0x3564a8(0x36b)](_0x593545=>_0x593545[_0x3564a8(0x467)]()),this[_0x3564a8(0x631)]=[];}[_0x3ce055(0x5b0)](_0x5a52e0,_0x551a89){const _0x528f02=_0x3ce055;var _0x5c823b;const _0x2f2bd4={'x':0x0,'y':0x0},_0x5b3086=this['_renderManagerService'][_0x528f02(0x155)](_0x5a52e0);if(!_0x5b3086)return _0x2f2bd4;if(!_0x5b3086[_0x528f02(0x512)](_univerjs_sheets_ui[_0x528f02(0x30b)])['getSkeleton'](_0x551a89))return _0x2f2bd4;const _0xb38ba9=_0x5b3086['with'](_univerjs_sheets_ui[_0x528f02(0x139)]),_0xf9c7e6=_0xb38ba9===null||_0xb38ba9===void 0x0?void 0x0:_0xb38ba9[_0x528f02(0x4a4)]();if(!_0xf9c7e6)return _0x2f2bd4;const _0xd156ee=(_0x5c823b=this[_0x528f02(0x3c5)][_0x528f02(0x3cc)](_0x5a52e0))===null||_0x5c823b===void 0x0?void 0x0:_0x5c823b[_0x528f02(0x14f)](_0x551a89);if(!_0xd156ee)return _0x2f2bd4;const _0x56b2eb=(0x0,_univerjs_sheets_ui[_0x528f02(0x336)])(_0xf9c7e6[_0x528f02(0x569)],_0xf9c7e6[_0x528f02(0x170)],_0x5b3086[_0x528f02(0x1bc)],_0xd156ee);if(!_0x56b2eb)return _0x2f2bd4;return{'x':_0x56b2eb['viewportScrollX'],'y':_0x56b2eb['viewportScrollY']};}['_getZoomRatio'](_0x4b263b,_0x2421ae){const _0x35fc0b=_0x3ce055;var _0x50b228,_0x413bc8;const _0x44dcbf=(_0x50b228=this[_0x35fc0b(0x3c5)][_0x35fc0b(0x3cc)](_0x4b263b))===null||_0x50b228===void 0x0?void 0x0:_0x50b228[_0x35fc0b(0x14f)](_0x2421ae);return(_0x413bc8=_0x44dcbf===null||_0x44dcbf===void 0x0?void 0x0:_0x44dcbf['getZoomRatio']())!==null&&_0x413bc8!==void 0x0?_0x413bc8:0x1;}[_0x3ce055(0x3f8)](_0x4bd6af,_0x3d9392,_0x255cf6){const _0x1cad34=_0x3ce055;this[_0x1cad34(0x193)]((0x0,_univerjs_core[_0x1cad34(0x10a)])(_0x4bd6af[_0x1cad34(0x1d2)]['subscribeEvent']((_0x37f930,_0x32d12e)=>{const _0x4b5e81=_0x1cad34;var _0x1544ae,_0x3cc379,_0x5df39c;const {unitId:_0x3da996,subUnitId:_0x5ac740,drawingId:_0x4f853c}=_0x4bd6af['getDrawingSearch'](),_0x2b87ea=this['_getImageDrawingInfo'](_0x3da996,_0x5ac740,_0x4f853c);if(!(_0x2b87ea===null||_0x2b87ea===void 0x0?void 0x0:_0x2b87ea[_0x4b5e81(0x152)]))return;const {left:_0x461aef,top:_0xcbbb73,width:_0x48cf6a,height:_0x4db561}=_0x2b87ea[_0x4b5e81(0x152)];this['_baseLeft']=_0x461aef||0x0,this[_0x4b5e81(0x17d)]=_0xcbbb73||0x0,this[_0x4b5e81(0x157)]=_0x48cf6a||0x0,this[_0x4b5e81(0x3ff)]=_0x4db561||0x0;const _0x40fe44=Boolean((_0x1544ae=_0x2b87ea['transform'])===null||_0x1544ae===void 0x0?void 0x0:_0x1544ae['flipX']),_0x566d42=Boolean((_0x3cc379=_0x2b87ea[_0x4b5e81(0x152)])===null||_0x3cc379===void 0x0?void 0x0:_0x3cc379[_0x4b5e81(0x282)]),_0x36f8cb=((_0x5df39c=_0x2b87ea[_0x4b5e81(0x152)])===null||_0x5df39c===void 0x0?void 0x0:_0x5df39c[_0x4b5e81(0x163)])||0x0,_0x316743=this['_getImagePrstGeom'](_0x3da996,_0x5ac740,_0x4f853c);if(!_0x316743)return;const _0x25866f=this[_0x4b5e81(0x3c8)](_0x316743[_0x4b5e81(0x2e4)],this[_0x4b5e81(0x157)],this[_0x4b5e81(0x3ff)],_0x316743[_0x4b5e81(0x22f)]);if(!_0x25866f)return;this[_0x4b5e81(0x11e)]=_0x25866f,this[_0x4b5e81(0x376)]=_0x25866f[_0x4b5e81(0x508)](_0x255cf6);if(!this[_0x4b5e81(0x376)])return;this[_0x4b5e81(0x62e)]=!![],_0x3d9392[_0x4b5e81(0x5dd)]();const _0x2f29e3=_0x316743['prstGeom'];this[_0x4b5e81(0x1f1)]=_0x3d9392['onPointerMove$'][_0x4b5e81(0x5c9)]((_0x45f4ca,_0x533a48)=>{const _0x2c2e80=_0x4b5e81;if(!this[_0x2c2e80(0x62e)])return;const {offsetX:_0x231d90,offsetY:_0x4678b4}=_0x45f4ca,_0x21b472=this[_0x2c2e80(0x376)];if(!this[_0x2c2e80(0x11e)]||!_0x21b472)return;_0x3d9392[_0x2c2e80(0x5dd)](),_0x3d9392[_0x2c2e80(0x4f0)](_univerjs_engine_render[_0x2c2e80(0x484)]['CROSSHAIR']);const _0x593df1={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x2c2e80(0x3ff)]},_0x49336e=this[_0x2c2e80(0x5b0)](_0x3da996,_0x5ac740),_0x49d4c4=this[_0x2c2e80(0x281)](_0x3da996,_0x5ac740);let _0x482eee=_0x231d90/_0x49d4c4+_0x49336e['x']-this['_baseLeft'],_0x185125=_0x4678b4/_0x49d4c4+_0x49336e['y']-this['_baseTop'];if(_0x36f8cb!==0x0){const _0x2cb59e=this[_0x2c2e80(0x157)]/0x2,_0x5c8c91=this[_0x2c2e80(0x3ff)]/0x2,_0x560b59=_0x36f8cb*Math['PI']/0xb4,_0x53a869=Math['cos'](_0x560b59),_0x3345ab=Math[_0x2c2e80(0x42a)](_0x560b59),_0x587d7a=_0x482eee-_0x2cb59e,_0x5b9fd6=_0x185125-_0x5c8c91;_0x482eee=_0x2cb59e+(_0x587d7a*_0x53a869+_0x5b9fd6*_0x3345ab),_0x185125=_0x5c8c91+(-_0x587d7a*_0x3345ab+_0x5b9fd6*_0x53a869);}if(_0x40fe44)_0x482eee=this[_0x2c2e80(0x157)]-_0x482eee;if(_0x566d42)_0x185125=this[_0x2c2e80(0x3ff)]-_0x185125;const _0x4dc9c2=this[_0x2c2e80(0x11e)][_0x2c2e80(0x3d3)](_0x593df1,{'x':_0x482eee,'y':_0x185125},_0x21b472,_0x40fe44,_0x566d42),_0x13cb2b=_0x21b472['gdRefX']||_0x21b472[_0x2c2e80(0x1b3)]||_0x21b472[_0x2c2e80(0x26c)]||_0x21b472[_0x2c2e80(0x501)];if(_0x13cb2b===void 0x0)return;this[_0x2c2e80(0x11e)][_0x2c2e80(0x324)](_0x13cb2b,_0x4dc9c2),this[_0x2c2e80(0x11e)][_0x2c2e80(0x368)]({'width':this[_0x2c2e80(0x157)],'height':this['_baseHeight']}),this[_0x2c2e80(0x4e8)](_0x3da996,_0x5ac740,_0x4f853c,_0x13cb2b,_0x4dc9c2),this['_activeAdjustPointList']=this[_0x2c2e80(0x11e)][_0x2c2e80(0x60d)](),this[_0x2c2e80(0x376)]=this[_0x2c2e80(0x11e)][_0x2c2e80(0x508)](_0x255cf6),this[_0x2c2e80(0x437)](),_0x533a48[_0x2c2e80(0x383)]();}),this[_0x4b5e81(0x530)]=_0x3d9392[_0x4b5e81(0x2f7)][_0x4b5e81(0x5c9)]((_0x4a09cf,_0x3b0078)=>{const _0x33d72e=_0x4b5e81;this[_0x33d72e(0x1f1)][_0x33d72e(0x1c0)](),this['_adjHandlerPointerUp'][_0x33d72e(0x1c0)](),_0x3d9392[_0x33d72e(0x2ad)]();if(this[_0x33d72e(0x11e)]){const _0x184cbc=this['_activeShapeModel']['getAdjustNames'](),_0x3049bb={};for(const _0x1535bc of _0x184cbc){const _0x11efff=this[_0x33d72e(0x11e)]['getAdjustValueByName'](_0x1535bc);if(_0x11efff!==void 0x0)_0x3049bb[_0x1535bc]=_0x11efff;}this[_0x33d72e(0x497)][_0x33d72e(0x24c)](_0x3da996,_0x5ac740,_0x4f853c,_0x2f29e3,_0x3049bb);}this[_0x33d72e(0x376)]=void 0x0,this[_0x33d72e(0x11e)]=void 0x0,this[_0x33d72e(0x62e)]=![],_0x3b0078[_0x33d72e(0x383)](),_0x3d9392[_0x33d72e(0x2cc)]();}),_0x32d12e[_0x4b5e81(0x383)]();})));}[_0x3ce055(0x4e8)](_0x11b3d7,_0x4299f0,_0x2a8609,_0x44fd27,_0x49b12f){const _0x1bf91f=_0x3ce055,_0x232c3e=this[_0x1bf91f(0x637)]['getRenderById'](_0x11b3d7);if(!_0x232c3e)return;const {scene:_0x175a98}=_0x232c3e,_0x5f12dc=(0x0,_univerjs_drawing[_0x1bf91f(0x582)])({'unitId':_0x11b3d7,'subUnitId':_0x4299f0,'drawingId':_0x2a8609}),_0x3b1cd1=_0x175a98[_0x1bf91f(0x5f3)](_0x5f12dc);if(_0x3b1cd1 instanceof _univerjs_engine_render[_0x1bf91f(0x34a)]){var _0x2d1d12;const _0xb15232=(_0x2d1d12=_0x3b1cd1['prstGeomAdjValues'])!==null&&_0x2d1d12!==void 0x0?_0x2d1d12:{};_0x3b1cd1[_0x1bf91f(0x2e5)]({..._0xb15232,[_0x44fd27]:_0x49b12f}),_0x3b1cd1['makeDirty'](!![]);}}['_registerMoveHandler'](){const _0x50753e=_0x3ce055,_0x46e970=this[_0x50753e(0x3c5)][_0x50753e(0x20a)](_univerjs_core[_0x50753e(0x34b)][_0x50753e(0x1db)]);this[_0x50753e(0x193)](_0x46e970[_0x50753e(0x33d)]((0x0,rxjs[_0x50753e(0x2a1)])(_0x2dd507=>{const _0x4bd26e=_0x50753e;if(!_0x2dd507)return rxjs['EMPTY'];return _0x2dd507[_0x4bd26e(0x50f)][_0x4bd26e(0x33d)]((0x0,rxjs[_0x4bd26e(0x2a1)])(_0xca4bf=>{const _0x4fb23f=_0x4bd26e;if(!_0xca4bf)return rxjs['EMPTY'];const _0x44873e=_0x2dd507[_0x4fb23f(0x3fa)](),_0x3ba34d=this[_0x4fb23f(0x637)]['getRenderById'](_0x44873e),_0x84dc40=_0x3ba34d===null||_0x3ba34d===void 0x0?void 0x0:_0x3ba34d['scene'];if(!_0x84dc40)return rxjs[_0x4fb23f(0x16c)];return(0x0,rxjs['of'])(_0x84dc40);}));}))[_0x50753e(0x4c3)](_0x527658=>{const _0x3e919e=_0x50753e,_0x1d49b2=_0x527658['getTransformerByCreate']();this['disposeWithMe'](_0x527658[_0x3e919e(0x635)][_0x3e919e(0x5c9)](()=>{const _0x559de0=_0x3e919e;if(this[_0x559de0(0x217)])this['_clearControls']();})),this[_0x3e919e(0x193)](_0x1d49b2[_0x3e919e(0x191)]['subscribe'](_0x3efd0a=>{const _0x163478=_0x3e919e,{objects:_0x5235aa}=_0x3efd0a;this[_0x163478(0x437)]();if(_0x5235aa!==null&&_0x5235aa[_0x163478(0x3da)]===0x1){const _0x106163=_0x5235aa['values']()[_0x163478(0x200)]()[_0x163478(0x357)];if(_0x106163 instanceof _univerjs_engine_render[_0x163478(0x34a)]&&_0x106163[_0x163478(0x2e4)])this['_isImagePointerDown']=!![];}})),this[_0x3e919e(0x193)](_0x1d49b2[_0x3e919e(0x44c)]['subscribe'](()=>{const _0x57e9d3=_0x3e919e;if(this[_0x57e9d3(0x217)])this['_clearControls']();})),this[_0x3e919e(0x193)](_0x527658[_0x3e919e(0x2f7)][_0x3e919e(0x5c9)](()=>{const _0x2a7649=_0x3e919e;this[_0x2a7649(0x217)]&&(this[_0x2a7649(0x217)]=![],this['_createControls']());})),this[_0x3e919e(0x193)](_0x1d49b2['changeEnd$']['subscribe'](()=>{const _0x2f840a=_0x3e919e;if(this[_0x2f840a(0x2f5)]&&this[_0x2f840a(0x2bc)]&&this[_0x2f840a(0x2a3)]){const _0x4361b3=this[_0x2f840a(0x1fe)](this[_0x2f840a(0x2f5)],this[_0x2f840a(0x2bc)],this['_activeImageId']);if(_0x4361b3){var _0x7abece,_0x1d3155;const _0x1904ab=this[_0x2f840a(0x4c9)](this[_0x2f840a(0x2f5)],this['_subUnitId'],this[_0x2f840a(0x2a3)]),_0x578ab8=(_0x1904ab===null||_0x1904ab===void 0x0||(_0x7abece=_0x1904ab[_0x2f840a(0x152)])===null||_0x7abece===void 0x0?void 0x0:_0x7abece[_0x2f840a(0x1f2)])||0x0,_0x11ad25=(_0x1904ab===null||_0x1904ab===void 0x0||(_0x1d3155=_0x1904ab[_0x2f840a(0x152)])===null||_0x1d3155===void 0x0?void 0x0:_0x1d3155[_0x2f840a(0x622)])||0x0,_0x3733db=this[_0x2f840a(0x3c8)](_0x4361b3['prstGeom'],_0x578ab8,_0x11ad25,_0x4361b3[_0x2f840a(0x22f)]);_0x3733db&&(this[_0x2f840a(0x462)]=_0x3733db['getDrawingPoints'](),this[_0x2f840a(0x1a9)](),this[_0x2f840a(0x437)](!![]));}}}));}));}['_registerFocusChangeHandler'](){const _0x2506b0=_0x3ce055;this[_0x2506b0(0x193)](this[_0x2506b0(0x591)][_0x2506b0(0x364)][_0x2506b0(0x4c3)](_0x3ce231=>{const _0x508854=_0x2506b0;if(_0x3ce231[_0x508854(0x49c)]===0x1){const _0x3c0e8e=_0x3ce231[0x0];if(_0x3c0e8e[_0x508854(0x500)]===_univerjs_core[_0x508854(0x5bc)][_0x508854(0x5c0)]){const {unitId:_0x2a9256,subUnitId:_0x350078,drawingId:_0x1787ab}=_0x3c0e8e,_0x20f5de=this[_0x508854(0x1fe)](_0x2a9256,_0x350078,_0x1787ab);if(_0x20f5de){var _0x54237a,_0x3f424b;this[_0x508854(0x2a3)]=_0x1787ab,this[_0x508854(0x2f5)]=_0x2a9256,this[_0x508854(0x2bc)]=_0x350078;const _0x128907=this[_0x508854(0x4c9)](_0x2a9256,_0x350078,_0x1787ab),_0x3578a1=(_0x128907===null||_0x128907===void 0x0||(_0x54237a=_0x128907[_0x508854(0x152)])===null||_0x54237a===void 0x0?void 0x0:_0x54237a[_0x508854(0x1f2)])||0x0,_0x35cc69=(_0x128907===null||_0x128907===void 0x0||(_0x3f424b=_0x128907[_0x508854(0x152)])===null||_0x3f424b===void 0x0?void 0x0:_0x3f424b[_0x508854(0x622)])||0x0,_0x3174ce=this[_0x508854(0x3c8)](_0x20f5de[_0x508854(0x2e4)],_0x3578a1,_0x35cc69,_0x20f5de[_0x508854(0x22f)]);if(_0x3174ce)this[_0x508854(0x462)]=_0x3174ce[_0x508854(0x60d)]();this[_0x508854(0x1a9)](),this[_0x508854(0x437)](!![]);}else this['_resetState']();}else this[_0x508854(0x107)]();}else this[_0x508854(0x107)]();})),this[_0x2506b0(0x193)](this[_0x2506b0(0x591)][_0x2506b0(0x5eb)][_0x2506b0(0x4c3)](_0x233af8=>{const _0x343d0b=_0x2506b0;if(_0x233af8[_0x343d0b(0x49c)]===0x1){const _0x5c7ae1=_0x233af8[0x0],_0x58b31f=this[_0x343d0b(0x591)][_0x343d0b(0x382)](_0x5c7ae1);(_0x58b31f===null||_0x58b31f===void 0x0?void 0x0:_0x58b31f[_0x343d0b(0x500)])===_univerjs_core['DrawingTypeEnum'][_0x343d0b(0x5c0)]&&(this[_0x343d0b(0x2a3)]===_0x5c7ae1[_0x343d0b(0x133)]&&(this[_0x343d0b(0x1a9)](),this[_0x343d0b(0x437)](!![])));}})),this[_0x2506b0(0x193)](this[_0x2506b0(0x591)][_0x2506b0(0x5e0)][_0x2506b0(0x4c3)](_0x100a26=>{const _0x129273=_0x2506b0;for(const _0xfaaafe of _0x100a26)if(this[_0x129273(0x2a3)]===_0xfaaafe[_0x129273(0x133)])this[_0x129273(0x107)]();}));}[_0x3ce055(0x107)](){const _0x3b73ca=_0x3ce055;this[_0x3b73ca(0x2a3)]=null,this[_0x3b73ca(0x2f5)]=null,this[_0x3b73ca(0x2bc)]=null,this[_0x3b73ca(0x462)]=void 0x0,this[_0x3b73ca(0x1a9)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x3ce055(0x2b4)])),__decorateParam(0x3,_univerjs_core[_0x3ce055(0x498)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3ce055(0x53e)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x4aa44f,_0x251fbc,_0x10f2de,_0x2dfc1c){const _0x571e08=_0x3ce055;super(),this[_0x571e08(0x3c5)]=_0x4aa44f,this[_0x571e08(0x13b)]=_0x251fbc,this['_sheetDrawingService']=_0x10f2de,this[_0x571e08(0x61c)]=_0x2dfc1c,this[_0x571e08(0x206)]();}[_0x3ce055(0x206)](){const _0x4c840d=_0x3ce055;this[_0x4c840d(0x193)](this[_0x4c840d(0x13b)][_0x4c840d(0x16f)]({'getMutations':_0x4d9d44=>{const _0x51c5ba=_0x4c840d;if(_0x4d9d44['id']===_univerjs_sheets[_0x51c5ba(0x489)]['id']){const _0x78d651=(0x0,_univerjs_sheets[_0x51c5ba(0x3a3)])(this['_univerInstanceService'],_0x4d9d44['params']);if(!_0x78d651)return{'redos':[],'undos':[]};const {unitId:_0x37c97d,subUnitId:_0x4cdff3}=_0x78d651,_0x5ce808=this[_0x51c5ba(0x370)][_0x51c5ba(0x34f)](_0x37c97d,_0x4cdff3),_0x9ab85b=Object['values'](_0x5ce808)[_0x51c5ba(0x2c5)](_0x5cc4ca=>_0x5cc4ca['drawingType']===_univerjs_core[_0x51c5ba(0x5bc)][_0x51c5ba(0x253)]);if(_0x9ab85b['length']===0x0)return{'redos':[],'undos':[]};const _0x629a96=[],_0x77631b=[];for(let _0x50662f=0x0;_0x50662f<_0x9ab85b['length'];_0x50662f++){const _0x5174fb=_0x9ab85b[_0x50662f],_0x56c934=this[_0x51c5ba(0x61c)][_0x51c5ba(0x272)](_0x5174fb[_0x51c5ba(0x5df)],_0x5174fb[_0x51c5ba(0x54e)],_0x5174fb['drawingId']);if(!_0x56c934)continue;const {redo:_0x57c6b1,undo:_0x13f374,objects:_0x436f10}=this['_sheetDrawingService']['getBatchRemoveOp']([_0x5174fb]);_0x629a96[_0x51c5ba(0x20e)]({'id':_univerjs_pro_sheets_shape[_0x51c5ba(0x55b)]['id'],'params':{'unitId':_0x37c97d,'subUnitId':_0x4cdff3,'shapeId':_0x5174fb['drawingId']}}),_0x629a96[_0x51c5ba(0x20e)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x37c97d,'subUnitId':_0x4cdff3,'type':_univerjs_sheets_drawing[_0x51c5ba(0x50a)]['REMOVE'],'op':_0x57c6b1,'objects':_0x436f10}}),_0x77631b[_0x51c5ba(0x20e)]({'id':_univerjs_sheets_drawing[_0x51c5ba(0x356)]['id'],'params':{'unitId':_0x37c97d,'subUnitId':_0x4cdff3,'type':_univerjs_sheets_drawing[_0x51c5ba(0x50a)]['INSERT'],'op':_0x13f374,'objects':_0x436f10}}),_0x77631b[_0x51c5ba(0x20e)]({'id':_univerjs_pro_sheets_shape[_0x51c5ba(0x33a)]['id'],'params':{'unitId':_0x37c97d,'subUnitId':_0x4cdff3,'shapeId':_0x5174fb[_0x51c5ba(0x133)],'shapeType':_0x56c934[_0x51c5ba(0x367)](),'shapeData':JSON[_0x51c5ba(0x4d4)](JSON['stringify'](_0x56c934[_0x51c5ba(0x1ca)]()))}});}return{'redos':_0x629a96,'undos':_0x77631b};}else{if(_0x4d9d44['id']===_univerjs_sheets[_0x51c5ba(0x5ad)]['id']){const {unitId:_0x135cd9,subUnitId:_0x4a1282,targetSubUnitId:_0x5810b3}=_0x4d9d44[_0x51c5ba(0x1cb)];if(!_0x135cd9||!_0x4a1282||!_0x5810b3)return{'redos':[],'undos':[]};const _0x4f55d4=this[_0x51c5ba(0x370)][_0x51c5ba(0x34f)](_0x135cd9,_0x4a1282),_0x1e3f51=Object['values'](_0x4f55d4)['filter'](_0x1ea6ed=>_0x1ea6ed['drawingType']===_univerjs_core[_0x51c5ba(0x5bc)][_0x51c5ba(0x253)]);if(_0x1e3f51[_0x51c5ba(0x49c)]===0x0)return{'redos':[],'undos':[]};const _0x43d607=[],_0x55e4c0=[];for(let _0x52f7e0=0x0;_0x52f7e0<_0x1e3f51['length'];_0x52f7e0++){const _0x15eb45=_0x1e3f51[_0x52f7e0],_0x47e4e=this['_sheetsShapeService'][_0x51c5ba(0x272)](_0x15eb45[_0x51c5ba(0x5df)],_0x15eb45[_0x51c5ba(0x54e)],_0x15eb45[_0x51c5ba(0x133)]);if(!_0x47e4e)continue;const _0x24342d=(0x0,_univerjs_core[_0x51c5ba(0x48c)])(),_0x373fa2={..._0x15eb45,'unitId':_0x135cd9,'subUnitId':_0x5810b3,'drawingId':_0x24342d},{redo:_0x4dab4c,undo:_0x34df8b,objects:_0x5544b4}=this[_0x51c5ba(0x370)][_0x51c5ba(0x4ad)]([_0x373fa2]);_0x43d607[_0x51c5ba(0x20e)]({'id':_univerjs_sheets_drawing[_0x51c5ba(0x356)]['id'],'params':{'unitId':_0x135cd9,'subUnitId':_0x5810b3,'type':_univerjs_sheets_drawing[_0x51c5ba(0x50a)][_0x51c5ba(0x42c)],'op':_0x4dab4c,'objects':_0x5544b4}}),_0x43d607[_0x51c5ba(0x20e)]({'id':_univerjs_pro_sheets_shape[_0x51c5ba(0x33a)]['id'],'params':{'unitId':_0x135cd9,'subUnitId':_0x5810b3,'shapeId':_0x24342d,'shapeType':_0x47e4e['getShapeType'](),'shapeData':JSON[_0x51c5ba(0x4d4)](JSON[_0x51c5ba(0x529)](_0x47e4e[_0x51c5ba(0x1ca)]()))}}),_0x55e4c0[_0x51c5ba(0x20e)]({'id':_univerjs_pro_sheets_shape[_0x51c5ba(0x55b)]['id'],'params':{'unitId':_0x135cd9,'subUnitId':_0x5810b3,'shapeId':_0x24342d}}),_0x55e4c0['push']({'id':_univerjs_sheets_drawing[_0x51c5ba(0x356)]['id'],'params':{'unitId':_0x135cd9,'subUnitId':_0x5810b3,'type':_univerjs_sheets_drawing[_0x51c5ba(0x50a)][_0x51c5ba(0x386)],'op':_0x34df8b,'objects':_0x5544b4}});}return{'redos':_0x43d607,'undos':_0x55e4c0};}}return{'redos':[],'undos':[]};}}));}};function _0x2c57(_0x5cf525,_0x5da0dd){_0x5cf525=_0x5cf525-0xf9;const _0x30117b=_0x3011();let _0x2c5734=_0x30117b[_0x5cf525];return _0x2c5734;}ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_core[_0x3ce055(0x498)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x3ce055(0x54b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape['SheetsShapeService']))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x214a46,_0x207065,_0x37e56a,_0x2726d7,_0x180db9){const _0x594f32=_0x3ce055;super(),this['_context']=_0x214a46,this['_shapeTextEditingService']=_0x207065,this[_0x594f32(0x591)]=_0x37e56a,this['_contextService']=_0x2726d7,this['_sheetsShapeService']=_0x180db9,_defineProperty(this,'_lastEditingShapeKey',null),this[_0x594f32(0x334)](),this[_0x594f32(0x185)](),this['_initEditingParams']();}[_0x3ce055(0x334)](){const _0x49eecf=_0x3ce055,{scene:_0x90d18e}=this[_0x49eecf(0x378)];this[_0x49eecf(0x193)](_0x90d18e[_0x49eecf(0x1a5)]['subscribeEvent'](_0x559b5a=>{const _0x376685=_0x49eecf,{offsetX:_0x17b051,offsetY:_0x12387b}=_0x559b5a,_0x26b61c=_0x90d18e[_0x376685(0x1fd)](_univerjs_engine_render[_0x376685(0x21d)][_0x376685(0x32d)]([_0x17b051,_0x12387b]));if(_0x26b61c instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x376685(0x618)])(this['_sheetsShapeService']['getShapeType'](_0x26b61c[_0x376685(0x5df)],_0x26b61c[_0x376685(0x54e)],_0x26b61c[_0x376685(0x469)])))return;this['_shapeTextEditingService'][_0x376685(0x290)]({'visible':!![],'unitId':_0x26b61c[_0x376685(0x5df)],'subUnitId':_0x26b61c['subUnitId'],'shapeId':_0x26b61c[_0x376685(0x469)],'shapeKey':_0x26b61c[_0x376685(0x131)]});}}));}[_0x3ce055(0x185)](){const _0x4890c0=_0x3ce055;this[_0x4890c0(0x193)](this[_0x4890c0(0x591)][_0x4890c0(0x364)][_0x4890c0(0x4c3)](_0x5ecec9=>{const _0x5f49d6=_0x4890c0;if(_0x5ecec9['length']===0x1){const _0x4510c7=_0x5ecec9[0x0],_0x5b3238=this[_0x5f49d6(0x591)][_0x5f49d6(0x382)](_0x4510c7);if((_0x5b3238===null||_0x5b3238===void 0x0?void 0x0:_0x5b3238[_0x5f49d6(0x500)])===_univerjs_core[_0x5f49d6(0x5bc)][_0x5f49d6(0x253)]){const _0x36d532=this[_0x5f49d6(0x550)][_0x5f49d6(0x4e0)]();if((_0x36d532===null||_0x36d532===void 0x0?void 0x0:_0x36d532[_0x5f49d6(0x469)])===_0x4510c7[_0x5f49d6(0x133)]&&_0x36d532[_0x5f49d6(0x48b)])return;if((0x0,_univerjs_pro_engine_shape[_0x5f49d6(0x618)])(this[_0x5f49d6(0x61c)][_0x5f49d6(0x367)](_0x4510c7[_0x5f49d6(0x5df)],_0x4510c7[_0x5f49d6(0x54e)],_0x4510c7[_0x5f49d6(0x133)])))this[_0x5f49d6(0x550)][_0x5f49d6(0x290)](null);}else this[_0x5f49d6(0x550)]['getEditing']()&&(this[_0x5f49d6(0x550)][_0x5f49d6(0x415)](!![]),requestAnimationFrame(()=>{const _0x452af3=_0x5f49d6;this[_0x452af3(0x550)][_0x452af3(0x290)](null);}));}else this[_0x5f49d6(0x550)]['getEditing']()&&(this[_0x5f49d6(0x550)][_0x5f49d6(0x415)](!![]),requestAnimationFrame(()=>{const _0x41a893=_0x5f49d6;this[_0x41a893(0x550)]['setEditing'](null);}));})),this[_0x4890c0(0x193)](this[_0x4890c0(0x591)]['remove$'][_0x4890c0(0x4c3)](_0xe8a5e3=>{const _0x330829=_0x4890c0,_0x3d14a8=this[_0x330829(0x550)][_0x330829(0x4e0)]();if(_0x3d14a8&&_0xe8a5e3[_0x330829(0x2ce)](_0x429c76=>_0x429c76[_0x330829(0x133)]===_0x3d14a8[_0x330829(0x469)]))this[_0x330829(0x550)][_0x330829(0x290)](null);}));}[_0x3ce055(0x3e1)](){const _0x5162d7=_0x3ce055;this['disposeWithMe'](this[_0x5162d7(0x550)][_0x5162d7(0x3db)][_0x5162d7(0x4c3)](_0x22a46e=>{const _0x57e12f=_0x5162d7,{scene:_0x1266ca}=this['_context'];if(this['_lastEditingShapeKey']){const _0x5028eb=_0x1266ca[_0x57e12f(0x41b)](this['_lastEditingShapeKey']);if(_0x5028eb)_0x5028eb[_0x57e12f(0x290)](![]);}if(_0x22a46e){const _0x53c432=!!_0x22a46e['visible'],_0x620be6=_0x1266ca[_0x57e12f(0x41b)](_0x22a46e[_0x57e12f(0x355)]);_0x620be6&&(_0x620be6[_0x57e12f(0x290)](_0x53c432),this['_lastEditingShapeKey']=_0x22a46e[_0x57e12f(0x355)]),this['_contextService']['setContextValue'](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x53c432);}else this['_lastEditingShapeKey']=null,this[_0x57e12f(0x26e)]['setContextValue'](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,_univerjs_core[_0x3ce055(0x639)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x3ce055(0x2da)]['cxnPointFill'],'stroke':_univerjs_pro_engine_shape[_0x3ce055(0x2da)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3ce055(0x4c2)]},'highlighted':{'fill':_0x3ce055(0x210),'stroke':_0x3ce055(0x257),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x3ce055(0x4a5)]{constructor(_0x4488e8,_0x20c50d){const _0x21bd18=_0x3ce055;super(_0x4488e8,_0x20c50d),_defineProperty(this,'_targetShapeId',''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,_0x21bd18(0x2f5),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,_0x21bd18(0x20d),![]);if(_0x20c50d)this['setShapeProps'](_0x20c50d);}[_0x3ce055(0x3e9)](){const _0x5bdf99=_0x3ce055;return{'unitId':this[_0x5bdf99(0x2f5)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5bdf99(0x3d5)],'cxnIndex':this['_cxnIndex']};}[_0x3ce055(0x5a3)](_0x248469){const _0x15b9f7=_0x3ce055;this[_0x15b9f7(0x20d)]!==_0x248469&&(this[_0x15b9f7(0x20d)]=_0x248469,this[_0x15b9f7(0x3ee)](!![]));}[_0x3ce055(0x481)](){const _0x29f4b9=_0x3ce055;return this[_0x29f4b9(0x20d)];}['setShapeProps'](_0x24c3c1){const _0x576fad=_0x3ce055;var _0xd8b127,_0x56104d;if(typeof _0x24c3c1['targetShapeId']!==_0x576fad(0x23f))this[_0x576fad(0x3d5)]=_0x24c3c1['targetShapeId'];if(typeof _0x24c3c1['cxnIndex']!==_0x576fad(0x23f))this[_0x576fad(0x351)]=_0x24c3c1[_0x576fad(0x2e6)];if(typeof _0x24c3c1['unitId']!=='undefined')this[_0x576fad(0x2f5)]=_0x24c3c1[_0x576fad(0x5df)];if(typeof _0x24c3c1[_0x576fad(0x54e)]!=='undefined')this[_0x576fad(0x2bc)]=_0x24c3c1[_0x576fad(0x54e)];if(typeof _0x24c3c1[_0x576fad(0x481)]!==_0x576fad(0x23f))this[_0x576fad(0x20d)]=_0x24c3c1[_0x576fad(0x481)];this[_0x576fad(0x436)]({'width':(_0xd8b127=_0x24c3c1['width'])!==null&&_0xd8b127!==void 0x0?_0xd8b127:_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':(_0x56104d=_0x24c3c1[_0x576fad(0x622)])!==null&&_0x56104d!==void 0x0?_0x56104d:_univerjs_pro_engine_shape[_0x576fad(0x2da)][_0x576fad(0x428)]*0x2});}[_0x3ce055(0x537)](_0x4e2b61){const _0x5a8530=_0x3ce055,_0x98acc4=this[_0x5a8530(0x20d)]?ConnectionSiteStyle[_0x5a8530(0x59e)]:ConnectionSiteStyle[_0x5a8530(0x52d)];_univerjs_engine_render['Circle'][_0x5a8530(0x538)](_0x4e2b61,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5a8530(0x428)],'fill':_0x98acc4[_0x5a8530(0x268)],'stroke':_0x98acc4[_0x5a8530(0x3c1)],'strokeWidth':_0x98acc4[_0x5a8530(0x57f)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core['Disposable']{constructor(_0x44b952,_0x3b2638,_0x20f191,_0x18a85b){const _0x320eea=_0x3ce055;super(),this[_0x320eea(0x378)]=_0x44b952,this[_0x320eea(0x637)]=_0x3b2638,this[_0x320eea(0x591)]=_0x20f191,this[_0x320eea(0x61c)]=_0x18a85b,_defineProperty(this,_0x320eea(0x17a),[]),_defineProperty(this,_0x320eea(0x1a8),null),_defineProperty(this,_0x320eea(0x27c),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,_0x320eea(0x2f5),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x2959ee,_0x957891,_0x3fa1da,_0x672a27){const _0x3a3cd9=_0x3ce055;this[_0x3a3cd9(0x4a3)]=_0x2959ee,this['_unitId']=_0x957891,this['_subUnitId']=_0x3fa1da,this[_0x3a3cd9(0x22e)]=_0x672a27;}['updateConnectionDetection'](_0x207c9c){const _0x14e0dd=_0x3ce055;if(!this['_currentScene'])return null;const _0x2bd104=this['_findShapeAtPoint'](_0x207c9c);return _0x2bd104?(this[_0x14e0dd(0x1a8)]!==_0x2bd104[_0x14e0dd(0x469)]&&(this[_0x14e0dd(0x4fa)](),this[_0x14e0dd(0x333)](_0x2bd104['shapeId'],_0x2bd104[_0x14e0dd(0x2d3)]),this[_0x14e0dd(0x1a8)]=_0x2bd104[_0x14e0dd(0x469)]),this[_0x14e0dd(0x1b9)](_0x207c9c)):(this[_0x14e0dd(0x1a8)]!==null&&(this[_0x14e0dd(0x4fa)](),this['_activeTargetShapeId']=null),null);}[_0x3ce055(0x522)](){const _0x1ef729=_0x3ce055;this[_0x1ef729(0x4fa)](),this['_currentScene']=null,this[_0x1ef729(0x1a8)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x1ef729(0x22e)]=null;}[_0x3ce055(0x4c8)](){const _0x4609ba=_0x3ce055;if(this['_activeTargetShapeId']===null||this[_0x4609ba(0x27c)]<0x0)return null;return{'shapeId':this[_0x4609ba(0x1a8)],'cxnIndex':this[_0x4609ba(0x27c)]};}['_findShapeAtPoint'](_0x44fa61){const _0x3588a4=_0x3ce055,_0x2b1390=this[_0x3588a4(0x591)][_0x3588a4(0x34f)](this['_unitId'],this[_0x3588a4(0x2bc)]);for(const _0x4d1930 of Object[_0x3588a4(0x4af)](_0x2b1390)){if(_0x4d1930===this[_0x3588a4(0x22e)])continue;if(_0x2b1390[_0x4d1930][_0x3588a4(0x500)]!==_univerjs_core[_0x3588a4(0x5bc)][_0x3588a4(0x253)])continue;const _0x2cdc67=this[_0x3588a4(0x61c)][_0x3588a4(0x272)](this[_0x3588a4(0x2f5)],this[_0x3588a4(0x2bc)],_0x4d1930);if(!_0x2cdc67)continue;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x2cdc67[_0x3588a4(0x367)]()))continue;if(_0x2cdc67[_0x3588a4(0x446)]()[_0x3588a4(0x49c)]===0x0)continue;if(!this[_0x3588a4(0x4a3)])continue;const _0x2a63f1=(0x0,_univerjs_drawing[_0x3588a4(0x582)])({'unitId':this['_unitId'],'subUnitId':this[_0x3588a4(0x2bc)],'drawingId':_0x4d1930}),_0x103b43=this[_0x3588a4(0x4a3)][_0x3588a4(0x41b)](_0x2a63f1);if(!_0x103b43)continue;const {left:_0x159148,top:_0x494aba,width:_0x1b9f3d,height:_0x273ae6}=_0x103b43['getRealBound'](),_0x2b4368=_0x159148+_0x1b9f3d/0x2,_0x3d1cce=_0x494aba+_0x273ae6/0x2,_0x4491f8=_0x103b43['transform'][_0x3588a4(0x55e)](),_0x1f2a57=new _univerjs_engine_render[(_0x3588a4(0x327))]([_0x4491f8[0x0],_0x4491f8[0x1],_0x4491f8[0x2],_0x4491f8[0x3],_0x2b4368,_0x3d1cce]),_0x4cefa4=_0x103b43[_0x3588a4(0x29e)](),_0x3ff66e=(_0x103b43[_0x3588a4(0x473)]&&(_0x4cefa4===null||_0x4cefa4===void 0x0?void 0x0:_0x4cefa4['classType'])===_univerjs_engine_render[_0x3588a4(0x161)]['GROUP']?_0x4cefa4[_0x3588a4(0x431)][_0x3588a4(0x573)](_0x1f2a57):_0x1f2a57)['invert']()[_0x3588a4(0x4cc)](_0x44fa61),_0x392a28=_0x1b9f3d/0x2,_0x54e643=_0x273ae6/0x2,_0x14dd96=SHAPE_BOUNDS_PADDING;if(_0x3ff66e['x']>=-_0x392a28-_0x14dd96&&_0x3ff66e['x']<=_0x392a28+_0x14dd96&&_0x3ff66e['y']>=-_0x54e643-_0x14dd96&&_0x3ff66e['y']<=_0x54e643+_0x14dd96)return{'shapeId':_0x4d1930,'shapeModel':_0x2cdc67};}return null;}['_showConnectionSites'](_0x16d80c,_0x404697){const _0x3fb719=_0x3ce055;if(!this[_0x3fb719(0x4a3)])return;const _0x4ca44b=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x3fb719(0x2f5)],'subUnitId':this[_0x3fb719(0x2bc)],'drawingId':_0x16d80c}),_0x4189b0=this[_0x3fb719(0x4a3)]['getObjectIncludeInGroup'](_0x4ca44b);if(!_0x4189b0)return;const {left:_0xe49e0f,top:_0x1c4018,width:_0x338002,height:_0x385fed}=_0x4189b0['getRealBound'](),_0x3cc1d8=_0xe49e0f+_0x338002/0x2,_0x8c20a1=_0x1c4018+_0x385fed/0x2,_0x4b3a7d=_0x4189b0[_0x3fb719(0x152)][_0x3fb719(0x55e)](),_0x517977=new _univerjs_engine_render[(_0x3fb719(0x327))]([_0x4b3a7d[0x0],_0x4b3a7d[0x1],_0x4b3a7d[0x2],_0x4b3a7d[0x3],_0x3cc1d8,_0x8c20a1]),_0x80104d=_0x4189b0['getParent'](),_0x454eb0=_0x4189b0[_0x3fb719(0x473)]&&(_0x80104d===null||_0x80104d===void 0x0?void 0x0:_0x80104d[_0x3fb719(0x136)])===_univerjs_engine_render[_0x3fb719(0x161)][_0x3fb719(0x128)]?_0x80104d[_0x3fb719(0x431)][_0x3fb719(0x573)](_0x517977):_0x517977;_0x404697[_0x3fb719(0x368)]({'width':_0x338002,'height':_0x385fed});const _0x345a7b=_0x404697[_0x3fb719(0x446)]();for(const _0x320bc7 of _0x345a7b){const _0x52b51b=_0x320bc7['x']-_0x338002/0x2,_0x42f9b8=_0x320bc7['y']-_0x385fed/0x2,_0x4e108c=_0x454eb0[_0x3fb719(0x4cc)]({'x':_0x52b51b,'y':_0x42f9b8}),_0x5ff31d=_0x4e108c['x'],_0x1ad300=_0x4e108c['y'],_0x5a3fa1=new SheetBasicShapeConnectionSiteObject(_0x3fb719(0x61b)+_0x16d80c+'-'+_0x320bc7[_0x3fb719(0x27d)],{'left':_0x5ff31d-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x1ad300-_univerjs_pro_engine_shape[_0x3fb719(0x2da)][_0x3fb719(0x428)],'targetShapeId':_0x16d80c,'cxnIndex':_0x320bc7[_0x3fb719(0x27d)],'unitId':this['_unitId'],'subUnitId':this[_0x3fb719(0x2bc)],'width':_univerjs_pro_engine_shape[_0x3fb719(0x2da)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x3fb719(0x2da)][_0x3fb719(0x428)]*0x2,'zIndex':_univerjs_engine_render[_0x3fb719(0x15f)]+0x2,'evented':![]});this[_0x3fb719(0x17a)]['push'](_0x5a3fa1),this[_0x3fb719(0x4a3)][_0x3fb719(0x486)](_0x5a3fa1,_univerjs_engine_render[_0x3fb719(0x15f)]+0x2);}}[_0x3ce055(0x1b9)](_0x3e851d){const _0x570035=_0x3ce055;let _0x334faf=null,_0x2eba3a=Infinity,_0x5b2c97=null;for(const _0x1fc933 of this['_connectionSiteObjects']){const _0x592f29=_0x1fc933[_0x570035(0x358)]+_univerjs_pro_engine_shape[_0x570035(0x2da)][_0x570035(0x428)],_0x29419e=_0x1fc933[_0x570035(0x169)]+_univerjs_pro_engine_shape[_0x570035(0x2da)][_0x570035(0x428)],_0x5c26ce=_0x3e851d['x']-_0x592f29,_0x248793=_0x3e851d['y']-_0x29419e,_0x3fe45b=Math[_0x570035(0x589)](_0x5c26ce*_0x5c26ce+_0x248793*_0x248793);_0x3fe45b<_0x2eba3a&&(_0x2eba3a=_0x3fe45b,_0x334faf=_0x1fc933,_0x5b2c97={'x':_0x592f29,'y':_0x29419e});}const _0x140278=_0x2eba3a<=CONNECTION_SITE_HIT_RADIUS&&_0x334faf?_0x334faf[_0x570035(0x3e9)]()['cxnIndex']:-0x1;if(_0x140278!==this[_0x570035(0x27c)]){for(const _0x46def1 of this[_0x570035(0x17a)]){const _0x2ad230=_0x46def1[_0x570035(0x3e9)]();_0x46def1[_0x570035(0x5a3)](_0x2ad230[_0x570035(0x2e6)]===_0x140278);}this[_0x570035(0x27c)]=_0x140278;}if(_0x2eba3a<=CONNECTION_SITE_HIT_RADIUS&&_0x334faf&&_0x5b2c97){const _0x517a71=_0x334faf[_0x570035(0x3e9)](),_0x4da3e8=this[_0x570035(0x655)](_0x517a71[_0x570035(0x469)],_0x517a71['cxnIndex']);return{'shapeId':_0x517a71[_0x570035(0x469)],'cxnIndex':_0x517a71[_0x570035(0x2e6)],'unitId':_0x517a71[_0x570035(0x5df)],'subUnitId':_0x517a71[_0x570035(0x54e)],'worldPoint':_0x5b2c97,'angle':_0x4da3e8};}return null;}[_0x3ce055(0x655)](_0x44e2da,_0x545fc5){const _0x11c023=_0x3ce055,_0x29f24d=this[_0x11c023(0x61c)][_0x11c023(0x272)](this[_0x11c023(0x2f5)],this['_subUnitId'],_0x44e2da);if(!_0x29f24d)return 0x0;const _0x2f7b55=this[_0x11c023(0x591)][_0x11c023(0x382)]({'unitId':this[_0x11c023(0x2f5)],'subUnitId':this[_0x11c023(0x2bc)],'drawingId':_0x44e2da});if(!(_0x2f7b55===null||_0x2f7b55===void 0x0?void 0x0:_0x2f7b55['transform']))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x2f7b55[_0x11c023(0x152)];_0x29f24d[_0x11c023(0x368)]({'width':width,'height':height});const _0x4c9d42=_0x29f24d[_0x11c023(0x446)]()['find'](_0x4ba2ca=>_0x4ba2ca['index']===_0x545fc5);if(!_0x4c9d42)return 0x0;let _0x3e5f7d=_0x4c9d42['ang']/0xea60;if(flipX)_0x3e5f7d=0xb4-_0x3e5f7d;if(flipY)_0x3e5f7d=-_0x3e5f7d;return _0x3e5f7d=(_0x3e5f7d%0x168+0x168)%0x168,_0x3e5f7d;}['_clearConnectionSites'](){const _0xf5cbcb=_0x3ce055;for(const _0x49768a of this[_0xf5cbcb(0x17a)])_0x49768a[_0xf5cbcb(0x467)]();this[_0xf5cbcb(0x17a)]=[],this[_0xf5cbcb(0x27c)]=-0x1;}['dispose'](){const _0x285a3a=_0x3ce055;this[_0x285a3a(0x4fa)](),super['dispose']();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_drawing[_0x3ce055(0x4bc)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x6fecb1,_0xf479b4,_0x13f72b,_0x332386,_0x172cfe){const _0x3ce90e=_0x3ce055;super(),this['_sheetSkeletonService']=_0x6fecb1,this[_0x3ce90e(0x254)]=_0xf479b4,this[_0x3ce90e(0x370)]=_0x13f72b,this[_0x3ce90e(0x246)]=_0x332386,this[_0x3ce90e(0x167)]=_0x172cfe,_defineProperty(this,_0x3ce90e(0x612),void 0x0),this[_0x3ce90e(0x445)](),this[_0x3ce90e(0x29a)]();}get[_0x3ce055(0x1bd)](){const _0x2c809c=_0x3ce055;return this[_0x2c809c(0x370)][_0x2c809c(0x5e2)]();}[_0x3ce055(0x29a)](){const _0x1a8faa=_0x3ce055;this['_groupCopyPasteController'][_0x1a8faa(0x1de)](({fromUnitId:_0x217e25,fromSubUnitId:_0x3dd36b,toUnitId:_0x44ff6d,toSubUnitId:_0x2259c8,idMap:_0x9b4088})=>{const _0x44e2af=_0x1a8faa,_0x5000e3=[],_0x2d5986=[];for(const [_0x3abd5d,_0x1b1825]of _0x9b4088['entries']()){const _0x5a4a8e=this[_0x44e2af(0x246)][_0x44e2af(0x272)](_0x217e25,_0x3dd36b,_0x3abd5d);if(!_0x5a4a8e)continue;const _0x570002=_0x5a4a8e['getShapeType'](),_0x40b6f7=JSON[_0x44e2af(0x4d4)](JSON[_0x44e2af(0x529)](_0x5a4a8e[_0x44e2af(0x1ca)]()));if(_0x40b6f7[_0x44e2af(0x5dc)]){var _0x1f6faf,_0x25dcc6;const _0x4e15db=(_0x1f6faf=_0x40b6f7[_0x44e2af(0x5dc)][_0x44e2af(0x3fd)])===null||_0x1f6faf===void 0x0?void 0x0:_0x1f6faf[_0x44e2af(0x469)],_0xb21dc6=(_0x25dcc6=_0x40b6f7[_0x44e2af(0x5dc)]['to'])===null||_0x25dcc6===void 0x0?void 0x0:_0x25dcc6[_0x44e2af(0x469)],_0x1e77c0=_0x4e15db?_0x9b4088['has'](_0x4e15db):!![],_0x3be37c=_0xb21dc6?_0x9b4088[_0x44e2af(0x10f)](_0xb21dc6):!![];if(_0x1e77c0&&_0x4e15db&&_0x40b6f7['relation'][_0x44e2af(0x3fd)])_0x40b6f7['relation'][_0x44e2af(0x3fd)]={..._0x40b6f7[_0x44e2af(0x5dc)][_0x44e2af(0x3fd)],'shapeId':_0x9b4088[_0x44e2af(0x570)](_0x4e15db)};else _0x40b6f7['relation'][_0x44e2af(0x3fd)]=void 0x0;if(_0x3be37c&&_0xb21dc6&&_0x40b6f7[_0x44e2af(0x5dc)]['to'])_0x40b6f7[_0x44e2af(0x5dc)]['to']={..._0x40b6f7[_0x44e2af(0x5dc)]['to'],'shapeId':_0x9b4088['get'](_0xb21dc6)};else _0x40b6f7[_0x44e2af(0x5dc)]['to']=void 0x0;}_0x5000e3['push']({'id':_univerjs_pro_sheets_shape[_0x44e2af(0x33a)]['id'],'params':{'unitId':_0x44ff6d,'subUnitId':_0x2259c8,'shapeId':_0x1b1825,'shapeType':_0x570002,'shapeData':_0x40b6f7}}),_0x2d5986[_0x44e2af(0x20e)]({'id':_univerjs_pro_sheets_shape[_0x44e2af(0x55b)]['id'],'params':{'unitId':_0x44ff6d,'subUnitId':_0x2259c8,'shapeId':_0x1b1825}});}return{'redos':_0x5000e3,'undos':_0x2d5986};});}['_initCopyPaste'](){const _0x31217d=_0x3ce055;this[_0x31217d(0x193)](this['_sheetClipboardService'][_0x31217d(0x629)]({'id':_0x31217d(0x4a9),'onBeforeCopy':(_0x46bd4a,_0x461d75,_0x1de44b,_0x2ccdc5)=>{const _0x3eab85=_0x31217d;this[_0x3eab85(0x612)]=null;const _0x4cddc6=this[_0x3eab85(0x1bd)];if(_0x4cddc6[_0x3eab85(0x49c)]){const _0x11dc7c=_0x4cddc6[_0x3eab85(0x2c5)](_0x1aca1d=>_0x1aca1d[_0x3eab85(0x500)]===_univerjs_core[_0x3eab85(0x5bc)][_0x3eab85(0x253)]);if(_0x11dc7c[_0x3eab85(0x49c)]===0x0)return;this[_0x3eab85(0x612)]={'unitId':_0x46bd4a,'subUnitId':_0x461d75,'copyType':_0x2ccdc5,'drawings':_0x11dc7c};}else this['_createCopyInfoByRange'](_0x46bd4a,_0x461d75,_0x1de44b,_0x2ccdc5);},'onPasteCells':(_0x40b97c,_0x4b62ec,_0x58c451,_0x1354ab)=>{const _0x215005=_0x31217d;if(!this['_copyInfo'])return{'redos':[],'undos':[]};const {pasteType:_0x1042aa}=_0x1354ab;if(_0x1042aa!==_univerjs_sheets_ui[_0x215005(0x3be)]['DEFAULT_PASTE'])return{'redos':[],'undos':[]};return this[_0x215005(0x5f7)](_0x4b62ec,this[_0x215005(0x612)][_0x215005(0x3b9)]===_univerjs_sheets_ui[_0x215005(0x1e4)][_0x215005(0x12f)]);},'onPasteUnrecognized':_0x299298=>{const _0x5c046e=_0x31217d;if(!this[_0x5c046e(0x612)])return{'redos':[],'undos':[]};return this[_0x5c046e(0x5f7)](_0x299298,this[_0x5c046e(0x612)][_0x5c046e(0x3b9)]===_univerjs_sheets_ui['COPY_TYPE'][_0x5c046e(0x12f)]);}}));}[_0x3ce055(0x2cd)](_0x55ec73,_0x4f1d0e,_0x248a3c,_0x2a8e27){const _0x2a72b8=_0x3ce055,_0x427422=this[_0x2a72b8(0x379)][_0x2a72b8(0x22a)](_0x55ec73,_0x4f1d0e);if(!_0x427422)return;const _0x2e1a71=(0x0,_univerjs_sheets[_0x2a72b8(0x4fd)])(_0x427422,_0x248a3c);if(!_0x2e1a71)return;const {startX:_0x3a1e21,endX:_0x2c44f1,startY:_0x5432ed,endY:_0x4249c8}=_0x2e1a71,_0x33ee89=this[_0x2a72b8(0x370)]['getDrawingData'](_0x55ec73,_0x4f1d0e),_0x5c43e0=this['_focusedDrawings'][_0x2a72b8(0x1cf)]();for(const [_0x1aeaf0,_0x3d9090]of Object['entries'](_0x33ee89)){if(_0x3d9090[_0x2a72b8(0x500)]!==_univerjs_core[_0x2a72b8(0x5bc)][_0x2a72b8(0x253)])continue;const {transform:_0x1c83c3}=_0x3d9090;if(!_0x1c83c3)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x1c83c3;if(_0x3a1e21<=left&&_0x2c44f1>=left+width&&_0x5432ed<=top&&_0x4249c8>=top+height)_0x5c43e0[_0x2a72b8(0x20e)](_0x3d9090);}if(_0x5c43e0[_0x2a72b8(0x49c)]>0x0)this['_copyInfo']={'unitId':_0x55ec73,'subUnitId':_0x4f1d0e,'copyType':_0x2a8e27,'copyRange':_0x248a3c,'drawings':_0x5c43e0};}['_generatePasteMutations'](_0x5bf1f9,_0x576db4){const _0x165888=_0x3ce055,{unitId:_0x41f4d0,subUnitId:_0x33ed96,range:_0x2cb77a}=_0x5bf1f9,_0x48efdc=this[_0x165888(0x379)][_0x165888(0x22a)](_0x41f4d0,_0x33ed96);if(!_0x48efdc)return{'redos':[],'undos':[]};const _0x2fc9aa=(0x0,_univerjs_sheets[_0x165888(0x514)])(_0x2cb77a),{unitId:_0x2b08ce,subUnitId:_0x400875,copyRange:_0xb7bce4,drawings:_0x183197}=this[_0x165888(0x612)],_0x23fd36=this[_0x165888(0x379)][_0x165888(0x22a)](_0x2b08ce,_0x400875);if(!_0x23fd36)return{'redos':[],'undos':[]};let _0x26562b;if(!_0xb7bce4){let _0x4b43a1=Infinity,_0x4831dc=Infinity;for(const _0x28d6b5 of _0x183197){var _0x274309;const {left:left=0x0,top:top=0x0}=(_0x274309=_0x28d6b5['transform'])!==null&&_0x274309!==void 0x0?_0x274309:{};if(left<_0x4b43a1)_0x4b43a1=left;if(top<_0x4831dc)_0x4831dc=top;}if(_0x4b43a1!==Infinity&&_0x4831dc!==Infinity)_0x26562b={'left':_0x4b43a1,'top':_0x4831dc};}const _0x4be0ff=new Map();if(!_0x576db4){for(const _0x17955f of _0x183197)_0x4be0ff[_0x165888(0x3a5)](_0x17955f[_0x165888(0x133)],(0x0,_univerjs_core[_0x165888(0x48c)])());}const _0x7b22f5=[],_0x3e63c2=[];for(const _0x381031 of _0x183197){const {drawingId:_0x16d379,transform:_0x3fb772,sheetTransform:_0x27998a}=_0x381031;if(!_0x3fb772||!_0x27998a)continue;const _0xd586cf=this[_0x165888(0x330)]({'transform':_0x3fb772,'sheetTransform':_0x27998a},{'skeleton':_0x23fd36,'range':_0xb7bce4},{'skeleton':_0x48efdc,'range':_0x2fc9aa},_0x26562b);if(_0x576db4){const {redos:_0xe223d0,undos:_0x114180}=this[_0x165888(0x287)]({'fromUnitId':_0x2b08ce,'fromSubUnitId':_0x400875,'toUnitId':_0x41f4d0,'toSubUnitId':_0x33ed96,'drawing':_0x381031,'newTransforms':_0xd586cf});_0x7b22f5[_0x165888(0x20e)](..._0xe223d0),_0x3e63c2[_0x165888(0x20e)](..._0x114180);continue;}const {redos:_0x14b025,undos:_0x6d84ad}=this[_0x165888(0x4c7)]({'toUnitId':_0x41f4d0,'toSubUnitId':_0x33ed96,'drawing':_0x381031,'newTransforms':_0xd586cf,'newDrawingId':_0x4be0ff['get'](_0x16d379),'idMap':_0x4be0ff});_0x7b22f5[_0x165888(0x20e)](..._0x14b025),_0x3e63c2[_0x165888(0x20e)](..._0x6d84ad);}return{'redos':_0x7b22f5,'undos':_0x3e63c2};}[_0x3ce055(0x287)](_0x386dfd){const _0x5df846=_0x3ce055,{fromUnitId:_0x1eb846,fromSubUnitId:_0x3e7865,toUnitId:_0x1a1bf4,toSubUnitId:_0x57f4f8,drawing:_0x17f098,newTransforms:_0x1b2048}=_0x386dfd,_0x2d4041={..._0x17f098,'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'transform':_0x1b2048[_0x5df846(0x152)],'sheetTransform':_0x1b2048['sheetTransform']};if(_0x1a1bf4===_0x1eb846&&_0x57f4f8===_0x3e7865){const {redo:_0x375dcd,undo:_0x58bbeb,objects:_0x285f0d}=this[_0x5df846(0x370)]['getBatchUpdateOp']([_0x2d4041]);return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)][_0x5df846(0x47d)],'op':_0x375dcd,'objects':_0x285f0d}}],'undos':[{'id':_univerjs_sheets_drawing[_0x5df846(0x356)]['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)][_0x5df846(0x47d)],'op':_0x58bbeb,'objects':_0x285f0d}}]};}else{const _0x1d6e80=this[_0x5df846(0x370)]['getBatchRemoveOp']([_0x17f098]),_0x466157=this[_0x5df846(0x370)]['getBatchAddOp']([_0x2d4041]),_0x598499=this[_0x5df846(0x246)][_0x5df846(0x272)](_0x17f098[_0x5df846(0x5df)],_0x17f098[_0x5df846(0x54e)],_0x17f098[_0x5df846(0x133)]);if(!_0x598499)return{'redos':[],'undos':[]};const _0x43d2e8=_0x598499['getShapeType'](),_0x5a700c=JSON[_0x5df846(0x4d4)](JSON['stringify'](_0x598499[_0x5df846(0x1ca)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x5df846(0x356)]['id'],'params':{'unitId':_0x1eb846,'subUnitId':_0x3e7865,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)]['REMOVE'],'op':_0x1d6e80['redo'],'objects':_0x1d6e80[_0x5df846(0x587)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x1eb846,'subUnitId':_0x3e7865,'shapeId':_0x17f098['drawingId']}},{'id':_univerjs_sheets_drawing[_0x5df846(0x356)]['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)][_0x5df846(0x42c)],'op':_0x466157[_0x5df846(0x574)],'objects':_0x466157['objects']}},{'id':_univerjs_pro_sheets_shape[_0x5df846(0x33a)]['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'shapeId':_0x17f098[_0x5df846(0x133)],'shapeType':_0x43d2e8,'shapeData':_0x5a700c}}],'undos':[{'id':_univerjs_sheets_drawing[_0x5df846(0x356)]['id'],'params':{'unitId':_0x1eb846,'subUnitId':_0x3e7865,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)][_0x5df846(0x42c)],'op':_0x1d6e80[_0x5df846(0x366)],'objects':_0x1d6e80[_0x5df846(0x587)]}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x1eb846,'subUnitId':_0x3e7865,'shapeId':_0x17f098[_0x5df846(0x133)],'shapeType':_0x43d2e8,'shapeData':_0x5a700c}},{'id':_univerjs_sheets_drawing[_0x5df846(0x356)]['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'type':_univerjs_sheets_drawing[_0x5df846(0x50a)]['REMOVE'],'op':_0x466157[_0x5df846(0x366)],'objects':_0x466157[_0x5df846(0x587)]}},{'id':_univerjs_pro_sheets_shape[_0x5df846(0x55b)]['id'],'params':{'unitId':_0x1a1bf4,'subUnitId':_0x57f4f8,'shapeId':_0x17f098['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x57327e){const _0x3af0d4=_0x3ce055,{toUnitId:_0x39d695,toSubUnitId:_0xb9a753,drawing:_0x19ade7,newTransforms:_0x14fecc,newDrawingId:_0xd60c7a,idMap:_0x319056}=_0x57327e,_0x42ef2a={..._0x19ade7,'unitId':_0x39d695,'subUnitId':_0xb9a753,'drawingId':_0xd60c7a,'transform':_0x14fecc[_0x3af0d4(0x152)],'sheetTransform':_0x14fecc[_0x3af0d4(0x371)]},{redo:_0x361f76,undo:_0x5456b9,objects:_0x4f08e6}=this[_0x3af0d4(0x370)][_0x3af0d4(0x4ad)]([_0x42ef2a]),_0x936cda=this[_0x3af0d4(0x246)][_0x3af0d4(0x272)](_0x19ade7[_0x3af0d4(0x5df)],_0x19ade7[_0x3af0d4(0x54e)],_0x19ade7['drawingId']);if(!_0x936cda)return{'redos':[],'undos':[]};const _0x158171=_0x936cda[_0x3af0d4(0x367)](),_0x506fd3=JSON[_0x3af0d4(0x4d4)](JSON['stringify'](_0x936cda['getShapeData']()));if(_0x506fd3[_0x3af0d4(0x5dc)]){var _0x573806,_0x2690d8;const _0x160374=(_0x573806=_0x506fd3[_0x3af0d4(0x5dc)][_0x3af0d4(0x3fd)])===null||_0x573806===void 0x0?void 0x0:_0x573806['shapeId'],_0x30f645=(_0x2690d8=_0x506fd3[_0x3af0d4(0x5dc)]['to'])===null||_0x2690d8===void 0x0?void 0x0:_0x2690d8[_0x3af0d4(0x469)],_0x2a74fb=_0x160374?_0x319056['has'](_0x160374):!![],_0x3189c9=_0x30f645?_0x319056[_0x3af0d4(0x10f)](_0x30f645):!![];if(_0x2a74fb&&_0x160374&&_0x506fd3[_0x3af0d4(0x5dc)][_0x3af0d4(0x3fd)])_0x506fd3['relation'][_0x3af0d4(0x3fd)]={..._0x506fd3[_0x3af0d4(0x5dc)]['from'],'shapeId':_0x319056[_0x3af0d4(0x570)](_0x160374)};else _0x506fd3[_0x3af0d4(0x5dc)][_0x3af0d4(0x3fd)]=void 0x0;if(_0x3189c9&&_0x30f645&&_0x506fd3[_0x3af0d4(0x5dc)]['to'])_0x506fd3['relation']['to']={..._0x506fd3[_0x3af0d4(0x5dc)]['to'],'shapeId':_0x319056['get'](_0x30f645)};else _0x506fd3[_0x3af0d4(0x5dc)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing[_0x3af0d4(0x356)]['id'],'params':{'unitId':_0x39d695,'subUnitId':_0xb9a753,'type':_univerjs_sheets_drawing[_0x3af0d4(0x50a)][_0x3af0d4(0x42c)],'op':_0x361f76,'objects':_0x4f08e6}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x39d695,'subUnitId':_0xb9a753,'shapeId':_0xd60c7a,'shapeType':_0x158171,'shapeData':_0x506fd3}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x39d695,'subUnitId':_0xb9a753,'type':_univerjs_sheets_drawing[_0x3af0d4(0x50a)][_0x3af0d4(0x386)],'op':_0x5456b9,'objects':_0x4f08e6}},{'id':_univerjs_pro_sheets_shape[_0x3af0d4(0x55b)]['id'],'params':{'unitId':_0x39d695,'subUnitId':_0xb9a753,'shapeId':_0xd60c7a}}]};}[_0x3ce055(0x330)](_0x1758c0,_0x2e6a0c,_0x28acbc,_0x2fb18b){const _0x3516e6=_0x3ce055;var _0x123197;const {range:_0x140ba5,skeleton:_0x1311c3}=_0x2e6a0c,{range:_0x3ee888,skeleton:_0x155bfb}=_0x28acbc,{transform:_0x4be685,sheetTransform:_0x136d05}=_0x1758c0,_0x53789e={..._0x4be685};if(_0x140ba5){const _0x1ac9bc=(0x0,_univerjs_sheets[_0x3516e6(0x4fd)])(_0x1311c3,_0x140ba5),_0x5cb6cb=(0x0,_univerjs_sheets[_0x3516e6(0x4fd)])(_0x155bfb,_0x3ee888);if(_0x1ac9bc&&_0x5cb6cb){var _0x4fc35e,_0x204d2;const _0x1659c9=_0x5cb6cb[_0x3516e6(0x2ab)]-_0x1ac9bc[_0x3516e6(0x2ab)],_0x2a1a=_0x5cb6cb[_0x3516e6(0x45a)]-_0x1ac9bc[_0x3516e6(0x45a)];_0x53789e['left']=((_0x4fc35e=_0x53789e[_0x3516e6(0x358)])!==null&&_0x4fc35e!==void 0x0?_0x4fc35e:0x0)+_0x1659c9,_0x53789e[_0x3516e6(0x169)]=((_0x204d2=_0x53789e[_0x3516e6(0x169)])!==null&&_0x204d2!==void 0x0?_0x204d2:0x0)+_0x2a1a;}}else{const _0x13dbe3=(0x0,_univerjs_sheets[_0x3516e6(0x4fd)])(_0x155bfb,_0x3ee888);if(_0x2fb18b&&_0x13dbe3){var _0x4525e3,_0x4db3b5;const _0x340224=((_0x4525e3=_0x53789e[_0x3516e6(0x358)])!==null&&_0x4525e3!==void 0x0?_0x4525e3:0x0)-_0x2fb18b['left'],_0x5f1a97=((_0x4db3b5=_0x53789e[_0x3516e6(0x169)])!==null&&_0x4db3b5!==void 0x0?_0x4db3b5:0x0)-_0x2fb18b[_0x3516e6(0x169)];_0x53789e['left']=_0x13dbe3[_0x3516e6(0x2ab)]+_0x340224,_0x53789e[_0x3516e6(0x169)]=_0x13dbe3[_0x3516e6(0x45a)]+_0x5f1a97;}else _0x53789e[_0x3516e6(0x358)]=_0x13dbe3===null||_0x13dbe3===void 0x0?void 0x0:_0x13dbe3[_0x3516e6(0x2ab)],_0x53789e[_0x3516e6(0x169)]=_0x13dbe3===null||_0x13dbe3===void 0x0?void 0x0:_0x13dbe3[_0x3516e6(0x45a)];}return{'transform':_0x53789e,'sheetTransform':(_0x123197=(0x0,_univerjs_sheets_drawing[_0x3516e6(0x3c4)])(_0x53789e,_0x155bfb))!==null&&_0x123197!==void 0x0?_0x123197:_0x136d05};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets[_0x3ce055(0x230)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets_ui[_0x3ce055(0x178)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets_drawing[_0x3ce055(0x63c)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets_drawing_ui[_0x3ce055(0x620)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x3ce055(0x4a5)]{constructor(_0x68bc6,_0x34e091){const _0x2ef327=_0x3ce055;super(_0x68bc6,_0x34e091),_defineProperty(this,_0x2ef327(0x556),null),_defineProperty(this,'_index',null),_defineProperty(this,_0x2ef327(0x2f5),null),_defineProperty(this,_0x2ef327(0x2bc),null),_defineProperty(this,_0x2ef327(0x5da),![]);if(_0x34e091)this[_0x2ef327(0x2dc)](_0x34e091);}[_0x3ce055(0x5ab)](){return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}['setShapeProps'](_0x1b02a9){const _0x1e4d6f=_0x3ce055;if(typeof _0x1b02a9[_0x1e4d6f(0x469)]!=='undefined')this['_shapeId']=_0x1b02a9[_0x1e4d6f(0x469)];if(typeof _0x1b02a9['unitId']!==_0x1e4d6f(0x23f))this[_0x1e4d6f(0x2f5)]=_0x1b02a9[_0x1e4d6f(0x5df)];if(typeof _0x1b02a9[_0x1e4d6f(0x54e)]!=='undefined')this[_0x1e4d6f(0x2bc)]=_0x1b02a9[_0x1e4d6f(0x54e)];if(typeof _0x1b02a9['isStartConnectorPoint']!=='undefined')this[_0x1e4d6f(0x5da)]=_0x1b02a9[_0x1e4d6f(0x5a2)];this[_0x1e4d6f(0x436)]({'width':_0x1b02a9[_0x1e4d6f(0x1f2)],'height':_0x1b02a9['height']});}['_draw'](_0x2de718){const _0x57a722=_0x3ce055;_univerjs_engine_render[_0x57a722(0x171)][_0x57a722(0x538)](_0x2de718,{'radius':_univerjs_pro_engine_shape[_0x57a722(0x2da)][_0x57a722(0x428)],'fill':_univerjs_pro_engine_shape[_0x57a722(0x2da)][_0x57a722(0x586)],'stroke':_univerjs_pro_engine_shape[_0x57a722(0x2da)][_0x57a722(0x10e)],'strokeWidth':_univerjs_pro_engine_shape[_0x57a722(0x2da)][_0x57a722(0x4c2)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x2f7c02,_0x525bb2,_0x13633a,_0x5b0956,_0x162fa5,_0x1f1cc4,_0x283321,_0x15a780){const _0x59b0c5=_0x3ce055;super(),this[_0x59b0c5(0x378)]=_0x2f7c02,this[_0x59b0c5(0x597)]=_0x525bb2,this['_renderManagerService']=_0x13633a,this[_0x59b0c5(0x591)]=_0x5b0956,this[_0x59b0c5(0x3c5)]=_0x162fa5,this['_sheetsShapeService']=_0x1f1cc4,this[_0x59b0c5(0x250)]=_0x283321,this[_0x59b0c5(0x2d4)]=_0x15a780,_defineProperty(this,_0x59b0c5(0x534),void 0x0),_defineProperty(this,_0x59b0c5(0x2f5),void 0x0),_defineProperty(this,_0x59b0c5(0x2bc),void 0x0),_defineProperty(this,_0x59b0c5(0x53f),[]),_defineProperty(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x59b0c5(0x11e),void 0x0),_defineProperty(this,_0x59b0c5(0x39a),![]),_defineProperty(this,_0x59b0c5(0x2e3),![]),_defineProperty(this,_0x59b0c5(0x305),![]),_defineProperty(this,_0x59b0c5(0x482),void 0x0),_defineProperty(this,_0x59b0c5(0x4b4),void 0x0),_defineProperty(this,_0x59b0c5(0x209),null),this['_initialize']();}[_0x3ce055(0x583)](){const _0x3a840e=_0x3ce055;this[_0x3a840e(0x641)](),this['_registerDrawingMoveHandler']();}[_0x3ce055(0x476)](){const _0x41db7e=_0x3ce055;if(!this['_unitId']||!this[_0x41db7e(0x2bc)]||!this[_0x41db7e(0x534)])return;const _0x5dc96c={'unitId':this[_0x41db7e(0x2f5)],'subUnitId':this[_0x41db7e(0x2bc)],'drawingId':this['_activeShapeId']},{transform:_0x29d7f5}=this[_0x41db7e(0x591)][_0x41db7e(0x382)](_0x5dc96c);if(!_0x29d7f5)return;return{'left':_0x29d7f5[_0x41db7e(0x358)]||0x0,'top':_0x29d7f5['top']||0x0,'width':_0x29d7f5[_0x41db7e(0x1f2)]||0x0,'height':_0x29d7f5[_0x41db7e(0x622)]||0x0,'flipX':_0x29d7f5[_0x41db7e(0x3f3)]||![],'flipY':_0x29d7f5[_0x41db7e(0x282)]||![],'angle':_0x29d7f5[_0x41db7e(0x163)]};}[_0x3ce055(0x34c)](){const _0x298bb8=_0x3ce055;if(this[_0x298bb8(0x2f5)]===void 0x0||this[_0x298bb8(0x2bc)]===void 0x0||this[_0x298bb8(0x534)]===void 0x0)return;const _0x35177d=this['_renderManagerService'][_0x298bb8(0x155)](this['_unitId']);if(!_0x35177d)return;if(!_0x35177d[_0x298bb8(0x512)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x298bb8(0x615)]())return;const {scene:_0x1f1ec9}=_0x35177d,_0x8801af=this[_0x298bb8(0x476)]();if(!_0x8801af)return;const _0x29917b=this[_0x298bb8(0x61c)]['getShapeModel'](this[_0x298bb8(0x2f5)],this['_subUnitId'],this[_0x298bb8(0x534)]);if(!_0x29917b)return;if(!(0x0,_univerjs_pro_engine_shape[_0x298bb8(0x618)])(_0x29917b[_0x298bb8(0x367)]()))return;const _0x4e2f6e=_0x29917b[_0x298bb8(0x199)]();if(_0x4e2f6e['length']<0x2)return;const _0x52ab3f=new _univerjs_pro_engine_shape[(_0x298bb8(0x1e9))](_0x8801af),_0xbf810a=_0x4e2f6e[0x0],_0x323c73=_0x4e2f6e[_0x4e2f6e[_0x298bb8(0x49c)]-0x1],_0x3278e9=_0x52ab3f['localToWorld'](_0xbf810a),_0x4b37f2=_0x52ab3f[_0x298bb8(0x3a7)](_0x323c73);this[_0x298bb8(0x1f8)](_0x1f1ec9,{..._0x3278e9},!![]),this[_0x298bb8(0x1f8)](_0x1f1ec9,{..._0x4b37f2},![]);}['_addShapeConnectorHandlerObject'](_0xb1a7a8,_0x3b6999,_0x31273f){const _0x353469=_0x3ce055;if(this['_activeShapeId']===void 0x0||this[_0x353469(0x2f5)]===void 0x0||this[_0x353469(0x2bc)]===void 0x0)return;const _0x3785d8=_0x353469(0x1ba)+this[_0x353469(0x2f5)]+'-'+this[_0x353469(0x2bc)]+'-'+this['_activeShapeId']+'-'+(_0x31273f?_0x353469(0x543):_0x353469(0x53c)),_0x466d5e=_0xb1a7a8['getObjectIncludeInGroup'](_0x3785d8);if(_0x466d5e){_0x466d5e['transformByState']({'left':_0x3b6999['x']-_univerjs_pro_engine_shape[_0x353469(0x2da)][_0x353469(0x428)],'top':_0x3b6999['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x353469(0x428)]});return;}const _0x2af942=new SheetShapeConnectorHandlerObject(_0x3785d8,{'left':_0x3b6999['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x353469(0x428)],'top':_0x3b6999['y']-_univerjs_pro_engine_shape[_0x353469(0x2da)][_0x353469(0x428)],'shapeId':this['_activeShapeId'],'unitId':this[_0x353469(0x2f5)],'subUnitId':this[_0x353469(0x2bc)],'isStartConnectorPoint':_0x31273f,'width':_univerjs_pro_engine_shape[_0x353469(0x2da)][_0x353469(0x428)]*0x2,'height':_univerjs_pro_engine_shape[_0x353469(0x2da)]['cxnPointRadius']*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x353469(0x53f)]['push'](_0x2af942),this['_attachConnectorObjectEvent'](_0x2af942,_0xb1a7a8,_0x31273f),_0xb1a7a8[_0x353469(0x486)](_0x2af942,_univerjs_engine_render[_0x353469(0x15f)]+0x1);}[_0x3ce055(0x5b0)](_0x11d345,_0x364087){const _0x1c1721=_0x3ce055;var _0x3b3198;const _0x8ea28a={'x':0x0,'y':0x0};if(!_0x11d345||!_0x364087)return _0x8ea28a;const _0x1d1234=this['_renderManagerService']['getRenderById'](_0x11d345);if(!_0x1d1234)return _0x8ea28a;if(!_0x1d1234[_0x1c1721(0x512)](_univerjs_sheets_ui[_0x1c1721(0x30b)])[_0x1c1721(0x22a)](_0x364087))return _0x8ea28a;const _0x4fb907=_0x1d1234[_0x1c1721(0x512)](_univerjs_sheets_ui[_0x1c1721(0x139)]),_0x7036ed=_0x4fb907===null||_0x4fb907===void 0x0?void 0x0:_0x4fb907[_0x1c1721(0x4a4)]();if(!_0x7036ed)return _0x8ea28a;const _0x4a495f=(_0x3b3198=this['_univerInstanceService'][_0x1c1721(0x3cc)](_0x11d345))===null||_0x3b3198===void 0x0?void 0x0:_0x3b3198[_0x1c1721(0x14f)](_0x364087);if(!_0x4a495f)return _0x8ea28a;const _0x29c101=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x7036ed['sheetViewStartRow'],_0x7036ed[_0x1c1721(0x170)],_0x1d1234[_0x1c1721(0x1bc)],_0x4a495f);if(!_0x29c101)return _0x8ea28a;return{'x':_0x29c101[_0x1c1721(0x361)],'y':_0x29c101['viewportScrollY']};}[_0x3ce055(0x281)](_0x3357c3,_0x5019f4){const _0xafdc07=_0x3ce055;var _0x24a90a,_0xcbcfb3;const _0x3d2c57=(_0x24a90a=this[_0xafdc07(0x3c5)][_0xafdc07(0x3cc)](_0x3357c3))===null||_0x24a90a===void 0x0?void 0x0:_0x24a90a[_0xafdc07(0x14f)](_0x5019f4);return(_0xcbcfb3=_0x3d2c57===null||_0x3d2c57===void 0x0?void 0x0:_0x3d2c57['getZoomRatio']())!==null&&_0xcbcfb3!==void 0x0?_0xcbcfb3:0x1;}[_0x3ce055(0x5c1)](_0xf99de2,_0x224216,_0x19b28e,_0x59b5fd,_0x476b2d){const _0x574c9d=_0x3ce055;this[_0x574c9d(0x482)][_0x574c9d(0x1c0)](),this[_0x574c9d(0x4b4)]['unsubscribe'](),this[_0x574c9d(0x250)][_0x574c9d(0x3a0)]();const _0x3e8c46=this['_currentConnectionTarget'];this[_0x574c9d(0x2d4)][_0x574c9d(0x522)]();const _0xb7c6ee=this[_0x574c9d(0x5b0)](this[_0x574c9d(0x2f5)],this[_0x574c9d(0x2bc)]),_0x3e9565=this['_getZoomRatio'](this[_0x574c9d(0x2f5)],this[_0x574c9d(0x2bc)]),_0x42aea2={'x':_0x19b28e[_0x574c9d(0x412)]/_0x3e9565+_0xb7c6ee['x'],'y':_0x19b28e['offsetY']/_0x3e9565+_0xb7c6ee['y']},_0x44503a=_0x3e8c46?_0x3e8c46[_0x574c9d(0x31c)]:_0x42aea2,_0x4743f4=_0x59b5fd?this[_0x574c9d(0x11e)][_0x574c9d(0x385)]():this[_0x574c9d(0x11e)]['getStartConnectInfo'](),_0x23a4dd=this[_0x574c9d(0x11e)][_0x574c9d(0x367)]();if(!_0x4743f4)this[_0x574c9d(0x3b8)](_0x224216,_0x44503a,_0x59b5fd,_0x3e8c46,_0x476b2d,_0x23a4dd);else this[_0x574c9d(0x54c)](_0x4743f4,_0x44503a,_0x59b5fd,_0x3e8c46,_0x476b2d);this['_isConnecting']=![],this[_0x574c9d(0x305)]=![],this['_currentConnectionTarget']=null,_0xf99de2[_0x574c9d(0x2cc)]();}[_0x3ce055(0x3b8)](_0x3dc0c3,_0xf146e5,_0x2862b0,_0x3a39ed,_0x466c58,_0x1ef4df){const _0x5a413f=_0x3ce055,_0x123d6c=_0x1ef4df===_univerjs_pro_engine_shape[_0x5a413f(0x2c4)][_0x5a413f(0x443)]||_0x1ef4df===_univerjs_pro_engine_shape[_0x5a413f(0x2c4)][_0x5a413f(0x220)],_0x34fbe2=_0x2862b0?_0xf146e5:_0x3dc0c3,_0x47dd5c=_0x2862b0?_0x3dc0c3:_0xf146e5,_0x56f0bb=this[_0x5a413f(0x11e)][_0x5a413f(0x199)](),_0x5855ba=(0x0,_univerjs_pro_engine_shape[_0x5a413f(0x342)])(this[_0x5a413f(0x11e)][_0x5a413f(0x367)]()),_0x20df65=_univerjs_pro_engine_shape[_0x5a413f(0x1e9)]['getBentTypeFromPoints'](_0x56f0bb,_0x5855ba),_0x85e4e1=_0x123d6c?_univerjs_pro_engine_shape[_0x5a413f(0x1e9)][_0x5a413f(0x117)](_0x34fbe2,_0x47dd5c):_univerjs_pro_engine_shape[_0x5a413f(0x1e9)][_0x5a413f(0x3ca)](_0x3dc0c3,_0xf146e5,_0x2862b0,_0x20df65);if(_0x3a39ed)this[_0x5a413f(0x3de)](_0x85e4e1,_0x3a39ed,_0x2862b0,_0x466c58);else this['_executeResizeCommand'](_0x85e4e1,_0x466c58);}[_0x3ce055(0x54c)](_0x12eff6,_0x2f666d,_0x3309b2,_0x1d5f05,_0x1d2024){const _0x53cc05=_0x3ce055,_0x80f0b6=this[_0x53cc05(0x34d)](_0x12eff6);if(!_0x80f0b6)return;const _0x24dcee=_0x1d5f05?_0x1d5f05['angle']:this[_0x53cc05(0x5b7)](_0x80f0b6[_0x53cc05(0x49d)],_0x2f666d);let _0x449144;if(_0x1d5f05){const _0x12e3c0=this[_0x53cc05(0x591)][_0x53cc05(0x382)]({'unitId':_0x1d5f05[_0x53cc05(0x5df)],'subUnitId':_0x1d5f05[_0x53cc05(0x54e)],'drawingId':_0x1d5f05[_0x53cc05(0x469)]});if(_0x12e3c0===null||_0x12e3c0===void 0x0?void 0x0:_0x12e3c0['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x333329}=_0x12e3c0[_0x53cc05(0x152)];_0x449144=(0x0,_univerjs_pro_engine_shape[_0x53cc05(0x42b)])({'left':left,'top':top,'width':width,'height':height},_0x333329||0x0);}else _0x449144={'left':_0x2f666d['x'],'top':_0x2f666d['y'],'width':0x0,'height':0x0};}else _0x449144={'left':_0x2f666d['x'],'top':_0x2f666d['y'],'width':0x0,'height':0x0};const _0x303911={'point':_0x2f666d,'angle':_0x24dcee,'bounds':_0x449144},_0x49b649=_0x3309b2?_0x303911:_0x80f0b6,_0x4ab10f=_0x3309b2?_0x80f0b6:_0x303911,_0x509809=this[_0x53cc05(0x11e)][_0x53cc05(0x367)](),_0x7f8e48=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x49b649,_0x4ab10f,_0x509809);this[_0x53cc05(0x11e)][_0x53cc05(0x65a)]();const _0x3d4a57=(0x0,_univerjs_pro_engine_shape[_0x53cc05(0x423)])(_0x7f8e48,_0x509809);if(_0x1d5f05)this[_0x53cc05(0x663)](_0x3d4a57,_0x1d5f05,_0x12eff6,_0x3309b2,_0x1d2024);else this['_executeConnectedRouteResizeCommand'](_0x3d4a57,_0x12eff6,_0x3309b2,_0x1d2024);}[_0x3ce055(0x3de)](_0x412d9,_0x3415a3,_0x3c0454,_0x43a729){const _0x29a22f=_0x3ce055,_0x4155d4=this[_0x29a22f(0x11e)][_0x29a22f(0x1ca)]()[_0x29a22f(0x5dc)],_0x52c6e7={..._0x4155d4},_0xd04f5={'shapeId':_0x3415a3[_0x29a22f(0x469)],'cxnIndex':_0x3415a3[_0x29a22f(0x2e6)]};if(_0x3c0454)_0x52c6e7[_0x29a22f(0x3fd)]=_0xd04f5;else _0x52c6e7['to']=_0xd04f5;const _0x7526f2=this['_activeShapeModel'][_0x29a22f(0x367)](),_0x4c6abd=(0x0,_univerjs_pro_engine_shape[_0x29a22f(0x423)])(_0x412d9[_0x29a22f(0x1d7)],_0x7526f2),_0x34bb0f={'unitId':this[_0x29a22f(0x2f5)],'subUnitId':this[_0x29a22f(0x2bc)],'connectorShapeId':this[_0x29a22f(0x534)],'width':_0x412d9[_0x29a22f(0x247)]['width'],'height':_0x412d9[_0x29a22f(0x247)]['height'],'left':_0x412d9[_0x29a22f(0x247)]['left'],'top':_0x412d9[_0x29a22f(0x247)][_0x29a22f(0x169)],'flipX':_0x412d9[_0x29a22f(0x247)][_0x29a22f(0x3f3)]||![],'flipY':_0x412d9[_0x29a22f(0x247)][_0x29a22f(0x282)]||![],'newAdjustValues':_0x4c6abd['adjustValues'],'oldAdjustValues':_0x43a729,'oldRelation':_0x4155d4,'newRelation':_0x52c6e7,'newLineType':_0x4c6abd['lineType'],'oldLineType':_0x7526f2};this[_0x29a22f(0x597)][_0x29a22f(0x405)](_univerjs_pro_sheets_shape[_0x29a22f(0x127)]['id'],_0x34bb0f);}[_0x3ce055(0x4eb)](_0x20f7a5,_0x4f6692){const _0x20db0c=_0x3ce055,_0x21292f=this[_0x20db0c(0x11e)][_0x20db0c(0x367)](),_0x942001=(0x0,_univerjs_pro_engine_shape[_0x20db0c(0x423)])(_0x20f7a5[_0x20db0c(0x1d7)],_0x21292f),_0x38dff5={'unitId':this['_unitId'],'subUnitId':this[_0x20db0c(0x2bc)],'shapeId':this[_0x20db0c(0x534)],'width':_0x20f7a5[_0x20db0c(0x247)][_0x20db0c(0x1f2)],'height':_0x20f7a5['worldRect'][_0x20db0c(0x622)],'left':_0x20f7a5['worldRect'][_0x20db0c(0x358)],'top':_0x20f7a5['worldRect'][_0x20db0c(0x169)],'flipX':_0x20f7a5[_0x20db0c(0x247)][_0x20db0c(0x3f3)]||![],'flipY':_0x20f7a5[_0x20db0c(0x247)][_0x20db0c(0x282)]||![],'angle':_0x20f7a5['worldRect'][_0x20db0c(0x163)]||0x0,'newAdjustValues':_0x942001[_0x20db0c(0x22f)],'oldAdjustValues':_0x4f6692,'newLineType':_0x942001[_0x20db0c(0x5d0)],'oldLineType':_0x21292f};this[_0x20db0c(0x597)][_0x20db0c(0x405)](_univerjs_pro_sheets_shape['UpdateLineShapeResizeCommand']['id'],_0x38dff5);}[_0x3ce055(0x663)](_0x10dcc9,_0x1fa93b,_0x2b812d,_0x447690,_0x5a060f){const _0x5c94f7=_0x3ce055,_0x272b93=this[_0x5c94f7(0x11e)][_0x5c94f7(0x1ca)]()[_0x5c94f7(0x5dc)],_0x2b2b20={..._0x272b93},_0x568cf9={'shapeId':_0x1fa93b[_0x5c94f7(0x469)],'cxnIndex':_0x1fa93b[_0x5c94f7(0x2e6)]};_0x447690?(_0x2b2b20['from']=_0x568cf9,_0x2b2b20['to']=_0x2b812d):(_0x2b2b20[_0x5c94f7(0x3fd)]=_0x2b812d,_0x2b2b20['to']=_0x568cf9);const _0x95e71e={'unitId':this[_0x5c94f7(0x2f5)],'subUnitId':this[_0x5c94f7(0x2bc)],'connectorShapeId':this[_0x5c94f7(0x534)],'width':_0x10dcc9[_0x5c94f7(0x247)][_0x5c94f7(0x1f2)],'height':_0x10dcc9[_0x5c94f7(0x247)][_0x5c94f7(0x622)],'left':_0x10dcc9[_0x5c94f7(0x247)][_0x5c94f7(0x358)],'top':_0x10dcc9[_0x5c94f7(0x247)][_0x5c94f7(0x169)],'flipX':_0x10dcc9['worldRect']['flipX']||![],'flipY':_0x10dcc9[_0x5c94f7(0x247)]['flipY']||![],'oldAdjustValues':_0x5a060f,'newAdjustValues':_0x10dcc9['adjustValues'],'newLineType':_0x10dcc9[_0x5c94f7(0x5d0)],'rotation':_0x10dcc9[_0x5c94f7(0x4b2)],'oldRelation':_0x272b93,'newRelation':_0x2b2b20};this[_0x5c94f7(0x597)]['executeCommand'](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x95e71e);}[_0x3ce055(0x30c)](_0x32ade5,_0x5827cd,_0x522e8b,_0x989d20){const _0x57d591=_0x3ce055,_0x579acf=this[_0x57d591(0x11e)][_0x57d591(0x1ca)]()[_0x57d591(0x5dc)],_0x19e0c1={};_0x522e8b?(_0x19e0c1['to']=_0x5827cd,_0x19e0c1['from']=void 0x0):(_0x19e0c1[_0x57d591(0x3fd)]=_0x5827cd,_0x19e0c1['to']=void 0x0);const _0x244a5d={'unitId':this[_0x57d591(0x2f5)],'subUnitId':this[_0x57d591(0x2bc)],'connectorShapeId':this[_0x57d591(0x534)],'width':_0x32ade5['worldRect']['width'],'height':_0x32ade5['worldRect'][_0x57d591(0x622)],'left':_0x32ade5['worldRect']['left'],'top':_0x32ade5[_0x57d591(0x247)]['top'],'flipX':_0x32ade5[_0x57d591(0x247)]['flipX']||![],'flipY':_0x32ade5[_0x57d591(0x247)][_0x57d591(0x282)]||![],'oldAdjustValues':_0x989d20,'newAdjustValues':_0x32ade5['adjustValues'],'newLineType':_0x32ade5['lineType'],'rotation':_0x32ade5[_0x57d591(0x4b2)],'oldRelation':_0x579acf,'newRelation':_0x19e0c1};this[_0x57d591(0x597)]['executeCommand'](_univerjs_pro_sheets_shape[_0x57d591(0x127)]['id'],_0x244a5d);}[_0x3ce055(0x24e)](_0x3b5a51,_0x157d7d,_0x553d17){const _0x57dd97=_0x3ce055;this['disposeWithMe']((0x0,_univerjs_core[_0x57dd97(0x10a)])(_0x3b5a51['onPointerDown$'][_0x57dd97(0x5c9)]((_0x4fd588,_0x2d3334)=>{const _0x3fc713=_0x57dd97,_0x40e3ac=_0x3b5a51['getDrawingSearch']();this[_0x3fc713(0x11e)]=this['_sheetsShapeService']['getShapeModel'](_0x40e3ac[_0x3fc713(0x5df)],_0x40e3ac[_0x3fc713(0x54e)],_0x40e3ac['drawingId']);if(!this['_activeShapeModel'])return;const _0x978e3b={};this[_0x3fc713(0x11e)][_0x3fc713(0x262)]()[_0x3fc713(0x36b)](_0x2ffdc7=>{const _0x56ab97=_0x3fc713,_0x4101e2=this[_0x56ab97(0x11e)][_0x56ab97(0x175)](_0x2ffdc7);if(_0x4101e2!==void 0x0)_0x978e3b[_0x2ffdc7]=_0x4101e2;});const _0x348972=this[_0x3fc713(0x476)]();if(!_0x348972)return;this[_0x3fc713(0x621)]={..._0x348972};const _0xbc2565=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x3fc713(0x621)]),_0x45b25f=(0x0,_univerjs_drawing[_0x3fc713(0x582)])({'unitId':this['_unitId'],'subUnitId':this[_0x3fc713(0x2bc)],'drawingId':this[_0x3fc713(0x534)]}),_0x19cf25=_0x157d7d[_0x3fc713(0x41b)](_0x45b25f);this[_0x3fc713(0x39a)]=!![],_0x157d7d[_0x3fc713(0x5dd)](),this[_0x3fc713(0x2d4)]['startConnectionDetection'](_0x157d7d,this['_unitId'],this[_0x3fc713(0x2bc)],this[_0x3fc713(0x534)]),this['_currentConnectionTarget']=null;const _0x53d9e0=this[_0x3fc713(0x11e)][_0x3fc713(0x199)](),_0xa99554=_0x53d9e0[0x0],_0x5a43a6=_0x53d9e0[_0x53d9e0['length']-0x1],_0x466b0f=_0x553d17?_0xbc2565[_0x3fc713(0x3a7)](_0x5a43a6):_0xbc2565[_0x3fc713(0x3a7)](_0xa99554);this[_0x3fc713(0x482)]=_0x157d7d[_0x3fc713(0x635)][_0x3fc713(0x5c9)]((_0x388fe0,_0xedb7a8)=>{const _0x50e33a=_0x3fc713;if(!this['_isConnecting']||!this[_0x50e33a(0x11e)])return;!this['_hasReset']&&(this['_sheetShapeAdjustController'][_0x50e33a(0x64a)](),this['_activeShapeModel'][_0x50e33a(0x2db)](),this[_0x50e33a(0x305)]=!![]);const _0x448eaf=this[_0x50e33a(0x5b0)](this['_unitId'],this['_subUnitId']),_0x21b11b=this[_0x50e33a(0x281)](this['_unitId'],this[_0x50e33a(0x2bc)]),_0x355c3e={'x':_0x388fe0[_0x50e33a(0x412)]/_0x21b11b+_0x448eaf['x'],'y':_0x388fe0[_0x50e33a(0x323)]/_0x21b11b+_0x448eaf['y']},_0x27b196=this[_0x50e33a(0x2d4)]['updateConnectionDetection'](_0x355c3e);if(_0x27b196){const {shapeId:_0x496a87,unitId:_0x2e00a1,subUnitId:_0x8d572a}=_0x27b196;if(_0x496a87&&_0x2e00a1&&_0x8d572a){const _0x3db959=(0x0,_univerjs_drawing[_0x50e33a(0x582)])({'unitId':_0x2e00a1,'subUnitId':_0x8d572a,'drawingId':_0x496a87});_0x27b196['angle']=(_0x157d7d['getObjectIncludeInGroup'](_0x3db959)[_0x50e33a(0x163)]||0x0)+_0x27b196[_0x50e33a(0x163)];}}this[_0x50e33a(0x209)]=_0x27b196;const _0x52110d=_0x553d17?this[_0x50e33a(0x11e)][_0x50e33a(0x385)]():this[_0x50e33a(0x11e)]['getStartConnectInfo']();if(_0x52110d){this[_0x50e33a(0x65f)](_0x52110d,_0x355c3e,_0x553d17,_0x19cf25,_0x3b5a51);return;}this[_0x50e33a(0x1a2)](_0x355c3e,_0x466b0f,_0x553d17,_0x19cf25,_0x3b5a51);}),this[_0x3fc713(0x4b4)]=_0x157d7d[_0x3fc713(0x2f7)]['subscribeEvent']((_0x333289,_0x149430)=>{const _0x78bf60=_0x3fc713;this[_0x78bf60(0x5c1)](_0x157d7d,_0x466b0f,_0x333289,_0x553d17,_0x978e3b);}),_0x2d3334[_0x3fc713(0x383)]();})));}[_0x3ce055(0x18e)](_0x5531b8,_0x52784b,_0x59e23e){const _0x2361bf=_0x3ce055,_0x11b527=this[_0x2361bf(0x61c)]['getBasicShapeRelation'](_0x5531b8,_0x52784b,_0x59e23e);if(!_0x11b527||_0x11b527['length']===0x0)return;const _0x42fb80=this[_0x2361bf(0x637)][_0x2361bf(0x155)](_0x5531b8);if(!_0x42fb80)return;const {scene:_0x3beb6b}=_0x42fb80;for(const _0x2d21c4 of _0x11b527){const _0x31c0c5=_0x2d21c4[_0x2361bf(0x3c7)],_0x2988ec=this[_0x2361bf(0x61c)][_0x2361bf(0x272)](_0x5531b8,_0x52784b,_0x31c0c5);if(!_0x2988ec)continue;const _0x5baf1a=_0x2988ec['getStartConnectInfo'](),_0x2fcd51=_0x2988ec[_0x2361bf(0x385)](),_0x3dfd9e=(_0x5baf1a===null||_0x5baf1a===void 0x0?void 0x0:_0x5baf1a[_0x2361bf(0x469)])===_0x59e23e,_0x56efca=(0x0,_univerjs_drawing[_0x2361bf(0x582)])({'unitId':_0x5531b8,'subUnitId':_0x52784b,'drawingId':_0x31c0c5}),_0x9d962a=_0x3beb6b[_0x2361bf(0x41b)](_0x56efca);if(!_0x9d962a)continue;const _0x7c3791=this[_0x2361bf(0x591)][_0x2361bf(0x382)]({'unitId':_0x5531b8,'subUnitId':_0x52784b,'drawingId':_0x31c0c5});if(!(_0x7c3791===null||_0x7c3791===void 0x0?void 0x0:_0x7c3791[_0x2361bf(0x152)]))continue;if(_0x5baf1a&&_0x2fcd51)this[_0x2361bf(0x119)](_0x5531b8,_0x52784b,_0x31c0c5,_0x2988ec,_0x5baf1a,_0x2fcd51,_0x9d962a);else this[_0x2361bf(0x61a)](_0x5531b8,_0x52784b,_0x31c0c5,_0x2988ec,_0x3dfd9e?_0x5baf1a:_0x2fcd51,_0x3dfd9e,_0x7c3791,_0x9d962a);}}[_0x3ce055(0x119)](_0x2d6047,_0x3e337e,_0x2fa5d0,_0x2a508e,_0x2a3bbf,_0x4e2398,_0x43ab99){const _0x5953ef=_0x3ce055,_0x1f473a=this[_0x5953ef(0x2f5)],_0x358c2a=this['_subUnitId'];this[_0x5953ef(0x2f5)]=_0x2d6047,this[_0x5953ef(0x2bc)]=_0x3e337e;const _0xd65429=this['_getConnectPointInfo'](_0x2a3bbf),_0x53d9ef=this[_0x5953ef(0x34d)](_0x4e2398);this[_0x5953ef(0x2f5)]=_0x1f473a,this[_0x5953ef(0x2bc)]=_0x358c2a;if(!_0xd65429||!_0x53d9ef)return;const _0x5a2b08=_0x2a508e[_0x5953ef(0x367)](),_0xa3c0d0=(0x0,_univerjs_pro_engine_shape[_0x5953ef(0x49e)])(_0xd65429,_0x53d9ef,_0x5a2b08);if(_0xa3c0d0)_0x2a508e['updateLinePoints'](_0xa3c0d0);const _0x3b720e=(0x0,_univerjs_pro_engine_shape[_0x5953ef(0x423)])(_0xa3c0d0,_0x5a2b08);if(_0x3b720e[_0x5953ef(0x5d0)]!==_0x5a2b08)_0x2a508e[_0x5953ef(0x449)](_0x3b720e[_0x5953ef(0x5d0)]);_0x2a508e[_0x5953ef(0x2db)]();for(const [_0x52954d,_0x392b0d]of Object['entries'](_0x3b720e[_0x5953ef(0x22f)]))_0x2a508e[_0x5953ef(0x324)](_0x52954d,_0x392b0d);_0x2a508e[_0x5953ef(0x368)]({'width':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x1f2)],'height':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x622)]}),_0x43ab99[_0x5953ef(0x436)]({'flipX':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x3f3)],'flipY':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x282)],'left':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x358)],'top':_0x3b720e[_0x5953ef(0x247)][_0x5953ef(0x169)],'width':_0x3b720e[_0x5953ef(0x247)]['width'],'height':_0x3b720e['worldRect'][_0x5953ef(0x622)],'angle':_0x3b720e[_0x5953ef(0x4b2)]}),_0x2a508e[_0x5953ef(0x65a)]();}[_0x3ce055(0x61a)](_0x285be6,_0x3b9a0e,_0x91ee2e,_0x16a278,_0x254c3d,_0x239b1e,_0x256288,_0x338087){const _0x1fdec0=_0x3ce055,_0x2b8715=this[_0x1fdec0(0x2f5)],_0x52f630=this[_0x1fdec0(0x2bc)];this[_0x1fdec0(0x2f5)]=_0x285be6,this[_0x1fdec0(0x2bc)]=_0x3b9a0e;const _0xe9585a=this['_getConnectPointInfo'](_0x254c3d);this[_0x1fdec0(0x2f5)]=_0x2b8715,this[_0x1fdec0(0x2bc)]=_0x52f630;if(!_0xe9585a)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x256288[_0x1fdec0(0x152)],_0xb17715=_0x16a278[_0x1fdec0(0x199)]();if(_0xb17715[_0x1fdec0(0x49c)]<0x2)return;const _0x48bf59=new _univerjs_pro_engine_shape[(_0x1fdec0(0x1e9))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x478819=_0x239b1e?_0xb17715[_0xb17715[_0x1fdec0(0x49c)]-0x1]:_0xb17715[0x0],_0x4d8bf0=_0x48bf59['localToWorld'](_0x478819),_0x362189=_univerjs_pro_engine_shape[_0x1fdec0(0x1e9)][_0x1fdec0(0x3ca)](_0x4d8bf0,_0xe9585a[_0x1fdec0(0x49d)],!_0x239b1e);_0x338087[_0x1fdec0(0x436)]({'flipX':_0x362189[_0x1fdec0(0x247)][_0x1fdec0(0x3f3)],'flipY':_0x362189[_0x1fdec0(0x247)][_0x1fdec0(0x282)],'left':_0x362189['worldRect'][_0x1fdec0(0x358)],'top':_0x362189[_0x1fdec0(0x247)][_0x1fdec0(0x169)],'width':_0x362189[_0x1fdec0(0x247)]['width'],'height':_0x362189[_0x1fdec0(0x247)]['height'],'angle':_0x362189[_0x1fdec0(0x247)][_0x1fdec0(0x163)]}),_0x338087[_0x1fdec0(0x3ee)](!![]);}['_clearShapeConnectorHandlerObjects'](){const _0x55eba5=_0x3ce055;if(this[_0x55eba5(0x53f)]['length']===0x0)return;this[_0x55eba5(0x53f)][_0x55eba5(0x36b)](_0x4ab465=>{const _0x1d2d8e=_0x55eba5;_0x4ab465[_0x1d2d8e(0x467)]();}),this['_connectorObjects']=[];}[_0x3ce055(0x59c)](){const _0x12dd16=_0x3ce055,_0x582b7f=this['_univerInstanceService'][_0x12dd16(0x20a)](_univerjs_core[_0x12dd16(0x34b)][_0x12dd16(0x1db)]);this['disposeWithMe'](_0x582b7f['pipe']((0x0,rxjs[_0x12dd16(0x2a1)])(_0x3cbf21=>{const _0x473225=_0x12dd16;if(!_0x3cbf21)return rxjs['EMPTY'];return _0x3cbf21[_0x473225(0x50f)]['pipe']((0x0,rxjs['switchMap'])(_0x491823=>{const _0x436ef8=_0x473225;if(!_0x491823)return rxjs['EMPTY'];const _0x44b242=_0x3cbf21['getUnitId'](),_0x5e874b=this[_0x436ef8(0x637)][_0x436ef8(0x155)](_0x44b242),_0x32ca15=_0x5e874b===null||_0x5e874b===void 0x0?void 0x0:_0x5e874b[_0x436ef8(0x1bc)];if(!_0x32ca15)return rxjs[_0x436ef8(0x16c)];return(0x0,rxjs['of'])(_0x32ca15);}));}))[_0x12dd16(0x4c3)](_0x56a4e4=>{const _0x56c5fa=_0x12dd16,_0x1c296a=_0x56a4e4['getTransformerByCreate']();this[_0x56c5fa(0x193)](_0x56a4e4[_0x56c5fa(0x635)][_0x56c5fa(0x5c9)](_0x12a9b0=>{const _0x3865e4=_0x56c5fa;if(this['_isDrawingShapePointDown']&&this[_0x3865e4(0x534)])this[_0x3865e4(0x21f)]();})),this[_0x56c5fa(0x193)](_0x1c296a[_0x56c5fa(0x191)]['subscribe'](_0xa08b03=>{const _0x22ce8c=_0x56c5fa,{objects:_0x1739fe}=_0xa08b03;this[_0x22ce8c(0x21f)]();if(_0x1739fe!==null&&_0x1739fe[_0x22ce8c(0x3da)]===0x1){if(_0x1739fe[_0x22ce8c(0x3b2)]()['next']()[_0x22ce8c(0x357)]instanceof DrawingShape)this[_0x22ce8c(0x2e3)]=!![];}})),this[_0x56c5fa(0x193)](_0x1c296a[_0x56c5fa(0x44c)][_0x56c5fa(0x4c3)](_0x2beed0=>{const _0x2557a8=_0x56c5fa;if(this[_0x2557a8(0x2e3)])this[_0x2557a8(0x21f)]();})),this[_0x56c5fa(0x193)](_0x56a4e4[_0x56c5fa(0x2f7)][_0x56c5fa(0x5c9)](()=>{const _0x5f0aae=_0x56c5fa;this[_0x5f0aae(0x2e3)]&&(this[_0x5f0aae(0x2e3)]=![],this['_addShapeConnectorHandlerObjects']());})),this[_0x56c5fa(0x193)](_0x1c296a[_0x56c5fa(0x410)][_0x56c5fa(0x4c3)](()=>{const _0x409950=_0x56c5fa;this[_0x409950(0x2f5)]&&this[_0x409950(0x2bc)]&&this[_0x409950(0x534)]&&(this[_0x409950(0x591)][_0x409950(0x382)]({'unitId':this[_0x409950(0x2f5)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x409950(0x534)]})&&(this[_0x409950(0x21f)](),this[_0x409950(0x34c)]()));}));}));}[_0x3ce055(0x641)](){const _0x2d76f6=_0x3ce055;this[_0x2d76f6(0x193)](this[_0x2d76f6(0x591)][_0x2d76f6(0x364)][_0x2d76f6(0x4c3)](_0x145964=>{const _0x551d71=_0x2d76f6;if(_0x145964[_0x551d71(0x49c)]===0x1){const _0x5ad8ea=_0x145964[0x0];if(_0x5ad8ea['drawingType']===_univerjs_core[_0x551d71(0x5bc)][_0x551d71(0x253)]){const _0x59ab9b=this[_0x551d71(0x61c)][_0x551d71(0x272)](_0x5ad8ea[_0x551d71(0x5df)],_0x5ad8ea[_0x551d71(0x54e)],_0x5ad8ea[_0x551d71(0x133)]);if(_0x59ab9b&&(0x0,_univerjs_pro_engine_shape[_0x551d71(0x618)])(_0x59ab9b[_0x551d71(0x367)]())){this[_0x551d71(0x534)]=_0x5ad8ea['drawingId'],this[_0x551d71(0x2f5)]=_0x5ad8ea[_0x551d71(0x5df)],this[_0x551d71(0x2bc)]=_0x5ad8ea['subUnitId'],this[_0x551d71(0x21f)](),this[_0x551d71(0x34c)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x551d71(0x2f5)]=void 0x0,this[_0x551d71(0x2bc)]=void 0x0,this[_0x551d71(0x21f)]();})),this[_0x2d76f6(0x193)](this['_drawingManagerService']['update$']['subscribe'](_0x43fb4e=>{const _0x544a2f=_0x2d76f6;if(_0x43fb4e[_0x544a2f(0x49c)]===0x1){var _0x2e1514;const _0x52595a=_0x43fb4e[0x0],_0x17ac76=(_0x2e1514=this['_drawingManagerService'][_0x544a2f(0x382)](_0x52595a))===null||_0x2e1514===void 0x0?void 0x0:_0x2e1514[_0x544a2f(0x500)];if(_0x17ac76===_univerjs_core[_0x544a2f(0x5bc)][_0x544a2f(0x253)]&&_0x52595a[_0x544a2f(0x133)]===this[_0x544a2f(0x534)])this[_0x544a2f(0x21f)](),this[_0x544a2f(0x34c)]();else{if(!this[_0x544a2f(0x534)]&&_0x17ac76===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'])this[_0x544a2f(0x18e)](_0x52595a[_0x544a2f(0x5df)],_0x52595a[_0x544a2f(0x54e)],_0x52595a[_0x544a2f(0x133)]);}}})),this[_0x2d76f6(0x193)](this[_0x2d76f6(0x591)][_0x2d76f6(0x5e0)][_0x2d76f6(0x4c3)](_0x3427ac=>{const _0x14e148=_0x2d76f6;for(const _0x309d7b of _0x3427ac){const {drawingId:_0x313042}=_0x309d7b;if(this[_0x14e148(0x534)]===_0x313042){this['_reset']();return;}}}));}[_0x3ce055(0x65f)](_0x1f86f4,_0x476a1a,_0x1185be,_0x592f18,_0x39f16a){const _0x437a1c=_0x3ce055;var _0x2c5f19,_0x100df1;if(!this[_0x437a1c(0x11e)])return;const _0x28269a=this[_0x437a1c(0x34d)](_0x1f86f4);if(!_0x28269a)return;const _0x2fb2fb=this[_0x437a1c(0x209)]?this[_0x437a1c(0x209)][_0x437a1c(0x31c)]:_0x476a1a,_0x2d94ed=this[_0x437a1c(0x209)]?this[_0x437a1c(0x209)][_0x437a1c(0x163)]:this['_calculateFreeEndpointAngle'](_0x28269a[_0x437a1c(0x49d)],_0x2fb2fb);let _0x4df8e6;if(this[_0x437a1c(0x209)]){const _0x1d394e=this['_drawingManagerService'][_0x437a1c(0x382)]({'unitId':this[_0x437a1c(0x209)]['unitId'],'subUnitId':this[_0x437a1c(0x209)]['subUnitId'],'drawingId':this[_0x437a1c(0x209)][_0x437a1c(0x469)]});if(_0x1d394e===null||_0x1d394e===void 0x0?void 0x0:_0x1d394e[_0x437a1c(0x152)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x5973ac}=_0x1d394e[_0x437a1c(0x152)];_0x4df8e6=(0x0,_univerjs_pro_engine_shape[_0x437a1c(0x42b)])({'left':left,'top':top,'width':width,'height':height},_0x5973ac||0x0);}else _0x4df8e6={'left':_0x2fb2fb['x'],'top':_0x2fb2fb['y'],'width':0x0,'height':0x0};}else _0x4df8e6={'left':_0x2fb2fb['x'],'top':_0x2fb2fb['y'],'width':0x0,'height':0x0};const _0x561ff9={'point':_0x2fb2fb,'angle':_0x2d94ed,'bounds':_0x4df8e6},_0x4f7f8d=_0x1185be?_0x561ff9:_0x28269a,_0x215c62=_0x1185be?_0x28269a:_0x561ff9,_0x570f5e=this[_0x437a1c(0x11e)][_0x437a1c(0x367)](),_0x106873=(0x0,_univerjs_pro_engine_shape[_0x437a1c(0x49e)])(_0x4f7f8d,_0x215c62,_0x570f5e);console[_0x437a1c(0x595)](_0x4f7f8d,_0x215c62);if(_0x106873)this[_0x437a1c(0x11e)][_0x437a1c(0x607)](_0x106873);const _0x596674=(0x0,_univerjs_pro_engine_shape[_0x437a1c(0x423)])(_0x106873,_0x570f5e);if(_0x596674[_0x437a1c(0x5d0)]!==_0x570f5e)this[_0x437a1c(0x11e)][_0x437a1c(0x449)](_0x596674['lineType']);for(const [_0x235ff5,_0x3e3fe7]of Object[_0x437a1c(0x12d)](_0x596674[_0x437a1c(0x22f)]))this[_0x437a1c(0x11e)][_0x437a1c(0x324)](_0x235ff5,_0x3e3fe7);this['_activeShapeModel'][_0x437a1c(0x368)]({'width':_0x596674[_0x437a1c(0x247)][_0x437a1c(0x1f2)],'height':_0x596674[_0x437a1c(0x247)][_0x437a1c(0x622)]}),_0x592f18[_0x437a1c(0x436)]({'flipX':_0x596674[_0x437a1c(0x247)][_0x437a1c(0x3f3)],'flipY':_0x596674[_0x437a1c(0x247)]['flipY'],'left':_0x596674['worldRect'][_0x437a1c(0x358)],'top':_0x596674[_0x437a1c(0x247)]['top'],'width':_0x596674[_0x437a1c(0x247)][_0x437a1c(0x1f2)],'height':_0x596674[_0x437a1c(0x247)]['height'],'angle':_0x596674[_0x437a1c(0x4b2)]}),_0x592f18[_0x437a1c(0x3ee)](!![]);const _0x1f58ba=(_0x2c5f19=(_0x100df1=this['_currentConnectionTarget'])===null||_0x100df1===void 0x0?void 0x0:_0x100df1[_0x437a1c(0x31c)])!==null&&_0x2c5f19!==void 0x0?_0x2c5f19:_0x476a1a;_0x39f16a[_0x437a1c(0x436)]({'left':_0x1f58ba['x']-_univerjs_pro_engine_shape[_0x437a1c(0x2da)]['cxnPointRadius'],'top':_0x1f58ba['y']-_univerjs_pro_engine_shape[_0x437a1c(0x2da)][_0x437a1c(0x428)]});}['_handleFreeEndpointMove'](_0x231eb6,_0x2431b0,_0x4caca2,_0x396157,_0xdf42ea){const _0x3ea073=_0x3ce055;var _0x35f3dd,_0x4eaa3e,_0x103eb1,_0x535790;const _0x489de8=(_0x35f3dd=(_0x4eaa3e=this[_0x3ea073(0x209)])===null||_0x4eaa3e===void 0x0?void 0x0:_0x4eaa3e[_0x3ea073(0x31c)])!==null&&_0x35f3dd!==void 0x0?_0x35f3dd:_0x231eb6,_0x46a433=_univerjs_pro_engine_shape[_0x3ea073(0x1e9)][_0x3ea073(0x3ca)](_0x2431b0,_0x489de8,_0x4caca2);_0x396157[_0x3ea073(0x436)]({'flipX':_0x46a433[_0x3ea073(0x247)]['flipX'],'flipY':_0x46a433[_0x3ea073(0x247)]['flipY'],'left':_0x46a433[_0x3ea073(0x247)][_0x3ea073(0x358)],'top':_0x46a433['worldRect'][_0x3ea073(0x169)],'width':_0x46a433['worldRect'][_0x3ea073(0x1f2)],'height':_0x46a433[_0x3ea073(0x247)][_0x3ea073(0x622)],'angle':_0x46a433[_0x3ea073(0x247)][_0x3ea073(0x163)]});const _0x540f66=(_0x103eb1=(_0x535790=this[_0x3ea073(0x209)])===null||_0x535790===void 0x0?void 0x0:_0x535790['worldPoint'])!==null&&_0x103eb1!==void 0x0?_0x103eb1:_0x231eb6;_0xdf42ea[_0x3ea073(0x436)]({'left':_0x540f66['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x540f66['y']-_univerjs_pro_engine_shape[_0x3ea073(0x2da)][_0x3ea073(0x428)]});}['_getConnectPointInfo'](_0x34dfd2){const _0x4dd2bc=_0x3ce055;if(!this['_unitId']||!this[_0x4dd2bc(0x2bc)])return null;const {shapeId:_0x404c4f,cxnIndex:_0x4eb0b1}=_0x34dfd2,_0x3c0361=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this['_subUnitId'],_0x404c4f);if(!_0x3c0361)return null;const _0x40ceb6=this[_0x4dd2bc(0x591)]['getDrawingByParam']({'unitId':this[_0x4dd2bc(0x2f5)],'subUnitId':this[_0x4dd2bc(0x2bc)],'drawingId':_0x404c4f});if(!(_0x40ceb6===null||_0x40ceb6===void 0x0?void 0x0:_0x40ceb6[_0x4dd2bc(0x152)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x105d75}=_0x40ceb6['transform'];_0x3c0361[_0x4dd2bc(0x368)]({'width':width,'height':height});const _0x555c56=_0x3c0361[_0x4dd2bc(0x446)]()[_0x4dd2bc(0x211)](_0xdde722=>_0xdde722[_0x4dd2bc(0x27d)]===_0x4eb0b1);if(!_0x555c56)return null;let _0x2aa9bd=flipX?width-_0x555c56['x']:_0x555c56['x'],_0x451c14=flipY?height-_0x555c56['y']:_0x555c56['y'];if(_0x105d75!==0x0&&_0x105d75!==void 0x0&&_0x105d75!==null){const _0x22daa1=_0x105d75*Math['PI']/0xb4,_0x289eaf=Math['cos'](_0x22daa1),_0x5ce80c=Math[_0x4dd2bc(0x42a)](_0x22daa1),_0x20d65b=width/0x2,_0x378cc2=height/0x2,_0x4cc9df=_0x2aa9bd-_0x20d65b,_0x3117e7=_0x451c14-_0x378cc2;_0x2aa9bd=_0x20d65b+_0x4cc9df*_0x289eaf-_0x3117e7*_0x5ce80c,_0x451c14=_0x378cc2+_0x4cc9df*_0x5ce80c+_0x3117e7*_0x289eaf;}_0x2aa9bd+=left,_0x451c14+=top;let _0x16f543=_0x555c56[_0x4dd2bc(0x132)]/0xea60;if(flipX)_0x16f543=0xb4-_0x16f543;if(flipY)_0x16f543=-_0x16f543;_0x16f543+=_0x105d75||0x0,_0x16f543=(_0x16f543%0x168+0x168)%0x168;const _0xcc9f0a=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x105d75||0x0);return{'point':{'x':_0x2aa9bd,'y':_0x451c14},'angle':_0x16f543,'bounds':_0xcc9f0a};}['_calculateFreeEndpointAngle'](_0x3ee957,_0x4d33f1){const _0x36c2c3=_0x3ce055,_0x454b3c=_0x4d33f1['x']-_0x3ee957['x'],_0x2de0a3=_0x4d33f1['y']-_0x3ee957['y'];if(Math[_0x36c2c3(0x540)](_0x454b3c)>=Math['abs'](_0x2de0a3))return _0x454b3c>=0x0?0xb4:0x0;else return _0x2de0a3>=0x0?0x10e:0x5a;}[_0x3ce055(0x2a8)](){const _0x8ffb72=_0x3ce055;this[_0x8ffb72(0x534)]=void 0x0,this[_0x8ffb72(0x2f5)]=void 0x0,this[_0x8ffb72(0x2bc)]=void 0x0,this[_0x8ffb72(0x21f)]();}[_0x3ce055(0x467)](){const _0x19eb9e=_0x3ce055;this[_0x19eb9e(0x21f)](),super[_0x19eb9e(0x467)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3ce055(0x4f7)]),__decorateParam(0x2,_univerjs_engine_render[_0x3ce055(0x2b4)]),__decorateParam(0x3,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3ce055(0x234)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3ce055(0x53e)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x3ce055(0x53e)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x3ce055(0x396)]{constructor(_0x4bb326,_0x3d347a,_0x16f53c){const _0x1e39d7=_0x3ce055;super(),this[_0x1e39d7(0x597)]=_0x4bb326,this[_0x1e39d7(0x3e8)]=_0x3d347a,this['_sheetPermissionCheckController']=_0x16f53c,this['_initPermission']();}[_0x3ce055(0x32b)](){const _0x19064f=_0x3ce055;this['disposeWithMe'](this[_0x19064f(0x597)]['beforeCommandExecuted'](_0x1a93bf=>{const _0x4f207a=_0x19064f;let _0x33f247,_0x440081;if(_0x1a93bf['id']===_univerjs_pro_sheets_shape['InsertShapeCommand']['id']||_0x1a93bf['id']===_univerjs_pro_sheets_shape[_0x4f207a(0x42f)]['id']||_0x1a93bf['id']===_univerjs_pro_sheets_shape[_0x4f207a(0x127)]['id']){const _0x31b473=_0x1a93bf['params'];_0x33f247=_0x31b473[_0x4f207a(0x5df)],_0x440081=_0x31b473[_0x4f207a(0x54e)];}if(!_0x33f247||!_0x440081)return;if(!this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x4f207a(0x2c8)]],'worksheetTypes':[_univerjs_sheets[_0x4f207a(0x115)]]},_0x33f247,_0x440081))this['_sheetPermissionCheckController']['blockExecuteWithoutPermission'](this['_localeService']['t'](_0x4f207a(0x539)));}));}};function _0x3011(){const _0x935f0e=['shape.type.quad-arrow-callout','colStartX','AlignOperationCommand','isStartConnectorPoint','setHighlighted','shape.type.action-button-information','EllipseRibbon','Callout','Round2DiagRect','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','Cube','isFinite','getDrawingSearch','scale','CopySheetCommand','_sheetCanvasPopManagerService','onRendered','_getScrollInfo','shape.type.down-arrow','sheets-shape.line.arrowType.none','QuadArrowCallout','ShapeHexagonIcon','DrawingRenderService','shape.type.accent-border-callout1','_calculateFreeEndpointAngle','complete','shape.type.notched-right-arrow','LeftJustifyingIcon','dashType','DrawingTypeEnum','_sheetDrawingShapeRenderController','ShapeUpDownArrowIcon','shape.type.round-rect','DRAWING_IMAGE','_handleConnectorPointerUp','MoreDownIcon','toolbar.verticalAlignMode.main','ShapeCurvedRightArrowIcon','_drawingRenderService','shape.group.','gdRefX','FlowchartMagneticDisk','subscribeEvent','sheet.operation.open-sheet-shape-format-panel','blockArrow','getShapeDataById','LeftRightArrowCallout','ShapeTeardropIcon','touchDependencies','lineType','shape.type.flow-chart-or','shape.type.striped-right-arrow','ShapeRtTriangleIcon','MathMinus','mergeMenu','SmileyFace','call','ActionButtonEnd','color','_isStartConnectorPoint','DiamondArrow','relation','disableObjectsEvent','ShapeNonIsoscelesTrapezoidIcon','unitId','remove$','AccentCallout3','getFocusDrawings','useLeftAndRightArrow','getDrawingEditable','FlowchartManualInput','PictureFill','useEditor','1559742joAbvz','wrapStrategy','getPrototypeOf','update$','LeftArrow','FlowchartTerminator','shape.type.curved-up-arrow','shape.type.double-wave','_onSavingEditorData$','FlowchartOffPageConnector','shape.type.pie','getObject','shape.type.ribbon','onScrollAfter$','_init','_generatePasteMutations','shape.type.straight-connector1','sheets-shape.line.endArrowSize','_transform','ShapeStraightConnector2Icon','saveImage','sheets-shape.line.endArrowType','HomePlate','Gear9','FlowchartSummingJunction','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','src','shape.type.circular-arrow','IrregularSeal2','registerClipDelegate','shape.type.left-bracket','updateLinePoints','shape.type.diamond','sheets-shape.fill.color','getActualSize','disableShapeOption','ShapeHeptagonIcon','getDrawingPoints','Dash','FlowchartMagneticTape','Heart','open','_copyInfo','shape.type.left-circular-arrow','getValue','getCurrentSkeleton','FoldedCorner','ShapeHalfFrameIcon','isConnectorShape','ShapeActionButtonForwardNextIcon','_moveConnectorWithShape','connection-site-','_sheetsShapeService','isHorizontal','ShapeWedgeEllipseCalloutIcon','align.bottom','SheetsDrawingGroupCopyPasteController','_baseDrawingRect','height','sheets-shape.line.sketchType.curved','object','_getShapeInfo','13226913dEhewM','ShapeSwooshArrowIcon','ISidebarService','addClipboardHook','Chord','ShapeFlowChartMultidocumentIcon','ShapeCurvedConnector3Arrow1Icon','WRAP','_isStartAdjusting','Large','getShapeTypeById','_shapes','invert','Star16','ShapePlaqueTabsIcon','onPointerMove$','jsxs','_renderManagerService','shape.type.non-isosceles-trapezoid','IContextService','ShapeRound2SameRectIcon','add$','ISheetDrawingService','isNaN','featurePluginUpdateNotification','sheets-shape.fill.picture.source','VIEW_MAIN_LEFT_TOP','_registerDrawingFocusChangeHandler','MathEqual','BreakLineCommand','ShapeFlowChartInputOutputIcon','ShapeBracePairIcon','ShapeWedgeRoundRectCalloutIcon','MenuItemType','BUTTON','univer-size-full','clearAdjustControls','align.right','FlowchartDisplay','shape.type.action-button-movie','sheet.command.menu-insert-shape','mainComponent','ShapeLeftUpArrowIcon','shape.type.accent-callout1','_setTransForm','NoSmoking','shape.type.pentagon','_getConnectionSiteAngle','univer-pt-2','ShapeActionButtonBackPreviousIcon','isHitLine','Accordion','removeLinePoints','shape.type.dodecagon','FlowchartMultiDocument','ShapeCallout1Icon','DocumentSkeleton','_handleConnectedEndpointMove','FlowchartPredefinedProcess','Medium','OpenArrow','_executeConnectedRouteConnectionCommand','input','ShapeActionButtonEndIcon','sheets-shape.line.width','verticalAlign','_menuManagerService','subscribeContextValue$','_commandExecutedListener','ShapeDownArrowCalloutIcon','_updateShapeAdjustControls','scaleY','ActionButtonInformation','ChartPlus','sheets-shape.rotateLeft90','ShapeFlowChartSortIcon','translate','clear','_resetState','setZoomRatio','getOwnPropertyNames','toDisposable','VerticalCenterIcon','ShapeMoonIcon','doc','cxnPointStroke','has','linear','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','LocaleService','shape.type.no-smoking','addImageSourceCache','WorksheetEditPermission','Tile','computeStraightConnectorLayout','shape.type.donut','_rerouteConnectorLine','Freehand','align.middle','FlowchartManualOperation','LineInv','_activeShapeModel','paragraphStyle','sheets-shape.toggleFlipH','ShapeFlowChartManualInputIcon','RightBrace','vertical','resize','ShapeStraightConnector1Icon','sheets-shape.line.arrowType.openArrow','UpdateConnectorRelationCommand','GROUP','SetSheetsShapeTextVerticalToggleCommand','ShapeMathPlusIcon','ShapeDodecagonIcon','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','entries','shape.type.action-button-forward-next','CUT','ShapeLineIcon','oKey','ang','drawingId','4190AhRrnm','sheet.command.set-shape-text-font-size','classType','shape.type.chart-plus','Dodecagon','SheetScrollManagerService','ShapeFlowChartManualOperationIcon','_sheetInterceptorService','horizontalAlign','shape.type.star5','ShapeLineTypeEnum','ShapeFlowChartOnlineStorageIcon','CurvedRightArrow','Ribbon','shape.type.right-brace','shape.type.flow-chart-punched-tape','rectangle','constructor','deepClone','shape.type.accent-callout2','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','BorderCallout2','univer-box-border\x20univer-px-4\x20univer-text-sm','viewportScrollY','ShapeStar12Icon','setSrcRect','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getSheetBySheetId','RadioGroup','PlaqueTabs','transform','ShapeFlowChartPunchedTapeIcon','setDocumentData','getRenderById','_baseShapeWidth','_baseWidth','shape.type.gear6','ShapeCircularArrowIcon','setContextValue','Star5','ShapeStar8Icon','shape.type.pie-wedge','ShapeAccentBorderCallout3Icon','DRAWING_OBJECT_LAYER_INDEX','ShapeAccentCallout3Icon','RENDER_CLASS_TYPE','ShapeRibbonIcon','angle','shape.type.border-callout1','group\x20univer-relative\x20univer-inline-block','univer-flex\x20univer-flex-col\x20univer-gap-3','_groupCopyPasteController','ShapePieWedgeIcon','top','renderConfig','FlowchartDecision','EMPTY','ShapeFlowChartTerminatorIcon','Linear','interceptCommand','sheetViewStartColumn','Circle','primary.600','ShapeFlowChartConnectorIcon','shape.type.rt-triangle','getAdjustValueByName','sheets-shape.line.transparency','_initMenu','ISheetClipboardService','shape.type.flow-chart-summing-junction','_connectionSiteObjects','ShapeSquareTabsIcon','ShapeCloudCalloutIcon','_baseTop','sheets-shape.line.capType.flat','setSelectionRanges','shape.type.round1-rect','ShapeStar5Icon','CENTER','_clearShapeAdjustControls','sheet.operation.close-sheet-shape-format-panel','_initSelection','shape.type.star16','ShapeLeftBracketIcon','_drawingAddListener','shape.type.flow-chart-alternate-process','ShapeLineJoinEnum','radial','shape.type.left-up-arrow','imageRotateWithShape','_handleBasicShapeUpdateConnectorLineShape','shape.type.snip-round-rect','isEditing','changeStart$','shape.type.math-multiply','disposeWithMe','univer-text-gray-500','startArrow','_closeShapeEditPanel','_insertShapes','sheets-shape.line.dashType.dashDot','getConnectorLinePoints','ShapeStar10Icon','ShapeActionButtonBeginningIcon','ShapeLineCapEnum','shape.type.flow-chart-preparation','Tools','_isShouldShowDrawingShapeAdjust','ShapeUpArrowCalloutIcon','27980TwOiOZ','_handleFreeEndpointMove','shape.type.folder-corner','srcRect','onDblclick$','Star24','ActionButtonBlank','_activeTargetShapeId','_clearControls','902HHTtnK','ShapeIcon','shape.type.left-right-circular-arrow','Star8','sheets-shape.fill.transparency','StripedRightArrow','lineStrokeType','buildClipPath','SheetsSelectionsService','gdRefY','sheets-shape.fill.picture.align.r','position','ShapeLeftRightArrowIcon','VERTICAL_ROTATE_ANGLE','ShapeGear6Icon','_findNearestConnectionSite','connector-handler-','_loadAndSetImage','scene','_focusedDrawings','getDrawingVisible','BentUpArrow','unsubscribe','sheet.command.set-shape-text-vertical-align','CommandType','univer-flex\x20univer-items-center\x20univer-justify-between','group','univer-flex-1\x20univer-overflow-auto','EquationShape','shape.type.action-button-sound','Cloud','shape.type.star12','getShapeData','params','ShapeFlowChartSummingJunctionIcon','Curved','None','slice','sheets-shape.line.dashType.squareDot','alignment','onPointerDown$','SELECTOR','marginTop','ShapeAccentCallout2Icon','BracePair','worldPoints','ShapeNotchedRightArrowIcon','draw','Snip2DiagRect','UNIVER_SHEET','PaintBucketDoubleIcon','shape.type.snip2-same-rect','registerFeaturePasteHook','SheetPermissionCheckController','Other','save','setTimeout','ShapeStar16Icon','COPY_TYPE','UpArrow','ShapeSketchTypeEnum','IMenuManagerService','drawing.operation.set-drawing-active','ConnectorCoordinateTransform','shape.type.triangle','adjHandleStroke','shape.type.flow-chart-input-output','sheets-shape.line.dashType.dash','Frame','sheets-shape.line.dashType.solid','shape.type.irregular-seal1','_adjHandlerPointerMove','width','ShapeCallout2Icon','RightArrow','sheets-shape.fill.picture.align.b','shape.type.accent-border-callout3','shape.type.up-down-arrow-callout','_addShapeConnectorHandlerObject','ShapeDownArrowIcon','sheet.command.set-shape-text-font-size-decrease','capType','textRect','pick','_getImagePrstGeom','sheets-shape.line.sketchType.handDrawn','next','toolbar.resetColor','NoFill','HandDrawn','_componentManager','onSavingEditorData$','_initSheetChange','RightArrowCallout','DownArrow','_currentConnectionTarget','getCurrentTypeOfUnit$','shape.type.home-plate','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_isHighlighted','push','startOffset','#4285f4','find','sheets-shape.line.sketchType.freehand','VerticalScroll','LeftArrowCallout','ShapeDocAlignCommand','FlowchartDocument','_isImagePointerDown','shape.type.action-button-return','_adjName','Round','univer-relative\x20univer-size-full\x20univer-overflow-visible','shape.type.brace-pair','Vector2','ShapeFlowChartExtractIcon','_clearShapeConnectorHandlerObjects','StraightConnector1','ShapeCurvedDownArrowIcon','_isOpenedShapeEditPanel','imageTile','Radial','_registerImageShapeClipDelegate','shape.type.curved-right-arrow','gradientType','_editingParams$','basicShape','getSkeleton','ShapeEllipseRibbonIcon','AlignTopIcon','getContextValue','_draggingConnectorId','adjustValues','SheetSkeletonService','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','ActionButtonBeginning','MathDivide','SheetsShapeService','ShapeLightningBoltIcon','\x20px','ShapeRound1RectIcon','cos','shape.type.left-right-ribbon','shape.type.curved-down-arrow','refreshTransform','UniverSheetsShapePlugin','ShapeFlowChartOfflineStorageIcon','getCurrentRangeDisable$','undefined','error','lineJoinType','Angular','merge','shape.type.bent-connector3-arrow2','min','_shapeService','worldRect','shape.type.lightning-bolt','shape-adjust-point-','displayName','files','clipByShape','CurvedLeftArrow','_attachConnectorObjectEvent','ShapeFlowChartPunchedCardIcon','_sheetShapeAdjustController','sheets-shape.openPanel','ShapeChartXIcon','DRAWING_SHAPE','_sheetClipboardService','updateDocumentStyle','shape-text-editor-content','#1a73e8','shape.type.callout1','rect','flowchart','getShapeTextRect','34fWwKrB','ShapeFlowChartPreparationIcon','useObservable','UNIVER_DOC','getDrawingOrder','shape.type.snip2-diag-rect','getAdjustNames','align.top','shape.type.uturn-arrow','shape-text-editor-position-wrapper','ShapeStripedRightArrowIcon','ShapeActionButtonInformationIcon','fill','Can','ShapeRightBracketIcon','SolidLine','gdRefAng','SHAPE_TEXT','_contextService','__esModule','COLOR_PICKER_COMPONENT','ShapeBentConnector3Arrow2Icon','getShapeModel','clone','ShapeHorizontalScrollIcon','ShapeCubeIcon','ShapeLineDashEnum','ShapeParallelogramIcon','BracketPair','ShapeBentUpArrowIcon','ShapeRenderModeEnum','SHAPE','_highlightedSiteIndex','index','#ffffff','ShapeBorderCallout1Icon','isRichText','_getZoomRatio','flipY','clip-adj-','beginPath','sheets-shape.fill.picture.align.br','shape.type.line-inv','_generateCutPasteMutations','rowStartY','gradientStops','ShapeAccentBorderCallout2Icon','ShapePositionWrapper','attachTransformerTo','GradientFill','getState','sheets-shape.line.dashType.longDash','setEditing','ShapeActionButtonDocumentIcon','BentConnector3','START','sheets-shape.fill.picture.align.tr','_updateSrcRectByTransform','#bcbcbc','ShapeFunnelIcon','ShapeActionButtonBlankIcon','setCanUseShapeClip','_registerGroupFeaturePasteHook','setFillImage','isDrawingObject','ActionButtonMovie','getParent','LAYOUT','IConfigService','switchMap','shape.type.star24','_activeImageId','imageFillMode','ShapeGear9Icon','shape.type.snip1-rect','Star4','_reset','DocumentViewModel','_drawSimpleText','startX','shape.type.block-arc','resetCursor','SetShapeTextHorizontalAlignCommand','pushUndoRedo','ShapeMathEqualIcon','ImageFillModeEnum','useKeyboardEvent','img','IRenderManagerService','ActionButtonSound','shape.type.bent-arrow','sheets-shape.fill.picture.tileAsTexture','render','gradientAngle','ShapeMathDivideIcon','useAbsolutePosition','_subUnitId','ShapeLeftBraceIcon','FORMAT','BasicShape','ShapeCurvedUpArrowIcon','prototype','ShapeFlowChartMagneticDrumIcon','add','ShapeTypeEnum','filter','style','sheets-shape.line.dashType.title','WorkbookEditablePermission','_getShapeAdjustPointListById','clsx','Arc','enableObjectsEvent','_createCopyInfoByRange','some','sheets-shape.fill.picture.align.t','ShapeOctagonIcon','shape.type.math-not-equal','ShapeStar6Icon','shapeModel','_sheetBasicShapeConnectionPointController','adjHandleSize','isHit','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','ShapeLeftCircularArrowIcon','Radio','ShapeDefaultConfig','clearAdjustValue','setShapeProps','isRender','LongDash','MIDDLE','ShapeTrapezoidIcon','ShapeRightArrowCalloutIcon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_isDrawingShapePointDown','prstGeom','setPrstGeomAdjValues','cxnIndex','shape.type.ribbon2','ShapeStar7Icon','DrawingImageClipService','sheets-shape.shapeStyle','ShapeUpDownArrowCalloutIcon','getViewport','ShapeFlowChartDecisionIcon','ShapeCloudIcon','useState','opacity','getShapeTextData','_transformCalculateSrcRect','shape.type.quad-arrow','VIEW_MAIN_TOP','_unitId','RIGHT','onPointerUp$','sheets-shape.line.color','getZoomRatio','shape.type.curved-connector3-arrow2','Moon','rotate(','target','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','FlowchartMagneticDrum','useMemo','div','URL','sheets-shape.line.capType.title','sheets-shape.fill.noFill','_hasReset','shape.type.curved-connector3','ShapePlusIcon','SnipRoundRect','sheets-shape.line.dashType.longDashDot','ShapeActionButtonMovieIcon','SheetSkeletonManagerService','_executeConnectedRouteResizeCommand','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ctr','Miter','shape.type.callout2','image/*','close','WedgeRectCallout','ShapeStar24Icon','_registerComponent','shape.type.math-plus','ShapeDiamondIcon','sheets-shape.fill.picture.scaleX','ShapeSmileyFaceIcon','univer-text-gray-600\x20univer-transition-transform','ShapeChordIcon','worldPoint','_activeShapeInfo','COMMAND','NonIsoscelesTrapezoid','_configService','ShapeFlowChartOffpageConnectorIcon','map','offsetY','setAdjustValueByName','ActionButtonForwardNext','SHEET_VIEWPORT_KEY','Transform','offset','ShapeIrregularSeal1Icon','ShapeDonutIcon','_initPermission','sheets-shape.fill.title','FromArray','ShapeVerticalScrollIcon','sheets-shape.fill.picture.align.l','_updateTransform','_registerOperations','onload','_showConnectionSites','_initEvents','shape.type.star8','getViewportByCell','ToggleSheetsShapeFlipCommand','ShapeCurvedConnector3Icon','ShapeFlowChartCollateIcon','InsertSheetsShapeMutation','univer-rounded-lg\x20univer-p-3','ShapeFlowChartAlternateProcessIcon','pipe','shape.type.callout3','setConfig','shape.type.accent-callout3','Trapezoid','isCurvedConnectorShape','custom','HorizontalScroll','ActionButtonDocument','function','hasOwnProperty','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Dropdown','Image','UniverInstanceType','_addShapeConnectorHandlerObjects','_getConnectPointInfo','IEditorService','getDrawingData','BOTTOM','_cxnIndex','UpDownArrow','ShapeFlowChartMergeIcon','domX','shapeKey','SetDrawingApplyMutation','value','left','_drawingType','_createShapeAdjustControls','SetSheetsShapeRotateCommand','ShapeFlowChartDelayIcon','LeftRightArrow','ShapeMathNotEqualIcon','shape.type.chart-x','shape.type.flow-chart-connector','viewportScrollX','ShapeIrregularSeal2Icon','clip','focus$','shape.type.bent-connector3-arrow1','undo','getShapeType','updateContext','_openShapeEditPanel','useEffect','forEach','ShapeUpArrowIcon','setShapeData','ShapeHomePlateIcon','ShapeSnip2SameRectIcon','_sheetDrawingService','sheetTransform','ShapeSnipRoundRectIcon','shape.type.flow-chart-multidocument','replace','file','_activeAdjustInfo','ShapeSnip1RectIcon','_context','_sheetSkeletonService','ShapeWaveIcon','WrapStrategy','ShapeCallout3Icon','toolbar.horizontalAlignMode.main','sheets-shape.fill.picture.align.tl','restore','preValue','ShapeDiagStripeIcon','getDrawingByParam','stopPropagation','VIEW_MAIN','getEndConnectInfo','REMOVE','shape.type.star6','name','Star10','_config','_registerMoveHandler','button','sheet.command.set-shape-text-font-size-increase','ShapeFolderCornerIcon','DrawingCommonPanel','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','TOP','_sidebarDisposable','shape.type.corner','sheets-shape.rotateRight90','IUndoRedoService','Disposable','viewBound','_baseLeft','useRef','_isConnecting','getDocumentData','LEFT','ShapeBevelIcon','Bevel','useCallback','refreshAdjustControls','sheets-shape.config','ComponentManager','getSheetCommandTarget','_sidebarService','set','shape.type.flow-chart-decision','localToWorld','CornerTabs','Triangle','packageName','shape.type.down-arrow-callout','ShapePieIcon','BlockArrow','fillType','shape.type.ellipse-ribbon','shape.type.plaque-tabs','Solid','values','max','DRAWING_DOM','iterator','HorizontalAlign','ShapeEllipseIcon','_handleFreeEndpointPointerUp','copyType','calculate','ShapeArrowTypeEnum','VerticalAlign','type','PREDEFINED_HOOK_NAME','111684nDLDCE','ShapeActionButtonHelpIcon','stroke','shape.type.vertical-scroll','univer-text-primary-600','transformToDrawingPosition','_univerInstanceService','shape.type.plus','lineShapeId','_getOrCreateShapeModel','ShapeRound2DiagRectIcon','computeConnectorResizeLayout','univer-w-20','getUnit','getColorFromTheme','shape.type.flow-chart-display','shape.type.round2-diag-rect','_activeShapeAdjustPointList','UpdateShapeDataCommand','icon','calcAdjValue','ShapeLeftRightUpArrowIcon','_targetShapeId','univer-flex\x20univer-items-center\x20univer-gap-3','sheets-shape.line.arrowType.ovalArrow','sheets-shape.line.solidLine','angular','size','editingParams$','SheetCanvasPopManagerService','FlowchartPreparation','_executeConnectionCommand','Stretch','Button','_initEditingParams','shape.type.flow-chart-extract','BehaviorSubject','GradientColorPicker','shape.type.flow-chart-internal-storage','sheets-shape.formatShape','ShapeQuadArrowCalloutIcon','_localeService','getConnectionInfo','MathMultiply','Diamond','isArray','Star6','makeDirty','ShapeMathMultiplyIcon','indexOf','shape.type.border-callout2','paragraphs','flipX','Observable','shape.type.frame','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useIsFocusing','_attachAdjustEvent','ActionButtonHome','getUnitId','sheets-shape.line.arrowSize.small','centerAngle','from','AccentBorderCallout1','_baseHeight','ShapeRectIcon','shape.type.math-equal','shape.type.straight-connector2','UpdateSheetsShapeDataMutation','univer-w-full','executeCommand','Checkbox','endArrow','imageOpacity','shape.type.left-arrow','scaleX','sheets-shape.hidePanel','getAncestorScale','shape.type.rect-textbox-vertical','register','ShapeTriangleIcon','changeEnd$','shape.type.up-arrow-callout','offsetX','shape.type.half-frame','shape.type.math-minus','setOnSavingEditorData','RightJustifyingIcon','data','shape.type.funnel','auto','click','getObjectIncludeInGroup','startWith','EllipseRibbon2','enumerable','FlowChartInputOutput','ShapeFlowChartPredefinedProcessIcon','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-2','computeConnectorRouteLayout','ShapeRightArrowIcon','ShapeLeftRightRibbonIcon','Teardrop','decorate','cxnPointRadius','ShapeSnip2DiagRectIcon','sin','getBasicShapeRotateBound','INSERT','shape.type.square-tabs','8994320nncnXa','SetShapeDrawingDataCommand','jsx','ancestorTransform','ColorPicker','_baseShapeLeft','RoundRect','shape.type.star32','transformByState','_createControls','memo','Snip1Rect','ShapeRectTextboxHorizontalIcon','SolidFill','ShapeLeftRightCircularArrowIcon','ResetInlineFormatTextBackgroundColorCommand','sheets-shape.deleteShape','setShouldShowAdjust','ShapeDecagonIcon','shape.type.line','ShapeBorderCallout3Icon','Line','Donut','_initCopyPaste','getConnectionSiteList','toStringTag','ENTER','changeShapeType','ShapeWedgeRectCalloutIcon','_getSceneAndTransformerByDrawingSearch','changing$','sheets-shape.fill.picture.offsetX','StarAndBanner','toolbar.fillColor.main','_loadShapePictureFill','LeftBrace','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','sheets-shape.line.joinType.miter','shape.type.flow-chart-manual-operation','body','Ellipse','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ShapeCanIcon','callout','startY','UpDownArrowCallout','shape.type.bracket-pair','shape.type.bent-connector3','image-clip-adjust-point-','getTransformerByCreate','ShapeBlockArcIcon','ShapePlaqueIcon','_activeAdjustPointList','sheets-shape.line.arrowType.stealthArrow','_addControl','shape.type.rect','shape.type.heart','dispose','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','shapeId','ShapeRightBraceIcon','ShapeStar4Icon','shapeData','3136HelPqQ','_imageIoService','sheets-shape.line.capType.round','BorderCallout3','ShapeLeftArrowCalloutIcon','#FFFFFF','isInGroup','AlignBottomIcon','defineProperty','_getDrawingRect','_baseShapeHeight','0.21.0','Funnel','FlowChartOfflineStorage','useDependency','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','UPDATE','diamond','sheets-shape.insertShape','sheets-shape.fill.picture.align.ctr','isHighlighted','_cxtHandlerPointerMove','AccentCallout1','CURSOR_TYPE','getSelectionRanges','addObject','shape.type.rect-textbox-horizontal','LeftRightCircularArrow','RemoveSheetCommand','NotchedRightArrow','visible','generateRandomId','ShapeStar32Icon','BentArrow','ShapeNoSmokingIcon','OPERATION','SetInlineFormatTextBackgroundColorCommand','align.left','ChartX','current','BUTTON_SELECTOR','Octagon','_imageShapeClipController','IUniverInstanceService','shape.type.action-button-home','shape.type.flow-chart-collate','ShapeQuadArrowIcon','length','point','routeConnectorLineShape','shape.type.star7','sheets-shape.line.beginArrowSize','domY','FOCUSING_COMMON_DRAWINGS','_currentScene','getCurrentScrollState','Shape','Arrow','shape.type.parallelogram','_addShapeAdjustControl','sheets-shape-ui','_props','ShapeRibbon2Icon','ShapeRoundRectIcon','getBatchAddOp','SheetDrawingAnchor','keys','reduce','Decagon','rotation','shape.type.right-arrow-callout','_cxtHandlerPointerUp','shape.type.action-button-beginning','_drawShapeText','getOwnPropertyDescriptor','POSITIVE_INFINITY','shape.type.flow-chart-magnetic-tape','univer-w-28','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','IDrawingManagerService','RibbonStartGroup','Wave','ThemeService','ShapeFlowChartDisplayIcon','ShapeFlowChartOrIcon','cxnPointStrokeWidth','subscribe','ShapeUturnArrowIcon','58517VVAFxk','sheets-shape.line.dashType.roundDot','_generateCopyPasteMutations','getConnectionRelation','_getImageDrawingInfo','ShapePentagonIcon','syncExecuteCommand','applyPoint','getCanvasElement','shape.type.border-callout3','ShapeDoubleWaveIcon','symbol','ShapeActionButtonReturnIcon','registerRenderModule','Plugin','parse','section','HorizontallyIcon','ShapeChartPlusIcon','ShapeFlowChartMagneticDiskIcon','CurvedConnector3','getCurrentUnitInfo','Hexagon','_baseShapeTop','_registerShapeMenu','FlowchartMerge','ShapeBentConnector3Icon','getEditing','span','sheets-shape.fill.picture.align.bl','sheets-shape.fill.picture.insert','align.center','ShapeArrowSizeEnum','string','ShapeFlowChartInternalStorageIcon','_updateImageAdjValues','ShapeFlowChartMagneticTapeIcon','ShapeLeftRightArrowCalloutIcon','_executeResizeCommand','focusDrawing','fillImageSourceType','IImageIoService','ShapeModel','setCursor','_initCommands','adjName','ImageSourceTypeEnum','ShapeChevronIcon','ShapeLeftArrowIcon','BorderCallout1','ICommandService','Callout3','MathPlus','_clearConnectionSites','shape.type.right-arrow','Injector','attachRangeWithCoord','Flowchart','ShapeMathMinusIcon','drawingType','gdRefR','sheets-shape.fill.pictureFill','7cZTSJJ','sheets-shape.line.joinType.bevel','SwooshArrow','Plus','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getAdjustInfoByName','asObservable','DrawingApplyType','round','shape.type.action-button-blank','shape.type.flow-chart-manual-input','ShapeCornerIcon','activeSheet$','getShapePopupMenus','sheet.shape.edit.panel','with','ShapeChartStarIcon','discreteRangeToRange','localeService','sheets-shape.shapePosition','ShapeBracketPairIcon','CloudCallout','worksheet','floor','create','shape.type.left-brace','shape.type.wedge-rect-callout','ShapeCurvedConnector3Arrow2Icon','ShapeBorderCallout2Icon','Chevron','ShapeActionButtonSoundIcon','endConnectionDetection','ShapeArcIcon','composeMatrix','_clipService','toPrimitive','shape.type.ellipse-ribbon2','getBoundingClientRect','stringify','documentStyle','ShapeBentConnector3Arrow1Icon','onCommandExecuted','normal','ShapeSunIcon','RichTextEditingMutation','_adjHandlerPointerUp','Plaque','getImage','ShapeAccentCallout1Icon','_activeShapeId','UniverSheetsShapeUIPlugin','shape.type.math-divide','_draw','drawWith','permission.dialog.editErr','shape.type.left-right-up-arrow','ShapeHeartIcon','end','Square','Inject','_connectorObjects','abs','renderDrawingShape','ShapeGradientTypeEnum','start','editorHeight','setPrstGeom','_drawRichText','UniverSheetsDrawingUIPlugin','shape.type.octagon','equationShape','sheets-shape.toggleTextVertical','SheetInterceptorService','_handleConnectedEndpointPointerUp','fillImageSource','subUnitId','FlowchartConnector','_shapeTextEditingService','shape.type.corner-tabs','_injector','univer-text-sm','ShapeEllipseRibbon2Icon','deriveStateFromActiveSheet$','_shapeId','onTransformChange$','RoundDot','LeftRightRibbon','image','RemoveSheetsShapeMutation','horizontal','shape.type.flow-chart-delay','getMatrix','dataModel','Rect','FlowchartInternalStorage','Heptagon','sheets-shape.line.dashType.longDashDotDot','bind','ShapeFrameIcon','updateDocumentDataMargin','Round2SameRect','sketchType','sheetViewStartRow','WedgeEllipseCallout','Flat','RightBracket','AccentBorderCallout2','ShapeActionButtonHomeIcon','SHEET_SHAPE_UI_PLUGIN','get','sheets-shape.line.noLine','shape.type.sun','multiply','redo','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','ShapeFlowChartProcessIcon','insertGroupObject','Pentagon','Select','ShapeFillEnum','_currentUniverService','createInternalEditorID','pluginName','ShapeFlowChartDocumentIcon','strokeWidth','univer-text-xl\x20univer-text-gray-500','SetShapeTextFontSizeIncreaseCommand','getDrawingShapeKeyByDrawingSearch','_initialize','FOCUSING_PANEL_EDITOR','ShapeLineInvIcon','cxnPointFill','objects','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','sqrt','FlowchartPunchedTape','sheets-shape.line.title','Module','ShapeCurvedLeftArrowIcon','shape.type.plaque','PieWedge','_updateAdjustControlPositions','_drawingManagerService','ShapeBentArrowIcon','InputNumber','sheets-shape.fill.gradientFill','warn','DownArrowCallout','_commandService','shape.type.decagon','onReady','_urlImageService','Rectangle','_registerDrawingMoveHandler','ShapeAccentBorderCallout1Icon','highlighted'];_0x3011=function(){return _0x935f0e;};return _0x3011();}SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_core[_0x3ce055(0x4f7)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_core[_0x3ce055(0x112)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3ce055(0x53e)])(_univerjs_sheets[_0x3ce055(0x1df)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x4f81ae){const _0x5cc577=_0x3ce055,{containerWidth:_0x506881,containerHeight:_0x2909c7,scaleX:_0x269400,scaleY:_0x48f5b3}=_0x4f81ae,_0x465fed=_0x269400||0x1,_0x381a78=_0x48f5b3||0x1,_0xe57d80=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x11b821=(0x0,_univerjs_ui['useDependency'])(_univerjs_docs_ui[_0x5cc577(0x34e)]),_0x56e2bd=(0x0,_univerjs_ui['useDependency'])(_univerjs_engine_render[_0x5cc577(0x2b4)]),_0x40d751=(0x0,_univerjs_ui[_0x5cc577(0x47b)])(_univerjs_core[_0x5cc577(0x498)]),_0x460550=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x5cc577(0x4bc)]),_0xdd2547=(0x0,_univerjs_ui[_0x5cc577(0x47b)])(_univerjs_pro_sheets_shape[_0x5cc577(0x234)]),_0x1c5a70=(0x0,_univerjs_ui[_0x5cc577(0x47b)])(_univerjs_core[_0x5cc577(0x4f7)]),_0x5ec97a=(0x0,_univerjs_ui[_0x5cc577(0x25e)])(_0xe57d80[_0x5cc577(0x3db)]),_0x4c3143=(0x0,_univerjs_ui[_0x5cc577(0x25e)])(_0xe57d80[_0x5cc577(0x205)]),_0x8cbd02=(0x0,react['useRef'])(null),_0x5cbc8a=(0x0,react['useRef'])(null),_0x29e259=(0x0,react[_0x5cc577(0x399)])(null),_0x531355=(0x0,react[_0x5cc577(0x399)])(null),_0x2aa053=(0x0,react[_0x5cc577(0x399)])(null),_0x8fb4f0=(0x0,react[_0x5cc577(0x399)])(null),[_0x17d0bc,_0x2087ba]=(0x0,react[_0x5cc577(0x2ef)])({'editorHeight':_0x2909c7,'marginTop':0x0,'useAbsolutePosition':![]}),_0x1add31=(0x0,react['useCallback'])(_0x3d84dd=>{queueMicrotask(()=>{_0x2087ba(_0x3d84dd);});},[]),_0x36224d=(0x0,react[_0x5cc577(0x39f)])(()=>{const _0x5524c8=_0x5cc577;return _0x40d751[_0x5524c8(0x3cc)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x5524c8(0x34b)][_0x5524c8(0x25f)]);},[_0x40d751]),_0x3ba9f1=(0x0,react[_0x5cc577(0x39f)])(()=>{const _0xa3a34a=_0x5cc577;var _0x1c52fa;const _0x48ed44=_0x465fed,_0x45005d=_0x381a78;if(!_0x5ec97a)return{'scaleAdjust':0x1,'renderScaleX':_0x48ed44,'renderScaleY':_0x45005d};const _0x20ce74=_0x56e2bd[_0xa3a34a(0x155)](_0x5ec97a[_0xa3a34a(0x5df)]),_0x32ad4b=_0x20ce74===null||_0x20ce74===void 0x0?void 0x0:_0x20ce74[_0xa3a34a(0x1bc)]['getAncestorScale'](),_0x3cbb42=_0x20ce74===null||_0x20ce74===void 0x0?void 0x0:_0x20ce74['engine'][_0xa3a34a(0x4cd)](),_0xe713bc=_0x3cbb42?Number['parseFloat'](_0x3cbb42['style'][_0xa3a34a(0x1f2)]||''):0x0,_0x612ecd=(_0x1c52fa=_0x3cbb42===null||_0x3cbb42===void 0x0?void 0x0:_0x3cbb42[_0xa3a34a(0x528)]()[_0xa3a34a(0x1f2)])!==null&&_0x1c52fa!==void 0x0?_0x1c52fa:0x0,_0x87becb=_0xe713bc>0x0&&_0x612ecd>0x0?_0x612ecd/_0xe713bc:0x1;return{'scaleAdjust':Number[_0xa3a34a(0x5aa)](_0x87becb)&&_0x87becb>0x0?_0x87becb:0x1,'renderScaleX':(_0x32ad4b===null||_0x32ad4b===void 0x0?void 0x0:_0x32ad4b[_0xa3a34a(0x40a)])||_0x48ed44,'renderScaleY':(_0x32ad4b===null||_0x32ad4b===void 0x0?void 0x0:_0x32ad4b['scaleY'])||_0x45005d};},[_0x465fed,_0x381a78,_0x5ec97a,_0x56e2bd]),_0x5c9ff9=(0x0,react[_0x5cc577(0x39f)])(()=>{const _0x37d443=_0x5cc577;if(!_0x5ec97a)return{'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78};const {unitId:_0x7a9541,subUnitId:_0x296008,shapeId:_0x202e2c}=_0x5ec97a,_0x32da0f=_0xdd2547[_0x37d443(0x272)](_0x7a9541,_0x296008,_0x202e2c);if(!_0x32da0f)return{'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78};const _0x1aa5b4={'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78};return _0x32da0f[_0x37d443(0x25b)](_0x1aa5b4);},[_0x5ec97a,_0x506881,_0x2909c7,_0x465fed,_0x381a78,_0xdd2547]),_0x58a683=(0x0,react[_0x5cc577(0x39f)])(()=>{const _0x132bec=_0x5cc577;if(!_0x5ec97a)return null;const {unitId:_0x548335,subUnitId:_0x1ccb3a,shapeId:_0x45b749}=_0x5ec97a,_0x234a88=_0xdd2547[_0x132bec(0x272)](_0x548335,_0x1ccb3a,_0x45b749);if(!_0x234a88)return null;const _0x452db7=_0x234a88['getShapeTextData']();if(!_0x452db7)return null;const _0x3c2656={'unitId':_0x548335,'subUnitId':_0x1ccb3a,'drawingId':_0x45b749},_0x45e1ee=_0x460550['getDrawingByParam'](_0x3c2656);let _0x2ea0a0={'angle':0x0,'flipX':![],'flipY':![]};if(_0x45e1ee&&_0x45e1ee['transform'])_0x2ea0a0=_0x45e1ee[_0x132bec(0x152)];const _0xdf4d16={'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78},_0x261352=_0x234a88[_0x132bec(0x25b)](_0xdf4d16);let _0x2ad173,_0x58ba15=_univerjs_core[_0x132bec(0x3bc)][_0x132bec(0x391)],_0xab7070=_univerjs_core['HorizontalAlign'][_0x132bec(0x39c)];if(_0x132bec(0x55f)in _0x452db7&&_0x452db7[_0x132bec(0x55f)]){var _0x18d71e,_0x177b5c;const _0x363788=_0x452db7['dataModel'];if(_0x363788===null||_0x363788===void 0x0?void 0x0:_0x363788[_0x132bec(0x10d)])_0x2ad173=_0x363788['doc'];_0x58ba15=(_0x18d71e=_0x363788===null||_0x363788===void 0x0?void 0x0:_0x363788['va'])!==null&&_0x18d71e!==void 0x0?_0x18d71e:_univerjs_core[_0x132bec(0x3bc)][_0x132bec(0x391)],_0xab7070=(_0x177b5c=_0x363788===null||_0x363788===void 0x0?void 0x0:_0x363788['ha'])!==null&&_0x177b5c!==void 0x0?_0x177b5c:_univerjs_core['HorizontalAlign'][_0x132bec(0x39c)];}return{'doc':_0x2ad173,'verticalAlign':_0x58ba15,'horizontalAlign':_0xab7070,'textRect':_0x261352,'transform':_0x2ea0a0,'isHorizontal':_0x452db7[_0x132bec(0x61d)]};},[_0x5ec97a,_0xdd2547,_0x460550,_0x506881,_0x2909c7,_0x465fed,_0x381a78]),_0x59c000=(0x0,react['useMemo'])(()=>{const _0x5bb721=_0x5cc577,_0x40e164=_0x58a683();if(_0x40e164===null||_0x40e164===void 0x0?void 0x0:_0x40e164[_0x5bb721(0x10d)])return prepareShapeTextDocumentData(_0x40e164[_0x5bb721(0x10d)],{'isHorizontal':!![],'textRect':_0x40e164[_0x5bb721(0x1fc)],'verticalAlign':_0x40e164[_0x5bb721(0xfa)],'horizontalAlign':_0x40e164[_0x5bb721(0x13c)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x506881/_0x465fed,'height':Infinity}}};},[_0x58a683,_0x506881,_0x465fed]),_0x52b0f8=(0x0,_univerjs_docs_ui[_0x5cc577(0x5e7)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x59c000,'container':_0x5cbc8a,'autoFocus':![],'isSingle':![]}),_0x2e02d4=(0x0,_univerjs_docs_ui[_0x5cc577(0x3f7)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x5cc577(0x2b2)])(_0x2e02d4,{'keyCodes':[{'keyCode':_univerjs_ui['KeyCode'][_0x5cc577(0x448)]}],'handler':()=>{const _0x49378f=_0x5cc577;_0x1c5a70['executeCommand'](_univerjs_docs_ui[_0x49378f(0x643)]['id']);}},_0x52b0f8),(0x0,_univerjs_docs_ui[_0x5cc577(0x5e3)])(_0x2e02d4,![],_0x52b0f8);const _0x416ed6=(0x0,react[_0x5cc577(0x39f)])((_0x1ca147=!![])=>{const _0x458538=_0x5cc577;var _0x3090e1,_0x13eee8,_0x2cf2f7;if(!_0x52b0f8)return;const _0x3ef2de=_0x52b0f8[_0x458538(0x485)]()[_0x458538(0x211)](_0x22bc32=>_0x22bc32['collapsed']),_0x364c0c=((_0x3090e1=(_0x13eee8=_0x52b0f8[_0x458538(0x39b)]()[_0x458538(0x455)])===null||_0x13eee8===void 0x0?void 0x0:_0x13eee8['dataStream'][_0x458538(0x49c)])!==null&&_0x3090e1!==void 0x0?_0x3090e1:0x2)-0x2,_0xd5b1d4=(_0x2cf2f7=_0x3ef2de===null||_0x3ef2de===void 0x0?void 0x0:_0x3ef2de[_0x458538(0x20f)])!==null&&_0x2cf2f7!==void 0x0?_0x2cf2f7:_0x1ca147?_0x364c0c:null;if(_0xd5b1d4===null)return;_0x52b0f8[_0x458538(0x17f)]([{'startOffset':_0xd5b1d4,'endOffset':_0xd5b1d4}],![]);},[_0x52b0f8]),_0x32f72d=(0x0,react[_0x5cc577(0x39f)])(()=>{const _0x46afbb=_0x5cc577;_0x2aa053[_0x46afbb(0x494)]!==null&&(cancelAnimationFrame(_0x2aa053[_0x46afbb(0x494)]),_0x2aa053[_0x46afbb(0x494)]=null),_0x8fb4f0['current']!==null&&(window['clearTimeout'](_0x8fb4f0[_0x46afbb(0x494)]),_0x8fb4f0[_0x46afbb(0x494)]=null);},[]),_0x59d1b9=(0x0,react['useCallback'])(()=>{const _0x51568b=_0x5cc577;var _0x4b9a97,_0xdb155f,_0x21212b;if(!_0x52b0f8)return;const _0x8b3886=_0x56e2bd[_0x51568b(0x155)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x5be123=_0x8b3886===null||_0x8b3886===void 0x0?void 0x0:_0x8b3886[_0x51568b(0x512)](_univerjs_docs['DocSkeletonManagerService']);if(!_0x5be123)return;const _0x33b446=_0x5be123[_0x51568b(0x22a)](),_0x4bf4dd=_0x36224d(),{renderScaleX:_0x1580c4,renderScaleY:_0x1f3cf8,scaleAdjust:_0x528b68}=_0x3ba9f1(),_0x1eb066=_0x58a683(),_0x3d17a2=(_0x4b9a97=_0x1eb066===null||_0x1eb066===void 0x0?void 0x0:_0x1eb066[_0x51568b(0xfa)])!==null&&_0x4b9a97!==void 0x0?_0x4b9a97:_univerjs_core[_0x51568b(0x3bc)]['TOP'],_0x375ea4=(_0xdb155f=_0x1eb066===null||_0x1eb066===void 0x0?void 0x0:_0x1eb066[_0x51568b(0x13c)])!==null&&_0xdb155f!==void 0x0?_0xdb155f:_univerjs_core[_0x51568b(0x3b6)][_0x51568b(0x39c)],_0x245e9e=(_0x21212b=_0x5c9ff9())!==null&&_0x21212b!==void 0x0?_0x21212b:{'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78};_0x4bf4dd&&(_0x4bf4dd[_0x51568b(0x108)](Math['max'](_0x1580c4,_0x1f3cf8)),_0x4bf4dd[_0x51568b(0x255)]({'pageSize':{'width':_0x245e9e['width'],'height':Infinity}}),_0x4bf4dd['updateDocumentRenderConfig']({'verticalAlign':_0x3d17a2,'horizontalAlign':_0x375ea4,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core['WrapStrategy'][_0x51568b(0x62d)]}));_0x33b446['calculate']();const {actualHeight:_0x5477a4}=_0x33b446[_0x51568b(0x60a)](),_0x54adc1=_0x245e9e['height'];let _0x4407a9=_0x54adc1,_0x4cb81f=0x0;if(_0x5477a4<=_0x54adc1){if(_0x3d17a2===_univerjs_core[_0x51568b(0x3bc)][_0x51568b(0x2df)])_0x4cb81f=(_0x54adc1-_0x5477a4)/0x2;else{if(_0x3d17a2===_univerjs_core['VerticalAlign'][_0x51568b(0x350)])_0x4cb81f=_0x54adc1-_0x5477a4;}_0x4407a9=_0x54adc1,_0x1add31({'editorHeight':_0x245e9e[_0x51568b(0x622)]*_0x381a78,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x3fbae8=0x0;if(_0x3d17a2===_univerjs_core['VerticalAlign'][_0x51568b(0x2df)])_0x3fbae8=(_0x54adc1-_0x5477a4)/0x2;else{if(_0x3d17a2===_univerjs_core[_0x51568b(0x3bc)][_0x51568b(0x350)])_0x3fbae8=_0x54adc1-_0x5477a4;}_0x4cb81f=0x0,_0x1add31({'editorHeight':_0x5477a4*_0x381a78,'marginTop':_0x3fbae8*_0x381a78,'useAbsolutePosition':!![]}),_0x4407a9=_0x5477a4;}_0x4bf4dd&&(_0x4bf4dd[_0x51568b(0x255)]({'pageSize':{'width':_0x245e9e[_0x51568b(0x1f2)],'height':_0x4407a9}}),_0x4bf4dd[_0x51568b(0x566)]({'t':_0x4cb81f}),_0x33b446[_0x51568b(0x3ba)]());if(_0x8b3886){const _0x29bdf6=_0x245e9e[_0x51568b(0x1f2)]*_0x465fed,_0x52d896=_0x4407a9*_0x381a78;_0x8b3886['scene']['transformByState']({'width':_0x29bdf6*_0x528b68/_0x1580c4,'height':_0x52d896*_0x528b68/_0x1f3cf8,'scaleX':_0x1580c4*_0x528b68,'scaleY':_0x1f3cf8*_0x528b68});if(_0x8b3886['mainComponent'])_0x8b3886[_0x51568b(0x64f)][_0x51568b(0x124)](_0x29bdf6*_0x528b68/_0x1580c4,_0x52d896*_0x528b68/_0x1f3cf8);}},[_0x52b0f8,_0x56e2bd,_0x36224d,_0x3ba9f1,_0x58a683,_0x5c9ff9,_0x506881,_0x2909c7,_0x465fed,_0x381a78,_0x1add31]),_0x4f3504=(0x0,react[_0x5cc577(0x39f)])((_0x266603=![])=>{const _0x5a428a=_0x5cc577;_0x32f72d(),_0x2aa053[_0x5a428a(0x494)]=requestAnimationFrame(()=>{const _0x4f588f=_0x5a428a;_0x59d1b9();if(_0x266603)_0x416ed6(![]);_0x2aa053[_0x4f588f(0x494)]=null,_0x8fb4f0[_0x4f588f(0x494)]=window[_0x4f588f(0x1e2)](()=>{const _0x2cff86=_0x4f588f;_0x59d1b9();if(_0x266603)_0x416ed6(![]);_0x8fb4f0[_0x2cff86(0x494)]=null;},0x14);});},[_0x59d1b9,_0x32f72d,_0x416ed6]);(0x0,react[_0x5cc577(0x36a)])(()=>{const _0x3c7938=_0x5cc577;if(!_0x52b0f8||!_0x5ec97a)return;const {shapeId:_0x4e6901,unitId:_0x34afb4,subUnitId:_0x3b7af9}=_0x5ec97a;if(_0x4c3143){var _0x2a252f,_0x113bde,_0x20e009,_0x530736;const _0x28547a=stripShapeTextDocumentLayout(_0x52b0f8[_0x3c7938(0x39b)]()),_0x167418=_0x58a683(),_0x5cb8f1={'va':(_0x2a252f=_0x167418===null||_0x167418===void 0x0?void 0x0:_0x167418[_0x3c7938(0xfa)])!==null&&_0x2a252f!==void 0x0?_0x2a252f:_univerjs_core[_0x3c7938(0x3bc)]['TOP'],'ha':(_0x113bde=_0x167418===null||_0x167418===void 0x0?void 0x0:_0x167418[_0x3c7938(0x13c)])!==null&&_0x113bde!==void 0x0?_0x113bde:_univerjs_core['HorizontalAlign'][_0x3c7938(0x39c)],'doc':_0x28547a};_0x1c5a70[_0x3c7938(0x405)](UpdateShapeDataCommand['id'],{'unitId':_0x34afb4,'subUnitId':_0x3b7af9,'shapeId':_0x4e6901,'shapeData':{'shapeText':{'isHorizontal':(_0x20e009=_0x167418===null||_0x167418===void 0x0?void 0x0:_0x167418[_0x3c7938(0x61d)])!==null&&_0x20e009!==void 0x0?_0x20e009:!![],'dataModel':_0x5cb8f1}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x530736=_0x167418===null||_0x167418===void 0x0?void 0x0:_0x167418['isHorizontal'])!==null&&_0x530736!==void 0x0?_0x530736:!![],'dataModel':_0x29e259[_0x3c7938(0x494)]}}}});return;}const _0x524335=_0x58a683();if(_0x524335===null||_0x524335===void 0x0?void 0x0:_0x524335[_0x3c7938(0x10d)]){_0x29e259[_0x3c7938(0x494)]={'va':_0x524335[_0x3c7938(0xfa)],'ha':_0x524335[_0x3c7938(0x13c)],'doc':_univerjs_core[_0x3c7938(0x19e)][_0x3c7938(0x146)](_0x524335[_0x3c7938(0x10d)])};const _0x7fadfd=prepareShapeTextDocumentData(_0x524335['doc'],{'isHorizontal':!![],'textRect':_0x524335['textRect'],'verticalAlign':_0x524335[_0x3c7938(0xfa)],'horizontalAlign':_0x524335[_0x3c7938(0x13c)]});return _0x52b0f8['setDocumentData'](_0x7fadfd,null),()=>{const _0x37a189=_0x3c7938;var _0x3dc0ea,_0x16c61a,_0x4bfcf4,_0x528471;const _0x5b78b0=stripShapeTextDocumentLayout(_0x52b0f8['getDocumentData']()),_0x47183b=_0x58a683(),_0x477969={'va':(_0x3dc0ea=_0x47183b===null||_0x47183b===void 0x0?void 0x0:_0x47183b[_0x37a189(0xfa)])!==null&&_0x3dc0ea!==void 0x0?_0x3dc0ea:_univerjs_core[_0x37a189(0x3bc)][_0x37a189(0x391)],'ha':(_0x16c61a=_0x47183b===null||_0x47183b===void 0x0?void 0x0:_0x47183b[_0x37a189(0x13c)])!==null&&_0x16c61a!==void 0x0?_0x16c61a:_univerjs_core[_0x37a189(0x3b6)][_0x37a189(0x39c)],'doc':_0x5b78b0};_0x1c5a70['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x34afb4,'subUnitId':_0x3b7af9,'shapeId':_0x4e6901,'shapeData':{'shapeText':{'isHorizontal':(_0x4bfcf4=_0x47183b===null||_0x47183b===void 0x0?void 0x0:_0x47183b[_0x37a189(0x61d)])!==null&&_0x4bfcf4!==void 0x0?_0x4bfcf4:!![],'dataModel':_0x477969}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x528471=_0x47183b===null||_0x47183b===void 0x0?void 0x0:_0x47183b[_0x37a189(0x61d)])!==null&&_0x528471!==void 0x0?_0x528471:!![],'dataModel':_0x29e259[_0x37a189(0x494)]}}}});};}else _0x52b0f8[_0x3c7938(0x154)](_0x59c000,null);},[_0x52b0f8,_0x5ec97a,_0x4c3143]),(0x0,react[_0x5cc577(0x36a)])(()=>{const _0x4dbc08=_0x5cc577;if(!_0x52b0f8||!_0x5ec97a)return;return _0x11b821['blur'](!![]),_0x59d1b9(),_0x531355[_0x4dbc08(0x494)]=requestAnimationFrame(()=>{const _0x3dddc4=_0x4dbc08;_0x11b821['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x416ed6(),_0x4f3504(),_0x531355[_0x3dddc4(0x494)]=null;}),()=>{const _0x319152=_0x4dbc08;_0x531355[_0x319152(0x494)]!==null&&(cancelAnimationFrame(_0x531355['current']),_0x531355[_0x319152(0x494)]=null),_0x32f72d(),_0x11b821['blur'](!![]);};},[_0x52b0f8,_0x5ec97a,_0x11b821,_0x59d1b9,_0x416ed6,_0x4f3504,_0x32f72d]),(0x0,react[_0x5cc577(0x36a)])(()=>{if(!_0x52b0f8)return;const _0x4048ae=_0x1c5a70['onCommandExecuted'](_0x594c5e=>{const _0x3cc86c=_0x2c57;if(_0x594c5e['id']===_univerjs_docs[_0x3cc86c(0x52f)]['id']){if(_0x594c5e['params']['unitId']===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x5ec97a){if(!_0x5ec97a[_0x3cc86c(0x48b)])_0xe57d80[_0x3cc86c(0x290)]({..._0x5ec97a,'visible':!![]});else _0x59d1b9();}}}if(_0x594c5e['id']===SetShapeTextVerticalAlignCommand['id'])_0x4f3504(!![]);});return()=>{const _0x4ed30b=_0x2c57;_0x4048ae[_0x4ed30b(0x467)]();};},[_0x52b0f8,_0x59d1b9,_0x5ec97a,_0x4f3504,_0xe57d80]),(0x0,react[_0x5cc577(0x36a)])(()=>{return _0x59d1b9(),_0x4f3504(),()=>{_0x32f72d();};},[_0x59d1b9,_0x4f3504,_0x32f72d]);const _0x48f8ee=(0x0,react['useMemo'])(()=>{const _0x4e8833=_0x5cc577;var _0x337a81;const _0x4c8cc8=(_0x337a81=_0x5c9ff9())!==null&&_0x337a81!==void 0x0?_0x337a81:{'left':0x0,'top':0x0,'width':_0x506881/_0x465fed,'height':_0x2909c7/_0x381a78},_0xf16635=_0x4c8cc8[_0x4e8833(0x358)]*_0x465fed,_0x1f80a8=_0x4c8cc8[_0x4e8833(0x169)]*_0x381a78,_0x1a8db5=_0x4c8cc8[_0x4e8833(0x1f2)]*_0x465fed;if(_0x17d0bc[_0x4e8833(0x2bb)])return{'top':_0x1f80a8+_0x17d0bc[_0x4e8833(0x1d4)],'left':_0xf16635,'width':_0x1a8db5,'height':_0x17d0bc[_0x4e8833(0x544)]};return{'top':_0x1f80a8,'left':_0xf16635,'width':_0x1a8db5,'height':_0x17d0bc[_0x4e8833(0x544)]};},[_0x17d0bc,_0x5c9ff9,_0x506881,_0x2909c7,_0x465fed,_0x381a78]),_0x178588=(0x0,react[_0x5cc577(0x300)])(()=>{const _0x427ccd=_0x58a683(),_0x5c4725=_0x427ccd===null||_0x427ccd===void 0x0?void 0x0:_0x427ccd['transform'];if(_0x5c4725)return _0x5c4725||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x58a683]);return(0x0,react_jsx_runtime[_0x5cc577(0x430)])(_0x5cc577(0x301),{'ref':_0x8cbd02,'data-u-comp':'shape-text-editor','className':_0x5cc577(0x21b),'style':{'transform':_0x5cc577(0x2fc)+_0x178588[_0x5cc577(0x163)]+'deg)\x20scaleY('+(_0x178588[_0x5cc577(0x282)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x5cc577(0x430)])('div',{'ref':_0x5cbc8a,'className':'univer-absolute','data-u-comp':_0x5cc577(0x256),'style':_0x48f8ee,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor[_0x3ce055(0x24a)]='ShapeEditor';const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x4892d6,_0x5371f7,_0x2cf95f,_0x33fc17){const _0x20c394=_0x3ce055,{scaleX:_0x45e7c4,scaleY:_0x5c00ad}=_0x2cf95f[_0x20c394(0x40c)](),{startColumn:_0x4e2ef1,startRow:_0x3dcf46,xSplit:_0x3e0cc5,ySplit:_0x5b53ce}=_0x33fc17[_0x20c394(0x519)]['getFreeze'](),_0x6b66e9=_0x2cf95f[_0x20c394(0x2ec)](_univerjs_engine_render[_0x20c394(0x326)]['VIEW_MAIN']),_0x230f81=_0x2cf95f[_0x20c394(0x2ec)](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x20c394(0x640)]),_0x5b07ef=_0x2cf95f[_0x20c394(0x2ec)](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x20c394(0x2f4)]),_0x315d75=_0x2cf95f[_0x20c394(0x2ec)](_univerjs_engine_render[_0x20c394(0x326)]['VIEW_MAIN_LEFT']),{rowHeaderWidth:_0x3c5b50,columnHeaderHeight:_0x27e3a5}=_0x33fc17,_0x2a971e=_0x33fc17[_0x20c394(0x288)](_0x3dcf46)+_0x27e3a5,_0x1542ca=_0x33fc17[_0x20c394(0x5a0)](_0x4e2ef1)+_0x3c5b50,_0x2c5729=_0x33fc17['rowStartY'](_0x3dcf46-_0x5b53ce)+_0x27e3a5,_0x29358f=_0x33fc17[_0x20c394(0x5a0)](_0x4e2ef1-_0x3e0cc5)+_0x3c5b50,_0x1c4bb2=[],_0x5eb387=(_0x2a8f0c,_0x5ad24,_0x5098fd)=>{if(!_0x2a8f0c)return null;const {viewportScrollX:_0x15280e,viewportScrollY:_0x168134}=_0x2a8f0c;let _0x52b234,_0x1d46d4;if(_0x5ad24)_0x52b234=(_0x4892d6-(_0x29358f-_0x3c5b50))*_0x45e7c4;else _0x52b234=(_0x4892d6-_0x15280e)*_0x45e7c4;if(_0x5098fd)_0x1d46d4=(_0x5371f7-(_0x2c5729-_0x27e3a5))*_0x5c00ad;else _0x1d46d4=(_0x5371f7-_0x168134)*_0x5c00ad;return{'domX':_0x52b234,'domY':_0x1d46d4};},_0x36922c=_0x4892d6<_0x1542ca&&_0x3e0cc5>0x0,_0x4d9fac=_0x5371f7<_0x2a971e&&_0x5b53ce>0x0,_0x48757f=_0x4892d6>=_0x1542ca||_0x3e0cc5===0x0,_0x4e6033=_0x5371f7>=_0x2a971e||_0x5b53ce===0x0;if(_0x36922c&&_0x4d9fac&&_0x230f81){const _0x2cc902=_0x5eb387(_0x230f81,!![],!![]);if(_0x2cc902)_0x1c4bb2['push'](_0x2cc902);}if(_0x4d9fac&&_0x48757f&&_0x5b07ef){const _0x50e5cc=_0x5eb387(_0x5b07ef,![],!![]);if(_0x50e5cc)_0x1c4bb2[_0x20c394(0x20e)](_0x50e5cc);}if(_0x36922c&&_0x4e6033&&_0x315d75){const _0x21f7df=_0x5eb387(_0x315d75,!![],![]);if(_0x21f7df)_0x1c4bb2['push'](_0x21f7df);}if(_0x48757f&&_0x4e6033&&_0x6b66e9){const _0x4ffa63=_0x5eb387(_0x6b66e9,![],![]);if(_0x4ffa63)_0x1c4bb2[_0x20c394(0x20e)](_0x4ffa63);}if(_0x1c4bb2[_0x20c394(0x49c)]===0x0){var _0xf35c03,_0xe7871a;return{'domX':(_0x4892d6-((_0xf35c03=_0x6b66e9===null||_0x6b66e9===void 0x0?void 0x0:_0x6b66e9[_0x20c394(0x361)])!==null&&_0xf35c03!==void 0x0?_0xf35c03:0x0))*_0x45e7c4,'domY':(_0x5371f7-((_0xe7871a=_0x6b66e9===null||_0x6b66e9===void 0x0?void 0x0:_0x6b66e9[_0x20c394(0x14b)])!==null&&_0xe7871a!==void 0x0?_0xe7871a:0x0))*_0x5c00ad};}let _0x2087d5=_0x1c4bb2[0x0]['domX'],_0x25c1ea=_0x1c4bb2[0x0]['domY'];for(const _0x395f18 of _0x1c4bb2){if(_0x395f18[_0x20c394(0x354)]>_0x2087d5)_0x2087d5=_0x395f18[_0x20c394(0x354)];if(_0x395f18[_0x20c394(0x4a1)]>_0x25c1ea)_0x25c1ea=_0x395f18[_0x20c394(0x4a1)];}return{'domX':_0x2087d5,'domY':_0x25c1ea};}function calcShapePosition(_0x134a33,_0x5ba9a3,_0x297abc,_0x13d8d3,_0x5013a6,_0x11d267,_0xf64db0){const {scaleX:_0x2519ca,scaleY:_0x129e42}=_0x11d267['getAncestorScale'](),{domX:_0x3d8c85,domY:_0x1fd176}=calcBestDOMPositionForFreezeZones(_0x134a33,_0x5ba9a3,_0x11d267,_0xf64db0);return{'left':_0x3d8c85,'top':_0x1fd176,'width':_0x297abc*_0x2519ca,'height':_0x13d8d3*_0x129e42,'angle':_0x5013a6,'scaleX':_0x2519ca,'scaleY':_0x129e42};}function useShapePosition(_0x5bf632){const _0x48b2dd=_0x3ce055,{editingParams:_0x4c1079,scene:_0x1c2bde,skeleton:_0x2ba248,getShapeTransform:_0x56a00d}=_0x5bf632,[_0x1c8a20,_0x427d52]=(0x0,react[_0x48b2dd(0x2ef)])(DEFAULT_HIDDEN_POSITION),_0x2bb0dc=(0x0,react[_0x48b2dd(0x399)])(_0x1c8a20);_0x2bb0dc[_0x48b2dd(0x494)]=_0x1c8a20;const _0x1f8ed9=(0x0,react['useCallback'])(()=>{const _0x4850a9=_0x48b2dd;if(!_0x4c1079||!_0x1c2bde||!_0x2ba248){if(_0x2bb0dc[_0x4850a9(0x494)]!==DEFAULT_HIDDEN_POSITION)_0x427d52(DEFAULT_HIDDEN_POSITION);return;}const _0x514cdb=_0x56a00d();if(!_0x514cdb){if(_0x2bb0dc[_0x4850a9(0x494)]!==DEFAULT_HIDDEN_POSITION)_0x427d52(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x398dc9,top:_0x1679af,width:_0x4f6903,height:_0x190045,angle:_0x6c22c2}=_0x514cdb;if(!_0x4c1079['visible']){const {scaleX:_0x312f3f,scaleY:_0x400d9a}=_0x1c2bde[_0x4850a9(0x40c)]();_0x427d52({'left':-0x270f,'top':-0x270f,'width':_0x4f6903*_0x312f3f,'height':_0x190045*_0x400d9a,'angle':0x0,'scaleX':_0x312f3f,'scaleY':_0x400d9a});return;}_0x427d52(calcShapePosition(_0x398dc9,_0x1679af,_0x4f6903,_0x190045,_0x6c22c2,_0x1c2bde,_0x2ba248));},[_0x4c1079,_0x1c2bde,_0x2ba248,_0x56a00d]);return(0x0,react[_0x48b2dd(0x36a)])(()=>{_0x1f8ed9();},[_0x4c1079,_0x1f8ed9]),{'position':_0x1c8a20,'updatePosition':_0x1f8ed9};}const ShapePositionWrapper=(0x0,react[_0x3ce055(0x438)])(_0xd35833=>{const _0x226671=_0x3ce055,{children:_0x4d06f4,onPositionUpdate:_0x506523}=_0xd35833,_0x293a9a=(0x0,react[_0x226671(0x399)])(null),_0x2e2e9f=(0x0,_univerjs_ui[_0x226671(0x47b)])(ShapeTextEditingService),_0x33b43f=(0x0,_univerjs_ui[_0x226671(0x47b)])(_univerjs_engine_render[_0x226671(0x2b4)]),_0x3f090e=(0x0,_univerjs_ui[_0x226671(0x25e)])(_0x2e2e9f[_0x226671(0x3db)]),_0x19e0c4=(0x0,react[_0x226671(0x300)])(()=>{const _0x4c3beb=_0x226671;if(!_0x3f090e)return null;return _0x33b43f[_0x4c3beb(0x155)](_0x3f090e[_0x4c3beb(0x5df)]);},[_0x3f090e,_0x33b43f]),_0x5bfea2=(0x0,react[_0x226671(0x300)])(()=>{const _0x3a5fe1=_0x226671;var _0x295e1a;return(_0x295e1a=_0x19e0c4===null||_0x19e0c4===void 0x0?void 0x0:_0x19e0c4[_0x3a5fe1(0x1bc)])!==null&&_0x295e1a!==void 0x0?_0x295e1a:null;},[_0x19e0c4]),{position:_0x1a330e,updatePosition:_0x54de3a}=useShapePosition({'editingParams':_0x3f090e,'scene':_0x5bfea2,'skeleton':(0x0,react['useMemo'])(()=>{const _0x229d18=_0x226671;var _0x1e8112,_0xd9d9fa;if(!_0x3f090e||!_0x19e0c4)return null;return(_0x1e8112=(_0xd9d9fa=_0x19e0c4[_0x229d18(0x512)](_univerjs_sheets_ui[_0x229d18(0x30b)])['getSkeletonParam'](_0x3f090e[_0x229d18(0x54e)]))===null||_0xd9d9fa===void 0x0?void 0x0:_0xd9d9fa['skeleton'])!==null&&_0x1e8112!==void 0x0?_0x1e8112:null;},[_0x3f090e,_0x19e0c4]),'getShapeTransform':(0x0,react[_0x226671(0x39f)])(()=>{const _0x27b861=_0x226671;if(!_0x3f090e||!_0x5bfea2)return null;const _0x46e08e=_0x3f090e['shapeKey'],_0x87a857=_0x5bfea2[_0x27b861(0x5f3)](_0x46e08e);if(_0x87a857 instanceof DrawingShape)return{'left':_0x87a857[_0x27b861(0x358)],'top':_0x87a857['top'],'width':_0x87a857[_0x27b861(0x1f2)],'height':_0x87a857[_0x27b861(0x622)],'angle':_0x87a857['angle']};return null;},[_0x3f090e,_0x5bfea2])}),_0x3ef5f2=(0x0,react['useCallback'])(()=>{const _0x4f8736=_0x226671,_0x46d25d=_0x293a9a['current'];if(!_0x46d25d)return;_0x46d25d['style'][_0x4f8736(0x358)]=_0x1a330e[_0x4f8736(0x358)]+'px',_0x46d25d[_0x4f8736(0x2c6)][_0x4f8736(0x169)]=_0x1a330e[_0x4f8736(0x169)]+'px',_0x46d25d['style'][_0x4f8736(0x1f2)]=_0x1a330e['width']+'px',_0x46d25d[_0x4f8736(0x2c6)][_0x4f8736(0x622)]=_0x1a330e[_0x4f8736(0x622)]+'px';},[_0x1a330e]);return(0x0,react[_0x226671(0x36a)])(()=>{const _0x34f24e=_0x226671;_0x3ef5f2(),_0x506523===null||_0x506523===void 0x0||_0x506523({'width':_0x1a330e[_0x34f24e(0x1f2)],'height':_0x1a330e[_0x34f24e(0x622)],'scaleX':_0x1a330e[_0x34f24e(0x40a)],'scaleY':_0x1a330e[_0x34f24e(0x100)]});},[_0x1a330e,_0x3ef5f2,_0x506523]),(0x0,react[_0x226671(0x36a)])(()=>{const _0x2147e8=_0x226671;if(!_0x5bfea2)return;const _0x3f9b05=_0x5bfea2['getViewport'](_univerjs_engine_render[_0x2147e8(0x326)][_0x2147e8(0x384)]);if(!_0x3f9b05)return;const _0x2cd255=_0x3f9b05[_0x2147e8(0x5f5)][_0x2147e8(0x5c9)](()=>{_0x54de3a();});return()=>{_0x2cd255['unsubscribe']();};},[_0x5bfea2,_0x54de3a]),(0x0,react['useEffect'])(()=>{const _0x488f04=_0x226671;if(!_0x3f090e||!_0x5bfea2)return;const _0x4d6900=_0x3f090e[_0x488f04(0x355)],_0x540028=_0x5bfea2[_0x488f04(0x5f3)](_0x4d6900);if(_0x540028 instanceof DrawingShape){const _0x2d0667=_0x540028[_0x488f04(0x557)]['subscribeEvent'](()=>{_0x54de3a();});return()=>{const _0x385a1a=_0x488f04;_0x2d0667[_0x385a1a(0x1c0)]();};}},[_0x3f090e,_0x5bfea2,_0x54de3a]),(0x0,react_jsx_runtime[_0x226671(0x430)])(_0x226671(0x301),{'ref':_0x293a9a,'data-u-comp':_0x226671(0x265),'className':'univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','style':(0x0,react[_0x226671(0x300)])(()=>({'left':_0x1a330e[_0x226671(0x358)],'top':_0x1a330e[_0x226671(0x169)],'width':_0x1a330e['width'],'height':_0x1a330e[_0x226671(0x622)],'pointerEvents':(_0x3f090e===null||_0x3f090e===void 0x0?void 0x0:_0x3f090e[_0x226671(0x48b)])?_0x226671(0x419):'none'}),[_0x1a330e,_0x3f090e===null||_0x3f090e===void 0x0?void 0x0:_0x3f090e[_0x226671(0x48b)]]),'children':_0x4d06f4});});ShapePositionWrapper['displayName']=_0x3ce055(0x28b);const ShapeTextEditorContainer=(0x0,react[_0x3ce055(0x438)])(()=>{const _0xdd2e09=_0x3ce055,_0x45b009=(0x0,_univerjs_ui[_0xdd2e09(0x25e)])((0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService)[_0xdd2e09(0x3db)]),[_0x3b352d,_0x27ab1a]=(0x0,react[_0xdd2e09(0x2ef)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x5a94d1=(0x0,react['useCallback'])(_0x471ff3=>{const _0xb3b86c=_0xdd2e09;_0x27ab1a({'width':_0x471ff3[_0xb3b86c(0x1f2)],'height':_0x471ff3['height'],'scaleX':_0x471ff3[_0xb3b86c(0x40a)],'scaleY':_0x471ff3[_0xb3b86c(0x100)]});},[]);if(!(_0x45b009===null||_0x45b009===void 0x0?void 0x0:_0x45b009[_0xdd2e09(0x48b)]))return null;return(0x0,react_jsx_runtime[_0xdd2e09(0x430)])(ShapePositionWrapper,{'onPositionUpdate':_0x5a94d1,'children':(0x0,react_jsx_runtime['jsx'])(ShapeEditor,{'containerWidth':_0x3b352d['width'],'containerHeight':_0x3b352d[_0xdd2e09(0x622)],'scaleX':_0x3b352d[_0xdd2e09(0x40a)],'scaleY':_0x3b352d['scaleY']})});});ShapeTextEditorContainer['displayName']='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x3ce055(0x4d3)]{constructor(_0x2fa045=defaultPluginConfig,_0x2d19bc,_0x568ae0,_0x13849e,_0x4a7290){const _0x396673=_0x3ce055;super(),this[_0x396673(0x38a)]=_0x2fa045,this[_0x396673(0x552)]=_0x2d19bc,this[_0x396673(0x597)]=_0x568ae0,this[_0x396673(0x320)]=_0x13849e,this[_0x396673(0x637)]=_0x4a7290;const {..._0x10c2f}=(0x0,_univerjs_core[_0x396673(0x243)])({},defaultPluginConfig,this[_0x396673(0x38a)]);this['_configService'][_0x396673(0x33f)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x10c2f),this[_0x396673(0x4f1)]();}[_0x3ce055(0x5af)](){const _0x13d293=_0x3ce055;(0x0,_univerjs_core[_0x13d293(0x5cf)])(this[_0x13d293(0x552)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x3ce055(0x599)](){const _0x2a52e6=_0x3ce055;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]]['forEach'](_0x3cc4c4=>this[_0x2a52e6(0x552)][_0x2a52e6(0x2c3)](_0x3cc4c4)),(0x0,_univerjs_core[_0x2a52e6(0x5cf)])(this[_0x2a52e6(0x552)],[[SheetShapeClipboardController]]),this[_0x2a52e6(0x637)]['registerRenderModule'](_univerjs_core[_0x2a52e6(0x34b)]['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x2a52e6(0x637)][_0x2a52e6(0x4d2)](_univerjs_core[_0x2a52e6(0x34b)][_0x2a52e6(0x1db)],[SheetShapeAdjustController]),this[_0x2a52e6(0x637)][_0x2a52e6(0x4d2)](_univerjs_core[_0x2a52e6(0x34b)][_0x2a52e6(0x1db)],[ImageClipAdjustController]),this[_0x2a52e6(0x637)][_0x2a52e6(0x4d2)](_univerjs_core['UniverInstanceType'][_0x2a52e6(0x1db)],[SheetShapeConnectorController]),this['_renderManagerService'][_0x2a52e6(0x4d2)](_univerjs_core['UniverInstanceType'][_0x2a52e6(0x1db)],[ShapeTextEditingRenderController]);}['onStarting'](){const _0x31b91d=_0x3ce055,_0x3c3dd4=this['_injector'];_0x3c3dd4['get'](_univerjs_ui[_0x31b91d(0x3a2)])[_0x31b91d(0x40e)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x31b91d(0x36b)](_0x270f18=>_0x3c3dd4['add'](_0x270f18)),(0x0,_univerjs_core[_0x31b91d(0x5cf)])(this[_0x31b91d(0x552)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x3ce055(0x4f1)](){const _0x1e1a72=_0x3ce055;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x1e1a72(0x36b)](_0x1fbfed=>this['disposeWithMe'](this[_0x1e1a72(0x597)]['registerCommand'](_0x1fbfed)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x3ce055(0x3bd),_univerjs_core[_0x3ce055(0x34b)][_0x3ce055(0x1db)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x3ce055(0x57d),_0x3ce055(0x56f)),_defineProperty(UniverSheetsShapeUIPlugin,_0x3ce055(0x3aa),name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_sheets_drawing_ui[_0x3ce055(0x547)],_univerjs_pro_sheets_shape[_0x3ce055(0x23c)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x3ce055(0x4fc)])),__decorateParam(0x2,_univerjs_core[_0x3ce055(0x4f7)]),__decorateParam(0x3,_univerjs_core[_0x3ce055(0x2a0)]),__decorateParam(0x4,_univerjs_engine_render['IRenderManagerService'])],UniverSheetsShapeUIPlugin),exports['SetShapeTextFontSizeCommand']=SetShapeTextFontSizeCommand,exports['SetShapeTextFontSizeDecreaseCommand']=SetShapeTextFontSizeDecreaseCommand,exports[_0x3ce055(0x581)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x3ce055(0x2ae)]=SetShapeTextHorizontalAlignCommand,exports['SetShapeTextVerticalAlignCommand']=SetShapeTextVerticalAlignCommand,exports[_0x3ce055(0x215)]=ShapeDocAlignCommand,Object[_0x3ce055(0x475)](exports,'SheetsShapeUIController',{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x3ce055(0x475)](exports,_0x3ce055(0x535),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x3ce055(0x3d1)]=UpdateShapeDataCommand;
1
+ const _0x48b1be=_0x1fb6;(function(_0x58cb43,_0x4e114f){const _0x1aa63c=_0x1fb6,_0x35ec3a=_0x58cb43();while(!![]){try{const _0x3cb818=parseInt(_0x1aa63c(0x233))/0x1+-parseInt(_0x1aa63c(0x504))/0x2*(-parseInt(_0x1aa63c(0x3a6))/0x3)+parseInt(_0x1aa63c(0x536))/0x4*(-parseInt(_0x1aa63c(0x3bb))/0x5)+parseInt(_0x1aa63c(0x2f0))/0x6+parseInt(_0x1aa63c(0x295))/0x7+parseInt(_0x1aa63c(0x43a))/0x8*(-parseInt(_0x1aa63c(0x3e4))/0x9)+-parseInt(_0x1aa63c(0x1fa))/0xa*(parseInt(_0x1aa63c(0x1c4))/0xb);if(_0x3cb818===_0x4e114f)break;else _0x35ec3a['push'](_0x35ec3a['shift']());}catch(_0x362507){_0x35ec3a['push'](_0x35ec3a['shift']());}}}(_0x1d37,0xe1f12),Object[_0x48b1be(0x546)](exports,Symbol[_0x48b1be(0x2cf)],{'value':_0x48b1be(0x63b)}));var __create=Object[_0x48b1be(0x46b)],__defProp=Object[_0x48b1be(0x546)],__getOwnPropDesc=Object[_0x48b1be(0x25c)],__getOwnPropNames=Object['getOwnPropertyNames'],__getProtoOf=Object[_0x48b1be(0x2ec)],__hasOwnProp=Object[_0x48b1be(0x666)][_0x48b1be(0x29f)],__copyProps=(_0x5981e5,_0x25eba3,_0x4884e8,_0x320bb6)=>{const _0xdd8a58=_0x48b1be;if(_0x25eba3&&typeof _0x25eba3==='object'||typeof _0x25eba3===_0xdd8a58(0x65d))for(var _0x39f4e4=__getOwnPropNames(_0x25eba3),_0x40a45c=0x0,_0x431b76=_0x39f4e4[_0xdd8a58(0x42d)],_0x124cdb;_0x40a45c<_0x431b76;_0x40a45c++){_0x124cdb=_0x39f4e4[_0x40a45c],!__hasOwnProp[_0xdd8a58(0x497)](_0x5981e5,_0x124cdb)&&_0x124cdb!==_0x4884e8&&__defProp(_0x5981e5,_0x124cdb,{'get':(_0x1d62b8=>_0x25eba3[_0x1d62b8])[_0xdd8a58(0x100)](null,_0x124cdb),'enumerable':!(_0x320bb6=__getOwnPropDesc(_0x25eba3,_0x124cdb))||_0x320bb6[_0xdd8a58(0x15a)]});}return _0x5981e5;},__toESM=(_0x78ec52,_0x151a99,_0x53bdff)=>(_0x53bdff=_0x78ec52!=null?__create(__getProtoOf(_0x78ec52)):{},__copyProps(_0x151a99||!_0x78ec52||!_0x78ec52[_0x48b1be(0x404)]?__defProp(_0x53bdff,'default',{'value':_0x78ec52,'enumerable':!![]}):_0x53bdff,_0x78ec52));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x31b2c6){'@babel/helpers - typeof';const _0x5c46df=_0x48b1be;return _typeof=_0x5c46df(0x65d)==typeof Symbol&&'symbol'==typeof Symbol[_0x5c46df(0x23c)]?function(_0x1f0d0f){return typeof _0x1f0d0f;}:function(_0x36820c){const _0x38ecb4=_0x5c46df;return _0x36820c&&'function'==typeof Symbol&&_0x36820c['constructor']===Symbol&&_0x36820c!==Symbol[_0x38ecb4(0x666)]?_0x38ecb4(0x41b):typeof _0x36820c;},_typeof(_0x31b2c6);}function toPrimitive(_0x21ce29,_0x3df8eb){const _0x4cef08=_0x48b1be;if(_0x4cef08(0x334)!=_typeof(_0x21ce29)||!_0x21ce29)return _0x21ce29;var _0x48c66d=_0x21ce29[Symbol[_0x4cef08(0x43f)]];if(void 0x0!==_0x48c66d){var _0x8215cb=_0x48c66d[_0x4cef08(0x497)](_0x21ce29,_0x3df8eb||'default');if(_0x4cef08(0x334)!=_typeof(_0x8215cb))return _0x8215cb;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4cef08(0x57d)===_0x3df8eb?String:Number)(_0x21ce29);}function toPropertyKey(_0x10fb19){const _0x1bb7b2=_0x48b1be;var _0x245ca8=toPrimitive(_0x10fb19,_0x1bb7b2(0x57d));return _0x1bb7b2(0x41b)==_typeof(_0x245ca8)?_0x245ca8:_0x245ca8+'';}function _defineProperty(_0x2f9845,_0x1aebb2,_0x21011e){const _0x512439=_0x48b1be;return(_0x1aebb2=toPropertyKey(_0x1aebb2))in _0x2f9845?Object[_0x512439(0x546)](_0x2f9845,_0x1aebb2,{'value':_0x21011e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f9845[_0x1aebb2]=_0x21011e,_0x2f9845;}var ShapeTextEditingService=class extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(..._0x30f3d0){const _0x429eb0=_0x48b1be;super(..._0x30f3d0),_defineProperty(this,_0x429eb0(0x5b5),new rxjs['BehaviorSubject'](null)),_defineProperty(this,_0x429eb0(0x264),this[_0x429eb0(0x5b5)][_0x429eb0(0x5de)]()),_defineProperty(this,_0x429eb0(0x4ec),new rxjs[(_0x429eb0(0x42c))](![])),_defineProperty(this,'onSavingEditorData$',this['_onSavingEditorData$'][_0x429eb0(0x5de)]());}[_0x48b1be(0x570)](){const _0x3b9be9=_0x48b1be;this[_0x3b9be9(0x5b5)][_0x3b9be9(0x194)](null),this[_0x3b9be9(0x5b5)][_0x3b9be9(0x3fc)](),this['_onSavingEditorData$'][_0x3b9be9(0x194)](![]),this['_onSavingEditorData$'][_0x3b9be9(0x3fc)](),super[_0x3b9be9(0x570)]();}[_0x48b1be(0x431)](_0x3b6a6f){const _0x5747cd=_0x48b1be;this[_0x5747cd(0x5b5)][_0x5747cd(0x194)](_0x3b6a6f);if(_0x3b6a6f===null||_0x3b6a6f===void 0x0)this['_onSavingEditorData$'][_0x5747cd(0x194)](![]);}[_0x48b1be(0x4e0)](_0x4bb4ac){const _0x576cfd=_0x48b1be;this[_0x576cfd(0x4ec)]['next'](_0x4bb4ac);}[_0x48b1be(0x36b)](){const _0x4c8129=_0x48b1be;return this[_0x4c8129(0x5b5)]['getValue']();}};function getShapeDataDiff(_0x7aa781,_0x2f5761){const _0x159139=_0x48b1be,_0x1d4e58={};for(const _0x22465a of Object['keys'](_0x2f5761)){const _0x280afb=_0x2f5761[_0x22465a],_0x3e310b=_0x7aa781[_0x22465a];if(_0x280afb===void 0x0)continue;if(_0x3e310b===void 0x0){_0x1d4e58[_0x22465a]=void 0x0;continue;}if(typeof _0x280afb==='object'&&_0x280afb!==null&&!Array[_0x159139(0x5dc)](_0x280afb)&&typeof _0x3e310b===_0x159139(0x334)&&_0x3e310b!==null&&!Array['isArray'](_0x3e310b))_0x1d4e58[_0x22465a]=getShapeDataDiff(_0x3e310b,_0x280afb);else _0x1d4e58[_0x22465a]=_0x3e310b;}return _0x1d4e58;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x48b1be(0x56a),'handler':(_0xaceaa5,_0x51b086)=>{const _0x479e1b=_0x48b1be,_0x1ba8fc=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x45c284,subUnitId:_0x2b56ef,shapeType:_0x5a8fa1,shapeId:_0x393b7e,shapeData:_0x54a2e5,oldShapeJSON:_0xfcd9c9}=_0x51b086;if(!_0x1ba8fc[_0x479e1b(0x36e)](_0x45c284,_0x2b56ef,_0x393b7e))return![];const _0x1b5389=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_core['ICommandService']),_0x3277ce=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_core['IUndoRedoService']),{oldShapeType:_0x6fbee3,oldShapeData:_0x15df03={}}=_0xfcd9c9,_0x18e6b5=getShapeDataDiff(_0x15df03,_0x54a2e5||{}),_0x4edd91={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x45c284,'subUnitId':_0x2b56ef,'shapeId':_0x393b7e,'shapeType':_0x5a8fa1,'shapeData':_0x54a2e5}},_0x359a23={'id':_univerjs_pro_sheets_shape[_0x479e1b(0x565)]['id'],'params':{'unitId':_0x45c284,'subUnitId':_0x2b56ef,'shapeId':_0x393b7e,'shapeType':_0x6fbee3,'shapeData':_0x18e6b5}};if(_0x1b5389[_0x479e1b(0x449)](_0x4edd91['id'],_0x4edd91[_0x479e1b(0x37c)]))return _0x3277ce[_0x479e1b(0x2ad)]({'unitID':_0x45c284,'undoMutations':[_0x359a23],'redoMutations':[_0x4edd91]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x48b1be(0x122),'handler':async(_0x58c77a,_0x27e7f8)=>{const _0x23c4ef=_0x48b1be;var _0x213349;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_core['IUniverInstanceService'])))return![];const _0x586a46=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_sheets_drawing[_0x23c4ef(0x528)])[_0x23c4ef(0x669)]()['filter'](_0x5ddfc1=>_0x5ddfc1['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x23c4ef(0x614)]);if(_0x586a46[_0x23c4ef(0x42d)]!==0x1)return![];const _0xf509f7=_0x58c77a[_0x23c4ef(0x4fd)](ShapeTextEditingService)['getEditing'](),_0x4caaa9=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7['unitId'])||_0x586a46[0x0][_0x23c4ef(0x1ab)],_0x26b6e4=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7['subUnitId'])||_0x586a46[0x0][_0x23c4ef(0x4dc)],_0x272943=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7[_0x23c4ef(0x1d8)])||_0x586a46[0x0][_0x23c4ef(0x4cb)],_0x5610e1=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_pro_sheets_shape[_0x23c4ef(0x475)])[_0x23c4ef(0x36e)](_0x4caaa9,_0x26b6e4,_0x272943);if(!_0x5610e1)return![];const _0x34faff=_0x5610e1[_0x23c4ef(0x48f)]();if(!_0x34faff||!(_0x23c4ef(0x31a)in _0x34faff))return![];const _0x543324=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_core[_0x23c4ef(0x621)]),{value:_0x3275ed}=_0x27e7f8,_0x15e286=_0x5610e1[_0x23c4ef(0x607)](),_0x4845fa=_0x5610e1['getShapeData'](),_0x5a9455={..._0x34faff['dataModel'],'ha':_0x3275ed};return await _0x543324[_0x23c4ef(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4caaa9,'subUnitId':_0x26b6e4,'shapeId':_0x272943,'shapeType':_0x15e286,'shapeData':{'shapeText':{'isHorizontal':(_0x213349=_0x34faff['isHorizontal'])!==null&&_0x213349!==void 0x0?_0x213349:!![],'dataModel':_0x5a9455}},'oldShapeJSON':{'oldShapeType':_0x15e286,'oldShapeData':_0x4845fa}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':'sheet.command.set-shape-text-font-size','handler':async(_0x160e4c,_0x3a1259)=>{const _0xc71865=_0x48b1be;var _0x1eef6c;if(!_0x3a1259)return![];const {value:_0x240285}=_0x3a1259,_0x141eb4=_0x160e4c['get'](_univerjs_core[_0xc71865(0x621)]),_0x47255c=_0x160e4c[_0xc71865(0x4fd)](ShapeTextEditingService),_0x5de3e1=_0x160e4c['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x441cdf=_0x160e4c[_0xc71865(0x4fd)](_univerjs_engine_render['IRenderManagerService']),_0x4bc79c=_0x47255c[_0xc71865(0x36b)]();if(!_0x4bc79c)return![];const {unitId:_0xe36e7f,subUnitId:_0x183cf7,shapeId:_0x82ad01}=_0x4bc79c,_0x5decbb=_0x5de3e1['getShapeModel'](_0xe36e7f,_0x183cf7,_0x82ad01);if(!_0x5decbb)return![];const _0x5380a9=_0x5decbb['getShapeTextData']();if(!_0x5380a9||!(_0xc71865(0x31a)in _0x5380a9))return![];const _0x3d07b2=_0x5380a9['dataModel'];if(!_0x3d07b2)return![];const _0x312415={..._0x3d07b2,'fs':_0x240285},_0x374dbe=await _0x141eb4[_0xc71865(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0xe36e7f,'subUnitId':_0x183cf7,'shapeId':_0x82ad01,'shapeData':{'shapeText':{'isHorizontal':(_0x1eef6c=_0x5380a9[_0xc71865(0x1ed)])!==null&&_0x1eef6c!==void 0x0?_0x1eef6c:!![],'dataModel':_0x312415}}});if(_0x374dbe){const _0x36f56d=_0x441cdf[_0xc71865(0x11a)](_0xe36e7f);if(_0x36f56d===null||_0x36f56d===void 0x0?void 0x0:_0x36f56d[_0xc71865(0x1cf)]){const _0x2b0126=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xe36e7f,'subUnitId':_0x183cf7,'drawingId':_0x82ad01}),_0x154f42=_0x36f56d[_0xc71865(0x1cf)][_0xc71865(0x492)](_0x2b0126);if(_0x154f42)_0x154f42[_0xc71865(0x2d4)](!![]);}}return _0x374dbe;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x466),'handler':async _0x13bd05=>{const _0x2b88a3=_0x48b1be;var _0x4027dd;const _0x3868ac=_0x13bd05[_0x2b88a3(0x4fd)](ShapeTextEditingService),_0x4e5273=_0x13bd05[_0x2b88a3(0x4fd)](_univerjs_pro_sheets_shape[_0x2b88a3(0x475)]),_0x5ed561=_0x13bd05[_0x2b88a3(0x4fd)](_univerjs_core['ICommandService']),_0x3f24e0=_0x3868ac['getEditing']();if(!_0x3f24e0)return![];const {unitId:_0x319221,subUnitId:_0x4916e0,shapeId:_0x783e9d}=_0x3f24e0,_0xeb59f7=_0x4e5273['getShapeModel'](_0x319221,_0x4916e0,_0x783e9d);if(!_0xeb59f7)return![];const _0x5cdb03=_0xeb59f7[_0x2b88a3(0x48f)]();if(!_0x5cdb03||!(_0x2b88a3(0x31a)in _0x5cdb03))return![];const _0x5843de=_0x5cdb03[_0x2b88a3(0x31a)],_0x409316=(_0x4027dd=_0x5843de===null||_0x5843de===void 0x0?void 0x0:_0x5843de['fs'])!==null&&_0x4027dd!==void 0x0?_0x4027dd:0xe,_0x225f26=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x50d63b=_0x409316;const _0x1e9049=_0x225f26[_0x2b88a3(0x56f)](_0x409316);if(_0x1e9049!==-0x1&&_0x1e9049<_0x225f26[_0x2b88a3(0x42d)]-0x1)_0x50d63b=_0x225f26[_0x1e9049+0x1];else{if(_0x1e9049===-0x1)_0x50d63b=Math[_0x2b88a3(0x35c)](_0x409316)+0x1;}return _0x5ed561['executeCommand'](SetShapeTextFontSizeCommand['id'],{'value':_0x50d63b});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':'sheet.command.set-shape-text-font-size-decrease','handler':async _0x1040c9=>{const _0x2f1c91=_0x48b1be;var _0x4af33f;const _0x41c63c=_0x1040c9[_0x2f1c91(0x4fd)](ShapeTextEditingService),_0x3f34d6=_0x1040c9[_0x2f1c91(0x4fd)](_univerjs_pro_sheets_shape[_0x2f1c91(0x475)]),_0x536dbd=_0x1040c9[_0x2f1c91(0x4fd)](_univerjs_core[_0x2f1c91(0x621)]),_0x307e7a=_0x41c63c['getEditing']();if(!_0x307e7a)return![];const {unitId:_0x396a9a,subUnitId:_0x38d276,shapeId:_0x10e7ec}=_0x307e7a,_0x355b48=_0x3f34d6[_0x2f1c91(0x36e)](_0x396a9a,_0x38d276,_0x10e7ec);if(!_0x355b48)return![];const _0x145a47=_0x355b48[_0x2f1c91(0x48f)]();if(!_0x145a47||!('dataModel'in _0x145a47))return![];const _0x3e9c6f=_0x145a47[_0x2f1c91(0x31a)],_0x1dceaa=(_0x4af33f=_0x3e9c6f===null||_0x3e9c6f===void 0x0?void 0x0:_0x3e9c6f['fs'])!==null&&_0x4af33f!==void 0x0?_0x4af33f:0xe,_0x401317=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x383fd3=_0x1dceaa;const _0x3b8676=_0x401317['indexOf'](_0x1dceaa);if(_0x3b8676!==-0x1&&_0x3b8676>0x0)_0x383fd3=_0x401317[_0x3b8676-0x1];else{if(_0x3b8676===-0x1)_0x383fd3=Math['floor'](_0x1dceaa)-0x1;}if(_0x383fd3<0x1)_0x383fd3=0x1;return _0x536dbd['executeCommand'](SetShapeTextFontSizeCommand['id'],{'value':_0x383fd3});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x30b),'handler':async(_0x371c3e,_0x5e5b4a)=>{const _0x8ecb14=_0x48b1be;var _0x1c60da;if(!(0x0,_univerjs_sheets[_0x8ecb14(0x207)])(_0x371c3e['get'](_univerjs_core[_0x8ecb14(0x1d2)])))return![];const _0x3b2397=_0x371c3e[_0x8ecb14(0x4fd)](_univerjs_sheets_drawing[_0x8ecb14(0x528)])[_0x8ecb14(0x669)]()['filter'](_0x3c29e8=>_0x3c29e8[_0x8ecb14(0x2b0)]===_univerjs_core[_0x8ecb14(0x45a)][_0x8ecb14(0x614)]);if(_0x3b2397[_0x8ecb14(0x42d)]!==0x1)return![];const _0x599b6d=_0x371c3e[_0x8ecb14(0x4fd)](ShapeTextEditingService)[_0x8ecb14(0x36b)](),_0x42ae1a=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x1ab)])||_0x3b2397[0x0][_0x8ecb14(0x1ab)],_0x51f34c=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x4dc)])||_0x3b2397[0x0]['subUnitId'],_0x3774a3=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x1d8)])||_0x3b2397[0x0][_0x8ecb14(0x4cb)],_0xe7eccd=_0x371c3e['get'](_univerjs_pro_sheets_shape[_0x8ecb14(0x475)])[_0x8ecb14(0x36e)](_0x42ae1a,_0x51f34c,_0x3774a3);if(!_0xe7eccd)return![];const _0x5d44ea=_0xe7eccd[_0x8ecb14(0x48f)]();if(!_0x5d44ea||!(_0x8ecb14(0x31a)in _0x5d44ea))return![];const _0x2f893b=_0x371c3e['get'](_univerjs_core[_0x8ecb14(0x621)]),{value:_0x5d253d}=_0x5e5b4a,_0x3f5dab=_0xe7eccd['getShapeType'](),_0x1a1fd9=_0xe7eccd[_0x8ecb14(0x260)](),_0x216179={..._0x5d44ea['dataModel'],'va':_0x5d253d};return await _0x2f893b[_0x8ecb14(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x42ae1a,'subUnitId':_0x51f34c,'shapeId':_0x3774a3,'shapeType':_0x3f5dab,'shapeData':{'shapeText':{'isHorizontal':(_0x1c60da=_0x5d44ea[_0x8ecb14(0x1ed)])!==null&&_0x1c60da!==void 0x0?_0x1c60da:!![],'dataModel':_0x216179}},'oldShapeJSON':{'oldShapeType':_0x3f5dab,'oldShapeData':_0x1a1fd9}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x5c8),'handler':(_0x359ccd,_0x309e16)=>{const _0x59f65d=_0x48b1be;if(!_0x309e16)return![];const {value:_0x5820b8}=_0x309e16;return _0x359ccd[_0x59f65d(0x4fd)](_univerjs_core[_0x59f65d(0x621)])['syncExecuteCommand'](_univerjs_docs_ui[_0x59f65d(0x1a0)]['id'],{'alignType':_0x5820b8});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0x48b1be(0x5e0)],'id':_0x48b1be(0x242),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType']['OPERATION'],'id':_0x48b1be(0x13a),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x48b1be(0x61a),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core['createInternalEditorID'])(_0x48b1be(0x2b3)),ShapeTextEditorContainer$1='ShapeTextEditorContainer';function updateShapeData(_0x3ac055,_0x281634,_0x5c2423,_0x2989d,_0x544dfe,_0x4feeb5){const _0x1ad3be=_0x48b1be,_0x12abfc={'unitId':_0x281634,'subUnitId':_0x5c2423,'shapeId':_0x2989d,'shapeData':_0x4feeb5,'oldShapeJSON':_0x544dfe};return _0x3ac055[_0x1ad3be(0x636)](UpdateShapeDataCommand['id'],_0x12abfc);}function updateLineShapeData(_0x17bd40,_0x509323,_0xe1e745,_0x5715ba,_0x5554df,_0x1f5200){const _0x2556a1={'unitId':_0x509323,'subUnitId':_0xe1e745,'shapeId':_0x5715ba,'shapeData':_0x1f5200,'oldShapeJSON':_0x5554df};return _0x17bd40['executeCommand'](UpdateShapeDataCommand['id'],_0x2556a1);}function prepareShapeTextDocumentData(_0xc04021,_0x332b78){const _0x1a463e=_0x48b1be;var _0xe0ffe1;const {isHorizontal:_0x519338,textRect:_0x37c8fc,verticalAlign:_0x11e096}=_0x332b78,_0x521c8f=_0x519338?_0x37c8fc['width']:_0x37c8fc[_0x1a463e(0x613)],_0x18d0de=_univerjs_core['Tools'][_0x1a463e(0x316)](_0xc04021),_0x115f05=(_0xe0ffe1=_0x18d0de[_0x1a463e(0x3f9)])!==null&&_0xe0ffe1!==void 0x0?_0xe0ffe1:{},_0x43e6b0={..._0x115f05[_0x1a463e(0x2bd)],'centerAngle':_0x519338?0x0:_univerjs_engine_render[_0x1a463e(0x3d3)],'vertexAngle':_0x519338?0x0:_univerjs_engine_render[_0x1a463e(0x3d3)],'wrapStrategy':_univerjs_core['WrapStrategy'][_0x1a463e(0x401)]};if(_0x11e096!==void 0x0)_0x43e6b0['verticalAlign']=_0x11e096;if(_0x332b78[_0x1a463e(0x1a8)]!==void 0x0){var _0x2fa575;_0x43e6b0[_0x1a463e(0x1a8)]=_0x332b78[_0x1a463e(0x1a8)];const _0x161c40=(_0x2fa575=_0x18d0de[_0x1a463e(0x3f6)])===null||_0x2fa575===void 0x0?void 0x0:_0x2fa575['paragraphs'];if(_0x161c40)for(const _0x3b05cd of _0x161c40){if(!_0x3b05cd['paragraphStyle'])_0x3b05cd[_0x1a463e(0x463)]={};_0x3b05cd[_0x1a463e(0x463)][_0x1a463e(0x1a8)]=_0x332b78[_0x1a463e(0x1a8)];}}return _0x18d0de['documentStyle']={..._0x115f05,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x521c8f,'height':Number['POSITIVE_INFINITY']},'renderConfig':_0x43e6b0},_0x18d0de;}function _0x1fb6(_0x59d634,_0x3c3d33){_0x59d634=_0x59d634-0xf7;const _0x1d37e5=_0x1d37();let _0x1fb6af=_0x1d37e5[_0x59d634];return _0x1fb6af;}function stripShapeTextDocumentLayout(_0x57fbfd){const _0x215b2f=_0x48b1be;var _0x12ab3e;const _0x337c06=_univerjs_core[_0x215b2f(0x1f7)][_0x215b2f(0x316)](_0x57fbfd),_0x2d0ab2=(_0x12ab3e=_0x337c06[_0x215b2f(0x3f9)])!==null&&_0x12ab3e!==void 0x0?_0x12ab3e:{},_0x28d033={..._0x2d0ab2[_0x215b2f(0x2bd)]};return delete _0x28d033[_0x215b2f(0x4c7)],delete _0x28d033[_0x215b2f(0x608)],delete _0x28d033[_0x215b2f(0x131)],delete _0x28d033[_0x215b2f(0x331)],_0x337c06[_0x215b2f(0x3f9)]={..._0x2d0ab2,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x215b2f(0x10a)],'height':Number['POSITIVE_INFINITY']},'renderConfig':Object['keys'](_0x28d033)[_0x215b2f(0x42d)]>0x0?_0x28d033:void 0x0},_0x337c06;}var DrawingShape=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x468e15,_0x4e7456){const _0x67ee72=_0x48b1be;super(_0x468e15,_0x4e7456),_defineProperty(this,_0x67ee72(0x341),void 0x0),_defineProperty(this,_0x67ee72(0x3de),!![]),_defineProperty(this,'_drawingType',_univerjs_core[_0x67ee72(0x45a)][_0x67ee72(0x614)]),_defineProperty(this,_0x67ee72(0x183),!![]),this[_0x67ee72(0x341)]={..._0x4e7456},this[_0x67ee72(0x377)]();}[_0x48b1be(0x377)](){const _0x3bedb6=_0x48b1be;this['onTransformChange$'][_0x3bedb6(0x595)](_0x47c81e=>{const _0x29edf5=_0x3bedb6;this[_0x29edf5(0x265)](_0x47c81e);});}['setPrstGeom'](_0x57ec32){const _0x431b96=_0x48b1be;this[_0x431b96(0x341)][_0x431b96(0x555)]=_0x57ec32;}[_0x48b1be(0x431)](_0x7dd7b8){const _0x3d7298=_0x48b1be;this[_0x3d7298(0x341)][_0x3d7298(0x2e7)]=_0x7dd7b8,this[_0x3d7298(0x2d4)](!![]);}get[_0x48b1be(0x1ab)](){const _0x25dfb8=_0x48b1be;return this[_0x25dfb8(0x341)][_0x25dfb8(0x1ab)];}get[_0x48b1be(0x4dc)](){const _0x2ec501=_0x48b1be;return this[_0x2ec501(0x341)][_0x2ec501(0x4dc)];}['_updateSrcRectByTransform'](_0x237c04){const _0x25e9a0=_0x48b1be;if(this[_0x25e9a0(0x341)][_0x25e9a0(0x478)]==null||!this['_transformCalculateSrcRect'])return;const {width:_0x31ccfc,height:_0x4c219d}=this,{width:_0x50780e=0x0,height:_0x3a691b=0x0}=_0x237c04[_0x25e9a0(0x5a3)],{left:_0x3cf3d7=0x0,top:_0x5b049a=0x0,right:_0xd9a7a0=0x0,bottom:_0x52cffe=0x0}=this[_0x25e9a0(0x341)]['srcRect'];let _0x111b33=_0x3cf3d7,_0x2d1060=_0x5b049a,_0x50d19c=_0xd9a7a0,_0x40f724=_0x52cffe,_0x5018be=![];if(_0x50780e!==0x0&&_0x50780e!==_0x31ccfc){const _0xf84e39=_0x3cf3d7/_0x50780e,_0x172d67=_0xd9a7a0/_0x50780e;_0x111b33=_0x31ccfc*_0xf84e39,_0x50d19c=_0x31ccfc*_0x172d67,_0x5018be=!![];}if(_0x3a691b!==0x0&&_0x3a691b!==_0x4c219d){const _0x15747=_0x5b049a/_0x3a691b,_0x374ced=_0x52cffe/_0x3a691b;_0x2d1060=_0x4c219d*_0x15747,_0x40f724=_0x4c219d*_0x374ced,_0x5018be=!![];}if(_0x5018be)this[_0x25e9a0(0x2ae)]({'left':_0x111b33,'top':_0x2d1060,'right':_0x50d19c,'bottom':_0x40f724});}[_0x48b1be(0x2ae)](_0x127904){const _0x7f666=_0x48b1be;this[_0x7f666(0x341)][_0x7f666(0x478)]=_0x127904,this[_0x7f666(0x2d4)](!![]);}[_0x48b1be(0x1c1)](_0x6278d6){const _0x49dafc=_0x48b1be;this[_0x49dafc(0x341)][_0x49dafc(0x1d5)]=_0x6278d6,this['makeDirty'](!![]);}set[_0x48b1be(0x649)](_0x1ac6b4){const _0x585844=_0x48b1be;this[_0x585844(0x48a)]=_0x1ac6b4;}get[_0x48b1be(0x649)](){const _0xffd1af=_0x48b1be;if(!this['_transform'])this[_0xffd1af(0x2a2)]();const _0x57d76e=this[_0xffd1af(0x48a)][_0xffd1af(0x26c)]();return this[_0xffd1af(0x4a1)](_0x57d76e);}get[_0x48b1be(0x263)](){return this['_props']['shapeModel'];}get['shapeId'](){const _0x5ab179=_0x48b1be;return this[_0x5ab179(0x341)][_0x5ab179(0x1d8)];}get[_0x48b1be(0x5da)](){const _0x373382=_0x48b1be;return _univerjs_engine_render[_0x373382(0x464)][_0x373382(0x1ef)];}[_0x48b1be(0x1fc)](_0x550e3c,_0x2cbf41,_0x2fb4c4,_0x39e768){const _0x45dfe0=_0x48b1be,_0x1e6c83=this[_0x45dfe0(0x341)][_0x45dfe0(0x263)];if(!_0x1e6c83||!_0x2cbf41)return;const _0x5748ec=_0x2fb4c4!==null&&_0x2fb4c4!==void 0x0?_0x2fb4c4:this[_0x45dfe0(0x3c7)],_0x14987a=_0x39e768!==null&&_0x39e768!==void 0x0?_0x39e768:this['height'],_0x3c9fc7={'shapeType':_0x1e6c83[_0x45dfe0(0x607)](),'width':_0x5748ec,'height':_0x14987a},_0xd26e1d={'renderMode':_univerjs_pro_engine_shape[_0x45dfe0(0x4ac)][_0x45dfe0(0x1e6)],'oKey':this[_0x45dfe0(0x2ff)],'image':this[_0x45dfe0(0x341)][_0x45dfe0(0x1d5)],'angle':this[_0x45dfe0(0x2ed)]};_0x1e6c83['updateContext'](_0x3c9fc7),_0x550e3c['save']();const _0x40139f={'top':0x0,'left':0x0,'width':_0x5748ec,'height':_0x14987a};_0x1e6c83['render'](_0x550e3c,_0x40139f,_0xd26e1d),_0x550e3c[_0x45dfe0(0x44f)]();const _0x21528a=_0x1e6c83['getShapeTextData'](),_0x172531=_0x1e6c83[_0x45dfe0(0x3ca)](_0x40139f),_0x70fad=_0x1e6c83[_0x45dfe0(0x1a9)]();if(_0x21528a&&_0x172531&&!_0x70fad){_0x550e3c[_0x45dfe0(0x2a3)]();if(this[_0x45dfe0(0x3e0)]()['flipX'])_0x550e3c[_0x45dfe0(0x26b)](-0x1,0x1);const _0x59ca32=_0x5748ec/0x2,_0x1052e3=_0x14987a/0x2;_0x550e3c[_0x45dfe0(0x1ad)](-_0x59ca32,-_0x1052e3),_0x550e3c[_0x45dfe0(0x23b)](),this[_0x45dfe0(0x34c)](_0x550e3c,_0x21528a,_0x172531),_0x550e3c[_0x45dfe0(0x44f)]();}}[_0x48b1be(0x170)](_0x1bf391){}['_drawShapeText'](_0x4e271d,_0x2da572,_0xc9e5fc){const _0x562e93=_0x48b1be;if(this[_0x562e93(0x341)][_0x562e93(0x2e7)])return;if(_0x562e93(0x39c)in _0x2da572&&_0x2da572[_0x562e93(0x39c)]===![])this[_0x562e93(0x542)](_0x4e271d,_0x2da572,_0xc9e5fc);else this[_0x562e93(0x23d)](_0x4e271d,_0x2da572,_0xc9e5fc);}[_0x48b1be(0x542)](_0x5897db,_0x17bd04,_0x442d93){}[_0x48b1be(0x23d)](_0x15e3d8,_0x44affe,_0x9d40ac){const _0x4c4968=_0x48b1be;var _0x35b441,_0x171e94;const _0x4c0c00=this['_props'][_0x4c4968(0x3d1)];if(!_0x44affe['dataModel']||!_0x4c0c00){if(!_0x4c0c00)console[_0x4c4968(0x4dd)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0x2c048d=_0x44affe[_0x4c4968(0x31a)],_0x395ffa=_0x2c048d['doc'],_0x480f35=(_0x35b441=_0x2c048d['va'])!==null&&_0x35b441!==void 0x0?_0x35b441:_univerjs_core[_0x4c4968(0x226)]['TOP'],_0x161d99=(_0x171e94=_0x2c048d['ha'])!==null&&_0x171e94!==void 0x0?_0x171e94:_univerjs_core[_0x4c4968(0x400)][_0x4c4968(0x63f)];if(!_0x395ffa)return;const _0x15af00=_0x44affe['isHorizontal'],_0x430a12=prepareShapeTextDocumentData(_0x395ffa,{'isHorizontal':_0x15af00!==![],'textRect':_0x9d40ac,'verticalAlign':_0x480f35,'horizontalAlign':_0x161d99}),_0xb73b98=new _univerjs_core[(_0x4c4968(0x39d))](_0x430a12),_0x4b9e6e=new _univerjs_engine_render[(_0x4c4968(0x3d5))](_0xb73b98),_0x4553cf=_univerjs_engine_render[_0x4c4968(0x324)][_0x4c4968(0x46b)](_0x4b9e6e,_0x4c0c00);console[_0x4c4968(0x4dd)](_0x430a12,_0xb73b98,_0x4553cf),_0x4553cf['calculate']();const _0x2bb562=new _univerjs_engine_render[(_0x4c4968(0x48c))](_0x4c4968(0xf9)+this['oKey'],_0x4553cf,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x2bb562[_0x4c4968(0x34e)](_0x9d40ac['width'],_0x9d40ac['height']),_0x15e3d8['save'](),_0x15e3d8[_0x4c4968(0x380)](_0x9d40ac[_0x4c4968(0x450)],_0x9d40ac['top']),_0x15e3d8[_0x4c4968(0x23b)](),_0x15e3d8[_0x4c4968(0x2da)](0x0,0x0,_0x9d40ac[_0x4c4968(0x3c7)],_0x9d40ac[_0x4c4968(0x613)]),_0x15e3d8[_0x4c4968(0x385)](),_0x2bb562[_0x4c4968(0x4d2)](_0x15e3d8),_0x15e3d8[_0x4c4968(0x44f)](),_0x2bb562[_0x4c4968(0x570)](),_0x4553cf[_0x4c4968(0x570)](),_0x4b9e6e[_0x4c4968(0x570)](),_0xb73b98['dispose']();}[_0x48b1be(0x53b)](_0x4bdf4f,_0x58ae37,_0x2a5eee=![]){const _0x2781f2=_0x48b1be;if(!this[_0x2781f2(0x16f)])return this[_0x2781f2(0x2d4)](![]),this;let {width:_0x139070,height:_0x63a08f,left:_0x436e35,top:_0x4c35a7}=this;const _0x4e9793=this[_0x2781f2(0x4c6)]();_0x139070=_0x4e9793['width'],_0x63a08f=_0x4e9793['height'],_0x436e35=_0x4e9793[_0x2781f2(0x450)],_0x4c35a7=_0x4e9793[_0x2781f2(0x566)];if(this[_0x2781f2(0x115)](_0x58ae37)){const {top:_0x92a4ac,left:_0x55ad33,bottom:_0xbe7bf2,right:_0x77300b}=_0x58ae37[_0x2781f2(0x247)];if(_0x139070+this[_0x2781f2(0x361)]+_0x436e35<_0x55ad33||_0x77300b<_0x436e35||_0x63a08f+this['strokeWidth']+_0x4c35a7<_0x92a4ac||_0xbe7bf2<_0x4c35a7)return this;}const _0x54b2fb=_0x436e35+_0x139070/0x2,_0x49d434=_0x4c35a7+_0x63a08f/0x2;let _0x44a27d=this[_0x2781f2(0x649)]['getMatrix']();if(this[_0x2781f2(0x341)][_0x2781f2(0x2e7)]){const _0x3f5f33=this[_0x2781f2(0x3e0)](),_0x3bac55=new _univerjs_engine_render['Transform']();_0x3bac55[_0x2781f2(0x3b3)]({..._0x3f5f33}),_0x44a27d=_0x3bac55['getMatrix']();}_0x4bdf4f[_0x2781f2(0x2a3)]();if(this['_props']['shapeModel'][_0x2781f2(0x581)]===!![]){}else _0x4bdf4f['transform'](_0x44a27d[0x0],_0x44a27d[0x1],_0x44a27d[0x2],_0x44a27d[0x3],_0x54b2fb,_0x49d434);return this['_draw'](_0x4bdf4f,_0x58ae37,_0x139070,_0x63a08f),_0x4bdf4f[_0x2781f2(0x44f)](),this[_0x2781f2(0x2d4)](![]),this;}[_0x48b1be(0x108)](_0x3dbca3){const _0x5f3c5b=_0x48b1be,{left:_0x3b54d4,top:_0x222f76,width:_0x185373,height:_0x2857ef}=this[_0x5f3c5b(0x4c6)](),_0x8bdf19=this[_0x5f3c5b(0x649)][_0x5f3c5b(0x351)](),_0x5e378a=_0x3b54d4+_0x185373/0x2,_0x52ab76=_0x222f76+_0x2857ef/0x2,_0x446d24=new _univerjs_engine_render[(_0x5f3c5b(0x5ec))]([_0x8bdf19[0x0],_0x8bdf19[0x1],_0x8bdf19[0x2],_0x8bdf19[0x3],_0x5e378a,_0x52ab76]),_0x552b4c=this[_0x5f3c5b(0x412)]();return(this[_0x5f3c5b(0x32b)]&&(_0x552b4c===null||_0x552b4c===void 0x0?void 0x0:_0x552b4c['classType'])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x5f3c5b(0x14c)]?_0x552b4c[_0x5f3c5b(0x46d)][_0x5f3c5b(0x290)](_0x446d24):_0x446d24)[_0x5f3c5b(0x171)]()[_0x5f3c5b(0x590)](_0x3dbca3);}[_0x48b1be(0x64e)](_0x1f31c5){const _0x39ff4f=_0x48b1be,{left:_0x2a8635,top:_0x39a3f5,width:_0x99645d,height:_0x3814c0}=this[_0x39ff4f(0x4c6)](),_0xe443a1=_0x2a8635+_0x99645d/0x2,_0x4e0bf9=_0x39a3f5+_0x3814c0/0x2,_0x38d09f=this[_0x39ff4f(0x649)][_0x39ff4f(0x351)](),_0x34192e=new _univerjs_engine_render['Transform']([_0x38d09f[0x0],_0x38d09f[0x1],_0x38d09f[0x2],_0x38d09f[0x3],_0xe443a1,_0x4e0bf9]),_0x2b2644=this['getParent'](),_0x2b11e2=(this[_0x39ff4f(0x32b)]&&(_0x2b2644===null||_0x2b2644===void 0x0?void 0x0:_0x2b2644[_0x39ff4f(0x5da)])===_univerjs_engine_render[_0x39ff4f(0x464)][_0x39ff4f(0x14c)]?_0x2b2644[_0x39ff4f(0x46d)][_0x39ff4f(0x290)](_0x34192e):_0x34192e)[_0x39ff4f(0x171)]()['applyPoint'](_0x1f31c5),_0x3b5888=_0x99645d/0x2,_0x2aa3a0=_0x3814c0/0x2,_0x606840=this[_0x39ff4f(0x341)][_0x39ff4f(0x263)];if(_0x606840&&_0x606840[_0x39ff4f(0x1a9)]())return _0x606840['isHitLine'](_0x2b11e2['x'],_0x2b11e2['y'],_0x99645d,_0x3814c0);if(_0x2b11e2['x']>=-_0x3b5888-this[_0x39ff4f(0x361)]/0x2&&_0x2b11e2['x']<=_0x3b5888+this['strokeWidth']/0x2&&_0x2b11e2['y']>=-_0x2aa3a0-this[_0x39ff4f(0x361)]/0x2&&_0x2b11e2['y']<=_0x2aa3a0+this['strokeWidth']/0x2)return!![];return![];}[_0x48b1be(0x570)](){const _0x571afe=_0x48b1be;this[_0x571afe(0x341)]['shapeModel']=null,super[_0x571afe(0x570)]();}};function __decorateParam(_0x199199,_0x96a411){return function(_0x13941d,_0x2a9332){_0x96a411(_0x13941d,_0x2a9332,_0x199199);};}function __decorate(_0x4abc55,_0x322197,_0x27857f,_0x54726c){const _0x1e7321=_0x48b1be;var _0x235648=arguments[_0x1e7321(0x42d)],_0x472200=_0x235648<0x3?_0x322197:_0x54726c===null?_0x54726c=Object[_0x1e7321(0x25c)](_0x322197,_0x27857f):_0x54726c,_0x377e89;if(typeof Reflect===_0x1e7321(0x334)&&typeof Reflect[_0x1e7321(0x5c3)]===_0x1e7321(0x65d))_0x472200=Reflect[_0x1e7321(0x5c3)](_0x4abc55,_0x322197,_0x27857f,_0x54726c);else{for(var _0x4615c4=_0x4abc55['length']-0x1;_0x4615c4>=0x0;_0x4615c4--)if(_0x377e89=_0x4abc55[_0x4615c4])_0x472200=(_0x235648<0x3?_0x377e89(_0x472200):_0x235648>0x3?_0x377e89(_0x322197,_0x27857f,_0x472200):_0x377e89(_0x322197,_0x27857f))||_0x472200;}return _0x235648>0x3&&_0x472200&&Object[_0x1e7321(0x546)](_0x322197,_0x27857f,_0x472200),_0x472200;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x494e08,_0x16af05,_0xd70b39,_0x5b5964,_0x253a47){const _0x901222=_0x48b1be;super(),this[_0x901222(0x307)]=_0x494e08,this[_0x901222(0x5d9)]=_0x16af05,this['_localeService']=_0xd70b39,this[_0x901222(0x60e)]=_0x5b5964,this['_urlImageService']=_0x253a47;}['renderDrawingShape'](_0x2e259e,_0x2dd245){const _0x499b29=_0x48b1be,{transform:_0x109c29,drawingType:_0x1779ae,srcRect:_0x137da5,prstGeom:_0x569850,groupId:_0x53b54e,unitId:_0x356f96,subUnitId:_0x3b8a3d,drawingId:_0x139b22,isMultiTransform:_0x4fed9a,transforms:_0x577919,hidden:_0x1f8823}=_0x2e259e;if(_0x1779ae!==_univerjs_core[_0x499b29(0x45a)]['DRAWING_SHAPE'])return;if(!this['_drawingManagerService'][_0x499b29(0x594)]())return;if(_0x109c29==null)return;const _0x467983=_0x4fed9a&&_0x577919?_0x577919:[_0x109c29],_0x3aa6ae=[];for(const _0x1ed2ca of _0x467983){const {left:_0x1b9a3b,top:_0x49463e,width:_0x34f56d,height:_0x76c9bf,angle:_0x35db4e,flipX:_0x60e56f,flipY:_0x8d32d4,skewX:_0x2c00b7,skewY:_0xc2c6d4}=_0x1ed2ca,_0x4e8afc=_0x467983['indexOf'](_0x1ed2ca),_0x578569=(0x0,_univerjs_drawing[_0x499b29(0x1e7)])({'unitId':_0x356f96,'subUnitId':_0x3b8a3d,'drawingId':_0x139b22},_0x4fed9a?_0x4e8afc:void 0x0),_0x3bd5ad=_0x2dd245['getObjectIncludeInGroup'](_0x578569);if(_0x3bd5ad!=null){_0x3bd5ad[_0x499b29(0x2b4)]({'left':_0x1b9a3b,'top':_0x49463e,'width':_0x34f56d,'height':_0x76c9bf,'angle':_0x35db4e,'flipX':_0x60e56f,'flipY':_0x8d32d4,'skewX':_0x2c00b7,'skewY':_0xc2c6d4});continue;}const _0x591090=this['_drawingManagerService'][_0x499b29(0x30e)](_0x356f96,_0x3b8a3d),_0x20c8ed=_0x591090[_0x499b29(0x56f)](_0x139b22);if(_0x2dd245[_0x499b29(0x492)](_0x578569))continue;if(!this[_0x499b29(0x307)][_0x499b29(0x594)]())continue;const _0x42b0d9=this[_0x499b29(0x5d9)]['getShapeModel'](_0x356f96,_0x3b8a3d,_0x139b22);if(!_0x42b0d9)continue;const _0x660ef8=new DrawingShape(_0x578569,{...(0x0,_univerjs_pro_engine_shape[_0x499b29(0x5fb)])(_0x42b0d9[_0x499b29(0x607)]())?{..._0x1ed2ca,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x1ed2ca},'zIndex':_0x20c8ed===-0x1?_0x591090[_0x499b29(0x42d)]-0x1:_0x20c8ed,'shapeModel':_0x42b0d9,'localeService':this[_0x499b29(0x502)],'shapeId':_0x139b22,'unitId':_0x356f96,'subUnitId':_0x3b8a3d,'visible':_0x1f8823!==!![]});_0x2dd245[_0x499b29(0x261)](_0x660ef8,_univerjs_engine_render[_0x499b29(0x3d4)]);if(this[_0x499b29(0x307)][_0x499b29(0x202)]())_0x2dd245[_0x499b29(0x12c)](_0x660ef8);_0x53b54e&&(0x0,_univerjs_drawing_ui[_0x499b29(0x291)])({'drawingId':_0x53b54e,'unitId':_0x356f96,'subUnitId':_0x3b8a3d},_0x660ef8,_0x2dd245,this['_drawingManagerService']);if(_0x569850!=null)_0x660ef8[_0x499b29(0x63e)](_0x569850);if(_0x137da5!=null)_0x660ef8['setSrcRect'](_0x137da5);this[_0x499b29(0x369)](_0x660ef8,_0x42b0d9[_0x499b29(0x260)]()),_0x3aa6ae[_0x499b29(0x5ed)](_0x660ef8);}return _0x3aa6ae;}[_0x48b1be(0x369)](_0x28e7fd,_0x41b39f){const _0xa4ae9=_0x48b1be;var _0x5d0c23;const _0x5cf173=_0x41b39f[_0xa4ae9(0x664)];if(!_0x5cf173||_0x5cf173['fillType']!==_univerjs_pro_engine_shape[_0xa4ae9(0x328)][_0xa4ae9(0x313)]||!_0x5cf173[_0xa4ae9(0x4df)])return;const _0x140275=_0x5cf173[_0xa4ae9(0x4df)],_0x275617=(_0x5d0c23=_0x5cf173[_0xa4ae9(0x5c6)])!==null&&_0x5d0c23!==void 0x0?_0x5d0c23:_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0xa4ae9(0x3cf)],_0x4fe258=this['_imageIoService']['getImageSourceCache'](_0x140275,_0x275617);if(_0x4fe258){_0x28e7fd[_0xa4ae9(0x1c1)](_0x4fe258);return;}this[_0xa4ae9(0x258)](_0x28e7fd,_0x140275,_0x275617);}async[_0x48b1be(0x258)](_0x164047,_0x3ace98,_0x17da20){const _0x3fcd1b=_0x48b1be;let _0x3666e4;try{if(_0x17da20===_univerjs_pro_engine_shape[_0x3fcd1b(0x3ee)]['UUID'])_0x3666e4=await this[_0x3fcd1b(0x60e)][_0x3fcd1b(0x379)](_0x3ace98);else{if(_0x17da20===_univerjs_pro_engine_shape[_0x3fcd1b(0x3ee)][_0x3fcd1b(0x3cf)])try{_0x3666e4=await this[_0x3fcd1b(0x3cb)][_0x3fcd1b(0x379)](_0x3ace98);}catch{_0x3666e4=_0x3ace98;}else _0x3666e4=_0x3ace98;}}catch(_0xa4b834){console[_0x3fcd1b(0x363)](_0x3fcd1b(0x387),_0xa4b834);return;}const _0x5999b7=new window[(_0x3fcd1b(0x32c))]();_0x5999b7[_0x3fcd1b(0x4b1)]=()=>{const _0x494506=_0x3fcd1b;this[_0x494506(0x60e)]['addImageSourceCache'](_0x3ace98,_0x17da20,_0x5999b7),_0x164047[_0x494506(0x1c1)](_0x5999b7);},_0x5999b7[_0x3fcd1b(0x507)]=()=>{const _0x80894d=_0x3fcd1b;console['error'](_0x80894d(0x629),_0x3ace98);},_0x5999b7[_0x3fcd1b(0x287)]=_0x3666e4;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core['IURLImageService'])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x245633,_0x197ae3,_0xf4b16d,_0x29097f,_0x38db03,_0x57d3cc){const _0x40d29b=_0x48b1be;super(),this[_0x40d29b(0x1c8)]=_0x245633,this[_0x40d29b(0x1cb)]=_0x197ae3,this['_drawingManagerService']=_0xf4b16d,this[_0x40d29b(0x246)]=_0x29097f,this[_0x40d29b(0x39e)]=_0x38db03,this[_0x40d29b(0x1ac)]=_0x57d3cc,this[_0x40d29b(0x3da)]();}['_initialize'](){const _0x5d00fc=_0x48b1be;this['_drawingAddListener'](),this[_0x5d00fc(0x20b)](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x201248=_0x48b1be;this[_0x201248(0x47f)](this[_0x201248(0x307)]['add$'][_0x201248(0x22b)](_0x181303=>{const _0x483997=_0x201248;this[_0x483997(0x4a7)](_0x181303);}));}['_commandExecutedListener'](){const _0x56aa6d=_0x48b1be;this[_0x56aa6d(0x47f)](this[_0x56aa6d(0x1c8)][_0x56aa6d(0x2a8)](_0x4bfea7=>{const _0x8c7d57=_0x56aa6d;if(_0x4bfea7['id']===_univerjs_pro_sheets_shape[_0x8c7d57(0x254)]['id']){var _0x8b7f55;const {unitId:_0x44cbf1,subUnitId:_0x3bea9d,shapeId:_0x420d57}=_0x4bfea7[_0x8c7d57(0x37c)],_0x1866e7=this[_0x8c7d57(0x11f)](_0x44cbf1);if(_0x1866e7==null)return;const {scene:_0x7f7806}=_0x1866e7,_0x425200=(0x0,_univerjs_drawing[_0x8c7d57(0x1e7)])({'unitId':_0x44cbf1,'subUnitId':_0x3bea9d,'drawingId':_0x420d57}),_0x45e0bc=_0x7f7806['getObjectIncludeInGroup'](_0x425200);if(!((_0x8b7f55=this[_0x8c7d57(0x1cb)][_0x8c7d57(0x11a)](_0x44cbf1))===null||_0x8b7f55===void 0x0?void 0x0:_0x8b7f55[_0x8c7d57(0x26a)](_univerjs_sheets_ui[_0x8c7d57(0x2b2)])[_0x8c7d57(0x192)](_0x3bea9d)))return![];if(_0x45e0bc)return;this['_insertShapes']([{'unitId':_0x44cbf1,'subUnitId':_0x3bea9d,'drawingId':_0x420d57}]);}}));}[_0x48b1be(0x28f)](){const _0x57ce32=_0x48b1be;this[_0x57ce32(0x47f)](this['_drawingManagerService'][_0x57ce32(0x102)][_0x57ce32(0x22b)](_0x56c4d7=>{_0x56c4d7['forEach'](_0x27e776=>{const _0x254e87=_0x1fb6,{unitId:_0x1edc41,subUnitId:_0x595d6d,drawingId:_0x59cc5f}=_0x27e776,_0x7e8089=this[_0x254e87(0x307)]['getDrawingByParam'](_0x27e776);if(_0x7e8089==null)return;const {transform:_0xa92781,drawingType:_0x54cce9,srcRect:_0x37867f,prstGeom:_0x1efd3a}=_0x7e8089;if(_0x54cce9!==_univerjs_core[_0x254e87(0x45a)][_0x254e87(0x614)])return;const _0xd48335=this[_0x254e87(0x11f)](_0x1edc41);if(_0xd48335==null)return;const {scene:_0x2c907d,transformer:_0x2954ca}=_0xd48335;if(_0xa92781==null)return!![];const _0x4adae1=(0x0,_univerjs_drawing[_0x254e87(0x1e7)])({'unitId':_0x1edc41,'subUnitId':_0x595d6d,'drawingId':_0x59cc5f}),_0x40ce0e=_0x2c907d[_0x254e87(0x492)](_0x4adae1);if(_0x40ce0e==null)return!![];_0x40ce0e[_0x254e87(0x2ae)](_0x37867f),_0x40ce0e['setPrstGeom'](_0x1efd3a);});}));}[_0x48b1be(0x485)](_0x3edf06,_0x5aa267){const _0x12e3ff=_0x48b1be,{unitId:_0x4e6c13,subUnitId:_0x4a003a,drawingId:_0x50256a}=_0x3edf06,_0x9c5a7d=this['_getSceneAndTransformerByDrawingSearch'](_0x4e6c13);if(_0x9c5a7d==null)return;const {scene:_0x4c33a8}=_0x9c5a7d,_0xf5e062=(0x0,_univerjs_drawing[_0x12e3ff(0x1e7)])({'unitId':_0x4e6c13,'subUnitId':_0x4a003a,'drawingId':_0x50256a}),_0x4f1bf4=_0x4c33a8[_0x12e3ff(0x492)](_0xf5e062);if(_0x4f1bf4==null)return;_0x4f1bf4[_0x12e3ff(0x1c1)](_0x5aa267);}[_0x48b1be(0x4a7)](_0x357aac){_0x357aac['forEach'](async _0xf8f398=>{const _0x3d22a5=_0x1fb6;var _0x761e36;const {unitId:_0x238d2a,subUnitId:_0x3a5920}=_0xf8f398,_0x4b69fd=this[_0x3d22a5(0x11f)](_0x238d2a),_0x2322c4=(_0x761e36=(0x0,_univerjs_drawing_ui[_0x3d22a5(0x347)])(this['_currentUniverService'],_0x238d2a))===null||_0x761e36===void 0x0?void 0x0:_0x761e36['subUnitId'];if(_0x4b69fd==null||_0x2322c4!==_0x3a5920)return;const _0x14be9c=this[_0x3d22a5(0x307)][_0x3d22a5(0x251)](_0xf8f398);if(_0x14be9c==null)return;if(_0x14be9c[_0x3d22a5(0x2b0)]!==_univerjs_core[_0x3d22a5(0x45a)][_0x3d22a5(0x614)])return;if((0x0,_univerjs_pro_engine_shape[_0x3d22a5(0x5fb)])((_0x14be9c[_0x3d22a5(0x384)]||{})[_0x3d22a5(0x5bc)])){const _0x3a5ae4=_0x14be9c['transform'];if(_0x3a5ae4)_0x14be9c[_0x3d22a5(0x649)]={..._0x3a5ae4,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x3d22a5(0x307)]['refreshTransform']([_0x14be9c]),this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x14be9c,_0x4b69fd[_0x3d22a5(0x1cf)]);});}['_getSceneAndTransformerByDrawingSearch'](_0x52abf7){const _0xd751eb=_0x48b1be;if(_0x52abf7==null)return;const _0x18b435=this[_0xd751eb(0x1cb)]['getRenderById'](_0x52abf7),_0x22ab53=_0x18b435===null||_0x18b435===void 0x0?void 0x0:_0x18b435['scene'];if(_0x22ab53==null)return null;return{'scene':_0x22ab53,'transformer':_0x22ab53[_0xd751eb(0x57f)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x48b1be(0x2f4)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x105434){const _0x19f5af=_0x48b1be;var _0x511636,_0x52aa50,_0x19e079,_0x40421f,_0x3120c6,_0x4c6c05,_0x3a77fd,_0x40e5fa,_0x27203b,_0x5bc79e,_0x28cbbc,_0xf5350a,_0xb39b59;const {unitId:_0x3ce924,subUnitId:_0x21d784,shapeId:_0x4048cf,shapeData:_0x4b4943,disableShapeOption:_0x32482e}=_0x105434,_0x1f1877=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x19f5af(0x319)]),_0x6205c4=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_core[_0x19f5af(0x621)]),_0xa664e1=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_core['IContextService']),_0x1d5353=(0x0,_univerjs_ui[_0x19f5af(0x425)])(ShapeUpdateController),_0x46d7f6=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_drawing[_0x19f5af(0x4f4)]),_0xe44362=(0x0,react[_0x19f5af(0x540)])(null),_0x2f6e2f=_0x4b4943['fill'],_0x22ac43=!!(_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x4df)]),[_0x24bca7,_0x25322d]=(0x0,react[_0x19f5af(0x47b)])((_0x511636=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x187)])!==null&&_0x511636!==void 0x0?_0x511636:0x1),[_0x30726c,_0x242150]=(0x0,react['useState'])((_0x52aa50=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x392)])!==null&&_0x52aa50!==void 0x0?_0x52aa50:_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x19f5af(0x292)]),[_0x2a350e,_0x10a607]=(0x0,react[_0x19f5af(0x47b)])((_0x19e079=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x327)])!==null&&_0x19e079!==void 0x0?_0x19e079:![]),[_0x3bfb5e,_0x35d218]=(0x0,react['useState'])((_0x40421f=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x3120c6=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x3120c6===void 0x0?void 0x0:_0x3120c6['offsetX'])!==null&&_0x40421f!==void 0x0?_0x40421f:0x0),[_0x19bf88,_0x4e0dd]=(0x0,react[_0x19f5af(0x47b)])((_0x4c6c05=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x3a77fd=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x3a77fd===void 0x0?void 0x0:_0x3a77fd[_0x19f5af(0x50c)])!==null&&_0x4c6c05!==void 0x0?_0x4c6c05:0x0),[_0x34c507,_0x1b866e]=(0x0,react[_0x19f5af(0x47b)])((_0x40e5fa=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x27203b=_0x2f6e2f['imageTile'])===null||_0x27203b===void 0x0?void 0x0:_0x27203b[_0x19f5af(0x58e)])!==null&&_0x40e5fa!==void 0x0?_0x40e5fa:0x1),[_0x501fcc,_0x2d3917]=(0x0,react[_0x19f5af(0x47b)])((_0x5bc79e=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x28cbbc=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x28cbbc===void 0x0?void 0x0:_0x28cbbc[_0x19f5af(0x443)])!==null&&_0x5bc79e!==void 0x0?_0x5bc79e:0x1),[_0x2a71b6,_0x325d7a]=(0x0,react[_0x19f5af(0x47b)])((_0xf5350a=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0xb39b59=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0xb39b59===void 0x0?void 0x0:_0xb39b59['alignment'])!==null&&_0xf5350a!==void 0x0?_0xf5350a:'tl'),_0x575690=_0x30726c===_univerjs_pro_engine_shape[_0x19f5af(0x4cc)][_0x19f5af(0x2cb)],_0x1094f9=Math['round']((0x1-_0x24bca7)*0x64),_0x146858=Math[_0x19f5af(0x269)](_0x34c507*0x64),_0x43ec52=Math[_0x19f5af(0x269)](_0x501fcc*0x64),_0x2a5020=_0x23c983=>_0x1f1877['t'](_0x23c983),_0x1ca427=[{'label':_0x2a5020(_0x19f5af(0x64a)),'value':'tl'},{'label':_0x2a5020(_0x19f5af(0x444)),'value':'t'},{'label':_0x2a5020(_0x19f5af(0x22d)),'value':'tr'},{'label':_0x2a5020(_0x19f5af(0x317)),'value':'l'},{'label':_0x2a5020(_0x19f5af(0x4c0)),'value':'ctr'},{'label':_0x2a5020(_0x19f5af(0x639)),'value':'r'},{'label':_0x2a5020(_0x19f5af(0x1d3)),'value':'bl'},{'label':_0x2a5020(_0x19f5af(0x4a5)),'value':'b'},{'label':_0x2a5020(_0x19f5af(0x395)),'value':'br'}],_0x44ca13=_0x3b846c=>{updateShapeData(_0x6205c4,_0x3ce924,_0x21d784,_0x4048cf,{'oldShapeData':{'fill':_0x2f6e2f?{..._0x2f6e2f}:void 0x0}},{'fill':{..._0x2f6e2f,..._0x3b846c}});},_0x54b32b=_0x291efe=>{const _0x59458b=_0x19f5af;_0x44ca13({'imageTile':{..._0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x59458b(0x29c)],..._0x291efe}});},_0x19d67e=()=>{var _0xdcce70;return(_0xdcce70=_0xe44362['current'])===null||_0xdcce70===void 0x0?void 0x0:_0xdcce70['click']();},_0xa541cf=async _0x319d03=>{const _0x2c22c9=_0x19f5af;var _0x3b77a4;const _0x25f1e2=(_0x3b77a4=_0x319d03['target'][_0x2c22c9(0x185)])===null||_0x3b77a4===void 0x0?void 0x0:_0x3b77a4[0x0];if(!_0x25f1e2)return;_0x319d03[_0x2c22c9(0x423)][_0x2c22c9(0x228)]='';const _0x12facb=await _0x46d7f6[_0x2c22c9(0x3a3)](_0x25f1e2);if(_0x12facb==null)return;const {imageSourceType:_0x2b35d8,source:_0x1f900d,base64Cache:_0x18037c}=_0x12facb,{image:_0xe0738f}=await(0x0,_univerjs_drawing[_0x2c22c9(0x3af)])(_0x18037c||'');_0x46d7f6[_0x2c22c9(0x4c8)](_0x1f900d,_0x2b35d8,_0xe0738f),updateShapeData(_0x6205c4,_0x3ce924,_0x21d784,_0x4048cf,{'oldShapeData':{'fill':_0x2f6e2f?{..._0x2f6e2f}:void 0x0}},{'fill':{..._0x2f6e2f,'fillType':_univerjs_pro_engine_shape[_0x2c22c9(0x328)]['PictureFill'],'fillImageSource':_0x1f900d,'fillImageSourceType':_0x2b35d8}}),_0x1d5353[_0x2c22c9(0x485)]({'unitId':_0x3ce924,'subUnitId':_0x21d784,'drawingId':_0x4048cf},_0xe0738f);},_0x22b6c1='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0x18069f='univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3';return(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x249),'children':[(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])('div',{'className':_0x19f5af(0x448),'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x365))}),(0x0,react_jsx_runtime['jsxs'])(_0x19f5af(0x4b3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x1e9),{'ref':_0xe44362,'type':'file','accept':_0x19f5af(0x1b6),'className':_0x19f5af(0x4e9),'onChange':_0xa541cf}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':'group\x20univer-relative\x20univer-inline-block','children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x2e9),{'type':_0x19f5af(0x2e9),'disabled':_0x32482e,'className':'univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','onClick':_0x19d67e,'children':(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x151),{'children':[_0x2a5020(_0x19f5af(0x362)),'\x20']})}),_0x22ac43&&(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x438),'children':(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x591),{'src':_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x4df)],'alt':'','className':_0x19f5af(0x1f3)})})]})]})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x59f))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x19f5af(0x4d6),'value':_0x1094f9,'disabled':_0x32482e,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x47aba5=>_0x47aba5+'%','parser':_0x187dbd=>(_0x187dbd===null||_0x187dbd===void 0x0?void 0x0:_0x187dbd[_0x19f5af(0x4c3)]('%',''))||'','onChange':_0x2f5854=>{const _0x4d0bcf=_0x19f5af,_0x257241=(0x64-Math['max'](0x0,Math['min'](0x64,_0x2f5854!==null&&_0x2f5854!==void 0x0?_0x2f5854:0x0)))/0x64;_0x25322d(_0x257241),_0x44ca13({'imageOpacity':_0x257241}),_0xa664e1[_0x4d0bcf(0xfc)](_univerjs_core[_0x4d0bcf(0x62c)],![]);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x4d3)],{'checked':_0x575690,'disabled':_0x32482e,'onChange':_0x1f36e6=>{const _0x2194da=_0x19f5af,_0x5c4b53=_0x1f36e6?_univerjs_pro_engine_shape[_0x2194da(0x4cc)][_0x2194da(0x2cb)]:_univerjs_pro_engine_shape[_0x2194da(0x4cc)][_0x2194da(0x292)];_0x242150(_0x5c4b53),_0x44ca13({'imageFillMode':_0x5c4b53});},'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x19f5af(0x456),'children':_0x2a5020('sheets-shape.fill.picture.tileAsTexture')})}),_0x575690&&(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020('sheets-shape.fill.picture.offsetX')}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x3bfb5e,'disabled':_0x32482e,'step':0x1,'onChange':_0x52ab1b=>{_0x54b32b({'offsetX':_0x52ab1b!==null&&_0x52ab1b!==void 0x0?_0x52ab1b:0x0}),_0x35d218(_0x52ab1b!==null&&_0x52ab1b!==void 0x0?_0x52ab1b:0x0);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])('span',{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x58a))}),(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x4b3),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x19bf88,'disabled':_0x32482e,'step':0x1,'onChange':_0x86a5e7=>{_0x54b32b({'offsetY':_0x86a5e7!==null&&_0x86a5e7!==void 0x0?_0x86a5e7:0x0}),_0x4e0dd(_0x86a5e7!==null&&_0x86a5e7!==void 0x0?_0x86a5e7:0x0);},'onFocus':()=>_0xa664e1['setContextValue'](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x153))}),(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x146858,'disabled':_0x32482e,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0xd0dd00=>_0xd0dd00+'%','parser':_0x4511d0=>(_0x4511d0===null||_0x4511d0===void 0x0?void 0x0:_0x4511d0[_0x19f5af(0x4c3)]('%',''))||'','onChange':_0x306832=>{const _0x232a43=_0x19f5af,_0x40d792=Math[_0x232a43(0x47e)](0.01,(_0x306832!==null&&_0x306832!==void 0x0?_0x306832:0x64)/0x64);_0x1b866e(_0x40d792),_0x54b32b({'scaleX':_0x40d792}),_0xa664e1['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x162))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design['InputNumber'],{'className':_0x19f5af(0x4d6),'value':_0x43ec52,'disabled':_0x32482e,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x15f31b=>_0x15f31b+'%','parser':_0x3a9c52=>(_0x3a9c52===null||_0x3a9c52===void 0x0?void 0x0:_0x3a9c52['replace']('%',''))||'','onChange':_0x524218=>{const _0x41c7e0=_0x19f5af,_0x58765f=Math[_0x41c7e0(0x47e)](0.01,(_0x524218!==null&&_0x524218!==void 0x0?_0x524218:0x64)/0x64);_0x2d3917(_0x58765f),_0x54b32b({'scaleY':_0x58765f}),_0xa664e1[_0x41c7e0(0xfc)](_univerjs_core[_0x41c7e0(0x62c)],![]);},'onFocus':()=>_0xa664e1['setContextValue'](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x33d))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x612),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x634)],{'className':_0x19f5af(0x4d6),'value':_0x2a71b6,'options':_0x1ca427,'disabled':_0x32482e,'onChange':_0x51355b=>{_0x325d7a(_0x51355b),_0x54b32b({'alignment':_0x51355b});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x19f5af(0x4d3)],{'checked':_0x2a350e,'disabled':_0x32482e,'onChange':_0x5d969c=>{_0x10a607(_0x5d969c),_0x44ca13({'imageRotateWithShape':_0x5d969c});},'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x19f5af(0x456),'children':_0x2a5020(_0x19f5af(0x407))})})]});}function ShapeFillEditor(_0x3672e9){const _0x234bec=_0x48b1be;var _0xb406b3,_0x4d5156,_0x272326;const _0x18691d=(0x0,_univerjs_ui[_0x234bec(0x425)])(_univerjs_core[_0x234bec(0x319)]),_0x122319=(0x0,_univerjs_ui[_0x234bec(0x425)])(_univerjs_core[_0x234bec(0x621)]),_0x2475a3=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x2ae041,isLineShape:_0x54ea48,unitId:_0x12de33,subUnitId:_0xaed3a5,shapeId:_0x54adb0,disableShapeOption:_0x2f67d1}=_0x3672e9,[_0x45f43d,_0x2f77bc]=(0x0,react[_0x234bec(0x47b)])(((_0xb406b3=_0x2ae041[_0x234bec(0x664)])===null||_0xb406b3===void 0x0?void 0x0:_0xb406b3[_0x234bec(0x396)])||_univerjs_pro_engine_shape['ShapeFillEnum']['SolidFill']),[_0x4ceefa,_0x3a423e]=(0x0,react[_0x234bec(0x47b)])(((_0x4d5156=_0x2ae041[_0x234bec(0x664)])===null||_0x4d5156===void 0x0?void 0x0:_0x4d5156[_0x234bec(0x503)])||_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x234bec(0x664)]),[_0x4e82b1,_0x2a4012]=(0x0,react[_0x234bec(0x47b)])(((_0x272326=_0x2ae041[_0x234bec(0x664)])===null||_0x272326===void 0x0?void 0x0:_0x272326['opacity'])||0x1),[_0xc27539,_0x5b392b]=(0x0,react['useState'])(![]);if(_0x54ea48)return null;const _0x3a219c=0x64-_0x4e82b1*0x64;return(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design['RadioGroup'],{'value':_0x45f43d,'disabled':_0x2f67d1,'onChange':_0x323627=>{const _0x50bfbb=_0x234bec;var _0x27514a;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{'fillType':(_0x27514a=_0x2ae041[_0x50bfbb(0x664)])===null||_0x27514a===void 0x0?void 0x0:_0x27514a['fillType']}}},{'fill':{'fillType':_0x323627}}),_0x2f77bc(_0x323627);},'direction':'vertical','children':[(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape[_0x234bec(0x328)]['NoFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x462))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape[_0x234bec(0x328)]['SolidFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x5ba))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x234bec(0x4f0)],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])('span',{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x3a1))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum']['PictureFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x23f))})})]}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)]['SolidFill']&&(0x0,react_jsx_runtime[_0x234bec(0x5e7)])(_0x234bec(0x4b3),{'className':_0x234bec(0x579),'children':[(0x0,react_jsx_runtime[_0x234bec(0x5e7)])(_0x234bec(0x4b3),{'className':_0x234bec(0x2e0),'children':[(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x495),'children':_0x18691d['t']('sheets-shape.fill.color')}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x280)],{'disabled':_0x2f67d1,'overlay':(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x234bec(0x4b7),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['ColorPicker'],{'value':_0x4ceefa,'onChange':_0x828cfd=>{const _0x2a99ef=_0x234bec;var _0x77e678;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{'color':(_0x77e678=_0x2ae041['fill'])===null||_0x77e678===void 0x0?void 0x0:_0x77e678[_0x2a99ef(0x503)]}}},{'fill':{'color':_0x828cfd}}),_0x3a423e(_0x828cfd),_0x5b392b(![]);}})}),'open':_0xc27539,'onOpenChange':_0x5b392b,'children':(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('a',{'className':_0x234bec(0x2d7),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x234bec(0x38f)],{'className':_0x234bec(0x4ef),'extend':{'colorChannel1':_0x4ceefa}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x234bec(0x59e)],{'className':(0x0,_univerjs_design[_0x234bec(0x144)])(_0x234bec(0xff),{'univer-rotate-180':_0xc27539})})]})})]}),(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('div',{'className':_0x234bec(0x1c0),'children':[(0x0,react_jsx_runtime['jsx'])(_0x234bec(0x151),{'className':_0x234bec(0x5c5),'children':_0x18691d['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime['jsx'])(_0x234bec(0x4b3),{'className':_0x234bec(0x63a),'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x4b3),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x29a)],{'className':'univer-w-full','value':_0x3a219c,'disabled':_0x2f67d1,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x19be1e=>_0x19be1e+'%','parser':_0x53083=>(_0x53083===null||_0x53083===void 0x0?void 0x0:_0x53083[_0x234bec(0x4c3)]('%',''))||'','onChange':_0x5f0da7=>{const _0x1b4775=_0x234bec,_0x4343c4=(0x64-Math['max'](0x0,Math[_0x1b4775(0x39a)](0x64,_0x5f0da7!==null&&_0x5f0da7!==void 0x0?_0x5f0da7:0x0)))/0x64;_0x2a4012(_0x4343c4),updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{..._0x2ae041[_0x1b4775(0x664)],'fillType':_0x45f43d}}},{'fill':{..._0x2ae041[_0x1b4775(0x664)],'fillType':_0x45f43d,'opacity':_0x4343c4}}),_0x2475a3[_0x1b4775(0xfc)](_univerjs_core[_0x1b4775(0x62c)],![]);},'onFocus':()=>_0x2475a3['setContextValue'](_univerjs_core[_0x234bec(0x62c)],!![]),'onBlur':()=>{const _0x56456c=_0x234bec;_0x2475a3[_0x56456c(0xfc)](_univerjs_core[_0x56456c(0x62c)],![]);}})})})]})]}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)][_0x234bec(0x4f0)]&&(0x0,react_jsx_runtime[_0x234bec(0x586)])(GradientFillEditor,{'shapeData':_0x2ae041,'disableShapeOption':_0x2f67d1,'onUpdate':_0x1e7ff6=>{const _0x5f01e0=_0x234bec;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{..._0x2ae041[_0x5f01e0(0x664)]}}},{'fill':{..._0x2ae041[_0x5f01e0(0x664)],..._0x1e7ff6}});}}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)][_0x234bec(0x313)]&&(0x0,react_jsx_runtime[_0x234bec(0x586)])(ShapeImageFillEditor,{'unitId':_0x12de33,'subUnitId':_0xaed3a5,'shapeId':_0x54adb0,'shapeData':_0x2ae041,'disableShapeOption':_0x2f67d1})]});}function shapeGradientTypeToPickerType(_0x13e588){const _0x6f61cf=_0x48b1be;switch(_0x13e588){case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)]['Linear']:return _0x6f61cf(0x2d3);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)][_0x6f61cf(0x3b5)]:return _0x6f61cf(0x5ad);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)][_0x6f61cf(0x19a)]:return _0x6f61cf(0x4e8);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)]['Diamond']:return'diamond';default:return _0x6f61cf(0x2d3);}}function pickerTypeToShapeGradientType(_0xda97c6){const _0x28d1ac=_0x48b1be;switch(_0xda97c6){case _0x28d1ac(0x2d3):return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x662)];case _0x28d1ac(0x5ad):return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x3b5)];case'angular':return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x28d1ac(0x19a)];case'diamond':return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x662)];}}function GradientFillEditor(_0x548fce){const _0x47831e=_0x48b1be,{shapeData:_0xbdec5f,disableShapeOption:_0x5481ad,onUpdate:_0x5d5bd8}=_0x548fce,_0x27baa2=(0x0,react['useMemo'])(()=>{const _0x38138c=_0x1fb6;var _0x6f7fae;const _0x121a61=_0xbdec5f[_0x38138c(0x664)];return{'type':shapeGradientTypeToPickerType(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61['gradientType']),'angle':(_0x6f7fae=_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x1b0)])!==null&&_0x6f7fae!==void 0x0?_0x6f7fae:0x5a,'stops':(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x641)])&&_0x121a61[_0x38138c(0x641)][_0x38138c(0x42d)]>=0x2?_0x121a61[_0x38138c(0x641)][_0x38138c(0x2d0)](_0x228041=>({'color':_0x228041[_0x38138c(0x503)],'offset':_0x228041['position']*0x64})):[{'color':(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x503)])||'#ffffff','offset':0x0},{'color':_0x38138c(0x4b8),'offset':0x64}]};},[_0xbdec5f[_0x47831e(0x664)]]),_0x282368=_0xadc900=>{const _0x420441=_0x47831e,_0x563bdb=pickerTypeToShapeGradientType(_0xadc900[_0x420441(0x568)]),_0x547180=_0xadc900[_0x420441(0x2ed)];_0x5d5bd8({'gradientType':_0x563bdb,'gradientAngle':_0x547180,'gradientStops':_0xadc900[_0x420441(0x30f)][_0x420441(0x2d0)](_0x239a14=>({'color':_0x239a14[_0x420441(0x503)],'position':_0x239a14[_0x420441(0x132)]/0x64}))});};return(0x0,react_jsx_runtime[_0x47831e(0x586)])(_0x47831e(0x4b3),{'className':_0x47831e(0x2a9),'children':(0x0,react_jsx_runtime[_0x47831e(0x586)])(_univerjs_design['GradientColorPicker'],{'value':_0x27baa2,'onChange':_0x282368})});}function _0x1d37(){const _0x58c768=['flipX','ShapeChevronIcon','_activeAdjustPointList','SetInlineFormatTextBackgroundColorCommand','_editingParams$','_reset','FlowchartMultiDocument','opacity','shape.type.left-right-arrow-callout','sheets-shape.fill.solidFill','Disposable','shapeType','Fragment','_baseTop','_contextService','ShapeSnip2DiagRectIcon','Callout','ShapeChordIcon','decorate','_activeImageId','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','fillImageSourceType','UPDATE','sheet.command.shape-doc-align','VIEW_MAIN_LEFT','clearAdjustValue','ShapeStar24Icon','shape.type.quad-arrow','ShapeRound2DiagRectIcon','FlowchartProcess','shape.type.border-callout1','Star4','onStarting','ShapeQuadArrowCalloutIcon','normal','MathMultiply','_getZoomRatio','ShapeActionButtonInformationIcon','shape.type.bent-arrow','sheets-shape.toggleFlipH','_sheetsShapeService','classType','NonIsoscelesTrapezoid','isArray','_sheetInterceptorService','asObservable','shape.type.chevron','OPERATION','RIGHT','cxnPointRadius','Star6','shape.type.right-arrow','set','sheets-shape.line.arrowType.arrow','jsxs','UNIVER_DOC','shape.type.action-button-blank','toolbar.horizontalAlignMode.main','getViewport','Transform','push','shape.type.accent-callout1','ShapeMathDivideIcon','ShapeDownArrowCalloutIcon','ShapeStar7Icon','UniverSheetsShapeUIPlugin','Chevron','ShapeSunIcon','_showConnectionSites','getAdjustInfoByName','_generatePasteMutations','attachRangeWithCoord','UpdateShapeDataCommand','shape.type.swoosh-arrow','isConnectorShape','getContextValue','_updateImageAdjValues','ShapeRightArrowIcon','ShapeDefaultConfig','shape.type.math-not-equal','getConnectionInfo','featurePluginUpdateNotification','DrawingApplyType','Star12','getSelectionRanges','getStartConnectInfo','getShapeType','vertexAngle','SetSheetsShapeRotateCommand','ShapeLeftCircularArrowIcon','Radio','_sidebarService','FlowchartExtract','_imageIoService','domX','ActionButtonInformation','current','univer-w-28','height','DRAWING_SHAPE','ShapeCallout1Icon','sheets-shape.line.dashType.longDashDot','UniverInstanceType','IDrawingManagerService','ShapeNoSmokingIcon','sheet.shape.edit.panel','_registerComponent','offsetX','Gear6','FlowchartDisplay','ShapeArrowTypeEnum','univer-flex-1\x20univer-overflow-auto','ICommandService','SheetsSelectionsService','FlowchartManualInput','ShapeDiamondIcon','sheets-shape.line.joinType.miter','_injector','DownArrowCallout','HalfFrame','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_getOrCreateShapeModel','focusDrawing','FOCUSING_PANEL_EDITOR','SetDrawingApplyMutation','onRendered','ShapeSwooshArrowIcon','Frame','shape.type.flow-chart-internal-storage','ChartX','setShouldShowAdjust','Select','_resetState','executeCommand','_sheetDrawingService','BentArrow','sheets-shape.fill.picture.align.r','univer-flex\x20univer-items-center\x20univer-gap-3','Module','shape.type.cube','ComponentManager','setPrstGeom','LEFT','shape.type.flow-chart-manual-input','gradientStops','sheetViewStartColumn','ShapeHexagonIcon','blockArrow','shape.type.plaque','registerFeatureMenuOffset','getDrawingSearch','shape.type.smiley-face','transform','sheets-shape.fill.picture.align.tl','touchDependencies','_baseShapeHeight','shape.type.flow-chart-merge','isHit','FlowchartDecision','NotchedRightArrow','computeConnectorResizeLayout','ShapeRectTextboxVerticalIcon','LineInv','shape.type.ribbon2','ShapeUpArrowCalloutIcon','MathNotEqual','ShapeActionButtonReturnIcon','OvalArrow','shape.type.ellipse-ribbon2','pick','onDblclick$','Star16','function','Small','ToggleSheetsShapeFlipCommand','shape.type.flow-chart-summing-junction','startY','Linear','Funnel','fill','getShapeDataById','prototype','Plugin','stopPropagation','getFocusDrawings','EquationShape','_cxtHandlerPointerMove','adjustValues','PREDEFINED_HOOK_NAME','ShapeStar5Icon','ShapeFlowChartMagneticTapeIcon','shape-text-','ShapeCurvedConnector3Icon','_closeShapeEditPanel','setContextValue','TOP','_registerMoveHandler','univer-text-gray-600\x20univer-transition-transform','bind','ActionButtonReturn','update$','ShapeHeptagonIcon','DEFAULT_PASTE','ShapeTeardropIcon','doc','shape.type.flow-chart-delay','getInverseCoord','ShapeActionButtonBackPreviousIcon','POSITIVE_INFINITY','auto','CENTER','shape.type.math-divide','shape.type.pentagon','getUnit','skeleton','univer-relative\x20univer-size-full\x20univer-overflow-visible','Star7','Arc','SELECTOR','isRender','_handleFreeEndpointMove','_initSelection','ShapeFlowChartPunchedCardIcon','sheets-shape.shapeStyle','getRenderById','Ellipse','shape.type.plus','editorHeight','shape.type.bevel','_getSceneAndTransformerByDrawingSearch','endArrow','ShapeFlowChartConnectorIcon','sheet.command.set-shape-text-horizontal-align','shape.type.action-button-information','shape.type.flow-chart-manual-operation','ShapeLeftBracketIcon','ShapeEllipseRibbonIcon','VIEW_MAIN_TOP','MIDDLE','getConnectorLinePoints','AlignBottomIcon','#4285f4','attachTransformerTo','ShapeCurvedConnector3Arrow2Icon','generateRandomId','vertical','register','verticalAlign','offset','shape.type.right-bracket','PieWedge','_handleConnectedEndpointMove','shape.type.square-tabs','ShapeWaveIcon','LeftRightArrow','UturnArrow','sheet.operation.open-sheet-shape-format-panel','shape.type.callout1','BentUpArrow','Inject','ShapeRightArrowCalloutIcon','engine','SheetDrawingAnchor','UpDownArrowCallout','ShapeFlowChartPredefinedProcessIcon','_isDrawingShapePointDown','clsx','_highlightedSiteIndex','_sheetBasicShapeConnectionPointController','ShapeFlowChartCollateIcon','setCursor','FlowChartInputOutput','sheets-shape.line.arrowType.stealthArrow','ShapeMathMinusIcon','GROUP','HorizontalScroll','_activeShapeInfo','shape.type.accent-callout2','shape.type.flow-chart-document','span','onReady','sheets-shape.fill.picture.scaleX','AlignTopIcon','FlowchartMagneticTape','FOCUSING_COMMON_DRAWINGS','ShapeFlowChartProcessIcon','Donut','_createShapeAdjustControls','enumerable','_baseHeight','parse','useLeftAndRightArrow','refreshAdjustControls','FlowchartDelay','horizontal','shape.type.star10','sheets-shape.fill.picture.scaleY','Round','mainComponent','ShapeLineDashEnum','sheets-shape.line.beginArrowType','Callout2','ShapeLeftUpArrowIcon','Sun','sheets-shape.line.sketchType.curved','ShapeEditor','ShapePentagonIcon','shape.type.snip-round-rect','focus$','visible','getDrawingPoints','invert','DashDot','shape.type.ellipse','shape.type.border-callout3','Snip2DiagRect','shape.type.bent-connector3','setAdjustValueByName','_registerDrawingMoveHandler','basicShape','Freehand','getEndConnectInfo','shape.type.octagon','SHEET_VIEWPORT_KEY','ShapeMathEqualIcon','shape.type.rect-textbox-vertical','IrregularSeal2','icon','MathPlus','isDrawingObject','ShapeMathMultiplyIcon','files','getBatchAddOp','imageOpacity','shape.type.chord','_findShapeAtPoint','LeftBracket','SnipRoundRect','WedgeEllipseCallout','shape.type.left-right-circular-arrow','ISheetClipboardService','ShapeCanIcon','find','shape.type.cloud-callout','getSkeleton','_handleBasicShapeUpdateConnectorLineShape','next','ShapeModel','ShapeDoubleWaveIcon','None','_initSheetChange','sheets-shape.line.sketchType.none','Angular','ShapeBentArrowIcon','ShapeActionButtonBeginningIcon','toDisposable','BlockArrow','changeStart$','AlignOperationCommand','sheets-shape.line.dashType.longDashDotDot','Teardrop','Bevel','ShapeFlowChartManualInputIcon','sheets-shape.config','LeftCircularArrow','CUT','horizontalAlign','isLineShape','_baseLeft','unitId','_sheetDrawingShapeRenderController','translate','setDocumentData','ShapeFrameIcon','gradientAngle','shape.type.star4','ShapeFlowChartOffpageConnectorIcon','IEditorService','_addShapeAdjustControl','shape.type.uturn-arrow','image/*','getCurrentLastSelection','align.middle','computeStraightConnectorLayout','BorderCallout1','callout','UpdateConnectorRelationCommand','shape.type.rect-textbox-horizontal','worldRect','ShapeGear9Icon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','setFillImage','_addControl','toolbar.resetColor','11yzawKC','ShapeRectIcon','sheets-shape.line.capType.flat','disableObjectsEvent','_commandService','RemoveSheetsShapeMutation','shape.type.sun','_renderManagerService','useAbsolutePosition','useKeyboardEvent','sketchType','scene','_isStartConnectorPoint','univer-absolute','IUniverInstanceService','sheets-shape.fill.picture.align.bl','getDocumentData','image','ShapeBorderCallout2Icon','sheets-shape.line.arrowSize.medium','shapeId','startArrow','ShapeLeftBraceIcon','univer-w-20','gdRefX','memo','SetShapeTextVerticalAlignCommand','IRenderManagerService','SquareTabs','_baseDrawingRect','getCurrentScrollState','ShapeCurvedDownArrowIcon','ShapeFunnelIcon','ShapeDodecagonIcon','Path','getDrawingShapeKeyByDrawingSearch','sheets-shape.deleteShape','input','Decagon','shape.type.flow-chart-magnetic-disk','_generateCopyPasteMutations','isHorizontal','StraightConnector1','SHAPE','shape.type.diag-stripe','drawWith','shape.type.plaque-tabs','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','LeftBrace','shape.type.home-plate','shape.type.pie-wedge','Tools','startConnectionDetection','shape.type.hexagon','36477400tELLSF','_clearConnectionSites','_draw','endConnectionDetection','shape.type.decagon','SetSheetsShapeTextVerticalToggleCommand','_focusedDrawings','remove$','getDrawingEditable','ShapeArrowSizeEnum','ShapeOctagonIcon','Callout3','shape.type.snip1-rect','getSheetCommandTarget','shape.type.up-arrow','values','_updateAdjustControlPositions','_commandExecutedListener','shape.type.irregular-seal2','getBasicShapeRotateBound','shape.type.wedge-round-rect-callout','ShapeArcIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','permission.dialog.editErr','ShapeTrapezoidIcon','DRAWING_DOM','_baseWidth','getCurrentSkeleton','clearTimeout','ShapeFlowChartDelayIcon','ShapeUpDownArrowCalloutIcon','shape.type.snip2-same-rect','_connectorObjects','_baseShapeLeft','line','style','getSkeletonParam','ShapeTriangleIcon','ShapeCurvedRightArrowIcon','ShapeBevelIcon','ShapeMathPlusIcon','sheets-shape.line.dashType.longDash','_createCopyInfoByRange','ShapeLightningBoltIcon','VerticalAlign','EllipseRibbon','value','shape.type.corner-tabs','QuadArrow','subscribe','ShapeWedgeRoundRectCalloutIcon','sheets-shape.fill.picture.align.tr','SheetPermissionCheckController','align.right','shape.type.right-arrow-callout','sheets-shape.rotateLeft90','getShapePopupMenus','1429583YMOifK','AccentCallout3','getColorFromTheme','RemoveSheetCommand','shape.type.trapezoid','gdRefY','Solid','shape-adjust-point-','beginPath','iterator','_drawRichText','sqrt','sheets-shape.fill.pictureFill','ConnectorCoordinateTransform','ShapeFlowChartDisplayIcon','sheet.operation.close-sheet-shape-format-panel','ShapeFlowChartInputOutputIcon','COLOR_PICKER_COMPONENT','ShapePieIcon','_currentUniverService','viewBound','_context','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','_registerGroupFeaturePasteHook','AccentBorderCallout2','shape.type.math-plus','registerFeaturePasteHook','Dodecagon','_shapes','ShapeSquareTabsIcon','getDrawingByParam','blur','sheets-shape.line.dashType.squareDot','InsertSheetsShapeMutation','getTransformer','EMPTY','shape.type.wave','_loadAndSetImage','shape.type.block-arc','ShapeLineInvIcon','getZoomRatio','getOwnPropertyDescriptor','rectangle','ShapeFlowChartMergeIcon','_registerShapeMenu','getShapeData','addObject','ShapeBorderCallout3Icon','shapeModel','editingParams$','_updateSrcRectByTransform','Rectangle','WorksheetEditPermission','includes','round','with','scale','clone','undo','FOCUSING_SHAPE_TEXT_EDITOR','ShapeChartPlusIcon','Heptagon','_initPermission','_adjHandlerPointerMove','ShapeRound2SameRectIcon','some','computeConnectorRouteLayout','onPointerMove$','shape.type.flow-chart-or','ShapeStraightConnector1Icon','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','toolbar.fillColor.main','shape.type.math-equal','_handleConnectorPointerUp','shape.type.teardrop','ShapeAccentBorderCallout3Icon','ShapeBentConnector3Arrow2Icon','Dropdown','shape.type.vertical-scroll','shape.type.curved-connector3','DoubleWave','ShapeActionButtonForwardNextIcon','flipY','capType','src','FlowchartCollate','ShapeFlowChartOrIcon','FlowchartOnlineStorage','changeShapeType','abs','FlowChartOfflineStorage','ShapeActionButtonMovieIcon','_shapeUpdateListener','multiply','insertGroupObject','Stretch','cxnIndex','RoundRect','1814631WFVSAN','sheets-shape.line.capType.round','shape.type.funnel','ShapePlaqueTabsIcon','ShapeStar12Icon','InputNumber','LongDashDot','imageTile','Ribbon','_getDrawingRect','hasOwnProperty','Star32','RightArrowCallout','_setTransForm','save','Flat','BorderCallout3','ShapeStar10Icon','SetShapeTextHorizontalAlignCommand','onCommandExecuted','univer-pt-2','cxnPointFill','shape.type.star12','isFinite','pushUndoRedo','setSrcRect','UpdateLineShapeResizeCommand','drawingType','redo','SheetSkeletonManagerService','SHAPE_TEXT','transformByState','RadioGroup','ShapeMoonIcon','getActualSize','univer-text-gray-500','shape.type.parallelogram','COMMAND','filter','StealthArrow','renderConfig','ShapeActionButtonHomeIcon','shape.type.heart','shape.type.star6','shape.type.no-smoking','point','FoldedCorner','HomePlate','_draggingConnectorId','shape.type.gear6','ShapeFlowChartTerminatorIcon','_getShapeAdjustInfosById','SheetSkeletonService','RoundDot','Tile','ChartPlus','shape.type.half-frame','_getConnectionSiteAngle','toStringTag','map','FlowchartDocument','Medium','linear','makeDirty','shape.type.math-multiply','BentConnector3','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','_getScrollInfo','FlowchartPredefinedProcess','rect','_clearControls','UpArrow','_updateShapeAdjustControls','clipByShape','ShapeEllipseRibbon2Icon','univer-flex\x20univer-items-center\x20univer-justify-between','ShapeAccentBorderCallout1Icon','ActionButtonBackPrevious','ShapeParallelogramIcon','sheets-shape.toggleTextVertical','ShapeRibbonIcon','_updateTransform','isEditing','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','button','ShapeLeftArrowCalloutIcon','Line','getPrototypeOf','angle','ShapeBentUpArrowIcon','Can','10496688cTiLim','MathDivide','displayName','localToWorld','DrawingRenderService','shape.type.round1-rect','useCallback','ShapeLeftRightCircularArrowIcon','VIEW_MAIN_LEFT_TOP','removeLinePoints','ShapeCallout3Icon','worksheet','ShapeActionButtonDocumentIcon','_imageShapeClipController','ResetInlineFormatTextBackgroundColorCommand','oKey','COPY_TYPE','lineShapeId','WrapStrategy','align.center','shape.type.frame','useObservable','ShapeDonutIcon','_drawingManagerService','ShapeChartXIcon','shape.type.action-button-end','BUTTON_SELECTOR','sheet.command.set-shape-text-vertical-align','_getShapeInfo','shape.type.flow-chart-alternate-process','getDrawingOrder','stops','Dash','FlowchartPreparation','setSelectionRanges','PictureFill','ShapeStar8Icon','ShapeFlowChartOfflineStorageIcon','deepClone','sheets-shape.fill.picture.align.l','shape.type.straight-connector1','LocaleService','dataModel','ShapeLeftRightArrowIcon','SolidLine','ShapeWedgeEllipseCalloutIcon','shape.type.heptagon','connector-handler-','FlowchartTerminator','_clearShapeAdjustControls','sheets-shape.line.arrowSize.large','registerClipDelegate','DocumentSkeleton','shape.type.star8','MathEqual','imageRotateWithShape','ShapeFillEnum','flowchart','ShapeFlowChartDocumentIcon','isInGroup','Image','FlowchartManualOperation','ShapeRound1RectIcon','open','ShapeActionButtonSoundIcon','wrapStrategy','univer-size-full','ShapeDownArrowIcon','object','shape.type.donut','getAdjustValueByName','RightBracket','_shapeId','changing$','shape.type.ellipse-ribbon','shape.type.striped-right-arrow','ShapeLineCapEnum','sheets-shape.fill.picture.alignment','viewportScrollX','_sheetSkeletonService','_sheetPermissionCheckController','_props','ShapeCurvedUpArrowIcon','index','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','SquareDot','adjHandleSize','getCurrentUnitInfo','univer-flex\x20univer-flex-col\x20univer-gap-3','FORMAT','_createControls','marginTop','_drawShapeText','ShapeRightBraceIcon','resize','sheetViewStartRow','shape.type.circular-arrow','getMatrix','ShapeDecagonIcon','ShapeDiagStripeIcon','clip-adj-','sheets-shape.line.solidLine','Observable','buildClipPath','_copyInfo','FlowchartOffPageConnector','ShapeHeartIcon','BUTTON','floor','\x20px','_shapeService','FlowchartPunchedCard','ShapeBentConnector3Arrow1Icon','strokeWidth','sheets-shape.fill.picture.insert','error','ShapeLineJoinEnum','sheets-shape.fill.picture.source','shape.type.flow-chart-offpage-connector','packageName','ShapeVerticalScrollIcon','_loadShapePictureFill','_univerInstanceService','getEditing','size','_subUnitId','getShapeModel','PlaqueTabs','renderDrawingShape','Snip2SameRect','getCurrentRangeDisable$','FlowchartPunchedTape','_sheetCanvasPopManagerService','CornerTabs','getShapeTypeById','_init','ShapeStar32Icon','getImage','getSheetBySheetId','shape.type.left-arrow','params','ShapePieWedgeIcon','undefined','shape.type.straight-connector2','translateWithPrecision','sheets-shape.line.endArrowType','shape.type.left-arrow-callout','UniverSheetsDrawingUIPlugin','data','clip','enableObjectsEvent','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','drawing.operation.set-drawing-active','_adjHandlerPointerUp','shape.type.star24','_activeShapeAdjustPointList','sheetTransform','IMenuManagerService','ShapeFlowChartMagneticDiskIcon','PaintBucketDoubleIcon','getObject','adjName','imageFillMode','reduce','VIEW_MAIN','sheets-shape.fill.picture.align.br','fillType','shapeKey','sheet.command.menu-insert-shape','shape.type.flow-chart-sort','min','IContextService','isRichText','DocumentDataModel','_drawingRenderService','_addShapeConnectorHandlerObjects','MEDIA','sheets-shape.fill.gradientFill','Circle','saveImage','setHighlighted','RibbonInsertGroup','6171qgbdNp','sheets-shape-ui','sheet.shape.picker.component','shape.type.arc','Vector2','ShapeWedgeRectCalloutIcon','shape.type.rt-triangle','shape.type.wedge-rect-callout','WorkbookEditablePermission','getImageSize','shape.type.flow-chart-terminator','UniverSheetsShapePlugin','_findNearestConnectionSite','composeMatrix','group','Radial','IrregularSeal1','SetShapeTextFontSizeDecreaseCommand','_isStartAdjusting','ShapeNotchedRightArrowIcon','lineJoinType','156860dcLTUC','ThemeService','onPointerDown$','Octagon','worldPoint','gdRefAng','cxnPointStroke','LeftRightRibbon','Plaque','ShapePositionWrapper','ShapeStripedRightArrowIcon','shape.type.up-down-arrow','width','shape.type.wedge-ellipse-callout','Pie','getShapeTextRect','_urlImageService','shape.type.flow-chart-extract','CurvedLeftArrow','updateContext','URL','_attachAdjustEvent','localeService','has','VERTICAL_ROTATE_ANGLE','DRAWING_OBJECT_LAYER_INDEX','DocumentViewModel','DRAWING_IMAGE','shape.type.flow-chart-decision','IConfigService','_rerouteConnectorLine','_initialize','shape.type.accent-border-callout2','setShapeProps','shapeData','_transformCalculateSrcRect','_currentConnectionTarget','getState','relation','rotate(','ShapeChartStarIcon','55881NcQzUv','FlowchartMerge','getViewportByCell','_executeConnectionCommand','ShapeAccentCallout1Icon','ShapeQuadArrowIcon','ShapeAccentBorderCallout2Icon','name','sheets-shape.line.endArrowSize','shape.type.left-brace','ImageSourceTypeEnum','sheets-shape.hidePanel','ShapePlusIcon','univer-mb-2','section','routeConnectorLineShape','ShapeFlowChartDecisionIcon','getBoundingClientRect','body','objects','_currentScene','documentStyle','SheetInterceptorService','ShapeRoundRectIcon','complete','shape.type.star16','ShapeFlowChartSortIcon','_getConnectPointInfo','HorizontalAlign','WRAP','registerCommand','BOTTOM','__esModule','calcAdjValue','getBatchUpdateOp','sheets-shape.fill.picture.rotateWithShape','start','ShapeUpDownArrowIcon','isCurvedConnectorShape','_openShapeEditPanel','BasicShape','AccentCallout2','none','ShapePlaqueIcon','FlowchartMagneticDrum','SheetScrollManagerService','getParent','ActionButtonEnd','CurvedUpArrow','cxnPointStrokeWidth','shape.type.flow-chart-magnetic-tape','Corner','LeftUpArrow','activeSheet$','ShapeCircularArrowIcon','symbol','Miter','_calculateFreeEndpointAngle','Shape','_index','shape.type.snip2-diag-rect','_groupCopyPasteController','shape.type.curved-down-arrow','target','Other','useDependency','getAncestorScale','ShapeLeftRightRibbonIcon','_isOpenedShapeEditPanel','SetShapeTextFontSizeCommand','_executeConnectedRouteResizeCommand','shape-text-editor','BehaviorSubject','length','MenuItemType','getConnectionSiteList','ShapeGear6Icon','setEditing','sheets-shape.line.sketchType.title','ShapeBlockArcIcon','HorizontallyIcon','ShapeUturnArrowIcon','merge','CurvedRightArrow','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','#bcbcbc','760PxhoSe','getConnectionRelation','changeEnd$','Accordion','ShapeActionButtonEndIcon','toPrimitive','ShapeCurvedConnector3Arrow1Icon','SHEET_SHAPE_UI_PLUGIN','KeyCode','scaleY','sheets-shape.fill.picture.align.t','getAdjustNames','Pentagon','_addShapeConnectorHandlerObject','univer-flex\x20univer-flex-col\x20univer-gap-2','syncExecuteCommand','blockExecuteWithoutPermission','sheets-shape.line.dashType.roundDot','SmileyFace','ShapeBentConnector3Icon','_isShouldShowDrawingShapeAdjust','restore','left','shape.type.gear9','isNaN','INSERT','#FFFFFF','image-panel.crop.shape','univer-text-sm','Curved','0.21.1','version','DrawingTypeEnum','shape.type.flow-chart-predefined-process','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','onPointerUp$','lineType','ShapeFlowChartSummingJunctionIcon','discreteRangeToRange','interceptCommand','sheets-shape.fill.noFill','paragraphStyle','RENDER_CLASS_TYPE','collapsed','sheet.command.set-shape-text-font-size-increase','StripedRightArrow','transformToDrawingPosition','ShapeAccentCallout2Icon','shape.type.cloud','create','ShapeIrregularSeal1Icon','ancestorTransform','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','shape.type.round-rect','useMemo','_moveConnectorWithShape','custom','Moon','dashType','SheetsShapeService','startX','_menuManagerService','srcRect','ShapeHorizontalScrollIcon','NoLine','useState','shape.type.star32','getDrawingData','max','disposeWithMe','ShapeEllipseIcon','textRect','_componentManager','ShapeSnip1RectIcon','CROSSHAIR','updateShapeFillImage','shape.type.lightning-bolt','ShapeRibbon2Icon','_lastEditingShapeKey','shape.type.chart-plus','_transform','CommandType','Documents','Plus','_initEvents','getShapeTextData','NoSmoking','ShapeFlowChartOnlineStorageIcon','getObjectIncludeInGroup','align.bottom','addClipboardHook','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Ribbon2','call','_sidebarDisposable','shape.type.up-arrow-callout','shape.type.chart-x','Rect','shape.type.brace-pair','switchMap','ShapeHalfFrameIcon','ShapeStar16Icon','ShapeAccentCallout3Icon','transformForAngle','RightJustifyingIcon','FlowchartSummingJunction','shape.type.curved-up-arrow','sheets-shape.fill.picture.align.b','_registerImageShapeClipDelegate','_insertShapes','Star5','stringify','updateConnectionDetection','SwooshArrow','ShapeRenderModeEnum','CURSOR_TYPE','isStartConnectorPoint','ShapeSmileyFaceIcon','ShapeFlowChartMagneticDrumIcon','onload','clip-','div','RibbonStartGroup','VerticalCenterIcon','shape.type.corner','univer-rounded-lg\x20univer-p-3','#000000','shape.type.rect','sheets-shape.openPanel','DependentOn','onTransformChange$','BracePair','shape.type.left-circular-arrow','_baseShapeWidth','sheets-shape.fill.picture.align.ctr','VerticalScroll','_isImagePointerDown','replace','ShapeRectTextboxHorizontalIcon','_initCopyPaste','getRealBound','centerAngle','addImageSourceCache','gdRefR','ShapeFlowChartPreparationIcon','drawingId','ImageFillModeEnum','Round1Rect','stroke','shape.type.callout3','Large','Heart','draw','Checkbox','_baseShapeTop','ShapeActionButtonHelpIcon','univer-w-full','onScrollAfter$','ShapeUpArrowIcon','shape.type.math-minus','ShapeHomePlateIcon','shape.type.action-button-document','subUnitId','warn','ShapeFlowChartPunchedTapeIcon','fillImageSource','setOnSavingEditorData','forEach','unsubscribe','getFreeze','setTimeout','ShapeStraightConnector2Icon','ShapeActionButtonBlankIcon','_shapeTextEditingService','angular','univer-hidden','ShapeFolderCornerIcon','ShapeCloudCalloutIcon','_onSavingEditorData$','FromArray','RibbonPosition','univer-text-xl\x20univer-text-gray-500','GradientFill','ShapeFlowChartInternalStorageIcon','_clipService','_clearShapeConnectorHandlerObjects','IImageIoService','close','setCanUseShapeClip','rowStartY','ShapeIrregularSeal2Icon','RightTriangle','SolidFill','ShapeFlowChartManualOperationIcon','_getImageDrawingInfo','get','sheets-shape.line.joinType.title','_getImagePrstGeom','Flowchart','LAYOUT','_localeService','color','1738NLMdaK','deg)\x20scaleY(','FlowchartSort','onerror','sheets-shape.line.noLine','ShapeBracePairIcon','shape.type.flow-chart-input-output','_adjName','offsetY','RichTextEditingMutation','Arrow','_connectionSiteObjects','ShapeRightBracketIcon','add','shape.type.chart-star','setShapeData','colStartX','ShapeTypeEnum','ShapeIcon','focus','shape.type.action-button-back-previous','_cxtHandlerPointerUp','ShapeCurvedLeftArrowIcon','FlowchartOr','_initMenu','shape.type.folder-corner','setConfig','setZoomRatio','_activeShapeModel','shape.type.diamond','shape.type.flow-chart-online-storage','shape.type.border-callout2','univer-w-20\x20univer-flex-1','isHighlighted','ShapeLineIcon','sheets-shape.line.dashType.solid','ISheetDrawingService','BreakLineCommand','connection-site-','_activeAdjustInfo','entries','ShapeRtTriangleIcon','_hasReset','SheetsDrawingGroupCopyPasteController','shape.type.quad-arrow-callout','onSavingEditorData$','shape.type.bent-connector3-arrow2','ActionButtonBeginning','ShapeStar4Icon','RemoveSheetDrawingCommand','8pxmCjo','InsertShapeCommand','LeftJustifyingIcon','sin','Round2DiagRect','render','shape.type.dodecagon','primary.600','_activeTargetShapeId','getUnitId','useRef','shape.type.non-isosceles-trapezoid','_drawSimpleText','shape.type.flow-chart-offline-storage','#1a73e8','clearAdjustControls','defineProperty','_config','cos','_generateCutPasteMutations','Round2SameRect','ShapeCornerIcon','_registerOperations','_handleConnectedEndpointPointerUp','from','AccentCallout1','Parallelogram','useEffect','_targetShapeId','registerRenderModule','ActionButtonSound','prstGeom','_registerFocusChangeHandler','shape.type.round2-same-rect','ShapeLineTypeEnum','_initCommands','shape.type.flow-chart-magnetic-drum','ShapeCubeIcon','_activeShapeId','ShapeGradientTypeEnum','other','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','pipe','ShapeCornerTabsIcon','adjHandleFill','shape.group.','shape.type.up-down-arrow-callout','UpdateSheetsShapeDataMutation','top','_isHighlighted','type','useEditor','sheet.command.update-shape-data','ActionButtonForwardNext','pluginName','resetCursor','ShapeLeftArrowIcon','indexOf','dispose','ShapeSketchTypeEnum','ShapeFlowChartAlternateProcessIcon','REMOVE','ShapeCloudIcon','shape.type.action-button-help','SetShapeTextFontSizeIncreaseCommand','ShapeNonIsoscelesTrapezoidIcon','ang','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','ShapeFlowChartExtractIcon','_executeResizeCommand','string','WedgeRoundRectCallout','getTransformerByCreate','shape.type.action-button-movie','isRenderLinePointsMode','_registerDrawingFocusChangeHandler','rotation','domY','ShapeMathNotEqualIcon','jsx','shape.type.notched-right-arrow','highlighted','sheets-shape.line.arrowType.openArrow','sheets-shape.fill.picture.offsetY','ShapeSnipRoundRectIcon','_sheetShapeAdjustController','registerFeatureMenu','scaleX','_isConnecting','applyPoint','img','LeftRightArrowCallout','ShapeFlowChartMultidocumentIcon','getDrawingVisible','subscribeEvent','_attachConnectorObjectEvent','DrawingCommonPanel','shape.type.irregular-seal1','ActionButtonBlank','viewportScrollY','StarAndBanner','ShapeLeftRightArrowCalloutIcon','ShapeBracketPairIcon','MoreDownIcon','sheets-shape.fill.transparency','FlowchartMagneticDisk','getCurrentTypeOfUnit$','_getShapeAdjustPointListById','preValue','_cxnIndex','CurvedConnector3','UNIVER_SHEET','RightArrow','_executeConnectedRouteConnectionCommand','SheetsShapeUIController','CloudCallout','subscribeContextValue$','calculate','radial','_unitId','ShapeSnip2SameRectIcon','ShapeBorderCallout1Icon'];_0x1d37=function(){return _0x58c768;};return _0x1d37();}function ShapeLineEditor(_0x39109e){const _0x3def8e=_0x48b1be;var _0x1e34ca,_0x3452f7,_0x49725d,_0x106725,_0x11506f,_0x896088,_0x358f2e,_0x5a18a4,_0x58453b,_0x52891c,_0x397353,_0x1d6ccd,_0x29e969,_0x49ac15,_0x5afdbf,_0x24a8aa;const _0x2e8a82=(0x0,_univerjs_ui[_0x3def8e(0x425)])(_univerjs_core[_0x3def8e(0x319)]),_0x550dba=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x3def8e(0x621)]),_0x4a88ff=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x482c72,isLineShape:_0x408c6c,unitId:_0x579cfc,subUnitId:_0x36b99c,shapeId:_0x29d8f,disableShapeOption:_0x4f10c8}=_0x39109e,_0xa116ac=_0x482c72[_0x3def8e(0x4ce)],[_0x5c6a02,_0x1675b4]=(0x0,react[_0x3def8e(0x47b)])((_0x1e34ca=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['lineStrokeType'])!==null&&_0x1e34ca!==void 0x0?_0x1e34ca:_univerjs_pro_engine_shape[_0x3def8e(0x558)][_0x3def8e(0x31c)]),[_0x20eef2,_0x387b25]=(0x0,react[_0x3def8e(0x47b)])((_0x3452f7=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x503)])!==null&&_0x3452f7!==void 0x0?_0x3452f7:_univerjs_pro_engine_shape[_0x3def8e(0x5ff)][_0x3def8e(0x4ce)]),[_0x8ebfea,_0x5476e0]=(0x0,react[_0x3def8e(0x47b)])((_0x49725d=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['opacity'])!==null&&_0x49725d!==void 0x0?_0x49725d:0x1),[_0x2eee8e,_0x2a393f]=(0x0,react[_0x3def8e(0x47b)])((_0x106725=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x3c7)])!==null&&_0x106725!==void 0x0?_0x106725:_univerjs_pro_engine_shape['ShapeDefaultConfig']['strokeWidth']),[_0x78e578,_0x49f46e]=(0x0,react[_0x3def8e(0x47b)])((_0x11506f=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['dashType'])!==null&&_0x11506f!==void 0x0?_0x11506f:_univerjs_pro_engine_shape[_0x3def8e(0x165)]['Solid']),[_0x50b89f,_0x28c11c]=(0x0,react[_0x3def8e(0x47b)])((_0x896088=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['capType'])!==null&&_0x896088!==void 0x0?_0x896088:_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x2a4)]),[_0x15d4c2,_0x369f52]=(0x0,react['useState'])((_0x358f2e=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x3ba)])!==null&&_0x358f2e!==void 0x0?_0x358f2e:_univerjs_pro_engine_shape[_0x3def8e(0x364)][_0x3def8e(0x41c)]),[_0x25c440,_0x4e585f]=(0x0,react[_0x3def8e(0x47b)])((_0x5a18a4=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x1ce)])!==null&&_0x5a18a4!==void 0x0?_0x5a18a4:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x3def8e(0x197)]),_0x254d52=_0x482c72,[_0x12e9bd,_0x3690fa]=(0x0,react[_0x3def8e(0x47b)])((_0x58453b=(_0x52891c=_0x254d52['ln'])===null||_0x52891c===void 0x0||(_0x52891c=_0x52891c['startArrow'])===null||_0x52891c===void 0x0?void 0x0:_0x52891c[_0x3def8e(0x568)])!==null&&_0x58453b!==void 0x0?_0x58453b:_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x197)]),[_0x3de799,_0x8a99c8]=(0x0,react[_0x3def8e(0x47b)])((_0x397353=(_0x1d6ccd=_0x254d52['ln'])===null||_0x1d6ccd===void 0x0||(_0x1d6ccd=_0x1d6ccd[_0x3def8e(0x1d9)])===null||_0x1d6ccd===void 0x0?void 0x0:_0x1d6ccd[_0x3def8e(0x36c)])!==null&&_0x397353!==void 0x0?_0x397353:_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x2d2)]),[_0x333598,_0x4ea1ac]=(0x0,react['useState'])((_0x29e969=(_0x49ac15=_0x254d52['ln'])===null||_0x49ac15===void 0x0||(_0x49ac15=_0x49ac15[_0x3def8e(0x120)])===null||_0x49ac15===void 0x0?void 0x0:_0x49ac15['type'])!==null&&_0x29e969!==void 0x0?_0x29e969:_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['None']),[_0x2fec62,_0x3b35c3]=(0x0,react['useState'])((_0x5afdbf=(_0x24a8aa=_0x254d52['ln'])===null||_0x24a8aa===void 0x0||(_0x24a8aa=_0x24a8aa['endArrow'])===null||_0x24a8aa===void 0x0?void 0x0:_0x24a8aa[_0x3def8e(0x36c)])!==null&&_0x5afdbf!==void 0x0?_0x5afdbf:_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x2d2)]),[_0x1ba16e,_0x169fa5]=(0x0,react['useState'])(![]),_0x4bb2f6=0x64-_0x8ebfea*0x64,_0x178136=[{'label':_0x2e8a82['t'](_0x3def8e(0x527)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x239)])},{'label':_0x2e8a82['t'](_0x3def8e(0x44b)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x3def8e(0x2ca)])},{'label':_0x2e8a82['t'](_0x3def8e(0x253)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x345)])},{'label':_0x2e8a82['t']('sheets-shape.line.dashType.dash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x3def8e(0x310)])},{'label':_0x2e8a82['t']('sheets-shape.line.dashType.dashDot'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x172)])},{'label':_0x2e8a82['t'](_0x3def8e(0x223)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)]['LongDash'])},{'label':_0x2e8a82['t'](_0x3def8e(0x616)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x29b)])},{'label':_0x2e8a82['t'](_0x3def8e(0x1a1)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['LongDashDotDot'])}],_0x5d489a=[{'label':_0x2e8a82['t'](_0x3def8e(0x1c6)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x2a4)])},{'label':_0x2e8a82['t'](_0x3def8e(0x296)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x163)])},{'label':_0x2e8a82['t']('sheets-shape.line.capType.square'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)]['Square'])}],_0x47f163=[{'label':_0x2e8a82['t'](_0x3def8e(0x199)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x571)]['None'])},{'label':_0x2e8a82['t'](_0x3def8e(0x16a)),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x3def8e(0x457)])},{'label':_0x2e8a82['t']('sheets-shape.line.sketchType.freehand'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x571)][_0x3def8e(0x17a)])},{'label':_0x2e8a82['t']('sheets-shape.line.sketchType.handDrawn'),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum']['HandDrawn'])}],_0x3e74d7=[{'label':_0x2e8a82['t'](_0x3def8e(0x625)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x364)][_0x3def8e(0x41c)])},{'label':_0x2e8a82['t']('sheets-shape.line.joinType.round'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x364)]['Round'])},{'label':_0x2e8a82['t']('sheets-shape.line.joinType.bevel'),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x3def8e(0x1a3)])}],_0x1f1821=[{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.none'),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['None'])},{'label':_0x2e8a82['t'](_0x3def8e(0x5e6)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x50e)])},{'label':_0x2e8a82['t'](_0x3def8e(0x589)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['OpenArrow'])},{'label':_0x2e8a82['t'](_0x3def8e(0x14a)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x2bc)])},{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['DiamondArrow'])},{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x658)])}],_0x48937e=[{'label':_0x2e8a82['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x65e)])},{'label':_0x2e8a82['t'](_0x3def8e(0x1d7)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)]['Medium'])},{'label':_0x2e8a82['t'](_0x3def8e(0x322)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x4d0)])}];return(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x348),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x3def8e(0x2b5)],{'value':String(_0x5c6a02),'disabled':_0x4f10c8,'onChange':_0x394454=>{const _0x2361c5=_0x3def8e;var _0x3472dd;_0x1675b4(Number(_0x394454)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x3472dd=_0x482c72[_0x2361c5(0x4ce)])===null||_0x3472dd===void 0x0?void 0x0:_0x3472dd['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x394454)}});},'direction':_0x3def8e(0x12f),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape['ShapeLineTypeEnum'][_0x3def8e(0x47a)]),'children':(0x0,react_jsx_runtime['jsx'])(_0x3def8e(0x151),{'className':_0x3def8e(0x456),'children':_0x2e8a82['t'](_0x3def8e(0x508))})}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x60b)],{'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x558)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])('span',{'className':_0x3def8e(0x456),'children':_0x2e8a82['t'](_0x3def8e(0x355))})})]}),_0x5c6a02!==_univerjs_pro_engine_shape[_0x3def8e(0x558)]['NoLine']&&(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x579),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x280)],{'disabled':_0x4f10c8,'overlay':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['ColorPicker'],{'value':_0x20eef2,'onChange':_0x310ab6=>{const _0x427ec3=_0x3def8e;var _0x557933;updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'color':(_0x557933=_0x482c72['stroke'])===null||_0x557933===void 0x0?void 0x0:_0x557933[_0x427ec3(0x503)]}}},{'stroke':{'color':_0x310ab6}}),_0x387b25(_0x310ab6),_0x169fa5(![]);}})}),'open':_0x1ba16e,'onOpenChange':_0x169fa5,'children':(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('a',{'className':_0x3def8e(0x2d7),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':'univer-text-gray-500','extend':{'colorChannel1':_0x20eef2}}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design['clsx'])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x1ba16e})})]})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1c0),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])('div',{'className':_0x3def8e(0x524),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['InputNumber'],{'className':_0x3def8e(0x4d6),'value':_0x4bb2f6,'disabled':_0x4f10c8,'min':0x0,'max':0x64,'formatter':_0x23cc53=>_0x23cc53+'%','parser':_0xf1ea92=>(_0xf1ea92===null||_0xf1ea92===void 0x0?void 0x0:_0xf1ea92[_0x3def8e(0x4c3)]('%',''))||'','onChange':_0x3d22a2=>{const _0x27c54c=_0x3def8e;var _0x55210d;const _0x1d7e32=(0x64-Math[_0x27c54c(0x47e)](0x0,Math[_0x27c54c(0x39a)](0x64,_0x3d22a2!==null&&_0x3d22a2!==void 0x0?_0x3d22a2:0x0)))/0x64;_0x5476e0(_0x1d7e32),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'opacity':(_0x55210d=_0x482c72[_0x27c54c(0x4ce)])===null||_0x55210d===void 0x0?void 0x0:_0x55210d[_0x27c54c(0x5b8)]}}},{'stroke':{'opacity':_0x1d7e32}}),_0x4a88ff[_0x27c54c(0xfc)](_univerjs_core[_0x27c54c(0x62c)],![]);},'onFocus':()=>_0x4a88ff[_0x3def8e(0xfc)](_univerjs_core[_0x3def8e(0x62c)],!![]),'onBlur':_0xbf186d=>{const _0x396c0f=_0x3def8e;_0x4a88ff[_0x396c0f(0xfc)](_univerjs_core[_0x396c0f(0x62c)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1c0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.width')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1db),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x29a)],{'className':_0x3def8e(0x4d6),'disabled':_0x4f10c8,'value':_0x2eee8e,'min':0.25,'max':0x64,'step':0.25,'formatter':_0xf70b47=>_0xf70b47+_0x3def8e(0x35d),'parser':_0x9230f4=>(_0x9230f4===null||_0x9230f4===void 0x0?void 0x0:_0x9230f4['replace'](_0x3def8e(0x35d),''))||'','onChange':_0x4202e9=>{const _0x5537b2=_0x3def8e;if(!Number[_0x5537b2(0x452)](_0x4202e9)&&_0x4202e9!==null){var _0xe3972a;updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'width':(_0xe3972a=_0x482c72[_0x5537b2(0x4ce)])===null||_0xe3972a===void 0x0?void 0x0:_0xe3972a['width']}}},{'stroke':{'width':_0x4202e9}});}_0x4a88ff[_0x5537b2(0xfc)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x4a88ff['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':_0x18ee53=>{const _0x23aff8=_0x3def8e;_0x4a88ff[_0x23aff8(0xfc)](_univerjs_core[_0x23aff8(0x62c)],![]);}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t']('sheets-shape.line.dashType.title')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':'univer-w-full','value':String(_0x78e578),'options':_0x178136,'disabled':_0x4f10c8,'onChange':_0x4a2c48=>{const _0x12a7f0=_0x3def8e;var _0x2f03c1;_0x49f46e(Number(_0x4a2c48)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'dashType':(_0x2f03c1=_0x482c72['stroke'])===null||_0x2f03c1===void 0x0?void 0x0:_0x2f03c1[_0x12a7f0(0x474)]}}},{'stroke':{'dashType':Number(_0x4a2c48)}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.capType.title')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':'univer-w-full','value':String(_0x50b89f),'options':_0x5d489a,'disabled':_0x4f10c8,'onChange':_0x316d8c=>{const _0x2ee21d=_0x3def8e;var _0x852714;_0x28c11c(Number(_0x316d8c)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'capType':(_0x852714=_0x482c72[_0x2ee21d(0x4ce)])===null||_0x852714===void 0x0?void 0x0:_0x852714[_0x2ee21d(0x286)]}}},{'stroke':{'capType':Number(_0x316d8c)}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t'](_0x3def8e(0x4fe))}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x15d4c2),'options':_0x3e74d7,'disabled':_0x4f10c8,'onChange':_0x33affc=>{const _0x55d5f8=_0x3def8e;var _0x2a8517;_0x369f52(Number(_0x33affc)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'lineJoinType':(_0x2a8517=_0x482c72['stroke'])===null||_0x2a8517===void 0x0?void 0x0:_0x2a8517[_0x55d5f8(0x3ba)]}}},{'stroke':{'lineJoinType':Number(_0x33affc)}});}})})]}),!_0x408c6c&&(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x432))}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Select'],{'className':_0x3def8e(0x4d6),'value':String(_0x25c440),'options':_0x47f163,'disabled':_0x4f10c8,'onChange':_0x5c2e12=>{const _0x32e3a9=_0x3def8e;var _0x25aaa8;_0x4e585f(Number(_0x5c2e12)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'sketchType':(_0x25aaa8=_0x482c72[_0x32e3a9(0x4ce)])===null||_0x25aaa8===void 0x0?void 0x0:_0x25aaa8[_0x32e3a9(0x1ce)]}}},{'stroke':{'sketchType':Number(_0x5c2e12)}});}})})]}),_0x408c6c&&(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(react_jsx_runtime[_0x3def8e(0x5bd)],{'children':[(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t'](_0x3def8e(0x166))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x12e9bd),'options':_0x1f1821,'onChange':_0x564ecf=>{const _0x3fa673=_0x3def8e;var _0x55a568;_0x3690fa(Number(_0x564ecf)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x55a568=_0x482c72['ln'])===null||_0x55a568===void 0x0||(_0x55a568=_0x55a568[_0x3fa673(0x1d9)])===null||_0x55a568===void 0x0?void 0x0:_0x55a568[_0x3fa673(0x568)]}}}},{'ln':{'startArrow':{'type':Number(_0x564ecf)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.beginArrowSize')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x3de799),'options':_0x48937e,'onChange':_0x125230=>{const _0x4bfd3b=_0x3def8e;var _0x570836;_0x8a99c8(Number(_0x125230)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x570836=_0x482c72['ln'])===null||_0x570836===void 0x0||(_0x570836=_0x570836['startArrow'])===null||_0x570836===void 0x0?void 0x0:_0x570836[_0x4bfd3b(0x36c)]}}}},{'ln':{'startArrow':{'size':Number(_0x125230)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x381))}),(0x0,react_jsx_runtime['jsx'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x333598),'options':_0x1f1821,'onChange':_0xa32a44=>{const _0x3f4765=_0x3def8e;var _0x592bb7;_0x4ea1ac(Number(_0xa32a44)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x592bb7=_0x482c72['ln'])===null||_0x592bb7===void 0x0||(_0x592bb7=_0x592bb7[_0x3f4765(0x120)])===null||_0x592bb7===void 0x0?void 0x0:_0x592bb7['type']}}}},{'ln':{'endArrow':{'type':Number(_0xa32a44)}}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x3ec))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0x3def8e(0x4d6),'value':String(_0x2fec62),'options':_0x48937e,'onChange':_0x71a899=>{const _0x3deb88=_0x3def8e;var _0x510abe;_0x3b35c3(Number(_0x71a899)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x510abe=_0x482c72['ln'])===null||_0x510abe===void 0x0||(_0x510abe=_0x510abe[_0x3deb88(0x120)])===null||_0x510abe===void 0x0?void 0x0:_0x510abe['size']}}}},{'ln':{'endArrow':{'size':Number(_0x71a899)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x36e48f=_0x48b1be,_0x33e6b5=(0x0,_univerjs_ui[_0x36e48f(0x425)])(_univerjs_drawing[_0x36e48f(0x618)]),[_0x548235,_0x3ec5dc]=(0x0,react[_0x36e48f(0x47b)])(_0x33e6b5[_0x36e48f(0x669)]());(0x0,react['useEffect'])(()=>{const _0x5ad5f6=_0x36e48f,_0x3b0bed=_0x33e6b5[_0x5ad5f6(0x16e)]['subscribe'](_0x2ebbd0=>{_0x3ec5dc(_0x2ebbd0);});return()=>{const _0x2fa593=_0x5ad5f6;_0x3b0bed[_0x2fa593(0x4e2)]();};},[]);if(_0x548235[_0x36e48f(0x42d)]===0x0)return null;return(0x0,react_jsx_runtime['jsx'])(_0x36e48f(0x4b3),{'children':(0x0,react_jsx_runtime[_0x36e48f(0x5e7)])('div',{'className':_0x36e48f(0x210),'children':[(0x0,react_jsx_runtime[_0x36e48f(0x586)])(_univerjs_drawing_ui[_0x36e48f(0x597)],{'drawings':_0x548235,'hasCropper':![]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_sheets_drawing_ui[_0x36e48f(0x140)],{'drawings':_0x548235})]})});}function ShapeEditPanel(_0x3eb508){const _0x24623b=_0x48b1be,{shapeData:_0x2f8e89,shapeId:_0x301a25,shapeType:_0x642e2d,version:_0x1c7402,unitId:_0x1b3a0f,subUnitId:_0x30cb2c,disableShapeOption:_0x3b17ca}=_0x3eb508,_0x54a5e9=(0x0,_univerjs_ui[_0x24623b(0x425)])(_univerjs_core['LocaleService']),_0x149e5=(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x642e2d),[_0x1885e6,_0x4b79d0]=(0x0,react[_0x24623b(0x47b)])(0x0),_0x4f185c=[{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x54a5e9['t']('sheets-shape.fill.title')}),'children':(0x0,react_jsx_runtime['jsx'])(_0x24623b(0x3f2),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapeFillEditor,{'shapeId':_0x301a25,'shapeData':_0x2f8e89,'isLineShape':_0x149e5,'subUnitId':_0x30cb2c,'unitId':_0x1b3a0f,'disableShapeOption':_0x3b17ca},_0x301a25)})},{'label':(0x0,react_jsx_runtime[_0x24623b(0x586)])('div',{'children':_0x54a5e9['t']('sheets-shape.line.title')}),'children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(_0x24623b(0x3f2),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapeLineEditor,{'shapeId':_0x301a25,'shapeData':_0x2f8e89,'isLineShape':_0x149e5,'subUnitId':_0x30cb2c,'unitId':_0x1b3a0f,'disableShapeOption':_0x3b17ca},_0x301a25)})}];return(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':_0x24623b(0x332),'children':[(0x0,react_jsx_runtime[_0x24623b(0x5e7)])('div',{'className':_0x24623b(0x46e),'children':[(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])(_0x24623b(0x55f),_0x1885e6===0x0?'univer-text-primary-600':_0x24623b(0x2b8)),'onClick':()=>_0x4b79d0(0x0),'children':[_0x54a5e9['t'](_0x24623b(0x119)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x1885e6===0x0,'univer-bg-transparent':_0x1885e6!==0x0})})]}),(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x1885e6===0x1,'univer-text-gray-500':_0x1885e6!==0x1}),'onClick':()=>_0x4b79d0(0x1),'children':[_0x54a5e9['t']('sheets-shape.shapePosition'),(0x0,react_jsx_runtime['jsx'])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600',{'univer-bg-primary-600':_0x1885e6===0x1,'univer-bg-transparent':_0x1885e6!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x24623b(0x586)])('div',{'className':_0x24623b(0x620),'children':_0x1885e6===0x0?(0x0,react_jsx_runtime[_0x24623b(0x586)])(_0x24623b(0x4b3),{'className':'','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(_univerjs_design[_0x24623b(0x43d)],{'items':_0x4f185c})},_0x1c7402):(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x104352,_0x33828d){const _0x30a65e=_0x48b1be;super(_0x104352,_0x33828d),_defineProperty(this,_0x30a65e(0x338),null),_defineProperty(this,_0x30a65e(0x50b),null),_defineProperty(this,_0x30a65e(0x5ae),null),_defineProperty(this,_0x30a65e(0x36d),null);if(_0x33828d)this[_0x30a65e(0x3dc)](_0x33828d);}['getDrawingSearch'](){const _0x243f0c=_0x48b1be;return{'unitId':this[_0x243f0c(0x5ae)],'subUnitId':this[_0x243f0c(0x36d)],'drawingId':this[_0x243f0c(0x338)]};}['setShapeProps'](_0x2abf19){const _0x59d192=_0x48b1be;if(typeof _0x2abf19['shapeId']!==_0x59d192(0x37e))this[_0x59d192(0x338)]=_0x2abf19['shapeId'];if(typeof _0x2abf19[_0x59d192(0x391)]!==_0x59d192(0x37e))this[_0x59d192(0x50b)]=_0x2abf19[_0x59d192(0x391)];if(typeof _0x2abf19[_0x59d192(0x1ab)]!==_0x59d192(0x37e))this[_0x59d192(0x5ae)]=_0x2abf19['unitId'];if(typeof _0x2abf19['subUnitId']!==_0x59d192(0x37e))this[_0x59d192(0x36d)]=_0x2abf19[_0x59d192(0x4dc)];this[_0x59d192(0x2b4)]({'width':_0x2abf19['width'],'height':_0x2abf19[_0x59d192(0x613)]});}[_0x48b1be(0x1fc)](_0x1fd447){const _0x3c1f69=_0x48b1be;_univerjs_engine_render[_0x3c1f69(0x3a2)][_0x3c1f69(0x1f1)](_0x1fd447,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3c1f69(0x346)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3c1f69(0x562)],'stroke':_univerjs_pro_engine_shape[_0x3c1f69(0x5ff)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x387361,_0x307ca5,_0x5411bd,_0x11e5a9,_0x55950f,_0x3f56d8,_0x389f52,_0x1d89fe){const _0xae8786=_0x48b1be;super(),this['_context']=_0x387361,this['_contextService']=_0x307ca5,this['_drawingManagerService']=_0x5411bd,this['_sheetsShapeService']=_0x11e5a9,this[_0xae8786(0x1cb)]=_0x55950f,this[_0xae8786(0x1ac)]=_0x3f56d8,this[_0xae8786(0x36a)]=_0x389f52,this['_commandService']=_0x1d89fe,_defineProperty(this,_0xae8786(0x55c),null),_defineProperty(this,_0xae8786(0x5ae),null),_defineProperty(this,_0xae8786(0x36d),null),_defineProperty(this,_0xae8786(0x38b),void 0x0),_defineProperty(this,_0xae8786(0x24f),[]),_defineProperty(this,_0xae8786(0x21b),0x0),_defineProperty(this,_0xae8786(0x4d4),0x0),_defineProperty(this,_0xae8786(0x4bf),0x0),_defineProperty(this,_0xae8786(0x64c),0x0),_defineProperty(this,_0xae8786(0x3b8),![]),_defineProperty(this,_0xae8786(0x52b),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0xae8786(0x272),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0xae8786(0x44e),![]),this[_0xae8786(0x582)](),this[_0xae8786(0x178)]();}[_0x48b1be(0x5a2)](_0x552cd5,_0x20374a,_0x3f6a7c){const _0x7e0381=_0x48b1be,_0x121e21=this[_0x7e0381(0x5d9)][_0x7e0381(0x36e)](_0x552cd5,_0x20374a,_0x3f6a7c);if(_0x121e21)return _0x121e21[_0x7e0381(0x170)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!![]);}['setShouldShowAdjust'](_0xe1dc12){const _0x1a2502=_0x48b1be;this[_0x1a2502(0x44e)]=_0xe1dc12;}[_0x48b1be(0x2c8)](_0x50da05,_0x23717a,_0x275da0,_0x419015){const _0x570696=_0x48b1be,_0xbb8f98=this[_0x570696(0x5d9)][_0x570696(0x36e)](_0x50da05,_0x23717a,_0x275da0);if(_0xbb8f98)return _0xbb8f98[_0x570696(0x5f6)](_0x419015);}[_0x48b1be(0x159)](_0x2b04b0=![]){const _0x21683c=_0x48b1be;if(this[_0x21683c(0x5ae)]===null||this[_0x21683c(0x36d)]===null||this[_0x21683c(0x55c)]===null)return;const _0x5b12e0=this['_renderManagerService'][_0x21683c(0x11a)](this[_0x21683c(0x5ae)]);if(!_0x5b12e0)return;if(!_0x5b12e0[_0x21683c(0x26a)](_univerjs_sheets_ui[_0x21683c(0x2b2)])[_0x21683c(0x215)]())return;const {scene:_0x333afc}=_0x5b12e0,_0x1ed66c={'unitId':this['_unitId'],'subUnitId':this[_0x21683c(0x36d)],'drawingId':this[_0x21683c(0x55c)]},_0x331ad3=this['_drawingManagerService'][_0x21683c(0x251)](_0x1ed66c),{transform:_0x3e4e50}=_0x331ad3;if(!_0x3e4e50)return;if(_0x331ad3[_0x21683c(0x2b0)]!==_univerjs_core[_0x21683c(0x45a)][_0x21683c(0x614)])return;const {left:_0x39f8e0,top:_0x4a4242,width:_0x1e47c3,height:_0x1bb37e,flipX:_0x945650,flipY:_0x122b83,angle:angle=0x0}=_0x3e4e50;if(_0x39f8e0===void 0x0||_0x4a4242===void 0x0)return;if(_0x2b04b0)this['_activeShapeAdjustPointList']=this[_0x21683c(0x5a2)](this[_0x21683c(0x5ae)],this[_0x21683c(0x36d)],this[_0x21683c(0x55c)]);const _0x372468=this['_activeShapeAdjustPointList'];for(let _0x526529=0x0;_0x526529<_0x372468['length'];_0x526529++){const _0x2bda11=_0x372468[_0x526529];let _0x228739=_0x2bda11['x'],_0x5f303f=_0x2bda11['y'];if(_0x945650)_0x228739=(_0x1e47c3||0x0)-_0x228739;if(_0x122b83)_0x5f303f=(_0x1bb37e||0x0)-_0x5f303f;if(angle!==0x0){const _0x532224=(_0x1e47c3||0x0)/0x2,_0x1f94f2=(_0x1bb37e||0x0)/0x2,_0x49fdbb=angle*Math['PI']/0xb4,_0x32b357=Math['cos'](_0x49fdbb),_0x2e029d=Math[_0x21683c(0x539)](_0x49fdbb),_0x505d74=_0x228739-_0x532224,_0x4397de=_0x5f303f-_0x1f94f2;_0x228739=_0x532224+(_0x505d74*_0x32b357-_0x4397de*_0x2e029d),_0x5f303f=_0x1f94f2+(_0x505d74*_0x2e029d+_0x4397de*_0x32b357);}const _0x3c1b8d={'x':_0x228739,'y':_0x5f303f,'adjName':_0x2bda11['adjName']};this['_addShapeAdjustControl'](_0x333afc,_0x3c1b8d,_0x3c1b8d[_0x21683c(0x391)],_0x39f8e0,_0x4a4242,this[_0x21683c(0x5ae)],this['_subUnitId']);}}[_0x48b1be(0x2dd)](_0x4c5a3e=![]){_0x4c5a3e&&(this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x4c5a3e));}[_0x48b1be(0x1b4)](_0xbbcce,_0x4bbfdd,_0xf92f75,_0x3ab9b7,_0x277b4f,_0x3b8933,_0x28b1ed){const _0x48409e=_0x48b1be;if(!this[_0x48409e(0x55c)])return;const _0x2168da=_0xbbcce[_0x48409e(0x492)](_0x48409e(0x23a)+this['_activeShapeId']+'-'+_0xf92f75);if(_0x2168da){_0x2168da[_0x48409e(0x2b4)]({'left':_0x4bbfdd['x']+_0x3ab9b7-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x48409e(0x346)],'top':_0x4bbfdd['y']+_0x277b4f-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize']});return;}const _0x36eaf9={'left':_0x4bbfdd['x']+_0x3ab9b7-_univerjs_pro_engine_shape[_0x48409e(0x5ff)]['adjHandleSize'],'top':_0x4bbfdd['y']+_0x277b4f-_univerjs_pro_engine_shape[_0x48409e(0x5ff)][_0x48409e(0x346)],'adjName':_0xf92f75,'shapeId':this[_0x48409e(0x55c)],'unitId':_0x3b8933,'subUnitId':_0x28b1ed,'width':_univerjs_pro_engine_shape[_0x48409e(0x5ff)][_0x48409e(0x346)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x48409e(0x346)]+0x8,'zIndex':_univerjs_engine_render[_0x48409e(0x3d4)]+0x1,'evented':!![]},_0x4b7854=new SheetShapeAdjustPointObject(_0x48409e(0x23a)+this[_0x48409e(0x55c)]+'-'+_0xf92f75,_0x36eaf9);this[_0x48409e(0x24f)][_0x48409e(0x5ed)](_0x4b7854),this[_0x48409e(0x3d0)](_0x4b7854,_0xbbcce,_0xf92f75),_0xbbcce[_0x48409e(0x261)](_0x4b7854,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x48b1be(0x321)](){const _0x17be4e=_0x48b1be;if(this[_0x17be4e(0x24f)][_0x17be4e(0x42d)]===0x0)return;this[_0x17be4e(0x24f)][_0x17be4e(0x4e1)](_0x16c86d=>{const _0x277c56=_0x17be4e;_0x16c86d[_0x277c56(0x570)]();}),this[_0x17be4e(0x24f)]=[];}[_0x48b1be(0x20a)](){const _0x485772=_0x48b1be;this[_0x485772(0x159)]();}[_0x48b1be(0x2d8)](_0x3ad43f,_0x5b53b9){const _0x54e487=_0x48b1be;var _0x5669c8;const _0x4f815d={'x':0x0,'y':0x0};if(!_0x3ad43f||!_0x5b53b9)return _0x4f815d;const _0x363724=this[_0x54e487(0x1cb)][_0x54e487(0x11a)](_0x3ad43f);if(!_0x363724)return _0x4f815d;if(!_0x363724[_0x54e487(0x26a)](_univerjs_sheets_ui[_0x54e487(0x2b2)])[_0x54e487(0x192)](_0x5b53b9))return _0x4f815d;const _0x30d263=_0x363724[_0x54e487(0x26a)](_univerjs_sheets_ui[_0x54e487(0x411)]),_0x2a1bc6=_0x30d263===null||_0x30d263===void 0x0?void 0x0:_0x30d263[_0x54e487(0x1e2)]();if(!_0x2a1bc6)return _0x4f815d;const _0xea57fa=(_0x5669c8=this[_0x54e487(0x36a)][_0x54e487(0x10f)](_0x3ad43f))===null||_0x5669c8===void 0x0?void 0x0:_0x5669c8['getSheetBySheetId'](_0x5b53b9);if(!_0xea57fa)return _0x4f815d;const _0x4e277e=(0x0,_univerjs_sheets_ui[_0x54e487(0x3e6)])(_0x2a1bc6[_0x54e487(0x34f)],_0x2a1bc6[_0x54e487(0x642)],_0x363724[_0x54e487(0x1cf)],_0xea57fa);if(!_0x4e277e)return _0x4f815d;return{'x':_0x4e277e['viewportScrollX'],'y':_0x4e277e[_0x54e487(0x59a)]};}[_0x48b1be(0x5d5)](_0x475a2d,_0x53c9ad){const _0x4c968e=_0x48b1be;var _0x2df162,_0x10822f;const _0x90535c=(_0x2df162=this[_0x4c968e(0x36a)][_0x4c968e(0x10f)](_0x475a2d))===null||_0x2df162===void 0x0?void 0x0:_0x2df162[_0x4c968e(0x37a)](_0x53c9ad);return(_0x10822f=_0x90535c===null||_0x90535c===void 0x0?void 0x0:_0x90535c['getZoomRatio']())!==null&&_0x10822f!==void 0x0?_0x10822f:0x1;}[_0x48b1be(0x3d0)](_0x44345e,_0x1843fb,_0x31e20a){const _0x19c3f1=_0x48b1be;this[_0x19c3f1(0x47f)]((0x0,_univerjs_core[_0x19c3f1(0x19d)])(_0x44345e[_0x19c3f1(0x3bd)][_0x19c3f1(0x595)]((_0x17bf23,_0x5314ff)=>{const _0x143446=_0x19c3f1;var _0x7bb39,_0x247936,_0x3ecff3,_0x4e8404;const _0x5d99ed=_0x44345e[_0x143446(0x647)]();this['_activeAdjustInfo']=this[_0x143446(0x2c8)](_0x5d99ed[_0x143446(0x1ab)],_0x5d99ed[_0x143446(0x4dc)],_0x5d99ed['drawingId'],_0x31e20a),this[_0x143446(0x520)]=this['_sheetsShapeService']['getShapeModel'](_0x5d99ed['unitId'],_0x5d99ed['subUnitId'],_0x5d99ed[_0x143446(0x4cb)]);const _0x5bd29d=this[_0x143446(0x307)][_0x143446(0x251)]({'unitId':this[_0x143446(0x5ae)],'subUnitId':this[_0x143446(0x36d)],'drawingId':this['_activeShapeId']}),{transform:_0x3c2a42}=_0x5bd29d;if(_0x3c2a42){const {left:_0x36cde0,top:_0x4ce022,width:_0x81107c,height:_0x548f1c}=_0x3c2a42;this[_0x143446(0x21b)]=_0x36cde0||0x0,this['_baseShapeTop']=_0x4ce022||0x0,this[_0x143446(0x4bf)]=_0x81107c||0x0,this['_baseShapeHeight']=_0x548f1c||0x0;}const _0x5b1528=Boolean((_0x7bb39=_0x5bd29d[_0x143446(0x649)])===null||_0x7bb39===void 0x0?void 0x0:_0x7bb39[_0x143446(0x5b1)]),_0x51527f=Boolean((_0x247936=_0x5bd29d[_0x143446(0x649)])===null||_0x247936===void 0x0?void 0x0:_0x247936[_0x143446(0x285)]),_0x3cdb7b=((_0x3ecff3=_0x5bd29d[_0x143446(0x649)])===null||_0x3ecff3===void 0x0?void 0x0:_0x3ecff3[_0x143446(0x2ed)])||0x0;this[_0x143446(0x3b8)]=!![],_0x1843fb[_0x143446(0x1c7)]();const _0x5aeff4=(_0x4e8404=this['_activeShapeModel'])===null||_0x4e8404===void 0x0?void 0x0:_0x4e8404[_0x143446(0x336)](_0x31e20a),_0x5760c7={[_0x31e20a]:_0x5aeff4};this[_0x143446(0x272)]=_0x1843fb['onPointerMove$'][_0x143446(0x595)]((_0x141988,_0x53080d)=>{const _0x273a31=_0x143446;if(!this['_isStartAdjusting'])return;const {offsetX:_0x415830,offsetY:_0x5137c1}=_0x141988,_0x139d61=this[_0x273a31(0x52b)];if(this[_0x273a31(0x520)]&&_0x139d61){_0x1843fb[_0x273a31(0x1c7)](),_0x1843fb[_0x273a31(0x148)](_univerjs_engine_render[_0x273a31(0x4ad)][_0x273a31(0x484)]);const _0x18fccb={'left':0x0,'top':0x0,'width':this[_0x273a31(0x4bf)],'height':this['_baseShapeHeight']},_0x20d048=this[_0x273a31(0x2d8)](this[_0x273a31(0x5ae)],this[_0x273a31(0x36d)]),_0x4efde0=this['_getZoomRatio'](this[_0x273a31(0x5ae)],this[_0x273a31(0x36d)]);let _0x4693fc=_0x415830/_0x4efde0+_0x20d048['x']-this[_0x273a31(0x21b)],_0x135776=_0x5137c1/_0x4efde0+_0x20d048['y']-this['_baseShapeTop'];if(_0x3cdb7b!==0x0){const _0x3478f2=this['_baseShapeWidth']/0x2,_0x5a4b84=this[_0x273a31(0x64c)]/0x2,_0x51b88d=_0x3cdb7b*Math['PI']/0xb4,_0x523339=Math[_0x273a31(0x548)](_0x51b88d),_0x41a1c2=Math[_0x273a31(0x539)](_0x51b88d),_0x561205=_0x4693fc-_0x3478f2,_0x5b7c79=_0x135776-_0x5a4b84;_0x4693fc=_0x3478f2+(_0x561205*_0x523339+_0x5b7c79*_0x41a1c2),_0x135776=_0x5a4b84+(-_0x561205*_0x41a1c2+_0x5b7c79*_0x523339);}if(_0x5b1528)_0x4693fc=this['_baseShapeWidth']-_0x4693fc;if(_0x51527f)_0x135776=this[_0x273a31(0x64c)]-_0x135776;const _0x196720={'x':_0x4693fc,'y':_0x135776},_0x561bf1=this['_activeShapeModel'][_0x273a31(0x405)](_0x18fccb,_0x196720,_0x139d61,_0x5b1528,_0x51527f),_0x12859a=_0x139d61['gdRefX']||_0x139d61[_0x273a31(0x238)]||_0x139d61['gdRefAng']||_0x139d61[_0x273a31(0x4c9)];if(_0x12859a===void 0x0)return;this[_0x273a31(0x520)][_0x273a31(0x177)](_0x12859a,_0x561bf1);const _0x1786b1=this[_0x273a31(0x307)][_0x273a31(0x251)]({'unitId':_0x5d99ed[_0x273a31(0x1ab)],'subUnitId':_0x5d99ed[_0x273a31(0x4dc)],'drawingId':_0x5d99ed[_0x273a31(0x4cb)]});_0x1786b1&&(this[_0x273a31(0x1ac)][_0x273a31(0x370)](_0x1786b1,_0x1843fb),this[_0x273a31(0x38b)]=this[_0x273a31(0x5a2)](_0x5d99ed[_0x273a31(0x1ab)],_0x5d99ed[_0x273a31(0x4dc)],_0x5d99ed[_0x273a31(0x4cb)]),this['_updateAdjustControlPositions']());}_0x53080d[_0x273a31(0x668)]();}),this[_0x143446(0x389)]=_0x1843fb[_0x143446(0x45d)][_0x143446(0x595)]((_0x355551,_0x31fa22)=>{const _0x5802d3=_0x143446;this[_0x5802d3(0x272)][_0x5802d3(0x4e2)](),this[_0x5802d3(0x389)]['unsubscribe'](),_0x1843fb[_0x5802d3(0x56d)]();const _0x424601=this[_0x5802d3(0x52b)];if(_0x424601){const _0x12ba1b=_0x5d99ed[_0x5802d3(0x1ab)],_0xdc5080=_0x5d99ed[_0x5802d3(0x4dc)],_0x549cbe=_0x5d99ed[_0x5802d3(0x4cb)],_0x5f33c7=_0x424601['gdRefX']||_0x424601[_0x5802d3(0x238)]||_0x424601[_0x5802d3(0x3c0)]||_0x424601[_0x5802d3(0x4c9)];if(_0x5f33c7!==void 0x0){var _0x1b4f5a;const _0x217c12=(_0x1b4f5a=this[_0x5802d3(0x520)])===null||_0x1b4f5a===void 0x0?void 0x0:_0x1b4f5a['getAdjustValueByName'](_0x5f33c7);if(_0x217c12!==void 0x0)updateShapeData(this[_0x5802d3(0x1c8)],_0x12ba1b,_0xdc5080,_0x549cbe,{'oldShapeData':{'adjustValues':_0x5760c7}},{'adjustValues':{[_0x5f33c7]:_0x217c12}});}}this[_0x5802d3(0x52b)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5802d3(0x3b8)]=![],_0x31fa22[_0x5802d3(0x668)](),_0x1843fb['enableObjectsEvent']();}),_0x5314ff[_0x143446(0x668)]();})));}[_0x48b1be(0x178)](){const _0xe9b186=_0x48b1be,_0x576156=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0xe9b186(0x5a6)]);this[_0xe9b186(0x47f)](_0x576156['pipe']((0x0,rxjs[_0xe9b186(0x49d)])(_0x122f5a=>{const _0x20b915=_0xe9b186;if(!_0x122f5a)return rxjs[_0x20b915(0x256)];return _0x122f5a['activeSheet$'][_0x20b915(0x560)]((0x0,rxjs[_0x20b915(0x49d)])(_0x3c1b4f=>{const _0x1c9ce0=_0x20b915;if(!_0x3c1b4f)return rxjs['EMPTY'];const _0x448403=_0x122f5a[_0x1c9ce0(0x53f)](),_0x16d243=this[_0x1c9ce0(0x1cb)]['getRenderById'](_0x448403),_0x3d3249=_0x16d243===null||_0x16d243===void 0x0?void 0x0:_0x16d243['scene'];if(!_0x3d3249)return rxjs[_0x1c9ce0(0x256)];return(0x0,rxjs['of'])(_0x3d3249);}));}))['subscribe'](_0x4b3aa1=>{const _0x2a0086=_0xe9b186,_0x2bfbd7=_0x4b3aa1[_0x2a0086(0x57f)]();this['disposeWithMe'](_0x4b3aa1['onPointerMove$'][_0x2a0086(0x595)](()=>{const _0x5cda50=_0x2a0086;if(this[_0x5cda50(0x44e)]){}})),this['disposeWithMe'](_0x2bfbd7[_0x2a0086(0x19f)][_0x2a0086(0x22b)](_0x3a5e30=>{const _0x52b28a=_0x2a0086,{objects:_0x4108e6}=_0x3a5e30;this[_0x52b28a(0x159)]();if(_0x4108e6!==null&&_0x4108e6[_0x52b28a(0x36c)]===0x1){if(_0x4108e6[_0x52b28a(0x209)]()[_0x52b28a(0x194)]()[_0x52b28a(0x228)]instanceof DrawingShape)this[_0x52b28a(0x633)](!![]);}})),this[_0x2a0086(0x47f)](_0x2bfbd7[_0x2a0086(0x339)][_0x2a0086(0x22b)](()=>{const _0x361f23=_0x2a0086;if(this[_0x361f23(0x44e)])this[_0x361f23(0x321)]();})),this[_0x2a0086(0x47f)](_0x4b3aa1['onPointerUp$'][_0x2a0086(0x595)](()=>{const _0x3a9f97=_0x2a0086;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x3a9f97(0x633)](![]),this[_0x3a9f97(0x159)]());})),this[_0x2a0086(0x47f)](_0x2bfbd7['changeEnd$']['subscribe'](()=>{const _0x528999=_0x2a0086;this[_0x528999(0x5ae)]&&this[_0x528999(0x36d)]&&this['_activeShapeId']&&(this[_0x528999(0x307)][_0x528999(0x251)]({'unitId':this[_0x528999(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x528999(0x55c)]})&&(this[_0x528999(0x38b)]=this['_getShapeAdjustPointListById'](this['_unitId'],this['_subUnitId'],this[_0x528999(0x55c)]),this[_0x528999(0x20a)]()));}));}));}[_0x48b1be(0x582)](){const _0x3478e8=_0x48b1be;this[_0x3478e8(0x47f)](this[_0x3478e8(0x307)]['focus$']['subscribe'](_0x29fdda=>{const _0x526652=_0x3478e8;if(_0x29fdda[_0x526652(0x42d)]===0x1){const _0x4fcff3=_0x29fdda[0x0];if(_0x4fcff3[_0x526652(0x2b0)]===_univerjs_core['DrawingTypeEnum'][_0x526652(0x614)]){this[_0x526652(0x55c)]=_0x4fcff3['drawingId'];const {unitId:_0x4732ae,subUnitId:_0x18c656}=_0x4fcff3;this[_0x526652(0x38b)]=this['_getShapeAdjustPointListById'](_0x4732ae,_0x18c656,this[_0x526652(0x55c)]),this[_0x526652(0x5ae)]=_0x4732ae,this[_0x526652(0x36d)]=_0x18c656,this['_clearShapeAdjustControls'](),this[_0x526652(0x159)]();}else this[_0x526652(0x55c)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x526652(0x5ae)]=null,this['_subUnitId']=null,this[_0x526652(0x321)]();}(_0x29fdda[_0x526652(0x42d)]>0x1||_0x29fdda[_0x526652(0x42d)]===0x0)&&(this[_0x526652(0x55c)]=null,this[_0x526652(0x38b)]=void 0x0,this[_0x526652(0x5ae)]=null,this['_subUnitId']=null,this[_0x526652(0x321)]());})),this[_0x3478e8(0x47f)](this[_0x3478e8(0x307)]['update$'][_0x3478e8(0x22b)](_0x1a5bf9=>{const _0x105d04=_0x3478e8;if(_0x1a5bf9[_0x105d04(0x42d)]===0x1){var _0x1c861d;const _0x38dcf6=_0x1a5bf9[0x0];if(((_0x1c861d=this[_0x105d04(0x307)][_0x105d04(0x251)](_0x38dcf6))===null||_0x1c861d===void 0x0?void 0x0:_0x1c861d[_0x105d04(0x2b0)])===_univerjs_core[_0x105d04(0x45a)][_0x105d04(0x614)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x3478e8(0x47f)](this['_drawingManagerService'][_0x3478e8(0x201)][_0x3478e8(0x22b)](_0xf21085=>{const _0x53cc92=_0x3478e8;for(const _0x372711 of _0xf21085)this[_0x53cc92(0x55c)]===_0x372711[_0x53cc92(0x4cb)]&&(this[_0x53cc92(0x55c)]=null,this[_0x53cc92(0x38b)]=void 0x0,this[_0x53cc92(0x5ae)]=null,this[_0x53cc92(0x36d)]=null,this['_clearShapeAdjustControls']());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core['IContextService']),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x7,_univerjs_core['ICommandService'])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x48b1be(0x388),'type':_univerjs_core['CommandType'][_0x48b1be(0x5e0)],'handler':(_0x3887d8,_0x1a9437)=>{const _0xd94999=_0x48b1be,_0x39c636=_0x3887d8[_0xd94999(0x4fd)](_univerjs_drawing[_0xd94999(0x618)]),_0x5777b0=_0x3887d8[_0xd94999(0x4fd)](_univerjs_engine_render['IRenderManagerService']),_0x5a6f98=_0x3887d8[_0xd94999(0x4fd)](SheetShapeAdjustController);if(_0x1a9437==null)return!![];if(_0x1a9437['length']>0x0){var _0x395a47;const _0x2aaa98=(_0x395a47=_0x5777b0[_0xd94999(0x11a)](_0x1a9437[0x0]['unitId']))===null||_0x395a47===void 0x0?void 0x0:_0x395a47['scene'];if(_0x2aaa98){const {unitId:_0x11f8e9,subUnitId:_0x5f11c1,drawingId:_0x2a0251}=_0x1a9437[0x0],_0x1a9804=(0x0,_univerjs_drawing[_0xd94999(0x1e7)])({'unitId':_0x11f8e9,'subUnitId':_0x5f11c1,'drawingId':_0x2a0251},void 0x0),_0x296915=_0x2aaa98[_0xd94999(0x492)](_0x1a9804);if(_0x296915){var _0x200f98;(_0x200f98=_0x5777b0['getRenderById'](_0x1a9437[0x0][_0xd94999(0x1ab)]))===null||_0x200f98===void 0x0||(_0x200f98=_0x200f98[_0xd94999(0x1cf)][_0xd94999(0x255)]())===null||_0x200f98===void 0x0||_0x200f98['activeAnObject'](_0x296915);}}_0x39c636[_0xd94999(0x62b)](_0x1a9437),_0x5a6f98[_0xd94999(0x633)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x398),'handler':async(_0x4f7bf9,_0x31c534)=>{const _0x583ebe=_0x48b1be,_0x1b2bfe=(0x0,_univerjs_sheets[_0x583ebe(0x207)])(_0x4f7bf9['get'](_univerjs_core[_0x583ebe(0x1d2)]));if(!_0x1b2bfe)return![];const _0x35afd3=_0x4f7bf9[_0x583ebe(0x4fd)](_univerjs_sheets[_0x583ebe(0x622)])[_0x583ebe(0x1b7)]();if(!_0x35afd3)return![];const _0x3c777b=_0x4f7bf9[_0x583ebe(0x4fd)](_univerjs_core[_0x583ebe(0x621)]),{unitId:_0x5c973f,subUnitId:_0x5a9b48}=_0x1b2bfe,{value:_0x53cc34,enhanceParams:_0x1ad351}=_0x31c534,{range:_0x359b39}=_0x35afd3,_0x344e5a={'unitId':_0x5c973f,'subUnitId':_0x5a9b48,'shapeType':_0x53cc34,'range':_0x359b39,'shapeId':(0x0,_univerjs_core[_0x583ebe(0x12e)])()};if(_0x1ad351){const _0x2fcf5b=(0x0,_univerjs_pro_engine_shape[_0x583ebe(0x5fb)])(_0x53cc34),_0xad7f86=_0x53cc34===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x583ebe(0x49b)];if(_0x2fcf5b&&(_0x1ad351[_0x583ebe(0x1d9)]||_0x1ad351[_0x583ebe(0x120)]))_0x344e5a[_0x583ebe(0x3dd)]={'ln':{'startArrow':_0x1ad351[_0x583ebe(0x1d9)]?{'type':_univerjs_pro_engine_shape[_0x583ebe(0x61f)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x583ebe(0x2d2)]}:void 0x0,'endArrow':_0x1ad351[_0x583ebe(0x120)]?{'type':_univerjs_pro_engine_shape[_0x583ebe(0x61f)][_0x583ebe(0x50e)],'size':_univerjs_pro_engine_shape[_0x583ebe(0x203)][_0x583ebe(0x4d0)]}:void 0x0}};if(_0xad7f86&&(_0x1ad351[_0x583ebe(0x160)]||_0x1ad351['vertical']))_0x344e5a['shapeData']={'fill':{'fillType':_univerjs_pro_engine_shape[_0x583ebe(0x328)][_0x583ebe(0x4fa)],'color':_0x583ebe(0x454)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x583ebe(0x558)][_0x583ebe(0x31c)],'width':0x1,'color':_0x583ebe(0x439)},'shapeText':{'isHorizontal':!!_0x1ad351['horizontal']}};}const _0x4c6369=_0x3c777b[_0x583ebe(0x449)](_univerjs_pro_sheets_shape[_0x583ebe(0x537)]['id'],_0x344e5a);return setTimeout(()=>{const _0x5456fc=_0x583ebe;_0x3c777b[_0x5456fc(0x636)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x5c973f,'subUnitId':_0x5a9b48,'drawingId':_0x344e5a[_0x5456fc(0x1d8)]}]);},0xc8),_0x4c6369;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x19047a,_0x103658){const _0x1792b9=_0x48b1be;super(),this['_clipService']=_0x19047a,this[_0x1792b9(0x307)]=_0x103658,this[_0x1792b9(0x4a6)](),this['_clipService']['setCanUseShapeClip'](!![]),this['disposeWithMe']({'dispose':()=>this[_0x1792b9(0x4f2)][_0x1792b9(0x4f6)](![])});}[_0x48b1be(0x4a6)](){const _0x13d79b=_0x48b1be,_0x1af557=this[_0x13d79b(0x4f2)],_0x56aa1b=new Map(),_0x19e64b=_0x1af557[_0x13d79b(0x323)]((_0x220c10,_0x2a2c4a,_0x97e06,_0xa3e8d6,_0x47e2e7)=>{const _0x149367=_0x13d79b,_0x13be3c=_0x2a2c4a;if(_0x13be3c===_univerjs_pro_engine_shape[_0x149367(0x515)][_0x149367(0x197)]||_0x2a2c4a===_0x149367(0x472))return![];try{let _0x143dc0=_0x56aa1b['get'](_0x2a2c4a);!_0x143dc0&&(_0x143dc0=new _univerjs_pro_engine_shape[(_0x149367(0x195))](_0x13be3c,_0x149367(0x4b2)+_0x2a2c4a),_0x56aa1b['set'](_0x2a2c4a,_0x143dc0));if(_0x47e2e7)_0x143dc0[_0x149367(0x513)]({'adjustValues':_0x47e2e7},!![]);return _0x143dc0[_0x149367(0x3ce)]({'width':_0x97e06,'height':_0xa3e8d6}),_0x143dc0[_0x149367(0x357)](_0x220c10,{'left':0x0,'top':0x0,'width':_0x97e06,'height':_0xa3e8d6});}catch{return![];}});this[_0x13d79b(0x47f)](_0x19e64b),this[_0x13d79b(0x47f)]({'dispose':()=>_0x56aa1b['clear']()});}[_0x48b1be(0x2de)](_0x23a54d,_0x31f69a,_0x1cb14f,_0x56b89f,_0x58894b){const _0xa1c843=_0x48b1be,_0x58128a=this[_0xa1c843(0x307)]['getDrawingData'](_0x23a54d,_0x31f69a);if(!_0x58128a[_0x1cb14f])return;const _0x575a88={..._0x58128a[_0x1cb14f],'prstGeom':_0x56b89f,'adjustValues':_0x58894b};this[_0xa1c843(0x307)][_0xa1c843(0x602)]([_0x575a88]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing_ui['DrawingImageClipService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing['IDrawingManagerService']))],ImageShapeClipController);let ShapeGroupEnum=function(_0x4c4c90){const _0xf55a4f=_0x48b1be;return _0x4c4c90[_0xf55a4f(0x2eb)]=_0xf55a4f(0x21c),_0x4c4c90[_0xf55a4f(0x266)]=_0xf55a4f(0x25d),_0x4c4c90['BasicShape']=_0xf55a4f(0x179),_0x4c4c90[_0xf55a4f(0x19e)]=_0xf55a4f(0x644),_0x4c4c90[_0xf55a4f(0x66a)]='equationShape',_0x4c4c90['Flowchart']=_0xf55a4f(0x329),_0x4c4c90[_0xf55a4f(0x59b)]='starAndBanner',_0x4c4c90['Callout']=_0xf55a4f(0x1bb),_0x4c4c90[_0xf55a4f(0x424)]=_0xf55a4f(0x55e),_0x4c4c90;}({});const shapeTypeOptions=[{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2eb)],'icon':_0x48b1be(0x526),'name':'shape.type.line'},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ee)],'icon':_0x48b1be(0x278),'name':_0x48b1be(0x318),'endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ee)],'icon':'ShapeStraightConnector2Icon','name':_0x48b1be(0x37f),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x44d),'name':_0x48b1be(0x176)},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x360),'name':'shape.type.bent-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x27f),'name':_0x48b1be(0x532),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a5)],'icon':_0x48b1be(0xfa),'name':_0x48b1be(0x282)},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x48b1be(0x440),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a5)],'icon':_0x48b1be(0x12d),'name':'shape.type.curved-connector3-arrow2','endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x49b)],'icon':_0x48b1be(0x1c5),'name':_0x48b1be(0x4b9)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x294)],'icon':_0x48b1be(0x3fb),'name':_0x48b1be(0x46f)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Snip1Rect'],'icon':'ShapeSnip1RectIcon','name':_0x48b1be(0x206)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x371)],'icon':'ShapeSnip2SameRectIcon','name':_0x48b1be(0x219)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x175)],'icon':_0x48b1be(0x5c0),'name':_0x48b1be(0x420)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18b)],'icon':_0x48b1be(0x58b),'name':_0x48b1be(0x16d)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x4cd)],'icon':_0x48b1be(0x32e),'name':_0x48b1be(0x2f5)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x54a)],'icon':'ShapeRound2SameRectIcon','name':_0x48b1be(0x557)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x53a)],'icon':_0x48b1be(0x5cd),'name':'shape.type.round2-diag-rect'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x49b)],'icon':_0x48b1be(0x4c4),'name':_0x48b1be(0x1bd),'horizontal':!![]},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Rect'],'icon':_0x48b1be(0x652),'name':_0x48b1be(0x17f),'vertical':!![]},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x11b)],'icon':_0x48b1be(0x480),'name':_0x48b1be(0x173)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Triangle'],'icon':_0x48b1be(0x21f),'name':'shape.type.triangle'},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4f9)],'icon':_0x48b1be(0x52d),'name':_0x48b1be(0x3ac)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x550)],'icon':_0x48b1be(0x2e3),'name':_0x48b1be(0x2b9)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Trapezoid'],'icon':_0x48b1be(0x212),'name':_0x48b1be(0x237)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Diamond'],'icon':_0x48b1be(0x624),'name':_0x48b1be(0x521)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x446)],'icon':_0x48b1be(0x16c),'name':_0x48b1be(0x10e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Hexagon'],'icon':'ShapeHexagonIcon','name':_0x48b1be(0x1f9)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x270)],'icon':_0x48b1be(0x103),'name':_0x48b1be(0x31e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3be)],'icon':'ShapeOctagonIcon','name':_0x48b1be(0x17c)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ea)],'icon':_0x48b1be(0x352),'name':_0x48b1be(0x1fe)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x24e)],'icon':_0x48b1be(0x1e5),'name':_0x48b1be(0x53c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c9)],'icon':_0x48b1be(0x245),'name':'shape.type.pie'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Chord'],'icon':'ShapeChordIcon','name':_0x48b1be(0x188)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a2)],'icon':_0x48b1be(0x105),'name':_0x48b1be(0x27d)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x630)],'icon':_0x48b1be(0x1af),'name':_0x48b1be(0x304)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x628)],'icon':_0x48b1be(0x49e),'name':_0x48b1be(0x2cd)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x417)],'icon':_0x48b1be(0x54b),'name':_0x48b1be(0x4b6)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['DiagStripe'],'icon':_0x48b1be(0x353),'name':_0x48b1be(0x1f0)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x48d)],'icon':_0x48b1be(0x3f0),'name':_0x48b1be(0x11c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c3)],'icon':_0x48b1be(0x40f),'name':_0x48b1be(0x645)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2ef)],'icon':_0x48b1be(0x18f),'name':'shape.type.can'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Cube'],'icon':_0x48b1be(0x55b),'name':_0x48b1be(0x63c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a3)],'icon':'ShapeBevelIcon','name':_0x48b1be(0x11e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x158)],'icon':_0x48b1be(0x306),'name':_0x48b1be(0x335)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x490)],'icon':_0x48b1be(0x619),'name':_0x48b1be(0x2c1)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['BlockArc'],'icon':_0x48b1be(0x433),'name':_0x48b1be(0x259)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2c3)],'icon':'ShapeFolderCornerIcon','name':_0x48b1be(0x51d)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x44c)],'icon':'ShapeSmileyFaceIcon','name':_0x48b1be(0x648)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4d1)],'icon':_0x48b1be(0x35a),'name':_0x48b1be(0x2bf)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LightningBolt'],'icon':_0x48b1be(0x225),'name':_0x48b1be(0x486)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x169)],'icon':_0x48b1be(0x5f4),'name':_0x48b1be(0x1ca)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x473)],'icon':'ShapeMoonIcon','name':'shape.type.moon'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Cloud'],'icon':_0x48b1be(0x574),'name':_0x48b1be(0x46a)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x113)],'icon':'ShapeArcIcon','name':_0x48b1be(0x3a9)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['BracketPair'],'icon':_0x48b1be(0x59d),'name':'shape.type.bracket-pair'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4bd)],'icon':'ShapeBracePairIcon','name':_0x48b1be(0x49c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18a)],'icon':_0x48b1be(0x125),'name':'shape.type.left-bracket'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x337)],'icon':_0x48b1be(0x510),'name':_0x48b1be(0x133)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1f4)],'icon':_0x48b1be(0x1da),'name':_0x48b1be(0x3ed)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['RightBrace'],'icon':_0x48b1be(0x34d),'name':'shape.type.right-brace'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a7)],'icon':_0x48b1be(0x5fe),'name':_0x48b1be(0x5e4)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftArrow'],'icon':'ShapeLeftArrowIcon','name':_0x48b1be(0x37b)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2dc)],'icon':_0x48b1be(0x4d8),'name':_0x48b1be(0x208)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['DownArrow'],'icon':'ShapeDownArrowIcon','name':'shape.type.down-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x138)],'icon':_0x48b1be(0x31b),'name':'shape.type.left-right-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['UpDownArrow'],'icon':_0x48b1be(0x409),'name':_0x48b1be(0x3c6)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x22a)],'icon':_0x48b1be(0x3e9),'name':_0x48b1be(0x5cc)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftRightUpArrow'],'icon':'ShapeLeftRightUpArrowIcon','name':'shape.type.left-right-up-arrow'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x638)],'icon':'ShapeBentArrowIcon','name':_0x48b1be(0x5d7)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x139)],'icon':_0x48b1be(0x435),'name':_0x48b1be(0x1b5)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x418)],'icon':'ShapeLeftUpArrowIcon','name':'shape.type.left-up-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x13c)],'icon':_0x48b1be(0x2ee),'name':'shape.type.bent-up-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x437)],'icon':_0x48b1be(0x220),'name':'shape.type.curved-right-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3cd)],'icon':_0x48b1be(0x51a),'name':'shape.type.curved-left-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x414)],'icon':_0x48b1be(0x342),'name':_0x48b1be(0x4a4)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['CurvedDownArrow'],'icon':'ShapeCurvedDownArrowIcon','name':_0x48b1be(0x422)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x467)],'icon':_0x48b1be(0x3c5),'name':_0x48b1be(0x33b)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x650)],'icon':_0x48b1be(0x3b9),'name':_0x48b1be(0x587)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2c4)],'icon':_0x48b1be(0x4da),'name':_0x48b1be(0x1f5)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5f3)],'icon':'ShapeChevronIcon','name':_0x48b1be(0x5df)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2a1)],'icon':_0x48b1be(0x13e),'name':_0x48b1be(0x230)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x627)],'icon':_0x48b1be(0x5f0),'name':'shape.type.down-arrow-callout'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftArrowCallout'],'icon':'ShapeLeftArrowCalloutIcon','name':_0x48b1be(0x382)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['UpArrowCallout'],'icon':'ShapeUpArrowCalloutIcon','name':_0x48b1be(0x499)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x592)],'icon':_0x48b1be(0x59c),'name':_0x48b1be(0x5b9)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['QuadArrowCallout'],'icon':_0x48b1be(0x5d2),'name':_0x48b1be(0x530)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['CircularArrow'],'icon':_0x48b1be(0x41a),'name':_0x48b1be(0x350)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x182)],'icon':'ShapeMathPlusIcon','name':_0x48b1be(0x24c)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['MathMinus'],'icon':_0x48b1be(0x14b),'name':_0x48b1be(0x4d9)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5d4)],'icon':'ShapeMathMultiplyIcon','name':_0x48b1be(0x2d5)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2f1)],'icon':_0x48b1be(0x5ef),'name':_0x48b1be(0x10d)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x326)],'icon':_0x48b1be(0x17e),'name':_0x48b1be(0x27b)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x656)],'icon':_0x48b1be(0x585),'name':_0x48b1be(0x600)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5ce)],'icon':_0x48b1be(0x157),'name':'shape.type.flow-chart-process'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['FlowchartAlternateProcess'],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x48b1be(0x30d)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x64f)],'icon':_0x48b1be(0x3f4),'name':_0x48b1be(0x3d7)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x149)],'icon':_0x48b1be(0x243),'name':_0x48b1be(0x50a)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d9)],'icon':_0x48b1be(0x142),'name':_0x48b1be(0x45b)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartInternalStorage'],'icon':_0x48b1be(0x4f1),'name':_0x48b1be(0x631)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d1)],'icon':_0x48b1be(0x32a),'name':_0x48b1be(0x150)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5b7)],'icon':_0x48b1be(0x593),'name':'shape.type.flow-chart-multidocument'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x320)],'icon':_0x48b1be(0x2c7),'name':_0x48b1be(0x3b0)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x311)],'icon':_0x48b1be(0x4ca),'name':'shape.type.flow-chart-preparation'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x623)],'icon':_0x48b1be(0x1a4),'name':_0x48b1be(0x640)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x32d)],'icon':_0x48b1be(0x4fb),'name':_0x48b1be(0x124)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['FlowchartConnector'],'icon':'ShapeFlowChartConnectorIcon','name':'shape.type.flow-chart-connector'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x359)],'icon':_0x48b1be(0x1b2),'name':_0x48b1be(0x366)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x35f)],'icon':'ShapeFlowChartPunchedCardIcon','name':'shape.type.flow-chart-punched-card'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x373)],'icon':_0x48b1be(0x4de),'name':'shape.type.flow-chart-punched-tape'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4a3)],'icon':_0x48b1be(0x45f),'name':_0x48b1be(0x660)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x51b)],'icon':'ShapeFlowChartOrIcon','name':_0x48b1be(0x277)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x288)],'icon':_0x48b1be(0x147),'name':'shape.type.flow-chart-collate'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x506)],'icon':_0x48b1be(0x3fe),'name':_0x48b1be(0x399)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x60d)],'icon':_0x48b1be(0x57b),'name':_0x48b1be(0x3cc)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x3e5)],'icon':_0x48b1be(0x25e),'name':_0x48b1be(0x64d)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x28a)],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x48b1be(0x522)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x15f)],'icon':'ShapeFlowChartDelayIcon','name':_0x48b1be(0x107)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x155)],'icon':_0x48b1be(0xf8),'name':_0x48b1be(0x416)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a0)],'icon':_0x48b1be(0x38e),'name':_0x48b1be(0x1eb)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x410)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x48b1be(0x55a)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x61e)],'icon':_0x48b1be(0x241),'name':'shape.type.flow-chart-display'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3b6)],'icon':'ShapeIrregularSeal1Icon','name':_0x48b1be(0x598)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x180)],'icon':_0x48b1be(0x4f8),'name':_0x48b1be(0x20c)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x5d0)],'icon':'ShapeStar4Icon','name':_0x48b1be(0x1b1)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x4a8)],'icon':_0x48b1be(0xf7),'name':'shape.type.star5'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5e3)],'icon':'ShapeStar6Icon','name':_0x48b1be(0x2c0)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x112)],'icon':_0x48b1be(0x5f1),'name':'shape.type.star7'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Star8'],'icon':_0x48b1be(0x314),'name':_0x48b1be(0x325)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Star10'],'icon':_0x48b1be(0x2a6),'name':_0x48b1be(0x161)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x604)],'icon':'ShapeStar12Icon','name':_0x48b1be(0x2ab)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x65c)],'icon':_0x48b1be(0x49f),'name':_0x48b1be(0x3fd)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Star24'],'icon':_0x48b1be(0x5cb),'name':_0x48b1be(0x38a)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2a0)],'icon':_0x48b1be(0x378),'name':_0x48b1be(0x47c)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x496)],'icon':_0x48b1be(0x487),'name':_0x48b1be(0x654)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x29d)],'icon':_0x48b1be(0x2e5),'name':'shape.type.ribbon'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['EllipseRibbon2'],'icon':'ShapeEllipseRibbon2Icon','name':_0x48b1be(0x659)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x227)],'icon':_0x48b1be(0x126),'name':_0x48b1be(0x33a)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4c1)],'icon':_0x48b1be(0x368),'name':_0x48b1be(0x281)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x14d)],'icon':_0x48b1be(0x479),'name':'shape.type.horizontal-scroll'},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Wave'],'icon':_0x48b1be(0x137),'name':_0x48b1be(0x257)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x283)],'icon':_0x48b1be(0x196),'name':'shape.type.double-wave'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['WedgeRectCallout'],'icon':_0x48b1be(0x3ab),'name':_0x48b1be(0x3ad)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x57e)],'icon':_0x48b1be(0x22c),'name':_0x48b1be(0x20e)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18c)],'icon':_0x48b1be(0x31d),'name':_0x48b1be(0x3c8)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5aa)],'icon':_0x48b1be(0x4eb),'name':_0x48b1be(0x191)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ba)],'icon':_0x48b1be(0x5b0),'name':_0x48b1be(0x5cf)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout2'],'icon':_0x48b1be(0x1d6),'name':_0x48b1be(0x523)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2a5)],'icon':'ShapeBorderCallout3Icon','name':_0x48b1be(0x174)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x54f)],'icon':_0x48b1be(0x3e8),'name':_0x48b1be(0x5ee)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x40d)],'icon':_0x48b1be(0x469),'name':_0x48b1be(0x14f)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x234)],'icon':'ShapeAccentCallout3Icon','name':'shape.type.accent-callout3'},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Callout1'],'icon':_0x48b1be(0x615),'name':_0x48b1be(0x13b)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x167)],'icon':'ShapeCallout2Icon','name':'shape.type.callout2'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x205)],'icon':_0x48b1be(0x2fa),'name':_0x48b1be(0x4cf)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['AccentBorderCallout1'],'icon':_0x48b1be(0x2e1),'name':'shape.type.accent-border-callout1'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x24b)],'icon':'ShapeAccentBorderCallout2Icon','name':_0x48b1be(0x3db)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['AccentBorderCallout3'],'icon':_0x48b1be(0x27e),'name':'shape.type.accent-border-callout3'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a6)],'icon':_0x48b1be(0x60a),'name':_0x48b1be(0x4be)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftRightCircularArrow'],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x48b1be(0x18d)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4ab)],'icon':_0x48b1be(0x62f),'name':_0x48b1be(0x5fa)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c2)],'icon':_0x48b1be(0x427),'name':'shape.type.left-right-ribbon'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x134)],'icon':_0x48b1be(0x37d),'name':_0x48b1be(0x1f6)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x663)],'icon':_0x48b1be(0x1e4),'name':_0x48b1be(0x297)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x61d)],'icon':_0x48b1be(0x430),'name':_0x48b1be(0x2c6)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Gear9'],'icon':_0x48b1be(0x1bf),'name':_0x48b1be(0x451)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x375)],'icon':_0x48b1be(0x561),'name':_0x48b1be(0x229)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2e2)],'icon':_0x48b1be(0x109),'name':_0x48b1be(0x518)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x56b)],'icon':'ShapeActionButtonForwardNextIcon','name':'shape.type.action-button-forward-next'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x533)],'icon':_0x48b1be(0x19c),'name':'shape.type.action-button-beginning'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x413)],'icon':_0x48b1be(0x43e),'name':_0x48b1be(0x309)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['ActionButtonHome'],'icon':_0x48b1be(0x2be),'name':'shape.type.action-button-home'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x610)],'icon':_0x48b1be(0x5d6),'name':_0x48b1be(0x123)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x101)],'icon':'ShapeActionButtonReturnIcon','name':'shape.type.action-button-return'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x48b1be(0x580)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['ActionButtonDocument'],'icon':'ShapeActionButtonDocumentIcon','name':_0x48b1be(0x4db)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x554)],'icon':_0x48b1be(0x330),'name':'shape.type.action-button-sound'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonHelp'],'icon':_0x48b1be(0x4d5),'name':_0x48b1be(0x575)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x599)],'icon':_0x48b1be(0x4e6),'name':_0x48b1be(0x5e9)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2cc)],'icon':_0x48b1be(0x26f),'name':_0x48b1be(0x489)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ChartStar'],'icon':'ShapeChartStarIcon','name':_0x48b1be(0x512)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x632)],'icon':'ShapeChartXIcon','name':_0x48b1be(0x49a)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x28d)],'icon':_0x48b1be(0x315),'name':_0x48b1be(0x543)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x653)],'icon':_0x48b1be(0x25a),'name':'shape.type.line-inv'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x36f)],'icon':'ShapePlaqueTabsIcon','name':_0x48b1be(0x1f2)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1e0)],'icon':_0x48b1be(0x250),'name':_0x48b1be(0x136)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x141)],'icon':_0x48b1be(0x218),'name':_0x48b1be(0x564)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x5db)],'icon':_0x48b1be(0x577),'name':_0x48b1be(0x541)}],SHAPE_PICKER_COMPONENT=_0x48b1be(0x3a8);function ShapePickerComponent({onShapeClick:_0x41aeab,excludeGroups:_0x155865}){const _0x322dc9=_0x48b1be,_0x5abf6f=(0x0,_univerjs_ui[_0x322dc9(0x425)])(_univerjs_core[_0x322dc9(0x319)]),_0x23d85f=(0x0,_univerjs_ui[_0x322dc9(0x425)])(_univerjs_ui['ComponentManager']),_0x2cf963=(_0x155865?shapeTypeOptions[_0x322dc9(0x2bb)](_0x361289=>!_0x155865[_0x322dc9(0x268)](_0x361289[_0x322dc9(0x3b4)])):shapeTypeOptions)[_0x322dc9(0x393)]((_0x265438,_0x3762a6)=>{const _0x5bbe1e=_0x322dc9;if(!_0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]])_0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]]=[];return _0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]][_0x5bbe1e(0x5ed)](_0x3762a6),_0x265438;},{});return(0x0,react_jsx_runtime[_0x322dc9(0x586)])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x2e8),'children':Object[_0x322dc9(0x52c)](_0x2cf963)[_0x322dc9(0x2d0)](([_0x45b989,_0xc98d70])=>(0x0,react_jsx_runtime['jsxs'])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x3f1),'children':[(0x0,react_jsx_runtime['jsx'])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x57a),'children':_0x5abf6f['t'](_0x322dc9(0x563)+_0x45b989)}),(0x0,react_jsx_runtime[_0x322dc9(0x586)])(_0x322dc9(0x4b3),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0xc98d70[_0x322dc9(0x2d0)](_0x1c53f2=>{const _0x12c192=_0x322dc9,_0xa654ca=_0x23d85f[_0x12c192(0x4fd)](_0x1c53f2['icon']);return(0x0,react_jsx_runtime['jsx'])('div',{'title':_0x5abf6f['t'](_0x1c53f2[_0x12c192(0x3eb)]),'onClick':()=>_0x41aeab(_0x1c53f2),'className':_0x12c192(0x45c),'children':_0xa654ca&&(0x0,react_jsx_runtime[_0x12c192(0x586)])(_0xa654ca,{'className':'univer-size-full'})},_0x1c53f2[_0x12c192(0x3eb)]);})})]},_0x45b989))});}function ImageClipShapePicker(){const _0x24b1c6=_0x48b1be,_0x1aee5a=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x24b1c6(0x319)]),_0x4399fc=(0x0,_univerjs_ui[_0x24b1c6(0x425)])(_univerjs_drawing['IDrawingManagerService']),_0x1a570a=(0x0,_univerjs_ui['useDependency'])(ImageShapeClipController),[_0x184d39,_0x8aa930]=(0x0,react[_0x24b1c6(0x47b)])(![]),_0x45c3ec=_0x1a8a6f=>{const _0x3cd4b6=_0x24b1c6,_0x456472=_0x4399fc[_0x3cd4b6(0x669)]()[_0x3cd4b6(0x190)](_0x482d01=>_0x482d01[_0x3cd4b6(0x2b0)]===_univerjs_core[_0x3cd4b6(0x45a)]['DRAWING_IMAGE']);if(!_0x456472)return;const {unitId:_0xbf131e,subUnitId:_0x15a210,drawingId:_0x49de40}=_0x456472;_0x1a570a[_0x3cd4b6(0x2de)](_0xbf131e,_0x15a210,_0x49de40,_0x1a8a6f[_0x3cd4b6(0x568)]),_0x8aa930(![]);};return(0x0,react_jsx_runtime[_0x24b1c6(0x586)])(_univerjs_design[_0x24b1c6(0x280)],{'side':_0x24b1c6(0x450),'open':_0x184d39,'onOpenChange':_0x8aa930,'overlay':(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x45c3ec,'excludeGroups':[ShapeGroupEnum[_0x24b1c6(0x2eb)]]}),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Button'],{'children':_0x1aee5a['t'](_0x24b1c6(0x455))})});}function ShapePicker(){const _0x3b8cf1=_0x48b1be,_0x379507=(0x0,_univerjs_ui[_0x3b8cf1(0x425)])(_univerjs_core['ICommandService']),_0x5978c3=_0x4f9631=>{const _0x5b7490=_0x3b8cf1;_0x379507[_0x5b7490(0x636)](MenuInsertShapeCommand['id'],{'value':_0x4f9631[_0x5b7490(0x568)],'enhanceParams':{'endArrow':_0x4f9631['endArrow'],'startArrow':_0x4f9631[_0x5b7490(0x1d9)],'horizontal':_0x4f9631[_0x5b7490(0x160)],'vertical':_0x4f9631[_0x5b7490(0x12f)]}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x5978c3});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':'align.left','icon':_0x48b1be(0x538),'value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x63f)]},{'label':_0x48b1be(0x303),'icon':_0x48b1be(0x434),'value':_univerjs_core['HorizontalAlign'][_0x48b1be(0x10c)]},{'label':_0x48b1be(0x22f),'icon':_0x48b1be(0x4a2),'value':_univerjs_core['HorizontalAlign']['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x78a0c4){const _0x5b0ec3=_0x48b1be,_0xcef015=_0x78a0c4[_0x5b0ec3(0x4fd)](_univerjs_core[_0x5b0ec3(0x39b)]),_0x39543c=_0x78a0c4[_0x5b0ec3(0x4fd)](_univerjs_core[_0x5b0ec3(0x3bc)]);return{'id':_univerjs_docs_ui['SetInlineFormatTextBackgroundColorCommand']['id'],'tooltip':_0x5b0ec3(0x27a),'type':_univerjs_ui[_0x5b0ec3(0x42e)][_0x5b0ec3(0x30a)],'icon':_0x5b0ec3(0x38f),'selections':[{'label':{'name':_univerjs_ui[_0x5b0ec3(0x244)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x5b0ec3(0x356))](_0x2dbb48=>{const _0x6d9b0e=_0x5b0ec3;_0x2dbb48[_0x6d9b0e(0x194)](_0x39543c[_0x6d9b0e(0x235)](_0x6d9b0e(0x53d)));}),'hidden$':_0xcef015['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x5b0ec3(0x560)]((0x0,rxjs['startWith'])(_0xcef015['getContextValue'](_univerjs_core[_0x5b0ec3(0x156)])),(0x0,rxjs['map'])(_0x14f2b5=>!_0x14f2b5))};}function ShapeResetBackgroundColorMenuItemFactory(_0x1a9540){const _0x2a008f=_0x48b1be,_0x5b9c4e=_0x1a9540[_0x2a008f(0x4fd)](_univerjs_core[_0x2a008f(0x39b)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x2a008f(0x42e)][_0x2a008f(0x35b)],'title':_0x2a008f(0x1c3),'hidden$':_0x5b9c4e['subscribeContextValue$'](_univerjs_core[_0x2a008f(0x156)])[_0x2a008f(0x560)]((0x0,rxjs['startWith'])(_0x5b9c4e[_0x2a008f(0x5fc)](_univerjs_core[_0x2a008f(0x156)])),(0x0,rxjs[_0x2a008f(0x2d0)])(_0x7acb1c=>!_0x7acb1c))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':'align.left','icon':_0x48b1be(0x538),'value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x63f)]},{'label':_0x48b1be(0x303),'icon':'HorizontallyIcon','value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x10c)]},{'label':_0x48b1be(0x22f),'icon':_0x48b1be(0x4a2),'value':_univerjs_core['HorizontalAlign'][_0x48b1be(0x5e1)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x359e56){const _0x55eb42=_0x48b1be;var _0x4454ef;const _0x9ddefc=_0x359e56['get'](_univerjs_core[_0x55eb42(0x621)]),_0x11642d=_0x359e56['get'](_univerjs_core['IContextService']),_0x5d4c7d=_0x359e56['get'](_univerjs_sheets_drawing[_0x55eb42(0x528)]),_0x113073=_0x359e56[_0x55eb42(0x4fd)](ShapeTextEditingService),_0x42604d=_0x359e56[_0x55eb42(0x4fd)](_univerjs_pro_sheets_shape[_0x55eb42(0x475)]),_0x22c7d6=_univerjs_core[_0x55eb42(0x400)][_0x55eb42(0x63f)],_0x577690=()=>{const _0xe77b7f=_0x55eb42;var _0x11061f;const _0x191784=_0x5d4c7d[_0xe77b7f(0x669)]()[_0xe77b7f(0x2bb)](_0x33b878=>_0x33b878['drawingType']===_univerjs_core[_0xe77b7f(0x45a)][_0xe77b7f(0x614)]);if(_0x191784['length']!==0x1)return _0x22c7d6;const _0x11aeaa=_0x113073[_0xe77b7f(0x36b)](),_0x32f281=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa['unitId'])||_0x191784[0x0]['unitId'],_0x34cf71=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa[_0xe77b7f(0x4dc)])||_0x191784[0x0]['subUnitId'],_0x2c3287=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa['shapeId'])||_0x191784[0x0][_0xe77b7f(0x4cb)],_0x447308=_0x42604d['getShapeModel'](_0x32f281,_0x34cf71,_0x2c3287);if(!_0x447308)return _0x22c7d6;const _0xb058ba=_0x447308[_0xe77b7f(0x48f)]();if(!_0xb058ba||!(_0xe77b7f(0x31a)in _0xb058ba))return _0x22c7d6;const _0x9f200a=_0xb058ba[_0xe77b7f(0x31a)];return(_0x11061f=_0x9f200a===null||_0x9f200a===void 0x0?void 0x0:_0x9f200a['ha'])!==null&&_0x11061f!==void 0x0?_0x11061f:_0x22c7d6;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x4454ef=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x55eb42(0x190)](_0x38cbdf=>_0x38cbdf[_0x55eb42(0x228)]===_0x22c7d6))===null||_0x4454ef===void 0x0?void 0x0:_0x4454ef[_0x55eb42(0x181)],'tooltip':_0x55eb42(0x5ea),'type':_univerjs_ui[_0x55eb42(0x42e)][_0x55eb42(0x114)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x55eb42(0x356))](_0x7c287e=>{const _0x46798d=_0x55eb42,_0x4276f1=_0x9ddefc[_0x46798d(0x2a8)](_0x400246=>{const _0x53d329=_0x46798d;if(_0x400246['id']===SetShapeTextHorizontalAlignCommand['id'])_0x7c287e[_0x53d329(0x194)](_0x577690());}),_0x79b9de=_0x113073['editingParams$'][_0x46798d(0x22b)](()=>{const _0x176b1e=_0x46798d;_0x7c287e[_0x176b1e(0x194)](_0x577690());});return _0x7c287e[_0x46798d(0x194)](_0x577690()),()=>{const _0xdf37b5=_0x46798d;_0x4276f1[_0xdf37b5(0x570)](),_0x79b9de[_0xdf37b5(0x4e2)]();};}),'hidden$':_0x11642d['subscribeContextValue$'](_univerjs_core[_0x55eb42(0x156)])[_0x55eb42(0x560)]((0x0,rxjs[_0x55eb42(0x2d0)])(_0x57e89d=>!_0x57e89d))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':'align.top','icon':_0x48b1be(0x154),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0xfd)]},{'label':_0x48b1be(0x1b8),'icon':_0x48b1be(0x4b5),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0x128)]},{'label':_0x48b1be(0x493),'icon':_0x48b1be(0x12a),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0x403)]}];function ShapeVerticalAlignMenuItemFactory(_0x367793){const _0x4086b6=_0x48b1be;var _0x329434;const _0x512d66=_0x367793['get'](_univerjs_core[_0x4086b6(0x621)]),_0x445a9d=_0x367793[_0x4086b6(0x4fd)](_univerjs_core[_0x4086b6(0x39b)]),_0x433e7c=_0x367793[_0x4086b6(0x4fd)](_univerjs_sheets_drawing[_0x4086b6(0x528)]),_0x15ce5e=_0x367793[_0x4086b6(0x4fd)](ShapeTextEditingService),_0x5da6e2=_0x367793[_0x4086b6(0x4fd)](_univerjs_pro_sheets_shape[_0x4086b6(0x475)]),_0xb901e5=_univerjs_core[_0x4086b6(0x226)][_0x4086b6(0xfd)],_0x3ccecf=()=>{const _0x2847da=_0x4086b6;var _0x12059c;const _0x27502c=_0x433e7c[_0x2847da(0x669)]()['filter'](_0x3d6de6=>_0x3d6de6[_0x2847da(0x2b0)]===_univerjs_core[_0x2847da(0x45a)][_0x2847da(0x614)]);if(_0x27502c['length']!==0x1)return _0xb901e5;const _0x5e196b=_0x15ce5e[_0x2847da(0x36b)](),_0x590ece=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x1ab)])||_0x27502c[0x0][_0x2847da(0x1ab)],_0x54ae80=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x4dc)])||_0x27502c[0x0][_0x2847da(0x4dc)],_0x351e80=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x1d8)])||_0x27502c[0x0][_0x2847da(0x4cb)],_0x54048a=_0x5da6e2['getShapeModel'](_0x590ece,_0x54ae80,_0x351e80);if(!_0x54048a)return _0xb901e5;const _0x61287f=_0x54048a['getShapeTextData']();if(!_0x61287f||!(_0x2847da(0x31a)in _0x61287f))return _0xb901e5;const _0x1491e9=_0x61287f[_0x2847da(0x31a)];return(_0x12059c=_0x1491e9===null||_0x1491e9===void 0x0?void 0x0:_0x1491e9['va'])!==null&&_0x12059c!==void 0x0?_0x12059c:_0xb901e5;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x329434=SHAPE_VERTICAL_ALIGN_CHILDREN['find'](_0x574625=>_0x574625['value']===_0xb901e5))===null||_0x329434===void 0x0?void 0x0:_0x329434[_0x4086b6(0x181)],'tooltip':'toolbar.verticalAlignMode.main','type':_univerjs_ui[_0x4086b6(0x42e)]['SELECTOR'],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x4086b6(0x356))](_0x3ebda6=>{const _0x3d18de=_0x4086b6,_0x2a2d71=_0x512d66['onCommandExecuted'](_0x48ee26=>{const _0x180c0d=_0x1fb6;if(_0x48ee26['id']===SetShapeTextVerticalAlignCommand['id'])_0x3ebda6[_0x180c0d(0x194)](_0x3ccecf());}),_0x2c7f36=_0x15ce5e[_0x3d18de(0x264)][_0x3d18de(0x22b)](()=>{const _0x37d6bb=_0x3d18de;_0x3ebda6[_0x37d6bb(0x194)](_0x3ccecf());});return _0x3ebda6[_0x3d18de(0x194)](_0x3ccecf()),()=>{const _0x251fdb=_0x3d18de;_0x2a2d71[_0x251fdb(0x570)](),_0x2c7f36['unsubscribe']();};}),'hidden$':_0x445a9d[_0x4086b6(0x5ab)](_univerjs_core[_0x4086b6(0x156)])['pipe']((0x0,rxjs[_0x4086b6(0x2d0)])(_0x272740=>!_0x272740))};}function ShapeMenuItemFactory(_0x5e0a6f){const _0x21d82e=_0x48b1be,_0x2f78ec=_0x5e0a6f[_0x21d82e(0x4fd)](_univerjs_core[_0x21d82e(0x1d2)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x21d82e(0x42e)][_0x21d82e(0x114)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x21d82e(0x516),'tooltip':'sheets-shape.insertShape','activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x2f78ec,![],()=>new rxjs[(_0x21d82e(0x356))](_0x5cc30f=>{_0x5cc30f['next'](![]);})),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x5e0a6f,_univerjs_core[_0x21d82e(0x617)][_0x21d82e(0x5a6)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x21d82e(0x372)])(_0x5e0a6f)};}const menuSchema={[_univerjs_ui[_0x48b1be(0x4ee)]['START']]:{[_univerjs_ui[_0x48b1be(0x4b4)][_0x48b1be(0x501)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x48b1be(0x4b4)][_0x48b1be(0x349)]]:{[_univerjs_docs_ui[_0x48b1be(0x5b4)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui[_0x48b1be(0x2fe)]['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x48b1be(0x3a5)][_0x48b1be(0x3a0)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x3a4ec6,_0x49c46e,_0x72288a,_0x264db3,_0x3936a0,_0x348d85,_0xa0916f,_0x27cd84,_0x41c9f8,_0x404eb5,_0x37955f){const _0x2273c4=_0x48b1be;super(),this[_0x2273c4(0x36a)]=_0x3a4ec6,this[_0x2273c4(0x5dd)]=_0x49c46e,this[_0x2273c4(0x60c)]=_0x72288a,this[_0x2273c4(0x477)]=_0x264db3,this[_0x2273c4(0x5d9)]=_0x3936a0,this['_localeService']=_0x348d85,this[_0x2273c4(0x482)]=_0xa0916f,this[_0x2273c4(0x1c8)]=_0x27cd84,this[_0x2273c4(0x307)]=_0x41c9f8,this[_0x2273c4(0x374)]=_0x404eb5,this[_0x2273c4(0x5bf)]=_0x37955f,_defineProperty(this,_0x2273c4(0x498),null),_defineProperty(this,'_activeShapeInfo',null),_defineProperty(this,'_isOpenedShapeEditPanel',![]),this[_0x2273c4(0x61b)](),this[_0x2273c4(0x51c)](),this[_0x2273c4(0x47f)](this[_0x2273c4(0x36a)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x2273c4(0x617)][_0x2273c4(0x5a6)])['subscribe'](_0x357c5c=>{const _0x4ce013=_0x2273c4;var _0x432669;if(!_0x357c5c)(_0x432669=this[_0x4ce013(0x498)])===null||_0x432669===void 0x0||_0x432669[_0x4ce013(0x570)]();})),this[_0x2273c4(0x54c)](),this['_registerShapeMenu']();}['_initMenu'](){const _0x18707a=_0x48b1be;this[_0x18707a(0x477)]['mergeMenu'](menuSchema);}[_0x48b1be(0x25f)](){const _0x1bbe5d=_0x48b1be;this[_0x1bbe5d(0x374)][_0x1bbe5d(0x58d)](_univerjs_core[_0x1bbe5d(0x45a)][_0x1bbe5d(0x614)],this[_0x1bbe5d(0x232)]['bind'](this)),this[_0x1bbe5d(0x374)][_0x1bbe5d(0x646)](_univerjs_core[_0x1bbe5d(0x45a)][_0x1bbe5d(0x614)],0x6,0x4);}['getShapePopupMenus'](_0x187e07,_0x29244a,_0x541e9e,_0x1ad1c6){const _0x1fa2a4=_0x48b1be;return[{'label':_0x1fa2a4(0x4ba),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e},'disable':_0x1ad1c6===_univerjs_core[_0x1fa2a4(0x45a)][_0x1fa2a4(0x213)]},{'label':_0x1fa2a4(0x1e8),'index':0x1,'commandId':_univerjs_sheets_drawing[_0x1fa2a4(0x535)]['id'],'commandParams':{'unitId':_0x187e07,'drawings':[{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e,'drawingType':_0x1ad1c6}]},'disable':![]},{'label':_0x1fa2a4(0x3ef),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e},'disable':![]},{'label':_0x1fa2a4(0x5d8),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x65f)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x65f)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'flipV':!![]},'disable':![]},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x609)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'rotate':0x5a},'disable':![]},{'label':_0x1fa2a4(0x231),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'rotate':-0x5a},'disable':![]},{'label':_0x1fa2a4(0x2e4),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x1ff)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e},'disable':![]}];}[_0x48b1be(0x30c)](_0x1c8d76,_0x70ac36,_0x2d544f){const _0x1439eb=_0x48b1be,_0x5cd865=this[_0x1439eb(0x5d9)][_0x1439eb(0x376)](_0x1c8d76,_0x70ac36,_0x2d544f),_0x429f8e=this[_0x1439eb(0x5d9)][_0x1439eb(0x665)](_0x1c8d76,_0x70ac36,_0x2d544f);if(_0x5cd865!==void 0x0&&_0x429f8e!==void 0x0)return{'shapeData':_0x429f8e,'shapeId':_0x2d544f,'shapeType':_0x5cd865,'unitId':_0x1c8d76,'subUnitId':_0x70ac36,'disableShapeOption':![]};return null;}[_0x48b1be(0x54c)](){const _0x49db20=_0x48b1be;this[_0x49db20(0x47f)](this[_0x49db20(0x1c8)][_0x49db20(0x2a8)](_0x1f47fb=>{const _0x1b96b1=_0x49db20;if(_0x1f47fb['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x1fdedc,subUnitId:_0x1eee8f,drawingId:_0x269dc5}=_0x1f47fb[_0x1b96b1(0x37c)];this[_0x1b96b1(0x14e)]=this[_0x1b96b1(0x30c)](_0x1fdedc,_0x1eee8f,_0x269dc5),this[_0x1b96b1(0x40b)]();}_0x1f47fb['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x1b96b1(0x14e)]=null,this[_0x1b96b1(0xfb)]());if(_0x1f47fb['id']===_univerjs_pro_sheets_shape[_0x1b96b1(0x565)]['id']){const {unitId:_0x50b64e,subUnitId:_0xf77543,shapeId:_0x363db8}=_0x1f47fb[_0x1b96b1(0x37c)];if(this[_0x1b96b1(0x14e)]&&this['_activeShapeInfo'][_0x1b96b1(0x1d8)]===_0x363db8){const _0x478b40=this[_0x1b96b1(0x30c)](_0x50b64e,_0xf77543,_0x363db8);if(_0x478b40)this[_0x1b96b1(0x14e)]=_0x478b40;}}})),this['disposeWithMe'](this[_0x49db20(0x307)][_0x49db20(0x16e)]['subscribe'](_0x4e84c8=>{const _0x2754e7=_0x49db20;if(this[_0x2754e7(0x428)]===![])return;if(_0x4e84c8[_0x2754e7(0x42d)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x4e84c8[_0x2754e7(0x42d)]===0x1&&_0x4e84c8[0x0][_0x2754e7(0x2b0)]===_univerjs_core[_0x2754e7(0x45a)]['DRAWING_SHAPE']){this[_0x2754e7(0x14e)]=this[_0x2754e7(0x30c)](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0]['drawingId']);if(this[_0x2754e7(0x14e)]){this[_0x2754e7(0x40b)]();return;}}const _0x18aa60=_0x4e84c8[_0x2754e7(0x2bb)](_0xa0161a=>{const _0x3f9fa2=_0x2754e7;return _0xa0161a['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x3f9fa2(0x614)];});if(_0x4e84c8[_0x2754e7(0x42d)]>0x1&&_0x18aa60[_0x2754e7(0x42d)]===_0x4e84c8['length']){this['_activeShapeInfo']=this['_getShapeInfo'](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0][_0x2754e7(0x4cb)]);if(this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{this[_0x2754e7(0x14e)]=this['_getShapeInfo'](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0][_0x2754e7(0x4cb)]);if(this[_0x2754e7(0x14e)]){this['_activeShapeInfo']['disableShapeOption']=!![],this[_0x2754e7(0x40b)]();return;}}this[_0x2754e7(0xfb)]();}));}[_0x48b1be(0x61b)](){const _0x1f97d3=_0x48b1be;[[_0x1f97d3(0x516),_univerjs_icons[_0x1f97d3(0x516)]],[_0x1f97d3(0x2e1),_univerjs_icons['ShapeAccentBorderCallout1Icon']],[_0x1f97d3(0x3ea),_univerjs_icons[_0x1f97d3(0x3ea)]],[_0x1f97d3(0x27e),_univerjs_icons['ShapeAccentBorderCallout3Icon']],['ShapeAccentCallout1Icon',_univerjs_icons[_0x1f97d3(0x3e8)]],[_0x1f97d3(0x469),_univerjs_icons[_0x1f97d3(0x469)]],['ShapeAccentCallout3Icon',_univerjs_icons[_0x1f97d3(0x4a0)]],[_0x1f97d3(0x109),_univerjs_icons[_0x1f97d3(0x109)]],[_0x1f97d3(0x19c),_univerjs_icons[_0x1f97d3(0x19c)]],[_0x1f97d3(0x4e6),_univerjs_icons['ShapeActionButtonBlankIcon']],[_0x1f97d3(0x2fc),_univerjs_icons['ShapeActionButtonDocumentIcon']],[_0x1f97d3(0x43e),_univerjs_icons['ShapeActionButtonEndIcon']],[_0x1f97d3(0x284),_univerjs_icons['ShapeActionButtonForwardNextIcon']],['ShapeActionButtonHelpIcon',_univerjs_icons[_0x1f97d3(0x4d5)]],[_0x1f97d3(0x2be),_univerjs_icons[_0x1f97d3(0x2be)]],[_0x1f97d3(0x5d6),_univerjs_icons[_0x1f97d3(0x5d6)]],[_0x1f97d3(0x28e),_univerjs_icons['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',_univerjs_icons[_0x1f97d3(0x657)]],['ShapeActionButtonSoundIcon',_univerjs_icons[_0x1f97d3(0x330)]],['ShapeArcIcon',_univerjs_icons[_0x1f97d3(0x20f)]],[_0x1f97d3(0x19b),_univerjs_icons[_0x1f97d3(0x19b)]],[_0x1f97d3(0x360),_univerjs_icons[_0x1f97d3(0x360)]],[_0x1f97d3(0x27f),_univerjs_icons[_0x1f97d3(0x27f)]],['ShapeBentConnector3Icon',_univerjs_icons['ShapeBentConnector3Icon']],[_0x1f97d3(0x2ee),_univerjs_icons[_0x1f97d3(0x2ee)]],[_0x1f97d3(0x221),_univerjs_icons['ShapeBevelIcon']],[_0x1f97d3(0x433),_univerjs_icons[_0x1f97d3(0x433)]],[_0x1f97d3(0x5b0),_univerjs_icons[_0x1f97d3(0x5b0)]],[_0x1f97d3(0x1d6),_univerjs_icons[_0x1f97d3(0x1d6)]],[_0x1f97d3(0x262),_univerjs_icons[_0x1f97d3(0x262)]],[_0x1f97d3(0x509),_univerjs_icons[_0x1f97d3(0x509)]],[_0x1f97d3(0x59d),_univerjs_icons[_0x1f97d3(0x59d)]],[_0x1f97d3(0x615),_univerjs_icons[_0x1f97d3(0x615)]],['ShapeCallout2Icon',_univerjs_icons['ShapeCallout2Icon']],['ShapeCallout3Icon',_univerjs_icons[_0x1f97d3(0x2fa)]],[_0x1f97d3(0x18f),_univerjs_icons['ShapeCanIcon']],[_0x1f97d3(0x26f),_univerjs_icons['ShapeChartPlusIcon']],[_0x1f97d3(0x3e3),_univerjs_icons[_0x1f97d3(0x3e3)]],['ShapeChartXIcon',_univerjs_icons[_0x1f97d3(0x308)]],[_0x1f97d3(0x5b2),_univerjs_icons[_0x1f97d3(0x5b2)]],[_0x1f97d3(0x5c2),_univerjs_icons[_0x1f97d3(0x5c2)]],[_0x1f97d3(0x41a),_univerjs_icons[_0x1f97d3(0x41a)]],[_0x1f97d3(0x4eb),_univerjs_icons[_0x1f97d3(0x4eb)]],[_0x1f97d3(0x574),_univerjs_icons[_0x1f97d3(0x574)]],[_0x1f97d3(0x54b),_univerjs_icons[_0x1f97d3(0x54b)]],[_0x1f97d3(0x561),_univerjs_icons[_0x1f97d3(0x561)]],[_0x1f97d3(0x55b),_univerjs_icons[_0x1f97d3(0x55b)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x1f97d3(0x440)]],[_0x1f97d3(0x12d),_univerjs_icons[_0x1f97d3(0x12d)]],[_0x1f97d3(0xfa),_univerjs_icons[_0x1f97d3(0xfa)]],[_0x1f97d3(0x1e3),_univerjs_icons[_0x1f97d3(0x1e3)]],[_0x1f97d3(0x51a),_univerjs_icons[_0x1f97d3(0x51a)]],[_0x1f97d3(0x220),_univerjs_icons['ShapeCurvedRightArrowIcon']],[_0x1f97d3(0x342),_univerjs_icons[_0x1f97d3(0x342)]],['ShapeDecagonIcon',_univerjs_icons['ShapeDecagonIcon']],[_0x1f97d3(0x353),_univerjs_icons[_0x1f97d3(0x353)]],[_0x1f97d3(0x624),_univerjs_icons[_0x1f97d3(0x624)]],[_0x1f97d3(0x1e5),_univerjs_icons[_0x1f97d3(0x1e5)]],['ShapeDonutIcon',_univerjs_icons[_0x1f97d3(0x306)]],[_0x1f97d3(0x196),_univerjs_icons[_0x1f97d3(0x196)]],[_0x1f97d3(0x5f0),_univerjs_icons[_0x1f97d3(0x5f0)]],['ShapeDownArrowIcon',_univerjs_icons[_0x1f97d3(0x333)]],[_0x1f97d3(0x480),_univerjs_icons[_0x1f97d3(0x480)]],[_0x1f97d3(0x2df),_univerjs_icons['ShapeEllipseRibbon2Icon']],[_0x1f97d3(0x126),_univerjs_icons[_0x1f97d3(0x126)]],[_0x1f97d3(0x572),_univerjs_icons[_0x1f97d3(0x572)]],[_0x1f97d3(0x147),_univerjs_icons[_0x1f97d3(0x147)]],[_0x1f97d3(0x121),_univerjs_icons['ShapeFlowChartConnectorIcon']],[_0x1f97d3(0x3f4),_univerjs_icons['ShapeFlowChartDecisionIcon']],[_0x1f97d3(0x217),_univerjs_icons[_0x1f97d3(0x217)]],['ShapeFlowChartDisplayIcon',_univerjs_icons['ShapeFlowChartDisplayIcon']],[_0x1f97d3(0x32a),_univerjs_icons[_0x1f97d3(0x32a)]],['ShapeFlowChartExtractIcon',_univerjs_icons['ShapeFlowChartExtractIcon']],[_0x1f97d3(0x243),_univerjs_icons[_0x1f97d3(0x243)]],[_0x1f97d3(0x4f1),_univerjs_icons[_0x1f97d3(0x4f1)]],['ShapeFlowChartMagneticDiskIcon',_univerjs_icons[_0x1f97d3(0x38e)]],[_0x1f97d3(0x4b0),_univerjs_icons[_0x1f97d3(0x4b0)]],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons[_0x1f97d3(0xf8)]],[_0x1f97d3(0x1a4),_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x1f97d3(0x4fb),_univerjs_icons[_0x1f97d3(0x4fb)]],[_0x1f97d3(0x25e),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x1f97d3(0x593),_univerjs_icons['ShapeFlowChartMultidocumentIcon']],[_0x1f97d3(0x315),_univerjs_icons[_0x1f97d3(0x315)]],['ShapeFlowChartOffpageConnectorIcon',_univerjs_icons[_0x1f97d3(0x1b2)]],[_0x1f97d3(0x491),_univerjs_icons[_0x1f97d3(0x491)]],[_0x1f97d3(0x289),_univerjs_icons[_0x1f97d3(0x289)]],[_0x1f97d3(0x142),_univerjs_icons[_0x1f97d3(0x142)]],['ShapeFlowChartPreparationIcon',_univerjs_icons['ShapeFlowChartPreparationIcon']],['ShapeFlowChartProcessIcon',_univerjs_icons[_0x1f97d3(0x157)]],['ShapeFlowChartPunchedCardIcon',_univerjs_icons[_0x1f97d3(0x118)]],[_0x1f97d3(0x4de),_univerjs_icons['ShapeFlowChartPunchedTapeIcon']],['ShapeFlowChartSortIcon',_univerjs_icons[_0x1f97d3(0x3fe)]],['ShapeFlowChartSummingJunctionIcon',_univerjs_icons[_0x1f97d3(0x45f)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x1f97d3(0x2c7)]],['ShapeFolderCornerIcon',_univerjs_icons[_0x1f97d3(0x4ea)]],['ShapeFrameIcon',_univerjs_icons[_0x1f97d3(0x1af)]],[_0x1f97d3(0x1e4),_univerjs_icons[_0x1f97d3(0x1e4)]],[_0x1f97d3(0x430),_univerjs_icons[_0x1f97d3(0x430)]],[_0x1f97d3(0x1bf),_univerjs_icons[_0x1f97d3(0x1bf)]],[_0x1f97d3(0x49e),_univerjs_icons[_0x1f97d3(0x49e)]],[_0x1f97d3(0x35a),_univerjs_icons['ShapeHeartIcon']],[_0x1f97d3(0x103),_univerjs_icons[_0x1f97d3(0x103)]],['ShapeHexagonIcon',_univerjs_icons[_0x1f97d3(0x643)]],[_0x1f97d3(0x4da),_univerjs_icons[_0x1f97d3(0x4da)]],[_0x1f97d3(0x479),_univerjs_icons[_0x1f97d3(0x479)]],[_0x1f97d3(0x46c),_univerjs_icons['ShapeIrregularSeal1Icon']],[_0x1f97d3(0x4f8),_univerjs_icons['ShapeIrregularSeal2Icon']],[_0x1f97d3(0x2ea),_univerjs_icons[_0x1f97d3(0x2ea)]],[_0x1f97d3(0x56e),_univerjs_icons['ShapeLeftArrowIcon']],[_0x1f97d3(0x1da),_univerjs_icons[_0x1f97d3(0x1da)]],[_0x1f97d3(0x125),_univerjs_icons[_0x1f97d3(0x125)]],[_0x1f97d3(0x60a),_univerjs_icons[_0x1f97d3(0x60a)]],['ShapeLeftRightArrowCalloutIcon',_univerjs_icons['ShapeLeftRightArrowCalloutIcon']],['ShapeLeftRightArrowIcon',_univerjs_icons[_0x1f97d3(0x31b)]],['ShapeLeftRightCircularArrowIcon',_univerjs_icons[_0x1f97d3(0x2f7)]],[_0x1f97d3(0x427),_univerjs_icons[_0x1f97d3(0x427)]],['ShapeLeftRightUpArrowIcon',_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x1f97d3(0x168)]],[_0x1f97d3(0x225),_univerjs_icons[_0x1f97d3(0x225)]],[_0x1f97d3(0x526),_univerjs_icons[_0x1f97d3(0x526)]],[_0x1f97d3(0x25a),_univerjs_icons[_0x1f97d3(0x25a)]],[_0x1f97d3(0x5ef),_univerjs_icons['ShapeMathDivideIcon']],['ShapeMathEqualIcon',_univerjs_icons['ShapeMathEqualIcon']],[_0x1f97d3(0x14b),_univerjs_icons[_0x1f97d3(0x14b)]],[_0x1f97d3(0x184),_univerjs_icons['ShapeMathMultiplyIcon']],['ShapeMathNotEqualIcon',_univerjs_icons[_0x1f97d3(0x585)]],[_0x1f97d3(0x222),_univerjs_icons[_0x1f97d3(0x222)]],[_0x1f97d3(0x2b6),_univerjs_icons[_0x1f97d3(0x2b6)]],['ShapeNoSmokingIcon',_univerjs_icons['ShapeNoSmokingIcon']],[_0x1f97d3(0x577),_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x1f97d3(0x3b9)]],['ShapeOctagonIcon',_univerjs_icons[_0x1f97d3(0x204)]],['ShapeParallelogramIcon',_univerjs_icons[_0x1f97d3(0x2e3)]],['ShapePentagonIcon',_univerjs_icons['ShapePentagonIcon']],[_0x1f97d3(0x245),_univerjs_icons[_0x1f97d3(0x245)]],[_0x1f97d3(0x37d),_univerjs_icons['ShapePieWedgeIcon']],[_0x1f97d3(0x40f),_univerjs_icons[_0x1f97d3(0x40f)]],[_0x1f97d3(0x298),_univerjs_icons[_0x1f97d3(0x298)]],[_0x1f97d3(0x3f0),_univerjs_icons[_0x1f97d3(0x3f0)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x1f97d3(0x3e9),_univerjs_icons[_0x1f97d3(0x3e9)]],[_0x1f97d3(0x1c5),_univerjs_icons[_0x1f97d3(0x1c5)]],[_0x1f97d3(0x4c4),_univerjs_icons[_0x1f97d3(0x4c4)]],[_0x1f97d3(0x652),_univerjs_icons[_0x1f97d3(0x652)]],[_0x1f97d3(0x487),_univerjs_icons[_0x1f97d3(0x487)]],[_0x1f97d3(0x2e5),_univerjs_icons[_0x1f97d3(0x2e5)]],['ShapeRightArrowCalloutIcon',_univerjs_icons[_0x1f97d3(0x13e)]],[_0x1f97d3(0x5fe),_univerjs_icons[_0x1f97d3(0x5fe)]],[_0x1f97d3(0x34d),_univerjs_icons[_0x1f97d3(0x34d)]],['ShapeRightBracketIcon',_univerjs_icons[_0x1f97d3(0x510)]],[_0x1f97d3(0x32e),_univerjs_icons[_0x1f97d3(0x32e)]],[_0x1f97d3(0x5cd),_univerjs_icons['ShapeRound2DiagRectIcon']],[_0x1f97d3(0x273),_univerjs_icons[_0x1f97d3(0x273)]],[_0x1f97d3(0x3fb),_univerjs_icons[_0x1f97d3(0x3fb)]],[_0x1f97d3(0x52d),_univerjs_icons[_0x1f97d3(0x52d)]],[_0x1f97d3(0x4af),_univerjs_icons[_0x1f97d3(0x4af)]],[_0x1f97d3(0x483),_univerjs_icons[_0x1f97d3(0x483)]],[_0x1f97d3(0x5c0),_univerjs_icons[_0x1f97d3(0x5c0)]],[_0x1f97d3(0x5af),_univerjs_icons[_0x1f97d3(0x5af)]],[_0x1f97d3(0x58b),_univerjs_icons['ShapeSnipRoundRectIcon']],[_0x1f97d3(0x250),_univerjs_icons[_0x1f97d3(0x250)]],[_0x1f97d3(0x2a6),_univerjs_icons[_0x1f97d3(0x2a6)]],[_0x1f97d3(0x299),_univerjs_icons[_0x1f97d3(0x299)]],[_0x1f97d3(0x49f),_univerjs_icons[_0x1f97d3(0x49f)]],['ShapeStar24Icon',_univerjs_icons[_0x1f97d3(0x5cb)]],['ShapeStar32Icon',_univerjs_icons[_0x1f97d3(0x378)]],[_0x1f97d3(0x534),_univerjs_icons['ShapeStar4Icon']],[_0x1f97d3(0xf7),_univerjs_icons[_0x1f97d3(0xf7)]],['ShapeStar6Icon',_univerjs_icons['ShapeStar6Icon']],[_0x1f97d3(0x5f1),_univerjs_icons[_0x1f97d3(0x5f1)]],[_0x1f97d3(0x314),_univerjs_icons[_0x1f97d3(0x314)]],[_0x1f97d3(0x278),_univerjs_icons[_0x1f97d3(0x278)]],[_0x1f97d3(0x4e5),_univerjs_icons[_0x1f97d3(0x4e5)]],[_0x1f97d3(0x3c5),_univerjs_icons[_0x1f97d3(0x3c5)]],[_0x1f97d3(0x5f4),_univerjs_icons[_0x1f97d3(0x5f4)]],[_0x1f97d3(0x62f),_univerjs_icons['ShapeSwooshArrowIcon']],[_0x1f97d3(0x105),_univerjs_icons[_0x1f97d3(0x105)]],['ShapeTrapezoidIcon',_univerjs_icons[_0x1f97d3(0x212)]],[_0x1f97d3(0x21f),_univerjs_icons[_0x1f97d3(0x21f)]],[_0x1f97d3(0x655),_univerjs_icons[_0x1f97d3(0x655)]],[_0x1f97d3(0x4d8),_univerjs_icons[_0x1f97d3(0x4d8)]],[_0x1f97d3(0x218),_univerjs_icons[_0x1f97d3(0x218)]],[_0x1f97d3(0x409),_univerjs_icons[_0x1f97d3(0x409)]],[_0x1f97d3(0x435),_univerjs_icons[_0x1f97d3(0x435)]],['ShapeVerticalScrollIcon',_univerjs_icons['ShapeVerticalScrollIcon']],[_0x1f97d3(0x137),_univerjs_icons[_0x1f97d3(0x137)]],[_0x1f97d3(0x31d),_univerjs_icons[_0x1f97d3(0x31d)]],['ShapeWedgeRectCalloutIcon',_univerjs_icons['ShapeWedgeRectCalloutIcon']],[_0x1f97d3(0x22c),_univerjs_icons[_0x1f97d3(0x22c)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x1f97d3(0x279)],ImageClipShapePicker]]['forEach'](([_0x4e9865,_0x2a9669])=>{const _0x430d6c=_0x1f97d3;this[_0x430d6c(0x47f)](this[_0x430d6c(0x482)][_0x430d6c(0x130)](_0x4e9865,_0x2a9669));});}[_0x48b1be(0x40b)](){const _0x318b0c=_0x48b1be;this[_0x318b0c(0x498)]=this[_0x318b0c(0x60c)][_0x318b0c(0x32f)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x318b0c(0x502)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this['_activeShapeInfo']},'onClose':()=>{const _0x3af028=_0x318b0c;this[_0x3af028(0x307)][_0x3af028(0x62b)](null),this[_0x3af028(0x5bf)]['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x3af028(0x498)]=null;}}),this['_isOpenedShapeEditPanel']=!![];}[_0x48b1be(0xfb)](){const _0x10a2b0=_0x48b1be;this['_isOpenedShapeEditPanel']=![],this['_sidebarService'][_0x10a2b0(0x4f5)](SHEET_SHAPE_EDIT_PANEL_KEY),this['_sidebarDisposable']=null,this[_0x10a2b0(0x5bf)][_0x10a2b0(0xfc)](_univerjs_core[_0x10a2b0(0x156)],![]),this[_0x10a2b0(0x307)][_0x10a2b0(0x62b)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetInterceptorService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_ui['ISidebarService'])),__decorateParam(0x3,_univerjs_ui[_0x48b1be(0x38d)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core[_0x48b1be(0x319)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_ui[_0x48b1be(0x63d)])),__decorateParam(0x7,_univerjs_core[_0x48b1be(0x621)]),__decorateParam(0x8,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_ui['SheetCanvasPopManagerService'])),__decorateParam(0xa,_univerjs_core[_0x48b1be(0x39b)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0x48b1be(0x458);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x48b1be(0x1a5),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x3dd567,_0x57f790,_0x27cc43,_0x24d21f,_0x277909){const _0x337463=_0x48b1be;super(),this['_context']=_0x3dd567,this['_drawingManagerService']=_0x57f790,this[_0x337463(0x1cb)]=_0x27cc43,this['_univerInstanceService']=_0x24d21f,this[_0x337463(0x2fd)]=_0x277909,_defineProperty(this,_0x337463(0x5c4),null),_defineProperty(this,_0x337463(0x5ae),null),_defineProperty(this,_0x337463(0x36d),null),_defineProperty(this,_0x337463(0x5b3),void 0x0),_defineProperty(this,_0x337463(0x24f),[]),_defineProperty(this,'_baseLeft',0x0),_defineProperty(this,_0x337463(0x5be),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,_0x337463(0x15b),0x0),_defineProperty(this,_0x337463(0x3b8),![]),_defineProperty(this,_0x337463(0x52b),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x337463(0x4c2),![]),this[_0x337463(0x556)](),this[_0x337463(0xfe)]();}[_0x48b1be(0x545)](){const _0x49e3f9=_0x48b1be;this[_0x49e3f9(0x2db)]();}[_0x48b1be(0x15e)](){const _0x3cafb8=_0x48b1be;this[_0x3cafb8(0x2db)](),this[_0x3cafb8(0x34a)](!![]);}[_0x48b1be(0x62a)](_0x3797bb,_0x120e5b,_0x4a68e6,_0x244c45){const _0x535e98=_0x48b1be,_0x512401=_0x3797bb;if(_0x512401===_univerjs_pro_engine_shape[_0x535e98(0x515)][_0x535e98(0x197)]||_0x3797bb===_0x535e98(0x472))return;try{const _0x4dc82e=new _univerjs_pro_engine_shape[(_0x535e98(0x195))](_0x512401,_0x535e98(0x354)+_0x3797bb);if(_0x244c45)_0x4dc82e[_0x535e98(0x513)]({'adjustValues':_0x244c45},!![]);return _0x4dc82e['updateContext']({'width':_0x120e5b,'height':_0x4a68e6}),_0x4dc82e;}catch{return;}}[_0x48b1be(0x4fc)](_0x393106,_0xc64735,_0x12bc58){const _0xdb1821=_0x48b1be,_0x520fef={'unitId':_0x393106,'subUnitId':_0xc64735,'drawingId':_0x12bc58},_0x130cd0=this[_0xdb1821(0x307)][_0xdb1821(0x251)](_0x520fef);if(!_0x130cd0||_0x130cd0[_0xdb1821(0x2b0)]!==_univerjs_core[_0xdb1821(0x45a)][_0xdb1821(0x3d6)])return;return _0x130cd0;}[_0x48b1be(0x4ff)](_0x2cbc10,_0x57dc64,_0xd46799){const _0x3dacbd=_0x48b1be,_0x243003=this[_0x3dacbd(0x1cb)][_0x3dacbd(0x11a)](_0x2cbc10);if(!_0x243003)return void 0x0;const {scene:_0x476f9f}=_0x243003,_0x534c99=(0x0,_univerjs_drawing[_0x3dacbd(0x1e7)])({'unitId':_0x2cbc10,'subUnitId':_0x57dc64,'drawingId':_0xd46799}),_0x3621e1=_0x476f9f[_0x3dacbd(0x390)](_0x534c99);if(_0x3621e1 instanceof _univerjs_engine_render[_0x3dacbd(0x32c)]){const _0x4bb7a2=_0x3621e1['prstGeom'];if(_0x4bb7a2)return{'prstGeom':_0x4bb7a2,'adjustValues':_0x3621e1['prstGeomAdjValues']};}}[_0x48b1be(0x34a)](_0x548cde=![]){const _0x3e7b66=_0x48b1be;if(!this[_0x3e7b66(0x5ae)]||!this[_0x3e7b66(0x36d)]||!this[_0x3e7b66(0x5c4)])return;const _0x3621b6=this[_0x3e7b66(0x1cb)]['getRenderById'](this[_0x3e7b66(0x5ae)]);if(!_0x3621b6)return;if(!_0x3621b6[_0x3e7b66(0x26a)](_univerjs_sheets_ui[_0x3e7b66(0x2b2)])['getCurrentSkeleton']())return;const {scene:_0x121e5a}=_0x3621b6,_0x348014=this['_getImageDrawingInfo'](this[_0x3e7b66(0x5ae)],this['_subUnitId'],this['_activeImageId']);if(!_0x348014)return;const {transform:_0x1fcbc7}=_0x348014;if(!_0x1fcbc7)return;const {left:_0x3f4af9,top:_0x3da019,width:_0x2d090f,height:_0x257fbb,flipX:_0x1030a9,flipY:_0x37ef40,angle:angle=0x0}=_0x1fcbc7;if(_0x3f4af9===void 0x0||_0x3da019===void 0x0)return;const _0x4cae2c=this[_0x3e7b66(0x4ff)](this[_0x3e7b66(0x5ae)],this[_0x3e7b66(0x36d)],this[_0x3e7b66(0x5c4)]);if(!_0x4cae2c)return;if(_0x548cde){const _0x19e2e9=this[_0x3e7b66(0x62a)](_0x4cae2c[_0x3e7b66(0x555)],_0x2d090f||0x0,_0x257fbb||0x0,_0x4cae2c['adjustValues']);if(!_0x19e2e9)return;this['_activeAdjustPointList']=_0x19e2e9[_0x3e7b66(0x170)]();}const _0x4e8c1c=this['_activeAdjustPointList'];if(!_0x4e8c1c||_0x4e8c1c[_0x3e7b66(0x42d)]===0x0)return;for(let _0x407195=0x0;_0x407195<_0x4e8c1c[_0x3e7b66(0x42d)];_0x407195++){const _0x56d7ea=_0x4e8c1c[_0x407195];let _0x480c1b=_0x56d7ea['x'],_0x206c21=_0x56d7ea['y'];if(_0x1030a9)_0x480c1b=(_0x2d090f||0x0)-_0x480c1b;if(_0x37ef40)_0x206c21=(_0x257fbb||0x0)-_0x206c21;if(angle!==0x0){const _0x23bac2=(_0x2d090f||0x0)/0x2,_0x27bb8f=(_0x257fbb||0x0)/0x2,_0x4d0acb=angle*Math['PI']/0xb4,_0x557ea5=Math[_0x3e7b66(0x548)](_0x4d0acb),_0x20427a=Math['sin'](_0x4d0acb),_0x143616=_0x480c1b-_0x23bac2,_0x14dd8d=_0x206c21-_0x27bb8f;_0x480c1b=_0x23bac2+(_0x143616*_0x557ea5-_0x14dd8d*_0x20427a),_0x206c21=_0x27bb8f+(_0x143616*_0x20427a+_0x14dd8d*_0x557ea5);}const _0xcab6a7={'x':_0x480c1b,'y':_0x206c21,'adjName':_0x56d7ea[_0x3e7b66(0x391)]};this[_0x3e7b66(0x1c2)](_0x121e5a,_0xcab6a7,_0xcab6a7[_0x3e7b66(0x391)],_0x3f4af9,_0x3da019,this[_0x3e7b66(0x5ae)],this[_0x3e7b66(0x36d)]);}}[_0x48b1be(0x1c2)](_0x533881,_0x2fc403,_0x58a6ec,_0x3b10e6,_0x3c2d25,_0x2de0d4,_0x168b00){const _0x303d44=_0x48b1be;if(!this[_0x303d44(0x5c4)])return;const _0x18d955='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x58a6ec,_0xac9cd6=_0x533881[_0x303d44(0x492)](_0x18d955);if(_0xac9cd6){_0xac9cd6[_0x303d44(0x2b4)]({'left':_0x2fc403['x']+_0x3b10e6-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'top':_0x2fc403['y']+_0x3c2d25-_univerjs_pro_engine_shape[_0x303d44(0x5ff)]['adjHandleSize']});return;}const _0x4c4ba7=new SheetShapeAdjustPointObject(_0x18d955,{'left':_0x2fc403['x']+_0x3b10e6-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'top':_0x2fc403['y']+_0x3c2d25-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'adjName':_0x58a6ec,'shapeId':this[_0x303d44(0x5c4)],'unitId':_0x2de0d4,'subUnitId':_0x168b00,'width':_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x303d44(0x346)]+0x8,'zIndex':_univerjs_engine_render[_0x303d44(0x3d4)]+0x1,'evented':!![]});this[_0x303d44(0x24f)][_0x303d44(0x5ed)](_0x4c4ba7),this[_0x303d44(0x3d0)](_0x4c4ba7,_0x533881,_0x58a6ec),_0x533881[_0x303d44(0x261)](_0x4c4ba7,_univerjs_engine_render[_0x303d44(0x3d4)]+0x1);}[_0x48b1be(0x2db)](){const _0x386938=_0x48b1be;if(this[_0x386938(0x24f)][_0x386938(0x42d)]===0x0)return;this[_0x386938(0x24f)][_0x386938(0x4e1)](_0x841d73=>_0x841d73['dispose']()),this[_0x386938(0x24f)]=[];}['_getScrollInfo'](_0x4a22dd,_0x1d62e3){const _0x444504=_0x48b1be;var _0x30e35b;const _0x528fcb={'x':0x0,'y':0x0},_0x1283cc=this[_0x444504(0x1cb)][_0x444504(0x11a)](_0x4a22dd);if(!_0x1283cc)return _0x528fcb;if(!_0x1283cc['with'](_univerjs_sheets_ui[_0x444504(0x2b2)])['getSkeleton'](_0x1d62e3))return _0x528fcb;const _0x35386d=_0x1283cc[_0x444504(0x26a)](_univerjs_sheets_ui[_0x444504(0x411)]),_0x353fe6=_0x35386d===null||_0x35386d===void 0x0?void 0x0:_0x35386d['getCurrentScrollState']();if(!_0x353fe6)return _0x528fcb;const _0x457514=(_0x30e35b=this[_0x444504(0x36a)][_0x444504(0x10f)](_0x4a22dd))===null||_0x30e35b===void 0x0?void 0x0:_0x30e35b['getSheetBySheetId'](_0x1d62e3);if(!_0x457514)return _0x528fcb;const _0x13a251=(0x0,_univerjs_sheets_ui[_0x444504(0x3e6)])(_0x353fe6['sheetViewStartRow'],_0x353fe6[_0x444504(0x642)],_0x1283cc['scene'],_0x457514);if(!_0x13a251)return _0x528fcb;return{'x':_0x13a251[_0x444504(0x33e)],'y':_0x13a251['viewportScrollY']};}[_0x48b1be(0x5d5)](_0x454e0d,_0x2da77e){const _0x375bde=_0x48b1be;var _0x434712,_0x444d20;const _0x17e0f8=(_0x434712=this[_0x375bde(0x36a)][_0x375bde(0x10f)](_0x454e0d))===null||_0x434712===void 0x0?void 0x0:_0x434712[_0x375bde(0x37a)](_0x2da77e);return(_0x444d20=_0x17e0f8===null||_0x17e0f8===void 0x0?void 0x0:_0x17e0f8[_0x375bde(0x25b)]())!==null&&_0x444d20!==void 0x0?_0x444d20:0x1;}[_0x48b1be(0x3d0)](_0x1c7f5b,_0x17b4d5,_0x4d6e33){const _0x2193b2=_0x48b1be;this[_0x2193b2(0x47f)]((0x0,_univerjs_core['toDisposable'])(_0x1c7f5b[_0x2193b2(0x3bd)][_0x2193b2(0x595)]((_0x32e14f,_0xb98c77)=>{const _0x227cdd=_0x2193b2;var _0xbe1395,_0x2efc62,_0x20cd83;const {unitId:_0x227b78,subUnitId:_0x280f94,drawingId:_0x2d4db8}=_0x1c7f5b[_0x227cdd(0x647)](),_0x58f701=this['_getImageDrawingInfo'](_0x227b78,_0x280f94,_0x2d4db8);if(!(_0x58f701===null||_0x58f701===void 0x0?void 0x0:_0x58f701[_0x227cdd(0x649)]))return;const {left:_0x3b06ed,top:_0x2263bb,width:_0x5d8d23,height:_0x3d7af9}=_0x58f701[_0x227cdd(0x649)];this[_0x227cdd(0x1aa)]=_0x3b06ed||0x0,this[_0x227cdd(0x5be)]=_0x2263bb||0x0,this[_0x227cdd(0x214)]=_0x5d8d23||0x0,this[_0x227cdd(0x15b)]=_0x3d7af9||0x0;const _0x2752e0=Boolean((_0xbe1395=_0x58f701[_0x227cdd(0x649)])===null||_0xbe1395===void 0x0?void 0x0:_0xbe1395[_0x227cdd(0x5b1)]),_0x42d79a=Boolean((_0x2efc62=_0x58f701['transform'])===null||_0x2efc62===void 0x0?void 0x0:_0x2efc62[_0x227cdd(0x285)]),_0xaeb7d5=((_0x20cd83=_0x58f701['transform'])===null||_0x20cd83===void 0x0?void 0x0:_0x20cd83[_0x227cdd(0x2ed)])||0x0,_0x1c8ea8=this[_0x227cdd(0x4ff)](_0x227b78,_0x280f94,_0x2d4db8);if(!_0x1c8ea8)return;const _0x29a138=this[_0x227cdd(0x62a)](_0x1c8ea8[_0x227cdd(0x555)],this[_0x227cdd(0x214)],this[_0x227cdd(0x15b)],_0x1c8ea8['adjustValues']);if(!_0x29a138)return;this[_0x227cdd(0x520)]=_0x29a138,this[_0x227cdd(0x52b)]=_0x29a138[_0x227cdd(0x5f6)](_0x4d6e33);if(!this[_0x227cdd(0x52b)])return;this['_isStartAdjusting']=!![],_0x17b4d5[_0x227cdd(0x1c7)]();const _0x228df3=_0x1c8ea8['prstGeom'];this[_0x227cdd(0x272)]=_0x17b4d5[_0x227cdd(0x276)]['subscribeEvent']((_0x3e9a2f,_0xe014b3)=>{const _0x3558af=_0x227cdd;if(!this[_0x3558af(0x3b8)])return;const {offsetX:_0x37a176,offsetY:_0x2d8728}=_0x3e9a2f,_0x354446=this[_0x3558af(0x52b)];if(!this['_activeShapeModel']||!_0x354446)return;_0x17b4d5['disableObjectsEvent'](),_0x17b4d5[_0x3558af(0x148)](_univerjs_engine_render[_0x3558af(0x4ad)][_0x3558af(0x484)]);const _0x525dc4={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x3558af(0x15b)]},_0x591c79=this[_0x3558af(0x2d8)](_0x227b78,_0x280f94),_0x17a950=this[_0x3558af(0x5d5)](_0x227b78,_0x280f94);let _0x5bb7bc=_0x37a176/_0x17a950+_0x591c79['x']-this[_0x3558af(0x1aa)],_0x511607=_0x2d8728/_0x17a950+_0x591c79['y']-this['_baseTop'];if(_0xaeb7d5!==0x0){const _0x362402=this[_0x3558af(0x214)]/0x2,_0x5e07f5=this[_0x3558af(0x15b)]/0x2,_0x189640=_0xaeb7d5*Math['PI']/0xb4,_0x2b18e1=Math[_0x3558af(0x548)](_0x189640),_0xc1f14b=Math[_0x3558af(0x539)](_0x189640),_0x5855a1=_0x5bb7bc-_0x362402,_0x3ae3c1=_0x511607-_0x5e07f5;_0x5bb7bc=_0x362402+(_0x5855a1*_0x2b18e1+_0x3ae3c1*_0xc1f14b),_0x511607=_0x5e07f5+(-_0x5855a1*_0xc1f14b+_0x3ae3c1*_0x2b18e1);}if(_0x2752e0)_0x5bb7bc=this['_baseWidth']-_0x5bb7bc;if(_0x42d79a)_0x511607=this['_baseHeight']-_0x511607;const _0x27a097=this[_0x3558af(0x520)][_0x3558af(0x405)](_0x525dc4,{'x':_0x5bb7bc,'y':_0x511607},_0x354446,_0x2752e0,_0x42d79a),_0x303538=_0x354446[_0x3558af(0x1dc)]||_0x354446[_0x3558af(0x238)]||_0x354446[_0x3558af(0x3c0)]||_0x354446[_0x3558af(0x4c9)];if(_0x303538===void 0x0)return;this['_activeShapeModel'][_0x3558af(0x177)](_0x303538,_0x27a097),this[_0x3558af(0x520)][_0x3558af(0x3ce)]({'width':this[_0x3558af(0x214)],'height':this[_0x3558af(0x15b)]}),this[_0x3558af(0x5fd)](_0x227b78,_0x280f94,_0x2d4db8,_0x303538,_0x27a097),this[_0x3558af(0x5b3)]=this[_0x3558af(0x520)]['getDrawingPoints'](),this[_0x3558af(0x52b)]=this[_0x3558af(0x520)][_0x3558af(0x5f6)](_0x4d6e33),this[_0x3558af(0x34a)](),_0xe014b3['stopPropagation']();}),this[_0x227cdd(0x389)]=_0x17b4d5[_0x227cdd(0x45d)]['subscribeEvent']((_0x5f451a,_0x4d42a0)=>{const _0xcc52ab=_0x227cdd;this[_0xcc52ab(0x272)][_0xcc52ab(0x4e2)](),this['_adjHandlerPointerUp'][_0xcc52ab(0x4e2)](),_0x17b4d5[_0xcc52ab(0x56d)]();if(this[_0xcc52ab(0x520)]){const _0x1fffaf=this[_0xcc52ab(0x520)]['getAdjustNames'](),_0x48d98d={};for(const _0x8c7702 of _0x1fffaf){const _0x2627c7=this['_activeShapeModel'][_0xcc52ab(0x336)](_0x8c7702);if(_0x2627c7!==void 0x0)_0x48d98d[_0x8c7702]=_0x2627c7;}this['_imageShapeClipController']['clipByShape'](_0x227b78,_0x280f94,_0x2d4db8,_0x228df3,_0x48d98d);}this[_0xcc52ab(0x52b)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0xcc52ab(0x3b8)]=![],_0x4d42a0[_0xcc52ab(0x668)](),_0x17b4d5[_0xcc52ab(0x386)]();}),_0xb98c77[_0x227cdd(0x668)]();})));}[_0x48b1be(0x5fd)](_0x190d0a,_0x5cec03,_0xd9f6b,_0x2936e8,_0x4971cd){const _0x2a97df=_0x48b1be,_0x43f8af=this['_renderManagerService']['getRenderById'](_0x190d0a);if(!_0x43f8af)return;const {scene:_0x4345ce}=_0x43f8af,_0x300ae2=(0x0,_univerjs_drawing[_0x2a97df(0x1e7)])({'unitId':_0x190d0a,'subUnitId':_0x5cec03,'drawingId':_0xd9f6b}),_0x29ad5c=_0x4345ce['getObject'](_0x300ae2);if(_0x29ad5c instanceof _univerjs_engine_render[_0x2a97df(0x32c)]){var _0x5db258;const _0x44c278=(_0x5db258=_0x29ad5c['prstGeomAdjValues'])!==null&&_0x5db258!==void 0x0?_0x5db258:{};_0x29ad5c['setPrstGeomAdjValues']({..._0x44c278,[_0x2936e8]:_0x4971cd}),_0x29ad5c[_0x2a97df(0x2d4)](!![]);}}[_0x48b1be(0xfe)](){const _0x2d4733=_0x48b1be,_0x43a095=this[_0x2d4733(0x36a)][_0x2d4733(0x5a1)](_univerjs_core[_0x2d4733(0x617)][_0x2d4733(0x5a6)]);this['disposeWithMe'](_0x43a095[_0x2d4733(0x560)]((0x0,rxjs[_0x2d4733(0x49d)])(_0x13bd6c=>{const _0x4beee3=_0x2d4733;if(!_0x13bd6c)return rxjs[_0x4beee3(0x256)];return _0x13bd6c[_0x4beee3(0x419)][_0x4beee3(0x560)]((0x0,rxjs[_0x4beee3(0x49d)])(_0x490d9f=>{const _0x2eb4d9=_0x4beee3;if(!_0x490d9f)return rxjs[_0x2eb4d9(0x256)];const _0x85c525=_0x13bd6c['getUnitId'](),_0x129b0f=this['_renderManagerService'][_0x2eb4d9(0x11a)](_0x85c525),_0x1f3aab=_0x129b0f===null||_0x129b0f===void 0x0?void 0x0:_0x129b0f[_0x2eb4d9(0x1cf)];if(!_0x1f3aab)return rxjs[_0x2eb4d9(0x256)];return(0x0,rxjs['of'])(_0x1f3aab);}));}))[_0x2d4733(0x22b)](_0x29113f=>{const _0x1103f4=_0x2d4733,_0x480943=_0x29113f[_0x1103f4(0x57f)]();this[_0x1103f4(0x47f)](_0x29113f[_0x1103f4(0x276)][_0x1103f4(0x595)](()=>{const _0x5b8b23=_0x1103f4;if(this[_0x5b8b23(0x4c2)])this[_0x5b8b23(0x2db)]();})),this[_0x1103f4(0x47f)](_0x480943[_0x1103f4(0x19f)]['subscribe'](_0x124739=>{const _0x7bf4f7=_0x1103f4,{objects:_0x544bf8}=_0x124739;this[_0x7bf4f7(0x34a)]();if(_0x544bf8!==null&&_0x544bf8['size']===0x1){const _0x1ec2bd=_0x544bf8[_0x7bf4f7(0x209)]()[_0x7bf4f7(0x194)]()[_0x7bf4f7(0x228)];if(_0x1ec2bd instanceof _univerjs_engine_render[_0x7bf4f7(0x32c)]&&_0x1ec2bd['prstGeom'])this[_0x7bf4f7(0x4c2)]=!![];}})),this['disposeWithMe'](_0x480943[_0x1103f4(0x339)]['subscribe'](()=>{const _0x4593ce=_0x1103f4;if(this[_0x4593ce(0x4c2)])this[_0x4593ce(0x2db)]();})),this['disposeWithMe'](_0x29113f['onPointerUp$']['subscribeEvent'](()=>{const _0x1d48e1=_0x1103f4;this[_0x1d48e1(0x4c2)]&&(this[_0x1d48e1(0x4c2)]=![],this[_0x1d48e1(0x34a)]());})),this[_0x1103f4(0x47f)](_0x480943[_0x1103f4(0x43c)][_0x1103f4(0x22b)](()=>{const _0x185f2f=_0x1103f4;if(this[_0x185f2f(0x5ae)]&&this[_0x185f2f(0x36d)]&&this['_activeImageId']){const _0x2de427=this[_0x185f2f(0x4ff)](this['_unitId'],this[_0x185f2f(0x36d)],this[_0x185f2f(0x5c4)]);if(_0x2de427){var _0x312a3d,_0x156754;const _0x3ddd43=this[_0x185f2f(0x4fc)](this[_0x185f2f(0x5ae)],this[_0x185f2f(0x36d)],this[_0x185f2f(0x5c4)]),_0x502178=(_0x3ddd43===null||_0x3ddd43===void 0x0||(_0x312a3d=_0x3ddd43[_0x185f2f(0x649)])===null||_0x312a3d===void 0x0?void 0x0:_0x312a3d[_0x185f2f(0x3c7)])||0x0,_0x5622bc=(_0x3ddd43===null||_0x3ddd43===void 0x0||(_0x156754=_0x3ddd43[_0x185f2f(0x649)])===null||_0x156754===void 0x0?void 0x0:_0x156754[_0x185f2f(0x613)])||0x0,_0x24cd22=this[_0x185f2f(0x62a)](_0x2de427[_0x185f2f(0x555)],_0x502178,_0x5622bc,_0x2de427[_0x185f2f(0x66c)]);_0x24cd22&&(this[_0x185f2f(0x5b3)]=_0x24cd22[_0x185f2f(0x170)](),this[_0x185f2f(0x2db)](),this[_0x185f2f(0x34a)](!![]));}}}));}));}[_0x48b1be(0x556)](){const _0x1d4aec=_0x48b1be;this[_0x1d4aec(0x47f)](this[_0x1d4aec(0x307)][_0x1d4aec(0x16e)]['subscribe'](_0x6e00a9=>{const _0x18a7bf=_0x1d4aec;if(_0x6e00a9[_0x18a7bf(0x42d)]===0x1){const _0x41a7ce=_0x6e00a9[0x0];if(_0x41a7ce[_0x18a7bf(0x2b0)]===_univerjs_core['DrawingTypeEnum'][_0x18a7bf(0x3d6)]){const {unitId:_0x1e5f0b,subUnitId:_0x5be6cf,drawingId:_0x113f6f}=_0x41a7ce,_0x2c4cd3=this['_getImagePrstGeom'](_0x1e5f0b,_0x5be6cf,_0x113f6f);if(_0x2c4cd3){var _0x2a8b64,_0x179dd9;this[_0x18a7bf(0x5c4)]=_0x113f6f,this[_0x18a7bf(0x5ae)]=_0x1e5f0b,this[_0x18a7bf(0x36d)]=_0x5be6cf;const _0x2748b7=this[_0x18a7bf(0x4fc)](_0x1e5f0b,_0x5be6cf,_0x113f6f),_0x5b86f0=(_0x2748b7===null||_0x2748b7===void 0x0||(_0x2a8b64=_0x2748b7[_0x18a7bf(0x649)])===null||_0x2a8b64===void 0x0?void 0x0:_0x2a8b64[_0x18a7bf(0x3c7)])||0x0,_0x4708ad=(_0x2748b7===null||_0x2748b7===void 0x0||(_0x179dd9=_0x2748b7[_0x18a7bf(0x649)])===null||_0x179dd9===void 0x0?void 0x0:_0x179dd9['height'])||0x0,_0x4154d1=this[_0x18a7bf(0x62a)](_0x2c4cd3[_0x18a7bf(0x555)],_0x5b86f0,_0x4708ad,_0x2c4cd3[_0x18a7bf(0x66c)]);if(_0x4154d1)this[_0x18a7bf(0x5b3)]=_0x4154d1[_0x18a7bf(0x170)]();this['_clearControls'](),this[_0x18a7bf(0x34a)](!![]);}else this[_0x18a7bf(0x635)]();}else this['_resetState']();}else this[_0x18a7bf(0x635)]();})),this['disposeWithMe'](this[_0x1d4aec(0x307)][_0x1d4aec(0x102)]['subscribe'](_0x51a7cb=>{const _0x21c20d=_0x1d4aec;if(_0x51a7cb[_0x21c20d(0x42d)]===0x1){const _0xac05ab=_0x51a7cb[0x0],_0x51b27b=this[_0x21c20d(0x307)][_0x21c20d(0x251)](_0xac05ab);(_0x51b27b===null||_0x51b27b===void 0x0?void 0x0:_0x51b27b[_0x21c20d(0x2b0)])===_univerjs_core[_0x21c20d(0x45a)][_0x21c20d(0x3d6)]&&(this[_0x21c20d(0x5c4)]===_0xac05ab[_0x21c20d(0x4cb)]&&(this[_0x21c20d(0x2db)](),this[_0x21c20d(0x34a)](!![])));}})),this[_0x1d4aec(0x47f)](this[_0x1d4aec(0x307)]['remove$'][_0x1d4aec(0x22b)](_0x43fad3=>{const _0x58f41a=_0x1d4aec;for(const _0x2ee2c1 of _0x43fad3)if(this[_0x58f41a(0x5c4)]===_0x2ee2c1[_0x58f41a(0x4cb)])this[_0x58f41a(0x635)]();}));}['_resetState'](){const _0x3de8eb=_0x48b1be;this['_activeImageId']=null,this[_0x3de8eb(0x5ae)]=null,this[_0x3de8eb(0x36d)]=null,this[_0x3de8eb(0x5b3)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core['Disposable']{constructor(_0x17ef7d,_0x5d4467,_0x2804b9,_0x41ca2b){const _0xcec9a9=_0x48b1be;super(),this[_0xcec9a9(0x36a)]=_0x17ef7d,this['_sheetInterceptorService']=_0x5d4467,this[_0xcec9a9(0x637)]=_0x2804b9,this[_0xcec9a9(0x5d9)]=_0x41ca2b,this[_0xcec9a9(0x198)]();}[_0x48b1be(0x198)](){const _0x4c6618=_0x48b1be;this[_0x4c6618(0x47f)](this[_0x4c6618(0x5dd)][_0x4c6618(0x461)]({'getMutations':_0xb279ea=>{const _0xe649cd=_0x4c6618;if(_0xb279ea['id']===_univerjs_sheets[_0xe649cd(0x236)]['id']){const _0x142a86=(0x0,_univerjs_sheets[_0xe649cd(0x207)])(this[_0xe649cd(0x36a)],_0xb279ea[_0xe649cd(0x37c)]);if(!_0x142a86)return{'redos':[],'undos':[]};const {unitId:_0x38b11,subUnitId:_0x8f3a7d}=_0x142a86,_0x3cab11=this['_sheetDrawingService']['getDrawingData'](_0x38b11,_0x8f3a7d),_0x370a10=Object['values'](_0x3cab11)['filter'](_0x23e94a=>_0x23e94a[_0xe649cd(0x2b0)]===_univerjs_core[_0xe649cd(0x45a)]['DRAWING_SHAPE']);if(_0x370a10[_0xe649cd(0x42d)]===0x0)return{'redos':[],'undos':[]};const _0x34c52d=[],_0x206311=[];for(let _0x4efc40=0x0;_0x4efc40<_0x370a10['length'];_0x4efc40++){const _0x443996=_0x370a10[_0x4efc40],_0x474d16=this['_sheetsShapeService'][_0xe649cd(0x36e)](_0x443996['unitId'],_0x443996[_0xe649cd(0x4dc)],_0x443996[_0xe649cd(0x4cb)]);if(!_0x474d16)continue;const {redo:_0xa69d5b,undo:_0x207fe3,objects:_0x5806e8}=this[_0xe649cd(0x637)]['getBatchRemoveOp']([_0x443996]);_0x34c52d[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x1c9)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'shapeId':_0x443996[_0xe649cd(0x4cb)]}}),_0x34c52d[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)][_0xe649cd(0x573)],'op':_0xa69d5b,'objects':_0x5806e8}}),_0x206311[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0xe649cd(0x453)],'op':_0x207fe3,'objects':_0x5806e8}}),_0x206311[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x254)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'shapeId':_0x443996[_0xe649cd(0x4cb)],'shapeType':_0x474d16[_0xe649cd(0x607)](),'shapeData':JSON[_0xe649cd(0x15c)](JSON[_0xe649cd(0x4a9)](_0x474d16[_0xe649cd(0x260)]()))}});}return{'redos':_0x34c52d,'undos':_0x206311};}else{if(_0xb279ea['id']===_univerjs_sheets['CopySheetCommand']['id']){const {unitId:_0x5e0090,subUnitId:_0x3f86ea,targetSubUnitId:_0x4f1b84}=_0xb279ea['params'];if(!_0x5e0090||!_0x3f86ea||!_0x4f1b84)return{'redos':[],'undos':[]};const _0x4c3a30=this[_0xe649cd(0x637)]['getDrawingData'](_0x5e0090,_0x3f86ea),_0x469f41=Object[_0xe649cd(0x209)](_0x4c3a30)[_0xe649cd(0x2bb)](_0x52832b=>_0x52832b[_0xe649cd(0x2b0)]===_univerjs_core[_0xe649cd(0x45a)][_0xe649cd(0x614)]);if(_0x469f41[_0xe649cd(0x42d)]===0x0)return{'redos':[],'undos':[]};const _0x274bc8=[],_0x317737=[];for(let _0x119e05=0x0;_0x119e05<_0x469f41[_0xe649cd(0x42d)];_0x119e05++){const _0x1e7b99=_0x469f41[_0x119e05],_0x4f60c6=this[_0xe649cd(0x5d9)][_0xe649cd(0x36e)](_0x1e7b99['unitId'],_0x1e7b99[_0xe649cd(0x4dc)],_0x1e7b99[_0xe649cd(0x4cb)]);if(!_0x4f60c6)continue;const _0x567beb=(0x0,_univerjs_core[_0xe649cd(0x12e)])(),_0x3fdb47={..._0x1e7b99,'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'drawingId':_0x567beb},{redo:_0x54a762,undo:_0x1efb76,objects:_0xda867}=this[_0xe649cd(0x637)][_0xe649cd(0x186)]([_0x3fdb47]);_0x274bc8['push']({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)]['INSERT'],'op':_0x54a762,'objects':_0xda867}}),_0x274bc8[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x254)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'shapeId':_0x567beb,'shapeType':_0x4f60c6[_0xe649cd(0x607)](),'shapeData':JSON[_0xe649cd(0x15c)](JSON[_0xe649cd(0x4a9)](_0x4f60c6[_0xe649cd(0x260)]()))}}),_0x317737[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x1c9)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'shapeId':_0x567beb}}),_0x317737[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)][_0xe649cd(0x573)],'op':_0x1efb76,'objects':_0xda867}});}return{'redos':_0x274bc8,'undos':_0x317737};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x48b1be(0x1d2)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x48b1be(0x3fa)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x1617ef,_0x57bd38,_0x235c9b,_0x3ae473,_0x171a18){const _0x170370=_0x48b1be;super(),this['_context']=_0x1617ef,this['_shapeTextEditingService']=_0x57bd38,this[_0x170370(0x307)]=_0x235c9b,this[_0x170370(0x5bf)]=_0x3ae473,this[_0x170370(0x5d9)]=_0x171a18,_defineProperty(this,_0x170370(0x488),null),this[_0x170370(0x48e)](),this[_0x170370(0x117)](),this['_initEditingParams']();}['_initEvents'](){const _0x56ff89=_0x48b1be,{scene:_0x18cac6}=this[_0x56ff89(0x248)];this[_0x56ff89(0x47f)](_0x18cac6[_0x56ff89(0x65b)][_0x56ff89(0x595)](_0x274dcd=>{const _0x4535b3=_0x56ff89,{offsetX:_0x1f5b5e,offsetY:_0x2a9976}=_0x274dcd,_0xfab238=_0x18cac6[_0x4535b3(0x65a)](_univerjs_engine_render[_0x4535b3(0x3aa)][_0x4535b3(0x4ed)]([_0x1f5b5e,_0x2a9976]));if(_0xfab238 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x4535b3(0x5fb)])(this['_sheetsShapeService']['getShapeType'](_0xfab238['unitId'],_0xfab238[_0x4535b3(0x4dc)],_0xfab238[_0x4535b3(0x1d8)])))return;this[_0x4535b3(0x4e7)]['setEditing']({'visible':!![],'unitId':_0xfab238[_0x4535b3(0x1ab)],'subUnitId':_0xfab238[_0x4535b3(0x4dc)],'shapeId':_0xfab238['shapeId'],'shapeKey':_0xfab238[_0x4535b3(0x2ff)]});}}));}[_0x48b1be(0x117)](){const _0x476d9e=_0x48b1be;this[_0x476d9e(0x47f)](this[_0x476d9e(0x307)][_0x476d9e(0x16e)][_0x476d9e(0x22b)](_0x243023=>{const _0x56a894=_0x476d9e;if(_0x243023[_0x56a894(0x42d)]===0x1){const _0x32a838=_0x243023[0x0],_0x44df56=this[_0x56a894(0x307)][_0x56a894(0x251)](_0x32a838);if((_0x44df56===null||_0x44df56===void 0x0?void 0x0:_0x44df56[_0x56a894(0x2b0)])===_univerjs_core['DrawingTypeEnum'][_0x56a894(0x614)]){const _0x3d950f=this[_0x56a894(0x4e7)][_0x56a894(0x36b)]();if((_0x3d950f===null||_0x3d950f===void 0x0?void 0x0:_0x3d950f[_0x56a894(0x1d8)])===_0x32a838[_0x56a894(0x4cb)]&&_0x3d950f[_0x56a894(0x16f)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x56a894(0x5d9)][_0x56a894(0x607)](_0x32a838[_0x56a894(0x1ab)],_0x32a838[_0x56a894(0x4dc)],_0x32a838[_0x56a894(0x4cb)])))this['_shapeTextEditingService']['setEditing'](null);}else this[_0x56a894(0x4e7)]['getEditing']()&&(this['_shapeTextEditingService'][_0x56a894(0x4e0)](!![]),requestAnimationFrame(()=>{const _0x182220=_0x56a894;this['_shapeTextEditingService'][_0x182220(0x431)](null);}));}else this[_0x56a894(0x4e7)][_0x56a894(0x36b)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0xf79ebe=_0x56a894;this[_0xf79ebe(0x4e7)]['setEditing'](null);}));})),this[_0x476d9e(0x47f)](this[_0x476d9e(0x307)][_0x476d9e(0x201)]['subscribe'](_0x1aa1c8=>{const _0x459ad2=_0x476d9e,_0x5373c9=this['_shapeTextEditingService'][_0x459ad2(0x36b)]();if(_0x5373c9&&_0x1aa1c8[_0x459ad2(0x274)](_0x3dfe07=>_0x3dfe07['drawingId']===_0x5373c9['shapeId']))this[_0x459ad2(0x4e7)][_0x459ad2(0x431)](null);}));}['_initEditingParams'](){const _0x3bc076=_0x48b1be;this[_0x3bc076(0x47f)](this[_0x3bc076(0x4e7)]['editingParams$'][_0x3bc076(0x22b)](_0x54a7ca=>{const _0x10b94c=_0x3bc076,{scene:_0x457b8b}=this[_0x10b94c(0x248)];if(this[_0x10b94c(0x488)]){const _0x3e7a9b=_0x457b8b[_0x10b94c(0x492)](this[_0x10b94c(0x488)]);if(_0x3e7a9b)_0x3e7a9b['setEditing'](![]);}if(_0x54a7ca){const _0x41c624=!!_0x54a7ca[_0x10b94c(0x16f)],_0x26dfa6=_0x457b8b[_0x10b94c(0x492)](_0x54a7ca[_0x10b94c(0x397)]);_0x26dfa6&&(_0x26dfa6[_0x10b94c(0x431)](_0x41c624),this[_0x10b94c(0x488)]=_0x54a7ca[_0x10b94c(0x397)]),this['_contextService'][_0x10b94c(0xfc)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x41c624);}else this[_0x10b94c(0x488)]=null,this[_0x10b94c(0x5bf)]['setContextValue'](_univerjs_core[_0x10b94c(0x26e)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x3,_univerjs_core['IContextService']),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService']))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x2aa)],'stroke':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x3c1)],'strokeWidth':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x415)]},'highlighted':{'fill':_0x48b1be(0x12b),'stroke':_0x48b1be(0x544),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x2b63c0,_0x681f07){const _0x45bf01=_0x48b1be;super(_0x2b63c0,_0x681f07),_defineProperty(this,_0x45bf01(0x552),''),_defineProperty(this,_0x45bf01(0x5a4),-0x1),_defineProperty(this,_0x45bf01(0x5ae),''),_defineProperty(this,_0x45bf01(0x36d),''),_defineProperty(this,_0x45bf01(0x567),![]);if(_0x681f07)this[_0x45bf01(0x3dc)](_0x681f07);}[_0x48b1be(0x601)](){const _0x2a75d1=_0x48b1be;return{'unitId':this[_0x2a75d1(0x5ae)],'subUnitId':this[_0x2a75d1(0x36d)],'shapeId':this[_0x2a75d1(0x552)],'cxnIndex':this[_0x2a75d1(0x5a4)]};}[_0x48b1be(0x3a4)](_0x309fc2){const _0x56beb4=_0x48b1be;this['_isHighlighted']!==_0x309fc2&&(this['_isHighlighted']=_0x309fc2,this[_0x56beb4(0x2d4)](!![]));}[_0x48b1be(0x525)](){const _0x4675de=_0x48b1be;return this[_0x4675de(0x567)];}[_0x48b1be(0x3dc)](_0x56b80b){const _0x27d4e5=_0x48b1be;var _0x5c22b2,_0x2e51b1;if(typeof _0x56b80b['targetShapeId']!=='undefined')this[_0x27d4e5(0x552)]=_0x56b80b['targetShapeId'];if(typeof _0x56b80b['cxnIndex']!==_0x27d4e5(0x37e))this['_cxnIndex']=_0x56b80b[_0x27d4e5(0x293)];if(typeof _0x56b80b['unitId']!=='undefined')this['_unitId']=_0x56b80b[_0x27d4e5(0x1ab)];if(typeof _0x56b80b[_0x27d4e5(0x4dc)]!==_0x27d4e5(0x37e))this['_subUnitId']=_0x56b80b[_0x27d4e5(0x4dc)];if(typeof _0x56b80b[_0x27d4e5(0x525)]!=='undefined')this[_0x27d4e5(0x567)]=_0x56b80b['isHighlighted'];this['transformByState']({'width':(_0x5c22b2=_0x56b80b[_0x27d4e5(0x3c7)])!==null&&_0x5c22b2!==void 0x0?_0x5c22b2:_univerjs_pro_engine_shape[_0x27d4e5(0x5ff)]['cxnPointRadius']*0x2,'height':(_0x2e51b1=_0x56b80b[_0x27d4e5(0x613)])!==null&&_0x2e51b1!==void 0x0?_0x2e51b1:_univerjs_pro_engine_shape[_0x27d4e5(0x5ff)]['cxnPointRadius']*0x2});}[_0x48b1be(0x1fc)](_0x480f37){const _0x4fbe4b=_0x48b1be,_0x381fb1=this[_0x4fbe4b(0x567)]?ConnectionSiteStyle[_0x4fbe4b(0x588)]:ConnectionSiteStyle[_0x4fbe4b(0x5d3)];_univerjs_engine_render[_0x4fbe4b(0x3a2)]['drawWith'](_0x480f37,{'radius':_univerjs_pro_engine_shape[_0x4fbe4b(0x5ff)][_0x4fbe4b(0x5e2)],'fill':_0x381fb1[_0x4fbe4b(0x664)],'stroke':_0x381fb1[_0x4fbe4b(0x4ce)],'strokeWidth':_0x381fb1[_0x4fbe4b(0x361)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x509486,_0x254181,_0x5aba7e,_0xb7252b){const _0x4afe81=_0x48b1be;super(),this[_0x4afe81(0x248)]=_0x509486,this[_0x4afe81(0x1cb)]=_0x254181,this['_drawingManagerService']=_0x5aba7e,this[_0x4afe81(0x5d9)]=_0xb7252b,_defineProperty(this,_0x4afe81(0x50f),[]),_defineProperty(this,_0x4afe81(0x53e),null),_defineProperty(this,_0x4afe81(0x145),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,'_unitId',''),_defineProperty(this,_0x4afe81(0x36d),''),_defineProperty(this,_0x4afe81(0x2c5),null);}[_0x48b1be(0x1f8)](_0x290a07,_0x583090,_0x15517e,_0x56eed3){const _0x39ed5f=_0x48b1be;this[_0x39ed5f(0x3f8)]=_0x290a07,this[_0x39ed5f(0x5ae)]=_0x583090,this[_0x39ed5f(0x36d)]=_0x15517e,this[_0x39ed5f(0x2c5)]=_0x56eed3;}[_0x48b1be(0x4aa)](_0x14027a){const _0x2c62ea=_0x48b1be;if(!this[_0x2c62ea(0x3f8)])return null;const _0x4b3041=this['_findShapeAtPoint'](_0x14027a);return _0x4b3041?(this['_activeTargetShapeId']!==_0x4b3041[_0x2c62ea(0x1d8)]&&(this[_0x2c62ea(0x1fb)](),this['_showConnectionSites'](_0x4b3041[_0x2c62ea(0x1d8)],_0x4b3041[_0x2c62ea(0x263)]),this[_0x2c62ea(0x53e)]=_0x4b3041[_0x2c62ea(0x1d8)]),this['_findNearestConnectionSite'](_0x14027a)):(this['_activeTargetShapeId']!==null&&(this[_0x2c62ea(0x1fb)](),this['_activeTargetShapeId']=null),null);}[_0x48b1be(0x1fd)](){const _0x56c403=_0x48b1be;this[_0x56c403(0x1fb)](),this[_0x56c403(0x3f8)]=null,this[_0x56c403(0x53e)]=null,this[_0x56c403(0x145)]=-0x1,this['_draggingConnectorId']=null;}[_0x48b1be(0x43b)](){const _0xa6743d=_0x48b1be;if(this[_0xa6743d(0x53e)]===null||this['_highlightedSiteIndex']<0x0)return null;return{'shapeId':this[_0xa6743d(0x53e)],'cxnIndex':this[_0xa6743d(0x145)]};}[_0x48b1be(0x189)](_0x4d7f79){const _0x591770=_0x48b1be,_0x183803=this[_0x591770(0x307)][_0x591770(0x47d)](this['_unitId'],this[_0x591770(0x36d)]);for(const _0x22db7c of Object['keys'](_0x183803)){if(_0x22db7c===this[_0x591770(0x2c5)])continue;if(_0x183803[_0x22db7c][_0x591770(0x2b0)]!==_univerjs_core[_0x591770(0x45a)][_0x591770(0x614)])continue;const _0x327bac=this[_0x591770(0x5d9)][_0x591770(0x36e)](this['_unitId'],this[_0x591770(0x36d)],_0x22db7c);if(!_0x327bac)continue;if((0x0,_univerjs_pro_engine_shape[_0x591770(0x5fb)])(_0x327bac[_0x591770(0x607)]()))continue;if(_0x327bac[_0x591770(0x42f)]()['length']===0x0)continue;if(!this[_0x591770(0x3f8)])continue;const _0xc50c6=(0x0,_univerjs_drawing[_0x591770(0x1e7)])({'unitId':this[_0x591770(0x5ae)],'subUnitId':this[_0x591770(0x36d)],'drawingId':_0x22db7c}),_0x3ff23f=this['_currentScene'][_0x591770(0x492)](_0xc50c6);if(!_0x3ff23f)continue;const {left:_0xcde9a3,top:_0x3d90b3,width:_0x46796d,height:_0x281d34}=_0x3ff23f['getRealBound'](),_0x1919b0=_0xcde9a3+_0x46796d/0x2,_0x25f067=_0x3d90b3+_0x281d34/0x2,_0x37228a=_0x3ff23f[_0x591770(0x649)][_0x591770(0x351)](),_0x2fbd73=new _univerjs_engine_render['Transform']([_0x37228a[0x0],_0x37228a[0x1],_0x37228a[0x2],_0x37228a[0x3],_0x1919b0,_0x25f067]),_0x5b1fbd=_0x3ff23f[_0x591770(0x412)](),_0x4a40f6=(_0x3ff23f['isInGroup']&&(_0x5b1fbd===null||_0x5b1fbd===void 0x0?void 0x0:_0x5b1fbd[_0x591770(0x5da)])===_univerjs_engine_render[_0x591770(0x464)]['GROUP']?_0x5b1fbd[_0x591770(0x46d)][_0x591770(0x290)](_0x2fbd73):_0x2fbd73)['invert']()['applyPoint'](_0x4d7f79),_0x5c0193=_0x46796d/0x2,_0x1747b7=_0x281d34/0x2,_0x55a5c5=SHAPE_BOUNDS_PADDING;if(_0x4a40f6['x']>=-_0x5c0193-_0x55a5c5&&_0x4a40f6['x']<=_0x5c0193+_0x55a5c5&&_0x4a40f6['y']>=-_0x1747b7-_0x55a5c5&&_0x4a40f6['y']<=_0x1747b7+_0x55a5c5)return{'shapeId':_0x22db7c,'shapeModel':_0x327bac};}return null;}[_0x48b1be(0x5f5)](_0x523a53,_0x36dede){const _0x3aeb7f=_0x48b1be;if(!this[_0x3aeb7f(0x3f8)])return;const _0x3594a4=(0x0,_univerjs_drawing[_0x3aeb7f(0x1e7)])({'unitId':this[_0x3aeb7f(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x523a53}),_0x55fba0=this[_0x3aeb7f(0x3f8)]['getObjectIncludeInGroup'](_0x3594a4);if(!_0x55fba0)return;const {left:_0x59eb5d,top:_0x8f0a2f,width:_0x137430,height:_0x22121d}=_0x55fba0[_0x3aeb7f(0x4c6)](),_0x33a687=_0x59eb5d+_0x137430/0x2,_0x183c3c=_0x8f0a2f+_0x22121d/0x2,_0x1137ed=_0x55fba0[_0x3aeb7f(0x649)]['getMatrix'](),_0x15cc92=new _univerjs_engine_render['Transform']([_0x1137ed[0x0],_0x1137ed[0x1],_0x1137ed[0x2],_0x1137ed[0x3],_0x33a687,_0x183c3c]),_0x1ac14c=_0x55fba0[_0x3aeb7f(0x412)](),_0x2c2e4b=_0x55fba0[_0x3aeb7f(0x32b)]&&(_0x1ac14c===null||_0x1ac14c===void 0x0?void 0x0:_0x1ac14c[_0x3aeb7f(0x5da)])===_univerjs_engine_render[_0x3aeb7f(0x464)][_0x3aeb7f(0x14c)]?_0x1ac14c[_0x3aeb7f(0x46d)][_0x3aeb7f(0x290)](_0x15cc92):_0x15cc92;_0x36dede['updateContext']({'width':_0x137430,'height':_0x22121d});const _0x4133f9=_0x36dede[_0x3aeb7f(0x42f)]();for(const _0x4f748f of _0x4133f9){const _0x48d2b5=_0x4f748f['x']-_0x137430/0x2,_0x5a0084=_0x4f748f['y']-_0x22121d/0x2,_0xe5cb4e=_0x2c2e4b[_0x3aeb7f(0x590)]({'x':_0x48d2b5,'y':_0x5a0084}),_0x5bbd6d=_0xe5cb4e['x'],_0x5b22eb=_0xe5cb4e['y'],_0x197c5e=new SheetBasicShapeConnectionSiteObject(_0x3aeb7f(0x52a)+_0x523a53+'-'+_0x4f748f[_0x3aeb7f(0x343)],{'left':_0x5bbd6d-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)],'top':_0x5b22eb-_univerjs_pro_engine_shape[_0x3aeb7f(0x5ff)][_0x3aeb7f(0x5e2)],'targetShapeId':_0x523a53,'cxnIndex':_0x4f748f[_0x3aeb7f(0x343)],'unitId':this[_0x3aeb7f(0x5ae)],'subUnitId':this[_0x3aeb7f(0x36d)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)]*0x2,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)]*0x2,'zIndex':_univerjs_engine_render[_0x3aeb7f(0x3d4)]+0x2,'evented':![]});this['_connectionSiteObjects'][_0x3aeb7f(0x5ed)](_0x197c5e),this['_currentScene'][_0x3aeb7f(0x261)](_0x197c5e,_univerjs_engine_render[_0x3aeb7f(0x3d4)]+0x2);}}[_0x48b1be(0x3b2)](_0xbaff6a){const _0x240c83=_0x48b1be;let _0x87fe30=null,_0x2df59b=Infinity,_0x57f53e=null;for(const _0x1ed95a of this[_0x240c83(0x50f)]){const _0x1a2eb7=_0x1ed95a['left']+_univerjs_pro_engine_shape[_0x240c83(0x5ff)][_0x240c83(0x5e2)],_0x59ea53=_0x1ed95a[_0x240c83(0x566)]+_univerjs_pro_engine_shape[_0x240c83(0x5ff)][_0x240c83(0x5e2)],_0x517e14=_0xbaff6a['x']-_0x1a2eb7,_0x5e6b85=_0xbaff6a['y']-_0x59ea53,_0x3ac8f4=Math[_0x240c83(0x23e)](_0x517e14*_0x517e14+_0x5e6b85*_0x5e6b85);_0x3ac8f4<_0x2df59b&&(_0x2df59b=_0x3ac8f4,_0x87fe30=_0x1ed95a,_0x57f53e={'x':_0x1a2eb7,'y':_0x59ea53});}const _0x533c6a=_0x2df59b<=CONNECTION_SITE_HIT_RADIUS&&_0x87fe30?_0x87fe30[_0x240c83(0x601)]()['cxnIndex']:-0x1;if(_0x533c6a!==this[_0x240c83(0x145)]){for(const _0x50dd27 of this[_0x240c83(0x50f)]){const _0x221a98=_0x50dd27[_0x240c83(0x601)]();_0x50dd27[_0x240c83(0x3a4)](_0x221a98[_0x240c83(0x293)]===_0x533c6a);}this['_highlightedSiteIndex']=_0x533c6a;}if(_0x2df59b<=CONNECTION_SITE_HIT_RADIUS&&_0x87fe30&&_0x57f53e){const _0x281d9e=_0x87fe30[_0x240c83(0x601)](),_0x39fe2c=this[_0x240c83(0x2ce)](_0x281d9e['shapeId'],_0x281d9e['cxnIndex']);return{'shapeId':_0x281d9e[_0x240c83(0x1d8)],'cxnIndex':_0x281d9e[_0x240c83(0x293)],'unitId':_0x281d9e[_0x240c83(0x1ab)],'subUnitId':_0x281d9e[_0x240c83(0x4dc)],'worldPoint':_0x57f53e,'angle':_0x39fe2c};}return null;}[_0x48b1be(0x2ce)](_0x461e33,_0x5e87c6){const _0x22bbd7=_0x48b1be,_0x25d0b0=this[_0x22bbd7(0x5d9)]['getShapeModel'](this['_unitId'],this[_0x22bbd7(0x36d)],_0x461e33);if(!_0x25d0b0)return 0x0;const _0x2808cd=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x22bbd7(0x5ae)],'subUnitId':this[_0x22bbd7(0x36d)],'drawingId':_0x461e33});if(!(_0x2808cd===null||_0x2808cd===void 0x0?void 0x0:_0x2808cd[_0x22bbd7(0x649)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x2808cd[_0x22bbd7(0x649)];_0x25d0b0[_0x22bbd7(0x3ce)]({'width':width,'height':height});const _0x3fb68a=_0x25d0b0['getConnectionSiteList']()[_0x22bbd7(0x190)](_0x6789e=>_0x6789e[_0x22bbd7(0x343)]===_0x5e87c6);if(!_0x3fb68a)return 0x0;let _0x372088=_0x3fb68a[_0x22bbd7(0x578)]/0xea60;if(flipX)_0x372088=0xb4-_0x372088;if(flipY)_0x372088=-_0x372088;return _0x372088=(_0x372088%0x168+0x168)%0x168,_0x372088;}[_0x48b1be(0x1fb)](){const _0x1a188a=_0x48b1be;for(const _0x5d1a6e of this[_0x1a188a(0x50f)])_0x5d1a6e['dispose']();this[_0x1a188a(0x50f)]=[],this[_0x1a188a(0x145)]=-0x1;}[_0x48b1be(0x570)](){const _0x42e147=_0x48b1be;this['_clearConnectionSites'](),super[_0x42e147(0x570)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing['IDrawingManagerService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core['Disposable']{constructor(_0x549999,_0x3399f3,_0x3dd94b,_0x17d93d,_0x538889){const _0x384f94=_0x48b1be;super(),this[_0x384f94(0x33f)]=_0x549999,this['_sheetClipboardService']=_0x3399f3,this['_sheetDrawingService']=_0x3dd94b,this[_0x384f94(0x35e)]=_0x17d93d,this[_0x384f94(0x421)]=_0x538889,_defineProperty(this,_0x384f94(0x358),void 0x0),this[_0x384f94(0x4c5)](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0x4d069d=_0x48b1be;return this['_sheetDrawingService'][_0x4d069d(0x669)]();}[_0x48b1be(0x24a)](){const _0x445597=_0x48b1be;this['_groupCopyPasteController'][_0x445597(0x24d)](({fromUnitId:_0x31b5a4,fromSubUnitId:_0x2cac1c,toUnitId:_0xc136a5,toSubUnitId:_0x1c539b,idMap:_0x4f0c57})=>{const _0x3c3c49=_0x445597,_0x74d529=[],_0x2c8292=[];for(const [_0x23d2a8,_0x5b1087]of _0x4f0c57['entries']()){const _0x1365b6=this[_0x3c3c49(0x35e)][_0x3c3c49(0x36e)](_0x31b5a4,_0x2cac1c,_0x23d2a8);if(!_0x1365b6)continue;const _0x30f245=_0x1365b6[_0x3c3c49(0x607)](),_0x1ed69b=JSON[_0x3c3c49(0x15c)](JSON[_0x3c3c49(0x4a9)](_0x1365b6[_0x3c3c49(0x260)]()));if(_0x1ed69b['relation']){var _0x591bcc,_0xdffaba;const _0x2b7108=(_0x591bcc=_0x1ed69b[_0x3c3c49(0x3e1)]['from'])===null||_0x591bcc===void 0x0?void 0x0:_0x591bcc[_0x3c3c49(0x1d8)],_0x1aee3c=(_0xdffaba=_0x1ed69b['relation']['to'])===null||_0xdffaba===void 0x0?void 0x0:_0xdffaba['shapeId'],_0x19e06e=_0x2b7108?_0x4f0c57[_0x3c3c49(0x3d2)](_0x2b7108):!![],_0x4b541d=_0x1aee3c?_0x4f0c57[_0x3c3c49(0x3d2)](_0x1aee3c):!![];if(_0x19e06e&&_0x2b7108&&_0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)])_0x1ed69b[_0x3c3c49(0x3e1)]['from']={..._0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)],'shapeId':_0x4f0c57['get'](_0x2b7108)};else _0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)]=void 0x0;if(_0x4b541d&&_0x1aee3c&&_0x1ed69b[_0x3c3c49(0x3e1)]['to'])_0x1ed69b[_0x3c3c49(0x3e1)]['to']={..._0x1ed69b['relation']['to'],'shapeId':_0x4f0c57[_0x3c3c49(0x4fd)](_0x1aee3c)};else _0x1ed69b['relation']['to']=void 0x0;}_0x74d529[_0x3c3c49(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0x3c3c49(0x254)]['id'],'params':{'unitId':_0xc136a5,'subUnitId':_0x1c539b,'shapeId':_0x5b1087,'shapeType':_0x30f245,'shapeData':_0x1ed69b}}),_0x2c8292['push']({'id':_univerjs_pro_sheets_shape[_0x3c3c49(0x1c9)]['id'],'params':{'unitId':_0xc136a5,'subUnitId':_0x1c539b,'shapeId':_0x5b1087}});}return{'redos':_0x74d529,'undos':_0x2c8292};});}['_initCopyPaste'](){const _0x26f9bd=_0x48b1be;this['disposeWithMe'](this['_sheetClipboardService'][_0x26f9bd(0x494)]({'id':_0x26f9bd(0x3a7),'onBeforeCopy':(_0x3677eb,_0x33b966,_0x502611,_0x2832d6)=>{const _0x525dd1=_0x26f9bd;this['_copyInfo']=null;const _0x459843=this[_0x525dd1(0x200)];if(_0x459843[_0x525dd1(0x42d)]){const _0x36318b=_0x459843['filter'](_0x207475=>_0x207475[_0x525dd1(0x2b0)]===_univerjs_core[_0x525dd1(0x45a)][_0x525dd1(0x614)]);if(_0x36318b[_0x525dd1(0x42d)]===0x0)return;this[_0x525dd1(0x358)]={'unitId':_0x3677eb,'subUnitId':_0x33b966,'copyType':_0x2832d6,'drawings':_0x36318b};}else this[_0x525dd1(0x224)](_0x3677eb,_0x33b966,_0x502611,_0x2832d6);},'onPasteCells':(_0x2e12dd,_0x2cab87,_0x28b837,_0x4841a5)=>{const _0xb63bb=_0x26f9bd;if(!this[_0xb63bb(0x358)])return{'redos':[],'undos':[]};const {pasteType:_0x5a4e18}=_0x4841a5;if(_0x5a4e18!==_univerjs_sheets_ui[_0xb63bb(0x66d)][_0xb63bb(0x104)])return{'redos':[],'undos':[]};return this[_0xb63bb(0x5f7)](_0x2cab87,this[_0xb63bb(0x358)]['copyType']===_univerjs_sheets_ui[_0xb63bb(0x300)][_0xb63bb(0x1a7)]);},'onPasteUnrecognized':_0x32e0c7=>{const _0x833709=_0x26f9bd;if(!this[_0x833709(0x358)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x32e0c7,this[_0x833709(0x358)]['copyType']===_univerjs_sheets_ui[_0x833709(0x300)][_0x833709(0x1a7)]);}}));}[_0x48b1be(0x224)](_0xd12413,_0x38c459,_0x1a64ba,_0x2bcb6c){const _0x60ac2e=_0x48b1be,_0x4440c7=this[_0x60ac2e(0x33f)][_0x60ac2e(0x192)](_0xd12413,_0x38c459);if(!_0x4440c7)return;const _0x4e37d0=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x4440c7,_0x1a64ba);if(!_0x4e37d0)return;const {startX:_0x2fee8c,endX:_0x346f01,startY:_0x59658f,endY:_0x2498c5}=_0x4e37d0,_0x5d8d7c=this[_0x60ac2e(0x637)][_0x60ac2e(0x47d)](_0xd12413,_0x38c459),_0x55c79e=this[_0x60ac2e(0x200)]['slice']();for(const [_0x169119,_0x2531c9]of Object[_0x60ac2e(0x52c)](_0x5d8d7c)){if(_0x2531c9[_0x60ac2e(0x2b0)]!==_univerjs_core[_0x60ac2e(0x45a)]['DRAWING_SHAPE'])continue;const {transform:_0x2e4bd5}=_0x2531c9;if(!_0x2e4bd5)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x2e4bd5;if(_0x2fee8c<=left&&_0x346f01>=left+width&&_0x59658f<=top&&_0x2498c5>=top+height)_0x55c79e[_0x60ac2e(0x5ed)](_0x2531c9);}if(_0x55c79e[_0x60ac2e(0x42d)]>0x0)this['_copyInfo']={'unitId':_0xd12413,'subUnitId':_0x38c459,'copyType':_0x2bcb6c,'copyRange':_0x1a64ba,'drawings':_0x55c79e};}['_generatePasteMutations'](_0x59f30f,_0x1a7a10){const _0x52be43=_0x48b1be,{unitId:_0x28ba6f,subUnitId:_0x171321,range:_0x21e474}=_0x59f30f,_0x59a4ec=this[_0x52be43(0x33f)][_0x52be43(0x192)](_0x28ba6f,_0x171321);if(!_0x59a4ec)return{'redos':[],'undos':[]};const _0x1002f8=(0x0,_univerjs_sheets[_0x52be43(0x460)])(_0x21e474),{unitId:_0x5a13b7,subUnitId:_0xd3a2e2,copyRange:_0x415b63,drawings:_0xda1d90}=this[_0x52be43(0x358)],_0x3acb54=this[_0x52be43(0x33f)]['getSkeleton'](_0x5a13b7,_0xd3a2e2);if(!_0x3acb54)return{'redos':[],'undos':[]};let _0x2fe103;if(!_0x415b63){let _0x19440e=Infinity,_0x5739af=Infinity;for(const _0xf82eb2 of _0xda1d90){var _0x5bfa76;const {left:left=0x0,top:top=0x0}=(_0x5bfa76=_0xf82eb2[_0x52be43(0x649)])!==null&&_0x5bfa76!==void 0x0?_0x5bfa76:{};if(left<_0x19440e)_0x19440e=left;if(top<_0x5739af)_0x5739af=top;}if(_0x19440e!==Infinity&&_0x5739af!==Infinity)_0x2fe103={'left':_0x19440e,'top':_0x5739af};}const _0xb1027a=new Map();if(!_0x1a7a10){for(const _0x5bd4f7 of _0xda1d90)_0xb1027a[_0x52be43(0x5e5)](_0x5bd4f7[_0x52be43(0x4cb)],(0x0,_univerjs_core['generateRandomId'])());}const _0x3d58eb=[],_0x3a9202=[];for(const _0x4a6545 of _0xda1d90){const {drawingId:_0x416cf6,transform:_0x542724,sheetTransform:_0x5a604f}=_0x4a6545;if(!_0x542724||!_0x5a604f)continue;const _0x291eed=this[_0x52be43(0x2e6)]({'transform':_0x542724,'sheetTransform':_0x5a604f},{'skeleton':_0x3acb54,'range':_0x415b63},{'skeleton':_0x59a4ec,'range':_0x1002f8},_0x2fe103);if(_0x1a7a10){const {redos:_0x6e0346,undos:_0x489f72}=this[_0x52be43(0x549)]({'fromUnitId':_0x5a13b7,'fromSubUnitId':_0xd3a2e2,'toUnitId':_0x28ba6f,'toSubUnitId':_0x171321,'drawing':_0x4a6545,'newTransforms':_0x291eed});_0x3d58eb[_0x52be43(0x5ed)](..._0x6e0346),_0x3a9202['push'](..._0x489f72);continue;}const {redos:_0x282f45,undos:_0x41c6af}=this[_0x52be43(0x1ec)]({'toUnitId':_0x28ba6f,'toSubUnitId':_0x171321,'drawing':_0x4a6545,'newTransforms':_0x291eed,'newDrawingId':_0xb1027a['get'](_0x416cf6),'idMap':_0xb1027a});_0x3d58eb[_0x52be43(0x5ed)](..._0x282f45),_0x3a9202[_0x52be43(0x5ed)](..._0x41c6af);}return{'redos':_0x3d58eb,'undos':_0x3a9202};}[_0x48b1be(0x549)](_0x1112bc){const _0x510371=_0x48b1be,{fromUnitId:_0x563bc4,fromSubUnitId:_0x5847a7,toUnitId:_0x4afca5,toSubUnitId:_0x19ba74,drawing:_0x360766,newTransforms:_0x2ce9f4}=_0x1112bc,_0x1ac405={..._0x360766,'unitId':_0x4afca5,'subUnitId':_0x19ba74,'transform':_0x2ce9f4[_0x510371(0x649)],'sheetTransform':_0x2ce9f4['sheetTransform']};if(_0x4afca5===_0x563bc4&&_0x19ba74===_0x5847a7){const {redo:_0x40e730,undo:_0x2709cd,objects:_0x1ecf17}=this[_0x510371(0x637)][_0x510371(0x406)]([_0x1ac405]);return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE'],'op':_0x40e730,'objects':_0x1ecf17}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x5c7)],'op':_0x2709cd,'objects':_0x1ecf17}}]};}else{const _0x5649be=this[_0x510371(0x637)]['getBatchRemoveOp']([_0x360766]),_0x292d9a=this[_0x510371(0x637)][_0x510371(0x186)]([_0x1ac405]),_0x4e2532=this[_0x510371(0x35e)][_0x510371(0x36e)](_0x360766[_0x510371(0x1ab)],_0x360766[_0x510371(0x4dc)],_0x360766['drawingId']);if(!_0x4e2532)return{'redos':[],'undos':[]};const _0x6115e0=_0x4e2532[_0x510371(0x607)](),_0x3c4d34=JSON[_0x510371(0x15c)](JSON[_0x510371(0x4a9)](_0x4e2532[_0x510371(0x260)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x510371(0x573)],'op':_0x5649be[_0x510371(0x2b1)],'objects':_0x5649be[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x1c9)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'shapeId':_0x360766[_0x510371(0x4cb)]}},{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x453)],'op':_0x292d9a['redo'],'objects':_0x292d9a[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x254)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'shapeId':_0x360766[_0x510371(0x4cb)],'shapeType':_0x6115e0,'shapeData':_0x3c4d34}}],'undos':[{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x5649be[_0x510371(0x26d)],'objects':_0x5649be['objects']}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x254)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'shapeId':_0x360766[_0x510371(0x4cb)],'shapeType':_0x6115e0,'shapeData':_0x3c4d34}},{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x573)],'op':_0x292d9a[_0x510371(0x26d)],'objects':_0x292d9a[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'shapeId':_0x360766['drawingId']}}]};}}[_0x48b1be(0x1ec)](_0x30e207){const _0x4f54de=_0x48b1be,{toUnitId:_0x8261c9,toSubUnitId:_0x307e06,drawing:_0x3add34,newTransforms:_0x38b5ac,newDrawingId:_0x2b39a7,idMap:_0x428ac3}=_0x30e207,_0x534563={..._0x3add34,'unitId':_0x8261c9,'subUnitId':_0x307e06,'drawingId':_0x2b39a7,'transform':_0x38b5ac['transform'],'sheetTransform':_0x38b5ac[_0x4f54de(0x38c)]},{redo:_0x30e374,undo:_0x361aa0,objects:_0x5cf9b7}=this[_0x4f54de(0x637)][_0x4f54de(0x186)]([_0x534563]),_0x5565ba=this[_0x4f54de(0x35e)]['getShapeModel'](_0x3add34[_0x4f54de(0x1ab)],_0x3add34[_0x4f54de(0x4dc)],_0x3add34['drawingId']);if(!_0x5565ba)return{'redos':[],'undos':[]};const _0x45d2fc=_0x5565ba['getShapeType'](),_0x470833=JSON[_0x4f54de(0x15c)](JSON[_0x4f54de(0x4a9)](_0x5565ba[_0x4f54de(0x260)]()));if(_0x470833[_0x4f54de(0x3e1)]){var _0x4246ec,_0x5a5cb3;const _0x41fd11=(_0x4246ec=_0x470833['relation'][_0x4f54de(0x54e)])===null||_0x4246ec===void 0x0?void 0x0:_0x4246ec['shapeId'],_0x148d3e=(_0x5a5cb3=_0x470833['relation']['to'])===null||_0x5a5cb3===void 0x0?void 0x0:_0x5a5cb3[_0x4f54de(0x1d8)],_0x11f5f9=_0x41fd11?_0x428ac3['has'](_0x41fd11):!![],_0x45e546=_0x148d3e?_0x428ac3['has'](_0x148d3e):!![];if(_0x11f5f9&&_0x41fd11&&_0x470833['relation'][_0x4f54de(0x54e)])_0x470833['relation']['from']={..._0x470833[_0x4f54de(0x3e1)][_0x4f54de(0x54e)],'shapeId':_0x428ac3[_0x4f54de(0x4fd)](_0x41fd11)};else _0x470833[_0x4f54de(0x3e1)][_0x4f54de(0x54e)]=void 0x0;if(_0x45e546&&_0x148d3e&&_0x470833[_0x4f54de(0x3e1)]['to'])_0x470833['relation']['to']={..._0x470833['relation']['to'],'shapeId':_0x428ac3[_0x4f54de(0x4fd)](_0x148d3e)};else _0x470833[_0x4f54de(0x3e1)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing[_0x4f54de(0x62d)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x30e374,'objects':_0x5cf9b7}},{'id':_univerjs_pro_sheets_shape[_0x4f54de(0x254)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'shapeId':_0x2b39a7,'shapeType':_0x45d2fc,'shapeData':_0x470833}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'type':_univerjs_sheets_drawing[_0x4f54de(0x603)][_0x4f54de(0x573)],'op':_0x361aa0,'objects':_0x5cf9b7}},{'id':_univerjs_pro_sheets_shape[_0x4f54de(0x1c9)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'shapeId':_0x2b39a7}}]};}[_0x48b1be(0x2e6)](_0x3a509b,_0x310adc,_0x1b4196,_0x55268b){const _0x31052a=_0x48b1be;var _0x26cd28;const {range:_0x118c88,skeleton:_0x5353c6}=_0x310adc,{range:_0x3b8a2c,skeleton:_0x1d4a2a}=_0x1b4196,{transform:_0x5c023d,sheetTransform:_0x3ace82}=_0x3a509b,_0x1e4322={..._0x5c023d};if(_0x118c88){const _0x4a66fa=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x5353c6,_0x118c88),_0x270568=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x1d4a2a,_0x3b8a2c);if(_0x4a66fa&&_0x270568){var _0x406551,_0x54373b;const _0x58aa74=_0x270568[_0x31052a(0x476)]-_0x4a66fa[_0x31052a(0x476)],_0x4c05eb=_0x270568[_0x31052a(0x661)]-_0x4a66fa['startY'];_0x1e4322[_0x31052a(0x450)]=((_0x406551=_0x1e4322[_0x31052a(0x450)])!==null&&_0x406551!==void 0x0?_0x406551:0x0)+_0x58aa74,_0x1e4322[_0x31052a(0x566)]=((_0x54373b=_0x1e4322[_0x31052a(0x566)])!==null&&_0x54373b!==void 0x0?_0x54373b:0x0)+_0x4c05eb;}}else{const _0x6502b3=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x1d4a2a,_0x3b8a2c);if(_0x55268b&&_0x6502b3){var _0x49c9e7,_0x4c49b9;const _0x4b148f=((_0x49c9e7=_0x1e4322[_0x31052a(0x450)])!==null&&_0x49c9e7!==void 0x0?_0x49c9e7:0x0)-_0x55268b['left'],_0x43b5a8=((_0x4c49b9=_0x1e4322['top'])!==null&&_0x4c49b9!==void 0x0?_0x4c49b9:0x0)-_0x55268b[_0x31052a(0x566)];_0x1e4322[_0x31052a(0x450)]=_0x6502b3[_0x31052a(0x476)]+_0x4b148f,_0x1e4322[_0x31052a(0x566)]=_0x6502b3[_0x31052a(0x661)]+_0x43b5a8;}else _0x1e4322[_0x31052a(0x450)]=_0x6502b3===null||_0x6502b3===void 0x0?void 0x0:_0x6502b3[_0x31052a(0x476)],_0x1e4322[_0x31052a(0x566)]=_0x6502b3===null||_0x6502b3===void 0x0?void 0x0:_0x6502b3[_0x31052a(0x661)];}return{'transform':_0x1e4322,'sheetTransform':(_0x26cd28=(0x0,_univerjs_sheets_drawing[_0x31052a(0x468)])(_0x1e4322,_0x1d4a2a))!==null&&_0x26cd28!==void 0x0?_0x26cd28:_0x3ace82};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets[_0x48b1be(0x2c9)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_ui[_0x48b1be(0x18e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x48b1be(0x528)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_drawing_ui[_0x48b1be(0x52f)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x8f6ce7,_0x16a21e){const _0x26a48a=_0x48b1be;super(_0x8f6ce7,_0x16a21e),_defineProperty(this,'_shapeId',null),_defineProperty(this,_0x26a48a(0x41f),null),_defineProperty(this,_0x26a48a(0x5ae),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x16a21e)this['setShapeProps'](_0x16a21e);}[_0x48b1be(0x647)](){const _0x5355a7=_0x48b1be;return{'unitId':this[_0x5355a7(0x5ae)],'subUnitId':this[_0x5355a7(0x36d)],'drawingId':this[_0x5355a7(0x338)]};}['setShapeProps'](_0x29587f){const _0x7cd8ab=_0x48b1be;if(typeof _0x29587f[_0x7cd8ab(0x1d8)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x338)]=_0x29587f[_0x7cd8ab(0x1d8)];if(typeof _0x29587f[_0x7cd8ab(0x1ab)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x5ae)]=_0x29587f['unitId'];if(typeof _0x29587f['subUnitId']!==_0x7cd8ab(0x37e))this['_subUnitId']=_0x29587f[_0x7cd8ab(0x4dc)];if(typeof _0x29587f[_0x7cd8ab(0x4ae)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x1d0)]=_0x29587f['isStartConnectorPoint'];this[_0x7cd8ab(0x2b4)]({'width':_0x29587f['width'],'height':_0x29587f[_0x7cd8ab(0x613)]});}['_draw'](_0x3afb21){const _0x5085e6=_0x48b1be;_univerjs_engine_render['Circle'][_0x5085e6(0x1f1)](_0x3afb21,{'radius':_univerjs_pro_engine_shape[_0x5085e6(0x5ff)]['cxnPointRadius'],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointFill'],'stroke':_univerjs_pro_engine_shape[_0x5085e6(0x5ff)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5085e6(0x415)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core['Disposable']{constructor(_0x5e71aa,_0x34884c,_0x5a84d9,_0x11e05c,_0x5002ae,_0x308f6d,_0x58e7ce,_0x567633){const _0x19ddad=_0x48b1be;super(),this['_context']=_0x5e71aa,this['_commandService']=_0x34884c,this[_0x19ddad(0x1cb)]=_0x5a84d9,this['_drawingManagerService']=_0x11e05c,this[_0x19ddad(0x36a)]=_0x5002ae,this[_0x19ddad(0x5d9)]=_0x308f6d,this[_0x19ddad(0x58c)]=_0x58e7ce,this[_0x19ddad(0x146)]=_0x567633,_defineProperty(this,_0x19ddad(0x55c),void 0x0),_defineProperty(this,_0x19ddad(0x5ae),void 0x0),_defineProperty(this,_0x19ddad(0x36d),void 0x0),_defineProperty(this,_0x19ddad(0x21a),[]),_defineProperty(this,_0x19ddad(0x1e1),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x19ddad(0x520),void 0x0),_defineProperty(this,'_isConnecting',![]),_defineProperty(this,_0x19ddad(0x143),![]),_defineProperty(this,'_hasReset',![]),_defineProperty(this,_0x19ddad(0x66b),void 0x0),_defineProperty(this,_0x19ddad(0x519),void 0x0),_defineProperty(this,_0x19ddad(0x3df),null),this[_0x19ddad(0x3da)]();}[_0x48b1be(0x3da)](){const _0x6747c2=_0x48b1be;this[_0x6747c2(0x582)](),this['_registerDrawingMoveHandler']();}[_0x48b1be(0x29e)](){const _0x258a48=_0x48b1be;if(!this[_0x258a48(0x5ae)]||!this[_0x258a48(0x36d)]||!this[_0x258a48(0x55c)])return;const _0x44963b={'unitId':this[_0x258a48(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0xd42e2}=this[_0x258a48(0x307)][_0x258a48(0x251)](_0x44963b);if(!_0xd42e2)return;return{'left':_0xd42e2[_0x258a48(0x450)]||0x0,'top':_0xd42e2['top']||0x0,'width':_0xd42e2[_0x258a48(0x3c7)]||0x0,'height':_0xd42e2[_0x258a48(0x613)]||0x0,'flipX':_0xd42e2['flipX']||![],'flipY':_0xd42e2[_0x258a48(0x285)]||![],'angle':_0xd42e2[_0x258a48(0x2ed)]};}['_addShapeConnectorHandlerObjects'](){const _0x5bd5e4=_0x48b1be;if(this['_unitId']===void 0x0||this[_0x5bd5e4(0x36d)]===void 0x0||this[_0x5bd5e4(0x55c)]===void 0x0)return;const _0x2e2cb2=this[_0x5bd5e4(0x1cb)]['getRenderById'](this['_unitId']);if(!_0x2e2cb2)return;if(!_0x2e2cb2[_0x5bd5e4(0x26a)](_univerjs_sheets_ui[_0x5bd5e4(0x2b2)])['getCurrentSkeleton']())return;const {scene:_0x55f657}=_0x2e2cb2,_0x77b1b0=this[_0x5bd5e4(0x29e)]();if(!_0x77b1b0)return;const _0x72db91=this[_0x5bd5e4(0x5d9)][_0x5bd5e4(0x36e)](this[_0x5bd5e4(0x5ae)],this['_subUnitId'],this['_activeShapeId']);if(!_0x72db91)return;if(!(0x0,_univerjs_pro_engine_shape[_0x5bd5e4(0x5fb)])(_0x72db91[_0x5bd5e4(0x607)]()))return;const _0x5ee4ba=_0x72db91[_0x5bd5e4(0x129)]();if(_0x5ee4ba[_0x5bd5e4(0x42d)]<0x2)return;const _0x3b95b2=new _univerjs_pro_engine_shape[(_0x5bd5e4(0x240))](_0x77b1b0),_0x2f2413=_0x5ee4ba[0x0],_0x2c6f46=_0x5ee4ba[_0x5ee4ba['length']-0x1],_0x41b14e=_0x3b95b2[_0x5bd5e4(0x2f3)](_0x2f2413),_0x179543=_0x3b95b2[_0x5bd5e4(0x2f3)](_0x2c6f46);this[_0x5bd5e4(0x447)](_0x55f657,{..._0x41b14e},!![]),this[_0x5bd5e4(0x447)](_0x55f657,{..._0x179543},![]);}[_0x48b1be(0x447)](_0x198fcf,_0x39500e,_0x3a2216){const _0x2a2706=_0x48b1be;if(this[_0x2a2706(0x55c)]===void 0x0||this[_0x2a2706(0x5ae)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0x1fe473=_0x2a2706(0x31f)+this['_unitId']+'-'+this[_0x2a2706(0x36d)]+'-'+this[_0x2a2706(0x55c)]+'-'+(_0x3a2216?_0x2a2706(0x408):'end'),_0x3f5aa7=_0x198fcf['getObjectIncludeInGroup'](_0x1fe473);if(_0x3f5aa7){_0x3f5aa7[_0x2a2706(0x2b4)]({'left':_0x39500e['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2a2706(0x5e2)],'top':_0x39500e['y']-_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)]});return;}const _0x1912c5=new SheetShapeConnectorHandlerObject(_0x1fe473,{'left':_0x39500e['x']-_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)],'top':_0x39500e['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2a2706(0x5e2)],'shapeId':this[_0x2a2706(0x55c)],'unitId':this[_0x2a2706(0x5ae)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x3a2216,'width':_univerjs_pro_engine_shape[_0x2a2706(0x5ff)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)]*0x2,'zIndex':_univerjs_engine_render[_0x2a2706(0x3d4)]+0x1,'evented':!![]});this[_0x2a2706(0x21a)]['push'](_0x1912c5),this[_0x2a2706(0x596)](_0x1912c5,_0x198fcf,_0x3a2216),_0x198fcf[_0x2a2706(0x261)](_0x1912c5,_univerjs_engine_render[_0x2a2706(0x3d4)]+0x1);}[_0x48b1be(0x2d8)](_0x47897e,_0xd4fc7c){const _0x40c17e=_0x48b1be;var _0x1c2936;const _0x298daf={'x':0x0,'y':0x0};if(!_0x47897e||!_0xd4fc7c)return _0x298daf;const _0x38848b=this[_0x40c17e(0x1cb)]['getRenderById'](_0x47897e);if(!_0x38848b)return _0x298daf;if(!_0x38848b['with'](_univerjs_sheets_ui[_0x40c17e(0x2b2)])[_0x40c17e(0x192)](_0xd4fc7c))return _0x298daf;const _0x212388=_0x38848b[_0x40c17e(0x26a)](_univerjs_sheets_ui[_0x40c17e(0x411)]),_0x1e0608=_0x212388===null||_0x212388===void 0x0?void 0x0:_0x212388[_0x40c17e(0x1e2)]();if(!_0x1e0608)return _0x298daf;const _0x85e148=(_0x1c2936=this['_univerInstanceService'][_0x40c17e(0x10f)](_0x47897e))===null||_0x1c2936===void 0x0?void 0x0:_0x1c2936['getSheetBySheetId'](_0xd4fc7c);if(!_0x85e148)return _0x298daf;const _0x1e363a=(0x0,_univerjs_sheets_ui[_0x40c17e(0x3e6)])(_0x1e0608[_0x40c17e(0x34f)],_0x1e0608['sheetViewStartColumn'],_0x38848b[_0x40c17e(0x1cf)],_0x85e148);if(!_0x1e363a)return _0x298daf;return{'x':_0x1e363a['viewportScrollX'],'y':_0x1e363a['viewportScrollY']};}[_0x48b1be(0x5d5)](_0x54b181,_0x28a9e7){const _0xcf1c60=_0x48b1be;var _0x59f8d0,_0x57fbd2;const _0x5c4a3f=(_0x59f8d0=this['_univerInstanceService'][_0xcf1c60(0x10f)](_0x54b181))===null||_0x59f8d0===void 0x0?void 0x0:_0x59f8d0[_0xcf1c60(0x37a)](_0x28a9e7);return(_0x57fbd2=_0x5c4a3f===null||_0x5c4a3f===void 0x0?void 0x0:_0x5c4a3f[_0xcf1c60(0x25b)]())!==null&&_0x57fbd2!==void 0x0?_0x57fbd2:0x1;}[_0x48b1be(0x27c)](_0x2cbf09,_0x2e63d3,_0x3a0f23,_0xe0a248,_0x301bbe){const _0x1ef770=_0x48b1be;this[_0x1ef770(0x66b)][_0x1ef770(0x4e2)](),this[_0x1ef770(0x519)]['unsubscribe'](),this[_0x1ef770(0x58c)][_0x1ef770(0x15e)]();const _0x516614=this[_0x1ef770(0x3df)];this[_0x1ef770(0x146)][_0x1ef770(0x1fd)]();const _0x26afd2=this[_0x1ef770(0x2d8)](this[_0x1ef770(0x5ae)],this[_0x1ef770(0x36d)]),_0x1b522c=this[_0x1ef770(0x5d5)](this['_unitId'],this[_0x1ef770(0x36d)]),_0x2fb46a={'x':_0x3a0f23[_0x1ef770(0x61c)]/_0x1b522c+_0x26afd2['x'],'y':_0x3a0f23['offsetY']/_0x1b522c+_0x26afd2['y']},_0x46c625=_0x516614?_0x516614[_0x1ef770(0x3bf)]:_0x2fb46a,_0x4484c9=_0xe0a248?this[_0x1ef770(0x520)]['getEndConnectInfo']():this[_0x1ef770(0x520)]['getStartConnectInfo'](),_0x1d060d=this['_activeShapeModel'][_0x1ef770(0x607)]();if(!_0x4484c9)this['_handleFreeEndpointPointerUp'](_0x2e63d3,_0x46c625,_0xe0a248,_0x516614,_0x301bbe,_0x1d060d);else this[_0x1ef770(0x54d)](_0x4484c9,_0x46c625,_0xe0a248,_0x516614,_0x301bbe);this['_isConnecting']=![],this[_0x1ef770(0x52e)]=![],this['_currentConnectionTarget']=null,_0x2cbf09[_0x1ef770(0x386)]();}['_handleFreeEndpointPointerUp'](_0xccfaeb,_0xa3cf4b,_0x445578,_0x3e4afb,_0x55e215,_0x1eff8d){const _0x2c38f4=_0x48b1be,_0x15113e=_0x1eff8d===_univerjs_pro_engine_shape['ShapeTypeEnum']['Line']||_0x1eff8d===_univerjs_pro_engine_shape[_0x2c38f4(0x515)][_0x2c38f4(0x1ee)],_0x3a07bd=_0x445578?_0xa3cf4b:_0xccfaeb,_0x257265=_0x445578?_0xccfaeb:_0xa3cf4b,_0x255121=this[_0x2c38f4(0x520)]['getConnectorLinePoints'](),_0x5603b2=(0x0,_univerjs_pro_engine_shape[_0x2c38f4(0x40a)])(this[_0x2c38f4(0x520)][_0x2c38f4(0x607)]()),_0x6d3c1e=_univerjs_pro_engine_shape['ConnectorCoordinateTransform']['getBentTypeFromPoints'](_0x255121,_0x5603b2),_0xe97b41=_0x15113e?_univerjs_pro_engine_shape[_0x2c38f4(0x240)][_0x2c38f4(0x1b9)](_0x3a07bd,_0x257265):_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x2c38f4(0x651)](_0xccfaeb,_0xa3cf4b,_0x445578,_0x6d3c1e);if(_0x3e4afb)this['_executeConnectionCommand'](_0xe97b41,_0x3e4afb,_0x445578,_0x55e215);else this[_0x2c38f4(0x57c)](_0xe97b41,_0x55e215);}[_0x48b1be(0x54d)](_0x4fe404,_0x3b47a3,_0x12d81e,_0x53b5e0,_0x82c4da){const _0x359fd8=_0x48b1be,_0x1a8195=this[_0x359fd8(0x3ff)](_0x4fe404);if(!_0x1a8195)return;const _0x1c6be6=_0x53b5e0?_0x53b5e0[_0x359fd8(0x2ed)]:this['_calculateFreeEndpointAngle'](_0x1a8195[_0x359fd8(0x2c2)],_0x3b47a3);let _0x58829c;if(_0x53b5e0){const _0x117d7a=this[_0x359fd8(0x307)]['getDrawingByParam']({'unitId':_0x53b5e0[_0x359fd8(0x1ab)],'subUnitId':_0x53b5e0[_0x359fd8(0x4dc)],'drawingId':_0x53b5e0['shapeId']});if(_0x117d7a===null||_0x117d7a===void 0x0?void 0x0:_0x117d7a[_0x359fd8(0x649)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x1960ef}=_0x117d7a[_0x359fd8(0x649)];_0x58829c=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x1960ef||0x0);}else _0x58829c={'left':_0x3b47a3['x'],'top':_0x3b47a3['y'],'width':0x0,'height':0x0};}else _0x58829c={'left':_0x3b47a3['x'],'top':_0x3b47a3['y'],'width':0x0,'height':0x0};const _0x36a7cb={'point':_0x3b47a3,'angle':_0x1c6be6,'bounds':_0x58829c},_0x26ddf5=_0x12d81e?_0x36a7cb:_0x1a8195,_0x1b0946=_0x12d81e?_0x1a8195:_0x36a7cb,_0x4a6bc1=this['_activeShapeModel'][_0x359fd8(0x607)](),_0x44edf7=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x3f3)])(_0x26ddf5,_0x1b0946,_0x4a6bc1);this[_0x359fd8(0x520)][_0x359fd8(0x2f9)]();const _0x71b08=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x275)])(_0x44edf7,_0x4a6bc1);if(_0x53b5e0)this[_0x359fd8(0x5a8)](_0x71b08,_0x53b5e0,_0x4fe404,_0x12d81e,_0x82c4da);else this[_0x359fd8(0x42a)](_0x71b08,_0x4fe404,_0x12d81e,_0x82c4da);}[_0x48b1be(0x3e7)](_0x2fba17,_0x5b779c,_0x58a634,_0x4053fb){const _0x835d80=_0x48b1be,_0x4a248b=this[_0x835d80(0x520)][_0x835d80(0x260)]()['relation'],_0xe4ca5={..._0x4a248b},_0x4faa0e={'shapeId':_0x5b779c['shapeId'],'cxnIndex':_0x5b779c['cxnIndex']};if(_0x58a634)_0xe4ca5[_0x835d80(0x54e)]=_0x4faa0e;else _0xe4ca5['to']=_0x4faa0e;const _0x488c01=this[_0x835d80(0x520)][_0x835d80(0x607)](),_0x1ca06d=(0x0,_univerjs_pro_engine_shape[_0x835d80(0x275)])(_0x2fba17['worldPoints'],_0x488c01),_0x22d239={'unitId':this[_0x835d80(0x5ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x835d80(0x55c)],'width':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x3c7)],'height':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x613)],'left':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x450)],'top':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x566)],'flipX':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x5b1)]||![],'flipY':_0x2fba17['worldRect'][_0x835d80(0x285)]||![],'newAdjustValues':_0x1ca06d[_0x835d80(0x66c)],'oldAdjustValues':_0x4053fb,'oldRelation':_0x4a248b,'newRelation':_0xe4ca5,'newLineType':_0x1ca06d['lineType'],'oldLineType':_0x488c01};this[_0x835d80(0x1c8)][_0x835d80(0x636)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x22d239);}['_executeResizeCommand'](_0x329670,_0x4971e3){const _0x62c7a2=_0x48b1be,_0x525dfb=this[_0x62c7a2(0x520)][_0x62c7a2(0x607)](),_0x5405ee=(0x0,_univerjs_pro_engine_shape[_0x62c7a2(0x275)])(_0x329670['worldPoints'],_0x525dfb),_0x2f3395={'unitId':this[_0x62c7a2(0x5ae)],'subUnitId':this[_0x62c7a2(0x36d)],'shapeId':this[_0x62c7a2(0x55c)],'width':_0x329670['worldRect'][_0x62c7a2(0x3c7)],'height':_0x329670[_0x62c7a2(0x1be)]['height'],'left':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x450)],'top':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x566)],'flipX':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x5b1)]||![],'flipY':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x285)]||![],'angle':_0x329670['worldRect'][_0x62c7a2(0x2ed)]||0x0,'newAdjustValues':_0x5405ee[_0x62c7a2(0x66c)],'oldAdjustValues':_0x4971e3,'newLineType':_0x5405ee[_0x62c7a2(0x45e)],'oldLineType':_0x525dfb};this[_0x62c7a2(0x1c8)][_0x62c7a2(0x636)](_univerjs_pro_sheets_shape[_0x62c7a2(0x2af)]['id'],_0x2f3395);}[_0x48b1be(0x5a8)](_0x54b5c6,_0x10ca3c,_0x133b96,_0x2735d3,_0x4902fb){const _0xf900c6=_0x48b1be,_0x52501c=this['_activeShapeModel'][_0xf900c6(0x260)]()['relation'],_0x415cbf={..._0x52501c},_0x5559d7={'shapeId':_0x10ca3c['shapeId'],'cxnIndex':_0x10ca3c[_0xf900c6(0x293)]};_0x2735d3?(_0x415cbf['from']=_0x5559d7,_0x415cbf['to']=_0x133b96):(_0x415cbf['from']=_0x133b96,_0x415cbf['to']=_0x5559d7);const _0x151954={'unitId':this[_0xf900c6(0x5ae)],'subUnitId':this[_0xf900c6(0x36d)],'connectorShapeId':this[_0xf900c6(0x55c)],'width':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x3c7)],'height':_0x54b5c6[_0xf900c6(0x1be)]['height'],'left':_0x54b5c6['worldRect']['left'],'top':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x566)],'flipX':_0x54b5c6['worldRect']['flipX']||![],'flipY':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x285)]||![],'oldAdjustValues':_0x4902fb,'newAdjustValues':_0x54b5c6[_0xf900c6(0x66c)],'newLineType':_0x54b5c6[_0xf900c6(0x45e)],'rotation':_0x54b5c6[_0xf900c6(0x583)],'oldRelation':_0x52501c,'newRelation':_0x415cbf};this['_commandService']['executeCommand'](_univerjs_pro_sheets_shape[_0xf900c6(0x1bc)]['id'],_0x151954);}[_0x48b1be(0x42a)](_0x3b06c4,_0x28ef12,_0x1ab910,_0x29f049){const _0x316992=_0x48b1be,_0x4cb9a9=this[_0x316992(0x520)][_0x316992(0x260)]()[_0x316992(0x3e1)],_0x1ae70c={};_0x1ab910?(_0x1ae70c['to']=_0x28ef12,_0x1ae70c['from']=void 0x0):(_0x1ae70c[_0x316992(0x54e)]=_0x28ef12,_0x1ae70c['to']=void 0x0);const _0x9b283a={'unitId':this[_0x316992(0x5ae)],'subUnitId':this[_0x316992(0x36d)],'connectorShapeId':this[_0x316992(0x55c)],'width':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x3c7)],'height':_0x3b06c4[_0x316992(0x1be)]['height'],'left':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x450)],'top':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x566)],'flipX':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x5b1)]||![],'flipY':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x285)]||![],'oldAdjustValues':_0x29f049,'newAdjustValues':_0x3b06c4['adjustValues'],'newLineType':_0x3b06c4[_0x316992(0x45e)],'rotation':_0x3b06c4[_0x316992(0x583)],'oldRelation':_0x4cb9a9,'newRelation':_0x1ae70c};this[_0x316992(0x1c8)][_0x316992(0x636)](_univerjs_pro_sheets_shape[_0x316992(0x1bc)]['id'],_0x9b283a);}[_0x48b1be(0x596)](_0x5de049,_0xdf8173,_0x2ad0a8){const _0x5273be=_0x48b1be;this[_0x5273be(0x47f)]((0x0,_univerjs_core['toDisposable'])(_0x5de049[_0x5273be(0x3bd)][_0x5273be(0x595)]((_0x58545b,_0x2b8dc1)=>{const _0x1b7600=_0x5273be,_0x389c39=_0x5de049[_0x1b7600(0x647)]();this[_0x1b7600(0x520)]=this[_0x1b7600(0x5d9)][_0x1b7600(0x36e)](_0x389c39[_0x1b7600(0x1ab)],_0x389c39[_0x1b7600(0x4dc)],_0x389c39['drawingId']);if(!this['_activeShapeModel'])return;const _0xa81cc7={};this[_0x1b7600(0x520)][_0x1b7600(0x445)]()[_0x1b7600(0x4e1)](_0x58e524=>{const _0x5765c5=_0x1b7600,_0x152556=this['_activeShapeModel'][_0x5765c5(0x336)](_0x58e524);if(_0x152556!==void 0x0)_0xa81cc7[_0x58e524]=_0x152556;});const _0x5dddfa=this[_0x1b7600(0x29e)]();if(!_0x5dddfa)return;this['_baseDrawingRect']={..._0x5dddfa};const _0x4a4fc1=new _univerjs_pro_engine_shape[(_0x1b7600(0x240))](this[_0x1b7600(0x1e1)]),_0x25caee=(0x0,_univerjs_drawing[_0x1b7600(0x1e7)])({'unitId':this[_0x1b7600(0x5ae)],'subUnitId':this[_0x1b7600(0x36d)],'drawingId':this['_activeShapeId']}),_0x5abf0a=_0xdf8173['getObjectIncludeInGroup'](_0x25caee);this[_0x1b7600(0x58f)]=!![],_0xdf8173['disableObjectsEvent'](),this[_0x1b7600(0x146)]['startConnectionDetection'](_0xdf8173,this[_0x1b7600(0x5ae)],this[_0x1b7600(0x36d)],this['_activeShapeId']),this['_currentConnectionTarget']=null;const _0x8db01d=this['_activeShapeModel'][_0x1b7600(0x129)](),_0xaa6a8c=_0x8db01d[0x0],_0xe14ad6=_0x8db01d[_0x8db01d[_0x1b7600(0x42d)]-0x1],_0x3134a4=_0x2ad0a8?_0x4a4fc1[_0x1b7600(0x2f3)](_0xe14ad6):_0x4a4fc1[_0x1b7600(0x2f3)](_0xaa6a8c);this['_cxtHandlerPointerMove']=_0xdf8173[_0x1b7600(0x276)]['subscribeEvent']((_0x23fd17,_0x58b77b)=>{const _0x4ea65c=_0x1b7600;if(!this['_isConnecting']||!this[_0x4ea65c(0x520)])return;!this[_0x4ea65c(0x52e)]&&(this[_0x4ea65c(0x58c)][_0x4ea65c(0x545)](),this[_0x4ea65c(0x520)][_0x4ea65c(0x5ca)](),this[_0x4ea65c(0x52e)]=!![]);const _0x509c51=this[_0x4ea65c(0x2d8)](this[_0x4ea65c(0x5ae)],this[_0x4ea65c(0x36d)]),_0x1e8b99=this[_0x4ea65c(0x5d5)](this[_0x4ea65c(0x5ae)],this[_0x4ea65c(0x36d)]),_0x46d77a={'x':_0x23fd17[_0x4ea65c(0x61c)]/_0x1e8b99+_0x509c51['x'],'y':_0x23fd17[_0x4ea65c(0x50c)]/_0x1e8b99+_0x509c51['y']},_0xc1c222=this[_0x4ea65c(0x146)]['updateConnectionDetection'](_0x46d77a);if(_0xc1c222){const {shapeId:_0xac493d,unitId:_0x1b3665,subUnitId:_0x44a114}=_0xc1c222;if(_0xac493d&&_0x1b3665&&_0x44a114){const _0x399582=(0x0,_univerjs_drawing[_0x4ea65c(0x1e7)])({'unitId':_0x1b3665,'subUnitId':_0x44a114,'drawingId':_0xac493d});_0xc1c222['angle']=(_0xdf8173[_0x4ea65c(0x492)](_0x399582)[_0x4ea65c(0x2ed)]||0x0)+_0xc1c222[_0x4ea65c(0x2ed)];}}this['_currentConnectionTarget']=_0xc1c222;const _0x478b4d=_0x2ad0a8?this[_0x4ea65c(0x520)][_0x4ea65c(0x17b)]():this['_activeShapeModel'][_0x4ea65c(0x606)]();if(_0x478b4d){this[_0x4ea65c(0x135)](_0x478b4d,_0x46d77a,_0x2ad0a8,_0x5abf0a,_0x5de049);return;}this[_0x4ea65c(0x116)](_0x46d77a,_0x3134a4,_0x2ad0a8,_0x5abf0a,_0x5de049);}),this[_0x1b7600(0x519)]=_0xdf8173[_0x1b7600(0x45d)]['subscribeEvent']((_0xc31952,_0x4d6001)=>{const _0x54e190=_0x1b7600;this[_0x54e190(0x27c)](_0xdf8173,_0x3134a4,_0xc31952,_0x2ad0a8,_0xa81cc7);}),_0x2b8dc1['stopPropagation']();})));}[_0x48b1be(0x193)](_0x367038,_0x2af32f,_0x5e4517){const _0x2abadf=_0x48b1be,_0x46d885=this[_0x2abadf(0x5d9)]['getBasicShapeRelation'](_0x367038,_0x2af32f,_0x5e4517);if(!_0x46d885||_0x46d885[_0x2abadf(0x42d)]===0x0)return;const _0xc28ad8=this[_0x2abadf(0x1cb)][_0x2abadf(0x11a)](_0x367038);if(!_0xc28ad8)return;const {scene:_0x1e0094}=_0xc28ad8;for(const _0x57ba72 of _0x46d885){const _0x426807=_0x57ba72[_0x2abadf(0x301)],_0x11f73d=this[_0x2abadf(0x5d9)][_0x2abadf(0x36e)](_0x367038,_0x2af32f,_0x426807);if(!_0x11f73d)continue;const _0x27810d=_0x11f73d['getStartConnectInfo'](),_0x381109=_0x11f73d[_0x2abadf(0x17b)](),_0x38a284=(_0x27810d===null||_0x27810d===void 0x0?void 0x0:_0x27810d['shapeId'])===_0x5e4517,_0x19f249=(0x0,_univerjs_drawing[_0x2abadf(0x1e7)])({'unitId':_0x367038,'subUnitId':_0x2af32f,'drawingId':_0x426807}),_0x445e82=_0x1e0094[_0x2abadf(0x492)](_0x19f249);if(!_0x445e82)continue;const _0x206695=this[_0x2abadf(0x307)][_0x2abadf(0x251)]({'unitId':_0x367038,'subUnitId':_0x2af32f,'drawingId':_0x426807});if(!(_0x206695===null||_0x206695===void 0x0?void 0x0:_0x206695[_0x2abadf(0x649)]))continue;if(_0x27810d&&_0x381109)this[_0x2abadf(0x3d9)](_0x367038,_0x2af32f,_0x426807,_0x11f73d,_0x27810d,_0x381109,_0x445e82);else this[_0x2abadf(0x471)](_0x367038,_0x2af32f,_0x426807,_0x11f73d,_0x38a284?_0x27810d:_0x381109,_0x38a284,_0x206695,_0x445e82);}}[_0x48b1be(0x3d9)](_0x27fbe3,_0x313b77,_0x207e8e,_0x5ad7c6,_0x264009,_0x45d1ca,_0x39cca0){const _0x1b0b6b=_0x48b1be,_0x5d0c78=this[_0x1b0b6b(0x5ae)],_0x46441a=this[_0x1b0b6b(0x36d)];this[_0x1b0b6b(0x5ae)]=_0x27fbe3,this['_subUnitId']=_0x313b77;const _0x415c93=this[_0x1b0b6b(0x3ff)](_0x264009),_0x5d976c=this[_0x1b0b6b(0x3ff)](_0x45d1ca);this[_0x1b0b6b(0x5ae)]=_0x5d0c78,this[_0x1b0b6b(0x36d)]=_0x46441a;if(!_0x415c93||!_0x5d976c)return;const _0x1efdb4=_0x5ad7c6['getShapeType'](),_0x8bff04=(0x0,_univerjs_pro_engine_shape[_0x1b0b6b(0x3f3)])(_0x415c93,_0x5d976c,_0x1efdb4);if(_0x8bff04)_0x5ad7c6['updateLinePoints'](_0x8bff04);const _0x2aaca4=(0x0,_univerjs_pro_engine_shape[_0x1b0b6b(0x275)])(_0x8bff04,_0x1efdb4);if(_0x2aaca4[_0x1b0b6b(0x45e)]!==_0x1efdb4)_0x5ad7c6['changeShapeType'](_0x2aaca4[_0x1b0b6b(0x45e)]);_0x5ad7c6[_0x1b0b6b(0x5ca)]();for(const [_0x306453,_0x1008ae]of Object['entries'](_0x2aaca4['adjustValues']))_0x5ad7c6[_0x1b0b6b(0x177)](_0x306453,_0x1008ae);_0x5ad7c6['updateContext']({'width':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x3c7)],'height':_0x2aaca4[_0x1b0b6b(0x1be)]['height']}),_0x39cca0['transformByState']({'flipX':_0x2aaca4['worldRect']['flipX'],'flipY':_0x2aaca4['worldRect'][_0x1b0b6b(0x285)],'left':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x450)],'top':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x566)],'width':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x3c7)],'height':_0x2aaca4['worldRect']['height'],'angle':_0x2aaca4['rotation']}),_0x5ad7c6[_0x1b0b6b(0x2f9)]();}[_0x48b1be(0x471)](_0xe24fc7,_0x62128d,_0x590a01,_0x260de9,_0x5f7e58,_0x1e0323,_0x205ec6,_0x1d7937){const _0x421628=_0x48b1be,_0x15a4d2=this[_0x421628(0x5ae)],_0x34e14e=this[_0x421628(0x36d)];this['_unitId']=_0xe24fc7,this[_0x421628(0x36d)]=_0x62128d;const _0xe5155b=this[_0x421628(0x3ff)](_0x5f7e58);this[_0x421628(0x5ae)]=_0x15a4d2,this[_0x421628(0x36d)]=_0x34e14e;if(!_0xe5155b)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x205ec6[_0x421628(0x649)],_0x53d76a=_0x260de9['getConnectorLinePoints']();if(_0x53d76a[_0x421628(0x42d)]<0x2)return;const _0x3b707e=new _univerjs_pro_engine_shape[(_0x421628(0x240))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x4a1437=_0x1e0323?_0x53d76a[_0x53d76a[_0x421628(0x42d)]-0x1]:_0x53d76a[0x0],_0x3decaf=_0x3b707e[_0x421628(0x2f3)](_0x4a1437),_0x16a953=_univerjs_pro_engine_shape[_0x421628(0x240)][_0x421628(0x651)](_0x3decaf,_0xe5155b['point'],!_0x1e0323);_0x1d7937[_0x421628(0x2b4)]({'flipX':_0x16a953[_0x421628(0x1be)][_0x421628(0x5b1)],'flipY':_0x16a953[_0x421628(0x1be)][_0x421628(0x285)],'left':_0x16a953[_0x421628(0x1be)][_0x421628(0x450)],'top':_0x16a953['worldRect'][_0x421628(0x566)],'width':_0x16a953[_0x421628(0x1be)][_0x421628(0x3c7)],'height':_0x16a953['worldRect']['height'],'angle':_0x16a953['worldRect'][_0x421628(0x2ed)]}),_0x1d7937[_0x421628(0x2d4)](!![]);}[_0x48b1be(0x4f3)](){const _0x26f4e2=_0x48b1be;if(this[_0x26f4e2(0x21a)]['length']===0x0)return;this['_connectorObjects']['forEach'](_0x45b899=>{_0x45b899['dispose']();}),this[_0x26f4e2(0x21a)]=[];}[_0x48b1be(0x178)](){const _0x23af17=_0x48b1be,_0x146c97=this[_0x23af17(0x36a)][_0x23af17(0x5a1)](_univerjs_core['UniverInstanceType'][_0x23af17(0x5a6)]);this[_0x23af17(0x47f)](_0x146c97[_0x23af17(0x560)]((0x0,rxjs[_0x23af17(0x49d)])(_0x35455c=>{const _0x4ff951=_0x23af17;if(!_0x35455c)return rxjs[_0x4ff951(0x256)];return _0x35455c[_0x4ff951(0x419)][_0x4ff951(0x560)]((0x0,rxjs['switchMap'])(_0x239636=>{const _0x4519bd=_0x4ff951;if(!_0x239636)return rxjs[_0x4519bd(0x256)];const _0x341988=_0x35455c[_0x4519bd(0x53f)](),_0x2d926f=this[_0x4519bd(0x1cb)]['getRenderById'](_0x341988),_0x2b5d47=_0x2d926f===null||_0x2d926f===void 0x0?void 0x0:_0x2d926f[_0x4519bd(0x1cf)];if(!_0x2b5d47)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x2b5d47);}));}))[_0x23af17(0x22b)](_0x5b4598=>{const _0x3bde6d=_0x23af17,_0x2b3aa8=_0x5b4598['getTransformerByCreate']();this[_0x3bde6d(0x47f)](_0x5b4598[_0x3bde6d(0x276)]['subscribeEvent'](_0x2394b2=>{const _0x42db5d=_0x3bde6d;if(this['_isDrawingShapePointDown']&&this[_0x42db5d(0x55c)])this[_0x42db5d(0x4f3)]();})),this[_0x3bde6d(0x47f)](_0x2b3aa8[_0x3bde6d(0x19f)][_0x3bde6d(0x22b)](_0x424ea5=>{const _0x5083a1=_0x3bde6d,{objects:_0x35b33f}=_0x424ea5;this[_0x5083a1(0x4f3)]();if(_0x35b33f!==null&&_0x35b33f[_0x5083a1(0x36c)]===0x1){if(_0x35b33f[_0x5083a1(0x209)]()[_0x5083a1(0x194)]()['value']instanceof DrawingShape)this[_0x5083a1(0x143)]=!![];}})),this['disposeWithMe'](_0x2b3aa8[_0x3bde6d(0x339)]['subscribe'](_0x45ea8f=>{const _0x5b9446=_0x3bde6d;if(this[_0x5b9446(0x143)])this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x5b4598[_0x3bde6d(0x45d)][_0x3bde6d(0x595)](()=>{const _0x4ea99c=_0x3bde6d;this['_isDrawingShapePointDown']&&(this[_0x4ea99c(0x143)]=![],this[_0x4ea99c(0x39f)]());})),this[_0x3bde6d(0x47f)](_0x2b3aa8[_0x3bde6d(0x43c)][_0x3bde6d(0x22b)](()=>{const _0x33a539=_0x3bde6d;this[_0x33a539(0x5ae)]&&this[_0x33a539(0x36d)]&&this[_0x33a539(0x55c)]&&(this[_0x33a539(0x307)][_0x33a539(0x251)]({'unitId':this['_unitId'],'subUnitId':this[_0x33a539(0x36d)],'drawingId':this[_0x33a539(0x55c)]})&&(this[_0x33a539(0x4f3)](),this[_0x33a539(0x39f)]()));}));}));}[_0x48b1be(0x582)](){const _0x20895f=_0x48b1be;this[_0x20895f(0x47f)](this[_0x20895f(0x307)][_0x20895f(0x16e)][_0x20895f(0x22b)](_0x1d4193=>{const _0x4a06aa=_0x20895f;if(_0x1d4193['length']===0x1){const _0x3e9e91=_0x1d4193[0x0];if(_0x3e9e91['drawingType']===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){const _0x434983=this[_0x4a06aa(0x5d9)][_0x4a06aa(0x36e)](_0x3e9e91[_0x4a06aa(0x1ab)],_0x3e9e91[_0x4a06aa(0x4dc)],_0x3e9e91[_0x4a06aa(0x4cb)]);if(_0x434983&&(0x0,_univerjs_pro_engine_shape[_0x4a06aa(0x5fb)])(_0x434983['getShapeType']())){this[_0x4a06aa(0x55c)]=_0x3e9e91[_0x4a06aa(0x4cb)],this['_unitId']=_0x3e9e91[_0x4a06aa(0x1ab)],this['_subUnitId']=_0x3e9e91[_0x4a06aa(0x4dc)],this[_0x4a06aa(0x4f3)](),this[_0x4a06aa(0x39f)]();return;}}}this[_0x4a06aa(0x55c)]=void 0x0,this['_unitId']=void 0x0,this[_0x4a06aa(0x36d)]=void 0x0,this[_0x4a06aa(0x4f3)]();})),this[_0x20895f(0x47f)](this[_0x20895f(0x307)]['update$'][_0x20895f(0x22b)](_0x3f8a93=>{const _0x174d54=_0x20895f;if(_0x3f8a93[_0x174d54(0x42d)]===0x1){var _0x13cb4a;const _0x55da7b=_0x3f8a93[0x0],_0x3666db=(_0x13cb4a=this['_drawingManagerService']['getDrawingByParam'](_0x55da7b))===null||_0x13cb4a===void 0x0?void 0x0:_0x13cb4a[_0x174d54(0x2b0)];if(_0x3666db===_univerjs_core['DrawingTypeEnum'][_0x174d54(0x614)]&&_0x55da7b[_0x174d54(0x4cb)]===this[_0x174d54(0x55c)])this[_0x174d54(0x4f3)](),this[_0x174d54(0x39f)]();else{if(!this[_0x174d54(0x55c)]&&_0x3666db===_univerjs_core[_0x174d54(0x45a)][_0x174d54(0x614)])this[_0x174d54(0x193)](_0x55da7b[_0x174d54(0x1ab)],_0x55da7b[_0x174d54(0x4dc)],_0x55da7b[_0x174d54(0x4cb)]);}}})),this[_0x20895f(0x47f)](this['_drawingManagerService'][_0x20895f(0x201)]['subscribe'](_0x3e32e2=>{const _0x12c887=_0x20895f;for(const _0x4d19e4 of _0x3e32e2){const {drawingId:_0x450252}=_0x4d19e4;if(this[_0x12c887(0x55c)]===_0x450252){this[_0x12c887(0x5b6)]();return;}}}));}[_0x48b1be(0x135)](_0x24666d,_0x112e96,_0x1d285b,_0x1b8d0b,_0x528508){const _0x37be41=_0x48b1be;var _0x515227,_0x49d1ed;if(!this['_activeShapeModel'])return;const _0x137327=this['_getConnectPointInfo'](_0x24666d);if(!_0x137327)return;const _0x4936a1=this[_0x37be41(0x3df)]?this['_currentConnectionTarget'][_0x37be41(0x3bf)]:_0x112e96,_0x42d9f3=this[_0x37be41(0x3df)]?this['_currentConnectionTarget'][_0x37be41(0x2ed)]:this['_calculateFreeEndpointAngle'](_0x137327[_0x37be41(0x2c2)],_0x4936a1);let _0x283975;if(this[_0x37be41(0x3df)]){const _0x30275e=this[_0x37be41(0x307)][_0x37be41(0x251)]({'unitId':this[_0x37be41(0x3df)][_0x37be41(0x1ab)],'subUnitId':this[_0x37be41(0x3df)][_0x37be41(0x4dc)],'drawingId':this[_0x37be41(0x3df)]['shapeId']});if(_0x30275e===null||_0x30275e===void 0x0?void 0x0:_0x30275e[_0x37be41(0x649)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x143f2b}=_0x30275e[_0x37be41(0x649)];_0x283975=(0x0,_univerjs_pro_engine_shape[_0x37be41(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x143f2b||0x0);}else _0x283975={'left':_0x4936a1['x'],'top':_0x4936a1['y'],'width':0x0,'height':0x0};}else _0x283975={'left':_0x4936a1['x'],'top':_0x4936a1['y'],'width':0x0,'height':0x0};const _0x5d3f54={'point':_0x4936a1,'angle':_0x42d9f3,'bounds':_0x283975},_0x5467a5=_0x1d285b?_0x5d3f54:_0x137327,_0x2622fb=_0x1d285b?_0x137327:_0x5d3f54,_0x224550=this[_0x37be41(0x520)][_0x37be41(0x607)](),_0x18135b=(0x0,_univerjs_pro_engine_shape[_0x37be41(0x3f3)])(_0x5467a5,_0x2622fb,_0x224550);console[_0x37be41(0x4dd)](_0x5467a5,_0x2622fb);if(_0x18135b)this[_0x37be41(0x520)]['updateLinePoints'](_0x18135b);const _0x1e8a85=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x18135b,_0x224550);if(_0x1e8a85[_0x37be41(0x45e)]!==_0x224550)this[_0x37be41(0x520)][_0x37be41(0x28b)](_0x1e8a85[_0x37be41(0x45e)]);for(const [_0x2308bc,_0x4b9fcc]of Object[_0x37be41(0x52c)](_0x1e8a85[_0x37be41(0x66c)]))this[_0x37be41(0x520)][_0x37be41(0x177)](_0x2308bc,_0x4b9fcc);this[_0x37be41(0x520)][_0x37be41(0x3ce)]({'width':_0x1e8a85['worldRect'][_0x37be41(0x3c7)],'height':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x613)]}),_0x1b8d0b[_0x37be41(0x2b4)]({'flipX':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x5b1)],'flipY':_0x1e8a85['worldRect']['flipY'],'left':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x450)],'top':_0x1e8a85[_0x37be41(0x1be)]['top'],'width':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x3c7)],'height':_0x1e8a85[_0x37be41(0x1be)]['height'],'angle':_0x1e8a85['rotation']}),_0x1b8d0b[_0x37be41(0x2d4)](!![]);const _0x31e838=(_0x515227=(_0x49d1ed=this[_0x37be41(0x3df)])===null||_0x49d1ed===void 0x0?void 0x0:_0x49d1ed[_0x37be41(0x3bf)])!==null&&_0x515227!==void 0x0?_0x515227:_0x112e96;_0x528508[_0x37be41(0x2b4)]({'left':_0x31e838['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x31e838['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x37be41(0x5e2)]});}['_handleFreeEndpointMove'](_0x50f93d,_0x21264f,_0x58f7da,_0x58c604,_0x2beb6d){const _0x2ac697=_0x48b1be;var _0x40efb5,_0x3da539,_0x1863bd,_0x37a88e;const _0x42479d=(_0x40efb5=(_0x3da539=this[_0x2ac697(0x3df)])===null||_0x3da539===void 0x0?void 0x0:_0x3da539[_0x2ac697(0x3bf)])!==null&&_0x40efb5!==void 0x0?_0x40efb5:_0x50f93d,_0xad4d60=_univerjs_pro_engine_shape[_0x2ac697(0x240)][_0x2ac697(0x651)](_0x21264f,_0x42479d,_0x58f7da);_0x58c604[_0x2ac697(0x2b4)]({'flipX':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x5b1)],'flipY':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x285)],'left':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x450)],'top':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x566)],'width':_0xad4d60['worldRect']['width'],'height':_0xad4d60['worldRect'][_0x2ac697(0x613)],'angle':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x2ed)]});const _0x1a6317=(_0x1863bd=(_0x37a88e=this[_0x2ac697(0x3df)])===null||_0x37a88e===void 0x0?void 0x0:_0x37a88e[_0x2ac697(0x3bf)])!==null&&_0x1863bd!==void 0x0?_0x1863bd:_0x50f93d;_0x2beb6d[_0x2ac697(0x2b4)]({'left':_0x1a6317['x']-_univerjs_pro_engine_shape[_0x2ac697(0x5ff)]['cxnPointRadius'],'top':_0x1a6317['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2ac697(0x5e2)]});}[_0x48b1be(0x3ff)](_0x5283e6){const _0x5ca7df=_0x48b1be;if(!this[_0x5ca7df(0x5ae)]||!this[_0x5ca7df(0x36d)])return null;const {shapeId:_0x29a65f,cxnIndex:_0x572426}=_0x5283e6,_0x3d511a=this[_0x5ca7df(0x5d9)][_0x5ca7df(0x36e)](this['_unitId'],this[_0x5ca7df(0x36d)],_0x29a65f);if(!_0x3d511a)return null;const _0x4835f6=this[_0x5ca7df(0x307)][_0x5ca7df(0x251)]({'unitId':this[_0x5ca7df(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x29a65f});if(!(_0x4835f6===null||_0x4835f6===void 0x0?void 0x0:_0x4835f6[_0x5ca7df(0x649)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x5c0493}=_0x4835f6['transform'];_0x3d511a[_0x5ca7df(0x3ce)]({'width':width,'height':height});const _0x59c56f=_0x3d511a['getConnectionSiteList']()['find'](_0x45534d=>_0x45534d[_0x5ca7df(0x343)]===_0x572426);if(!_0x59c56f)return null;let _0x38f872=flipX?width-_0x59c56f['x']:_0x59c56f['x'],_0x452a6f=flipY?height-_0x59c56f['y']:_0x59c56f['y'];if(_0x5c0493!==0x0&&_0x5c0493!==void 0x0&&_0x5c0493!==null){const _0x172778=_0x5c0493*Math['PI']/0xb4,_0xd96eb8=Math[_0x5ca7df(0x548)](_0x172778),_0x28d83e=Math[_0x5ca7df(0x539)](_0x172778),_0x4ae720=width/0x2,_0xbdb873=height/0x2,_0x101d79=_0x38f872-_0x4ae720,_0x3112ff=_0x452a6f-_0xbdb873;_0x38f872=_0x4ae720+_0x101d79*_0xd96eb8-_0x3112ff*_0x28d83e,_0x452a6f=_0xbdb873+_0x101d79*_0x28d83e+_0x3112ff*_0xd96eb8;}_0x38f872+=left,_0x452a6f+=top;let _0x415196=_0x59c56f[_0x5ca7df(0x578)]/0xea60;if(flipX)_0x415196=0xb4-_0x415196;if(flipY)_0x415196=-_0x415196;_0x415196+=_0x5c0493||0x0,_0x415196=(_0x415196%0x168+0x168)%0x168;const _0x5acb32=(0x0,_univerjs_pro_engine_shape[_0x5ca7df(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x5c0493||0x0);return{'point':{'x':_0x38f872,'y':_0x452a6f},'angle':_0x415196,'bounds':_0x5acb32};}[_0x48b1be(0x41d)](_0x4f9109,_0x390ea5){const _0x3d8bd7=_0x48b1be,_0x22b20e=_0x390ea5['x']-_0x4f9109['x'],_0x7a145b=_0x390ea5['y']-_0x4f9109['y'];if(Math[_0x3d8bd7(0x28c)](_0x22b20e)>=Math[_0x3d8bd7(0x28c)](_0x7a145b))return _0x22b20e>=0x0?0xb4:0x0;else return _0x7a145b>=0x0?0x10e:0x5a;}[_0x48b1be(0x5b6)](){const _0x320ab8=_0x48b1be;this['_activeShapeId']=void 0x0,this[_0x320ab8(0x5ae)]=void 0x0,this[_0x320ab8(0x36d)]=void 0x0,this[_0x320ab8(0x4f3)]();}[_0x48b1be(0x570)](){const _0x4d9ac8=_0x48b1be;this[_0x4d9ac8(0x4f3)](),super[_0x4d9ac8(0x570)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core['ICommandService']),__decorateParam(0x2,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x3,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x4,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x503fe6,_0xf3e71f,_0x3fd566){const _0x572329=_0x48b1be;super(),this[_0x572329(0x1c8)]=_0x503fe6,this[_0x572329(0x502)]=_0xf3e71f,this[_0x572329(0x340)]=_0x3fd566,this[_0x572329(0x271)]();}[_0x48b1be(0x271)](){const _0x4b9f3f=_0x48b1be;this[_0x4b9f3f(0x47f)](this['_commandService']['beforeCommandExecuted'](_0x1128c9=>{const _0x455d1f=_0x4b9f3f;let _0x459d97,_0x5e39d4;if(_0x1128c9['id']===_univerjs_pro_sheets_shape[_0x455d1f(0x537)]['id']||_0x1128c9['id']===_univerjs_pro_sheets_shape['SetShapeDrawingDataCommand']['id']||_0x1128c9['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x4b8f7b=_0x1128c9[_0x455d1f(0x37c)];_0x459d97=_0x4b8f7b[_0x455d1f(0x1ab)],_0x5e39d4=_0x4b8f7b[_0x455d1f(0x4dc)];}if(!_0x459d97||!_0x5e39d4)return;if(!this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x455d1f(0x3ae)]],'worksheetTypes':[_univerjs_sheets[_0x455d1f(0x267)]]},_0x459d97,_0x5e39d4))this[_0x455d1f(0x340)][_0x455d1f(0x44a)](this[_0x455d1f(0x502)]['t'](_0x455d1f(0x211)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core['ICommandService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core[_0x48b1be(0x319)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x48b1be(0x22e)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x15c9f5){const _0x37235f=_0x48b1be,{containerWidth:_0x57280c,containerHeight:_0x42b81f,scaleX:_0x8cdc13,scaleY:_0x1ba90c}=_0x15c9f5,_0x56fafb=_0x8cdc13||0x1,_0x20c122=_0x1ba90c||0x1,_0x921ee4=(0x0,_univerjs_ui[_0x37235f(0x425)])(ShapeTextEditingService),_0x386052=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_docs_ui[_0x37235f(0x1b3)]),_0x531379=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_engine_render[_0x37235f(0x1df)]),_0x18936a=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_core['IUniverInstanceService']),_0x3a32c9=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x37235f(0x618)]),_0x4ab3d4=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_pro_sheets_shape[_0x37235f(0x475)]),_0x167e33=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_core[_0x37235f(0x621)]),_0x42291f=(0x0,_univerjs_ui[_0x37235f(0x305)])(_0x921ee4['editingParams$']),_0x34de67=(0x0,_univerjs_ui[_0x37235f(0x305)])(_0x921ee4[_0x37235f(0x531)]),_0x1d6f36=(0x0,react[_0x37235f(0x540)])(null),_0x22ae38=(0x0,react[_0x37235f(0x540)])(null),_0x447cb7=(0x0,react[_0x37235f(0x540)])(null),_0x2f3e74=(0x0,react['useRef'])(null),_0x466137=(0x0,react[_0x37235f(0x540)])(null),_0x13b3e2=(0x0,react['useRef'])(null),[_0x3fa36e,_0x5e90d9]=(0x0,react[_0x37235f(0x47b)])({'editorHeight':_0x42b81f,'marginTop':0x0,'useAbsolutePosition':![]}),_0x3b88dc=(0x0,react[_0x37235f(0x2f6)])(_0x23b937=>{queueMicrotask(()=>{_0x5e90d9(_0x23b937);});},[]),_0xfaa398=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x3977f7=_0x37235f;return _0x18936a['getUnit'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x3977f7(0x617)][_0x3977f7(0x5e8)]);},[_0x18936a]),_0x548ea4=(0x0,react['useCallback'])(()=>{const _0x39e289=_0x37235f;var _0x39e257;const _0x3b420e=_0x56fafb,_0x59de10=_0x20c122;if(!_0x42291f)return{'scaleAdjust':0x1,'renderScaleX':_0x3b420e,'renderScaleY':_0x59de10};const _0x26e735=_0x531379[_0x39e289(0x11a)](_0x42291f[_0x39e289(0x1ab)]),_0x291da7=_0x26e735===null||_0x26e735===void 0x0?void 0x0:_0x26e735[_0x39e289(0x1cf)]['getAncestorScale'](),_0x5a41d1=_0x26e735===null||_0x26e735===void 0x0?void 0x0:_0x26e735[_0x39e289(0x13f)]['getCanvasElement'](),_0x4f4a64=_0x5a41d1?Number['parseFloat'](_0x5a41d1[_0x39e289(0x21d)][_0x39e289(0x3c7)]||''):0x0,_0x54da72=(_0x39e257=_0x5a41d1===null||_0x5a41d1===void 0x0?void 0x0:_0x5a41d1[_0x39e289(0x3f5)]()[_0x39e289(0x3c7)])!==null&&_0x39e257!==void 0x0?_0x39e257:0x0,_0x2e6fc3=_0x4f4a64>0x0&&_0x54da72>0x0?_0x54da72/_0x4f4a64:0x1;return{'scaleAdjust':Number[_0x39e289(0x2ac)](_0x2e6fc3)&&_0x2e6fc3>0x0?_0x2e6fc3:0x1,'renderScaleX':(_0x291da7===null||_0x291da7===void 0x0?void 0x0:_0x291da7['scaleX'])||_0x3b420e,'renderScaleY':(_0x291da7===null||_0x291da7===void 0x0?void 0x0:_0x291da7[_0x39e289(0x443)])||_0x59de10};},[_0x56fafb,_0x20c122,_0x42291f,_0x531379]),_0x2b1778=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x46965b=_0x37235f;if(!_0x42291f)return{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};const {unitId:_0x11213e,subUnitId:_0x2ed94d,shapeId:_0x4cc625}=_0x42291f,_0x1c1f6c=_0x4ab3d4[_0x46965b(0x36e)](_0x11213e,_0x2ed94d,_0x4cc625);if(!_0x1c1f6c)return{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};const _0x124784={'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};return _0x1c1f6c['getShapeTextRect'](_0x124784);},[_0x42291f,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122,_0x4ab3d4]),_0x206243=(0x0,react['useCallback'])(()=>{const _0x29cece=_0x37235f;if(!_0x42291f)return null;const {unitId:_0x2fd867,subUnitId:_0x6636d7,shapeId:_0x45b5d9}=_0x42291f,_0x3e631f=_0x4ab3d4['getShapeModel'](_0x2fd867,_0x6636d7,_0x45b5d9);if(!_0x3e631f)return null;const _0x59c092=_0x3e631f[_0x29cece(0x48f)]();if(!_0x59c092)return null;const _0x5894ea={'unitId':_0x2fd867,'subUnitId':_0x6636d7,'drawingId':_0x45b5d9},_0x8c20ae=_0x3a32c9[_0x29cece(0x251)](_0x5894ea);let _0x4bb472={'angle':0x0,'flipX':![],'flipY':![]};if(_0x8c20ae&&_0x8c20ae[_0x29cece(0x649)])_0x4bb472=_0x8c20ae['transform'];const _0x2786b9={'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122},_0x4b7b3b=_0x3e631f[_0x29cece(0x3ca)](_0x2786b9);let _0x3546b4,_0x2929df=_univerjs_core[_0x29cece(0x226)][_0x29cece(0xfd)],_0x48cc23=_univerjs_core[_0x29cece(0x400)][_0x29cece(0x63f)];if(_0x29cece(0x31a)in _0x59c092&&_0x59c092[_0x29cece(0x31a)]){var _0x50367b,_0x5d9d24;const _0xe8498d=_0x59c092[_0x29cece(0x31a)];if(_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d[_0x29cece(0x106)])_0x3546b4=_0xe8498d['doc'];_0x2929df=(_0x50367b=_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d['va'])!==null&&_0x50367b!==void 0x0?_0x50367b:_univerjs_core[_0x29cece(0x226)][_0x29cece(0xfd)],_0x48cc23=(_0x5d9d24=_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d['ha'])!==null&&_0x5d9d24!==void 0x0?_0x5d9d24:_univerjs_core[_0x29cece(0x400)]['LEFT'];}return{'doc':_0x3546b4,'verticalAlign':_0x2929df,'horizontalAlign':_0x48cc23,'textRect':_0x4b7b3b,'transform':_0x4bb472,'isHorizontal':_0x59c092[_0x29cece(0x1ed)]};},[_0x42291f,_0x4ab3d4,_0x3a32c9,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122]),_0x162b9b=(0x0,react[_0x37235f(0x470)])(()=>{const _0x39dac7=_0x37235f,_0x229f6b=_0x206243();if(_0x229f6b===null||_0x229f6b===void 0x0?void 0x0:_0x229f6b[_0x39dac7(0x106)])return prepareShapeTextDocumentData(_0x229f6b[_0x39dac7(0x106)],{'isHorizontal':!![],'textRect':_0x229f6b[_0x39dac7(0x481)],'verticalAlign':_0x229f6b[_0x39dac7(0x131)],'horizontalAlign':_0x229f6b[_0x39dac7(0x1a8)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x57280c/_0x56fafb,'height':Infinity}}};},[_0x206243,_0x57280c,_0x56fafb]),_0x5ac0bc=(0x0,_univerjs_docs_ui[_0x37235f(0x569)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x162b9b,'container':_0x22ae38,'autoFocus':![],'isSingle':![]}),_0x1fe809=(0x0,_univerjs_docs_ui['useIsFocusing'])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x37235f(0x1cd)])(_0x1fe809,{'keyCodes':[{'keyCode':_univerjs_ui[_0x37235f(0x442)]['ENTER']}],'handler':()=>{const _0x5023af=_0x37235f;_0x167e33[_0x5023af(0x636)](_univerjs_docs_ui[_0x5023af(0x529)]['id']);}},_0x5ac0bc),(0x0,_univerjs_docs_ui[_0x37235f(0x15d)])(_0x1fe809,![],_0x5ac0bc);const _0x1e1920=(0x0,react['useCallback'])((_0x47625f=!![])=>{const _0x414cf3=_0x37235f;var _0x5064de,_0x30cf0f,_0x49a920;if(!_0x5ac0bc)return;const _0x5307b5=_0x5ac0bc[_0x414cf3(0x605)]()['find'](_0x5220f2=>_0x5220f2[_0x414cf3(0x465)]),_0x2d6bf2=((_0x5064de=(_0x30cf0f=_0x5ac0bc[_0x414cf3(0x1d4)]()[_0x414cf3(0x3f6)])===null||_0x30cf0f===void 0x0?void 0x0:_0x30cf0f['dataStream'][_0x414cf3(0x42d)])!==null&&_0x5064de!==void 0x0?_0x5064de:0x2)-0x2,_0xfb0a03=(_0x49a920=_0x5307b5===null||_0x5307b5===void 0x0?void 0x0:_0x5307b5['startOffset'])!==null&&_0x49a920!==void 0x0?_0x49a920:_0x47625f?_0x2d6bf2:null;if(_0xfb0a03===null)return;_0x5ac0bc[_0x414cf3(0x312)]([{'startOffset':_0xfb0a03,'endOffset':_0xfb0a03}],![]);},[_0x5ac0bc]),_0x2dd5e2=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x211035=_0x37235f;_0x466137['current']!==null&&(cancelAnimationFrame(_0x466137[_0x211035(0x611)]),_0x466137[_0x211035(0x611)]=null),_0x13b3e2[_0x211035(0x611)]!==null&&(window[_0x211035(0x216)](_0x13b3e2[_0x211035(0x611)]),_0x13b3e2[_0x211035(0x611)]=null);},[]),_0x3609a7=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x2c651a=_0x37235f;var _0x245b88,_0x2e539f,_0x13e3a7;if(!_0x5ac0bc)return;const _0x544ffe=_0x531379[_0x2c651a(0x11a)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x504a6c=_0x544ffe===null||_0x544ffe===void 0x0?void 0x0:_0x544ffe['with'](_univerjs_docs['DocSkeletonManagerService']);if(!_0x504a6c)return;const _0x541e3e=_0x504a6c[_0x2c651a(0x192)](),_0x5cde68=_0xfaa398(),{renderScaleX:_0x2c07b2,renderScaleY:_0x5586b0,scaleAdjust:_0xbf9e4}=_0x548ea4(),_0x37f312=_0x206243(),_0x4c4df0=(_0x245b88=_0x37f312===null||_0x37f312===void 0x0?void 0x0:_0x37f312[_0x2c651a(0x131)])!==null&&_0x245b88!==void 0x0?_0x245b88:_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0xfd)],_0xc5ffed=(_0x2e539f=_0x37f312===null||_0x37f312===void 0x0?void 0x0:_0x37f312[_0x2c651a(0x1a8)])!==null&&_0x2e539f!==void 0x0?_0x2e539f:_univerjs_core[_0x2c651a(0x400)][_0x2c651a(0x63f)],_0x5e5367=(_0x13e3a7=_0x2b1778())!==null&&_0x13e3a7!==void 0x0?_0x13e3a7:{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};_0x5cde68&&(_0x5cde68[_0x2c651a(0x51f)](Math[_0x2c651a(0x47e)](_0x2c07b2,_0x5586b0)),_0x5cde68['updateDocumentStyle']({'pageSize':{'width':_0x5e5367[_0x2c651a(0x3c7)],'height':Infinity}}),_0x5cde68['updateDocumentRenderConfig']({'verticalAlign':_0x4c4df0,'horizontalAlign':_0xc5ffed,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x2c651a(0x302)][_0x2c651a(0x401)]}));_0x541e3e[_0x2c651a(0x5ac)]();const {actualHeight:_0x332ba7}=_0x541e3e[_0x2c651a(0x2b7)](),_0x1bc8cd=_0x5e5367[_0x2c651a(0x613)];let _0x589903=_0x1bc8cd,_0x3b1d4b=0x0;if(_0x332ba7<=_0x1bc8cd){if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x128)])_0x3b1d4b=(_0x1bc8cd-_0x332ba7)/0x2;else{if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x403)])_0x3b1d4b=_0x1bc8cd-_0x332ba7;}_0x589903=_0x1bc8cd,_0x3b88dc({'editorHeight':_0x5e5367[_0x2c651a(0x613)]*_0x20c122,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x31fdbe=0x0;if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)]['MIDDLE'])_0x31fdbe=(_0x1bc8cd-_0x332ba7)/0x2;else{if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x403)])_0x31fdbe=_0x1bc8cd-_0x332ba7;}_0x3b1d4b=0x0,_0x3b88dc({'editorHeight':_0x332ba7*_0x20c122,'marginTop':_0x31fdbe*_0x20c122,'useAbsolutePosition':!![]}),_0x589903=_0x332ba7;}_0x5cde68&&(_0x5cde68['updateDocumentStyle']({'pageSize':{'width':_0x5e5367[_0x2c651a(0x3c7)],'height':_0x589903}}),_0x5cde68['updateDocumentDataMargin']({'t':_0x3b1d4b}),_0x541e3e[_0x2c651a(0x5ac)]());if(_0x544ffe){const _0x1272df=_0x5e5367['width']*_0x56fafb,_0xe2e2b9=_0x589903*_0x20c122;_0x544ffe['scene'][_0x2c651a(0x2b4)]({'width':_0x1272df*_0xbf9e4/_0x2c07b2,'height':_0xe2e2b9*_0xbf9e4/_0x5586b0,'scaleX':_0x2c07b2*_0xbf9e4,'scaleY':_0x5586b0*_0xbf9e4});if(_0x544ffe['mainComponent'])_0x544ffe[_0x2c651a(0x164)]['resize'](_0x1272df*_0xbf9e4/_0x2c07b2,_0xe2e2b9*_0xbf9e4/_0x5586b0);}},[_0x5ac0bc,_0x531379,_0xfaa398,_0x548ea4,_0x206243,_0x2b1778,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122,_0x3b88dc]),_0x57d152=(0x0,react[_0x37235f(0x2f6)])((_0x2b2812=![])=>{const _0x6a582e=_0x37235f;_0x2dd5e2(),_0x466137[_0x6a582e(0x611)]=requestAnimationFrame(()=>{const _0x490658=_0x6a582e;_0x3609a7();if(_0x2b2812)_0x1e1920(![]);_0x466137['current']=null,_0x13b3e2['current']=window[_0x490658(0x4e4)](()=>{const _0x2e3c04=_0x490658;_0x3609a7();if(_0x2b2812)_0x1e1920(![]);_0x13b3e2[_0x2e3c04(0x611)]=null;},0x14);});},[_0x3609a7,_0x2dd5e2,_0x1e1920]);(0x0,react['useEffect'])(()=>{const _0x42aa74=_0x37235f;if(!_0x5ac0bc||!_0x42291f)return;const {shapeId:_0x17b97e,unitId:_0x4e8202,subUnitId:_0xc51d05}=_0x42291f;if(_0x34de67){var _0x5ac385,_0x278f40,_0x5e4684,_0x411c22;const _0x325a88=stripShapeTextDocumentLayout(_0x5ac0bc[_0x42aa74(0x1d4)]()),_0xa8f6f0=_0x206243(),_0x2ed41b={'va':(_0x5ac385=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x131)])!==null&&_0x5ac385!==void 0x0?_0x5ac385:_univerjs_core[_0x42aa74(0x226)][_0x42aa74(0xfd)],'ha':(_0x278f40=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1a8)])!==null&&_0x278f40!==void 0x0?_0x278f40:_univerjs_core[_0x42aa74(0x400)][_0x42aa74(0x63f)],'doc':_0x325a88};_0x167e33[_0x42aa74(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4e8202,'subUnitId':_0xc51d05,'shapeId':_0x17b97e,'shapeData':{'shapeText':{'isHorizontal':(_0x5e4684=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1ed)])!==null&&_0x5e4684!==void 0x0?_0x5e4684:!![],'dataModel':_0x2ed41b}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x411c22=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1ed)])!==null&&_0x411c22!==void 0x0?_0x411c22:!![],'dataModel':_0x447cb7[_0x42aa74(0x611)]}}}});return;}const _0x4ac49b=_0x206243();if(_0x4ac49b===null||_0x4ac49b===void 0x0?void 0x0:_0x4ac49b[_0x42aa74(0x106)]){_0x447cb7['current']={'va':_0x4ac49b[_0x42aa74(0x131)],'ha':_0x4ac49b['horizontalAlign'],'doc':_univerjs_core[_0x42aa74(0x1f7)]['deepClone'](_0x4ac49b['doc'])};const _0xf63c13=prepareShapeTextDocumentData(_0x4ac49b[_0x42aa74(0x106)],{'isHorizontal':!![],'textRect':_0x4ac49b[_0x42aa74(0x481)],'verticalAlign':_0x4ac49b[_0x42aa74(0x131)],'horizontalAlign':_0x4ac49b[_0x42aa74(0x1a8)]});return _0x5ac0bc[_0x42aa74(0x1ae)](_0xf63c13,null),()=>{const _0x2339df=_0x42aa74;var _0x1652e0,_0x48eb19,_0x319100,_0xdf957e;const _0x177397=stripShapeTextDocumentLayout(_0x5ac0bc['getDocumentData']()),_0x23af13=_0x206243(),_0x54f339={'va':(_0x1652e0=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13[_0x2339df(0x131)])!==null&&_0x1652e0!==void 0x0?_0x1652e0:_univerjs_core['VerticalAlign'][_0x2339df(0xfd)],'ha':(_0x48eb19=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13['horizontalAlign'])!==null&&_0x48eb19!==void 0x0?_0x48eb19:_univerjs_core[_0x2339df(0x400)]['LEFT'],'doc':_0x177397};_0x167e33[_0x2339df(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4e8202,'subUnitId':_0xc51d05,'shapeId':_0x17b97e,'shapeData':{'shapeText':{'isHorizontal':(_0x319100=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13[_0x2339df(0x1ed)])!==null&&_0x319100!==void 0x0?_0x319100:!![],'dataModel':_0x54f339}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0xdf957e=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13['isHorizontal'])!==null&&_0xdf957e!==void 0x0?_0xdf957e:!![],'dataModel':_0x447cb7[_0x2339df(0x611)]}}}});};}else _0x5ac0bc[_0x42aa74(0x1ae)](_0x162b9b,null);},[_0x5ac0bc,_0x42291f,_0x34de67]),(0x0,react[_0x37235f(0x551)])(()=>{const _0x1c1117=_0x37235f;if(!_0x5ac0bc||!_0x42291f)return;return _0x386052[_0x1c1117(0x252)](!![]),_0x3609a7(),_0x2f3e74[_0x1c1117(0x611)]=requestAnimationFrame(()=>{const _0x117c4a=_0x1c1117;_0x386052[_0x117c4a(0x517)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x1e1920(),_0x57d152(),_0x2f3e74[_0x117c4a(0x611)]=null;}),()=>{const _0x384a4a=_0x1c1117;_0x2f3e74[_0x384a4a(0x611)]!==null&&(cancelAnimationFrame(_0x2f3e74['current']),_0x2f3e74[_0x384a4a(0x611)]=null),_0x2dd5e2(),_0x386052[_0x384a4a(0x252)](!![]);};},[_0x5ac0bc,_0x42291f,_0x386052,_0x3609a7,_0x1e1920,_0x57d152,_0x2dd5e2]),(0x0,react[_0x37235f(0x551)])(()=>{const _0x23d8a2=_0x37235f;if(!_0x5ac0bc)return;const _0x1bda26=_0x167e33[_0x23d8a2(0x2a8)](_0x6001ff=>{const _0x2afc72=_0x23d8a2;if(_0x6001ff['id']===_univerjs_docs[_0x2afc72(0x50d)]['id']){if(_0x6001ff[_0x2afc72(0x37c)]['unitId']===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x42291f){if(!_0x42291f[_0x2afc72(0x16f)])_0x921ee4[_0x2afc72(0x431)]({..._0x42291f,'visible':!![]});else _0x3609a7();}}}if(_0x6001ff['id']===SetShapeTextVerticalAlignCommand['id'])_0x57d152(!![]);});return()=>{_0x1bda26['dispose']();};},[_0x5ac0bc,_0x3609a7,_0x42291f,_0x57d152,_0x921ee4]),(0x0,react[_0x37235f(0x551)])(()=>{return _0x3609a7(),_0x57d152(),()=>{_0x2dd5e2();};},[_0x3609a7,_0x57d152,_0x2dd5e2]);const _0x29b940=(0x0,react[_0x37235f(0x470)])(()=>{const _0x1689b6=_0x37235f;var _0x47f0d0;const _0xfce8d1=(_0x47f0d0=_0x2b1778())!==null&&_0x47f0d0!==void 0x0?_0x47f0d0:{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122},_0x3e2e40=_0xfce8d1[_0x1689b6(0x450)]*_0x56fafb,_0x531da6=_0xfce8d1['top']*_0x20c122,_0x3adb01=_0xfce8d1[_0x1689b6(0x3c7)]*_0x56fafb;if(_0x3fa36e[_0x1689b6(0x1cc)])return{'top':_0x531da6+_0x3fa36e[_0x1689b6(0x34b)],'left':_0x3e2e40,'width':_0x3adb01,'height':_0x3fa36e[_0x1689b6(0x11d)]};return{'top':_0x531da6,'left':_0x3e2e40,'width':_0x3adb01,'height':_0x3fa36e[_0x1689b6(0x11d)]};},[_0x3fa36e,_0x2b1778,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122]),_0x2e5e96=(0x0,react[_0x37235f(0x470)])(()=>{const _0x23eaf=_0x37235f,_0xb05a90=_0x206243(),_0x44f40b=_0xb05a90===null||_0xb05a90===void 0x0?void 0x0:_0xb05a90[_0x23eaf(0x649)];if(_0x44f40b)return _0x44f40b||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x206243]);return(0x0,react_jsx_runtime[_0x37235f(0x586)])(_0x37235f(0x4b3),{'ref':_0x1d6f36,'data-u-comp':_0x37235f(0x42b),'className':_0x37235f(0x111),'style':{'transform':_0x37235f(0x3e2)+_0x2e5e96['angle']+_0x37235f(0x505)+(_0x2e5e96['flipY']?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x37235f(0x586)])(_0x37235f(0x4b3),{'ref':_0x22ae38,'className':_0x37235f(0x1d1),'data-u-comp':'shape-text-editor-content','style':_0x29b940,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor[_0x48b1be(0x2f2)]=_0x48b1be(0x16b);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x587de8,_0x56b9fa,_0x2bcae4,_0x43f121){const _0x156ca7=_0x48b1be,{scaleX:_0xdc812e,scaleY:_0x86927d}=_0x2bcae4[_0x156ca7(0x426)](),{startColumn:_0x5c1ea9,startRow:_0xc307e1,xSplit:_0x4846f8,ySplit:_0x534208}=_0x43f121[_0x156ca7(0x2fb)][_0x156ca7(0x4e3)](),_0xe0ee96=_0x2bcae4['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x156ca7(0x394)]),_0x1a42cf=_0x2bcae4[_0x156ca7(0x5eb)](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x156ca7(0x2f8)]),_0x48316e=_0x2bcae4[_0x156ca7(0x5eb)](_univerjs_engine_render[_0x156ca7(0x17d)][_0x156ca7(0x127)]),_0x15cf4f=_0x2bcae4['getViewport'](_univerjs_engine_render[_0x156ca7(0x17d)][_0x156ca7(0x5c9)]),{rowHeaderWidth:_0x2e840b,columnHeaderHeight:_0x2f813d}=_0x43f121,_0x4b7e05=_0x43f121[_0x156ca7(0x4f7)](_0xc307e1)+_0x2f813d,_0x42eb41=_0x43f121[_0x156ca7(0x514)](_0x5c1ea9)+_0x2e840b,_0x2f7726=_0x43f121[_0x156ca7(0x4f7)](_0xc307e1-_0x534208)+_0x2f813d,_0xcb149c=_0x43f121[_0x156ca7(0x514)](_0x5c1ea9-_0x4846f8)+_0x2e840b,_0x1d25b8=[],_0xb093b6=(_0x52d1bb,_0xf7547e,_0x4bbe23)=>{if(!_0x52d1bb)return null;const {viewportScrollX:_0x3d2f8f,viewportScrollY:_0x19f3f7}=_0x52d1bb;let _0x379944,_0x253252;if(_0xf7547e)_0x379944=(_0x587de8-(_0xcb149c-_0x2e840b))*_0xdc812e;else _0x379944=(_0x587de8-_0x3d2f8f)*_0xdc812e;if(_0x4bbe23)_0x253252=(_0x56b9fa-(_0x2f7726-_0x2f813d))*_0x86927d;else _0x253252=(_0x56b9fa-_0x19f3f7)*_0x86927d;return{'domX':_0x379944,'domY':_0x253252};},_0x3b47b8=_0x587de8<_0x42eb41&&_0x4846f8>0x0,_0x40cdef=_0x56b9fa<_0x4b7e05&&_0x534208>0x0,_0x3fb76d=_0x587de8>=_0x42eb41||_0x4846f8===0x0,_0x55f368=_0x56b9fa>=_0x4b7e05||_0x534208===0x0;if(_0x3b47b8&&_0x40cdef&&_0x1a42cf){const _0xce358a=_0xb093b6(_0x1a42cf,!![],!![]);if(_0xce358a)_0x1d25b8['push'](_0xce358a);}if(_0x40cdef&&_0x3fb76d&&_0x48316e){const _0x50bd56=_0xb093b6(_0x48316e,![],!![]);if(_0x50bd56)_0x1d25b8[_0x156ca7(0x5ed)](_0x50bd56);}if(_0x3b47b8&&_0x55f368&&_0x15cf4f){const _0x504c45=_0xb093b6(_0x15cf4f,!![],![]);if(_0x504c45)_0x1d25b8['push'](_0x504c45);}if(_0x3fb76d&&_0x55f368&&_0xe0ee96){const _0x37c212=_0xb093b6(_0xe0ee96,![],![]);if(_0x37c212)_0x1d25b8[_0x156ca7(0x5ed)](_0x37c212);}if(_0x1d25b8[_0x156ca7(0x42d)]===0x0){var _0x421798,_0x4bc975;return{'domX':(_0x587de8-((_0x421798=_0xe0ee96===null||_0xe0ee96===void 0x0?void 0x0:_0xe0ee96['viewportScrollX'])!==null&&_0x421798!==void 0x0?_0x421798:0x0))*_0xdc812e,'domY':(_0x56b9fa-((_0x4bc975=_0xe0ee96===null||_0xe0ee96===void 0x0?void 0x0:_0xe0ee96[_0x156ca7(0x59a)])!==null&&_0x4bc975!==void 0x0?_0x4bc975:0x0))*_0x86927d};}let _0x3cd204=_0x1d25b8[0x0][_0x156ca7(0x60f)],_0x52d102=_0x1d25b8[0x0][_0x156ca7(0x584)];for(const _0x12a381 of _0x1d25b8){if(_0x12a381[_0x156ca7(0x60f)]>_0x3cd204)_0x3cd204=_0x12a381[_0x156ca7(0x60f)];if(_0x12a381[_0x156ca7(0x584)]>_0x52d102)_0x52d102=_0x12a381[_0x156ca7(0x584)];}return{'domX':_0x3cd204,'domY':_0x52d102};}function calcShapePosition(_0x4a357b,_0x1fc890,_0x84b43,_0x510b35,_0x5cdcd9,_0x57ce64,_0x5b81d4){const {scaleX:_0x32f3b3,scaleY:_0x74b1de}=_0x57ce64['getAncestorScale'](),{domX:_0x214932,domY:_0x47629d}=calcBestDOMPositionForFreezeZones(_0x4a357b,_0x1fc890,_0x57ce64,_0x5b81d4);return{'left':_0x214932,'top':_0x47629d,'width':_0x84b43*_0x32f3b3,'height':_0x510b35*_0x74b1de,'angle':_0x5cdcd9,'scaleX':_0x32f3b3,'scaleY':_0x74b1de};}function useShapePosition(_0x4a81db){const _0x32f569=_0x48b1be,{editingParams:_0x4c2848,scene:_0x24cd30,skeleton:_0x545e01,getShapeTransform:_0x4ba268}=_0x4a81db,[_0x2c923f,_0x36ca86]=(0x0,react[_0x32f569(0x47b)])(DEFAULT_HIDDEN_POSITION),_0x442930=(0x0,react['useRef'])(_0x2c923f);_0x442930[_0x32f569(0x611)]=_0x2c923f;const _0x77ce2b=(0x0,react[_0x32f569(0x2f6)])(()=>{const _0x978b82=_0x32f569;if(!_0x4c2848||!_0x24cd30||!_0x545e01){if(_0x442930[_0x978b82(0x611)]!==DEFAULT_HIDDEN_POSITION)_0x36ca86(DEFAULT_HIDDEN_POSITION);return;}const _0x14f976=_0x4ba268();if(!_0x14f976){if(_0x442930[_0x978b82(0x611)]!==DEFAULT_HIDDEN_POSITION)_0x36ca86(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x534835,top:_0x37455e,width:_0x5abbd2,height:_0x20b4c6,angle:_0x166645}=_0x14f976;if(!_0x4c2848['visible']){const {scaleX:_0x40686d,scaleY:_0x2502fd}=_0x24cd30[_0x978b82(0x426)]();_0x36ca86({'left':-0x270f,'top':-0x270f,'width':_0x5abbd2*_0x40686d,'height':_0x20b4c6*_0x2502fd,'angle':0x0,'scaleX':_0x40686d,'scaleY':_0x2502fd});return;}_0x36ca86(calcShapePosition(_0x534835,_0x37455e,_0x5abbd2,_0x20b4c6,_0x166645,_0x24cd30,_0x545e01));},[_0x4c2848,_0x24cd30,_0x545e01,_0x4ba268]);return(0x0,react['useEffect'])(()=>{_0x77ce2b();},[_0x4c2848,_0x77ce2b]),{'position':_0x2c923f,'updatePosition':_0x77ce2b};}const ShapePositionWrapper=(0x0,react[_0x48b1be(0x1dd)])(_0x5ede11=>{const _0x487ce6=_0x48b1be,{children:_0x5acf2a,onPositionUpdate:_0x4880ea}=_0x5ede11,_0x18dcf2=(0x0,react[_0x487ce6(0x540)])(null),_0x3ca181=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x284480=(0x0,_univerjs_ui['useDependency'])(_univerjs_engine_render[_0x487ce6(0x1df)]),_0x4b79ee=(0x0,_univerjs_ui[_0x487ce6(0x305)])(_0x3ca181[_0x487ce6(0x264)]),_0x1ae56a=(0x0,react['useMemo'])(()=>{const _0x3a8f9d=_0x487ce6;if(!_0x4b79ee)return null;return _0x284480[_0x3a8f9d(0x11a)](_0x4b79ee['unitId']);},[_0x4b79ee,_0x284480]),_0x2eea99=(0x0,react[_0x487ce6(0x470)])(()=>{const _0x311449=_0x487ce6;var _0x1cdee2;return(_0x1cdee2=_0x1ae56a===null||_0x1ae56a===void 0x0?void 0x0:_0x1ae56a[_0x311449(0x1cf)])!==null&&_0x1cdee2!==void 0x0?_0x1cdee2:null;},[_0x1ae56a]),{position:_0x3beb1d,updatePosition:_0x1b9208}=useShapePosition({'editingParams':_0x4b79ee,'scene':_0x2eea99,'skeleton':(0x0,react[_0x487ce6(0x470)])(()=>{const _0x4ebbfe=_0x487ce6;var _0x5b29af,_0x360979;if(!_0x4b79ee||!_0x1ae56a)return null;return(_0x5b29af=(_0x360979=_0x1ae56a[_0x4ebbfe(0x26a)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x4ebbfe(0x21e)](_0x4b79ee[_0x4ebbfe(0x4dc)]))===null||_0x360979===void 0x0?void 0x0:_0x360979[_0x4ebbfe(0x110)])!==null&&_0x5b29af!==void 0x0?_0x5b29af:null;},[_0x4b79ee,_0x1ae56a]),'getShapeTransform':(0x0,react[_0x487ce6(0x2f6)])(()=>{const _0x4a6c83=_0x487ce6;if(!_0x4b79ee||!_0x2eea99)return null;const _0x5b1871=_0x4b79ee[_0x4a6c83(0x397)],_0xbfbc9c=_0x2eea99['getObject'](_0x5b1871);if(_0xbfbc9c instanceof DrawingShape)return{'left':_0xbfbc9c[_0x4a6c83(0x450)],'top':_0xbfbc9c[_0x4a6c83(0x566)],'width':_0xbfbc9c[_0x4a6c83(0x3c7)],'height':_0xbfbc9c['height'],'angle':_0xbfbc9c[_0x4a6c83(0x2ed)]};return null;},[_0x4b79ee,_0x2eea99])}),_0x5200aa=(0x0,react[_0x487ce6(0x2f6)])(()=>{const _0x13f8a0=_0x487ce6,_0x84ca8=_0x18dcf2[_0x13f8a0(0x611)];if(!_0x84ca8)return;_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x450)]=_0x3beb1d[_0x13f8a0(0x450)]+'px',_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x566)]=_0x3beb1d[_0x13f8a0(0x566)]+'px',_0x84ca8[_0x13f8a0(0x21d)]['width']=_0x3beb1d[_0x13f8a0(0x3c7)]+'px',_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x613)]=_0x3beb1d[_0x13f8a0(0x613)]+'px';},[_0x3beb1d]);return(0x0,react[_0x487ce6(0x551)])(()=>{const _0x1370e0=_0x487ce6;_0x5200aa(),_0x4880ea===null||_0x4880ea===void 0x0||_0x4880ea({'width':_0x3beb1d[_0x1370e0(0x3c7)],'height':_0x3beb1d['height'],'scaleX':_0x3beb1d[_0x1370e0(0x58e)],'scaleY':_0x3beb1d[_0x1370e0(0x443)]});},[_0x3beb1d,_0x5200aa,_0x4880ea]),(0x0,react[_0x487ce6(0x551)])(()=>{const _0x430c69=_0x487ce6;if(!_0x2eea99)return;const _0x25036c=_0x2eea99['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x430c69(0x394)]);if(!_0x25036c)return;const _0x3f1af7=_0x25036c[_0x430c69(0x4d7)][_0x430c69(0x595)](()=>{_0x1b9208();});return()=>{const _0x381e2b=_0x430c69;_0x3f1af7[_0x381e2b(0x4e2)]();};},[_0x2eea99,_0x1b9208]),(0x0,react[_0x487ce6(0x551)])(()=>{const _0x1df417=_0x487ce6;if(!_0x4b79ee||!_0x2eea99)return;const _0x5d6321=_0x4b79ee['shapeKey'],_0x33e60c=_0x2eea99[_0x1df417(0x390)](_0x5d6321);if(_0x33e60c instanceof DrawingShape){const _0x4ba319=_0x33e60c[_0x1df417(0x4bc)][_0x1df417(0x595)](()=>{_0x1b9208();});return()=>{const _0x326948=_0x1df417;_0x4ba319[_0x326948(0x4e2)]();};}},[_0x4b79ee,_0x2eea99,_0x1b9208]),(0x0,react_jsx_runtime['jsx'])(_0x487ce6(0x4b3),{'ref':_0x18dcf2,'data-u-comp':'shape-text-editor-position-wrapper','className':_0x487ce6(0x344),'style':(0x0,react[_0x487ce6(0x470)])(()=>({'left':_0x3beb1d[_0x487ce6(0x450)],'top':_0x3beb1d[_0x487ce6(0x566)],'width':_0x3beb1d[_0x487ce6(0x3c7)],'height':_0x3beb1d['height'],'pointerEvents':(_0x4b79ee===null||_0x4b79ee===void 0x0?void 0x0:_0x4b79ee[_0x487ce6(0x16f)])?_0x487ce6(0x10b):_0x487ce6(0x40e)}),[_0x3beb1d,_0x4b79ee===null||_0x4b79ee===void 0x0?void 0x0:_0x4b79ee[_0x487ce6(0x16f)]]),'children':_0x5acf2a});});ShapePositionWrapper['displayName']=_0x48b1be(0x3c4);const ShapeTextEditorContainer=(0x0,react['memo'])(()=>{const _0x3f70cf=_0x48b1be,_0x4361b5=(0x0,_univerjs_ui[_0x3f70cf(0x305)])((0x0,_univerjs_ui[_0x3f70cf(0x425)])(ShapeTextEditingService)[_0x3f70cf(0x264)]),[_0xe0273d,_0x4360f0]=(0x0,react[_0x3f70cf(0x47b)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x4fe85c=(0x0,react[_0x3f70cf(0x2f6)])(_0x437881=>{const _0x9ffb70=_0x3f70cf;_0x4360f0({'width':_0x437881[_0x9ffb70(0x3c7)],'height':_0x437881[_0x9ffb70(0x613)],'scaleX':_0x437881[_0x9ffb70(0x58e)],'scaleY':_0x437881['scaleY']});},[]);if(!(_0x4361b5===null||_0x4361b5===void 0x0?void 0x0:_0x4361b5[_0x3f70cf(0x16f)]))return null;return(0x0,react_jsx_runtime[_0x3f70cf(0x586)])(ShapePositionWrapper,{'onPositionUpdate':_0x4fe85c,'children':(0x0,react_jsx_runtime[_0x3f70cf(0x586)])(ShapeEditor,{'containerWidth':_0xe0273d[_0x3f70cf(0x3c7)],'containerHeight':_0xe0273d[_0x3f70cf(0x613)],'scaleX':_0xe0273d[_0x3f70cf(0x58e)],'scaleY':_0xe0273d[_0x3f70cf(0x443)]})});});ShapeTextEditorContainer[_0x48b1be(0x2f2)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x48b1be(0x667)]{constructor(_0x1932a6=defaultPluginConfig,_0x4cf7fa,_0x43f79f,_0x50051a,_0x2f8fbc){const _0xc7ed99=_0x48b1be;super(),this[_0xc7ed99(0x547)]=_0x1932a6,this[_0xc7ed99(0x626)]=_0x4cf7fa,this['_commandService']=_0x43f79f,this['_configService']=_0x50051a,this[_0xc7ed99(0x1cb)]=_0x2f8fbc;const {..._0x31aa21}=(0x0,_univerjs_core[_0xc7ed99(0x436)])({},defaultPluginConfig,this[_0xc7ed99(0x547)]);this['_configService'][_0xc7ed99(0x51e)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x31aa21),this[_0xc7ed99(0x559)]();}[_0x48b1be(0x62e)](){const _0x3004a4=_0x48b1be;(0x0,_univerjs_core[_0x3004a4(0x64b)])(this[_0x3004a4(0x626)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x48b1be(0x152)](){const _0x3e2737=_0x48b1be;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x3e2737(0x4e1)](_0x567901=>this[_0x3e2737(0x626)][_0x3e2737(0x511)](_0x567901)),(0x0,_univerjs_core['touchDependencies'])(this[_0x3e2737(0x626)],[[SheetShapeClipboardController]]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core['UniverInstanceType'][_0x3e2737(0x5a6)],[SheetBasicShapeConnectionPointController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[SheetShapeAdjustController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[ImageClipAdjustController]),this[_0x3e2737(0x1cb)]['registerRenderModule'](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[SheetShapeConnectorController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[ShapeTextEditingRenderController]);}[_0x48b1be(0x5d1)](){const _0x36fa77=_0x48b1be,_0xec942c=this[_0x36fa77(0x626)];_0xec942c['get'](_univerjs_ui[_0x36fa77(0x63d)])[_0x36fa77(0x130)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x36fa77(0x4e1)](_0xcd1522=>_0xec942c[_0x36fa77(0x511)](_0xcd1522)),(0x0,_univerjs_core[_0x36fa77(0x64b)])(this[_0x36fa77(0x626)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x48b1be(0x559)](){const _0x91da2d=_0x48b1be;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x91da2d(0x4e1)](_0x2f6d09=>this['disposeWithMe'](this[_0x91da2d(0x1c8)][_0x91da2d(0x402)](_0x2f6d09)));}};_defineProperty(UniverSheetsShapeUIPlugin,'type',_univerjs_core[_0x48b1be(0x617)][_0x48b1be(0x5a6)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x56c),_0x48b1be(0x441)),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x367),name),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x459),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x48b1be(0x4bb)])(_univerjs_sheets_drawing_ui[_0x48b1be(0x383)],_univerjs_pro_sheets_shape[_0x48b1be(0x3b1)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x48b1be(0x621)]),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x3d8)]),__decorateParam(0x4,_univerjs_engine_render[_0x48b1be(0x1df)])],UniverSheetsShapeUIPlugin),exports[_0x48b1be(0x429)]=SetShapeTextFontSizeCommand,exports[_0x48b1be(0x3b7)]=SetShapeTextFontSizeDecreaseCommand,exports[_0x48b1be(0x576)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x48b1be(0x2a7)]=SetShapeTextHorizontalAlignCommand,exports[_0x48b1be(0x1de)]=SetShapeTextVerticalAlignCommand,exports['ShapeDocAlignCommand']=ShapeDocAlignCommand,Object['defineProperty'](exports,_0x48b1be(0x5a9),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object['defineProperty'](exports,_0x48b1be(0x5f2),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x48b1be(0x5f9)]=UpdateShapeDataCommand;