@univerjs-pro/sheets-shape-ui 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/sheets-shape-ui.controller.d.ts +15 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/utils/shape-text-document.d.ts +11 -0
- package/lib/types/view-model/shape-data-model.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1706e4=_0x3d6a;(function(_0x4568b4,_0x3c0ca7){const _0x319f94=_0x3d6a,_0x504d35=_0x4568b4();while(!![]){try{const _0x5db1f1=-parseInt(_0x319f94(0x44f))/0x1+-parseInt(_0x319f94(0x2d7))/0x2+-parseInt(_0x319f94(0x5ab))/0x3+parseInt(_0x319f94(0x248))/0x4*(-parseInt(_0x319f94(0x24b))/0x5)+-parseInt(_0x319f94(0x125))/0x6+parseInt(_0x319f94(0x2b6))/0x7*(parseInt(_0x319f94(0x4a3))/0x8)+parseInt(_0x319f94(0x498))/0x9*(parseInt(_0x319f94(0x474))/0xa);if(_0x5db1f1===_0x3c0ca7)break;else _0x504d35['push'](_0x504d35['shift']());}catch(_0x3fd83f){_0x504d35['push'](_0x504d35['shift']());}}}(_0x3aa8,0xf2791),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));var e=Object['create'],t=Object['defineProperty'],n=Object[_0x1706e4(0x33a)],r=Object[_0x1706e4(0x1ec)],i=Object[_0x1706e4(0x545)],a=Object[_0x1706e4(0x17f)]['hasOwnProperty'],o=(_0x4bb5b0,_0x15f390,_0x48ca4a,_0x27f649)=>{const _0x47be8e=_0x1706e4;if(_0x15f390&&typeof _0x15f390=='object'||typeof _0x15f390==_0x47be8e(0x492)){for(var _0x472442=r(_0x15f390),_0x2a4387=0x0,_0x5722e1=_0x472442[_0x47be8e(0xa5)],_0x12affb;_0x2a4387<_0x5722e1;_0x2a4387++)_0x12affb=_0x472442[_0x2a4387],!a[_0x47be8e(0xab)](_0x4bb5b0,_0x12affb)&&_0x12affb!==_0x48ca4a&&t(_0x4bb5b0,_0x12affb,{'get':(_0x1bb8b7=>_0x15f390[_0x1bb8b7])[_0x47be8e(0x4a6)](null,_0x12affb),'enumerable':!(_0x27f649=n(_0x15f390,_0x12affb))||_0x27f649[_0x47be8e(0x274)]});}return _0x4bb5b0;},s=(_0x4e3a99,_0x150519,_0xa8e6cb)=>(_0xa8e6cb=_0x4e3a99==null?{}:e(i(_0x4e3a99)),o(_0x150519||!_0x4e3a99||!_0x4e3a99[_0x1706e4(0x5b7)]?t(_0xa8e6cb,'default',{'value':_0x4e3a99,'enumerable':!0x0}):_0xa8e6cb,_0x4e3a99));let c=require(`@univerjs-pro/sheets-shape`),l=require(`@univerjs/core`),u=require(`@univerjs/drawing`),d=require(`@univerjs/engine-render`),f=require(`rxjs`),p=require(`@univerjs/sheets`),m=require(`@univerjs/sheets-drawing`),h=require(`@univerjs/docs-ui`),g=require(`@univerjs/icons`),_=require(`@univerjs/sheets-ui`),v=require(`@univerjs/ui`),y=require(`@univerjs-pro/engine-shape`),b=require(`@univerjs/design`),x=require(`react`);x=s(x);let S=require(`@univerjs/drawing-ui`),C=require(`react/jsx-runtime`),w=require(`@univerjs/sheets-drawing-ui`),T=require(`@univerjs/docs`);function E(_0x2d77f2){'@babel/helpers - typeof';const _0x2566fd=_0x1706e4;return E=typeof Symbol==_0x2566fd(0x492)&&typeof Symbol['iterator']=='symbol'?function(_0x5d65ca){return typeof _0x5d65ca;}:function(_0x5e0da8){const _0x198e3b=_0x2566fd;return _0x5e0da8&&typeof Symbol==_0x198e3b(0x492)&&_0x5e0da8['constructor']===Symbol&&_0x5e0da8!==Symbol[_0x198e3b(0x17f)]?_0x198e3b(0x4dc):typeof _0x5e0da8;},E(_0x2d77f2);}function D(_0x33536c,_0x5e1967){const _0x25d651=_0x1706e4;if(E(_0x33536c)!=_0x25d651(0x31b)||!_0x33536c)return _0x33536c;var _0x5f0424=_0x33536c[Symbol['toPrimitive']];if(_0x5f0424!==void 0x0){var _0x2e40b2=_0x5f0424[_0x25d651(0xab)](_0x33536c,_0x5e1967||_0x25d651(0x5ec));if(E(_0x2e40b2)!=_0x25d651(0x31b))return _0x2e40b2;throw TypeError(_0x25d651(0x5e8));}return(_0x5e1967==='string'?String:Number)(_0x33536c);}function O(_0x29fc11){const _0x2bc374=_0x1706e4;var _0x15b6fb=D(_0x29fc11,_0x2bc374(0x315));return E(_0x15b6fb)==_0x2bc374(0x4dc)?_0x15b6fb:_0x15b6fb+'';}function k(_0x1f958f,_0x2f956b,_0x3c28c0){const _0x5627c0=_0x1706e4;return(_0x2f956b=O(_0x2f956b))in _0x1f958f?Object[_0x5627c0(0x407)](_0x1f958f,_0x2f956b,{'value':_0x3c28c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f958f[_0x2f956b]=_0x3c28c0,_0x1f958f;}var A=class extends l[_0x1706e4(0x40c)]{constructor(..._0x3a19f7){const _0x5338f3=_0x1706e4;super(..._0x3a19f7),k(this,_0x5338f3(0x587),new f['BehaviorSubject'](null)),k(this,_0x5338f3(0x2aa),this[_0x5338f3(0x587)][_0x5338f3(0xc2)]()),k(this,_0x5338f3(0x39e),new f[(_0x5338f3(0x2b1))](!0x1)),k(this,_0x5338f3(0x392),this['_onSavingEditorData$'][_0x5338f3(0xc2)]());}[_0x1706e4(0x2b8)](){const _0x304922=_0x1706e4;this[_0x304922(0x587)]['next'](null),this[_0x304922(0x587)]['complete'](),this[_0x304922(0x39e)][_0x304922(0x593)](!0x1),this[_0x304922(0x39e)][_0x304922(0x2b2)](),super[_0x304922(0x2b8)]();}['setEditing'](_0x1b72c3){const _0x4d69ff=_0x1706e4;this['_editingParams$'][_0x4d69ff(0x593)](_0x1b72c3),_0x1b72c3==null&&this[_0x4d69ff(0x39e)]['next'](!0x1);}[_0x1706e4(0x597)](_0x50224d){const _0x87bb4c=_0x1706e4;this[_0x87bb4c(0x39e)]['next'](_0x50224d);}[_0x1706e4(0x15b)](){const _0x174e2a=_0x1706e4;return this[_0x174e2a(0x587)][_0x174e2a(0x55a)]();}};function j(_0x230941,_0x227b00){const _0x412d7d=_0x1706e4;let _0x45da1a={};for(let _0x49107d of Object['keys'](_0x227b00)){let _0x658b2f=_0x227b00[_0x49107d],_0x5de4c2=_0x230941[_0x49107d];if(_0x658b2f!==void 0x0){if(_0x5de4c2===void 0x0){_0x45da1a[_0x49107d]=void 0x0;continue;}typeof _0x658b2f==_0x412d7d(0x31b)&&_0x658b2f&&!Array[_0x412d7d(0x434)](_0x658b2f)&&typeof _0x5de4c2==_0x412d7d(0x31b)&&_0x5de4c2&&!Array['isArray'](_0x5de4c2)?_0x45da1a[_0x49107d]=j(_0x5de4c2,_0x658b2f):_0x45da1a[_0x49107d]=_0x5de4c2;}}return _0x45da1a;}const M={'type':l[_0x1706e4(0xea)][_0x1706e4(0x537)],'id':_0x1706e4(0x29c),'handler':(_0x424036,_0x5da938)=>{const _0x1c68d6=_0x1706e4;let _0x4d6bec=_0x424036[_0x1c68d6(0x148)](c['SheetsShapeService']),{unitId:_0x508040,subUnitId:_0x3ff6fc,shapeType:_0x42cb5c,shapeId:_0x565b06,shapeData:_0x687cc8,oldShapeJSON:_0x4e4adc}=_0x5da938;if(!_0x4d6bec[_0x1c68d6(0xc3)](_0x508040,_0x3ff6fc,_0x565b06))return!0x1;let _0x298271=_0x424036[_0x1c68d6(0x148)](l['ICommandService']),_0x589977=_0x424036[_0x1c68d6(0x148)](l[_0x1c68d6(0x2c5)]),{oldShapeType:_0x29ec63,oldShapeData:_0x2e974d={}}=_0x4e4adc,_0x4effd5=j(_0x2e974d,_0x687cc8||{}),_0x154696={'id':c['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x508040,'subUnitId':_0x3ff6fc,'shapeId':_0x565b06,'shapeType':_0x42cb5c,'shapeData':_0x687cc8}},_0x289d22={'id':c[_0x1c68d6(0x5a2)]['id'],'params':{'unitId':_0x508040,'subUnitId':_0x3ff6fc,'shapeId':_0x565b06,'shapeType':_0x29ec63,'shapeData':_0x4effd5}};return _0x298271[_0x1c68d6(0x5f0)](_0x154696['id'],_0x154696['params'])?(_0x589977['pushUndoRedo']({'unitID':_0x508040,'undoMutations':[_0x289d22],'redoMutations':[_0x154696]}),!0x0):!0x1;}},N={'type':l[_0x1706e4(0xea)][_0x1706e4(0x537)],'id':'sheet.command.set-shape-text-font-size','handler':async(_0x439517,_0x519a32)=>{const _0x50cf8a=_0x1706e4;if(!_0x519a32)return!0x1;let {value:_0x3c4c8a}=_0x519a32,_0x130ee6=_0x439517[_0x50cf8a(0x148)](l[_0x50cf8a(0x41c)]),_0x259235=_0x439517[_0x50cf8a(0x148)](A),_0x359624=_0x439517[_0x50cf8a(0x148)](c[_0x50cf8a(0xbf)]),_0x1c6b7a=_0x439517[_0x50cf8a(0x148)](d[_0x50cf8a(0x4e3)]),_0x246161=_0x259235[_0x50cf8a(0x15b)]();if(!_0x246161)return!0x1;let {unitId:_0x53ce09,subUnitId:_0x5eb93e,shapeId:_0x262906}=_0x246161,_0x51f500=_0x359624['getShapeModel'](_0x53ce09,_0x5eb93e,_0x262906);if(!_0x51f500)return!0x1;let _0xceeadb=_0x51f500[_0x50cf8a(0x48a)]();if(!_0xceeadb||!('dataModel'in _0xceeadb))return!0x1;let _0x122acf=_0xceeadb[_0x50cf8a(0x1c5)];if(!_0x122acf)return!0x1;let _0x32f65e={..._0x122acf,'fs':_0x3c4c8a},_0x139182=await _0x130ee6[_0x50cf8a(0x49e)](M['id'],{'unitId':_0x53ce09,'subUnitId':_0x5eb93e,'shapeId':_0x262906,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x32f65e}}});if(_0x139182){let _0x2f8fcf=_0x1c6b7a[_0x50cf8a(0x513)](_0x53ce09);if(_0x2f8fcf!=null&&_0x2f8fcf['scene']){let _0x547de2=(0x0,u[_0x50cf8a(0xf6)])({'unitId':_0x53ce09,'subUnitId':_0x5eb93e,'drawingId':_0x262906}),_0x260b74=_0x2f8fcf[_0x50cf8a(0x2c7)][_0x50cf8a(0x26b)](_0x547de2);_0x260b74&&_0x260b74['makeDirty'](!0x0);}}return _0x139182;}},P={'type':l['CommandType'][_0x1706e4(0x537)],'id':_0x1706e4(0x1d8),'handler':async _0x56af67=>{const _0x495a8b=_0x1706e4;var _0x4bcce3;let _0x22bf33=_0x56af67[_0x495a8b(0x148)](A),_0x415286=_0x56af67[_0x495a8b(0x148)](c[_0x495a8b(0xbf)]),_0x3f038a=_0x56af67[_0x495a8b(0x148)](l['ICommandService']),_0x30decd=_0x22bf33['getEditing']();if(!_0x30decd)return!0x1;let {unitId:_0x491c97,subUnitId:_0x464c11,shapeId:_0x6e8234}=_0x30decd,_0x1e972b=_0x415286[_0x495a8b(0xc3)](_0x491c97,_0x464c11,_0x6e8234);if(!_0x1e972b)return!0x1;let _0x302be9=_0x1e972b['getShapeTextData']();if(!_0x302be9||!(_0x495a8b(0x1c5)in _0x302be9))return!0x1;let _0x37b4f1=_0x302be9[_0x495a8b(0x1c5)],_0xdce0e=(_0x4bcce3=_0x37b4f1==null?void 0x0:_0x37b4f1['fs'])==null?0xe:_0x4bcce3,_0x321db3=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x1753a4=_0xdce0e,_0x294061=_0x321db3[_0x495a8b(0x130)](_0xdce0e);return _0x294061!==-0x1&&_0x294061<_0x321db3[_0x495a8b(0xa5)]-0x1?_0x1753a4=_0x321db3[_0x294061+0x1]:_0x294061===-0x1&&(_0x1753a4=Math[_0x495a8b(0x50a)](_0xdce0e)+0x1),_0x3f038a[_0x495a8b(0x49e)](N['id'],{'value':_0x1753a4});}},ee={'type':l[_0x1706e4(0xea)][_0x1706e4(0x537)],'id':_0x1706e4(0x14d),'handler':async _0x3fb1b6=>{const _0x512b6a=_0x1706e4;var _0x1d6ac6;let _0x48d67e=_0x3fb1b6[_0x512b6a(0x148)](A),_0x4a11d3=_0x3fb1b6['get'](c['SheetsShapeService']),_0x5d6cbe=_0x3fb1b6[_0x512b6a(0x148)](l['ICommandService']),_0x33db84=_0x48d67e['getEditing']();if(!_0x33db84)return!0x1;let {unitId:_0xa6be68,subUnitId:_0x38582a,shapeId:_0x2d2a41}=_0x33db84,_0x4bfaea=_0x4a11d3['getShapeModel'](_0xa6be68,_0x38582a,_0x2d2a41);if(!_0x4bfaea)return!0x1;let _0x1bdd9e=_0x4bfaea[_0x512b6a(0x48a)]();if(!_0x1bdd9e||!('dataModel'in _0x1bdd9e))return!0x1;let _0x39e8e6=_0x1bdd9e[_0x512b6a(0x1c5)],_0x3d1b21=(_0x1d6ac6=_0x39e8e6==null?void 0x0:_0x39e8e6['fs'])==null?0xe:_0x1d6ac6,_0x5a833b=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x3d2426=_0x3d1b21,_0x3f254d=_0x5a833b[_0x512b6a(0x130)](_0x3d1b21);return _0x3f254d!==-0x1&&_0x3f254d>0x0?_0x3d2426=_0x5a833b[_0x3f254d-0x1]:_0x3f254d===-0x1&&(_0x3d2426=Math[_0x512b6a(0x50a)](_0x3d1b21)-0x1),_0x3d2426<0x1&&(_0x3d2426=0x1),_0x5d6cbe[_0x512b6a(0x49e)](N['id'],{'value':_0x3d2426});}},F={'type':l[_0x1706e4(0xea)][_0x1706e4(0x537)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x5cb87b,_0xa1323e)=>{const _0xf62638=_0x1706e4;if(!(0x0,p[_0xf62638(0x154)])(_0x5cb87b['get'](l[_0xf62638(0x508)])))return!0x1;let _0x42bbb3=_0x5cb87b[_0xf62638(0x148)](m['ISheetDrawingService'])[_0xf62638(0x4cf)]()[_0xf62638(0x4be)](_0xea73bc=>_0xea73bc[_0xf62638(0x2bf)]===l[_0xf62638(0x55c)][_0xf62638(0x31d)]);if(_0x42bbb3[_0xf62638(0xa5)]!==0x1)return!0x1;let _0x48f2a9=_0x5cb87b[_0xf62638(0x148)](A)[_0xf62638(0x15b)](),_0x2b6039=(_0x48f2a9==null?void 0x0:_0x48f2a9[_0xf62638(0xd8)])||_0x42bbb3[0x0]['unitId'],_0x4d92d5=(_0x48f2a9==null?void 0x0:_0x48f2a9[_0xf62638(0x2b5)])||_0x42bbb3[0x0][_0xf62638(0x2b5)],_0x4b3923=(_0x48f2a9==null?void 0x0:_0x48f2a9[_0xf62638(0x3e8)])||_0x42bbb3[0x0]['drawingId'],_0x40a269=_0x5cb87b['get'](c['SheetsShapeService'])[_0xf62638(0xc3)](_0x2b6039,_0x4d92d5,_0x4b3923);if(!_0x40a269)return!0x1;let _0x1864c8=_0x40a269['getShapeTextData']();if(!_0x1864c8||!('dataModel'in _0x1864c8))return!0x1;let _0x2db3ce=_0x5cb87b['get'](l[_0xf62638(0x41c)]),{value:_0x1fbaf7}=_0xa1323e,_0x40c400=_0x40a269[_0xf62638(0x1e3)](),_0x2e042d=_0x40a269[_0xf62638(0x2a8)](),_0x45c24f={..._0x1864c8[_0xf62638(0x1c5)],'va':_0x1fbaf7};return await _0x2db3ce['executeCommand'](M['id'],{'unitId':_0x2b6039,'subUnitId':_0x4d92d5,'shapeId':_0x4b3923,'shapeType':_0x40c400,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x45c24f}},'oldShapeJSON':{'oldShapeType':_0x40c400,'oldShapeData':_0x2e042d}});}},I={'type':l[_0x1706e4(0xea)][_0x1706e4(0x537)],'id':'sheet.command.shape-doc-align','handler':(_0xd0dafb,_0x111ea5)=>{const _0x3fadd7=_0x1706e4;if(!_0x111ea5)return!0x1;let {value:_0x484367}=_0x111ea5;return _0xd0dafb[_0x3fadd7(0x148)](l[_0x3fadd7(0x41c)])[_0x3fadd7(0x5f0)](h[_0x3fadd7(0x437)]['id'],{'alignType':_0x484367});}},te={'type':l[_0x1706e4(0xea)][_0x1706e4(0x5f4)],'id':_0x1706e4(0xee),'handler'(){return!0x0;}},L={'type':l[_0x1706e4(0xea)][_0x1706e4(0x5f4)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},ne='sheet.shape.edit.panel',R=(0x0,l['createInternalEditorID'])(_0x1706e4(0x4e5));function z(_0x2d72b2,_0x565d,_0x3fb276,_0x56fa62,_0x4dc240,_0x331205){let _0x228fbb={'unitId':_0x565d,'subUnitId':_0x3fb276,'shapeId':_0x56fa62,'shapeData':_0x331205,'oldShapeJSON':_0x4dc240};return _0x2d72b2['executeCommand'](M['id'],_0x228fbb);}function re(_0x4fc5c9,_0x42abe2,_0x3c79c0,_0x21151b,_0x5dd75c,_0x288f2d){const _0x432338=_0x1706e4;let _0x4936e5={'unitId':_0x42abe2,'subUnitId':_0x3c79c0,'shapeId':_0x21151b,'shapeData':_0x288f2d,'oldShapeJSON':_0x5dd75c};return _0x4fc5c9[_0x432338(0x49e)](M['id'],_0x4936e5);}var B=class extends d['Shape']{constructor(_0x54f6b4,_0x488d93){const _0x5100a2=_0x1706e4;super(_0x54f6b4,_0x488d93),k(this,_0x5100a2(0x39a),void 0x0),k(this,_0x5100a2(0x384),!0x0),k(this,_0x5100a2(0x45b),l[_0x5100a2(0x55c)]['DRAWING_SHAPE']),k(this,_0x5100a2(0x3cc),!0x0),this[_0x5100a2(0x39a)]={..._0x488d93},this['_init']();}['_init'](){const _0x805bf9=_0x1706e4;this[_0x805bf9(0x32c)][_0x805bf9(0xa8)](_0x52c28a=>{const _0x1f05bd=_0x805bf9;this[_0x1f05bd(0x528)](_0x52c28a);});}[_0x1706e4(0xd7)](_0x4087e1){const _0x265c13=_0x1706e4;this[_0x265c13(0x39a)][_0x265c13(0x488)]=_0x4087e1;}[_0x1706e4(0x167)](_0x51f419){const _0x12a7a5=_0x1706e4;this[_0x12a7a5(0x39a)]['isEditing']=_0x51f419,this['makeDirty'](!0x0);}get['unitId'](){const _0x138ac9=_0x1706e4;return this['_props'][_0x138ac9(0xd8)];}get['subUnitId'](){const _0x2acc7c=_0x1706e4;return this[_0x2acc7c(0x39a)][_0x2acc7c(0x2b5)];}['_updateSrcRectByTransform'](_0x4c4e56){const _0x178c9a=_0x1706e4;if(this[_0x178c9a(0x39a)]['srcRect']==null||!this[_0x178c9a(0x384)])return;let {width:_0x35dfbb,height:_0x5887aa}=this,{width:_0x32f81b=0x0,height:_0x2ba913=0x0}=_0x4c4e56[_0x178c9a(0xe6)],{left:_0x58d47d=0x0,top:_0x21561c=0x0,right:_0x47890a=0x0,bottom:_0x3988c9=0x0}=this[_0x178c9a(0x39a)][_0x178c9a(0x168)],_0xfdff13=_0x58d47d,_0x209b51=_0x21561c,_0x5c808d=_0x47890a,_0x3c9b51=_0x3988c9,_0x568643=!0x1;if(_0x32f81b!==0x0&&_0x32f81b!==_0x35dfbb){let _0x236668=_0x58d47d/_0x32f81b,_0x1f5fdc=_0x47890a/_0x32f81b;_0xfdff13=_0x35dfbb*_0x236668,_0x5c808d=_0x35dfbb*_0x1f5fdc,_0x568643=!0x0;}if(_0x2ba913!==0x0&&_0x2ba913!==_0x5887aa){let _0x21026b=_0x21561c/_0x2ba913,_0x53f5be=_0x3988c9/_0x2ba913;_0x209b51=_0x5887aa*_0x21026b,_0x3c9b51=_0x5887aa*_0x53f5be,_0x568643=!0x0;}_0x568643&&this[_0x178c9a(0x38a)]({'left':_0xfdff13,'top':_0x209b51,'right':_0x5c808d,'bottom':_0x3c9b51});}[_0x1706e4(0x38a)](_0x32027f){const _0x34ce10=_0x1706e4;this[_0x34ce10(0x39a)][_0x34ce10(0x168)]=_0x32027f,this[_0x34ce10(0x261)](!0x0);}[_0x1706e4(0x3f1)](_0x52cc56){const _0xf9bf2f=_0x1706e4;this[_0xf9bf2f(0x39a)][_0xf9bf2f(0x3da)]=_0x52cc56,this['makeDirty'](!0x0);}set[_0x1706e4(0x18a)](_0x1eb4eb){const _0x1cf0a3=_0x1706e4;this[_0x1cf0a3(0x464)]=_0x1eb4eb;}get['transform'](){const _0x31b3e7=_0x1706e4;this[_0x31b3e7(0x464)]||this[_0x31b3e7(0x4d5)]();let _0x2f7e14=this[_0x31b3e7(0x464)][_0x31b3e7(0x27f)]();return this['transformForAngle'](_0x2f7e14);}get[_0x1706e4(0x523)](){const _0x130fb9=_0x1706e4;return this['_props'][_0x130fb9(0x523)];}get[_0x1706e4(0x3e8)](){const _0x7b04af=_0x1706e4;return this[_0x7b04af(0x39a)][_0x7b04af(0x3e8)];}get[_0x1706e4(0x158)](){const _0xfcfa8b=_0x1706e4;return d[_0xfcfa8b(0x3c5)][_0xfcfa8b(0x497)];}[_0x1706e4(0x442)](_0x4049d1,_0x44d3cb,_0x5369f0,_0x52aa19){const _0x32b8d7=_0x1706e4;let _0x36b6bf=this[_0x32b8d7(0x39a)][_0x32b8d7(0x523)];if(!_0x36b6bf||!_0x44d3cb)return;let _0x60978b=_0x5369f0==null?this['width']:_0x5369f0,_0x44d308=_0x52aa19==null?this[_0x32b8d7(0x305)]:_0x52aa19,_0x58818d={'shapeType':_0x36b6bf[_0x32b8d7(0x1e3)](),'width':_0x60978b,'height':_0x44d308},_0x1c1656={'renderMode':y[_0x32b8d7(0x532)][_0x32b8d7(0x5b1)],'oKey':this['oKey'],'image':this[_0x32b8d7(0x39a)][_0x32b8d7(0x3da)],'angle':this[_0x32b8d7(0x551)]};_0x36b6bf[_0x32b8d7(0x197)](_0x58818d),_0x4049d1['save']();let _0x557610={'top':0x0,'left':0x0,'width':_0x60978b,'height':_0x44d308};_0x36b6bf[_0x32b8d7(0x114)](_0x4049d1,_0x557610,_0x1c1656),_0x4049d1['restore']();let _0x261374=_0x36b6bf[_0x32b8d7(0x48a)](),_0x56781c=_0x36b6bf[_0x32b8d7(0x4d2)](_0x557610),_0x6faf28=_0x36b6bf['isLineShape']();if(_0x261374&&_0x56781c&&!_0x6faf28){_0x4049d1[_0x32b8d7(0x489)](),this[_0x32b8d7(0x29e)]()[_0x32b8d7(0xfb)]&&_0x4049d1[_0x32b8d7(0x20e)](-0x1,0x1);let _0x4b43b4=_0x60978b/0x2,_0x443ce3=_0x44d308/0x2;_0x4049d1[_0x32b8d7(0x3fe)](-_0x4b43b4,-_0x443ce3),_0x4049d1[_0x32b8d7(0x249)](),this[_0x32b8d7(0x4b0)](_0x4049d1,_0x261374,_0x56781c),_0x4049d1[_0x32b8d7(0x351)]();}}[_0x1706e4(0x5d3)](_0x20cc65){}['_drawShapeText'](_0x310bc2,_0xa3d541,_0x1118a2){const _0x595910=_0x1706e4;this[_0x595910(0x39a)][_0x595910(0x4e1)]||(_0x595910(0x549)in _0xa3d541&&_0xa3d541[_0x595910(0x549)]===!0x1?this[_0x595910(0x147)](_0x310bc2,_0xa3d541,_0x1118a2):this['_drawRichText'](_0x310bc2,_0xa3d541,_0x1118a2));}[_0x1706e4(0x147)](_0xae9c7b,_0x43f553,_0x251b85){}[_0x1706e4(0x4ce)](_0x5edd29,_0x5d8248,_0x59168c){const _0xc33947=_0x1706e4;var _0x3fcd04;let _0x58aa56=this[_0xc33947(0x39a)][_0xc33947(0x2a3)];if(!_0x5d8248[_0xc33947(0x1c5)]||!_0x58aa56){_0x58aa56||console['warn']('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0xd424ca=_0x5d8248[_0xc33947(0x1c5)],_0x42c719=_0xd424ca[_0xc33947(0xce)],_0x4c205c=(_0x3fcd04=_0xd424ca['va'])==null?l[_0xc33947(0x2ea)]['TOP']:_0x3fcd04;if(!_0x42c719)return;_0x42c719[_0xc33947(0x3c3)]?_0x42c719['documentStyle'][_0xc33947(0x260)]={'width':_0x59168c['width'],'height':0x1/0x0}:_0x42c719[_0xc33947(0x3c3)]={'pageSize':{'width':_0x59168c[_0xc33947(0x321)],'height':0x1/0x0}};let _0x54e6ef=new l['DocumentDataModel'](_0x42c719),_0x17dd9f=new d[(_0xc33947(0x19e))](_0x54e6ef),_0x357c8c=d[_0xc33947(0x4bc)]['create'](_0x17dd9f,_0x58aa56);_0x357c8c[_0xc33947(0x1f2)]();let {actualHeight:_0x2aea51}=_0x357c8c[_0xc33947(0x2df)](),_0x4447f3=0x0;_0x4c205c===l[_0xc33947(0x2ea)][_0xc33947(0x172)]?_0x4447f3=Math[_0xc33947(0x263)](0x0,(_0x59168c['height']-_0x2aea51)/0x2):_0x4c205c===l['VerticalAlign'][_0xc33947(0x5ed)]&&(_0x4447f3=Math[_0xc33947(0x263)](0x0,_0x59168c[_0xc33947(0x305)]-_0x2aea51)),_0x54e6ef[_0xc33947(0x14f)]({'t':_0x4447f3}),_0x357c8c[_0xc33947(0x1f2)]();let _0x39c448=new d[(_0xc33947(0x5af))](_0xc33947(0x560)+this['oKey'],_0x357c8c,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x5edd29['save'](),_0x5edd29[_0xc33947(0x5cb)](_0x59168c[_0xc33947(0x266)],_0x59168c[_0xc33947(0x493)]),_0x5edd29['beginPath'](),_0x5edd29[_0xc33947(0x58a)](0x0,0x0,_0x59168c[_0xc33947(0x321)],_0x59168c[_0xc33947(0x305)]),_0x5edd29[_0xc33947(0x1f3)](),_0x39c448[_0xc33947(0x4df)](_0x5edd29),_0x5edd29['restore'](),_0x39c448[_0xc33947(0x2b8)](),_0x357c8c[_0xc33947(0x2b8)](),_0x17dd9f[_0xc33947(0x2b8)](),_0x54e6ef['dispose']();}[_0x1706e4(0x114)](_0x5be880,_0x236571,_0x4e556a=!0x1){const _0x3a5b6a=_0x1706e4;if(!this['visible'])return this[_0x3a5b6a(0x261)](!0x1),this;let {width:_0x5a058c,height:_0x655a0a,left:_0x574014,top:_0x2ca931}=this,_0x55f286=this[_0x3a5b6a(0x37b)]();if(_0x5a058c=_0x55f286[_0x3a5b6a(0x321)],_0x655a0a=_0x55f286[_0x3a5b6a(0x305)],_0x574014=_0x55f286[_0x3a5b6a(0x266)],_0x2ca931=_0x55f286[_0x3a5b6a(0x493)],this[_0x3a5b6a(0x135)](_0x236571)){let {top:_0x12a46e,left:_0x2aca71,bottom:_0x554f39,right:_0x45a915}=_0x236571['viewBound'];if(_0x5a058c+this[_0x3a5b6a(0x3b5)]+_0x574014<_0x2aca71||_0x45a915<_0x574014||_0x655a0a+this[_0x3a5b6a(0x3b5)]+_0x2ca931<_0x12a46e||_0x554f39<_0x2ca931)return this;}let _0xd872d3=_0x574014+_0x5a058c/0x2,_0x5395a4=_0x2ca931+_0x655a0a/0x2,_0x36fd50=this['transform'][_0x3a5b6a(0x1ce)]();if(this[_0x3a5b6a(0x39a)][_0x3a5b6a(0x4e1)]){let _0x5200ca=this[_0x3a5b6a(0x29e)](),_0x5e465b=new d[(_0x3a5b6a(0x16c))]();_0x5e465b[_0x3a5b6a(0x2ee)]({..._0x5200ca}),_0x36fd50=_0x5e465b['getMatrix']();}return _0x5be880[_0x3a5b6a(0x489)](),this[_0x3a5b6a(0x39a)][_0x3a5b6a(0x523)]['isRenderLinePointsMode']===!0x0||_0x5be880['transform'](_0x36fd50[0x0],_0x36fd50[0x1],_0x36fd50[0x2],_0x36fd50[0x3],_0xd872d3,_0x5395a4),this['_draw'](_0x5be880,_0x236571,_0x5a058c,_0x655a0a),_0x5be880[_0x3a5b6a(0x351)](),this[_0x3a5b6a(0x261)](!0x1),this;}[_0x1706e4(0x485)](_0x18ff93){const _0x480ada=_0x1706e4;let {left:_0x1e7c86,top:_0x423c83,width:_0x112742,height:_0x12e43a}=this[_0x480ada(0x37b)](),_0x5a0c4c=this[_0x480ada(0x18a)]['getMatrix'](),_0x227e4f=_0x1e7c86+_0x112742/0x2,_0x312b6a=_0x423c83+_0x12e43a/0x2,_0x5a9705=new d[(_0x480ada(0x16c))]([_0x5a0c4c[0x0],_0x5a0c4c[0x1],_0x5a0c4c[0x2],_0x5a0c4c[0x3],_0x227e4f,_0x312b6a]),_0x508da6=this[_0x480ada(0x491)]();return(this[_0x480ada(0x13b)]&&(_0x508da6==null?void 0x0:_0x508da6[_0x480ada(0x158)])===d[_0x480ada(0x3c5)][_0x480ada(0x470)]?_0x508da6[_0x480ada(0x2ab)]['multiply'](_0x5a9705):_0x5a9705)['invert']()[_0x480ada(0x152)](_0x18ff93);}[_0x1706e4(0x4e4)](_0x291401){const _0x42d922=_0x1706e4;let {left:_0x1067b9,top:_0x51c5c4,width:_0x1bfa55,height:_0x5ae514}=this['getRealBound'](),_0x545047=_0x1067b9+_0x1bfa55/0x2,_0x33701e=_0x51c5c4+_0x5ae514/0x2,_0x5ec48e=this[_0x42d922(0x18a)][_0x42d922(0x1ce)](),_0x20c17a=new d[(_0x42d922(0x16c))]([_0x5ec48e[0x0],_0x5ec48e[0x1],_0x5ec48e[0x2],_0x5ec48e[0x3],_0x545047,_0x33701e]),_0x3733a4=this[_0x42d922(0x491)](),_0xcc5bf6=(this[_0x42d922(0x13b)]&&(_0x3733a4==null?void 0x0:_0x3733a4[_0x42d922(0x158)])===d['RENDER_CLASS_TYPE'][_0x42d922(0x470)]?_0x3733a4[_0x42d922(0x2ab)][_0x42d922(0x3ee)](_0x20c17a):_0x20c17a)[_0x42d922(0x430)]()['applyPoint'](_0x291401),_0x5a7b07=_0x1bfa55/0x2,_0x48dec0=_0x5ae514/0x2,_0x4f8e53=this['_props'][_0x42d922(0x523)];return _0x4f8e53&&_0x4f8e53[_0x42d922(0x332)]()?_0x4f8e53[_0x42d922(0x47c)](_0xcc5bf6['x'],_0xcc5bf6['y'],_0x1bfa55,_0x5ae514):_0xcc5bf6['x']>=-_0x5a7b07-this[_0x42d922(0x3b5)]/0x2&&_0xcc5bf6['x']<=_0x5a7b07+this[_0x42d922(0x3b5)]/0x2&&_0xcc5bf6['y']>=-_0x48dec0-this[_0x42d922(0x3b5)]/0x2&&_0xcc5bf6['y']<=_0x48dec0+this[_0x42d922(0x3b5)]/0x2;}[_0x1706e4(0x2b8)](){const _0x343e0d=_0x1706e4;this[_0x343e0d(0x39a)]['shapeModel']=null,super[_0x343e0d(0x2b8)]();}};function V(_0x4a86b4,_0x231523){return function(_0x16fb9e,_0x1fe7de){_0x231523(_0x16fb9e,_0x1fe7de,_0x4a86b4);};}function H(_0x312e84,_0x22f4f6,_0x2f750d,_0x1acb71){const _0x5a007c=_0x1706e4;var _0x1fff55=arguments['length'],_0x1efd9c=_0x1fff55<0x3?_0x22f4f6:_0x1acb71===null?_0x1acb71=Object[_0x5a007c(0x33a)](_0x22f4f6,_0x2f750d):_0x1acb71,_0x43a0e7;if(typeof Reflect==_0x5a007c(0x31b)&&typeof Reflect[_0x5a007c(0x191)]==_0x5a007c(0x492))_0x1efd9c=Reflect[_0x5a007c(0x191)](_0x312e84,_0x22f4f6,_0x2f750d,_0x1acb71);else{for(var _0x41395a=_0x312e84['length']-0x1;_0x41395a>=0x0;_0x41395a--)(_0x43a0e7=_0x312e84[_0x41395a])&&(_0x1efd9c=(_0x1fff55<0x3?_0x43a0e7(_0x1efd9c):_0x1fff55>0x3?_0x43a0e7(_0x22f4f6,_0x2f750d,_0x1efd9c):_0x43a0e7(_0x22f4f6,_0x2f750d))||_0x1efd9c);}return _0x1fff55>0x3&&_0x1efd9c&&Object['defineProperty'](_0x22f4f6,_0x2f750d,_0x1efd9c),_0x1efd9c;}let U=class extends l[_0x1706e4(0x40c)]{constructor(_0xac1903,_0x53b093,_0x3dfffa,_0x36a3d5,_0x1ef787){const _0x1695dc=_0x1706e4;super(),this[_0x1695dc(0x3f8)]=_0xac1903,this[_0x1695dc(0x495)]=_0x53b093,this[_0x1695dc(0x373)]=_0x3dfffa,this[_0x1695dc(0x509)]=_0x36a3d5,this[_0x1695dc(0x4a1)]=_0x1ef787;}[_0x1706e4(0x436)](_0x5c875e,_0x76c84c){const _0x2a6ba8=_0x1706e4;let {transform:_0x233192,drawingType:_0x5a3363,srcRect:_0x49d9e8,prstGeom:_0x19ec21,groupId:_0x1d76a4,unitId:_0x2903a8,subUnitId:_0x553d4f,drawingId:_0xe4c24d,isMultiTransform:_0x4759d7,transforms:_0x15a6c3}=_0x5c875e;if(_0x5a3363!==l[_0x2a6ba8(0x55c)][_0x2a6ba8(0x31d)]||!this['_drawingManagerService'][_0x2a6ba8(0x5dd)]()||_0x233192==null)return;let _0x58caab=_0x4759d7&&_0x15a6c3?_0x15a6c3:[_0x233192],_0x2fd95a=[];for(let _0xff8395 of _0x58caab){let {left:_0xd3a39d,top:_0x283e58,width:_0x13f203,height:_0x588ccd,angle:_0x4cec9a,flipX:_0x502e33,flipY:_0x1a28fe,skewX:_0x447639,skewY:_0x217bd2}=_0xff8395,_0x32e733=_0x58caab['indexOf'](_0xff8395),_0x12edc8=(0x0,u[_0x2a6ba8(0xf6)])({'unitId':_0x2903a8,'subUnitId':_0x553d4f,'drawingId':_0xe4c24d},_0x4759d7?_0x32e733:void 0x0),_0x76c495=_0x76c84c['getObjectIncludeInGroup'](_0x12edc8);if(_0x76c495!=null){_0x76c495[_0x2a6ba8(0x325)]({'left':_0xd3a39d,'top':_0x283e58,'width':_0x13f203,'height':_0x588ccd,'angle':_0x4cec9a,'flipX':_0x502e33,'flipY':_0x1a28fe,'skewX':_0x447639,'skewY':_0x217bd2});continue;}let _0x873f2c=this[_0x2a6ba8(0x3f8)][_0x2a6ba8(0xa6)](_0x2903a8,_0x553d4f),_0x296ff4=_0x873f2c['indexOf'](_0xe4c24d);if(_0x76c84c[_0x2a6ba8(0x26b)](_0x12edc8)||!this[_0x2a6ba8(0x3f8)][_0x2a6ba8(0x5dd)]())continue;let _0x58d1df=this[_0x2a6ba8(0x495)][_0x2a6ba8(0xc3)](_0x2903a8,_0x553d4f,_0xe4c24d);if(!_0x58d1df)continue;let _0x5a568e=new B(_0x12edc8,{...(0x0,y['isConnectorShape'])(_0x58d1df[_0x2a6ba8(0x1e3)]())?{..._0xff8395,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0xff8395},'zIndex':_0x296ff4===-0x1?_0x873f2c[_0x2a6ba8(0xa5)]-0x1:_0x296ff4,'shapeModel':_0x58d1df,'localeService':this[_0x2a6ba8(0x373)],'shapeId':_0xe4c24d,'unitId':_0x2903a8,'subUnitId':_0x553d4f});_0x76c84c[_0x2a6ba8(0x4a7)](_0x5a568e,d[_0x2a6ba8(0x166)]),this[_0x2a6ba8(0x3f8)]['getDrawingEditable']()&&_0x76c84c['attachTransformerTo'](_0x5a568e),_0x1d76a4&&(0x0,S[_0x2a6ba8(0x18d)])({'drawingId':_0x1d76a4,'unitId':_0x2903a8,'subUnitId':_0x553d4f},_0x5a568e,_0x76c84c,this[_0x2a6ba8(0x3f8)]),_0x19ec21!=null&&_0x5a568e['setPrstGeom'](_0x19ec21),_0x49d9e8!=null&&_0x5a568e[_0x2a6ba8(0x38a)](_0x49d9e8),this[_0x2a6ba8(0x122)](_0x5a568e,_0x58d1df[_0x2a6ba8(0x2a8)]()),_0x2fd95a[_0x2a6ba8(0x5d7)](_0x5a568e);}return _0x2fd95a;}['_loadShapePictureFill'](_0x11199f,_0x2af36f){const _0x47f0d1=_0x1706e4;var _0x48f860;let _0x4e053a=_0x2af36f['fill'];if(!_0x4e053a||_0x4e053a[_0x47f0d1(0x2e7)]!==y[_0x47f0d1(0x378)][_0x47f0d1(0x527)]||!_0x4e053a['fillImageSource'])return;let _0x2cea3c=_0x4e053a[_0x47f0d1(0x4d3)],_0x4963e0=(_0x48f860=_0x4e053a[_0x47f0d1(0x56a)])==null?y[_0x47f0d1(0x1dc)][_0x47f0d1(0x5c1)]:_0x48f860,_0x40b0f5=this[_0x47f0d1(0x509)][_0x47f0d1(0xf0)](_0x2cea3c,_0x4963e0);if(_0x40b0f5){_0x11199f['setFillImage'](_0x40b0f5);return;}this['_loadAndSetImage'](_0x11199f,_0x2cea3c,_0x4963e0);}async['_loadAndSetImage'](_0x26db99,_0x9fd38f,_0x271819){const _0x56e6f7=_0x1706e4;let _0xca547f;try{if(_0x271819===y['ImageSourceTypeEnum'][_0x56e6f7(0x320)])_0xca547f=await this[_0x56e6f7(0x509)][_0x56e6f7(0x408)](_0x9fd38f);else{if(_0x271819===y[_0x56e6f7(0x1dc)][_0x56e6f7(0x5c1)])try{_0xca547f=await this[_0x56e6f7(0x4a1)][_0x56e6f7(0x408)](_0x9fd38f);}catch{_0xca547f=_0x9fd38f;}else _0xca547f=_0x9fd38f;}}catch(_0x5bd27e){console[_0x56e6f7(0x511)](_0x56e6f7(0x455),_0x5bd27e);return;}let _0x2457c6=new window[(_0x56e6f7(0x33f))]();_0x2457c6[_0x56e6f7(0x5a3)]=()=>{const _0x277eac=_0x56e6f7;this['_imageIoService'][_0x277eac(0x4e2)](_0x9fd38f,_0x271819,_0x2457c6),_0x26db99[_0x277eac(0x3f1)](_0x2457c6);},_0x2457c6[_0x56e6f7(0x112)]=()=>{const _0x4a2f58=_0x56e6f7;console[_0x4a2f58(0x511)](_0x4a2f58(0x223),_0x9fd38f);},_0x2457c6[_0x56e6f7(0x419)]=_0xca547f;}};U=H([V(0x0,u['IDrawingManagerService']),V(0x1,(0x0,l[_0x1706e4(0x318)])(c['SheetsShapeService'])),V(0x2,(0x0,l[_0x1706e4(0x318)])(l['LocaleService'])),V(0x3,u[_0x1706e4(0x1a5)]),V(0x4,l[_0x1706e4(0x3dc)])],U);let W=class extends l[_0x1706e4(0x40c)]{constructor(_0x55e28d,_0x2249ee,_0x42dffc,_0x2bc962,_0x512f96,_0x1a4e64){const _0x4c2405=_0x1706e4;super(),this['_commandService']=_0x55e28d,this['_renderManagerService']=_0x2249ee,this[_0x4c2405(0x3f8)]=_0x42dffc,this[_0x4c2405(0x1d3)]=_0x2bc962,this[_0x4c2405(0x39f)]=_0x512f96,this['_sheetDrawingShapeRenderController']=_0x1a4e64,this['_initialize']();}['_initialize'](){const _0x1d902f=_0x1706e4;this['_drawingAddListener'](),this[_0x1d902f(0x3c4)](),this[_0x1d902f(0x5ae)]();}[_0x1706e4(0x311)](){const _0x3d1c38=_0x1706e4;this[_0x3d1c38(0x43c)](this[_0x3d1c38(0x3f8)][_0x3d1c38(0x375)][_0x3d1c38(0x1b7)](_0x455906=>{const _0x5e68fd=_0x3d1c38;this[_0x5e68fd(0x5b2)](_0x455906);}));}[_0x1706e4(0x3c4)](){const _0x578d31=_0x1706e4;this[_0x578d31(0x43c)](this[_0x578d31(0x2e8)]['onCommandExecuted'](_0x4a1531=>{const _0x321551=_0x578d31;if(_0x4a1531['id']===c[_0x321551(0x1d2)]['id']){var _0x3065ee;let {unitId:_0x5b5565,subUnitId:_0x37c312,shapeId:_0x4ddb6b}=_0x4a1531['params'],_0x12385b=this[_0x321551(0x25d)](_0x5b5565);if(_0x12385b==null)return;let {scene:_0x476fe7}=_0x12385b,_0x3a72d6=(0x0,u[_0x321551(0xf6)])({'unitId':_0x5b5565,'subUnitId':_0x37c312,'drawingId':_0x4ddb6b}),_0x5dcc16=_0x476fe7['getObjectIncludeInGroup'](_0x3a72d6);if(!((_0x3065ee=this['_renderManagerService'][_0x321551(0x513)](_0x5b5565))!=null&&_0x3065ee[_0x321551(0x189)](_[_0x321551(0x27e)])[_0x321551(0x59a)](_0x37c312)))return!0x1;if(_0x5dcc16)return;this[_0x321551(0x5b2)]([{'unitId':_0x5b5565,'subUnitId':_0x37c312,'drawingId':_0x4ddb6b}]);}}));}[_0x1706e4(0x5ae)](){const _0x164c5a=_0x1706e4;this[_0x164c5a(0x43c)](this['_drawingManagerService']['update$'][_0x164c5a(0x1b7)](_0x15a7ca=>{_0x15a7ca['forEach'](_0x8f4dc9=>{const _0x33f241=_0x3d6a;let {unitId:_0x5a7b23,subUnitId:_0x18db31,drawingId:_0x27e64d}=_0x8f4dc9,_0xc924c6=this[_0x33f241(0x3f8)]['getDrawingByParam'](_0x8f4dc9);if(_0xc924c6==null)return;let {transform:_0x247033,drawingType:_0x113d3c,srcRect:_0x146570,prstGeom:_0x45db23}=_0xc924c6;if(_0x113d3c!==l['DrawingTypeEnum'][_0x33f241(0x31d)])return;let _0x515a23=this[_0x33f241(0x25d)](_0x5a7b23);if(_0x515a23==null)return;let {scene:_0x353e4f,transformer:_0x3c04ff}=_0x515a23;if(_0x247033==null)return!0x0;let _0x5a1089=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5a7b23,'subUnitId':_0x18db31,'drawingId':_0x27e64d}),_0x1ae4e2=_0x353e4f['getObjectIncludeInGroup'](_0x5a1089);if(_0x1ae4e2==null)return!0x0;_0x1ae4e2[_0x33f241(0x38a)](_0x146570),_0x1ae4e2[_0x33f241(0xd7)](_0x45db23);});}));}['updateShapeFillImage'](_0x1c6ee2,_0x56ebde){const _0x220a7d=_0x1706e4;let {unitId:_0x4bc611,subUnitId:_0x32937e,drawingId:_0x2d50c1}=_0x1c6ee2,_0x1a19b3=this[_0x220a7d(0x25d)](_0x4bc611);if(_0x1a19b3==null)return;let {scene:_0x14864f}=_0x1a19b3,_0x25e5bd=(0x0,u[_0x220a7d(0xf6)])({'unitId':_0x4bc611,'subUnitId':_0x32937e,'drawingId':_0x2d50c1}),_0x2c6d25=_0x14864f[_0x220a7d(0x26b)](_0x25e5bd);_0x2c6d25!=null&&_0x2c6d25[_0x220a7d(0x3f1)](_0x56ebde);}['_insertShapes'](_0x12b08d){const _0x12bc7c=_0x1706e4;_0x12b08d[_0x12bc7c(0x171)](async _0x3d7700=>{const _0x57a386=_0x12bc7c;var _0x4627ef;let {unitId:_0xae3a3d,subUnitId:_0x41a9ae}=_0x3d7700,_0x360772=this[_0x57a386(0x25d)](_0xae3a3d),_0xa430fb=(_0x4627ef=(0x0,S[_0x57a386(0x3ad)])(this[_0x57a386(0x1d3)],_0xae3a3d))==null?void 0x0:_0x4627ef[_0x57a386(0x2b5)];if(_0x360772==null||_0xa430fb!==_0x41a9ae)return;let _0x29b159=this[_0x57a386(0x3f8)][_0x57a386(0x5e7)](_0x3d7700);if(_0x29b159!=null&&_0x29b159[_0x57a386(0x2bf)]===l['DrawingTypeEnum'][_0x57a386(0x31d)]){if((0x0,y[_0x57a386(0x372)])((_0x29b159['data']||{})['shapeType'])){let _0x16901a=_0x29b159['transform'];_0x16901a&&(_0x29b159[_0x57a386(0x18a)]={..._0x16901a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x57a386(0x3f8)][_0x57a386(0x198)]([_0x29b159]),this[_0x57a386(0x16e)]['renderDrawingShape'](_0x29b159,_0x360772['scene']);}});}['_getSceneAndTransformerByDrawingSearch'](_0x1ece70){const _0x14773c=_0x1706e4;if(_0x1ece70==null)return;let _0x190ed3=this[_0x14773c(0x11d)][_0x14773c(0x513)](_0x1ece70),_0x178456=_0x190ed3==null?void 0x0:_0x190ed3['scene'];return _0x178456==null?null:{'scene':_0x178456,'transformer':_0x178456[_0x14773c(0x3d7)]()};}};W=H([V(0x0,l['ICommandService']),V(0x1,d[_0x1706e4(0x4e3)]),V(0x2,u[_0x1706e4(0x3e9)]),V(0x3,l[_0x1706e4(0x508)]),V(0x4,(0x0,l['Inject'])(S[_0x1706e4(0x5b8)])),V(0x5,(0x0,l[_0x1706e4(0x318)])(U))],W);function ie(_0x563f17){const _0x2c5573=_0x1706e4;var _0x56c773,_0xe0a8b6,_0x228198,_0x160251,_0x3b178c,_0x364d5b,_0x2304cf,_0x297cda,_0x363060,_0x2e3c00,_0x3007d9,_0xbf4e9a,_0x3ce684;let {unitId:_0x4027a6,subUnitId:_0x1bd22b,shapeId:_0x487fa2,shapeData:_0x484934,disableShapeOption:_0xb18bcb}=_0x563f17,_0x4b94ba=(0x0,v[_0x2c5573(0x5ad)])(l[_0x2c5573(0x4aa)]),_0x283127=(0x0,v['useDependency'])(l['ICommandService']),_0x59bd61=(0x0,v[_0x2c5573(0x5ad)])(l[_0x2c5573(0x3fc)]),_0x445e74=(0x0,v[_0x2c5573(0x5ad)])(W),_0x45cd93=(0x0,v['useDependency'])(u[_0x2c5573(0x1a5)]),_0x1bd237=(0x0,x[_0x2c5573(0x4cd)])(null),_0x45578b=_0x484934[_0x2c5573(0xfd)],_0x2159bb=!!(_0x45578b!=null&&_0x45578b[_0x2c5573(0x4d3)]),[_0x18d6dc,_0x249d97]=(0x0,x['useState'])((_0x56c773=_0x45578b==null?void 0x0:_0x45578b[_0x2c5573(0x2dd)])==null?0x1:_0x56c773),[_0x128f77,_0x2eaacd]=(0x0,x[_0x2c5573(0x1a3)])((_0xe0a8b6=_0x45578b==null?void 0x0:_0x45578b[_0x2c5573(0x57a)])==null?y[_0x2c5573(0x2b4)]['Stretch']:_0xe0a8b6),[_0x12e0d8,_0x50319b]=(0x0,x[_0x2c5573(0x1a3)])((_0x228198=_0x45578b==null?void 0x0:_0x45578b[_0x2c5573(0x1fa)])==null?!0x1:_0x228198),[_0x11073c,_0x5d878d]=(0x0,x['useState'])((_0x160251=_0x45578b==null||(_0x3b178c=_0x45578b[_0x2c5573(0x11e)])==null?void 0x0:_0x3b178c[_0x2c5573(0x3a7)])==null?0x0:_0x160251),[_0x4a9f5b,_0x29ff18]=(0x0,x['useState'])((_0x364d5b=_0x45578b==null||(_0x2304cf=_0x45578b[_0x2c5573(0x11e)])==null?void 0x0:_0x2304cf[_0x2c5573(0x276)])==null?0x0:_0x364d5b),[_0x12f42d,_0xc95b2a]=(0x0,x[_0x2c5573(0x1a3)])((_0x297cda=_0x45578b==null||(_0x363060=_0x45578b[_0x2c5573(0x11e)])==null?void 0x0:_0x363060['scaleX'])==null?0x1:_0x297cda),[_0x5e64bb,_0x480c4a]=(0x0,x[_0x2c5573(0x1a3)])((_0x2e3c00=_0x45578b==null||(_0x3007d9=_0x45578b[_0x2c5573(0x11e)])==null?void 0x0:_0x3007d9[_0x2c5573(0x34a)])==null?0x1:_0x2e3c00),[_0x212c27,_0x4a46e7]=(0x0,x[_0x2c5573(0x1a3)])((_0xbf4e9a=_0x45578b==null||(_0x3ce684=_0x45578b[_0x2c5573(0x11e)])==null?void 0x0:_0x3ce684['alignment'])==null?'tl':_0xbf4e9a),_0x2b0183=_0x128f77===y[_0x2c5573(0x2b4)][_0x2c5573(0x254)],_0x2af21b=Math[_0x2c5573(0x558)]((0x1-_0x18d6dc)*0x64),_0x1209cd=Math['round'](_0x12f42d*0x64),_0x527f28=Math['round'](_0x5e64bb*0x64),_0x38e26d=_0x3f84f6=>_0x4b94ba['t'](_0x3f84f6),_0x148521=[{'label':_0x38e26d(_0x2c5573(0x422)),'value':'tl'},{'label':_0x38e26d(_0x2c5573(0x529)),'value':'t'},{'label':_0x38e26d(_0x2c5573(0xc1)),'value':'tr'},{'label':_0x38e26d(_0x2c5573(0x379)),'value':'l'},{'label':_0x38e26d(_0x2c5573(0x376)),'value':_0x2c5573(0x476)},{'label':_0x38e26d(_0x2c5573(0x1a4)),'value':'r'},{'label':_0x38e26d(_0x2c5573(0x564)),'value':'bl'},{'label':_0x38e26d(_0x2c5573(0x3f3)),'value':'b'},{'label':_0x38e26d(_0x2c5573(0xaf)),'value':'br'}],_0x8ec418=_0x34e2f7=>{z(_0x283127,_0x4027a6,_0x1bd22b,_0x487fa2,{'oldShapeData':{'fill':_0x45578b?{..._0x45578b}:void 0x0}},{'fill':{..._0x45578b,..._0x34e2f7}});},_0x41d076=_0x1c0f64=>{_0x8ec418({'imageTile':{..._0x45578b==null?void 0x0:_0x45578b['imageTile'],..._0x1c0f64}});},_0x437b40=()=>{const _0x553b69=_0x2c5573;var _0x1f60b3;return(_0x1f60b3=_0x1bd237[_0x553b69(0x56f)])==null?void 0x0:_0x1f60b3[_0x553b69(0x2e1)]();},_0xd5de23=async _0x50e136=>{const _0xb6e94a=_0x2c5573;var _0x2388a9;let _0x1c4564=(_0x2388a9=_0x50e136['target']['files'])==null?void 0x0:_0x2388a9[0x0];if(!_0x1c4564)return;_0x50e136['target']['value']='';let _0x63c5fe=await _0x45cd93[_0xb6e94a(0x308)](_0x1c4564);if(_0x63c5fe==null)return;let {imageSourceType:_0x2ae65e,source:_0x58d666,base64Cache:_0x15179d}=_0x63c5fe,{image:_0x2bb01c}=await(0x0,u[_0xb6e94a(0x469)])(_0x15179d||'');_0x45cd93[_0xb6e94a(0x4e2)](_0x58d666,_0x2ae65e,_0x2bb01c),z(_0x283127,_0x4027a6,_0x1bd22b,_0x487fa2,{'oldShapeData':{'fill':_0x45578b?{..._0x45578b}:void 0x0}},{'fill':{..._0x45578b,'fillType':y['ShapeFillEnum'][_0xb6e94a(0x527)],'fillImageSource':_0x58d666,'fillImageSourceType':_0x2ae65e}}),_0x445e74[_0xb6e94a(0x10f)]({'unitId':_0x4027a6,'subUnitId':_0x1bd22b,'drawingId':_0x487fa2},_0x2bb01c);},_0x23c62f=_0x2c5573(0x4d9),_0x5b296d=_0x2c5573(0x119);return(0x0,C['jsxs'])('div',{'className':_0x2c5573(0x1bd),'children':[(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0x35e),'children':[(0x0,C['jsx'])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x3ec))}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0x1f1),'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x290),{'ref':_0x1bd237,'type':_0x2c5573(0x142),'accept':_0x2c5573(0x17d),'className':_0x2c5573(0x1bb),'onChange':_0xd5de23}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0x176),'children':[(0x0,C['jsx'])(_0x2c5573(0x310),{'type':_0x2c5573(0x310),'disabled':_0xb18bcb,'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':_0x437b40,'children':(0x0,C[_0x2c5573(0x102)])('span',{'children':[_0x38e26d('sheets-shape.fill.picture.insert'),'\x20']})}),_0x2159bb&&(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0x326),'children':(0x0,C['jsx'])(_0x2c5573(0x209),{'src':_0x45578b==null?void 0x0:_0x45578b[_0x2c5573(0x4d3)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x5b296d,'children':[(0x0,C['jsx'])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x1da))}),(0x0,C['jsx'])(_0x2c5573(0x5f6),{'className':'univer-w-20','children':(0x0,C[_0x2c5573(0x399)])(b['InputNumber'],{'className':'univer-w-full','value':_0x2af21b,'disabled':_0xb18bcb,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x59d19a=>_0x59d19a+'%','parser':_0x59f1b7=>(_0x59f1b7==null?void 0x0:_0x59f1b7[_0x2c5573(0x4ff)]('%',''))||'','onChange':_0x1bbe93=>{const _0x52e01f=_0x2c5573;let _0x3887b5=_0x1bbe93==null?0x0:_0x1bbe93,_0x2f04b6=(0x64-Math[_0x52e01f(0x263)](0x0,Math[_0x52e01f(0x360)](0x64,_0x3887b5)))/0x64;_0x249d97(_0x2f04b6),_0x8ec418({'imageOpacity':_0x2f04b6}),_0x59bd61[_0x52e01f(0x28d)](l[_0x52e01f(0x2e5)],!0x1);},'onFocus':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x0),'onBlur':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x1)})})]}),(0x0,C[_0x2c5573(0x399)])(b[_0x2c5573(0x16f)],{'checked':_0x2b0183,'disabled':_0xb18bcb,'onChange':_0x55340d=>{const _0x5471a5=_0x2c5573;let _0x33fa9f=_0x55340d?y[_0x5471a5(0x2b4)]['Tile']:y['ImageFillModeEnum'][_0x5471a5(0x5fc)];_0x2eaacd(_0x33fa9f),_0x8ec418({'imageFillMode':_0x33fa9f});},'children':(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x2c5573(0x553),'children':_0x38e26d(_0x2c5573(0x3f6))})}),_0x2b0183&&(0x0,C[_0x2c5573(0x102)])('div',{'className':_0x2c5573(0x26c),'children':[(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x5b296d,'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d('sheets-shape.fill.picture.offsetX')}),(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0x42d),'children':(0x0,C[_0x2c5573(0x399)])(b[_0x2c5573(0x213)],{'className':_0x2c5573(0x43b),'value':_0x11073c,'disabled':_0xb18bcb,'step':0x1,'onChange':_0x534fbd=>{_0x41d076({'offsetX':_0x534fbd==null?0x0:_0x534fbd}),_0x5d878d(_0x534fbd==null?0x0:_0x534fbd);},'onFocus':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x0),'onBlur':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x1)})})]}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x5b296d,'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x583))}),(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x5f6),{'className':'univer-w-20','children':(0x0,C['jsx'])(b[_0x2c5573(0x213)],{'className':'univer-w-full','value':_0x4a9f5b,'disabled':_0xb18bcb,'step':0x1,'onChange':_0x2b4df5=>{_0x41d076({'offsetY':_0x2b4df5==null?0x0:_0x2b4df5}),_0x29ff18(_0x2b4df5==null?0x0:_0x2b4df5);},'onFocus':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x0),'onBlur':()=>_0x59bd61[_0x2c5573(0x28d)](l['FOCUSING_PANEL_EDITOR'],!0x1)})})]}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x5b296d,'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x462))}),(0x0,C['jsx'])('div',{'className':_0x2c5573(0x42d),'children':(0x0,C[_0x2c5573(0x399)])(b[_0x2c5573(0x213)],{'className':_0x2c5573(0x43b),'value':_0x1209cd,'disabled':_0xb18bcb,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x33d545=>_0x33d545+'%','parser':_0x1f05ed=>(_0x1f05ed==null?void 0x0:_0x1f05ed[_0x2c5573(0x4ff)]('%',''))||'','onChange':_0x30eead=>{let _0x333089=Math['max'](0.01,(_0x30eead==null?0x64:_0x30eead)/0x64);_0xc95b2a(_0x333089),_0x41d076({'scaleX':_0x333089}),_0x59bd61['setContextValue'](l['FOCUSING_PANEL_EDITOR'],!0x1);},'onFocus':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x0),'onBlur':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x1)})})]}),(0x0,C[_0x2c5573(0x102)])('div',{'className':_0x5b296d,'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x4ed))}),(0x0,C[_0x2c5573(0x399)])('div',{'className':_0x2c5573(0x42d),'children':(0x0,C[_0x2c5573(0x399)])(b[_0x2c5573(0x213)],{'className':_0x2c5573(0x43b),'value':_0x527f28,'disabled':_0xb18bcb,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x328deb=>_0x328deb+'%','parser':_0x50318f=>(_0x50318f==null?void 0x0:_0x50318f['replace']('%',''))||'','onChange':_0x3f949c=>{const _0x24cbae=_0x2c5573;let _0x31bd48=Math[_0x24cbae(0x263)](0.01,(_0x3f949c==null?0x64:_0x3f949c)/0x64);_0x480c4a(_0x31bd48),_0x41d076({'scaleY':_0x31bd48}),_0x59bd61['setContextValue'](l[_0x24cbae(0x2e5)],!0x1);},'onFocus':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x0),'onBlur':()=>_0x59bd61[_0x2c5573(0x28d)](l[_0x2c5573(0x2e5)],!0x1)})})]}),(0x0,C[_0x2c5573(0x102)])(_0x2c5573(0x5f6),{'className':_0x5b296d,'children':[(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x477),{'className':_0x23c62f,'children':_0x38e26d(_0x2c5573(0x2a7))}),(0x0,C[_0x2c5573(0x399)])(_0x2c5573(0x5f6),{'className':_0x2c5573(0xb5),'children':(0x0,C['jsx'])(b[_0x2c5573(0x4c8)],{'className':_0x2c5573(0x43b),'value':_0x212c27,'options':_0x148521,'disabled':_0xb18bcb,'onChange':_0x29d19b=>{_0x4a46e7(_0x29d19b),_0x41d076({'alignment':_0x29d19b});}})})]})]}),(0x0,C['jsx'])(b[_0x2c5573(0x16f)],{'checked':_0x12e0d8,'disabled':_0xb18bcb,'onChange':_0x51fd04=>{_0x50319b(_0x51fd04),_0x8ec418({'imageRotateWithShape':_0x51fd04});},'children':(0x0,C[_0x2c5573(0x399)])('span',{'className':_0x2c5573(0x553),'children':_0x38e26d('sheets-shape.fill.picture.rotateWithShape')})})]});}function ae(_0x54823b){const _0xe464c2=_0x1706e4;var _0x2f602e,_0x133424,_0x39bd6d;let _0x38763b=(0x0,v[_0xe464c2(0x5ad)])(l[_0xe464c2(0x4aa)]),_0x50c3d1=(0x0,v[_0xe464c2(0x5ad)])(l[_0xe464c2(0x41c)]),_0x11ef00=(0x0,v['useDependency'])(l[_0xe464c2(0x3fc)]),{shapeData:_0x3bf05e,isLineShape:_0x3b1ad2,unitId:_0x723cbe,subUnitId:_0x494eea,shapeId:_0xb5c8b8,disableShapeOption:_0x239c3a}=_0x54823b,[_0x4ee0d7,_0x21e05a]=(0x0,x[_0xe464c2(0x1a3)])(((_0x2f602e=_0x3bf05e[_0xe464c2(0xfd)])==null?void 0x0:_0x2f602e[_0xe464c2(0x2e7)])||y[_0xe464c2(0x378)][_0xe464c2(0x3ea)]),[_0x5733ee,_0x4c71eb]=(0x0,x[_0xe464c2(0x1a3)])(((_0x133424=_0x3bf05e['fill'])==null?void 0x0:_0x133424[_0xe464c2(0x177)])||y[_0xe464c2(0x1a7)]['fill']),[_0x468c12,_0x1e88cc]=(0x0,x[_0xe464c2(0x1a3)])(((_0x39bd6d=_0x3bf05e['fill'])==null?void 0x0:_0x39bd6d[_0xe464c2(0x415)])||0x1),[_0x530dd3,_0x1ebac4]=(0x0,x[_0xe464c2(0x1a3)])(!0x1);if(_0x3b1ad2)return null;let _0x25e2a3=0x64-_0x468c12*0x64;return(0x0,C[_0xe464c2(0x102)])('div',{'className':_0xe464c2(0x3ac),'children':[(0x0,C['jsxs'])(b[_0xe464c2(0x40d)],{'value':_0x4ee0d7,'disabled':_0x239c3a,'onChange':_0x456788=>{const _0x3ebf47=_0xe464c2;var _0x4a9156;z(_0x50c3d1,_0x723cbe,_0x494eea,_0xb5c8b8,{'oldShapeData':{'fill':{'fillType':(_0x4a9156=_0x3bf05e[_0x3ebf47(0xfd)])==null?void 0x0:_0x4a9156['fillType']}}},{'fill':{'fillType':_0x456788}}),_0x21e05a(_0x456788);},'direction':'vertical','children':[(0x0,C[_0xe464c2(0x399)])(b[_0xe464c2(0x12c)],{'value':y['ShapeFillEnum'][_0xe464c2(0x47f)],'children':(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x477),{'className':_0xe464c2(0x553),'children':_0x38763b['t'](_0xe464c2(0x4c4))})}),(0x0,C[_0xe464c2(0x399)])(b['Radio'],{'value':y[_0xe464c2(0x378)][_0xe464c2(0x3ea)],'children':(0x0,C['jsx'])(_0xe464c2(0x477),{'className':'univer-text-sm','children':_0x38763b['t'](_0xe464c2(0x55f))})}),(0x0,C[_0xe464c2(0x399)])(b[_0xe464c2(0x12c)],{'value':y[_0xe464c2(0x378)]['GradientFill'],'children':(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x477),{'className':_0xe464c2(0x553),'children':_0x38763b['t'](_0xe464c2(0x516))})}),(0x0,C[_0xe464c2(0x399)])(b[_0xe464c2(0x12c)],{'value':y[_0xe464c2(0x378)][_0xe464c2(0x527)],'children':(0x0,C['jsx'])(_0xe464c2(0x477),{'className':_0xe464c2(0x553),'children':_0x38763b['t'](_0xe464c2(0x4d4))})})]}),_0x4ee0d7===y['ShapeFillEnum'][_0xe464c2(0x3ea)]&&(0x0,C[_0xe464c2(0x102)])(_0xe464c2(0x5f6),{'className':_0xe464c2(0x5a7),'children':[(0x0,C[_0xe464c2(0x102)])(_0xe464c2(0x5f6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x477),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x38763b['t'](_0xe464c2(0x5a8))}),(0x0,C['jsx'])(b[_0xe464c2(0xa9)],{'disabled':_0x239c3a,'overlay':(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x5f6),{'className':_0xe464c2(0x4e9),'children':(0x0,C['jsx'])(b[_0xe464c2(0x2ae)],{'value':_0x5733ee,'onChange':_0x1aa8b9=>{const _0xb657ad=_0xe464c2;var _0xaf0613;z(_0x50c3d1,_0x723cbe,_0x494eea,_0xb5c8b8,{'oldShapeData':{'fill':{'color':(_0xaf0613=_0x3bf05e[_0xb657ad(0xfd)])==null?void 0x0:_0xaf0613[_0xb657ad(0x177)]}}},{'fill':{'color':_0x1aa8b9}}),_0x4c71eb(_0x1aa8b9),_0x1ebac4(!0x1);}})}),'open':_0x530dd3,'onOpenChange':_0x1ebac4,'children':(0x0,C['jsxs'])('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,C[_0xe464c2(0x399)])(g['PaintBucketDoubleIcon'],{'className':_0xe464c2(0x24e),'extend':{'colorChannel1':_0x5733ee}}),(0x0,C[_0xe464c2(0x399)])(g[_0xe464c2(0x2f2)],{'className':(0x0,b[_0xe464c2(0x15e)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x530dd3})})]})})]}),(0x0,C['jsxs'])('div',{'className':_0xe464c2(0x119),'children':[(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x477),{'className':_0xe464c2(0x4d9),'children':_0x38763b['t'](_0xe464c2(0x1da))}),(0x0,C[_0xe464c2(0x399)])(_0xe464c2(0x5f6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':(0x0,C[_0xe464c2(0x399)])('div',{'className':'univer-w-20','children':(0x0,C[_0xe464c2(0x399)])(b['InputNumber'],{'className':_0xe464c2(0x43b),'value':_0x25e2a3,'disabled':_0x239c3a,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x44327d=>_0x44327d+'%','parser':_0xe54447=>(_0xe54447==null?void 0x0:_0xe54447[_0xe464c2(0x4ff)]('%',''))||'','onChange':_0x3ccb1c=>{const _0x36586f=_0xe464c2;let _0x285a80=_0x3ccb1c==null?0x0:_0x3ccb1c,_0x29527e=(0x64-Math['max'](0x0,Math[_0x36586f(0x360)](0x64,_0x285a80)))/0x64;_0x1e88cc(_0x29527e),z(_0x50c3d1,_0x723cbe,_0x494eea,_0xb5c8b8,{'oldShapeData':{'fill':{..._0x3bf05e[_0x36586f(0xfd)],'fillType':_0x4ee0d7}}},{'fill':{..._0x3bf05e[_0x36586f(0xfd)],'fillType':_0x4ee0d7,'opacity':_0x29527e}}),_0x11ef00[_0x36586f(0x28d)](l['FOCUSING_PANEL_EDITOR'],!0x1);},'onFocus':()=>_0x11ef00[_0xe464c2(0x28d)](l[_0xe464c2(0x2e5)],!0x0),'onBlur':()=>{const _0x42d115=_0xe464c2;_0x11ef00[_0x42d115(0x28d)](l[_0x42d115(0x2e5)],!0x1);}})})})]})]}),_0x4ee0d7===y[_0xe464c2(0x378)][_0xe464c2(0x244)]&&(0x0,C[_0xe464c2(0x399)])(se,{'shapeData':_0x3bf05e,'disableShapeOption':_0x239c3a,'onUpdate':_0x4fd640=>{const _0x2861ad=_0xe464c2;z(_0x50c3d1,_0x723cbe,_0x494eea,_0xb5c8b8,{'oldShapeData':{'fill':{..._0x3bf05e[_0x2861ad(0xfd)]}}},{'fill':{..._0x3bf05e[_0x2861ad(0xfd)],..._0x4fd640}});}}),_0x4ee0d7===y[_0xe464c2(0x378)][_0xe464c2(0x527)]&&(0x0,C[_0xe464c2(0x399)])(ie,{'unitId':_0x723cbe,'subUnitId':_0x494eea,'shapeId':_0xb5c8b8,'shapeData':_0x3bf05e,'disableShapeOption':_0x239c3a})]});}function oe(_0x5942f9){const _0x1f8e59=_0x1706e4;switch(_0x5942f9){case y[_0x1f8e59(0x377)][_0x1f8e59(0xc9)]:return _0x1f8e59(0x482);case y['ShapeGradientTypeEnum'][_0x1f8e59(0xe4)]:return _0x1f8e59(0x44e);case y[_0x1f8e59(0x377)]['Angular']:return _0x1f8e59(0x449);case y[_0x1f8e59(0x377)]['Diamond']:return _0x1f8e59(0x519);default:return _0x1f8e59(0x482);}}function G(_0x351ba4){const _0x5447b2=_0x1706e4;switch(_0x351ba4){case'linear':return y[_0x5447b2(0x377)][_0x5447b2(0xc9)];case _0x5447b2(0x44e):return y[_0x5447b2(0x377)][_0x5447b2(0xe4)];case'angular':return y['ShapeGradientTypeEnum'][_0x5447b2(0x585)];case _0x5447b2(0x519):return y[_0x5447b2(0x377)][_0x5447b2(0x565)];default:return y[_0x5447b2(0x377)][_0x5447b2(0xc9)];}}function se(_0x51801d){const _0x3e6e14=_0x1706e4;let {shapeData:_0x5793e0,disableShapeOption:_0x58bfae,onUpdate:_0x7b2183}=_0x51801d,_0x1115bd=(0x0,x[_0x3e6e14(0x205)])(()=>{const _0xf8287b=_0x3e6e14;var _0x104f83;let _0xa4bb1a=_0x5793e0['fill'];return{'type':oe(_0xa4bb1a==null?void 0x0:_0xa4bb1a[_0xf8287b(0x3b2)]),'angle':(_0x104f83=_0xa4bb1a==null?void 0x0:_0xa4bb1a[_0xf8287b(0x23c)])==null?0x5a:_0x104f83,'stops':_0xa4bb1a!=null&&_0xa4bb1a[_0xf8287b(0x2cf)]&&_0xa4bb1a[_0xf8287b(0x2cf)]['length']>=0x2?_0xa4bb1a['gradientStops']['map'](_0x54339f=>({'color':_0x54339f[_0xf8287b(0x177)],'offset':_0x54339f[_0xf8287b(0x188)]*0x64})):[{'color':(_0xa4bb1a==null?void 0x0:_0xa4bb1a[_0xf8287b(0x177)])||_0xf8287b(0x524),'offset':0x0},{'color':'#000000','offset':0x64}]};},[_0x5793e0[_0x3e6e14(0xfd)]]);return(0x0,C[_0x3e6e14(0x399)])(_0x3e6e14(0x5f6),{'className':_0x3e6e14(0x5d2),'children':(0x0,C[_0x3e6e14(0x399)])(b[_0x3e6e14(0x4d7)],{'value':_0x1115bd,'onChange':_0x4487a7=>{const _0x34903c=_0x3e6e14;let _0x26fd27=G(_0x4487a7['type']),_0x12d806=_0x4487a7[_0x34903c(0x551)];_0x7b2183({'gradientType':_0x26fd27,'gradientAngle':_0x12d806,'gradientStops':_0x4487a7[_0x34903c(0x4c6)][_0x34903c(0x562)](_0x46f0d0=>({'color':_0x46f0d0['color'],'position':_0x46f0d0[_0x34903c(0x4a4)]/0x64}))});}})});}function ce(_0x18f90f){const _0x18586a=_0x1706e4;var _0x1e07bd,_0x285f81,_0x3c48f3,_0x4f2896,_0x1f8642,_0x5aa0c5,_0x4f30fc,_0x2f29ff,_0x1602fc,_0x251cb8,_0x7199ab,_0x4d2ffe,_0x592e2d,_0x4b8e7e,_0xdefc98,_0x1339fe;let _0x37be04=(0x0,v['useDependency'])(l[_0x18586a(0x4aa)]),_0xf3fc5=(0x0,v[_0x18586a(0x5ad)])(l[_0x18586a(0x41c)]),_0x5b247e=(0x0,v[_0x18586a(0x5ad)])(l[_0x18586a(0x3fc)]),{shapeData:_0x34af83,isLineShape:_0x2049b8,unitId:_0x383a84,subUnitId:_0x66d113,shapeId:_0x8d415f,disableShapeOption:_0x36044d}=_0x18f90f,_0x3932af=_0x34af83[_0x18586a(0x3f4)],[_0x2a7237,_0x71f408]=(0x0,x[_0x18586a(0x1a3)])((_0x1e07bd=_0x3932af==null?void 0x0:_0x3932af[_0x18586a(0x257)])==null?y[_0x18586a(0x479)]['SolidLine']:_0x1e07bd),[_0x2a0e6e,_0x55fb0a]=(0x0,x[_0x18586a(0x1a3)])((_0x285f81=_0x3932af==null?void 0x0:_0x3932af[_0x18586a(0x177)])==null?y[_0x18586a(0x1a7)][_0x18586a(0x3f4)]:_0x285f81),[_0x410775,_0x5c0d13]=(0x0,x[_0x18586a(0x1a3)])((_0x3c48f3=_0x3932af==null?void 0x0:_0x3932af['opacity'])==null?0x1:_0x3c48f3),[_0x5ee223,_0x11243f]=(0x0,x[_0x18586a(0x1a3)])((_0x4f2896=_0x3932af==null?void 0x0:_0x3932af[_0x18586a(0x321)])==null?y['ShapeDefaultConfig']['strokeWidth']:_0x4f2896),[_0x593ef3,_0x941772]=(0x0,x[_0x18586a(0x1a3)])((_0x1f8642=_0x3932af==null?void 0x0:_0x3932af['dashType'])==null?y[_0x18586a(0x218)][_0x18586a(0x5b0)]:_0x1f8642),[_0x2c59ea,_0x32b009]=(0x0,x[_0x18586a(0x1a3)])((_0x5aa0c5=_0x3932af==null?void 0x0:_0x3932af['capType'])==null?y[_0x18586a(0x547)][_0x18586a(0x484)]:_0x5aa0c5),[_0x164b84,_0x5f30cc]=(0x0,x[_0x18586a(0x1a3)])((_0x4f30fc=_0x3932af==null?void 0x0:_0x3932af[_0x18586a(0x3bf)])==null?y[_0x18586a(0x301)][_0x18586a(0x1cc)]:_0x4f30fc),[_0xdd815c,_0x213d13]=(0x0,x['useState'])((_0x2f29ff=_0x3932af==null?void 0x0:_0x3932af[_0x18586a(0x467)])==null?y['ShapeSketchTypeEnum']['None']:_0x2f29ff),_0x563ad4=_0x34af83,[_0x4a11c8,_0x4629a4]=(0x0,x[_0x18586a(0x1a3)])((_0x1602fc=(_0x251cb8=_0x563ad4['ln'])==null||(_0x251cb8=_0x251cb8[_0x18586a(0x219)])==null?void 0x0:_0x251cb8[_0x18586a(0x348)])==null?y['ShapeArrowTypeEnum']['None']:_0x1602fc),[_0x247714,_0x13d6ba]=(0x0,x[_0x18586a(0x1a3)])((_0x7199ab=(_0x4d2ffe=_0x563ad4['ln'])==null||(_0x4d2ffe=_0x4d2ffe[_0x18586a(0x219)])==null?void 0x0:_0x4d2ffe['size'])==null?y[_0x18586a(0x221)][_0x18586a(0x14c)]:_0x7199ab),[_0xb62e80,_0x33d41a]=(0x0,x[_0x18586a(0x1a3)])((_0x592e2d=(_0x4b8e7e=_0x563ad4['ln'])==null||(_0x4b8e7e=_0x4b8e7e[_0x18586a(0x126)])==null?void 0x0:_0x4b8e7e['type'])==null?y[_0x18586a(0x2a0)][_0x18586a(0x402)]:_0x592e2d),[_0x36a79a,_0x518356]=(0x0,x[_0x18586a(0x1a3)])((_0xdefc98=(_0x1339fe=_0x563ad4['ln'])==null||(_0x1339fe=_0x1339fe[_0x18586a(0x126)])==null?void 0x0:_0x1339fe[_0x18586a(0x448)])==null?y[_0x18586a(0x221)][_0x18586a(0x14c)]:_0xdefc98),[_0x563498,_0x4dd62e]=(0x0,x[_0x18586a(0x1a3)])(!0x1),_0x3f0b86=0x64-_0x410775*0x64,_0x253d8f=[{'label':_0x37be04['t']('sheets-shape.line.dashType.solid'),'value':String(y['ShapeLineDashEnum']['Solid'])},{'label':_0x37be04['t'](_0x18586a(0x50c)),'value':String(y[_0x18586a(0x218)][_0x18586a(0x3a9)])},{'label':_0x37be04['t']('sheets-shape.line.dashType.squareDot'),'value':String(y['ShapeLineDashEnum']['SquareDot'])},{'label':_0x37be04['t'](_0x18586a(0x26e)),'value':String(y[_0x18586a(0x218)][_0x18586a(0x101)])},{'label':_0x37be04['t'](_0x18586a(0x342)),'value':String(y[_0x18586a(0x218)][_0x18586a(0x245)])},{'label':_0x37be04['t']('sheets-shape.line.dashType.longDash'),'value':String(y[_0x18586a(0x218)]['LongDash'])},{'label':_0x37be04['t']('sheets-shape.line.dashType.longDashDot'),'value':String(y['ShapeLineDashEnum'][_0x18586a(0x220)])},{'label':_0x37be04['t'](_0x18586a(0x544)),'value':String(y[_0x18586a(0x218)]['LongDashDotDot'])}],_0x33b776=[{'label':_0x37be04['t'](_0x18586a(0x286)),'value':String(y[_0x18586a(0x547)][_0x18586a(0x484)])},{'label':_0x37be04['t'](_0x18586a(0x5cc)),'value':String(y['ShapeLineCapEnum'][_0x18586a(0x32b)])},{'label':_0x37be04['t']('sheets-shape.line.capType.square'),'value':String(y[_0x18586a(0x547)][_0x18586a(0x17e)])}],_0x25a382=[{'label':_0x37be04['t'](_0x18586a(0x49a)),'value':String(y[_0x18586a(0x1de)][_0x18586a(0x402)])},{'label':_0x37be04['t']('sheets-shape.line.sketchType.curved'),'value':String(y[_0x18586a(0x1de)][_0x18586a(0x35f)])},{'label':_0x37be04['t'](_0x18586a(0x1b9)),'value':String(y[_0x18586a(0x1de)][_0x18586a(0x33c)])},{'label':_0x37be04['t'](_0x18586a(0x30a)),'value':String(y['ShapeSketchTypeEnum']['HandDrawn'])}],_0x54fb2a=[{'label':_0x37be04['t'](_0x18586a(0x3c2)),'value':String(y['ShapeLineJoinEnum'][_0x18586a(0x1cc)])},{'label':_0x37be04['t']('sheets-shape.line.joinType.round'),'value':String(y[_0x18586a(0x301)][_0x18586a(0x32b)])},{'label':_0x37be04['t'](_0x18586a(0x228)),'value':String(y['ShapeLineJoinEnum'][_0x18586a(0x46c)])}],_0xa9f19b=[{'label':_0x37be04['t'](_0x18586a(0x403)),'value':String(y[_0x18586a(0x2a0)][_0x18586a(0x402)])},{'label':_0x37be04['t'](_0x18586a(0x466)),'value':String(y[_0x18586a(0x2a0)][_0x18586a(0x601)])},{'label':_0x37be04['t']('sheets-shape.line.arrowType.openArrow'),'value':String(y['ShapeArrowTypeEnum'][_0x18586a(0x3fa)])},{'label':_0x37be04['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(y[_0x18586a(0x2a0)][_0x18586a(0x4ca)])},{'label':_0x37be04['t'](_0x18586a(0x32f)),'value':String(y['ShapeArrowTypeEnum'][_0x18586a(0x2f0)])},{'label':_0x37be04['t'](_0x18586a(0x417)),'value':String(y[_0x18586a(0x2a0)][_0x18586a(0x317)])}],_0x48b689=[{'label':_0x37be04['t'](_0x18586a(0x307)),'value':String(y[_0x18586a(0x221)]['Small'])},{'label':_0x37be04['t']('sheets-shape.line.arrowSize.medium'),'value':String(y['ShapeArrowSizeEnum']['Medium'])},{'label':_0x37be04['t'](_0x18586a(0x2a4)),'value':String(y[_0x18586a(0x221)][_0x18586a(0x247)])}];return(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x3ac),'children':[(0x0,C[_0x18586a(0x102)])(b[_0x18586a(0x40d)],{'value':String(_0x2a7237),'disabled':_0x36044d,'onChange':_0x57dbcf=>{const _0x15dbf2=_0x18586a;var _0x20581c;_0x71f408(Number(_0x57dbcf)),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x20581c=_0x34af83[_0x15dbf2(0x3f4)])==null?void 0x0:_0x20581c['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x57dbcf)}});},'direction':_0x18586a(0xb3),'children':[(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x12c)],{'value':String(y[_0x18586a(0x479)][_0x18586a(0x1b0)]),'children':(0x0,C['jsx'])(_0x18586a(0x477),{'className':'univer-text-sm','children':_0x37be04['t']('sheets-shape.line.noLine')})}),(0x0,C['jsx'])(b['Radio'],{'value':String(y[_0x18586a(0x479)][_0x18586a(0x5de)]),'children':(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':'univer-text-sm','children':_0x37be04['t']('sheets-shape.line.solidLine')})})]}),_0x2a7237!==y[_0x18586a(0x479)]['NoLine']&&(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x5a7),'children':[(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x37be04['t']('sheets-shape.line.color')}),(0x0,C['jsx'])(b[_0x18586a(0xa9)],{'disabled':_0x36044d,'overlay':(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0x4e9),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x2ae)],{'value':_0x2a0e6e,'onChange':_0x7c89ec=>{const _0x3ea439=_0x18586a;var _0x4c5def;z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'color':(_0x4c5def=_0x34af83[_0x3ea439(0x3f4)])==null?void 0x0:_0x4c5def[_0x3ea439(0x177)]}}},{'stroke':{'color':_0x7c89ec}}),_0x55fb0a(_0x7c89ec),_0x4dd62e(!0x1);}})}),'open':_0x563498,'onOpenChange':_0x4dd62e,'children':(0x0,C['jsxs'])('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,C[_0x18586a(0x399)])(g[_0x18586a(0x574)],{'className':_0x18586a(0x425),'extend':{'colorChannel1':_0x2a0e6e}}),(0x0,C[_0x18586a(0x399)])(g[_0x18586a(0x2f2)],{'className':(0x0,b[_0x18586a(0x15e)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x563498})})]})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x119),'children':[(0x0,C[_0x18586a(0x399)])('span',{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x37be04['t'](_0x18586a(0x56d))}),(0x0,C['jsx'])(_0x18586a(0x5f6),{'className':_0x18586a(0x119),'children':(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0x5d0),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x213)],{'className':_0x18586a(0x43b),'value':_0x3f0b86,'disabled':_0x36044d,'min':0x0,'max':0x64,'formatter':_0x2be400=>_0x2be400+'%','parser':_0x3778f4=>(_0x3778f4==null?void 0x0:_0x3778f4[_0x18586a(0x4ff)]('%',''))||'','onChange':_0x3f6060=>{const _0x233bd3=_0x18586a;var _0x3ac436;let _0x357792=_0x3f6060==null?0x0:_0x3f6060,_0x5a41a4=(0x64-Math[_0x233bd3(0x263)](0x0,Math[_0x233bd3(0x360)](0x64,_0x357792)))/0x64;_0x5c0d13(_0x5a41a4),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'opacity':(_0x3ac436=_0x34af83[_0x233bd3(0x3f4)])==null?void 0x0:_0x3ac436['opacity']}}},{'stroke':{'opacity':_0x5a41a4}}),_0x5b247e[_0x233bd3(0x28d)](l[_0x233bd3(0x2e5)],!0x1);},'onFocus':()=>_0x5b247e[_0x18586a(0x28d)](l['FOCUSING_PANEL_EDITOR'],!0x0),'onBlur':_0x5b6d96=>{const _0x316eec=_0x18586a;_0x5b247e[_0x316eec(0x28d)](l[_0x316eec(0x2e5)],!0x1);}})})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':_0x18586a(0xe0),'children':_0x37be04['t'](_0x18586a(0x1dd))}),(0x0,C['jsx'])('div',{'className':_0x18586a(0x42d),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x213)],{'className':_0x18586a(0x43b),'disabled':_0x36044d,'value':_0x5ee223,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x530813=>_0x530813+'\x20px','parser':_0x544ed9=>(_0x544ed9==null?void 0x0:_0x544ed9[_0x18586a(0x4ff)](_0x18586a(0x1f4),''))||'','onChange':_0x4b2337=>{const _0x4138c0=_0x18586a;if(!Number['isNaN'](_0x4b2337)&&_0x4b2337!==null){var _0x4d6c3d;z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'width':(_0x4d6c3d=_0x34af83['stroke'])==null?void 0x0:_0x4d6c3d[_0x4138c0(0x321)]}}},{'stroke':{'width':_0x4b2337}});}_0x5b247e[_0x4138c0(0x28d)](l[_0x4138c0(0x2e5)],!0x1);},'onFocus':()=>_0x5b247e[_0x18586a(0x28d)](l[_0x18586a(0x2e5)],!0x0),'onBlur':_0x43ddeb=>{const _0x509639=_0x18586a;_0x5b247e['setContextValue'](l[_0x509639(0x2e5)],!0x1);}})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':_0x18586a(0xe0),'children':_0x37be04['t']('sheets-shape.line.dashType.title')}),(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':'univer-w-28','children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x4c8)],{'className':_0x18586a(0x43b),'value':String(_0x593ef3),'options':_0x253d8f,'disabled':_0x36044d,'onChange':_0x3c2f5a=>{const _0x29c4ac=_0x18586a;var _0x2767ff;_0x941772(Number(_0x3c2f5a)),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'dashType':(_0x2767ff=_0x34af83[_0x29c4ac(0x3f4)])==null?void 0x0:_0x2767ff[_0x29c4ac(0x246)]}}},{'stroke':{'dashType':Number(_0x3c2f5a)}});}})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C[_0x18586a(0x399)])('span',{'className':_0x18586a(0xe0),'children':_0x37be04['t'](_0x18586a(0x3ef))}),(0x0,C['jsx'])(_0x18586a(0x5f6),{'className':_0x18586a(0xb5),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x4c8)],{'className':'univer-w-full','value':String(_0x2c59ea),'options':_0x33b776,'disabled':_0x36044d,'onChange':_0x506e75=>{const _0x4beac8=_0x18586a;var _0x451da0;_0x32b009(Number(_0x506e75)),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'capType':(_0x451da0=_0x34af83['stroke'])==null?void 0x0:_0x451da0[_0x4beac8(0x21e)]}}},{'stroke':{'capType':Number(_0x506e75)}});}})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C['jsx'])('span',{'className':_0x18586a(0xe0),'children':_0x37be04['t'](_0x18586a(0x35d))}),(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0xb5),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x4c8)],{'className':'univer-w-full','value':String(_0x164b84),'options':_0x54fb2a,'disabled':_0x36044d,'onChange':_0x1deee9=>{const _0x231291=_0x18586a;var _0x3de51a;_0x5f30cc(Number(_0x1deee9)),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'lineJoinType':(_0x3de51a=_0x34af83['stroke'])==null?void 0x0:_0x3de51a[_0x231291(0x3bf)]}}},{'stroke':{'lineJoinType':Number(_0x1deee9)}});}})})]}),!_0x2049b8&&(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C['jsx'])('span',{'className':_0x18586a(0xe0),'children':_0x37be04['t']('sheets-shape.line.sketchType.title')}),(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0xb5),'children':(0x0,C['jsx'])(b[_0x18586a(0x4c8)],{'className':_0x18586a(0x43b),'value':String(_0xdd815c),'options':_0x25a382,'disabled':_0x36044d,'onChange':_0x28fbf6=>{const _0x2b8d62=_0x18586a;var _0x473510;_0x213d13(Number(_0x28fbf6)),z(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'stroke':{'sketchType':(_0x473510=_0x34af83[_0x2b8d62(0x3f4)])==null?void 0x0:_0x473510[_0x2b8d62(0x467)]}}},{'stroke':{'sketchType':Number(_0x28fbf6)}});}})})]}),_0x2049b8&&(0x0,C[_0x18586a(0x102)])(C[_0x18586a(0x2e3)],{'children':[(0x0,C[_0x18586a(0x102)])('div',{'className':_0x18586a(0x582),'children':[(0x0,C['jsx'])(_0x18586a(0x477),{'className':_0x18586a(0xe0),'children':_0x37be04['t'](_0x18586a(0x58c))}),(0x0,C['jsx'])(_0x18586a(0x5f6),{'className':'univer-w-28','children':(0x0,C['jsx'])(b[_0x18586a(0x4c8)],{'className':'univer-w-full','value':String(_0x4a11c8),'options':_0xa9f19b,'onChange':_0x2dae0c=>{const _0x4f23d1=_0x18586a;var _0x1459bc;_0x4629a4(Number(_0x2dae0c)),re(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x1459bc=_0x34af83['ln'])==null||(_0x1459bc=_0x1459bc[_0x4f23d1(0x219)])==null?void 0x0:_0x1459bc[_0x4f23d1(0x348)]}}}},{'ln':{'startArrow':{'type':Number(_0x2dae0c)}}});}})})]}),(0x0,C[_0x18586a(0x102)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C[_0x18586a(0x399)])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x37be04['t'](_0x18586a(0x2b0))}),(0x0,C[_0x18586a(0x399)])('div',{'className':_0x18586a(0xb5),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x4c8)],{'className':_0x18586a(0x43b),'value':String(_0x247714),'options':_0x48b689,'onChange':_0x4298d5=>{const _0x2f13b9=_0x18586a;var _0x54fe30;_0x13d6ba(Number(_0x4298d5)),re(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x54fe30=_0x34af83['ln'])==null||(_0x54fe30=_0x54fe30['startArrow'])==null?void 0x0:_0x54fe30[_0x2f13b9(0x448)]}}}},{'ln':{'startArrow':{'size':Number(_0x4298d5)}}});}})})]}),(0x0,C[_0x18586a(0x102)])('div',{'className':_0x18586a(0x582),'children':[(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':_0x18586a(0xe0),'children':_0x37be04['t']('sheets-shape.line.endArrowType')}),(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0xb5),'children':(0x0,C[_0x18586a(0x399)])(b[_0x18586a(0x4c8)],{'className':_0x18586a(0x43b),'value':String(_0xb62e80),'options':_0xa9f19b,'onChange':_0x580bae=>{const _0x4a2665=_0x18586a;var _0x508a56;_0x33d41a(Number(_0x580bae)),re(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x508a56=_0x34af83['ln'])==null||(_0x508a56=_0x508a56[_0x4a2665(0x126)])==null?void 0x0:_0x508a56[_0x4a2665(0x348)]}}}},{'ln':{'endArrow':{'type':Number(_0x580bae)}}});}})})]}),(0x0,C[_0x18586a(0x102)])(_0x18586a(0x5f6),{'className':_0x18586a(0x582),'children':[(0x0,C[_0x18586a(0x399)])(_0x18586a(0x477),{'className':_0x18586a(0xe0),'children':_0x37be04['t'](_0x18586a(0x1e7))}),(0x0,C[_0x18586a(0x399)])(_0x18586a(0x5f6),{'className':_0x18586a(0xb5),'children':(0x0,C['jsx'])(b[_0x18586a(0x4c8)],{'className':_0x18586a(0x43b),'value':String(_0x36a79a),'options':_0x48b689,'onChange':_0x313445=>{const _0xc79c49=_0x18586a;var _0x58d5cc;_0x518356(Number(_0x313445)),re(_0xf3fc5,_0x383a84,_0x66d113,_0x8d415f,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x58d5cc=_0x34af83['ln'])==null||(_0x58d5cc=_0x58d5cc[_0xc79c49(0x126)])==null?void 0x0:_0x58d5cc[_0xc79c49(0x448)]}}}},{'ln':{'endArrow':{'size':Number(_0x313445)}}});}})})]})]})]})]});}function le(){const _0x34f100=_0x1706e4;let _0xf75367=(0x0,v['useDependency'])(u[_0x34f100(0x3e9)]),[_0x331882,_0x116786]=(0x0,x[_0x34f100(0x1a3)])(_0xf75367[_0x34f100(0x4cf)]());return(0x0,x['useEffect'])(()=>{const _0x7ebfaf=_0x34f100;let _0x36896f=_0xf75367[_0x7ebfaf(0x235)]['subscribe'](_0x48e509=>{_0x116786(_0x48e509);});return()=>{const _0x409db4=_0x7ebfaf;_0x36896f[_0x409db4(0x1c4)]();};},[]),_0x331882[_0x34f100(0xa5)]===0x0?null:(0x0,C['jsx'])(_0x34f100(0x5f6),{'children':(0x0,C[_0x34f100(0x102)])(_0x34f100(0x5f6),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,C['jsx'])(S[_0x34f100(0x35b)],{'drawings':_0x331882,'hasCropper':!0x1}),(0x0,C['jsx'])(w[_0x34f100(0x24f)],{'drawings':_0x331882})]})});}function K(_0x52e270){const _0x5eb766=_0x1706e4;let {shapeData:_0xf050cb,shapeId:_0x25ef3d,shapeType:_0x374403,version:_0x5906ed,unitId:_0x468d9a,subUnitId:_0xdccfb9,disableShapeOption:_0x2d28a3}=_0x52e270,_0x45a8df=(0x0,v[_0x5eb766(0x5ad)])(l['LocaleService']),_0x1a9731=(0x0,y['isConnectorShape'])(_0x374403),[_0x3a2c32,_0x31c795]=(0x0,x[_0x5eb766(0x1a3)])(0x0),_0x1692f=[{'label':(0x0,C[_0x5eb766(0x399)])('div',{'children':_0x45a8df['t'](_0x5eb766(0x1e5))}),'children':(0x0,C[_0x5eb766(0x399)])(_0x5eb766(0x5c2),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,C[_0x5eb766(0x399)])(ae,{'shapeId':_0x25ef3d,'shapeData':_0xf050cb,'isLineShape':_0x1a9731,'subUnitId':_0xdccfb9,'unitId':_0x468d9a,'disableShapeOption':_0x2d28a3},_0x25ef3d)})},{'label':(0x0,C['jsx'])(_0x5eb766(0x5f6),{'children':_0x45a8df['t'](_0x5eb766(0x2b9))}),'children':(0x0,C['jsx'])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,C[_0x5eb766(0x399)])(ce,{'shapeId':_0x25ef3d,'shapeData':_0xf050cb,'isLineShape':_0x1a9731,'subUnitId':_0xdccfb9,'unitId':_0x468d9a,'disableShapeOption':_0x2d28a3},_0x25ef3d)})}];return(0x0,C[_0x5eb766(0x102)])(_0x5eb766(0x5f6),{'className':'univer-size-full','children':[(0x0,C['jsxs'])('div',{'className':_0x5eb766(0x570),'children':[(0x0,C['jsxs'])(_0x5eb766(0x5f6),{'className':(0x0,b[_0x5eb766(0x15e)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',_0x3a2c32===0x0?'univer-text-primary-600':_0x5eb766(0x425)),'onClick':()=>_0x31c795(0x0),'children':[_0x45a8df['t'](_0x5eb766(0x21f)),(0x0,C[_0x5eb766(0x399)])(_0x5eb766(0x5f6),{'className':(0x0,b['clsx'])(_0x5eb766(0x49d),{'univer-bg-primary-600':_0x3a2c32===0x0,'univer-bg-transparent':_0x3a2c32!==0x0})})]}),(0x0,C[_0x5eb766(0x102)])('div',{'className':(0x0,b[_0x5eb766(0x15e)])(_0x5eb766(0x3c0),{'univer-text-primary-600':_0x3a2c32===0x1,'univer-text-gray-500':_0x3a2c32!==0x1}),'onClick':()=>_0x31c795(0x1),'children':[_0x45a8df['t'](_0x5eb766(0xf4)),(0x0,C[_0x5eb766(0x399)])(_0x5eb766(0x5f6),{'className':(0x0,b[_0x5eb766(0x15e)])(_0x5eb766(0x108),{'univer-bg-primary-600':_0x3a2c32===0x1,'univer-bg-transparent':_0x3a2c32!==0x1})})]})]}),(0x0,C[_0x5eb766(0x399)])('div',{'className':_0x5eb766(0xcf),'children':_0x3a2c32===0x0?(0x0,C[_0x5eb766(0x399)])('div',{'className':'','children':(0x0,C[_0x5eb766(0x399)])(b[_0x5eb766(0x5a9)],{'items':_0x1692f})},_0x5906ed):(0x0,C[_0x5eb766(0x399)])(le,{})})]});}var ue=class extends d['Shape']{constructor(_0x5afe10,_0x2f23c4){const _0x83b412=_0x1706e4;super(_0x5afe10,_0x2f23c4),k(this,'_shapeId',null),k(this,_0x83b412(0x1e9),null),k(this,_0x83b412(0x4c0),null),k(this,'_subUnitId',null),_0x2f23c4&&this['setShapeProps'](_0x2f23c4);}['getDrawingSearch'](){const _0x57b1d0=_0x1706e4;return{'unitId':this[_0x57b1d0(0x4c0)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x57b1d0(0x371)]};}[_0x1706e4(0x591)](_0x1dc07c){const _0x7d2d60=_0x1706e4;_0x1dc07c[_0x7d2d60(0x3e8)]!==void 0x0&&(this['_shapeId']=_0x1dc07c[_0x7d2d60(0x3e8)]),_0x1dc07c['adjName']!==void 0x0&&(this[_0x7d2d60(0x1e9)]=_0x1dc07c[_0x7d2d60(0x3b7)]),_0x1dc07c[_0x7d2d60(0xd8)]!==void 0x0&&(this[_0x7d2d60(0x4c0)]=_0x1dc07c['unitId']),_0x1dc07c[_0x7d2d60(0x2b5)]!==void 0x0&&(this[_0x7d2d60(0x278)]=_0x1dc07c[_0x7d2d60(0x2b5)]),this['transformByState']({'width':_0x1dc07c[_0x7d2d60(0x321)],'height':_0x1dc07c['height']});}[_0x1706e4(0x442)](_0x21bafd){const _0x55457f=_0x1706e4;d[_0x55457f(0x10d)][_0x55457f(0x331)](_0x21bafd,{'radius':y['ShapeDefaultConfig'][_0x55457f(0x596)],'fill':y[_0x55457f(0x1a7)]['adjHandleFill'],'stroke':y[_0x55457f(0x1a7)][_0x55457f(0x34e)],'strokeWidth':0x1,'evented':!0x0});}};let q=class extends l['Disposable']{constructor(_0x73975e,_0x3104bb,_0x4ebb93,_0x95bf9a,_0x2c3a2f,_0x106f93,_0x4eab62,_0x3b71bc){const _0x1f11a2=_0x1706e4;super(),this[_0x1f11a2(0x194)]=_0x73975e,this[_0x1f11a2(0xd4)]=_0x3104bb,this[_0x1f11a2(0x3f8)]=_0x4ebb93,this[_0x1f11a2(0x495)]=_0x95bf9a,this[_0x1f11a2(0x11d)]=_0x2c3a2f,this['_sheetDrawingShapeRenderController']=_0x106f93,this[_0x1f11a2(0x3ce)]=_0x4eab62,this['_commandService']=_0x3b71bc,k(this,'_activeShapeId',null),k(this,_0x1f11a2(0x4c0),null),k(this,_0x1f11a2(0x278),null),k(this,'_activeShapeAdjustPointList',void 0x0),k(this,_0x1f11a2(0x542),[]),k(this,_0x1f11a2(0x1ba),0x0),k(this,_0x1f11a2(0xb6),0x0),k(this,_0x1f11a2(0x137),0x0),k(this,_0x1f11a2(0x2f8),0x0),k(this,_0x1f11a2(0x22f),!0x1),k(this,_0x1f11a2(0x3ae),void 0x0),k(this,_0x1f11a2(0xd1),void 0x0),k(this,_0x1f11a2(0x258),void 0x0),k(this,'_adjHandlerPointerUp',void 0x0),k(this,_0x1f11a2(0x463),!0x1),this[_0x1f11a2(0x359)](),this[_0x1f11a2(0x192)]();}[_0x1706e4(0x447)](_0x36e6a2,_0x3e8fb8,_0x9cc947){const _0x3f958=_0x1706e4;let _0x4d6706=this[_0x3f958(0x495)]['getShapeModel'](_0x36e6a2,_0x3e8fb8,_0x9cc947);if(_0x4d6706)return _0x4d6706['getDrawingPoints']();}[_0x1706e4(0x600)](){const _0x1a6571=_0x1706e4;this[_0x1a6571(0x335)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x1706e4(0x4f0)](_0x3e05f1){const _0x270b1b=_0x1706e4;this[_0x270b1b(0x463)]=_0x3e05f1;}[_0x1706e4(0x441)](_0x5cc7a9,_0x5e069d,_0x3f322e,_0xe0f12c){const _0x33d8e9=_0x1706e4;let _0x3ca9bc=this[_0x33d8e9(0x495)][_0x33d8e9(0xc3)](_0x5cc7a9,_0x5e069d,_0x3f322e);if(_0x3ca9bc)return _0x3ca9bc[_0x33d8e9(0x400)](_0xe0f12c);}[_0x1706e4(0x182)](_0xf66ad3=!0x1){const _0x5db872=_0x1706e4;if(this[_0x5db872(0x4c0)]===null||this['_subUnitId']===null||this[_0x5db872(0x23e)]===null)return;let _0x53ac01=this['_renderManagerService'][_0x5db872(0x513)](this[_0x5db872(0x4c0)]);if(!_0x53ac01||!_0x53ac01[_0x5db872(0x189)](_[_0x5db872(0x27e)])[_0x5db872(0x14a)]())return;let {scene:_0x4c97bb}=_0x53ac01,_0x24e3c8={'unitId':this[_0x5db872(0x4c0)],'subUnitId':this[_0x5db872(0x278)],'drawingId':this['_activeShapeId']},_0xcbbc7f=this[_0x5db872(0x3f8)][_0x5db872(0x5e7)](_0x24e3c8),{transform:_0x3d5367}=_0xcbbc7f;if(!_0x3d5367||_0xcbbc7f['drawingType']!==l[_0x5db872(0x55c)]['DRAWING_SHAPE'])return;let {left:_0x365358,top:_0x42ea06,width:_0x4e2a0a,height:_0x1fdb90,flipX:_0x2575f1,flipY:_0x71d796,angle:_0x264ca0=0x0}=_0x3d5367;if(_0x365358===void 0x0||_0x42ea06===void 0x0)return;_0xf66ad3&&(this[_0x5db872(0x127)]=this[_0x5db872(0x447)](this[_0x5db872(0x4c0)],this[_0x5db872(0x278)],this[_0x5db872(0x23e)]));let _0x1e5186=this['_activeShapeAdjustPointList'];for(let _0x42d5da=0x0;_0x42d5da<_0x1e5186[_0x5db872(0xa5)];_0x42d5da++){let _0x6ad843=_0x1e5186[_0x42d5da],_0x4e5c14=_0x6ad843['x'],_0x20bae6=_0x6ad843['y'];if(_0x2575f1&&(_0x4e5c14=(_0x4e2a0a||0x0)-_0x4e5c14),_0x71d796&&(_0x20bae6=(_0x1fdb90||0x0)-_0x20bae6),_0x264ca0!==0x0){let _0x5d1bc6=(_0x4e2a0a||0x0)/0x2,_0x1d1c4f=(_0x1fdb90||0x0)/0x2,_0xd853f9=_0x264ca0*Math['PI']/0xb4,_0x24ad9f=Math['cos'](_0xd853f9),_0x5b1272=Math[_0x5db872(0x2d2)](_0xd853f9),_0x525574=_0x4e5c14-_0x5d1bc6,_0x4c08be=_0x20bae6-_0x1d1c4f;_0x4e5c14=_0x5d1bc6+(_0x525574*_0x24ad9f-_0x4c08be*_0x5b1272),_0x20bae6=_0x1d1c4f+(_0x525574*_0x5b1272+_0x4c08be*_0x24ad9f);}let _0x4d5b05={'x':_0x4e5c14,'y':_0x20bae6,'adjName':_0x6ad843[_0x5db872(0x3b7)]};this[_0x5db872(0x3bc)](_0x4c97bb,_0x4d5b05,_0x4d5b05['adjName'],_0x365358,_0x42ea06,this[_0x5db872(0x4c0)],this[_0x5db872(0x278)]);}}['_updateShapeAdjustControls'](_0x476b14=!0x1){const _0x5ce73a=_0x1706e4;_0x476b14&&(this[_0x5ce73a(0x335)](),this['_createShapeAdjustControls'](_0x476b14));}[_0x1706e4(0x3bc)](_0x524056,_0xdbb137,_0x17e032,_0x4ee470,_0x241a9c,_0x5216cd,_0x17f288){const _0xb93d36=_0x1706e4;if(!this[_0xb93d36(0x23e)])return;let _0x58955f=_0x524056[_0xb93d36(0x26b)]('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x17e032);if(_0x58955f){_0x58955f[_0xb93d36(0x325)]({'left':_0xdbb137['x']+_0x4ee470-y[_0xb93d36(0x1a7)][_0xb93d36(0x596)],'top':_0xdbb137['y']+_0x241a9c-y['ShapeDefaultConfig'][_0xb93d36(0x596)]});return;}let _0x19f8af={'left':_0xdbb137['x']+_0x4ee470-y[_0xb93d36(0x1a7)]['adjHandleSize'],'top':_0xdbb137['y']+_0x241a9c-y[_0xb93d36(0x1a7)][_0xb93d36(0x596)],'adjName':_0x17e032,'shapeId':this[_0xb93d36(0x23e)],'unitId':_0x5216cd,'subUnitId':_0x17f288,'width':y[_0xb93d36(0x1a7)][_0xb93d36(0x596)]+0x8,'height':y['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':d[_0xb93d36(0x166)]+0x1,'evented':!0x0},_0x51a3e9=new ue('shape-adjust-point-'+this[_0xb93d36(0x23e)]+'-'+_0x17e032,_0x19f8af);this[_0xb93d36(0x542)][_0xb93d36(0x5d7)](_0x51a3e9),this[_0xb93d36(0x536)](_0x51a3e9,_0x524056,_0x17e032),_0x524056[_0xb93d36(0x4a7)](_0x51a3e9,d['DRAWING_OBJECT_LAYER_INDEX']+0x1);}['_clearShapeAdjustControls'](){const _0x498aed=_0x1706e4;this['_shapes'][_0x498aed(0xa5)]!==0x0&&(this[_0x498aed(0x542)][_0x498aed(0x171)](_0x23166b=>{_0x23166b['dispose']();}),this[_0x498aed(0x542)]=[]);}[_0x1706e4(0x4cb)](){const _0x311e40=_0x1706e4;this[_0x311e40(0x182)]();}[_0x1706e4(0x24d)](_0x2b7bd2,_0x20a3a0){const _0x22a2a6=_0x1706e4;var _0x22fdf;let _0x204d81={'x':0x0,'y':0x0};if(!_0x2b7bd2||!_0x20a3a0)return _0x204d81;let _0x2a650b=this[_0x22a2a6(0x11d)][_0x22a2a6(0x513)](_0x2b7bd2);if(!_0x2a650b||!_0x2a650b['with'](_[_0x22a2a6(0x27e)])[_0x22a2a6(0x59a)](_0x20a3a0))return _0x204d81;let _0x12d5a5=_0x2a650b[_0x22a2a6(0x189)](_['SheetScrollManagerService']),_0x51a017=_0x12d5a5==null?void 0x0:_0x12d5a5[_0x22a2a6(0x333)]();if(!_0x51a017)return _0x204d81;let _0x2e0137=(_0x22fdf=this[_0x22a2a6(0x3ce)]['getUnit'](_0x2b7bd2))==null?void 0x0:_0x22fdf['getSheetBySheetId'](_0x20a3a0);if(!_0x2e0137)return _0x204d81;let _0xbc26de=(0x0,_[_0x22a2a6(0x22a)])(_0x51a017[_0x22a2a6(0xaa)],_0x51a017[_0x22a2a6(0xac)],_0x2a650b['scene'],_0x2e0137);return _0xbc26de?{'x':_0xbc26de[_0x22a2a6(0x35c)],'y':_0xbc26de[_0x22a2a6(0x58b)]}:_0x204d81;}['_getZoomRatio'](_0x47efee,_0x2ad3e3){const _0xa18f2=_0x1706e4;var _0x373a34,_0x482c8e;let _0xf2bdfe=(_0x373a34=this[_0xa18f2(0x3ce)]['getUnit'](_0x47efee))==null?void 0x0:_0x373a34[_0xa18f2(0x275)](_0x2ad3e3);return(_0x482c8e=_0xf2bdfe==null?void 0x0:_0xf2bdfe[_0xa18f2(0x431)]())==null?0x1:_0x482c8e;}[_0x1706e4(0x536)](_0x1ece9c,_0x144105,_0x4f616c){const _0x397033=_0x1706e4;this[_0x397033(0x43c)]((0x0,l[_0x397033(0x458)])(_0x1ece9c[_0x397033(0x3aa)][_0x397033(0xa8)]((_0x55e6e9,_0x52c461)=>{const _0x5c21ff=_0x397033;var _0x5e1439,_0x47540f,_0x24249d,_0x42bc11;let _0x2ed14f=_0x1ece9c[_0x5c21ff(0x2fa)]();this[_0x5c21ff(0x3ae)]=this[_0x5c21ff(0x441)](_0x2ed14f[_0x5c21ff(0xd8)],_0x2ed14f[_0x5c21ff(0x2b5)],_0x2ed14f['drawingId'],_0x4f616c),this[_0x5c21ff(0xd1)]=this[_0x5c21ff(0x495)][_0x5c21ff(0xc3)](_0x2ed14f['unitId'],_0x2ed14f['subUnitId'],_0x2ed14f[_0x5c21ff(0x401)]);let _0x25ba3c=this[_0x5c21ff(0x3f8)][_0x5c21ff(0x5e7)]({'unitId':this[_0x5c21ff(0x4c0)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5c21ff(0x23e)]}),{transform:_0x1d218}=_0x25ba3c;if(_0x1d218){let {left:_0x17fe93,top:_0x1a62f8,width:_0x460535,height:_0x45e21c}=_0x1d218;this[_0x5c21ff(0x1ba)]=_0x17fe93||0x0,this['_baseShapeTop']=_0x1a62f8||0x0,this['_baseShapeWidth']=_0x460535||0x0,this[_0x5c21ff(0x2f8)]=_0x45e21c||0x0;}let _0x336ad8=!!((_0x5e1439=_0x25ba3c[_0x5c21ff(0x18a)])!=null&&_0x5e1439[_0x5c21ff(0xfb)]),_0xa00ab2=!!((_0x47540f=_0x25ba3c[_0x5c21ff(0x18a)])!=null&&_0x47540f[_0x5c21ff(0x259)]),_0x384920=((_0x24249d=_0x25ba3c[_0x5c21ff(0x18a)])==null?void 0x0:_0x24249d[_0x5c21ff(0x551)])||0x0;this[_0x5c21ff(0x22f)]=!0x0,_0x144105[_0x5c21ff(0x324)]();let _0x47268d=(_0x42bc11=this[_0x5c21ff(0xd1)])==null?void 0x0:_0x42bc11[_0x5c21ff(0x3a8)](_0x4f616c),_0x48bb2c={[_0x4f616c]:_0x47268d};this[_0x5c21ff(0x258)]=_0x144105['onPointerMove$'][_0x5c21ff(0xa8)]((_0x3ad2ba,_0x31d702)=>{const _0xd4b475=_0x5c21ff;if(!this[_0xd4b475(0x22f)])return;let {offsetX:_0x57b89d,offsetY:_0x10708e}=_0x3ad2ba,_0x379fa0=this[_0xd4b475(0x3ae)];if(this[_0xd4b475(0xd1)]&&_0x379fa0){_0x144105[_0xd4b475(0x324)](),_0x144105['setCursor'](d[_0xd4b475(0x3ba)][_0xd4b475(0x346)]);let _0x1addc8={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xd4b475(0x2f8)]},_0x45dac7=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0xec98c1=this['_getZoomRatio'](this[_0xd4b475(0x4c0)],this[_0xd4b475(0x278)]),_0x3739b0=_0x57b89d/_0xec98c1+_0x45dac7['x']-this['_baseShapeLeft'],_0x4b076d=_0x10708e/_0xec98c1+_0x45dac7['y']-this[_0xd4b475(0xb6)];if(_0x384920!==0x0){let _0x1ef44a=this[_0xd4b475(0x137)]/0x2,_0x3c864d=this[_0xd4b475(0x2f8)]/0x2,_0x47e403=_0x384920*Math['PI']/0xb4,_0x56d750=Math[_0xd4b475(0x4b6)](_0x47e403),_0x73a6bc=Math['sin'](_0x47e403),_0x5c22cd=_0x3739b0-_0x1ef44a,_0x4bb624=_0x4b076d-_0x3c864d;_0x3739b0=_0x1ef44a+(_0x5c22cd*_0x56d750+_0x4bb624*_0x73a6bc),_0x4b076d=_0x3c864d+(-_0x5c22cd*_0x73a6bc+_0x4bb624*_0x56d750);}_0x336ad8&&(_0x3739b0=this[_0xd4b475(0x137)]-_0x3739b0),_0xa00ab2&&(_0x4b076d=this[_0xd4b475(0x2f8)]-_0x4b076d);let _0x39087d={'x':_0x3739b0,'y':_0x4b076d},_0x1b41b1=this[_0xd4b475(0xd1)]['calcAdjValue'](_0x1addc8,_0x39087d,_0x379fa0,_0x336ad8,_0xa00ab2),_0x389f26=_0x379fa0[_0xd4b475(0x314)]||_0x379fa0[_0xd4b475(0x206)]||_0x379fa0[_0xd4b475(0x41a)]||_0x379fa0[_0xd4b475(0x3f5)];if(_0x389f26===void 0x0)return;this[_0xd4b475(0xd1)][_0xd4b475(0x232)](_0x389f26,_0x1b41b1);let _0x2f8fd6=this['_drawingManagerService'][_0xd4b475(0x5e7)]({'unitId':_0x2ed14f['unitId'],'subUnitId':_0x2ed14f[_0xd4b475(0x2b5)],'drawingId':_0x2ed14f[_0xd4b475(0x401)]});_0x2f8fd6&&(this['_sheetDrawingShapeRenderController'][_0xd4b475(0x436)](_0x2f8fd6,_0x144105),this['_activeShapeAdjustPointList']=this[_0xd4b475(0x447)](_0x2ed14f[_0xd4b475(0xd8)],_0x2ed14f['subUnitId'],_0x2ed14f[_0xd4b475(0x401)]),this[_0xd4b475(0x4cb)]());}_0x31d702[_0xd4b475(0x2d0)]();}),this[_0x5c21ff(0x48f)]=_0x144105[_0x5c21ff(0x170)][_0x5c21ff(0xa8)]((_0xa9a79d,_0x4714a3)=>{const _0x46a677=_0x5c21ff;this[_0x46a677(0x258)][_0x46a677(0x1c4)](),this[_0x46a677(0x48f)][_0x46a677(0x1c4)](),_0x144105[_0x46a677(0x210)]();let _0x2b51a6=this['_activeAdjustInfo'];if(_0x2b51a6){let _0x4c63d0=_0x2ed14f['unitId'],_0xfc43b8=_0x2ed14f[_0x46a677(0x2b5)],_0x474fb0=_0x2ed14f[_0x46a677(0x401)],_0x4f8edb=_0x2b51a6[_0x46a677(0x314)]||_0x2b51a6[_0x46a677(0x206)]||_0x2b51a6['gdRefAng']||_0x2b51a6[_0x46a677(0x3f5)];if(_0x4f8edb!==void 0x0){var _0x51006f;let _0x1fd46d=(_0x51006f=this['_activeShapeModel'])==null?void 0x0:_0x51006f[_0x46a677(0x3a8)](_0x4f8edb);_0x1fd46d!==void 0x0&&z(this[_0x46a677(0x2e8)],_0x4c63d0,_0xfc43b8,_0x474fb0,{'oldShapeData':{'adjustValues':_0x48bb2c}},{'adjustValues':{[_0x4f8edb]:_0x1fd46d}});}}this[_0x46a677(0x3ae)]=void 0x0,this[_0x46a677(0xd1)]=void 0x0,this[_0x46a677(0x22f)]=!0x1,_0x4714a3['stopPropagation'](),_0x144105[_0x46a677(0x4cc)]();}),_0x52c461['stopPropagation']();})));}[_0x1706e4(0x192)](){const _0x2fc1d1=_0x1706e4;let _0x71e4ac=this['_univerInstanceService'][_0x2fc1d1(0x54c)](l[_0x2fc1d1(0x46b)][_0x2fc1d1(0x304)]);this[_0x2fc1d1(0x43c)](_0x71e4ac['pipe']((0x0,f[_0x2fc1d1(0x358)])(_0xb6c3fb=>_0xb6c3fb?_0xb6c3fb[_0x2fc1d1(0x43d)][_0x2fc1d1(0x140)]((0x0,f[_0x2fc1d1(0x358)])(_0x4b538f=>{const _0x204bc0=_0x2fc1d1;if(!_0x4b538f)return f[_0x204bc0(0x4e7)];let _0xb05f7b=_0xb6c3fb['getUnitId'](),_0x35728c=this[_0x204bc0(0x11d)][_0x204bc0(0x513)](_0xb05f7b),_0x301ab1=_0x35728c==null?void 0x0:_0x35728c[_0x204bc0(0x2c7)];return _0x301ab1?(0x0,f['of'])(_0x301ab1):f[_0x204bc0(0x4e7)];})):f[_0x2fc1d1(0x4e7)]))[_0x2fc1d1(0x1b7)](_0x255e11=>{const _0x2433a8=_0x2fc1d1;let _0x52c384=_0x255e11[_0x2433a8(0x3d7)]();this[_0x2433a8(0x43c)](_0x255e11['onPointerMove$']['subscribeEvent'](()=>{const _0x5817ca=_0x2433a8;this[_0x5817ca(0x463)];})),this[_0x2433a8(0x43c)](_0x52c384['changeStart$'][_0x2433a8(0x1b7)](_0x90c20a=>{const _0x500c04=_0x2433a8;let {objects:_0x31c36c}=_0x90c20a;this['_createShapeAdjustControls'](),_0x31c36c!==null&&_0x31c36c[_0x500c04(0x448)]===0x1&&_0x31c36c[_0x500c04(0x231)]()[_0x500c04(0x593)]()['value']instanceof B&&this[_0x500c04(0x4f0)](!0x0);})),this[_0x2433a8(0x43c)](_0x52c384[_0x2433a8(0x556)][_0x2433a8(0x1b7)](()=>{const _0x4ea2fa=_0x2433a8;this[_0x4ea2fa(0x463)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x255e11[_0x2433a8(0x170)]['subscribeEvent'](()=>{const _0x3af373=_0x2433a8;this[_0x3af373(0x463)]&&(this[_0x3af373(0x4f0)](!0x1),this['_createShapeAdjustControls']());})),this[_0x2433a8(0x43c)](_0x52c384['changeEnd$'][_0x2433a8(0x1b7)](()=>{const _0x547fd9=_0x2433a8;this[_0x547fd9(0x4c0)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x547fd9(0x3f8)][_0x547fd9(0x5e7)]({'unitId':this[_0x547fd9(0x4c0)],'subUnitId':this[_0x547fd9(0x278)],'drawingId':this[_0x547fd9(0x23e)]})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x547fd9(0x4c0)],this['_subUnitId'],this['_activeShapeId']),this[_0x547fd9(0x4cb)]());}));}));}[_0x1706e4(0x359)](){const _0x3c99c9=_0x1706e4;this['disposeWithMe'](this[_0x3c99c9(0x3f8)][_0x3c99c9(0x235)][_0x3c99c9(0x1b7)](_0x2ad1c6=>{const _0x1ae4b7=_0x3c99c9;if(_0x2ad1c6[_0x1ae4b7(0xa5)]===0x1){let _0x2fa34e=_0x2ad1c6[0x0];if(_0x2fa34e['drawingType']===l[_0x1ae4b7(0x55c)][_0x1ae4b7(0x31d)]){this[_0x1ae4b7(0x23e)]=_0x2fa34e[_0x1ae4b7(0x401)];let {unitId:_0x152dd7,subUnitId:_0x4eeef1}=_0x2fa34e;this[_0x1ae4b7(0x127)]=this['_getShapeAdjustPointListById'](_0x152dd7,_0x4eeef1,this['_activeShapeId']),this[_0x1ae4b7(0x4c0)]=_0x152dd7,this[_0x1ae4b7(0x278)]=_0x4eeef1,this[_0x1ae4b7(0x335)](),this[_0x1ae4b7(0x182)]();}else this[_0x1ae4b7(0x23e)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1ae4b7(0x4c0)]=null,this['_subUnitId']=null,this[_0x1ae4b7(0x335)]();}(_0x2ad1c6[_0x1ae4b7(0xa5)]>0x1||_0x2ad1c6[_0x1ae4b7(0xa5)]===0x0)&&(this[_0x1ae4b7(0x23e)]=null,this[_0x1ae4b7(0x127)]=void 0x0,this[_0x1ae4b7(0x4c0)]=null,this[_0x1ae4b7(0x278)]=null,this[_0x1ae4b7(0x335)]());})),this[_0x3c99c9(0x43c)](this[_0x3c99c9(0x3f8)][_0x3c99c9(0x1bf)][_0x3c99c9(0x1b7)](_0x1bc726=>{const _0x385753=_0x3c99c9;if(_0x1bc726[_0x385753(0xa5)]===0x1){var _0x148082;let _0x2a65d0=_0x1bc726[0x0];((_0x148082=this[_0x385753(0x3f8)][_0x385753(0x5e7)](_0x2a65d0))==null?void 0x0:_0x148082[_0x385753(0x2bf)])===l[_0x385753(0x55c)][_0x385753(0x31d)]&&this[_0x385753(0x534)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService'][_0x3c99c9(0x2e9)][_0x3c99c9(0x1b7)](_0x411fe0=>{const _0x537593=_0x3c99c9;for(let _0x3a3d27 of _0x411fe0)this[_0x537593(0x23e)]===_0x3a3d27[_0x537593(0x401)]&&(this[_0x537593(0x23e)]=null,this[_0x537593(0x127)]=void 0x0,this[_0x537593(0x4c0)]=null,this['_subUnitId']=null,this[_0x537593(0x335)]());}));}};function _0x3d6a(_0x34c5b4,_0x332232){_0x34c5b4=_0x34c5b4-0xa5;const _0x3aa837=_0x3aa8();let _0x3d6a48=_0x3aa837[_0x34c5b4];return _0x3d6a48;}q=H([V(0x1,l[_0x1706e4(0x3fc)]),V(0x2,u[_0x1706e4(0x3e9)]),V(0x3,(0x0,l[_0x1706e4(0x318)])(c[_0x1706e4(0xbf)])),V(0x4,(0x0,l[_0x1706e4(0x318)])(d[_0x1706e4(0x4e3)])),V(0x5,(0x0,l[_0x1706e4(0x318)])(U)),V(0x6,l[_0x1706e4(0x508)]),V(0x7,l[_0x1706e4(0x41c)])],q);const J={'id':'drawing.operation.set-drawing-active','type':l[_0x1706e4(0xea)][_0x1706e4(0x5f4)],'handler':(_0x3c53df,_0x1b685d)=>{const _0x43825e=_0x1706e4;let _0x32af21=_0x3c53df['get'](u[_0x43825e(0x3e9)]),_0x33c6b4=_0x3c53df['get'](d[_0x43825e(0x4e3)]),_0x5ae840=_0x3c53df[_0x43825e(0x148)](q);if(_0x1b685d==null)return!0x0;if(_0x1b685d[_0x43825e(0xa5)]>0x0){var _0x28024b;let _0x208839=(_0x28024b=_0x33c6b4[_0x43825e(0x513)](_0x1b685d[0x0][_0x43825e(0xd8)]))==null?void 0x0:_0x28024b[_0x43825e(0x2c7)];if(_0x208839){let {unitId:_0xc2acf1,subUnitId:_0x2477fe,drawingId:_0x52de3a}=_0x1b685d[0x0],_0x822ee0=(0x0,u[_0x43825e(0xf6)])({'unitId':_0xc2acf1,'subUnitId':_0x2477fe,'drawingId':_0x52de3a},void 0x0),_0x4cac3e=_0x208839[_0x43825e(0x26b)](_0x822ee0);if(_0x4cac3e){var _0x122727;(_0x122727=_0x33c6b4[_0x43825e(0x513)](_0x1b685d[0x0][_0x43825e(0xd8)]))==null||(_0x122727=_0x122727[_0x43825e(0x2c7)][_0x43825e(0x452)]())==null||_0x122727[_0x43825e(0x26a)](_0x4cac3e);}}_0x32af21['focusDrawing'](_0x1b685d),_0x5ae840[_0x43825e(0x4f0)](!0x1);}return!0x0;}},Y={'type':l[_0x1706e4(0xea)]['COMMAND'],'id':_0x1706e4(0x541),'handler':async(_0x510619,_0x1bc7a8)=>{const _0x2d95af=_0x1706e4;let _0x25eb10=(0x0,p['getSheetCommandTarget'])(_0x510619[_0x2d95af(0x148)](l['IUniverInstanceService']));if(!_0x25eb10)return!0x1;let _0x31f236=_0x510619[_0x2d95af(0x148)](p['SheetsSelectionsService'])[_0x2d95af(0x32d)]();if(!_0x31f236)return!0x1;let _0x4eba20=_0x510619[_0x2d95af(0x148)](l[_0x2d95af(0x41c)]),{unitId:_0x3b9f8b,subUnitId:_0x3eabeb}=_0x25eb10,{value:_0x1d9e61,enhanceParams:_0x20deda}=_0x1bc7a8,{range:_0x3a3003}=_0x31f236,_0x14da90={'unitId':_0x3b9f8b,'subUnitId':_0x3eabeb,'shapeType':_0x1d9e61,'range':_0x3a3003,'shapeId':(0x0,l[_0x2d95af(0x51c)])()};if(_0x20deda){let _0x5c5445=(0x0,y[_0x2d95af(0x372)])(_0x1d9e61),_0x7f2c5b=_0x1d9e61===y[_0x2d95af(0x5bc)][_0x2d95af(0x39d)];_0x5c5445&&(_0x20deda[_0x2d95af(0x219)]||_0x20deda[_0x2d95af(0x126)])&&(_0x14da90[_0x2d95af(0x110)]={'ln':{'startArrow':_0x20deda[_0x2d95af(0x219)]?{'type':y[_0x2d95af(0x2a0)][_0x2d95af(0x601)],'size':y['ShapeArrowSizeEnum'][_0x2d95af(0x14c)]}:void 0x0,'endArrow':_0x20deda[_0x2d95af(0x126)]?{'type':y[_0x2d95af(0x2a0)][_0x2d95af(0x601)],'size':y[_0x2d95af(0x221)][_0x2d95af(0x247)]}:void 0x0}}),_0x7f2c5b&&(_0x20deda[_0x2d95af(0x3f7)]||_0x20deda[_0x2d95af(0xb3)])&&(_0x14da90[_0x2d95af(0x110)]={'fill':{'fillType':y['ShapeFillEnum'][_0x2d95af(0x47f)]},'stroke':{'lineStrokeType':y['ShapeLineTypeEnum'][_0x2d95af(0x1b0)]},'shapeText':{'isHorizontal':!!_0x20deda[_0x2d95af(0x3f7)]}});}let _0x5e048f=_0x4eba20[_0x2d95af(0x5f0)](c[_0x2d95af(0x28e)]['id'],_0x14da90);return setTimeout(()=>{const _0x4912b8=_0x2d95af;_0x4eba20[_0x4912b8(0x49e)](J['id'],[{'unitId':_0x3b9f8b,'subUnitId':_0x3eabeb,'drawingId':_0x14da90[_0x4912b8(0x3e8)]}]);},0xc8),_0x5e048f;}};let X=class extends l['Disposable']{constructor(_0x378ed5,_0x22abb7){const _0x321579=_0x1706e4;super(),this[_0x321579(0x28b)]=_0x378ed5,this['_drawingManagerService']=_0x22abb7,this[_0x321579(0x50d)](),this['_clipService'][_0x321579(0x3de)](!0x0),this[_0x321579(0x43c)]({'dispose':()=>this[_0x321579(0x28b)]['setCanUseShapeClip'](!0x1)});}[_0x1706e4(0x50d)](){const _0x4938fe=_0x1706e4;let _0x56b017=this[_0x4938fe(0x28b)],_0x75e7c4=new Map(),_0x1dac33=_0x56b017[_0x4938fe(0x5d5)]((_0x491b83,_0x12961f,_0x586674,_0x1ed710,_0x1ef895)=>{const _0xba7139=_0x4938fe;let _0x3cfa94=_0x12961f;if(_0x3cfa94===y[_0xba7139(0x5bc)]['None']||_0x12961f===_0xba7139(0x3b0))return!0x1;try{let _0x222028=_0x75e7c4[_0xba7139(0x148)](_0x12961f);return _0x222028||(_0x222028=new y[(_0xba7139(0x454))](_0x3cfa94,_0xba7139(0x29f)+_0x12961f),_0x75e7c4['set'](_0x12961f,_0x222028)),_0x1ef895&&_0x222028[_0xba7139(0x503)]({'adjustValues':_0x1ef895},!0x0),_0x222028['updateContext']({'width':_0x586674,'height':_0x1ed710}),_0x222028['buildClipPath'](_0x491b83,{'left':0x0,'top':0x0,'width':_0x586674,'height':_0x1ed710});}catch{return!0x1;}});this['disposeWithMe'](_0x1dac33),this[_0x4938fe(0x43c)]({'dispose':()=>_0x75e7c4['clear']()});}[_0x1706e4(0x3d0)](_0x26156a,_0x2f5951,_0xc803a4,_0x4a6f96,_0x3c8257){const _0x1b7f03=_0x1706e4;let _0x2bdd99=this[_0x1b7f03(0x3f8)]['getDrawingData'](_0x26156a,_0x2f5951);if(!_0x2bdd99[_0xc803a4])return;let _0x5290ad={..._0x2bdd99[_0xc803a4],'prstGeom':_0x4a6f96,'adjustValues':_0x3c8257};this[_0x1b7f03(0x3f8)][_0x1b7f03(0x3b3)]([_0x5290ad]);}};X=H([V(0x0,(0x0,l[_0x1706e4(0x318)])(S[_0x1706e4(0x1c3)])),V(0x1,(0x0,l[_0x1706e4(0x318)])(u[_0x1706e4(0x3e9)]))],X);let Z=function(_0x11279f){const _0x465d58=_0x1706e4;return _0x11279f[_0x465d58(0x4fe)]='line',_0x11279f['Rectangle']=_0x465d58(0x34d),_0x11279f[_0x465d58(0x598)]=_0x465d58(0x3cd),_0x11279f[_0x465d58(0x243)]='blockArrow',_0x11279f[_0x465d58(0x22b)]=_0x465d58(0x45e),_0x11279f['Flowchart']=_0x465d58(0x3a5),_0x11279f[_0x465d58(0x5ca)]='starAndBanner',_0x11279f[_0x465d58(0x48e)]=_0x465d58(0x1c0),_0x11279f[_0x465d58(0x1db)]=_0x465d58(0x3d4),_0x11279f;}({});const Q=[{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)]['Line'],'icon':'ShapeLineIcon','name':_0x1706e4(0x103)},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x25a)],'icon':_0x1706e4(0x21c),'name':'shape.type.straight-connector1','endArrow':!0x0},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x25a)],'icon':'ShapeStraightConnector2Icon','name':_0x1706e4(0x1f9),'endArrow':!0x0,'startArrow':!0x0},{'group':Z['Line'],'type':y['ShapeTypeEnum'][_0x1706e4(0x4e8)],'icon':_0x1706e4(0x20d),'name':_0x1706e4(0x155)},{'group':Z[_0x1706e4(0x4fe)],'type':y['ShapeTypeEnum'][_0x1706e4(0x4e8)],'icon':_0x1706e4(0x165),'name':_0x1706e4(0xb0),'endArrow':!0x0},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4e8)],'icon':_0x1706e4(0x20c),'name':'shape.type.bent-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x418)],'icon':_0x1706e4(0x38e),'name':_0x1706e4(0xb4)},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x418)],'icon':'ShapeCurvedConnector3Arrow1Icon','name':'shape.type.curved-connector3-arrow1','endArrow':!0x0},{'group':Z[_0x1706e4(0x4fe)],'type':y[_0x1706e4(0x5bc)]['CurvedConnector3'],'icon':_0x1706e4(0x451),'name':'shape.type.curved-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':Z[_0x1706e4(0x540)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x39d)],'icon':_0x1706e4(0x54a),'name':_0x1706e4(0x256)},{'group':Z[_0x1706e4(0x540)],'type':y['ShapeTypeEnum'][_0x1706e4(0x28a)],'icon':_0x1706e4(0x4b4),'name':_0x1706e4(0x1ee)},{'group':Z[_0x1706e4(0x540)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x203)],'icon':_0x1706e4(0x5d1),'name':_0x1706e4(0x3bd)},{'group':Z[_0x1706e4(0x540)],'type':y['ShapeTypeEnum'][_0x1706e4(0x15d)],'icon':_0x1706e4(0x5b5),'name':_0x1706e4(0x255)},{'group':Z['Rectangle'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x17a)],'icon':_0x1706e4(0x344),'name':_0x1706e4(0x4d1)},{'group':Z[_0x1706e4(0x540)],'type':y[_0x1706e4(0x5bc)]['SnipRoundRect'],'icon':_0x1706e4(0x1ea),'name':_0x1706e4(0x2d5)},{'group':Z[_0x1706e4(0x540)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x45c)],'icon':_0x1706e4(0x25b),'name':_0x1706e4(0x443)},{'group':Z[_0x1706e4(0x540)],'type':y['ShapeTypeEnum'][_0x1706e4(0x11c)],'icon':_0x1706e4(0x494),'name':_0x1706e4(0x277)},{'group':Z['Rectangle'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x30b)],'icon':'ShapeRound2DiagRectIcon','name':'shape.type.round2-diag-rect'},{'group':Z['BasicShape'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x39d)],'icon':'ShapeRectTextboxHorizontalIcon','name':'shape.type.rect-textbox-horizontal','horizontal':!0x0},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum']['Rect'],'icon':_0x1706e4(0x1b5),'name':_0x1706e4(0x4f5),'vertical':!0x0},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xcc)],'icon':_0x1706e4(0x1e1),'name':_0x1706e4(0x512)},{'group':Z['BasicShape'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x2c1)],'icon':_0x1706e4(0x2cd),'name':_0x1706e4(0x420)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['RightTriangle'],'icon':'ShapeRtTriangleIcon','name':_0x1706e4(0x25c)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x138)],'icon':_0x1706e4(0x3be),'name':_0x1706e4(0x41f)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['Trapezoid'],'icon':'ShapeTrapezoidIcon','name':'shape.type.trapezoid'},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['Diamond'],'icon':_0x1706e4(0x2db),'name':_0x1706e4(0x145)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x595)],'icon':_0x1706e4(0x460),'name':_0x1706e4(0x19d)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x38c)],'icon':_0x1706e4(0x389),'name':_0x1706e4(0x19c)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum']['Heptagon'],'icon':_0x1706e4(0x233),'name':_0x1706e4(0x280)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x117)],'icon':_0x1706e4(0x337),'name':_0x1706e4(0x382)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum']['Decagon'],'icon':_0x1706e4(0x341),'name':_0x1706e4(0x204)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x352)],'icon':_0x1706e4(0x289),'name':_0x1706e4(0x413)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x510)],'icon':_0x1706e4(0x35a),'name':_0x1706e4(0x143)},{'group':Z['BasicShape'],'type':y['ShapeTypeEnum'][_0x1706e4(0x242)],'icon':_0x1706e4(0x3cf),'name':_0x1706e4(0x47e)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x31f)],'icon':_0x1706e4(0x387),'name':'shape.type.teardrop'},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x381)],'icon':_0x1706e4(0x2e2),'name':'shape.type.frame'},{'group':Z['BasicShape'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x139)],'icon':'ShapeHalfFrameIcon','name':_0x1706e4(0xd6)},{'group':Z['BasicShape'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x272)],'icon':_0x1706e4(0xcb),'name':_0x1706e4(0x4b7)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x5a5)],'icon':_0x1706e4(0x48c),'name':_0x1706e4(0x131)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x271)],'icon':_0x1706e4(0x1a6),'name':_0x1706e4(0x47a)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x56b)],'icon':_0x1706e4(0x3a2),'name':_0x1706e4(0x36c)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x590)],'icon':_0x1706e4(0x24a),'name':'shape.type.can'},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x2eb)],'icon':_0x1706e4(0x5e9),'name':_0x1706e4(0xbd)},{'group':Z['BasicShape'],'type':y['ShapeTypeEnum']['Bevel'],'icon':'ShapeBevelIcon','name':_0x1706e4(0xad)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['Donut'],'icon':'ShapeDonutIcon','name':_0x1706e4(0x10a)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x554)],'icon':_0x1706e4(0x1f7),'name':'shape.type.no-smoking'},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x179)],'icon':_0x1706e4(0x581),'name':_0x1706e4(0xe5)},{'group':Z['BasicShape'],'type':y['ShapeTypeEnum'][_0x1706e4(0x5e0)],'icon':'ShapeFolderCornerIcon','name':_0x1706e4(0x2e0)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x34c)],'icon':_0x1706e4(0x3ca),'name':'shape.type.smiley-face'},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4d0)],'icon':_0x1706e4(0x312),'name':'shape.type.heart'},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['LightningBolt'],'icon':_0x1706e4(0xdd),'name':_0x1706e4(0x44c)},{'group':Z['BasicShape'],'type':y[_0x1706e4(0x5bc)]['Sun'],'icon':'ShapeSunIcon','name':_0x1706e4(0x5ef)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x36a)],'icon':_0x1706e4(0x5f2),'name':_0x1706e4(0x48b)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x50e)],'icon':_0x1706e4(0x5b4),'name':_0x1706e4(0x502)},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum'][_0x1706e4(0x27c)],'icon':_0x1706e4(0x350),'name':'shape.type.arc'},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x343)],'icon':_0x1706e4(0x5be),'name':_0x1706e4(0x393)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x36d)],'icon':'ShapeBracePairIcon','name':_0x1706e4(0x22e)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)]['LeftBracket'],'icon':'ShapeLeftBracketIcon','name':_0x1706e4(0x40b)},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x144)],'icon':_0x1706e4(0x1e8),'name':'shape.type.right-bracket'},{'group':Z[_0x1706e4(0x598)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x468)],'icon':_0x1706e4(0x300),'name':'shape.type.left-brace'},{'group':Z[_0x1706e4(0x598)],'type':y['ShapeTypeEnum']['RightBrace'],'icon':'ShapeRightBraceIcon','name':_0x1706e4(0x2a2)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum']['RightArrow'],'icon':'ShapeRightArrowIcon','name':_0x1706e4(0x12d)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x515)],'icon':_0x1706e4(0x569),'name':_0x1706e4(0x36e)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x241)],'icon':_0x1706e4(0x41b),'name':_0x1706e4(0x354)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x5d8)],'icon':_0x1706e4(0x480),'name':_0x1706e4(0x5c0)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)]['LeftRightArrow'],'icon':_0x1706e4(0x1b6),'name':'shape.type.left-right-arrow'},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x23a)],'icon':'ShapeUpDownArrowIcon','name':_0x1706e4(0x525)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)]['QuadArrow'],'icon':'ShapeQuadArrowIcon','name':_0x1706e4(0x11b)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)]['LeftRightUpArrow'],'icon':'ShapeLeftRightUpArrowIcon','name':_0x1706e4(0x17c)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xdb)],'icon':'ShapeBentArrowIcon','name':_0x1706e4(0x164)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum'][_0x1706e4(0x2fc)],'icon':'ShapeUturnArrowIcon','name':_0x1706e4(0x557)},{'group':Z['BlockArrow'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1d0)],'icon':_0x1706e4(0x54d),'name':_0x1706e4(0x414)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum'][_0x1706e4(0x3dd)],'icon':'ShapeBentUpArrowIcon','name':_0x1706e4(0x4c3)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)]['CurvedRightArrow'],'icon':'ShapeCurvedRightArrowIcon','name':_0x1706e4(0xd3)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xf2)],'icon':'ShapeCurvedLeftArrowIcon','name':_0x1706e4(0x36f)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x44b)],'icon':_0x1706e4(0x395),'name':_0x1706e4(0x4fa)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x2ca)],'icon':_0x1706e4(0x295),'name':_0x1706e4(0x292)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum'][_0x1706e4(0x1cb)],'icon':_0x1706e4(0x380),'name':_0x1706e4(0x1ed)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)]['NotchedRightArrow'],'icon':_0x1706e4(0x4de),'name':_0x1706e4(0x429)},{'group':Z['BlockArrow'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x146)],'icon':_0x1706e4(0xd9),'name':_0x1706e4(0x2c6)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x33b)],'icon':_0x1706e4(0x3ed),'name':'shape.type.chevron'},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xe8)],'icon':_0x1706e4(0x52a),'name':_0x1706e4(0x200)},{'group':Z['BlockArrow'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x390)],'icon':'ShapeDownArrowCalloutIcon','name':_0x1706e4(0x42f)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x2ed)],'icon':_0x1706e4(0x46d),'name':_0x1706e4(0x4db)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum'][_0x1706e4(0x5ea)],'icon':_0x1706e4(0x30c),'name':_0x1706e4(0xfe)},{'group':Z[_0x1706e4(0x243)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xca)],'icon':_0x1706e4(0x1b2),'name':_0x1706e4(0xc6)},{'group':Z[_0x1706e4(0x243)],'type':y['ShapeTypeEnum'][_0x1706e4(0x5c6)],'icon':_0x1706e4(0x31a),'name':_0x1706e4(0x471)},{'group':Z['BlockArrow'],'type':y[_0x1706e4(0x5bc)]['CircularArrow'],'icon':_0x1706e4(0x411),'name':_0x1706e4(0x1d5)},{'group':Z[_0x1706e4(0x22b)],'type':y['ShapeTypeEnum']['MathPlus'],'icon':_0x1706e4(0x456),'name':'shape.type.math-plus'},{'group':Z['EquationShape'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3a0)],'icon':'ShapeMathMinusIcon','name':'shape.type.math-minus'},{'group':Z[_0x1706e4(0x22b)],'type':y[_0x1706e4(0x5bc)]['MathMultiply'],'icon':'ShapeMathMultiplyIcon','name':_0x1706e4(0x59b)},{'group':Z[_0x1706e4(0x22b)],'type':y[_0x1706e4(0x5bc)]['MathDivide'],'icon':_0x1706e4(0x27d),'name':_0x1706e4(0x42b)},{'group':Z[_0x1706e4(0x22b)],'type':y[_0x1706e4(0x5bc)]['MathEqual'],'icon':_0x1706e4(0x1bc),'name':'shape.type.math-equal'},{'group':Z[_0x1706e4(0x22b)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x28c)],'icon':'ShapeMathNotEqualIcon','name':_0x1706e4(0xa7)},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x37c)],'icon':_0x1706e4(0x446),'name':'shape.type.flow-chart-process'},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3e2)],'icon':_0x1706e4(0x5fd),'name':'shape.type.flow-chart-alternate-process'},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x1d1)],'icon':'ShapeFlowChartDecisionIcon','name':_0x1706e4(0x46e)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)]['FlowChartInputOutput'],'icon':'ShapeFlowChartInputOutputIcon','name':_0x1706e4(0x287)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x52c)],'icon':_0x1706e4(0x109),'name':'shape.type.flow-chart-predefined-process'},{'group':Z['Flowchart'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x404)],'icon':_0x1706e4(0x4fb),'name':_0x1706e4(0x52b)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1ab)],'icon':_0x1706e4(0x3af),'name':_0x1706e4(0x229)},{'group':Z['Flowchart'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4fc)],'icon':_0x1706e4(0x5dc),'name':_0x1706e4(0x2d1)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x37e)],'icon':'ShapeFlowChartTerminatorIcon','name':'shape.type.flow-chart-terminator'},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)]['FlowchartPreparation'],'icon':_0x1706e4(0x5ee),'name':_0x1706e4(0xd0)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x47d)],'icon':'ShapeFlowChartManualInputIcon','name':_0x1706e4(0x106)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x338)],'icon':_0x1706e4(0x53c),'name':_0x1706e4(0x5c3)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)]['FlowchartConnector'],'icon':_0x1706e4(0xf5),'name':_0x1706e4(0xe3)},{'group':Z['Flowchart'],'type':y[_0x1706e4(0x5bc)]['FlowchartOffPageConnector'],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0x1706e4(0x29d)},{'group':Z['Flowchart'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x45f)],'icon':_0x1706e4(0x3c1),'name':_0x1706e4(0xb1)},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x302)],'icon':'ShapeFlowChartPunchedTapeIcon','name':'shape.type.flow-chart-punched-tape'},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x133)],'icon':_0x1706e4(0x526),'name':_0x1706e4(0x41d)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4b3)],'icon':'ShapeFlowChartOrIcon','name':_0x1706e4(0x576)},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x5c5)],'icon':_0x1706e4(0x3a4),'name':'shape.type.flow-chart-collate'},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x421)],'icon':_0x1706e4(0x496),'name':'shape.type.flow-chart-sort'},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4a0)],'icon':_0x1706e4(0x1d6),'name':_0x1706e4(0x329)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1d9)],'icon':'ShapeFlowChartMergeIcon','name':'shape.type.flow-chart-merge'},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x214)],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x1706e4(0x555)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x424)],'icon':_0x1706e4(0x29a),'name':_0x1706e4(0x2da)},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum']['FlowchartMagneticTape'],'icon':_0x1706e4(0x202),'name':_0x1706e4(0x118)},{'group':Z['Flowchart'],'type':y['ShapeTypeEnum'][_0x1706e4(0x2c0)],'icon':_0x1706e4(0x2ef),'name':_0x1706e4(0x3ff)},{'group':Z[_0x1706e4(0x27a)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x45d)],'icon':_0x1706e4(0x59d),'name':_0x1706e4(0x369)},{'group':Z[_0x1706e4(0x27a)],'type':y['ShapeTypeEnum'][_0x1706e4(0x2dc)],'icon':_0x1706e4(0x293),'name':_0x1706e4(0x316)},{'group':Z['StarAndBanner'],'type':y[_0x1706e4(0x5bc)]['IrregularSeal1'],'icon':_0x1706e4(0x40a),'name':'shape.type.irregular-seal1'},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4a5)],'icon':_0x1706e4(0x518),'name':_0x1706e4(0x36b)},{'group':Z[_0x1706e4(0x5ca)],'type':y['ShapeTypeEnum'][_0x1706e4(0x4ee)],'icon':_0x1706e4(0x20f),'name':_0x1706e4(0x13a)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)]['Star5'],'icon':_0x1706e4(0x1a9),'name':'shape.type.star5'},{'group':Z['StarAndBanner'],'type':y[_0x1706e4(0x5bc)]['Star6'],'icon':_0x1706e4(0x588),'name':_0x1706e4(0x2ec)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x2cb)],'icon':'ShapeStar7Icon','name':_0x1706e4(0x1f5)},{'group':Z['StarAndBanner'],'type':y['ShapeTypeEnum'][_0x1706e4(0x283)],'icon':_0x1706e4(0x440),'name':'shape.type.star8'},{'group':Z[_0x1706e4(0x5ca)],'type':y['ShapeTypeEnum']['Star10'],'icon':_0x1706e4(0xba),'name':'shape.type.star10'},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1ac)],'icon':_0x1706e4(0xdf),'name':_0x1706e4(0x17b)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1e6)],'icon':_0x1706e4(0x362),'name':_0x1706e4(0x216)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)]['Star24'],'icon':_0x1706e4(0xc8),'name':_0x1706e4(0x105)},{'group':Z['StarAndBanner'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3e1)],'icon':'ShapeStar32Icon','name':_0x1706e4(0x584)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x38f)],'icon':_0x1706e4(0x40f),'name':_0x1706e4(0x5f7)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x159)],'icon':'ShapeRibbonIcon','name':_0x1706e4(0xec)},{'group':Z['StarAndBanner'],'type':y[_0x1706e4(0x5bc)]['EllipseRibbon2'],'icon':'ShapeEllipseRibbon2Icon','name':_0x1706e4(0x34b)},{'group':Z['StarAndBanner'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xf7)],'icon':'ShapeEllipseRibbonIcon','name':_0x1706e4(0x2e4)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1ff)],'icon':_0x1706e4(0x410),'name':'shape.type.vertical-scroll'},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x23b)],'icon':_0x1706e4(0x356),'name':_0x1706e4(0x291)},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xc0)],'icon':_0x1706e4(0x193),'name':'shape.type.wave'},{'group':Z[_0x1706e4(0x5ca)],'type':y[_0x1706e4(0x5bc)]['DoubleWave'],'icon':_0x1706e4(0x1d7),'name':_0x1706e4(0x435)},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x11a)],'icon':_0x1706e4(0x53b),'name':'shape.type.wedge-rect-callout'},{'group':Z[_0x1706e4(0x48e)],'type':y['ShapeTypeEnum']['WedgeRoundRectCallout'],'icon':'ShapeWedgeRoundRectCalloutIcon','name':'shape.type.wedge-round-rect-callout'},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x238)],'icon':_0x1706e4(0x3b6),'name':_0x1706e4(0x406)},{'group':Z[_0x1706e4(0x48e)],'type':y['ShapeTypeEnum'][_0x1706e4(0x4ba)],'icon':'ShapeCloudCalloutIcon','name':_0x1706e4(0x561)},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x207)],'icon':'ShapeBorderCallout1Icon','name':_0x1706e4(0x4b9)},{'group':Z['Callout'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3c7)],'icon':_0x1706e4(0x5e3),'name':_0x1706e4(0x3d8)},{'group':Z['Callout'],'type':y['ShapeTypeEnum'][_0x1706e4(0x319)],'icon':'ShapeBorderCallout3Icon','name':_0x1706e4(0x262)},{'group':Z['Callout'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x224)],'icon':_0x1706e4(0x2fb),'name':'shape.type.accent-callout1'},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x42c)],'icon':_0x1706e4(0x12f),'name':_0x1706e4(0x43e)},{'group':Z[_0x1706e4(0x48e)],'type':y['ShapeTypeEnum']['AccentCallout3'],'icon':_0x1706e4(0x38d),'name':_0x1706e4(0xed)},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)]['Callout1'],'icon':_0x1706e4(0x3a3),'name':_0x1706e4(0x162)},{'group':Z['Callout'],'type':y[_0x1706e4(0x5bc)]['Callout2'],'icon':_0x1706e4(0x4c5),'name':_0x1706e4(0x4f1)},{'group':Z[_0x1706e4(0x48e)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xeb)],'icon':'ShapeCallout3Icon','name':_0x1706e4(0x567)},{'group':Z[_0x1706e4(0x48e)],'type':y['ShapeTypeEnum'][_0x1706e4(0x499)],'icon':'ShapeAccentBorderCallout1Icon','name':'shape.type.accent-border-callout1'},{'group':Z['Callout'],'type':y[_0x1706e4(0x5bc)]['AccentBorderCallout2'],'icon':'ShapeAccentBorderCallout2Icon','name':_0x1706e4(0x347)},{'group':Z['Callout'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4af)],'icon':_0x1706e4(0x50f),'name':_0x1706e4(0x416)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3e4)],'icon':_0x1706e4(0x506),'name':_0x1706e4(0xe1)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4bf)],'icon':_0x1706e4(0x2b7),'name':_0x1706e4(0x1d4)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x594)],'icon':_0x1706e4(0x5bd),'name':_0x1706e4(0x5a4)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x28f)],'icon':_0x1706e4(0x550),'name':'shape.type.left-right-ribbon'},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x385)],'icon':_0x1706e4(0x12a),'name':_0x1706e4(0x543)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x26f)],'icon':_0x1706e4(0x548),'name':_0x1706e4(0x240)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x227)],'icon':_0x1706e4(0x52f),'name':'shape.type.gear6'},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)]['Gear9'],'icon':'ShapeGear9Icon','name':_0x1706e4(0x3eb)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x57d)],'icon':_0x1706e4(0x184),'name':_0x1706e4(0x361)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)]['ActionButtonBackPrevious'],'icon':'ShapeActionButtonBackPreviousIcon','name':'shape.type.action-button-back-previous'},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xd2)],'icon':_0x1706e4(0xde),'name':_0x1706e4(0x44d)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x163)],'icon':'ShapeActionButtonBeginningIcon','name':_0x1706e4(0x504)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0xc5)],'icon':_0x1706e4(0x586),'name':'shape.type.action-button-end'},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x3f9)],'icon':'ShapeActionButtonHomeIcon','name':'shape.type.action-button-home'},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)]['ActionButtonInformation'],'icon':'ShapeActionButtonInformationIcon','name':_0x1706e4(0x327)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x10c)],'icon':'ShapeActionButtonReturnIcon','name':_0x1706e4(0x13d)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)]['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x1706e4(0x1e4)},{'group':Z[_0x1706e4(0x1db)],'type':y['ShapeTypeEnum']['ActionButtonDocument'],'icon':_0x1706e4(0x3e7),'name':_0x1706e4(0x336)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x2c2)],'icon':_0x1706e4(0xae),'name':_0x1706e4(0x309)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x288)],'icon':_0x1706e4(0x2bd),'name':_0x1706e4(0x500)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x51d)],'icon':'ShapeActionButtonBlankIcon','name':_0x1706e4(0x571)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x4e0)],'icon':'ShapeChartPlusIcon','name':_0x1706e4(0x285)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x1e2)],'icon':_0x1706e4(0x39c),'name':_0x1706e4(0x59e)},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x27b)],'icon':_0x1706e4(0x5c7),'name':_0x1706e4(0x438)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x33d)],'icon':_0x1706e4(0x475),'name':_0x1706e4(0x15a)},{'group':Z[_0x1706e4(0x1db)],'type':y['ShapeTypeEnum']['LineInv'],'icon':_0x1706e4(0xf8),'name':_0x1706e4(0x5cd)},{'group':Z[_0x1706e4(0x1db)],'type':y['ShapeTypeEnum'][_0x1706e4(0x296)],'icon':_0x1706e4(0x32e),'name':_0x1706e4(0x1cd)},{'group':Z['Other'],'type':y[_0x1706e4(0x5bc)]['SquareTabs'],'icon':_0x1706e4(0x334),'name':_0x1706e4(0x5aa)},{'group':Z[_0x1706e4(0x1db)],'type':y['ShapeTypeEnum'][_0x1706e4(0x4c2)],'icon':'ShapeUpDownArrowCalloutIcon','name':'shape.type.up-down-arrow-callout'},{'group':Z[_0x1706e4(0x1db)],'type':y[_0x1706e4(0x5bc)][_0x1706e4(0x37f)],'icon':'ShapeNonIsoscelesTrapezoidIcon','name':'shape.type.non-isosceles-trapezoid'}],de='sheet.shape.picker.component';function fe({onShapeClick:_0x563649,excludeGroups:_0x20a1f6}){const _0x4d6ee4=_0x1706e4;let _0x31754b=(0x0,v[_0x4d6ee4(0x5ad)])(l[_0x4d6ee4(0x4aa)]),_0x3865da=(0x0,v[_0x4d6ee4(0x5ad)])(v[_0x4d6ee4(0x563)]),_0x50ba89=(_0x20a1f6?Q[_0x4d6ee4(0x4be)](_0x3ca29b=>!_0x20a1f6[_0x4d6ee4(0x2bc)](_0x3ca29b[_0x4d6ee4(0x365)])):Q)[_0x4d6ee4(0x190)]((_0x620a27,_0x1a3015)=>(_0x620a27[_0x1a3015[_0x4d6ee4(0x365)]]||(_0x620a27[_0x1a3015['group']]=[]),_0x620a27[_0x1a3015[_0x4d6ee4(0x365)]]['push'](_0x1a3015),_0x620a27),{});return(0x0,C[_0x4d6ee4(0x399)])(_0x4d6ee4(0x5f6),{'className':_0x4d6ee4(0x37a),'children':Object['entries'](_0x50ba89)[_0x4d6ee4(0x562)](([_0x83ea03,_0x4f26c7])=>(0x0,C['jsxs'])(_0x4d6ee4(0x5f6),{'className':'univer-mb-2','children':[(0x0,C[_0x4d6ee4(0x399)])(_0x4d6ee4(0x5f6),{'className':_0x4d6ee4(0x4c9),'children':_0x31754b['t'](_0x4d6ee4(0x250)+_0x83ea03)}),(0x0,C[_0x4d6ee4(0x399)])(_0x4d6ee4(0x5f6),{'className':_0x4d6ee4(0xbc),'children':_0x4f26c7[_0x4d6ee4(0x562)](_0x349391=>{const _0x27f191=_0x4d6ee4;let _0x55363f=_0x3865da[_0x27f191(0x148)](_0x349391[_0x27f191(0x5f8)]);return(0x0,C[_0x27f191(0x399)])(_0x27f191(0x5f6),{'title':_0x31754b['t'](_0x349391[_0x27f191(0x2a6)]),'onClick':()=>_0x563649(_0x349391),'className':_0x27f191(0x54f),'children':_0x55363f&&(0x0,C[_0x27f191(0x399)])(_0x55363f,{'className':_0x27f191(0x57b)})},_0x349391['name']);})})]},_0x83ea03))});}function pe(){const _0x52e5a2=_0x1706e4;let _0x551bd5=(0x0,v[_0x52e5a2(0x5ad)])(l[_0x52e5a2(0x4aa)]),_0x352dc3=(0x0,v['useDependency'])(u[_0x52e5a2(0x3e9)]),_0x19ab9b=(0x0,v[_0x52e5a2(0x5ad)])(X),[_0x5cfedd,_0x44edc3]=(0x0,x[_0x52e5a2(0x1a3)])(!0x1);return(0x0,C[_0x52e5a2(0x399)])(b[_0x52e5a2(0xa9)],{'side':_0x52e5a2(0x266),'open':_0x5cfedd,'onOpenChange':_0x44edc3,'overlay':(0x0,C[_0x52e5a2(0x399)])(fe,{'onShapeClick':_0x2a67ec=>{const _0x3cc095=_0x52e5a2;let _0x13a237=_0x352dc3[_0x3cc095(0x4cf)]()[_0x3cc095(0x383)](_0x443fc0=>_0x443fc0[_0x3cc095(0x2bf)]===l['DrawingTypeEnum'][_0x3cc095(0x14e)]);if(!_0x13a237)return;let {unitId:_0x167f82,subUnitId:_0xa5afcd,drawingId:_0x4a4eab}=_0x13a237;_0x19ab9b['clipByShape'](_0x167f82,_0xa5afcd,_0x4a4eab,_0x2a67ec[_0x3cc095(0x348)]),_0x44edc3(!0x1);},'excludeGroups':[Z[_0x52e5a2(0x4fe)]]}),'children':(0x0,C[_0x52e5a2(0x399)])(b['Button'],{'children':_0x551bd5['t'](_0x52e5a2(0x55e))})});}function me(){const _0x3c9fc6=_0x1706e4;let _0x2a6bd8=(0x0,v['useDependency'])(l[_0x3c9fc6(0x41c)]);return(0x0,C[_0x3c9fc6(0x399)])(fe,{'onShapeClick':_0x3571aa=>{const _0x352c7d=_0x3c9fc6;_0x2a6bd8[_0x352c7d(0x49e)](Y['id'],{'value':_0x3571aa[_0x352c7d(0x348)],'enhanceParams':{'endArrow':_0x3571aa[_0x352c7d(0x126)],'startArrow':_0x3571aa['startArrow'],'horizontal':_0x3571aa[_0x352c7d(0x3f7)],'vertical':_0x3571aa[_0x352c7d(0xb3)]}});}});}const he=[{'label':_0x1706e4(0x481),'icon':_0x1706e4(0x236),'value':l['HorizontalAlign'][_0x1706e4(0x423)]},{'label':_0x1706e4(0x225),'icon':'HorizontallyIcon','value':l[_0x1706e4(0x43a)]['CENTER']},{'label':'align.right','icon':_0x1706e4(0x4ea),'value':l[_0x1706e4(0x43a)][_0x1706e4(0x4a8)]}];function ge(_0x43dc33){const _0x205a46=_0x1706e4;var _0x339c4b;let _0x35839a=_0x43dc33['get'](l[_0x205a46(0x41c)]),_0x4932d4=_0x43dc33['get'](l[_0x205a46(0x3fc)]),_0x514495=_0x43dc33[_0x205a46(0x148)](l[_0x205a46(0x508)]),_0x227ff5=_0x43dc33['get'](T['DocSelectionManagerService']),_0x37aae9=l[_0x205a46(0x43a)][_0x205a46(0x423)],_0x577376=()=>{const _0x2c0b4b=_0x205a46;try{var _0x45e9dc;let _0x21b1e7=_0x514495[_0x2c0b4b(0x4f9)](R,l[_0x2c0b4b(0x46b)][_0x2c0b4b(0x181)]);if(!_0x21b1e7)return _0x37aae9;let _0xb8cda8=_0x227ff5[_0x2c0b4b(0x123)](),_0x5b82cf=(_0x45e9dc=_0xb8cda8[_0x2c0b4b(0x383)](_0x2f698f=>_0x2f698f[_0x2c0b4b(0x426)]))==null?_0xb8cda8[0x0]:_0x45e9dc;if(!_0x5b82cf)return _0x37aae9;let {startOffset:_0x27f3c8,segmentId:_0x495142}=_0x5b82cf,_0x27b0e0=_0x21b1e7[_0x2c0b4b(0x3f2)](_0x495142)['getBody'](),_0x1dd3e1=_0x27b0e0==null?void 0x0:_0x27b0e0['paragraphs'];if(!_0x1dd3e1)return _0x37aae9;let _0x11e528=-0x1;for(let _0x42bb8d of _0x1dd3e1){let {startIndex:_0x19aa52}=_0x42bb8d;if(_0x27f3c8>_0x11e528&&_0x27f3c8<=_0x19aa52){var _0x33edfe,_0x48228c;return(_0x33edfe=(_0x48228c=_0x42bb8d[_0x2c0b4b(0x53d)])==null?void 0x0:_0x48228c[_0x2c0b4b(0x187)])==null?_0x37aae9:_0x33edfe;}_0x11e528=_0x19aa52;}}catch{}return _0x37aae9;};return{'id':I['id'],'icon':(_0x339c4b=he[_0x205a46(0x383)](_0x45e9e2=>_0x45e9e2['value']===_0x37aae9))==null?void 0x0:_0x339c4b['icon'],'tooltip':_0x205a46(0x453),'type':v['MenuItemType'][_0x205a46(0x5fe)],'selections':he,'value$':new f['Observable'](_0x537d3f=>{const _0x5b9925=_0x205a46;let _0x2776db=_0x35839a[_0x5b9925(0x46f)](_0x53f788=>{const _0x58e80b=_0x5b9925;let _0x292335=_0x53f788['id'];(_0x292335===h[_0x58e80b(0x10e)]['id']||_0x292335===h[_0x58e80b(0x45a)]['id']||_0x292335===h['AlignRightCommand']['id']||_0x292335===h[_0x58e80b(0x1eb)]['id']||_0x292335===h[_0x58e80b(0x437)]['id']||_0x292335===I['id'])&&_0x537d3f['next'](_0x577376());}),_0x392091=_0x4932d4[_0x5b9925(0x1b4)](l[_0x5b9925(0x5ba)])[_0x5b9925(0x1b7)](()=>{const _0x544722=_0x5b9925;_0x537d3f[_0x544722(0x593)](_0x577376());});return _0x537d3f[_0x5b9925(0x593)](_0x577376()),()=>{const _0x427a27=_0x5b9925;_0x2776db[_0x427a27(0x2b8)](),_0x392091[_0x427a27(0x1c4)]();};}),'hidden$':_0x4932d4[_0x205a46(0x1b4)](l[_0x205a46(0x5ba)])[_0x205a46(0x140)]((0x0,f[_0x205a46(0x562)])(_0x57fa02=>!_0x57fa02))};}function _e(_0x3a421d){const _0xafc486=_0x1706e4;let _0x2d1876=_0x3a421d['get'](l['IContextService']),_0x1b5b1d=_0x3a421d[_0xafc486(0x148)](l['ThemeService']);return{'id':h[_0xafc486(0x30f)]['id'],'tooltip':_0xafc486(0x2a1),'type':v['MenuItemType'][_0xafc486(0x21a)],'icon':_0xafc486(0x574),'selections':[{'label':{'name':v[_0xafc486(0x270)],'hoverable':!0x1,'selectable':!0x1}}],'value$':new f[(_0xafc486(0x531))](_0x7392df=>{const _0x4af741=_0xafc486;_0x7392df['next'](_0x1b5b1d[_0x4af741(0x173)](_0x4af741(0x4b8)));}),'hidden$':_0x2d1876[_0xafc486(0x1b4)](l[_0xafc486(0x5ba)])['pipe']((0x0,f[_0xafc486(0x562)])(_0x5b583d=>!_0x5b583d))};}function ve(_0x4ba9a6){const _0x44110c=_0x1706e4;let _0x53d46a=_0x4ba9a6[_0x44110c(0x148)](l[_0x44110c(0x3fc)]);return{'id':h[_0x44110c(0x267)]['id'],'type':v[_0x44110c(0x134)][_0x44110c(0x572)],'title':_0x44110c(0x51f),'hidden$':_0x53d46a[_0x44110c(0x1b4)](l[_0x44110c(0x5ba)])[_0x44110c(0x140)]((0x0,f[_0x44110c(0x562)])(_0x5f5b94=>!_0x5f5b94))};}const ye=[{'label':_0x1706e4(0x178),'icon':_0x1706e4(0x25f),'value':l[_0x1706e4(0x2ea)][_0x1706e4(0x40e)]},{'label':_0x1706e4(0x5c4),'icon':_0x1706e4(0x535),'value':l['VerticalAlign'][_0x1706e4(0x172)]},{'label':_0x1706e4(0x3d2),'icon':'AlignBottomIcon','value':l[_0x1706e4(0x2ea)][_0x1706e4(0x5ed)]}];function be(_0x502e56){const _0x4dcb6a=_0x1706e4;var _0x592364;let _0x5c3a6e=_0x502e56[_0x4dcb6a(0x148)](l['ICommandService']),_0x13f3e5=_0x502e56[_0x4dcb6a(0x148)](l[_0x4dcb6a(0x3fc)]),_0x1ae806=_0x502e56[_0x4dcb6a(0x148)](m['ISheetDrawingService']),_0x4f4a35=_0x502e56[_0x4dcb6a(0x148)](A),_0x3a246a=_0x502e56[_0x4dcb6a(0x148)](c[_0x4dcb6a(0xbf)]),_0x59c6d3=l[_0x4dcb6a(0x2ea)][_0x4dcb6a(0x40e)],_0x1304b4=()=>{const _0xe860aa=_0x4dcb6a;var _0x365bdd;let _0x356d8d=_0x1ae806['getFocusDrawings']()[_0xe860aa(0x4be)](_0x134e83=>_0x134e83['drawingType']===l[_0xe860aa(0x55c)][_0xe860aa(0x31d)]);if(_0x356d8d['length']!==0x1)return _0x59c6d3;let _0x146b28=_0x4f4a35[_0xe860aa(0x15b)](),_0x3e1c38=(_0x146b28==null?void 0x0:_0x146b28['unitId'])||_0x356d8d[0x0][_0xe860aa(0xd8)],_0x4cc6d8=(_0x146b28==null?void 0x0:_0x146b28['subUnitId'])||_0x356d8d[0x0][_0xe860aa(0x2b5)],_0x4994c0=(_0x146b28==null?void 0x0:_0x146b28[_0xe860aa(0x3e8)])||_0x356d8d[0x0][_0xe860aa(0x401)],_0x152cab=_0x3a246a[_0xe860aa(0xc3)](_0x3e1c38,_0x4cc6d8,_0x4994c0);if(!_0x152cab)return _0x59c6d3;let _0x2ba977=_0x152cab[_0xe860aa(0x48a)]();if(!_0x2ba977||!(_0xe860aa(0x1c5)in _0x2ba977))return _0x59c6d3;let _0x2dcce8=_0x2ba977[_0xe860aa(0x1c5)];return(_0x365bdd=_0x2dcce8==null?void 0x0:_0x2dcce8['va'])==null?_0x59c6d3:_0x365bdd;};return{'id':F['id'],'icon':(_0x592364=ye['find'](_0x2e2499=>_0x2e2499[_0x4dcb6a(0x1cf)]===_0x59c6d3))==null?void 0x0:_0x592364['icon'],'tooltip':_0x4dcb6a(0x5ff),'type':v[_0x4dcb6a(0x134)][_0x4dcb6a(0x5fe)],'selections':ye,'value$':new f['Observable'](_0x3216df=>{const _0x458b9b=_0x4dcb6a;let _0x806b78=_0x5c3a6e['onCommandExecuted'](_0x1e8cb0=>{_0x1e8cb0['id']===F['id']&&_0x3216df['next'](_0x1304b4());}),_0x2961d2=_0x4f4a35[_0x458b9b(0x2aa)][_0x458b9b(0x1b7)](()=>{const _0x181f6c=_0x458b9b;_0x3216df[_0x181f6c(0x593)](_0x1304b4());});return _0x3216df[_0x458b9b(0x593)](_0x1304b4()),()=>{const _0x1143e4=_0x458b9b;_0x806b78['dispose'](),_0x2961d2[_0x1143e4(0x1c4)]();};}),'hidden$':_0x13f3e5['subscribeContextValue$'](l[_0x4dcb6a(0x5ba)])[_0x4dcb6a(0x140)]((0x0,f[_0x4dcb6a(0x562)])(_0x2a5b4a=>!_0x2a5b4a))};}function xe(_0x283c1a){const _0x4a9f73=_0x1706e4;let _0x10d375=_0x283c1a[_0x4a9f73(0x148)](l['IUniverInstanceService']);return{'id':Y['id'],'type':v[_0x4a9f73(0x134)]['SELECTOR'],'selections':[{'label':{'name':de,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Y['id']}}}],'icon':_0x4a9f73(0xbe),'tooltip':_0x4a9f73(0x4b2),'activated$':(0x0,_[_0x4a9f73(0xda)])(_0x10d375,!0x1,()=>new f[(_0x4a9f73(0x531))](_0x2f48e7=>{const _0xfc575a=_0x4a9f73;_0x2f48e7[_0xfc575a(0x593)](!0x1);})),'hidden$':(0x0,v[_0x4a9f73(0x2c9)])(_0x283c1a,l['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,_[_0x4a9f73(0x353)])(_0x283c1a)};}const Se={[v['RibbonPosition'][_0x1706e4(0x20a)]]:{[v[_0x1706e4(0x364)][_0x1706e4(0x136)]]:{[F['id']]:{'order':3.5,'menuItemFactory':be},[I['id']]:{'order':3.4,'menuItemFactory':ge}},[v[_0x1706e4(0x364)]['FORMAT']]:{[h[_0x1706e4(0x30f)]['id']]:{'order':0x1,'menuItemFactory':_e,[h['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ve}}}},[v['RibbonInsertGroup']['MEDIA']]:{[Y['id']]:{'order':0x4,'menuItemFactory':xe}}};let Ce=class extends l[_0x1706e4(0x40c)]{constructor(_0x4d7cc2,_0x14d92b,_0xaa2769,_0x1508f,_0x450b0e,_0x347330,_0x32e928,_0x274bb5,_0x325af5,_0x12536b,_0x4c12ce){const _0x1f5742=_0x1706e4;super(),this['_univerInstanceService']=_0x4d7cc2,this[_0x1f5742(0x252)]=_0x14d92b,this[_0x1f5742(0x4bd)]=_0xaa2769,this[_0x1f5742(0x153)]=_0x1508f,this[_0x1f5742(0x495)]=_0x450b0e,this[_0x1f5742(0x373)]=_0x347330,this[_0x1f5742(0x251)]=_0x32e928,this[_0x1f5742(0x2e8)]=_0x274bb5,this['_drawingManagerService']=_0x325af5,this['_sheetCanvasPopManagerService']=_0x12536b,this[_0x1f5742(0xd4)]=_0x4c12ce,k(this,_0x1f5742(0x1a1),null),k(this,_0x1f5742(0x328),null),k(this,_0x1f5742(0x1c9),!0x1),this[_0x1f5742(0x370)](),this[_0x1f5742(0x150)](),this['disposeWithMe'](this[_0x1f5742(0x3ce)][_0x1f5742(0x54c)](l[_0x1f5742(0x46b)][_0x1f5742(0x304)])[_0x1f5742(0x1b7)](_0x4f5c4c=>{const _0x335af4=_0x1f5742;var _0x461aac;_0x4f5c4c||(_0x461aac=this['_sidebarDisposable'])==null||_0x461aac[_0x335af4(0x2b8)]();})),this[_0x1f5742(0x5d4)](),this[_0x1f5742(0x239)]();}['_initMenu'](){const _0x4e6de6=_0x1706e4;this[_0x4e6de6(0x153)]['mergeMenu'](Se);}['_registerShapeMenu'](){const _0x3de31a=_0x1706e4;this[_0x3de31a(0x3db)][_0x3de31a(0x2f9)](l['DrawingTypeEnum'][_0x3de31a(0x31d)],this[_0x3de31a(0x12e)]['bind'](this)),this['_sheetCanvasPopManagerService']['registerFeatureMenuOffset'](l['DrawingTypeEnum']['DRAWING_SHAPE'],0x6,0x4);}['getShapePopupMenus'](_0x295ff9,_0x5086b0,_0x474b9f,_0x4747f4){const _0x5b0e10=_0x1706e4;return[{'label':'sheets-shape.openPanel','index':0x0,'commandId':L['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'drawingId':_0x474b9f},'disable':_0x4747f4===l[_0x5b0e10(0x55c)][_0x5b0e10(0x46a)]},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':m[_0x5b0e10(0x432)]['id'],'commandParams':{'unitId':_0x295ff9,'drawings':[{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'drawingId':_0x474b9f,'drawingType':_0x4747f4}]},'disable':!0x1},{'label':_0x5b0e10(0x199),'index':0x2,'commandId':te['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'drawingId':_0x474b9f},'disable':!0x1},{'label':_0x5b0e10(0x4d6),'index':0x3,'commandId':c[_0x5b0e10(0x349)]['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'shapeId':_0x474b9f,'flipH':!0x0},'disable':!0x1},{'label':_0x5b0e10(0x52d),'index':0x4,'commandId':c[_0x5b0e10(0x349)]['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'shapeId':_0x474b9f,'flipV':!0x0},'disable':!0x1},{'label':_0x5b0e10(0x4dd),'index':0x4,'commandId':c[_0x5b0e10(0x303)]['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'shapeId':_0x474b9f,'rotate':0x5a},'disable':!0x1},{'label':_0x5b0e10(0x427),'index':0x4,'commandId':c[_0x5b0e10(0x303)]['id'],'commandParams':{'unitId':_0x295ff9,'subUnitId':_0x5086b0,'shapeId':_0x474b9f,'rotate':-0x5a},'disable':!0x1}];}['_getShapeInfo'](_0x1440f5,_0xe95156,_0x78da82){const _0x49a533=_0x1706e4;let _0xf79156=this[_0x49a533(0x495)][_0x49a533(0x57e)](_0x1440f5,_0xe95156,_0x78da82),_0xbe8843=this[_0x49a533(0x495)][_0x49a533(0x51e)](_0x1440f5,_0xe95156,_0x78da82);return _0xf79156!==void 0x0&&_0xbe8843!==void 0x0?{'shapeData':_0xbe8843,'shapeId':_0x78da82,'shapeType':_0xf79156,'unitId':_0x1440f5,'subUnitId':_0xe95156,'disableShapeOption':!0x1}:null;}['_registerOperations'](){const _0x43a981=_0x1706e4;this[_0x43a981(0x43c)](this[_0x43a981(0x2e8)]['onCommandExecuted'](_0x33cb58=>{const _0x5eab10=_0x43a981;if(_0x33cb58['id']===L['id']){let {unitId:_0x30eab1,subUnitId:_0xf06455,drawingId:_0xdc5465}=_0x33cb58[_0x5eab10(0xf1)];this[_0x5eab10(0x328)]=this['_getShapeInfo'](_0x30eab1,_0xf06455,_0xdc5465),this['_openShapeEditPanel']();}if(_0x33cb58['id']===te['id']&&(this[_0x5eab10(0x328)]=null,this[_0x5eab10(0x5a6)]()),_0x33cb58['id']===c['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x78c885,subUnitId:_0x3da683,shapeId:_0x5c22f1}=_0x33cb58[_0x5eab10(0xf1)];if(this[_0x5eab10(0x328)]&&this[_0x5eab10(0x328)]['shapeId']===_0x5c22f1){let _0x41424e=this[_0x5eab10(0x490)](_0x78c885,_0x3da683,_0x5c22f1);_0x41424e&&(this['_activeShapeInfo']=_0x41424e);}}})),this[_0x43a981(0x43c)](this['_drawingManagerService'][_0x43a981(0x235)][_0x43a981(0x1b7)](_0x383957=>{const _0x545710=_0x43a981;if(this[_0x545710(0x1c9)]===!0x1)return;if(_0x383957['length']===0x0){this[_0x545710(0x328)]=null,this[_0x545710(0x5a6)]();return;}if(_0x383957[_0x545710(0xa5)]===0x1&&_0x383957[0x0][_0x545710(0x2bf)]===l[_0x545710(0x55c)][_0x545710(0x31d)]&&(this[_0x545710(0x328)]=this['_getShapeInfo'](_0x383957[0x0]['unitId'],_0x383957[0x0][_0x545710(0x2b5)],_0x383957[0x0][_0x545710(0x401)]),this[_0x545710(0x328)])){this[_0x545710(0x4f7)]();return;}let _0x24a7c3=_0x383957[_0x545710(0x4be)](_0x4de824=>_0x4de824[_0x545710(0x2bf)]===l[_0x545710(0x55c)][_0x545710(0x31d)]);if(_0x383957['length']>0x1&&_0x24a7c3['length']===_0x383957[_0x545710(0xa5)]){if(this[_0x545710(0x328)]=this[_0x545710(0x490)](_0x383957[0x0][_0x545710(0xd8)],_0x383957[0x0]['subUnitId'],_0x383957[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x545710(0x4f7)]();return;}}else{if(this[_0x545710(0x328)]=this[_0x545710(0x490)](_0x383957[0x0][_0x545710(0xd8)],_0x383957[0x0][_0x545710(0x2b5)],_0x383957[0x0][_0x545710(0x401)]),this[_0x545710(0x328)]){this[_0x545710(0x328)]['disableShapeOption']=!0x0,this['_openShapeEditPanel']();return;}}this[_0x545710(0x5a6)]();}));}['_registerComponent'](){const _0x400b91=_0x1706e4;[['ShapeIcon',g[_0x400b91(0xbe)]],[_0x400b91(0x4f4),g[_0x400b91(0x4f4)]],['ShapeAccentBorderCallout2Icon',g[_0x400b91(0x3c9)]],[_0x400b91(0x50f),g[_0x400b91(0x50f)]],['ShapeAccentCallout1Icon',g[_0x400b91(0x2fb)]],[_0x400b91(0x12f),g[_0x400b91(0x12f)]],[_0x400b91(0x38d),g[_0x400b91(0x38d)]],[_0x400b91(0x5ac),g[_0x400b91(0x5ac)]],['ShapeActionButtonBeginningIcon',g[_0x400b91(0x4b1)]],[_0x400b91(0x363),g[_0x400b91(0x363)]],[_0x400b91(0x3e7),g[_0x400b91(0x3e7)]],['ShapeActionButtonEndIcon',g['ShapeActionButtonEndIcon']],['ShapeActionButtonForwardNextIcon',g['ShapeActionButtonForwardNextIcon']],['ShapeActionButtonHelpIcon',g['ShapeActionButtonHelpIcon']],['ShapeActionButtonHomeIcon',g[_0x400b91(0x501)]],[_0x400b91(0x4ec),g['ShapeActionButtonInformationIcon']],[_0x400b91(0x5eb),g['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',g['ShapeActionButtonReturnIcon']],[_0x400b91(0xae),g['ShapeActionButtonSoundIcon']],[_0x400b91(0x350),g[_0x400b91(0x350)]],[_0x400b91(0x3b4),g[_0x400b91(0x3b4)]],[_0x400b91(0x165),g[_0x400b91(0x165)]],[_0x400b91(0x20c),g[_0x400b91(0x20c)]],[_0x400b91(0x20d),g[_0x400b91(0x20d)]],[_0x400b91(0x5bf),g[_0x400b91(0x5bf)]],[_0x400b91(0x5a0),g['ShapeBevelIcon']],[_0x400b91(0x581),g[_0x400b91(0x581)]],[_0x400b91(0x31e),g['ShapeBorderCallout1Icon']],[_0x400b91(0x5e3),g[_0x400b91(0x5e3)]],[_0x400b91(0xe2),g['ShapeBorderCallout3Icon']],[_0x400b91(0xcd),g[_0x400b91(0xcd)]],['ShapeBracketPairIcon',g[_0x400b91(0x5be)]],['ShapeCallout1Icon',g[_0x400b91(0x3a3)]],[_0x400b91(0x4c5),g[_0x400b91(0x4c5)]],[_0x400b91(0x530),g['ShapeCallout3Icon']],[_0x400b91(0x24a),g[_0x400b91(0x24a)]],[_0x400b91(0x1e0),g[_0x400b91(0x1e0)]],[_0x400b91(0x39c),g[_0x400b91(0x39c)]],[_0x400b91(0x5c7),g[_0x400b91(0x5c7)]],[_0x400b91(0x3ed),g[_0x400b91(0x3ed)]],[_0x400b91(0x3cf),g[_0x400b91(0x3cf)]],[_0x400b91(0x411),g['ShapeCircularArrowIcon']],['ShapeCloudCalloutIcon',g['ShapeCloudCalloutIcon']],[_0x400b91(0x5b4),g[_0x400b91(0x5b4)]],['ShapeCornerIcon',g[_0x400b91(0xcb)]],[_0x400b91(0x184),g[_0x400b91(0x184)]],['ShapeCubeIcon',g[_0x400b91(0x5e9)]],[_0x400b91(0x47b),g[_0x400b91(0x47b)]],[_0x400b91(0x451),g[_0x400b91(0x451)]],['ShapeCurvedConnector3Icon',g[_0x400b91(0x38e)]],[_0x400b91(0x295),g[_0x400b91(0x295)]],['ShapeCurvedLeftArrowIcon',g[_0x400b91(0x53a)]],[_0x400b91(0x24c),g[_0x400b91(0x24c)]],[_0x400b91(0x395),g['ShapeCurvedUpArrowIcon']],['ShapeDecagonIcon',g['ShapeDecagonIcon']],[_0x400b91(0x48c),g['ShapeDiagStripeIcon']],['ShapeDiamondIcon',g[_0x400b91(0x2db)]],['ShapeDodecagonIcon',g['ShapeDodecagonIcon']],[_0x400b91(0x2d4),g[_0x400b91(0x2d4)]],[_0x400b91(0x1d7),g[_0x400b91(0x1d7)]],[_0x400b91(0x5c8),g[_0x400b91(0x5c8)]],['ShapeDownArrowIcon',g[_0x400b91(0x480)]],['ShapeEllipseIcon',g[_0x400b91(0x1e1)]],['ShapeEllipseRibbon2Icon',g[_0x400b91(0x2be)]],[_0x400b91(0x30e),g[_0x400b91(0x30e)]],[_0x400b91(0x5fd),g[_0x400b91(0x5fd)]],['ShapeFlowChartCollateIcon',g[_0x400b91(0x3a4)]],[_0x400b91(0xf5),g[_0x400b91(0xf5)]],[_0x400b91(0x473),g['ShapeFlowChartDecisionIcon']],[_0x400b91(0x29a),g[_0x400b91(0x29a)]],['ShapeFlowChartDisplayIcon',g[_0x400b91(0x293)]],[_0x400b91(0x3af),g[_0x400b91(0x3af)]],['ShapeFlowChartExtractIcon',g[_0x400b91(0x1d6)]],['ShapeFlowChartInputOutputIcon',g[_0x400b91(0x3d6)]],[_0x400b91(0x4fb),g[_0x400b91(0x4fb)]],[_0x400b91(0x2ef),g[_0x400b91(0x2ef)]],['ShapeFlowChartMagneticDrumIcon',g['ShapeFlowChartMagneticDrumIcon']],[_0x400b91(0x202),g[_0x400b91(0x202)]],['ShapeFlowChartManualInputIcon',g[_0x400b91(0x394)]],[_0x400b91(0x53c),g['ShapeFlowChartManualOperationIcon']],['ShapeFlowChartMergeIcon',g[_0x400b91(0x55d)]],[_0x400b91(0x5dc),g[_0x400b91(0x5dc)]],[_0x400b91(0x475),g['ShapeFlowChartOfflineStorageIcon']],[_0x400b91(0x575),g[_0x400b91(0x575)]],[_0x400b91(0x4ef),g[_0x400b91(0x4ef)]],[_0x400b91(0x2c8),g['ShapeFlowChartOrIcon']],['ShapeFlowChartPredefinedProcessIcon',g[_0x400b91(0x109)]],[_0x400b91(0x5ee),g[_0x400b91(0x5ee)]],[_0x400b91(0x446),g[_0x400b91(0x446)]],['ShapeFlowChartPunchedCardIcon',g[_0x400b91(0x3c1)]],[_0x400b91(0x1aa),g[_0x400b91(0x1aa)]],[_0x400b91(0x496),g[_0x400b91(0x496)]],['ShapeFlowChartSummingJunctionIcon',g[_0x400b91(0x526)]],[_0x400b91(0x13f),g[_0x400b91(0x13f)]],[_0x400b91(0x15f),g[_0x400b91(0x15f)]],[_0x400b91(0x2e2),g[_0x400b91(0x2e2)]],[_0x400b91(0x548),g['ShapeFunnelIcon']],[_0x400b91(0x52f),g[_0x400b91(0x52f)]],['ShapeGear9Icon',g[_0x400b91(0x3d3)]],[_0x400b91(0x450),g['ShapeHalfFrameIcon']],[_0x400b91(0x312),g['ShapeHeartIcon']],[_0x400b91(0x233),g[_0x400b91(0x233)]],[_0x400b91(0x389),g[_0x400b91(0x389)]],['ShapeHomePlateIcon',g[_0x400b91(0xd9)]],[_0x400b91(0x356),g[_0x400b91(0x356)]],['ShapeIrregularSeal1Icon',g[_0x400b91(0x40a)]],[_0x400b91(0x518),g[_0x400b91(0x518)]],[_0x400b91(0x46d),g[_0x400b91(0x46d)]],['ShapeLeftArrowIcon',g[_0x400b91(0x569)]],[_0x400b91(0x300),g[_0x400b91(0x300)]],[_0x400b91(0x602),g[_0x400b91(0x602)]],['ShapeLeftCircularArrowIcon',g[_0x400b91(0x506)]],[_0x400b91(0x1b2),g[_0x400b91(0x1b2)]],[_0x400b91(0x1b6),g[_0x400b91(0x1b6)]],[_0x400b91(0x2b7),g[_0x400b91(0x2b7)]],['ShapeLeftRightRibbonIcon',g['ShapeLeftRightRibbonIcon']],['ShapeLeftRightUpArrowIcon',g['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',g[_0x400b91(0x54d)]],[_0x400b91(0xdd),g['ShapeLightningBoltIcon']],['ShapeLineIcon',g[_0x400b91(0x25e)]],[_0x400b91(0xf8),g[_0x400b91(0xf8)]],[_0x400b91(0x27d),g[_0x400b91(0x27d)]],[_0x400b91(0x1bc),g[_0x400b91(0x1bc)]],[_0x400b91(0x428),g[_0x400b91(0x428)]],[_0x400b91(0x2ce),g[_0x400b91(0x2ce)]],[_0x400b91(0x43f),g[_0x400b91(0x43f)]],[_0x400b91(0x456),g[_0x400b91(0x456)]],[_0x400b91(0x5f2),g[_0x400b91(0x5f2)]],['ShapeNoSmokingIcon',g[_0x400b91(0x1f7)]],[_0x400b91(0x4bb),g[_0x400b91(0x4bb)]],['ShapeNotchedRightArrowIcon',g['ShapeNotchedRightArrowIcon']],[_0x400b91(0x337),g[_0x400b91(0x337)]],[_0x400b91(0x3be),g[_0x400b91(0x3be)]],['ShapePentagonIcon',g['ShapePentagonIcon']],[_0x400b91(0x35a),g[_0x400b91(0x35a)]],['ShapePieWedgeIcon',g[_0x400b91(0x12a)]],['ShapePlaqueIcon',g[_0x400b91(0x3a2)]],['ShapePlaqueTabsIcon',g[_0x400b91(0x32e)]],[_0x400b91(0x1a6),g[_0x400b91(0x1a6)]],[_0x400b91(0x31a),g[_0x400b91(0x31a)]],[_0x400b91(0x222),g['ShapeQuadArrowIcon']],[_0x400b91(0x54a),g[_0x400b91(0x54a)]],['ShapeRectTextboxHorizontalIcon',g[_0x400b91(0x2ba)]],[_0x400b91(0x1b5),g['ShapeRectTextboxVerticalIcon']],[_0x400b91(0x40f),g[_0x400b91(0x40f)]],[_0x400b91(0x5e5),g['ShapeRibbonIcon']],['ShapeRightArrowCalloutIcon',g['ShapeRightArrowCalloutIcon']],[_0x400b91(0x49c),g[_0x400b91(0x49c)]],[_0x400b91(0x2af),g[_0x400b91(0x2af)]],[_0x400b91(0x1e8),g[_0x400b91(0x1e8)]],[_0x400b91(0x25b),g[_0x400b91(0x25b)]],['ShapeRound2DiagRectIcon',g[_0x400b91(0x517)]],[_0x400b91(0x494),g[_0x400b91(0x494)]],[_0x400b91(0x4b4),g['ShapeRoundRectIcon']],[_0x400b91(0x323),g['ShapeRtTriangleIcon']],[_0x400b91(0x3ca),g['ShapeSmileyFaceIcon']],[_0x400b91(0x5d1),g['ShapeSnip1RectIcon']],[_0x400b91(0x344),g[_0x400b91(0x344)]],[_0x400b91(0x5b5),g['ShapeSnip2SameRectIcon']],['ShapeSnipRoundRectIcon',g[_0x400b91(0x1ea)]],['ShapeSquareTabsIcon',g['ShapeSquareTabsIcon']],[_0x400b91(0xba),g['ShapeStar10Icon']],[_0x400b91(0xdf),g[_0x400b91(0xdf)]],[_0x400b91(0x362),g[_0x400b91(0x362)]],[_0x400b91(0xc8),g[_0x400b91(0xc8)]],[_0x400b91(0x3b8),g['ShapeStar32Icon']],[_0x400b91(0x20f),g['ShapeStar4Icon']],[_0x400b91(0x1a9),g['ShapeStar5Icon']],[_0x400b91(0x588),g[_0x400b91(0x588)]],['ShapeStar7Icon',g[_0x400b91(0xc4)]],[_0x400b91(0x440),g[_0x400b91(0x440)]],[_0x400b91(0x21c),g[_0x400b91(0x21c)]],[_0x400b91(0x132),g[_0x400b91(0x132)]],[_0x400b91(0x380),g[_0x400b91(0x380)]],[_0x400b91(0x18f),g[_0x400b91(0x18f)]],[_0x400b91(0x5bd),g[_0x400b91(0x5bd)]],[_0x400b91(0x387),g['ShapeTeardropIcon']],[_0x400b91(0x322),g[_0x400b91(0x322)]],[_0x400b91(0x2cd),g[_0x400b91(0x2cd)]],[_0x400b91(0x30c),g['ShapeUpArrowCalloutIcon']],[_0x400b91(0x41b),g[_0x400b91(0x41b)]],[_0x400b91(0x279),g[_0x400b91(0x279)]],[_0x400b91(0x3c6),g[_0x400b91(0x3c6)]],[_0x400b91(0x472),g[_0x400b91(0x472)]],[_0x400b91(0x410),g[_0x400b91(0x410)]],[_0x400b91(0x193),g[_0x400b91(0x193)]],['ShapeWedgeEllipseCalloutIcon',g[_0x400b91(0x3b6)]],['ShapeWedgeRectCalloutIcon',g[_0x400b91(0x53b)]],['ShapeWedgeRoundRectCalloutIcon',g[_0x400b91(0x1f0)]],[ne,K],[de,me],[S[_0x400b91(0x599)],pe]][_0x400b91(0x171)](([_0x4d0fa7,_0x113cf9])=>{const _0xbc7b0f=_0x400b91;this['disposeWithMe'](this['_componentManager'][_0xbc7b0f(0x2f5)](_0x4d0fa7,_0x113cf9));});}['_openShapeEditPanel'](){const _0x2ab6e4=_0x1706e4;this['_sidebarDisposable']=this['_sidebarService']['open']({'id':ne,'header':{'title':this[_0x2ab6e4(0x373)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':ne,...this[_0x2ab6e4(0x328)]},'onClose':()=>{const _0x1fe9b5=_0x2ab6e4;this[_0x1fe9b5(0x3f8)][_0x1fe9b5(0x124)](null),this[_0x1fe9b5(0xd4)]['setContextValue'](l[_0x1fe9b5(0x5ba)],!0x1),this[_0x1fe9b5(0x1a1)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0;}['_closeShapeEditPanel'](){const _0x2700f7=_0x1706e4;this[_0x2700f7(0x1c9)]=!0x1,this[_0x2700f7(0x4bd)][_0x2700f7(0x3f0)](ne),this['_sidebarDisposable']=null,this['_contextService']['setContextValue'](l['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x2700f7(0x3f8)]['focusDrawing'](null);}};Ce=H([V(0x0,l[_0x1706e4(0x508)]),V(0x1,(0x0,l['Inject'])(p['SheetInterceptorService'])),V(0x2,(0x0,l[_0x1706e4(0x318)])(v[_0x1706e4(0x10b)])),V(0x3,v[_0x1706e4(0x340)]),V(0x4,(0x0,l[_0x1706e4(0x318)])(c[_0x1706e4(0xbf)])),V(0x5,(0x0,l[_0x1706e4(0x318)])(l[_0x1706e4(0x4aa)])),V(0x6,(0x0,l[_0x1706e4(0x318)])(v[_0x1706e4(0x563)])),V(0x7,l[_0x1706e4(0x41c)]),V(0x8,u[_0x1706e4(0x3e9)]),V(0x9,(0x0,l[_0x1706e4(0x318)])(_[_0x1706e4(0x357)])),V(0xa,l[_0x1706e4(0x3fc)])],Ce);var we=_0x1706e4(0xe7),Te=_0x1706e4(0x169);const Ee='sheets-shape.config';Symbol(Ee);const De={};function _0x3aa8(){const _0x3acc87=['shape.type.parallelogram','shape.type.triangle','FlowchartSort','sheets-shape.fill.picture.align.tl','LEFT','FlowchartDelay','univer-text-gray-500','isActive','sheets-shape.rotateLeft90','ShapeMathMinusIcon','shape.type.notched-right-arrow','getObject','shape.type.math-divide','AccentCallout2','univer-w-20','pluginName','shape.type.down-arrow-callout','invert','getZoomRatio','RemoveSheetDrawingCommand','worldRect','isArray','shape.type.double-wave','renderDrawingShape','AlignOperationCommand','shape.type.chart-x','_lastEditingShapeKey','HorizontalAlign','univer-w-full','disposeWithMe','activeSheet$','shape.type.accent-callout2','ShapeMathNotEqualIcon','ShapeStar8Icon','_getShapeAdjustInfosById','_draw','shape.type.round1-rect','DependentOn','BreakLineCommand','ShapeFlowChartProcessIcon','_getShapeAdjustPointListById','size','angular','SheetsDrawingGroupCopyPasteController','CurvedUpArrow','shape.type.lightning-bolt','shape.type.action-button-forward-next','radial','1042383XNitgM','ShapeHalfFrameIcon','ShapeCurvedConnector3Arrow2Icon','getTransformer','toolbar.horizontalAlignMode.main','ShapeModel','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','ShapeMathPlusIcon','ShapePositionWrapper','toDisposable','setCursor','AlignCenterCommand','_drawingType','Round1Rect','FlowchartMagneticDrum','equationShape','FlowchartPunchedCard','ShapePentagonIcon','_executeConnectedRouteResizeCommand','sheets-shape.fill.picture.scaleX','_isShouldShowDrawingShapeAdjust','_transform','visible','sheets-shape.line.arrowType.arrow','sketchType','LeftBrace','getImageSize','DRAWING_DOM','UniverInstanceType','Bevel','ShapeLeftArrowCalloutIcon','shape.type.flow-chart-decision','onCommandExecuted','GROUP','shape.type.quad-arrow-callout','ShapeUturnArrowIcon','ShapeFlowChartDecisionIcon','1460xOEoBi','ShapeFlowChartOfflineStorageIcon','ctr','span','interceptCommand','ShapeLineTypeEnum','shape.type.plus','ShapeCurvedConnector3Arrow1Icon','isHitLine','FlowchartManualInput','shape.type.chord','NoFill','ShapeDownArrowIcon','align.left','linear','ConnectorCoordinateTransform','Flat','getInverseCoord','computeConnectorResizeLayout','updateLinePoints','prstGeom','save','getShapeTextData','shape.type.moon','ShapeDiagStripeIcon','permissionCheckWithoutRange','Callout','_adjHandlerPointerUp','_getShapeInfo','getParent','function','top','ShapeRound2SameRectIcon','_sheetsShapeService','ShapeFlowChartSortIcon','SHAPE','365814OlmAFe','AccentBorderCallout1','sheets-shape.line.sketchType.none','adjustValues','ShapeRightArrowIcon','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','executeCommand','computeStraightConnectorLayout','FlowchartExtract','_urlImageService','_activeImageId','16NoprWb','offset','IrregularSeal2','bind','addObject','RIGHT','_imageShapeClipController','LocaleService','onRendered','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','useAbsolutePosition','SetShapeTextFontSizeDecreaseCommand','AccentBorderCallout3','_drawShapeText','ShapeActionButtonBeginningIcon','sheets-shape.insertShape','FlowchartOr','ShapeRoundRectIcon','_cxtHandlerPointerUp','cos','shape.type.corner','primary.600','shape.type.border-callout1','CloudCallout','ShapeNonIsoscelesTrapezoidIcon','DocumentSkeleton','_sidebarService','filter','LeftRightCircularArrow','_unitId','Plugin','UpDownArrowCallout','shape.type.bent-up-arrow','sheets-shape.fill.noFill','ShapeCallout2Icon','stops','_registerGroupFeaturePasteHook','Select','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','StealthArrow','_updateAdjustControlPositions','enableObjectsEvent','useRef','_drawRichText','getFocusDrawings','Heart','shape.type.snip2-diag-rect','getShapeTextRect','fillImageSource','sheets-shape.fill.pictureFill','_setTransForm','sheets-shape.toggleFlipH','GradientColorPicker','_findShapeAtPoint','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','DocSkeletonManagerService','shape.type.left-arrow-callout','symbol','sheets-shape.rotateRight90','ShapeNotchedRightArrowIcon','draw','ChartPlus','isEditing','addImageSourceCache','IRenderManagerService','isHit','SHAPE_TEXT','clip-adj-','EMPTY','BentConnector3','univer-rounded-lg\x20univer-p-3','RightJustifyingIcon','changeStart$','ShapeActionButtonInformationIcon','sheets-shape.fill.picture.scaleY','Star4','ShapeFlowChartOnlineStorageIcon','setShouldShowAdjust','shape.type.callout2','SetShapeTextFontSizeIncreaseCommand','getBasicShapeRelation','ShapeAccentBorderCallout1Icon','shape.type.rect-textbox-vertical','isStartConnectorPoint','_openShapeEditPanel','isCurvedConnectorShape','getUnit','shape.type.curved-up-arrow','ShapeFlowChartInternalStorageIcon','FlowchartMultiDocument','addClipboardHook','Line','replace','shape.type.action-button-help','ShapeActionButtonHomeIcon','shape.type.cloud','setShapeData','shape.type.action-button-beginning','_initEditingParams','ShapeLeftCircularArrowIcon','UpdateLineShapeResizeCommand','IUniverInstanceService','_imageIoService','floor','_initCommands','sheets-shape.line.dashType.roundDot','_registerImageShapeClipDelegate','Cloud','ShapeAccentBorderCallout3Icon','Pie','error','shape.type.ellipse','getRenderById','_baseDrawingRect','LeftArrow','sheets-shape.fill.gradientFill','ShapeRound2DiagRectIcon','ShapeIrregularSeal2Icon','diamond','scaleX','SetShapeTextFontSizeCommand','generateRandomId','ActionButtonBlank','getShapeDataById','toolbar.resetColor','_groupCopyPasteController','version','_getConnectPointInfo','shapeModel','#ffffff','shape.type.up-down-arrow','ShapeFlowChartSummingJunctionIcon','PictureFill','_updateSrcRectByTransform','sheets-shape.fill.picture.align.t','ShapeRightArrowCalloutIcon','shape.type.flow-chart-internal-storage','FlowchartPredefinedProcess','sheets-shape.toggleFlipV','onReady','ShapeGear6Icon','ShapeCallout3Icon','Observable','ShapeRenderModeEnum','image-clip-adjust-point-','_updateShapeAdjustControls','VerticalCenterIcon','_attachAdjustEvent','COMMAND','getBatchAddOp','focus','ShapeCurvedLeftArrowIcon','ShapeWedgeRectCalloutIcon','ShapeFlowChartManualOperationIcon','paragraphStyle','dataStream','ang','Rectangle','sheet.command.menu-insert-shape','_shapes','shape.type.pie-wedge','sheets-shape.line.dashType.longDashDotDot','getPrototypeOf','_initialize','ShapeLineCapEnum','ShapeFunnelIcon','isRichText','ShapeRectIcon','cxnPointStroke','getCurrentTypeOfUnit$','ShapeLeftUpArrowIcon','_connectorObjects','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','ShapeLeftRightRibbonIcon','angle','ISheetClipboardService','univer-text-sm','NoSmoking','shape.type.flow-chart-online-storage','changing$','shape.type.uturn-arrow','round','_registerMoveHandler','getValue','REMOVE','DrawingTypeEnum','ShapeFlowChartMergeIcon','image-panel.crop.shape','sheets-shape.fill.solidFill','shape-text-','shape.type.cloud-callout','map','ComponentManager','sheets-shape.fill.picture.align.bl','Diamond','worksheet','shape.type.callout3','_initSheetChange','ShapeLeftArrowIcon','fillImageSourceType','Plaque','point','sheets-shape.line.transparency','getAdjustNames','current','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','shape.type.action-button-blank','BUTTON','removeLinePoints','PaintBucketDoubleIcon','ShapeFlowChartOffpageConnectorIcon','shape.type.flow-chart-or','parse','abs','univer-absolute','imageFillMode','univer-size-full','_getOrCreateShapeModel','CornerTabs','getShapeTypeById','IEditorService','univer-relative\x20univer-size-full\x20univer-overflow-visible','ShapeBlockArcIcon','univer-flex\x20univer-items-center\x20univer-justify-between','sheets-shape.fill.picture.offsetY','shape.type.star32','Angular','ShapeActionButtonEndIcon','_editingParams$','ShapeStar6Icon','getDrawingData','rect','viewportScrollY','sheets-shape.line.beginArrowType','SetDrawingApplyMutation','INSERT','_getImageDrawingInfo','Can','setShapeProps','_isImagePointerDown','next','SwooshArrow','Pentagon','adjHandleSize','setOnSavingEditorData','BasicShape','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','getSkeleton','shape.type.math-multiply','_shapeService','ShapeFlowChartMagneticDrumIcon','shape.type.chart-star','stringify','ShapeBevelIcon','isHighlighted','UpdateSheetsShapeDataMutation','onload','shape.type.swoosh-arrow','DiagStripe','_closeShapeEditPanel','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','sheets-shape.fill.color','Accordion','shape.type.square-tabs','3959523TmtwsC','ShapeActionButtonBackPreviousIcon','useDependency','_shapeUpdateListener','Documents','Solid','Path','_insertShapes','startX','ShapeCloudIcon','ShapeSnip2SameRectIcon','clearAdjustValue','__esModule','DrawingRenderService','displayName','FOCUSING_COMMON_DRAWINGS','highlighted','ShapeTypeEnum','ShapeSwooshArrowIcon','ShapeBracketPairIcon','ShapeBentUpArrowIcon','shape.type.down-arrow','URL','section','shape.type.flow-chart-manual-operation','align.middle','FlowchartCollate','QuadArrowCallout','ShapeChartXIcon','ShapeDownArrowCalloutIcon','sheetTransform','StarAndBanner','translateWithPrecision','sheets-shape.line.capType.round','shape.type.line-inv','SheetPermissionCheckController','_draggingConnectorId','univer-w-20\x20univer-flex-1','ShapeSnip1RectIcon','univer-pt-2','getDrawingPoints','_registerOperations','registerClipDelegate','Injector','push','DownArrow','IConfigService','getConnectionSiteList','marginTop','ShapeFlowChartMultidocumentIcon','getDrawingVisible','SolidLine','_sheetClipboardService','FoldedCorner','start','_isDrawingShapePointDown','ShapeBorderCallout2Icon','_clearConnectionSites','ShapeRibbonIcon','_handleConnectedEndpointMove','getDrawingByParam','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeCubeIcon','UpArrowCallout','ShapeActionButtonMovieIcon','default','BOTTOM','ShapeFlowChartPreparationIcon','shape.type.sun','syncExecuteCommand','setPrstGeomAdjValues','ShapeMoonIcon','ShapeEditor','OPERATION','UniverSheetsDrawingUIPlugin','div','shape.type.ribbon2','icon','onScrollAfter$','shapeKey','_attachConnectorObjectEvent','Stretch','ShapeFlowChartAlternateProcessIcon','SELECTOR','toolbar.verticalAlignMode.main','clearAdjustControls','Arrow','ShapeLeftBracketIcon','length','getDrawingOrder','shape.type.math-not-equal','subscribeEvent','Dropdown','sheetViewStartRow','call','sheetViewStartColumn','shape.type.bevel','ShapeActionButtonSoundIcon','sheets-shape.fill.picture.align.br','shape.type.bent-connector3-arrow1','shape.type.flow-chart-punched-card','getUnitId','vertical','shape.type.curved-connector3','univer-w-28','_baseShapeTop','endConnectionDetection','domX','FromArray','ShapeStar10Icon','keys','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','shape.type.cube','ShapeIcon','SheetsShapeService','Wave','sheets-shape.fill.picture.align.tr','asObservable','getShapeModel','ShapeStar7Icon','ActionButtonEnd','shape.type.left-right-arrow-callout','domY','ShapeStar24Icon','Linear','LeftRightArrowCallout','ShapeCornerIcon','Ellipse','ShapeBracePairIcon','doc','univer-flex-1\x20univer-overflow-auto','shape.type.flow-chart-preparation','_activeShapeModel','ActionButtonForwardNext','shape.type.curved-right-arrow','_contextService','body','shape.type.half-frame','setPrstGeom','unitId','ShapeHomePlateIcon','deriveStateFromActiveSheet$','BentArrow','_shapeTextEditingService','ShapeLightningBoltIcon','ShapeActionButtonForwardNextIcon','ShapeStar12Icon','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','shape.type.left-circular-arrow','ShapeBorderCallout3Icon','shape.type.flow-chart-connector','Radial','shape.type.block-arc','preValue','@univerjs-pro/sheets-shape-ui','RightArrowCallout','touchDependencies','CommandType','Callout3','shape.type.ribbon','shape.type.accent-callout3','sheet.operation.close-sheet-shape-format-panel','startY','getImageSourceCache','params','CurvedLeftArrow','_moveConnectorWithShape','sheets-shape.shapePosition','ShapeFlowChartConnectorIcon','getDrawingShapeKeyByDrawingSearch','EllipseRibbon','ShapeLineInvIcon','_cxnIndex','colStartX','flipX','refreshAdjustControls','fill','shape.type.up-arrow-callout','cxnPointFill','getStartConnectInfo','Dash','jsxs','shape.type.line','worldPoint','shape.type.star24','shape.type.flow-chart-manual-input','redo','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeFlowChartPredefinedProcessIcon','shape.type.donut','ISidebarService','ActionButtonReturn','Circle','AlignLeftCommand','updateShapeFillImage','shapeData','oKey','onerror','updateDocumentStyle','render','_sheetPermissionCheckController','VIEW_MAIN_LEFT','Octagon','shape.type.flow-chart-magnetic-tape','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','WedgeRectCallout','shape.type.quad-arrow','Round2SameRect','_renderManagerService','imageTile','attachRangeWithCoord','_registerFocusChangeHandler','from','_loadShapePictureFill','getDocRanges','focusDrawing','6592506rLnVdc','endArrow','_activeShapeAdjustPointList','COPY_TYPE','localToWorld','ShapePieWedgeIcon','getConnectionInfo','Radio','shape.type.right-arrow','getShapePopupMenus','ShapeAccentCallout2Icon','indexOf','shape.type.diag-stripe','ShapeStraightConnector2Icon','FlowchartSummingJunction','MenuItemType','isRender','LAYOUT','_baseShapeWidth','Parallelogram','HalfFrame','shape.type.star4','isInGroup','_updateImageAdjValues','shape.type.action-button-return','ISheetDrawingService','ShapeFlowChartTerminatorIcon','pipe','resize','file','shape.type.pie','RightBracket','shape.type.diamond','HomePlate','_drawSimpleText','get','_activeAdjustPointList','getCurrentSkeleton','useCallback','Medium','sheet.command.set-shape-text-font-size-decrease','DRAWING_IMAGE','updateDocumentDataMargin','_initMenu','_addShapeConnectorHandlerObjects','applyPoint','_menuManagerService','getSheetCommandTarget','shape.type.bent-connector3','_sheetDrawingService','_handleFreeEndpointMove','classType','Ribbon','shape.type.flow-chart-offline-storage','getEditing','_handleBasicShapeUpdateConnectorLineShape','Snip2SameRect','clsx','ShapeFolderCornerIcon','_generateCutPasteMutations','none','shape.type.callout1','ActionButtonBeginning','shape.type.bent-arrow','ShapeBentConnector3Arrow1Icon','DRAWING_OBJECT_LAYER_INDEX','setEditing','srcRect','0.20.1','useEditor','_currentConnectionTarget','Transform','_isConnecting','_sheetDrawingShapeRenderController','Checkbox','onPointerUp$','forEach','MIDDLE','getColorFromTheme','cxnIndex','worldPoints','group\x20univer-relative\x20univer-inline-block','color','align.top','BlockArc','Snip2DiagRect','shape.type.star12','shape.type.left-right-up-arrow','image/*','Square','prototype','_baseLeft','UNIVER_DOC','_createShapeAdjustControls','UPDATE','ShapeCornerTabsIcon','_handleConnectorPointerUp','updateConnectionDetection','horizontalAlign','position','with','transform','_getImagePrstGeom','getAncestorScale','insertGroupObject','rotate(','ShapeSunIcon','reduce','decorate','_registerDrawingMoveHandler','ShapeWaveIcon','_context','registerRenderModule','getBatchRemoveOp','updateContext','refreshTransform','sheets-shape.hidePanel','RichTextEditingMutation','routeConnectorLineShape','shape.type.hexagon','shape.type.pentagon','DocumentViewModel','relation','setConfig','_sidebarDisposable','end','useState','sheets-shape.fill.picture.align.r','IImageIoService','ShapePlusIcon','ShapeDefaultConfig','UniverSheetsShapeUIPlugin','ShapeStar5Icon','ShapeFlowChartPunchedTapeIcon','FlowchartDocument','Star12','_showConnectionSites','changeEnd$','_createCopyInfoByRange','NoLine','_executeConnectionCommand','ShapeLeftRightArrowCalloutIcon','_copyInfo','subscribeContextValue$','ShapeRectTextboxVerticalIcon','ShapeLeftRightArrowIcon','subscribe','_initEvents','sheets-shape.line.sketchType.freehand','_baseShapeLeft','univer-hidden','ShapeMathEqualIcon','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','getSkeletonParam','update$','callout','cxnPointStrokeWidth','DrawingApplyType','DrawingImageClipService','unsubscribe','dataModel','getConnectionRelation','getConnectorLinePoints','CopySheetCommand','_isOpenedShapeEditPanel','skeleton','StripedRightArrow','Miter','shape.type.plaque-tabs','getMatrix','value','LeftUpArrow','FlowchartDecision','InsertSheetsShapeMutation','_currentUniverService','shape.type.left-right-circular-arrow','shape.type.circular-arrow','ShapeFlowChartExtractIcon','ShapeDoubleWaveIcon','sheet.command.set-shape-text-font-size-increase','FlowchartMerge','sheets-shape.fill.transparency','Other','ImageSourceTypeEnum','sheets-shape.line.width','ShapeSketchTypeEnum','_cxtHandlerPointerMove','ShapeChartPlusIcon','ShapeEllipseIcon','ChartStar','getShapeType','shape.type.action-button-movie','sheets-shape.fill.title','Star16','sheets-shape.line.endArrowSize','ShapeRightBracketIcon','_adjName','ShapeSnipRoundRectIcon','AlignJustifyCommand','getOwnPropertyNames','shape.type.striped-right-arrow','shape.type.round-rect','lineType','ShapeWedgeRoundRectCalloutIcon','univer-flex\x20univer-items-center\x20univer-gap-2','calculate','clip','\x20px','shape.type.star7','_config','ShapeNoSmokingIcon','textRect','shape.type.straight-connector2','imageRotateWithShape','getEndConnectInfo','SetShapeTextVerticalAlignCommand','_updateTransform','Tools','VerticalScroll','shape.type.right-arrow-callout','useLeftAndRightArrow','ShapeFlowChartMagneticTapeIcon','Snip1Rect','shape.type.decagon','useMemo','gdRefY','BorderCallout1','deg)\x20scaleY(','img','START','getBentTypeFromPoints','ShapeBentConnector3Arrow2Icon','ShapeBentConnector3Icon','scale','ShapeStar4Icon','resetCursor','_injector','_configService','InputNumber','FlowchartOnlineStorage','RemoveSheetsShapeMutation','shape.type.star16','warn','ShapeLineDashEnum','startArrow','BUTTON_SELECTOR','changeShapeType','ShapeStraightConnector1Icon','_highlightedSiteIndex','capType','sheets-shape.shapeStyle','LongDashDot','ShapeArrowSizeEnum','ShapeQuadArrowIcon','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','AccentCallout1','align.center','_sheetBasicShapeConnectionPointController','Gear6','sheets-shape.line.joinType.bevel','shape.type.flow-chart-document','getViewportByCell','EquationShape','_addControl','WorkbookEditablePermission','shape.type.brace-pair','_isStartAdjusting','has','values','setAdjustValueByName','ShapeHeptagonIcon','_clearControls','focus$','LeftJustifyingIcon','_initSelection','WedgeEllipseCallout','_registerShapeMenu','UpDownArrow','HorizontalScroll','gradientAngle','_currentScene','_activeShapeId','PREDEFINED_HOOK_NAME','shape.type.funnel','UpArrow','Chord','BlockArrow','GradientFill','DashDot','dashType','Large','34496xeSalw','beginPath','ShapeCanIcon','730SxIbIw','ShapeCurvedRightArrowIcon','_getScrollInfo','univer-text-xl\x20univer-text-gray-500','SheetDrawingAnchor','shape.group.','_componentManager','_sheetInterceptorService','_initCopyPaste','Tile','shape.type.snip2-same-rect','shape.type.rect','lineStrokeType','_adjHandlerPointerMove','flipY','StraightConnector1','ShapeRound1RectIcon','shape.type.rt-triangle','_getSceneAndTransformerByDrawingSearch','ShapeLineIcon','AlignTopIcon','pageSize','makeDirty','shape.type.border-callout3','max','_baseTop','Vector2','left','ResetInlineFormatTextBackgroundColorCommand','_hasReset','_getZoomRatio','activeAnObject','getObjectIncludeInGroup','\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','SetShapeDrawingDataCommand','sheets-shape.line.dashType.dash','Funnel','COLOR_PICKER_COMPONENT','Plus','Corner','getBasicShapeRotateBound','enumerable','getSheetBySheetId','offsetY','shape.type.round2-same-rect','_subUnitId','ShapeUpDownArrowCalloutIcon','Flowchart','ChartX','Arc','ShapeMathDivideIcon','SheetSkeletonManagerService','clone','shape.type.heptagon','_generatePasteMutations','_handleFreeEndpointPointerUp','Star8','getBatchUpdateOp','shape.type.chart-plus','sheets-shape.line.capType.flat','shape.type.flow-chart-input-output','ActionButtonHelp','ShapeDodecagonIcon','RoundRect','_clipService','MathNotEqual','setContextValue','InsertShapeCommand','LeftRightRibbon','input','shape.type.horizontal-scroll','shape.type.curved-down-arrow','ShapeFlowChartDisplayIcon','_baseHeight','ShapeCurvedDownArrowIcon','PlaqueTabs','onStarting','index','_addShapeConnectorHandlerObject','ShapeFlowChartDelayIcon','_sheetShapeAdjustController','sheet.command.update-shape-data','shape.type.flow-chart-offpage-connector','getState','clip-','ShapeArrowTypeEnum','toolbar.fillColor.main','shape.type.right-brace','localeService','sheets-shape.line.arrowSize.large','getViewport','name','sheets-shape.fill.picture.alignment','getShapeData','setDocumentData','editingParams$','ancestorTransform','_getDrawingRect','useEffect','ColorPicker','ShapeRightBraceIcon','sheets-shape.line.beginArrowSize','BehaviorSubject','complete','getDocumentData','ImageFillModeEnum','subUnitId','4896787dhaPuU','ShapeLeftRightCircularArrowIcon','dispose','sheets-shape.line.title','ShapeRectTextboxHorizontalIcon','blur','includes','ShapeActionButtonHelpIcon','ShapeEllipseRibbon2Icon','drawingType','FlowchartMagneticDisk','Triangle','ActionButtonSound','objects','shape-text-editor-content','IUndoRedoService','shape.type.home-plate','scene','ShapeFlowChartOrIcon','getMenuHiddenObservable','CurvedDownArrow','Star7','deepClone','ShapeTriangleIcon','ShapeMathMultiplyIcon','gradientStops','stopPropagation','shape.type.flow-chart-multidocument','sin','WorksheetEditPermission','ShapeDonutIcon','shape.type.snip-round-rect','auto','3240300pWOTvh','editorHeight','_isHighlighted','shape.type.flow-chart-delay','ShapeDiamondIcon','FlowchartDisplay','imageOpacity','useObservable','getActualSize','shape.type.folder-corner','click','ShapeFrameIcon','Fragment','shape.type.ellipse-ribbon','FOCUSING_PANEL_EDITOR','_connectionSiteObjects','fillType','_commandService','remove$','VerticalAlign','Cube','shape.type.star6','LeftArrowCallout','composeMatrix','ShapeFlowChartMagneticDiskIcon','DiamondArrow','entries','MoreDownIcon','some','rotation','register','undo','memo','_baseShapeHeight','registerFeatureMenu','getDrawingSearch','ShapeAccentCallout1Icon','UturnArrow','_findNearestConnectionSite','add','KeyCode','ShapeLeftBraceIcon','ShapeLineJoinEnum','FlowchartPunchedTape','SetSheetsShapeRotateCommand','UNIVER_SHEET','height','connection-site-','sheets-shape.line.arrowSize.small','saveImage','shape.type.action-button-sound','sheets-shape.line.sketchType.handDrawn','Round2DiagRect','ShapeUpArrowCalloutIcon','_calculateFreeEndpointAngle','ShapeEllipseRibbonIcon','SetInlineFormatTextBackgroundColorCommand','button','_drawingAddListener','ShapeHeartIcon','_targetShapeId','gdRefX','string','shape.type.flow-chart-display','OvalArrow','Inject','BorderCallout3','ShapeQuadArrowCalloutIcon','object','startConnectionDetection','DRAWING_SHAPE','ShapeBorderCallout1Icon','Teardrop','UUID','width','ShapeTrapezoidIcon','ShapeRtTriangleIcon','disableObjectsEvent','transformByState','\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','shape.type.action-button-information','_activeShapeInfo','shape.type.flow-chart-extract','VIEW_MAIN_TOP','Round','onTransformChange$','getCurrentLastSelection','ShapePlaqueTabsIcon','sheets-shape.line.arrowType.diamondArrow','_handleConnectedEndpointPointerUp','drawWith','isLineShape','getCurrentScrollState','ShapeSquareTabsIcon','_clearShapeAdjustControls','shape.type.action-button-document','ShapeOctagonIcon','FlowchartManualOperation','computeConnectorRouteLayout','getOwnPropertyDescriptor','Chevron','Freehand','FlowChartOfflineStorage','ShapeTextEditorContainer','Image','IMenuManagerService','ShapeDecagonIcon','sheets-shape.line.dashType.dashDot','BracketPair','ShapeSnip2DiagRectIcon','VIEW_MAIN','CROSSHAIR','shape.type.accent-border-callout2','type','ToggleSheetsShapeFlipCommand','scaleY','shape.type.ellipse-ribbon2','SmileyFace','rectangle','adjHandleStroke','cxnPointRadius','ShapeArcIcon','restore','Dodecagon','getCurrentRangeDisable$','shape.type.up-arrow','pick','ShapeHorizontalScrollIcon','SheetCanvasPopManagerService','switchMap','_registerDrawingFocusChangeHandler','ShapePieIcon','DrawingCommonPanel','viewportScrollX','sheets-shape.line.joinType.title','univer-flex\x20univer-flex-col\x20univer-gap-2','Curved','min','shape.type.corner-tabs','ShapeStar16Icon','ShapeActionButtonBlankIcon','RibbonStartGroup','group','useIsFocusing','SHEET_VIEWPORT_KEY','style','shape.type.flow-chart-magnetic-drum','Moon','shape.type.irregular-seal2','shape.type.plaque','BracePair','shape.type.left-arrow','shape.type.curved-left-arrow','_registerComponent','_shapeId','isConnectorShape','_localeService','setSelectionRanges','add$','sheets-shape.fill.picture.align.ctr','ShapeGradientTypeEnum','ShapeFillEnum','sheets-shape.fill.picture.align.l','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','getRealBound','FlowchartProcess','merge','FlowchartTerminator','NonIsoscelesTrapezoid','ShapeStripedRightArrowIcon','Frame','shape.type.octagon','find','_transformCalculateSrcRect','PieWedge','targetShapeId','ShapeTeardropIcon','_generateCopyPasteMutations','ShapeHexagonIcon','setSrcRect','_focusedDrawings','Hexagon','ShapeAccentCallout3Icon','ShapeCurvedConnector3Icon','Ribbon2','DownArrowCallout','_activeTargetShapeId','onSavingEditorData$','shape.type.bracket-pair','ShapeFlowChartManualInputIcon','ShapeCurvedUpArrowIcon','_initPermission','UpdateShapeDataCommand','_baseWidth','jsx','_props','_sheetSkeletonService','ShapeChartStarIcon','Rect','_onSavingEditorData$','_drawingRenderService','MathMinus','_clearShapeConnectorHandlerObjects','ShapePlaqueIcon','ShapeCallout1Icon','ShapeFlowChartCollateIcon','flowchart','_executeConnectedRouteConnectionCommand','offsetX','getAdjustValueByName','RoundDot','onPointerDown$','getFreeze','univer-flex\x20univer-flex-col\x20univer-gap-3','getCurrentUnitInfo','_activeAdjustInfo','ShapeFlowChartDocumentIcon','custom','slice','gradientType','featurePluginUpdateNotification','ShapeBentArrowIcon','strokeWidth','ShapeWedgeEllipseCalloutIcon','adjName','ShapeStar32Icon','verticalAlign','CURSOR_TYPE','rowStartY','_addShapeAdjustControl','shape.type.snip1-rect','ShapeParallelogramIcon','lineJoinType','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','ShapeFlowChartPunchedCardIcon','sheets-shape.line.joinType.miter','documentStyle','_commandExecutedListener','RENDER_CLASS_TYPE','ShapeUpDownArrowIcon','BorderCallout2','sqrt','ShapeAccentBorderCallout2Icon','ShapeSmileyFaceIcon','CUT','isDrawingObject','basicShape','_univerInstanceService','ShapeChordIcon','clipByShape','UpdateConnectorRelationCommand','align.bottom','ShapeGear9Icon','other','_createControls','ShapeFlowChartInputOutputIcon','getTransformerByCreate','shape.type.border-callout2','onPointerMove$','image','_sheetCanvasPopManagerService','IURLImageService','BentUpArrow','setCanUseShapeClip','copyType','SheetScrollManagerService','Star32','FlowchartAlternateProcess','shape-text-editor-position-wrapper','LeftCircularArrow','connector-handler-','Shape','ShapeActionButtonDocumentIcon','shapeId','IDrawingManagerService','SolidFil','shape.type.gear9','sheets-shape.fill.picture.source','ShapeChevronIcon','multiply','sheets-shape.line.capType.title','close','setFillImage','getSelfOrHeaderFooterModel','sheets-shape.fill.picture.align.b','stroke','gdRefR','sheets-shape.fill.picture.tileAsTexture','horizontal','_drawingManagerService','ActionButtonHome','OpenArrow','_rerouteConnectorLine','IContextService','_resetState','translate','shape.type.flow-chart-magnetic-disk','getAdjustInfoByName','drawingId','None','sheets-shape.line.arrowType.none','FlowchartInternalStorage','SheetInterceptorService','shape.type.wedge-ellipse-callout','defineProperty','getImage','_executeResizeCommand','ShapeIrregularSeal1Icon','shape.type.left-bracket','Disposable','RadioGroup','TOP','ShapeRibbon2Icon','ShapeVerticalScrollIcon','ShapeCircularArrowIcon','prstGeomAdjValues','shape.type.dodecagon','shape.type.left-up-arrow','opacity','shape.type.accent-border-callout3','sheets-shape.line.arrowType.ovalArrow','CurvedConnector3','src','gdRefAng','ShapeUpArrowIcon','ICommandService','shape.type.flow-chart-summing-junction','FOCUSING_SHAPE_TEXT_EDITOR'];_0x3aa8=function(){return _0x3acc87;};return _0x3aa8();}let Oe=class extends l[_0x1706e4(0x40c)]{constructor(_0x26b3ef,_0x42c301,_0xcda67e,_0x324c7a,_0x4f4985){const _0x362c96=_0x1706e4;super(),this[_0x362c96(0x194)]=_0x26b3ef,this[_0x362c96(0x3f8)]=_0x42c301,this[_0x362c96(0x11d)]=_0xcda67e,this[_0x362c96(0x3ce)]=_0x324c7a,this[_0x362c96(0x4a9)]=_0x4f4985,k(this,'_activeImageId',null),k(this,_0x362c96(0x4c0),null),k(this,_0x362c96(0x278),null),k(this,'_activeAdjustPointList',void 0x0),k(this,_0x362c96(0x542),[]),k(this,_0x362c96(0x180),0x0),k(this,_0x362c96(0x264),0x0),k(this,_0x362c96(0x398),0x0),k(this,_0x362c96(0x294),0x0),k(this,_0x362c96(0x22f),!0x1),k(this,_0x362c96(0x3ae),void 0x0),k(this,_0x362c96(0xd1),void 0x0),k(this,_0x362c96(0x258),void 0x0),k(this,'_adjHandlerPointerUp',void 0x0),k(this,_0x362c96(0x592),!0x1),this[_0x362c96(0x120)](),this[_0x362c96(0x559)]();}[_0x1706e4(0x600)](){const _0x31c4dd=_0x1706e4;this[_0x31c4dd(0x234)]();}[_0x1706e4(0xfc)](){const _0x2fe7e6=_0x1706e4;this[_0x2fe7e6(0x234)](),this[_0x2fe7e6(0x3d5)](!0x0);}['_getOrCreateShapeModel'](_0x2cf4fd,_0x165eed,_0x142004,_0xae8852){const _0x4f71d1=_0x1706e4;let _0x574135=_0x2cf4fd;if(!(_0x574135===y[_0x4f71d1(0x5bc)][_0x4f71d1(0x402)]||_0x2cf4fd==='custom'))try{let _0x47d4f6=new y[(_0x4f71d1(0x454))](_0x574135,_0x4f71d1(0x4e6)+_0x2cf4fd);return _0xae8852&&_0x47d4f6['setShapeData']({'adjustValues':_0xae8852},!0x0),_0x47d4f6[_0x4f71d1(0x197)]({'width':_0x165eed,'height':_0x142004}),_0x47d4f6;}catch{return;}}[_0x1706e4(0x58f)](_0x571712,_0x322c63,_0x55ff6d){const _0x42150c=_0x1706e4;let _0x4aedaa={'unitId':_0x571712,'subUnitId':_0x322c63,'drawingId':_0x55ff6d},_0xce334d=this[_0x42150c(0x3f8)][_0x42150c(0x5e7)](_0x4aedaa);if(!(!_0xce334d||_0xce334d[_0x42150c(0x2bf)]!==l[_0x42150c(0x55c)][_0x42150c(0x14e)]))return _0xce334d;}['_getImagePrstGeom'](_0x4efef4,_0x3ce598,_0x2b165e){const _0x3298d7=_0x1706e4;let _0x79aefc=this['_renderManagerService'][_0x3298d7(0x513)](_0x4efef4);if(!_0x79aefc)return;let {scene:_0x8de4ce}=_0x79aefc,_0xd412b2=(0x0,u[_0x3298d7(0xf6)])({'unitId':_0x4efef4,'subUnitId':_0x3ce598,'drawingId':_0x2b165e}),_0x9775b7=_0x8de4ce[_0x3298d7(0x42a)](_0xd412b2);if(_0x9775b7 instanceof d[_0x3298d7(0x33f)]){let _0x3b09fc=_0x9775b7[_0x3298d7(0x488)];if(_0x3b09fc)return{'prstGeom':_0x3b09fc,'adjustValues':_0x9775b7[_0x3298d7(0x412)]};}}[_0x1706e4(0x3d5)](_0x33f534=!0x1){const _0x527d72=_0x1706e4;if(!this['_unitId']||!this[_0x527d72(0x278)]||!this[_0x527d72(0x4a2)])return;let _0x4e2ec4=this[_0x527d72(0x11d)][_0x527d72(0x513)](this[_0x527d72(0x4c0)]);if(!_0x4e2ec4||!_0x4e2ec4[_0x527d72(0x189)](_[_0x527d72(0x27e)])[_0x527d72(0x14a)]())return;let {scene:_0xa855a1}=_0x4e2ec4,_0x1cbad6=this[_0x527d72(0x58f)](this[_0x527d72(0x4c0)],this[_0x527d72(0x278)],this['_activeImageId']);if(!_0x1cbad6)return;let {transform:_0x214fc5}=_0x1cbad6;if(!_0x214fc5)return;let {left:_0x40ded6,top:_0x41bacc,width:_0x19738b,height:_0x3eadc1,flipX:_0x3ea287,flipY:_0xe6a3a5,angle:_0x42a251=0x0}=_0x214fc5;if(_0x40ded6===void 0x0||_0x41bacc===void 0x0)return;let _0x2ef5f7=this['_getImagePrstGeom'](this[_0x527d72(0x4c0)],this[_0x527d72(0x278)],this[_0x527d72(0x4a2)]);if(!_0x2ef5f7)return;if(_0x33f534){let _0x2ce02b=this[_0x527d72(0x57c)](_0x2ef5f7['prstGeom'],_0x19738b||0x0,_0x3eadc1||0x0,_0x2ef5f7[_0x527d72(0x49b)]);if(!_0x2ce02b)return;this[_0x527d72(0x149)]=_0x2ce02b[_0x527d72(0x5d3)]();}let _0x5230ab=this[_0x527d72(0x149)];if(!(!_0x5230ab||_0x5230ab[_0x527d72(0xa5)]===0x0))for(let _0x4a7532=0x0;_0x4a7532<_0x5230ab[_0x527d72(0xa5)];_0x4a7532++){let _0x5bc716=_0x5230ab[_0x4a7532],_0x35b272=_0x5bc716['x'],_0x5a57e0=_0x5bc716['y'];if(_0x3ea287&&(_0x35b272=(_0x19738b||0x0)-_0x35b272),_0xe6a3a5&&(_0x5a57e0=(_0x3eadc1||0x0)-_0x5a57e0),_0x42a251!==0x0){let _0x55619f=(_0x19738b||0x0)/0x2,_0x1dd6a1=(_0x3eadc1||0x0)/0x2,_0x27867e=_0x42a251*Math['PI']/0xb4,_0x21386d=Math[_0x527d72(0x4b6)](_0x27867e),_0x36f39d=Math[_0x527d72(0x2d2)](_0x27867e),_0x2ddbb0=_0x35b272-_0x55619f,_0x5327a4=_0x5a57e0-_0x1dd6a1;_0x35b272=_0x55619f+(_0x2ddbb0*_0x21386d-_0x5327a4*_0x36f39d),_0x5a57e0=_0x1dd6a1+(_0x2ddbb0*_0x36f39d+_0x5327a4*_0x21386d);}let _0x51cfe1={'x':_0x35b272,'y':_0x5a57e0,'adjName':_0x5bc716[_0x527d72(0x3b7)]};this[_0x527d72(0x22c)](_0xa855a1,_0x51cfe1,_0x51cfe1['adjName'],_0x40ded6,_0x41bacc,this[_0x527d72(0x4c0)],this['_subUnitId']);}}[_0x1706e4(0x22c)](_0x1626ad,_0x45e0d8,_0x892a2e,_0x609763,_0x57fd26,_0x57cf20,_0x2f1ac7){const _0x31d116=_0x1706e4;if(!this[_0x31d116(0x4a2)])return;let _0x502852=_0x31d116(0x533)+this['_activeImageId']+'-'+_0x892a2e,_0x5237b3=_0x1626ad[_0x31d116(0x26b)](_0x502852);if(_0x5237b3){_0x5237b3[_0x31d116(0x325)]({'left':_0x45e0d8['x']+_0x609763-y[_0x31d116(0x1a7)][_0x31d116(0x596)],'top':_0x45e0d8['y']+_0x57fd26-y[_0x31d116(0x1a7)][_0x31d116(0x596)]});return;}let _0x3a6b56=new ue(_0x502852,{'left':_0x45e0d8['x']+_0x609763-y[_0x31d116(0x1a7)][_0x31d116(0x596)],'top':_0x45e0d8['y']+_0x57fd26-y[_0x31d116(0x1a7)][_0x31d116(0x596)],'adjName':_0x892a2e,'shapeId':this['_activeImageId'],'unitId':_0x57cf20,'subUnitId':_0x2f1ac7,'width':y['ShapeDefaultConfig'][_0x31d116(0x596)]+0x8,'height':y[_0x31d116(0x1a7)][_0x31d116(0x596)]+0x8,'zIndex':d['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x31d116(0x542)][_0x31d116(0x5d7)](_0x3a6b56),this['_attachAdjustEvent'](_0x3a6b56,_0x1626ad,_0x892a2e),_0x1626ad['addObject'](_0x3a6b56,d['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1706e4(0x234)](){const _0x10587c=_0x1706e4;this['_shapes'][_0x10587c(0xa5)]!==0x0&&(this[_0x10587c(0x542)][_0x10587c(0x171)](_0x388cfe=>_0x388cfe[_0x10587c(0x2b8)]()),this[_0x10587c(0x542)]=[]);}[_0x1706e4(0x24d)](_0x1d9713,_0x334259){const _0x16e460=_0x1706e4;var _0x227356;let _0x15b11b={'x':0x0,'y':0x0},_0x3ddae0=this['_renderManagerService'][_0x16e460(0x513)](_0x1d9713);if(!_0x3ddae0||!_0x3ddae0['with'](_[_0x16e460(0x27e)])[_0x16e460(0x59a)](_0x334259))return _0x15b11b;let _0x2fba02=_0x3ddae0[_0x16e460(0x189)](_['SheetScrollManagerService']),_0x57b12e=_0x2fba02==null?void 0x0:_0x2fba02[_0x16e460(0x333)]();if(!_0x57b12e)return _0x15b11b;let _0x3859e3=(_0x227356=this[_0x16e460(0x3ce)]['getUnit'](_0x1d9713))==null?void 0x0:_0x227356['getSheetBySheetId'](_0x334259);if(!_0x3859e3)return _0x15b11b;let _0x24f8ae=(0x0,_['getViewportByCell'])(_0x57b12e['sheetViewStartRow'],_0x57b12e[_0x16e460(0xac)],_0x3ddae0['scene'],_0x3859e3);return _0x24f8ae?{'x':_0x24f8ae[_0x16e460(0x35c)],'y':_0x24f8ae[_0x16e460(0x58b)]}:_0x15b11b;}['_getZoomRatio'](_0x276553,_0x3648e2){const _0x1750e9=_0x1706e4;var _0x42ad59,_0x5172aa;let _0x48fb42=(_0x42ad59=this[_0x1750e9(0x3ce)][_0x1750e9(0x4f9)](_0x276553))==null?void 0x0:_0x42ad59[_0x1750e9(0x275)](_0x3648e2);return(_0x5172aa=_0x48fb42==null?void 0x0:_0x48fb42[_0x1750e9(0x431)]())==null?0x1:_0x5172aa;}[_0x1706e4(0x536)](_0x8aaaf4,_0x51e02d,_0x99d6a2){const _0x21c13f=_0x1706e4;this['disposeWithMe']((0x0,l[_0x21c13f(0x458)])(_0x8aaaf4[_0x21c13f(0x3aa)][_0x21c13f(0xa8)]((_0x526c42,_0x2b4101)=>{const _0x331702=_0x21c13f;var _0x1e31df,_0x1fbc71,_0x33c1c8;let {unitId:_0x1fa0b2,subUnitId:_0x5e13ff,drawingId:_0x2956ad}=_0x8aaaf4[_0x331702(0x2fa)](),_0x970eb7=this['_getImageDrawingInfo'](_0x1fa0b2,_0x5e13ff,_0x2956ad);if(!(_0x970eb7!=null&&_0x970eb7[_0x331702(0x18a)]))return;let {left:_0x420260,top:_0x236fa8,width:_0x28194c,height:_0x1c4737}=_0x970eb7[_0x331702(0x18a)];this[_0x331702(0x180)]=_0x420260||0x0,this['_baseTop']=_0x236fa8||0x0,this[_0x331702(0x398)]=_0x28194c||0x0,this[_0x331702(0x294)]=_0x1c4737||0x0;let _0x23251a=!!((_0x1e31df=_0x970eb7[_0x331702(0x18a)])!=null&&_0x1e31df[_0x331702(0xfb)]),_0x1fa1b2=!!((_0x1fbc71=_0x970eb7[_0x331702(0x18a)])!=null&&_0x1fbc71[_0x331702(0x259)]),_0x8c85d1=((_0x33c1c8=_0x970eb7['transform'])==null?void 0x0:_0x33c1c8[_0x331702(0x551)])||0x0,_0x144374=this[_0x331702(0x18b)](_0x1fa0b2,_0x5e13ff,_0x2956ad);if(!_0x144374)return;let _0x12cd1a=this['_getOrCreateShapeModel'](_0x144374['prstGeom'],this[_0x331702(0x398)],this[_0x331702(0x294)],_0x144374[_0x331702(0x49b)]);if(!_0x12cd1a||(this['_activeShapeModel']=_0x12cd1a,this['_activeAdjustInfo']=_0x12cd1a['getAdjustInfoByName'](_0x99d6a2),!this[_0x331702(0x3ae)]))return;this[_0x331702(0x22f)]=!0x0,_0x51e02d[_0x331702(0x324)]();let _0x12c903=_0x144374[_0x331702(0x488)];this[_0x331702(0x258)]=_0x51e02d[_0x331702(0x3d9)][_0x331702(0xa8)]((_0x1a08f9,_0x1b9013)=>{const _0x17fb6e=_0x331702;if(!this['_isStartAdjusting'])return;let {offsetX:_0x4a42b3,offsetY:_0x17e929}=_0x1a08f9,_0xcde40c=this[_0x17fb6e(0x3ae)];if(!this[_0x17fb6e(0xd1)]||!_0xcde40c)return;_0x51e02d['disableObjectsEvent'](),_0x51e02d[_0x17fb6e(0x459)](d[_0x17fb6e(0x3ba)]['CROSSHAIR']);let _0x2f2728={'left':0x0,'top':0x0,'width':this[_0x17fb6e(0x398)],'height':this[_0x17fb6e(0x294)]},_0x14979d=this[_0x17fb6e(0x24d)](_0x1fa0b2,_0x5e13ff),_0x406266=this[_0x17fb6e(0x269)](_0x1fa0b2,_0x5e13ff),_0x26d3af=_0x4a42b3/_0x406266+_0x14979d['x']-this['_baseLeft'],_0x2d1838=_0x17e929/_0x406266+_0x14979d['y']-this['_baseTop'];if(_0x8c85d1!==0x0){let _0x4850a4=this[_0x17fb6e(0x398)]/0x2,_0x2d9c09=this['_baseHeight']/0x2,_0x20a17d=_0x8c85d1*Math['PI']/0xb4,_0x58d3ee=Math[_0x17fb6e(0x4b6)](_0x20a17d),_0x205d80=Math[_0x17fb6e(0x2d2)](_0x20a17d),_0x109162=_0x26d3af-_0x4850a4,_0x1a98ea=_0x2d1838-_0x2d9c09;_0x26d3af=_0x4850a4+(_0x109162*_0x58d3ee+_0x1a98ea*_0x205d80),_0x2d1838=_0x2d9c09+(-_0x109162*_0x205d80+_0x1a98ea*_0x58d3ee);}_0x23251a&&(_0x26d3af=this[_0x17fb6e(0x398)]-_0x26d3af),_0x1fa1b2&&(_0x2d1838=this['_baseHeight']-_0x2d1838);let _0x52a96a=this[_0x17fb6e(0xd1)]['calcAdjValue'](_0x2f2728,{'x':_0x26d3af,'y':_0x2d1838},_0xcde40c,_0x23251a,_0x1fa1b2),_0x57581e=_0xcde40c[_0x17fb6e(0x314)]||_0xcde40c[_0x17fb6e(0x206)]||_0xcde40c[_0x17fb6e(0x41a)]||_0xcde40c[_0x17fb6e(0x3f5)];_0x57581e!==void 0x0&&(this['_activeShapeModel'][_0x17fb6e(0x232)](_0x57581e,_0x52a96a),this[_0x17fb6e(0xd1)][_0x17fb6e(0x197)]({'width':this['_baseWidth'],'height':this[_0x17fb6e(0x294)]}),this['_updateImageAdjValues'](_0x1fa0b2,_0x5e13ff,_0x2956ad,_0x57581e,_0x52a96a),this[_0x17fb6e(0x149)]=this[_0x17fb6e(0xd1)]['getDrawingPoints'](),this[_0x17fb6e(0x3ae)]=this[_0x17fb6e(0xd1)][_0x17fb6e(0x400)](_0x99d6a2),this[_0x17fb6e(0x3d5)](),_0x1b9013[_0x17fb6e(0x2d0)]());}),this['_adjHandlerPointerUp']=_0x51e02d[_0x331702(0x170)][_0x331702(0xa8)]((_0x125c0b,_0x1a47b6)=>{const _0x275468=_0x331702;if(this[_0x275468(0x258)][_0x275468(0x1c4)](),this[_0x275468(0x48f)]['unsubscribe'](),_0x51e02d['resetCursor'](),this[_0x275468(0xd1)]){let _0x36bab4=this[_0x275468(0xd1)][_0x275468(0x56e)](),_0x2b15d5={};for(let _0x2be4e3 of _0x36bab4){let _0x2f8d2b=this[_0x275468(0xd1)][_0x275468(0x3a8)](_0x2be4e3);_0x2f8d2b!==void 0x0&&(_0x2b15d5[_0x2be4e3]=_0x2f8d2b);}this[_0x275468(0x4a9)]['clipByShape'](_0x1fa0b2,_0x5e13ff,_0x2956ad,_0x12c903,_0x2b15d5);}this[_0x275468(0x3ae)]=void 0x0,this[_0x275468(0xd1)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x1a47b6[_0x275468(0x2d0)](),_0x51e02d[_0x275468(0x4cc)]();}),_0x2b4101[_0x331702(0x2d0)]();})));}[_0x1706e4(0x13c)](_0x8579e5,_0x2e150e,_0x23b79d,_0x17462b,_0x451734){const _0x4c57a3=_0x1706e4;let _0xa5e491=this[_0x4c57a3(0x11d)][_0x4c57a3(0x513)](_0x8579e5);if(!_0xa5e491)return;let {scene:_0x118a2d}=_0xa5e491,_0x378b64=(0x0,u[_0x4c57a3(0xf6)])({'unitId':_0x8579e5,'subUnitId':_0x2e150e,'drawingId':_0x23b79d}),_0x1b38b7=_0x118a2d[_0x4c57a3(0x42a)](_0x378b64);if(_0x1b38b7 instanceof d[_0x4c57a3(0x33f)]){var _0x264648;let _0x592277=(_0x264648=_0x1b38b7['prstGeomAdjValues'])==null?{}:_0x264648;_0x1b38b7[_0x4c57a3(0x5f1)]({..._0x592277,[_0x17462b]:_0x451734}),_0x1b38b7[_0x4c57a3(0x261)](!0x0);}}[_0x1706e4(0x559)](){const _0x56cd58=_0x1706e4;let _0xdc7e3=this[_0x56cd58(0x3ce)][_0x56cd58(0x54c)](l[_0x56cd58(0x46b)][_0x56cd58(0x304)]);this[_0x56cd58(0x43c)](_0xdc7e3[_0x56cd58(0x140)]((0x0,f[_0x56cd58(0x358)])(_0x52250a=>_0x52250a?_0x52250a[_0x56cd58(0x43d)][_0x56cd58(0x140)]((0x0,f['switchMap'])(_0x2f98f=>{const _0x30d2e4=_0x56cd58;if(!_0x2f98f)return f[_0x30d2e4(0x4e7)];let _0x209d92=_0x52250a['getUnitId'](),_0x104ecd=this[_0x30d2e4(0x11d)][_0x30d2e4(0x513)](_0x209d92),_0x20c4c6=_0x104ecd==null?void 0x0:_0x104ecd[_0x30d2e4(0x2c7)];return _0x20c4c6?(0x0,f['of'])(_0x20c4c6):f['EMPTY'];})):f['EMPTY']))['subscribe'](_0x5a6a8d=>{const _0x1f8ad7=_0x56cd58;let _0x31ea14=_0x5a6a8d[_0x1f8ad7(0x3d7)]();this['disposeWithMe'](_0x5a6a8d[_0x1f8ad7(0x3d9)]['subscribeEvent'](()=>{const _0x516183=_0x1f8ad7;this[_0x516183(0x592)]&&this['_clearControls']();})),this[_0x1f8ad7(0x43c)](_0x31ea14[_0x1f8ad7(0x4eb)][_0x1f8ad7(0x1b7)](_0x12a185=>{const _0x10913d=_0x1f8ad7;let {objects:_0x1b6930}=_0x12a185;if(this[_0x10913d(0x3d5)](),_0x1b6930!==null&&_0x1b6930[_0x10913d(0x448)]===0x1){let _0x1b7154=_0x1b6930[_0x10913d(0x231)]()['next']()[_0x10913d(0x1cf)];_0x1b7154 instanceof d[_0x10913d(0x33f)]&&_0x1b7154['prstGeom']&&(this[_0x10913d(0x592)]=!0x0);}})),this[_0x1f8ad7(0x43c)](_0x31ea14[_0x1f8ad7(0x556)]['subscribe'](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x5a6a8d[_0x1f8ad7(0x170)][_0x1f8ad7(0xa8)](()=>{const _0x31df69=_0x1f8ad7;this['_isImagePointerDown']&&(this[_0x31df69(0x592)]=!0x1,this[_0x31df69(0x3d5)]());})),this[_0x1f8ad7(0x43c)](_0x31ea14[_0x1f8ad7(0x1ae)]['subscribe'](()=>{const _0xea0cb3=_0x1f8ad7;if(this[_0xea0cb3(0x4c0)]&&this[_0xea0cb3(0x278)]&&this[_0xea0cb3(0x4a2)]){let _0x35caa5=this[_0xea0cb3(0x18b)](this[_0xea0cb3(0x4c0)],this[_0xea0cb3(0x278)],this['_activeImageId']);if(_0x35caa5){var _0x31b00a,_0x5d22e1;let _0x26f3ad=this[_0xea0cb3(0x58f)](this['_unitId'],this[_0xea0cb3(0x278)],this[_0xea0cb3(0x4a2)]),_0xdf63b0=(_0x26f3ad==null||(_0x31b00a=_0x26f3ad['transform'])==null?void 0x0:_0x31b00a[_0xea0cb3(0x321)])||0x0,_0x598a56=(_0x26f3ad==null||(_0x5d22e1=_0x26f3ad[_0xea0cb3(0x18a)])==null?void 0x0:_0x5d22e1['height'])||0x0,_0x55f37f=this[_0xea0cb3(0x57c)](_0x35caa5[_0xea0cb3(0x488)],_0xdf63b0,_0x598a56,_0x35caa5[_0xea0cb3(0x49b)]);_0x55f37f&&(this[_0xea0cb3(0x149)]=_0x55f37f[_0xea0cb3(0x5d3)](),this[_0xea0cb3(0x234)](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x4c54fc=_0x1706e4;this[_0x4c54fc(0x43c)](this[_0x4c54fc(0x3f8)]['focus$'][_0x4c54fc(0x1b7)](_0x4efdcc=>{const _0x1681aa=_0x4c54fc;if(_0x4efdcc[_0x1681aa(0xa5)]===0x1){let _0x4e79db=_0x4efdcc[0x0];if(_0x4e79db['drawingType']===l[_0x1681aa(0x55c)][_0x1681aa(0x14e)]){let {unitId:_0x218961,subUnitId:_0x921097,drawingId:_0x55b2d0}=_0x4e79db,_0x54088a=this[_0x1681aa(0x18b)](_0x218961,_0x921097,_0x55b2d0);if(_0x54088a){var _0x2ccea8,_0x4cde11;this[_0x1681aa(0x4a2)]=_0x55b2d0,this['_unitId']=_0x218961,this['_subUnitId']=_0x921097;let _0x54196c=this[_0x1681aa(0x58f)](_0x218961,_0x921097,_0x55b2d0),_0x290592=(_0x54196c==null||(_0x2ccea8=_0x54196c[_0x1681aa(0x18a)])==null?void 0x0:_0x2ccea8[_0x1681aa(0x321)])||0x0,_0xa96832=(_0x54196c==null||(_0x4cde11=_0x54196c[_0x1681aa(0x18a)])==null?void 0x0:_0x4cde11[_0x1681aa(0x305)])||0x0,_0x55a9e7=this[_0x1681aa(0x57c)](_0x54088a[_0x1681aa(0x488)],_0x290592,_0xa96832,_0x54088a[_0x1681aa(0x49b)]);_0x55a9e7&&(this[_0x1681aa(0x149)]=_0x55a9e7[_0x1681aa(0x5d3)]()),this[_0x1681aa(0x234)](),this['_createControls'](!0x0);}else this[_0x1681aa(0x3fd)]();}else this['_resetState']();}else this[_0x1681aa(0x3fd)]();})),this['disposeWithMe'](this[_0x4c54fc(0x3f8)][_0x4c54fc(0x1bf)]['subscribe'](_0x304efb=>{const _0x1f2179=_0x4c54fc;if(_0x304efb[_0x1f2179(0xa5)]===0x1){let _0x3afe5c=_0x304efb[0x0],_0x4ce7c6=this[_0x1f2179(0x3f8)][_0x1f2179(0x5e7)](_0x3afe5c);(_0x4ce7c6==null?void 0x0:_0x4ce7c6['drawingType'])===l[_0x1f2179(0x55c)][_0x1f2179(0x14e)]&&this['_activeImageId']===_0x3afe5c[_0x1f2179(0x401)]&&(this[_0x1f2179(0x234)](),this[_0x1f2179(0x3d5)](!0x0));}})),this[_0x4c54fc(0x43c)](this[_0x4c54fc(0x3f8)][_0x4c54fc(0x2e9)][_0x4c54fc(0x1b7)](_0x4fa3de=>{const _0x5e6ee0=_0x4c54fc;for(let _0x4bf8a1 of _0x4fa3de)this[_0x5e6ee0(0x4a2)]===_0x4bf8a1[_0x5e6ee0(0x401)]&&this['_resetState']();}));}[_0x1706e4(0x3fd)](){const _0x3d4f07=_0x1706e4;this[_0x3d4f07(0x4a2)]=null,this[_0x3d4f07(0x4c0)]=null,this[_0x3d4f07(0x278)]=null,this[_0x3d4f07(0x149)]=void 0x0,this[_0x3d4f07(0x234)]();}};Oe=H([V(0x1,u[_0x1706e4(0x3e9)]),V(0x2,(0x0,l[_0x1706e4(0x318)])(d[_0x1706e4(0x4e3)])),V(0x3,l[_0x1706e4(0x508)]),V(0x4,(0x0,l[_0x1706e4(0x318)])(X))],Oe);let ke=class extends l[_0x1706e4(0x40c)]{constructor(_0x31a01f,_0x3f1cb8,_0x30e47b,_0x5399e6){const _0x2182e1=_0x1706e4;super(),this[_0x2182e1(0x3ce)]=_0x31a01f,this[_0x2182e1(0x252)]=_0x3f1cb8,this[_0x2182e1(0x156)]=_0x30e47b,this['_sheetsShapeService']=_0x5399e6,this[_0x2182e1(0x568)]();}[_0x1706e4(0x568)](){const _0x341ddd=_0x1706e4;this[_0x341ddd(0x43c)](this[_0x341ddd(0x252)][_0x341ddd(0x478)]({'getMutations':_0x34fe71=>{const _0x8f6f6e=_0x341ddd;if(_0x34fe71['id']===p['RemoveSheetCommand']['id']){let _0x4cc7a7=(0x0,p[_0x8f6f6e(0x154)])(this[_0x8f6f6e(0x3ce)],_0x34fe71[_0x8f6f6e(0xf1)]);if(!_0x4cc7a7)return{'redos':[],'undos':[]};let {unitId:_0x2a44de,subUnitId:_0x24efb3}=_0x4cc7a7,_0x3d9322=this[_0x8f6f6e(0x156)]['getDrawingData'](_0x2a44de,_0x24efb3),_0xdbabdf=Object[_0x8f6f6e(0x231)](_0x3d9322)[_0x8f6f6e(0x4be)](_0x3e69c6=>_0x3e69c6[_0x8f6f6e(0x2bf)]===l[_0x8f6f6e(0x55c)][_0x8f6f6e(0x31d)]);if(_0xdbabdf[_0x8f6f6e(0xa5)]===0x0)return{'redos':[],'undos':[]};let _0x13d6a3=[],_0x2c0811=[];for(let _0x227262=0x0;_0x227262<_0xdbabdf[_0x8f6f6e(0xa5)];_0x227262++){let _0x5a7b60=_0xdbabdf[_0x227262],_0x4acc65=this['_sheetsShapeService'][_0x8f6f6e(0xc3)](_0x5a7b60[_0x8f6f6e(0xd8)],_0x5a7b60[_0x8f6f6e(0x2b5)],_0x5a7b60[_0x8f6f6e(0x401)]);if(!_0x4acc65)continue;let {redo:_0x4dce60,undo:_0x42e41b,objects:_0x261234}=this[_0x8f6f6e(0x156)][_0x8f6f6e(0x196)]([_0x5a7b60]);_0x13d6a3[_0x8f6f6e(0x5d7)]({'id':c[_0x8f6f6e(0x215)]['id'],'params':{'unitId':_0x2a44de,'subUnitId':_0x24efb3,'shapeId':_0x5a7b60[_0x8f6f6e(0x401)]}}),_0x13d6a3[_0x8f6f6e(0x5d7)]({'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2a44de,'subUnitId':_0x24efb3,'type':m['DrawingApplyType'][_0x8f6f6e(0x55b)],'op':_0x4dce60,'objects':_0x261234}}),_0x2c0811['push']({'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2a44de,'subUnitId':_0x24efb3,'type':m[_0x8f6f6e(0x1c2)]['INSERT'],'op':_0x42e41b,'objects':_0x261234}}),_0x2c0811[_0x8f6f6e(0x5d7)]({'id':c[_0x8f6f6e(0x1d2)]['id'],'params':{'unitId':_0x2a44de,'subUnitId':_0x24efb3,'shapeId':_0x5a7b60[_0x8f6f6e(0x401)],'shapeType':_0x4acc65['getShapeType'](),'shapeData':JSON[_0x8f6f6e(0x577)](JSON[_0x8f6f6e(0x59f)](_0x4acc65[_0x8f6f6e(0x2a8)]()))}});}return{'redos':_0x13d6a3,'undos':_0x2c0811};}else{if(_0x34fe71['id']===p[_0x8f6f6e(0x1c8)]['id']){let {unitId:_0x50388a,subUnitId:_0x3685df,targetSubUnitId:_0x38a494}=_0x34fe71[_0x8f6f6e(0xf1)];if(!_0x50388a||!_0x3685df||!_0x38a494)return{'redos':[],'undos':[]};let _0x405c61=this[_0x8f6f6e(0x156)][_0x8f6f6e(0x589)](_0x50388a,_0x3685df),_0xe3037a=Object[_0x8f6f6e(0x231)](_0x405c61)[_0x8f6f6e(0x4be)](_0x58e18a=>_0x58e18a[_0x8f6f6e(0x2bf)]===l[_0x8f6f6e(0x55c)]['DRAWING_SHAPE']);if(_0xe3037a[_0x8f6f6e(0xa5)]===0x0)return{'redos':[],'undos':[]};let _0x59cb6f=[],_0x1c6487=[];for(let _0x3fa21b=0x0;_0x3fa21b<_0xe3037a['length'];_0x3fa21b++){let _0x272d1a=_0xe3037a[_0x3fa21b],_0x44df3c=this[_0x8f6f6e(0x495)][_0x8f6f6e(0xc3)](_0x272d1a[_0x8f6f6e(0xd8)],_0x272d1a[_0x8f6f6e(0x2b5)],_0x272d1a['drawingId']);if(!_0x44df3c)continue;let _0x5f3b38=(0x0,l['generateRandomId'])(),_0x4b6b0b={..._0x272d1a,'unitId':_0x50388a,'subUnitId':_0x38a494,'drawingId':_0x5f3b38},{redo:_0xf98200,undo:_0x1995d9,objects:_0x1d180e}=this[_0x8f6f6e(0x156)][_0x8f6f6e(0x538)]([_0x4b6b0b]);_0x59cb6f[_0x8f6f6e(0x5d7)]({'id':m[_0x8f6f6e(0x58d)]['id'],'params':{'unitId':_0x50388a,'subUnitId':_0x38a494,'type':m['DrawingApplyType'][_0x8f6f6e(0x58e)],'op':_0xf98200,'objects':_0x1d180e}}),_0x59cb6f['push']({'id':c[_0x8f6f6e(0x1d2)]['id'],'params':{'unitId':_0x50388a,'subUnitId':_0x38a494,'shapeId':_0x5f3b38,'shapeType':_0x44df3c[_0x8f6f6e(0x1e3)](),'shapeData':JSON[_0x8f6f6e(0x577)](JSON[_0x8f6f6e(0x59f)](_0x44df3c['getShapeData']()))}}),_0x1c6487[_0x8f6f6e(0x5d7)]({'id':c[_0x8f6f6e(0x215)]['id'],'params':{'unitId':_0x50388a,'subUnitId':_0x38a494,'shapeId':_0x5f3b38}}),_0x1c6487[_0x8f6f6e(0x5d7)]({'id':m[_0x8f6f6e(0x58d)]['id'],'params':{'unitId':_0x50388a,'subUnitId':_0x38a494,'type':m[_0x8f6f6e(0x1c2)][_0x8f6f6e(0x55b)],'op':_0x1995d9,'objects':_0x1d180e}});}return{'redos':_0x59cb6f,'undos':_0x1c6487};}}return{'redos':[],'undos':[]};}}));}};ke=H([V(0x0,(0x0,l[_0x1706e4(0x318)])(l[_0x1706e4(0x508)])),V(0x1,(0x0,l[_0x1706e4(0x318)])(p[_0x1706e4(0x405)])),V(0x2,(0x0,l[_0x1706e4(0x318)])(m['ISheetDrawingService'])),V(0x3,(0x0,l['Inject'])(c['SheetsShapeService']))],ke);let Ae=class extends l[_0x1706e4(0x40c)]{constructor(_0x3f2ba3,_0x59a526,_0x213cf9,_0x2ef552,_0x1014bf){const _0xa3c579=_0x1706e4;super(),this[_0xa3c579(0x194)]=_0x3f2ba3,this[_0xa3c579(0xdc)]=_0x59a526,this[_0xa3c579(0x3f8)]=_0x213cf9,this[_0xa3c579(0xd4)]=_0x2ef552,this['_sheetsShapeService']=_0x1014bf,k(this,_0xa3c579(0x439),null),this[_0xa3c579(0x1b8)](),this[_0xa3c579(0x237)](),this[_0xa3c579(0x505)]();}['_initEvents'](){const _0x216054=_0x1706e4;let {scene:_0x926f39}=this[_0x216054(0x194)];this[_0x216054(0x43c)](_0x926f39['onDblclick$'][_0x216054(0xa8)](_0x312cc9=>{const _0x2b37f2=_0x216054;let {offsetX:_0x48ef55,offsetY:_0x381d9e}=_0x312cc9,_0x286d53=_0x926f39[_0x2b37f2(0x355)](d[_0x2b37f2(0x265)][_0x2b37f2(0xb9)]([_0x48ef55,_0x381d9e]));if(_0x286d53 instanceof B){if((0x0,y[_0x2b37f2(0x372)])(this['_sheetsShapeService'][_0x2b37f2(0x1e3)](_0x286d53['unitId'],_0x286d53[_0x2b37f2(0x2b5)],_0x286d53['shapeId'])))return;this[_0x2b37f2(0xdc)][_0x2b37f2(0x167)]({'visible':!0x0,'unitId':_0x286d53['unitId'],'subUnitId':_0x286d53[_0x2b37f2(0x2b5)],'shapeId':_0x286d53[_0x2b37f2(0x3e8)],'shapeKey':_0x286d53[_0x2b37f2(0x111)]});}}));}[_0x1706e4(0x237)](){const _0x9b834=_0x1706e4;this[_0x9b834(0x43c)](this[_0x9b834(0x3f8)]['focus$'][_0x9b834(0x1b7)](_0x594140=>{const _0x513486=_0x9b834;if(_0x594140['length']===0x1){let _0x197a44=_0x594140[0x0],_0x1a9f7e=this[_0x513486(0x3f8)][_0x513486(0x5e7)](_0x197a44);if((_0x1a9f7e==null?void 0x0:_0x1a9f7e['drawingType'])===l[_0x513486(0x55c)][_0x513486(0x31d)]){let _0x6fd0c=this[_0x513486(0xdc)][_0x513486(0x15b)]();if((_0x6fd0c==null?void 0x0:_0x6fd0c[_0x513486(0x3e8)])===_0x197a44['drawingId']&&_0x6fd0c['visible'])return;(0x0,y['isConnectorShape'])(this[_0x513486(0x495)][_0x513486(0x1e3)](_0x197a44['unitId'],_0x197a44['subUnitId'],_0x197a44[_0x513486(0x401)]))&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x513486(0xdc)]['getEditing']()&&(this[_0x513486(0xdc)][_0x513486(0x597)](!0x0),requestAnimationFrame(()=>{const _0x429a3d=_0x513486;this['_shapeTextEditingService'][_0x429a3d(0x167)](null);}));}else this[_0x513486(0xdc)][_0x513486(0x15b)]()&&(this[_0x513486(0xdc)][_0x513486(0x597)](!0x0),requestAnimationFrame(()=>{const _0xc141e=_0x513486;this[_0xc141e(0xdc)][_0xc141e(0x167)](null);}));})),this[_0x9b834(0x43c)](this[_0x9b834(0x3f8)]['remove$'][_0x9b834(0x1b7)](_0x3fcb80=>{const _0x4c90bb=_0x9b834;let _0x68300f=this[_0x4c90bb(0xdc)][_0x4c90bb(0x15b)]();_0x68300f&&_0x3fcb80[_0x4c90bb(0x2f3)](_0x1be918=>_0x1be918[_0x4c90bb(0x401)]===_0x68300f['shapeId'])&&this[_0x4c90bb(0xdc)][_0x4c90bb(0x167)](null);}));}[_0x1706e4(0x505)](){const _0x3a48c3=_0x1706e4;this[_0x3a48c3(0x43c)](this[_0x3a48c3(0xdc)][_0x3a48c3(0x2aa)][_0x3a48c3(0x1b7)](_0x17d6dc=>{const _0x3e0f6e=_0x3a48c3;let {scene:_0x106da8}=this[_0x3e0f6e(0x194)];if(this[_0x3e0f6e(0x439)]){let _0xb74641=_0x106da8['getObjectIncludeInGroup'](this[_0x3e0f6e(0x439)]);_0xb74641&&_0xb74641[_0x3e0f6e(0x167)](!0x1);}if(_0x17d6dc){let _0x233fc0=!!_0x17d6dc[_0x3e0f6e(0x465)],_0x4f0198=_0x106da8[_0x3e0f6e(0x26b)](_0x17d6dc[_0x3e0f6e(0x5fa)]);_0x4f0198&&(_0x4f0198[_0x3e0f6e(0x167)](_0x233fc0),this[_0x3e0f6e(0x439)]=_0x17d6dc[_0x3e0f6e(0x5fa)]),this[_0x3e0f6e(0xd4)][_0x3e0f6e(0x28d)](l['FOCUSING_SHAPE_TEXT_EDITOR'],_0x233fc0);}else this[_0x3e0f6e(0x439)]=null,this['_contextService'][_0x3e0f6e(0x28d)](l[_0x3e0f6e(0x41e)],!0x1);}));}};Ae=H([V(0x1,(0x0,l[_0x1706e4(0x318)])(A)),V(0x2,u[_0x1706e4(0x3e9)]),V(0x3,l[_0x1706e4(0x3fc)]),V(0x4,(0x0,l[_0x1706e4(0x318)])(c[_0x1706e4(0xbf)]))],Ae);const je={'normal':{'fill':y[_0x1706e4(0x1a7)][_0x1706e4(0xff)],'stroke':y[_0x1706e4(0x1a7)][_0x1706e4(0x54b)],'strokeWidth':y['ShapeDefaultConfig'][_0x1706e4(0x1c1)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var Me=class extends d[_0x1706e4(0x3e6)]{constructor(_0x383a20,_0x576bb1){const _0x271e12=_0x1706e4;super(_0x383a20,_0x576bb1),k(this,_0x271e12(0x313),''),k(this,_0x271e12(0xf9),-0x1),k(this,_0x271e12(0x4c0),''),k(this,'_subUnitId',''),k(this,'_isHighlighted',!0x1),_0x576bb1&&this[_0x271e12(0x591)](_0x576bb1);}[_0x1706e4(0x12b)](){const _0x2dbc27=_0x1706e4;return{'unitId':this[_0x2dbc27(0x4c0)],'subUnitId':this[_0x2dbc27(0x278)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x2dbc27(0xf9)]};}['setHighlighted'](_0x5236ce){const _0x282c7c=_0x1706e4;this[_0x282c7c(0x2d9)]!==_0x5236ce&&(this[_0x282c7c(0x2d9)]=_0x5236ce,this[_0x282c7c(0x261)](!0x0));}[_0x1706e4(0x5a1)](){const _0xdd1c40=_0x1706e4;return this[_0xdd1c40(0x2d9)];}[_0x1706e4(0x591)](_0x5e13aa){const _0x54e69d=_0x1706e4;var _0x1e2778,_0x2467ba;_0x5e13aa[_0x54e69d(0x386)]!==void 0x0&&(this['_targetShapeId']=_0x5e13aa['targetShapeId']),_0x5e13aa['cxnIndex']!==void 0x0&&(this[_0x54e69d(0xf9)]=_0x5e13aa[_0x54e69d(0x174)]),_0x5e13aa['unitId']!==void 0x0&&(this[_0x54e69d(0x4c0)]=_0x5e13aa[_0x54e69d(0xd8)]),_0x5e13aa['subUnitId']!==void 0x0&&(this[_0x54e69d(0x278)]=_0x5e13aa[_0x54e69d(0x2b5)]),_0x5e13aa[_0x54e69d(0x5a1)]!==void 0x0&&(this[_0x54e69d(0x2d9)]=_0x5e13aa[_0x54e69d(0x5a1)]),this[_0x54e69d(0x325)]({'width':(_0x1e2778=_0x5e13aa['width'])==null?y[_0x54e69d(0x1a7)][_0x54e69d(0x34f)]*0x2:_0x1e2778,'height':(_0x2467ba=_0x5e13aa[_0x54e69d(0x305)])==null?y[_0x54e69d(0x1a7)][_0x54e69d(0x34f)]*0x2:_0x2467ba});}[_0x1706e4(0x442)](_0x4cd580){const _0x4f35a9=_0x1706e4;let _0x310675=this[_0x4f35a9(0x2d9)]?je[_0x4f35a9(0x5bb)]:je['normal'];d[_0x4f35a9(0x10d)][_0x4f35a9(0x331)](_0x4cd580,{'radius':y['ShapeDefaultConfig'][_0x4f35a9(0x34f)],'fill':_0x310675[_0x4f35a9(0xfd)],'stroke':_0x310675['stroke'],'strokeWidth':_0x310675[_0x4f35a9(0x3b5)],'evented':!0x0});}};let Ne=class extends l[_0x1706e4(0x40c)]{constructor(_0x37ff49,_0x31cc02,_0x23f687,_0x412db4){const _0x4118db=_0x1706e4;super(),this[_0x4118db(0x194)]=_0x37ff49,this[_0x4118db(0x11d)]=_0x31cc02,this[_0x4118db(0x3f8)]=_0x23f687,this[_0x4118db(0x495)]=_0x412db4,k(this,_0x4118db(0x2e6),[]),k(this,_0x4118db(0x391),null),k(this,'_highlightedSiteIndex',-0x1),k(this,_0x4118db(0x23d),null),k(this,_0x4118db(0x4c0),''),k(this,'_subUnitId',''),k(this,_0x4118db(0x5cf),null);}[_0x1706e4(0x31c)](_0x1589e5,_0x12d406,_0x22b11f,_0xa54bdb){const _0x5488aa=_0x1706e4;this[_0x5488aa(0x23d)]=_0x1589e5,this[_0x5488aa(0x4c0)]=_0x12d406,this[_0x5488aa(0x278)]=_0x22b11f,this[_0x5488aa(0x5cf)]=_0xa54bdb;}[_0x1706e4(0x186)](_0x49753b){const _0xd595aa=_0x1706e4;if(!this[_0xd595aa(0x23d)])return null;let _0x552cea=this[_0xd595aa(0x4d8)](_0x49753b);return _0x552cea?(this[_0xd595aa(0x391)]!==_0x552cea['shapeId']&&(this['_clearConnectionSites'](),this[_0xd595aa(0x1ad)](_0x552cea[_0xd595aa(0x3e8)],_0x552cea[_0xd595aa(0x523)]),this['_activeTargetShapeId']=_0x552cea[_0xd595aa(0x3e8)]),this[_0xd595aa(0x2fd)](_0x49753b)):(this['_activeTargetShapeId']!==null&&(this[_0xd595aa(0x5e4)](),this[_0xd595aa(0x391)]=null),null);}[_0x1706e4(0xb7)](){const _0x591b2e=_0x1706e4;this[_0x591b2e(0x5e4)](),this[_0x591b2e(0x23d)]=null,this[_0x591b2e(0x391)]=null,this[_0x591b2e(0x21d)]=-0x1,this[_0x591b2e(0x5cf)]=null;}[_0x1706e4(0x1c6)](){const _0x4f6b59=_0x1706e4;return this[_0x4f6b59(0x391)]===null||this[_0x4f6b59(0x21d)]<0x0?null:{'shapeId':this[_0x4f6b59(0x391)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x1706e4(0x4d8)](_0x118abd){const _0x238825=_0x1706e4;let _0x4485de=this[_0x238825(0x3f8)][_0x238825(0x589)](this['_unitId'],this['_subUnitId']);for(let _0x41c0cb of Object[_0x238825(0xbb)](_0x4485de)){if(_0x41c0cb===this['_draggingConnectorId']||_0x4485de[_0x41c0cb][_0x238825(0x2bf)]!==l[_0x238825(0x55c)][_0x238825(0x31d)])continue;let _0x449afb=this[_0x238825(0x495)]['getShapeModel'](this[_0x238825(0x4c0)],this[_0x238825(0x278)],_0x41c0cb);if(!_0x449afb||(0x0,y[_0x238825(0x372)])(_0x449afb[_0x238825(0x1e3)]())||_0x449afb[_0x238825(0x5da)]()[_0x238825(0xa5)]===0x0||!this['_currentScene'])continue;let _0x3461b0=(0x0,u[_0x238825(0xf6)])({'unitId':this[_0x238825(0x4c0)],'subUnitId':this[_0x238825(0x278)],'drawingId':_0x41c0cb}),_0x2059b0=this[_0x238825(0x23d)]['getObjectIncludeInGroup'](_0x3461b0);if(!_0x2059b0)continue;let {left:_0x1a3280,top:_0x5efb0d,width:_0x53f752,height:_0x352bcc}=_0x2059b0[_0x238825(0x37b)](),_0x1ca26a=_0x1a3280+_0x53f752/0x2,_0x455a1d=_0x5efb0d+_0x352bcc/0x2,_0x279923=_0x2059b0[_0x238825(0x18a)][_0x238825(0x1ce)](),_0x457091=new d[(_0x238825(0x16c))]([_0x279923[0x0],_0x279923[0x1],_0x279923[0x2],_0x279923[0x3],_0x1ca26a,_0x455a1d]),_0x4aa25c=_0x2059b0[_0x238825(0x491)](),_0x554e6c=(_0x2059b0[_0x238825(0x13b)]&&(_0x4aa25c==null?void 0x0:_0x4aa25c[_0x238825(0x158)])===d[_0x238825(0x3c5)][_0x238825(0x470)]?_0x4aa25c['ancestorTransform'][_0x238825(0x3ee)](_0x457091):_0x457091)[_0x238825(0x430)]()[_0x238825(0x152)](_0x118abd),_0x14f0ad=_0x53f752/0x2,_0x55cb0b=_0x352bcc/0x2;if(_0x554e6c['x']>=-_0x14f0ad-0x5&&_0x554e6c['x']<=_0x14f0ad+0x5&&_0x554e6c['y']>=-_0x55cb0b-0x5&&_0x554e6c['y']<=_0x55cb0b+0x5)return{'shapeId':_0x41c0cb,'shapeModel':_0x449afb};}return null;}['_showConnectionSites'](_0x425611,_0x1a10a3){const _0x355f03=_0x1706e4;if(!this[_0x355f03(0x23d)])return;let _0x2c6451=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x425611}),_0x423662=this[_0x355f03(0x23d)][_0x355f03(0x26b)](_0x2c6451);if(!_0x423662)return;let {left:_0x61f07b,top:_0x2e0667,width:_0x2fe4c9,height:_0x517b03}=_0x423662[_0x355f03(0x37b)](),_0x4657f6=_0x61f07b+_0x2fe4c9/0x2,_0x4f93b6=_0x2e0667+_0x517b03/0x2,_0x5674c7=_0x423662[_0x355f03(0x18a)][_0x355f03(0x1ce)](),_0x129122=new d[(_0x355f03(0x16c))]([_0x5674c7[0x0],_0x5674c7[0x1],_0x5674c7[0x2],_0x5674c7[0x3],_0x4657f6,_0x4f93b6]),_0x23ac0a=_0x423662['getParent'](),_0x31b022=_0x423662['isInGroup']&&(_0x23ac0a==null?void 0x0:_0x23ac0a[_0x355f03(0x158)])===d[_0x355f03(0x3c5)]['GROUP']?_0x23ac0a[_0x355f03(0x2ab)][_0x355f03(0x3ee)](_0x129122):_0x129122;_0x1a10a3[_0x355f03(0x197)]({'width':_0x2fe4c9,'height':_0x517b03});let _0x305236=_0x1a10a3[_0x355f03(0x5da)]();for(let _0xbfd970 of _0x305236){let _0x5f1e83=_0xbfd970['x']-_0x2fe4c9/0x2,_0xf87721=_0xbfd970['y']-_0x517b03/0x2,_0x3f667d=_0x31b022[_0x355f03(0x152)]({'x':_0x5f1e83,'y':_0xf87721}),_0x393e54=_0x3f667d['x'],_0x55ac39=_0x3f667d['y'],_0x55b62b=new Me(_0x355f03(0x306)+_0x425611+'-'+_0xbfd970[_0x355f03(0x298)],{'left':_0x393e54-y['ShapeDefaultConfig'][_0x355f03(0x34f)],'top':_0x55ac39-y[_0x355f03(0x1a7)][_0x355f03(0x34f)],'targetShapeId':_0x425611,'cxnIndex':_0xbfd970[_0x355f03(0x298)],'unitId':this[_0x355f03(0x4c0)],'subUnitId':this[_0x355f03(0x278)],'width':y[_0x355f03(0x1a7)][_0x355f03(0x34f)]*0x2,'height':y['ShapeDefaultConfig'][_0x355f03(0x34f)]*0x2,'zIndex':d[_0x355f03(0x166)]+0x2,'evented':!0x1});this[_0x355f03(0x2e6)][_0x355f03(0x5d7)](_0x55b62b),this[_0x355f03(0x23d)][_0x355f03(0x4a7)](_0x55b62b,d['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x1706e4(0x2fd)](_0x3be90a){const _0x5184c4=_0x1706e4;let _0x85c1f2=null,_0x2df0d0=0x1/0x0,_0x2c9ab6=null;for(let _0x18c260 of this['_connectionSiteObjects']){let _0x1c1b3f=_0x18c260['left']+y[_0x5184c4(0x1a7)][_0x5184c4(0x34f)],_0x15d706=_0x18c260[_0x5184c4(0x493)]+y[_0x5184c4(0x1a7)][_0x5184c4(0x34f)],_0x3eb848=_0x3be90a['x']-_0x1c1b3f,_0x5507cd=_0x3be90a['y']-_0x15d706,_0x111a16=Math[_0x5184c4(0x3c8)](_0x3eb848*_0x3eb848+_0x5507cd*_0x5507cd);_0x111a16<_0x2df0d0&&(_0x2df0d0=_0x111a16,_0x85c1f2=_0x18c260,_0x2c9ab6={'x':_0x1c1b3f,'y':_0x15d706});}let _0x333b51=_0x2df0d0<=0xa&&_0x85c1f2?_0x85c1f2['getConnectionInfo']()[_0x5184c4(0x174)]:-0x1;if(_0x333b51!==this[_0x5184c4(0x21d)]){for(let _0x54cf44 of this[_0x5184c4(0x2e6)]){let _0x421a2e=_0x54cf44['getConnectionInfo']();_0x54cf44['setHighlighted'](_0x421a2e['cxnIndex']===_0x333b51);}this[_0x5184c4(0x21d)]=_0x333b51;}if(_0x2df0d0<=0xa&&_0x85c1f2&&_0x2c9ab6){let _0x4ce34c=_0x85c1f2[_0x5184c4(0x12b)](),_0x4bd274=this['_getConnectionSiteAngle'](_0x4ce34c[_0x5184c4(0x3e8)],_0x4ce34c[_0x5184c4(0x174)]);return{'shapeId':_0x4ce34c['shapeId'],'cxnIndex':_0x4ce34c[_0x5184c4(0x174)],'unitId':_0x4ce34c[_0x5184c4(0xd8)],'subUnitId':_0x4ce34c[_0x5184c4(0x2b5)],'worldPoint':_0x2c9ab6,'angle':_0x4bd274};}return null;}['_getConnectionSiteAngle'](_0x4b2316,_0x5a9e10){const _0x4b5ed0=_0x1706e4;let _0x51aca5=this[_0x4b5ed0(0x495)]['getShapeModel'](this[_0x4b5ed0(0x4c0)],this[_0x4b5ed0(0x278)],_0x4b2316);if(!_0x51aca5)return 0x0;let _0xd2aa2c=this[_0x4b5ed0(0x3f8)]['getDrawingByParam']({'unitId':this[_0x4b5ed0(0x4c0)],'subUnitId':this[_0x4b5ed0(0x278)],'drawingId':_0x4b2316});if(!(_0xd2aa2c!=null&&_0xd2aa2c['transform']))return 0x0;let {width:_0x3c685a=0x0,height:_0x7cc7a8=0x0,flipX:_0x20ad68=!0x1,flipY:_0x290fac=!0x1}=_0xd2aa2c['transform'];_0x51aca5['updateContext']({'width':_0x3c685a,'height':_0x7cc7a8});let _0x20fc9c=_0x51aca5[_0x4b5ed0(0x5da)]()[_0x4b5ed0(0x383)](_0x5a0fb1=>_0x5a0fb1['index']===_0x5a9e10);if(!_0x20fc9c)return 0x0;let _0x22c824=_0x20fc9c[_0x4b5ed0(0x53f)]/0xea60;return _0x20ad68&&(_0x22c824=0xb4-_0x22c824),_0x290fac&&(_0x22c824=-_0x22c824),_0x22c824=(_0x22c824%0x168+0x168)%0x168,_0x22c824;}[_0x1706e4(0x5e4)](){const _0x4ee83e=_0x1706e4;for(let _0x94977 of this[_0x4ee83e(0x2e6)])_0x94977['dispose']();this[_0x4ee83e(0x2e6)]=[],this[_0x4ee83e(0x21d)]=-0x1;}[_0x1706e4(0x2b8)](){const _0x23d5dc=_0x1706e4;this['_clearConnectionSites'](),super[_0x23d5dc(0x2b8)]();}};Ne=H([V(0x1,(0x0,l[_0x1706e4(0x318)])(d['IRenderManagerService'])),V(0x2,(0x0,l['Inject'])(u[_0x1706e4(0x3e9)])),V(0x3,(0x0,l['Inject'])(c['SheetsShapeService']))],Ne);let Pe=class extends l[_0x1706e4(0x40c)]{constructor(_0x4718c3,_0x4036d1,_0x2d7a08,_0x3b7d36,_0x369c35){const _0x2e7279=_0x1706e4;super(),this[_0x2e7279(0x39b)]=_0x4718c3,this['_sheetClipboardService']=_0x4036d1,this['_sheetDrawingService']=_0x2d7a08,this[_0x2e7279(0x59c)]=_0x3b7d36,this[_0x2e7279(0x520)]=_0x369c35,k(this,_0x2e7279(0x1b3),void 0x0),this[_0x2e7279(0x253)](),this[_0x2e7279(0x4c7)]();}get[_0x1706e4(0x38b)](){const _0x1065bc=_0x1706e4;return this[_0x1065bc(0x156)][_0x1065bc(0x4cf)]();}[_0x1706e4(0x4c7)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x5e2729,fromSubUnitId:_0x38c119,toUnitId:_0x5b29da,toSubUnitId:_0x4eed57,idMap:_0x42257f})=>{const _0x40f978=_0x3d6a;let _0x4f41ce=[],_0x4cacd1=[];for(let [_0x4cee81,_0x2855fc]of _0x42257f[_0x40f978(0x2f1)]()){let _0x17de86=this['_shapeService'][_0x40f978(0xc3)](_0x5e2729,_0x38c119,_0x4cee81);if(!_0x17de86)continue;let _0xa97bf8=_0x17de86[_0x40f978(0x1e3)](),_0x58b226=JSON[_0x40f978(0x577)](JSON[_0x40f978(0x59f)](_0x17de86[_0x40f978(0x2a8)]()));if(_0x58b226[_0x40f978(0x19f)]){var _0x58e062,_0x17bf73;let _0x1ffeb3=(_0x58e062=_0x58b226[_0x40f978(0x19f)][_0x40f978(0x121)])==null?void 0x0:_0x58e062[_0x40f978(0x3e8)],_0x282161=(_0x17bf73=_0x58b226[_0x40f978(0x19f)]['to'])==null?void 0x0:_0x17bf73['shapeId'],_0x45b625=_0x1ffeb3?_0x42257f[_0x40f978(0x230)](_0x1ffeb3):!0x0,_0x1bc67b=_0x282161?_0x42257f['has'](_0x282161):!0x0;_0x45b625&&_0x1ffeb3&&_0x58b226['relation'][_0x40f978(0x121)]?_0x58b226[_0x40f978(0x19f)]['from']={..._0x58b226[_0x40f978(0x19f)][_0x40f978(0x121)],'shapeId':_0x42257f[_0x40f978(0x148)](_0x1ffeb3)}:_0x58b226['relation']['from']=void 0x0,_0x1bc67b&&_0x282161&&_0x58b226[_0x40f978(0x19f)]['to']?_0x58b226[_0x40f978(0x19f)]['to']={..._0x58b226[_0x40f978(0x19f)]['to'],'shapeId':_0x42257f[_0x40f978(0x148)](_0x282161)}:_0x58b226[_0x40f978(0x19f)]['to']=void 0x0;}_0x4f41ce[_0x40f978(0x5d7)]({'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5b29da,'subUnitId':_0x4eed57,'shapeId':_0x2855fc,'shapeType':_0xa97bf8,'shapeData':_0x58b226}}),_0x4cacd1[_0x40f978(0x5d7)]({'id':c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5b29da,'subUnitId':_0x4eed57,'shapeId':_0x2855fc}});}return{'redos':_0x4f41ce,'undos':_0x4cacd1};});}[_0x1706e4(0x253)](){const _0x5d6b77=_0x1706e4;this['disposeWithMe'](this[_0x5d6b77(0x5df)][_0x5d6b77(0x4fd)]({'id':'sheets-shape-ui','onBeforeCopy':(_0x2bdc27,_0xbac74c,_0x2d58a9,_0x6f8699)=>{const _0x86324d=_0x5d6b77;this[_0x86324d(0x1b3)]=null;let _0x4d2a0e=this[_0x86324d(0x38b)];if(_0x4d2a0e[_0x86324d(0xa5)]){let _0x422beb=_0x4d2a0e['filter'](_0x103031=>_0x103031['drawingType']===l[_0x86324d(0x55c)][_0x86324d(0x31d)]);if(_0x422beb[_0x86324d(0xa5)]===0x0)return;this[_0x86324d(0x1b3)]={'unitId':_0x2bdc27,'subUnitId':_0xbac74c,'copyType':_0x6f8699,'drawings':_0x422beb};}else this[_0x86324d(0x1af)](_0x2bdc27,_0xbac74c,_0x2d58a9,_0x6f8699);},'onPasteCells':(_0x4d8bd9,_0x234772,_0x5840c1,_0x30b8b4)=>{const _0x1e82c3=_0x5d6b77;if(!this[_0x1e82c3(0x1b3)])return{'redos':[],'undos':[]};let {pasteType:_0x2f676c}=_0x30b8b4;return _0x2f676c===_[_0x1e82c3(0x23f)]['DEFAULT_PASTE']?this[_0x1e82c3(0x281)](_0x234772,this[_0x1e82c3(0x1b3)][_0x1e82c3(0x3df)]===_[_0x1e82c3(0x128)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x488976=>this[_0x5d6b77(0x1b3)]?this[_0x5d6b77(0x281)](_0x488976,this[_0x5d6b77(0x1b3)][_0x5d6b77(0x3df)]===_[_0x5d6b77(0x128)][_0x5d6b77(0x3cb)]):{'redos':[],'undos':[]}}));}[_0x1706e4(0x1af)](_0x365322,_0x7fe5bf,_0xc9fcca,_0x1b5e6b){const _0x57b3da=_0x1706e4;let _0x50c6ee=this[_0x57b3da(0x39b)][_0x57b3da(0x59a)](_0x365322,_0x7fe5bf);if(!_0x50c6ee)return;let _0x332cc7=(0x0,p[_0x57b3da(0x11f)])(_0x50c6ee,_0xc9fcca);if(!_0x332cc7)return;let {startX:_0x24abf8,endX:_0xf4d4a0,startY:_0xf71e24,endY:_0x1f7cc6}=_0x332cc7,_0x494c84=this[_0x57b3da(0x156)][_0x57b3da(0x589)](_0x365322,_0x7fe5bf),_0x46db38=this[_0x57b3da(0x38b)][_0x57b3da(0x3b1)]();for(let [_0x21b2fe,_0x36039f]of Object['entries'](_0x494c84)){if(_0x36039f[_0x57b3da(0x2bf)]!==l[_0x57b3da(0x55c)][_0x57b3da(0x31d)])continue;let {transform:_0x515e37}=_0x36039f;if(!_0x515e37)continue;let {left:_0x4692ae=0x0,top:_0x4c21cf=0x0,width:_0x2a92a2=0x0,height:_0x579167=0x0}=_0x515e37;_0x24abf8<=_0x4692ae&&_0xf4d4a0>=_0x4692ae+_0x2a92a2&&_0xf71e24<=_0x4c21cf&&_0x1f7cc6>=_0x4c21cf+_0x579167&&_0x46db38[_0x57b3da(0x5d7)](_0x36039f);}_0x46db38['length']>0x0&&(this['_copyInfo']={'unitId':_0x365322,'subUnitId':_0x7fe5bf,'copyType':_0x1b5e6b,'copyRange':_0xc9fcca,'drawings':_0x46db38});}[_0x1706e4(0x281)](_0x2b8059,_0x47b3db){const _0x5ca8e5=_0x1706e4;let {unitId:_0x1d9eb1,subUnitId:_0x21e724,range:_0x2f70c1}=_0x2b8059,_0x57f4a0=this[_0x5ca8e5(0x39b)]['getSkeleton'](_0x1d9eb1,_0x21e724);if(!_0x57f4a0)return{'redos':[],'undos':[]};let _0x31e8dd=(0x0,p['discreteRangeToRange'])(_0x2f70c1),{unitId:_0x3a45e5,subUnitId:_0x8eb212,copyRange:_0x4754b1,drawings:_0x12984b}=this[_0x5ca8e5(0x1b3)],_0x59b5aa=this[_0x5ca8e5(0x39b)]['getSkeleton'](_0x3a45e5,_0x8eb212);if(!_0x59b5aa)return{'redos':[],'undos':[]};let _0x15d0ad;if(!_0x4754b1){let _0x1216e6=0x1/0x0,_0x3cb54c=0x1/0x0;for(let _0x10cd6f of _0x12984b){var _0x26020f;let {left:_0x564dd6=0x0,top:_0x5d8a9f=0x0}=(_0x26020f=_0x10cd6f[_0x5ca8e5(0x18a)])==null?{}:_0x26020f;_0x564dd6<_0x1216e6&&(_0x1216e6=_0x564dd6),_0x5d8a9f<_0x3cb54c&&(_0x3cb54c=_0x5d8a9f);}_0x1216e6!==0x1/0x0&&_0x3cb54c!==0x1/0x0&&(_0x15d0ad={'left':_0x1216e6,'top':_0x3cb54c});}let _0x422c25=new Map();if(!_0x47b3db){for(let _0x56ccc3 of _0x12984b)_0x422c25['set'](_0x56ccc3['drawingId'],(0x0,l[_0x5ca8e5(0x51c)])());}let _0x4601c6=[],_0x28c764=[];for(let _0x794fdb of _0x12984b){let {drawingId:_0x1364b3,transform:_0x3508ad,sheetTransform:_0x3b3159}=_0x794fdb;if(!_0x3508ad||!_0x3b3159)continue;let _0x323ea8=this[_0x5ca8e5(0x1fd)]({'transform':_0x3508ad,'sheetTransform':_0x3b3159},{'skeleton':_0x59b5aa,'range':_0x4754b1},{'skeleton':_0x57f4a0,'range':_0x31e8dd},_0x15d0ad);if(_0x47b3db){let {redos:_0x2ab9f3,undos:_0x18d103}=this[_0x5ca8e5(0x160)]({'fromUnitId':_0x3a45e5,'fromSubUnitId':_0x8eb212,'toUnitId':_0x1d9eb1,'toSubUnitId':_0x21e724,'drawing':_0x794fdb,'newTransforms':_0x323ea8});_0x4601c6[_0x5ca8e5(0x5d7)](..._0x2ab9f3),_0x28c764[_0x5ca8e5(0x5d7)](..._0x18d103);continue;}let {redos:_0x465f09,undos:_0x5c3566}=this[_0x5ca8e5(0x388)]({'toUnitId':_0x1d9eb1,'toSubUnitId':_0x21e724,'drawing':_0x794fdb,'newTransforms':_0x323ea8,'newDrawingId':_0x422c25[_0x5ca8e5(0x148)](_0x1364b3),'idMap':_0x422c25});_0x4601c6['push'](..._0x465f09),_0x28c764[_0x5ca8e5(0x5d7)](..._0x5c3566);}return{'redos':_0x4601c6,'undos':_0x28c764};}[_0x1706e4(0x160)](_0x2e59a5){const _0x534da6=_0x1706e4;let {fromUnitId:_0x5ab468,fromSubUnitId:_0x314ec7,toUnitId:_0x9a96fa,toSubUnitId:_0x1c55ec,drawing:_0x574d6a,newTransforms:_0x1fd5b3}=_0x2e59a5,_0x309b86={..._0x574d6a,'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'transform':_0x1fd5b3[_0x534da6(0x18a)],'sheetTransform':_0x1fd5b3[_0x534da6(0x5c9)]};if(_0x9a96fa===_0x5ab468&&_0x1c55ec===_0x314ec7){let {redo:_0x1f86b0,undo:_0x3ea69d,objects:_0x329e51}=this[_0x534da6(0x156)][_0x534da6(0x284)]([_0x309b86]);return{'redos':[{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'type':m['DrawingApplyType']['UPDATE'],'op':_0x1f86b0,'objects':_0x329e51}}],'undos':[{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'type':m[_0x534da6(0x1c2)][_0x534da6(0x183)],'op':_0x3ea69d,'objects':_0x329e51}}]};}else{let _0x2097fd=this['_sheetDrawingService'][_0x534da6(0x196)]([_0x574d6a]),_0x2ccc51=this[_0x534da6(0x156)][_0x534da6(0x538)]([_0x309b86]),_0x5d0155=this[_0x534da6(0x59c)]['getShapeModel'](_0x574d6a['unitId'],_0x574d6a[_0x534da6(0x2b5)],_0x574d6a[_0x534da6(0x401)]);if(!_0x5d0155)return{'redos':[],'undos':[]};let _0x3d4aec=_0x5d0155['getShapeType'](),_0x2075ab=JSON[_0x534da6(0x577)](JSON[_0x534da6(0x59f)](_0x5d0155[_0x534da6(0x2a8)]()));return{'redos':[{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x5ab468,'subUnitId':_0x314ec7,'type':m['DrawingApplyType']['REMOVE'],'op':_0x2097fd[_0x534da6(0x107)],'objects':_0x2097fd[_0x534da6(0x2c3)]}},{'id':c[_0x534da6(0x215)]['id'],'params':{'unitId':_0x5ab468,'subUnitId':_0x314ec7,'shapeId':_0x574d6a[_0x534da6(0x401)]}},{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'type':m[_0x534da6(0x1c2)][_0x534da6(0x58e)],'op':_0x2ccc51[_0x534da6(0x107)],'objects':_0x2ccc51[_0x534da6(0x2c3)]}},{'id':c[_0x534da6(0x1d2)]['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'shapeId':_0x574d6a[_0x534da6(0x401)],'shapeType':_0x3d4aec,'shapeData':_0x2075ab}}],'undos':[{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x5ab468,'subUnitId':_0x314ec7,'type':m[_0x534da6(0x1c2)][_0x534da6(0x58e)],'op':_0x2097fd['undo'],'objects':_0x2097fd[_0x534da6(0x2c3)]}},{'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5ab468,'subUnitId':_0x314ec7,'shapeId':_0x574d6a[_0x534da6(0x401)],'shapeType':_0x3d4aec,'shapeData':_0x2075ab}},{'id':m[_0x534da6(0x58d)]['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'type':m['DrawingApplyType'][_0x534da6(0x55b)],'op':_0x2ccc51[_0x534da6(0x2f6)],'objects':_0x2ccc51[_0x534da6(0x2c3)]}},{'id':c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x9a96fa,'subUnitId':_0x1c55ec,'shapeId':_0x574d6a[_0x534da6(0x401)]}}]};}}['_generateCopyPasteMutations'](_0x19bd69){const _0x4a2ad8=_0x1706e4;let {toUnitId:_0x341ae9,toSubUnitId:_0x4e7a4d,drawing:_0x369334,newTransforms:_0x49cb4d,newDrawingId:_0xd10315,idMap:_0x3b025d}=_0x19bd69,_0x99c204={..._0x369334,'unitId':_0x341ae9,'subUnitId':_0x4e7a4d,'drawingId':_0xd10315,'transform':_0x49cb4d[_0x4a2ad8(0x18a)],'sheetTransform':_0x49cb4d[_0x4a2ad8(0x5c9)]},{redo:_0x2acdc0,undo:_0x2af5f1,objects:_0x326387}=this[_0x4a2ad8(0x156)][_0x4a2ad8(0x538)]([_0x99c204]),_0x2b1d5b=this['_shapeService']['getShapeModel'](_0x369334['unitId'],_0x369334[_0x4a2ad8(0x2b5)],_0x369334[_0x4a2ad8(0x401)]);if(!_0x2b1d5b)return{'redos':[],'undos':[]};let _0x34b415=_0x2b1d5b[_0x4a2ad8(0x1e3)](),_0x5159d5=JSON['parse'](JSON[_0x4a2ad8(0x59f)](_0x2b1d5b['getShapeData']()));if(_0x5159d5[_0x4a2ad8(0x19f)]){var _0xac02ee,_0x4d3167;let _0x13ad34=(_0xac02ee=_0x5159d5['relation']['from'])==null?void 0x0:_0xac02ee[_0x4a2ad8(0x3e8)],_0x461ae8=(_0x4d3167=_0x5159d5[_0x4a2ad8(0x19f)]['to'])==null?void 0x0:_0x4d3167[_0x4a2ad8(0x3e8)],_0x481f43=_0x13ad34?_0x3b025d[_0x4a2ad8(0x230)](_0x13ad34):!0x0,_0x2c1a02=_0x461ae8?_0x3b025d[_0x4a2ad8(0x230)](_0x461ae8):!0x0;_0x481f43&&_0x13ad34&&_0x5159d5[_0x4a2ad8(0x19f)][_0x4a2ad8(0x121)]?_0x5159d5['relation'][_0x4a2ad8(0x121)]={..._0x5159d5[_0x4a2ad8(0x19f)][_0x4a2ad8(0x121)],'shapeId':_0x3b025d[_0x4a2ad8(0x148)](_0x13ad34)}:_0x5159d5[_0x4a2ad8(0x19f)][_0x4a2ad8(0x121)]=void 0x0,_0x2c1a02&&_0x461ae8&&_0x5159d5['relation']['to']?_0x5159d5[_0x4a2ad8(0x19f)]['to']={..._0x5159d5[_0x4a2ad8(0x19f)]['to'],'shapeId':_0x3b025d[_0x4a2ad8(0x148)](_0x461ae8)}:_0x5159d5[_0x4a2ad8(0x19f)]['to']=void 0x0;}return{'redos':[{'id':m[_0x4a2ad8(0x58d)]['id'],'params':{'unitId':_0x341ae9,'subUnitId':_0x4e7a4d,'type':m['DrawingApplyType'][_0x4a2ad8(0x58e)],'op':_0x2acdc0,'objects':_0x326387}},{'id':c[_0x4a2ad8(0x1d2)]['id'],'params':{'unitId':_0x341ae9,'subUnitId':_0x4e7a4d,'shapeId':_0xd10315,'shapeType':_0x34b415,'shapeData':_0x5159d5}}],'undos':[{'id':m[_0x4a2ad8(0x58d)]['id'],'params':{'unitId':_0x341ae9,'subUnitId':_0x4e7a4d,'type':m[_0x4a2ad8(0x1c2)][_0x4a2ad8(0x55b)],'op':_0x2af5f1,'objects':_0x326387}},{'id':c[_0x4a2ad8(0x215)]['id'],'params':{'unitId':_0x341ae9,'subUnitId':_0x4e7a4d,'shapeId':_0xd10315}}]};}[_0x1706e4(0x1fd)](_0x53a557,_0x383d5f,_0x403f5d,_0x25b2ba){const _0x69617f=_0x1706e4;var _0x537986;let {range:_0x36b4ca,skeleton:_0x3f665d}=_0x383d5f,{range:_0x264538,skeleton:_0x28003d}=_0x403f5d,{transform:_0x3ef3e7,sheetTransform:_0x42c724}=_0x53a557,_0x9ae520={..._0x3ef3e7};if(_0x36b4ca){let _0x30c2d5=(0x0,p[_0x69617f(0x11f)])(_0x3f665d,_0x36b4ca),_0x3e2d0c=(0x0,p[_0x69617f(0x11f)])(_0x28003d,_0x264538);if(_0x30c2d5&&_0x3e2d0c){var _0xc0e305,_0x2afe6d;let _0x284cba=_0x3e2d0c[_0x69617f(0x5b3)]-_0x30c2d5[_0x69617f(0x5b3)],_0x4be76d=_0x3e2d0c[_0x69617f(0xef)]-_0x30c2d5['startY'];_0x9ae520[_0x69617f(0x266)]=((_0xc0e305=_0x9ae520[_0x69617f(0x266)])==null?0x0:_0xc0e305)+_0x284cba,_0x9ae520['top']=((_0x2afe6d=_0x9ae520[_0x69617f(0x493)])==null?0x0:_0x2afe6d)+_0x4be76d;}}else{let _0x47c23f=(0x0,p[_0x69617f(0x11f)])(_0x28003d,_0x264538);if(_0x25b2ba&&_0x47c23f){var _0x31285f,_0x12b984;let _0x2ca3d8=((_0x31285f=_0x9ae520[_0x69617f(0x266)])==null?0x0:_0x31285f)-_0x25b2ba[_0x69617f(0x266)],_0x3b99e0=((_0x12b984=_0x9ae520['top'])==null?0x0:_0x12b984)-_0x25b2ba[_0x69617f(0x493)];_0x9ae520[_0x69617f(0x266)]=_0x47c23f[_0x69617f(0x5b3)]+_0x2ca3d8,_0x9ae520[_0x69617f(0x493)]=_0x47c23f['startY']+_0x3b99e0;}else _0x9ae520[_0x69617f(0x266)]=_0x47c23f==null?void 0x0:_0x47c23f[_0x69617f(0x5b3)],_0x9ae520[_0x69617f(0x493)]=_0x47c23f==null?void 0x0:_0x47c23f[_0x69617f(0xef)];}return{'transform':_0x9ae520,'sheetTransform':(_0x537986=(0x0,m['transformToDrawingPosition'])(_0x9ae520,_0x28003d))==null?_0x42c724:_0x537986};}};Pe=H([V(0x0,(0x0,l[_0x1706e4(0x318)])(p['SheetSkeletonService'])),V(0x1,(0x0,l[_0x1706e4(0x318)])(_[_0x1706e4(0x552)])),V(0x2,(0x0,l[_0x1706e4(0x318)])(m[_0x1706e4(0x13e)])),V(0x3,(0x0,l[_0x1706e4(0x318)])(c[_0x1706e4(0xbf)])),V(0x4,(0x0,l[_0x1706e4(0x318)])(w[_0x1706e4(0x44a)]))],Pe);var Fe=class extends d[_0x1706e4(0x3e6)]{constructor(_0x37d73c,_0xe5ac3d){const _0x1a163b=_0x1706e4;super(_0x37d73c,_0xe5ac3d),k(this,'_shapeId',null),k(this,'_index',null),k(this,_0x1a163b(0x4c0),null),k(this,'_subUnitId',null),k(this,'_isStartConnectorPoint',!0x1),_0xe5ac3d&&this[_0x1a163b(0x591)](_0xe5ac3d);}[_0x1706e4(0x2fa)](){const _0x772706=_0x1706e4;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x772706(0x371)]};}[_0x1706e4(0x591)](_0x2ae528){const _0x5abe73=_0x1706e4;_0x2ae528[_0x5abe73(0x3e8)]!==void 0x0&&(this[_0x5abe73(0x371)]=_0x2ae528['shapeId']),_0x2ae528[_0x5abe73(0xd8)]!==void 0x0&&(this[_0x5abe73(0x4c0)]=_0x2ae528[_0x5abe73(0xd8)]),_0x2ae528[_0x5abe73(0x2b5)]!==void 0x0&&(this[_0x5abe73(0x278)]=_0x2ae528[_0x5abe73(0x2b5)]),_0x2ae528[_0x5abe73(0x4f6)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x2ae528['isStartConnectorPoint']),this[_0x5abe73(0x325)]({'width':_0x2ae528[_0x5abe73(0x321)],'height':_0x2ae528['height']});}['_draw'](_0xae9a1e){const _0x2f0ed9=_0x1706e4;d[_0x2f0ed9(0x10d)]['drawWith'](_0xae9a1e,{'radius':y[_0x2f0ed9(0x1a7)][_0x2f0ed9(0x34f)],'fill':y[_0x2f0ed9(0x1a7)][_0x2f0ed9(0xff)],'stroke':y[_0x2f0ed9(0x1a7)]['cxnPointStroke'],'strokeWidth':y[_0x2f0ed9(0x1a7)]['cxnPointStrokeWidth'],'evented':!0x0});}};let Ie=class extends l[_0x1706e4(0x40c)]{constructor(_0x2bdee5,_0x2954f9,_0x1417f9,_0x30128c,_0x1a0393,_0x4b6178,_0x342dc0,_0x21c20e){const _0x930cb=_0x1706e4;super(),this['_context']=_0x2bdee5,this[_0x930cb(0x2e8)]=_0x2954f9,this[_0x930cb(0x11d)]=_0x1417f9,this[_0x930cb(0x3f8)]=_0x30128c,this[_0x930cb(0x3ce)]=_0x1a0393,this[_0x930cb(0x495)]=_0x4b6178,this[_0x930cb(0x29b)]=_0x342dc0,this['_sheetBasicShapeConnectionPointController']=_0x21c20e,k(this,'_activeShapeId',void 0x0),k(this,_0x930cb(0x4c0),void 0x0),k(this,_0x930cb(0x278),void 0x0),k(this,'_connectorObjects',[]),k(this,_0x930cb(0x514),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),k(this,_0x930cb(0xd1),void 0x0),k(this,_0x930cb(0x16d),!0x1),k(this,_0x930cb(0x5e2),!0x1),k(this,'_hasReset',!0x1),k(this,_0x930cb(0x1df),void 0x0),k(this,'_cxtHandlerPointerUp',void 0x0),k(this,'_currentConnectionTarget',null),this[_0x930cb(0x546)]();}[_0x1706e4(0x546)](){const _0x22b3d2=_0x1706e4;this['_registerDrawingFocusChangeHandler'](),this[_0x22b3d2(0x192)]();}['_getDrawingRect'](){const _0x532a1f=_0x1706e4;if(!this[_0x532a1f(0x4c0)]||!this[_0x532a1f(0x278)]||!this['_activeShapeId'])return;let _0x37f638={'unitId':this['_unitId'],'subUnitId':this[_0x532a1f(0x278)],'drawingId':this[_0x532a1f(0x23e)]},{transform:_0x4a2e35}=this['_drawingManagerService'][_0x532a1f(0x5e7)](_0x37f638);if(_0x4a2e35)return{'left':_0x4a2e35[_0x532a1f(0x266)]||0x0,'top':_0x4a2e35[_0x532a1f(0x493)]||0x0,'width':_0x4a2e35['width']||0x0,'height':_0x4a2e35[_0x532a1f(0x305)]||0x0,'flipX':_0x4a2e35[_0x532a1f(0xfb)]||!0x1,'flipY':_0x4a2e35[_0x532a1f(0x259)]||!0x1,'angle':_0x4a2e35[_0x532a1f(0x551)]};}[_0x1706e4(0x151)](){const _0x12edcc=_0x1706e4;if(this[_0x12edcc(0x4c0)]===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x33a5cf=this[_0x12edcc(0x11d)][_0x12edcc(0x513)](this[_0x12edcc(0x4c0)]);if(!_0x33a5cf||!_0x33a5cf[_0x12edcc(0x189)](_[_0x12edcc(0x27e)])[_0x12edcc(0x14a)]())return;let {scene:_0x4c88b6}=_0x33a5cf,_0x12da91=this['_getDrawingRect']();if(!_0x12da91)return;let _0x3fa7f0=this[_0x12edcc(0x495)][_0x12edcc(0xc3)](this[_0x12edcc(0x4c0)],this['_subUnitId'],this[_0x12edcc(0x23e)]);if(!_0x3fa7f0||!(0x0,y[_0x12edcc(0x372)])(_0x3fa7f0['getShapeType']()))return;let _0x16585b=_0x3fa7f0[_0x12edcc(0x1c7)]();if(_0x16585b[_0x12edcc(0xa5)]<0x2)return;let _0x55ffb4=new y[(_0x12edcc(0x483))](_0x12da91),_0x7f6dfe=_0x16585b[0x0],_0x279467=_0x16585b[_0x16585b['length']-0x1],_0x58f991=_0x55ffb4[_0x12edcc(0x129)](_0x7f6dfe),_0x548fa5=_0x55ffb4[_0x12edcc(0x129)](_0x279467);this[_0x12edcc(0x299)](_0x4c88b6,{..._0x58f991},!0x0),this[_0x12edcc(0x299)](_0x4c88b6,{..._0x548fa5},!0x1);}[_0x1706e4(0x299)](_0x326492,_0x40221d,_0x223bac){const _0x486295=_0x1706e4;if(this[_0x486295(0x23e)]===void 0x0||this[_0x486295(0x4c0)]===void 0x0||this[_0x486295(0x278)]===void 0x0)return;let _0x45a103=_0x486295(0x3e5)+this[_0x486295(0x4c0)]+'-'+this[_0x486295(0x278)]+'-'+this[_0x486295(0x23e)]+'-'+(_0x223bac?_0x486295(0x5e1):_0x486295(0x1a2)),_0x427698=_0x326492[_0x486295(0x26b)](_0x45a103);if(_0x427698){_0x427698[_0x486295(0x325)]({'left':_0x40221d['x']-y[_0x486295(0x1a7)][_0x486295(0x34f)],'top':_0x40221d['y']-y[_0x486295(0x1a7)][_0x486295(0x34f)]});return;}let _0x2b8fac=new Fe(_0x45a103,{'left':_0x40221d['x']-y[_0x486295(0x1a7)][_0x486295(0x34f)],'top':_0x40221d['y']-y[_0x486295(0x1a7)][_0x486295(0x34f)],'shapeId':this[_0x486295(0x23e)],'unitId':this[_0x486295(0x4c0)],'subUnitId':this[_0x486295(0x278)],'isStartConnectorPoint':_0x223bac,'width':y['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':y[_0x486295(0x1a7)][_0x486295(0x34f)]*0x2,'zIndex':d[_0x486295(0x166)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x486295(0x5d7)](_0x2b8fac),this[_0x486295(0x5fb)](_0x2b8fac,_0x326492,_0x223bac),_0x326492[_0x486295(0x4a7)](_0x2b8fac,d[_0x486295(0x166)]+0x1);}[_0x1706e4(0x24d)](_0x353819,_0x26e7c5){const _0x2dad17=_0x1706e4;var _0x55ad6d;let _0x46b0ae={'x':0x0,'y':0x0};if(!_0x353819||!_0x26e7c5)return _0x46b0ae;let _0x4417a4=this['_renderManagerService'][_0x2dad17(0x513)](_0x353819);if(!_0x4417a4||!_0x4417a4[_0x2dad17(0x189)](_[_0x2dad17(0x27e)])[_0x2dad17(0x59a)](_0x26e7c5))return _0x46b0ae;let _0x4b6893=_0x4417a4[_0x2dad17(0x189)](_[_0x2dad17(0x3e0)]),_0x2ba16b=_0x4b6893==null?void 0x0:_0x4b6893[_0x2dad17(0x333)]();if(!_0x2ba16b)return _0x46b0ae;let _0x106958=(_0x55ad6d=this[_0x2dad17(0x3ce)][_0x2dad17(0x4f9)](_0x353819))==null?void 0x0:_0x55ad6d[_0x2dad17(0x275)](_0x26e7c5);if(!_0x106958)return _0x46b0ae;let _0x21c2fb=(0x0,_[_0x2dad17(0x22a)])(_0x2ba16b[_0x2dad17(0xaa)],_0x2ba16b[_0x2dad17(0xac)],_0x4417a4[_0x2dad17(0x2c7)],_0x106958);return _0x21c2fb?{'x':_0x21c2fb['viewportScrollX'],'y':_0x21c2fb[_0x2dad17(0x58b)]}:_0x46b0ae;}[_0x1706e4(0x269)](_0x424d5b,_0x3414e7){const _0x41ff67=_0x1706e4;var _0x18ca7e,_0x3e4d1f;let _0x2059a6=(_0x18ca7e=this[_0x41ff67(0x3ce)][_0x41ff67(0x4f9)](_0x424d5b))==null?void 0x0:_0x18ca7e[_0x41ff67(0x275)](_0x3414e7);return(_0x3e4d1f=_0x2059a6==null?void 0x0:_0x2059a6[_0x41ff67(0x431)]())==null?0x1:_0x3e4d1f;}[_0x1706e4(0x185)](_0x2c75c0,_0x1b1375,_0x4837c3,_0xb3b794,_0x1c640a){const _0x343243=_0x1706e4;this['_cxtHandlerPointerMove'][_0x343243(0x1c4)](),this[_0x343243(0x4b5)][_0x343243(0x1c4)](),this[_0x343243(0x29b)]['refreshAdjustControls']();let _0x25850b=this[_0x343243(0x16b)];this['_sheetBasicShapeConnectionPointController'][_0x343243(0xb7)]();let _0x611e81=this[_0x343243(0x24d)](this[_0x343243(0x4c0)],this['_subUnitId']),_0x3d5dc0=this[_0x343243(0x269)](this[_0x343243(0x4c0)],this[_0x343243(0x278)]),_0x2237c6={'x':_0x4837c3['offsetX']/_0x3d5dc0+_0x611e81['x'],'y':_0x4837c3[_0x343243(0x276)]/_0x3d5dc0+_0x611e81['y']},_0x488503=_0x25850b?_0x25850b[_0x343243(0x104)]:_0x2237c6,_0x1213b6=_0xb3b794?this[_0x343243(0xd1)][_0x343243(0x1fb)]():this['_activeShapeModel'][_0x343243(0x100)](),_0x1bd4fa=this['_activeShapeModel'][_0x343243(0x1e3)]();_0x1213b6?this[_0x343243(0x330)](_0x1213b6,_0x488503,_0xb3b794,_0x25850b,_0x1c640a):this['_handleFreeEndpointPointerUp'](_0x1b1375,_0x488503,_0xb3b794,_0x25850b,_0x1c640a,_0x1bd4fa),this[_0x343243(0x16d)]=!0x1,this[_0x343243(0x268)]=!0x1,this['_currentConnectionTarget']=null,_0x2c75c0[_0x343243(0x4cc)]();}[_0x1706e4(0x282)](_0x45a967,_0x37972d,_0x31a364,_0x417a35,_0x466ed2,_0x1d4147){const _0x5e3bf6=_0x1706e4;let _0x3dde2a=_0x1d4147===y[_0x5e3bf6(0x5bc)][_0x5e3bf6(0x4fe)]||_0x1d4147===y[_0x5e3bf6(0x5bc)][_0x5e3bf6(0x25a)],_0x29c52a=_0x31a364?_0x37972d:_0x45a967,_0x313878=_0x31a364?_0x45a967:_0x37972d,_0x5696f4=this[_0x5e3bf6(0xd1)][_0x5e3bf6(0x1c7)](),_0x4a5e3b=(0x0,y[_0x5e3bf6(0x4f8)])(this[_0x5e3bf6(0xd1)][_0x5e3bf6(0x1e3)]()),_0xdef27d=y['ConnectorCoordinateTransform'][_0x5e3bf6(0x20b)](_0x5696f4,_0x4a5e3b),_0x12b5c9=_0x3dde2a?y[_0x5e3bf6(0x483)][_0x5e3bf6(0x49f)](_0x29c52a,_0x313878):y['ConnectorCoordinateTransform'][_0x5e3bf6(0x486)](_0x45a967,_0x37972d,_0x31a364,_0xdef27d);_0x417a35?this[_0x5e3bf6(0x1b1)](_0x12b5c9,_0x417a35,_0x31a364,_0x466ed2):this[_0x5e3bf6(0x409)](_0x12b5c9,_0x466ed2);}[_0x1706e4(0x330)](_0x317000,_0x35cc73,_0x1aaad1,_0x3bd7ad,_0x139215){const _0x5276a8=_0x1706e4;let _0x5312e5=this[_0x5276a8(0x522)](_0x317000);if(!_0x5312e5)return;let _0xf94e57=_0x3bd7ad?_0x3bd7ad['angle']:this[_0x5276a8(0x30d)](_0x5312e5['point'],_0x35cc73),_0x542c4c;if(_0x3bd7ad){let _0x372eba=this['_drawingManagerService'][_0x5276a8(0x5e7)]({'unitId':_0x3bd7ad[_0x5276a8(0xd8)],'subUnitId':_0x3bd7ad[_0x5276a8(0x2b5)],'drawingId':_0x3bd7ad[_0x5276a8(0x3e8)]});if(_0x372eba!=null&&_0x372eba[_0x5276a8(0x18a)]){let {left:_0x2a8e68=0x0,top:_0x4ca6dd=0x0,width:_0x4071cd=0x0,height:_0x98dc90=0x0,angle:_0x101e01}=_0x372eba['transform'];_0x542c4c=(0x0,y[_0x5276a8(0x273)])({'left':_0x2a8e68,'top':_0x4ca6dd,'width':_0x4071cd,'height':_0x98dc90},_0x101e01||0x0);}else _0x542c4c={'left':_0x35cc73['x'],'top':_0x35cc73['y'],'width':0x0,'height':0x0};}else _0x542c4c={'left':_0x35cc73['x'],'top':_0x35cc73['y'],'width':0x0,'height':0x0};let _0x4441f8={'point':_0x35cc73,'angle':_0xf94e57,'bounds':_0x542c4c},_0x581669=_0x1aaad1?_0x4441f8:_0x5312e5,_0x3537cc=_0x1aaad1?_0x5312e5:_0x4441f8,_0x226ffe=this['_activeShapeModel'][_0x5276a8(0x1e3)](),_0x3467de=(0x0,y[_0x5276a8(0x19b)])(_0x581669,_0x3537cc,_0x226ffe);this[_0x5276a8(0xd1)][_0x5276a8(0x573)]();let _0x206d39=(0x0,y[_0x5276a8(0x339)])(_0x3467de,_0x226ffe);_0x3bd7ad?this[_0x5276a8(0x3a6)](_0x206d39,_0x3bd7ad,_0x317000,_0x1aaad1,_0x139215):this[_0x5276a8(0x461)](_0x206d39,_0x317000,_0x1aaad1,_0x139215);}['_executeConnectionCommand'](_0x3df8f3,_0x120439,_0x23de0e,_0x563789){const _0x4e9da0=_0x1706e4;let _0x5e2944=this[_0x4e9da0(0xd1)][_0x4e9da0(0x2a8)]()['relation'],_0x1882ec={..._0x5e2944},_0x1b8e12={'shapeId':_0x120439[_0x4e9da0(0x3e8)],'cxnIndex':_0x120439[_0x4e9da0(0x174)]};_0x23de0e?_0x1882ec[_0x4e9da0(0x121)]=_0x1b8e12:_0x1882ec['to']=_0x1b8e12;let _0x433be4=this[_0x4e9da0(0xd1)][_0x4e9da0(0x1e3)](),_0x21c1ac=(0x0,y[_0x4e9da0(0x339)])(_0x3df8f3[_0x4e9da0(0x175)],_0x433be4),_0x30fbcf={'unitId':this[_0x4e9da0(0x4c0)],'subUnitId':this[_0x4e9da0(0x278)],'connectorShapeId':this['_activeShapeId'],'width':_0x3df8f3['worldRect'][_0x4e9da0(0x321)],'height':_0x3df8f3[_0x4e9da0(0x433)][_0x4e9da0(0x305)],'left':_0x3df8f3[_0x4e9da0(0x433)][_0x4e9da0(0x266)],'top':_0x3df8f3[_0x4e9da0(0x433)][_0x4e9da0(0x493)],'flipX':_0x3df8f3[_0x4e9da0(0x433)][_0x4e9da0(0xfb)]||!0x1,'flipY':_0x3df8f3[_0x4e9da0(0x433)][_0x4e9da0(0x259)]||!0x1,'newAdjustValues':_0x21c1ac[_0x4e9da0(0x49b)],'oldAdjustValues':_0x563789,'oldRelation':_0x5e2944,'newRelation':_0x1882ec,'newLineType':_0x21c1ac[_0x4e9da0(0x1ef)],'oldLineType':_0x433be4};this[_0x4e9da0(0x2e8)][_0x4e9da0(0x49e)](c[_0x4e9da0(0x3d1)]['id'],_0x30fbcf);}['_executeResizeCommand'](_0x59f059,_0x482b94){const _0x5d32b4=_0x1706e4;let _0x1b394a=this[_0x5d32b4(0xd1)][_0x5d32b4(0x1e3)](),_0x526a5d=(0x0,y[_0x5d32b4(0x339)])(_0x59f059[_0x5d32b4(0x175)],_0x1b394a),_0x12861c={'unitId':this[_0x5d32b4(0x4c0)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5d32b4(0x23e)],'width':_0x59f059['worldRect']['width'],'height':_0x59f059[_0x5d32b4(0x433)][_0x5d32b4(0x305)],'left':_0x59f059[_0x5d32b4(0x433)][_0x5d32b4(0x266)],'top':_0x59f059['worldRect']['top'],'flipX':_0x59f059[_0x5d32b4(0x433)][_0x5d32b4(0xfb)]||!0x1,'flipY':_0x59f059[_0x5d32b4(0x433)]['flipY']||!0x1,'angle':_0x59f059[_0x5d32b4(0x433)][_0x5d32b4(0x551)]||0x0,'newAdjustValues':_0x526a5d[_0x5d32b4(0x49b)],'oldAdjustValues':_0x482b94,'newLineType':_0x526a5d[_0x5d32b4(0x1ef)],'oldLineType':_0x1b394a};this['_commandService']['executeCommand'](c[_0x5d32b4(0x507)]['id'],_0x12861c);}[_0x1706e4(0x3a6)](_0x38da75,_0x208d52,_0x392d21,_0x46d27e,_0x536d58){const _0x2747f2=_0x1706e4;let _0x4f9e92=this[_0x2747f2(0xd1)][_0x2747f2(0x2a8)]()[_0x2747f2(0x19f)],_0x19fd98={..._0x4f9e92},_0x41e020={'shapeId':_0x208d52[_0x2747f2(0x3e8)],'cxnIndex':_0x208d52[_0x2747f2(0x174)]};_0x46d27e?(_0x19fd98[_0x2747f2(0x121)]=_0x41e020,_0x19fd98['to']=_0x392d21):(_0x19fd98[_0x2747f2(0x121)]=_0x392d21,_0x19fd98['to']=_0x41e020);let _0x485672={'unitId':this['_unitId'],'subUnitId':this[_0x2747f2(0x278)],'connectorShapeId':this['_activeShapeId'],'width':_0x38da75[_0x2747f2(0x433)][_0x2747f2(0x321)],'height':_0x38da75[_0x2747f2(0x433)]['height'],'left':_0x38da75[_0x2747f2(0x433)][_0x2747f2(0x266)],'top':_0x38da75[_0x2747f2(0x433)][_0x2747f2(0x493)],'flipX':_0x38da75[_0x2747f2(0x433)][_0x2747f2(0xfb)]||!0x1,'flipY':_0x38da75[_0x2747f2(0x433)][_0x2747f2(0x259)]||!0x1,'oldAdjustValues':_0x536d58,'newAdjustValues':_0x38da75['adjustValues'],'newLineType':_0x38da75[_0x2747f2(0x1ef)],'rotation':_0x38da75['rotation'],'oldRelation':_0x4f9e92,'newRelation':_0x19fd98};this[_0x2747f2(0x2e8)][_0x2747f2(0x49e)](c[_0x2747f2(0x3d1)]['id'],_0x485672);}['_executeConnectedRouteResizeCommand'](_0x578164,_0x214ef4,_0x5636c3,_0x13e828){const _0x861800=_0x1706e4;let _0xa474e4=this['_activeShapeModel']['getShapeData']()[_0x861800(0x19f)],_0x31512={};_0x5636c3?(_0x31512['to']=_0x214ef4,_0x31512[_0x861800(0x121)]=void 0x0):(_0x31512[_0x861800(0x121)]=_0x214ef4,_0x31512['to']=void 0x0);let _0x31259a={'unitId':this[_0x861800(0x4c0)],'subUnitId':this[_0x861800(0x278)],'connectorShapeId':this[_0x861800(0x23e)],'width':_0x578164['worldRect'][_0x861800(0x321)],'height':_0x578164[_0x861800(0x433)][_0x861800(0x305)],'left':_0x578164['worldRect']['left'],'top':_0x578164[_0x861800(0x433)]['top'],'flipX':_0x578164[_0x861800(0x433)][_0x861800(0xfb)]||!0x1,'flipY':_0x578164[_0x861800(0x433)][_0x861800(0x259)]||!0x1,'oldAdjustValues':_0x13e828,'newAdjustValues':_0x578164[_0x861800(0x49b)],'newLineType':_0x578164[_0x861800(0x1ef)],'rotation':_0x578164[_0x861800(0x2f4)],'oldRelation':_0xa474e4,'newRelation':_0x31512};this[_0x861800(0x2e8)][_0x861800(0x49e)](c[_0x861800(0x3d1)]['id'],_0x31259a);}[_0x1706e4(0x5fb)](_0x59f680,_0x3718da,_0x3764a5){const _0xa75971=_0x1706e4;this[_0xa75971(0x43c)]((0x0,l[_0xa75971(0x458)])(_0x59f680[_0xa75971(0x3aa)]['subscribeEvent']((_0x4c9c8d,_0x2c1c81)=>{const _0xac8e00=_0xa75971;let _0x96b1ea=_0x59f680[_0xac8e00(0x2fa)]();if(this['_activeShapeModel']=this[_0xac8e00(0x495)]['getShapeModel'](_0x96b1ea[_0xac8e00(0xd8)],_0x96b1ea['subUnitId'],_0x96b1ea[_0xac8e00(0x401)]),!this[_0xac8e00(0xd1)])return;let _0x44874c={};this[_0xac8e00(0xd1)][_0xac8e00(0x56e)]()[_0xac8e00(0x171)](_0x19e1da=>{const _0x5c884c=_0xac8e00;let _0x105e5a=this[_0x5c884c(0xd1)]['getAdjustValueByName'](_0x19e1da);_0x105e5a!==void 0x0&&(_0x44874c[_0x19e1da]=_0x105e5a);});let _0x36448f=this[_0xac8e00(0x2ac)]();if(!_0x36448f)return;this[_0xac8e00(0x514)]={..._0x36448f};let _0x11bb44=new y[(_0xac8e00(0x483))](this[_0xac8e00(0x514)]),_0xce4f54=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0xac8e00(0x4c0)],'subUnitId':this[_0xac8e00(0x278)],'drawingId':this[_0xac8e00(0x23e)]}),_0x50c712=_0x3718da[_0xac8e00(0x26b)](_0xce4f54);this[_0xac8e00(0x16d)]=!0x0,_0x3718da[_0xac8e00(0x324)](),this[_0xac8e00(0x226)][_0xac8e00(0x31c)](_0x3718da,this[_0xac8e00(0x4c0)],this[_0xac8e00(0x278)],this[_0xac8e00(0x23e)]),this[_0xac8e00(0x16b)]=null;let _0x243b5c=this[_0xac8e00(0xd1)][_0xac8e00(0x1c7)](),_0x22e7fa=_0x243b5c[0x0],_0x10ed58=_0x243b5c[_0x243b5c[_0xac8e00(0xa5)]-0x1],_0x5aa71c=_0x3764a5?_0x11bb44[_0xac8e00(0x129)](_0x10ed58):_0x11bb44['localToWorld'](_0x22e7fa);this[_0xac8e00(0x1df)]=_0x3718da[_0xac8e00(0x3d9)][_0xac8e00(0xa8)]((_0x27b885,_0x164bff)=>{const _0x5347a5=_0xac8e00;if(!this['_isConnecting']||!this[_0x5347a5(0xd1)])return;this['_hasReset']||(this['_sheetShapeAdjustController'][_0x5347a5(0x600)](),this[_0x5347a5(0xd1)][_0x5347a5(0x5b6)](),this[_0x5347a5(0x268)]=!0x0);let _0x527952=this[_0x5347a5(0x24d)](this[_0x5347a5(0x4c0)],this[_0x5347a5(0x278)]),_0x55e912=this[_0x5347a5(0x269)](this[_0x5347a5(0x4c0)],this[_0x5347a5(0x278)]),_0x4b5e01={'x':_0x27b885['offsetX']/_0x55e912+_0x527952['x'],'y':_0x27b885[_0x5347a5(0x276)]/_0x55e912+_0x527952['y']},_0x87e8fa=this[_0x5347a5(0x226)]['updateConnectionDetection'](_0x4b5e01);if(_0x87e8fa){let {shapeId:_0x14e26b,unitId:_0x239377,subUnitId:_0x2c970b}=_0x87e8fa;if(_0x14e26b&&_0x239377&&_0x2c970b){let _0x248b65=(0x0,u[_0x5347a5(0xf6)])({'unitId':_0x239377,'subUnitId':_0x2c970b,'drawingId':_0x14e26b});_0x87e8fa['angle']=(_0x3718da['getObjectIncludeInGroup'](_0x248b65)[_0x5347a5(0x551)]||0x0)+_0x87e8fa[_0x5347a5(0x551)];}}this[_0x5347a5(0x16b)]=_0x87e8fa;let _0x53d4e9=_0x3764a5?this[_0x5347a5(0xd1)][_0x5347a5(0x1fb)]():this[_0x5347a5(0xd1)][_0x5347a5(0x100)]();if(_0x53d4e9){this[_0x5347a5(0x5e6)](_0x53d4e9,_0x4b5e01,_0x3764a5,_0x50c712,_0x59f680);return;}this[_0x5347a5(0x157)](_0x4b5e01,_0x5aa71c,_0x3764a5,_0x50c712,_0x59f680);}),this[_0xac8e00(0x4b5)]=_0x3718da[_0xac8e00(0x170)]['subscribeEvent']((_0x52f9e8,_0xd501be)=>{this['_handleConnectorPointerUp'](_0x3718da,_0x5aa71c,_0x52f9e8,_0x3764a5,_0x44874c);}),_0x2c1c81[_0xac8e00(0x2d0)]();})));}[_0x1706e4(0x15c)](_0x13b6b9,_0x471dce,_0x483686){const _0x54b4d0=_0x1706e4;let _0x44e138=this[_0x54b4d0(0x495)][_0x54b4d0(0x4f3)](_0x13b6b9,_0x471dce,_0x483686);if(!_0x44e138||_0x44e138[_0x54b4d0(0xa5)]===0x0)return;let _0xcd57f=this[_0x54b4d0(0x11d)][_0x54b4d0(0x513)](_0x13b6b9);if(!_0xcd57f)return;let {scene:_0x504c1e}=_0xcd57f;for(let _0x2e47af of _0x44e138){let _0x1b102f=_0x2e47af['lineShapeId'],_0x2787f6=this[_0x54b4d0(0x495)]['getShapeModel'](_0x13b6b9,_0x471dce,_0x1b102f);if(!_0x2787f6)continue;let _0x2383d6=_0x2787f6[_0x54b4d0(0x100)](),_0x2698b4=_0x2787f6[_0x54b4d0(0x1fb)](),_0x11cae9=(_0x2383d6==null?void 0x0:_0x2383d6['shapeId'])===_0x483686,_0x4a909d=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x13b6b9,'subUnitId':_0x471dce,'drawingId':_0x1b102f}),_0x3c2d66=_0x504c1e[_0x54b4d0(0x26b)](_0x4a909d);if(!_0x3c2d66)continue;let _0x4a851f=this[_0x54b4d0(0x3f8)][_0x54b4d0(0x5e7)]({'unitId':_0x13b6b9,'subUnitId':_0x471dce,'drawingId':_0x1b102f});_0x4a851f!=null&&_0x4a851f['transform']&&(_0x2383d6&&_0x2698b4?this[_0x54b4d0(0x3fb)](_0x13b6b9,_0x471dce,_0x1b102f,_0x2787f6,_0x2383d6,_0x2698b4,_0x3c2d66):this[_0x54b4d0(0xf3)](_0x13b6b9,_0x471dce,_0x1b102f,_0x2787f6,_0x11cae9?_0x2383d6:_0x2698b4,_0x11cae9,_0x4a851f,_0x3c2d66));}}[_0x1706e4(0x3fb)](_0x3314bb,_0x241e9a,_0x2e2009,_0x3464f0,_0x347418,_0x2b2f78,_0x381d0d){const _0x396000=_0x1706e4;let _0x3a1c17=this[_0x396000(0x4c0)],_0x22ba1b=this['_subUnitId'];this[_0x396000(0x4c0)]=_0x3314bb,this[_0x396000(0x278)]=_0x241e9a;let _0x226496=this[_0x396000(0x522)](_0x347418),_0x460722=this[_0x396000(0x522)](_0x2b2f78);if(this[_0x396000(0x4c0)]=_0x3a1c17,this[_0x396000(0x278)]=_0x22ba1b,!_0x226496||!_0x460722)return;let _0x447c5f=_0x3464f0[_0x396000(0x1e3)](),_0x298f0f=(0x0,y[_0x396000(0x19b)])(_0x226496,_0x460722,_0x447c5f);_0x298f0f&&_0x3464f0[_0x396000(0x487)](_0x298f0f);let _0x1cb3b5=(0x0,y[_0x396000(0x339)])(_0x298f0f,_0x447c5f);_0x1cb3b5[_0x396000(0x1ef)]!==_0x447c5f&&_0x3464f0['changeShapeType'](_0x1cb3b5[_0x396000(0x1ef)]),_0x3464f0[_0x396000(0x5b6)]();for(let [_0x39b209,_0x27cb4e]of Object['entries'](_0x1cb3b5[_0x396000(0x49b)]))_0x3464f0[_0x396000(0x232)](_0x39b209,_0x27cb4e);_0x3464f0['updateContext']({'width':_0x1cb3b5[_0x396000(0x433)][_0x396000(0x321)],'height':_0x1cb3b5[_0x396000(0x433)][_0x396000(0x305)]}),_0x381d0d[_0x396000(0x325)]({'flipX':_0x1cb3b5[_0x396000(0x433)][_0x396000(0xfb)],'flipY':_0x1cb3b5[_0x396000(0x433)][_0x396000(0x259)],'left':_0x1cb3b5['worldRect'][_0x396000(0x266)],'top':_0x1cb3b5['worldRect'][_0x396000(0x493)],'width':_0x1cb3b5[_0x396000(0x433)]['width'],'height':_0x1cb3b5[_0x396000(0x433)][_0x396000(0x305)],'angle':_0x1cb3b5[_0x396000(0x2f4)]}),_0x3464f0['removeLinePoints']();}['_moveConnectorWithShape'](_0x5c7803,_0x2a30b2,_0x42be59,_0x45b818,_0x27096d,_0x13817b,_0x58e38a,_0x15ab8b){const _0x430d9d=_0x1706e4;let _0x27816c=this['_unitId'],_0x1a34f4=this[_0x430d9d(0x278)];this[_0x430d9d(0x4c0)]=_0x5c7803,this[_0x430d9d(0x278)]=_0x2a30b2;let _0x9ff265=this[_0x430d9d(0x522)](_0x27096d);if(this[_0x430d9d(0x4c0)]=_0x27816c,this[_0x430d9d(0x278)]=_0x1a34f4,!_0x9ff265)return;let {left:_0x52d0d6=0x0,top:_0x5b75f0=0x0,width:_0x1c732b=0x0,height:_0x4209d8=0x0,flipX:_0x33f6d5=!0x1,flipY:_0x22a463=!0x1}=_0x58e38a[_0x430d9d(0x18a)],_0x341f12=_0x45b818[_0x430d9d(0x1c7)]();if(_0x341f12[_0x430d9d(0xa5)]<0x2)return;let _0x11c2aa=new y['ConnectorCoordinateTransform']({'left':_0x52d0d6,'top':_0x5b75f0,'width':_0x1c732b,'height':_0x4209d8,'flipX':_0x33f6d5,'flipY':_0x22a463}),_0x24810c=_0x13817b?_0x341f12[_0x341f12[_0x430d9d(0xa5)]-0x1]:_0x341f12[0x0],_0x35df93=_0x11c2aa[_0x430d9d(0x129)](_0x24810c),_0x5b4c68=y[_0x430d9d(0x483)][_0x430d9d(0x486)](_0x35df93,_0x9ff265['point'],!_0x13817b);_0x15ab8b['transformByState']({'flipX':_0x5b4c68[_0x430d9d(0x433)]['flipX'],'flipY':_0x5b4c68[_0x430d9d(0x433)][_0x430d9d(0x259)],'left':_0x5b4c68[_0x430d9d(0x433)][_0x430d9d(0x266)],'top':_0x5b4c68[_0x430d9d(0x433)][_0x430d9d(0x493)],'width':_0x5b4c68[_0x430d9d(0x433)][_0x430d9d(0x321)],'height':_0x5b4c68[_0x430d9d(0x433)][_0x430d9d(0x305)],'angle':_0x5b4c68['worldRect'][_0x430d9d(0x551)]}),_0x15ab8b[_0x430d9d(0x261)](!0x0);}[_0x1706e4(0x3a1)](){const _0x629b67=_0x1706e4;this[_0x629b67(0x54e)][_0x629b67(0xa5)]!==0x0&&(this['_connectorObjects']['forEach'](_0x3686cf=>{const _0x32de6c=_0x629b67;_0x3686cf[_0x32de6c(0x2b8)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x2a544b=_0x1706e4;let _0x26752d=this[_0x2a544b(0x3ce)]['getCurrentTypeOfUnit$'](l['UniverInstanceType']['UNIVER_SHEET']);this['disposeWithMe'](_0x26752d[_0x2a544b(0x140)]((0x0,f[_0x2a544b(0x358)])(_0x255445=>_0x255445?_0x255445[_0x2a544b(0x43d)][_0x2a544b(0x140)]((0x0,f['switchMap'])(_0x34cce3=>{const _0x42b9ac=_0x2a544b;if(!_0x34cce3)return f[_0x42b9ac(0x4e7)];let _0x3f5e7c=_0x255445[_0x42b9ac(0xb2)](),_0x4fca60=this[_0x42b9ac(0x11d)][_0x42b9ac(0x513)](_0x3f5e7c),_0x53b5f1=_0x4fca60==null?void 0x0:_0x4fca60[_0x42b9ac(0x2c7)];return _0x53b5f1?(0x0,f['of'])(_0x53b5f1):f[_0x42b9ac(0x4e7)];})):f['EMPTY']))[_0x2a544b(0x1b7)](_0x55bd67=>{const _0x4ac2a3=_0x2a544b;let _0x3fe1ec=_0x55bd67[_0x4ac2a3(0x3d7)]();this[_0x4ac2a3(0x43c)](_0x55bd67[_0x4ac2a3(0x3d9)][_0x4ac2a3(0xa8)](_0x3d4f28=>{const _0x1e0d3d=_0x4ac2a3;this['_isDrawingShapePointDown']&&this[_0x1e0d3d(0x23e)]&&this[_0x1e0d3d(0x3a1)]();})),this[_0x4ac2a3(0x43c)](_0x3fe1ec[_0x4ac2a3(0x4eb)][_0x4ac2a3(0x1b7)](_0x39bb9a=>{const _0x805c92=_0x4ac2a3;let {objects:_0x390854}=_0x39bb9a;this['_clearShapeConnectorHandlerObjects'](),_0x390854!==null&&_0x390854[_0x805c92(0x448)]===0x1&&_0x390854[_0x805c92(0x231)]()[_0x805c92(0x593)]()[_0x805c92(0x1cf)]instanceof B&&(this[_0x805c92(0x5e2)]=!0x0);})),this[_0x4ac2a3(0x43c)](_0x3fe1ec['changing$'][_0x4ac2a3(0x1b7)](_0x1cf26f=>{const _0x3583fc=_0x4ac2a3;this[_0x3583fc(0x5e2)]&&this[_0x3583fc(0x3a1)]();})),this['disposeWithMe'](_0x55bd67[_0x4ac2a3(0x170)][_0x4ac2a3(0xa8)](()=>{const _0x68845e=_0x4ac2a3;this['_isDrawingShapePointDown']&&(this[_0x68845e(0x5e2)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x4ac2a3(0x43c)](_0x3fe1ec[_0x4ac2a3(0x1ae)]['subscribe'](()=>{const _0x515126=_0x4ac2a3;this[_0x515126(0x4c0)]&&this['_subUnitId']&&this[_0x515126(0x23e)]&&this[_0x515126(0x3f8)][_0x515126(0x5e7)]({'unitId':this[_0x515126(0x4c0)],'subUnitId':this[_0x515126(0x278)],'drawingId':this[_0x515126(0x23e)]})&&(this[_0x515126(0x3a1)](),this[_0x515126(0x151)]());}));}));}[_0x1706e4(0x359)](){const _0x3a2330=_0x1706e4;this['disposeWithMe'](this[_0x3a2330(0x3f8)][_0x3a2330(0x235)][_0x3a2330(0x1b7)](_0x57408b=>{const _0x1d8d5c=_0x3a2330;if(_0x57408b[_0x1d8d5c(0xa5)]===0x1){let _0x412ecf=_0x57408b[0x0];if(_0x412ecf[_0x1d8d5c(0x2bf)]===l[_0x1d8d5c(0x55c)][_0x1d8d5c(0x31d)]){let _0x4a659c=this[_0x1d8d5c(0x495)]['getShapeModel'](_0x412ecf[_0x1d8d5c(0xd8)],_0x412ecf[_0x1d8d5c(0x2b5)],_0x412ecf[_0x1d8d5c(0x401)]);if(_0x4a659c&&(0x0,y[_0x1d8d5c(0x372)])(_0x4a659c[_0x1d8d5c(0x1e3)]())){this[_0x1d8d5c(0x23e)]=_0x412ecf[_0x1d8d5c(0x401)],this[_0x1d8d5c(0x4c0)]=_0x412ecf['unitId'],this['_subUnitId']=_0x412ecf[_0x1d8d5c(0x2b5)],this['_clearShapeConnectorHandlerObjects'](),this[_0x1d8d5c(0x151)]();return;}}}this[_0x1d8d5c(0x23e)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x1d8d5c(0x3a1)]();})),this[_0x3a2330(0x43c)](this[_0x3a2330(0x3f8)][_0x3a2330(0x1bf)][_0x3a2330(0x1b7)](_0x18dc67=>{const _0x49a2d4=_0x3a2330;if(_0x18dc67[_0x49a2d4(0xa5)]===0x1){var _0xd72e89;let _0x3bc1c7=_0x18dc67[0x0],_0x254457=(_0xd72e89=this[_0x49a2d4(0x3f8)][_0x49a2d4(0x5e7)](_0x3bc1c7))==null?void 0x0:_0xd72e89[_0x49a2d4(0x2bf)];_0x254457===l[_0x49a2d4(0x55c)]['DRAWING_SHAPE']&&_0x3bc1c7[_0x49a2d4(0x401)]===this['_activeShapeId']?(this['_clearShapeConnectorHandlerObjects'](),this[_0x49a2d4(0x151)]()):!this[_0x49a2d4(0x23e)]&&_0x254457===l[_0x49a2d4(0x55c)][_0x49a2d4(0x31d)]&&this[_0x49a2d4(0x15c)](_0x3bc1c7[_0x49a2d4(0xd8)],_0x3bc1c7[_0x49a2d4(0x2b5)],_0x3bc1c7[_0x49a2d4(0x401)]);}})),this[_0x3a2330(0x43c)](this[_0x3a2330(0x3f8)]['remove$']['subscribe'](_0xf2243a=>{const _0x13ade7=_0x3a2330;for(let _0x1e96c5 of _0xf2243a){let {drawingId:_0x4103a9}=_0x1e96c5;if(this[_0x13ade7(0x23e)]===_0x4103a9){this['_reset']();return;}}}));}[_0x1706e4(0x5e6)](_0x5a0c5c,_0xb45968,_0x4ebbd2,_0x22b713,_0x5db8ec){const _0x43652b=_0x1706e4;var _0x26835b,_0x2129ef;if(!this['_activeShapeModel'])return;let _0x185639=this[_0x43652b(0x522)](_0x5a0c5c);if(!_0x185639)return;let _0x34ea91=this[_0x43652b(0x16b)]?this[_0x43652b(0x16b)][_0x43652b(0x104)]:_0xb45968,_0xe77d8e=this[_0x43652b(0x16b)]?this[_0x43652b(0x16b)][_0x43652b(0x551)]:this[_0x43652b(0x30d)](_0x185639[_0x43652b(0x56c)],_0x34ea91),_0x1e6142;if(this[_0x43652b(0x16b)]){let _0x1366cb=this[_0x43652b(0x3f8)][_0x43652b(0x5e7)]({'unitId':this[_0x43652b(0x16b)][_0x43652b(0xd8)],'subUnitId':this[_0x43652b(0x16b)][_0x43652b(0x2b5)],'drawingId':this[_0x43652b(0x16b)]['shapeId']});if(_0x1366cb!=null&&_0x1366cb[_0x43652b(0x18a)]){let {left:_0x2c4066=0x0,top:_0x5cac1f=0x0,width:_0x22b6e1=0x0,height:_0x1e0ad2=0x0,angle:_0x5b49a3}=_0x1366cb[_0x43652b(0x18a)];_0x1e6142=(0x0,y['getBasicShapeRotateBound'])({'left':_0x2c4066,'top':_0x5cac1f,'width':_0x22b6e1,'height':_0x1e0ad2},_0x5b49a3||0x0);}else _0x1e6142={'left':_0x34ea91['x'],'top':_0x34ea91['y'],'width':0x0,'height':0x0};}else _0x1e6142={'left':_0x34ea91['x'],'top':_0x34ea91['y'],'width':0x0,'height':0x0};let _0x1475ea={'point':_0x34ea91,'angle':_0xe77d8e,'bounds':_0x1e6142},_0x2a08e3=_0x4ebbd2?_0x1475ea:_0x185639,_0xd2735c=_0x4ebbd2?_0x185639:_0x1475ea,_0x35eb44=this[_0x43652b(0xd1)][_0x43652b(0x1e3)](),_0xa016cd=(0x0,y[_0x43652b(0x19b)])(_0x2a08e3,_0xd2735c,_0x35eb44);console[_0x43652b(0x217)](_0x2a08e3,_0xd2735c),_0xa016cd&&this[_0x43652b(0xd1)][_0x43652b(0x487)](_0xa016cd);let _0x2b4cf3=(0x0,y[_0x43652b(0x339)])(_0xa016cd,_0x35eb44);_0x2b4cf3['lineType']!==_0x35eb44&&this[_0x43652b(0xd1)][_0x43652b(0x21b)](_0x2b4cf3[_0x43652b(0x1ef)]);for(let [_0x3c2844,_0x403c5b]of Object[_0x43652b(0x2f1)](_0x2b4cf3[_0x43652b(0x49b)]))this[_0x43652b(0xd1)][_0x43652b(0x232)](_0x3c2844,_0x403c5b);this[_0x43652b(0xd1)][_0x43652b(0x197)]({'width':_0x2b4cf3[_0x43652b(0x433)][_0x43652b(0x321)],'height':_0x2b4cf3['worldRect']['height']}),_0x22b713[_0x43652b(0x325)]({'flipX':_0x2b4cf3[_0x43652b(0x433)]['flipX'],'flipY':_0x2b4cf3[_0x43652b(0x433)]['flipY'],'left':_0x2b4cf3[_0x43652b(0x433)]['left'],'top':_0x2b4cf3['worldRect'][_0x43652b(0x493)],'width':_0x2b4cf3[_0x43652b(0x433)][_0x43652b(0x321)],'height':_0x2b4cf3['worldRect'][_0x43652b(0x305)],'angle':_0x2b4cf3[_0x43652b(0x2f4)]}),_0x22b713[_0x43652b(0x261)](!0x0);let _0x4ed9fa=(_0x26835b=(_0x2129ef=this['_currentConnectionTarget'])==null?void 0x0:_0x2129ef[_0x43652b(0x104)])==null?_0xb45968:_0x26835b;_0x5db8ec[_0x43652b(0x325)]({'left':_0x4ed9fa['x']-y[_0x43652b(0x1a7)][_0x43652b(0x34f)],'top':_0x4ed9fa['y']-y[_0x43652b(0x1a7)][_0x43652b(0x34f)]});}[_0x1706e4(0x157)](_0x301ec9,_0x44030b,_0x34a2ff,_0x4c476f,_0xbc0cf){const _0x3d06a5=_0x1706e4;var _0x3350c8,_0x10d340,_0x1f0d04,_0x38d072;let _0x977d16=(_0x3350c8=(_0x10d340=this[_0x3d06a5(0x16b)])==null?void 0x0:_0x10d340[_0x3d06a5(0x104)])==null?_0x301ec9:_0x3350c8,_0x59c4b6=y['ConnectorCoordinateTransform'][_0x3d06a5(0x486)](_0x44030b,_0x977d16,_0x34a2ff);_0x4c476f['transformByState']({'flipX':_0x59c4b6[_0x3d06a5(0x433)][_0x3d06a5(0xfb)],'flipY':_0x59c4b6['worldRect']['flipY'],'left':_0x59c4b6[_0x3d06a5(0x433)]['left'],'top':_0x59c4b6['worldRect'][_0x3d06a5(0x493)],'width':_0x59c4b6['worldRect'][_0x3d06a5(0x321)],'height':_0x59c4b6['worldRect'][_0x3d06a5(0x305)],'angle':_0x59c4b6[_0x3d06a5(0x433)][_0x3d06a5(0x551)]});let _0x43cd8b=(_0x1f0d04=(_0x38d072=this['_currentConnectionTarget'])==null?void 0x0:_0x38d072[_0x3d06a5(0x104)])==null?_0x301ec9:_0x1f0d04;_0xbc0cf['transformByState']({'left':_0x43cd8b['x']-y[_0x3d06a5(0x1a7)][_0x3d06a5(0x34f)],'top':_0x43cd8b['y']-y[_0x3d06a5(0x1a7)][_0x3d06a5(0x34f)]});}[_0x1706e4(0x522)](_0x12a61f){const _0x4f2ba2=_0x1706e4;if(!this[_0x4f2ba2(0x4c0)]||!this[_0x4f2ba2(0x278)])return null;let {shapeId:_0x1754bd,cxnIndex:_0x350f84}=_0x12a61f,_0x1c632e=this[_0x4f2ba2(0x495)][_0x4f2ba2(0xc3)](this['_unitId'],this['_subUnitId'],_0x1754bd);if(!_0x1c632e)return null;let _0x7cc01f=this[_0x4f2ba2(0x3f8)][_0x4f2ba2(0x5e7)]({'unitId':this[_0x4f2ba2(0x4c0)],'subUnitId':this[_0x4f2ba2(0x278)],'drawingId':_0x1754bd});if(!(_0x7cc01f!=null&&_0x7cc01f[_0x4f2ba2(0x18a)]))return null;let {left:_0x5ae409=0x0,top:_0xbe7226=0x0,width:_0x5cd9ec=0x0,height:_0x2bdc42=0x0,flipX:_0x578b3f=!0x1,flipY:_0x4ae54b=!0x1,angle:_0x16e367}=_0x7cc01f[_0x4f2ba2(0x18a)];_0x1c632e[_0x4f2ba2(0x197)]({'width':_0x5cd9ec,'height':_0x2bdc42});let _0x505236=_0x1c632e['getConnectionSiteList']()[_0x4f2ba2(0x383)](_0x3527c5=>_0x3527c5[_0x4f2ba2(0x298)]===_0x350f84);if(!_0x505236)return null;let _0x1feeda=_0x578b3f?_0x5cd9ec-_0x505236['x']:_0x505236['x'],_0x4b0c9b=_0x4ae54b?_0x2bdc42-_0x505236['y']:_0x505236['y'];if(_0x16e367!==0x0&&_0x16e367!=null){let _0x2e27e7=_0x16e367*Math['PI']/0xb4,_0x81b8e6=Math[_0x4f2ba2(0x4b6)](_0x2e27e7),_0x2b9018=Math[_0x4f2ba2(0x2d2)](_0x2e27e7),_0x164ff2=_0x5cd9ec/0x2,_0x2a479c=_0x2bdc42/0x2,_0x78d5cf=_0x1feeda-_0x164ff2,_0x27d182=_0x4b0c9b-_0x2a479c;_0x1feeda=_0x164ff2+_0x78d5cf*_0x81b8e6-_0x27d182*_0x2b9018,_0x4b0c9b=_0x2a479c+_0x78d5cf*_0x2b9018+_0x27d182*_0x81b8e6;}_0x1feeda+=_0x5ae409,_0x4b0c9b+=_0xbe7226;let _0xf3c8d0=_0x505236[_0x4f2ba2(0x53f)]/0xea60;_0x578b3f&&(_0xf3c8d0=0xb4-_0xf3c8d0),_0x4ae54b&&(_0xf3c8d0=-_0xf3c8d0),_0xf3c8d0+=_0x16e367||0x0,_0xf3c8d0=(_0xf3c8d0%0x168+0x168)%0x168;let _0x42d7e5=(0x0,y[_0x4f2ba2(0x273)])({'left':_0x5ae409,'top':_0xbe7226,'width':_0x5cd9ec,'height':_0x2bdc42},_0x16e367||0x0);return{'point':{'x':_0x1feeda,'y':_0x4b0c9b},'angle':_0xf3c8d0,'bounds':_0x42d7e5};}['_calculateFreeEndpointAngle'](_0x178183,_0x4acea7){const _0x891948=_0x1706e4;let _0x43e331=_0x4acea7['x']-_0x178183['x'],_0x435695=_0x4acea7['y']-_0x178183['y'];return Math[_0x891948(0x578)](_0x43e331)>=Math[_0x891948(0x578)](_0x435695)?_0x43e331>=0x0?0xb4:0x0:_0x435695>=0x0?0x10e:0x5a;}['_reset'](){const _0xd17bba=_0x1706e4;this[_0xd17bba(0x23e)]=void 0x0,this['_unitId']=void 0x0,this[_0xd17bba(0x278)]=void 0x0,this[_0xd17bba(0x3a1)]();}[_0x1706e4(0x2b8)](){const _0x5d6fa8=_0x1706e4;this[_0x5d6fa8(0x3a1)](),super['dispose']();}};Ie=H([V(0x1,l[_0x1706e4(0x41c)]),V(0x2,d[_0x1706e4(0x4e3)]),V(0x3,u[_0x1706e4(0x3e9)]),V(0x4,l['IUniverInstanceService']),V(0x5,(0x0,l[_0x1706e4(0x318)])(c[_0x1706e4(0xbf)])),V(0x6,(0x0,l[_0x1706e4(0x318)])(q)),V(0x7,(0x0,l[_0x1706e4(0x318)])(Ne))],Ie);let Le=class extends l[_0x1706e4(0x40c)]{constructor(_0x4bed36,_0x52154d,_0x5dc53f){const _0x4a9e1f=_0x1706e4;super(),this[_0x4a9e1f(0x2e8)]=_0x4bed36,this[_0x4a9e1f(0x373)]=_0x52154d,this['_sheetPermissionCheckController']=_0x5dc53f,this[_0x4a9e1f(0x396)]();}[_0x1706e4(0x396)](){const _0x2ab2e2=_0x1706e4;this[_0x2ab2e2(0x43c)](this[_0x2ab2e2(0x2e8)]['beforeCommandExecuted'](_0x53df83=>{const _0x4e1523=_0x2ab2e2;let _0x2711d0,_0x3baeb0;if(_0x53df83['id']===c[_0x4e1523(0x28e)]['id']||_0x53df83['id']===c[_0x4e1523(0x26d)]['id']||_0x53df83['id']===c['UpdateConnectorRelationCommand']['id']){let _0x399d47=_0x53df83[_0x4e1523(0xf1)];_0x2711d0=_0x399d47['unitId'],_0x3baeb0=_0x399d47[_0x4e1523(0x2b5)];}!_0x2711d0||!_0x3baeb0||this[_0x4e1523(0x115)][_0x4e1523(0x48d)]({'workbookTypes':[p[_0x4e1523(0x22d)]],'worksheetTypes':[p[_0x4e1523(0x2d3)]]},_0x2711d0,_0x3baeb0)||this['_sheetPermissionCheckController']['blockExecuteWithoutPermission'](this[_0x4e1523(0x373)]['t']('permission.dialog.editErr'));}));}};Le=H([V(0x0,(0x0,l[_0x1706e4(0x318)])(l['ICommandService'])),V(0x1,(0x0,l[_0x1706e4(0x318)])(l[_0x1706e4(0x4aa)])),V(0x2,(0x0,l['Inject'])(p[_0x1706e4(0x5ce)]))],Le);const Re=function(_0x129bb1){const _0x296c96=_0x1706e4;let {containerWidth:_0x8241b8,containerHeight:_0x3e811a,scaleX:_0x24b4c4,scaleY:_0x18dde8}=_0x129bb1,_0x269a16=(0x0,v[_0x296c96(0x5ad)])(A),_0x510d70=(0x0,v['useDependency'])(h[_0x296c96(0x57f)]),_0x188108=(0x0,v['useDependency'])(d['IRenderManagerService']),_0x1f2485=(0x0,v[_0x296c96(0x5ad)])(l[_0x296c96(0x508)]),_0x3c4e91=(0x0,v['useDependency'])(u[_0x296c96(0x3e9)]),_0x52e687=(0x0,v[_0x296c96(0x5ad)])(c[_0x296c96(0xbf)]),_0x4257c8=(0x0,v[_0x296c96(0x5ad)])(l[_0x296c96(0x41c)]),_0x48e53e=(0x0,v['useObservable'])(_0x269a16[_0x296c96(0x2aa)]),_0x81e5df=(0x0,v[_0x296c96(0x2de)])(_0x269a16[_0x296c96(0x392)]),_0x4aef7d=(0x0,x[_0x296c96(0x4cd)])(null),_0x9eee8c=(0x0,x['useRef'])(null),_0x133fe7=(0x0,x[_0x296c96(0x4cd)])(null),[_0x1d9f88,_0x35c2ce]=(0x0,x[_0x296c96(0x1a3)])({'editorHeight':_0x3e811a,'marginTop':0x0,'useAbsolutePosition':!0x1}),_0x1c0801=(0x0,x[_0x296c96(0x14b)])(()=>_0x1f2485[_0x296c96(0x4f9)](R,l[_0x296c96(0x46b)][_0x296c96(0x181)]),[_0x1f2485]),_0x357e19=(0x0,x['useCallback'])(()=>{const _0x1a2315=_0x296c96;if(!_0x48e53e)return{'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8};let {unitId:_0x1a3aad,subUnitId:_0x59a592,shapeId:_0x5114b1}=_0x48e53e,_0x1d3e83=_0x52e687[_0x1a2315(0xc3)](_0x1a3aad,_0x59a592,_0x5114b1);if(!_0x1d3e83)return{'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8};let _0x40a1fc={'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8};return _0x1d3e83[_0x1a2315(0x4d2)](_0x40a1fc);},[_0x48e53e,_0x8241b8,_0x3e811a,_0x24b4c4,_0x18dde8]),_0x56efb0=(0x0,x[_0x296c96(0x14b)])(()=>{const _0x141b12=_0x296c96;var _0x56aca5;if(!_0x48e53e)return null;let {unitId:_0x4424e6,subUnitId:_0x1ac4ac,shapeId:_0x345bb2}=_0x48e53e,_0xed4299=_0x52e687[_0x141b12(0xc3)](_0x4424e6,_0x1ac4ac,_0x345bb2);if(!_0xed4299)return null;let _0x1dc43c=_0xed4299['getShapeTextData']();if(!_0x1dc43c||!('dataModel'in _0x1dc43c))return null;let _0x5826e3=_0x1dc43c[_0x141b12(0x1c5)];if(!(_0x5826e3!=null&&_0x5826e3[_0x141b12(0xce)]))return null;let _0x3532ec={'unitId':_0x4424e6,'subUnitId':_0x1ac4ac,'drawingId':_0x345bb2},_0x1ed5ce=_0x3c4e91[_0x141b12(0x5e7)](_0x3532ec),_0x39a0fe={'angle':0x0,'flipX':!0x1,'flipY':!0x1};_0x1ed5ce&&_0x1ed5ce['transform']&&(_0x39a0fe=_0x1ed5ce[_0x141b12(0x18a)]);let _0x16cd92={'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8},_0x5ae4cd=_0xed4299[_0x141b12(0x4d2)](_0x16cd92);return{'doc':_0x5826e3['doc'],'verticalAlign':(_0x56aca5=_0x5826e3['va'])==null?l['VerticalAlign'][_0x141b12(0x40e)]:_0x56aca5,'textRect':_0x5ae4cd,'transform':_0x39a0fe};},[_0x48e53e,_0x52e687,_0x8241b8,_0x3e811a,_0x24b4c4,_0x18dde8]),_0x328cbb=(0x0,x[_0x296c96(0x205)])(()=>{const _0xf80990=_0x296c96;let _0x1c78fb=_0x56efb0();if(_0x1c78fb!=null&&_0x1c78fb['doc']){let _0xe73adc=l['Tools'][_0xf80990(0x2cc)](_0x1c78fb[_0xf80990(0xce)]);return _0xe73adc[_0xf80990(0x3c3)]||(_0xe73adc[_0xf80990(0x3c3)]={}),_0xe73adc[_0xf80990(0x3c3)][_0xf80990(0x260)]={'width':_0x1c78fb[_0xf80990(0x1f8)]['width'],'height':0x1/0x0},_0xe73adc;}return{'id':R,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x8241b8/_0x24b4c4,'height':0x1/0x0}}};},[]),_0xa9b385=(0x0,h[_0x296c96(0x16a)])({'editorId':R,'initialValue':_0x328cbb,'container':_0x9eee8c,'autoFocus':!0x1,'isSingle':!0x1}),_0x11ca8b=(0x0,h[_0x296c96(0x366)])(R);(0x0,h['useKeyboardEvent'])(_0x11ca8b,{'keyCodes':[{'keyCode':v[_0x296c96(0x2ff)]['ENTER']}],'handler':()=>{const _0x33a906=_0x296c96;_0x4257c8['executeCommand'](h[_0x33a906(0x445)]['id']);}},_0xa9b385),(0x0,h[_0x296c96(0x201)])(_0x11ca8b,!0x1,_0xa9b385);let _0x3f42f0=(0x0,x['useCallback'])(()=>{const _0x12aaa0=_0x296c96;var _0x4ba8bc,_0x3414c7;if(!_0xa9b385)return;let _0x6e79c7=_0x188108[_0x12aaa0(0x513)](R),_0x2ac1bb=_0x6e79c7==null?void 0x0:_0x6e79c7[_0x12aaa0(0x189)](T[_0x12aaa0(0x4da)]);if(!_0x2ac1bb)return;let _0x2348be=_0x2ac1bb[_0x12aaa0(0x59a)](),_0x235cd8=_0x1c0801(),_0x37cd5b=_0x56efb0(),_0x4d8acc=(_0x4ba8bc=_0x37cd5b==null?void 0x0:_0x37cd5b[_0x12aaa0(0x3b9)])==null?l[_0x12aaa0(0x2ea)][_0x12aaa0(0x40e)]:_0x4ba8bc,_0x3a6ea3=(_0x3414c7=_0x357e19())==null?{'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8}:_0x3414c7;_0x235cd8&&_0x235cd8[_0x12aaa0(0x113)]({'pageSize':{'width':_0x3a6ea3[_0x12aaa0(0x321)],'height':0x1/0x0}}),_0x2348be['calculate']();let {actualHeight:_0x249e7d}=_0x2348be[_0x12aaa0(0x2df)](),_0x258b9f=_0x3a6ea3[_0x12aaa0(0x305)],_0x4f171a=_0x258b9f,_0x1b94ba=0x0;if(_0x249e7d<=_0x258b9f)_0x4d8acc===l[_0x12aaa0(0x2ea)][_0x12aaa0(0x172)]?_0x1b94ba=(_0x258b9f-_0x249e7d)/0x2:_0x4d8acc===l['VerticalAlign'][_0x12aaa0(0x5ed)]&&(_0x1b94ba=_0x258b9f-_0x249e7d),_0x4f171a=_0x258b9f,_0x35c2ce({'editorHeight':_0x3a6ea3[_0x12aaa0(0x305)]*_0x18dde8,'marginTop':0x0,'useAbsolutePosition':!0x1});else{let _0x2bf3a2=0x0;_0x4d8acc===l[_0x12aaa0(0x2ea)][_0x12aaa0(0x172)]?_0x2bf3a2=(_0x258b9f-_0x249e7d)/0x2:_0x4d8acc===l[_0x12aaa0(0x2ea)][_0x12aaa0(0x5ed)]&&(_0x2bf3a2=_0x258b9f-_0x249e7d),_0x1b94ba=0x0,_0x35c2ce({'editorHeight':_0x249e7d*_0x18dde8,'marginTop':_0x2bf3a2*_0x18dde8,'useAbsolutePosition':!0x0}),_0x4f171a=_0x249e7d;}_0x235cd8&&(_0x235cd8['updateDocumentStyle']({'pageSize':{'width':_0x3a6ea3[_0x12aaa0(0x321)],'height':_0x4f171a}}),_0x235cd8[_0x12aaa0(0x14f)]({'t':_0x1b94ba}),_0x2348be[_0x12aaa0(0x1f2)]()),_0x6e79c7&&(_0x6e79c7[_0x12aaa0(0x2c7)][_0x12aaa0(0x141)](_0x3a6ea3['width'],_0x4f171a),_0x6e79c7['mainComponent']&&_0x6e79c7['mainComponent']['resize'](_0x3a6ea3['width'],_0x4f171a));},[_0xa9b385,_0x188108,_0x56efb0,_0x1c0801,_0x8241b8,_0x3e811a,_0x24b4c4,_0x18dde8]);(0x0,x[_0x296c96(0x2ad)])(()=>{const _0x5e039f=_0x296c96;if(!_0xa9b385||!_0x48e53e)return;let {shapeId:_0x1e7056,unitId:_0x43fd59,subUnitId:_0x1e3abf}=_0x48e53e;if(_0x81e5df){var _0x41b785;let _0x18c87b=_0xa9b385[_0x5e039f(0x2b3)](),_0x475329=_0x56efb0(),_0x427f14={'va':(_0x41b785=_0x475329==null?void 0x0:_0x475329[_0x5e039f(0x3b9)])==null?l[_0x5e039f(0x2ea)]['TOP']:_0x41b785,'doc':_0x18c87b};_0x4257c8['executeCommand'](M['id'],{'unitId':_0x43fd59,'subUnitId':_0x1e3abf,'shapeId':_0x1e7056,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x427f14}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x133fe7[_0x5e039f(0x56f)]}}}});return;}let _0x5902b6=_0x56efb0();if(_0x5902b6!=null&&_0x5902b6[_0x5e039f(0xce)]){_0x133fe7[_0x5e039f(0x56f)]={'va':_0x5902b6['verticalAlign'],'doc':l[_0x5e039f(0x1fe)]['deepClone'](_0x5902b6['doc'])};let _0x550702=l[_0x5e039f(0x1fe)]['deepClone'](_0x5902b6[_0x5e039f(0xce)]);return _0x550702['documentStyle']||(_0x550702['documentStyle']={}),_0x550702[_0x5e039f(0x3c3)]['pageSize']={'width':_0x5902b6[_0x5e039f(0x1f8)]['width'],'height':0x1/0x0},_0xa9b385['setDocumentData'](_0x550702,null),()=>{const _0xa533ea=_0x5e039f;var _0x1b9a0c;let _0x5a7924=_0xa9b385[_0xa533ea(0x2b3)](),_0x3db2e9=_0x56efb0(),_0x4e3e7a={'va':(_0x1b9a0c=_0x3db2e9==null?void 0x0:_0x3db2e9[_0xa533ea(0x3b9)])==null?l[_0xa533ea(0x2ea)]['TOP']:_0x1b9a0c,'doc':_0x5a7924};_0x4257c8[_0xa533ea(0x49e)](M['id'],{'unitId':_0x43fd59,'subUnitId':_0x1e3abf,'shapeId':_0x1e7056,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x4e3e7a}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x133fe7['current']}}}});};}else _0xa9b385[_0x5e039f(0x2a9)](_0x328cbb,null);},[_0xa9b385,_0x48e53e,_0x81e5df]),(0x0,x[_0x296c96(0x2ad)])(()=>{const _0x540d38=_0x296c96;var _0x5ebc99,_0x8ec403;if(!_0xa9b385||!_0x48e53e)return;_0x510d70[_0x540d38(0x2bb)](!0x0),_0x510d70[_0x540d38(0x539)](R);let _0x5c787e=((_0x5ebc99=(_0x8ec403=_0xa9b385[_0x540d38(0x2b3)]()[_0x540d38(0xd5)])==null?void 0x0:_0x8ec403[_0x540d38(0x53e)][_0x540d38(0xa5)])==null?0x2:_0x5ebc99)-0x2;return _0xa9b385[_0x540d38(0x374)]([{'startOffset':_0x5c787e,'endOffset':_0x5c787e}]),()=>{const _0x7ce9c6=_0x540d38;_0x510d70[_0x7ce9c6(0x2bb)](!0x0);};},[_0xa9b385,_0x48e53e,_0x510d70]),(0x0,x[_0x296c96(0x2ad)])(()=>{if(!_0xa9b385)return;let _0x448661=_0x4257c8['onCommandExecuted'](_0x3f8c39=>{const _0x1b306d=_0x3d6a;_0x3f8c39['id']===T[_0x1b306d(0x19a)]['id']&&_0x3f8c39[_0x1b306d(0xf1)][_0x1b306d(0xd8)]===R&&_0x48e53e&&(_0x48e53e[_0x1b306d(0x465)]?_0x3f42f0():_0x269a16[_0x1b306d(0x167)]({..._0x48e53e,'visible':!0x0})),_0x3f8c39['id']===F['id']&&_0x3f42f0();});return()=>{const _0x89199c=_0x3d6a;_0x448661[_0x89199c(0x2b8)]();};},[_0xa9b385,_0x3f42f0,_0x48e53e]),(0x0,x[_0x296c96(0x2ad)])(()=>{_0x3f42f0();},[_0x3f42f0]);let _0xab3478=(0x0,x[_0x296c96(0x205)])(()=>{const _0x33e7e=_0x296c96;var _0x1aa548;let _0x2e0ce3=(_0x1aa548=_0x357e19())==null?{'left':0x0,'top':0x0,'width':_0x8241b8/_0x24b4c4,'height':_0x3e811a/_0x18dde8}:_0x1aa548,_0x254eb9=_0x2e0ce3[_0x33e7e(0x266)]*_0x24b4c4,_0x1ecc9e=_0x2e0ce3[_0x33e7e(0x493)]*_0x18dde8,_0xe074f6=_0x2e0ce3[_0x33e7e(0x321)]*_0x24b4c4;return _0x1d9f88[_0x33e7e(0x4ad)]?{'top':_0x1ecc9e+_0x1d9f88[_0x33e7e(0x5db)],'left':_0x254eb9,'width':_0xe074f6,'height':_0x1d9f88['editorHeight']}:{'top':_0x1ecc9e,'left':_0x254eb9,'width':_0xe074f6,'height':_0x1d9f88[_0x33e7e(0x2d8)]};},[_0x1d9f88,_0x56efb0,_0x8241b8,_0x3e811a,_0x24b4c4,_0x18dde8]),_0x156dd2=(0x0,x[_0x296c96(0x205)])(()=>{const _0x4aaa90=_0x296c96;let _0x319b65=_0x56efb0(),_0x858d2b=_0x319b65==null?void 0x0:_0x319b65[_0x4aaa90(0x18a)];return _0x858d2b&&_0x858d2b||{'angle':0x0,'flipX':!0x1,'flipY':!0x1};},[_0x56efb0]);return(0x0,C['jsx'])(_0x296c96(0x5f6),{'ref':_0x4aef7d,'data-u-comp':'shape-text-editor','className':_0x296c96(0x580),'style':{'transform':_0x296c96(0x18e)+_0x156dd2[_0x296c96(0x551)]+_0x296c96(0x208)+(_0x156dd2[_0x296c96(0x259)]?-0x1:0x1)+')'},'children':(0x0,C['jsx'])(_0x296c96(0x5f6),{'ref':_0x9eee8c,'className':_0x296c96(0x579),'data-u-comp':_0x296c96(0x2c4),'style':_0xab3478,'data-editorid':R})});};Re[_0x1706e4(0x5b9)]=_0x1706e4(0x5f3);const ze={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function Be(_0x177a99,_0x545452,_0x101bb6,_0x4ee200){const _0x4e4d13=_0x1706e4;let {scaleX:_0x2563cd,scaleY:_0x40dd8d}=_0x101bb6['getAncestorScale'](),{startColumn:_0x3b1e40,startRow:_0x35e8e8,xSplit:_0x420153,ySplit:_0x40a995}=_0x4ee200[_0x4e4d13(0x566)][_0x4e4d13(0x3ab)](),_0x203d81=_0x101bb6[_0x4e4d13(0x2a5)](d[_0x4e4d13(0x367)][_0x4e4d13(0x345)]),_0x3f50a0=_0x101bb6[_0x4e4d13(0x2a5)](d['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT_TOP']),_0x46ec5b=_0x101bb6['getViewport'](d[_0x4e4d13(0x367)][_0x4e4d13(0x32a)]),_0x45fb43=_0x101bb6[_0x4e4d13(0x2a5)](d[_0x4e4d13(0x367)][_0x4e4d13(0x116)]),{rowHeaderWidth:_0x18b0db,columnHeaderHeight:_0x4ec16b}=_0x4ee200,_0x2fd9b8=_0x4ee200['rowStartY'](_0x35e8e8)+_0x4ec16b,_0x16adfd=_0x4ee200[_0x4e4d13(0xfa)](_0x3b1e40)+_0x18b0db,_0xcbf09e=_0x4ee200[_0x4e4d13(0x3bb)](_0x35e8e8-_0x40a995)+_0x4ec16b,_0x54f5df=_0x4ee200['colStartX'](_0x3b1e40-_0x420153)+_0x18b0db,_0x3818d9=[],_0x18eb61=(_0x470608,_0x49420e,_0x21ed7e)=>{if(!_0x470608)return null;let {viewportScrollX:_0x21b1c5,viewportScrollY:_0x1399c0}=_0x470608,_0x1caa49,_0x25d849;return _0x1caa49=_0x49420e?(_0x177a99-(_0x54f5df-_0x18b0db))*_0x2563cd:(_0x177a99-_0x21b1c5)*_0x2563cd,_0x25d849=_0x21ed7e?(_0x545452-(_0xcbf09e-_0x4ec16b))*_0x40dd8d:(_0x545452-_0x1399c0)*_0x40dd8d,{'domX':_0x1caa49,'domY':_0x25d849};},_0x149964=_0x177a99<_0x16adfd&&_0x420153>0x0,_0x55871b=_0x545452<_0x2fd9b8&&_0x40a995>0x0,_0x21c5d5=_0x177a99>=_0x16adfd||_0x420153===0x0,_0x33790e=_0x545452>=_0x2fd9b8||_0x40a995===0x0;if(_0x149964&&_0x55871b&&_0x3f50a0){let _0x5b947e=_0x18eb61(_0x3f50a0,!0x0,!0x0);_0x5b947e&&_0x3818d9[_0x4e4d13(0x5d7)](_0x5b947e);}if(_0x55871b&&_0x21c5d5&&_0x46ec5b){let _0x4583c8=_0x18eb61(_0x46ec5b,!0x1,!0x0);_0x4583c8&&_0x3818d9['push'](_0x4583c8);}if(_0x149964&&_0x33790e&&_0x45fb43){let _0x425f43=_0x18eb61(_0x45fb43,!0x0,!0x1);_0x425f43&&_0x3818d9['push'](_0x425f43);}if(_0x21c5d5&&_0x33790e&&_0x203d81){let _0x3b7e2a=_0x18eb61(_0x203d81,!0x1,!0x1);_0x3b7e2a&&_0x3818d9[_0x4e4d13(0x5d7)](_0x3b7e2a);}if(_0x3818d9[_0x4e4d13(0xa5)]===0x0){var _0x2f9583,_0x320632;return{'domX':(_0x177a99-((_0x2f9583=_0x203d81==null?void 0x0:_0x203d81[_0x4e4d13(0x35c)])==null?0x0:_0x2f9583))*_0x2563cd,'domY':(_0x545452-((_0x320632=_0x203d81==null?void 0x0:_0x203d81[_0x4e4d13(0x58b)])==null?0x0:_0x320632))*_0x40dd8d};}let _0x122ca0=_0x3818d9[0x0][_0x4e4d13(0xb8)],_0x312bbd=_0x3818d9[0x0]['domY'];for(let _0x21527e of _0x3818d9)_0x21527e['domX']>_0x122ca0&&(_0x122ca0=_0x21527e['domX']),_0x21527e[_0x4e4d13(0xc7)]>_0x312bbd&&(_0x312bbd=_0x21527e[_0x4e4d13(0xc7)]);return{'domX':_0x122ca0,'domY':_0x312bbd};}function Ve(_0x484092,_0x3e20f0,_0x2fdd48,_0x54accb,_0x2c02c3,_0xba5a26,_0x304c47){const _0x83785e=_0x1706e4;let {scaleX:_0x3dccb7,scaleY:_0x3b02e3}=_0xba5a26[_0x83785e(0x18c)](),{domX:_0x1cbd2f,domY:_0x57aaac}=Be(_0x484092,_0x3e20f0,_0xba5a26,_0x304c47);return{'left':_0x1cbd2f,'top':_0x57aaac,'width':_0x2fdd48*_0x3dccb7,'height':_0x54accb*_0x3b02e3,'angle':_0x2c02c3,'scaleX':_0x3dccb7,'scaleY':_0x3b02e3};}function He(_0x26efe4){const _0x22cff3=_0x1706e4;let {editingParams:_0x545dff,scene:_0x5799f2,skeleton:_0x78b4c7,getShapeTransform:_0x20c7b0}=_0x26efe4,[_0x2381a3,_0x173e26]=(0x0,x[_0x22cff3(0x1a3)])(ze),_0x3b4f81=(0x0,x[_0x22cff3(0x4cd)])(_0x2381a3);_0x3b4f81['current']=_0x2381a3;let _0x3acaab=(0x0,x[_0x22cff3(0x14b)])(()=>{const _0x20239b=_0x22cff3;if(!_0x545dff||!_0x5799f2||!_0x78b4c7){_0x3b4f81['current']!==ze&&_0x173e26(ze);return;}let _0x17ec07=_0x20c7b0();if(!_0x17ec07){_0x3b4f81[_0x20239b(0x56f)]!==ze&&_0x173e26(ze);return;}let {left:_0x328b35,top:_0x226bd0,width:_0x22206e,height:_0x2d0ad2,angle:_0xeadd46}=_0x17ec07;if(!_0x545dff[_0x20239b(0x465)]){let {scaleX:_0x29f57c,scaleY:_0x220cb8}=_0x5799f2[_0x20239b(0x18c)]();_0x173e26({'left':-0x270f,'top':-0x270f,'width':_0x22206e*_0x29f57c,'height':_0x2d0ad2*_0x220cb8,'angle':0x0,'scaleX':_0x29f57c,'scaleY':_0x220cb8});return;}_0x173e26(Ve(_0x328b35,_0x226bd0,_0x22206e,_0x2d0ad2,_0xeadd46,_0x5799f2,_0x78b4c7));},[_0x545dff,_0x5799f2,_0x78b4c7,_0x20c7b0]);return(0x0,x[_0x22cff3(0x2ad)])(()=>{_0x3acaab();},[_0x545dff,_0x3acaab]),{'position':_0x2381a3,'updatePosition':_0x3acaab};}const Ue=(0x0,x[_0x1706e4(0x2f7)])(_0x49966a=>{const _0x2bc9a8=_0x1706e4;let {children:_0xa4c63c,onPositionUpdate:_0x58e2c2}=_0x49966a,_0x34a6df=(0x0,x['useRef'])(null),_0x85a20=(0x0,v[_0x2bc9a8(0x5ad)])(A),_0x47dcc1=(0x0,v[_0x2bc9a8(0x5ad)])(d[_0x2bc9a8(0x4e3)]),_0x275b2a=(0x0,v[_0x2bc9a8(0x2de)])(_0x85a20[_0x2bc9a8(0x2aa)]),_0x4256bb=(0x0,x[_0x2bc9a8(0x205)])(()=>_0x275b2a?_0x47dcc1[_0x2bc9a8(0x513)](_0x275b2a[_0x2bc9a8(0xd8)]):null,[_0x275b2a,_0x47dcc1]),_0xa8dafe=(0x0,x[_0x2bc9a8(0x205)])(()=>{const _0x840f6f=_0x2bc9a8;var _0x13ce1b;return(_0x13ce1b=_0x4256bb==null?void 0x0:_0x4256bb[_0x840f6f(0x2c7)])==null?null:_0x13ce1b;},[_0x4256bb]),{position:_0x4f334a,updatePosition:_0x372faf}=He({'editingParams':_0x275b2a,'scene':_0xa8dafe,'skeleton':(0x0,x['useMemo'])(()=>{const _0x15ad23=_0x2bc9a8;var _0x2508e7,_0x23416f;return!_0x275b2a||!_0x4256bb||(_0x2508e7=(_0x23416f=_0x4256bb['with'](_[_0x15ad23(0x27e)])[_0x15ad23(0x1be)](_0x275b2a['subUnitId']))==null?void 0x0:_0x23416f[_0x15ad23(0x1ca)])==null?null:_0x2508e7;},[_0x275b2a,_0x4256bb]),'getShapeTransform':(0x0,x[_0x2bc9a8(0x14b)])(()=>{const _0x3b15f8=_0x2bc9a8;if(!_0x275b2a||!_0xa8dafe)return null;let _0x22f5db=_0x275b2a[_0x3b15f8(0x5fa)],_0x3efe24=_0xa8dafe[_0x3b15f8(0x42a)](_0x22f5db);return _0x3efe24 instanceof B?{'left':_0x3efe24['left'],'top':_0x3efe24[_0x3b15f8(0x493)],'width':_0x3efe24[_0x3b15f8(0x321)],'height':_0x3efe24[_0x3b15f8(0x305)],'angle':_0x3efe24[_0x3b15f8(0x551)]}:null;},[_0x275b2a,_0xa8dafe])}),_0x40d623=(0x0,x[_0x2bc9a8(0x14b)])(()=>{const _0x1b0d91=_0x2bc9a8;let _0x38ef5e=_0x34a6df[_0x1b0d91(0x56f)];_0x38ef5e&&(_0x38ef5e['style'][_0x1b0d91(0x266)]=_0x4f334a[_0x1b0d91(0x266)]+'px',_0x38ef5e[_0x1b0d91(0x368)]['top']=_0x4f334a[_0x1b0d91(0x493)]+'px',_0x38ef5e[_0x1b0d91(0x368)]['width']=_0x4f334a['width']+'px',_0x38ef5e[_0x1b0d91(0x368)]['height']=_0x4f334a[_0x1b0d91(0x305)]+'px');},[_0x4f334a]);(0x0,x[_0x2bc9a8(0x2ad)])(()=>{const _0x2fc8dd=_0x2bc9a8;_0x40d623(),_0x58e2c2==null||_0x58e2c2({'width':_0x4f334a[_0x2fc8dd(0x321)],'height':_0x4f334a['height'],'scaleX':_0x4f334a[_0x2fc8dd(0x51a)],'scaleY':_0x4f334a[_0x2fc8dd(0x34a)]});},[_0x4f334a,_0x40d623,_0x58e2c2]),(0x0,x[_0x2bc9a8(0x2ad)])(()=>{const _0x3120f1=_0x2bc9a8;if(!_0xa8dafe)return;let _0x23e1d8=_0xa8dafe[_0x3120f1(0x2a5)](d['SHEET_VIEWPORT_KEY'][_0x3120f1(0x345)]);if(!_0x23e1d8)return;let _0x25c5f0=_0x23e1d8[_0x3120f1(0x5f9)][_0x3120f1(0xa8)](()=>{_0x372faf();});return()=>{const _0x3152e8=_0x3120f1;_0x25c5f0[_0x3152e8(0x1c4)]();};},[_0xa8dafe,_0x372faf]),(0x0,x['useEffect'])(()=>{const _0x6eca6c=_0x2bc9a8;if(!_0x275b2a||!_0xa8dafe)return;let _0x509e56=_0x275b2a[_0x6eca6c(0x5fa)],_0x3baa25=_0xa8dafe['getObject'](_0x509e56);if(_0x3baa25 instanceof B){let _0x37dfe8=_0x3baa25['onTransformChange$'][_0x6eca6c(0xa8)](()=>{_0x372faf();});return()=>{const _0x169975=_0x6eca6c;_0x37dfe8[_0x169975(0x1c4)]();};}},[_0x275b2a,_0xa8dafe,_0x372faf]);let _0x434286=(0x0,x[_0x2bc9a8(0x205)])(()=>({'left':_0x4f334a[_0x2bc9a8(0x266)],'top':_0x4f334a[_0x2bc9a8(0x493)],'width':_0x4f334a['width'],'height':_0x4f334a[_0x2bc9a8(0x305)],'pointerEvents':_0x275b2a!=null&&_0x275b2a[_0x2bc9a8(0x465)]?_0x2bc9a8(0x2d6):_0x2bc9a8(0x161)}),[_0x4f334a,_0x275b2a==null?void 0x0:_0x275b2a[_0x2bc9a8(0x465)]]);return(0x0,C[_0x2bc9a8(0x399)])('div',{'ref':_0x34a6df,'data-u-comp':_0x2bc9a8(0x3e3),'className':_0x2bc9a8(0x4ac),'style':_0x434286,'children':_0xa4c63c});});Ue[_0x1706e4(0x5b9)]=_0x1706e4(0x457);const We=(0x0,x['memo'])(()=>{const _0x3ee488=_0x1706e4;let _0x424356=(0x0,v['useObservable'])((0x0,v[_0x3ee488(0x5ad)])(A)[_0x3ee488(0x2aa)]),[_0x1124d5,_0x57b255]=(0x0,x['useState'])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x3a6bf4=(0x0,x[_0x3ee488(0x14b)])(_0x346f14=>{const _0x20d92e=_0x3ee488;_0x57b255({'width':_0x346f14[_0x20d92e(0x321)],'height':_0x346f14['height'],'scaleX':_0x346f14['scaleX'],'scaleY':_0x346f14[_0x20d92e(0x34a)]});},[]);return _0x424356!=null&&_0x424356['visible']?(0x0,C[_0x3ee488(0x399)])(Ue,{'onPositionUpdate':_0x3a6bf4,'children':(0x0,C[_0x3ee488(0x399)])(Re,{'containerWidth':_0x1124d5[_0x3ee488(0x321)],'containerHeight':_0x1124d5['height'],'scaleX':_0x1124d5[_0x3ee488(0x51a)],'scaleY':_0x1124d5[_0x3ee488(0x34a)]})}):null;});We[_0x1706e4(0x5b9)]=_0x1706e4(0x33e);let $=class extends l[_0x1706e4(0x4c1)]{constructor(_0x4052a8=De,_0x20b3ba,_0x1d5b9f,_0x3c568f,_0x4191d2){const _0x282bce=_0x1706e4;super(),this[_0x282bce(0x1f6)]=_0x4052a8,this[_0x282bce(0x211)]=_0x20b3ba,this[_0x282bce(0x2e8)]=_0x1d5b9f,this[_0x282bce(0x212)]=_0x3c568f,this[_0x282bce(0x11d)]=_0x4191d2;let {..._0x5e4af6}=(0x0,l[_0x282bce(0x37d)])({},De,this[_0x282bce(0x1f6)]);this['_configService'][_0x282bce(0x1a0)](Ee,_0x5e4af6),this[_0x282bce(0x50b)]();}[_0x1706e4(0x4ab)](){const _0x136028=_0x1706e4;(0x0,l[_0x136028(0xe9)])(this['_injector'],[[Ce],[W],[U]]);}[_0x1706e4(0x52e)](){const _0x3e9c66=_0x1706e4;[[Ne],[q],[Pe]][_0x3e9c66(0x171)](_0x34761b=>this[_0x3e9c66(0x211)][_0x3e9c66(0x2fe)](_0x34761b)),(0x0,l['touchDependencies'])(this[_0x3e9c66(0x211)],[[Pe]]),this[_0x3e9c66(0x11d)][_0x3e9c66(0x195)](l[_0x3e9c66(0x46b)][_0x3e9c66(0x304)],[Ne]),this[_0x3e9c66(0x11d)][_0x3e9c66(0x195)](l[_0x3e9c66(0x46b)][_0x3e9c66(0x304)],[q]),this['_renderManagerService'][_0x3e9c66(0x195)](l[_0x3e9c66(0x46b)][_0x3e9c66(0x304)],[Oe]),this[_0x3e9c66(0x11d)]['registerRenderModule'](l['UniverInstanceType']['UNIVER_SHEET'],[Ie]),this[_0x3e9c66(0x11d)][_0x3e9c66(0x195)](l[_0x3e9c66(0x46b)]['UNIVER_SHEET'],[Ae]);}[_0x1706e4(0x297)](){const _0x3d03b5=_0x1706e4;let _0x457106=this['_injector'];_0x457106[_0x3d03b5(0x148)](v[_0x3d03b5(0x563)])[_0x3d03b5(0x2f5)](_0x3d03b5(0x33e),We),[[Ce],[W],[U],[A],[ke],[X],[Le]][_0x3d03b5(0x171)](_0x4a6eb2=>_0x457106[_0x3d03b5(0x2fe)](_0x4a6eb2)),(0x0,l['touchDependencies'])(this[_0x3d03b5(0x211)],[[Ce],[W],[U],[A],[ke],[X],[Le]]);}[_0x1706e4(0x50b)](){const _0x244698=_0x1706e4;[Y,M,F,N,ee,P,te,L,I,J][_0x244698(0x171)](_0x3cfcef=>this[_0x244698(0x43c)](this[_0x244698(0x2e8)]['registerCommand'](_0x3cfcef)));}};k($,'type',l[_0x1706e4(0x46b)][_0x1706e4(0x304)]),k($,_0x1706e4(0x42e),'SHEET_SHAPE_UI_PLUGIN'),k($,'packageName',we),k($,_0x1706e4(0x521),Te),$=H([(0x0,l[_0x1706e4(0x444)])(w[_0x1706e4(0x5f5)],c['UniverSheetsShapePlugin']),V(0x1,(0x0,l[_0x1706e4(0x318)])(l[_0x1706e4(0x5d6)])),V(0x2,l['ICommandService']),V(0x3,l[_0x1706e4(0x5d9)]),V(0x4,d[_0x1706e4(0x4e3)])],$),exports[_0x1706e4(0x51b)]=N,exports[_0x1706e4(0x4ae)]=ee,exports[_0x1706e4(0x4f2)]=P,exports[_0x1706e4(0x1fc)]=F,exports['ShapeDocAlignCommand']=I,Object[_0x1706e4(0x407)](exports,'SheetsShapeUIController',{'enumerable':!0x0,'get':function(){return Ce;}}),Object[_0x1706e4(0x407)](exports,_0x1706e4(0x1a8),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1706e4(0x397)]=M;
|
|
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;
|