@univerjs-pro/sheets-shape-ui 1.3.1 → 1.4.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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +25 -25
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x29d1be=_0x6cf2;(function(_0x3a65f7,_0x124fd4){const _0x557d1c=_0x6cf2,_0x1cf9e7=_0x3a65f7();while(!![]){try{const _0x233854=-parseInt(_0x557d1c(0x3f0))/0x1+-parseInt(_0x557d1c(0x1a7))/0x2*(-parseInt(_0x557d1c(0x3c1))/0x3)+parseInt(_0x557d1c(0x4e4))/0x4*(parseInt(_0x557d1c(0x436))/0x5)+parseInt(_0x557d1c(0x484))/0x6+-parseInt(_0x557d1c(0x45f))/0x7*(-parseInt(_0x557d1c(0x1a3))/0x8)+parseInt(_0x557d1c(0x41b))/0x9*(-parseInt(_0x557d1c(0x525))/0xa)+-parseInt(_0x557d1c(0x471))/0xb*(parseInt(_0x557d1c(0x1cc))/0xc);if(_0x233854===_0x124fd4)break;else _0x1cf9e7['push'](_0x1cf9e7['shift']());}catch(_0x42f356){_0x1cf9e7['push'](_0x1cf9e7['shift']());}}}(_0x46b2,0x78da1),Object[_0x29d1be(0x31f)](exports,Symbol[_0x29d1be(0x3de)],{'value':_0x29d1be(0x445)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0x469418,_0x806dc4){const _0x355aa4=_0x29d1be;let _0x2a3059={};for(let _0x32790 of Object[_0x355aa4(0x450)](_0x806dc4)){let _0x347e1d=_0x806dc4[_0x32790],_0x30164d=_0x469418[_0x32790];_0x2a3059[_0x32790]=_0x30164d===void 0x0?void 0x0:typeof _0x347e1d==_0x355aa4(0x39f)&&_0x347e1d&&!Array[_0x355aa4(0x4f8)](_0x347e1d)&&typeof _0x30164d==_0x355aa4(0x39f)&&_0x30164d&&!Array['isArray'](_0x30164d)?x(_0x30164d,_0x347e1d):_0x30164d;}return _0x2a3059;}const S={'type':a[_0x29d1be(0x1f0)][_0x29d1be(0x24d)],'id':_0x29d1be(0x2c4),'handler':(_0x27a394,_0x295467)=>{const _0x1724ce=_0x29d1be;let _0x206ce0=_0x27a394[_0x1724ce(0x264)](i[_0x1724ce(0x2c7)]),{unitId:_0x4dec2e,subUnitId:_0x2cfb9c,shapeType:_0x58a86e,shapeId:_0x6036cb,shapeData:_0x202377,replaceShapeData:_0x15cf0d,oldShapeJSON:_0x1aa0e1}=_0x295467;if(!_0x206ce0['getShapeModel'](_0x4dec2e,_0x2cfb9c,_0x6036cb))return!0x1;let _0x167365=_0x27a394['get'](a[_0x1724ce(0x1ba)]),_0x3cd43e=_0x27a394[_0x1724ce(0x264)](a[_0x1724ce(0x23a)]),{oldShapeType:_0x34695a,oldShapeData:_0x2b016d={}}=_0x1aa0e1,_0x424bef=_0x15cf0d?_0x2b016d:x(_0x2b016d,_0x202377||{}),_0x4cd520={'id':i[_0x1724ce(0x1b2)]['id'],'params':{'unitId':_0x4dec2e,'subUnitId':_0x2cfb9c,'shapeId':_0x6036cb,'shapeType':_0x58a86e,'shapeData':_0x202377,'replace':_0x15cf0d}},_0x30c069={'id':i[_0x1724ce(0x1b2)]['id'],'params':{'unitId':_0x4dec2e,'subUnitId':_0x2cfb9c,'shapeId':_0x6036cb,'shapeType':_0x34695a,'shapeData':_0x424bef,'replace':_0x15cf0d}};return _0x167365[_0x1724ce(0x1f5)](_0x4cd520['id'],_0x4cd520[_0x1724ce(0x45d)])?(_0x3cd43e['pushUndoRedo']({'unitID':_0x4dec2e,'undoMutations':[_0x30c069],'redoMutations':[_0x4cd520]}),!0x0):!0x1;}};function C(_0x4c7403,_0x21ecb9,_0x34bbbb,_0x36c3d9,_0x315523,_0x368aaa){const _0x1d84d4=_0x29d1be;let _0x856d5a={'unitId':_0x21ecb9,'subUnitId':_0x34bbbb,'shapeId':_0x36c3d9,'shapeData':_0x368aaa,'oldShapeJSON':_0x315523};return _0x4c7403[_0x1d84d4(0x1f6)](S['id'],_0x856d5a);}function w(_0x1fc01a,_0x54684b,_0x2c06a0,_0x48404e,_0x1f596f,_0x15fa3b){const _0x2ae49a=_0x29d1be;let _0x2bc536={'unitId':_0x54684b,'subUnitId':_0x2c06a0,'shapeId':_0x48404e,'shapeData':_0x15fa3b,'oldShapeJSON':_0x1f596f};return _0x1fc01a[_0x2ae49a(0x1f6)](S['id'],_0x2bc536);}function T(_0x45ded9){'@babel/helpers - typeof';const _0x42cfac=_0x29d1be;return T=typeof Symbol==_0x42cfac(0x3bb)&&typeof Symbol[_0x42cfac(0x2a9)]==_0x42cfac(0x353)?function(_0x2e6787){return typeof _0x2e6787;}:function(_0x38b01f){const _0x54d060=_0x42cfac;return _0x38b01f&&typeof Symbol=='function'&&_0x38b01f[_0x54d060(0x511)]===Symbol&&_0x38b01f!==Symbol['prototype']?'symbol':typeof _0x38b01f;},T(_0x45ded9);}function ee(_0x228261,_0x2de7eb){const _0xa49f24=_0x29d1be;if(T(_0x228261)!=_0xa49f24(0x39f)||!_0x228261)return _0x228261;var _0x1d1784=_0x228261[Symbol['toPrimitive']];if(_0x1d1784!==void 0x0){var _0x48fc15=_0x1d1784[_0xa49f24(0x37a)](_0x228261,_0x2de7eb||'default');if(T(_0x48fc15)!=_0xa49f24(0x39f))return _0x48fc15;throw TypeError(_0xa49f24(0x38b));}return(_0x2de7eb===_0xa49f24(0x371)?String:Number)(_0x228261);}function te(_0x1e2c70){const _0x2a2a0e=_0x29d1be;var _0x343a4f=ee(_0x1e2c70,_0x2a2a0e(0x371));return T(_0x343a4f)==_0x2a2a0e(0x353)?_0x343a4f:_0x343a4f+'';}function E(_0x9921a0,_0x1b5e31,_0x4fc522){const _0x1caaaa=_0x29d1be;return(_0x1b5e31=te(_0x1b5e31))in _0x9921a0?Object[_0x1caaaa(0x31f)](_0x9921a0,_0x1b5e31,{'value':_0x4fc522,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9921a0[_0x1b5e31]=_0x4fc522,_0x9921a0;}function ne(_0x2a280b,_0x4a486e,_0x1d3ea4){const _0x523939=_0x29d1be;let _0x58f8a6={..._0x4a486e,'dataModel':{..._0x4a486e['dataModel']??{},..._0x1d3ea4?{'doc':_0x1d3ea4}:null}},_0x29d13e=(0x0,e[_0x523939(0x397)])(_0x2a280b,_0x58f8a6),_0x58ee8d=(0x0,e[_0x523939(0x1ac)])(_0x29d13e);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x29d13e,_0x58ee8d),'wrapStrategy':_0x58ee8d};}var D=class extends c[_0x29d1be(0x413)]{constructor(_0x1ffd5d,_0x1635e2){const _0x2c5aa1=_0x29d1be;super(_0x1ffd5d,_0x1635e2),E(this,_0x2c5aa1(0x4b9),[]),E(this,_0x2c5aa1(0x357),void 0x0),E(this,_0x2c5aa1(0x45a),new e['FormulaShapeAnimationController'](()=>this[_0x2c5aa1(0x362)](!0x0),()=>this[_0x2c5aa1(0x2f2)]())),E(this,_0x2c5aa1(0x42e),!0x0),E(this,_0x2c5aa1(0x34d),a['DrawingTypeEnum'][_0x2c5aa1(0x41d)]),E(this,_0x2c5aa1(0x394),!0x0),this[_0x2c5aa1(0x357)]={..._0x1635e2},this[_0x2c5aa1(0x45a)][_0x2c5aa1(0x473)](_0x1635e2[_0x2c5aa1(0x460)],_0x1635e2[_0x2c5aa1(0x44a)]!==!0x1),this[_0x2c5aa1(0x1d2)](),this['_applyFormulaAutoFitSize']();}[_0x29d1be(0x1d2)](){const _0x13939b=_0x29d1be;this[_0x13939b(0x4cb)]['subscribeEvent'](_0x937c39=>{const _0x6b341a=_0x13939b;this[_0x6b341a(0x3d5)](_0x937c39);});}[_0x29d1be(0x36a)](_0x22b228){const _0x3097ee=_0x29d1be;this[_0x3097ee(0x357)][_0x3097ee(0x4e6)]=_0x22b228;}[_0x29d1be(0x4fb)](_0x596ac8){const _0x171194=_0x29d1be;if(this[_0x171194(0x357)][_0x171194(0x23b)])return null;let _0x3c01d6=this[_0x171194(0x31d)](_0x596ac8),{width:_0x46751a,height:_0x2a7ca1}=this[_0x171194(0x309)]();return(0x0,e[_0x171194(0x235)])(this[_0x171194(0x4b9)],{'x':(this[_0x171194(0x2de)]?-_0x3c01d6['x']:_0x3c01d6['x'])+_0x46751a/0x2,'y':_0x3c01d6['y']+_0x2a7ca1/0x2});}['setEditing'](_0x867309){const _0x554b86=_0x29d1be;this[_0x554b86(0x357)][_0x554b86(0x23b)]=_0x867309,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x1494ea,_0x4c7f61=!0x0){const _0x3cbd3f=_0x29d1be;this[_0x3cbd3f(0x45a)][_0x3cbd3f(0x473)](_0x1494ea,_0x4c7f61),this['_props'][_0x3cbd3f(0x460)]=_0x1494ea,this[_0x3cbd3f(0x2f2)](),this[_0x3cbd3f(0x362)](!0x0);}[_0x29d1be(0x2f2)](){const _0xe34811=_0x29d1be;let _0x3c2d1e=this[_0xe34811(0x357)][_0xe34811(0x1df)],_0x342450=_0x3c2d1e['getShapeTextData'](),_0x2151ad=(0x0,e[_0xe34811(0x1f1)])(_0x342450==null?void 0x0:_0x342450[_0xe34811(0x2be)]),_0x313466=_0x2151ad==null?void 0x0:_0x2151ad[_0xe34811(0x27d)],_0x150a1a=this['_formulaAnimation']['getAutoFitPresentations']();if(!_0x313466||_0x150a1a['length']===0x0)return;_0x3c2d1e[_0xe34811(0x515)]({'width':this[_0xe34811(0x2b0)],'height':this[_0xe34811(0x1bb)]});let _0x2cd479=(0x0,e[_0xe34811(0x1d4)])({'documentData':_0x150a1a[_0xe34811(0x449)](_0x1ddef8=>(0x0,r[_0xe34811(0x38a)])(_0x313466,_0x1ddef8)),'height':this[_0xe34811(0x1bb)],'shapeData':_0x3c2d1e['getShapeData'](),'textRect':_0x3c2d1e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this['height']}),'width':this[_0xe34811(0x2b0)]});if(_0x2cd479){var _0x188176;this['resize'](_0x2cd479[_0xe34811(0x2b0)],_0x2cd479[_0xe34811(0x1bb)]),(_0x188176=this[_0xe34811(0x360)]())==null||(_0x188176=_0x188176[_0xe34811(0x3dc)]())==null||_0x188176[_0xe34811(0x45c)]();}}get[_0x29d1be(0x448)](){const _0x5313b8=_0x29d1be;return this[_0x5313b8(0x357)][_0x5313b8(0x448)];}get[_0x29d1be(0x21d)](){return this['_props']['subUnitId'];}[_0x29d1be(0x3d5)](_0x5b02a7){const _0x3af953=_0x29d1be;if(this[_0x3af953(0x357)][_0x3af953(0x234)]==null||!this[_0x3af953(0x42e)])return;let {width:_0x10df52,height:_0x155c6d}=this,{width:_0x452696=0x0,height:_0x551060=0x0}=_0x5b02a7['preValue'],{left:_0x595b2d=0x0,top:_0xd8e5f0=0x0,right:_0x2df9f9=0x0,bottom:_0x189479=0x0}=this['_props']['srcRect'],_0x3d99ea=_0x595b2d,_0x1fac68=_0xd8e5f0,_0x1f8136=_0x2df9f9,_0x2b4f90=_0x189479,_0x2e7ca0=!0x1;if(_0x452696!==0x0&&_0x452696!==_0x10df52){let _0xe6f936=_0x595b2d/_0x452696,_0x1d661b=_0x2df9f9/_0x452696;_0x3d99ea=_0x10df52*_0xe6f936,_0x1f8136=_0x10df52*_0x1d661b,_0x2e7ca0=!0x0;}if(_0x551060!==0x0&&_0x551060!==_0x155c6d){let _0x1dd419=_0xd8e5f0/_0x551060,_0xefc6b1=_0x189479/_0x551060;_0x1fac68=_0x155c6d*_0x1dd419,_0x2b4f90=_0x155c6d*_0xefc6b1,_0x2e7ca0=!0x0;}_0x2e7ca0&&this[_0x3af953(0x401)]({'left':_0x3d99ea,'top':_0x1fac68,'right':_0x1f8136,'bottom':_0x2b4f90});}[_0x29d1be(0x401)](_0x5533d7){const _0x31df62=_0x29d1be;this[_0x31df62(0x357)]['srcRect']=_0x5533d7,this['makeDirty'](!0x0);}['setFillImage'](_0x395fbc){const _0xdea79=_0x29d1be;this[_0xdea79(0x357)]['image']=_0x395fbc,this[_0xdea79(0x362)](!0x0);}set[_0x29d1be(0x334)](_0x17d465){this['_transform']=_0x17d465;}get[_0x29d1be(0x334)](){const _0x9e3705=_0x29d1be;this['_transform']||this[_0x9e3705(0x2aa)]();let _0x4c26e0=this[_0x9e3705(0x3c6)]['clone']();return this['transformForAngle'](_0x4c26e0);}get[_0x29d1be(0x1df)](){return this['_props']['shapeModel'];}get[_0x29d1be(0x1cf)](){const _0x32964e=_0x29d1be;return this[_0x32964e(0x357)]['shapeId'];}get['classType'](){const _0x378882=_0x29d1be;return c[_0x378882(0x3e7)][_0x378882(0x48e)];}[_0x29d1be(0x299)](_0x45d1c4,_0x27a735,_0x5cff52,_0xe46c4d){const _0x51087a=_0x29d1be;let _0x49680e=this[_0x51087a(0x357)][_0x51087a(0x1df)];if(!_0x49680e||!_0x27a735)return;let _0x5107bc=_0x5cff52??this[_0x51087a(0x2b0)],_0x38e2e6=_0xe46c4d??this[_0x51087a(0x1bb)],_0x248092={'shapeType':_0x49680e[_0x51087a(0x489)](),'width':_0x5107bc,'height':_0x38e2e6},_0x422fe0={'renderMode':n['ShapeRenderModeEnum'][_0x51087a(0x34e)],'oKey':this[_0x51087a(0x2b7)],'image':this[_0x51087a(0x357)][_0x51087a(0x326)],'angle':this['angle']};_0x49680e[_0x51087a(0x515)](_0x248092),_0x45d1c4[_0x51087a(0x1c7)]();let _0x174c7c={'top':0x0,'left':0x0,'width':_0x5107bc,'height':_0x38e2e6},_0xb091af=_0x49680e['getDrawingEffectBounds'](_0x174c7c);_0xb091af?this['_renderWithCache'](_0x45d1c4,_0xb091af,_0x36f92c=>{const _0x3c6a45=_0x51087a;_0x49680e[_0x3c6a45(0x2bb)](_0x36f92c,_0x174c7c,_0x422fe0);}):(this[_0x51087a(0x25a)](),_0x49680e[_0x51087a(0x2bb)](_0x45d1c4,_0x174c7c,_0x422fe0)),_0x45d1c4[_0x51087a(0x3f4)]();let _0x13c1bb=_0x49680e[_0x51087a(0x23e)](),_0x1b22e1=_0x49680e[_0x51087a(0x40c)](_0x174c7c),_0x21f674=_0x49680e[_0x51087a(0x1e3)]();if(_0x13c1bb&&_0x1b22e1&&!_0x21f674){_0x45d1c4[_0x51087a(0x1c7)](),this[_0x51087a(0x336)]()[_0x51087a(0x2de)]&&_0x45d1c4[_0x51087a(0x365)](-0x1,0x1);let _0x5f4acc=_0x5107bc/0x2,_0x4be034=_0x38e2e6/0x2;_0x45d1c4[_0x51087a(0x50a)](-_0x5f4acc,-_0x4be034),_0x45d1c4[_0x51087a(0x1bd)](),this[_0x51087a(0x1be)](_0x45d1c4,_0x13c1bb,_0x1b22e1),_0x45d1c4[_0x51087a(0x3f4)]();}}[_0x29d1be(0x486)](_0x54953b){}[_0x29d1be(0x1be)](_0x4ba834,_0x4ac75e,_0x35b4cc){const _0x385991=_0x29d1be;var _0x2b7b22;this[_0x385991(0x4b9)]=[],!this['_props']['isEditing']&&(!((_0x2b7b22=_0x4ac75e[_0x385991(0x2be)])!=null&&_0x2b7b22[_0x385991(0x27d)])&&_0x385991(0x437)in _0x4ac75e&&_0x4ac75e[_0x385991(0x437)]===!0x1?this[_0x385991(0x203)](_0x4ba834,_0x4ac75e,_0x35b4cc):this[_0x385991(0x44e)](_0x4ba834,_0x4ac75e,_0x35b4cc));}[_0x29d1be(0x203)](_0x500f21,_0xeaf0c,_0x4aa7b2){const _0x4564d3=_0x29d1be;this['_drawRichText'](_0x500f21,{..._0xeaf0c,'text':_0xeaf0c['text']??'','dataModel':{'doc':(0x0,e[_0x4564d3(0x2f9)])(_0xeaf0c,_0x4564d3(0x20c)+this[_0x4564d3(0x2b7)])}},_0x4aa7b2);}[_0x29d1be(0x44e)](_0x5f0cd9,_0x186849,_0x100d5f){const _0x7a1b25=_0x29d1be;(0x0,e[_0x7a1b25(0x1e0)])(_0x5f0cd9,this[_0x7a1b25(0x45a)],(_0x16be67,_0x80feac,_0xe758bc)=>{const _0x5eea00=_0x7a1b25;this[_0x5eea00(0x3ec)](_0x16be67,_0x186849,_0x100d5f,_0x80feac,_0xe758bc===_0x5eea00(0x28b));});}['_drawRichTextLayer'](_0x488a4b,_0x33e480,_0x4d07a1,_0x30665a,_0x348505){const _0x4e9d9a=_0x29d1be;let _0x471694=this[_0x4e9d9a(0x357)][_0x4e9d9a(0x291)];if(!_0x33e480[_0x4e9d9a(0x2be)]||!_0x471694)return;let _0x1882e9=(0x0,e[_0x4e9d9a(0x1f1)])(_0x33e480[_0x4e9d9a(0x2be)]);if(!_0x1882e9)return;let _0x58244f=_0x1882e9[_0x4e9d9a(0x27d)];if(!_0x58244f)return;let _0x32c09c=(0x0,r[_0x4e9d9a(0x38a)])(_0x58244f,_0x30665a),_0x7060c9=_0x1882e9['va']??a[_0x4e9d9a(0x271)][_0x4e9d9a(0x3ad)],_0xd7beb6=_0x1882e9['ha']??a[_0x4e9d9a(0x474)][_0x4e9d9a(0x479)],_0x19a279=ne(this[_0x4e9d9a(0x357)][_0x4e9d9a(0x1df)][_0x4e9d9a(0x50e)](),_0x33e480,_0x32c09c),_0x21f20d=_0x33e480[_0x4e9d9a(0x30b)],_0x6da2f1=(0x0,e[_0x4e9d9a(0x457)])(_0x32c09c,{'isHorizontal':_0x21f20d!==!0x1,'textRect':_0x4d07a1,'verticalAlign':_0x7060c9,'horizontalAlign':_0xd7beb6,'wrapStrategy':_0x19a279[_0x4e9d9a(0x1e2)]}),_0x3979bd=new a[(_0x4e9d9a(0x393))](_0x6da2f1),_0x5ce6e9=new c['DocumentViewModel'](_0x3979bd),_0x36dce8=c[_0x4e9d9a(0x3e1)][_0x4e9d9a(0x219)](_0x5ce6e9,_0x471694);_0x36dce8[_0x4e9d9a(0x2d6)]();let _0x1aaddf=_0x36dce8[_0x4e9d9a(0x35b)]()[_0x4e9d9a(0x3cb)],_0x4f87bc=(0x0,e[_0x4e9d9a(0x4d3)])({'contentHeight':_0x1aaddf,'verticalAlign':_0x7060c9,'viewportHeight':_0x4d07a1['height']});_0x3979bd['updateDocumentStyle']({'pageSize':{'width':_0x21f20d===!0x1?_0x4d07a1[_0x4e9d9a(0x1bb)]:_0x4d07a1[_0x4e9d9a(0x2b0)],'height':(0x0,e[_0x4e9d9a(0x50f)])(_0x32c09c,_0x4f87bc[_0x4e9d9a(0x4b8)])}}),_0x3979bd[_0x4e9d9a(0x201)]({'t':_0x4f87bc[_0x4e9d9a(0x32d)]}),_0x36dce8['calculate']();let _0xee9016=new c['Documents'](_0x4e9d9a(0x3f6)+this[_0x4e9d9a(0x2b7)],_0x36dce8,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4e9d9a(0x362)](!0x0)});_0xee9016[_0x4e9d9a(0x2df)](_0x4d07a1[_0x4e9d9a(0x2b0)],_0x4f87bc[_0x4e9d9a(0x4b8)]),_0x488a4b['save'](),_0x488a4b[_0x4e9d9a(0x500)](_0x4d07a1['left'],_0x4d07a1[_0x4e9d9a(0x459)]),_0x19a279[_0x4e9d9a(0x209)]&&(_0x488a4b[_0x4e9d9a(0x1bd)](),_0x488a4b['rect'](0x0,_0x4f87bc['clipTop'],_0x4d07a1['width'],_0x4f87bc['clipHeight']),_0x488a4b['clip']()),_0x4f87bc[_0x4e9d9a(0x434)]&&_0x488a4b[_0x4e9d9a(0x500)](0x0,_0x4f87bc[_0x4e9d9a(0x434)]),_0xee9016[_0x4e9d9a(0x482)](_0x488a4b),_0x348505&&(this[_0x4e9d9a(0x4b9)]=(0x0,e['createShapeTextHyperLinkRegions'])(_0xee9016,{'left':_0x4d07a1[_0x4e9d9a(0x25e)],'top':_0x4d07a1['top']+_0x4f87bc['contentVerticalOffset']},_0x19a279[_0x4e9d9a(0x209)]?{'left':_0x4d07a1[_0x4e9d9a(0x25e)],'right':_0x4d07a1[_0x4e9d9a(0x25e)]+_0x4d07a1[_0x4e9d9a(0x2b0)],'top':_0x4d07a1[_0x4e9d9a(0x459)]+_0x4f87bc[_0x4e9d9a(0x4ed)],'bottom':_0x4d07a1[_0x4e9d9a(0x459)]+_0x4f87bc[_0x4e9d9a(0x4ed)]+_0x4f87bc[_0x4e9d9a(0x2a5)]}:void 0x0)),_0x488a4b[_0x4e9d9a(0x3f4)](),_0xee9016[_0x4e9d9a(0x361)](),_0x36dce8[_0x4e9d9a(0x361)](),_0x5ce6e9[_0x4e9d9a(0x361)](),_0x3979bd[_0x4e9d9a(0x361)]();}[_0x29d1be(0x2bb)](_0x6a28ca,_0x57be0a,_0x1678b0=!0x1){const _0x484c1a=_0x29d1be;if(!this['visible'])return this[_0x484c1a(0x362)](!0x1),this;let {width:_0x49088b,height:_0x55195d,left:_0x572ef2,top:_0x396418}=this,_0x488ad9=this[_0x484c1a(0x309)]();if(_0x49088b=_0x488ad9['width'],_0x55195d=_0x488ad9[_0x484c1a(0x1bb)],_0x572ef2=_0x488ad9[_0x484c1a(0x25e)],_0x396418=_0x488ad9[_0x484c1a(0x459)],this[_0x484c1a(0x4fd)](_0x57be0a)){let {top:_0x3df7be,left:_0x1a5901,bottom:_0x27e2c4,right:_0x18342b}=_0x57be0a[_0x484c1a(0x344)];if(_0x49088b+this[_0x484c1a(0x389)]+_0x572ef2<_0x1a5901||_0x18342b<_0x572ef2||_0x55195d+this[_0x484c1a(0x389)]+_0x396418<_0x3df7be||_0x27e2c4<_0x396418)return this;}let _0x169a5e=_0x572ef2+_0x49088b/0x2,_0xfb3ffc=_0x396418+_0x55195d/0x2,_0x584111=this['transform']['getMatrix']();if(this[_0x484c1a(0x357)][_0x484c1a(0x23b)]){let _0x1c89e1=this['getState'](),_0x495e81=new c[(_0x484c1a(0x4a3))]();_0x495e81[_0x484c1a(0x2f3)]({..._0x1c89e1}),_0x584111=_0x495e81['getMatrix']();}return _0x6a28ca[_0x484c1a(0x1c7)](),this[_0x484c1a(0x357)]['shapeModel'][_0x484c1a(0x410)]===!0x0||_0x6a28ca[_0x484c1a(0x334)](_0x584111[0x0],_0x584111[0x1],_0x584111[0x2],_0x584111[0x3],_0x169a5e,_0xfb3ffc),this[_0x484c1a(0x299)](_0x6a28ca,_0x57be0a,_0x49088b,_0x55195d),_0x6a28ca[_0x484c1a(0x3f4)](),this[_0x484c1a(0x362)](!0x1),this;}['getInverseCoord'](_0x2832e3){const _0x526520=_0x29d1be;let {left:_0x1dc390,top:_0x6c3a3e,width:_0x31fde6,height:_0x11bea3}=this['getRealBound'](),_0x810f3f=this['transform'][_0x526520(0x210)](),_0x1a00e7=_0x1dc390+_0x31fde6/0x2,_0x2081fc=_0x6c3a3e+_0x11bea3/0x2,_0x5af6f5=new c[(_0x526520(0x4a3))]([_0x810f3f[0x0],_0x810f3f[0x1],_0x810f3f[0x2],_0x810f3f[0x3],_0x1a00e7,_0x2081fc]),_0x17da23=this['getParent']();return(this[_0x526520(0x421)]&&(_0x17da23==null?void 0x0:_0x17da23[_0x526520(0x513)])===c[_0x526520(0x3e7)][_0x526520(0x2e8)]?_0x17da23[_0x526520(0x4d9)][_0x526520(0x340)](_0x5af6f5):_0x5af6f5)[_0x526520(0x342)]()[_0x526520(0x518)](_0x2832e3);}[_0x29d1be(0x4d7)](_0x3ea357){const _0x5593d8=_0x29d1be;let {left:_0x28403b,top:_0x3b9610,width:_0x5219fe,height:_0x3e4bcd}=this[_0x5593d8(0x309)](),_0x16ba5c=_0x28403b+_0x5219fe/0x2,_0x427320=_0x3b9610+_0x3e4bcd/0x2,_0x3b7b23=this[_0x5593d8(0x334)]['getMatrix'](),_0x37e548=new c[(_0x5593d8(0x4a3))]([_0x3b7b23[0x0],_0x3b7b23[0x1],_0x3b7b23[0x2],_0x3b7b23[0x3],_0x16ba5c,_0x427320]),_0x130055=this['getParent'](),_0x4e466c=(this[_0x5593d8(0x421)]&&(_0x130055==null?void 0x0:_0x130055[_0x5593d8(0x513)])===c[_0x5593d8(0x3e7)][_0x5593d8(0x2e8)]?_0x130055['ancestorTransform'][_0x5593d8(0x340)](_0x37e548):_0x37e548)[_0x5593d8(0x342)]()[_0x5593d8(0x518)](_0x3ea357),_0x5a1da0=_0x5219fe/0x2,_0x5ae2b0=_0x3e4bcd/0x2,_0xc4147a=this['_props'][_0x5593d8(0x1df)];return _0xc4147a&&_0xc4147a[_0x5593d8(0x1e3)]()?_0xc4147a[_0x5593d8(0x2f6)](_0x4e466c['x'],_0x4e466c['y'],_0x5219fe,_0x3e4bcd):_0x4e466c['x']>=-_0x5a1da0-this[_0x5593d8(0x389)]/0x2&&_0x4e466c['x']<=_0x5a1da0+this[_0x5593d8(0x389)]/0x2&&_0x4e466c['y']>=-_0x5ae2b0-this[_0x5593d8(0x389)]/0x2&&_0x4e466c['y']<=_0x5ae2b0+this['strokeWidth']/0x2;}[_0x29d1be(0x361)](){const _0x2636c4=_0x29d1be;this['_formulaAnimation'][_0x2636c4(0x361)](),this[_0x2636c4(0x357)]['shapeModel']=null,super[_0x2636c4(0x361)]();}},O=class extends c[_0x29d1be(0x413)]{constructor(_0x1c1402,_0x492f3d){const _0x486443=_0x29d1be;super(_0x1c1402,_0x492f3d),E(this,_0x486443(0x43c),null),E(this,_0x486443(0x1c3),null),E(this,'_unitId',null),E(this,_0x486443(0x51c),null),_0x492f3d&&this['setShapeProps'](_0x492f3d);}[_0x29d1be(0x4b5)](){const _0x34cadc=_0x29d1be;return{'unitId':this['_unitId'],'subUnitId':this[_0x34cadc(0x51c)],'drawingId':this['_shapeId']};}[_0x29d1be(0x494)](_0x38b6b4){const _0x9e7af1=_0x29d1be;_0x38b6b4[_0x9e7af1(0x1cf)]!==void 0x0&&(this[_0x9e7af1(0x43c)]=_0x38b6b4[_0x9e7af1(0x1cf)]),_0x38b6b4['adjName']!==void 0x0&&(this[_0x9e7af1(0x1c3)]=_0x38b6b4[_0x9e7af1(0x48c)]),_0x38b6b4['unitId']!==void 0x0&&(this[_0x9e7af1(0x4a7)]=_0x38b6b4[_0x9e7af1(0x448)]),_0x38b6b4[_0x9e7af1(0x21d)]!==void 0x0&&(this['_subUnitId']=_0x38b6b4[_0x9e7af1(0x21d)]),this[_0x9e7af1(0x4fc)]({'width':_0x38b6b4[_0x9e7af1(0x2b0)],'height':_0x38b6b4[_0x9e7af1(0x1bb)]});}[_0x29d1be(0x299)](_0x259078){const _0x30c0f4=_0x29d1be;c[_0x30c0f4(0x3cf)][_0x30c0f4(0x335)](_0x259078,{'radius':n[_0x30c0f4(0x1d8)][_0x30c0f4(0x30d)],'fill':n[_0x30c0f4(0x1d8)][_0x30c0f4(0x2a2)],'stroke':n[_0x30c0f4(0x1d8)][_0x30c0f4(0x1a4)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x439b05,_0x11c310){return function(_0xde4e7b,_0x304ad9){_0x11c310(_0xde4e7b,_0x304ad9,_0x439b05);};}function A(_0x4e06f9,_0x11c8ab,_0x4b4671,_0x4e54f6){const _0x536d19=_0x29d1be;var _0xac7aa7=arguments[_0x536d19(0x1d6)],_0x30fe38=_0xac7aa7<0x3?_0x11c8ab:_0x4e54f6===null?_0x4e54f6=Object[_0x536d19(0x4a2)](_0x11c8ab,_0x4b4671):_0x4e54f6,_0x113035;if(typeof Reflect=='object'&&typeof Reflect[_0x536d19(0x29c)]==_0x536d19(0x3bb))_0x30fe38=Reflect['decorate'](_0x4e06f9,_0x11c8ab,_0x4b4671,_0x4e54f6);else{for(var _0x113f0e=_0x4e06f9['length']-0x1;_0x113f0e>=0x0;_0x113f0e--)(_0x113035=_0x4e06f9[_0x113f0e])&&(_0x30fe38=(_0xac7aa7<0x3?_0x113035(_0x30fe38):_0xac7aa7>0x3?_0x113035(_0x11c8ab,_0x4b4671,_0x30fe38):_0x113035(_0x11c8ab,_0x4b4671))||_0x30fe38);}return _0xac7aa7>0x3&&_0x30fe38&&Object[_0x536d19(0x31f)](_0x11c8ab,_0x4b4671,_0x30fe38),_0x30fe38;}let j=class extends a[_0x29d1be(0x520)]{constructor(_0x20cf5a,_0x4e704e,_0x384056,_0x62e213,_0x19253d,_0x2d1f29){const _0x389821=_0x29d1be;super(),this['_drawingManagerService']=_0x20cf5a,this['_sheetsShapeService']=_0x4e704e,this[_0x389821(0x307)]=_0x384056,this[_0x389821(0x39b)]=_0x62e213,this[_0x389821(0x44c)]=_0x19253d,this[_0x389821(0x376)]=_0x2d1f29,E(this,_0x389821(0x1eb),new Map()),this['disposeWithMe'](this[_0x389821(0x376)][_0x389821(0x28d)][_0x389821(0x39c)](_0x86b10c=>{const _0x54ac08=_0x389821;var _0x45adfb;(_0x45adfb=this[_0x54ac08(0x1eb)][_0x54ac08(0x264)](this[_0x54ac08(0x33e)](_0x86b10c[_0x54ac08(0x448)],_0x86b10c[_0x54ac08(0x21d)],_0x86b10c['shapeId'])))==null||_0x45adfb['forEach'](_0x23bc20=>_0x23bc20[_0x54ac08(0x380)](_0x86b10c[_0x54ac08(0x2e3)],_0x86b10c[_0x54ac08(0x2a4)]));})),this[_0x389821(0x289)](this[_0x389821(0x263)][_0x389821(0x4ab)]['subscribe'](_0x30c23b=>{const _0x342a3a=_0x389821;_0x30c23b[_0x342a3a(0x1dc)](_0x1ba340=>{const _0x17bbae=_0x342a3a;this[_0x17bbae(0x376)][_0x17bbae(0x269)]({'unitId':_0x1ba340[_0x17bbae(0x448)],'subUnitId':_0x1ba340[_0x17bbae(0x21d)],'shapeId':_0x1ba340[_0x17bbae(0x1e6)]}),this[_0x17bbae(0x1eb)][_0x17bbae(0x33c)](this[_0x17bbae(0x33e)](_0x1ba340[_0x17bbae(0x448)],_0x1ba340[_0x17bbae(0x21d)],_0x1ba340[_0x17bbae(0x1e6)]));});}));}[_0x29d1be(0x246)](_0x4ba9e0,_0x2546c2,_0x3fe2d5){const _0x370464=_0x29d1be;let {transform:_0x63782b,drawingType:_0x17a136,srcRect:_0x536757,prstGeom:_0x5ed09d,groupId:_0x39b172,unitId:_0x24ec33,subUnitId:_0x1514d0,drawingId:_0x48dc31,isMultiTransform:_0x5a5922,transforms:_0x1c33b6,hidden:_0x49395d,selectable:_0x33e2a9}=_0x4ba9e0;if(_0x17a136!==a[_0x370464(0x4e8)][_0x370464(0x41d)]||!this[_0x370464(0x263)][_0x370464(0x1fa)]()||_0x63782b==null)return;let _0x349cd4=this[_0x370464(0x263)]['getDrawingEditable'](),_0x1e71b7=_0x5a5922&&_0x1c33b6?_0x1c33b6:[_0x63782b],_0x7ced9e=[];for(let _0x17fea3 of _0x1e71b7){let {left:_0x54faaf,top:_0x4fc564,width:_0xcb7fcf,height:_0x1238f4,angle:_0x1ebbea,flipX:_0x486984,flipY:_0x5c285a,skewX:_0x270931,skewY:_0x5898c4}=_0x17fea3,_0x1f8ebe=_0x1e71b7[_0x370464(0x350)](_0x17fea3),_0x1dc1b3=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x24ec33,'subUnitId':_0x1514d0,'drawingId':_0x48dc31},_0x5a5922?_0x1f8ebe:void 0x0),_0x340a9a=_0x2546c2[_0x370464(0x467)](_0x1dc1b3);if(_0x340a9a!=null){let _0x2ff5ef={'unitId':_0x24ec33,'subUnitId':_0x1514d0,'shapeId':_0x48dc31};_0x340a9a instanceof D&&this[_0x370464(0x4c6)](_0x340a9a,_0x2ff5ef),_0x340a9a['transformByState']({'left':_0x54faaf,'top':_0x4fc564,'width':_0xcb7fcf,'height':_0x1238f4,'angle':_0x1ebbea,'flipX':_0x486984,'flipY':_0x5c285a,'skewX':_0x270931,'skewY':_0x5898c4});continue;}let _0xe10f59=this['_drawingManagerService'][_0x370464(0x46d)](_0x24ec33,_0x1514d0),_0x479780=_0xe10f59[_0x370464(0x350)](_0x48dc31);if(_0x2546c2['getObjectIncludeInGroup'](_0x1dc1b3)||!this['_drawingManagerService'][_0x370464(0x1fa)]())continue;let _0x5c3051=this[_0x370464(0x1a8)][_0x370464(0x44f)](_0x24ec33,_0x1514d0,_0x48dc31);if(!_0x5c3051)continue;let _0x4c7296=(0x0,n[_0x370464(0x3c7)])(_0x5c3051['getShapeType']())?{...e[_0x370464(0x3d9)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x370464(0x3d9)],_0x23a043=_0x5c3051['getShapeData']()['formulaBinding'],_0x3f3a62={'unitId':_0x24ec33,'subUnitId':_0x1514d0,'shapeId':_0x48dc31};_0x23a043&&this[_0x370464(0x376)][_0x370464(0x248)](_0x3f3a62,_0x23a043);let _0x32f4e9=new D(_0x1dc1b3,{..._0x17fea3,'zIndex':_0x479780===-0x1?_0xe10f59[_0x370464(0x1d6)]-0x1:_0x479780,'shapeModel':_0x5c3051,'localeService':this[_0x370464(0x307)],'shapeId':_0x48dc31,'unitId':_0x24ec33,'subUnitId':_0x1514d0,'visible':_0x49395d!==!0x0,'evented':_0x33e2a9!==!0x1,'formulaPresentation':_0x23a043?this[_0x370464(0x376)][_0x370464(0x19f)](_0x3f3a62):void 0x0,'animateFormulaPresentation':(_0x23a043==null?void 0x0:_0x23a043['animationEnabled'])!==!0x1,'transformerConfig':_0x4c7296});if(_0x23a043){let _0x3c1d89=this['_formulaKey'](_0x24ec33,_0x1514d0,_0x48dc31),_0x3a0129=this['_formulaShapes'][_0x370464(0x264)](_0x3c1d89)??new Set();_0x3a0129[_0x370464(0x3a2)](_0x32f4e9),this[_0x370464(0x1eb)][_0x370464(0x26e)](_0x3c1d89,_0x3a0129);}_0x2546c2['addObject'](_0x32f4e9,c[_0x370464(0x3a5)]),_0x349cd4&&_0x2546c2[_0x370464(0x386)](_0x32f4e9),_0x39b172&&(0x0,d[_0x370464(0x31a)])({'drawingId':_0x39b172,'unitId':_0x24ec33,'subUnitId':_0x1514d0},_0x32f4e9,_0x2546c2,this[_0x370464(0x263)]),_0x5ed09d!=null&&_0x32f4e9[_0x370464(0x36a)](_0x5ed09d),_0x536757!=null&&_0x32f4e9[_0x370464(0x401)](_0x536757);let _0x4c5899=this[_0x370464(0x257)](_0x32f4e9,_0x5c3051['getShapeData']());if(_0x4c5899){var _0x5776cd;_0x3fe2d5==null||(_0x5776cd=_0x3fe2d5[_0x370464(0x2bc)])==null||_0x5776cd['add'](_0x4c5899);}_0x7ced9e[_0x370464(0x25c)](_0x32f4e9);}return _0x7ced9e;}[_0x29d1be(0x33e)](_0x4efb39,_0x476914,_0x294ba6){return _0x4efb39+'\x00'+_0x476914+'\x00'+_0x294ba6;}[_0x29d1be(0x4c6)](_0x3f5961,_0x22f132){const _0x1a8aa9=_0x29d1be;let _0x5b2625=this[_0x1a8aa9(0x1a8)][_0x1a8aa9(0x44f)](_0x22f132['unitId'],_0x22f132[_0x1a8aa9(0x21d)],_0x22f132[_0x1a8aa9(0x1cf)]),_0x31b1a2=_0x5b2625==null?void 0x0:_0x5b2625[_0x1a8aa9(0x50e)]()[_0x1a8aa9(0x3e8)],_0x5e9578=this[_0x1a8aa9(0x33e)](_0x22f132[_0x1a8aa9(0x448)],_0x22f132['subUnitId'],_0x22f132[_0x1a8aa9(0x1cf)]);if(_0x31b1a2){this[_0x1a8aa9(0x376)][_0x1a8aa9(0x248)](_0x22f132,_0x31b1a2);let _0x44ade6=this[_0x1a8aa9(0x1eb)]['get'](_0x5e9578)??new Set();_0x44ade6[_0x1a8aa9(0x3a2)](_0x3f5961),this[_0x1a8aa9(0x1eb)][_0x1a8aa9(0x26e)](_0x5e9578,_0x44ade6);}else{var _0x321a49;this[_0x1a8aa9(0x376)][_0x1a8aa9(0x269)](_0x22f132),(_0x321a49=this['_formulaShapes'][_0x1a8aa9(0x264)](_0x5e9578))==null||_0x321a49[_0x1a8aa9(0x33c)](_0x3f5961);}_0x3f5961[_0x1a8aa9(0x380)](_0x31b1a2?this[_0x1a8aa9(0x376)]['getPresentation'](_0x22f132):void 0x0,(_0x31b1a2==null?void 0x0:_0x31b1a2[_0x1a8aa9(0x2a4)])!==!0x1);}['refreshShapeFillImage'](_0x2efc5b){const _0x365992=_0x29d1be;let _0x5a4eb7=_0x2efc5b[_0x365992(0x1df)][_0x365992(0x50e)](),_0x7ecef2=_0x5a4eb7[_0x365992(0x44b)];!_0x7ecef2||_0x7ecef2[_0x365992(0x1f4)]!==n[_0x365992(0x4cf)][_0x365992(0x521)]||!_0x7ecef2[_0x365992(0x23f)]?_0x2efc5b[_0x365992(0x23d)](void 0x0):this[_0x365992(0x257)](_0x2efc5b,_0x5a4eb7);}[_0x29d1be(0x257)](_0xf3093c,_0x15f950){const _0x1f3453=_0x29d1be;let _0x14c7ca=_0x15f950[_0x1f3453(0x44b)];if(!_0x14c7ca||_0x14c7ca[_0x1f3453(0x1f4)]!==n['ShapeFillEnum'][_0x1f3453(0x521)]||!_0x14c7ca[_0x1f3453(0x23f)])return;let _0x23efcc=_0x14c7ca[_0x1f3453(0x23f)],_0x3c7fd3=_0x14c7ca['fillImageSourceType']??n[_0x1f3453(0x415)]['URL'],_0x4f73fb=this['_imageIoService'][_0x1f3453(0x33b)](_0x23efcc,_0x3c7fd3);if(_0x4f73fb)_0xf3093c[_0x1f3453(0x23d)](_0x4f73fb);else return this[_0x1f3453(0x1dd)](_0xf3093c,_0x23efcc,_0x3c7fd3);}async[_0x29d1be(0x1dd)](_0x598ea2,_0xf06ef7,_0x2dcf49){const _0x2e0bff=_0x29d1be;let _0x127220;try{if(_0x2dcf49===n[_0x2e0bff(0x415)][_0x2e0bff(0x402)])_0x127220=await this[_0x2e0bff(0x39b)]['getImage'](_0xf06ef7);else{if(_0x2dcf49===n['ImageSourceTypeEnum'][_0x2e0bff(0x503)])try{_0x127220=await this['_urlImageService'][_0x2e0bff(0x25d)](_0xf06ef7);}catch{_0x127220=_0xf06ef7;}else _0x127220=_0xf06ef7;}}catch(_0x527e64){console['error'](_0x2e0bff(0x1e5),_0x527e64);return;}await new Promise(_0x399092=>{const _0xf6dca3=_0x2e0bff;let _0x7b6f98=new window['Image']();_0x7b6f98['onload']=()=>{const _0x3b8e72=_0x6cf2;this['_imageIoService'][_0x3b8e72(0x462)](_0xf06ef7,_0x2dcf49,_0x7b6f98),_0x598ea2['setFillImage'](_0x7b6f98),_0x399092();},_0x7b6f98[_0xf6dca3(0x354)]=()=>{console['error']('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0xf06ef7),_0x399092();},_0x7b6f98['src']=_0x127220;});}};j=A([k(0x0,s[_0x29d1be(0x231)]),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x223)])),k(0x3,a[_0x29d1be(0x2c0)]),k(0x4,a[_0x29d1be(0x4ce)]),k(0x5,(0x0,a['Inject'])(r[_0x29d1be(0x3b7)]))],j);let M=class extends a[_0x29d1be(0x520)]{constructor(_0x255547,_0x530644,_0x3cdac4,_0x356830,_0x4307d7,_0x4a618a){const _0x1cbbbe=_0x29d1be;super(),this[_0x1cbbbe(0x263)]=_0x255547,this[_0x1cbbbe(0x1a8)]=_0x530644,this[_0x1cbbbe(0x399)]=_0x3cdac4,this[_0x1cbbbe(0x300)]=_0x356830,this['_univerInstanceService']=_0x4307d7,this['_commandService']=_0x4a618a,E(this,'_activeShapeId',null),E(this,_0x1cbbbe(0x4a7),null),E(this,'_subUnitId',null),E(this,_0x1cbbbe(0x428),void 0x0),E(this,_0x1cbbbe(0x417),[]),E(this,_0x1cbbbe(0x1fc),0x0),E(this,'_baseShapeTop',0x0),E(this,_0x1cbbbe(0x3bf),0x0),E(this,_0x1cbbbe(0x4d8),0x0),E(this,_0x1cbbbe(0x295),!0x1),E(this,_0x1cbbbe(0x2a8),void 0x0),E(this,_0x1cbbbe(0x356),void 0x0),E(this,_0x1cbbbe(0x388),void 0x0),E(this,_0x1cbbbe(0x2af),void 0x0),E(this,_0x1cbbbe(0x4ee),!0x1),this[_0x1cbbbe(0x4f9)](),this[_0x1cbbbe(0x2c3)]();}[_0x29d1be(0x454)](_0x21bfa1,_0x43949a,_0x361513){const _0x2af471=_0x29d1be;let _0x2ac75a=this[_0x2af471(0x1a8)]['getShapeModel'](_0x21bfa1,_0x43949a,_0x361513);if(_0x2ac75a)return _0x2ac75a[_0x2af471(0x486)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){const _0x5e878a=_0x29d1be;this[_0x5e878a(0x232)](!0x0);}[_0x29d1be(0x34a)](_0x320a69){const _0xe5122a=_0x29d1be;this[_0xe5122a(0x4ee)]=_0x320a69;}['_getShapeAdjustInfosById'](_0x5365e7,_0x3e51d4,_0x5797e6,_0x767b1){const _0x329253=_0x29d1be;let _0x439bb3=this['_sheetsShapeService'][_0x329253(0x44f)](_0x5365e7,_0x3e51d4,_0x5797e6);if(_0x439bb3)return _0x439bb3['getAdjustInfoByName'](_0x767b1);}['_createShapeAdjustControls'](_0x1bb8d4=!0x1){const _0x360c6b=_0x29d1be;if(this[_0x360c6b(0x4a7)]===null||this[_0x360c6b(0x51c)]===null||this[_0x360c6b(0x35c)]===null)return;let _0x3582d1=this[_0x360c6b(0x399)][_0x360c6b(0x2e5)](this[_0x360c6b(0x4a7)]);if(!_0x3582d1||!_0x3582d1[_0x360c6b(0x4a1)](l['SheetSkeletonManagerService'])['getCurrentSkeleton']())return;let {scene:_0x36b2bc}=_0x3582d1,_0x2f9982={'unitId':this['_unitId'],'subUnitId':this[_0x360c6b(0x51c)],'drawingId':this[_0x360c6b(0x35c)]},_0x5317d4=this['_drawingManagerService'][_0x360c6b(0x4c9)](_0x2f9982),{transform:_0x23d820}=_0x5317d4;if(!_0x23d820||_0x5317d4[_0x360c6b(0x458)]!==a[_0x360c6b(0x4e8)][_0x360c6b(0x41d)])return;let {left:_0x18c616,top:_0x254f10,width:_0x3bbfbb,height:_0x23cdb9,flipX:_0x3bebfb,flipY:_0xe7641b,angle:_0x5783e2=0x0}=_0x23d820;if(_0x18c616===void 0x0||_0x254f10===void 0x0)return;if(_0x1bb8d4){let _0x552d96=this['_sheetsShapeService'][_0x360c6b(0x44f)](this[_0x360c6b(0x4a7)],this[_0x360c6b(0x51c)],this[_0x360c6b(0x35c)]);_0x552d96==null||_0x552d96[_0x360c6b(0x515)]({'width':_0x3bbfbb??0x0,'height':_0x23cdb9??0x0}),this[_0x360c6b(0x428)]=_0x552d96==null?void 0x0:_0x552d96[_0x360c6b(0x486)]();}let _0x34c7a6=this[_0x360c6b(0x428)];for(let _0x5aa6e8=0x0;_0x5aa6e8<_0x34c7a6[_0x360c6b(0x1d6)];_0x5aa6e8++){let _0x53c9d5=_0x34c7a6[_0x5aa6e8],_0x5a3c36=_0x53c9d5['x'],_0x42aedb=_0x53c9d5['y'];if(_0x3bebfb&&(_0x5a3c36=(_0x3bbfbb||0x0)-_0x5a3c36),_0xe7641b&&(_0x42aedb=(_0x23cdb9||0x0)-_0x42aedb),_0x5783e2!==0x0){let _0x29377b=(_0x3bbfbb||0x0)/0x2,_0x2043e0=(_0x23cdb9||0x0)/0x2,_0x1b9b4a=_0x5783e2*Math['PI']/0xb4,_0x2af41e=Math['cos'](_0x1b9b4a),_0x1b2785=Math[_0x360c6b(0x2f8)](_0x1b9b4a),_0x5271cf=_0x5a3c36-_0x29377b,_0x5a7b46=_0x42aedb-_0x2043e0;_0x5a3c36=_0x29377b+(_0x5271cf*_0x2af41e-_0x5a7b46*_0x1b2785),_0x42aedb=_0x2043e0+(_0x5271cf*_0x1b2785+_0x5a7b46*_0x2af41e);}let _0x2c9f8d={'x':_0x5a3c36,'y':_0x42aedb,'adjName':_0x53c9d5[_0x360c6b(0x48c)]};this['_addShapeAdjustControl'](_0x36b2bc,_0x2c9f8d,_0x2c9f8d[_0x360c6b(0x48c)],_0x18c616,_0x254f10,this['_unitId'],this[_0x360c6b(0x51c)]);}}['_updateShapeAdjustControls'](_0x12a4b5=!0x1){const _0x40cc3b=_0x29d1be;_0x12a4b5&&(this[_0x40cc3b(0x3d7)](),this[_0x40cc3b(0x4da)](_0x12a4b5));}[_0x29d1be(0x215)](_0x57b516,_0x44474f,_0x3594ee,_0x1a414d,_0x3a4da2,_0x12b970,_0x2cbea0){const _0x213511=_0x29d1be;if(!this[_0x213511(0x35c)])return;let _0xdced21=_0x57b516[_0x213511(0x467)]('shape-adjust-point-'+this[_0x213511(0x35c)]+'-'+_0x3594ee);if(_0xdced21){_0xdced21[_0x213511(0x4fc)]({'left':_0x44474f['x']+_0x1a414d-n[_0x213511(0x1d8)]['adjHandleSize'],'top':_0x44474f['y']+_0x3a4da2-n[_0x213511(0x1d8)][_0x213511(0x30d)]});return;}let _0x2c6ed8={'left':_0x44474f['x']+_0x1a414d-n[_0x213511(0x1d8)]['adjHandleSize'],'top':_0x44474f['y']+_0x3a4da2-n['ShapeDefaultConfig'][_0x213511(0x30d)],'adjName':_0x3594ee,'shapeId':this['_activeShapeId'],'unitId':_0x12b970,'subUnitId':_0x2cbea0,'width':n[_0x213511(0x1d8)]['adjHandleSize']+0x8,'height':n['ShapeDefaultConfig'][_0x213511(0x30d)]+0x8,'zIndex':c[_0x213511(0x3a5)]+0x1,'evented':!0x0},_0x26fed0=new O(_0x213511(0x42d)+this[_0x213511(0x35c)]+'-'+_0x3594ee,_0x2c6ed8);this[_0x213511(0x417)]['push'](_0x26fed0),this[_0x213511(0x4e5)](_0x26fed0,_0x57b516,_0x3594ee),_0x57b516[_0x213511(0x1da)](_0x26fed0,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x29d1be(0x3d7)](){const _0x473426=_0x29d1be;this[_0x473426(0x417)][_0x473426(0x1d6)]!==0x0&&(this[_0x473426(0x417)][_0x473426(0x1dc)](_0x2b408e=>{const _0x5ab098=_0x473426;_0x2b408e[_0x5ab098(0x361)]();}),this['_shapes']=[]);}[_0x29d1be(0x519)](){const _0x127aee=_0x29d1be;this[_0x127aee(0x4da)]();}['_getScrollInfo'](_0x4da4c3,_0x346d6a){const _0x4284b8=_0x29d1be;var _0x2bf777;let _0x567240={'x':0x0,'y':0x0};if(!_0x4da4c3||!_0x346d6a)return _0x567240;let _0x3018cb=this[_0x4284b8(0x399)][_0x4284b8(0x2e5)](_0x4da4c3);if(!_0x3018cb||!_0x3018cb[_0x4284b8(0x4a1)](l[_0x4284b8(0x31b)])[_0x4284b8(0x2ab)](_0x346d6a))return _0x567240;let _0x2080e5=_0x3018cb['with'](l[_0x4284b8(0x1b8)]),_0x35a1f7=_0x2080e5==null?void 0x0:_0x2080e5[_0x4284b8(0x4ec)]();if(!_0x35a1f7)return _0x567240;let _0x5cee05=(_0x2bf777=this[_0x4284b8(0x3d3)][_0x4284b8(0x298)](_0x4da4c3))==null?void 0x0:_0x2bf777[_0x4284b8(0x32e)](_0x346d6a);if(!_0x5cee05)return _0x567240;let _0x9e0c45=(0x0,l[_0x4284b8(0x230)])(_0x35a1f7[_0x4284b8(0x497)],_0x35a1f7[_0x4284b8(0x34b)],_0x3018cb[_0x4284b8(0x2ca)],_0x5cee05);return _0x9e0c45?{'x':_0x9e0c45['viewportScrollX'],'y':_0x9e0c45[_0x4284b8(0x27c)]}:_0x567240;}['_getZoomRatio'](_0x22f270,_0xc474d8){const _0x100233=_0x29d1be;var _0x3fd40b;let _0x199709=(_0x3fd40b=this[_0x100233(0x3d3)][_0x100233(0x298)](_0x22f270))==null?void 0x0:_0x3fd40b[_0x100233(0x32e)](_0xc474d8);return(_0x199709==null?void 0x0:_0x199709[_0x100233(0x1ca)]())??0x1;}[_0x29d1be(0x4e5)](_0x433b04,_0x16e55d,_0x47219a){const _0x5c040a=_0x29d1be;this[_0x5c040a(0x289)]((0x0,a[_0x5c040a(0x3dd)])(_0x433b04['onPointerDown$'][_0x5c040a(0x292)]((_0x229f50,_0x278c11)=>{const _0x2067f2=_0x5c040a;var _0x5f3a8c,_0x2f683c,_0x532f2c,_0x5817fa;let _0x506ae4=_0x433b04[_0x2067f2(0x4b5)]();this[_0x2067f2(0x2a8)]=this['_getShapeAdjustInfosById'](_0x506ae4[_0x2067f2(0x448)],_0x506ae4['subUnitId'],_0x506ae4['drawingId'],_0x47219a),this[_0x2067f2(0x356)]=this[_0x2067f2(0x1a8)][_0x2067f2(0x44f)](_0x506ae4[_0x2067f2(0x448)],_0x506ae4[_0x2067f2(0x21d)],_0x506ae4[_0x2067f2(0x1e6)]);let _0x5ebc2c=this[_0x2067f2(0x263)][_0x2067f2(0x4c9)]({'unitId':this[_0x2067f2(0x4a7)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2067f2(0x35c)]}),{transform:_0x2ff300}=_0x5ebc2c;if(_0x2ff300){let {left:_0x3f1519,top:_0x21aa64,width:_0x1cda40,height:_0x36c653}=_0x2ff300;this[_0x2067f2(0x1fc)]=_0x3f1519||0x0,this[_0x2067f2(0x297)]=_0x21aa64||0x0,this[_0x2067f2(0x3bf)]=_0x1cda40||0x0,this[_0x2067f2(0x4d8)]=_0x36c653||0x0;}let _0x2351b3=!!((_0x5f3a8c=_0x5ebc2c['transform'])!=null&&_0x5f3a8c[_0x2067f2(0x2de)]),_0x2032bd=!!((_0x2f683c=_0x5ebc2c[_0x2067f2(0x334)])!=null&&_0x2f683c[_0x2067f2(0x33f)]),_0x10900a=((_0x532f2c=_0x5ebc2c[_0x2067f2(0x334)])==null?void 0x0:_0x532f2c[_0x2067f2(0x4ef)])||0x0;this[_0x2067f2(0x295)]=!0x0,_0x16e55d['disableObjectsEvent']();let _0x936592={...((_0x5817fa=this[_0x2067f2(0x2a8)])==null?void 0x0:_0x5817fa[_0x2067f2(0x452)])??{}};this[_0x2067f2(0x388)]=_0x16e55d[_0x2067f2(0x3ea)][_0x2067f2(0x292)]((_0x1d6e9b,_0x1000f3)=>{const _0x2b4299=_0x2067f2;if(!this[_0x2b4299(0x295)])return;let {offsetX:_0x40ab78,offsetY:_0x3a0403}=_0x1d6e9b,_0x4aec5a=this['_activeAdjustInfo'];if(this[_0x2b4299(0x356)]&&_0x4aec5a){_0x16e55d['disableObjectsEvent'](),_0x16e55d[_0x2b4299(0x256)](c[_0x2b4299(0x4af)]['CROSSHAIR']);let _0x236546={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x2b4299(0x4d8)]},_0x265b02=this[_0x2b4299(0x1c8)](this[_0x2b4299(0x4a7)],this[_0x2b4299(0x51c)]),_0x35675b=this[_0x2b4299(0x419)](this[_0x2b4299(0x4a7)],this[_0x2b4299(0x51c)]),_0xdb6644=_0x40ab78/_0x35675b+_0x265b02['x']-this[_0x2b4299(0x1fc)],_0x3675f7=_0x3a0403/_0x35675b+_0x265b02['y']-this[_0x2b4299(0x297)];if(_0x10900a!==0x0){let _0x479f5b=this[_0x2b4299(0x3bf)]/0x2,_0x1b93a7=this[_0x2b4299(0x4d8)]/0x2,_0x5230bb=_0x10900a*Math['PI']/0xb4,_0x389d51=Math[_0x2b4299(0x37e)](_0x5230bb),_0x1f55e0=Math[_0x2b4299(0x2f8)](_0x5230bb),_0x545570=_0xdb6644-_0x479f5b,_0x4a2735=_0x3675f7-_0x1b93a7;_0xdb6644=_0x479f5b+(_0x545570*_0x389d51+_0x4a2735*_0x1f55e0),_0x3675f7=_0x1b93a7+(-_0x545570*_0x1f55e0+_0x4a2735*_0x389d51);}_0x2351b3&&(_0xdb6644=this[_0x2b4299(0x3bf)]-_0xdb6644),_0x2032bd&&(_0x3675f7=this[_0x2b4299(0x4d8)]-_0x3675f7);let _0x5ae2b4={'x':_0xdb6644,'y':_0x3675f7},_0x2d31b6=this[_0x2b4299(0x356)][_0x2b4299(0x481)](_0x236546,_0x5ae2b4,_0x4aec5a,_0x2351b3,_0x2032bd);if(Object[_0x2b4299(0x450)](_0x2d31b6)[_0x2b4299(0x1d6)]===0x0)return;for(let [_0xd1b43c,_0x4e3db3]of Object[_0x2b4299(0x261)](_0x2d31b6))this[_0x2b4299(0x356)][_0x2b4299(0x426)](_0xd1b43c,_0x4e3db3);this[_0x2b4299(0x356)][_0x2b4299(0x515)]({'width':this[_0x2b4299(0x3bf)],'height':this[_0x2b4299(0x4d8)]});let _0x21dd5a=this[_0x2b4299(0x263)][_0x2b4299(0x4c9)]({'unitId':_0x506ae4[_0x2b4299(0x448)],'subUnitId':_0x506ae4[_0x2b4299(0x21d)],'drawingId':_0x506ae4[_0x2b4299(0x1e6)]});_0x21dd5a&&(this[_0x2b4299(0x300)][_0x2b4299(0x246)](_0x21dd5a,_0x16e55d),this[_0x2b4299(0x428)]=this[_0x2b4299(0x454)](_0x506ae4[_0x2b4299(0x448)],_0x506ae4[_0x2b4299(0x21d)],_0x506ae4['drawingId']),this[_0x2b4299(0x519)]());}_0x1000f3['stopPropagation']();}),this[_0x2067f2(0x2af)]=_0x16e55d['onPointerUp$'][_0x2067f2(0x292)]((_0x652014,_0x24779f)=>{const _0x468fe2=_0x2067f2;this['_adjHandlerPointerMove'][_0x468fe2(0x325)](),this[_0x468fe2(0x2af)][_0x468fe2(0x325)](),_0x16e55d['resetCursor']();let _0x134b95=this[_0x468fe2(0x2a8)];if(_0x134b95){let _0x167d68=_0x506ae4[_0x468fe2(0x448)],_0x46728e=_0x506ae4[_0x468fe2(0x21d)],_0x5c9b75=_0x506ae4[_0x468fe2(0x1e6)],_0x5c01c5={};for(let _0x1ee0a1 of Object[_0x468fe2(0x450)](_0x134b95[_0x468fe2(0x452)])){var _0x3710fd;let _0x325aa6=(_0x3710fd=this['_activeShapeModel'])==null?void 0x0:_0x3710fd[_0x468fe2(0x476)](_0x1ee0a1);_0x325aa6!==void 0x0&&(_0x5c01c5[_0x1ee0a1]=_0x325aa6);}Object['keys'](_0x5c01c5)[_0x468fe2(0x1d6)]>0x0&&C(this[_0x468fe2(0x36d)],_0x167d68,_0x46728e,_0x5c9b75,{'oldShapeData':{'adjustValues':_0x936592}},{'adjustValues':_0x5c01c5});}this[_0x468fe2(0x2a8)]=void 0x0,this[_0x468fe2(0x356)]=void 0x0,this[_0x468fe2(0x295)]=!0x1,_0x24779f['stopPropagation'](),_0x16e55d['enableObjectsEvent']();}),_0x278c11[_0x2067f2(0x2dc)]();})));}[_0x29d1be(0x2c3)](){const _0x430353=_0x29d1be;let _0x1cc042=this[_0x430353(0x3d3)][_0x430353(0x19e)](a['UniverInstanceType'][_0x430353(0x463)]);this[_0x430353(0x289)](_0x1cc042[_0x430353(0x24b)]((0x0,u[_0x430353(0x516)])(_0x2b4a28=>_0x2b4a28?_0x2b4a28['activeSheet$'][_0x430353(0x24b)]((0x0,u[_0x430353(0x516)])(_0x555602=>{const _0x4ff1fb=_0x430353;if(!_0x555602)return u[_0x4ff1fb(0x32b)];let _0x511e83=_0x2b4a28[_0x4ff1fb(0x1b1)](),_0x220434=this[_0x4ff1fb(0x399)][_0x4ff1fb(0x2e5)](_0x511e83),_0x4a8118=_0x220434==null?void 0x0:_0x220434[_0x4ff1fb(0x2ca)];return _0x4a8118?(0x0,u['of'])(_0x4a8118):u[_0x4ff1fb(0x32b)];})):u[_0x430353(0x32b)]))[_0x430353(0x39c)](_0x46690f=>{const _0x569331=_0x430353;let _0x382253=_0x46690f[_0x569331(0x527)]();this['disposeWithMe'](_0x46690f['onPointerMove$'][_0x569331(0x292)](()=>{const _0x3a1c01=_0x569331;this[_0x3a1c01(0x4ee)];})),this[_0x569331(0x289)](_0x382253['changeStart$'][_0x569331(0x39c)](_0x16081b=>{const _0x434857=_0x569331;let {objects:_0x54303d}=_0x16081b;this['_createShapeAdjustControls'](),_0x54303d!==null&&_0x54303d[_0x434857(0x2fe)]===0x1&&_0x54303d[_0x434857(0x4bc)]()[_0x434857(0x3f7)]()[_0x434857(0x37f)]instanceof D&&this[_0x434857(0x34a)](!0x0);})),this[_0x569331(0x289)](_0x382253['changing$'][_0x569331(0x39c)](()=>{const _0x59b020=_0x569331;this[_0x59b020(0x4ee)]&&this[_0x59b020(0x3d7)]();})),this[_0x569331(0x289)](_0x46690f[_0x569331(0x252)][_0x569331(0x292)](()=>{const _0x1183f6=_0x569331;this[_0x1183f6(0x4ee)]&&(this[_0x1183f6(0x34a)](!0x1),this[_0x1183f6(0x4da)]());})),this['disposeWithMe'](_0x382253['changeEnd$'][_0x569331(0x39c)](()=>{const _0x500075=_0x569331;this[_0x500075(0x4a7)]&&this[_0x500075(0x51c)]&&this[_0x500075(0x35c)]&&this[_0x500075(0x263)]['getDrawingByParam']({'unitId':this[_0x500075(0x4a7)],'subUnitId':this[_0x500075(0x51c)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this[_0x500075(0x454)](this[_0x500075(0x4a7)],this[_0x500075(0x51c)],this['_activeShapeId']),this[_0x500075(0x519)]());}));}));}[_0x29d1be(0x4f9)](){const _0x5a02ee=_0x29d1be;this[_0x5a02ee(0x289)](this['_commandService'][_0x5a02ee(0x2da)](_0x802c68=>{const _0x4d9bc0=_0x5a02ee;if(_0x802c68['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let {unitId:_0x4221dc,subUnitId:_0x470544,shapeId:_0x3de264}=_0x802c68[_0x4d9bc0(0x45d)];_0x4221dc===this['_unitId']&&_0x470544===this['_subUnitId']&&_0x3de264===this[_0x4d9bc0(0x35c)]&&this[_0x4d9bc0(0x3ae)]();})),this['disposeWithMe'](this[_0x5a02ee(0x263)][_0x5a02ee(0x32f)][_0x5a02ee(0x39c)](_0x583490=>{const _0x18acad=_0x5a02ee;if(_0x583490[_0x18acad(0x1d6)]===0x1){let _0x37c1d2=_0x583490[0x0];if(_0x37c1d2['drawingType']===a[_0x18acad(0x4e8)][_0x18acad(0x41d)]&&this[_0x18acad(0x3d3)][_0x18acad(0x317)](_0x37c1d2[_0x18acad(0x448)])===a[_0x18acad(0x42c)][_0x18acad(0x463)]){this['_activeShapeId']=_0x37c1d2[_0x18acad(0x1e6)];let {unitId:_0x44de09,subUnitId:_0x45f871}=_0x37c1d2;this[_0x18acad(0x428)]=this[_0x18acad(0x454)](_0x44de09,_0x45f871,this[_0x18acad(0x35c)]),this['_unitId']=_0x44de09,this['_subUnitId']=_0x45f871,this[_0x18acad(0x3d7)](),this[_0x18acad(0x4da)]();return;}}this['_activeShapeId']=null,this[_0x18acad(0x428)]=void 0x0,this[_0x18acad(0x4a7)]=null,this[_0x18acad(0x51c)]=null,this[_0x18acad(0x3d7)]();})),this[_0x5a02ee(0x289)](this[_0x5a02ee(0x263)][_0x5a02ee(0x1e7)][_0x5a02ee(0x39c)](_0x3c5727=>{const _0x3c6ef1=_0x5a02ee;if(_0x3c5727['length']===0x1){var _0x10bb1b;let _0x3c9f37=_0x3c5727[0x0];((_0x10bb1b=this['_drawingManagerService']['getDrawingByParam'](_0x3c9f37))==null?void 0x0:_0x10bb1b[_0x3c6ef1(0x458)])===a[_0x3c6ef1(0x4e8)][_0x3c6ef1(0x41d)]&&this[_0x3c6ef1(0x232)](!0x0);}})),this[_0x5a02ee(0x289)](this[_0x5a02ee(0x263)][_0x5a02ee(0x4ab)][_0x5a02ee(0x39c)](_0x513152=>{const _0x3b7e01=_0x5a02ee;for(let _0x505bfb of _0x513152)this['_activeShapeId']===_0x505bfb['drawingId']&&(this[_0x3b7e01(0x35c)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3b7e01(0x4a7)]=null,this[_0x3b7e01(0x51c)]=null,this[_0x3b7e01(0x3d7)]());}));}};M=A([k(0x0,s['IDrawingManagerService']),k(0x1,(0x0,a['Inject'])(i[_0x29d1be(0x2c7)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(c[_0x29d1be(0x395)])),k(0x3,(0x0,a['Inject'])(j)),k(0x4,a[_0x29d1be(0x2c8)]),k(0x5,a['ICommandService'])],M);const N={'id':_0x29d1be(0x409),'type':a[_0x29d1be(0x1f0)]['OPERATION'],'handler':(_0x55f1ee,_0x3b8075)=>{const _0x12664f=_0x29d1be;let _0x2f5e5d=_0x55f1ee[_0x12664f(0x264)](s[_0x12664f(0x231)]),_0x21b0a4=_0x55f1ee[_0x12664f(0x264)](c[_0x12664f(0x395)]),_0xb56990=_0x55f1ee[_0x12664f(0x264)](M);if(_0x3b8075==null)return!0x0;if(_0x3b8075[_0x12664f(0x1d6)]>0x0){var _0x34fa3e;let _0x5cafe0=(_0x34fa3e=_0x21b0a4[_0x12664f(0x2e5)](_0x3b8075[0x0]['unitId']))==null?void 0x0:_0x34fa3e[_0x12664f(0x2ca)];if(_0x5cafe0){let {unitId:_0x593673,subUnitId:_0x1aa440,drawingId:_0x500e9c}=_0x3b8075[0x0],_0x181345=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x593673,'subUnitId':_0x1aa440,'drawingId':_0x500e9c},void 0x0),_0x350b48=_0x5cafe0['getObjectIncludeInGroup'](_0x181345);if(_0x350b48){var _0x484ff4;(_0x484ff4=_0x21b0a4[_0x12664f(0x2e5)](_0x3b8075[0x0][_0x12664f(0x448)]))==null||(_0x484ff4=_0x484ff4[_0x12664f(0x2ca)][_0x12664f(0x3dc)]())==null||_0x484ff4[_0x12664f(0x3e9)](_0x350b48);}}_0x2f5e5d['focusDrawing'](_0x3b8075),_0xb56990[_0x12664f(0x34a)](!0x1);}return!0x0;}},P={'type':a[_0x29d1be(0x1f0)][_0x29d1be(0x24d)],'id':'sheet.command.menu-insert-shape','handler':async(_0x497106,_0x835263)=>{const _0x4fbd00=_0x29d1be;let _0x25c5e3=(0x0,o[_0x4fbd00(0x3d0)])(_0x497106['get'](a[_0x4fbd00(0x2c8)]));if(!_0x25c5e3)return!0x1;let _0x539daf=_0x497106[_0x4fbd00(0x264)](o[_0x4fbd00(0x2e0)])[_0x4fbd00(0x480)]();if(!_0x539daf)return!0x1;let _0x108c0b=_0x497106[_0x4fbd00(0x264)](a[_0x4fbd00(0x1ba)]),{unitId:_0x60fd08,subUnitId:_0x118d82}=_0x25c5e3,{value:_0x2d88d0,enhanceParams:_0x452844}=_0x835263,{range:_0x220823}=_0x539daf,_0x6bd881={'unitId':_0x60fd08,'subUnitId':_0x118d82,'shapeType':_0x2d88d0,'range':_0x220823,'shapeId':(0x0,a[_0x4fbd00(0x21c)])()};if(_0x452844){let _0x1235ea=(0x0,n[_0x4fbd00(0x3c7)])(_0x2d88d0),_0x34390b=_0x2d88d0===n[_0x4fbd00(0x333)]['Rect'];_0x1235ea&&(_0x452844['startArrow']||_0x452844['endArrow'])&&(_0x6bd881[_0x4fbd00(0x456)]={'ln':{'startArrow':_0x452844[_0x4fbd00(0x320)]?{'type':n[_0x4fbd00(0x1ff)][_0x4fbd00(0x4c8)],'size':n[_0x4fbd00(0x3fb)][_0x4fbd00(0x224)]}:void 0x0,'endArrow':_0x452844[_0x4fbd00(0x282)]?{'type':n[_0x4fbd00(0x1ff)][_0x4fbd00(0x4c8)],'size':n[_0x4fbd00(0x3fb)][_0x4fbd00(0x405)]}:void 0x0}}),_0x34390b&&(_0x452844[_0x4fbd00(0x36c)]||_0x452844[_0x4fbd00(0x25b)])&&(_0x6bd881[_0x4fbd00(0x456)]=(0x0,r[_0x4fbd00(0x20d)])({'fill':{'fillType':n[_0x4fbd00(0x4cf)][_0x4fbd00(0x502)],'color':_0x4fbd00(0x34f)},'isHorizontal':!!_0x452844[_0x4fbd00(0x36c)],'stroke':{'lineStrokeType':n[_0x4fbd00(0x39e)][_0x4fbd00(0x42a)],'width':0x1,'color':_0x4fbd00(0x36b)}}));}let _0x54d0d9=_0x108c0b['syncExecuteCommand'](i[_0x4fbd00(0x318)]['id'],_0x6bd881);return setTimeout(()=>{const _0xe32b4c=_0x4fbd00;_0x108c0b[_0xe32b4c(0x1f6)](N['id'],[{'unitId':_0x60fd08,'subUnitId':_0x118d82,'drawingId':_0x6bd881[_0xe32b4c(0x1cf)]}]);},0xc8),_0x54d0d9;}},F='sheet.shape.edit.panel',I=_0x29d1be(0x337),L=_0x29d1be(0x3c8),R=_0x29d1be(0x1fb),re=(0x0,a[_0x29d1be(0x470)])(_0x29d1be(0x446)),ie='sheet.shape.text.float-menu',ae={'id':_0x29d1be(0x451),'type':a[_0x29d1be(0x1f0)][_0x29d1be(0x24d)],'handler':(_0xd84e9d,_0x1e6257)=>{const _0x1281a2=_0x29d1be;let _0xcd6a0e=_0xd84e9d[_0x1281a2(0x264)](t[_0x1281a2(0x204)]),_0x379ccc=_0xd84e9d[_0x1281a2(0x264)](a[_0x1281a2(0x223)]),_0x484dec=_0xd84e9d[_0x1281a2(0x264)](a['IUniverInstanceService']),_0x1f0a2d=_0xd84e9d[_0x1281a2(0x264)](a[_0x1281a2(0x1ba)]);return(0x0,o['getSheetCommandTarget'])(_0x484dec)?(_0x1e6257==null?void 0x0:_0x1e6257[_0x1281a2(0x37f)])==='close'?(_0xcd6a0e[_0x1281a2(0x39d)](I),!0x0):(_0xcd6a0e[_0x1281a2(0x314)]({'id':I,'header':{'title':_0x379ccc['t'](_0x1281a2(0x1cd))},'children':{'label':I},'onClose':()=>{const _0x1dfc79=_0x1281a2;_0x1f0a2d[_0x1dfc79(0x1f5)](s[_0x1dfc79(0x2e6)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a['CommandType'][_0x29d1be(0x280)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function oe(_0x17b453){const _0x34215f=_0x29d1be;let _0x40afcd=_0x17b453['get'](s[_0x34215f(0x231)])[_0x34215f(0x2fd)](),_0x3477b6=_0x40afcd[_0x34215f(0x1d6)]===0x1?_0x40afcd[0x0]:null;if(!_0x3477b6||_0x3477b6[_0x34215f(0x458)]!==a[_0x34215f(0x4e8)][_0x34215f(0x41d)])return null;let _0x10576d=_0x17b453[_0x34215f(0x264)](i[_0x34215f(0x2c7)]),_0x56b892=_0x10576d['getShapeTypeById'](_0x3477b6['unitId'],_0x3477b6[_0x34215f(0x21d)],_0x3477b6[_0x34215f(0x1e6)]),_0x4da4dc=_0x10576d['getShapeDataById'](_0x3477b6[_0x34215f(0x448)],_0x3477b6[_0x34215f(0x21d)],_0x3477b6['drawingId']);return _0x56b892===void 0x0||!_0x4da4dc?null:{'drawing':_0x3477b6,'shapeData':_0x4da4dc,'shapeType':_0x56b892};}const se={'id':_0x29d1be(0x2c9),'type':a[_0x29d1be(0x1f0)][_0x29d1be(0x280)],'handler':(_0x3a4cfe,_0x383483)=>{const _0x10f324=_0x29d1be;let _0x13634e=oe(_0x3a4cfe),_0x5f0539=(0x0,r['getShapeQuickStylePreset'])((_0x383483==null?void 0x0:_0x383483[_0x10f324(0x48d)])??(_0x383483==null?void 0x0:_0x383483[_0x10f324(0x37f)])??'');if(!_0x13634e||!_0x5f0539||_0x5f0539[_0x10f324(0x2ff)]!==(0x0,r[_0x10f324(0x487)])(_0x13634e['shapeData']))return!0x1;let _0x5701db=(0x0,r[_0x10f324(0x39a)])(_0x13634e[_0x10f324(0x456)],_0x5f0539);if(!_0x5701db)return!0x1;let {drawing:_0x51dc34}=_0x13634e;return _0x3a4cfe[_0x10f324(0x264)](a[_0x10f324(0x1ba)])[_0x10f324(0x1f6)](S['id'],{'unitId':_0x51dc34['unitId'],'subUnitId':_0x51dc34[_0x10f324(0x21d)],'shapeId':_0x51dc34[_0x10f324(0x1e6)],'shapeData':_0x5701db,'oldShapeJSON':{'oldShapeData':_0x13634e[_0x10f324(0x456)]}});}},ce={'id':_0x29d1be(0x50c),'type':a['CommandType']['OPERATION'],'handler':(_0x53238e,_0x4143c4)=>{const _0xecdee3=_0x29d1be;let _0xee623a=oe(_0x53238e),_0x5754e1=(_0x4143c4==null?void 0x0:_0x4143c4['shapeType'])??(_0x4143c4==null?void 0x0:_0x4143c4[_0xecdee3(0x37f)]);if(!_0xee623a||!_0x5754e1||(0x0,n[_0xecdee3(0x3c7)])(_0xee623a[_0xecdee3(0x4b2)])||(0x0,n[_0xecdee3(0x3c7)])(_0x5754e1))return!0x1;let _0x18f9f4=(0x0,r[_0xecdee3(0x3fe)])(_0xee623a[_0xecdee3(0x456)],_0x5754e1);if(!_0x18f9f4)return!0x1;let {drawing:_0x55d80f}=_0xee623a;return _0x53238e['get'](a[_0xecdee3(0x1ba)])['executeCommand'](S['id'],{'unitId':_0x55d80f['unitId'],'subUnitId':_0x55d80f['subUnitId'],'shapeId':_0x55d80f[_0xecdee3(0x1e6)],'shapeType':_0x5754e1,'shapeData':_0x18f9f4,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0xee623a[_0xecdee3(0x4b2)],'oldShapeData':_0xee623a['shapeData']}});}};let B=class extends a[_0x29d1be(0x520)]{constructor(_0x5b1df2,_0x51c8fa){const _0xac572f=_0x29d1be;super(),this[_0xac572f(0x2d7)]=_0x5b1df2,this[_0xac572f(0x263)]=_0x51c8fa,this[_0xac572f(0x29e)](),this[_0xac572f(0x2d7)]['setCanUseShapeClip'](!0x0),this[_0xac572f(0x289)]({'dispose':()=>this[_0xac572f(0x2d7)][_0xac572f(0x441)](!0x1)});}[_0x29d1be(0x29e)](){const _0x447a70=_0x29d1be;let _0x852e03=this[_0x447a70(0x2d7)],_0x8845c3=new Map(),_0x25509f=_0x852e03['registerClipDelegate']((_0x2bbcf4,_0x55bbee,_0x4625a7,_0x236d68,_0x17e9d0)=>{const _0x3dbe06=_0x447a70;let _0xc6b7e7=_0x55bbee;if(_0xc6b7e7===n[_0x3dbe06(0x333)]['None']||_0x55bbee===_0x3dbe06(0x359))return!0x1;try{let _0x6853f1=_0x8845c3[_0x3dbe06(0x264)](_0x55bbee);return _0x6853f1||(_0x6853f1=new n[(_0x3dbe06(0x1a6))](_0xc6b7e7,'clip-'+_0x55bbee),_0x8845c3['set'](_0x55bbee,_0x6853f1)),_0x6853f1[_0x3dbe06(0x51b)](),_0x17e9d0&&Object['keys'](_0x17e9d0)[_0x3dbe06(0x1d6)]>0x0&&_0x6853f1[_0x3dbe06(0x3c2)]({'adjustValues':_0x17e9d0},!0x0),_0x6853f1[_0x3dbe06(0x515)]({'width':_0x4625a7,'height':_0x236d68}),_0x6853f1['buildClipPath'](_0x2bbcf4,{'left':0x0,'top':0x0,'width':_0x4625a7,'height':_0x236d68});}catch{return!0x1;}});this[_0x447a70(0x289)](_0x25509f),this['disposeWithMe']({'dispose':()=>_0x8845c3[_0x447a70(0x245)]()});}['clipByShape'](_0x3f326b,_0x2980d7,_0x3d76b5,_0x1ff1b0,_0x55b887){const _0x605000=_0x29d1be;let _0x211907=this[_0x605000(0x263)]['getDrawingData'](_0x3f326b,_0x2980d7);if(!_0x211907[_0x3d76b5])return;let _0x4f4d24={..._0x211907[_0x3d76b5],'prstGeom':_0x1ff1b0,'adjustValues':_0x55b887};this[_0x605000(0x263)][_0x605000(0x4f4)]([_0x4f4d24]);}};B=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(d[_0x29d1be(0x338)])),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(s[_0x29d1be(0x231)]))],B);const le=_0x29d1be(0x51e),ue='sheet.image-clip.shape-picker.component';function de({onShapeClick:_0x1f0cbe,excludeGroups:_0xff858}){const _0x4142c1=_0x29d1be;return(0x0,p['jsx'])(e['ShapePickerPanel'],{'excludeGroups':_0xff858,'onShapeClick':_0x1f0cbe,'scrollContainer':_0x4142c1(0x27a)});}function fe(){const _0x90a371=_0x29d1be;let _0x3cddd3=(0x0,t[_0x90a371(0x439)])(s[_0x90a371(0x231)]),_0x556441=(0x0,t[_0x90a371(0x439)])(B);return(0x0,p['jsx'])(e[_0x90a371(0x30f)],{'buttonLabel':_0x90a371(0x4b1),'excludeGroups':[e[_0x90a371(0x4c0)][_0x90a371(0x4d0)]],'onShapeClick':_0x4c5cbb=>{const _0x3fdf5b=_0x90a371;let _0x45723d=_0x3cddd3[_0x3fdf5b(0x2fd)]()[_0x3fdf5b(0x432)](_0x35921f=>_0x35921f[_0x3fdf5b(0x458)]===a[_0x3fdf5b(0x4e8)][_0x3fdf5b(0x37c)]);if(!_0x45723d)return;let {unitId:_0x22d9c0,subUnitId:_0x5122a4,drawingId:_0x4939c9}=_0x45723d;_0x556441[_0x3fdf5b(0x1b5)](_0x22d9c0,_0x5122a4,_0x4939c9,_0x4c5cbb[_0x3fdf5b(0x2ff)]);}});}function pe(){const _0x316599=_0x29d1be;let _0xb0650f=(0x0,t[_0x316599(0x439)])(s[_0x316599(0x231)]),_0xfba3ed=(0x0,t[_0x316599(0x439)])(B);return(0x0,p['jsx'])(e['ShapePickerDropdown'],{'buttonLabel':_0x316599(0x4b1),'excludeGroups':[e[_0x316599(0x4c0)][_0x316599(0x4d0)]],'DropdownComponent':f[_0x316599(0x301)],'onShapeClick':_0x41268a=>{const _0x12e09d=_0x316599;let _0x3c7fe7=_0xb0650f['getFocusDrawings']()[_0x12e09d(0x432)](_0x3c4ac9=>_0x3c4ac9['drawingType']===a[_0x12e09d(0x4e8)][_0x12e09d(0x37c)]);if(!_0x3c7fe7)return;let {unitId:_0x4614a7,subUnitId:_0x13acbf,drawingId:_0x456449}=_0x3c7fe7;_0xfba3ed[_0x12e09d(0x1b5)](_0x4614a7,_0x13acbf,_0x456449,_0x41268a[_0x12e09d(0x2ff)]);}});}function me(){const _0x2cf01d=_0x29d1be;let _0x57e9ea=(0x0,t['useDependency'])(t[_0x2cf01d(0x2ea)]),_0x51a575=(0x0,t[_0x2cf01d(0x439)])(s[_0x2cf01d(0x231)]),_0x1e0037=(0x0,t[_0x2cf01d(0x439)])(a[_0x2cf01d(0x2c8)]),_0x16ec1e=_0x51a575['getFocusDrawings']()[0x0],_0x52d292=_0x16ec1e?_0x1e0037['getUnitType'](_0x16ec1e['unitId']):void 0x0,_0x2e1863=_0x52d292===a[_0x2cf01d(0x42c)]['UNIVER_DOC']?_0x2cf01d(0x499):_0x52d292===a['UniverInstanceType'][_0x2cf01d(0x463)]?ue:void 0x0,_0x15bf61=_0x2e1863?_0x57e9ea[_0x2cf01d(0x264)](_0x2e1863):void 0x0;return _0x15bf61?(0x0,p['jsx'])(_0x15bf61,{}):null;}function he(){const _0x533a03=_0x29d1be;let _0x4b0114=(0x0,t[_0x533a03(0x439)])(a['ICommandService']);return(0x0,p[_0x533a03(0x2cf)])(de,{'onShapeClick':_0x489d03=>{const _0x3fdcf5=_0x533a03;_0x4b0114['executeCommand'](P['id'],{'value':_0x489d03['type'],'enhanceParams':{'endArrow':_0x489d03[_0x3fdcf5(0x282)],'startArrow':_0x489d03[_0x3fdcf5(0x320)],'horizontal':_0x489d03[_0x3fdcf5(0x36c)],'vertical':_0x489d03['vertical']}});}});}function ge(){const _0x2a0330=_0x29d1be;return(0x0,p[_0x2a0330(0x2cf)])(he,{});}function _e(_0x5b2493){const _0x36da0d=_0x29d1be;let _0x11d078=_0x5b2493[_0x36da0d(0x264)](a[_0x36da0d(0x2c8)]);return{'id':P['id'],'type':t[_0x36da0d(0x400)][_0x36da0d(0x47c)],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x36da0d(0x3d4),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,l['deriveStateFromActiveSheet$'])(_0x11d078,!0x1,()=>new u[(_0x36da0d(0x1b6))](_0x4770f7=>{const _0x5d6512=_0x36da0d;_0x4770f7[_0x5d6512(0x3f7)](!0x1);})),'hidden$':(0x0,t['getMenuHiddenObservable'])(_0x5b2493,a['UniverInstanceType'][_0x36da0d(0x463)]),'disabled$':(0x0,l[_0x36da0d(0x1aa)])(_0x5b2493)};}function ve(_0x444319){const _0x575969=_0x29d1be;let _0x317b68=_0x444319[_0x575969(0x264)](a['IUniverInstanceService']);return{'id':ae['id'],'type':t[_0x575969(0x400)][_0x575969(0x1e9)],'icon':_0x575969(0x4d1),'title':_0x575969(0x372),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,l[_0x575969(0x4a4)])(_0x317b68,!0x1,()=>new u[(_0x575969(0x1b6))](_0x3de8ea=>{const _0x334a15=_0x575969;_0x3de8ea[_0x334a15(0x3f7)](!0x1);})),'hidden$':(0x0,t[_0x575969(0x4ad)])(_0x444319,a[_0x575969(0x42c)][_0x575969(0x463)]),'disabled$':(0x0,l[_0x575969(0x1aa)])(_0x444319)};}const ye=_0x29d1be(0x404),be=_0x29d1be(0x27b);function xe(_0x1092ae){const _0x40159b=_0x29d1be;let _0x4318c1=_0x1092ae['get'](s['IDrawingManagerService'])[_0x40159b(0x2fd)]();return _0x4318c1[_0x40159b(0x1d6)]===0x1&&_0x4318c1[0x0][_0x40159b(0x458)]===a[_0x40159b(0x4e8)][_0x40159b(0x41d)]?_0x4318c1[0x0]:null;}function Se(_0x3516b6){const _0x59f7df=_0x29d1be;let _0x296055=_0x3516b6['get'](s[_0x59f7df(0x231)]);return _0x296055[_0x59f7df(0x32f)][_0x59f7df(0x24b)]((0x0,u[_0x59f7df(0x1e8)])(_0x296055[_0x59f7df(0x2fd)]()),(0x0,u['map'])(_0x22c465=>_0x22c465['length']!==0x1||_0x22c465[0x0]['drawingType']!==a[_0x59f7df(0x4e8)]['DRAWING_SHAPE']));}function Ce(_0xae428a){const _0x2be2ec=_0x29d1be;return{'id':ye,'commandId':i[_0x2be2ec(0x233)]['id'],'type':t[_0x2be2ec(0x400)][_0x2be2ec(0x1e9)],'title':_0x2be2ec(0x485),'tooltip':_0x2be2ec(0x485),'icon':_0x2be2ec(0x390),'hidden$':Se(_0xae428a),'params':()=>{const _0x3556bd=_0x2be2ec;let _0x218bfb=xe(_0xae428a);return _0x218bfb?{'unitId':_0x218bfb[_0x3556bd(0x448)],'subUnitId':_0x218bfb['subUnitId'],'shapeId':_0x218bfb[_0x3556bd(0x1e6)],'flipH':!0x0}:void 0x0;}};}function we(_0x2b91be){const _0x451d68=_0x29d1be;return{'id':be,'commandId':i[_0x451d68(0x233)]['id'],'type':t['MenuItemType'][_0x451d68(0x1e9)],'title':_0x451d68(0x236),'tooltip':_0x451d68(0x236),'icon':_0x451d68(0x21a),'hidden$':Se(_0x2b91be),'params':()=>{const _0x16ecce=_0x451d68;let _0x2c923e=xe(_0x2b91be);return _0x2c923e?{'unitId':_0x2c923e[_0x16ecce(0x448)],'subUnitId':_0x2c923e[_0x16ecce(0x21d)],'shapeId':_0x2c923e[_0x16ecce(0x1e6)],'flipV':!0x0}:void 0x0;}};}const Te=_0x29d1be(0x2ec),Ee=_0x29d1be(0x2bf),De=_0x29d1be(0x3c5),Oe=_0x29d1be(0x3e2);function ke(){const _0x395c6a=_0x29d1be;let _0x3d98ff=(0x0,t[_0x395c6a(0x439)])(a[_0x395c6a(0x1ba)]),_0x49f191=(0x0,t[_0x395c6a(0x439)])(s[_0x395c6a(0x231)]),_0x36ac1d=(0x0,t[_0x395c6a(0x439)])(i[_0x395c6a(0x2c7)]),_0x21efb0=()=>{const _0x307c5b=_0x395c6a;var _0x9160cb;let _0x5cdc23=_0x49f191[_0x307c5b(0x2fd)]();if(_0x5cdc23[_0x307c5b(0x1d6)]!==0x1||((_0x9160cb=_0x5cdc23[0x0])==null?void 0x0:_0x9160cb[_0x307c5b(0x458)])!==a[_0x307c5b(0x4e8)]['DRAWING_SHAPE'])return null;let {unitId:_0x2d3873,subUnitId:_0x2a83b8,drawingId:_0x4c9b39}=_0x5cdc23[0x0],_0x160c62=_0x36ac1d[_0x307c5b(0x414)](_0x2d3873,_0x2a83b8,_0x4c9b39),_0x1ddb52=_0x36ac1d[_0x307c5b(0x385)](_0x2d3873,_0x2a83b8,_0x4c9b39);return _0x160c62===void 0x0||!_0x1ddb52?null:{'unitId':_0x2d3873,'subUnitId':_0x2a83b8,'drawingId':_0x4c9b39,'shapeType':_0x160c62,'shapeData':_0x1ddb52};},_0x532192=(0x0,t['useObservable'])(()=>new u[(_0x395c6a(0x1b6))](_0x3dbec4=>{const _0x4d7087=_0x395c6a;let _0x5f5a0a=()=>_0x3dbec4[_0x4d7087(0x3f7)](_0x21efb0()),_0x127696=_0x49f191['focus$'][_0x4d7087(0x39c)](_0x5f5a0a),_0x9a09af=_0x3d98ff['onCommandExecuted'](_0x45a2cd=>{const _0x35e639=_0x4d7087;_0x45a2cd['id']===i[_0x35e639(0x1b2)]['id']&&_0x5f5a0a();});return _0x5f5a0a(),()=>{const _0x3b964f=_0x4d7087;_0x127696[_0x3b964f(0x325)](),_0x9a09af[_0x3b964f(0x361)]();};}),_0x21efb0(),!0x1,[_0x3d98ff,_0x49f191,_0x36ac1d]);return{'selection':_0x532192,'updateShapeData':_0x444c68=>{const _0x1c71c3=_0x395c6a;_0x532192&&C(_0x3d98ff,_0x532192[_0x1c71c3(0x448)],_0x532192['subUnitId'],_0x532192['drawingId'],{'oldShapeData':_0x532192[_0x1c71c3(0x456)]},_0x444c68);}};}function Ae(){const _0x3b2918=_0x29d1be;let {selection:_0x26d818,updateShapeData:_0x4b1de0}=ke();return _0x26d818?(0x0,p[_0x3b2918(0x2cf)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x26d818['shapeData'],'shapeType':_0x26d818[_0x3b2918(0x4b2)],'onUpdateShapeData':_0x4b1de0}):null;}function je(){const _0x34abc6=_0x29d1be;let _0x77895f=(0x0,t[_0x34abc6(0x439)])(a[_0x34abc6(0x1ba)]),_0x260ac6=(0x0,t[_0x34abc6(0x439)])(a[_0x34abc6(0x223)]),{selection:_0x542981}=ke();return _0x542981?(0x0,p[_0x34abc6(0x2cf)])(e[_0x34abc6(0x512)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x542981[_0x34abc6(0x456)]),'ariaLabel':_0x260ac6['t'](_0x34abc6(0x374)),'activePresetId':(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x542981[_0x34abc6(0x456)]),'onSelect':_0x3ad03c=>_0x77895f[_0x34abc6(0x1f6)](se['id'],{'presetId':_0x3ad03c})}):null;}function Me(){const _0x4f21bb=_0x29d1be;let {selection:_0x1359ae,updateShapeData:_0x479cfe}=ke();return _0x1359ae?(0x0,p[_0x4f21bb(0x2cf)])(e[_0x4f21bb(0x19c)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x1359ae['shapeData'],'onUpdateShapeData':_0x479cfe}):null;}function Ne(){const _0x4e4083=_0x29d1be;var _0x50876c;let {selection:_0x56a899,updateShapeData:_0x45e9a5}=ke(),_0x581bd8=(0x0,e[_0x4e4083(0x2fb)])({'hostType':a['UniverInstanceType']['UNIVER_SHEET'],'unitId':(_0x56a899==null?void 0x0:_0x56a899['unitId'])??'','subUnitId':(_0x56a899==null?void 0x0:_0x56a899['subUnitId'])??'','shapeId':(_0x56a899==null?void 0x0:_0x56a899[_0x4e4083(0x1e6)])??'','shapeData':_0x56a899==null?void 0x0:_0x56a899['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x4e4083(0x4cc),'onUpdateBinding':_0x4c5cac=>_0x45e9a5({'formulaBinding':_0x4c5cac})}),_0x5c1051=((_0x50876c=_0x581bd8[_0x4e4083(0x2f1)])==null?void 0x0:_0x50876c['flatMap'](_0x4c6ec4=>_0x4c6ec4[_0x4e4083(0x304)])[_0x4e4083(0x332)](_0x4710f6=>_0x4710f6[_0x4e4083(0x288)]!==!0x1))??[];return _0x56a899!=null&&_0x56a899[_0x4e4083(0x456)]['formulaBinding']?(0x0,p[_0x4e4083(0x2cf)])(e[_0x4e4083(0x4be)],{'actions':_0x5c1051,'panel':_0x581bd8['panel']}):null;}const Pe=_0x29d1be(0x3cd),Fe=_0x29d1be(0x3ba),Ie=_0x29d1be(0x4b6),Le=_0x29d1be(0x49d),Re='sheets-shape-ui.ribbon.shape-format.arrange-backward',ze=_0x29d1be(0x3c4),Be=_0x29d1be(0x3c9);function _0x46b2(){const _0x21cfe9=['PREDEFINED_HOOK_NAME','_baseShapeWidth','setCollapsedIds','39JZrljH','setShapeData','PRINTING_COMPONENT_COLLECT','sheets-shape-ui.ribbon.shape-format.arrange-front','sheets-shape-ui.shape-format.text-ribbon-control','_transform','isConnectorShape','sheet.shape.floating-toolbar','sheets-shape-ui.ribbon.shape-format.arrange-back','RibbonInsertGroup','actualHeight','Inject','sheets-shape-ui.ribbon.shape-format.style-control','_addShapeConnectorHandlerObject','Circle','getSheetCommandTarget','transformToDrawingPosition','_handleFreeEndpointMove','_univerInstanceService','ShapeIcon','_updateSrcRectByTransform','redo','_clearShapeAdjustControls','_sheetBasicShapeConnectionPointController','SHAPE_EDITOR_TRANSFORMER_CONFIG','getAdjustNames','end','getTransformer','toDisposable','toStringTag','_updateTransform','ShapeFloatingToolbar','DocumentSkeleton','sheets-shape-ui.shape-format.formula-ribbon-control','_baseWidth','shape-editor-ui.arrange.forward','_connectorObjects','registerShapeFormatPainter','RENDER_CLASS_TYPE','formulaBinding','activeAnObject','onPointerMove$','changeShapeType','_drawRichTextLayer','start','_registerOperations','VIEW_MAIN_TOP','133371eAOafJ','panel','_configService','onDblclick$','restore','getActiveViewportByCoord','shape-text-','next','intercept','_sheetSkeletonService','computeConnectorResizeLayout','ShapeArrowSizeEnum','getDrawingOKey','UNIVER_DOC','cloneShapeDataForType','skeleton','MenuItemType','setSrcRect','UUID','InsertSheetsShapeMutation','sheet.menu.shape.flip-horizontal','Large','UniverSheetsShapePlugin','SHEET_VIEWPORT_KEY','getCanvasElement','drawing.operation.set-drawing-active','_connectionSiteObjects','_lastEditingShapeKey','getShapeTextRect','_handleConnectorPointerUp','changeStart$','_context','isRenderLinePointsMode','isHighlighted','_isOpenedShapeEditPanel','Shape','getShapeTypeById','ImageSourceTypeEnum','_initSelection','_shapes','Plugin','_getZoomRatio','normal','691056IgbjSQ','activeSheet$','DRAWING_SHAPE','StraightConnector1','endConnectionDetection','IConfigService','isInGroup','_clearCompletionFrame','buildShapeTextDataUpdate','data','viewportScrollX','setAdjustValueByName','BehaviorSubject','_activeShapeAdjustPointList','getAdjustInfoByName','SolidLine','onReady','UniverInstanceType','shape-adjust-point-','_transformCalculateSrcRect','from','registerCommand','setHighlighted','find','_createCopyInfoByRange','contentVerticalOffset','disableObjectsEvent','50OcRbWU','isRichText','_sheetClipboardService','useDependency','SetSheetDrawingCommand','drawing-ui.objectListPanel.hide','_shapeId','registerFeatureMenu','_activeShapeInfo','_handleBasicShapeUpdateConnectorLineShape','drawing-ui.objectListPanel.moveBackward','setCanUseShapeClip','_currentScene','getBasicShapeRotateBound','drawing-ui.objectListPanel.lockHint','Module','SHAPE_TEXT','_isImagePointerDown','unitId','map','animateFormulaPresentation','fill','_urlImageService','_shapeEditPanelVersion','_drawRichText','getShapeModel','keys','sheet.operation.open-shape-object-list-panel','currentAdjustValues','_hasReset','_getShapeAdjustPointListById','getConnectorLinePoints','shapeData','prepareShapeTextDocumentData','drawingType','top','_formulaAnimation','hidden','debounceRefreshControls','params','getTextStyle','91HgBqnw','formulaPresentation','ShapeFloatingToolbarService','addImageSourceCache','UNIVER_SHEET','getCurrentUnitInfo','IContextService','UniverSheetsMobileUIPlugin','getObjectIncludeInGroup','getConnectionRelation','isMainScene','removeLinePoints','permissionCheckWithoutRange','DisposableCollection','getDrawingOrder','connector-handler-','_registerComponents','createInternalEditorID','890956qqhDmD','_registerFeatureMenu','setPresentation','HorizontalAlign','ArrangeTypeEnum','getAdjustValueByName','VIEW_MAIN_LEFT','canvas','LEFT','clearAdjustControls','UniverSheetsDrawingUIPlugin','SELECTOR','beforeCommandExecuted','shape-editor-ui.toolbar.changeShape','getInterceptPoints','getCurrentLastSelection','calcAdjValues','draw','_cxtHandlerPointerMove','4655952jRdrRR','sheets-shape-ui.flipHorizontal','getDrawingPoints','getShapeQuickStyleType','getPermissionPoint','getShapeType','drawing-ui.objectListPanel.sectionFloating','changeEnd$','adjName','presetId','SHAPE','drawing-ui.objectListPanel.collapse','_generatePasteMutations','bindRenderTransformerLifecycle','sqrt','_executeConnectedRouteConnectionCommand','setShapeProps','_showConnectionSites','useReducer','sheetViewStartRow','_generateCopyPasteMutations','doc.image-clip.shape-picker.component','DrawingRenderService','DependentOn','_getShapeInfo','sheets-shape-ui.ribbon.shape-format.arrange-forward','changing$','title','WorkbookCopyPermission','with','getOwnPropertyDescriptor','Transform','deriveStateFromActiveSheet$','connection-site-','DocCanvasPopManagerService','_unitId','getConnectionInfo','getContextValue','_highlightedSiteIndex','remove$','worldRect','getMenuHiddenObservable','routeConnectorLineShape','CURSOR_TYPE','forward','sheets-shape-ui.imagePanel.crop.shape','shapeType','updateConnectionDetection','sectionFloating','getDrawingSearch','sheets-shape-ui.ribbon.shape-format.formula-control','_addShapeConnectorHandlerObjects','contentHeight','_hyperLinkRegions','_registerMoveHandler','_getConnectionSiteAngle','values','getParent','ShapeFormulaRibbonControl','relation','ShapeGroupEnum','pick','useObservable','ShapeTextEditorContainer','hideInfoPopup','getBatchRemoveOp','refreshFormulaPresentation','_imageShapeClipController','Arrow','getDrawingByParam','_sheetCanvasPopManagerService','onTransformChange$','bottom','getCurrentSkeleton','IURLImageService','ShapeFillEnum','Line','ObjectLayersIcon','_isHighlighted','resolveShapeTextDocumentRenderLayout','getObject','_draggingConnectorId','DrawingApplyType','isHit','_baseShapeHeight','ancestorTransform','_createShapeAdjustControls','cxnIndex','_copyInfo','_initSheetChange','_shapeUpdateListener','rotation','IMenuManagerService','_initEditingParams','worldPoints','FOCUSING_SHAPE_TEXT_EDITOR','70852VzFgeI','_attachAdjustEvent','prstGeom','MEDIA','DrawingTypeEnum','_addControl','has','editingParams$','getCurrentScrollState','clipTop','_isShouldShowDrawingShapeAdjust','angle','_findShapeAtPoint','1.3.1','_resetState','_isStartConnectorPoint','featurePluginUpdateNotification','_baseHeight','MoveUpIcon','drawing-ui.objectListPanel.hideAll','isArray','_registerDrawingFocusChangeHandler','getTextModel','resolveHyperLinkAt','transformByState','isRender','text','MoveDownIcon','translateWithPrecision','useState','SolidFill','URL','interceptor','clearActiveDrawingObjects','REMOVE','stringify','sheets-shape-ui.editText','_executeConnectionCommand','translate','_handleFreeEndpointPointerUp','sheet.operation.update-shape-type','asObservable','getShapeData','resolveShapeTextDocumentPageHeight','_shapeService','constructor','ShapeQuickStyleGallery','classType','lineShapeId','updateContext','switchMap','refreshShapeFillImage','applyPoint','_updateAdjustControlPositions','SHEET_SHAPE_UI_PLUGIN','clearAdjustValue','_subUnitId','_visible','sheet.shape.picker.component','createControl$','Disposable','PictureFill','_executeResizeCommand','extraProps','getObjectListPanelSectionIdForDrawingType','40YySnWx','complete','getTransformerByCreate','ShapeTextRibbonControl','_getSceneAndTransformerByDrawingSearch','getCurrentTypeOfUnit$','getPresentation','point','jsxs','ShapeFloatingToolbarToggleFactory','302464kZTIfx','adjHandleStroke','_clearPopups','ShapeModel','145972chQRXu','_sheetsShapeService','UpdateLineShapeResizeCommand','getCurrentRangeDisable$','mode','resolveShapeTextEditorWrapStrategy','_isDrawingShapePointDown','_createControls','_config','interceptCommand','getUnitId','UpdateSheetsShapeDataMutation','UPDATE','drawing-ui.objectListPanel.empty','clipByShape','Observable','showContextualTab','SheetScrollManagerService','hideContextualTab','ICommandService','height','_sheetShapeAdjustController','beginPath','_drawShapeText','_isConnecting','ShapeEditPanel','_completionFrame','#4285f4','_adjName','_index','_initPrinting','_activeTargetShapeId','save','_getScrollInfo','SheetInterceptorService','getZoomRatio','_editingParams$','216gdbaGf','sheets-shape-ui.objectListPanel.title','getSheetId','shapeId','SheetsShapeUIMenuSchema','_sheetPrintInterceptorService','_init','merge','resolveFormulaShapeAutoFitSize','backward','length','stroke','ShapeDefaultConfig','discreteRangeToRange','addObject','packageName','forEach','_loadAndSetImage','drawing-ui.objectListPanel.typeNames.','shapeModel','drawFormulaShapeAnimationLayers','sheets-shape-ui.config','wrapStrategy','isLineShape','_handleConnectedEndpointMove','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','drawingId','update$','startWith','BUTTON','activateDrawingObject','_formulaShapes','drawing-ui.objectListPanel.dragToReorder','onRendered','_baseLeft','_registerIcons','CommandType','normalizeShapeTextModel','onStarting','UniverDrawingPlugin','fillType','syncExecuteCommand','executeCommand','getOrCreateDrawingCopyPlan','getActiveSheet','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','getDrawingVisible','sheets-shape-ui.ribbon.shape-format','_baseShapeLeft','startY','SheetDrawingAnchor','ShapeArrowTypeEnum','UniverSheetsDrawingPlugin','updateDocumentDataMargin','UniverSheetsPlugin','_drawSimpleText','ISidebarService','_getImagePrstGeom','touchDependencies','highlighted','_handleConnectedEndpointPointerUp','clip','shape-editor-ui.arrange.front','IRibbonService','sheets-shape-text-','createShapeTextBoxShapeData','_permissionService','engine','getMatrix','_updateImageAdjValues','index','drawing-ui.objectListPanel.details','FOCUSING_COMMON_DRAWINGS','_addShapeAdjustControl','_initEvents','offsetX','prstGeomAdjValues','create','FlipVerticalIcon','unit','generateRandomId','subUnitId','adjustValues','PaintIcon','popup','IconManager','#1a73e8','LocaleService','Medium','objects','UniverDocsPlugin','IPermissionService','UniverShapeEditorUIPlugin','SheetShapeTextEditorContainer','_injector','_contextService','_initialize','_sidebarService','_popupMenuListener','startConnectionDetection','getViewportByCell','IDrawingManagerService','_updateShapeAdjustControls','ToggleSheetsShapeFlipCommand','srcRect','resolveShapeTextHyperLinkAt','sheets-shape-ui.flipVertical','SetDrawingArrangeCommand','setEditing','_closeShapeEditPanel','IUndoRedoService','isEditing','WorksheetCopyPermission','setFillImage','getShapeTextData','fillImageSource','_calculateFreeEndpointAngle','top-center','enableObjectsEvent','isStartConnectorPoint','sheets-shape-ui','clear','renderDrawingShape','div','register','onSavingEditorData$','ShapeTextHyperLinkPopupService','pipe','drawing-ui.objectListPanel.nameInput','COMMAND','_currentConnectionTarget','_clearControls','getDrawingData','WorkbookEditablePermission','onPointerUp$','version','_initCopyPaste','VIEW_MAIN','setCursor','_loadShapePictureFill','shape-editor-ui.toolbar.quickStyles','cxnPointStrokeWidth','_releaseRenderCache','vertical','push','getImage','left','DRAWING','RemoveSheetDrawingCommand','entries','UniverLicensePlugin','_drawingManagerService','get','_commandExecutedListener','_insertShapes','getConnectionSiteList','getVisible','unregister','shapeText','_cxtHandlerPointerUp','_update','drawing-ui.objectListPanel.name','set','_getImageDrawingInfo','cxnPointRadius','VerticalAlign','startX','hasDefault','useEffect','UpdateConnectorRelationCommand','_clearConnectionSites','_attachConnectorObjectEvent','_shapePopupMenuDisposable','computeConnectorRouteLayout','parent','sheet.menu.shape.flip-vertical','viewportScrollY','doc','blockExecuteWithoutPermission','_canEdit','OPERATION','lineType','endArrow','_initPermission','_moveConnectorWithShape','style','_registerFocusChangeHandler','setOnSavingEditorData','visible','disposeWithMe','sheet.operation.close-sheet-shape-format-panel','current','drawing-ui.objectListPanel.lock','presentationChanged$','SheetsShapeUIContextualRibbonSchema','_baseTop','drawing-ui.objectListPanel.sectionCanvas','localeService','subscribeEvent','pluginName','sheetTransform','_isStartAdjusting','sheets-shape-ui.permission.editErr','_baseShapeTop','getUnit','_draw','_shapeTextEditingService','BottomIcon','decorate','clearControl$','_registerImageShapeClipDelegate','_registerGroupFeaturePasteHook','getEditing','setPrstGeomAdjValues','adjHandleFill','copyType','animationEnabled','clipHeight','parse','_shapeFloatingToolbarService','_activeAdjustInfo','iterator','_setTransForm','getSkeleton','_initMenu','_findNearestConnectionSite','DocInterceptorService','_adjHandlerPointerUp','width','DocEventManagerService','_groupCopyPasteController','SetDrawingApplyMutation','some','setFallbackVisible','_cxnIndex','oKey','INSERT','_disposed','drawing-ui.objectListPanel.description','render','resourceCollector','getBasicShapeRelation','dataModel','sheets-shape-ui.shape-format.style-ribbon-control','IImageIoService','sheets-shape-ui.formatShape','reverse','_registerDrawingMoveHandler','sheet.command.update-shape-data','trim','_executeConnectedRouteResizeCommand','SheetsShapeService','IUniverInstanceService','sheet.operation.apply-shape-quick-style','scene','UndoRedoGroupService','drawing-ui.objectListPanel.lockAll','DocRenderController','_onSavingEditorData$','jsx','cxnPointFill','SetShapeDrawingDataCommand','DocSelectionRenderService','ang','univer-box-border\x20univer-px-4\x20univer-text-sm','_ribbonService','calculate','_clipService','_iconManager','SheetPermissionCheckController','onCommandExecuted','_getDrawingRect','stopPropagation','registerRenderModule','flipX','resize','SheetsSelectionsService','registerDependencies','componentKey','presentation','_getConnectPointInfo','getRenderUnitById','SetDrawingSelectedOperation','_clearShapeConnectorHandlerObjects','GROUP','disableShapeOption','ComponentManager','ContextMenuPosition','sheets-shape-ui.shape-format.quick-style-gallery','permissionPointUpdate$','getStartConnectInfo','getSelectedObjectMap','DEFAULT_PASTE','extensionGroups','_applyFormulaAutoFitSize','composeMatrix','description','getDrawingShapeKeyByDrawingSearch','isHitLine','CopySheetCommand','sin','plainShapeTextToDocumentData','shape-editor-ui.arrange.backward','useFormulaShapeToolbar','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','getFocusDrawings','size','type','_sheetDrawingShapeRenderController','MobileDropdown','abs','FromArray','actions','worldPoint','_focusedDrawings','_localeService','MobileShapeEditorService','getRealBound','drawing-ui.objectListPanel.show','isHorizontal','_disposePopups','adjHandleSize','drawing-ui.objectListPanel.unlock','ShapePickerDropdown','DocSelectionManagerService','mergeMenu','includes','ShapeTextFloatMenuRenderControllerBase','open','MobileObjectListPanel','_baseDrawingRect','getUnitType','InsertShapeCommand','vertical-center','insertGroupObject','SheetSkeletonManagerService','undo','getInverseCoord','sheets-shape-ui.title','defineProperty','startArrow','SheetCanvasPopManagerService','focusDrawing','drawing-ui.objectListPanel.unlockHint','drawing-ui.objectListPanel.search','unsubscribe','image','axisAlignSheetTransform','visible$','UniverShapeEditorMobileUIPlugin','canvasElement','EMPTY','_generateCutPasteMutations','marginTop','getSheetBySheetId','focus$','resolveShapeContextualRibbonHostMode','attachRangeWithCoord','filter','ShapeTypeEnum','transform','drawWith','getState','sheet.shape.object-list.panel','DrawingImageClipService','_sidebarDisposable','setContextValue','getImageSourceCache','delete','updateLinePoints','_formulaKey','flipY','multiply','getEndConnectInfo','invert','_initCommands','viewBound','getDrawingTypeNameKey','_componentManager','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','CROSSHAIR','ConnectorCoordinateTransform','setShouldShowAdjust','sheetViewStartColumn','getCurrentUnitOfType','_drawingType','Path','#FFFFFF','indexOf','run','UniverShapeEditorPlugin','symbol','onerror','cxnPointStroke','_activeShapeModel','_props','transformToAxisAlignPosition','custom','_currentUniverService','getActualSize','_activeShapeId','RemoveSheetsShapeMutation','_openShapeEditPanel','initShapePopupMenu','getScene','dispose','makeDirty','WorksheetEditPermission','_targetShapeId','scale','ISheetDrawingService','Image','_drawingAddListener','drawing-ui.objectListPanel.noSelection','setPrstGeom','#bcbcbc','horizontal','_commandService','ShapeTextFloatToolbar','sectionCanvas','shouldAllowShapeTextEditorHostSizeShrink','string','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.title','sheets-shape-ui.quickStyles','drawing-ui.objectListPanel.moveForward','_shapeFormulaService','offsetY','updateShapeFillImage','TopmostIcon','call','UniverDrawingUIPlugin','DRAWING_IMAGE','SheetSkeletonService','cos','value','setFormulaPresentation','ShapeFormatSettingIcon','setConfig','targetShapeId','resolveActiveShapeQuickStylePresetId','getShapeDataById','attachTransformerTo','_activeAdjustPointList','_adjHandlerPointerMove','strokeWidth','createShapeFormulaDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_getOrCreateShapeModel','drawing-ui.objectListPanel.expand','_sheetDrawingService','Injector','FlipHorizontalIcon','name','_rerouteConnectorLine','DocumentDataModel','isDrawingObject','IRenderManagerService','_sheetPermissionCheckController','resolveShapeTextEditorBehaviorShapeData','useMemo','_renderManagerService','applyQuickStyleToShapeData','_imageIoService','subscribe','close','ShapeLineTypeEnum','object','_menuManagerService','reduce','add','_activeImageId','_sheetInterceptorService','DRAWING_OBJECT_LAYER_INDEX','Vector2','FormatPainterSessionService','registerFeaturePasteHook','ShapeTextHyperLinkInfo','ShapeTextHyperLinkHoverController','DrawingCommonPanel','_insertingShapeKeys','TOP','refreshAdjustControls','_hide','getSkeletonParam','getDrawingDataForUnit','localToWorld','UniverSheetsDrawingMobileUIPlugin','MenuManagerPosition','selectable','copyId','ShapeFormulaService','fontSize','RemoveSheetCommand','sheets-shape-ui.ribbon.shape-format.text-control','function','sheets-shape-ui.editShape','completeEditing'];_0x46b2=function(){return _0x21cfe9;};return _0x46b2();}function Ve(_0x22e517){const _0x5b48d9=_0x29d1be;let _0x23e1f1=_0x22e517[_0x5b48d9(0x264)](a[_0x5b48d9(0x1ba)]),_0x307b4a=_0x22e517[_0x5b48d9(0x264)](s[_0x5b48d9(0x231)]),_0x4edac1=_0x22e517[_0x5b48d9(0x264)](i[_0x5b48d9(0x2c7)]);return new u['Observable'](_0x919285=>{const _0x14c64e=_0x5b48d9;let _0x30384b=()=>{const _0x6068ec=_0x6cf2;let _0x3e5fbc=V(_0x22e517),_0x4e6bc2=_0x3e5fbc?_0x4edac1[_0x6068ec(0x385)](_0x3e5fbc[_0x6068ec(0x448)],_0x3e5fbc[_0x6068ec(0x21d)],_0x3e5fbc[_0x6068ec(0x1e6)]):null;_0x919285['next'](_0x4e6bc2?(0x0,r[_0x6068ec(0x384)])(_0x4e6bc2)??'':'');},_0x5b6175=_0x307b4a[_0x14c64e(0x32f)][_0x14c64e(0x39c)](_0x30384b),_0x4f5531=_0x23e1f1[_0x14c64e(0x2da)](_0x185424=>{const _0x45ee16=_0x14c64e;_0x185424['id']===i[_0x45ee16(0x1b2)]['id']&&_0x30384b();});return _0x30384b(),()=>{const _0x4259b1=_0x14c64e;_0x5b6175[_0x4259b1(0x325)](),_0x4f5531['dispose']();};});}function V(_0x29d78e){const _0x14efea=_0x29d1be;var _0x101fe0;let _0x37b90c=_0x29d78e[_0x14efea(0x264)](s['IDrawingManagerService'])['getFocusDrawings']();return _0x37b90c['length']===0x1&&((_0x101fe0=_0x37b90c[0x0])==null?void 0x0:_0x101fe0[_0x14efea(0x458)])===a[_0x14efea(0x4e8)][_0x14efea(0x41d)]?_0x37b90c[0x0]:null;}function He(_0x4951e4,_0x2cd255=!0x1){const _0x6fd8ca=_0x29d1be;let _0x1f25e4=_0x4951e4['get'](a[_0x6fd8ca(0x1ba)]),_0x2b8c9f=_0x4951e4['get'](s[_0x6fd8ca(0x231)]),_0x55be8f=_0x4951e4[_0x6fd8ca(0x264)](i['SheetsShapeService']);return new u[(_0x6fd8ca(0x1b6))](_0x335a69=>{const _0x4cc0b3=_0x6fd8ca;let _0x319339=()=>{const _0x49ecce=_0x6cf2;let _0x2b895e=V(_0x4951e4);if(!_0x2b895e){_0x335a69[_0x49ecce(0x3f7)](!0x0);return;}let _0xae328b=_0x55be8f['getShapeDataById'](_0x2b895e[_0x49ecce(0x448)],_0x2b895e[_0x49ecce(0x21d)],_0x2b895e[_0x49ecce(0x1e6)]);_0x335a69[_0x49ecce(0x3f7)](!_0xae328b||_0x2cd255&&_0xae328b[_0x49ecce(0x3e8)]==null);},_0x7e4316=_0x2b8c9f[_0x4cc0b3(0x32f)]['subscribe'](_0x319339),_0x4e6a5f=_0x1f25e4['onCommandExecuted'](_0x286d12=>{const _0x3725ea=_0x4cc0b3;_0x286d12['id']===i[_0x3725ea(0x1b2)]['id']&&_0x319339();});return _0x319339(),()=>{const _0x1b76e1=_0x4cc0b3;_0x7e4316[_0x1b76e1(0x325)](),_0x4e6a5f['dispose']();};});}function Ue(_0x8d7dbb){const _0x22f94c=_0x29d1be;let _0x4f5c0b=_0x8d7dbb[_0x22f94c(0x264)](s[_0x22f94c(0x231)]),_0x582f60=_0x8d7dbb[_0x22f94c(0x264)](i[_0x22f94c(0x2c7)]);return _0x4f5c0b[_0x22f94c(0x32f)][_0x22f94c(0x24b)]((0x0,u[_0x22f94c(0x1e8)])(_0x4f5c0b[_0x22f94c(0x2fd)]()),(0x0,u[_0x22f94c(0x449)])(()=>{const _0x39ee6e=_0x22f94c;let _0x398ba8=V(_0x8d7dbb),_0x1c8d6f=_0x398ba8?_0x582f60[_0x39ee6e(0x414)](_0x398ba8[_0x39ee6e(0x448)],_0x398ba8[_0x39ee6e(0x21d)],_0x398ba8['drawingId']):void 0x0;return _0x1c8d6f===void 0x0||(0x0,n[_0x39ee6e(0x3c7)])(_0x1c8d6f);}));}function We(_0x26962e){const _0x368eeb=_0x29d1be;return{'id':se['id'],'type':t[_0x368eeb(0x400)][_0x368eeb(0x47c)],'icon':_0x368eeb(0x21f),'title':_0x368eeb(0x258),'tooltip':_0x368eeb(0x258),'selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x26962e),'hidden$':He(_0x26962e)};}function Ge(_0x1e8007){const _0x3e8e38=_0x29d1be;return{'id':ce['id'],'type':t[_0x3e8e38(0x400)][_0x3e8e38(0x47c)],'icon':'ShapeIcon','title':_0x3e8e38(0x47e),'tooltip':_0x3e8e38(0x47e),'slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x1e8007)};}function Ke(_0x50c0c5,_0x136b03,_0x1ae065=!0x1){const _0x5d41e0=_0x29d1be;return _0x522e45=>({'id':_0x50c0c5,'type':t[_0x5d41e0(0x400)][_0x5d41e0(0x1e9)],'label':{'name':_0x136b03,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x522e45,_0x1ae065)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x307da3,_0x12b737,_0x5a63f7,_0x3e58a7){const _0x3bbc51=_0x29d1be;return _0x4b98b1=>({'id':_0x307da3,'commandId':m[_0x3bbc51(0x237)]['id'],'type':t[_0x3bbc51(0x400)][_0x3bbc51(0x1e9)],'icon':_0x5a63f7,'title':_0x3e58a7,'tooltip':_0x3e58a7,'hidden$':He(_0x4b98b1),'params':()=>{const _0x4cdb6f=_0x3bbc51;let _0x12e492=V(_0x4b98b1);return _0x12e492?{'unitId':_0x12e492['unitId'],'subUnitId':_0x12e492['subUnitId'],'drawingIds':[_0x12e492[_0x4cdb6f(0x1e6)]],'arrangeType':_0x12b737}:void 0x0;}});}const Ze=Xe(Le,a[_0x29d1be(0x475)][_0x29d1be(0x4b0)],_0x29d1be(0x4f6),_0x29d1be(0x3e4)),Qe=Xe(Re,a[_0x29d1be(0x475)][_0x29d1be(0x1d5)],_0x29d1be(0x4ff),_0x29d1be(0x2fa)),$e=Xe(ze,a[_0x29d1be(0x475)]['front'],_0x29d1be(0x379),_0x29d1be(0x20a)),et=Xe(Be,a[_0x29d1be(0x475)]['back'],_0x29d1be(0x29b),'shape-editor-ui.arrange.back');function tt(_0x5e7c6d){const _0x357b37=_0x29d1be;return{'id':z['id'],'type':t['MenuItemType'][_0x357b37(0x1e9)],'icon':_0x357b37(0x381),'title':_0x357b37(0x2c1),'tooltip':_0x357b37(0x2c1),'hidden$':He(_0x5e7c6d),'params':()=>{const _0x1d634b=_0x357b37;let _0x581715=V(_0x5e7c6d);return _0x581715?{'unitId':_0x581715[_0x1d634b(0x448)],'subUnitId':_0x581715[_0x1d634b(0x21d)],'drawingId':_0x581715[_0x1d634b(0x1e6)]}:void 0x0;}};}const nt={[t[_0x29d1be(0x3b4)]['RIBBON']]:{[R]:{'order':0x64,'title':_0x29d1be(0x2c1),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e['ToggleShapeFloatingToolbarOperation']['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x29d1be(0x1a2)]}}}}},rt={[t[_0x29d1be(0x3ca)][_0x29d1be(0x4e7)]]:{[P['id']]:{'order':0x3,'menuItemFactory':_e}}},it={...rt,[t[_0x29d1be(0x3ca)]['OTHERS']]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t[_0x29d1be(0x2eb)][_0x29d1be(0x25f)]]:{[t['ContextMenuGroup']['OTHERS']]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at='@univerjs-pro/sheets-shape-ui',ot=_0x29d1be(0x4f1);const st={'id':'sheet.operation.open-mobile-shape-editor','type':a[_0x29d1be(0x1f0)][_0x29d1be(0x280)],'handler'(_0x2d0662,_0x183960){const _0x193e57=_0x29d1be;return _0x183960?(_0x2d0662[_0x193e57(0x264)](e[_0x193e57(0x308)])[_0x193e57(0x314)](_0x183960[_0x193e57(0x1ab)],{'hostType':a[_0x193e57(0x42c)][_0x193e57(0x463)],'shapeId':_0x183960[_0x193e57(0x1e6)],'subUnitId':_0x183960[_0x193e57(0x21d)],'unitId':_0x183960['unitId']}),!0x0):!0x1;}},ct=_0x29d1be(0x1e1),lt={};let ut=class extends a[_0x29d1be(0x520)]{constructor(_0x9f00d9,_0x29e18f,_0x226662,_0x1377ee,_0x5de4c5){const _0x322bf7=_0x29d1be;super(),this[_0x322bf7(0x40f)]=_0x9f00d9,this[_0x322bf7(0x263)]=_0x29e18f,this[_0x322bf7(0x399)]=_0x226662,this[_0x322bf7(0x3d3)]=_0x1377ee,this[_0x322bf7(0x4c7)]=_0x5de4c5,E(this,_0x322bf7(0x3a3),null),E(this,_0x322bf7(0x4a7),null),E(this,'_subUnitId',null),E(this,'_activeAdjustPointList',void 0x0),E(this,'_shapes',[]),E(this,_0x322bf7(0x1ee),0x0),E(this,_0x322bf7(0x28f),0x0),E(this,_0x322bf7(0x3e3),0x0),E(this,'_baseHeight',0x0),E(this,_0x322bf7(0x295),!0x1),E(this,_0x322bf7(0x2a8),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x322bf7(0x447),!0x1),this[_0x322bf7(0x286)](),this[_0x322bf7(0x4ba)]();}[_0x29d1be(0x47a)](){const _0x400279=_0x29d1be;this[_0x400279(0x24f)]();}[_0x29d1be(0x3ae)](){const _0x4be242=_0x29d1be;this['_clearControls'](),this[_0x4be242(0x1ae)](!0x0);}[_0x29d1be(0x38c)](_0x2c88f3,_0x35e859,_0x5241e2,_0x178df4){const _0x288e2e=_0x29d1be;let _0x589e29=_0x2c88f3;if(_0x589e29!==n[_0x288e2e(0x333)]['None']&&_0x2c88f3!==_0x288e2e(0x359))try{let _0x39848b=new n[(_0x288e2e(0x1a6))](_0x589e29,'clip-adj-'+_0x2c88f3);return _0x178df4&&_0x39848b[_0x288e2e(0x3c2)]({'adjustValues':_0x178df4},!0x0),_0x39848b[_0x288e2e(0x515)]({'width':_0x35e859,'height':_0x5241e2}),_0x39848b;}catch{return;}}[_0x29d1be(0x26f)](_0x294a8d,_0x461b30,_0x4e1e2d){const _0x169d65=_0x29d1be;let _0x29bcad={'unitId':_0x294a8d,'subUnitId':_0x461b30,'drawingId':_0x4e1e2d},_0x29e469=this[_0x169d65(0x263)][_0x169d65(0x4c9)](_0x29bcad);if(_0x29e469&&_0x29e469[_0x169d65(0x458)]===a[_0x169d65(0x4e8)]['DRAWING_IMAGE'])return _0x29e469;}[_0x29d1be(0x205)](_0x342c55,_0x4b9f82,_0x56f55f){const _0x41d0c8=_0x29d1be;let _0x396544=this[_0x41d0c8(0x399)][_0x41d0c8(0x2e5)](_0x342c55);if(!_0x396544)return;let {scene:_0x36752d}=_0x396544,_0x2bca6b=(0x0,s[_0x41d0c8(0x2f5)])({'unitId':_0x342c55,'subUnitId':_0x4b9f82,'drawingId':_0x56f55f}),_0x3cdf0a=_0x36752d[_0x41d0c8(0x4d4)](_0x2bca6b);if(_0x3cdf0a instanceof c[_0x41d0c8(0x367)]){let _0x1d76f1=_0x3cdf0a[_0x41d0c8(0x4e6)];if(_0x1d76f1)return{'prstGeom':_0x1d76f1,'adjustValues':_0x3cdf0a[_0x41d0c8(0x218)]};}}[_0x29d1be(0x1ae)](_0x3ce9fd=!0x1){const _0x5a32f7=_0x29d1be;if(!this[_0x5a32f7(0x4a7)]||!this[_0x5a32f7(0x51c)]||!this[_0x5a32f7(0x3a3)])return;let _0x5e8347=this[_0x5a32f7(0x399)][_0x5a32f7(0x2e5)](this['_unitId']);if(!_0x5e8347||!_0x5e8347[_0x5a32f7(0x4a1)](l[_0x5a32f7(0x31b)])[_0x5a32f7(0x4cd)]())return;let {scene:_0x12ab69}=_0x5e8347,_0x1e52ff=this[_0x5a32f7(0x26f)](this[_0x5a32f7(0x4a7)],this['_subUnitId'],this[_0x5a32f7(0x3a3)]);if(!_0x1e52ff)return;let {transform:_0x442047}=_0x1e52ff;if(!_0x442047)return;let {left:_0x2cc4da,top:_0x2fb445,width:_0x22cc98,height:_0x3135c9,flipX:_0x48ec64,flipY:_0x24e6e3,angle:_0x30a467=0x0}=_0x442047;if(_0x2cc4da===void 0x0||_0x2fb445===void 0x0)return;let _0x4bb20a=this[_0x5a32f7(0x205)](this[_0x5a32f7(0x4a7)],this[_0x5a32f7(0x51c)],this['_activeImageId']);if(!_0x4bb20a)return;if(_0x3ce9fd){let _0x2fe035=this[_0x5a32f7(0x38c)](_0x4bb20a[_0x5a32f7(0x4e6)],_0x22cc98||0x0,_0x3135c9||0x0,_0x4bb20a[_0x5a32f7(0x21e)]);if(!_0x2fe035)return;this[_0x5a32f7(0x387)]=_0x2fe035[_0x5a32f7(0x486)]();}let _0x490109=this['_activeAdjustPointList'];if(_0x490109&&_0x490109[_0x5a32f7(0x1d6)]!==0x0)for(let _0x3e73de=0x0;_0x3e73de<_0x490109[_0x5a32f7(0x1d6)];_0x3e73de++){let _0x909b41=_0x490109[_0x3e73de],_0x342856=_0x909b41['x'],_0x4c8814=_0x909b41['y'];if(_0x48ec64&&(_0x342856=(_0x22cc98||0x0)-_0x342856),_0x24e6e3&&(_0x4c8814=(_0x3135c9||0x0)-_0x4c8814),_0x30a467!==0x0){let _0x18508f=(_0x22cc98||0x0)/0x2,_0x3c9a64=(_0x3135c9||0x0)/0x2,_0x53957a=_0x30a467*Math['PI']/0xb4,_0x3e5d23=Math[_0x5a32f7(0x37e)](_0x53957a),_0x27b8bf=Math[_0x5a32f7(0x2f8)](_0x53957a),_0x4c0fbe=_0x342856-_0x18508f,_0x14c6d4=_0x4c8814-_0x3c9a64;_0x342856=_0x18508f+(_0x4c0fbe*_0x3e5d23-_0x14c6d4*_0x27b8bf),_0x4c8814=_0x3c9a64+(_0x4c0fbe*_0x27b8bf+_0x14c6d4*_0x3e5d23);}let _0x23621c={'x':_0x342856,'y':_0x4c8814,'adjName':_0x909b41[_0x5a32f7(0x48c)]};this[_0x5a32f7(0x4e9)](_0x12ab69,_0x23621c,_0x23621c[_0x5a32f7(0x48c)],_0x2cc4da,_0x2fb445,this[_0x5a32f7(0x4a7)],this[_0x5a32f7(0x51c)]);}}[_0x29d1be(0x4e9)](_0x19525a,_0x7dc09f,_0x46b645,_0x1db98d,_0x2d40d0,_0x388902,_0x59489d){const _0x48e988=_0x29d1be;if(!this[_0x48e988(0x3a3)])return;let _0x38568b='image-clip-adjust-point-'+this[_0x48e988(0x3a3)]+'-'+_0x46b645,_0x4be4fd=_0x19525a[_0x48e988(0x467)](_0x38568b);if(_0x4be4fd){_0x4be4fd[_0x48e988(0x4fc)]({'left':_0x7dc09f['x']+_0x1db98d-n[_0x48e988(0x1d8)][_0x48e988(0x30d)],'top':_0x7dc09f['y']+_0x2d40d0-n[_0x48e988(0x1d8)][_0x48e988(0x30d)]});return;}let _0x32aa9c=new O(_0x38568b,{'left':_0x7dc09f['x']+_0x1db98d-n[_0x48e988(0x1d8)][_0x48e988(0x30d)],'top':_0x7dc09f['y']+_0x2d40d0-n[_0x48e988(0x1d8)]['adjHandleSize'],'adjName':_0x46b645,'shapeId':this[_0x48e988(0x3a3)],'unitId':_0x388902,'subUnitId':_0x59489d,'width':n[_0x48e988(0x1d8)][_0x48e988(0x30d)]+0x8,'height':n['ShapeDefaultConfig'][_0x48e988(0x30d)]+0x8,'zIndex':c[_0x48e988(0x3a5)]+0x1,'evented':!0x0});this[_0x48e988(0x417)][_0x48e988(0x25c)](_0x32aa9c),this['_attachAdjustEvent'](_0x32aa9c,_0x19525a,_0x46b645),_0x19525a[_0x48e988(0x1da)](_0x32aa9c,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x29d1be(0x24f)](){const _0xc3852a=_0x29d1be;this[_0xc3852a(0x417)][_0xc3852a(0x1d6)]!==0x0&&(this['_shapes'][_0xc3852a(0x1dc)](_0x53a557=>_0x53a557[_0xc3852a(0x361)]()),this[_0xc3852a(0x417)]=[]);}[_0x29d1be(0x1c8)](_0x44f2bd,_0x48090b){const _0x4608da=_0x29d1be;var _0x9c6c2d;let _0x4b79c9={'x':0x0,'y':0x0},_0x24fb0e=this[_0x4608da(0x399)][_0x4608da(0x2e5)](_0x44f2bd);if(!_0x24fb0e||!_0x24fb0e[_0x4608da(0x4a1)](l[_0x4608da(0x31b)])[_0x4608da(0x2ab)](_0x48090b))return _0x4b79c9;let _0x2fb827=_0x24fb0e[_0x4608da(0x4a1)](l[_0x4608da(0x1b8)]),_0x248f5d=_0x2fb827==null?void 0x0:_0x2fb827['getCurrentScrollState']();if(!_0x248f5d)return _0x4b79c9;let _0x20c0ae=(_0x9c6c2d=this[_0x4608da(0x3d3)][_0x4608da(0x298)](_0x44f2bd))==null?void 0x0:_0x9c6c2d[_0x4608da(0x32e)](_0x48090b);if(!_0x20c0ae)return _0x4b79c9;let _0x359652=(0x0,l[_0x4608da(0x230)])(_0x248f5d['sheetViewStartRow'],_0x248f5d[_0x4608da(0x34b)],_0x24fb0e[_0x4608da(0x2ca)],_0x20c0ae);return _0x359652?{'x':_0x359652[_0x4608da(0x425)],'y':_0x359652['viewportScrollY']}:_0x4b79c9;}[_0x29d1be(0x419)](_0x473ffd,_0x3a1632){const _0x54aa0f=_0x29d1be;var _0x18ce35;let _0x185b64=(_0x18ce35=this[_0x54aa0f(0x3d3)][_0x54aa0f(0x298)](_0x473ffd))==null?void 0x0:_0x18ce35[_0x54aa0f(0x32e)](_0x3a1632);return(_0x185b64==null?void 0x0:_0x185b64[_0x54aa0f(0x1ca)]())??0x1;}[_0x29d1be(0x4e5)](_0x5c28b5,_0x5bb779,_0x5e8659){const _0x4130fa=_0x29d1be;this['disposeWithMe']((0x0,a['toDisposable'])(_0x5c28b5['onPointerDown$'][_0x4130fa(0x292)]((_0x3ce395,_0x936986)=>{const _0x66ac4=_0x4130fa;var _0x3487f5,_0x375291,_0x4e3559;let {unitId:_0x6a3744,subUnitId:_0x5093cb,drawingId:_0x51797a}=_0x5c28b5[_0x66ac4(0x4b5)](),_0x18c670=this['_getImageDrawingInfo'](_0x6a3744,_0x5093cb,_0x51797a);if(!(_0x18c670!=null&&_0x18c670[_0x66ac4(0x334)]))return;let {left:_0x51d5d1,top:_0x27b966,width:_0x514894,height:_0x3c15cc}=_0x18c670[_0x66ac4(0x334)];this[_0x66ac4(0x1ee)]=_0x51d5d1||0x0,this[_0x66ac4(0x28f)]=_0x27b966||0x0,this[_0x66ac4(0x3e3)]=_0x514894||0x0,this[_0x66ac4(0x4f5)]=_0x3c15cc||0x0;let _0x5d4dbe=!!((_0x3487f5=_0x18c670['transform'])!=null&&_0x3487f5[_0x66ac4(0x2de)]),_0x483bbf=!!((_0x375291=_0x18c670[_0x66ac4(0x334)])!=null&&_0x375291['flipY']),_0x49e5c3=((_0x4e3559=_0x18c670[_0x66ac4(0x334)])==null?void 0x0:_0x4e3559['angle'])||0x0,_0x2be392=this['_getImagePrstGeom'](_0x6a3744,_0x5093cb,_0x51797a);if(!_0x2be392)return;let _0x543958=this[_0x66ac4(0x38c)](_0x2be392[_0x66ac4(0x4e6)],this[_0x66ac4(0x3e3)],this[_0x66ac4(0x4f5)],_0x2be392[_0x66ac4(0x21e)]);if(!_0x543958||(this[_0x66ac4(0x356)]=_0x543958,this[_0x66ac4(0x2a8)]=_0x543958[_0x66ac4(0x429)](_0x5e8659),!this['_activeAdjustInfo']))return;this['_isStartAdjusting']=!0x0,_0x5bb779[_0x66ac4(0x435)]();let _0x39bba7=_0x2be392[_0x66ac4(0x4e6)];this[_0x66ac4(0x388)]=_0x5bb779['onPointerMove$'][_0x66ac4(0x292)]((_0x24a3d3,_0x49b2b6)=>{const _0x1b7161=_0x66ac4;if(!this[_0x1b7161(0x295)])return;let {offsetX:_0x3a31db,offsetY:_0x182901}=_0x24a3d3,_0x5f4603=this[_0x1b7161(0x2a8)];if(!this[_0x1b7161(0x356)]||!_0x5f4603)return;_0x5bb779[_0x1b7161(0x435)](),_0x5bb779['setCursor'](c[_0x1b7161(0x4af)][_0x1b7161(0x348)]);let _0x3297b1={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x5000ce=this['_getScrollInfo'](_0x6a3744,_0x5093cb),_0x23a012=this['_getZoomRatio'](_0x6a3744,_0x5093cb),_0x15dd1a=_0x3a31db/_0x23a012+_0x5000ce['x']-this[_0x1b7161(0x1ee)],_0xae750=_0x182901/_0x23a012+_0x5000ce['y']-this[_0x1b7161(0x28f)];if(_0x49e5c3!==0x0){let _0x12a9f7=this[_0x1b7161(0x3e3)]/0x2,_0x2a71a7=this[_0x1b7161(0x4f5)]/0x2,_0x181686=_0x49e5c3*Math['PI']/0xb4,_0xb191cc=Math['cos'](_0x181686),_0x488107=Math[_0x1b7161(0x2f8)](_0x181686),_0x11c84b=_0x15dd1a-_0x12a9f7,_0x499c6a=_0xae750-_0x2a71a7;_0x15dd1a=_0x12a9f7+(_0x11c84b*_0xb191cc+_0x499c6a*_0x488107),_0xae750=_0x2a71a7+(-_0x11c84b*_0x488107+_0x499c6a*_0xb191cc);}_0x5d4dbe&&(_0x15dd1a=this['_baseWidth']-_0x15dd1a),_0x483bbf&&(_0xae750=this[_0x1b7161(0x4f5)]-_0xae750);let _0x5bd065=this[_0x1b7161(0x356)]['calcAdjValues'](_0x3297b1,{'x':_0x15dd1a,'y':_0xae750},_0x5f4603,_0x5d4dbe,_0x483bbf);if(Object['keys'](_0x5bd065)[_0x1b7161(0x1d6)]!==0x0){for(let [_0x59fffe,_0x33ea63]of Object['entries'](_0x5bd065))this['_activeShapeModel']['setAdjustValueByName'](_0x59fffe,_0x33ea63);this[_0x1b7161(0x356)]['updateContext']({'width':this['_baseWidth'],'height':this[_0x1b7161(0x4f5)]}),this[_0x1b7161(0x211)](_0x6a3744,_0x5093cb,_0x51797a,_0x5bd065),this[_0x1b7161(0x387)]=this[_0x1b7161(0x356)][_0x1b7161(0x486)](),this[_0x1b7161(0x1ae)](),_0x49b2b6[_0x1b7161(0x2dc)]();}}),this['_adjHandlerPointerUp']=_0x5bb779['onPointerUp$'][_0x66ac4(0x292)]((_0x4a8b4d,_0x17c9e6)=>{const _0x4de24f=_0x66ac4;if(this[_0x4de24f(0x388)][_0x4de24f(0x325)](),this[_0x4de24f(0x2af)]['unsubscribe'](),_0x5bb779['resetCursor'](),this[_0x4de24f(0x356)]){let _0x2d1baa=this['_activeShapeModel'][_0x4de24f(0x3da)](),_0x3cddcb={};for(let _0x10118c of _0x2d1baa){let _0x368a98=this[_0x4de24f(0x356)]['getAdjustValueByName'](_0x10118c);_0x368a98!==void 0x0&&(_0x3cddcb[_0x10118c]=_0x368a98);}this[_0x4de24f(0x4c7)][_0x4de24f(0x1b5)](_0x6a3744,_0x5093cb,_0x51797a,_0x39bba7,_0x3cddcb);}this[_0x4de24f(0x2a8)]=void 0x0,this[_0x4de24f(0x356)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x17c9e6['stopPropagation'](),_0x5bb779[_0x4de24f(0x242)]();}),_0x936986[_0x66ac4(0x2dc)]();})));}[_0x29d1be(0x211)](_0x3872eb,_0x33cad9,_0x1e05a6,_0x26a7cb){const _0xddcad4=_0x29d1be;let _0x2d61b1=this[_0xddcad4(0x399)][_0xddcad4(0x2e5)](_0x3872eb);if(!_0x2d61b1)return;let {scene:_0x3739a3}=_0x2d61b1,_0x5c843d=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3872eb,'subUnitId':_0x33cad9,'drawingId':_0x1e05a6}),_0x5b104e=_0x3739a3['getObject'](_0x5c843d);if(_0x5b104e instanceof c[_0xddcad4(0x367)]){let _0x387e89=_0x5b104e[_0xddcad4(0x218)]??{};_0x5b104e[_0xddcad4(0x2a1)]({..._0x387e89,..._0x26a7cb}),_0x5b104e[_0xddcad4(0x362)](!0x0);}}['_registerMoveHandler'](){const _0x3474a3=_0x29d1be;let _0x17e9a0=this['_univerInstanceService'][_0x3474a3(0x19e)](a[_0x3474a3(0x42c)][_0x3474a3(0x463)]);this[_0x3474a3(0x289)](_0x17e9a0['pipe']((0x0,u[_0x3474a3(0x516)])(_0x3d4c70=>_0x3d4c70?_0x3d4c70[_0x3474a3(0x41c)][_0x3474a3(0x24b)]((0x0,u[_0x3474a3(0x516)])(_0x76cee5=>{const _0x10b6af=_0x3474a3;if(!_0x76cee5)return u[_0x10b6af(0x32b)];let _0x1838fe=_0x3d4c70['getUnitId'](),_0x33f1e7=this['_renderManagerService'][_0x10b6af(0x2e5)](_0x1838fe),_0x46cbed=_0x33f1e7==null?void 0x0:_0x33f1e7[_0x10b6af(0x2ca)];return _0x46cbed?(0x0,u['of'])(_0x46cbed):u['EMPTY'];})):u[_0x3474a3(0x32b)]))[_0x3474a3(0x39c)](_0x50bfe0=>{const _0x2146fc=_0x3474a3;let _0x33bfc3=_0x50bfe0[_0x2146fc(0x527)]();this['disposeWithMe'](_0x50bfe0[_0x2146fc(0x3ea)]['subscribeEvent'](()=>{const _0x42cf77=_0x2146fc;this[_0x42cf77(0x447)]&&this[_0x42cf77(0x24f)]();})),this[_0x2146fc(0x289)](_0x33bfc3[_0x2146fc(0x40e)][_0x2146fc(0x39c)](_0x27014d=>{const _0x19939c=_0x2146fc;let {objects:_0x2de712}=_0x27014d;if(this[_0x19939c(0x1ae)](),_0x2de712!==null&&_0x2de712[_0x19939c(0x2fe)]===0x1){let _0x4090b0=_0x2de712[_0x19939c(0x4bc)]()[_0x19939c(0x3f7)]()['value'];_0x4090b0 instanceof c[_0x19939c(0x367)]&&_0x4090b0[_0x19939c(0x4e6)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x2146fc(0x289)](_0x33bfc3[_0x2146fc(0x49e)][_0x2146fc(0x39c)](()=>{const _0x104df4=_0x2146fc;this['_isImagePointerDown']&&this[_0x104df4(0x24f)]();})),this[_0x2146fc(0x289)](_0x50bfe0[_0x2146fc(0x252)][_0x2146fc(0x292)](()=>{const _0x2fd57d=_0x2146fc;this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this[_0x2fd57d(0x1ae)]());})),this[_0x2146fc(0x289)](_0x33bfc3[_0x2146fc(0x48b)][_0x2146fc(0x39c)](()=>{const _0x4cc9fe=_0x2146fc;if(this[_0x4cc9fe(0x4a7)]&&this['_subUnitId']&&this[_0x4cc9fe(0x3a3)]){let _0x219628=this[_0x4cc9fe(0x205)](this[_0x4cc9fe(0x4a7)],this['_subUnitId'],this['_activeImageId']);if(_0x219628){var _0x29601c,_0x214326;let _0x512e77=this[_0x4cc9fe(0x26f)](this[_0x4cc9fe(0x4a7)],this['_subUnitId'],this[_0x4cc9fe(0x3a3)]),_0x1530a7=(_0x512e77==null||(_0x29601c=_0x512e77[_0x4cc9fe(0x334)])==null?void 0x0:_0x29601c[_0x4cc9fe(0x2b0)])||0x0,_0x42e5a=(_0x512e77==null||(_0x214326=_0x512e77[_0x4cc9fe(0x334)])==null?void 0x0:_0x214326['height'])||0x0,_0x40ae99=this[_0x4cc9fe(0x38c)](_0x219628[_0x4cc9fe(0x4e6)],_0x1530a7,_0x42e5a,_0x219628[_0x4cc9fe(0x21e)]);_0x40ae99&&(this[_0x4cc9fe(0x387)]=_0x40ae99[_0x4cc9fe(0x486)](),this[_0x4cc9fe(0x24f)](),this[_0x4cc9fe(0x1ae)](!0x0));}}}));}));}[_0x29d1be(0x286)](){const _0x398c70=_0x29d1be;this['disposeWithMe'](this[_0x398c70(0x263)]['focus$'][_0x398c70(0x39c)](_0x1b53b7=>{const _0xb71349=_0x398c70;if(_0x1b53b7['length']===0x1){let _0x5315ee=_0x1b53b7[0x0];if(_0x5315ee[_0xb71349(0x458)]===a['DrawingTypeEnum'][_0xb71349(0x37c)]){let {unitId:_0x25680b,subUnitId:_0x4e921f,drawingId:_0x9feaf7}=_0x5315ee,_0xab8379=this[_0xb71349(0x205)](_0x25680b,_0x4e921f,_0x9feaf7);if(_0xab8379){var _0x468c10,_0x39c9d1;this[_0xb71349(0x3a3)]=_0x9feaf7,this[_0xb71349(0x4a7)]=_0x25680b,this[_0xb71349(0x51c)]=_0x4e921f;let _0x32de59=this['_getImageDrawingInfo'](_0x25680b,_0x4e921f,_0x9feaf7),_0x3a9cf8=(_0x32de59==null||(_0x468c10=_0x32de59['transform'])==null?void 0x0:_0x468c10['width'])||0x0,_0x521d85=(_0x32de59==null||(_0x39c9d1=_0x32de59[_0xb71349(0x334)])==null?void 0x0:_0x39c9d1[_0xb71349(0x1bb)])||0x0,_0x4bdf7b=this[_0xb71349(0x38c)](_0xab8379[_0xb71349(0x4e6)],_0x3a9cf8,_0x521d85,_0xab8379[_0xb71349(0x21e)]);_0x4bdf7b&&(this[_0xb71349(0x387)]=_0x4bdf7b['getDrawingPoints']()),this[_0xb71349(0x24f)](),this[_0xb71349(0x1ae)](!0x0);}else this[_0xb71349(0x4f2)]();}else this[_0xb71349(0x4f2)]();}else this[_0xb71349(0x4f2)]();})),this[_0x398c70(0x289)](this[_0x398c70(0x263)]['update$'][_0x398c70(0x39c)](_0x48b4c2=>{const _0x52b73e=_0x398c70;if(_0x48b4c2[_0x52b73e(0x1d6)]===0x1){let _0x9e6237=_0x48b4c2[0x0],_0x4ccc72=this[_0x52b73e(0x263)][_0x52b73e(0x4c9)](_0x9e6237);(_0x4ccc72==null?void 0x0:_0x4ccc72[_0x52b73e(0x458)])===a['DrawingTypeEnum']['DRAWING_IMAGE']&&this[_0x52b73e(0x3a3)]===_0x9e6237['drawingId']&&(this[_0x52b73e(0x24f)](),this[_0x52b73e(0x1ae)](!0x0));}})),this[_0x398c70(0x289)](this['_drawingManagerService']['remove$'][_0x398c70(0x39c)](_0x5bbd23=>{const _0x19a4c6=_0x398c70;for(let _0x2aa804 of _0x5bbd23)this[_0x19a4c6(0x3a3)]===_0x2aa804[_0x19a4c6(0x1e6)]&&this[_0x19a4c6(0x4f2)]();}));}[_0x29d1be(0x4f2)](){const _0x5d3269=_0x29d1be;this[_0x5d3269(0x3a3)]=null,this['_unitId']=null,this[_0x5d3269(0x51c)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x5d3269(0x24f)]();}};ut=A([k(0x1,s[_0x29d1be(0x231)]),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(c['IRenderManagerService'])),k(0x3,a[_0x29d1be(0x2c8)]),k(0x4,(0x0,a['Inject'])(B))],ut);function dt(_0x34c092){return _0x34c092['trim']()||void 0x0;}function ft(_0x575ab2,_0x38e288,_0x523e8b){const _0x520ce2=_0x29d1be;var _0x15638a;return((_0x15638a=_0x575ab2[_0x520ce2(0x391)])==null?void 0x0:_0x15638a[_0x520ce2(0x2c5)]())||_0x523e8b['t'](_0x520ce2(0x1de)+(0x0,e[_0x520ce2(0x345)])(_0x575ab2['drawingType']))+'\x20'+(_0x38e288+0x1);}function pt({PanelComponent:_0x3da43c=d['ObjectListPanelBase']}){const _0x334a8b=_0x29d1be;var _0x55c55a;let _0x577bdb=(0x0,t['useDependency'])(a[_0x334a8b(0x223)]),_0x530813={'title':_0x577bdb['t'](_0x334a8b(0x373)),'empty':_0x577bdb['t'](_0x334a8b(0x1b4)),'showAll':_0x577bdb['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0x577bdb['t'](_0x334a8b(0x4f7)),'lockAll':_0x577bdb['t'](_0x334a8b(0x2cc)),'unlockAll':_0x577bdb['t']('drawing-ui.objectListPanel.unlockAll'),'moveForward':_0x577bdb['t'](_0x334a8b(0x375)),'moveBackward':_0x577bdb['t'](_0x334a8b(0x440)),'close':_0x577bdb['t']('drawing-ui.objectListPanel.close'),'show':_0x577bdb['t'](_0x334a8b(0x30a)),'hide':_0x577bdb['t'](_0x334a8b(0x43b)),'lock':_0x577bdb['t'](_0x334a8b(0x28c)),'unlock':_0x577bdb['t'](_0x334a8b(0x30e)),'lockHint':_0x577bdb['t'](_0x334a8b(0x444)),'unlockHint':_0x577bdb['t'](_0x334a8b(0x323)),'name':_0x577bdb['t'](_0x334a8b(0x26d)),'nameInput':_0x577bdb['t'](_0x334a8b(0x24c)),'description':_0x577bdb['t'](_0x334a8b(0x2ba)),'descriptionPlaceholder':_0x577bdb['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x577bdb['t'](_0x334a8b(0x213)),'noSelection':_0x577bdb['t'](_0x334a8b(0x369)),'locate':_0x577bdb['t']('drawing-ui.objectListPanel.locate'),'expand':_0x577bdb['t'](_0x334a8b(0x38d)),'collapse':_0x577bdb['t'](_0x334a8b(0x48f)),'dragToReorder':_0x577bdb['t'](_0x334a8b(0x1ec)),'search':_0x577bdb['t'](_0x334a8b(0x324)),'filterAll':_0x577bdb['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x577bdb['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x577bdb['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x577bdb['t'](_0x334a8b(0x290)),'sectionFloating':_0x577bdb['t'](_0x334a8b(0x48a))},_0x46e0be=(0x0,t['useDependency'])(a[_0x334a8b(0x1ba)]),_0x2d6fe0=(0x0,t['useDependency'])(a[_0x334a8b(0x2c8)]),_0x327f80=(0x0,t[_0x334a8b(0x439)])(m['ISheetDrawingService']),_0x3bccab=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0x1cf63c=(0x0,t[_0x334a8b(0x439)])(c[_0x334a8b(0x395)]),[,_0x1bab6e]=(0x0,b[_0x334a8b(0x496)])(_0x34a954=>_0x34a954+0x1,0x0),_0x751ff4=_0x2d6fe0[_0x334a8b(0x34c)](a[_0x334a8b(0x42c)]['UNIVER_SHEET']),_0x1816b1=(_0x751ff4==null?void 0x0:_0x751ff4['getUnitId']())??'',_0x223771=(_0x751ff4==null||(_0x55c55a=_0x751ff4[_0x334a8b(0x1f8)]())==null?void 0x0:_0x55c55a[_0x334a8b(0x1ce)]())??'',_0x46b5c4=(0x0,t[_0x334a8b(0x4c2)])(()=>_0x3bccab[_0x334a8b(0x32f)],_0x3bccab[_0x334a8b(0x2fd)](),!0x1,[_0x3bccab]);(0x0,b[_0x334a8b(0x274)])(()=>{let _0x19d5cd=_0x46e0be['onCommandExecuted'](()=>_0x1bab6e());return()=>_0x19d5cd['dispose']();},[_0x46e0be]);let _0x6781db=_0x1816b1&&_0x223771?_0x327f80[_0x334a8b(0x250)](_0x1816b1,_0x223771):{},_0x4f39a6=(_0x1816b1&&_0x223771?_0x327f80[_0x334a8b(0x46d)](_0x1816b1,_0x223771):[])[_0x334a8b(0x449)](_0x8a8685=>_0x6781db[_0x8a8685])[_0x334a8b(0x332)](_0x14ff02=>!!_0x14ff02)[_0x334a8b(0x2c2)](),_0x5e82d7=_0x4f39a6[_0x334a8b(0x3a1)]((_0x1864a0,_0x508f89)=>(_0x1864a0[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x508f89[_0x334a8b(0x458)])]+=0x1,_0x1864a0),{'canvas':0x0,'floating':0x0}),_0x1787db={'canvas':0x0,'floating':0x0},_0x36b1f0=_0x4f39a6[_0x334a8b(0x449)]((_0x108666,_0x297313)=>{const _0x4fa183=_0x334a8b;let _0x5aa9b9=(0x0,d[_0x4fa183(0x524)])(_0x108666[_0x4fa183(0x458)]),_0xb2b4af=_0x5aa9b9===d['OBJECT_LIST_FLOATING_SECTION_ID'],_0x14e243=_0x1787db[_0x5aa9b9]++;return{'id':_0x108666[_0x4fa183(0x1e6)],'name':ft(_0x108666,_0x297313,_0x577bdb),'description':_0x108666[_0x4fa183(0x2f4)],'visible':_0x108666[_0x4fa183(0x45b)]!==!0x0,'selectable':_0x108666['selectable']!==!0x1,'sectionId':_0x5aa9b9,'sectionTitle':_0xb2b4af?_0x530813[_0x4fa183(0x4b4)]:_0x530813[_0x4fa183(0x36f)],'capabilities':_0xb2b4af?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xb2b4af&&_0x14e243>0x0,'canMoveBackward':!_0xb2b4af&&_0x14e243<_0x5e82d7[_0x4fa183(0x478)]-0x1,'canReorder':!_0xb2b4af};}),_0x5546a3=(0x0,b[_0x334a8b(0x398)])(()=>(_0x46b5c4??[])[_0x334a8b(0x332)](_0x2a24b0=>_0x2a24b0['unitId']===_0x1816b1&&_0x2a24b0[_0x334a8b(0x21d)]===_0x223771)[_0x334a8b(0x449)](_0x5c591e=>_0x5c591e[_0x334a8b(0x1e6)]),[_0x46b5c4,_0x223771,_0x1816b1]),_0x28b85a=_0x5546a3[_0x5546a3[_0x334a8b(0x1d6)]-0x1]??null,_0x4d3db1=_0x1fd7b6=>_0x327f80[_0x334a8b(0x4c9)]({'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x1fd7b6})??null,_0x1ec8e7=async _0x367420=>{const _0x3f6b52=_0x334a8b;_0x1816b1&&_0x367420['length']&&await _0x46e0be[_0x3f6b52(0x1f6)](m[_0x3f6b52(0x43a)]['id'],{'unitId':_0x1816b1,'drawings':_0x367420});},_0x37542c=async(_0x509e97,_0x30e75d)=>{_0x4d3db1(_0x509e97)&&await _0x1ec8e7([{'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x509e97,..._0x30e75d}]);},_0x339bfa=(_0x4a5e78,_0x698319)=>{const _0x3ff4c4=_0x334a8b;if(!_0x1816b1||!_0x223771)return;let _0x4c1c30=_0x698319?_0x5546a3[_0x3ff4c4(0x312)](_0x4a5e78)?_0x5546a3['filter'](_0x30fbf8=>_0x30fbf8!==_0x4a5e78):[..._0x5546a3,_0x4a5e78]:[_0x4a5e78];_0x46e0be[_0x3ff4c4(0x1f5)](s[_0x3ff4c4(0x2e6)]['id'],_0x4c1c30[_0x3ff4c4(0x449)](_0x333d11=>({'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x333d11})));let _0x1d9b30=_0x4c1c30[_0x4c1c30[_0x3ff4c4(0x1d6)]-0x1];_0x1d9b30?(0x0,e[_0x3ff4c4(0x1ea)])(_0x1cf63c,{'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x1d9b30}):(0x0,e[_0x3ff4c4(0x505)])(_0x1cf63c,_0x1816b1);},_0x232894=async(_0x5e69a7,_0x4695f5)=>{const _0x2fc774=_0x334a8b;await _0x1ec8e7(_0x5e69a7[_0x2fc774(0x449)](_0x4f9bd7=>_0x4d3db1(_0x4f9bd7))[_0x2fc774(0x332)](_0x445944=>!!_0x445944)[_0x2fc774(0x332)](_0x3fc31b=>_0x3fc31b['hidden']!==!0x0!==_0x4695f5)[_0x2fc774(0x449)](_0x2bad7c=>({'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x2bad7c['drawingId'],'hidden':!_0x4695f5})));},_0x46c422=async(_0x572350,_0x399992)=>{const _0x5f5da4=_0x334a8b;await _0x1ec8e7(_0x572350[_0x5f5da4(0x449)](_0x5d40a8=>_0x4d3db1(_0x5d40a8))['filter'](_0x2ca0a5=>!!_0x2ca0a5)[_0x5f5da4(0x332)](_0x45f563=>_0x45f563[_0x5f5da4(0x3b5)]!==!0x1!==_0x399992)[_0x5f5da4(0x449)](_0x1ade56=>({'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingId':_0x1ade56[_0x5f5da4(0x1e6)],'selectable':_0x399992})));},_0x2c69ee=_0x1e6cab=>{const _0x45daea=_0x334a8b;let _0x533a75=_0x4d3db1(_0x1e6cab);if(_0x533a75)return _0x46c422([_0x1e6cab],_0x533a75[_0x45daea(0x3b5)]===!0x1);},_0xa3fc42=async(_0x4c73be,_0x625436)=>{const _0x21dcc6=_0x334a8b;var _0x309edc;let _0x1669eb=dt(_0x625436);(((_0x309edc=_0x4d3db1(_0x4c73be))==null?void 0x0:_0x309edc[_0x21dcc6(0x391)])??void 0x0)!==_0x1669eb&&await _0x37542c(_0x4c73be,{'name':_0x1669eb});},_0x1dceb3=async(_0x23eb1e,_0x3fed16)=>{const _0x5b9708=_0x334a8b;var _0x39969f;let _0x220c74=dt(_0x3fed16);(((_0x39969f=_0x4d3db1(_0x23eb1e))==null?void 0x0:_0x39969f[_0x5b9708(0x2f4)])??void 0x0)!==_0x220c74&&await _0x37542c(_0x23eb1e,{'description':_0x220c74});},_0x6695a3=async(_0x22a6c6,_0x353ff0)=>{const _0x53f3d7=_0x334a8b;_0x1816b1&&_0x223771&&await _0x46e0be[_0x53f3d7(0x1f6)](m['SetDrawingArrangeCommand']['id'],{'unitId':_0x1816b1,'subUnitId':_0x223771,'drawingIds':[_0x22a6c6],'arrangeType':_0x353ff0});};return!_0x1816b1||!_0x223771?(0x0,p[_0x334a8b(0x2cf)])('div',{'className':_0x334a8b(0x347),'children':_0x530813[_0x334a8b(0x49f)]}):(0x0,p[_0x334a8b(0x2cf)])(_0x3da43c,{'labels':_0x530813,'items':_0x36b1f0,'selectedIds':_0x5546a3,'focusedId':_0x28b85a,'showHeader':!0x1,'onSelect':_0x339bfa,'onSetVisible':_0x232894,'onSetSelectable':_0x46c422,'onCommitName':_0xa3fc42,'onCommitDescription':_0x1dceb3,'onMoveForward':async _0x2d0ad5=>_0x6695a3(_0x2d0ad5,a[_0x334a8b(0x475)][_0x334a8b(0x4b0)]),'onMoveBackward':async _0x2a7629=>_0x6695a3(_0x2a7629,a[_0x334a8b(0x475)]['backward']),'onToggleSelectable':_0x2c69ee});}function mt(){const _0x185a2e=_0x29d1be;return(0x0,p[_0x185a2e(0x2cf)])(pt,{'PanelComponent':d[_0x185a2e(0x315)]});}function _0x6cf2(_0x38b48d,_0x562ef4){_0x38b48d=_0x38b48d-0x19c;const _0x46b28a=_0x46b2();let _0x6cf2b4=_0x46b28a[_0x38b48d];return _0x6cf2b4;}let ht=class extends a['Disposable']{constructor(_0x4dd9a7,_0x1b4336){const _0x1103ac=_0x29d1be;super(),this['disposeWithMe'](_0x4dd9a7[_0x1103ac(0x248)](I,mt)),this[_0x1103ac(0x289)](_0x1b4336[_0x1103ac(0x248)]({'BottomIcon':y[_0x1103ac(0x29b)],'FlipHorizontalIcon':y[_0x1103ac(0x390)],'FlipVerticalIcon':y['FlipVerticalIcon'],'MoveDownIcon':y[_0x1103ac(0x4ff)],'MoveUpIcon':y['MoveUpIcon'],'ObjectLayersIcon':y[_0x1103ac(0x4d1)],'ShapeFormatSettingIcon':y[_0x1103ac(0x381)],'TopmostIcon':y[_0x1103ac(0x379)]})),this[_0x1103ac(0x289)](_0x4dd9a7[_0x1103ac(0x248)](le,ge)),this[_0x1103ac(0x289)](_0x4dd9a7[_0x1103ac(0x248)](ue,pe)),_0x4dd9a7[_0x1103ac(0x273)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x1103ac(0x289)](_0x4dd9a7[_0x1103ac(0x248)](d[_0x1103ac(0x2fc)],me));}};ht=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(t['ComponentManager'])),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(t['IconManager']))],ht);let H=class extends a[_0x29d1be(0x520)]{constructor(_0x53be8b){const _0x20a529=_0x29d1be;super(),this[_0x20a529(0x20e)]=_0x53be8b,E(this,_0x20a529(0x1cb),new u['BehaviorSubject'](null)),E(this,_0x20a529(0x4eb),this[_0x20a529(0x1cb)][_0x20a529(0x50d)]()),E(this,_0x20a529(0x2ce),new u[(_0x20a529(0x427))](!0x1)),E(this,_0x20a529(0x249),this[_0x20a529(0x2ce)]['asObservable']()),E(this,'_completionFrame',void 0x0),this[_0x20a529(0x289)](this['_permissionService'][_0x20a529(0x2ed)][_0x20a529(0x39c)](()=>{const _0x5cebdb=_0x20a529;let _0x3ea951=this[_0x5cebdb(0x2a0)]();_0x3ea951!=null&&_0x3ea951[_0x5cebdb(0x288)]&&!this[_0x5cebdb(0x27f)](_0x3ea951)&&this[_0x5cebdb(0x238)](null);}));}[_0x29d1be(0x361)](){const _0x2fafd2=_0x29d1be;this[_0x2fafd2(0x422)](),this['_editingParams$'][_0x2fafd2(0x3f7)](null),this[_0x2fafd2(0x1cb)][_0x2fafd2(0x526)](),this[_0x2fafd2(0x2ce)][_0x2fafd2(0x3f7)](!0x1),this['_onSavingEditorData$'][_0x2fafd2(0x526)](),super[_0x2fafd2(0x361)]();}[_0x29d1be(0x238)](_0xb0d391){const _0x96db39=_0x29d1be;(_0xb0d391==null||!_0xb0d391[_0x96db39(0x288)]||this[_0x96db39(0x27f)](_0xb0d391))&&(this[_0x96db39(0x422)](),this[_0x96db39(0x1cb)][_0x96db39(0x3f7)](_0xb0d391),(_0xb0d391==null||_0xb0d391['visible']&&this[_0x96db39(0x2ce)]['getValue']())&&this[_0x96db39(0x2ce)][_0x96db39(0x3f7)](!0x1));}['setOnSavingEditorData'](_0x44de5e){const _0x1f176d=_0x29d1be;this['_onSavingEditorData$'][_0x1f176d(0x3f7)](_0x44de5e);}[_0x29d1be(0x2a0)](){const _0x370bc9=_0x29d1be;return this[_0x370bc9(0x1cb)]['getValue']();}[_0x29d1be(0x27f)](_0x5401a0){const _0x1b9d6b=_0x29d1be;let _0x419307=this['_permissionService'][_0x1b9d6b(0x488)](new o[(_0x1b9d6b(0x251))](_0x5401a0[_0x1b9d6b(0x448)])['id']),_0x49e93f=this[_0x1b9d6b(0x20e)]['getPermissionPoint'](new o[(_0x1b9d6b(0x363))](_0x5401a0[_0x1b9d6b(0x448)],_0x5401a0['subUnitId'])['id']);return((_0x419307==null?void 0x0:_0x419307['value'])??!0x0)&&((_0x49e93f==null?void 0x0:_0x49e93f[_0x1b9d6b(0x37f)])??!0x0);}[_0x29d1be(0x3bd)](_0x538789){const _0x223435=_0x29d1be;let _0x2ed7a7=this['getEditing']();_0x2ed7a7&&this[_0x223435(0x1c1)]===void 0x0&&(this[_0x223435(0x287)](!0x0),this[_0x223435(0x1c1)]=requestAnimationFrame(()=>{const _0x114a54=_0x223435;this[_0x114a54(0x1c1)]=void 0x0,this[_0x114a54(0x2a0)]()===_0x2ed7a7&&this['setEditing'](null);}));}[_0x29d1be(0x422)](){const _0x119ac4=_0x29d1be;this[_0x119ac4(0x1c1)]!==void 0x0&&(cancelAnimationFrame(this[_0x119ac4(0x1c1)]),this['_completionFrame']=void 0x0);}['cancelEditing'](){const _0x24f268=_0x29d1be;this['getEditing']()&&this[_0x24f268(0x238)](null);}};H=A([k(0x0,a[_0x29d1be(0x227)])],H);let gt=class extends a[_0x29d1be(0x520)]{constructor(_0x305271,_0x4711cc,_0xdf5d08,_0x315778,_0x2e0808,_0x34d1a9){const _0x3e60db=_0x29d1be;super(),this[_0x3e60db(0x40f)]=_0x305271,this['_injector']=_0x4711cc,this[_0x3e60db(0x29a)]=_0xdf5d08,this[_0x3e60db(0x263)]=_0x315778,this[_0x3e60db(0x22b)]=_0x2e0808,this[_0x3e60db(0x1a8)]=_0x34d1a9,E(this,_0x3e60db(0x40b),null),this[_0x3e60db(0x216)](),this[_0x3e60db(0x416)](),this[_0x3e60db(0x4e1)]();}[_0x29d1be(0x216)](){const _0x7b2658=_0x29d1be;let {scene:_0x392621}=this['_context'];this[_0x7b2658(0x289)](_0x392621[_0x7b2658(0x3f3)][_0x7b2658(0x292)](_0x2fd52a=>{const _0x19219f=_0x7b2658;let {offsetX:_0x1ee0e8,offsetY:_0x4ebb43}=_0x2fd52a,_0x4ecf14=_0x392621[_0x19219f(0x4c1)](c['Vector2'][_0x19219f(0x303)]([_0x1ee0e8,_0x4ebb43]));if(_0x4ecf14 instanceof D){let _0x39ce19=this['_sheetsShapeService'][_0x19219f(0x44f)](_0x4ecf14[_0x19219f(0x448)],_0x4ecf14['subUnitId'],_0x4ecf14[_0x19219f(0x1cf)]);if((0x0,n[_0x19219f(0x3c7)])(this[_0x19219f(0x1a8)][_0x19219f(0x489)](_0x4ecf14[_0x19219f(0x448)],_0x4ecf14[_0x19219f(0x21d)],_0x4ecf14[_0x19219f(0x1cf)]))||_0x39ce19!=null&&_0x39ce19['getShapeData']()[_0x19219f(0x3e8)])return;this[_0x19219f(0x29a)][_0x19219f(0x238)]({'visible':!0x0,'unitId':_0x4ecf14['unitId'],'subUnitId':_0x4ecf14['subUnitId'],'shapeId':_0x4ecf14[_0x19219f(0x1cf)],'shapeKey':_0x4ecf14['oKey']});}}));}['_initSelection'](){const _0x1fb810=_0x29d1be;this[_0x1fb810(0x289)](this['_drawingManagerService'][_0x1fb810(0x32f)][_0x1fb810(0x39c)](_0x2cdb72=>{const _0x3ccec3=_0x1fb810;if(_0x2cdb72['length']===0x1){let _0x4854bd=_0x2cdb72[0x0],_0x247d51=this[_0x3ccec3(0x263)]['getDrawingByParam'](_0x4854bd);if((_0x247d51==null?void 0x0:_0x247d51[_0x3ccec3(0x458)])===a[_0x3ccec3(0x4e8)][_0x3ccec3(0x41d)]){var _0x4417ff;let _0x17f43b=this[_0x3ccec3(0x29a)][_0x3ccec3(0x2a0)]();if((_0x17f43b==null?void 0x0:_0x17f43b['shapeId'])===_0x4854bd[_0x3ccec3(0x1e6)]&&_0x17f43b[_0x3ccec3(0x288)])return;let _0x524186=(0x0,n[_0x3ccec3(0x3c7)])(this[_0x3ccec3(0x1a8)]['getShapeType'](_0x4854bd['unitId'],_0x4854bd[_0x3ccec3(0x21d)],_0x4854bd[_0x3ccec3(0x1e6)])),_0x173f9e=!!((_0x4417ff=this['_sheetsShapeService'][_0x3ccec3(0x44f)](_0x4854bd[_0x3ccec3(0x448)],_0x4854bd[_0x3ccec3(0x21d)],_0x4854bd['drawingId']))!=null&&_0x4417ff[_0x3ccec3(0x50e)]()[_0x3ccec3(0x3e8)]);(_0x524186||_0x173f9e)&&this[_0x3ccec3(0x29a)]['setEditing'](null);}else this['_shapeTextEditingService']['completeEditing']();}else this[_0x3ccec3(0x29a)][_0x3ccec3(0x3bd)]();})),this[_0x1fb810(0x289)](this[_0x1fb810(0x263)][_0x1fb810(0x4ab)][_0x1fb810(0x39c)](_0x2f5105=>{const _0x27c0a1=_0x1fb810;let _0x2606ac=this[_0x27c0a1(0x29a)][_0x27c0a1(0x2a0)]();_0x2606ac&&_0x2f5105[_0x27c0a1(0x2b4)](_0x599d43=>_0x599d43['drawingId']===_0x2606ac[_0x27c0a1(0x1cf)])&&this[_0x27c0a1(0x29a)][_0x27c0a1(0x238)](null);}));}[_0x29d1be(0x4e1)](){const _0x53fd4a=_0x29d1be;this['disposeWithMe'](this[_0x53fd4a(0x29a)][_0x53fd4a(0x4eb)]['subscribe'](_0x2cc9b8=>{const _0x18daff=_0x53fd4a;let {scene:_0x24e3bc}=this[_0x18daff(0x40f)];if(this[_0x18daff(0x40b)]){let _0x50ed8d=_0x24e3bc[_0x18daff(0x467)](this[_0x18daff(0x40b)]);_0x50ed8d&&_0x50ed8d[_0x18daff(0x238)](!0x1);}if(_0x2cc9b8){let _0x1d3a1e=!!_0x2cc9b8[_0x18daff(0x288)],_0x358b29=_0x24e3bc[_0x18daff(0x467)](_0x2cc9b8['shapeKey']);_0x358b29&&(_0x358b29[_0x18daff(0x238)](_0x1d3a1e),this[_0x18daff(0x40b)]=_0x2cc9b8['shapeKey']),this['_contextService']['setContextValue'](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x1d3a1e);}else this[_0x18daff(0x40b)]=null,this[_0x18daff(0x22b)][_0x18daff(0x33a)](a[_0x18daff(0x4e3)],!0x1);}));}};gt=A([k(0x1,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x38f)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(H)),k(0x3,s[_0x29d1be(0x231)]),k(0x4,a[_0x29d1be(0x465)]),k(0x5,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)]))],gt);var _t=class extends gt{[_0x29d1be(0x216)](){const _0x5082e1=_0x29d1be;let {scene:_0x379a1c}=this['_context'],_0x4d1e32=this[_0x5082e1(0x22a)][_0x5082e1(0x264)](e[_0x5082e1(0x308)]);this[_0x5082e1(0x289)](_0x379a1c['onDblclick$'][_0x5082e1(0x292)](_0x3b62cc=>{const _0x503cdb=_0x5082e1;let {offsetX:_0x801e8d,offsetY:_0x18e8ed}=_0x3b62cc,_0x22a542=_0x379a1c[_0x503cdb(0x4c1)](c[_0x503cdb(0x3a6)][_0x503cdb(0x303)]([_0x801e8d,_0x18e8ed]));if(!(_0x22a542 instanceof D))return;let _0x2ab834=this[_0x503cdb(0x1a8)][_0x503cdb(0x44f)](_0x22a542[_0x503cdb(0x448)],_0x22a542['subUnitId'],_0x22a542['shapeId']);(0x0,n['isConnectorShape'])(this[_0x503cdb(0x1a8)][_0x503cdb(0x489)](_0x22a542[_0x503cdb(0x448)],_0x22a542[_0x503cdb(0x21d)],_0x22a542[_0x503cdb(0x1cf)]))||_0x2ab834!=null&&_0x2ab834[_0x503cdb(0x50e)]()[_0x503cdb(0x3e8)]||_0x4d1e32[_0x503cdb(0x314)]('text',{'hostType':a['UniverInstanceType'][_0x503cdb(0x463)],'unitId':_0x22a542[_0x503cdb(0x448)],'subUnitId':_0x22a542['subUnitId'],'shapeId':_0x22a542[_0x503cdb(0x1cf)]});}));}};const vt={...rt};let U=class extends a['Disposable']{constructor(_0x39a648,_0x1b74c8,_0x26f69e,_0xbcaf6f,_0x2eaaf8,_0x3a38eb,_0x3eecef,_0x28af80){const _0x22ae29=_0x29d1be;super(),this[_0x22ae29(0x3a0)]=_0x39a648,this[_0x22ae29(0x1a8)]=_0x1b74c8,this[_0x22ae29(0x36d)]=_0x26f69e,this[_0x22ae29(0x263)]=_0xbcaf6f,this[_0x22ae29(0x4ca)]=_0x2eaaf8,this[_0x22ae29(0x22b)]=_0x3a38eb,this[_0x22ae29(0x399)]=_0x3eecef,this[_0x22ae29(0x29a)]=_0x28af80,E(this,_0x22ae29(0x278),null),this[_0x22ae29(0x3a0)][_0x22ae29(0x311)](vt),this['_registerFeatureMenu'](),this[_0x22ae29(0x289)](this[_0x22ae29(0x29a)][_0x22ae29(0x4eb)]['subscribe'](_0x443b00=>{_0x443b00&&this['_clearFocusedShape']();}));}[_0x29d1be(0x35f)](){const _0x173f03=_0x29d1be;this[_0x173f03(0x278)]||=this['disposeWithMe']((0x0,e[_0x173f03(0x491)])(this[_0x173f03(0x399)],a[_0x173f03(0x42c)][_0x173f03(0x463)],_0x5ad041=>this[_0x173f03(0x22e)](_0x5ad041)));}[_0x29d1be(0x472)](){const _0x5429b1=_0x29d1be;this['_sheetCanvasPopManagerService'][_0x5429b1(0x43d)](a['DrawingTypeEnum'][_0x5429b1(0x41d)],(_0x201d18,_0x504c8c,_0x4735c6,_0x371bab)=>{const _0x54e784=_0x5429b1;let _0x58926f=this[_0x54e784(0x1a8)]['getShapeTypeById'](_0x201d18,_0x504c8c,_0x4735c6),_0x409de7=this[_0x54e784(0x1a8)][_0x54e784(0x385)](_0x201d18,_0x504c8c,_0x4735c6),_0x504327=_0x58926f!==void 0x0&&!(0x0,n[_0x54e784(0x3c7)])(_0x58926f)&&!(_0x409de7!=null&&_0x409de7[_0x54e784(0x3e8)]);return[{'label':_0x54e784(0x3bc),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x201d18,'subUnitId':_0x504c8c,'drawingId':_0x4735c6,'mode':_0x54e784(0x285)},'disable':!0x1},..._0x504327?[{'label':_0x54e784(0x508),'index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x201d18,'subUnitId':_0x504c8c,'drawingId':_0x4735c6,'mode':_0x54e784(0x4fe)},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':m[_0x54e784(0x260)]['id'],'commandParams':{'unitId':_0x201d18,'drawings':[{'unitId':_0x201d18,'subUnitId':_0x504c8c,'drawingId':_0x4735c6,'drawingType':_0x371bab}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':i[_0x54e784(0x233)]['id'],'commandParams':{'unitId':_0x201d18,'subUnitId':_0x504c8c,'shapeId':_0x4735c6,'flipH':!0x0},'disable':!0x1},{'label':_0x54e784(0x236),'index':0x4,'commandId':i[_0x54e784(0x233)]['id'],'commandParams':{'unitId':_0x201d18,'subUnitId':_0x504c8c,'shapeId':_0x4735c6,'flipV':!0x0},'disable':!0x1}];},_0x5429b1(0x31e));}[_0x29d1be(0x22e)](_0x58d72e){const _0x2fae7=_0x29d1be;let _0x8063f9=new a[(_0x2fae7(0x46c))](),_0x1c9192=null,_0x35c443=()=>{const _0x16082d=_0x2fae7;if(!_0x1c9192)return;let _0x56f471=this[_0x16082d(0x263)][_0x16082d(0x2fd)](),_0x9635ca=_0x56f471[_0x16082d(0x1d6)]===0x0||_0x56f471['length']===0x1&&_0x56f471['some'](_0x4ca8a0=>_0x4ca8a0[_0x16082d(0x448)]===(_0x1c9192==null?void 0x0:_0x1c9192[_0x16082d(0x448)])&&_0x4ca8a0['subUnitId']===(_0x1c9192==null?void 0x0:_0x1c9192[_0x16082d(0x21d)])&&_0x4ca8a0[_0x16082d(0x1e6)]===(_0x1c9192==null?void 0x0:_0x1c9192[_0x16082d(0x1e6)]));_0x1c9192=null,_0x9635ca&&(this[_0x16082d(0x22b)]['setContextValue'](a[_0x16082d(0x214)],!0x1),this[_0x16082d(0x263)]['focusDrawing'](null));};return _0x8063f9[_0x2fae7(0x3a2)](_0x58d72e[_0x2fae7(0x51f)]['subscribe'](()=>{const _0x1da962=_0x2fae7;let _0x5e1edf=_0x58d72e[_0x1da962(0x2ef)]();if(_0x5e1edf[_0x1da962(0x2fe)]>0x1){_0x35c443();return;}let _0x48b3fd=_0x5e1edf['values']()[_0x1da962(0x3f7)]()['value'];if(!_0x48b3fd){_0x35c443();return;}let _0xf4e582=this[_0x1da962(0x263)][_0x1da962(0x3fc)](_0x48b3fd[_0x1da962(0x2b7)]);if(!_0xf4e582||_0xf4e582[_0x1da962(0x458)]!==a[_0x1da962(0x4e8)][_0x1da962(0x41d)]){_0x35c443();return;}let {unitId:_0x2ac61e,subUnitId:_0x582021,drawingId:_0x79e772}=_0xf4e582;_0x1c9192={'unitId':_0x2ac61e,'subUnitId':_0x582021,'drawingId':_0x79e772},this[_0x1da962(0x22b)][_0x1da962(0x33a)](a[_0x1da962(0x214)],!0x0),this[_0x1da962(0x263)]['getFocusDrawings']()[_0x1da962(0x432)](_0x19eebf=>_0x19eebf[_0x1da962(0x448)]===_0x2ac61e&&_0x19eebf[_0x1da962(0x21d)]===_0x582021&&_0x19eebf[_0x1da962(0x1e6)]===_0x79e772)||this[_0x1da962(0x263)]['focusDrawing']([{'unitId':_0x2ac61e,'subUnitId':_0x582021,'drawingId':_0x79e772}]);})),_0x8063f9['add'](_0x58d72e[_0x2fae7(0x29d)]['subscribe'](()=>{_0x35c443();})),(0x0,a[_0x2fae7(0x3dd)])(()=>{const _0x585d74=_0x2fae7;_0x8063f9[_0x585d74(0x361)](),_0x35c443();});}['_clearFocusedShape'](){const _0x10c9b4=_0x29d1be;this[_0x10c9b4(0x22b)][_0x10c9b4(0x33a)](a[_0x10c9b4(0x214)],!0x1),this[_0x10c9b4(0x263)][_0x10c9b4(0x322)](null);}};U=A([k(0x0,t['IMenuManagerService']),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)])),k(0x2,a[_0x29d1be(0x1ba)]),k(0x3,s[_0x29d1be(0x231)]),k(0x4,(0x0,a[_0x29d1be(0x3cc)])(l[_0x29d1be(0x321)])),k(0x5,a[_0x29d1be(0x465)]),k(0x6,c[_0x29d1be(0x395)]),k(0x7,(0x0,a[_0x29d1be(0x3cc)])(H))],U);function yt(_0x3a4662,_0x4df9ef,_0x7712bc,_0x5048d5){const _0x12fd6c=_0x29d1be;let _0x483a95=(0x0,s[_0x12fd6c(0x1f7)])(_0x3a4662,_0x4df9ef,_0x7712bc),_0x27087d=[];for(let _0x4d9822 of _0x4df9ef){let _0x39520d=_0x483a95['idMap'][_0x12fd6c(0x264)](_0x4d9822[_0x12fd6c(0x1e6)]),_0x4819ae=_0x5048d5(_0x4d9822);_0x39520d&&_0x4819ae&&_0x27087d[_0x12fd6c(0x25c)]({'targetShapeId':_0x39520d,'source':_0x4819ae});}return _0x27087d;}let W=class extends a[_0x29d1be(0x520)]{constructor(_0x362772,_0x1b67d9,_0x220476,_0x17f17c){const _0x1143d6=_0x29d1be;super(),this['_univerInstanceService']=_0x362772,this[_0x1143d6(0x3a4)]=_0x1b67d9,this[_0x1143d6(0x38e)]=_0x220476,this[_0x1143d6(0x1a8)]=_0x17f17c,this[_0x1143d6(0x4dd)]();}[_0x29d1be(0x4dd)](){const _0x310eb7=_0x29d1be;this[_0x310eb7(0x289)](this[_0x310eb7(0x3a4)][_0x310eb7(0x1b0)]({'getMutations':_0xfd766f=>{const _0x5490cf=_0x310eb7;if(_0xfd766f['id']===o[_0x5490cf(0x3b9)]['id']){let _0x55e78a=(0x0,o[_0x5490cf(0x3d0)])(this[_0x5490cf(0x3d3)],_0xfd766f['params']);if(!_0x55e78a)return{'redos':[],'undos':[]};let {unitId:_0x118c25,subUnitId:_0x3e3a5a}=_0x55e78a,_0x5be73b=this[_0x5490cf(0x38e)]['getDrawingData'](_0x118c25,_0x3e3a5a),_0x24cfd4=Object[_0x5490cf(0x4bc)](_0x5be73b)[_0x5490cf(0x332)](_0x1fa56c=>_0x1fa56c[_0x5490cf(0x458)]===a['DrawingTypeEnum'][_0x5490cf(0x41d)]);if(_0x24cfd4['length']===0x0)return{'redos':[],'undos':[]};let _0xda48e1=[],_0x375f15=[];for(let _0x2d928f=0x0;_0x2d928f<_0x24cfd4['length'];_0x2d928f++){let _0x29c83=_0x24cfd4[_0x2d928f],_0x31b48c=this[_0x5490cf(0x1a8)][_0x5490cf(0x44f)](_0x29c83[_0x5490cf(0x448)],_0x29c83[_0x5490cf(0x21d)],_0x29c83['drawingId']);_0x31b48c&&(_0xda48e1['push']({'id':i[_0x5490cf(0x35d)]['id'],'params':{'unitId':_0x118c25,'subUnitId':_0x3e3a5a,'shapeId':_0x29c83['drawingId']}}),_0x375f15['push']({'id':i[_0x5490cf(0x403)]['id'],'params':{'unitId':_0x118c25,'subUnitId':_0x3e3a5a,'shapeId':_0x29c83[_0x5490cf(0x1e6)],'shapeType':_0x31b48c[_0x5490cf(0x489)](),'shapeData':JSON[_0x5490cf(0x2a6)](JSON[_0x5490cf(0x507)](_0x31b48c['getShapeData']()))}}));}return{'redos':_0xda48e1,'undos':_0x375f15};}if(_0xfd766f['id']===o[_0x5490cf(0x2f7)]['id']){let {unitId:_0x41093d,subUnitId:_0x4cd445,targetSubUnitId:_0x3743e0,copyContext:_0x2cf1c0}=_0xfd766f['params'];if(!_0x41093d||!_0x4cd445||!_0x3743e0)return{'redos':[],'undos':[]};let _0x426aa3=this['_sheetDrawingService'][_0x5490cf(0x250)](_0x41093d,_0x4cd445),_0x55c239=Object[_0x5490cf(0x4bc)](_0x426aa3)['filter'](_0x4cd655=>_0x4cd655[_0x5490cf(0x458)]===a['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x55c239[_0x5490cf(0x1d6)]===0x0)return{'redos':[],'undos':[]};let _0x1f5318=yt(_0x2cf1c0,_0x55c239,{'unitId':_0x41093d,'sourceSubUnitId':_0x4cd445,'targetSubUnitId':_0x3743e0},_0x129210=>{const _0x4e0170=_0x5490cf;let _0x47d030=this[_0x4e0170(0x1a8)][_0x4e0170(0x44f)](_0x129210[_0x4e0170(0x448)],_0x129210['subUnitId'],_0x129210[_0x4e0170(0x1e6)]);if(_0x47d030)return{'shapeType':_0x47d030[_0x4e0170(0x489)](),'shapeData':JSON[_0x4e0170(0x2a6)](JSON['stringify'](_0x47d030[_0x4e0170(0x50e)]()))};}),_0x1f9c63=[],_0x119646=[];for(let {targetShapeId:_0x48a3d9,source:_0x113b65}of _0x1f5318)_0x1f9c63[_0x5490cf(0x25c)]({'id':i[_0x5490cf(0x403)]['id'],'params':{'unitId':_0x41093d,'subUnitId':_0x3743e0,'shapeId':_0x48a3d9,'shapeType':_0x113b65[_0x5490cf(0x4b2)],'shapeData':_0x113b65['shapeData']}}),_0x119646[_0x5490cf(0x25c)]({'id':i[_0x5490cf(0x35d)]['id'],'params':{'unitId':_0x41093d,'subUnitId':_0x3743e0,'shapeId':_0x48a3d9}});return{'redos':_0x1f9c63,'undos':_0x119646};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(a['IUniverInstanceService'])),k(0x1,(0x0,a['Inject'])(o[_0x29d1be(0x1c9)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(m[_0x29d1be(0x366)])),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)]))],W);let G=class extends a[_0x29d1be(0x520)]{constructor(_0x5c5886,_0x161e9a,_0x555232,_0x4cf0d2,_0x356b5b,_0x4c0683){const _0x371812=_0x29d1be;super(),this[_0x371812(0x36d)]=_0x5c5886,this[_0x371812(0x399)]=_0x161e9a,this[_0x371812(0x263)]=_0x555232,this['_currentUniverService']=_0x4cf0d2,this['_drawingRenderService']=_0x356b5b,this[_0x371812(0x300)]=_0x4c0683,E(this,_0x371812(0x3ac),new Set()),this[_0x371812(0x22c)]();}[_0x29d1be(0x22c)](){const _0x7e4e0a=_0x29d1be;this[_0x7e4e0a(0x368)](),this[_0x7e4e0a(0x265)](),this['_shapeUpdateListener']();}[_0x29d1be(0x368)](){const _0x40fb06=_0x29d1be;this[_0x40fb06(0x289)](this[_0x40fb06(0x263)]['add$'][_0x40fb06(0x39c)](_0x60b8e3=>{const _0x456972=_0x40fb06;this[_0x456972(0x266)](_0x60b8e3);}));}[_0x29d1be(0x265)](){const _0x426409=_0x29d1be;this[_0x426409(0x289)](this['_commandService'][_0x426409(0x2da)]((_0x1a7731,_0x474ea0)=>{const _0x4b7bfe=_0x426409;if(_0x1a7731['id']===i[_0x4b7bfe(0x1b2)]['id']){let {unitId:_0x23ca90,subUnitId:_0x33ee60,shapeId:_0x697710}=_0x1a7731[_0x4b7bfe(0x45d)],_0x4b6d70=this['_getSceneAndTransformerByDrawingSearch'](_0x23ca90),_0x10291a=(0x0,s[_0x4b7bfe(0x2f5)])({'unitId':_0x23ca90,'subUnitId':_0x33ee60,'drawingId':_0x697710}),_0x4df8fa=_0x4b6d70==null?void 0x0:_0x4b6d70[_0x4b7bfe(0x2ca)][_0x4b7bfe(0x467)](_0x10291a);_0x4df8fa&&(this[_0x4b7bfe(0x300)][_0x4b7bfe(0x517)](_0x4df8fa),this[_0x4b7bfe(0x300)][_0x4b7bfe(0x4c6)](_0x4df8fa,{'unitId':_0x23ca90,'subUnitId':_0x33ee60,'shapeId':_0x697710}),_0x4df8fa['makeDirty'](!0x0));}else{if(_0x1a7731['id']===i[_0x4b7bfe(0x403)]['id']){var _0x557f5f;let {unitId:_0x475787,subUnitId:_0x2e8481,shapeId:_0x221b0b}=_0x1a7731['params'],_0x59c0ee=this['_getSceneAndTransformerByDrawingSearch'](_0x475787);if(_0x59c0ee==null)return;let {scene:_0x31a0f3}=_0x59c0ee,_0x4337f3=(0x0,s[_0x4b7bfe(0x2f5)])({'unitId':_0x475787,'subUnitId':_0x2e8481,'drawingId':_0x221b0b}),_0x39a27f=_0x31a0f3['getObjectIncludeInGroup'](_0x4337f3);if(!((_0x557f5f=this[_0x4b7bfe(0x399)][_0x4b7bfe(0x2e5)](_0x475787))!=null&&_0x557f5f['with'](l[_0x4b7bfe(0x31b)])[_0x4b7bfe(0x2ab)](_0x2e8481)))return!0x1;if(_0x39a27f)return;if(_0x474ea0!=null&&_0x474ea0['fromChangeset']){queueMicrotask(()=>{const _0x1b3391=_0x4b7bfe;this[_0x1b3391(0x2b9)]||this[_0x1b3391(0x266)]([{'unitId':_0x475787,'subUnitId':_0x2e8481,'drawingId':_0x221b0b}]);});return;}this[_0x4b7bfe(0x266)]([{'unitId':_0x475787,'subUnitId':_0x2e8481,'drawingId':_0x221b0b}]);}}}));}[_0x29d1be(0x4de)](){const _0x19c947=_0x29d1be;this[_0x19c947(0x289)](this[_0x19c947(0x263)][_0x19c947(0x1e7)][_0x19c947(0x39c)](_0x2b35b8=>{const _0x4df465=_0x19c947;_0x2b35b8[_0x4df465(0x1dc)](_0x267abf=>{const _0x47d4d9=_0x4df465;let {unitId:_0x54bc8c,subUnitId:_0x3081e1,drawingId:_0x3d3c3c}=_0x267abf,_0x5da43d=this[_0x47d4d9(0x263)][_0x47d4d9(0x4c9)](_0x267abf);if(_0x5da43d==null)return;let {transform:_0x43f762,drawingType:_0x1d19fe,srcRect:_0xa3e684,prstGeom:_0x4d5360}=_0x5da43d;if(_0x1d19fe!==a[_0x47d4d9(0x4e8)][_0x47d4d9(0x41d)])return;let _0x516544=this[_0x47d4d9(0x19d)](_0x54bc8c);if(_0x516544==null)return;let {scene:_0x2dc37c,transformer:_0x34ecc2}=_0x516544;if(_0x43f762==null)return!0x0;let _0x5a9e5d=(0x0,s[_0x47d4d9(0x2f5)])({'unitId':_0x54bc8c,'subUnitId':_0x3081e1,'drawingId':_0x3d3c3c}),_0x348f3b=_0x2dc37c[_0x47d4d9(0x467)](_0x5a9e5d);if(_0x348f3b==null)return!0x0;_0x348f3b[_0x47d4d9(0x401)](_0xa3e684),_0x348f3b[_0x47d4d9(0x36a)](_0x4d5360);});}));}[_0x29d1be(0x266)](_0x262bdf){const _0x27aa42=_0x29d1be;for(let _0x2cf171 of _0x262bdf){var _0x4a1654;let {unitId:_0x5f3f97,subUnitId:_0x12097d,drawingId:_0xb74e35}=_0x2cf171,_0x4d4531=this['_getSceneAndTransformerByDrawingSearch'](_0x5f3f97),_0x1178b2=(_0x4a1654=(0x0,d[_0x27aa42(0x464)])(this[_0x27aa42(0x35a)],_0x5f3f97))==null?void 0x0:_0x4a1654['subUnitId'];if(_0x4d4531==null||_0x1178b2!==_0x12097d)return;let _0x284eb6=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5f3f97,'subUnitId':_0x12097d,'drawingId':_0xb74e35});if(this[_0x27aa42(0x3ac)][_0x27aa42(0x4ea)](_0x284eb6)||_0x4d4531[_0x27aa42(0x2ca)][_0x27aa42(0x467)](_0x284eb6)!=null)return;let _0x1c72fc=this[_0x27aa42(0x263)]['getDrawingByParam'](_0x2cf171);if(_0x1c72fc==null||_0x1c72fc[_0x27aa42(0x458)]!==a[_0x27aa42(0x4e8)][_0x27aa42(0x41d)])return;let _0x225645=_0x1c72fc['data']||{};if((0x0,n[_0x27aa42(0x3c7)])(_0x225645[_0x27aa42(0x4b2)])){let _0x57120b=_0x1c72fc[_0x27aa42(0x334)];_0x57120b&&(_0x1c72fc['transform']={..._0x57120b,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x27aa42(0x3ac)][_0x27aa42(0x3a2)](_0x284eb6);try{this['_sheetDrawingShapeRenderController'][_0x27aa42(0x246)](_0x1c72fc,_0x4d4531['scene']);}finally{this[_0x27aa42(0x3ac)][_0x27aa42(0x33c)](_0x284eb6);}queueMicrotask(()=>{const _0x2777b0=_0x27aa42;if(this[_0x2777b0(0x2b9)])return;let _0x5f26f3=(0x0,s['getDrawingShapeKeyByDrawingSearch'])(_0x2cf171);if(!_0x4d4531[_0x2777b0(0x2ca)][_0x2777b0(0x467)](_0x5f26f3))return;let _0x3a4e49=this[_0x2777b0(0x263)][_0x2777b0(0x4c9)](_0x2cf171);_0x3a4e49&&this[_0x2777b0(0x263)]['refreshTransform']([_0x3a4e49]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x425373){const _0x23e757=_0x29d1be;if(_0x425373==null)return;let _0xc8d38e=this[_0x23e757(0x399)][_0x23e757(0x2e5)](_0x425373),_0x155a84=_0xc8d38e==null?void 0x0:_0xc8d38e[_0x23e757(0x2ca)];return _0x155a84==null?null:{'scene':_0x155a84,'transformer':_0x155a84[_0x23e757(0x527)]()};}};G=A([k(0x0,a[_0x29d1be(0x1ba)]),k(0x1,c['IRenderManagerService']),k(0x2,s[_0x29d1be(0x231)]),k(0x3,a[_0x29d1be(0x2c8)]),k(0x4,(0x0,a[_0x29d1be(0x3cc)])(d[_0x29d1be(0x49a)])),k(0x5,(0x0,a[_0x29d1be(0x3cc)])(j))],G);const bt={'normal':{'fill':n[_0x29d1be(0x1d8)][_0x29d1be(0x2d0)],'stroke':n[_0x29d1be(0x1d8)]['cxnPointStroke'],'strokeWidth':n[_0x29d1be(0x1d8)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x29d1be(0x1c2),'stroke':_0x29d1be(0x222),'strokeWidth':0x2}};var xt=class extends c[_0x29d1be(0x413)]{constructor(_0x31ca80,_0x5eee43){const _0x59cba8=_0x29d1be;super(_0x31ca80,_0x5eee43),E(this,_0x59cba8(0x364),''),E(this,_0x59cba8(0x2b6),-0x1),E(this,_0x59cba8(0x4a7),''),E(this,'_subUnitId',''),E(this,'_isHighlighted',!0x1),_0x5eee43&&this[_0x59cba8(0x494)](_0x5eee43);}['getConnectionInfo'](){const _0x4f81f8=_0x29d1be;return{'unitId':this[_0x4f81f8(0x4a7)],'subUnitId':this[_0x4f81f8(0x51c)],'shapeId':this[_0x4f81f8(0x364)],'cxnIndex':this[_0x4f81f8(0x2b6)]};}[_0x29d1be(0x431)](_0x42969f){const _0x36197d=_0x29d1be;this[_0x36197d(0x4d2)]!==_0x42969f&&(this[_0x36197d(0x4d2)]=_0x42969f,this['makeDirty'](!0x0));}[_0x29d1be(0x411)](){const _0x2abdb3=_0x29d1be;return this[_0x2abdb3(0x4d2)];}['setShapeProps'](_0x908475){const _0x4c8719=_0x29d1be;_0x908475[_0x4c8719(0x383)]!==void 0x0&&(this['_targetShapeId']=_0x908475[_0x4c8719(0x383)]),_0x908475[_0x4c8719(0x4db)]!==void 0x0&&(this['_cxnIndex']=_0x908475[_0x4c8719(0x4db)]),_0x908475[_0x4c8719(0x448)]!==void 0x0&&(this['_unitId']=_0x908475['unitId']),_0x908475[_0x4c8719(0x21d)]!==void 0x0&&(this[_0x4c8719(0x51c)]=_0x908475[_0x4c8719(0x21d)]),_0x908475[_0x4c8719(0x411)]!==void 0x0&&(this['_isHighlighted']=_0x908475[_0x4c8719(0x411)]),this[_0x4c8719(0x4fc)]({'width':_0x908475['width']??n[_0x4c8719(0x1d8)][_0x4c8719(0x270)]*0x2,'height':_0x908475[_0x4c8719(0x1bb)]??n[_0x4c8719(0x1d8)][_0x4c8719(0x270)]*0x2});}['_draw'](_0x410ffe){const _0x816b88=_0x29d1be;let _0x219b5c=this['_isHighlighted']?bt[_0x816b88(0x207)]:bt[_0x816b88(0x41a)];c[_0x816b88(0x3cf)][_0x816b88(0x335)](_0x410ffe,{'radius':n[_0x816b88(0x1d8)][_0x816b88(0x270)],'fill':_0x219b5c[_0x816b88(0x44b)],'stroke':_0x219b5c[_0x816b88(0x1d7)],'strokeWidth':_0x219b5c[_0x816b88(0x389)],'evented':!0x0});}};let K=class extends a['Disposable']{constructor(_0xa60f7a,_0x48be72,_0xad957f,_0xa21fca){const _0x275c3c=_0x29d1be;super(),this[_0x275c3c(0x40f)]=_0xa60f7a,this[_0x275c3c(0x399)]=_0x48be72,this[_0x275c3c(0x263)]=_0xad957f,this[_0x275c3c(0x1a8)]=_0xa21fca,E(this,_0x275c3c(0x40a),[]),E(this,'_activeTargetShapeId',null),E(this,_0x275c3c(0x4aa),-0x1),E(this,_0x275c3c(0x442),null),E(this,_0x275c3c(0x4a7),''),E(this,_0x275c3c(0x51c),''),E(this,_0x275c3c(0x4d5),null);}['startConnectionDetection'](_0xced532,_0x2abe64,_0x1c7751,_0x19b546){const _0x1684cc=_0x29d1be;this[_0x1684cc(0x442)]=_0xced532,this[_0x1684cc(0x4a7)]=_0x2abe64,this[_0x1684cc(0x51c)]=_0x1c7751,this[_0x1684cc(0x4d5)]=_0x19b546;}[_0x29d1be(0x4b3)](_0x360b06){const _0x469115=_0x29d1be;if(!this[_0x469115(0x442)])return null;let _0x32f44d=this[_0x469115(0x4f0)](_0x360b06);return _0x32f44d?(this[_0x469115(0x1c6)]!==_0x32f44d[_0x469115(0x1cf)]&&(this[_0x469115(0x276)](),this['_showConnectionSites'](_0x32f44d[_0x469115(0x1cf)],_0x32f44d[_0x469115(0x1df)]),this[_0x469115(0x1c6)]=_0x32f44d[_0x469115(0x1cf)]),this[_0x469115(0x2ad)](_0x360b06)):(this[_0x469115(0x1c6)]!==null&&(this[_0x469115(0x276)](),this['_activeTargetShapeId']=null),null);}[_0x29d1be(0x41f)](){const _0x153608=_0x29d1be;this[_0x153608(0x276)](),this[_0x153608(0x442)]=null,this[_0x153608(0x1c6)]=null,this[_0x153608(0x4aa)]=-0x1,this[_0x153608(0x4d5)]=null;}[_0x29d1be(0x468)](){const _0x462372=_0x29d1be;return this[_0x462372(0x1c6)]===null||this[_0x462372(0x4aa)]<0x0?null:{'shapeId':this[_0x462372(0x1c6)],'cxnIndex':this[_0x462372(0x4aa)]};}['_findShapeAtPoint'](_0x33a22f){const _0xe2a549=_0x29d1be;let _0x42f831=this[_0xe2a549(0x263)][_0xe2a549(0x250)](this[_0xe2a549(0x4a7)],this[_0xe2a549(0x51c)]);for(let _0x185c75 of Object['keys'](_0x42f831)){if(_0x185c75===this[_0xe2a549(0x4d5)]||_0x42f831[_0x185c75][_0xe2a549(0x458)]!==a[_0xe2a549(0x4e8)][_0xe2a549(0x41d)])continue;let _0x3ae92d=this[_0xe2a549(0x1a8)][_0xe2a549(0x44f)](this[_0xe2a549(0x4a7)],this['_subUnitId'],_0x185c75);if(!_0x3ae92d||(0x0,n[_0xe2a549(0x3c7)])(_0x3ae92d[_0xe2a549(0x489)]())||_0x3ae92d['getConnectionSiteList']()['length']===0x0||!this[_0xe2a549(0x442)])continue;let _0xc4fdea=(0x0,s[_0xe2a549(0x2f5)])({'unitId':this[_0xe2a549(0x4a7)],'subUnitId':this[_0xe2a549(0x51c)],'drawingId':_0x185c75}),_0x14f5ff=this[_0xe2a549(0x442)][_0xe2a549(0x467)](_0xc4fdea);if(!_0x14f5ff)continue;let {left:_0x2a9a97,top:_0xdf0165,width:_0x3f1ddc,height:_0x29ea0c}=_0x14f5ff['getRealBound'](),_0x3386da=_0x2a9a97+_0x3f1ddc/0x2,_0x3242=_0xdf0165+_0x29ea0c/0x2,_0x3fae71=_0x14f5ff['transform'][_0xe2a549(0x210)](),_0x3c8104=new c[(_0xe2a549(0x4a3))]([_0x3fae71[0x0],_0x3fae71[0x1],_0x3fae71[0x2],_0x3fae71[0x3],_0x3386da,_0x3242]),_0x31f3b0=_0x14f5ff[_0xe2a549(0x4bd)](),_0x4fea2e=(_0x14f5ff[_0xe2a549(0x421)]&&(_0x31f3b0==null?void 0x0:_0x31f3b0[_0xe2a549(0x513)])===c[_0xe2a549(0x3e7)]['GROUP']?_0x31f3b0['ancestorTransform'][_0xe2a549(0x340)](_0x3c8104):_0x3c8104)[_0xe2a549(0x342)]()[_0xe2a549(0x518)](_0x33a22f),_0x22a7cc=_0x3f1ddc/0x2,_0xd066=_0x29ea0c/0x2;if(_0x4fea2e['x']>=-_0x22a7cc-0x5&&_0x4fea2e['x']<=_0x22a7cc+0x5&&_0x4fea2e['y']>=-_0xd066-0x5&&_0x4fea2e['y']<=_0xd066+0x5)return{'shapeId':_0x185c75,'shapeModel':_0x3ae92d};}return null;}[_0x29d1be(0x495)](_0x305acf,_0x3592c5){const _0xed1597=_0x29d1be;if(!this['_currentScene'])return;let _0x5c85fe=(0x0,s[_0xed1597(0x2f5)])({'unitId':this['_unitId'],'subUnitId':this[_0xed1597(0x51c)],'drawingId':_0x305acf}),_0x8ed74f=this['_currentScene'][_0xed1597(0x467)](_0x5c85fe);if(!_0x8ed74f)return;let {left:_0x5ee654,top:_0x375708,width:_0x4df577,height:_0x3ad638}=_0x8ed74f[_0xed1597(0x309)](),_0x1a3efb=_0x5ee654+_0x4df577/0x2,_0x48e91c=_0x375708+_0x3ad638/0x2,_0x185f02=_0x8ed74f[_0xed1597(0x334)][_0xed1597(0x210)](),_0x49736a=new c[(_0xed1597(0x4a3))]([_0x185f02[0x0],_0x185f02[0x1],_0x185f02[0x2],_0x185f02[0x3],_0x1a3efb,_0x48e91c]),_0x50ac9b=_0x8ed74f['getParent'](),_0x4d1ff4=_0x8ed74f[_0xed1597(0x421)]&&(_0x50ac9b==null?void 0x0:_0x50ac9b[_0xed1597(0x513)])===c[_0xed1597(0x3e7)]['GROUP']?_0x50ac9b[_0xed1597(0x4d9)]['multiply'](_0x49736a):_0x49736a;_0x3592c5[_0xed1597(0x515)]({'width':_0x4df577,'height':_0x3ad638});let _0x24fdb2=_0x3592c5['getConnectionSiteList']();for(let _0x15b5ea of _0x24fdb2){let _0x4d3763=_0x15b5ea['x']-_0x4df577/0x2,_0x14c86c=_0x15b5ea['y']-_0x3ad638/0x2,_0xaad2c0=_0x4d1ff4[_0xed1597(0x518)]({'x':_0x4d3763,'y':_0x14c86c}),_0x2db3fc=_0xaad2c0['x'],_0x4a6007=_0xaad2c0['y'],_0x1775c=new xt(_0xed1597(0x4a5)+_0x305acf+'-'+_0x15b5ea[_0xed1597(0x212)],{'left':_0x2db3fc-n[_0xed1597(0x1d8)][_0xed1597(0x270)],'top':_0x4a6007-n[_0xed1597(0x1d8)][_0xed1597(0x270)],'targetShapeId':_0x305acf,'cxnIndex':_0x15b5ea[_0xed1597(0x212)],'unitId':this['_unitId'],'subUnitId':this[_0xed1597(0x51c)],'width':n[_0xed1597(0x1d8)]['cxnPointRadius']*0x2,'height':n[_0xed1597(0x1d8)][_0xed1597(0x270)]*0x2,'zIndex':c[_0xed1597(0x3a5)]+0x2,'evented':!0x1});this[_0xed1597(0x40a)][_0xed1597(0x25c)](_0x1775c),this[_0xed1597(0x442)][_0xed1597(0x1da)](_0x1775c,c[_0xed1597(0x3a5)]+0x2);}}[_0x29d1be(0x2ad)](_0xfa67df){const _0x188b54=_0x29d1be;let _0x513dcb=null,_0xfb70f3=0x1/0x0,_0x56b034=null;for(let _0x225752 of this[_0x188b54(0x40a)]){let _0x1b5faf=_0x225752[_0x188b54(0x25e)]+n[_0x188b54(0x1d8)][_0x188b54(0x270)],_0x20a2b9=_0x225752[_0x188b54(0x459)]+n[_0x188b54(0x1d8)][_0x188b54(0x270)],_0x4be8b7=_0xfa67df['x']-_0x1b5faf,_0x4f8043=_0xfa67df['y']-_0x20a2b9,_0x3f8cf4=Math[_0x188b54(0x492)](_0x4be8b7*_0x4be8b7+_0x4f8043*_0x4f8043);_0x3f8cf4<_0xfb70f3&&(_0xfb70f3=_0x3f8cf4,_0x513dcb=_0x225752,_0x56b034={'x':_0x1b5faf,'y':_0x20a2b9});}let _0x4c1056=_0xfb70f3<=0xa&&_0x513dcb?_0x513dcb[_0x188b54(0x4a8)]()[_0x188b54(0x4db)]:-0x1;if(_0x4c1056!==this['_highlightedSiteIndex']){for(let _0x1d4160 of this[_0x188b54(0x40a)]){let _0x3f6faa=_0x1d4160[_0x188b54(0x4a8)]();_0x1d4160[_0x188b54(0x431)](_0x3f6faa[_0x188b54(0x4db)]===_0x4c1056);}this['_highlightedSiteIndex']=_0x4c1056;}if(_0xfb70f3<=0xa&&_0x513dcb&&_0x56b034){let _0x5c2886=_0x513dcb[_0x188b54(0x4a8)](),_0x4b1f58=this[_0x188b54(0x4bb)](_0x5c2886[_0x188b54(0x1cf)],_0x5c2886[_0x188b54(0x4db)]);return{'shapeId':_0x5c2886[_0x188b54(0x1cf)],'cxnIndex':_0x5c2886[_0x188b54(0x4db)],'unitId':_0x5c2886[_0x188b54(0x448)],'subUnitId':_0x5c2886['subUnitId'],'worldPoint':_0x56b034,'angle':_0x4b1f58};}return null;}[_0x29d1be(0x4bb)](_0xf1ee,_0x29f169){const _0x39cc2c=_0x29d1be;let _0x3a0322=this[_0x39cc2c(0x1a8)][_0x39cc2c(0x44f)](this[_0x39cc2c(0x4a7)],this[_0x39cc2c(0x51c)],_0xf1ee);if(!_0x3a0322)return 0x0;let _0x384666=this[_0x39cc2c(0x263)]['getDrawingByParam']({'unitId':this[_0x39cc2c(0x4a7)],'subUnitId':this[_0x39cc2c(0x51c)],'drawingId':_0xf1ee});if(!(_0x384666!=null&&_0x384666[_0x39cc2c(0x334)]))return 0x0;let {width:_0x6b05c1=0x0,height:_0x3eaebf=0x0,flipX:_0x56f523=!0x1,flipY:_0x441642=!0x1}=_0x384666[_0x39cc2c(0x334)];_0x3a0322[_0x39cc2c(0x515)]({'width':_0x6b05c1,'height':_0x3eaebf});let _0x14aea5=_0x3a0322[_0x39cc2c(0x267)]()[_0x39cc2c(0x432)](_0x991622=>_0x991622[_0x39cc2c(0x212)]===_0x29f169);if(!_0x14aea5)return 0x0;let _0x273aea=_0x14aea5[_0x39cc2c(0x2d3)]/0xea60;return _0x56f523&&(_0x273aea=0xb4-_0x273aea),_0x441642&&(_0x273aea=-_0x273aea),_0x273aea=(_0x273aea%0x168+0x168)%0x168,_0x273aea;}[_0x29d1be(0x276)](){const _0x262c0b=_0x29d1be;for(let _0x200ef6 of this[_0x262c0b(0x40a)])_0x200ef6['dispose']();this[_0x262c0b(0x40a)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x29d1be(0x361)](){const _0x56ee83=_0x29d1be;this[_0x56ee83(0x276)](),super['dispose']();}};K=A([k(0x1,(0x0,a[_0x29d1be(0x3cc)])(c['IRenderManagerService'])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(s['IDrawingManagerService'])),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)]))],K);let q=class extends a[_0x29d1be(0x520)]{constructor(_0x50aaa2,_0x3e4766,_0x3221ed,_0x3ee89c,_0x597d37){const _0x25c302=_0x29d1be;super(),this[_0x25c302(0x3f9)]=_0x50aaa2,this[_0x25c302(0x438)]=_0x3e4766,this[_0x25c302(0x38e)]=_0x3221ed,this['_shapeService']=_0x3ee89c,this[_0x25c302(0x2b2)]=_0x597d37,E(this,'_copyInfo',void 0x0),this[_0x25c302(0x254)](),this[_0x25c302(0x29f)]();}get[_0x29d1be(0x306)](){const _0x110658=_0x29d1be;return this[_0x110658(0x38e)]['getFocusDrawings']();}[_0x29d1be(0x29f)](){const _0x118dbb=_0x29d1be;this['_groupCopyPasteController'][_0x118dbb(0x3a8)](({fromUnitId:_0x416bd8,fromSubUnitId:_0x220acb,toUnitId:_0xdf7183,toSubUnitId:_0x233c6f,idMap:_0x23b5e8})=>{const _0x226fbc=_0x118dbb;let _0xce7bf9=[],_0xee509e=[];for(let [_0xff838f,_0x155ee6]of _0x23b5e8[_0x226fbc(0x261)]()){let _0x664be=this['_shapeService'][_0x226fbc(0x44f)](_0x416bd8,_0x220acb,_0xff838f);if(!_0x664be)continue;let _0x184768=_0x664be[_0x226fbc(0x489)](),_0x55dbcf=JSON[_0x226fbc(0x2a6)](JSON['stringify'](_0x664be[_0x226fbc(0x50e)]()));if(_0x55dbcf[_0x226fbc(0x4bf)]){var _0xc1a239,_0x837af5;let _0x4d3f9a=(_0xc1a239=_0x55dbcf[_0x226fbc(0x4bf)][_0x226fbc(0x42f)])==null?void 0x0:_0xc1a239[_0x226fbc(0x1cf)],_0x72f810=(_0x837af5=_0x55dbcf[_0x226fbc(0x4bf)]['to'])==null?void 0x0:_0x837af5[_0x226fbc(0x1cf)],_0x2a5644=!_0x4d3f9a||_0x23b5e8['has'](_0x4d3f9a),_0x36e6f6=!_0x72f810||_0x23b5e8[_0x226fbc(0x4ea)](_0x72f810);_0x2a5644&&_0x4d3f9a&&_0x55dbcf['relation'][_0x226fbc(0x42f)]?_0x55dbcf[_0x226fbc(0x4bf)]['from']={..._0x55dbcf[_0x226fbc(0x4bf)][_0x226fbc(0x42f)],'shapeId':_0x23b5e8[_0x226fbc(0x264)](_0x4d3f9a)}:_0x55dbcf[_0x226fbc(0x4bf)][_0x226fbc(0x42f)]=void 0x0,_0x36e6f6&&_0x72f810&&_0x55dbcf[_0x226fbc(0x4bf)]['to']?_0x55dbcf[_0x226fbc(0x4bf)]['to']={..._0x55dbcf[_0x226fbc(0x4bf)]['to'],'shapeId':_0x23b5e8[_0x226fbc(0x264)](_0x72f810)}:_0x55dbcf[_0x226fbc(0x4bf)]['to']=void 0x0;}_0xce7bf9['push']({'id':i[_0x226fbc(0x403)]['id'],'params':{'unitId':_0xdf7183,'subUnitId':_0x233c6f,'shapeId':_0x155ee6,'shapeType':_0x184768,'shapeData':_0x55dbcf}}),_0xee509e['push']({'id':i[_0x226fbc(0x35d)]['id'],'params':{'unitId':_0xdf7183,'subUnitId':_0x233c6f,'shapeId':_0x155ee6}});}return{'redos':_0xce7bf9,'undos':_0xee509e};});}[_0x29d1be(0x254)](){const _0x446b55=_0x29d1be;this[_0x446b55(0x289)](this[_0x446b55(0x438)]['addClipboardHook']({'id':_0x446b55(0x244),'onBeforeCopyFocusedObject':(_0x25be15,_0x4afd00,_0x3f300)=>{const _0x6c57ed=_0x446b55;this['_copyInfo']=null;let _0xdc79eb=this['_focusedDrawings'][_0x6c57ed(0x332)](_0x25362b=>_0x25362b[_0x6c57ed(0x458)]===a[_0x6c57ed(0x4e8)]['DRAWING_SHAPE']);return _0xdc79eb[_0x6c57ed(0x1d6)]!==0x0&&(this[_0x6c57ed(0x4dc)]={'unitId':_0x25be15,'subUnitId':_0x4afd00,'copyType':_0x3f300,'drawings':_0xdc79eb},!0x0);},'onBeforeCopy':(_0x4d9743,_0x20ced1,_0x80c1d5,_0x2a8cdb)=>{const _0x50e3de=_0x446b55;this[_0x50e3de(0x4dc)]=null,this['_createCopyInfoByRange'](_0x4d9743,_0x20ced1,_0x80c1d5,_0x2a8cdb);},'onPasteCells':(_0x72cf97,_0x342c5f,_0x3c093e,_0x26152f)=>{const _0x2b59b6=_0x446b55;if(!_0x26152f[_0x2b59b6(0x3b6)]||!_0x72cf97||!this[_0x2b59b6(0x4dc)])return{'redos':[],'undos':[]};let {pasteType:_0x53daab}=_0x26152f;return _0x53daab===l[_0x2b59b6(0x3be)][_0x2b59b6(0x2f0)]?this[_0x2b59b6(0x490)](_0x342c5f,this[_0x2b59b6(0x4dc)][_0x2b59b6(0x2a3)]===l['COPY_TYPE']['CUT']):{'redos':[],'undos':[]};}}));}[_0x29d1be(0x433)](_0x55ce9c,_0x2ec506,_0x335ca8,_0x451cd9){const _0x4ea6b7=_0x29d1be;let _0x389815=this[_0x4ea6b7(0x3f9)]['getSkeleton'](_0x55ce9c,_0x2ec506);if(!_0x389815)return;let _0x34c8eb=(0x0,o[_0x4ea6b7(0x331)])(_0x389815,_0x335ca8);if(!_0x34c8eb)return;let {startX:_0x307dbd,endX:_0x34a2be,startY:_0x235ecf,endY:_0x5c9204}=_0x34c8eb,_0x4fbaf1=this[_0x4ea6b7(0x38e)]['getDrawingData'](_0x55ce9c,_0x2ec506),_0x3ab171=[];for(let [_0x4d3caf,_0x1f786a]of Object['entries'](_0x4fbaf1)){if(_0x1f786a['drawingType']!==a[_0x4ea6b7(0x4e8)][_0x4ea6b7(0x41d)])continue;let {transform:_0x2b7814}=_0x1f786a;if(!_0x2b7814)continue;let {left:_0x4c3b34=0x0,top:_0x382791=0x0,width:_0x345b38=0x0,height:_0x1a865a=0x0}=_0x2b7814;_0x307dbd<=_0x4c3b34&&_0x34a2be>=_0x4c3b34+_0x345b38&&_0x235ecf<=_0x382791&&_0x5c9204>=_0x382791+_0x1a865a&&_0x3ab171[_0x4ea6b7(0x25c)](_0x1f786a);}_0x3ab171['length']>0x0&&(this[_0x4ea6b7(0x4dc)]={'unitId':_0x55ce9c,'subUnitId':_0x2ec506,'copyType':_0x451cd9,'copyRange':_0x335ca8,'drawings':_0x3ab171});}['_generatePasteMutations'](_0x4a6958,_0xa3ae2e){const _0x5da790=_0x29d1be;let {unitId:_0x2cc410,subUnitId:_0x55f031,range:_0x1142a4}=_0x4a6958,_0x4c9424=this[_0x5da790(0x3f9)][_0x5da790(0x2ab)](_0x2cc410,_0x55f031);if(!_0x4c9424)return{'redos':[],'undos':[]};let _0x5d45c2=(0x0,o[_0x5da790(0x1d9)])(_0x1142a4),{unitId:_0x4bbe76,subUnitId:_0xdb0957,copyRange:_0x195ba9,drawings:_0x4bd3db}=this[_0x5da790(0x4dc)],_0x58eb5d=this[_0x5da790(0x3f9)][_0x5da790(0x2ab)](_0x4bbe76,_0xdb0957);if(!_0x58eb5d)return{'redos':[],'undos':[]};let _0x3f758d;if(!_0x195ba9){let _0x134142=0x1/0x0,_0x49b55b=0x1/0x0;for(let _0x5b0de4 of _0x4bd3db){let {left:_0x4548c4=0x0,top:_0x4c7ba8=0x0}=_0x5b0de4['transform']??{};_0x4548c4<_0x134142&&(_0x134142=_0x4548c4),_0x4c7ba8<_0x49b55b&&(_0x49b55b=_0x4c7ba8);}_0x134142!==0x1/0x0&&_0x49b55b!==0x1/0x0&&(_0x3f758d={'left':_0x134142,'top':_0x49b55b});}let _0x2a20ab=new Map();if(!_0xa3ae2e){for(let _0x159e13 of _0x4bd3db)_0x2a20ab[_0x5da790(0x26e)](_0x159e13[_0x5da790(0x1e6)],(0x0,a[_0x5da790(0x21c)])());}let _0x42bdb4=[],_0x3951e0=[];for(let _0x59eba4 of _0x4bd3db){let {drawingId:_0x82feba,transform:_0x151900,sheetTransform:_0x511c63}=_0x59eba4;if(!_0x151900||!_0x511c63)continue;let _0x39c085=this['_updateTransform']({'transform':_0x151900,'sheetTransform':_0x511c63},{'skeleton':_0x58eb5d,'range':_0x195ba9},{'skeleton':_0x4c9424,'range':_0x5d45c2},_0x3f758d);if(_0xa3ae2e){let {redos:_0x468b09,undos:_0x165ea3}=this['_generateCutPasteMutations']({'fromUnitId':_0x4bbe76,'fromSubUnitId':_0xdb0957,'toUnitId':_0x2cc410,'toSubUnitId':_0x55f031,'drawing':_0x59eba4,'newTransforms':_0x39c085});_0x42bdb4[_0x5da790(0x25c)](..._0x468b09),_0x3951e0['push'](..._0x165ea3);continue;}let {redos:_0x2a2924,undos:_0x371726}=this[_0x5da790(0x498)]({'toUnitId':_0x2cc410,'toSubUnitId':_0x55f031,'drawing':_0x59eba4,'newTransforms':_0x39c085,'newDrawingId':_0x2a20ab[_0x5da790(0x264)](_0x82feba),'idMap':_0x2a20ab});_0x42bdb4['push'](..._0x2a2924),_0x3951e0[_0x5da790(0x25c)](..._0x371726);}return{'redos':_0x42bdb4,'undos':_0x3951e0};}[_0x29d1be(0x32c)](_0x462005){const _0x3018a3=_0x29d1be;let {fromUnitId:_0x61f15e,fromSubUnitId:_0x53b1c7,toUnitId:_0xe2a1,toSubUnitId:_0x451991,drawing:_0x36d14b,newTransforms:_0x6a3682}=_0x462005,_0x4107d3={..._0x36d14b,'unitId':_0xe2a1,'subUnitId':_0x451991,'transform':_0x6a3682[_0x3018a3(0x334)],'sheetTransform':_0x6a3682['sheetTransform']};if(_0xe2a1===_0x61f15e&&_0x451991===_0x53b1c7){let {redo:_0x1d50fb,undo:_0x377d29,objects:_0x364e23}=this[_0x3018a3(0x38e)]['getBatchUpdateOp']([_0x4107d3]);return{'redos':[{'id':m[_0x3018a3(0x2b3)]['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'type':m['DrawingApplyType'][_0x3018a3(0x1b3)],'op':_0x1d50fb,'objects':_0x364e23}}],'undos':[{'id':m[_0x3018a3(0x2b3)]['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'type':m[_0x3018a3(0x4d6)][_0x3018a3(0x1b3)],'op':_0x377d29,'objects':_0x364e23}}]};}{let _0x44332e=this[_0x3018a3(0x38e)][_0x3018a3(0x4c5)]([_0x36d14b]),_0x19fc0d=this[_0x3018a3(0x38e)]['getBatchAddOp']([_0x4107d3]),_0x4629d3=this[_0x3018a3(0x510)][_0x3018a3(0x44f)](_0x36d14b[_0x3018a3(0x448)],_0x36d14b[_0x3018a3(0x21d)],_0x36d14b[_0x3018a3(0x1e6)]);if(!_0x4629d3)return{'redos':[],'undos':[]};let _0x4aeaba=_0x4629d3['getShapeType'](),_0x2b782a=JSON[_0x3018a3(0x2a6)](JSON['stringify'](_0x4629d3['getShapeData']()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x61f15e,'subUnitId':_0x53b1c7,'type':m[_0x3018a3(0x4d6)][_0x3018a3(0x506)],'op':_0x44332e[_0x3018a3(0x3d6)],'objects':_0x44332e[_0x3018a3(0x225)]}},{'id':i[_0x3018a3(0x35d)]['id'],'params':{'unitId':_0x61f15e,'subUnitId':_0x53b1c7,'shapeId':_0x36d14b['drawingId']}},{'id':m[_0x3018a3(0x2b3)]['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'type':m[_0x3018a3(0x4d6)][_0x3018a3(0x2b8)],'op':_0x19fc0d[_0x3018a3(0x3d6)],'objects':_0x19fc0d[_0x3018a3(0x225)]}},{'id':i[_0x3018a3(0x403)]['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'shapeId':_0x36d14b[_0x3018a3(0x1e6)],'shapeType':_0x4aeaba,'shapeData':_0x2b782a}}],'undos':[{'id':m[_0x3018a3(0x2b3)]['id'],'params':{'unitId':_0x61f15e,'subUnitId':_0x53b1c7,'type':m[_0x3018a3(0x4d6)][_0x3018a3(0x2b8)],'op':_0x44332e[_0x3018a3(0x31c)],'objects':_0x44332e[_0x3018a3(0x225)]}},{'id':i[_0x3018a3(0x403)]['id'],'params':{'unitId':_0x61f15e,'subUnitId':_0x53b1c7,'shapeId':_0x36d14b['drawingId'],'shapeType':_0x4aeaba,'shapeData':_0x2b782a}},{'id':m[_0x3018a3(0x2b3)]['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'type':m[_0x3018a3(0x4d6)][_0x3018a3(0x506)],'op':_0x19fc0d[_0x3018a3(0x31c)],'objects':_0x19fc0d[_0x3018a3(0x225)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xe2a1,'subUnitId':_0x451991,'shapeId':_0x36d14b[_0x3018a3(0x1e6)]}}]};}}['_generateCopyPasteMutations'](_0x57e6e6){const _0x2cec2e=_0x29d1be;let {toUnitId:_0x536819,toSubUnitId:_0x3162c5,drawing:_0x301f13,newTransforms:_0x26508a,newDrawingId:_0x5d17c7,idMap:_0x485de1}=_0x57e6e6,_0x16db98={..._0x301f13,'unitId':_0x536819,'subUnitId':_0x3162c5,'drawingId':_0x5d17c7,'transform':_0x26508a[_0x2cec2e(0x334)],'sheetTransform':_0x26508a[_0x2cec2e(0x294)]},{redo:_0x59404e,undo:_0x26d493,objects:_0x88ec71}=this[_0x2cec2e(0x38e)]['getBatchAddOp']([_0x16db98]),_0x3161fd=this[_0x2cec2e(0x510)][_0x2cec2e(0x44f)](_0x301f13[_0x2cec2e(0x448)],_0x301f13[_0x2cec2e(0x21d)],_0x301f13[_0x2cec2e(0x1e6)]);if(!_0x3161fd)return{'redos':[],'undos':[]};let _0x162bea=_0x3161fd[_0x2cec2e(0x489)](),_0x50843c=JSON[_0x2cec2e(0x2a6)](JSON[_0x2cec2e(0x507)](_0x3161fd[_0x2cec2e(0x50e)]()));if(_0x50843c[_0x2cec2e(0x4bf)]){var _0x3aa797,_0xe93d4f;let _0x58f3d2=(_0x3aa797=_0x50843c[_0x2cec2e(0x4bf)][_0x2cec2e(0x42f)])==null?void 0x0:_0x3aa797[_0x2cec2e(0x1cf)],_0x685b57=(_0xe93d4f=_0x50843c[_0x2cec2e(0x4bf)]['to'])==null?void 0x0:_0xe93d4f['shapeId'],_0x577a8f=!_0x58f3d2||_0x485de1['has'](_0x58f3d2),_0x186f06=!_0x685b57||_0x485de1[_0x2cec2e(0x4ea)](_0x685b57);_0x577a8f&&_0x58f3d2&&_0x50843c['relation'][_0x2cec2e(0x42f)]?_0x50843c['relation'][_0x2cec2e(0x42f)]={..._0x50843c[_0x2cec2e(0x4bf)]['from'],'shapeId':_0x485de1['get'](_0x58f3d2)}:_0x50843c['relation'][_0x2cec2e(0x42f)]=void 0x0,_0x186f06&&_0x685b57&&_0x50843c[_0x2cec2e(0x4bf)]['to']?_0x50843c[_0x2cec2e(0x4bf)]['to']={..._0x50843c['relation']['to'],'shapeId':_0x485de1[_0x2cec2e(0x264)](_0x685b57)}:_0x50843c[_0x2cec2e(0x4bf)]['to']=void 0x0;}return{'redos':[{'id':m[_0x2cec2e(0x2b3)]['id'],'params':{'unitId':_0x536819,'subUnitId':_0x3162c5,'type':m[_0x2cec2e(0x4d6)][_0x2cec2e(0x2b8)],'op':_0x59404e,'objects':_0x88ec71}},{'id':i[_0x2cec2e(0x403)]['id'],'params':{'unitId':_0x536819,'subUnitId':_0x3162c5,'shapeId':_0x5d17c7,'shapeType':_0x162bea,'shapeData':_0x50843c}}],'undos':[{'id':m[_0x2cec2e(0x2b3)]['id'],'params':{'unitId':_0x536819,'subUnitId':_0x3162c5,'type':m[_0x2cec2e(0x4d6)]['REMOVE'],'op':_0x26d493,'objects':_0x88ec71}},{'id':i[_0x2cec2e(0x35d)]['id'],'params':{'unitId':_0x536819,'subUnitId':_0x3162c5,'shapeId':_0x5d17c7}}]};}[_0x29d1be(0x3df)](_0x224094,_0x3961e9,_0x160d62,_0x3ca25d){const _0x32e015=_0x29d1be;let {range:_0x4ea5ca,skeleton:_0x2672a0}=_0x3961e9,{range:_0x2d8be0,skeleton:_0x44114b}=_0x160d62,{transform:_0x96fdbb,sheetTransform:_0x30914c}=_0x224094,_0x35e2f0={..._0x96fdbb};if(_0x4ea5ca){let _0x48ada5=(0x0,o[_0x32e015(0x331)])(_0x2672a0,_0x4ea5ca),_0x4a3070=(0x0,o[_0x32e015(0x331)])(_0x44114b,_0x2d8be0);if(_0x48ada5&&_0x4a3070){let _0x1120ca=_0x4a3070[_0x32e015(0x272)]-_0x48ada5['startX'],_0x13d445=_0x4a3070[_0x32e015(0x1fd)]-_0x48ada5['startY'];_0x35e2f0[_0x32e015(0x25e)]=(_0x35e2f0[_0x32e015(0x25e)]??0x0)+_0x1120ca,_0x35e2f0['top']=(_0x35e2f0['top']??0x0)+_0x13d445;}}else{let _0x2c161e=(0x0,o['attachRangeWithCoord'])(_0x44114b,_0x2d8be0);if(_0x3ca25d&&_0x2c161e){let _0x4d18f0=(_0x35e2f0[_0x32e015(0x25e)]??0x0)-_0x3ca25d[_0x32e015(0x25e)],_0x521d58=(_0x35e2f0[_0x32e015(0x459)]??0x0)-_0x3ca25d[_0x32e015(0x459)];_0x35e2f0[_0x32e015(0x25e)]=_0x2c161e[_0x32e015(0x272)]+_0x4d18f0,_0x35e2f0['top']=_0x2c161e['startY']+_0x521d58;}else _0x35e2f0[_0x32e015(0x25e)]=_0x2c161e==null?void 0x0:_0x2c161e[_0x32e015(0x272)],_0x35e2f0[_0x32e015(0x459)]=_0x2c161e==null?void 0x0:_0x2c161e[_0x32e015(0x1fd)];}return{'transform':_0x35e2f0,'sheetTransform':(0x0,m['transformToDrawingPosition'])(_0x35e2f0,_0x44114b)??_0x30914c};}};q=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(o[_0x29d1be(0x37d)])),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(l['ISheetClipboardService'])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(m[_0x29d1be(0x366)])),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(i['SheetsShapeService'])),k(0x4,(0x0,a[_0x29d1be(0x3cc)])(v['SheetsDrawingGroupCopyPasteController']))],q);var St=class extends c[_0x29d1be(0x413)]{constructor(_0x407961,_0x508198){const _0x23ee9f=_0x29d1be;super(_0x407961,_0x508198),E(this,_0x23ee9f(0x43c),null),E(this,_0x23ee9f(0x1c4),null),E(this,_0x23ee9f(0x4a7),null),E(this,_0x23ee9f(0x51c),null),E(this,_0x23ee9f(0x4f3),!0x1),_0x508198&&this[_0x23ee9f(0x494)](_0x508198);}[_0x29d1be(0x4b5)](){const _0x1df9e9=_0x29d1be;return{'unitId':this[_0x1df9e9(0x4a7)],'subUnitId':this[_0x1df9e9(0x51c)],'drawingId':this['_shapeId']};}[_0x29d1be(0x494)](_0x33c0e0){const _0x3d9c78=_0x29d1be;_0x33c0e0['shapeId']!==void 0x0&&(this[_0x3d9c78(0x43c)]=_0x33c0e0[_0x3d9c78(0x1cf)]),_0x33c0e0['unitId']!==void 0x0&&(this[_0x3d9c78(0x4a7)]=_0x33c0e0[_0x3d9c78(0x448)]),_0x33c0e0[_0x3d9c78(0x21d)]!==void 0x0&&(this[_0x3d9c78(0x51c)]=_0x33c0e0['subUnitId']),_0x33c0e0[_0x3d9c78(0x243)]!==void 0x0&&(this[_0x3d9c78(0x4f3)]=_0x33c0e0[_0x3d9c78(0x243)]),this[_0x3d9c78(0x4fc)]({'width':_0x33c0e0[_0x3d9c78(0x2b0)],'height':_0x33c0e0[_0x3d9c78(0x1bb)]});}[_0x29d1be(0x299)](_0x3b36dd){const _0x3c6bc0=_0x29d1be;c['Circle'][_0x3c6bc0(0x335)](_0x3b36dd,{'radius':n[_0x3c6bc0(0x1d8)][_0x3c6bc0(0x270)],'fill':n[_0x3c6bc0(0x1d8)][_0x3c6bc0(0x2d0)],'stroke':n[_0x3c6bc0(0x1d8)][_0x3c6bc0(0x355)],'strokeWidth':n[_0x3c6bc0(0x1d8)][_0x3c6bc0(0x259)],'evented':!0x0});}};let Ct=class extends a[_0x29d1be(0x520)]{constructor(_0x56cf20,_0x3f6a36,_0x401134,_0x21801f,_0x30affc,_0x43dabe,_0x1eda77,_0x1883e4){const _0xad4b5e=_0x29d1be;super(),this[_0xad4b5e(0x40f)]=_0x56cf20,this[_0xad4b5e(0x36d)]=_0x3f6a36,this[_0xad4b5e(0x399)]=_0x401134,this[_0xad4b5e(0x263)]=_0x21801f,this['_univerInstanceService']=_0x30affc,this[_0xad4b5e(0x1a8)]=_0x43dabe,this[_0xad4b5e(0x1bc)]=_0x1eda77,this[_0xad4b5e(0x3d8)]=_0x1883e4,E(this,_0xad4b5e(0x35c),void 0x0),E(this,_0xad4b5e(0x4a7),void 0x0),E(this,_0xad4b5e(0x51c),void 0x0),E(this,_0xad4b5e(0x3e5),[]),E(this,_0xad4b5e(0x316),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0xad4b5e(0x356),void 0x0),E(this,_0xad4b5e(0x1bf),!0x1),E(this,_0xad4b5e(0x1ad),!0x1),E(this,'_hasReset',!0x1),E(this,_0xad4b5e(0x483),void 0x0),E(this,'_cxtHandlerPointerUp',void 0x0),E(this,'_currentConnectionTarget',null),this[_0xad4b5e(0x22c)]();}['_initialize'](){const _0x187aaa=_0x29d1be;this[_0x187aaa(0x4f9)](),this[_0x187aaa(0x2c3)]();}[_0x29d1be(0x2db)](){const _0x3c6c05=_0x29d1be;if(!this[_0x3c6c05(0x4a7)]||!this[_0x3c6c05(0x51c)]||!this[_0x3c6c05(0x35c)])return;let _0x33518f={'unitId':this[_0x3c6c05(0x4a7)],'subUnitId':this[_0x3c6c05(0x51c)],'drawingId':this[_0x3c6c05(0x35c)]},{transform:_0x15f126}=this[_0x3c6c05(0x263)][_0x3c6c05(0x4c9)](_0x33518f);if(_0x15f126)return{'left':_0x15f126[_0x3c6c05(0x25e)]||0x0,'top':_0x15f126[_0x3c6c05(0x459)]||0x0,'width':_0x15f126[_0x3c6c05(0x2b0)]||0x0,'height':_0x15f126['height']||0x0,'flipX':_0x15f126['flipX']||!0x1,'flipY':_0x15f126[_0x3c6c05(0x33f)]||!0x1,'angle':_0x15f126[_0x3c6c05(0x4ef)]};}[_0x29d1be(0x4b7)](){const _0xaa9494=_0x29d1be;if(this['_unitId']===void 0x0||this[_0xaa9494(0x51c)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x5d368a=this[_0xaa9494(0x399)]['getRenderUnitById'](this[_0xaa9494(0x4a7)]);if(!_0x5d368a||!_0x5d368a[_0xaa9494(0x4a1)](l['SheetSkeletonManagerService'])[_0xaa9494(0x4cd)]())return;let {scene:_0x3a35ea}=_0x5d368a,_0x466da0=this['_getDrawingRect']();if(!_0x466da0)return;let _0x147df2=this[_0xaa9494(0x1a8)]['getShapeModel'](this[_0xaa9494(0x4a7)],this[_0xaa9494(0x51c)],this[_0xaa9494(0x35c)]);if(!_0x147df2||!(0x0,n['isConnectorShape'])(_0x147df2['getShapeType']()))return;let _0x332bbe=_0x147df2[_0xaa9494(0x455)]();if(_0x332bbe[_0xaa9494(0x1d6)]<0x2)return;let _0x3b8516=new n[(_0xaa9494(0x349))](_0x466da0),_0x34b29d=_0x332bbe[0x0],_0x5ab798=_0x332bbe[_0x332bbe['length']-0x1],_0x290f0b=_0x3b8516['localToWorld'](_0x34b29d),_0x4bfbde=_0x3b8516[_0xaa9494(0x3b2)](_0x5ab798);this[_0xaa9494(0x3ce)](_0x3a35ea,{..._0x290f0b},!0x0),this['_addShapeConnectorHandlerObject'](_0x3a35ea,{..._0x4bfbde},!0x1);}[_0x29d1be(0x3ce)](_0x4983b2,_0x131448,_0x2f52eb){const _0x279629=_0x29d1be;if(this['_activeShapeId']===void 0x0||this[_0x279629(0x4a7)]===void 0x0||this[_0x279629(0x51c)]===void 0x0)return;let _0x239436=_0x279629(0x46e)+this[_0x279629(0x4a7)]+'-'+this[_0x279629(0x51c)]+'-'+this[_0x279629(0x35c)]+'-'+(_0x2f52eb?_0x279629(0x3ed):_0x279629(0x3db)),_0x26253e=_0x4983b2[_0x279629(0x467)](_0x239436);if(_0x26253e){_0x26253e['transformByState']({'left':_0x131448['x']-n[_0x279629(0x1d8)][_0x279629(0x270)],'top':_0x131448['y']-n['ShapeDefaultConfig'][_0x279629(0x270)]});return;}let _0x598971=new St(_0x239436,{'left':_0x131448['x']-n['ShapeDefaultConfig'][_0x279629(0x270)],'top':_0x131448['y']-n[_0x279629(0x1d8)][_0x279629(0x270)],'shapeId':this[_0x279629(0x35c)],'unitId':this[_0x279629(0x4a7)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x2f52eb,'width':n[_0x279629(0x1d8)]['cxnPointRadius']*0x2,'height':n[_0x279629(0x1d8)][_0x279629(0x270)]*0x2,'zIndex':c[_0x279629(0x3a5)]+0x1,'evented':!0x0});this[_0x279629(0x3e5)][_0x279629(0x25c)](_0x598971),this[_0x279629(0x277)](_0x598971,_0x4983b2,_0x2f52eb),_0x4983b2['addObject'](_0x598971,c[_0x279629(0x3a5)]+0x1);}['_getScrollInfo'](_0x5a4608,_0xecaa31){const _0x1fb35d=_0x29d1be;var _0x1d9b2a;let _0x4e9b00={'x':0x0,'y':0x0};if(!_0x5a4608||!_0xecaa31)return _0x4e9b00;let _0x757c1b=this[_0x1fb35d(0x399)][_0x1fb35d(0x2e5)](_0x5a4608);if(!_0x757c1b||!_0x757c1b[_0x1fb35d(0x4a1)](l[_0x1fb35d(0x31b)])[_0x1fb35d(0x2ab)](_0xecaa31))return _0x4e9b00;let _0x4fbba8=_0x757c1b[_0x1fb35d(0x4a1)](l[_0x1fb35d(0x1b8)]),_0x155fa3=_0x4fbba8==null?void 0x0:_0x4fbba8[_0x1fb35d(0x4ec)]();if(!_0x155fa3)return _0x4e9b00;let _0x4cd670=(_0x1d9b2a=this[_0x1fb35d(0x3d3)][_0x1fb35d(0x298)](_0x5a4608))==null?void 0x0:_0x1d9b2a[_0x1fb35d(0x32e)](_0xecaa31);if(!_0x4cd670)return _0x4e9b00;let _0x1a36e0=(0x0,l[_0x1fb35d(0x230)])(_0x155fa3[_0x1fb35d(0x497)],_0x155fa3[_0x1fb35d(0x34b)],_0x757c1b[_0x1fb35d(0x2ca)],_0x4cd670);return _0x1a36e0?{'x':_0x1a36e0['viewportScrollX'],'y':_0x1a36e0[_0x1fb35d(0x27c)]}:_0x4e9b00;}[_0x29d1be(0x419)](_0x41ffa3,_0x3d4c22){const _0x8f1e60=_0x29d1be;var _0x1ad570;let _0x5e2e91=(_0x1ad570=this[_0x8f1e60(0x3d3)][_0x8f1e60(0x298)](_0x41ffa3))==null?void 0x0:_0x1ad570[_0x8f1e60(0x32e)](_0x3d4c22);return(_0x5e2e91==null?void 0x0:_0x5e2e91[_0x8f1e60(0x1ca)]())??0x1;}[_0x29d1be(0x40d)](_0x11e545,_0x76aeff,_0x4e9072,_0x22356b,_0x85e9c3){const _0xe486b=_0x29d1be;this['_cxtHandlerPointerMove'][_0xe486b(0x325)](),this[_0xe486b(0x26b)][_0xe486b(0x325)](),this[_0xe486b(0x1bc)][_0xe486b(0x3ae)]();let _0x5767a8=this[_0xe486b(0x24e)];this[_0xe486b(0x3d8)][_0xe486b(0x41f)]();let _0x20af69=this['_getScrollInfo'](this['_unitId'],this[_0xe486b(0x51c)]),_0x56dd39=this[_0xe486b(0x419)](this[_0xe486b(0x4a7)],this[_0xe486b(0x51c)]),_0x4b8886={'x':_0x4e9072['offsetX']/_0x56dd39+_0x20af69['x'],'y':_0x4e9072[_0xe486b(0x377)]/_0x56dd39+_0x20af69['y']},_0x46a3d9=_0x5767a8?_0x5767a8[_0xe486b(0x305)]:_0x4b8886,_0x14a8b1=_0x22356b?this[_0xe486b(0x356)][_0xe486b(0x341)]():this[_0xe486b(0x356)]['getStartConnectInfo'](),_0xc7b7f=this[_0xe486b(0x356)][_0xe486b(0x489)]();_0x14a8b1?this[_0xe486b(0x208)](_0x14a8b1,_0x46a3d9,_0x22356b,_0x5767a8,_0x85e9c3):this[_0xe486b(0x50b)](_0x76aeff,_0x46a3d9,_0x22356b,_0x5767a8,_0x85e9c3,_0xc7b7f),this[_0xe486b(0x1bf)]=!0x1,this[_0xe486b(0x453)]=!0x1,this[_0xe486b(0x24e)]=null,_0x11e545[_0xe486b(0x242)]();}[_0x29d1be(0x50b)](_0x25aed7,_0x17f204,_0x4dd178,_0x27897,_0x913325,_0x5f4250){const _0x597841=_0x29d1be;let _0x15a535=_0x5f4250===n[_0x597841(0x333)][_0x597841(0x4d0)]||_0x5f4250===n['ShapeTypeEnum'][_0x597841(0x41e)],_0x4753aa=_0x4dd178?_0x17f204:_0x25aed7,_0x407428=_0x4dd178?_0x25aed7:_0x17f204,_0x3f7f16=this[_0x597841(0x356)][_0x597841(0x455)](),_0x44df19=this[_0x597841(0x356)][_0x597841(0x489)](),_0x43273e=(0x0,n['isCurvedConnectorShape'])(_0x44df19),_0x5c3f2d=n[_0x597841(0x349)]['getBentTypeFromPoints'](_0x3f7f16,_0x43273e),_0x1c0a29=_0x15a535?n[_0x597841(0x349)]['computeStraightConnectorLayout'](_0x4753aa,_0x407428):n[_0x597841(0x349)][_0x597841(0x3fa)](_0x25aed7,_0x17f204,_0x4dd178,_0x5c3f2d);_0x27897?this[_0x597841(0x509)](_0x1c0a29,_0x27897,_0x4dd178,_0x913325):this[_0x597841(0x522)](_0x1c0a29,_0x913325);}[_0x29d1be(0x208)](_0x3c1472,_0x463931,_0x44f5d1,_0x226fca,_0x2abad4){const _0x4cf520=_0x29d1be;let _0x50adc6=this['_getConnectPointInfo'](_0x3c1472);if(!_0x50adc6)return;let _0x50008c=_0x226fca?_0x226fca[_0x4cf520(0x4ef)]:this[_0x4cf520(0x240)](_0x50adc6[_0x4cf520(0x1a0)],_0x463931),_0x2bdedc;if(_0x226fca){let _0x3980a5=this[_0x4cf520(0x263)][_0x4cf520(0x4c9)]({'unitId':_0x226fca[_0x4cf520(0x448)],'subUnitId':_0x226fca[_0x4cf520(0x21d)],'drawingId':_0x226fca[_0x4cf520(0x1cf)]});if(_0x3980a5!=null&&_0x3980a5['transform']){let {left:_0x3b710f=0x0,top:_0x4fc37e=0x0,width:_0xf8c177=0x0,height:_0x2e7402=0x0,angle:_0x2cde33}=_0x3980a5['transform'];_0x2bdedc=(0x0,n['getBasicShapeRotateBound'])({'left':_0x3b710f,'top':_0x4fc37e,'width':_0xf8c177,'height':_0x2e7402},_0x2cde33||0x0);}else _0x2bdedc={'left':_0x463931['x'],'top':_0x463931['y'],'width':0x0,'height':0x0};}else _0x2bdedc={'left':_0x463931['x'],'top':_0x463931['y'],'width':0x0,'height':0x0};let _0x2303df={'point':_0x463931,'angle':_0x50008c,'bounds':_0x2bdedc},_0x566003=_0x44f5d1?_0x2303df:_0x50adc6,_0x205d75=_0x44f5d1?_0x50adc6:_0x2303df,_0x5bdb24=this[_0x4cf520(0x356)][_0x4cf520(0x489)](),_0x37fd5d=(0x0,n[_0x4cf520(0x4ae)])(_0x566003,_0x205d75,_0x5bdb24);this[_0x4cf520(0x356)][_0x4cf520(0x46a)]();let _0x230ace=(0x0,n['computeConnectorRouteLayout'])(_0x37fd5d,_0x5bdb24);_0x226fca?this[_0x4cf520(0x493)](_0x230ace,_0x226fca,_0x3c1472,_0x44f5d1,_0x2abad4):this['_executeConnectedRouteResizeCommand'](_0x230ace,_0x3c1472,_0x44f5d1,_0x2abad4);}[_0x29d1be(0x509)](_0x54f61c,_0x423f50,_0x371000,_0x139501){const _0x410466=_0x29d1be;let _0x1b8811=this[_0x410466(0x356)][_0x410466(0x50e)]()[_0x410466(0x4bf)],_0x3ef2c8={..._0x1b8811},_0x3727a1={'shapeId':_0x423f50[_0x410466(0x1cf)],'cxnIndex':_0x423f50[_0x410466(0x4db)]};_0x371000?_0x3ef2c8[_0x410466(0x42f)]=_0x3727a1:_0x3ef2c8['to']=_0x3727a1;let _0x2a1f93=this[_0x410466(0x356)][_0x410466(0x489)](),_0x16b54f=(0x0,n['computeConnectorRouteLayout'])(_0x54f61c[_0x410466(0x4e2)],_0x2a1f93),_0x3bd430={'unitId':this[_0x410466(0x4a7)],'subUnitId':this[_0x410466(0x51c)],'connectorShapeId':this[_0x410466(0x35c)],'width':_0x54f61c['worldRect'][_0x410466(0x2b0)],'height':_0x54f61c[_0x410466(0x4ac)][_0x410466(0x1bb)],'left':_0x54f61c[_0x410466(0x4ac)][_0x410466(0x25e)],'top':_0x54f61c['worldRect'][_0x410466(0x459)],'flipX':_0x54f61c[_0x410466(0x4ac)]['flipX']||!0x1,'flipY':_0x54f61c['worldRect'][_0x410466(0x33f)]||!0x1,'newAdjustValues':_0x16b54f[_0x410466(0x21e)],'oldAdjustValues':_0x139501,'oldRelation':_0x1b8811,'newRelation':_0x3ef2c8,'newLineType':_0x16b54f[_0x410466(0x281)],'oldLineType':_0x2a1f93};this[_0x410466(0x36d)][_0x410466(0x1f6)](i['UpdateConnectorRelationCommand']['id'],_0x3bd430);}[_0x29d1be(0x522)](_0x4f4903,_0x2fc335){const _0x3d449c=_0x29d1be;let _0x2c6363=this[_0x3d449c(0x356)][_0x3d449c(0x489)](),_0x3ef9f6=(0x0,n[_0x3d449c(0x279)])(_0x4f4903[_0x3d449c(0x4e2)],_0x2c6363),_0x1c49f6={'unitId':this[_0x3d449c(0x4a7)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x3d449c(0x35c)],'width':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x2b0)],'height':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x1bb)],'left':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x25e)],'top':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x459)],'flipX':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x2de)]||!0x1,'flipY':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x33f)]||!0x1,'angle':_0x4f4903[_0x3d449c(0x4ac)][_0x3d449c(0x4ef)]||0x0,'newAdjustValues':_0x3ef9f6[_0x3d449c(0x21e)],'oldAdjustValues':_0x2fc335,'newLineType':_0x3ef9f6['lineType'],'oldLineType':_0x2c6363};this[_0x3d449c(0x36d)][_0x3d449c(0x1f6)](i[_0x3d449c(0x1a9)]['id'],_0x1c49f6);}['_executeConnectedRouteConnectionCommand'](_0xc63e83,_0x54ef3b,_0x4e9340,_0x32fb64,_0x50b581){const _0x4ac443=_0x29d1be;let _0x190300=this[_0x4ac443(0x356)][_0x4ac443(0x50e)]()[_0x4ac443(0x4bf)],_0x2d98cc={..._0x190300},_0x264562={'shapeId':_0x54ef3b['shapeId'],'cxnIndex':_0x54ef3b['cxnIndex']};_0x32fb64?(_0x2d98cc[_0x4ac443(0x42f)]=_0x264562,_0x2d98cc['to']=_0x4e9340):(_0x2d98cc[_0x4ac443(0x42f)]=_0x4e9340,_0x2d98cc['to']=_0x264562);let _0x93323c={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4ac443(0x35c)],'width':_0xc63e83[_0x4ac443(0x4ac)][_0x4ac443(0x2b0)],'height':_0xc63e83[_0x4ac443(0x4ac)][_0x4ac443(0x1bb)],'left':_0xc63e83[_0x4ac443(0x4ac)]['left'],'top':_0xc63e83[_0x4ac443(0x4ac)][_0x4ac443(0x459)],'flipX':_0xc63e83[_0x4ac443(0x4ac)][_0x4ac443(0x2de)]||!0x1,'flipY':_0xc63e83[_0x4ac443(0x4ac)][_0x4ac443(0x33f)]||!0x1,'oldAdjustValues':_0x50b581,'newAdjustValues':_0xc63e83[_0x4ac443(0x21e)],'newLineType':_0xc63e83[_0x4ac443(0x281)],'rotation':_0xc63e83[_0x4ac443(0x4df)],'oldRelation':_0x190300,'newRelation':_0x2d98cc};this[_0x4ac443(0x36d)]['executeCommand'](i[_0x4ac443(0x275)]['id'],_0x93323c);}[_0x29d1be(0x2c6)](_0xf76045,_0x26fb44,_0x11e007,_0x4cb891){const _0xbb259a=_0x29d1be;let _0x5815bc=this[_0xbb259a(0x356)][_0xbb259a(0x50e)]()['relation'],_0x1d9a67={};_0x11e007?(_0x1d9a67['to']=_0x26fb44,_0x1d9a67[_0xbb259a(0x42f)]=void 0x0):(_0x1d9a67[_0xbb259a(0x42f)]=_0x26fb44,_0x1d9a67['to']=void 0x0);let _0x2c00d6={'unitId':this['_unitId'],'subUnitId':this[_0xbb259a(0x51c)],'connectorShapeId':this[_0xbb259a(0x35c)],'width':_0xf76045[_0xbb259a(0x4ac)]['width'],'height':_0xf76045['worldRect'][_0xbb259a(0x1bb)],'left':_0xf76045[_0xbb259a(0x4ac)][_0xbb259a(0x25e)],'top':_0xf76045[_0xbb259a(0x4ac)][_0xbb259a(0x459)],'flipX':_0xf76045['worldRect'][_0xbb259a(0x2de)]||!0x1,'flipY':_0xf76045[_0xbb259a(0x4ac)]['flipY']||!0x1,'oldAdjustValues':_0x4cb891,'newAdjustValues':_0xf76045[_0xbb259a(0x21e)],'newLineType':_0xf76045[_0xbb259a(0x281)],'rotation':_0xf76045[_0xbb259a(0x4df)],'oldRelation':_0x5815bc,'newRelation':_0x1d9a67};this[_0xbb259a(0x36d)][_0xbb259a(0x1f6)](i[_0xbb259a(0x275)]['id'],_0x2c00d6);}[_0x29d1be(0x277)](_0x2b0b39,_0x3ee380,_0x2af669){const _0x4889ce=_0x29d1be;this[_0x4889ce(0x289)]((0x0,a[_0x4889ce(0x3dd)])(_0x2b0b39['onPointerDown$'][_0x4889ce(0x292)]((_0x29bbe8,_0x30c952)=>{const _0x2bcb18=_0x4889ce;let _0x59725b=_0x2b0b39[_0x2bcb18(0x4b5)]();if(this[_0x2bcb18(0x356)]=this['_sheetsShapeService'][_0x2bcb18(0x44f)](_0x59725b[_0x2bcb18(0x448)],_0x59725b['subUnitId'],_0x59725b[_0x2bcb18(0x1e6)]),!this[_0x2bcb18(0x356)])return;let _0x476128={};this[_0x2bcb18(0x356)][_0x2bcb18(0x3da)]()[_0x2bcb18(0x1dc)](_0x1414c7=>{const _0x1cc081=_0x2bcb18;let _0x3de8a1=this[_0x1cc081(0x356)][_0x1cc081(0x476)](_0x1414c7);_0x3de8a1!==void 0x0&&(_0x476128[_0x1414c7]=_0x3de8a1);});let _0x1f7728=this[_0x2bcb18(0x2db)]();if(!_0x1f7728)return;this['_baseDrawingRect']={..._0x1f7728};let _0xb7abb5=new n[(_0x2bcb18(0x349))](this[_0x2bcb18(0x316)]),_0x116125=(0x0,s[_0x2bcb18(0x2f5)])({'unitId':this[_0x2bcb18(0x4a7)],'subUnitId':this[_0x2bcb18(0x51c)],'drawingId':this[_0x2bcb18(0x35c)]}),_0xc8ab7e=_0x3ee380[_0x2bcb18(0x467)](_0x116125);this[_0x2bcb18(0x1bf)]=!0x0,_0x3ee380['disableObjectsEvent'](),this[_0x2bcb18(0x3d8)][_0x2bcb18(0x22f)](_0x3ee380,this['_unitId'],this['_subUnitId'],this[_0x2bcb18(0x35c)]),this['_currentConnectionTarget']=null;let _0x31b738=this['_activeShapeModel'][_0x2bcb18(0x455)](),_0x2a99a3=_0x31b738[0x0],_0x5c9edd=_0x31b738[_0x31b738[_0x2bcb18(0x1d6)]-0x1],_0x220987=_0x2af669?_0xb7abb5[_0x2bcb18(0x3b2)](_0x5c9edd):_0xb7abb5['localToWorld'](_0x2a99a3);this[_0x2bcb18(0x483)]=_0x3ee380['onPointerMove$'][_0x2bcb18(0x292)]((_0x33b612,_0x5bd806)=>{const _0x21dac7=_0x2bcb18;if(!this[_0x21dac7(0x1bf)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x21dac7(0x1bc)]['clearAdjustControls'](),this[_0x21dac7(0x356)][_0x21dac7(0x51b)](),!0x0);let _0x47bbce=this['_getScrollInfo'](this[_0x21dac7(0x4a7)],this[_0x21dac7(0x51c)]),_0x2cea5a=this['_getZoomRatio'](this['_unitId'],this[_0x21dac7(0x51c)]),_0x28a128={'x':_0x33b612[_0x21dac7(0x217)]/_0x2cea5a+_0x47bbce['x'],'y':_0x33b612[_0x21dac7(0x377)]/_0x2cea5a+_0x47bbce['y']},_0x39ee72=this['_sheetBasicShapeConnectionPointController']['updateConnectionDetection'](_0x28a128);if(_0x39ee72){let {shapeId:_0x34abef,unitId:_0x250f44,subUnitId:_0x41aff3}=_0x39ee72;if(_0x34abef&&_0x250f44&&_0x41aff3){let _0x116f82=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x250f44,'subUnitId':_0x41aff3,'drawingId':_0x34abef});_0x39ee72[_0x21dac7(0x4ef)]=(_0x3ee380[_0x21dac7(0x467)](_0x116f82)[_0x21dac7(0x4ef)]||0x0)+_0x39ee72[_0x21dac7(0x4ef)];}}this[_0x21dac7(0x24e)]=_0x39ee72;let _0x4ecbd7=_0x2af669?this[_0x21dac7(0x356)]['getEndConnectInfo']():this[_0x21dac7(0x356)][_0x21dac7(0x2ee)]();_0x4ecbd7?this[_0x21dac7(0x1e4)](_0x4ecbd7,_0x28a128,_0x2af669,_0xc8ab7e,_0x2b0b39):this[_0x21dac7(0x3d2)](_0x28a128,_0x220987,_0x2af669,_0xc8ab7e,_0x2b0b39);}),this['_cxtHandlerPointerUp']=_0x3ee380[_0x2bcb18(0x252)][_0x2bcb18(0x292)]((_0x1fe4c9,_0x458778)=>{const _0x5e75f4=_0x2bcb18;this[_0x5e75f4(0x40d)](_0x3ee380,_0x220987,_0x1fe4c9,_0x2af669,_0x476128);}),_0x30c952[_0x2bcb18(0x2dc)]();})));}[_0x29d1be(0x43f)](_0x50c20f,_0x44e9f8,_0x22a7c2){const _0x40332a=_0x29d1be;let _0x5dd55e=this[_0x40332a(0x1a8)][_0x40332a(0x2bd)](_0x50c20f,_0x44e9f8,_0x22a7c2);if(!_0x5dd55e||_0x5dd55e[_0x40332a(0x1d6)]===0x0)return;let _0x3f4e0b=this[_0x40332a(0x399)]['getRenderUnitById'](_0x50c20f);if(!_0x3f4e0b)return;let {scene:_0x35e1f5}=_0x3f4e0b;for(let _0x1305da of _0x5dd55e){let _0x553cd7=_0x1305da[_0x40332a(0x514)],_0x53c02e=this[_0x40332a(0x1a8)][_0x40332a(0x44f)](_0x50c20f,_0x44e9f8,_0x553cd7);if(!_0x53c02e)continue;let _0x3c8323=_0x53c02e[_0x40332a(0x2ee)](),_0x1486c8=_0x53c02e[_0x40332a(0x341)](),_0x107bd0=(_0x3c8323==null?void 0x0:_0x3c8323[_0x40332a(0x1cf)])===_0x22a7c2,_0x5434cb=(0x0,s[_0x40332a(0x2f5)])({'unitId':_0x50c20f,'subUnitId':_0x44e9f8,'drawingId':_0x553cd7}),_0x5e07e8=_0x35e1f5[_0x40332a(0x467)](_0x5434cb);if(!_0x5e07e8)continue;let _0x45ff45=this['_drawingManagerService'][_0x40332a(0x4c9)]({'unitId':_0x50c20f,'subUnitId':_0x44e9f8,'drawingId':_0x553cd7});_0x45ff45!=null&&_0x45ff45[_0x40332a(0x334)]&&(_0x3c8323&&_0x1486c8?this['_rerouteConnectorLine'](_0x50c20f,_0x44e9f8,_0x553cd7,_0x53c02e,_0x3c8323,_0x1486c8,_0x5e07e8):this[_0x40332a(0x284)](_0x50c20f,_0x44e9f8,_0x553cd7,_0x53c02e,_0x107bd0?_0x3c8323:_0x1486c8,_0x107bd0,_0x45ff45,_0x5e07e8));}}[_0x29d1be(0x392)](_0x565ed4,_0x1f136b,_0x6bc515,_0x436ad8,_0x1a5dcd,_0x4039d3,_0x33b8fa){const _0x37a46b=_0x29d1be;let _0x16244a=this[_0x37a46b(0x4a7)],_0x1e60d5=this[_0x37a46b(0x51c)];this[_0x37a46b(0x4a7)]=_0x565ed4,this[_0x37a46b(0x51c)]=_0x1f136b;let _0xe68c1=this[_0x37a46b(0x2e4)](_0x1a5dcd),_0x1c0842=this[_0x37a46b(0x2e4)](_0x4039d3);if(this[_0x37a46b(0x4a7)]=_0x16244a,this[_0x37a46b(0x51c)]=_0x1e60d5,!_0xe68c1||!_0x1c0842)return;let _0xf9a61c=_0x436ad8[_0x37a46b(0x489)](),_0x4c6118=(0x0,n[_0x37a46b(0x4ae)])(_0xe68c1,_0x1c0842,_0xf9a61c);_0x4c6118&&_0x436ad8['updateLinePoints'](_0x4c6118);let _0x3eaffb=(0x0,n['computeConnectorRouteLayout'])(_0x4c6118,_0xf9a61c);_0x3eaffb[_0x37a46b(0x281)]!==_0xf9a61c&&_0x436ad8['changeShapeType'](_0x3eaffb[_0x37a46b(0x281)]),_0x436ad8[_0x37a46b(0x51b)]();for(let [_0x5a1654,_0x1a01b3]of Object[_0x37a46b(0x261)](_0x3eaffb[_0x37a46b(0x21e)]))_0x436ad8[_0x37a46b(0x426)](_0x5a1654,_0x1a01b3);_0x436ad8[_0x37a46b(0x515)]({'width':_0x3eaffb[_0x37a46b(0x4ac)]['width'],'height':_0x3eaffb['worldRect']['height']}),_0x33b8fa['transformByState']({'flipX':_0x3eaffb[_0x37a46b(0x4ac)]['flipX'],'flipY':_0x3eaffb[_0x37a46b(0x4ac)]['flipY'],'left':_0x3eaffb[_0x37a46b(0x4ac)][_0x37a46b(0x25e)],'top':_0x3eaffb[_0x37a46b(0x4ac)][_0x37a46b(0x459)],'width':_0x3eaffb[_0x37a46b(0x4ac)]['width'],'height':_0x3eaffb[_0x37a46b(0x4ac)][_0x37a46b(0x1bb)],'angle':_0x3eaffb[_0x37a46b(0x4df)]}),_0x436ad8['removeLinePoints']();}['_moveConnectorWithShape'](_0x542404,_0x4e6acd,_0x3ee897,_0x571005,_0x1da78f,_0xee4b29,_0x4b2848,_0x2493db){const _0x3cdbce=_0x29d1be;let _0x504f9e=this['_unitId'],_0x1c4529=this[_0x3cdbce(0x51c)];this['_unitId']=_0x542404,this[_0x3cdbce(0x51c)]=_0x4e6acd;let _0x5674c0=this['_getConnectPointInfo'](_0x1da78f);if(this['_unitId']=_0x504f9e,this[_0x3cdbce(0x51c)]=_0x1c4529,!_0x5674c0)return;let {left:_0x3ccb68=0x0,top:_0x5e4357=0x0,width:_0x5d4dd9=0x0,height:_0x501e66=0x0,flipX:_0x57dd0d=!0x1,flipY:_0x1038c4=!0x1}=_0x4b2848[_0x3cdbce(0x334)],_0x37eabc=_0x571005[_0x3cdbce(0x455)]();if(_0x37eabc['length']<0x2)return;let _0x4b7071=new n[(_0x3cdbce(0x349))]({'left':_0x3ccb68,'top':_0x5e4357,'width':_0x5d4dd9,'height':_0x501e66,'flipX':_0x57dd0d,'flipY':_0x1038c4}),_0x5e7ece=_0xee4b29?_0x37eabc[_0x37eabc[_0x3cdbce(0x1d6)]-0x1]:_0x37eabc[0x0],_0x4fb970=_0x4b7071[_0x3cdbce(0x3b2)](_0x5e7ece),_0x1cf20d=n[_0x3cdbce(0x349)][_0x3cdbce(0x3fa)](_0x4fb970,_0x5674c0['point'],!_0xee4b29);_0x2493db['transformByState']({'flipX':_0x1cf20d['worldRect'][_0x3cdbce(0x2de)],'flipY':_0x1cf20d['worldRect'][_0x3cdbce(0x33f)],'left':_0x1cf20d['worldRect'][_0x3cdbce(0x25e)],'top':_0x1cf20d[_0x3cdbce(0x4ac)][_0x3cdbce(0x459)],'width':_0x1cf20d[_0x3cdbce(0x4ac)][_0x3cdbce(0x2b0)],'height':_0x1cf20d[_0x3cdbce(0x4ac)]['height'],'angle':_0x1cf20d[_0x3cdbce(0x4ac)][_0x3cdbce(0x4ef)]}),_0x2493db[_0x3cdbce(0x362)](!0x0);}[_0x29d1be(0x2e7)](){const _0x59ce5d=_0x29d1be;this[_0x59ce5d(0x3e5)][_0x59ce5d(0x1d6)]!==0x0&&(this['_connectorObjects'][_0x59ce5d(0x1dc)](_0x3ab9d4=>{const _0x5876e1=_0x59ce5d;_0x3ab9d4[_0x5876e1(0x361)]();}),this[_0x59ce5d(0x3e5)]=[]);}[_0x29d1be(0x2c3)](){const _0x5eff68=_0x29d1be;let _0x4430e1=this['_univerInstanceService']['getCurrentTypeOfUnit$'](a['UniverInstanceType'][_0x5eff68(0x463)]);this['disposeWithMe'](_0x4430e1[_0x5eff68(0x24b)]((0x0,u[_0x5eff68(0x516)])(_0x4553da=>_0x4553da?_0x4553da[_0x5eff68(0x41c)][_0x5eff68(0x24b)]((0x0,u[_0x5eff68(0x516)])(_0x19eaf9=>{const _0x2f43fd=_0x5eff68;if(!_0x19eaf9)return u[_0x2f43fd(0x32b)];let _0x2ff139=_0x4553da['getUnitId'](),_0x2dc70b=this[_0x2f43fd(0x399)][_0x2f43fd(0x2e5)](_0x2ff139),_0x53a393=_0x2dc70b==null?void 0x0:_0x2dc70b[_0x2f43fd(0x2ca)];return _0x53a393?(0x0,u['of'])(_0x53a393):u['EMPTY'];})):u[_0x5eff68(0x32b)]))[_0x5eff68(0x39c)](_0x366ecb=>{const _0x305d1e=_0x5eff68;let _0x75de2d=_0x366ecb['getTransformerByCreate']();this['disposeWithMe'](_0x366ecb[_0x305d1e(0x3ea)][_0x305d1e(0x292)](_0x5a7116=>{const _0xfe5813=_0x305d1e;this[_0xfe5813(0x1ad)]&&this[_0xfe5813(0x35c)]&&this[_0xfe5813(0x2e7)]();})),this[_0x305d1e(0x289)](_0x75de2d[_0x305d1e(0x40e)][_0x305d1e(0x39c)](_0x4e0182=>{const _0x18e885=_0x305d1e;let {objects:_0x623015}=_0x4e0182;this[_0x18e885(0x2e7)](),_0x623015!==null&&_0x623015[_0x18e885(0x2fe)]===0x1&&_0x623015[_0x18e885(0x4bc)]()[_0x18e885(0x3f7)]()['value']instanceof D&&(this[_0x18e885(0x1ad)]=!0x0);})),this[_0x305d1e(0x289)](_0x75de2d[_0x305d1e(0x49e)]['subscribe'](_0x5025f9=>{const _0xaf464d=_0x305d1e;this[_0xaf464d(0x1ad)]&&this[_0xaf464d(0x2e7)]();})),this['disposeWithMe'](_0x366ecb[_0x305d1e(0x252)][_0x305d1e(0x292)](()=>{const _0x2ed834=_0x305d1e;this[_0x2ed834(0x1ad)]&&(this[_0x2ed834(0x1ad)]=!0x1,this[_0x2ed834(0x4b7)]());})),this[_0x305d1e(0x289)](_0x75de2d[_0x305d1e(0x48b)][_0x305d1e(0x39c)](()=>{const _0x2527d2=_0x305d1e;this[_0x2527d2(0x4a7)]&&this[_0x2527d2(0x51c)]&&this[_0x2527d2(0x35c)]&&this[_0x2527d2(0x263)][_0x2527d2(0x4c9)]({'unitId':this['_unitId'],'subUnitId':this[_0x2527d2(0x51c)],'drawingId':this[_0x2527d2(0x35c)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x2527d2(0x4b7)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5baeb9=_0x29d1be;this[_0x5baeb9(0x289)](this[_0x5baeb9(0x263)][_0x5baeb9(0x32f)][_0x5baeb9(0x39c)](_0x4656d3=>{const _0x4593c8=_0x5baeb9;if(_0x4656d3['length']===0x1){let _0x554a42=_0x4656d3[0x0];if(_0x554a42['drawingType']===a[_0x4593c8(0x4e8)][_0x4593c8(0x41d)]){let _0x31cd69=this[_0x4593c8(0x1a8)][_0x4593c8(0x44f)](_0x554a42[_0x4593c8(0x448)],_0x554a42[_0x4593c8(0x21d)],_0x554a42[_0x4593c8(0x1e6)]);if(_0x31cd69&&(0x0,n[_0x4593c8(0x3c7)])(_0x31cd69['getShapeType']())){this['_activeShapeId']=_0x554a42['drawingId'],this['_unitId']=_0x554a42[_0x4593c8(0x448)],this[_0x4593c8(0x51c)]=_0x554a42['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x4593c8(0x4b7)]();return;}}}this[_0x4593c8(0x35c)]=void 0x0,this['_unitId']=void 0x0,this[_0x4593c8(0x51c)]=void 0x0,this[_0x4593c8(0x2e7)]();})),this['disposeWithMe'](this[_0x5baeb9(0x263)][_0x5baeb9(0x1e7)][_0x5baeb9(0x39c)](_0x49799d=>{const _0x5bf2b0=_0x5baeb9;if(_0x49799d[_0x5bf2b0(0x1d6)]===0x1){var _0x9e3f45;let _0x19dc9e=_0x49799d[0x0],_0x11f612=(_0x9e3f45=this[_0x5bf2b0(0x263)][_0x5bf2b0(0x4c9)](_0x19dc9e))==null?void 0x0:_0x9e3f45[_0x5bf2b0(0x458)];_0x11f612===a[_0x5bf2b0(0x4e8)]['DRAWING_SHAPE']&&_0x19dc9e[_0x5bf2b0(0x1e6)]===this['_activeShapeId']?(this['_clearShapeConnectorHandlerObjects'](),this[_0x5bf2b0(0x4b7)]()):!this[_0x5bf2b0(0x35c)]&&_0x11f612===a[_0x5bf2b0(0x4e8)][_0x5bf2b0(0x41d)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x19dc9e[_0x5bf2b0(0x448)],_0x19dc9e[_0x5bf2b0(0x21d)],_0x19dc9e[_0x5bf2b0(0x1e6)]);}})),this['disposeWithMe'](this[_0x5baeb9(0x263)][_0x5baeb9(0x4ab)][_0x5baeb9(0x39c)](_0x2ace6f=>{for(let _0x54adeb of _0x2ace6f){let {drawingId:_0x542276}=_0x54adeb;if(this['_activeShapeId']===_0x542276){this['_reset']();return;}}}));}[_0x29d1be(0x1e4)](_0x4c87e7,_0x14d06d,_0x4d6be8,_0x5e6d43,_0xe39fde){const _0xe0bd7a=_0x29d1be;var _0x7c124a;if(!this[_0xe0bd7a(0x356)])return;let _0x4e022f=this[_0xe0bd7a(0x2e4)](_0x4c87e7);if(!_0x4e022f)return;let _0x3a1a23=this[_0xe0bd7a(0x24e)]?this['_currentConnectionTarget'][_0xe0bd7a(0x305)]:_0x14d06d,_0x2c9b1d=this[_0xe0bd7a(0x24e)]?this[_0xe0bd7a(0x24e)]['angle']:this['_calculateFreeEndpointAngle'](_0x4e022f[_0xe0bd7a(0x1a0)],_0x3a1a23),_0x36c8b8;if(this[_0xe0bd7a(0x24e)]){let _0x2f1313=this[_0xe0bd7a(0x263)][_0xe0bd7a(0x4c9)]({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0xe0bd7a(0x24e)][_0xe0bd7a(0x21d)],'drawingId':this[_0xe0bd7a(0x24e)][_0xe0bd7a(0x1cf)]});if(_0x2f1313!=null&&_0x2f1313[_0xe0bd7a(0x334)]){let {left:_0x18a8a1=0x0,top:_0x1fd1f9=0x0,width:_0x241329=0x0,height:_0x223469=0x0,angle:_0x3d4bcd}=_0x2f1313[_0xe0bd7a(0x334)];_0x36c8b8=(0x0,n[_0xe0bd7a(0x443)])({'left':_0x18a8a1,'top':_0x1fd1f9,'width':_0x241329,'height':_0x223469},_0x3d4bcd||0x0);}else _0x36c8b8={'left':_0x3a1a23['x'],'top':_0x3a1a23['y'],'width':0x0,'height':0x0};}else _0x36c8b8={'left':_0x3a1a23['x'],'top':_0x3a1a23['y'],'width':0x0,'height':0x0};let _0x5bd15c={'point':_0x3a1a23,'angle':_0x2c9b1d,'bounds':_0x36c8b8},_0x4e0d8b=_0x4d6be8?_0x5bd15c:_0x4e022f,_0x92bdef=_0x4d6be8?_0x4e022f:_0x5bd15c,_0xaa9bed=this[_0xe0bd7a(0x356)][_0xe0bd7a(0x489)](),_0x31eabf=(0x0,n[_0xe0bd7a(0x4ae)])(_0x4e0d8b,_0x92bdef,_0xaa9bed);_0x31eabf&&this[_0xe0bd7a(0x356)][_0xe0bd7a(0x33d)](_0x31eabf);let _0x3845ba=(0x0,n[_0xe0bd7a(0x279)])(_0x31eabf,_0xaa9bed);_0x3845ba['lineType']!==_0xaa9bed&&this['_activeShapeModel'][_0xe0bd7a(0x3eb)](_0x3845ba[_0xe0bd7a(0x281)]);for(let [_0x5788a5,_0x57e594]of Object['entries'](_0x3845ba[_0xe0bd7a(0x21e)]))this[_0xe0bd7a(0x356)][_0xe0bd7a(0x426)](_0x5788a5,_0x57e594);this[_0xe0bd7a(0x356)]['updateContext']({'width':_0x3845ba['worldRect'][_0xe0bd7a(0x2b0)],'height':_0x3845ba['worldRect'][_0xe0bd7a(0x1bb)]}),_0x5e6d43['transformByState']({'flipX':_0x3845ba[_0xe0bd7a(0x4ac)][_0xe0bd7a(0x2de)],'flipY':_0x3845ba[_0xe0bd7a(0x4ac)][_0xe0bd7a(0x33f)],'left':_0x3845ba['worldRect'][_0xe0bd7a(0x25e)],'top':_0x3845ba[_0xe0bd7a(0x4ac)][_0xe0bd7a(0x459)],'width':_0x3845ba[_0xe0bd7a(0x4ac)][_0xe0bd7a(0x2b0)],'height':_0x3845ba[_0xe0bd7a(0x4ac)][_0xe0bd7a(0x1bb)],'angle':_0x3845ba[_0xe0bd7a(0x4df)]}),_0x5e6d43[_0xe0bd7a(0x362)](!0x0);let _0x57b53b=((_0x7c124a=this['_currentConnectionTarget'])==null?void 0x0:_0x7c124a[_0xe0bd7a(0x305)])??_0x14d06d;_0xe39fde[_0xe0bd7a(0x4fc)]({'left':_0x57b53b['x']-n[_0xe0bd7a(0x1d8)][_0xe0bd7a(0x270)],'top':_0x57b53b['y']-n[_0xe0bd7a(0x1d8)][_0xe0bd7a(0x270)]});}['_handleFreeEndpointMove'](_0x141cdf,_0x1a5df9,_0x298db6,_0x454121,_0xf1fe9d){const _0x3d4623=_0x29d1be;var _0x101e1d,_0x598994;let _0x3559ea=((_0x101e1d=this[_0x3d4623(0x24e)])==null?void 0x0:_0x101e1d[_0x3d4623(0x305)])??_0x141cdf,_0x1c4606=n[_0x3d4623(0x349)][_0x3d4623(0x3fa)](_0x1a5df9,_0x3559ea,_0x298db6);_0x454121[_0x3d4623(0x4fc)]({'flipX':_0x1c4606['worldRect'][_0x3d4623(0x2de)],'flipY':_0x1c4606[_0x3d4623(0x4ac)][_0x3d4623(0x33f)],'left':_0x1c4606['worldRect'][_0x3d4623(0x25e)],'top':_0x1c4606['worldRect'][_0x3d4623(0x459)],'width':_0x1c4606[_0x3d4623(0x4ac)][_0x3d4623(0x2b0)],'height':_0x1c4606[_0x3d4623(0x4ac)]['height'],'angle':_0x1c4606['worldRect'][_0x3d4623(0x4ef)]});let _0x302be4=((_0x598994=this['_currentConnectionTarget'])==null?void 0x0:_0x598994['worldPoint'])??_0x141cdf;_0xf1fe9d[_0x3d4623(0x4fc)]({'left':_0x302be4['x']-n[_0x3d4623(0x1d8)]['cxnPointRadius'],'top':_0x302be4['y']-n['ShapeDefaultConfig'][_0x3d4623(0x270)]});}[_0x29d1be(0x2e4)](_0x3e88a3){const _0x120e04=_0x29d1be;if(!this[_0x120e04(0x4a7)]||!this[_0x120e04(0x51c)])return null;let {shapeId:_0x287e05,cxnIndex:_0x4dc3bf}=_0x3e88a3,_0x40eca8=this[_0x120e04(0x1a8)]['getShapeModel'](this[_0x120e04(0x4a7)],this[_0x120e04(0x51c)],_0x287e05);if(!_0x40eca8)return null;let _0x1ccd3b=this[_0x120e04(0x263)][_0x120e04(0x4c9)]({'unitId':this['_unitId'],'subUnitId':this[_0x120e04(0x51c)],'drawingId':_0x287e05});if(!(_0x1ccd3b!=null&&_0x1ccd3b[_0x120e04(0x334)]))return null;let {left:_0x4ef54f=0x0,top:_0x45b71a=0x0,width:_0x3cfbd0=0x0,height:_0x69f567=0x0,flipX:_0x46b3bb=!0x1,flipY:_0x2458ab=!0x1,angle:_0x13ddfe}=_0x1ccd3b[_0x120e04(0x334)];_0x40eca8[_0x120e04(0x515)]({'width':_0x3cfbd0,'height':_0x69f567});let _0x464774=_0x40eca8[_0x120e04(0x267)]()[_0x120e04(0x432)](_0x583ba5=>_0x583ba5[_0x120e04(0x212)]===_0x4dc3bf);if(!_0x464774)return null;let _0x330623=_0x46b3bb?_0x3cfbd0-_0x464774['x']:_0x464774['x'],_0x35e61a=_0x2458ab?_0x69f567-_0x464774['y']:_0x464774['y'];if(_0x13ddfe!==0x0&&_0x13ddfe!=null){let _0x1b915b=_0x13ddfe*Math['PI']/0xb4,_0x3137f4=Math['cos'](_0x1b915b),_0x468980=Math[_0x120e04(0x2f8)](_0x1b915b),_0x2cb225=_0x3cfbd0/0x2,_0x5f0934=_0x69f567/0x2,_0xaa67e1=_0x330623-_0x2cb225,_0x1c03b7=_0x35e61a-_0x5f0934;_0x330623=_0x2cb225+_0xaa67e1*_0x3137f4-_0x1c03b7*_0x468980,_0x35e61a=_0x5f0934+_0xaa67e1*_0x468980+_0x1c03b7*_0x3137f4;}_0x330623+=_0x4ef54f,_0x35e61a+=_0x45b71a;let _0x33156e=_0x464774[_0x120e04(0x2d3)]/0xea60;_0x46b3bb&&(_0x33156e=0xb4-_0x33156e),_0x2458ab&&(_0x33156e=-_0x33156e),_0x33156e+=_0x13ddfe||0x0,_0x33156e=(_0x33156e%0x168+0x168)%0x168;let _0x54c507=(0x0,n['getBasicShapeRotateBound'])({'left':_0x4ef54f,'top':_0x45b71a,'width':_0x3cfbd0,'height':_0x69f567},_0x13ddfe||0x0);return{'point':{'x':_0x330623,'y':_0x35e61a},'angle':_0x33156e,'bounds':_0x54c507};}['_calculateFreeEndpointAngle'](_0x222088,_0x3da348){const _0x18e850=_0x29d1be;let _0x49369c=_0x3da348['x']-_0x222088['x'],_0x4041c4=_0x3da348['y']-_0x222088['y'];return Math[_0x18e850(0x302)](_0x49369c)>=Math[_0x18e850(0x302)](_0x4041c4)?_0x49369c>=0x0?0xb4:0x0:_0x4041c4>=0x0?0x10e:0x5a;}['_reset'](){const _0x45931e=_0x29d1be;this[_0x45931e(0x35c)]=void 0x0,this[_0x45931e(0x4a7)]=void 0x0,this[_0x45931e(0x51c)]=void 0x0,this[_0x45931e(0x2e7)]();}[_0x29d1be(0x361)](){const _0x21cdb4=_0x29d1be;this['_clearShapeConnectorHandlerObjects'](),super[_0x21cdb4(0x361)]();}};Ct=A([k(0x1,a[_0x29d1be(0x1ba)]),k(0x2,c[_0x29d1be(0x395)]),k(0x3,s[_0x29d1be(0x231)]),k(0x4,a[_0x29d1be(0x2c8)]),k(0x5,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)])),k(0x6,(0x0,a['Inject'])(M)),k(0x7,(0x0,a[_0x29d1be(0x3cc)])(K))],Ct);let J=class extends a[_0x29d1be(0x520)]{constructor(_0x21ed63,_0x3dfe20,_0x1b2a21){const _0x425592=_0x29d1be;super(),this[_0x425592(0x1d1)]=_0x21ed63,this[_0x425592(0x263)]=_0x3dfe20,this['_shapeRenderController']=_0x1b2a21,this[_0x425592(0x1c5)]();}['_initPrinting'](){const _0x429a72=_0x29d1be;this[_0x429a72(0x289)](this[_0x429a72(0x1d1)][_0x429a72(0x504)][_0x429a72(0x3f8)](this[_0x429a72(0x1d1)][_0x429a72(0x504)][_0x429a72(0x47f)]()[_0x429a72(0x3c3)],{'handler':(_0x4de352,_0x3e7f6d,_0x19b2c0)=>{const _0x4845d4=_0x429a72;var _0x1f3fc4;let {unitId:_0x1cc800,subUnitId:_0x5ac3b7,scene:_0x22885e,resourceCollector:_0x30ec91}=_0x3e7f6d,_0x24aa08=(_0x1f3fc4=this[_0x4845d4(0x263)][_0x4845d4(0x3b1)](_0x1cc800))==null?void 0x0:_0x1f3fc4[_0x5ac3b7];return _0x24aa08==null||_0x24aa08['order'][_0x4845d4(0x1dc)](_0x2a3ba2=>{const _0x4310b6=_0x4845d4;let _0x4709eb=_0x24aa08[_0x4310b6(0x424)][_0x2a3ba2];_0x4709eb[_0x4310b6(0x458)]===a[_0x4310b6(0x4e8)]['DRAWING_SHAPE']&&!_0x4709eb[_0x4310b6(0x45b)]&&this['_shapeRenderController'][_0x4310b6(0x246)](_0x4709eb,_0x22885e,{'resourceCollector':_0x30ec91});}),_0x19b2c0(_0x4de352);}}));}};J=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(l['SheetPrintInterceptorService'])),k(0x1,s[_0x29d1be(0x231)]),k(0x2,(0x0,a['Inject'])(j))],J);let Y=class extends a['Disposable']{constructor(_0x58bc00,_0x4cd0f8,_0x4003af){const _0x27f1e7=_0x29d1be;super(),this['_commandService']=_0x58bc00,this[_0x27f1e7(0x307)]=_0x4cd0f8,this[_0x27f1e7(0x396)]=_0x4003af,this[_0x27f1e7(0x283)]();}[_0x29d1be(0x283)](){const _0x388c95=_0x29d1be;this['disposeWithMe'](this[_0x388c95(0x36d)][_0x388c95(0x47d)](_0xcd452d=>{const _0x732fae=_0x388c95;let _0x1f0db1,_0x37e669;if(_0xcd452d['id']===i[_0x732fae(0x318)]['id']||_0xcd452d['id']===i[_0x732fae(0x2d1)]['id']||_0xcd452d['id']===i['UpdateConnectorRelationCommand']['id']){let _0x44682b=_0xcd452d['params'];_0x1f0db1=_0x44682b[_0x732fae(0x448)],_0x37e669=_0x44682b[_0x732fae(0x21d)];}_0x1f0db1&&_0x37e669&&(this[_0x732fae(0x396)][_0x732fae(0x46b)]({'workbookTypes':[o[_0x732fae(0x251)]],'worksheetTypes':[o[_0x732fae(0x363)]]},_0x1f0db1,_0x37e669)||this['_sheetPermissionCheckController'][_0x732fae(0x27e)](this[_0x732fae(0x307)]['t'](_0x732fae(0x296))));}));}};Y=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x1ba)])),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x223)])),k(0x2,(0x0,a['Inject'])(o[_0x29d1be(0x2d9)]))],Y);let X=class{constructor(_0x55582f){const _0x4d26fc=_0x29d1be;this[_0x4d26fc(0x399)]=_0x55582f;}[_0x29d1be(0x378)](_0x5e8f08,_0x53256b){const _0x4589c5=_0x29d1be;let _0x5e1930=this['_renderManagerService'][_0x4589c5(0x2e5)](_0x5e8f08[_0x4589c5(0x448)]),_0x27d27d=_0x5e1930==null?void 0x0:_0x5e1930[_0x4589c5(0x2ca)];if(!_0x27d27d)return;let _0x4eb1a8=(0x0,s[_0x4589c5(0x2f5)])(_0x5e8f08),_0x47c65b=_0x27d27d['getObjectIncludeInGroup'](_0x4eb1a8);_0x47c65b==null||_0x47c65b['setFillImage'](_0x53256b);}};X=A([k(0x0,c[_0x29d1be(0x395)])],X);let Z=class extends a[_0x29d1be(0x418)]{constructor(_0x51b996=lt,_0x127737,_0x20ee30,_0x50202a,_0x1a9c68){const _0x483894=_0x29d1be;super(),this['_config']=_0x51b996,this[_0x483894(0x22a)]=_0x127737,this[_0x483894(0x36d)]=_0x20ee30,this[_0x483894(0x3f2)]=_0x50202a,this[_0x483894(0x399)]=_0x1a9c68;let {..._0x1a3893}=(0x0,a['merge'])({},lt,this[_0x483894(0x1af)]);this[_0x483894(0x3f2)][_0x483894(0x382)](ct,_0x1a3893),this[_0x483894(0x343)]();}[_0x29d1be(0x1f2)](){const _0x490674=_0x29d1be;this[_0x490674(0x22a)][_0x490674(0x3a2)]([ht]),this[_0x490674(0x22a)][_0x490674(0x264)](ht),(0x0,a[_0x490674(0x2e1)])(this['_injector'],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onReady'](){const _0x38b83a=_0x29d1be;(0x0,a[_0x38b83a(0x2e1)])(this[_0x38b83a(0x22a)],[[K],[M],[q]]),(0x0,a[_0x38b83a(0x206)])(this[_0x38b83a(0x22a)],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x38b83a(0x1dc)](_0x19e5cd=>{const _0x4c22b6=_0x38b83a;this[_0x4c22b6(0x289)](this[_0x4c22b6(0x399)]['registerRenderModule'](a['UniverInstanceType'][_0x4c22b6(0x463)],_0x19e5cd));});}[_0x29d1be(0x1ed)](){const _0x1cbd9d=_0x29d1be;(0x0,a['touchDependencies'])(this[_0x1cbd9d(0x22a)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onSteady'](){const _0x1e0363=_0x29d1be;this[_0x1e0363(0x22a)][_0x1e0363(0x264)](U)['initShapePopupMenu']();}[_0x29d1be(0x343)](){const _0x1bbe18=_0x29d1be;[P,S,N,st][_0x1bbe18(0x1dc)](_0x581b95=>this[_0x1bbe18(0x289)](this['_commandService'][_0x1bbe18(0x430)](_0x581b95)));}};E(Z,_0x29d1be(0x2ff),a[_0x29d1be(0x42c)][_0x29d1be(0x463)]),E(Z,'pluginName',_0x29d1be(0x51a)),E(Z,_0x29d1be(0x1db),at),E(Z,'version',ot),Z=A([(0x0,a[_0x29d1be(0x49b)])(h[_0x29d1be(0x262)],g['UniverDocsPlugin'],s[_0x29d1be(0x1f3)],c['UniverRenderEnginePlugin'],o[_0x29d1be(0x202)],_['UniverDocsUIPlugin'],m[_0x29d1be(0x200)],r[_0x29d1be(0x352)],v[_0x29d1be(0x3b3)],i[_0x29d1be(0x406)],l[_0x29d1be(0x466)],e[_0x29d1be(0x329)],t['UniverMobileUIPlugin']),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x38f)])),k(0x2,a[_0x29d1be(0x1ba)]),k(0x3,a['IConfigService']),k(0x4,c[_0x29d1be(0x395)])],Z);const wt={'type':a['CommandType'][_0x29d1be(0x280)],'id':_0x29d1be(0x28a),'handler'(){return!0x0;}};function Tt(){const _0x31eb89=_0x29d1be;let _0x488a5b=(0x0,t['useDependency'])(s[_0x31eb89(0x231)]),_0xda9be6=(0x0,t[_0x31eb89(0x4c2)])(()=>_0x488a5b[_0x31eb89(0x32f)],_0x488a5b[_0x31eb89(0x2fd)](),!0x1,[_0x488a5b]);return _0xda9be6['length']===0x0?null:(0x0,p['jsx'])(_0x31eb89(0x247),{'children':(0x0,p['jsxs'])(_0x31eb89(0x247),{'className':_0x31eb89(0x2d4),'children':[(0x0,p[_0x31eb89(0x2cf)])(d[_0x31eb89(0x3ab)],{'drawings':_0xda9be6,'hasCropper':!0x1}),(0x0,p[_0x31eb89(0x2cf)])(v[_0x31eb89(0x1fe)],{'drawings':_0xda9be6})]})});}function Et(_0x44b9f9){const _0x30097b=_0x29d1be;let {unitId:_0x2ea0fd,subUnitId:_0x34f6ac,shapeId:_0x251b8d}=_0x44b9f9,_0x3a7a01=(0x0,t['useDependency'])(a[_0x30097b(0x1ba)]),_0x5a6952=(0x0,t[_0x30097b(0x439)])(X);return(0x0,p[_0x30097b(0x2cf)])(e[_0x30097b(0x1c0)],{..._0x44b9f9,'positionEditor':(0x0,p[_0x30097b(0x2cf)])(Tt,{}),'onUpdateShapeData':(_0x2865ce,_0x19ead)=>{C(_0x3a7a01,_0x2ea0fd,_0x34f6ac,_0x251b8d,_0x2865ce,_0x19ead);},'onUpdateLineShapeData':(_0x1867d6,_0x4e029d)=>{w(_0x3a7a01,_0x2ea0fd,_0x34f6ac,_0x251b8d,_0x1867d6,_0x4e029d);},'onUpdateShapeFillImage':_0x5b4112=>{const _0x2313ed=_0x30097b;_0x5a6952[_0x2313ed(0x378)]({'unitId':_0x2ea0fd,'subUnitId':_0x34f6ac,'drawingId':_0x251b8d},_0x5b4112);}});}function Dt(_0x230beb){const _0x432473=_0x29d1be;let _0xec7455=(0x0,t['useDependency'])(e[_0x432473(0x461)]),_0x727fed=(0x0,t[_0x432473(0x4c2)])(()=>_0xec7455[_0x432473(0x328)],_0xec7455[_0x432473(0x268)](),!0x1,[_0xec7455]),_0x51b3f7=_0x230beb[_0x432473(0x220)][_0x432473(0x523)];return!_0x51b3f7||!_0x727fed?null:(0x0,p['jsx'])(Ot,{..._0x51b3f7,'canvasElement':_0x230beb[_0x432473(0x220)][_0x432473(0x32a)]});}function Ot(_0x533035){const _0x4a94f8=_0x29d1be;let _0x4d9e2c=(0x0,t['useDependency'])(a[_0x4a94f8(0x1ba)]),_0x407dbc=(0x0,t[_0x4a94f8(0x439)])(i[_0x4a94f8(0x2c7)]),{unitId:_0x5d7586,subUnitId:_0x5c4320,drawingId:_0x5dba34,drawingType:_0x39cbeb,shapeType:_0x10d2c7}=_0x533035,[_0x268a08,_0x4614b3]=(0x0,b[_0x4a94f8(0x501)])(_0x533035[_0x4a94f8(0x456)]),_0x5a5d23=(0x0,b[_0x4a94f8(0x398)])(()=>(0x0,e[_0x4a94f8(0x45e)])(_0x268a08),[_0x268a08]),_0x229c79=(0x0,b[_0x4a94f8(0x398)])(()=>(0x0,e[_0x4a94f8(0x4fa)])(_0x268a08),[_0x268a08]);(0x0,b[_0x4a94f8(0x274)])(()=>{let _0x11bd5e=_0x4d9e2c['onCommandExecuted'](_0x49e103=>{const _0x4919dd=_0x6cf2;if(_0x49e103['id']!==i[_0x4919dd(0x1b2)]['id'])return;let _0x3ccf6d=_0x407dbc[_0x4919dd(0x385)](_0x5d7586,_0x5c4320,_0x5dba34);_0x3ccf6d&&_0x4614b3(_0x3ccf6d);});return()=>_0x11bd5e['dispose']();},[_0x4d9e2c,_0x5dba34,_0x407dbc,_0x5c4320,_0x5d7586]);let _0x4eeb1f=_0xd07a61=>{_0x4614b3(_0x3f322d=>({..._0x3f322d,..._0xd07a61}));},_0x9d0227=_0x3a0e07=>{const _0x205d9e=_0x4a94f8;let _0x4df4d6=(0x0,e[_0x205d9e(0x423)])(_0x268a08,_0x3a0e07);C(_0x4d9e2c,_0x5d7586,_0x5c4320,_0x5dba34,{'oldShapeData':{'shapeText':_0x268a08['shapeText']}},_0x4df4d6),_0x4eeb1f(_0x4df4d6);},_0x5c7095=(0x0,e[_0x4a94f8(0x2fb)])({'hostType':a[_0x4a94f8(0x42c)][_0x4a94f8(0x463)],'unitId':_0x5d7586,'subUnitId':_0x5c4320,'shapeId':_0x5dba34,'shapeData':_0x268a08,'onUpdateBinding':_0x1c53a4=>{const _0x485315=_0x4a94f8;let _0x3c6c9c={'formulaBinding':_0x1c53a4};C(_0x4d9e2c,_0x5d7586,_0x5c4320,_0x5dba34,{'oldShapeData':{'formulaBinding':_0x268a08[_0x485315(0x3e8)]}},_0x3c6c9c),_0x4eeb1f(_0x3c6c9c);}});return(0x0,p[_0x4a94f8(0x1a1)])(p['Fragment'],{'children':[(0x0,p[_0x4a94f8(0x2cf)])(e[_0x4a94f8(0x3e0)],{'canvasElement':_0x533035['canvasElement'],'shapeData':_0x268a08,'shapeType':_0x10d2c7,'textStyle':{'ff':n[_0x4a94f8(0x1d8)][_0x4a94f8(0x26a)]['fontFamily'],'fs':n[_0x4a94f8(0x1d8)][_0x4a94f8(0x26a)][_0x4a94f8(0x3b8)],'cl':{'rgb':n[_0x4a94f8(0x1d8)][_0x4a94f8(0x26a)]['color']},..._0x5a5d23},'textModel':_0x229c79?{'ha':_0x229c79['ha']??a[_0x4a94f8(0x474)][_0x4a94f8(0x479)],'va':_0x229c79['va']??a[_0x4a94f8(0x271)][_0x4a94f8(0x3ad)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x4a94f8(0x1d8)]['fill'],'defaultGradientEndColor':n['ShapeDefaultConfig']['gradientEndColor'],'defaultStrokeColor':n['ShapeDefaultConfig'][_0x4a94f8(0x1d7)],'extensionGroups':_0x5c7095['extensionGroups'],'floatingObjectToolbarPosition':t['FloatingObjectToolbarPosition']['SHEET'],'onUpdateShapeData':(_0x1f3b19,_0x2c4e9d)=>{C(_0x4d9e2c,_0x5d7586,_0x5c4320,_0x5dba34,_0x1f3b19,_0x2c4e9d),_0x2c4e9d&&_0x4eeb1f(_0x2c4e9d);},'onUpdateText':_0x9d0227,'onOpenPanel':()=>{const _0x2c7576=_0x4a94f8;_0x4d9e2c[_0x2c7576(0x1f6)](z['id'],{'unitId':_0x5d7586,'subUnitId':_0x5c4320,'drawingId':_0x5dba34});},'onDelete':()=>{const _0x54b6c2=_0x4a94f8;_0x4d9e2c[_0x54b6c2(0x1f6)](m[_0x54b6c2(0x260)]['id'],{'unitId':_0x5d7586,'drawings':[{'unitId':_0x5d7586,'subUnitId':_0x5c4320,'drawingId':_0x5dba34,'drawingType':_0x39cbeb}]});}}),_0x5c7095[_0x4a94f8(0x3f1)]]});}function kt(_0x144bae){const _0x4cda41=_0x29d1be;return!!_0x144bae&&_0x4cda41(0x327)in _0x144bae&&'sheetTransform'in _0x144bae;}const At=(0x0,b['memo'])(()=>{const _0x1fddda=_0x29d1be;let _0x5175c1=(0x0,t[_0x1fddda(0x439)])(H),_0x389bd3=(0x0,t[_0x1fddda(0x439)])(i['SheetsShapeService']),_0x89a7cc=(0x0,t[_0x1fddda(0x439)])(s[_0x1fddda(0x231)]),_0x4fe4d4=(0x0,t[_0x1fddda(0x439)])(a[_0x1fddda(0x1ba)]),_0x799070=(0x0,t[_0x1fddda(0x439)])(t[_0x1fddda(0x2cb)]),_0x3e39fc=(0x0,t['useDependency'])(c['IRenderManagerService']),_0x5153e8=(0x0,b['useMemo'])(()=>({'getShapeModel':(_0xfe7cb9,_0x319843,_0xabc2d3)=>_0x389bd3['getShapeModel'](_0xfe7cb9,_0x319843,_0xabc2d3),'getShapeData':(_0x5075f5,_0x5e36b0,_0x1875f9)=>_0x389bd3[_0x1fddda(0x385)](_0x5075f5,_0x5e36b0,_0x1875f9),'getDrawingTransform':(_0x21615b,_0x209895,_0x25093e)=>{const _0x2b4263=_0x1fddda;let _0x55c78a=_0x89a7cc[_0x2b4263(0x4c9)]({'unitId':_0x21615b,'subUnitId':_0x209895,'drawingId':_0x25093e});return _0x55c78a==null?void 0x0:_0x55c78a['transform'];},'updateShapeText':({unitId:_0x5dae79,subUnitId:_0x5ef5f7,shapeId:_0x1401db,shapeText:_0x5e767a,oldShapeText:_0x24aca2,hostSize:_0x463232})=>{const _0x16c9d6=_0x1fddda;_0x799070[_0x16c9d6(0x351)](_0x5dae79,()=>{const _0x308834=_0x16c9d6;var _0x14bc73;let _0x48cda4=_0x4fe4d4[_0x308834(0x1f5)](S['id'],{'unitId':_0x5dae79,'subUnitId':_0x5ef5f7,'shapeId':_0x1401db,'shapeData':{'shapeText':_0x5e767a},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x24aca2}}});if(!_0x48cda4||!_0x463232)return _0x48cda4;let _0x3d5cf6=_0x89a7cc['getDrawingByParam']({'unitId':_0x5dae79,'subUnitId':_0x5ef5f7,'drawingId':_0x1401db}),_0x58bba3=_0x3d5cf6==null?void 0x0:_0x3d5cf6[_0x308834(0x334)];if(!kt(_0x3d5cf6)||!_0x58bba3)return!0x1;let _0x5030f={..._0x58bba3,'width':_0x463232[_0x308834(0x2b0)],'height':_0x463232[_0x308834(0x1bb)]},_0x1e4e1b=(_0x14bc73=_0x3e39fc['getRenderUnitById'](_0x5dae79))==null||(_0x14bc73=_0x14bc73['with'](l[_0x308834(0x31b)])[_0x308834(0x3b0)](_0x5ef5f7))==null?void 0x0:_0x14bc73[_0x308834(0x3ff)];return _0x4fe4d4[_0x308834(0x1f5)](m[_0x308834(0x43a)]['id'],{'unitId':_0x5dae79,'drawings':[{..._0x3d5cf6,'transform':_0x5030f,'sheetTransform':_0x1e4e1b?(0x0,m['transformToDrawingPosition'])(_0x5030f,_0x1e4e1b)??_0x3d5cf6[_0x308834(0x294)]:_0x3d5cf6[_0x308834(0x294)],'axisAlignSheetTransform':_0x1e4e1b?(0x0,m[_0x308834(0x358)])(_0x5030f,_0x1e4e1b)??_0x3d5cf6['axisAlignSheetTransform']:_0x3d5cf6[_0x308834(0x327)]}]});});},'updateHostSize':({unitId:_0x4c781e,subUnitId:_0x620b8e,shapeId:_0x3c34a2,width:_0x2eb418,height:_0x21eaef})=>{const _0x5b1990=_0x1fddda;var _0x696778;let _0x53df68=_0x89a7cc[_0x5b1990(0x4c9)]({'unitId':_0x4c781e,'subUnitId':_0x620b8e,'drawingId':_0x3c34a2}),_0x198b8e=_0x53df68==null?void 0x0:_0x53df68[_0x5b1990(0x334)];if(!kt(_0x53df68)||!_0x198b8e)return;let _0x2bb986={..._0x198b8e,'width':_0x2eb418,'height':_0x21eaef},_0x1e3dd6=(_0x696778=_0x3e39fc[_0x5b1990(0x2e5)](_0x4c781e))==null||(_0x696778=_0x696778[_0x5b1990(0x4a1)](l['SheetSkeletonManagerService'])[_0x5b1990(0x3b0)](_0x620b8e))==null?void 0x0:_0x696778[_0x5b1990(0x3ff)],_0xbb0e69=_0x1e3dd6?(0x0,m[_0x5b1990(0x3d1)])(_0x2bb986,_0x1e3dd6)??_0x53df68[_0x5b1990(0x294)]:_0x53df68[_0x5b1990(0x294)],_0x502f4b=_0x1e3dd6?(0x0,m['transformToAxisAlignPosition'])(_0x2bb986,_0x1e3dd6)??_0x53df68[_0x5b1990(0x327)]:_0x53df68['axisAlignSheetTransform'];_0x4fe4d4[_0x5b1990(0x1f6)](m[_0x5b1990(0x43a)]['id'],{'unitId':_0x4c781e,'drawings':[{..._0x53df68,'transform':_0x2bb986,'sheetTransform':_0xbb0e69,'axisAlignSheetTransform':_0x502f4b}]});},'allowHostSizeShrink':({unitId:_0x30b2e8,subUnitId:_0x3d8479,shapeId:_0x5c9b6d})=>(0x0,e[_0x1fddda(0x370)])(_0x389bd3[_0x1fddda(0x385)](_0x30b2e8,_0x3d8479,_0x5c9b6d)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4fe4d4,_0x89a7cc,_0x3e39fc,_0x389bd3,_0x799070]),_0x452764=(0x0,b['useMemo'])(()=>({'viewportKeys':{'main':c[_0x1fddda(0x407)][_0x1fddda(0x255)],'leftTop':c['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT_TOP'],'top':c[_0x1fddda(0x407)][_0x1fddda(0x3ef)],'left':c[_0x1fddda(0x407)][_0x1fddda(0x477)]},'getSkeleton':(_0x323bc4,_0x27b55e)=>{const _0x5ec4a4=_0x1fddda;var _0x22e7d8;return((_0x22e7d8=_0x323bc4[_0x5ec4a4(0x4a1)](l['SheetSkeletonManagerService'])[_0x5ec4a4(0x3b0)](_0x27b55e['subUnitId']))==null?void 0x0:_0x22e7d8[_0x5ec4a4(0x3ff)])??null;}}),[]);return(0x0,p[_0x1fddda(0x2cf)])(e[_0x1fddda(0x4c3)],{'adapter':_0x5153e8,'editingService':_0x5175c1,'editorUnitId':re,'positionOptions':_0x452764});});let jt=class extends a[_0x29d1be(0x520)]{constructor(_0x3337cb,_0x50a575){const _0x1b5396=_0x29d1be;super(),this[_0x1b5396(0x346)]=_0x3337cb,this[_0x1b5396(0x2d8)]=_0x50a575,this[_0x1b5396(0x1ef)](),this[_0x1b5396(0x46f)]();}['_registerIcons'](){const _0x6dd0ea=_0x29d1be;this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x4ea)](_0x6dd0ea(0x4d1))||this['disposeWithMe'](this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x248)]({'ObjectLayersIcon':y[_0x6dd0ea(0x4d1)]})),this['_iconManager'][_0x6dd0ea(0x4ea)](_0x6dd0ea(0x390))||this[_0x6dd0ea(0x289)](this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x248)]({'FlipHorizontalIcon':y[_0x6dd0ea(0x390)]})),this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x4ea)](_0x6dd0ea(0x21a))||this[_0x6dd0ea(0x289)](this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x248)]({'FlipVerticalIcon':y[_0x6dd0ea(0x21a)]})),this['_iconManager'][_0x6dd0ea(0x4ea)]('BottomIcon')||this['disposeWithMe'](this['_iconManager']['register']({'BottomIcon':y[_0x6dd0ea(0x29b)]})),this[_0x6dd0ea(0x2d8)]['has']('MoveDownIcon')||this[_0x6dd0ea(0x289)](this['_iconManager'][_0x6dd0ea(0x248)]({'MoveDownIcon':y[_0x6dd0ea(0x4ff)]})),this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x4ea)]('MoveUpIcon')||this[_0x6dd0ea(0x289)](this[_0x6dd0ea(0x2d8)]['register']({'MoveUpIcon':y['MoveUpIcon']})),this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x4ea)](_0x6dd0ea(0x381))||this[_0x6dd0ea(0x289)](this['_iconManager'][_0x6dd0ea(0x248)]({'ShapeFormatSettingIcon':y[_0x6dd0ea(0x381)]})),this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x4ea)]('TopmostIcon')||this[_0x6dd0ea(0x289)](this[_0x6dd0ea(0x2d8)][_0x6dd0ea(0x248)]({'TopmostIcon':y[_0x6dd0ea(0x379)]}));}[_0x29d1be(0x46f)](){const _0x4e9fa6=_0x29d1be;this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](F,Et)),this['disposeWithMe'](this['_componentManager'][_0x4e9fa6(0x248)](I,pt)),this['disposeWithMe'](this['_componentManager'][_0x4e9fa6(0x248)](le,he)),this['disposeWithMe'](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](ue,fe)),this[_0x4e9fa6(0x346)]['hasDefault'](d[_0x4e9fa6(0x2fc)])||this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],me)),this[_0x4e9fa6(0x289)](this['_componentManager'][_0x4e9fa6(0x248)](L,Dt)),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)]['register'](Ee,Ae)),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](Te,je)),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)]['register'](De,Me)),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](Oe,Ne)),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](ie,e[_0x4e9fa6(0x36e)])),this[_0x4e9fa6(0x289)](this[_0x4e9fa6(0x346)][_0x4e9fa6(0x248)](_0x4e9fa6(0x229),At));}};jt=A([k(0x0,(0x0,a[_0x29d1be(0x3cc)])(t[_0x29d1be(0x2ea)])),k(0x1,(0x0,a['Inject'])(t[_0x29d1be(0x221)]))],jt);let Mt=class extends a[_0x29d1be(0x520)]{constructor(_0x8d7d4f,_0x34ff80,_0x3f9345,_0x41ca7e,_0x4a44e5,_0x20873c,_0x4f1b5e,_0x3d75b5,_0x1f5d14){const _0x592c05=_0x29d1be;super();let _0x106763=_0x116985=>{const _0x421ada=_0x6cf2;var _0x5d6d71,_0x1d0882;return(((_0x5d6d71=_0x3d75b5[_0x421ada(0x488)](new o[(_0x421ada(0x251))](_0x116985[_0x421ada(0x448)])['id']))==null?void 0x0:_0x5d6d71['value'])??!0x0)&&(((_0x1d0882=_0x3d75b5[_0x421ada(0x488)](new o[(_0x421ada(0x363))](_0x116985[_0x421ada(0x448)],_0x116985[_0x421ada(0x21d)])['id']))==null?void 0x0:_0x1d0882[_0x421ada(0x37f)])??!0x0);},_0x4d1be4=_0x3cb6ec=>_0x3cb6ec[_0x592c05(0x1cf)]&&_0x106763(_0x3cb6ec)?_0x3f9345['getShapeDataById'](_0x3cb6ec[_0x592c05(0x448)],_0x3cb6ec[_0x592c05(0x21d)],_0x3cb6ec[_0x592c05(0x1cf)])??null:null,_0x32d94b=()=>{const _0x217e14=_0x592c05;let _0x98a525=_0x4a44e5[_0x217e14(0x2fd)](),_0x121a1b=_0x98a525[_0x217e14(0x1d6)]===0x1?_0x98a525[0x0]:null;return(_0x121a1b==null?void 0x0:_0x121a1b['drawingType'])===a['DrawingTypeEnum'][_0x217e14(0x41d)]&&_0x121a1b[_0x217e14(0x448)]===_0x8d7d4f[_0x217e14(0x448)]?{'unitId':_0x121a1b['unitId'],'subUnitId':_0x121a1b['subUnitId'],'shapeId':_0x121a1b['drawingId']}:null;};this[_0x592c05(0x289)]((0x0,e[_0x592c05(0x3e6)])(_0x8d7d4f,_0x34ff80,{'changes$':(0x0,u[_0x592c05(0x1d3)])(_0x4a44e5[_0x592c05(0x32f)],_0x41ca7e[_0x592c05(0x4eb)],_0x3d75b5['permissionPointUpdate$']),'isActive':()=>{const _0x11fc15=_0x592c05;var _0x2f1564;return((_0x2f1564=_0x20873c['getFocusedUnit']())==null?void 0x0:_0x2f1564[_0x11fc15(0x1b1)]())===_0x8d7d4f[_0x11fc15(0x448)]&&!_0x4f1b5e[_0x11fc15(0x4a9)](a[_0x11fc15(0x4e3)])&&_0x4a44e5[_0x11fc15(0x2fd)]()[_0x11fc15(0x2b4)](_0x43c3a2=>_0x43c3a2[_0x11fc15(0x448)]===_0x8d7d4f['unitId']);},'getSelectedTarget':_0x32d94b,'getSource':()=>{let _0x2328d5=_0x32d94b();return _0x2328d5?_0x4d1be4(_0x2328d5):null;},'getTarget':_0x26fe6e=>{const _0x1a8d12=_0x592c05;let _0x3242b1=_0x8d7d4f['scene']['pick'](new c[(_0x1a8d12(0x3a6))](_0x26fe6e[_0x1a8d12(0x217)],_0x26fe6e[_0x1a8d12(0x377)]));if(!(_0x3242b1 instanceof D))return null;let _0x9bd73f={'unitId':_0x8d7d4f[_0x1a8d12(0x448)],'subUnitId':_0x3242b1[_0x1a8d12(0x21d)],'shapeId':_0x3242b1[_0x1a8d12(0x1cf)]};return _0x106763(_0x9bd73f)?_0x9bd73f:null;},'getShape':_0x4d1be4,'update':(_0x257dea,_0x1f9ccd,_0x2128e2)=>_0x1f5d14[_0x592c05(0x1f6)](S['id'],{..._0x257dea,'shapeData':_0x2128e2,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x1f9ccd}})}));}};Mt=A([k(0x1,(0x0,a[_0x29d1be(0x3cc)])(t[_0x29d1be(0x3a7)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)])),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(H)),k(0x4,s['IDrawingManagerService']),k(0x5,a['IUniverInstanceService']),k(0x6,a[_0x29d1be(0x465)]),k(0x7,a['IPermissionService']),k(0x8,a[_0x29d1be(0x1ba)])],Mt);const Nt='sheets-shape-contextual-ribbon';let Pt=class extends a[_0x29d1be(0x520)]{constructor(_0x5cb010,_0x34c5e0,_0x26c58c,_0x5d8799,_0x55a1c7,_0x16ad46){const _0x4e4487=_0x29d1be;super(),this[_0x4e4487(0x3a0)]=_0x5cb010,this[_0x4e4487(0x2d5)]=_0x34c5e0,this['_drawingManagerService']=_0x26c58c,this[_0x4e4487(0x3d3)]=_0x5d8799,this[_0x4e4487(0x399)]=_0x55a1c7,this[_0x4e4487(0x2a7)]=_0x16ad46,E(this,_0x4e4487(0x51d),!0x1),this['_menuManagerService'][_0x4e4487(0x311)](nt),this[_0x4e4487(0x289)]((0x0,a['toDisposable'])(this[_0x4e4487(0x263)][_0x4e4487(0x32f)]['subscribe'](()=>this[_0x4e4487(0x26c)]()))),this[_0x4e4487(0x26c)]();}[_0x29d1be(0x361)](){const _0xea6d1f=_0x29d1be;this[_0xea6d1f(0x2a7)][_0xea6d1f(0x2b5)](!0x1,Nt),this[_0xea6d1f(0x3af)](),super[_0xea6d1f(0x361)]();}[_0x29d1be(0x26c)](){const _0x2b76d7=_0x29d1be;var _0x6bc13f;let _0x2d7888=this[_0x2b76d7(0x263)][_0x2b76d7(0x2fd)](),_0x10c5c5=_0x2d7888['length']===0x1?_0x2d7888[0x0]:void 0x0;if((_0x10c5c5==null?void 0x0:_0x10c5c5[_0x2b76d7(0x458)])!==a[_0x2b76d7(0x4e8)]['DRAWING_SHAPE']||this[_0x2b76d7(0x3d3)][_0x2b76d7(0x317)](_0x10c5c5[_0x2b76d7(0x448)])!==a['UniverInstanceType']['UNIVER_SHEET']){this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,Nt),this[_0x2b76d7(0x3af)]();return;}let _0x1f8544=(_0x6bc13f=this['_renderManagerService']['getRenderUnitById'](_0x10c5c5['unitId']))==null?void 0x0:_0x6bc13f[_0x2b76d7(0x20f)][_0x2b76d7(0x408)](),_0x33a73e=(0x0,e[_0x2b76d7(0x330)])(_0x1f8544)==='isolated';this['_shapeFloatingToolbarService'][_0x2b76d7(0x2b5)](_0x33a73e,Nt),_0x33a73e?this[_0x2b76d7(0x3af)]():this[_0x2b76d7(0x51d)]||(this[_0x2b76d7(0x51d)]=!0x0,this['_ribbonService'][_0x2b76d7(0x1b7)](R,{'activate':!0x0}));}[_0x29d1be(0x3af)](){const _0x200691=_0x29d1be;this['_visible']&&(this['_visible']=!0x1,this['_ribbonService'][_0x200691(0x1b9)](R),this[_0x200691(0x2d5)][_0x200691(0x3c0)]([]));}};Pt=A([k(0x0,t[_0x29d1be(0x4e0)]),k(0x1,t[_0x29d1be(0x20b)]),k(0x2,s[_0x29d1be(0x231)]),k(0x3,a[_0x29d1be(0x2c8)]),k(0x4,c[_0x29d1be(0x395)]),k(0x5,(0x0,a[_0x29d1be(0x3cc)])(e[_0x29d1be(0x461)]))],Pt);let Ft=class extends e[_0x29d1be(0x313)]{constructor(_0x358de2,_0x18a6a2,_0x4b3d28,_0x1bea9c,_0x681d4e,_0x3d7a80,_0x362470,_0x186d2a,_0x478cdc,_0x287a41){super(_0x358de2,_0x18a6a2,_0x4b3d28,_0x1bea9c,_0x681d4e,_0x3d7a80,_0x362470,_0x186d2a,_0x478cdc,_0x287a41,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a[_0x29d1be(0x3cc)])(g[_0x29d1be(0x310)])),k(0x2,(0x0,a[_0x29d1be(0x3cc)])(_[_0x29d1be(0x4a6)])),k(0x3,(0x0,a['Inject'])(_[_0x29d1be(0x2d2)])),k(0x4,a[_0x29d1be(0x1ba)]),k(0x5,(0x0,a[_0x29d1be(0x3cc)])(_[_0x29d1be(0x2b1)])),k(0x6,(0x0,a['Inject'])(e[_0x29d1be(0x24a)])),k(0x7,(0x0,a[_0x29d1be(0x3cc)])(g[_0x29d1be(0x2ae)])),k(0x8,(0x0,a[_0x29d1be(0x3cc)])(_[_0x29d1be(0x2cd)])),k(0x9,(0x0,a[_0x29d1be(0x3cc)])(H))],Ft);let It=class extends e[_0x29d1be(0x3aa)]{constructor(_0x565f39,_0x151495,_0x46972a,_0x33f71e,_0x1e6853){const _0x1fee6b=_0x29d1be;super(_0x565f39,_0x151495,{'editing$':_0x46972a['editingParams$'],'resolve':_0x54163f=>{const _0x4ae5f8=_0x6cf2;var _0x14dfe7,_0x249e44,_0x1f7eab;let _0x558c02=new c[(_0x4ae5f8(0x3a6))](_0x54163f['offsetX'],_0x54163f['offsetY']),_0x290d0a=((_0x14dfe7=_0x565f39[_0x4ae5f8(0x2ca)][_0x4ae5f8(0x3f5)](_0x558c02))==null?void 0x0:_0x14dfe7['transformVector2SceneCoord'](_0x558c02))??_0x558c02,_0x138e97=(0x0,e['resolveShapeTextHyperLinkObject'])(_0x565f39['scene'][_0x4ae5f8(0x4c1)](_0x558c02)??null,_0x290d0a);if(!(_0x138e97 instanceof D))return null;let _0x362abc=_0x138e97[_0x4ae5f8(0x4fb)](_0x290d0a);if(!_0x362abc)return null;let _0x56afac=_0x138e97,_0x5776e4={'componentKey':e[_0x4ae5f8(0x3a9)][_0x4ae5f8(0x2e2)],'direction':_0x4ae5f8(0x241),'offset':[0x0,0xa],'onClickOutside':()=>_0x151495[_0x4ae5f8(0x4c4)]()};return{'object':_0x138e97,'info':{..._0x362abc,'unitId':_0x138e97[_0x4ae5f8(0x448)],'subUnitId':_0x138e97['subUnitId'],'shapeKey':_0x138e97[_0x4ae5f8(0x2b7)],'readonly':!0x0,'copyable':((_0x249e44=_0x1e6853['getPermissionPoint'](new o[(_0x4ae5f8(0x4a0))](_0x138e97[_0x4ae5f8(0x448)])['id']))==null?void 0x0:_0x249e44['value'])!==!0x1&&((_0x1f7eab=_0x1e6853[_0x4ae5f8(0x488)](new o[(_0x4ae5f8(0x23c))](_0x138e97['unitId'],_0x138e97[_0x4ae5f8(0x21d)])['id']))==null?void 0x0:_0x1f7eab[_0x4ae5f8(0x37f)])!==!0x1},'attachPopup':()=>_0x33f71e['attachPopupToObject'](_0x56afac,_0x5776e4)};}}),this['disposeWithMe'](_0x565f39[_0x1fee6b(0x21b)][_0x1fee6b(0x41c)][_0x1fee6b(0x39c)](()=>this[_0x1fee6b(0x245)]()));}};It=A([k(0x1,(0x0,a[_0x29d1be(0x3cc)])(e[_0x29d1be(0x24a)])),k(0x2,(0x0,a['Inject'])(H)),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(l[_0x29d1be(0x321)])),k(0x4,a[_0x29d1be(0x227)])],It);let Q=class extends a['Disposable']{constructor(_0x24ee02,_0x3c295c,_0x545aec,_0x1ce850,_0x507e2c,_0x4f7d01,_0x33558e,_0x447055,_0x1ecee3,_0x3d0eac,_0x5202ab){const _0x27aac6=_0x29d1be;super(),this[_0x27aac6(0x3d3)]=_0x24ee02,this[_0x27aac6(0x22d)]=_0x3c295c,this[_0x27aac6(0x3a0)]=_0x545aec,this[_0x27aac6(0x1a8)]=_0x1ce850,this['_localeService']=_0x507e2c,this[_0x27aac6(0x36d)]=_0x4f7d01,this['_drawingManagerService']=_0x33558e,this[_0x27aac6(0x4ca)]=_0x447055,this['_contextService']=_0x1ecee3,this['_renderManagerService']=_0x3d0eac,this[_0x27aac6(0x29a)]=_0x5202ab,E(this,_0x27aac6(0x339),null),E(this,'_activeShapeInfo',null),E(this,'_isOpenedShapeEditPanel',!0x1),E(this,_0x27aac6(0x44d),0x0),E(this,_0x27aac6(0x278),null),E(this,_0x27aac6(0x30c),[]),this[_0x27aac6(0x2ac)](),this[_0x27aac6(0x289)](this[_0x27aac6(0x3d3)][_0x27aac6(0x19e)](a[_0x27aac6(0x42c)]['UNIVER_SHEET'])[_0x27aac6(0x39c)](_0x58c3ac=>{const _0x26021f=_0x27aac6;if(!_0x58c3ac){var _0x3d11ae;(_0x3d11ae=this[_0x26021f(0x339)])==null||_0x3d11ae[_0x26021f(0x361)]();}})),this[_0x27aac6(0x3ee)](),this[_0x27aac6(0x35f)](),this[_0x27aac6(0x289)](this[_0x27aac6(0x29a)][_0x27aac6(0x4eb)]['subscribe'](_0x551926=>{const _0x2afacd=_0x27aac6;_0x551926&&this[_0x2afacd(0x1a5)]();}));}[_0x29d1be(0x2ac)](){const _0x265bd0=_0x29d1be;this[_0x265bd0(0x3a0)]['mergeMenu'](it);}[_0x29d1be(0x35f)](){const _0x526564=_0x29d1be;this[_0x526564(0x278)]||=this['disposeWithMe']((0x0,e[_0x526564(0x491)])(this['_renderManagerService'],a['UniverInstanceType'][_0x526564(0x463)],_0x11e419=>this[_0x526564(0x22e)](_0x11e419)));}[_0x29d1be(0x49c)](_0x4692bf,_0x3315f3,_0x292c6f){const _0xf52e41=_0x29d1be;let _0x1f64ce=this[_0xf52e41(0x1a8)][_0xf52e41(0x414)](_0x4692bf,_0x3315f3,_0x292c6f),_0x1ac002=this[_0xf52e41(0x1a8)][_0xf52e41(0x385)](_0x4692bf,_0x3315f3,_0x292c6f);return _0x1f64ce!==void 0x0&&_0x1ac002!==void 0x0?{'shapeData':_0x1ac002,'shapeId':_0x292c6f,'shapeType':_0x1f64ce,'unitId':_0x4692bf,'subUnitId':_0x3315f3,'version':this[_0xf52e41(0x44d)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x317553=_0x29d1be;this['_disposePopups'][_0x317553(0x1dc)](_0x1b1e94=>_0x1b1e94[_0x317553(0x361)]()),this[_0x317553(0x30c)][_0x317553(0x1d6)]=0x0;}[_0x29d1be(0x22e)](_0x64ced9){const _0x5b2642=_0x29d1be;let _0xae5c69=new a[(_0x5b2642(0x46c))]();return _0xae5c69[_0x5b2642(0x3a2)](_0x64ced9['createControl$'][_0x5b2642(0x39c)](()=>{const _0x20fc66=_0x5b2642;let _0x38541d=_0x64ced9['getSelectedObjectMap']();if(this[_0x20fc66(0x1a5)](),this['_isOpenedShapeEditPanel']||_0x38541d[_0x20fc66(0x2fe)]>0x1)return;let _0x57fa2b=_0x38541d[_0x20fc66(0x4bc)]()[_0x20fc66(0x3f7)]()['value'];if(!_0x57fa2b)return;let _0x55c23b=this['_drawingManagerService']['getDrawingOKey'](_0x57fa2b[_0x20fc66(0x2b7)]);if(!_0x55c23b||_0x55c23b[_0x20fc66(0x458)]!==a[_0x20fc66(0x4e8)]['DRAWING_SHAPE'])return;let {unitId:_0x50be23,subUnitId:_0x1a9300,drawingId:_0x21ad42,drawingType:_0x1f673e}=_0x55c23b,_0x1765dd=this[_0x20fc66(0x49c)](_0x50be23,_0x1a9300,_0x21ad42);if(!_0x1765dd)return;this[_0x20fc66(0x22b)][_0x20fc66(0x33a)](a[_0x20fc66(0x214)],!0x0);let _0x47c7a5=this['_renderManagerService']['getRenderUnitById'](_0x50be23),_0x998bfb=((_0x47c7a5==null?void 0x0:_0x47c7a5[_0x20fc66(0x469)])===!0x1?_0x47c7a5[_0x20fc66(0x4a1)](l['SheetCanvasPopManagerService']):this['_sheetCanvasPopManagerService'])['attachPopupToObject'](_0x57fa2b,{'componentKey':L,'direction':_0x20fc66(0x319),'offset':[0x0,e[_0x20fc66(0x1f9)]],'extraProps':{'unitId':_0x50be23,'subUnitId':_0x1a9300,'drawingId':_0x21ad42,'drawingType':_0x1f673e,'shapeType':_0x1765dd[_0x20fc66(0x4b2)],'shapeData':_0x1765dd['shapeData']}});this['_disposePopups'][_0x20fc66(0x25c)](this[_0x20fc66(0x289)](_0x998bfb)),this[_0x20fc66(0x263)][_0x20fc66(0x2fd)]()[_0x20fc66(0x432)](_0x43d802=>_0x43d802[_0x20fc66(0x448)]===_0x50be23&&_0x43d802['subUnitId']===_0x1a9300&&_0x43d802[_0x20fc66(0x1e6)]===_0x21ad42)||this[_0x20fc66(0x263)][_0x20fc66(0x322)]([{'unitId':_0x50be23,'subUnitId':_0x1a9300,'drawingId':_0x21ad42}]);})),_0xae5c69['add'](_0x64ced9[_0x5b2642(0x29d)][_0x5b2642(0x39c)](()=>{const _0x3af942=_0x5b2642;this[_0x3af942(0x1a5)](),this['_contextService'][_0x3af942(0x33a)](a[_0x3af942(0x214)],!0x1),this[_0x3af942(0x263)][_0x3af942(0x322)](null);})),_0xae5c69[_0x5b2642(0x3a2)](_0x64ced9['changing$'][_0x5b2642(0x39c)](()=>{const _0x419d8e=_0x5b2642;this[_0x419d8e(0x1a5)]();})),_0xae5c69[_0x5b2642(0x3a2)](_0x64ced9[_0x5b2642(0x40e)]['subscribe'](()=>{const _0x5331f0=_0x5b2642;this[_0x5331f0(0x1a5)]();})),(0x0,a[_0x5b2642(0x3dd)])(()=>{const _0x4369f8=_0x5b2642;_0xae5c69[_0x4369f8(0x361)](),this[_0x4369f8(0x1a5)]();});}['_registerOperations'](){const _0x1b7576=_0x29d1be;this['disposeWithMe'](this[_0x1b7576(0x36d)]['onCommandExecuted'](_0x2e9c24=>{const _0x59f72e=_0x1b7576;if(_0x2e9c24['id']===z['id']){let {unitId:_0x34623c,subUnitId:_0x59fa1c,drawingId:_0x35d8b3}=_0x2e9c24[_0x59f72e(0x45d)];this['_shapeEditPanelVersion']+=0x1,this[_0x59f72e(0x43e)]=this['_getShapeInfo'](_0x34623c,_0x59fa1c,_0x35d8b3),this[_0x59f72e(0x1a5)](),this[_0x59f72e(0x35e)]();}if(_0x2e9c24['id']===wt['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x2e9c24['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4a71cc,subUnitId:_0x590a1e,shapeId:_0x30b287}=_0x2e9c24[_0x59f72e(0x45d)];if(this[_0x59f72e(0x43e)]&&this[_0x59f72e(0x43e)]['shapeId']===_0x30b287){let _0x45d5d0=this[_0x59f72e(0x49c)](_0x4a71cc,_0x590a1e,_0x30b287);_0x45d5d0&&(this['_shapeEditPanelVersion']+=0x1,_0x45d5d0[_0x59f72e(0x253)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x45d5d0,this[_0x59f72e(0x412)]&&this[_0x59f72e(0x35e)]());}}})),this[_0x1b7576(0x289)](this['_drawingManagerService'][_0x1b7576(0x32f)][_0x1b7576(0x39c)](_0x36fb23=>{const _0x3bc4ae=_0x1b7576;if(this[_0x3bc4ae(0x412)]===!0x1)return;if(_0x36fb23[_0x3bc4ae(0x1d6)]===0x0){this['_activeShapeInfo']=null,this[_0x3bc4ae(0x239)]();return;}if(_0x36fb23[_0x3bc4ae(0x1d6)]===0x1&&_0x36fb23[0x0]['drawingType']===a[_0x3bc4ae(0x4e8)]['DRAWING_SHAPE']&&(this[_0x3bc4ae(0x44d)]+=0x1,this[_0x3bc4ae(0x43e)]=this['_getShapeInfo'](_0x36fb23[0x0][_0x3bc4ae(0x448)],_0x36fb23[0x0]['subUnitId'],_0x36fb23[0x0][_0x3bc4ae(0x1e6)]),this[_0x3bc4ae(0x43e)])){this['_openShapeEditPanel']();return;}let _0x30076b=_0x36fb23[_0x3bc4ae(0x332)](_0x113878=>_0x113878[_0x3bc4ae(0x458)]===a['DrawingTypeEnum'][_0x3bc4ae(0x41d)]);if(_0x36fb23['length']>0x1&&_0x30076b[_0x3bc4ae(0x1d6)]===_0x36fb23['length']){if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x36fb23[0x0][_0x3bc4ae(0x448)],_0x36fb23[0x0][_0x3bc4ae(0x21d)],_0x36fb23[0x0][_0x3bc4ae(0x1e6)]),this[_0x3bc4ae(0x43e)]){this[_0x3bc4ae(0x35e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x3bc4ae(0x43e)]=this[_0x3bc4ae(0x49c)](_0x36fb23[0x0][_0x3bc4ae(0x448)],_0x36fb23[0x0][_0x3bc4ae(0x21d)],_0x36fb23[0x0][_0x3bc4ae(0x1e6)]),this['_activeShapeInfo']){this[_0x3bc4ae(0x43e)][_0x3bc4ae(0x2e9)]=!0x0,this[_0x3bc4ae(0x35e)]();return;}}this[_0x3bc4ae(0x239)]();}));}['_openShapeEditPanel'](){const _0x1662af=_0x29d1be;this[_0x1662af(0x43e)]&&(this['_sidebarDisposable']=this['_sidebarService']['open']({'id':F,'header':{'title':this[_0x1662af(0x307)]['t'](_0x1662af(0x2c1))},'width':0x184,'children':{'label':F,...this[_0x1662af(0x43e)]},'onClose':()=>{const _0x2fb7b4=_0x1662af;this[_0x2fb7b4(0x263)][_0x2fb7b4(0x322)](null),this[_0x2fb7b4(0x22b)][_0x2fb7b4(0x33a)](a[_0x2fb7b4(0x214)],!0x1),this[_0x2fb7b4(0x339)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x29d1be(0x239)](){const _0x3e68f3=_0x29d1be;this[_0x3e68f3(0x412)]=!0x1,this['_sidebarService'][_0x3e68f3(0x39d)](F),this[_0x3e68f3(0x339)]=null,this[_0x3e68f3(0x22b)][_0x3e68f3(0x33a)](a[_0x3e68f3(0x214)],!0x1),this[_0x3e68f3(0x263)][_0x3e68f3(0x322)](null);}};Q=A([k(0x0,a[_0x29d1be(0x2c8)]),k(0x1,(0x0,a['Inject'])(t[_0x29d1be(0x204)])),k(0x2,t[_0x29d1be(0x4e0)]),k(0x3,(0x0,a[_0x29d1be(0x3cc)])(i[_0x29d1be(0x2c7)])),k(0x4,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x223)])),k(0x5,a[_0x29d1be(0x1ba)]),k(0x6,s[_0x29d1be(0x231)]),k(0x7,(0x0,a['Inject'])(l[_0x29d1be(0x321)])),k(0x8,a[_0x29d1be(0x465)]),k(0x9,c[_0x29d1be(0x395)]),k(0xa,(0x0,a[_0x29d1be(0x3cc)])(H))],Q);let $=class extends a[_0x29d1be(0x418)]{constructor(_0x39513f=lt,_0x50e080,_0x292878,_0x15d23f,_0x811762){const _0x2a1204=_0x29d1be;super(),this['_config']=_0x39513f,this[_0x2a1204(0x22a)]=_0x50e080,this['_commandService']=_0x292878,this[_0x2a1204(0x3f2)]=_0x15d23f,this['_renderManagerService']=_0x811762;let {..._0x53623f}=(0x0,a[_0x2a1204(0x1d3)])({},lt,this[_0x2a1204(0x1af)]);this[_0x2a1204(0x3f2)][_0x2a1204(0x382)](ct,_0x53623f),this[_0x2a1204(0x343)]();}[_0x29d1be(0x1ed)](){const _0x398986=_0x29d1be;this[_0x398986(0x399)][_0x398986(0x2dd)](a[_0x398986(0x42c)][_0x398986(0x3fd)],[Ft]),(0x0,a['touchDependencies'])(this[_0x398986(0x22a)],[[Q],[G],[j],[J]]);}['onSteady'](){const _0x2e319a=_0x29d1be;this['_injector'][_0x2e319a(0x264)](Q)[_0x2e319a(0x35f)]();}[_0x29d1be(0x42b)](){const _0x314fa0=_0x29d1be;[[K],[M],[q]]['forEach'](_0x5b96d0=>this[_0x314fa0(0x22a)][_0x314fa0(0x3a2)](_0x5b96d0)),(0x0,a[_0x314fa0(0x206)])(this[_0x314fa0(0x22a)],[[q],[M]]),this['_renderManagerService'][_0x314fa0(0x2dd)](a[_0x314fa0(0x42c)][_0x314fa0(0x463)],[K]),this[_0x314fa0(0x399)]['registerRenderModule'](a['UniverInstanceType'][_0x314fa0(0x463)],[ut]),this[_0x314fa0(0x399)]['registerRenderModule'](a['UniverInstanceType'][_0x314fa0(0x463)],[Ct]),this['_renderManagerService']['registerRenderModule'](a[_0x314fa0(0x42c)][_0x314fa0(0x463)],[gt]),this[_0x314fa0(0x289)](this[_0x314fa0(0x399)][_0x314fa0(0x2dd)](a[_0x314fa0(0x42c)][_0x314fa0(0x463)],[It])),this[_0x314fa0(0x289)](this[_0x314fa0(0x399)][_0x314fa0(0x2dd)](a[_0x314fa0(0x42c)]['UNIVER_SHEET'],[Mt]));}[_0x29d1be(0x1f2)](){const _0x502131=_0x29d1be;this[_0x502131(0x22a)][_0x502131(0x3a2)]([jt]),this[_0x502131(0x22a)][_0x502131(0x264)](jt);let _0x28e6fe=this[_0x502131(0x22a)];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x502131(0x1dc)](_0x4c9593=>_0x28e6fe[_0x502131(0x3a2)](_0x4c9593)),(0x0,a[_0x502131(0x206)])(this['_injector'],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}[_0x29d1be(0x343)](){const _0x309e6c=_0x29d1be;[P,S,wt,z,ae,N,se,ce][_0x309e6c(0x1dc)](_0x51a273=>this['disposeWithMe'](this[_0x309e6c(0x36d)][_0x309e6c(0x430)](_0x51a273)));}};E($,'type',a[_0x29d1be(0x42c)][_0x29d1be(0x463)]),E($,_0x29d1be(0x293),_0x29d1be(0x51a)),E($,'packageName',at),E($,_0x29d1be(0x253),ot),$=A([(0x0,a[_0x29d1be(0x49b)])(h[_0x29d1be(0x262)],g[_0x29d1be(0x226)],s['UniverDrawingPlugin'],d[_0x29d1be(0x37b)],c['UniverRenderEnginePlugin'],o[_0x29d1be(0x202)],_['UniverDocsUIPlugin'],m[_0x29d1be(0x200)],r[_0x29d1be(0x352)],v[_0x29d1be(0x47b)],i[_0x29d1be(0x406)],l['UniverSheetsUIPlugin'],e[_0x29d1be(0x228)]),k(0x1,(0x0,a[_0x29d1be(0x3cc)])(a[_0x29d1be(0x38f)])),k(0x2,a['ICommandService']),k(0x3,a[_0x29d1be(0x420)]),k(0x4,c[_0x29d1be(0x395)])],$),exports[_0x29d1be(0x28e)]=nt,exports[_0x29d1be(0x1d0)]=it,Object[_0x29d1be(0x31f)](exports,'UniverSheetsShapeMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x29d1be(0x31f)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x5e988f=_0x2dd2;(function(_0x1927c6,_0x2d655b){const _0x3ecaee=_0x2dd2,_0x33c76=_0x1927c6();while(!![]){try{const _0x1bfad0=-parseInt(_0x3ecaee(0x373))/0x1*(parseInt(_0x3ecaee(0x434))/0x2)+parseInt(_0x3ecaee(0x178))/0x3*(parseInt(_0x3ecaee(0x48b))/0x4)+parseInt(_0x3ecaee(0x4a2))/0x5+-parseInt(_0x3ecaee(0x319))/0x6+-parseInt(_0x3ecaee(0x3c8))/0x7*(parseInt(_0x3ecaee(0x24d))/0x8)+parseInt(_0x3ecaee(0x4ae))/0x9*(parseInt(_0x3ecaee(0x32f))/0xa)+-parseInt(_0x3ecaee(0x333))/0xb*(-parseInt(_0x3ecaee(0x2ee))/0xc);if(_0x1bfad0===_0x2d655b)break;else _0x33c76['push'](_0x33c76['shift']());}catch(_0x25121b){_0x33c76['push'](_0x33c76['shift']());}}}(_0x1e9a,0xa879e),Object[_0x5e988f(0x200)](exports,Symbol[_0x5e988f(0x423)],{'value':_0x5e988f(0x287)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0x2e13e6,_0x4a6848){const _0x117510=_0x5e988f;let _0x5207ba={};for(let _0x555de9 of Object['keys'](_0x4a6848)){let _0x56eb75=_0x4a6848[_0x555de9],_0x36863b=_0x2e13e6[_0x555de9];_0x5207ba[_0x555de9]=_0x36863b===void 0x0?void 0x0:typeof _0x56eb75==_0x117510(0x2e0)&&_0x56eb75&&!Array[_0x117510(0x4d4)](_0x56eb75)&&typeof _0x36863b==_0x117510(0x2e0)&&_0x36863b&&!Array[_0x117510(0x4d4)](_0x36863b)?x(_0x36863b,_0x56eb75):_0x36863b;}return _0x5207ba;}const S={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'id':_0x5e988f(0x2a6),'handler':(_0x52afcd,_0x38efd0)=>{const _0x492a7a=_0x5e988f;let _0x4e135e=_0x52afcd['get'](i[_0x492a7a(0x44c)]),{unitId:_0x1cccef,subUnitId:_0x469f37,shapeType:_0x4d4553,shapeId:_0x4f377e,shapeData:_0x25240c,replaceShapeData:_0x306892,oldShapeJSON:_0x140c1f}=_0x38efd0;if(!_0x4e135e[_0x492a7a(0x2c6)](_0x1cccef,_0x469f37,_0x4f377e))return!0x1;let _0x104c32=_0x52afcd[_0x492a7a(0x329)](a[_0x492a7a(0x32c)]),_0x38c096=_0x52afcd[_0x492a7a(0x329)](a['IUndoRedoService']),{oldShapeType:_0x12b7e3,oldShapeData:_0x93dc8={}}=_0x140c1f,_0x40b9db=_0x306892?_0x93dc8:x(_0x93dc8,_0x25240c||{}),_0x4e988f={'id':i[_0x492a7a(0x17c)]['id'],'params':{'unitId':_0x1cccef,'subUnitId':_0x469f37,'shapeId':_0x4f377e,'shapeType':_0x4d4553,'shapeData':_0x25240c,'replace':_0x306892}},_0x2189f9={'id':i['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x1cccef,'subUnitId':_0x469f37,'shapeId':_0x4f377e,'shapeType':_0x12b7e3,'shapeData':_0x40b9db,'replace':_0x306892}};return _0x104c32['syncExecuteCommand'](_0x4e988f['id'],_0x4e988f['params'])?(_0x38c096[_0x492a7a(0x1f1)]({'unitID':_0x1cccef,'undoMutations':[_0x2189f9],'redoMutations':[_0x4e988f]}),!0x0):!0x1;}};function C(_0x17b3a5,_0x5643bc,_0x4f8370,_0x90285b,_0x588933,_0x3c523b){const _0x3b83b5=_0x5e988f;let _0x554747={'unitId':_0x5643bc,'subUnitId':_0x4f8370,'shapeId':_0x90285b,'shapeData':_0x3c523b,'oldShapeJSON':_0x588933};return _0x17b3a5[_0x3b83b5(0x32b)](S['id'],_0x554747);}function w(_0x4e1edf,_0x5ce6b3,_0x29df01,_0x2c0098,_0x4176cb,_0x3cf745){const _0x49b10f=_0x5e988f;let _0x5703ce={'unitId':_0x5ce6b3,'subUnitId':_0x29df01,'shapeId':_0x2c0098,'shapeData':_0x3cf745,'oldShapeJSON':_0x4176cb};return _0x4e1edf[_0x49b10f(0x32b)](S['id'],_0x5703ce);}function T(_0x3e337f){'@babel/helpers - typeof';const _0x177394=_0x5e988f;return T=typeof Symbol=='function'&&typeof Symbol[_0x177394(0x1df)]==_0x177394(0x2c8)?function(_0x992431){return typeof _0x992431;}:function(_0xcef0a6){const _0x51ada5=_0x177394;return _0xcef0a6&&typeof Symbol==_0x51ada5(0x2f8)&&_0xcef0a6['constructor']===Symbol&&_0xcef0a6!==Symbol[_0x51ada5(0x36a)]?_0x51ada5(0x2c8):typeof _0xcef0a6;},T(_0x3e337f);}function ee(_0x448d6e,_0x4cf612){const _0x42c6fa=_0x5e988f;if(T(_0x448d6e)!='object'||!_0x448d6e)return _0x448d6e;var _0x56b7c6=_0x448d6e[Symbol['toPrimitive']];if(_0x56b7c6!==void 0x0){var _0x2fae1f=_0x56b7c6['call'](_0x448d6e,_0x4cf612||_0x42c6fa(0x244));if(T(_0x2fae1f)!=_0x42c6fa(0x2e0))return _0x2fae1f;throw TypeError(_0x42c6fa(0x2a9));}return(_0x4cf612==='string'?String:Number)(_0x448d6e);}function te(_0x5f5712){const _0x51ed9f=_0x5e988f;var _0x1b434a=ee(_0x5f5712,'string');return T(_0x1b434a)==_0x51ed9f(0x2c8)?_0x1b434a:_0x1b434a+'';}function E(_0x12a3b0,_0x8cf1b2,_0x3244bc){const _0xdf66=_0x5e988f;return(_0x8cf1b2=te(_0x8cf1b2))in _0x12a3b0?Object[_0xdf66(0x200)](_0x12a3b0,_0x8cf1b2,{'value':_0x3244bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12a3b0[_0x8cf1b2]=_0x3244bc,_0x12a3b0;}function ne(_0x1f9dad,_0x8901d4,_0x5d59a3){const _0x2d089d=_0x5e988f;let _0x379324={..._0x8901d4,'dataModel':{..._0x8901d4[_0x2d089d(0x42f)]??{},..._0x5d59a3?{'doc':_0x5d59a3}:null}},_0x2098be=(0x0,e[_0x2d089d(0x375)])(_0x1f9dad,_0x379324),_0x204a5a=(0x0,e['resolveShapeTextEditorWrapStrategy'])(_0x2098be);return{'clip':(0x0,e[_0x2d089d(0x193)])(_0x2098be,_0x204a5a),'wrapStrategy':_0x204a5a};}var D=class extends c['Shape']{constructor(_0xef715b,_0x2db621){const _0x5d3a31=_0x5e988f;super(_0xef715b,_0x2db621),E(this,_0x5d3a31(0x3e6),[]),E(this,_0x5d3a31(0x389),void 0x0),E(this,_0x5d3a31(0x337),new e[(_0x5d3a31(0x4b7))](()=>this[_0x5d3a31(0x213)](!0x0),()=>this[_0x5d3a31(0x2b2)]())),E(this,_0x5d3a31(0x3ad),!0x0),E(this,'_drawingType',a[_0x5d3a31(0x181)][_0x5d3a31(0x1d7)]),E(this,_0x5d3a31(0x392),!0x0),this[_0x5d3a31(0x389)]={..._0x2db621},this[_0x5d3a31(0x337)][_0x5d3a31(0x3ef)](_0x2db621[_0x5d3a31(0x2d8)],_0x2db621[_0x5d3a31(0x26c)]!==!0x1),this[_0x5d3a31(0x4b4)](),this[_0x5d3a31(0x2b2)]();}[_0x5e988f(0x4b4)](){const _0x1fcc80=_0x5e988f;this[_0x1fcc80(0x163)][_0x1fcc80(0x194)](_0x14f1c5=>{this['_updateSrcRectByTransform'](_0x14f1c5);});}[_0x5e988f(0x481)](_0x10936e){const _0x2c34bd=_0x5e988f;this[_0x2c34bd(0x389)][_0x2c34bd(0x395)]=_0x10936e;}[_0x5e988f(0x487)](_0x3c4ed8){const _0x1da5af=_0x5e988f;if(this['_props'][_0x1da5af(0x253)])return null;let _0x6310f2=this[_0x1da5af(0x473)](_0x3c4ed8),{width:_0x3ab14f,height:_0x230987}=this[_0x1da5af(0x27a)]();return(0x0,e[_0x1da5af(0x4db)])(this[_0x1da5af(0x3e6)],{'x':(this['flipX']?-_0x6310f2['x']:_0x6310f2['x'])+_0x3ab14f/0x2,'y':_0x6310f2['y']+_0x230987/0x2});}['setEditing'](_0x1b35b6){const _0x5e21a1=_0x5e988f;this[_0x5e21a1(0x389)][_0x5e21a1(0x253)]=_0x1b35b6,this['makeDirty'](!0x0);}[_0x5e988f(0x2b1)](_0x37880a,_0x4769df=!0x0){const _0x5efafc=_0x5e988f;this[_0x5efafc(0x337)][_0x5efafc(0x3ef)](_0x37880a,_0x4769df),this['_props'][_0x5efafc(0x2d8)]=_0x37880a,this[_0x5efafc(0x2b2)](),this[_0x5efafc(0x213)](!0x0);}[_0x5e988f(0x2b2)](){const _0xd7c3c3=_0x5e988f;let _0xfd5e7d=this[_0xd7c3c3(0x389)][_0xd7c3c3(0x1f3)],_0x59276d=_0xfd5e7d[_0xd7c3c3(0x4b9)](),_0x307e80=(0x0,e['normalizeShapeTextModel'])(_0x59276d==null?void 0x0:_0x59276d['dataModel']),_0x8e645d=_0x307e80==null?void 0x0:_0x307e80[_0xd7c3c3(0x4af)],_0x27d779=this[_0xd7c3c3(0x337)][_0xd7c3c3(0x4c2)]();if(!_0x8e645d||_0x27d779[_0xd7c3c3(0x2b6)]===0x0)return;_0xfd5e7d[_0xd7c3c3(0x162)]({'width':this[_0xd7c3c3(0x254)],'height':this[_0xd7c3c3(0x457)]});let _0x4c855f=(0x0,e[_0xd7c3c3(0x169)])({'documentData':_0x27d779[_0xd7c3c3(0x4a5)](_0x37a001=>(0x0,r[_0xd7c3c3(0x1cb)])(_0x8e645d,_0x37a001)),'height':this[_0xd7c3c3(0x457)],'shapeData':_0xfd5e7d[_0xd7c3c3(0x2e3)](),'textRect':_0xfd5e7d[_0xd7c3c3(0x270)]({'left':0x0,'top':0x0,'width':this[_0xd7c3c3(0x254)],'height':this[_0xd7c3c3(0x457)]}),'width':this['width']});if(_0x4c855f){var _0x3cbd3a;this[_0xd7c3c3(0x31c)](_0x4c855f[_0xd7c3c3(0x254)],_0x4c855f[_0xd7c3c3(0x457)]),(_0x3cbd3a=this[_0xd7c3c3(0x1ed)]())==null||(_0x3cbd3a=_0x3cbd3a['getTransformer']())==null||_0x3cbd3a['debounceRefreshControls']();}}get[_0x5e988f(0x346)](){const _0x1408b7=_0x5e988f;return this[_0x1408b7(0x389)][_0x1408b7(0x346)];}get[_0x5e988f(0x369)](){const _0x1042a1=_0x5e988f;return this[_0x1042a1(0x389)][_0x1042a1(0x369)];}[_0x5e988f(0x440)](_0x17684c){const _0xec82c=_0x5e988f;if(this[_0xec82c(0x389)][_0xec82c(0x47f)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x8a1d5,height:_0x5bff32}=this,{width:_0x7a0ab6=0x0,height:_0x219db8=0x0}=_0x17684c[_0xec82c(0x1e3)],{left:_0x31665b=0x0,top:_0x58791e=0x0,right:_0x364f58=0x0,bottom:_0xf892e=0x0}=this['_props'][_0xec82c(0x47f)],_0x516916=_0x31665b,_0x5badb7=_0x58791e,_0xb751c8=_0x364f58,_0x2bb483=_0xf892e,_0x199723=!0x1;if(_0x7a0ab6!==0x0&&_0x7a0ab6!==_0x8a1d5){let _0x10d462=_0x31665b/_0x7a0ab6,_0x269448=_0x364f58/_0x7a0ab6;_0x516916=_0x8a1d5*_0x10d462,_0xb751c8=_0x8a1d5*_0x269448,_0x199723=!0x0;}if(_0x219db8!==0x0&&_0x219db8!==_0x5bff32){let _0x25f303=_0x58791e/_0x219db8,_0x3e917a=_0xf892e/_0x219db8;_0x5badb7=_0x5bff32*_0x25f303,_0x2bb483=_0x5bff32*_0x3e917a,_0x199723=!0x0;}_0x199723&&this['setSrcRect']({'left':_0x516916,'top':_0x5badb7,'right':_0xb751c8,'bottom':_0x2bb483});}[_0x5e988f(0x170)](_0x440a49){const _0x4cb4b5=_0x5e988f;this[_0x4cb4b5(0x389)]['srcRect']=_0x440a49,this[_0x4cb4b5(0x213)](!0x0);}[_0x5e988f(0x2b3)](_0x33c601){const _0x46b23a=_0x5e988f;this[_0x46b23a(0x389)][_0x46b23a(0x3c2)]=_0x33c601,this[_0x46b23a(0x213)](!0x0);}set['transform'](_0x160e47){this['_transform']=_0x160e47;}get[_0x5e988f(0x2fd)](){const _0x46e764=_0x5e988f;this[_0x46e764(0x15a)]||this['_setTransForm']();let _0x1dc4c7=this[_0x46e764(0x15a)][_0x46e764(0x1e8)]();return this[_0x46e764(0x358)](_0x1dc4c7);}get[_0x5e988f(0x1f3)](){const _0x3a0f71=_0x5e988f;return this[_0x3a0f71(0x389)]['shapeModel'];}get[_0x5e988f(0x3cd)](){const _0x2ac9a9=_0x5e988f;return this[_0x2ac9a9(0x389)][_0x2ac9a9(0x3cd)];}get[_0x5e988f(0x187)](){const _0x493451=_0x5e988f;return c[_0x493451(0x40b)][_0x493451(0x4a4)];}[_0x5e988f(0x22c)](_0x362aa3,_0x4ba8ea,_0x598587,_0x3870b6){const _0x417eea=_0x5e988f;let _0xc42833=this[_0x417eea(0x389)][_0x417eea(0x1f3)];if(!_0xc42833||!_0x4ba8ea)return;let _0x188cbf=_0x598587??this['width'],_0x27b17a=_0x3870b6??this[_0x417eea(0x457)],_0x39268e={'shapeType':_0xc42833['getShapeType'](),'width':_0x188cbf,'height':_0x27b17a},_0x2d4283={'renderMode':n['ShapeRenderModeEnum']['Path'],'oKey':this[_0x417eea(0x4de)],'image':this[_0x417eea(0x389)][_0x417eea(0x3c2)],'angle':this[_0x417eea(0x1d9)]};_0xc42833[_0x417eea(0x162)](_0x39268e),_0x362aa3[_0x417eea(0x1a1)]();let _0x30762f={'top':0x0,'left':0x0,'width':_0x188cbf,'height':_0x27b17a},_0x5beb47=_0xc42833[_0x417eea(0x3e7)](_0x30762f);_0x5beb47?this[_0x417eea(0x284)](_0x362aa3,_0x5beb47,_0x44361f=>{const _0x4a57fa=_0x417eea;_0xc42833[_0x4a57fa(0x387)](_0x44361f,_0x30762f,_0x2d4283);}):(this[_0x417eea(0x43a)](),_0xc42833[_0x417eea(0x387)](_0x362aa3,_0x30762f,_0x2d4283)),_0x362aa3[_0x417eea(0x327)]();let _0x43bb6a=_0xc42833[_0x417eea(0x4b9)](),_0x357e5c=_0xc42833[_0x417eea(0x270)](_0x30762f),_0x4f1b9a=_0xc42833[_0x417eea(0x1c0)]();if(_0x43bb6a&&_0x357e5c&&!_0x4f1b9a){_0x362aa3[_0x417eea(0x1a1)](),this[_0x417eea(0x1ee)]()[_0x417eea(0x174)]&&_0x362aa3[_0x417eea(0x2bc)](-0x1,0x1);let _0x2a9445=_0x188cbf/0x2,_0x22aec1=_0x27b17a/0x2;_0x362aa3[_0x417eea(0x39e)](-_0x2a9445,-_0x22aec1),_0x362aa3['beginPath'](),this[_0x417eea(0x293)](_0x362aa3,_0x43bb6a,_0x357e5c),_0x362aa3[_0x417eea(0x327)]();}}[_0x5e988f(0x2c4)](_0xcff805){}[_0x5e988f(0x293)](_0x7fbd5,_0x10e423,_0x78b049){const _0x321578=_0x5e988f;var _0x13f507;this[_0x321578(0x3e6)]=[],this[_0x321578(0x389)]['isEditing']||(!((_0x13f507=_0x10e423[_0x321578(0x42f)])!=null&&_0x13f507[_0x321578(0x4af)])&&_0x321578(0x4f6)in _0x10e423&&_0x10e423[_0x321578(0x4f6)]===!0x1?this[_0x321578(0x2f0)](_0x7fbd5,_0x10e423,_0x78b049):this[_0x321578(0x3ba)](_0x7fbd5,_0x10e423,_0x78b049));}[_0x5e988f(0x2f0)](_0x49d129,_0x4167ba,_0x50d2ea){const _0x12ea39=_0x5e988f;this['_drawRichText'](_0x49d129,{..._0x4167ba,'text':_0x4167ba[_0x12ea39(0x3eb)]??'','dataModel':{'doc':(0x0,e['plainShapeTextToDocumentData'])(_0x4167ba,_0x12ea39(0x4a8)+this[_0x12ea39(0x4de)])}},_0x50d2ea);}[_0x5e988f(0x3ba)](_0x263d9d,_0x2b239e,_0x48455e){const _0x1d30b1=_0x5e988f;(0x0,e[_0x1d30b1(0x37b)])(_0x263d9d,this[_0x1d30b1(0x337)],(_0x47d0e4,_0x4b72a9,_0x250c09)=>{const _0x37af19=_0x1d30b1;this[_0x37af19(0x18c)](_0x47d0e4,_0x2b239e,_0x48455e,_0x4b72a9,_0x250c09===_0x37af19(0x38b));});}[_0x5e988f(0x18c)](_0xa3cdcc,_0x626439,_0x433250,_0x2a0ab0,_0x5c80bf){const _0x241fc5=_0x5e988f;let _0x2785af=this['_props'][_0x241fc5(0x3a2)];if(!_0x626439['dataModel']||!_0x2785af)return;let _0x52fd01=(0x0,e[_0x241fc5(0x1dd)])(_0x626439['dataModel']);if(!_0x52fd01)return;let _0x3cd1dd=_0x52fd01[_0x241fc5(0x4af)];if(!_0x3cd1dd)return;let _0x1061e0=(0x0,r[_0x241fc5(0x1cb)])(_0x3cd1dd,_0x2a0ab0),_0x5038a9=_0x52fd01['va']??a[_0x241fc5(0x4f3)][_0x241fc5(0x436)],_0x2f5211=_0x52fd01['ha']??a[_0x241fc5(0x412)][_0x241fc5(0x275)],_0x12ba4b=ne(this[_0x241fc5(0x389)][_0x241fc5(0x1f3)][_0x241fc5(0x2e3)](),_0x626439,_0x1061e0),_0x4bcf1e=_0x626439['isHorizontal'],_0x15d1ca=(0x0,e['prepareShapeTextDocumentData'])(_0x1061e0,{'isHorizontal':_0x4bcf1e!==!0x1,'textRect':_0x433250,'verticalAlign':_0x5038a9,'horizontalAlign':_0x2f5211,'wrapStrategy':_0x12ba4b[_0x241fc5(0x32a)]}),_0x2d1c7b=new a[(_0x241fc5(0x1c3))](_0x15d1ca),_0x290a6f=new c[(_0x241fc5(0x380))](_0x2d1c7b),_0x2daa30=c[_0x241fc5(0x2d5)][_0x241fc5(0x4f4)](_0x290a6f,_0x2785af);_0x2daa30['calculate']();let _0x3fb207=_0x2daa30[_0x241fc5(0x4be)]()[_0x241fc5(0x3f5)],_0x2a7920=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x3fb207,'verticalAlign':_0x5038a9,'viewportHeight':_0x433250[_0x241fc5(0x457)]});_0x2d1c7b['updateDocumentStyle']({'pageSize':{'width':_0x4bcf1e===!0x1?_0x433250[_0x241fc5(0x457)]:_0x433250[_0x241fc5(0x254)],'height':(0x0,e[_0x241fc5(0x165)])(_0x1061e0,_0x2a7920[_0x241fc5(0x475)])}}),_0x2d1c7b[_0x241fc5(0x2c0)]({'t':_0x2a7920[_0x241fc5(0x40a)]}),_0x2daa30[_0x241fc5(0x2ae)]();let _0x58263d=new c[(_0x241fc5(0x26b))](_0x241fc5(0x2a3)+this[_0x241fc5(0x4de)],_0x2daa30,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x241fc5(0x213)](!0x0)});_0x58263d[_0x241fc5(0x31c)](_0x433250[_0x241fc5(0x254)],_0x2a7920['contentHeight']),_0xa3cdcc[_0x241fc5(0x1a1)](),_0xa3cdcc[_0x241fc5(0x1dc)](_0x433250[_0x241fc5(0x3d8)],_0x433250[_0x241fc5(0x480)]),_0x12ba4b[_0x241fc5(0x235)]&&(_0xa3cdcc[_0x241fc5(0x1f6)](),_0xa3cdcc[_0x241fc5(0x368)](0x0,_0x2a7920[_0x241fc5(0x4d9)],_0x433250[_0x241fc5(0x254)],_0x2a7920[_0x241fc5(0x264)]),_0xa3cdcc[_0x241fc5(0x235)]()),_0x2a7920['contentVerticalOffset']&&_0xa3cdcc[_0x241fc5(0x1dc)](0x0,_0x2a7920[_0x241fc5(0x31b)]),_0x58263d['draw'](_0xa3cdcc),_0x5c80bf&&(this['_hyperLinkRegions']=(0x0,e[_0x241fc5(0x400)])(_0x58263d,{'left':_0x433250['left'],'top':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x31b)]},_0x12ba4b[_0x241fc5(0x235)]?{'left':_0x433250[_0x241fc5(0x3d8)],'right':_0x433250[_0x241fc5(0x3d8)]+_0x433250[_0x241fc5(0x254)],'top':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x4d9)],'bottom':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x4d9)]+_0x2a7920[_0x241fc5(0x264)]}:void 0x0)),_0xa3cdcc[_0x241fc5(0x327)](),_0x58263d[_0x241fc5(0x4c1)](),_0x2daa30[_0x241fc5(0x4c1)](),_0x290a6f[_0x241fc5(0x4c1)](),_0x2d1c7b['dispose']();}[_0x5e988f(0x387)](_0x1b223b,_0x4d5980,_0x35aca9=!0x1){const _0x1738ce=_0x5e988f;if(!this[_0x1738ce(0x29c)])return this[_0x1738ce(0x213)](!0x1),this;let {width:_0xb545d3,height:_0xc5b85a,left:_0x86a264,top:_0x504895}=this,_0x4bc1c1=this[_0x1738ce(0x27a)]();if(_0xb545d3=_0x4bc1c1[_0x1738ce(0x254)],_0xc5b85a=_0x4bc1c1[_0x1738ce(0x457)],_0x86a264=_0x4bc1c1[_0x1738ce(0x3d8)],_0x504895=_0x4bc1c1['top'],this[_0x1738ce(0x3fb)](_0x4d5980)){let {top:_0x1aed1f,left:_0x5e97b0,bottom:_0x4c3d3a,right:_0x1aba0b}=_0x4d5980[_0x1738ce(0x277)];if(_0xb545d3+this[_0x1738ce(0x2b4)]+_0x86a264<_0x5e97b0||_0x1aba0b<_0x86a264||_0xc5b85a+this[_0x1738ce(0x2b4)]+_0x504895<_0x1aed1f||_0x4c3d3a<_0x504895)return this;}let _0x3f3075=_0x86a264+_0xb545d3/0x2,_0x5988c8=_0x504895+_0xc5b85a/0x2,_0xeaef22=this[_0x1738ce(0x2fd)][_0x1738ce(0x326)]();if(this['_props']['isEditing']){let _0xd9a9a8=this['getState'](),_0x3a5251=new c['Transform']();_0x3a5251[_0x1738ce(0x419)]({..._0xd9a9a8}),_0xeaef22=_0x3a5251[_0x1738ce(0x326)]();}return _0x1b223b[_0x1738ce(0x1a1)](),this[_0x1738ce(0x389)][_0x1738ce(0x1f3)][_0x1738ce(0x491)]===!0x0||_0x1b223b[_0x1738ce(0x2fd)](_0xeaef22[0x0],_0xeaef22[0x1],_0xeaef22[0x2],_0xeaef22[0x3],_0x3f3075,_0x5988c8),this[_0x1738ce(0x22c)](_0x1b223b,_0x4d5980,_0xb545d3,_0xc5b85a),_0x1b223b[_0x1738ce(0x327)](),this[_0x1738ce(0x213)](!0x1),this;}[_0x5e988f(0x473)](_0x4308d0){const _0x3f5c26=_0x5e988f;let {left:_0x5e4047,top:_0x196767,width:_0x4cb68d,height:_0x3a973b}=this[_0x3f5c26(0x27a)](),_0x7feeb7=this[_0x3f5c26(0x2fd)]['getMatrix'](),_0x18be4a=_0x5e4047+_0x4cb68d/0x2,_0x4824c5=_0x196767+_0x3a973b/0x2,_0x3c9d1b=new c[(_0x3f5c26(0x4e5))]([_0x7feeb7[0x0],_0x7feeb7[0x1],_0x7feeb7[0x2],_0x7feeb7[0x3],_0x18be4a,_0x4824c5]),_0x2094b8=this[_0x3f5c26(0x2c9)]();return(this['isInGroup']&&(_0x2094b8==null?void 0x0:_0x2094b8[_0x3f5c26(0x187)])===c['RENDER_CLASS_TYPE'][_0x3f5c26(0x43b)]?_0x2094b8[_0x3f5c26(0x173)]['multiply'](_0x3c9d1b):_0x3c9d1b)[_0x3f5c26(0x437)]()['applyPoint'](_0x4308d0);}['isHit'](_0x3fb77e){const _0x305df9=_0x5e988f;let {left:_0x107aee,top:_0x12765f,width:_0x1b941d,height:_0x2031fd}=this[_0x305df9(0x27a)](),_0x1e9825=_0x107aee+_0x1b941d/0x2,_0x227007=_0x12765f+_0x2031fd/0x2,_0x21ad47=this['transform'][_0x305df9(0x326)](),_0x4492d8=new c[(_0x305df9(0x4e5))]([_0x21ad47[0x0],_0x21ad47[0x1],_0x21ad47[0x2],_0x21ad47[0x3],_0x1e9825,_0x227007]),_0x9afbcc=this[_0x305df9(0x2c9)](),_0x2c66a1=(this[_0x305df9(0x31d)]&&(_0x9afbcc==null?void 0x0:_0x9afbcc['classType'])===c[_0x305df9(0x40b)][_0x305df9(0x43b)]?_0x9afbcc[_0x305df9(0x173)][_0x305df9(0x44f)](_0x4492d8):_0x4492d8)[_0x305df9(0x437)]()[_0x305df9(0x42b)](_0x3fb77e),_0x3c436d=_0x1b941d/0x2,_0x5b7545=_0x2031fd/0x2,_0xc4daf9=this[_0x305df9(0x389)][_0x305df9(0x1f3)];return _0xc4daf9&&_0xc4daf9[_0x305df9(0x1c0)]()?_0xc4daf9[_0x305df9(0x41a)](_0x2c66a1['x'],_0x2c66a1['y'],_0x1b941d,_0x2031fd):_0x2c66a1['x']>=-_0x3c436d-this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['x']<=_0x3c436d+this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['y']>=-_0x5b7545-this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['y']<=_0x5b7545+this['strokeWidth']/0x2;}[_0x5e988f(0x4c1)](){const _0x510c91=_0x5e988f;this[_0x510c91(0x337)][_0x510c91(0x4c1)](),this['_props'][_0x510c91(0x1f3)]=null,super[_0x510c91(0x4c1)]();}},O=class extends c[_0x5e988f(0x28e)]{constructor(_0x501872,_0x279111){const _0x316bb8=_0x5e988f;super(_0x501872,_0x279111),E(this,_0x316bb8(0x447),null),E(this,_0x316bb8(0x17b),null),E(this,'_unitId',null),E(this,_0x316bb8(0x363),null),_0x279111&&this[_0x316bb8(0x27b)](_0x279111);}['getDrawingSearch'](){const _0x34ddab=_0x5e988f;return{'unitId':this[_0x34ddab(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x34ddab(0x447)]};}['setShapeProps'](_0x5b1177){const _0x2dbd73=_0x5e988f;_0x5b1177[_0x2dbd73(0x3cd)]!==void 0x0&&(this[_0x2dbd73(0x447)]=_0x5b1177[_0x2dbd73(0x3cd)]),_0x5b1177['adjName']!==void 0x0&&(this[_0x2dbd73(0x17b)]=_0x5b1177[_0x2dbd73(0x1fe)]),_0x5b1177[_0x2dbd73(0x346)]!==void 0x0&&(this[_0x2dbd73(0x308)]=_0x5b1177[_0x2dbd73(0x346)]),_0x5b1177[_0x2dbd73(0x369)]!==void 0x0&&(this['_subUnitId']=_0x5b1177[_0x2dbd73(0x369)]),this[_0x2dbd73(0x49b)]({'width':_0x5b1177[_0x2dbd73(0x254)],'height':_0x5b1177[_0x2dbd73(0x457)]});}[_0x5e988f(0x22c)](_0x4ef216){const _0x3a5574=_0x5e988f;c[_0x3a5574(0x1c8)][_0x3a5574(0x370)](_0x4ef216,{'radius':n['ShapeDefaultConfig'][_0x3a5574(0x214)],'fill':n[_0x3a5574(0x291)]['adjHandleFill'],'stroke':n[_0x3a5574(0x291)][_0x3a5574(0x17e)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x3dc546,_0x1a0363){return function(_0x375422,_0x5cf52a){_0x1a0363(_0x375422,_0x5cf52a,_0x3dc546);};}function A(_0x105b93,_0x5355c0,_0x1f10a6,_0x5cd436){const _0xd41221=_0x5e988f;var _0x1235b8=arguments['length'],_0x3a57a4=_0x1235b8<0x3?_0x5355c0:_0x5cd436===null?_0x5cd436=Object['getOwnPropertyDescriptor'](_0x5355c0,_0x1f10a6):_0x5cd436,_0x5159c7;if(typeof Reflect==_0xd41221(0x2e0)&&typeof Reflect[_0xd41221(0x445)]==_0xd41221(0x2f8))_0x3a57a4=Reflect[_0xd41221(0x445)](_0x105b93,_0x5355c0,_0x1f10a6,_0x5cd436);else{for(var _0x424477=_0x105b93['length']-0x1;_0x424477>=0x0;_0x424477--)(_0x5159c7=_0x105b93[_0x424477])&&(_0x3a57a4=(_0x1235b8<0x3?_0x5159c7(_0x3a57a4):_0x1235b8>0x3?_0x5159c7(_0x5355c0,_0x1f10a6,_0x3a57a4):_0x5159c7(_0x5355c0,_0x1f10a6))||_0x3a57a4);}return _0x1235b8>0x3&&_0x3a57a4&&Object[_0xd41221(0x200)](_0x5355c0,_0x1f10a6,_0x3a57a4),_0x3a57a4;}let j=class extends a[_0x5e988f(0x302)]{constructor(_0x2a00d6,_0x5b2126,_0x14f6a1,_0x4c6358,_0x138814,_0x4e255d){const _0x59f015=_0x5e988f;super(),this['_drawingManagerService']=_0x2a00d6,this[_0x59f015(0x4d2)]=_0x5b2126,this[_0x59f015(0x1fb)]=_0x14f6a1,this['_imageIoService']=_0x4c6358,this[_0x59f015(0x1ec)]=_0x138814,this[_0x59f015(0x20b)]=_0x4e255d,E(this,_0x59f015(0x260),new Map()),this[_0x59f015(0x36f)](this[_0x59f015(0x20b)][_0x59f015(0x41d)][_0x59f015(0x24c)](_0x544ccd=>{const _0x3544d5=_0x59f015;var _0x5ef2ac;(_0x5ef2ac=this[_0x3544d5(0x260)]['get'](this['_formulaKey'](_0x544ccd[_0x3544d5(0x346)],_0x544ccd[_0x3544d5(0x369)],_0x544ccd[_0x3544d5(0x3cd)])))==null||_0x5ef2ac['forEach'](_0x5f1cd1=>_0x5f1cd1[_0x3544d5(0x2b1)](_0x544ccd[_0x3544d5(0x16a)],_0x544ccd[_0x3544d5(0x435)]));})),this[_0x59f015(0x36f)](this['_drawingManagerService']['remove$'][_0x59f015(0x24c)](_0x1e9930=>{_0x1e9930['forEach'](_0x38e1b7=>{const _0x3ec739=_0x2dd2;this[_0x3ec739(0x260)][_0x3ec739(0x362)](this[_0x3ec739(0x3bd)](_0x38e1b7[_0x3ec739(0x346)],_0x38e1b7['subUnitId'],_0x38e1b7[_0x3ec739(0x456)]));});}));}['renderDrawingShape'](_0x37becc,_0x123677,_0x3a6bf0){const _0xb507b9=_0x5e988f;let {transform:_0x33a016,drawingType:_0x21581a,srcRect:_0x12c27a,prstGeom:_0x1177f3,groupId:_0x4b66ab,unitId:_0x57b838,subUnitId:_0x5b1e6b,drawingId:_0x2f3f8a,isMultiTransform:_0x504000,transforms:_0x56e5fa,hidden:_0x28532d,selectable:_0x542787}=_0x37becc;if(_0x21581a!==a['DrawingTypeEnum'][_0xb507b9(0x1d7)]||!this[_0xb507b9(0x2f6)][_0xb507b9(0x361)]()||_0x33a016==null)return;let _0x194f1c=this[_0xb507b9(0x2f6)][_0xb507b9(0x38e)](),_0x34aa67=_0x504000&&_0x56e5fa?_0x56e5fa:[_0x33a016],_0x4cd061=[];for(let _0x3c503b of _0x34aa67){let {left:_0x26f1f7,top:_0x342e3e,width:_0x3cdd7a,height:_0x509d7b,angle:_0x103cdd,flipX:_0x578390,flipY:_0x531220,skewX:_0x5c1bc7,skewY:_0xa664dc}=_0x3c503b,_0x4b94a4=_0x34aa67['indexOf'](_0x3c503b),_0x9f3ea2=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'drawingId':_0x2f3f8a},_0x504000?_0x4b94a4:void 0x0),_0x170dfd=_0x123677[_0xb507b9(0x300)](_0x9f3ea2);if(_0x170dfd!=null){let _0x3691f9={'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'shapeId':_0x2f3f8a};_0x170dfd instanceof D&&this[_0xb507b9(0x2de)](_0x170dfd,_0x3691f9),_0x170dfd[_0xb507b9(0x49b)]({'left':_0x26f1f7,'top':_0x342e3e,'width':_0x3cdd7a,'height':_0x509d7b,'angle':_0x103cdd,'flipX':_0x578390,'flipY':_0x531220,'skewX':_0x5c1bc7,'skewY':_0xa664dc});continue;}let _0x20da52=this[_0xb507b9(0x2f6)][_0xb507b9(0x3a5)](_0x57b838,_0x5b1e6b),_0x19aa27=_0x20da52[_0xb507b9(0x1af)](_0x2f3f8a);if(_0x123677[_0xb507b9(0x300)](_0x9f3ea2)||!this[_0xb507b9(0x2f6)][_0xb507b9(0x361)]())continue;let _0x3ad31d=this[_0xb507b9(0x4d2)]['getShapeModel'](_0x57b838,_0x5b1e6b,_0x2f3f8a);if(!_0x3ad31d)continue;let _0x176b3c=(0x0,n[_0xb507b9(0x3a7)])(_0x3ad31d[_0xb507b9(0x2d9)]())?{...e[_0xb507b9(0x3c5)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0xb507b9(0x3c5)],_0x5c5089=_0x3ad31d[_0xb507b9(0x2e3)]()[_0xb507b9(0x425)],_0x1feab3={'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'shapeId':_0x2f3f8a};_0x5c5089&&this[_0xb507b9(0x20b)][_0xb507b9(0x3b6)](_0x1feab3,_0x5c5089);let _0x1ea71f=new D(_0x9f3ea2,{..._0x3c503b,'zIndex':_0x19aa27===-0x1?_0x20da52[_0xb507b9(0x2b6)]-0x1:_0x19aa27,'shapeModel':_0x3ad31d,'localeService':this[_0xb507b9(0x1fb)],'shapeId':_0x2f3f8a,'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'visible':_0x28532d!==!0x0,'evented':_0x542787!==!0x1,'formulaPresentation':_0x5c5089?this[_0xb507b9(0x20b)][_0xb507b9(0x24e)](_0x1feab3):void 0x0,'animateFormulaPresentation':(_0x5c5089==null?void 0x0:_0x5c5089[_0xb507b9(0x435)])!==!0x1,'transformerConfig':_0x176b3c});if(_0x5c5089){let _0x2602ae=this[_0xb507b9(0x3bd)](_0x57b838,_0x5b1e6b,_0x2f3f8a),_0x118f5a=this[_0xb507b9(0x260)][_0xb507b9(0x329)](_0x2602ae)??new Set();_0x118f5a[_0xb507b9(0x4b5)](_0x1ea71f),this[_0xb507b9(0x260)]['set'](_0x2602ae,_0x118f5a);}_0x123677[_0xb507b9(0x1b8)](_0x1ea71f,c[_0xb507b9(0x245)]),_0x194f1c&&_0x123677[_0xb507b9(0x208)](_0x1ea71f),_0x4b66ab&&(0x0,d[_0xb507b9(0x43e)])({'drawingId':_0x4b66ab,'unitId':_0x57b838,'subUnitId':_0x5b1e6b},_0x1ea71f,_0x123677,this['_drawingManagerService']),_0x1177f3!=null&&_0x1ea71f['setPrstGeom'](_0x1177f3),_0x12c27a!=null&&_0x1ea71f['setSrcRect'](_0x12c27a);let _0x30eb9a=this[_0xb507b9(0x3f4)](_0x1ea71f,_0x3ad31d[_0xb507b9(0x2e3)]());if(_0x30eb9a){var _0x2f2c1b;_0x3a6bf0==null||(_0x2f2c1b=_0x3a6bf0['resourceCollector'])==null||_0x2f2c1b[_0xb507b9(0x4b5)](_0x30eb9a);}_0x4cd061[_0xb507b9(0x4d5)](_0x1ea71f);}return _0x4cd061;}[_0x5e988f(0x3bd)](_0x4579e8,_0x590608,_0xb289f2){return _0x4579e8+'\x00'+_0x590608+'\x00'+_0xb289f2;}[_0x5e988f(0x2de)](_0x2bb338,_0x1a916b){const _0x2089d6=_0x5e988f;let _0x560720=this[_0x2089d6(0x4d2)][_0x2089d6(0x2c6)](_0x1a916b['unitId'],_0x1a916b['subUnitId'],_0x1a916b[_0x2089d6(0x3cd)]),_0x32bffa=_0x560720==null?void 0x0:_0x560720[_0x2089d6(0x2e3)]()[_0x2089d6(0x425)],_0x3fa339=this[_0x2089d6(0x3bd)](_0x1a916b['unitId'],_0x1a916b[_0x2089d6(0x369)],_0x1a916b[_0x2089d6(0x3cd)]);if(_0x32bffa){this[_0x2089d6(0x20b)][_0x2089d6(0x3b6)](_0x1a916b,_0x32bffa);let _0xf885dc=this[_0x2089d6(0x260)][_0x2089d6(0x329)](_0x3fa339)??new Set();_0xf885dc[_0x2089d6(0x4b5)](_0x2bb338),this[_0x2089d6(0x260)][_0x2089d6(0x33d)](_0x3fa339,_0xf885dc);}else{var _0x383e80;this[_0x2089d6(0x20b)]['unregister'](_0x1a916b),(_0x383e80=this[_0x2089d6(0x260)][_0x2089d6(0x329)](_0x3fa339))==null||_0x383e80[_0x2089d6(0x362)](_0x2bb338);}_0x2bb338[_0x2089d6(0x2b1)](_0x32bffa?this[_0x2089d6(0x20b)][_0x2089d6(0x24e)](_0x1a916b):void 0x0,(_0x32bffa==null?void 0x0:_0x32bffa[_0x2089d6(0x435)])!==!0x1);}[_0x5e988f(0x1a3)](_0x28ad3d){const _0x118ae5=_0x5e988f;let _0x5d2c1c=_0x28ad3d[_0x118ae5(0x1f3)][_0x118ae5(0x2e3)](),_0x484718=_0x5d2c1c[_0x118ae5(0x35c)];!_0x484718||_0x484718[_0x118ae5(0x21e)]!==n[_0x118ae5(0x464)][_0x118ae5(0x207)]||!_0x484718[_0x118ae5(0x4ca)]?_0x28ad3d[_0x118ae5(0x2b3)](void 0x0):this[_0x118ae5(0x3f4)](_0x28ad3d,_0x5d2c1c);}[_0x5e988f(0x3f4)](_0x2d7c74,_0xd251e3){const _0xc6d53e=_0x5e988f;let _0x42ae0f=_0xd251e3[_0xc6d53e(0x35c)];if(!_0x42ae0f||_0x42ae0f[_0xc6d53e(0x21e)]!==n[_0xc6d53e(0x464)][_0xc6d53e(0x207)]||!_0x42ae0f[_0xc6d53e(0x4ca)])return;let _0x5e3587=_0x42ae0f[_0xc6d53e(0x4ca)],_0x221de6=_0x42ae0f[_0xc6d53e(0x4ef)]??n[_0xc6d53e(0x3de)][_0xc6d53e(0x438)],_0x4dd115=this[_0xc6d53e(0x3fd)]['getImageSourceCache'](_0x5e3587,_0x221de6);if(_0x4dd115)_0x2d7c74[_0xc6d53e(0x2b3)](_0x4dd115);else return this[_0xc6d53e(0x271)](_0x2d7c74,_0x5e3587,_0x221de6);}async[_0x5e988f(0x271)](_0x2e13f5,_0x1c07eb,_0x5804e7){const _0x8f4642=_0x5e988f;let _0x102ef4;try{if(_0x5804e7===n[_0x8f4642(0x3de)]['UUID'])_0x102ef4=await this['_imageIoService']['getImage'](_0x1c07eb);else{if(_0x5804e7===n[_0x8f4642(0x3de)][_0x8f4642(0x438)])try{_0x102ef4=await this[_0x8f4642(0x1ec)][_0x8f4642(0x4e7)](_0x1c07eb);}catch{_0x102ef4=_0x1c07eb;}else _0x102ef4=_0x1c07eb;}}catch(_0x26d6e4){console[_0x8f4642(0x352)](_0x8f4642(0x483),_0x26d6e4);return;}await new Promise(_0x57fde5=>{const _0x3f9ef4=_0x8f4642;let _0x705cb=new window[(_0x3f9ef4(0x40d))]();_0x705cb[_0x3f9ef4(0x44b)]=()=>{const _0x2fa825=_0x3f9ef4;this[_0x2fa825(0x3fd)]['addImageSourceCache'](_0x1c07eb,_0x5804e7,_0x705cb),_0x2e13f5[_0x2fa825(0x2b3)](_0x705cb),_0x57fde5();},_0x705cb[_0x3f9ef4(0x386)]=()=>{const _0xe7f622=_0x3f9ef4;console[_0xe7f622(0x352)](_0xe7f622(0x41b),_0x1c07eb),_0x57fde5();},_0x705cb[_0x3f9ef4(0x338)]=_0x102ef4;});}};j=A([k(0x0,s[_0x5e988f(0x1bd)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x3,a[_0x5e988f(0x3a0)]),k(0x4,a['IURLImageService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(r[_0x5e988f(0x28b)]))],j);let M=class extends a[_0x5e988f(0x302)]{constructor(_0x194a63,_0x1bd42f,_0x548f24,_0xaa3175,_0x487e71,_0x4a7265){const _0x3a56d0=_0x5e988f;super(),this[_0x3a56d0(0x2f6)]=_0x194a63,this[_0x3a56d0(0x4d2)]=_0x1bd42f,this[_0x3a56d0(0x1ea)]=_0x548f24,this[_0x3a56d0(0x20e)]=_0xaa3175,this[_0x3a56d0(0x3fa)]=_0x487e71,this['_commandService']=_0x4a7265,E(this,_0x3a56d0(0x15e),null),E(this,_0x3a56d0(0x308),null),E(this,_0x3a56d0(0x363),null),E(this,_0x3a56d0(0x4e2),void 0x0),E(this,_0x3a56d0(0x25d),[]),E(this,_0x3a56d0(0x22b),0x0),E(this,_0x3a56d0(0x4c9),0x0),E(this,_0x3a56d0(0x27d),0x0),E(this,_0x3a56d0(0x1e1),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x3a56d0(0x4e6),void 0x0),E(this,_0x3a56d0(0x2d6),void 0x0),E(this,_0x3a56d0(0x1bf),void 0x0),E(this,_0x3a56d0(0x30d),void 0x0),E(this,_0x3a56d0(0x3f6),!0x1),this[_0x3a56d0(0x3fc)](),this[_0x3a56d0(0x35e)]();}[_0x5e988f(0x16c)](_0x212c11,_0x13cbf5,_0x35d6be){const _0xa85892=_0x5e988f;let _0x222b38=this[_0xa85892(0x4d2)][_0xa85892(0x2c6)](_0x212c11,_0x13cbf5,_0x35d6be);if(_0x222b38)return _0x222b38[_0xa85892(0x2c4)]();}[_0x5e988f(0x274)](){const _0x44066c=_0x5e988f;this[_0x44066c(0x460)]();}[_0x5e988f(0x3e5)](){const _0x17a5fe=_0x5e988f;this[_0x17a5fe(0x4f2)](!0x0);}[_0x5e988f(0x164)](_0x5c8172){const _0xca9e48=_0x5e988f;this[_0xca9e48(0x3f6)]=_0x5c8172;}[_0x5e988f(0x29b)](_0x13f2e9,_0x255edf,_0x259855,_0x473bfb){const _0x1fcea9=_0x5e988f;let _0x1b1714=this[_0x1fcea9(0x4d2)][_0x1fcea9(0x2c6)](_0x13f2e9,_0x255edf,_0x259855);if(_0x1b1714)return _0x1b1714['getAdjustInfoByName'](_0x473bfb);}['_createShapeAdjustControls'](_0x80a483=!0x1){const _0x5ce631=_0x5e988f;if(this[_0x5ce631(0x308)]===null||this[_0x5ce631(0x363)]===null||this['_activeShapeId']===null)return;let _0x2aedaa=this[_0x5ce631(0x1ea)]['getRenderUnitById'](this['_unitId']);if(!_0x2aedaa||!_0x2aedaa[_0x5ce631(0x246)](l[_0x5ce631(0x306)])[_0x5ce631(0x42e)]())return;let {scene:_0x2b1074}=_0x2aedaa,_0x3a6aca={'unitId':this[_0x5ce631(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0x42bb54=this[_0x5ce631(0x2f6)]['getDrawingByParam'](_0x3a6aca),{transform:_0x124baa}=_0x42bb54;if(!_0x124baa||_0x42bb54[_0x5ce631(0x2aa)]!==a[_0x5ce631(0x181)][_0x5ce631(0x1d7)])return;let {left:_0x334ba9,top:_0x14415d,width:_0x2ec4d3,height:_0x21c6e9,flipX:_0x361d41,flipY:_0x18dcb6,angle:_0x44bd7c=0x0}=_0x124baa;if(_0x334ba9===void 0x0||_0x14415d===void 0x0)return;if(_0x80a483){let _0x4172ae=this[_0x5ce631(0x4d2)][_0x5ce631(0x2c6)](this[_0x5ce631(0x308)],this[_0x5ce631(0x363)],this[_0x5ce631(0x15e)]);_0x4172ae==null||_0x4172ae[_0x5ce631(0x162)]({'width':_0x2ec4d3??0x0,'height':_0x21c6e9??0x0}),this[_0x5ce631(0x4e2)]=_0x4172ae==null?void 0x0:_0x4172ae[_0x5ce631(0x2c4)]();}let _0x330bc0=this[_0x5ce631(0x4e2)];for(let _0x3cd800=0x0;_0x3cd800<_0x330bc0['length'];_0x3cd800++){let _0x166a05=_0x330bc0[_0x3cd800],_0x5a51ae=_0x166a05['x'],_0x4d781d=_0x166a05['y'];if(_0x361d41&&(_0x5a51ae=(_0x2ec4d3||0x0)-_0x5a51ae),_0x18dcb6&&(_0x4d781d=(_0x21c6e9||0x0)-_0x4d781d),_0x44bd7c!==0x0){let _0x411979=(_0x2ec4d3||0x0)/0x2,_0x1db446=(_0x21c6e9||0x0)/0x2,_0x5e611d=_0x44bd7c*Math['PI']/0xb4,_0x11e146=Math[_0x5ce631(0x2b7)](_0x5e611d),_0x549ae8=Math[_0x5ce631(0x3a4)](_0x5e611d),_0x42acb2=_0x5a51ae-_0x411979,_0x445050=_0x4d781d-_0x1db446;_0x5a51ae=_0x411979+(_0x42acb2*_0x11e146-_0x445050*_0x549ae8),_0x4d781d=_0x1db446+(_0x42acb2*_0x549ae8+_0x445050*_0x11e146);}let _0x5f488c={'x':_0x5a51ae,'y':_0x4d781d,'adjName':_0x166a05[_0x5ce631(0x1fe)]};this[_0x5ce631(0x256)](_0x2b1074,_0x5f488c,_0x5f488c[_0x5ce631(0x1fe)],_0x334ba9,_0x14415d,this['_unitId'],this[_0x5ce631(0x363)]);}}[_0x5e988f(0x4f2)](_0x4ebaa2=!0x1){const _0x3614d2=_0x5e988f;_0x4ebaa2&&(this[_0x3614d2(0x460)](),this['_createShapeAdjustControls'](_0x4ebaa2));}[_0x5e988f(0x256)](_0x43c0dc,_0xda0bf3,_0x281573,_0x3dcd4c,_0x42eb8d,_0x5cf69a,_0x2cc38f){const _0x3e0e4b=_0x5e988f;if(!this[_0x3e0e4b(0x15e)])return;let _0xf04751=_0x43c0dc[_0x3e0e4b(0x300)](_0x3e0e4b(0x36e)+this[_0x3e0e4b(0x15e)]+'-'+_0x281573);if(_0xf04751){_0xf04751[_0x3e0e4b(0x49b)]({'left':_0xda0bf3['x']+_0x3dcd4c-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)],'top':_0xda0bf3['y']+_0x42eb8d-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)]});return;}let _0x13ecba={'left':_0xda0bf3['x']+_0x3dcd4c-n[_0x3e0e4b(0x291)]['adjHandleSize'],'top':_0xda0bf3['y']+_0x42eb8d-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)],'adjName':_0x281573,'shapeId':this[_0x3e0e4b(0x15e)],'unitId':_0x5cf69a,'subUnitId':_0x2cc38f,'width':n['ShapeDefaultConfig'][_0x3e0e4b(0x214)]+0x8,'height':n['ShapeDefaultConfig'][_0x3e0e4b(0x214)]+0x8,'zIndex':c[_0x3e0e4b(0x245)]+0x1,'evented':!0x0},_0x56638b=new O(_0x3e0e4b(0x36e)+this['_activeShapeId']+'-'+_0x281573,_0x13ecba);this[_0x3e0e4b(0x25d)][_0x3e0e4b(0x4d5)](_0x56638b),this['_attachAdjustEvent'](_0x56638b,_0x43c0dc,_0x281573),_0x43c0dc[_0x3e0e4b(0x1b8)](_0x56638b,c[_0x3e0e4b(0x245)]+0x1);}[_0x5e988f(0x460)](){const _0xd9b523=_0x5e988f;this[_0xd9b523(0x25d)][_0xd9b523(0x2b6)]!==0x0&&(this[_0xd9b523(0x25d)][_0xd9b523(0x424)](_0x344011=>{const _0x32712b=_0xd9b523;_0x344011[_0x32712b(0x4c1)]();}),this[_0xd9b523(0x25d)]=[]);}[_0x5e988f(0x26e)](){const _0x26209a=_0x5e988f;this[_0x26209a(0x371)]();}[_0x5e988f(0x37e)](_0xf846a8,_0x5b2038){const _0x432d00=_0x5e988f;var _0x147d75;let _0xb43bdc={'x':0x0,'y':0x0};if(!_0xf846a8||!_0x5b2038)return _0xb43bdc;let _0x194ba0=this[_0x432d00(0x1ea)][_0x432d00(0x188)](_0xf846a8);if(!_0x194ba0||!_0x194ba0[_0x432d00(0x246)](l[_0x432d00(0x306)])['getSkeleton'](_0x5b2038))return _0xb43bdc;let _0x3972f7=_0x194ba0[_0x432d00(0x246)](l[_0x432d00(0x49c)]),_0x3011ec=_0x3972f7==null?void 0x0:_0x3972f7[_0x432d00(0x43d)]();if(!_0x3011ec)return _0xb43bdc;let _0x38f0ad=(_0x147d75=this['_univerInstanceService']['getUnit'](_0xf846a8))==null?void 0x0:_0x147d75[_0x432d00(0x422)](_0x5b2038);if(!_0x38f0ad)return _0xb43bdc;let _0x3a2819=(0x0,l[_0x432d00(0x3d7)])(_0x3011ec[_0x432d00(0x2f2)],_0x3011ec[_0x432d00(0x239)],_0x194ba0['scene'],_0x38f0ad);return _0x3a2819?{'x':_0x3a2819[_0x432d00(0x2ea)],'y':_0x3a2819[_0x432d00(0x1fd)]}:_0xb43bdc;}[_0x5e988f(0x2ca)](_0x38a068,_0x2cbae0){const _0x17d8d3=_0x5e988f;var _0x6e577b;let _0x418daa=(_0x6e577b=this['_univerInstanceService'][_0x17d8d3(0x499)](_0x38a068))==null?void 0x0:_0x6e577b['getSheetBySheetId'](_0x2cbae0);return(_0x418daa==null?void 0x0:_0x418daa['getZoomRatio']())??0x1;}['_attachAdjustEvent'](_0x4d43da,_0x2d5ee3,_0x1c4c9b){const _0x5f480c=_0x5e988f;this[_0x5f480c(0x36f)]((0x0,a[_0x5f480c(0x1cc)])(_0x4d43da[_0x5f480c(0x452)][_0x5f480c(0x194)]((_0x10baa5,_0x1bf3ff)=>{const _0x3c3416=_0x5f480c;var _0x26283e,_0x5df18e,_0x343679,_0x4b5d3d;let _0x26036c=_0x4d43da[_0x3c3416(0x22d)]();this[_0x3c3416(0x4e6)]=this[_0x3c3416(0x29b)](_0x26036c[_0x3c3416(0x346)],_0x26036c[_0x3c3416(0x369)],_0x26036c[_0x3c3416(0x456)],_0x1c4c9b),this[_0x3c3416(0x2d6)]=this[_0x3c3416(0x4d2)]['getShapeModel'](_0x26036c[_0x3c3416(0x346)],_0x26036c[_0x3c3416(0x369)],_0x26036c[_0x3c3416(0x456)]);let _0x5a9e0d=this[_0x3c3416(0x2f6)][_0x3c3416(0x2fc)]({'unitId':this[_0x3c3416(0x308)],'subUnitId':this[_0x3c3416(0x363)],'drawingId':this['_activeShapeId']}),{transform:_0x24c2c5}=_0x5a9e0d;if(_0x24c2c5){let {left:_0x48aa68,top:_0x6299f9,width:_0x1b3d4e,height:_0x304402}=_0x24c2c5;this['_baseShapeLeft']=_0x48aa68||0x0,this['_baseShapeTop']=_0x6299f9||0x0,this[_0x3c3416(0x27d)]=_0x1b3d4e||0x0,this[_0x3c3416(0x1e1)]=_0x304402||0x0;}let _0x3ad4a7=!!((_0x26283e=_0x5a9e0d[_0x3c3416(0x2fd)])!=null&&_0x26283e['flipX']),_0x433d36=!!((_0x5df18e=_0x5a9e0d['transform'])!=null&&_0x5df18e[_0x3c3416(0x19a)]),_0x31d4a6=((_0x343679=_0x5a9e0d[_0x3c3416(0x2fd)])==null?void 0x0:_0x343679[_0x3c3416(0x1d9)])||0x0;this[_0x3c3416(0x35a)]=!0x0,_0x2d5ee3['disableObjectsEvent']();let _0x255c90={...((_0x4b5d3d=this['_activeAdjustInfo'])==null?void 0x0:_0x4b5d3d[_0x3c3416(0x3e9)])??{}};this[_0x3c3416(0x1bf)]=_0x2d5ee3[_0x3c3416(0x1c2)][_0x3c3416(0x194)]((_0x552605,_0x2cd6d8)=>{const _0xd7f6ec=_0x3c3416;if(!this[_0xd7f6ec(0x35a)])return;let {offsetX:_0x4faf65,offsetY:_0x3da1ff}=_0x552605,_0x37bca9=this[_0xd7f6ec(0x4e6)];if(this[_0xd7f6ec(0x2d6)]&&_0x37bca9){_0x2d5ee3[_0xd7f6ec(0x3a3)](),_0x2d5ee3[_0xd7f6ec(0x42d)](c[_0xd7f6ec(0x25f)][_0xd7f6ec(0x47c)]);let _0x4108f2={'left':0x0,'top':0x0,'width':this[_0xd7f6ec(0x27d)],'height':this['_baseShapeHeight']},_0x3b32c0=this[_0xd7f6ec(0x37e)](this['_unitId'],this[_0xd7f6ec(0x363)]),_0x2e4d9b=this[_0xd7f6ec(0x2ca)](this[_0xd7f6ec(0x308)],this[_0xd7f6ec(0x363)]),_0x138d6b=_0x4faf65/_0x2e4d9b+_0x3b32c0['x']-this[_0xd7f6ec(0x22b)],_0x2a712c=_0x3da1ff/_0x2e4d9b+_0x3b32c0['y']-this[_0xd7f6ec(0x4c9)];if(_0x31d4a6!==0x0){let _0x25cceb=this[_0xd7f6ec(0x27d)]/0x2,_0x230ea9=this[_0xd7f6ec(0x1e1)]/0x2,_0x125109=_0x31d4a6*Math['PI']/0xb4,_0x56a4ce=Math[_0xd7f6ec(0x2b7)](_0x125109),_0x114967=Math['sin'](_0x125109),_0xee746e=_0x138d6b-_0x25cceb,_0x223965=_0x2a712c-_0x230ea9;_0x138d6b=_0x25cceb+(_0xee746e*_0x56a4ce+_0x223965*_0x114967),_0x2a712c=_0x230ea9+(-_0xee746e*_0x114967+_0x223965*_0x56a4ce);}_0x3ad4a7&&(_0x138d6b=this[_0xd7f6ec(0x27d)]-_0x138d6b),_0x433d36&&(_0x2a712c=this['_baseShapeHeight']-_0x2a712c);let _0x41ea00={'x':_0x138d6b,'y':_0x2a712c},_0x473b27=this[_0xd7f6ec(0x2d6)][_0xd7f6ec(0x202)](_0x4108f2,_0x41ea00,_0x37bca9,_0x3ad4a7,_0x433d36);if(Object['keys'](_0x473b27)[_0xd7f6ec(0x2b6)]===0x0)return;for(let [_0x4af2b2,_0x111e9e]of Object['entries'](_0x473b27))this[_0xd7f6ec(0x2d6)]['setAdjustValueByName'](_0x4af2b2,_0x111e9e);this[_0xd7f6ec(0x2d6)][_0xd7f6ec(0x162)]({'width':this[_0xd7f6ec(0x27d)],'height':this[_0xd7f6ec(0x1e1)]});let _0x396a68=this[_0xd7f6ec(0x2f6)][_0xd7f6ec(0x2fc)]({'unitId':_0x26036c[_0xd7f6ec(0x346)],'subUnitId':_0x26036c[_0xd7f6ec(0x369)],'drawingId':_0x26036c[_0xd7f6ec(0x456)]});_0x396a68&&(this['_sheetDrawingShapeRenderController'][_0xd7f6ec(0x461)](_0x396a68,_0x2d5ee3),this[_0xd7f6ec(0x4e2)]=this[_0xd7f6ec(0x16c)](_0x26036c['unitId'],_0x26036c[_0xd7f6ec(0x369)],_0x26036c[_0xd7f6ec(0x456)]),this[_0xd7f6ec(0x26e)]());}_0x2cd6d8[_0xd7f6ec(0x238)]();}),this[_0x3c3416(0x30d)]=_0x2d5ee3[_0x3c3416(0x4b8)][_0x3c3416(0x194)]((_0x59e2b6,_0x1f36d3)=>{const _0x1490e7=_0x3c3416;this[_0x1490e7(0x1bf)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x1490e7(0x297)](),_0x2d5ee3['resetCursor']();let _0x23ca9a=this['_activeAdjustInfo'];if(_0x23ca9a){let _0x260ba9=_0x26036c[_0x1490e7(0x346)],_0x5c9fcf=_0x26036c[_0x1490e7(0x369)],_0x2faa7c=_0x26036c[_0x1490e7(0x456)],_0x1f40f0={};for(let _0x4fca56 of Object[_0x1490e7(0x388)](_0x23ca9a[_0x1490e7(0x3e9)])){var _0x1bb8f8;let _0x2d24eb=(_0x1bb8f8=this['_activeShapeModel'])==null?void 0x0:_0x1bb8f8['getAdjustValueByName'](_0x4fca56);_0x2d24eb!==void 0x0&&(_0x1f40f0[_0x4fca56]=_0x2d24eb);}Object[_0x1490e7(0x388)](_0x1f40f0)['length']>0x0&&C(this[_0x1490e7(0x263)],_0x260ba9,_0x5c9fcf,_0x2faa7c,{'oldShapeData':{'adjustValues':_0x255c90}},{'adjustValues':_0x1f40f0});}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1490e7(0x35a)]=!0x1,_0x1f36d3[_0x1490e7(0x238)](),_0x2d5ee3['enableObjectsEvent']();}),_0x1bf3ff[_0x3c3416(0x238)]();})));}[_0x5e988f(0x35e)](){const _0x6756a5=_0x5e988f;let _0x1f6457=this['_univerInstanceService'][_0x6756a5(0x1b9)](a[_0x6756a5(0x15d)][_0x6756a5(0x2ba)]);this[_0x6756a5(0x36f)](_0x1f6457[_0x6756a5(0x3d3)]((0x0,u[_0x6756a5(0x430)])(_0x5dc191=>_0x5dc191?_0x5dc191['activeSheet$'][_0x6756a5(0x3d3)]((0x0,u['switchMap'])(_0x168d02=>{const _0x32c299=_0x6756a5;if(!_0x168d02)return u[_0x32c299(0x4c6)];let _0x3439b6=_0x5dc191[_0x32c299(0x39d)](),_0xe57feb=this['_renderManagerService'][_0x32c299(0x188)](_0x3439b6),_0x5dd855=_0xe57feb==null?void 0x0:_0xe57feb['scene'];return _0x5dd855?(0x0,u['of'])(_0x5dd855):u['EMPTY'];})):u[_0x6756a5(0x4c6)]))[_0x6756a5(0x24c)](_0x432cd9=>{const _0x5177f3=_0x6756a5;let _0x59c3d4=_0x432cd9['getTransformerByCreate']();this[_0x5177f3(0x36f)](_0x432cd9[_0x5177f3(0x1c2)]['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x2a4)]['subscribe'](_0x5d421c=>{const _0x4369aa=_0x5177f3;let {objects:_0x1d794f}=_0x5d421c;this['_createShapeAdjustControls'](),_0x1d794f!==null&&_0x1d794f[_0x4369aa(0x4bd)]===0x1&&_0x1d794f[_0x4369aa(0x3c9)]()[_0x4369aa(0x3b7)]()['value']instanceof D&&this[_0x4369aa(0x164)](!0x0);})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x2e7)][_0x5177f3(0x24c)](()=>{const _0x1d1dc0=_0x5177f3;this[_0x1d1dc0(0x3f6)]&&this[_0x1d1dc0(0x460)]();})),this[_0x5177f3(0x36f)](_0x432cd9['onPointerUp$']['subscribeEvent'](()=>{const _0x401163=_0x5177f3;this[_0x401163(0x3f6)]&&(this[_0x401163(0x164)](!0x1),this[_0x401163(0x371)]());})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x403)][_0x5177f3(0x24c)](()=>{const _0x12c6da=_0x5177f3;this[_0x12c6da(0x308)]&&this[_0x12c6da(0x363)]&&this[_0x12c6da(0x15e)]&&this[_0x12c6da(0x2f6)][_0x12c6da(0x2fc)]({'unitId':this[_0x12c6da(0x308)],'subUnitId':this[_0x12c6da(0x363)],'drawingId':this['_activeShapeId']})&&(this[_0x12c6da(0x4e2)]=this[_0x12c6da(0x16c)](this['_unitId'],this[_0x12c6da(0x363)],this[_0x12c6da(0x15e)]),this['_updateAdjustControlPositions']());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x325694=_0x5e988f;this['disposeWithMe'](this['_commandService'][_0x325694(0x330)](_0x422ecd=>{const _0x35434a=_0x325694;if(_0x422ecd['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let {unitId:_0x13ab4a,subUnitId:_0x1b04da,shapeId:_0x2aee20}=_0x422ecd[_0x35434a(0x217)];_0x13ab4a===this['_unitId']&&_0x1b04da===this[_0x35434a(0x363)]&&_0x2aee20===this[_0x35434a(0x15e)]&&this[_0x35434a(0x3e5)]();})),this[_0x325694(0x36f)](this['_drawingManagerService'][_0x325694(0x15b)][_0x325694(0x24c)](_0x1b2c03=>{const _0x49e07f=_0x325694;if(_0x1b2c03[_0x49e07f(0x2b6)]===0x1){let _0x4afec5=_0x1b2c03[0x0];if(_0x4afec5[_0x49e07f(0x2aa)]===a['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x49e07f(0x3fa)][_0x49e07f(0x17f)](_0x4afec5[_0x49e07f(0x346)])===a['UniverInstanceType']['UNIVER_SHEET']){this[_0x49e07f(0x15e)]=_0x4afec5[_0x49e07f(0x456)];let {unitId:_0x1b0796,subUnitId:_0x1a92df}=_0x4afec5;this['_activeShapeAdjustPointList']=this[_0x49e07f(0x16c)](_0x1b0796,_0x1a92df,this[_0x49e07f(0x15e)]),this[_0x49e07f(0x308)]=_0x1b0796,this[_0x49e07f(0x363)]=_0x1a92df,this[_0x49e07f(0x460)](),this['_createShapeAdjustControls']();return;}}this[_0x49e07f(0x15e)]=null,this[_0x49e07f(0x4e2)]=void 0x0,this[_0x49e07f(0x308)]=null,this['_subUnitId']=null,this[_0x49e07f(0x460)]();})),this[_0x325694(0x36f)](this[_0x325694(0x2f6)]['update$']['subscribe'](_0x2112af=>{const _0x43d526=_0x325694;if(_0x2112af['length']===0x1){var _0x23a8f3;let _0x53b810=_0x2112af[0x0];((_0x23a8f3=this[_0x43d526(0x2f6)][_0x43d526(0x2fc)](_0x53b810))==null?void 0x0:_0x23a8f3[_0x43d526(0x2aa)])===a['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x43d526(0x4f2)](!0x0);}})),this[_0x325694(0x36f)](this[_0x325694(0x2f6)]['remove$']['subscribe'](_0x2d54b9=>{const _0x2bba75=_0x325694;for(let _0x11b470 of _0x2d54b9)this[_0x2bba75(0x15e)]===_0x11b470['drawingId']&&(this[_0x2bba75(0x15e)]=null,this[_0x2bba75(0x4e2)]=void 0x0,this[_0x2bba75(0x308)]=null,this[_0x2bba75(0x363)]=null,this[_0x2bba75(0x460)]());}));}};M=A([k(0x0,s[_0x5e988f(0x1bd)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(c[_0x5e988f(0x18e)])),k(0x3,(0x0,a['Inject'])(j)),k(0x4,a['IUniverInstanceService']),k(0x5,a[_0x5e988f(0x32c)])],M);const N={'id':_0x5e988f(0x427),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0x4b5560,_0x547b34)=>{const _0x374365=_0x5e988f;let _0x22215e=_0x4b5560[_0x374365(0x329)](s[_0x374365(0x1bd)]),_0x4dd787=_0x4b5560[_0x374365(0x329)](c['IRenderManagerService']),_0x526ee1=_0x4b5560['get'](M);if(_0x547b34==null)return!0x0;if(_0x547b34[_0x374365(0x2b6)]>0x0){var _0x1d3492;let _0xe05b6a=(_0x1d3492=_0x4dd787[_0x374365(0x188)](_0x547b34[0x0][_0x374365(0x346)]))==null?void 0x0:_0x1d3492[_0x374365(0x466)];if(_0xe05b6a){let {unitId:_0x1c03f9,subUnitId:_0x5f27ce,drawingId:_0x2e3fbf}=_0x547b34[0x0],_0x4ec7dc=(0x0,s[_0x374365(0x278)])({'unitId':_0x1c03f9,'subUnitId':_0x5f27ce,'drawingId':_0x2e3fbf},void 0x0),_0x3e597b=_0xe05b6a[_0x374365(0x300)](_0x4ec7dc);if(_0x3e597b){var _0x5c2c28;(_0x5c2c28=_0x4dd787[_0x374365(0x188)](_0x547b34[0x0]['unitId']))==null||(_0x5c2c28=_0x5c2c28['scene']['getTransformer']())==null||_0x5c2c28[_0x374365(0x482)](_0x3e597b);}}_0x22215e[_0x374365(0x262)](_0x547b34),_0x526ee1['setShouldShowAdjust'](!0x1);}return!0x0;}},P={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'id':_0x5e988f(0x27f),'handler':async(_0x559918,_0x48f843)=>{const _0x54bdb8=_0x5e988f;let _0x52b1e1=(0x0,o['getSheetCommandTarget'])(_0x559918[_0x54bdb8(0x329)](a[_0x54bdb8(0x4c8)]));if(!_0x52b1e1)return!0x1;let _0x29f32a=_0x559918['get'](o['SheetsSelectionsService'])[_0x54bdb8(0x2cd)]();if(!_0x29f32a)return!0x1;let _0xbd08f0=_0x559918['get'](a[_0x54bdb8(0x32c)]),{unitId:_0x1ee180,subUnitId:_0x5c43aa}=_0x52b1e1,{value:_0x69ce98,enhanceParams:_0x236ba2}=_0x48f843,{range:_0x3f3c12}=_0x29f32a,_0xa76717={'unitId':_0x1ee180,'subUnitId':_0x5c43aa,'shapeType':_0x69ce98,'range':_0x3f3c12,'shapeId':(0x0,a[_0x54bdb8(0x4eb)])()};if(_0x236ba2){let _0x52812d=(0x0,n[_0x54bdb8(0x3a7)])(_0x69ce98),_0x215e07=_0x69ce98===n[_0x54bdb8(0x49d)]['Rect'];_0x52812d&&(_0x236ba2[_0x54bdb8(0x45c)]||_0x236ba2[_0x54bdb8(0x20a)])&&(_0xa76717[_0x54bdb8(0x192)]={'ln':{'startArrow':_0x236ba2[_0x54bdb8(0x45c)]?{'type':n[_0x54bdb8(0x4cc)][_0x54bdb8(0x273)],'size':n[_0x54bdb8(0x3ce)][_0x54bdb8(0x296)]}:void 0x0,'endArrow':_0x236ba2[_0x54bdb8(0x20a)]?{'type':n[_0x54bdb8(0x4cc)]['Arrow'],'size':n[_0x54bdb8(0x3ce)][_0x54bdb8(0x1d4)]}:void 0x0}}),_0x215e07&&(_0x236ba2['horizontal']||_0x236ba2[_0x54bdb8(0x17a)])&&(_0xa76717[_0x54bdb8(0x192)]=(0x0,r[_0x54bdb8(0x224)])({'fill':{'fillType':n[_0x54bdb8(0x464)]['SolidFill'],'color':_0x54bdb8(0x1fc)},'isHorizontal':!!_0x236ba2[_0x54bdb8(0x172)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x54bdb8(0x289)],'width':0x1,'color':_0x54bdb8(0x17d)}}));}let _0x3d8b82=_0xbd08f0['syncExecuteCommand'](i[_0x54bdb8(0x323)]['id'],_0xa76717);return setTimeout(()=>{const _0x507e33=_0x54bdb8;_0xbd08f0['executeCommand'](N['id'],[{'unitId':_0x1ee180,'subUnitId':_0x5c43aa,'drawingId':_0xa76717[_0x507e33(0x3cd)]}]);},0xc8),_0x3d8b82;}},F=_0x5e988f(0x382),I='sheet.shape.object-list.panel',L=_0x5e988f(0x3d1),R=_0x5e988f(0x3e3),re=(0x0,a[_0x5e988f(0x428)])('SHAPE_TEXT'),ie=_0x5e988f(0x2ce),ae={'id':_0x5e988f(0x4ab),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'handler':(_0x3a0732,_0x38cb5f)=>{const _0xa480cc=_0x5e988f;let _0x4974da=_0x3a0732['get'](t[_0xa480cc(0x1a0)]),_0x537d69=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x3e1)]),_0x3651f5=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x4c8)]),_0x11b68d=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x32c)]);return(0x0,o['getSheetCommandTarget'])(_0x3651f5)?(_0x38cb5f==null?void 0x0:_0x38cb5f[_0xa480cc(0x321)])===_0xa480cc(0x489)?(_0x4974da['close'](I),!0x0):(_0x4974da['open']({'id':I,'header':{'title':_0x537d69['t'](_0xa480cc(0x488))},'children':{'label':I},'onClose':()=>{_0x11b68d['syncExecuteCommand'](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'id':_0x5e988f(0x48a),'handler'(){return!0x0;}};function oe(_0x3d6a36){const _0x3e8344=_0x5e988f;let _0x3746c9=_0x3d6a36['get'](s[_0x3e8344(0x1bd)])[_0x3e8344(0x166)](),_0x12716e=_0x3746c9[_0x3e8344(0x2b6)]===0x1?_0x3746c9[0x0]:null;if(!_0x12716e||_0x12716e[_0x3e8344(0x2aa)]!==a[_0x3e8344(0x181)][_0x3e8344(0x1d7)])return null;let _0x173661=_0x3d6a36[_0x3e8344(0x329)](i['SheetsShapeService']),_0x3259f=_0x173661['getShapeTypeById'](_0x12716e[_0x3e8344(0x346)],_0x12716e[_0x3e8344(0x369)],_0x12716e[_0x3e8344(0x456)]),_0x23aecb=_0x173661[_0x3e8344(0x4ea)](_0x12716e[_0x3e8344(0x346)],_0x12716e['subUnitId'],_0x12716e[_0x3e8344(0x456)]);return _0x3259f===void 0x0||!_0x23aecb?null:{'drawing':_0x12716e,'shapeData':_0x23aecb,'shapeType':_0x3259f};}const se={'id':_0x5e988f(0x4a0),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0xfe0be2,_0x2985f2)=>{const _0x1f5812=_0x5e988f;let _0x36ef80=oe(_0xfe0be2),_0x45ada9=(0x0,r[_0x1f5812(0x1b3)])((_0x2985f2==null?void 0x0:_0x2985f2[_0x1f5812(0x30f)])??(_0x2985f2==null?void 0x0:_0x2985f2['value'])??'');if(!_0x36ef80||!_0x45ada9||_0x45ada9[_0x1f5812(0x468)]!==(0x0,r['getShapeQuickStyleType'])(_0x36ef80[_0x1f5812(0x192)]))return!0x1;let _0x4b67d4=(0x0,r[_0x1f5812(0x3d2)])(_0x36ef80['shapeData'],_0x45ada9);if(!_0x4b67d4)return!0x1;let {drawing:_0x41f8f9}=_0x36ef80;return _0xfe0be2[_0x1f5812(0x329)](a[_0x1f5812(0x32c)])['executeCommand'](S['id'],{'unitId':_0x41f8f9['unitId'],'subUnitId':_0x41f8f9[_0x1f5812(0x369)],'shapeId':_0x41f8f9[_0x1f5812(0x456)],'shapeData':_0x4b67d4,'oldShapeJSON':{'oldShapeData':_0x36ef80[_0x1f5812(0x192)]}});}},ce={'id':'sheet.operation.update-shape-type','type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0x35336d,_0x21b3f9)=>{const _0x2b728b=_0x5e988f;let _0x4ec50e=oe(_0x35336d),_0x718051=(_0x21b3f9==null?void 0x0:_0x21b3f9[_0x2b728b(0x1e6)])??(_0x21b3f9==null?void 0x0:_0x21b3f9[_0x2b728b(0x321)]);if(!_0x4ec50e||!_0x718051||(0x0,n[_0x2b728b(0x3a7)])(_0x4ec50e[_0x2b728b(0x1e6)])||(0x0,n[_0x2b728b(0x3a7)])(_0x718051))return!0x1;let _0x1481f7=(0x0,r[_0x2b728b(0x3f9)])(_0x4ec50e[_0x2b728b(0x192)],_0x718051);if(!_0x1481f7)return!0x1;let {drawing:_0x1f97c9}=_0x4ec50e;return _0x35336d[_0x2b728b(0x329)](a['ICommandService'])[_0x2b728b(0x32b)](S['id'],{'unitId':_0x1f97c9[_0x2b728b(0x346)],'subUnitId':_0x1f97c9[_0x2b728b(0x369)],'shapeId':_0x1f97c9[_0x2b728b(0x456)],'shapeType':_0x718051,'shapeData':_0x1481f7,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4ec50e[_0x2b728b(0x1e6)],'oldShapeData':_0x4ec50e[_0x2b728b(0x192)]}});}};let B=class extends a['Disposable']{constructor(_0x2560d8,_0x44d75c){const _0x235fa2=_0x5e988f;super(),this[_0x235fa2(0x221)]=_0x2560d8,this[_0x235fa2(0x2f6)]=_0x44d75c,this[_0x235fa2(0x4b1)](),this[_0x235fa2(0x221)][_0x235fa2(0x2bb)](!0x0),this[_0x235fa2(0x36f)]({'dispose':()=>this[_0x235fa2(0x221)][_0x235fa2(0x2bb)](!0x1)});}[_0x5e988f(0x4b1)](){const _0x106091=_0x5e988f;let _0x59f578=this[_0x106091(0x221)],_0x240d10=new Map(),_0x466a4c=_0x59f578[_0x106091(0x18b)]((_0x3da9e8,_0x40e9d7,_0x5bd0ca,_0x22b4b2,_0x207b3b)=>{const _0x2f48a8=_0x106091;let _0x4c9ef2=_0x40e9d7;if(_0x4c9ef2===n[_0x2f48a8(0x49d)][_0x2f48a8(0x189)]||_0x40e9d7===_0x2f48a8(0x478))return!0x1;try{let _0x11e776=_0x240d10['get'](_0x40e9d7);return _0x11e776||(_0x11e776=new n[(_0x2f48a8(0x1b2))](_0x4c9ef2,_0x2f48a8(0x42c)+_0x40e9d7),_0x240d10[_0x2f48a8(0x33d)](_0x40e9d7,_0x11e776)),_0x11e776[_0x2f48a8(0x299)](),_0x207b3b&&Object['keys'](_0x207b3b)['length']>0x0&&_0x11e776[_0x2f48a8(0x3da)]({'adjustValues':_0x207b3b},!0x0),_0x11e776[_0x2f48a8(0x162)]({'width':_0x5bd0ca,'height':_0x22b4b2}),_0x11e776[_0x2f48a8(0x36c)](_0x3da9e8,{'left':0x0,'top':0x0,'width':_0x5bd0ca,'height':_0x22b4b2});}catch{return!0x1;}});this[_0x106091(0x36f)](_0x466a4c),this[_0x106091(0x36f)]({'dispose':()=>_0x240d10[_0x106091(0x45b)]()});}[_0x5e988f(0x35d)](_0x5446bf,_0x571acb,_0x446503,_0x125369,_0x135f97){const _0x29ff9e=_0x5e988f;let _0x37e7e2=this[_0x29ff9e(0x2f6)][_0x29ff9e(0x454)](_0x5446bf,_0x571acb);if(!_0x37e7e2[_0x446503])return;let _0xc7c89={..._0x37e7e2[_0x446503],'prstGeom':_0x125369,'adjustValues':_0x135f97};this[_0x29ff9e(0x2f6)][_0x29ff9e(0x1f0)]([_0xc7c89]);}};B=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(d[_0x5e988f(0x1ba)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(s[_0x5e988f(0x1bd)]))],B);const le=_0x5e988f(0x190),ue=_0x5e988f(0x21c);function de({onShapeClick:_0x2462e4,excludeGroups:_0x31b16f}){const _0x14736b=_0x5e988f;return(0x0,p[_0x14736b(0x347)])(e[_0x14736b(0x215)],{'excludeGroups':_0x31b16f,'onShapeClick':_0x2462e4,'scrollContainer':_0x14736b(0x16f)});}function fe(){const _0x4f43d5=_0x5e988f;let _0x1e72a3=(0x0,t[_0x4f43d5(0x252)])(s['IDrawingManagerService']),_0x29d25f=(0x0,t[_0x4f43d5(0x252)])(B);return(0x0,p['jsx'])(e[_0x4f43d5(0x26d)],{'buttonLabel':_0x4f43d5(0x31a),'excludeGroups':[e[_0x4f43d5(0x2e6)][_0x4f43d5(0x1f2)]],'onShapeClick':_0x5c83d2=>{const _0xabbc9f=_0x4f43d5;let _0x4ea631=_0x1e72a3[_0xabbc9f(0x166)]()['find'](_0x59b9d8=>_0x59b9d8[_0xabbc9f(0x2aa)]===a['DrawingTypeEnum'][_0xabbc9f(0x3f2)]);if(!_0x4ea631)return;let {unitId:_0x512225,subUnitId:_0x57e269,drawingId:_0x4b890b}=_0x4ea631;_0x29d25f[_0xabbc9f(0x35d)](_0x512225,_0x57e269,_0x4b890b,_0x5c83d2['type']);}});}function pe(){const _0x1213ba=_0x5e988f;let _0x486ea5=(0x0,t[_0x1213ba(0x252)])(s['IDrawingManagerService']),_0x4b7ad2=(0x0,t['useDependency'])(B);return(0x0,p['jsx'])(e[_0x1213ba(0x26d)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e[_0x1213ba(0x2e6)]['Line']],'DropdownComponent':f[_0x1213ba(0x4e3)],'onShapeClick':_0x1997b7=>{const _0x57f4ef=_0x1213ba;let _0x21e3f7=_0x486ea5[_0x57f4ef(0x166)]()[_0x57f4ef(0x2d1)](_0x1ff399=>_0x1ff399[_0x57f4ef(0x2aa)]===a[_0x57f4ef(0x181)][_0x57f4ef(0x3f2)]);if(!_0x21e3f7)return;let {unitId:_0x46b466,subUnitId:_0x3b120d,drawingId:_0x2dc169}=_0x21e3f7;_0x4b7ad2[_0x57f4ef(0x35d)](_0x46b466,_0x3b120d,_0x2dc169,_0x1997b7[_0x57f4ef(0x468)]);}});}function me(){const _0x27f4be=_0x5e988f;let _0x50b56a=(0x0,t['useDependency'])(t[_0x27f4be(0x399)]),_0x23ed0f=(0x0,t[_0x27f4be(0x252)])(s[_0x27f4be(0x1bd)]),_0x1ad3e4=(0x0,t[_0x27f4be(0x252)])(a[_0x27f4be(0x4c8)]),_0x5b7305=_0x23ed0f[_0x27f4be(0x166)]()[0x0],_0x2a431f=_0x5b7305?_0x1ad3e4[_0x27f4be(0x17f)](_0x5b7305[_0x27f4be(0x346)]):void 0x0,_0x11799e=_0x2a431f===a['UniverInstanceType'][_0x27f4be(0x175)]?_0x27f4be(0x161):_0x2a431f===a[_0x27f4be(0x15d)][_0x27f4be(0x2ba)]?ue:void 0x0,_0x304b67=_0x11799e?_0x50b56a[_0x27f4be(0x329)](_0x11799e):void 0x0;return _0x304b67?(0x0,p[_0x27f4be(0x347)])(_0x304b67,{}):null;}function he(){const _0x69ac51=_0x5e988f;let _0x39556a=(0x0,t[_0x69ac51(0x252)])(a['ICommandService']);return(0x0,p['jsx'])(de,{'onShapeClick':_0x1df304=>{const _0x409657=_0x69ac51;_0x39556a[_0x409657(0x32b)](P['id'],{'value':_0x1df304[_0x409657(0x468)],'enhanceParams':{'endArrow':_0x1df304[_0x409657(0x20a)],'startArrow':_0x1df304[_0x409657(0x45c)],'horizontal':_0x1df304[_0x409657(0x172)],'vertical':_0x1df304[_0x409657(0x17a)]}});}});}function _0x2dd2(_0x3540b4,_0x12078e){_0x3540b4=_0x3540b4-0x157;const _0x1e9a67=_0x1e9a();let _0x2dd2c6=_0x1e9a67[_0x3540b4];return _0x2dd2c6;}function ge(){const _0x5da38b=_0x5e988f;return(0x0,p[_0x5da38b(0x347)])(he,{});}function _e(_0x50d608){const _0x24e90f=_0x5e988f;let _0x36d088=_0x50d608['get'](a['IUniverInstanceService']);return{'id':P['id'],'type':t[_0x24e90f(0x230)]['SELECTOR'],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x24e90f(0x295),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,l[_0x24e90f(0x1ef)])(_0x36d088,!0x1,()=>new u[(_0x24e90f(0x1a5))](_0x6ba1b1=>{const _0x26c72b=_0x24e90f;_0x6ba1b1[_0x26c72b(0x3b7)](!0x1);})),'hidden$':(0x0,t[_0x24e90f(0x443)])(_0x50d608,a['UniverInstanceType'][_0x24e90f(0x2ba)]),'disabled$':(0x0,l[_0x24e90f(0x417)])(_0x50d608)};}function ve(_0x59a86f){const _0x17ff7f=_0x5e988f;let _0x419128=_0x59a86f['get'](t[_0x17ff7f(0x1a0)]);return{'id':ae['id'],'type':t['MenuItemType'][_0x17ff7f(0x1a4)],'icon':_0x17ff7f(0x2ef),'title':_0x17ff7f(0x2eb),'tooltip':_0x17ff7f(0x2eb),'activated$':(0x0,u[_0x17ff7f(0x357)])(()=>_0x419128[_0x17ff7f(0x2e4)][_0x17ff7f(0x3d3)]((0x0,u['startWith'])(_0x419128[_0x17ff7f(0x195)]),(0x0,u[_0x17ff7f(0x4a5)])(_0x21f35c=>_0x21f35c[_0x17ff7f(0x29c)]===!0x0&&_0x21f35c['id']===_0x17ff7f(0x350)),(0x0,u[_0x17ff7f(0x410)])())),'hidden$':(0x0,t[_0x17ff7f(0x443)])(_0x59a86f,a['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,l[_0x17ff7f(0x417)])(_0x59a86f)};}const ye=_0x5e988f(0x408),be='sheet.menu.shape.flip-vertical';function xe(_0x67bfa1){const _0x591a0c=_0x5e988f;let _0x426c15=_0x67bfa1[_0x591a0c(0x329)](s[_0x591a0c(0x1bd)])['getFocusDrawings']();return _0x426c15[_0x591a0c(0x2b6)]===0x1&&_0x426c15[0x0][_0x591a0c(0x2aa)]===a[_0x591a0c(0x181)][_0x591a0c(0x1d7)]?_0x426c15[0x0]:null;}function Se(_0x5cf4e7){const _0x56a087=_0x5e988f;let _0x4aec84=_0x5cf4e7['get'](s['IDrawingManagerService']);return _0x4aec84[_0x56a087(0x15b)][_0x56a087(0x3d3)]((0x0,u['startWith'])(_0x4aec84['getFocusDrawings']()),(0x0,u[_0x56a087(0x4a5)])(_0x5469eb=>_0x5469eb['length']!==0x1||_0x5469eb[0x0][_0x56a087(0x2aa)]!==a[_0x56a087(0x181)][_0x56a087(0x1d7)]));}function Ce(_0x567d91){const _0x7942db=_0x5e988f;return{'id':ye,'commandId':i[_0x7942db(0x4aa)]['id'],'type':t['MenuItemType'][_0x7942db(0x1a4)],'title':_0x7942db(0x4d8),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x7942db(0x197),'hidden$':Se(_0x567d91),'params':()=>{const _0x2d71dc=_0x7942db;let _0x47a7d8=xe(_0x567d91);return _0x47a7d8?{'unitId':_0x47a7d8['unitId'],'subUnitId':_0x47a7d8[_0x2d71dc(0x369)],'shapeId':_0x47a7d8[_0x2d71dc(0x456)],'flipH':!0x0}:void 0x0;}};}function we(_0x418600){const _0x173762=_0x5e988f;return{'id':be,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t[_0x173762(0x230)]['BUTTON'],'title':_0x173762(0x1ce),'tooltip':'sheets-shape-ui.flipVertical','icon':'FlipVerticalIcon','hidden$':Se(_0x418600),'params':()=>{const _0x223223=_0x173762;let _0x29ee42=xe(_0x418600);return _0x29ee42?{'unitId':_0x29ee42[_0x223223(0x346)],'subUnitId':_0x29ee42[_0x223223(0x369)],'shapeId':_0x29ee42['drawingId'],'flipV':!0x0}:void 0x0;}};}const Te='sheets-shape-ui.shape-format.quick-style-gallery',Ee=_0x5e988f(0x318),De=_0x5e988f(0x4c7),Oe=_0x5e988f(0x4a9);function ke(){const _0x9f77fe=_0x5e988f;let _0x3c57aa=(0x0,t[_0x9f77fe(0x252)])(a['ICommandService']),_0x539050=(0x0,t[_0x9f77fe(0x252)])(s[_0x9f77fe(0x1bd)]),_0xf1978e=(0x0,t['useDependency'])(i[_0x9f77fe(0x44c)]),_0x470365=()=>{const _0x2077f3=_0x9f77fe;var _0x261745;let _0x41bdb0=_0x539050[_0x2077f3(0x166)]();if(_0x41bdb0['length']!==0x1||((_0x261745=_0x41bdb0[0x0])==null?void 0x0:_0x261745[_0x2077f3(0x2aa)])!==a[_0x2077f3(0x181)][_0x2077f3(0x1d7)])return null;let {unitId:_0x1f7037,subUnitId:_0x166535,drawingId:_0x591958}=_0x41bdb0[0x0],_0x402e87=_0xf1978e[_0x2077f3(0x2bd)](_0x1f7037,_0x166535,_0x591958),_0x5f0c48=_0xf1978e[_0x2077f3(0x4ea)](_0x1f7037,_0x166535,_0x591958);return _0x402e87===void 0x0||!_0x5f0c48?null:{'unitId':_0x1f7037,'subUnitId':_0x166535,'drawingId':_0x591958,'shapeType':_0x402e87,'shapeData':_0x5f0c48};},_0x333e56=(0x0,t[_0x9f77fe(0x1bb)])(()=>new u['Observable'](_0x52ca34=>{const _0x34b7e8=_0x9f77fe;let _0x13df34=()=>_0x52ca34[_0x34b7e8(0x3b7)](_0x470365()),_0x300359=_0x539050[_0x34b7e8(0x15b)][_0x34b7e8(0x24c)](_0x13df34),_0x3a3419=_0x3c57aa[_0x34b7e8(0x330)](_0x1325f6=>{const _0x4b38fe=_0x34b7e8;_0x1325f6['id']===i[_0x4b38fe(0x17c)]['id']&&_0x13df34();});return _0x13df34(),()=>{const _0x5c1497=_0x34b7e8;_0x300359[_0x5c1497(0x297)](),_0x3a3419['dispose']();};}),_0x470365(),!0x1,[_0x3c57aa,_0x539050,_0xf1978e]);return{'selection':_0x333e56,'updateShapeData':_0x3343b4=>{const _0x170d7d=_0x9f77fe;_0x333e56&&C(_0x3c57aa,_0x333e56[_0x170d7d(0x346)],_0x333e56[_0x170d7d(0x369)],_0x333e56[_0x170d7d(0x456)],{'oldShapeData':_0x333e56['shapeData']},_0x3343b4);}};}function _0x1e9a(){const _0x3a27e3=['jsx','drawing-ui.objectListPanel.moveBackward','skeleton','shape-editor-ui.toolbar.quickStyles','@univerjs-pro/sheets-shape-ui','FOCUSING_SHAPE_TEXT_EDITOR','update$','start','_showConnectionSites','sheet.shape.object-list.panel','_getSceneAndTransformerByDrawingSearch','error','addClipboardHook','_iconManager','version','_registerGroupFeaturePasteHook','defer','transformForAngle','UniverSheetsShapePlugin','_isStartAdjusting','connector-handler-','fill','clipByShape','_registerDrawingMoveHandler','setPrstGeomAdjValues','pluginName','getDrawingVisible','delete','_subUnitId','ShapeTextRibbonControl','beforeCommandExecuted','_resetState','drawing-ui.objectListPanel.noSelection','rect','subUnitId','prototype','_getImageDrawingInfo','buildClipPath','getEndConnectInfo','shape-adjust-point-','disposeWithMe','drawWith','_createShapeAdjustControls','_initCopyPaste','899907chlOXR','drawing-ui.objectListPanel.sectionFloating','resolveShapeTextEditorBehaviorShapeData','ContextMenuPosition','_sheetPrintInterceptorService','DocInterceptorService','setFallbackVisible','index','drawFormulaShapeAnimationLayers','createControl$','_getConnectionSiteAngle','_getScrollInfo','getInterceptPoints','DocumentViewModel','data','sheet.shape.edit.panel','SHAPE_CHANGE_PICKER_COMPONENT','clearControl$','RemoveSheetsShapeMutation','onerror','render','keys','_props','unit','current','_addControl','filter','getDrawingEditable','drawing-ui.objectListPanel.show','DependentOn','worldRect','isDrawingObject','Injector','_completionFrame','prstGeom','objects','SetSheetDrawingCommand','getContextValue','ComponentManager','drawing-ui.objectListPanel.locate','FromArray','UniverSheetsShapeMobileUIPlugin','getUnitId','translate','normal','IImageIoService','_generatePasteMutations','localeService','disableObjectsEvent','sin','getDrawingOrder','fontFamily','isConnectorShape','VIEW_MAIN','_componentManager','_clearCompletionFrame','SetDrawingSelectedOperation','_handleConnectedEndpointPointerUp','_transformCalculateSrcRect','getDrawingOKey','_isOpenedShapeEditPanel','shape-editor-ui.arrange.forward','front','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shapeKey','_visible','canvas','register','next','localToWorld','RemoveSheetCommand','_drawRichText','cxnPointRadius','BehaviorSubject','_formulaKey','Fragment','_registerMoveHandler','drawing-ui.objectListPanel.filterHidden','_contextService','image','_executeConnectionCommand','drawing-ui.objectListPanel.lock','SHAPE_EDITOR_TRANSFORMER_CONFIG','_activeImageId','complete','357931NUPMxt','values','parse','worldPoint','getCurrentUnitInfo','shapeId','ShapeArrowSizeEnum','getConnectorLinePoints','_insertShapes','sheet.shape.floating-toolbar','applyQuickStyleToShapeData','pipe','color','_shapeEditPanelVersion','_sheetBasicShapeConnectionPointController','getViewportByCell','left','onReady','setShapeData','editingParams$','offsetY','_clearFocusedShape','ImageSourceTypeEnum','ShapeFloatingToolbarToggleFactory','idMap','LocaleService','_baseHeight','sheets-shape-ui.ribbon.shape-format','onStarting','refreshAdjustControls','_hyperLinkRegions','getDrawingEffectBounds','transformToAxisAlignPosition','currentAdjustValues','SheetDrawingAnchor','text','changeShapeType','sheets-shape-ui.title','_activeAdjustPointList','setPresentation','getBasicShapeRelation','_injector','DRAWING_IMAGE','_activeShapeInfo','_loadShapePictureFill','actualHeight','_isShouldShowDrawingShapeAdjust','isMainScene','_highlightedSiteIndex','cloneShapeDataForType','_univerInstanceService','isRender','_registerDrawingFocusChangeHandler','_imageIoService','drawing-ui.objectListPanel.lockHint','back','createShapeTextHyperLinkRegions','sheets-shape-ui.ribbon.shape-format.arrange-backward','DrawingApplyType','changeEnd$','hidden','sheets-shape-ui','startWith','ShapeTextHyperLinkInfo','sheet.menu.shape.flip-horizontal','_sheetShapeAdjustController','marginTop','RENDER_CLASS_TYPE','removeLinePoints','Image','_openShapeEditPanel','getConnectionRelation','distinctUntilChanged','getValue','HorizontalAlign','stroke','_currentScene','_connectorObjects','SetDrawingApplyMutation','getCurrentRangeDisable$','axisAlignSheetTransform','composeMatrix','isHitLine','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_findShapeAtPoint','presentationChanged$','initShapePopupMenu','visible$','_editingParams$','drawing-ui.objectListPanel.moveForward','getSheetBySheetId','toStringTag','forEach','formulaBinding','getObjectListPanelSectionIdForDrawingType','drawing.operation.set-drawing-active','createInternalEditorID','sheets-shape-ui.editShape','drawing-ui.objectListPanel.unlockAll','applyPoint','clip-','setCursor','getCurrentSkeleton','dataModel','switchMap','setAdjustValueByName','FormatPainterSessionService','_baseTop','2cbWFPs','animationEnabled','TOP','invert','URL','VIEW_MAIN_TOP','_releaseRenderCache','GROUP','flatMap','getCurrentScrollState','insertGroupObject','_update','_updateSrcRectByTransform','adjustValues','_shapeService','getMenuHiddenObservable','sheetTransform','decorate','DocRenderController','_shapeId','getStartConnectInfo','IContextService','IPermissionService','onload','SheetsShapeService','updateLinePoints','sheets-shape-ui.ribbon.shape-format.style-control','multiply','sheets-shape-ui.ribbon.shape-format.arrange-front','SheetSkeletonService','onPointerDown$','_executeConnectedRouteConnectionCommand','getDrawingData','sheets-shape-ui.ribbon.shape-format.arrange-forward','drawingId','height','drawing-ui.objectListPanel.collapse','Vector2','_generateCopyPasteMutations','clear','startArrow','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.description','interceptor','_clearShapeAdjustControls','renderDrawingShape','pick','remove$','ShapeFillEnum','_handleFreeEndpointMove','scene','_getImagePrstGeom','type','WorkbookCopyPermission','drawing-ui.objectListPanel.expand','reduce','_isConnecting','_sheetCanvasPopManagerService','_currentUniverService','_handleBasicShapeUpdateConnectorLineShape','setEditing','_initEditingParams','drawing-ui.objectListPanel.lockAll','getInverseCoord','_disposed','contentHeight','_focusedDrawings','startConnectionDetection','custom','useReducer','_isImagePointerDown','copyId','CROSSHAIR','ang','_executeConnectedRouteResizeCommand','srcRect','top','setPrstGeom','activeAnObject','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','add$','_commandExecutedListener','getObject','resolveHyperLinkAt','sheets-shape-ui.objectListPanel.title','close','sheet.operation.open-sheet-shape-format-panel','328xjVKhg','UniverSheetsDrawingUIPlugin','actions','routeConnectorLineShape','ShapeStyleRibbonControl','SheetPermissionCheckController','isRenderLinePointsMode','getFocusedUnit','ArrangeTypeEnum','_findNearestConnectionSite','useFormulaShapeToolbar','bindRenderTransformerLifecycle','open','div','getUnit','getSheetId','transformByState','SheetScrollManagerService','ShapeTypeEnum','SetShapeDrawingDataCommand','cxnPointFill','sheet.operation.apply-shape-quick-style','_sheetInterceptorService','703865MkkySp','getSkeleton','SHAPE','map','clip-adj-','FloatingObjectToolbarPosition','sheets-shape-text-','sheets-shape-ui.shape-format.formula-ribbon-control','ToggleSheetsShapeFlipCommand','sheet.operation.open-shape-object-list-panel','_context','UPDATE','1746ocuPvp','doc','getActiveSheet','_registerImageShapeClipDelegate','getConnectionSiteList','_initPrinting','_init','add','enableObjectsEvent','FormulaShapeAnimationController','onPointerUp$','getShapeTextData','resolveShapeContextualRibbonHostMode','undo','trim','size','getActualSize','getAdjustNames','abs','dispose','getAutoFitPresentations','end','RibbonInsertGroup','SELECTOR','EMPTY','sheets-shape-ui.shape-format.text-ribbon-control','IUniverInstanceService','_baseShapeTop','fillImageSource','getEditing','ShapeArrowTypeEnum','ShapeFormatSettingIcon','_sheetSkeletonService','gradientEndColor','MoveUpIcon','ShapeTextFloatToolbar','_sheetsShapeService','packageName','isArray','push','point','ShapeQuickStyleGallery','sheets-shape-ui.flipHorizontal','clipTop','registerDependencies','resolveShapeTextHyperLinkAt','BottomIcon','cxnIndex','oKey','ShapeTextFloatMenuRenderControllerBase','_config','onRendered','_activeShapeAdjustPointList','MobileDropdown','getCanvasElement','Transform','_activeAdjustInfo','getImage','panel','_onSavingEditorData$','getShapeDataById','generateRandomId','has','hasDefault','WorkbookEditablePermission','fillImageSourceType','SetDrawingArrangeCommand','jsxs','_updateShapeAdjustControls','VerticalAlign','create','REMOVE','isRichText','UniverMobileUIPlugin','_cxtHandlerPointerMove','reverse','_transform','focus$','DocSelectionRenderService','UniverInstanceType','_activeShapeId','UniverSheetsDrawingMobileUIPlugin','startY','doc.image-clip.shape-picker.component','updateContext','onTransformChange$','setShouldShowAdjust','resolveShapeTextDocumentPageHeight','getFocusDrawings','_isHighlighted','getBasicShapeRotateBound','resolveFormulaShapeAutoFitSize','presentation','_clearPopups','_getShapeAdjustPointListById','extensionGroups','offsetX','parent','setSrcRect','buildShapeTextDataUpdate','horizontal','ancestorTransform','flipX','UNIVER_DOC','lineType','permissionPointUpdate$','21LwIhGR','shape-editor-ui.arrange.front','vertical','_adjName','UpdateSheetsShapeDataMutation','#bcbcbc','adjHandleStroke','getUnitType','getDrawingDataForUnit','DrawingTypeEnum','ShapeTextHyperLinkHoverController','StraightConnector1','_attachConnectorObjectEvent','syncExecuteCommand','transformToDrawingPosition','classType','getRenderUnitById','None','activeSheet$','registerClipDelegate','_drawRichTextLayer','ShapeFormulaRibbonControl','IRenderManagerService','_targetShapeId','sheet.shape.picker.component','UniverSheetsPlugin','shapeData','shouldClipShapeTextDocument','subscribeEvent','options','hideContextualTab','FlipHorizontalIcon','getBatchAddOp','UniverShapeEditorMobileUIPlugin','flipY','SheetsDrawingGroupCopyPasteController','_clearConnectionSites','_index','onSavingEditorData$','prstGeomAdjValues','ISidebarService','save','drawing-ui.objectListPanel.nameInput','refreshShapeFillImage','BUTTON','Observable','_handleConnectedEndpointMove','popup','MEDIA','PRINTING_COMPONENT_COLLECT','onDblclick$','_initSelection','bottom','stringify','registerCommand','indexOf','_getConnectPointInfo','RemoveSheetDrawingCommand','ShapeModel','getShapeQuickStylePreset','COMMAND','MobileShapeEditorService','_updateTransform','sheet.operation.open-mobile-shape-editor','addObject','getCurrentTypeOfUnit$','DrawingImageClipService','useObservable','CopySheetCommand','IDrawingManagerService','_initPermission','_adjHandlerPointerMove','isLineShape','merge','onPointerMove$','DocumentDataModel','_executeResizeCommand','mode','activateDrawingObject','_registerFocusChangeHandler','Circle','ObjectListPanelBase','ContextMenuGroup','createShapeFormulaDocument','toDisposable','UniverDocsUIPlugin','sheets-shape-ui.flipVertical','ShapeTextEditorContainer','resolveShapeTextHyperLinkObject','cxnPointStrokeWidth','_drawingAddListener','showContextualTab','Large','_clearShapeConnectorHandlerObjects','_shapeFloatingToolbarService','DRAWING_SHAPE','1.4.0','angle','drawing-ui.objectListPanel.sectionCanvas','setContextValue','translateWithPrecision','normalizeShapeTextModel','drawing-ui.objectListPanel.title','iterator','touchDependencies','_baseShapeHeight','_isStartConnectorPoint','preValue','_generateCutPasteMutations','sheets-shape-ui.deleteShape','shapeType','componentKey','clone','from','_renderManagerService','ShapeFloatingToolbarService','_urlImageService','getScene','getState','deriveStateFromActiveSheet$','featurePluginUpdateNotification','pushUndoRedo','Line','shapeModel','getSelectedObjectMap','DisposableCollection','beginPath','endConnectionDetection','getOrCreateDrawingCopyPlan','_sheetPermissionCheckController','MobileObjectListPanel','_localeService','#FFFFFF','viewportScrollY','adjName','sectionCanvas','defineProperty','copyType','calcAdjValues','hideInfoPopup','drawing-ui.objectListPanel.descriptionPlaceholder','drawing-ui.objectListPanel.filterLocked','drawing-ui.objectListPanel.empty','PictureFill','attachTransformerTo','getTransformerByCreate','endArrow','_shapeFormulaService','UniverSheetsUIPlugin','_handleFreeEndpointPointerUp','_sheetDrawingShapeRenderController','_registerIcons','getTextModel','ISheetDrawingService','getPermissionPoint','makeDirty','adjHandleSize','ShapePickerPanel','getShapeQuickStyleType','params','shape-editor-ui.arrange.backward','drawing-ui.objectListPanel.unlock','shape-editor-ui.toolbar.changeShape','SheetsShapeUIContextualRibbonSchema','sheet.image-clip.shape-picker.component','some','fillType','useMemo','sheets-shape-ui.formatShape','_clipService','IMenuManagerService','_initEvents','createShapeTextBoxShapeData','setOnSavingEditorData','_getShapeInfo','_copyInfo','MenuManagerPosition','canvasElement','attachRangeWithCoord','_baseShapeLeft','_draw','getDrawingSearch','SheetsShapeUIMenuSchema','ConnectorCoordinateTransform','MenuItemType','_sidebarService','updateShapeFillImage','UniverSheetsMobileUIPlugin','_sidebarDisposable','clip','engine','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','stopPropagation','sheetViewStartColumn','shapeText','extraProps','_initMenu','_sheetClipboardService','_createCopyInfoByRange','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','description','sheets-shape-ui.quickStyles','registerRenderModule','worldPoints','default','DRAWING_OBJECT_LAYER_INDEX','with','_registerComponents','name','drawing-ui.objectListPanel.details','OPERATION','memo','subscribe','32YMKZFW','getPresentation','getZoomRatio','DEFAULT_PASTE','computeConnectorResizeLayout','useDependency','isEditing','width','UndoRedoGroupService','_addShapeAdjustControl','_shapeRenderController','shouldAllowShapeTextEditorHostSizeShrink','_shapeUpdateListener','_lastEditingShapeKey','sheets-shape-ui.ribbon.shape-format.arrange-back','sheets-shape-ui.ribbon.shape-format.text-control','_shapes','_shapePopupMenuDisposable','CURSOR_TYPE','_formulaShapes','drawing-ui.objectListPanel.hideAll','focusDrawing','_commandService','clipHeight','isHighlighted','sheets-shape-ui.config','IconManager','UniverDocsPlugin','_disposePopups','fromChangeset','Documents','animateFormulaPresentation','ShapePickerDropdown','_updateAdjustControlPositions','Plugin','getShapeTextRect','_loadAndSetImage','_initSheetChange','Arrow','clearAdjustControls','LEFT','_baseWidth','viewBound','getDrawingShapeKeyByDrawingSearch','computeConnectorRouteLayout','getRealBound','setShapeProps','PaintIcon','_baseShapeWidth','title','sheet.command.menu-insert-shape','_calculateFreeEndpointAngle','FOCUSING_COMMON_DRAWINGS','UniverSheetsDrawingPlugin','_canEdit','_renderWithCache','_drawingRenderService','_hasReset','Module','entries','SolidLine','registerShapeFormatPainter','ShapeFormulaService','drawing-ui.objectListPanel.showAll','_registerOperations','Shape','_shapeTextEditingService','targetShapeId','ShapeDefaultConfig','sheets-shape-ui.editText','_drawShapeText','getConnectionInfo','ShapeIcon','Medium','unsubscribe','intercept','clearAdjustValue','MoveDownIcon','_getShapeAdjustInfosById','visible','_permissionService','transformVector2SceneCoord','drawing-ui.objectListPanel.unlockHint','CommandType','_clearControls','cxnPointStroke','shape-text-','changeStart$','WorksheetCopyPermission','sheet.command.update-shape-data','selectable','_cxnIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawingType','_popupMenuListener','lineShapeId','startX','calculate','_attachAdjustEvent','setConfig','setFormulaPresentation','_applyFormulaAutoFitSize','setFillImage','strokeWidth','OTHERS','length','cos','_createControls','resolveActiveShapeQuickStylePresetId','UNIVER_SHEET','setCanUseShapeClip','scale','getShapeTypeById','UniverDrawingUIPlugin','SHEET_SHAPE_UI_PLUGIN','updateDocumentDataMargin','blockExecuteWithoutPermission','UpdateConnectorRelationCommand','_baseDrawingRect','getDrawingPoints','_ribbonService','getShapeModel','InsertSheetsShapeMutation','symbol','getParent','_getZoomRatio','_currentConnectionTarget','DocSelectionManagerService','getCurrentLastSelection','sheet.shape.text.float-menu','vertical-center','forward','find','setHighlighted','_addShapeConnectorHandlerObject','UniverDrawingPlugin','DocumentSkeleton','_activeShapeModel','PREDEFINED_HOOK_NAME','formulaPresentation','getShapeType','_addShapeConnectorHandlerObjects','_baseLeft','ISheetClipboardService','_hide','refreshFormulaPresentation','_insertingShapeKeys','object','_handleConnectorPointerUp','_closeShapeEditPanel','getShapeData','sidebarOptions$','registerFeaturePasteHook','ShapeGroupEnum','changing$','SHEET_VIEWPORT_KEY','DrawingCommonPanel','viewportScrollX','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.typeNames.','_draggingConnectorId','744rpUZyP','ObjectLayersIcon','_drawSimpleText','_connectionSiteObjects','sheetViewStartRow','_initialize','DRAWING','_moveConnectorWithShape','_drawingManagerService','getBatchUpdateOp','function','ShapeTextHyperLinkPopupService','UniverRenderEnginePlugin','registerFeatureMenu','getDrawingByParam','transform','_configService','drawing-ui.objectListPanel.name','getObjectIncludeInGroup','getBentTypeFromPoints','Disposable','getSheetCommandTarget','IConfigService','univer-box-border\x20univer-px-4\x20univer-text-sm','SheetSkeletonManagerService','DocEventManagerService','_unitId','SheetCanvasPopManagerService','resetCursor','_updateImageAdjValues','attachPopupToObject','_adjHandlerPointerUp','INSERT','presetId','asObservable','completeEditing','TopmostIcon','isolated','interceptCommand','mergeMenu','relation','_isDrawingShapePointDown','sheets-shape-ui.shape-format.style-ribbon-control','5360856ZBgrGp','sheets-shape-ui.imagePanel.crop.shape','contentVerticalOffset','resize','isInGroup','_rerouteConnectorLine','_initCommands','drawing-ui.objectListPanel.hide','value','_getOrCreateShapeModel','InsertShapeCommand','rotation','drawing-ui.objectListPanel.dragToReorder','getMatrix','restore','getSkeletonParam','get','wrapStrategy','executeCommand','ICommandService','OBJECT_LIST_FLOATING_SECTION_ID','_menuManagerService','3250jmqLNe','onCommandExecuted','redo','_imageShapeClipController','440638HKimnW','Inject','highlighted','FlipVerticalIcon','_formulaAnimation','src','useEffect','cancelEditing','WorksheetEditPermission','UniverLicensePlugin','set','backward','getActiveViewportByCoord','_getDrawingRect','_reset','_cxtHandlerPointerUp','setCollapsedIds','_activeTargetShapeId','_sheetDrawingService','unitId'];_0x1e9a=function(){return _0x3a27e3;};return _0x1e9a();}function Ae(){const _0x467ec7=_0x5e988f;let {selection:_0x4615fc,updateShapeData:_0x89246b}=ke();return _0x4615fc?(0x0,p['jsx'])(e[_0x467ec7(0x48f)],{'shapeData':_0x4615fc[_0x467ec7(0x192)],'shapeType':_0x4615fc[_0x467ec7(0x1e6)],'onUpdateShapeData':_0x89246b}):null;}function je(){const _0x39100c=_0x5e988f;let _0x5d9f73=(0x0,t[_0x39100c(0x252)])(a[_0x39100c(0x32c)]),_0x3668b1=(0x0,t[_0x39100c(0x252)])(a[_0x39100c(0x3e1)]),{selection:_0x13036e}=ke();return _0x13036e?(0x0,p[_0x39100c(0x347)])(e[_0x39100c(0x4d7)],{'type':(0x0,r[_0x39100c(0x216)])(_0x13036e[_0x39100c(0x192)]),'ariaLabel':_0x3668b1['t'](_0x39100c(0x241)),'activePresetId':(0x0,r[_0x39100c(0x2b9)])(_0x13036e[_0x39100c(0x192)]),'onSelect':_0x504a56=>_0x5d9f73[_0x39100c(0x32b)](se['id'],{'presetId':_0x504a56})}):null;}function Me(){const _0xda265d=_0x5e988f;let {selection:_0x326fe0,updateShapeData:_0x427004}=ke();return _0x326fe0?(0x0,p[_0xda265d(0x347)])(e[_0xda265d(0x364)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x326fe0[_0xda265d(0x192)],'onUpdateShapeData':_0x427004}):null;}function Ne(){const _0x1bbd4b=_0x5e988f;var _0x194195;let {selection:_0x422a18,updateShapeData:_0x2a16e7}=ke(),_0x5955bb=(0x0,e[_0x1bbd4b(0x495)])({'hostType':a[_0x1bbd4b(0x15d)][_0x1bbd4b(0x2ba)],'unitId':(_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x346)])??'','subUnitId':(_0x422a18==null?void 0x0:_0x422a18['subUnitId'])??'','shapeId':(_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x456)])??'','shapeData':_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x192)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1bbd4b(0x1ac),'onUpdateBinding':_0x1fb2b0=>_0x2a16e7({'formulaBinding':_0x1fb2b0})}),_0x5c9909=((_0x194195=_0x5955bb[_0x1bbd4b(0x16d)])==null?void 0x0:_0x194195[_0x1bbd4b(0x43c)](_0x1a43ed=>_0x1a43ed[_0x1bbd4b(0x48d)])['filter'](_0x3be501=>_0x3be501[_0x1bbd4b(0x29c)]!==!0x1))??[];return _0x422a18!=null&&_0x422a18[_0x1bbd4b(0x192)][_0x1bbd4b(0x425)]?(0x0,p['jsx'])(e[_0x1bbd4b(0x18d)],{'actions':_0x5c9909,'panel':_0x5955bb[_0x1bbd4b(0x4e8)]}):null;}const Pe=_0x5e988f(0x44e),Fe=_0x5e988f(0x25c),Ie='sheets-shape-ui.ribbon.shape-format.formula-control',Le=_0x5e988f(0x455),Re=_0x5e988f(0x401),ze=_0x5e988f(0x450),Be=_0x5e988f(0x25b);function Ve(_0x3281b7){const _0x592c7f=_0x5e988f;let _0x390e5f=_0x3281b7[_0x592c7f(0x329)](a['ICommandService']),_0x2e560a=_0x3281b7[_0x592c7f(0x329)](s[_0x592c7f(0x1bd)]),_0x34d1f6=_0x3281b7[_0x592c7f(0x329)](i['SheetsShapeService']);return new u['Observable'](_0x3d6129=>{const _0x158215=_0x592c7f;let _0x190e0f=()=>{const _0xfea118=_0x2dd2;let _0x3d7c63=V(_0x3281b7),_0x21b955=_0x3d7c63?_0x34d1f6['getShapeDataById'](_0x3d7c63[_0xfea118(0x346)],_0x3d7c63[_0xfea118(0x369)],_0x3d7c63['drawingId']):null;_0x3d6129['next'](_0x21b955?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x21b955)??'':'');},_0x3bb370=_0x2e560a[_0x158215(0x15b)]['subscribe'](_0x190e0f),_0x413dd7=_0x390e5f[_0x158215(0x330)](_0x5e2bfa=>{const _0x1f45a5=_0x158215;_0x5e2bfa['id']===i[_0x1f45a5(0x17c)]['id']&&_0x190e0f();});return _0x190e0f(),()=>{const _0x20f5be=_0x158215;_0x3bb370['unsubscribe'](),_0x413dd7[_0x20f5be(0x4c1)]();};});}function V(_0x39d4cd){const _0x31e0fb=_0x5e988f;var _0x2886cb;let _0x3a4445=_0x39d4cd[_0x31e0fb(0x329)](s['IDrawingManagerService'])[_0x31e0fb(0x166)]();return _0x3a4445[_0x31e0fb(0x2b6)]===0x1&&((_0x2886cb=_0x3a4445[0x0])==null?void 0x0:_0x2886cb['drawingType'])===a[_0x31e0fb(0x181)][_0x31e0fb(0x1d7)]?_0x3a4445[0x0]:null;}function He(_0x365374,_0x384ebe=!0x1){const _0x2ad8d3=_0x5e988f;let _0x2d65eb=_0x365374[_0x2ad8d3(0x329)](a['ICommandService']),_0x1ca27b=_0x365374[_0x2ad8d3(0x329)](s[_0x2ad8d3(0x1bd)]),_0x17e22a=_0x365374[_0x2ad8d3(0x329)](i[_0x2ad8d3(0x44c)]);return new u[(_0x2ad8d3(0x1a5))](_0x4dac4b=>{const _0x2e55d1=_0x2ad8d3;let _0xcee4d9=()=>{const _0x5833d6=_0x2dd2;let _0x17be72=V(_0x365374);if(!_0x17be72){_0x4dac4b[_0x5833d6(0x3b7)](!0x0);return;}let _0x121111=_0x17e22a['getShapeDataById'](_0x17be72[_0x5833d6(0x346)],_0x17be72['subUnitId'],_0x17be72['drawingId']);_0x4dac4b['next'](!_0x121111||_0x384ebe&&_0x121111['formulaBinding']==null);},_0x34dd18=_0x1ca27b[_0x2e55d1(0x15b)][_0x2e55d1(0x24c)](_0xcee4d9),_0x4f85af=_0x2d65eb[_0x2e55d1(0x330)](_0x50cc98=>{const _0x801bad=_0x2e55d1;_0x50cc98['id']===i[_0x801bad(0x17c)]['id']&&_0xcee4d9();});return _0xcee4d9(),()=>{const _0x20ea6e=_0x2e55d1;_0x34dd18[_0x20ea6e(0x297)](),_0x4f85af[_0x20ea6e(0x4c1)]();};});}function Ue(_0x1b3fb8){const _0x56fc67=_0x5e988f;let _0x3b6890=_0x1b3fb8[_0x56fc67(0x329)](s['IDrawingManagerService']),_0x279a18=_0x1b3fb8['get'](i[_0x56fc67(0x44c)]);return _0x3b6890[_0x56fc67(0x15b)]['pipe']((0x0,u['startWith'])(_0x3b6890[_0x56fc67(0x166)]()),(0x0,u[_0x56fc67(0x4a5)])(()=>{const _0x33cc42=_0x56fc67;let _0x156135=V(_0x1b3fb8),_0x494ec4=_0x156135?_0x279a18[_0x33cc42(0x2bd)](_0x156135[_0x33cc42(0x346)],_0x156135[_0x33cc42(0x369)],_0x156135['drawingId']):void 0x0;return _0x494ec4===void 0x0||(0x0,n['isConnectorShape'])(_0x494ec4);}));}function We(_0x5d0aa1){const _0x1683e7=_0x5e988f;return{'id':se['id'],'type':t[_0x1683e7(0x230)][_0x1683e7(0x4c5)],'icon':_0x1683e7(0x27c),'title':_0x1683e7(0x34a),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x5d0aa1),'hidden$':He(_0x5d0aa1)};}function Ge(_0x12e2a6){const _0x2e6ed6=_0x5e988f;return{'id':ce['id'],'type':t['MenuItemType'][_0x2e6ed6(0x4c5)],'icon':_0x2e6ed6(0x295),'title':_0x2e6ed6(0x21a),'tooltip':_0x2e6ed6(0x21a),'slot':!0x0,'selections':[{'label':{'name':e[_0x2e6ed6(0x383)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x12e2a6)};}function Ke(_0x54ca0f,_0x1bcd85,_0x4b0ead=!0x1){const _0x315a19=_0x5e988f;return _0x47cb3b=>({'id':_0x54ca0f,'type':t[_0x315a19(0x230)]['BUTTON'],'label':{'name':_0x1bcd85,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x47cb3b,_0x4b0ead)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x41d934,_0x59dd45,_0x1b9f8c,_0x2c9613){const _0x58f365=_0x5e988f;return _0x27db85=>({'id':_0x41d934,'commandId':m[_0x58f365(0x4f0)]['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x1b9f8c,'title':_0x2c9613,'tooltip':_0x2c9613,'hidden$':He(_0x27db85),'params':()=>{const _0x26954f=_0x58f365;let _0x3bce07=V(_0x27db85);return _0x3bce07?{'unitId':_0x3bce07['unitId'],'subUnitId':_0x3bce07[_0x26954f(0x369)],'drawingIds':[_0x3bce07[_0x26954f(0x456)]],'arrangeType':_0x59dd45}:void 0x0;}});}const Ze=Xe(Le,a[_0x5e988f(0x493)]['forward'],_0x5e988f(0x4d0),_0x5e988f(0x3b0)),Qe=Xe(Re,a['ArrangeTypeEnum'][_0x5e988f(0x33e)],_0x5e988f(0x29a),_0x5e988f(0x218)),$e=Xe(ze,a[_0x5e988f(0x493)][_0x5e988f(0x3b1)],_0x5e988f(0x312),_0x5e988f(0x179)),et=Xe(Be,a['ArrangeTypeEnum'][_0x5e988f(0x3ff)],_0x5e988f(0x4dc),'shape-editor-ui.arrange.back');function tt(_0x5a435f){const _0x39e353=_0x5e988f;let _0x3c5c24=_0x5a435f[_0x39e353(0x329)](t[_0x39e353(0x1a0)]);return{'activated$':(0x0,u[_0x39e353(0x357)])(()=>_0x3c5c24['sidebarOptions$'][_0x39e353(0x3d3)]((0x0,u[_0x39e353(0x406)])(_0x3c5c24['options']),(0x0,u['map'])(_0x3539f2=>_0x3539f2['visible']===!0x0&&_0x3539f2['id']===_0x39e353(0x382)),(0x0,u[_0x39e353(0x410)])())),'id':z['id'],'type':t['MenuItemType'][_0x39e353(0x1a4)],'icon':_0x39e353(0x4cd),'title':_0x39e353(0x220),'tooltip':_0x39e353(0x220),'hidden$':He(_0x5a435f),'params':()=>{const _0x15079c=_0x39e353;let _0x171d2e=V(_0x5a435f);return _0x171d2e?{'unitId':_0x171d2e['unitId'],'subUnitId':_0x171d2e['subUnitId'],'drawingId':_0x171d2e[_0x15079c(0x456)]}:void 0x0;}};}const nt={[t[_0x5e988f(0x228)]['RIBBON']]:{[R]:{'order':0x64,'title':_0x5e988f(0x220),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e['ToggleShapeFloatingToolbarOperation']['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x5e988f(0x3df)]}}}}},rt={[t[_0x5e988f(0x4c4)][_0x5e988f(0x1a8)]]:{[P['id']]:{'order':0x3,'menuItemFactory':_e}}},it={...rt,[t[_0x5e988f(0x4c4)][_0x5e988f(0x2b5)]]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t[_0x5e988f(0x376)][_0x5e988f(0x2f4)]]:{[t[_0x5e988f(0x1ca)][_0x5e988f(0x2b5)]]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at=_0x5e988f(0x34b),ot=_0x5e988f(0x1d8);const st={'id':_0x5e988f(0x1b7),'type':a[_0x5e988f(0x2a0)]['OPERATION'],'handler'(_0x17422d,_0x356a4b){const _0x26aecd=_0x5e988f;return _0x356a4b?(_0x17422d['get'](e[_0x26aecd(0x1b5)])['open'](_0x356a4b[_0x26aecd(0x1c5)],{'hostType':a[_0x26aecd(0x15d)][_0x26aecd(0x2ba)],'shapeId':_0x356a4b[_0x26aecd(0x456)],'subUnitId':_0x356a4b[_0x26aecd(0x369)],'unitId':_0x356a4b[_0x26aecd(0x346)]}),!0x0):!0x1;}},ct=_0x5e988f(0x266),lt={};let ut=class extends a[_0x5e988f(0x302)]{constructor(_0x37e8ca,_0x5a38a0,_0x929d64,_0x4a9c29,_0x1e6813){const _0x380be4=_0x5e988f;super(),this['_context']=_0x37e8ca,this[_0x380be4(0x2f6)]=_0x5a38a0,this['_renderManagerService']=_0x929d64,this[_0x380be4(0x3fa)]=_0x4a9c29,this[_0x380be4(0x332)]=_0x1e6813,E(this,_0x380be4(0x3c6),null),E(this,_0x380be4(0x308),null),E(this,_0x380be4(0x363),null),E(this,_0x380be4(0x3ee),void 0x0),E(this,_0x380be4(0x25d),[]),E(this,'_baseLeft',0x0),E(this,_0x380be4(0x433),0x0),E(this,'_baseWidth',0x0),E(this,_0x380be4(0x3e2),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x380be4(0x4e6),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,_0x380be4(0x1bf),void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x380be4(0x47a),!0x1),this[_0x380be4(0x1c7)](),this['_registerMoveHandler']();}[_0x5e988f(0x274)](){this['_clearControls']();}[_0x5e988f(0x3e5)](){this['_clearControls'](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x4e4d2e,_0x3cbf95,_0x116e9d,_0x1f87fb){const _0x3448a7=_0x5e988f;let _0x3656e5=_0x4e4d2e;if(_0x3656e5!==n[_0x3448a7(0x49d)][_0x3448a7(0x189)]&&_0x4e4d2e!=='custom')try{let _0x2c557a=new n[(_0x3448a7(0x1b2))](_0x3656e5,_0x3448a7(0x4a6)+_0x4e4d2e);return _0x1f87fb&&_0x2c557a['setShapeData']({'adjustValues':_0x1f87fb},!0x0),_0x2c557a[_0x3448a7(0x162)]({'width':_0x3cbf95,'height':_0x116e9d}),_0x2c557a;}catch{return;}}[_0x5e988f(0x36b)](_0x5295ea,_0x5ac7e9,_0x2d33ba){const _0xae3ffb=_0x5e988f;let _0x4c4094={'unitId':_0x5295ea,'subUnitId':_0x5ac7e9,'drawingId':_0x2d33ba},_0x422d50=this[_0xae3ffb(0x2f6)]['getDrawingByParam'](_0x4c4094);if(_0x422d50&&_0x422d50[_0xae3ffb(0x2aa)]===a[_0xae3ffb(0x181)][_0xae3ffb(0x3f2)])return _0x422d50;}['_getImagePrstGeom'](_0x3cddc9,_0x3d1be4,_0xa5f25){const _0x5c0937=_0x5e988f;let _0x5b541a=this[_0x5c0937(0x1ea)]['getRenderUnitById'](_0x3cddc9);if(!_0x5b541a)return;let {scene:_0x5133de}=_0x5b541a,_0x20950b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3cddc9,'subUnitId':_0x3d1be4,'drawingId':_0xa5f25}),_0x585bec=_0x5133de[_0x5c0937(0x486)](_0x20950b);if(_0x585bec instanceof c[_0x5c0937(0x40d)]){let _0x1339e7=_0x585bec[_0x5c0937(0x395)];if(_0x1339e7)return{'prstGeom':_0x1339e7,'adjustValues':_0x585bec[_0x5c0937(0x19f)]};}}[_0x5e988f(0x2b8)](_0x13a49a=!0x1){const _0x372f7a=_0x5e988f;if(!this['_unitId']||!this[_0x372f7a(0x363)]||!this[_0x372f7a(0x3c6)])return;let _0x44fafd=this[_0x372f7a(0x1ea)][_0x372f7a(0x188)](this[_0x372f7a(0x308)]);if(!_0x44fafd||!_0x44fafd[_0x372f7a(0x246)](l[_0x372f7a(0x306)])[_0x372f7a(0x42e)]())return;let {scene:_0x165b07}=_0x44fafd,_0x15a826=this[_0x372f7a(0x36b)](this[_0x372f7a(0x308)],this[_0x372f7a(0x363)],this[_0x372f7a(0x3c6)]);if(!_0x15a826)return;let {transform:_0x3e0cbc}=_0x15a826;if(!_0x3e0cbc)return;let {left:_0x3f3dfc,top:_0x3a2790,width:_0x5893c2,height:_0x5022e2,flipX:_0x23e201,flipY:_0x190644,angle:_0x5bddb1=0x0}=_0x3e0cbc;if(_0x3f3dfc===void 0x0||_0x3a2790===void 0x0)return;let _0x1361bd=this[_0x372f7a(0x467)](this[_0x372f7a(0x308)],this[_0x372f7a(0x363)],this[_0x372f7a(0x3c6)]);if(!_0x1361bd)return;if(_0x13a49a){let _0x14709c=this['_getOrCreateShapeModel'](_0x1361bd['prstGeom'],_0x5893c2||0x0,_0x5022e2||0x0,_0x1361bd[_0x372f7a(0x441)]);if(!_0x14709c)return;this[_0x372f7a(0x3ee)]=_0x14709c[_0x372f7a(0x2c4)]();}let _0x468ccd=this['_activeAdjustPointList'];if(_0x468ccd&&_0x468ccd[_0x372f7a(0x2b6)]!==0x0)for(let _0x431eb=0x0;_0x431eb<_0x468ccd[_0x372f7a(0x2b6)];_0x431eb++){let _0x2ca6ec=_0x468ccd[_0x431eb],_0x349fd0=_0x2ca6ec['x'],_0x4e9f1e=_0x2ca6ec['y'];if(_0x23e201&&(_0x349fd0=(_0x5893c2||0x0)-_0x349fd0),_0x190644&&(_0x4e9f1e=(_0x5022e2||0x0)-_0x4e9f1e),_0x5bddb1!==0x0){let _0x1ff0ec=(_0x5893c2||0x0)/0x2,_0x40a7b4=(_0x5022e2||0x0)/0x2,_0x4503f7=_0x5bddb1*Math['PI']/0xb4,_0x5ed472=Math[_0x372f7a(0x2b7)](_0x4503f7),_0x48d51f=Math['sin'](_0x4503f7),_0x58770f=_0x349fd0-_0x1ff0ec,_0x29c78a=_0x4e9f1e-_0x40a7b4;_0x349fd0=_0x1ff0ec+(_0x58770f*_0x5ed472-_0x29c78a*_0x48d51f),_0x4e9f1e=_0x40a7b4+(_0x58770f*_0x48d51f+_0x29c78a*_0x5ed472);}let _0xe63dbe={'x':_0x349fd0,'y':_0x4e9f1e,'adjName':_0x2ca6ec[_0x372f7a(0x1fe)]};this[_0x372f7a(0x38c)](_0x165b07,_0xe63dbe,_0xe63dbe[_0x372f7a(0x1fe)],_0x3f3dfc,_0x3a2790,this[_0x372f7a(0x308)],this[_0x372f7a(0x363)]);}}[_0x5e988f(0x38c)](_0x4ccef8,_0x339c06,_0x4c3b02,_0x3484c9,_0x572d2b,_0x4f7192,_0x4596ca){const _0x17d2a4=_0x5e988f;if(!this[_0x17d2a4(0x3c6)])return;let _0x2b2118='image-clip-adjust-point-'+this[_0x17d2a4(0x3c6)]+'-'+_0x4c3b02,_0x30cf77=_0x4ccef8[_0x17d2a4(0x300)](_0x2b2118);if(_0x30cf77){_0x30cf77[_0x17d2a4(0x49b)]({'left':_0x339c06['x']+_0x3484c9-n[_0x17d2a4(0x291)][_0x17d2a4(0x214)],'top':_0x339c06['y']+_0x572d2b-n['ShapeDefaultConfig'][_0x17d2a4(0x214)]});return;}let _0x4ea78a=new O(_0x2b2118,{'left':_0x339c06['x']+_0x3484c9-n[_0x17d2a4(0x291)][_0x17d2a4(0x214)],'top':_0x339c06['y']+_0x572d2b-n[_0x17d2a4(0x291)]['adjHandleSize'],'adjName':_0x4c3b02,'shapeId':this[_0x17d2a4(0x3c6)],'unitId':_0x4f7192,'subUnitId':_0x4596ca,'width':n[_0x17d2a4(0x291)][_0x17d2a4(0x214)]+0x8,'height':n[_0x17d2a4(0x291)][_0x17d2a4(0x214)]+0x8,'zIndex':c[_0x17d2a4(0x245)]+0x1,'evented':!0x0});this[_0x17d2a4(0x25d)][_0x17d2a4(0x4d5)](_0x4ea78a),this['_attachAdjustEvent'](_0x4ea78a,_0x4ccef8,_0x4c3b02),_0x4ccef8[_0x17d2a4(0x1b8)](_0x4ea78a,c[_0x17d2a4(0x245)]+0x1);}[_0x5e988f(0x2a1)](){const _0x216ad3=_0x5e988f;this[_0x216ad3(0x25d)][_0x216ad3(0x2b6)]!==0x0&&(this[_0x216ad3(0x25d)][_0x216ad3(0x424)](_0x32ee6c=>_0x32ee6c[_0x216ad3(0x4c1)]()),this[_0x216ad3(0x25d)]=[]);}[_0x5e988f(0x37e)](_0xa17052,_0x3ef3b9){const _0x1cc40b=_0x5e988f;var _0x170cda;let _0x506f18={'x':0x0,'y':0x0},_0x3b09b7=this[_0x1cc40b(0x1ea)][_0x1cc40b(0x188)](_0xa17052);if(!_0x3b09b7||!_0x3b09b7[_0x1cc40b(0x246)](l[_0x1cc40b(0x306)])[_0x1cc40b(0x4a3)](_0x3ef3b9))return _0x506f18;let _0x19b660=_0x3b09b7[_0x1cc40b(0x246)](l[_0x1cc40b(0x49c)]),_0x3751fc=_0x19b660==null?void 0x0:_0x19b660[_0x1cc40b(0x43d)]();if(!_0x3751fc)return _0x506f18;let _0x164e82=(_0x170cda=this[_0x1cc40b(0x3fa)]['getUnit'](_0xa17052))==null?void 0x0:_0x170cda['getSheetBySheetId'](_0x3ef3b9);if(!_0x164e82)return _0x506f18;let _0x34ea43=(0x0,l[_0x1cc40b(0x3d7)])(_0x3751fc[_0x1cc40b(0x2f2)],_0x3751fc['sheetViewStartColumn'],_0x3b09b7[_0x1cc40b(0x466)],_0x164e82);return _0x34ea43?{'x':_0x34ea43[_0x1cc40b(0x2ea)],'y':_0x34ea43[_0x1cc40b(0x1fd)]}:_0x506f18;}[_0x5e988f(0x2ca)](_0x37fed3,_0x414ff8){const _0x247c64=_0x5e988f;var _0x5a46aa;let _0x1cc7ae=(_0x5a46aa=this[_0x247c64(0x3fa)]['getUnit'](_0x37fed3))==null?void 0x0:_0x5a46aa['getSheetBySheetId'](_0x414ff8);return(_0x1cc7ae==null?void 0x0:_0x1cc7ae['getZoomRatio']())??0x1;}[_0x5e988f(0x2af)](_0x47aee8,_0x5a82d0,_0x5b328e){const _0x46931b=_0x5e988f;this[_0x46931b(0x36f)]((0x0,a[_0x46931b(0x1cc)])(_0x47aee8['onPointerDown$'][_0x46931b(0x194)]((_0x2f2ae1,_0x55bca9)=>{const _0x4ea52e=_0x46931b;var _0x5b46e2,_0x2bdc3c,_0x20d155;let {unitId:_0x521ad8,subUnitId:_0x3a3b14,drawingId:_0x4373b9}=_0x47aee8[_0x4ea52e(0x22d)](),_0x176f4f=this[_0x4ea52e(0x36b)](_0x521ad8,_0x3a3b14,_0x4373b9);if(!(_0x176f4f!=null&&_0x176f4f[_0x4ea52e(0x2fd)]))return;let {left:_0x69c63f,top:_0x5b9586,width:_0x1cce4c,height:_0x5bf720}=_0x176f4f[_0x4ea52e(0x2fd)];this[_0x4ea52e(0x2db)]=_0x69c63f||0x0,this[_0x4ea52e(0x433)]=_0x5b9586||0x0,this[_0x4ea52e(0x276)]=_0x1cce4c||0x0,this[_0x4ea52e(0x3e2)]=_0x5bf720||0x0;let _0x84b0e=!!((_0x5b46e2=_0x176f4f[_0x4ea52e(0x2fd)])!=null&&_0x5b46e2[_0x4ea52e(0x174)]),_0xdceb01=!!((_0x2bdc3c=_0x176f4f[_0x4ea52e(0x2fd)])!=null&&_0x2bdc3c['flipY']),_0x5b4245=((_0x20d155=_0x176f4f[_0x4ea52e(0x2fd)])==null?void 0x0:_0x20d155['angle'])||0x0,_0x2bbadb=this['_getImagePrstGeom'](_0x521ad8,_0x3a3b14,_0x4373b9);if(!_0x2bbadb)return;let _0x2363d5=this[_0x4ea52e(0x322)](_0x2bbadb['prstGeom'],this[_0x4ea52e(0x276)],this[_0x4ea52e(0x3e2)],_0x2bbadb[_0x4ea52e(0x441)]);if(!_0x2363d5||(this['_activeShapeModel']=_0x2363d5,this[_0x4ea52e(0x4e6)]=_0x2363d5['getAdjustInfoByName'](_0x5b328e),!this[_0x4ea52e(0x4e6)]))return;this[_0x4ea52e(0x35a)]=!0x0,_0x5a82d0[_0x4ea52e(0x3a3)]();let _0x23ee8b=_0x2bbadb[_0x4ea52e(0x395)];this[_0x4ea52e(0x1bf)]=_0x5a82d0[_0x4ea52e(0x1c2)][_0x4ea52e(0x194)]((_0x2632f1,_0x1c89a4)=>{const _0x1dbfe5=_0x4ea52e;if(!this[_0x1dbfe5(0x35a)])return;let {offsetX:_0x191136,offsetY:_0x4ace9d}=_0x2632f1,_0x27657a=this[_0x1dbfe5(0x4e6)];if(!this[_0x1dbfe5(0x2d6)]||!_0x27657a)return;_0x5a82d0[_0x1dbfe5(0x3a3)](),_0x5a82d0['setCursor'](c[_0x1dbfe5(0x25f)][_0x1dbfe5(0x47c)]);let _0x39278d={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x1dbfe5(0x3e2)]},_0x136e7d=this['_getScrollInfo'](_0x521ad8,_0x3a3b14),_0x2cb1b9=this[_0x1dbfe5(0x2ca)](_0x521ad8,_0x3a3b14),_0x14135a=_0x191136/_0x2cb1b9+_0x136e7d['x']-this[_0x1dbfe5(0x2db)],_0x4ce539=_0x4ace9d/_0x2cb1b9+_0x136e7d['y']-this['_baseTop'];if(_0x5b4245!==0x0){let _0x241644=this[_0x1dbfe5(0x276)]/0x2,_0x417be4=this[_0x1dbfe5(0x3e2)]/0x2,_0x3c9db3=_0x5b4245*Math['PI']/0xb4,_0x186560=Math['cos'](_0x3c9db3),_0x11594e=Math[_0x1dbfe5(0x3a4)](_0x3c9db3),_0x2d69de=_0x14135a-_0x241644,_0x3c4c99=_0x4ce539-_0x417be4;_0x14135a=_0x241644+(_0x2d69de*_0x186560+_0x3c4c99*_0x11594e),_0x4ce539=_0x417be4+(-_0x2d69de*_0x11594e+_0x3c4c99*_0x186560);}_0x84b0e&&(_0x14135a=this['_baseWidth']-_0x14135a),_0xdceb01&&(_0x4ce539=this[_0x1dbfe5(0x3e2)]-_0x4ce539);let _0x173a84=this[_0x1dbfe5(0x2d6)][_0x1dbfe5(0x202)](_0x39278d,{'x':_0x14135a,'y':_0x4ce539},_0x27657a,_0x84b0e,_0xdceb01);if(Object['keys'](_0x173a84)[_0x1dbfe5(0x2b6)]!==0x0){for(let [_0xd4f26,_0x2ee8fd]of Object[_0x1dbfe5(0x288)](_0x173a84))this[_0x1dbfe5(0x2d6)][_0x1dbfe5(0x431)](_0xd4f26,_0x2ee8fd);this[_0x1dbfe5(0x2d6)]['updateContext']({'width':this['_baseWidth'],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x521ad8,_0x3a3b14,_0x4373b9,_0x173a84),this[_0x1dbfe5(0x3ee)]=this['_activeShapeModel'][_0x1dbfe5(0x2c4)](),this[_0x1dbfe5(0x2b8)](),_0x1c89a4[_0x1dbfe5(0x238)]();}}),this[_0x4ea52e(0x30d)]=_0x5a82d0[_0x4ea52e(0x4b8)]['subscribeEvent']((_0x177512,_0x4b50eb)=>{const _0x10eb4e=_0x4ea52e;if(this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x10eb4e(0x30d)][_0x10eb4e(0x297)](),_0x5a82d0[_0x10eb4e(0x30a)](),this[_0x10eb4e(0x2d6)]){let _0x49c01f=this['_activeShapeModel'][_0x10eb4e(0x4bf)](),_0x17952b={};for(let _0x2b9fe2 of _0x49c01f){let _0x626079=this[_0x10eb4e(0x2d6)]['getAdjustValueByName'](_0x2b9fe2);_0x626079!==void 0x0&&(_0x17952b[_0x2b9fe2]=_0x626079);}this['_imageShapeClipController'][_0x10eb4e(0x35d)](_0x521ad8,_0x3a3b14,_0x4373b9,_0x23ee8b,_0x17952b);}this[_0x10eb4e(0x4e6)]=void 0x0,this[_0x10eb4e(0x2d6)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4b50eb[_0x10eb4e(0x238)](),_0x5a82d0[_0x10eb4e(0x4b6)]();}),_0x55bca9[_0x4ea52e(0x238)]();})));}[_0x5e988f(0x30b)](_0x44f1a7,_0x44e380,_0x382eb6,_0x29fceb){const _0x18452b=_0x5e988f;let _0x2b2315=this[_0x18452b(0x1ea)][_0x18452b(0x188)](_0x44f1a7);if(!_0x2b2315)return;let {scene:_0x362bd3}=_0x2b2315,_0x35666b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x44f1a7,'subUnitId':_0x44e380,'drawingId':_0x382eb6}),_0x45e5c0=_0x362bd3[_0x18452b(0x486)](_0x35666b);if(_0x45e5c0 instanceof c[_0x18452b(0x40d)]){let _0x33fad6=_0x45e5c0[_0x18452b(0x19f)]??{};_0x45e5c0[_0x18452b(0x35f)]({..._0x33fad6,..._0x29fceb}),_0x45e5c0[_0x18452b(0x213)](!0x0);}}[_0x5e988f(0x3bf)](){const _0x19a3ef=_0x5e988f;let _0x9dd859=this[_0x19a3ef(0x3fa)][_0x19a3ef(0x1b9)](a[_0x19a3ef(0x15d)][_0x19a3ef(0x2ba)]);this[_0x19a3ef(0x36f)](_0x9dd859['pipe']((0x0,u['switchMap'])(_0x3e275c=>_0x3e275c?_0x3e275c['activeSheet$']['pipe']((0x0,u[_0x19a3ef(0x430)])(_0x4a2ba4=>{const _0x3ed39f=_0x19a3ef;if(!_0x4a2ba4)return u[_0x3ed39f(0x4c6)];let _0x41b37e=_0x3e275c[_0x3ed39f(0x39d)](),_0x23e806=this[_0x3ed39f(0x1ea)][_0x3ed39f(0x188)](_0x41b37e),_0x4e1de7=_0x23e806==null?void 0x0:_0x23e806[_0x3ed39f(0x466)];return _0x4e1de7?(0x0,u['of'])(_0x4e1de7):u['EMPTY'];})):u[_0x19a3ef(0x4c6)]))[_0x19a3ef(0x24c)](_0x278e92=>{const _0x2f2e7e=_0x19a3ef;let _0x5c1cdc=_0x278e92[_0x2f2e7e(0x209)]();this['disposeWithMe'](_0x278e92[_0x2f2e7e(0x1c2)][_0x2f2e7e(0x194)](()=>{const _0x4c1a65=_0x2f2e7e;this[_0x4c1a65(0x47a)]&&this[_0x4c1a65(0x2a1)]();})),this[_0x2f2e7e(0x36f)](_0x5c1cdc['changeStart$'][_0x2f2e7e(0x24c)](_0x15a87a=>{const _0x909ae9=_0x2f2e7e;let {objects:_0x27f2e9}=_0x15a87a;if(this[_0x909ae9(0x2b8)](),_0x27f2e9!==null&&_0x27f2e9[_0x909ae9(0x4bd)]===0x1){let _0x1667fd=_0x27f2e9[_0x909ae9(0x3c9)]()[_0x909ae9(0x3b7)]()[_0x909ae9(0x321)];_0x1667fd instanceof c[_0x909ae9(0x40d)]&&_0x1667fd[_0x909ae9(0x395)]&&(this[_0x909ae9(0x47a)]=!0x0);}})),this[_0x2f2e7e(0x36f)](_0x5c1cdc[_0x2f2e7e(0x2e7)]['subscribe'](()=>{const _0x17b320=_0x2f2e7e;this[_0x17b320(0x47a)]&&this[_0x17b320(0x2a1)]();})),this[_0x2f2e7e(0x36f)](_0x278e92[_0x2f2e7e(0x4b8)][_0x2f2e7e(0x194)](()=>{const _0x3bb8e9=_0x2f2e7e;this[_0x3bb8e9(0x47a)]&&(this[_0x3bb8e9(0x47a)]=!0x1,this[_0x3bb8e9(0x2b8)]());})),this[_0x2f2e7e(0x36f)](_0x5c1cdc[_0x2f2e7e(0x403)][_0x2f2e7e(0x24c)](()=>{const _0x525a36=_0x2f2e7e;if(this['_unitId']&&this['_subUnitId']&&this[_0x525a36(0x3c6)]){let _0x23dab6=this[_0x525a36(0x467)](this[_0x525a36(0x308)],this['_subUnitId'],this[_0x525a36(0x3c6)]);if(_0x23dab6){var _0x83383d,_0x5e17da;let _0x46c664=this[_0x525a36(0x36b)](this[_0x525a36(0x308)],this[_0x525a36(0x363)],this[_0x525a36(0x3c6)]),_0x177867=(_0x46c664==null||(_0x83383d=_0x46c664[_0x525a36(0x2fd)])==null?void 0x0:_0x83383d['width'])||0x0,_0x46553a=(_0x46c664==null||(_0x5e17da=_0x46c664['transform'])==null?void 0x0:_0x5e17da[_0x525a36(0x457)])||0x0,_0x2ce8df=this[_0x525a36(0x322)](_0x23dab6[_0x525a36(0x395)],_0x177867,_0x46553a,_0x23dab6[_0x525a36(0x441)]);_0x2ce8df&&(this[_0x525a36(0x3ee)]=_0x2ce8df['getDrawingPoints'](),this['_clearControls'](),this[_0x525a36(0x2b8)](!0x0));}}}));}));}[_0x5e988f(0x1c7)](){const _0x264efd=_0x5e988f;this[_0x264efd(0x36f)](this[_0x264efd(0x2f6)][_0x264efd(0x15b)][_0x264efd(0x24c)](_0x243fc2=>{const _0x30ee1c=_0x264efd;if(_0x243fc2[_0x30ee1c(0x2b6)]===0x1){let _0x38b0da=_0x243fc2[0x0];if(_0x38b0da[_0x30ee1c(0x2aa)]===a['DrawingTypeEnum'][_0x30ee1c(0x3f2)]){let {unitId:_0x294bd0,subUnitId:_0x4ea342,drawingId:_0x5c6f5c}=_0x38b0da,_0x4a5563=this[_0x30ee1c(0x467)](_0x294bd0,_0x4ea342,_0x5c6f5c);if(_0x4a5563){var _0x521988,_0x3bec44;this[_0x30ee1c(0x3c6)]=_0x5c6f5c,this[_0x30ee1c(0x308)]=_0x294bd0,this['_subUnitId']=_0x4ea342;let _0x3b1a0d=this[_0x30ee1c(0x36b)](_0x294bd0,_0x4ea342,_0x5c6f5c),_0x410ae4=(_0x3b1a0d==null||(_0x521988=_0x3b1a0d[_0x30ee1c(0x2fd)])==null?void 0x0:_0x521988['width'])||0x0,_0x429b13=(_0x3b1a0d==null||(_0x3bec44=_0x3b1a0d['transform'])==null?void 0x0:_0x3bec44[_0x30ee1c(0x457)])||0x0,_0x3822a6=this[_0x30ee1c(0x322)](_0x4a5563[_0x30ee1c(0x395)],_0x410ae4,_0x429b13,_0x4a5563['adjustValues']);_0x3822a6&&(this[_0x30ee1c(0x3ee)]=_0x3822a6['getDrawingPoints']()),this[_0x30ee1c(0x2a1)](),this[_0x30ee1c(0x2b8)](!0x0);}else this[_0x30ee1c(0x366)]();}else this[_0x30ee1c(0x366)]();}else this['_resetState']();})),this[_0x264efd(0x36f)](this['_drawingManagerService'][_0x264efd(0x34d)][_0x264efd(0x24c)](_0x40fae8=>{const _0x3fe12f=_0x264efd;if(_0x40fae8[_0x3fe12f(0x2b6)]===0x1){let _0x228690=_0x40fae8[0x0],_0x357748=this['_drawingManagerService']['getDrawingByParam'](_0x228690);(_0x357748==null?void 0x0:_0x357748[_0x3fe12f(0x2aa)])===a[_0x3fe12f(0x181)][_0x3fe12f(0x3f2)]&&this[_0x3fe12f(0x3c6)]===_0x228690['drawingId']&&(this[_0x3fe12f(0x2a1)](),this[_0x3fe12f(0x2b8)](!0x0));}})),this[_0x264efd(0x36f)](this[_0x264efd(0x2f6)]['remove$'][_0x264efd(0x24c)](_0x412ae5=>{const _0xb3c686=_0x264efd;for(let _0x1245fb of _0x412ae5)this[_0xb3c686(0x3c6)]===_0x1245fb['drawingId']&&this['_resetState']();}));}['_resetState'](){const _0x126f1b=_0x5e988f;this[_0x126f1b(0x3c6)]=null,this[_0x126f1b(0x308)]=null,this[_0x126f1b(0x363)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x126f1b(0x2a1)]();}};ut=A([k(0x1,s[_0x5e988f(0x1bd)]),k(0x2,(0x0,a['Inject'])(c[_0x5e988f(0x18e)])),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(B))],ut);function dt(_0x13a61d){const _0x28c361=_0x5e988f;return _0x13a61d[_0x28c361(0x4bc)]()||void 0x0;}function ft(_0x223a51,_0x5236ec,_0x298b6f){const _0x23f625=_0x5e988f;var _0x27a215;return((_0x27a215=_0x223a51[_0x23f625(0x248)])==null?void 0x0:_0x27a215[_0x23f625(0x4bc)]())||_0x298b6f['t'](_0x23f625(0x2ec)+(0x0,e['getDrawingTypeNameKey'])(_0x223a51[_0x23f625(0x2aa)]))+'\x20'+(_0x5236ec+0x1);}function pt({PanelComponent:_0x339c5d=d[_0x5e988f(0x1c9)]}){const _0x2af8f5=_0x5e988f;var _0xf34764;let _0x1bc007=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x3e1)]),_0x33f4a8={'title':_0x1bc007['t'](_0x2af8f5(0x1de)),'empty':_0x1bc007['t'](_0x2af8f5(0x206)),'showAll':_0x1bc007['t'](_0x2af8f5(0x28c)),'hideAll':_0x1bc007['t'](_0x2af8f5(0x261)),'lockAll':_0x1bc007['t'](_0x2af8f5(0x472)),'unlockAll':_0x1bc007['t'](_0x2af8f5(0x42a)),'moveForward':_0x1bc007['t'](_0x2af8f5(0x421)),'moveBackward':_0x1bc007['t'](_0x2af8f5(0x348)),'close':_0x1bc007['t']('drawing-ui.objectListPanel.close'),'show':_0x1bc007['t'](_0x2af8f5(0x38f)),'hide':_0x1bc007['t'](_0x2af8f5(0x320)),'lock':_0x1bc007['t'](_0x2af8f5(0x3c4)),'unlock':_0x1bc007['t'](_0x2af8f5(0x219)),'lockHint':_0x1bc007['t'](_0x2af8f5(0x3fe)),'unlockHint':_0x1bc007['t'](_0x2af8f5(0x29f)),'name':_0x1bc007['t'](_0x2af8f5(0x2ff)),'nameInput':_0x1bc007['t'](_0x2af8f5(0x1a2)),'description':_0x1bc007['t'](_0x2af8f5(0x45e)),'descriptionPlaceholder':_0x1bc007['t'](_0x2af8f5(0x204)),'details':_0x1bc007['t'](_0x2af8f5(0x249)),'noSelection':_0x1bc007['t'](_0x2af8f5(0x367)),'locate':_0x1bc007['t'](_0x2af8f5(0x39a)),'expand':_0x1bc007['t'](_0x2af8f5(0x46a)),'collapse':_0x1bc007['t'](_0x2af8f5(0x458)),'dragToReorder':_0x1bc007['t'](_0x2af8f5(0x325)),'search':_0x1bc007['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x1bc007['t'](_0x2af8f5(0x45d)),'filterHidden':_0x1bc007['t'](_0x2af8f5(0x3c0)),'filterLocked':_0x1bc007['t'](_0x2af8f5(0x205)),'sectionCanvas':_0x1bc007['t'](_0x2af8f5(0x1da)),'sectionFloating':_0x1bc007['t'](_0x2af8f5(0x374))},_0x116976=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x32c)]),_0xc24890=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x4c8)]),_0x1670ee=(0x0,t[_0x2af8f5(0x252)])(m[_0x2af8f5(0x211)]),_0x214de9=(0x0,t[_0x2af8f5(0x252)])(s[_0x2af8f5(0x1bd)]),_0x50b08a=(0x0,t[_0x2af8f5(0x252)])(c[_0x2af8f5(0x18e)]),[,_0x1c8998]=(0x0,b[_0x2af8f5(0x479)])(_0x4ac52f=>_0x4ac52f+0x1,0x0),_0x775835=_0xc24890['getCurrentUnitOfType'](a[_0x2af8f5(0x15d)][_0x2af8f5(0x2ba)]),_0x48bf3d=(_0x775835==null?void 0x0:_0x775835[_0x2af8f5(0x39d)]())??'',_0x572597=(_0x775835==null||(_0xf34764=_0x775835[_0x2af8f5(0x4b0)]())==null?void 0x0:_0xf34764[_0x2af8f5(0x49a)]())??'',_0x53c46e=(0x0,t['useObservable'])(()=>_0x214de9[_0x2af8f5(0x15b)],_0x214de9[_0x2af8f5(0x166)](),!0x1,[_0x214de9]);(0x0,b[_0x2af8f5(0x339)])(()=>{const _0x123fee=_0x2af8f5;let _0x256019=_0x116976[_0x123fee(0x330)](()=>_0x1c8998());return()=>_0x256019[_0x123fee(0x4c1)]();},[_0x116976]);let _0xa8cb1=_0x48bf3d&&_0x572597?_0x1670ee[_0x2af8f5(0x454)](_0x48bf3d,_0x572597):{},_0x4bd553=(_0x48bf3d&&_0x572597?_0x1670ee[_0x2af8f5(0x3a5)](_0x48bf3d,_0x572597):[])[_0x2af8f5(0x4a5)](_0x3fa041=>_0xa8cb1[_0x3fa041])[_0x2af8f5(0x38d)](_0x584fac=>!!_0x584fac)[_0x2af8f5(0x159)](),_0x1ed8b0=_0x4bd553[_0x2af8f5(0x46b)]((_0x2f3c8f,_0x300e7b)=>(_0x2f3c8f[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x300e7b[_0x2af8f5(0x2aa)])]+=0x1,_0x2f3c8f),{'canvas':0x0,'floating':0x0}),_0x4ed84e={'canvas':0x0,'floating':0x0},_0x2e28fd=_0x4bd553[_0x2af8f5(0x4a5)]((_0x43af6b,_0x27c662)=>{const _0x213474=_0x2af8f5;let _0x1fd0e6=(0x0,d[_0x213474(0x426)])(_0x43af6b[_0x213474(0x2aa)]),_0x25d0bf=_0x1fd0e6===d[_0x213474(0x32d)],_0x4b2e0c=_0x4ed84e[_0x1fd0e6]++;return{'id':_0x43af6b[_0x213474(0x456)],'name':ft(_0x43af6b,_0x27c662,_0x1bc007),'description':_0x43af6b[_0x213474(0x240)],'visible':_0x43af6b[_0x213474(0x404)]!==!0x0,'selectable':_0x43af6b[_0x213474(0x2a7)]!==!0x1,'sectionId':_0x1fd0e6,'sectionTitle':_0x25d0bf?_0x33f4a8['sectionFloating']:_0x33f4a8[_0x213474(0x1ff)],'capabilities':_0x25d0bf?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x25d0bf&&_0x4b2e0c>0x0,'canMoveBackward':!_0x25d0bf&&_0x4b2e0c<_0x1ed8b0[_0x213474(0x3b5)]-0x1,'canReorder':!_0x25d0bf};}),_0x38e8d9=(0x0,b[_0x2af8f5(0x21f)])(()=>(_0x53c46e??[])[_0x2af8f5(0x38d)](_0x19a9a9=>_0x19a9a9[_0x2af8f5(0x346)]===_0x48bf3d&&_0x19a9a9[_0x2af8f5(0x369)]===_0x572597)[_0x2af8f5(0x4a5)](_0x5addff=>_0x5addff['drawingId']),[_0x53c46e,_0x572597,_0x48bf3d]),_0x1f6b22=_0x38e8d9[_0x38e8d9['length']-0x1]??null,_0x125d6c=_0xb9695e=>_0x1670ee[_0x2af8f5(0x2fc)]({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0xb9695e})??null,_0x5801e0=async _0x56c3be=>{const _0x3307fd=_0x2af8f5;_0x48bf3d&&_0x56c3be[_0x3307fd(0x2b6)]&&await _0x116976[_0x3307fd(0x32b)](m[_0x3307fd(0x397)]['id'],{'unitId':_0x48bf3d,'drawings':_0x56c3be});},_0x4b43bd=async(_0x138dd3,_0x3c8d5e)=>{_0x125d6c(_0x138dd3)&&await _0x5801e0([{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x138dd3,..._0x3c8d5e}]);},_0x41ce12=(_0x41f355,_0xb7c783)=>{const _0x534b19=_0x2af8f5;if(!_0x48bf3d||!_0x572597)return;let _0xee4a03=_0xb7c783?_0x38e8d9['includes'](_0x41f355)?_0x38e8d9[_0x534b19(0x38d)](_0xafc8e3=>_0xafc8e3!==_0x41f355):[..._0x38e8d9,_0x41f355]:[_0x41f355];_0x116976[_0x534b19(0x185)](s[_0x534b19(0x3ab)]['id'],_0xee4a03[_0x534b19(0x4a5)](_0x574191=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x574191})));let _0x113415=_0xee4a03[_0xee4a03[_0x534b19(0x2b6)]-0x1];_0x113415?(0x0,e[_0x534b19(0x1c6)])(_0x50b08a,{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x113415}):(0x0,e['clearActiveDrawingObjects'])(_0x50b08a,_0x48bf3d);},_0x7e5fb1=async(_0x3d204f,_0x59fc25)=>{const _0x48d7f4=_0x2af8f5;await _0x5801e0(_0x3d204f[_0x48d7f4(0x4a5)](_0xcf6052=>_0x125d6c(_0xcf6052))[_0x48d7f4(0x38d)](_0x341b40=>!!_0x341b40)[_0x48d7f4(0x38d)](_0x1fcb9c=>_0x1fcb9c[_0x48d7f4(0x404)]!==!0x0!==_0x59fc25)['map'](_0xdb8fc5=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0xdb8fc5[_0x48d7f4(0x456)],'hidden':!_0x59fc25})));},_0x2f6d29=async(_0x4bde17,_0x4c64c4)=>{const _0x434c32=_0x2af8f5;await _0x5801e0(_0x4bde17[_0x434c32(0x4a5)](_0x4eedbf=>_0x125d6c(_0x4eedbf))[_0x434c32(0x38d)](_0x121f43=>!!_0x121f43)[_0x434c32(0x38d)](_0x1c37d6=>_0x1c37d6[_0x434c32(0x2a7)]!==!0x1!==_0x4c64c4)[_0x434c32(0x4a5)](_0x5f075a=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x5f075a[_0x434c32(0x456)],'selectable':_0x4c64c4})));},_0x123b2e=_0x787d26=>{const _0x410b32=_0x2af8f5;let _0x39a9d5=_0x125d6c(_0x787d26);if(_0x39a9d5)return _0x2f6d29([_0x787d26],_0x39a9d5[_0x410b32(0x2a7)]===!0x1);},_0x36f3d7=async(_0x3a6262,_0xaf26b2)=>{const _0x454c41=_0x2af8f5;var _0x321e55;let _0x421c2a=dt(_0xaf26b2);(((_0x321e55=_0x125d6c(_0x3a6262))==null?void 0x0:_0x321e55[_0x454c41(0x248)])??void 0x0)!==_0x421c2a&&await _0x4b43bd(_0x3a6262,{'name':_0x421c2a});},_0x366d44=async(_0x52e2c4,_0x42cc2c)=>{const _0xfde096=_0x2af8f5;var _0x1a0646;let _0x5921c6=dt(_0x42cc2c);(((_0x1a0646=_0x125d6c(_0x52e2c4))==null?void 0x0:_0x1a0646[_0xfde096(0x240)])??void 0x0)!==_0x5921c6&&await _0x4b43bd(_0x52e2c4,{'description':_0x5921c6});},_0x4c3adb=async(_0x146020,_0xffb963)=>{const _0x1fa826=_0x2af8f5;_0x48bf3d&&_0x572597&&await _0x116976[_0x1fa826(0x32b)](m[_0x1fa826(0x4f0)]['id'],{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingIds':[_0x146020],'arrangeType':_0xffb963});};return!_0x48bf3d||!_0x572597?(0x0,p['jsx'])(_0x2af8f5(0x498),{'className':_0x2af8f5(0x3b2),'children':_0x33f4a8[_0x2af8f5(0x27e)]}):(0x0,p[_0x2af8f5(0x347)])(_0x339c5d,{'labels':_0x33f4a8,'items':_0x2e28fd,'selectedIds':_0x38e8d9,'focusedId':_0x1f6b22,'showHeader':!0x1,'onSelect':_0x41ce12,'onSetVisible':_0x7e5fb1,'onSetSelectable':_0x2f6d29,'onCommitName':_0x36f3d7,'onCommitDescription':_0x366d44,'onMoveForward':async _0x11c62b=>_0x4c3adb(_0x11c62b,a['ArrangeTypeEnum'][_0x2af8f5(0x2d0)]),'onMoveBackward':async _0x38f56e=>_0x4c3adb(_0x38f56e,a[_0x2af8f5(0x493)][_0x2af8f5(0x33e)]),'onToggleSelectable':_0x123b2e});}function mt(){const _0x223423=_0x5e988f;return(0x0,p[_0x223423(0x347)])(pt,{'PanelComponent':d[_0x223423(0x1fa)]});}let ht=class extends a[_0x5e988f(0x302)]{constructor(_0x4fa77a,_0x50da00){const _0x33683b=_0x5e988f;super(),this[_0x33683b(0x36f)](_0x4fa77a[_0x33683b(0x3b6)](I,mt)),this[_0x33683b(0x36f)](_0x50da00[_0x33683b(0x3b6)]({'BottomIcon':y[_0x33683b(0x4dc)],'FlipHorizontalIcon':y[_0x33683b(0x197)],'FlipVerticalIcon':y[_0x33683b(0x336)],'MoveDownIcon':y[_0x33683b(0x29a)],'MoveUpIcon':y['MoveUpIcon'],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x33683b(0x4cd)],'TopmostIcon':y[_0x33683b(0x312)]})),this['disposeWithMe'](_0x4fa77a[_0x33683b(0x3b6)](le,ge)),this[_0x33683b(0x36f)](_0x4fa77a['register'](ue,pe)),_0x4fa77a['hasDefault'](d[_0x33683b(0x237)])||this[_0x33683b(0x36f)](_0x4fa77a['register'](d[_0x33683b(0x237)],me));}};ht=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(t['ComponentManager'])),k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x267)]))],ht);let H=class extends a[_0x5e988f(0x302)]{constructor(_0x56fe33){const _0x4f6ae4=_0x5e988f;super(),this[_0x4f6ae4(0x29d)]=_0x56fe33,E(this,_0x4f6ae4(0x420),new u[(_0x4f6ae4(0x3bc))](null)),E(this,_0x4f6ae4(0x3db),this[_0x4f6ae4(0x420)][_0x4f6ae4(0x310)]()),E(this,_0x4f6ae4(0x4e9),new u[(_0x4f6ae4(0x3bc))](!0x1)),E(this,_0x4f6ae4(0x19e),this[_0x4f6ae4(0x4e9)][_0x4f6ae4(0x310)]()),E(this,'_completionFrame',void 0x0),this[_0x4f6ae4(0x36f)](this[_0x4f6ae4(0x29d)][_0x4f6ae4(0x177)][_0x4f6ae4(0x24c)](()=>{const _0x982d28=_0x4f6ae4;let _0x148dbd=this[_0x982d28(0x4cb)]();_0x148dbd!=null&&_0x148dbd[_0x982d28(0x29c)]&&!this[_0x982d28(0x283)](_0x148dbd)&&this[_0x982d28(0x470)](null);}));}[_0x5e988f(0x4c1)](){const _0x74372f=_0x5e988f;this['_clearCompletionFrame'](),this[_0x74372f(0x420)]['next'](null),this[_0x74372f(0x420)][_0x74372f(0x3c7)](),this[_0x74372f(0x4e9)]['next'](!0x1),this['_onSavingEditorData$'][_0x74372f(0x3c7)](),super['dispose']();}[_0x5e988f(0x470)](_0x4805e7){const _0x3f6e1f=_0x5e988f;(_0x4805e7==null||!_0x4805e7[_0x3f6e1f(0x29c)]||this[_0x3f6e1f(0x283)](_0x4805e7))&&(this['_clearCompletionFrame'](),this[_0x3f6e1f(0x420)][_0x3f6e1f(0x3b7)](_0x4805e7),(_0x4805e7==null||_0x4805e7[_0x3f6e1f(0x29c)]&&this[_0x3f6e1f(0x4e9)]['getValue']())&&this[_0x3f6e1f(0x4e9)]['next'](!0x1));}[_0x5e988f(0x225)](_0x157cc1){const _0x14824c=_0x5e988f;this[_0x14824c(0x4e9)][_0x14824c(0x3b7)](_0x157cc1);}[_0x5e988f(0x4cb)](){const _0x38711d=_0x5e988f;return this['_editingParams$'][_0x38711d(0x411)]();}['_canEdit'](_0x3a7478){const _0x5b3563=_0x5e988f;let _0x60581e=this[_0x5b3563(0x29d)]['getPermissionPoint'](new o[(_0x5b3563(0x4ee))](_0x3a7478[_0x5b3563(0x346)])['id']),_0x263185=this[_0x5b3563(0x29d)][_0x5b3563(0x212)](new o['WorksheetEditPermission'](_0x3a7478[_0x5b3563(0x346)],_0x3a7478['subUnitId'])['id']);return((_0x60581e==null?void 0x0:_0x60581e[_0x5b3563(0x321)])??!0x0)&&((_0x263185==null?void 0x0:_0x263185[_0x5b3563(0x321)])??!0x0);}['completeEditing'](_0x6836d3){const _0x339f43=_0x5e988f;let _0x21e448=this['getEditing']();_0x21e448&&this[_0x339f43(0x394)]===void 0x0&&(this[_0x339f43(0x225)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0xf0feb9=_0x339f43;this[_0xf0feb9(0x394)]=void 0x0,this['getEditing']()===_0x21e448&&this['setEditing'](null);}));}[_0x5e988f(0x3aa)](){const _0x29a296=_0x5e988f;this[_0x29a296(0x394)]!==void 0x0&&(cancelAnimationFrame(this[_0x29a296(0x394)]),this[_0x29a296(0x394)]=void 0x0);}[_0x5e988f(0x33a)](){const _0x327136=_0x5e988f;this[_0x327136(0x4cb)]()&&this[_0x327136(0x470)](null);}};H=A([k(0x0,a[_0x5e988f(0x44a)])],H);let gt=class extends a[_0x5e988f(0x302)]{constructor(_0x5e4979,_0x2965ad,_0xb5b78,_0x389c70,_0x5c81b7,_0x26318a){const _0x57dde2=_0x5e988f;super(),this[_0x57dde2(0x4ac)]=_0x5e4979,this[_0x57dde2(0x3f1)]=_0x2965ad,this[_0x57dde2(0x28f)]=_0xb5b78,this[_0x57dde2(0x2f6)]=_0x389c70,this[_0x57dde2(0x3c1)]=_0x5c81b7,this[_0x57dde2(0x4d2)]=_0x26318a,E(this,_0x57dde2(0x25a),null),this[_0x57dde2(0x223)](),this[_0x57dde2(0x1ab)](),this[_0x57dde2(0x471)]();}['_initEvents'](){const _0x27f42e=_0x5e988f;let {scene:_0x4657ae}=this[_0x27f42e(0x4ac)];this[_0x27f42e(0x36f)](_0x4657ae[_0x27f42e(0x1aa)][_0x27f42e(0x194)](_0x269d94=>{const _0x325b8d=_0x27f42e;let {offsetX:_0x462a6b,offsetY:_0x21d98c}=_0x269d94,_0x5dfb4e=_0x4657ae[_0x325b8d(0x462)](c[_0x325b8d(0x459)]['FromArray']([_0x462a6b,_0x21d98c]));if(_0x5dfb4e instanceof D){let _0x47453d=this[_0x325b8d(0x4d2)][_0x325b8d(0x2c6)](_0x5dfb4e[_0x325b8d(0x346)],_0x5dfb4e[_0x325b8d(0x369)],_0x5dfb4e[_0x325b8d(0x3cd)]);if((0x0,n[_0x325b8d(0x3a7)])(this[_0x325b8d(0x4d2)][_0x325b8d(0x2d9)](_0x5dfb4e['unitId'],_0x5dfb4e['subUnitId'],_0x5dfb4e['shapeId']))||_0x47453d!=null&&_0x47453d[_0x325b8d(0x2e3)]()[_0x325b8d(0x425)])return;this['_shapeTextEditingService'][_0x325b8d(0x470)]({'visible':!0x0,'unitId':_0x5dfb4e[_0x325b8d(0x346)],'subUnitId':_0x5dfb4e[_0x325b8d(0x369)],'shapeId':_0x5dfb4e[_0x325b8d(0x3cd)],'shapeKey':_0x5dfb4e[_0x325b8d(0x4de)]});}}));}[_0x5e988f(0x1ab)](){const _0x821e20=_0x5e988f;this[_0x821e20(0x36f)](this['_drawingManagerService']['focus$'][_0x821e20(0x24c)](_0x42138c=>{const _0x53c38a=_0x821e20;if(_0x42138c['length']===0x1){let _0x484520=_0x42138c[0x0],_0x41f606=this[_0x53c38a(0x2f6)][_0x53c38a(0x2fc)](_0x484520);if((_0x41f606==null?void 0x0:_0x41f606[_0x53c38a(0x2aa)])===a[_0x53c38a(0x181)]['DRAWING_SHAPE']){var _0x2685e3;let _0xca67d=this[_0x53c38a(0x28f)][_0x53c38a(0x4cb)]();if((_0xca67d==null?void 0x0:_0xca67d[_0x53c38a(0x3cd)])===_0x484520[_0x53c38a(0x456)]&&_0xca67d[_0x53c38a(0x29c)])return;let _0x4f876c=(0x0,n[_0x53c38a(0x3a7)])(this[_0x53c38a(0x4d2)][_0x53c38a(0x2d9)](_0x484520['unitId'],_0x484520[_0x53c38a(0x369)],_0x484520[_0x53c38a(0x456)])),_0x42226b=!!((_0x2685e3=this[_0x53c38a(0x4d2)][_0x53c38a(0x2c6)](_0x484520[_0x53c38a(0x346)],_0x484520[_0x53c38a(0x369)],_0x484520[_0x53c38a(0x456)]))!=null&&_0x2685e3[_0x53c38a(0x2e3)]()[_0x53c38a(0x425)]);(_0x4f876c||_0x42226b)&&this[_0x53c38a(0x28f)][_0x53c38a(0x470)](null);}else this[_0x53c38a(0x28f)][_0x53c38a(0x311)]();}else this[_0x53c38a(0x28f)][_0x53c38a(0x311)]();})),this[_0x821e20(0x36f)](this[_0x821e20(0x2f6)][_0x821e20(0x463)]['subscribe'](_0x31f981=>{const _0x5771ac=_0x821e20;let _0x2cfd26=this[_0x5771ac(0x28f)][_0x5771ac(0x4cb)]();_0x2cfd26&&_0x31f981['some'](_0x568a7d=>_0x568a7d['drawingId']===_0x2cfd26[_0x5771ac(0x3cd)])&&this[_0x5771ac(0x28f)][_0x5771ac(0x470)](null);}));}[_0x5e988f(0x471)](){const _0x47e6d6=_0x5e988f;this[_0x47e6d6(0x36f)](this['_shapeTextEditingService'][_0x47e6d6(0x3db)][_0x47e6d6(0x24c)](_0xf706fe=>{const _0x17b089=_0x47e6d6;let {scene:_0x29c617}=this[_0x17b089(0x4ac)];if(this[_0x17b089(0x25a)]){let _0x326f81=_0x29c617[_0x17b089(0x300)](this[_0x17b089(0x25a)]);_0x326f81&&_0x326f81[_0x17b089(0x470)](!0x1);}if(_0xf706fe){let _0x3feb96=!!_0xf706fe['visible'],_0x179b49=_0x29c617[_0x17b089(0x300)](_0xf706fe['shapeKey']);_0x179b49&&(_0x179b49[_0x17b089(0x470)](_0x3feb96),this[_0x17b089(0x25a)]=_0xf706fe[_0x17b089(0x3b3)]),this['_contextService'][_0x17b089(0x1db)](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x3feb96);}else this[_0x17b089(0x25a)]=null,this[_0x17b089(0x3c1)][_0x17b089(0x1db)](a[_0x17b089(0x34c)],!0x1);}));}};gt=A([k(0x1,(0x0,a['Inject'])(a[_0x5e988f(0x393)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(H)),k(0x3,s['IDrawingManagerService']),k(0x4,a['IContextService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],gt);var _t=class extends gt{['_initEvents'](){const _0x1844f0=_0x5e988f;let {scene:_0x21c3f2}=this['_context'],_0x5b4669=this[_0x1844f0(0x3f1)][_0x1844f0(0x329)](e[_0x1844f0(0x1b5)]);this[_0x1844f0(0x36f)](_0x21c3f2[_0x1844f0(0x1aa)]['subscribeEvent'](_0x5abc7f=>{const _0x1e0066=_0x1844f0;let {offsetX:_0x1a2228,offsetY:_0x3365af}=_0x5abc7f,_0x281546=_0x21c3f2[_0x1e0066(0x462)](c[_0x1e0066(0x459)][_0x1e0066(0x39b)]([_0x1a2228,_0x3365af]));if(!(_0x281546 instanceof D))return;let _0xca2821=this[_0x1e0066(0x4d2)][_0x1e0066(0x2c6)](_0x281546[_0x1e0066(0x346)],_0x281546[_0x1e0066(0x369)],_0x281546[_0x1e0066(0x3cd)]);(0x0,n[_0x1e0066(0x3a7)])(this[_0x1e0066(0x4d2)]['getShapeType'](_0x281546[_0x1e0066(0x346)],_0x281546[_0x1e0066(0x369)],_0x281546['shapeId']))||_0xca2821!=null&&_0xca2821['getShapeData']()[_0x1e0066(0x425)]||_0x5b4669[_0x1e0066(0x497)](_0x1e0066(0x3eb),{'hostType':a['UniverInstanceType'][_0x1e0066(0x2ba)],'unitId':_0x281546[_0x1e0066(0x346)],'subUnitId':_0x281546[_0x1e0066(0x369)],'shapeId':_0x281546[_0x1e0066(0x3cd)]});}));}};const vt={...rt};let U=class extends a[_0x5e988f(0x302)]{constructor(_0x3fe1df,_0x5b00ff,_0x5d80d0,_0x4d2f44,_0x10ee28,_0x405703,_0x1df256,_0x4f6329){const _0x59e207=_0x5e988f;super(),this[_0x59e207(0x32e)]=_0x3fe1df,this['_sheetsShapeService']=_0x5b00ff,this['_commandService']=_0x5d80d0,this[_0x59e207(0x2f6)]=_0x4d2f44,this[_0x59e207(0x46d)]=_0x10ee28,this[_0x59e207(0x3c1)]=_0x405703,this[_0x59e207(0x1ea)]=_0x1df256,this[_0x59e207(0x28f)]=_0x4f6329,E(this,_0x59e207(0x25e),null),this[_0x59e207(0x32e)]['mergeMenu'](vt),this['_registerFeatureMenu'](),this[_0x59e207(0x36f)](this['_shapeTextEditingService'][_0x59e207(0x3db)][_0x59e207(0x24c)](_0x3c9d19=>{_0x3c9d19&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x4a9999=_0x5e988f;this[_0x4a9999(0x25e)]||=this['disposeWithMe']((0x0,e[_0x4a9999(0x496)])(this[_0x4a9999(0x1ea)],a['UniverInstanceType']['UNIVER_SHEET'],_0x315621=>this[_0x4a9999(0x2ab)](_0x315621)));}['_registerFeatureMenu'](){const _0x4abee4=_0x5e988f;this[_0x4abee4(0x46d)][_0x4abee4(0x2fb)](a[_0x4abee4(0x181)][_0x4abee4(0x1d7)],(_0x50d46b,_0x37c49c,_0x1d11fd,_0x33b861)=>{const _0x3ad83c=_0x4abee4;let _0x4844e6=this['_sheetsShapeService'][_0x3ad83c(0x2bd)](_0x50d46b,_0x37c49c,_0x1d11fd),_0x5ecc3c=this[_0x3ad83c(0x4d2)][_0x3ad83c(0x4ea)](_0x50d46b,_0x37c49c,_0x1d11fd),_0x428b82=_0x4844e6!==void 0x0&&!(0x0,n[_0x3ad83c(0x3a7)])(_0x4844e6)&&!(_0x5ecc3c!=null&&_0x5ecc3c['formulaBinding']);return[{'label':_0x3ad83c(0x429),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'mode':'style'},'disable':!0x1},..._0x428b82?[{'label':_0x3ad83c(0x292),'index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'mode':_0x3ad83c(0x3eb)},'disable':!0x1}]:[],{'label':_0x3ad83c(0x1e5),'index':0x2,'commandId':m[_0x3ad83c(0x1b1)]['id'],'commandParams':{'unitId':_0x50d46b,'drawings':[{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'drawingType':_0x33b861}]},'disable':!0x1},{'label':_0x3ad83c(0x4d8),'index':0x3,'commandId':i[_0x3ad83c(0x4aa)]['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'shapeId':_0x1d11fd,'flipH':!0x0},'disable':!0x1},{'label':_0x3ad83c(0x1ce),'index':0x4,'commandId':i[_0x3ad83c(0x4aa)]['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'shapeId':_0x1d11fd,'flipV':!0x0},'disable':!0x1}];},_0x4abee4(0x3ed));}[_0x5e988f(0x2ab)](_0x172e98){const _0x31c8e2=_0x5e988f;let _0x1110ba=new a[(_0x31c8e2(0x1f5))](),_0x451b77=null,_0x1a3f8c=()=>{const _0xfe1573=_0x31c8e2;if(!_0x451b77)return;let _0x148a02=this['_drawingManagerService']['getFocusDrawings'](),_0x457c73=_0x148a02[_0xfe1573(0x2b6)]===0x0||_0x148a02[_0xfe1573(0x2b6)]===0x1&&_0x148a02['some'](_0x288de4=>_0x288de4['unitId']===(_0x451b77==null?void 0x0:_0x451b77[_0xfe1573(0x346)])&&_0x288de4[_0xfe1573(0x369)]===(_0x451b77==null?void 0x0:_0x451b77['subUnitId'])&&_0x288de4[_0xfe1573(0x456)]===(_0x451b77==null?void 0x0:_0x451b77['drawingId']));_0x451b77=null,_0x457c73&&(this[_0xfe1573(0x3c1)][_0xfe1573(0x1db)](a[_0xfe1573(0x281)],!0x1),this[_0xfe1573(0x2f6)][_0xfe1573(0x262)](null));};return _0x1110ba[_0x31c8e2(0x4b5)](_0x172e98[_0x31c8e2(0x37c)][_0x31c8e2(0x24c)](()=>{const _0xbeaf8f=_0x31c8e2;let _0x489c73=_0x172e98[_0xbeaf8f(0x1f4)]();if(_0x489c73[_0xbeaf8f(0x4bd)]>0x1){_0x1a3f8c();return;}let _0x1d0ea5=_0x489c73['values']()[_0xbeaf8f(0x3b7)]()[_0xbeaf8f(0x321)];if(!_0x1d0ea5){_0x1a3f8c();return;}let _0x33f8c7=this[_0xbeaf8f(0x2f6)][_0xbeaf8f(0x3ae)](_0x1d0ea5[_0xbeaf8f(0x4de)]);if(!_0x33f8c7||_0x33f8c7[_0xbeaf8f(0x2aa)]!==a[_0xbeaf8f(0x181)][_0xbeaf8f(0x1d7)]){_0x1a3f8c();return;}let {unitId:_0x45be6b,subUnitId:_0x22b0e0,drawingId:_0x5d4873}=_0x33f8c7;_0x451b77={'unitId':_0x45be6b,'subUnitId':_0x22b0e0,'drawingId':_0x5d4873},this[_0xbeaf8f(0x3c1)][_0xbeaf8f(0x1db)](a['FOCUSING_COMMON_DRAWINGS'],!0x0),this[_0xbeaf8f(0x2f6)]['getFocusDrawings']()[_0xbeaf8f(0x2d1)](_0x381644=>_0x381644[_0xbeaf8f(0x346)]===_0x45be6b&&_0x381644['subUnitId']===_0x22b0e0&&_0x381644[_0xbeaf8f(0x456)]===_0x5d4873)||this[_0xbeaf8f(0x2f6)][_0xbeaf8f(0x262)]([{'unitId':_0x45be6b,'subUnitId':_0x22b0e0,'drawingId':_0x5d4873}]);})),_0x1110ba[_0x31c8e2(0x4b5)](_0x172e98[_0x31c8e2(0x384)][_0x31c8e2(0x24c)](()=>{_0x1a3f8c();})),(0x0,a[_0x31c8e2(0x1cc)])(()=>{const _0x25498b=_0x31c8e2;_0x1110ba[_0x25498b(0x4c1)](),_0x1a3f8c();});}[_0x5e988f(0x3dd)](){const _0x4d77a5=_0x5e988f;this[_0x4d77a5(0x3c1)]['setContextValue'](a[_0x4d77a5(0x281)],!0x1),this[_0x4d77a5(0x2f6)][_0x4d77a5(0x262)](null);}};U=A([k(0x0,t[_0x5e988f(0x222)]),k(0x1,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x2,a[_0x5e988f(0x32c)]),k(0x3,s['IDrawingManagerService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(l['SheetCanvasPopManagerService'])),k(0x5,a[_0x5e988f(0x449)]),k(0x6,c[_0x5e988f(0x18e)]),k(0x7,(0x0,a[_0x5e988f(0x334)])(H))],U);function yt(_0x192fab,_0x81db31,_0x4cf53c,_0x237567){const _0x1a35a7=_0x5e988f;let _0x36fd7a=(0x0,s[_0x1a35a7(0x1f8)])(_0x192fab,_0x81db31,_0x4cf53c),_0x4c3360=[];for(let _0x38af52 of _0x81db31){let _0x32f372=_0x36fd7a[_0x1a35a7(0x3e0)][_0x1a35a7(0x329)](_0x38af52[_0x1a35a7(0x456)]),_0x4f832d=_0x237567(_0x38af52);_0x32f372&&_0x4f832d&&_0x4c3360['push']({'targetShapeId':_0x32f372,'source':_0x4f832d});}return _0x4c3360;}let W=class extends a[_0x5e988f(0x302)]{constructor(_0x115a28,_0x18eb8c,_0x12da0d,_0x20ac6a){const _0x5da3f2=_0x5e988f;super(),this[_0x5da3f2(0x3fa)]=_0x115a28,this[_0x5da3f2(0x4a1)]=_0x18eb8c,this[_0x5da3f2(0x345)]=_0x12da0d,this[_0x5da3f2(0x4d2)]=_0x20ac6a,this[_0x5da3f2(0x272)]();}[_0x5e988f(0x272)](){const _0x4a7126=_0x5e988f;this['disposeWithMe'](this['_sheetInterceptorService'][_0x4a7126(0x314)]({'getMutations':_0x558cc6=>{const _0x6951fa=_0x4a7126;if(_0x558cc6['id']===o[_0x6951fa(0x3b9)]['id']){let _0x310cd8=(0x0,o[_0x6951fa(0x303)])(this[_0x6951fa(0x3fa)],_0x558cc6['params']);if(!_0x310cd8)return{'redos':[],'undos':[]};let {unitId:_0x5bda83,subUnitId:_0x234d97}=_0x310cd8,_0x531417=this['_sheetDrawingService'][_0x6951fa(0x454)](_0x5bda83,_0x234d97),_0x4404c1=Object[_0x6951fa(0x3c9)](_0x531417)[_0x6951fa(0x38d)](_0x2dbe1b=>_0x2dbe1b[_0x6951fa(0x2aa)]===a[_0x6951fa(0x181)][_0x6951fa(0x1d7)]);if(_0x4404c1[_0x6951fa(0x2b6)]===0x0)return{'redos':[],'undos':[]};let _0x4a0ebe=[],_0x3bce02=[];for(let _0xfb2795=0x0;_0xfb2795<_0x4404c1[_0x6951fa(0x2b6)];_0xfb2795++){let _0x2f5861=_0x4404c1[_0xfb2795],_0x24c313=this['_sheetsShapeService'][_0x6951fa(0x2c6)](_0x2f5861[_0x6951fa(0x346)],_0x2f5861['subUnitId'],_0x2f5861[_0x6951fa(0x456)]);_0x24c313&&(_0x4a0ebe[_0x6951fa(0x4d5)]({'id':i[_0x6951fa(0x385)]['id'],'params':{'unitId':_0x5bda83,'subUnitId':_0x234d97,'shapeId':_0x2f5861[_0x6951fa(0x456)]}}),_0x3bce02['push']({'id':i[_0x6951fa(0x2c7)]['id'],'params':{'unitId':_0x5bda83,'subUnitId':_0x234d97,'shapeId':_0x2f5861[_0x6951fa(0x456)],'shapeType':_0x24c313[_0x6951fa(0x2d9)](),'shapeData':JSON['parse'](JSON['stringify'](_0x24c313[_0x6951fa(0x2e3)]()))}}));}return{'redos':_0x4a0ebe,'undos':_0x3bce02};}if(_0x558cc6['id']===o[_0x6951fa(0x1bc)]['id']){let {unitId:_0x2dcc0f,subUnitId:_0x1a6e8e,targetSubUnitId:_0x5d0231,copyContext:_0x1b0d33}=_0x558cc6[_0x6951fa(0x217)];if(!_0x2dcc0f||!_0x1a6e8e||!_0x5d0231)return{'redos':[],'undos':[]};let _0x1119a8=this['_sheetDrawingService']['getDrawingData'](_0x2dcc0f,_0x1a6e8e),_0xa937e7=Object[_0x6951fa(0x3c9)](_0x1119a8)[_0x6951fa(0x38d)](_0x26c176=>_0x26c176[_0x6951fa(0x2aa)]===a[_0x6951fa(0x181)]['DRAWING_SHAPE']);if(_0xa937e7[_0x6951fa(0x2b6)]===0x0)return{'redos':[],'undos':[]};let _0x45f33a=yt(_0x1b0d33,_0xa937e7,{'unitId':_0x2dcc0f,'sourceSubUnitId':_0x1a6e8e,'targetSubUnitId':_0x5d0231},_0x6844d8=>{const _0x482675=_0x6951fa;let _0x31efee=this[_0x482675(0x4d2)][_0x482675(0x2c6)](_0x6844d8['unitId'],_0x6844d8[_0x482675(0x369)],_0x6844d8[_0x482675(0x456)]);if(_0x31efee)return{'shapeType':_0x31efee[_0x482675(0x2d9)](),'shapeData':JSON['parse'](JSON[_0x482675(0x1ad)](_0x31efee['getShapeData']()))};}),_0x5303d1=[],_0x11ce02=[];for(let {targetShapeId:_0x2bf9b9,source:_0x12bb70}of _0x45f33a)_0x5303d1['push']({'id':i[_0x6951fa(0x2c7)]['id'],'params':{'unitId':_0x2dcc0f,'subUnitId':_0x5d0231,'shapeId':_0x2bf9b9,'shapeType':_0x12bb70[_0x6951fa(0x1e6)],'shapeData':_0x12bb70[_0x6951fa(0x192)]}}),_0x11ce02[_0x6951fa(0x4d5)]({'id':i[_0x6951fa(0x385)]['id'],'params':{'unitId':_0x2dcc0f,'subUnitId':_0x5d0231,'shapeId':_0x2bf9b9}});return{'redos':_0x5303d1,'undos':_0x11ce02};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a['Inject'])(a[_0x5e988f(0x4c8)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(o['SheetInterceptorService'])),k(0x2,(0x0,a[_0x5e988f(0x334)])(m[_0x5e988f(0x211)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],W);let G=class extends a[_0x5e988f(0x302)]{constructor(_0x4df38a,_0x20ffc9,_0x3b5d84,_0x26f248,_0x123c47,_0x31d5f9){const _0x22c53d=_0x5e988f;super(),this[_0x22c53d(0x263)]=_0x4df38a,this[_0x22c53d(0x1ea)]=_0x20ffc9,this[_0x22c53d(0x2f6)]=_0x3b5d84,this[_0x22c53d(0x46e)]=_0x26f248,this[_0x22c53d(0x285)]=_0x123c47,this['_sheetDrawingShapeRenderController']=_0x31d5f9,E(this,_0x22c53d(0x2df),new Set()),this['_initialize']();}['_initialize'](){const _0x3437b2=_0x5e988f;this[_0x3437b2(0x1d2)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x3e7c0d=_0x5e988f;this[_0x3e7c0d(0x36f)](this['_drawingManagerService'][_0x3e7c0d(0x484)][_0x3e7c0d(0x24c)](_0x527b87=>{const _0x489ec4=_0x3e7c0d;this[_0x489ec4(0x3d0)](_0x527b87);}));}[_0x5e988f(0x485)](){const _0x98700=_0x5e988f;this['disposeWithMe'](this[_0x98700(0x263)][_0x98700(0x330)]((_0x2665c3,_0xf3c8a6)=>{const _0x17d276=_0x98700;if(_0x2665c3['id']===i[_0x17d276(0x17c)]['id']){let {unitId:_0x1fa2b0,subUnitId:_0x4c3742,shapeId:_0x2973e9}=_0x2665c3[_0x17d276(0x217)],_0x5864ed=this['_getSceneAndTransformerByDrawingSearch'](_0x1fa2b0),_0x383fe1=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1fa2b0,'subUnitId':_0x4c3742,'drawingId':_0x2973e9}),_0x14e4f0=_0x5864ed==null?void 0x0:_0x5864ed[_0x17d276(0x466)][_0x17d276(0x300)](_0x383fe1);_0x14e4f0&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x14e4f0),this[_0x17d276(0x20e)][_0x17d276(0x2de)](_0x14e4f0,{'unitId':_0x1fa2b0,'subUnitId':_0x4c3742,'shapeId':_0x2973e9}),_0x14e4f0[_0x17d276(0x213)](!0x0));}else{if(_0x2665c3['id']===i[_0x17d276(0x2c7)]['id']){var _0x41bd77;let {unitId:_0x1fc423,subUnitId:_0x20f3d1,shapeId:_0x5ac3f6}=_0x2665c3[_0x17d276(0x217)],_0x2ff6c3=this[_0x17d276(0x351)](_0x1fc423);if(_0x2ff6c3==null)return;let {scene:_0x524fc7}=_0x2ff6c3,_0x28f5e5=(0x0,s[_0x17d276(0x278)])({'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}),_0x3ffffe=_0x524fc7[_0x17d276(0x300)](_0x28f5e5);if(!((_0x41bd77=this[_0x17d276(0x1ea)][_0x17d276(0x188)](_0x1fc423))!=null&&_0x41bd77[_0x17d276(0x246)](l[_0x17d276(0x306)])[_0x17d276(0x4a3)](_0x20f3d1)))return!0x1;if(_0x3ffffe)return;if(_0xf3c8a6!=null&&_0xf3c8a6[_0x17d276(0x26a)]){queueMicrotask(()=>{this['_disposed']||this['_insertShapes']([{'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}]);});return;}this[_0x17d276(0x3d0)]([{'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}]);}}}));}[_0x5e988f(0x259)](){const _0x1d5686=_0x5e988f;this[_0x1d5686(0x36f)](this['_drawingManagerService'][_0x1d5686(0x34d)][_0x1d5686(0x24c)](_0x473e08=>{const _0x1d3390=_0x1d5686;_0x473e08[_0x1d3390(0x424)](_0x3fca93=>{const _0x3b2cfb=_0x1d3390;let {unitId:_0x14c4c4,subUnitId:_0x1b9156,drawingId:_0x599f64}=_0x3fca93,_0x42373e=this['_drawingManagerService'][_0x3b2cfb(0x2fc)](_0x3fca93);if(_0x42373e==null)return;let {transform:_0x57a6e7,drawingType:_0x138c56,srcRect:_0x3951d6,prstGeom:_0x6dc950}=_0x42373e;if(_0x138c56!==a['DrawingTypeEnum'][_0x3b2cfb(0x1d7)])return;let _0x3130d4=this[_0x3b2cfb(0x351)](_0x14c4c4);if(_0x3130d4==null)return;let {scene:_0x431fe7,transformer:_0x2fb5e0}=_0x3130d4;if(_0x57a6e7==null)return!0x0;let _0x21fc8b=(0x0,s[_0x3b2cfb(0x278)])({'unitId':_0x14c4c4,'subUnitId':_0x1b9156,'drawingId':_0x599f64}),_0x1b0c75=_0x431fe7[_0x3b2cfb(0x300)](_0x21fc8b);if(_0x1b0c75==null)return!0x0;_0x1b0c75[_0x3b2cfb(0x170)](_0x3951d6),_0x1b0c75['setPrstGeom'](_0x6dc950);});}));}[_0x5e988f(0x3d0)](_0x40a832){const _0x123dc5=_0x5e988f;for(let _0x592299 of _0x40a832){var _0x340253;let {unitId:_0x37cfc2,subUnitId:_0x4bb88b,drawingId:_0x45f4d5}=_0x592299,_0x443a2e=this['_getSceneAndTransformerByDrawingSearch'](_0x37cfc2),_0x472c7f=(_0x340253=(0x0,d[_0x123dc5(0x3cc)])(this[_0x123dc5(0x46e)],_0x37cfc2))==null?void 0x0:_0x340253['subUnitId'];if(_0x443a2e==null||_0x472c7f!==_0x4bb88b)return;let _0x38033d=(0x0,s[_0x123dc5(0x278)])({'unitId':_0x37cfc2,'subUnitId':_0x4bb88b,'drawingId':_0x45f4d5});if(this['_insertingShapeKeys'][_0x123dc5(0x4ec)](_0x38033d)||_0x443a2e[_0x123dc5(0x466)][_0x123dc5(0x300)](_0x38033d)!=null)return;let _0x478fd7=this[_0x123dc5(0x2f6)][_0x123dc5(0x2fc)](_0x592299);if(_0x478fd7==null||_0x478fd7['drawingType']!==a['DrawingTypeEnum'][_0x123dc5(0x1d7)])return;let _0x33024b=_0x478fd7[_0x123dc5(0x381)]||{};if((0x0,n[_0x123dc5(0x3a7)])(_0x33024b['shapeType'])){let _0x4800a5=_0x478fd7[_0x123dc5(0x2fd)];_0x4800a5&&(_0x478fd7[_0x123dc5(0x2fd)]={..._0x4800a5,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x123dc5(0x4b5)](_0x38033d);try{this[_0x123dc5(0x20e)]['renderDrawingShape'](_0x478fd7,_0x443a2e['scene']);}finally{this['_insertingShapeKeys'][_0x123dc5(0x362)](_0x38033d);}queueMicrotask(()=>{const _0x351192=_0x123dc5;if(this[_0x351192(0x474)])return;let _0x3d25b4=(0x0,s[_0x351192(0x278)])(_0x592299);if(!_0x443a2e[_0x351192(0x466)]['getObjectIncludeInGroup'](_0x3d25b4))return;let _0x79ca5e=this[_0x351192(0x2f6)][_0x351192(0x2fc)](_0x592299);_0x79ca5e&&this[_0x351192(0x2f6)]['refreshTransform']([_0x79ca5e]);});}}[_0x5e988f(0x351)](_0x1da82b){const _0x29ce51=_0x5e988f;if(_0x1da82b==null)return;let _0x2a1411=this[_0x29ce51(0x1ea)]['getRenderUnitById'](_0x1da82b),_0x37a586=_0x2a1411==null?void 0x0:_0x2a1411[_0x29ce51(0x466)];return _0x37a586==null?null:{'scene':_0x37a586,'transformer':_0x37a586['getTransformerByCreate']()};}};G=A([k(0x0,a[_0x5e988f(0x32c)]),k(0x1,c[_0x5e988f(0x18e)]),k(0x2,s[_0x5e988f(0x1bd)]),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(d['DrawingRenderService'])),k(0x5,(0x0,a[_0x5e988f(0x334)])(j))],G);const bt={'normal':{'fill':n[_0x5e988f(0x291)][_0x5e988f(0x49f)],'stroke':n['ShapeDefaultConfig'][_0x5e988f(0x2a2)],'strokeWidth':n[_0x5e988f(0x291)][_0x5e988f(0x1d1)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var xt=class extends c['Shape']{constructor(_0x1bdcac,_0xe542a0){const _0x415434=_0x5e988f;super(_0x1bdcac,_0xe542a0),E(this,_0x415434(0x18f),''),E(this,'_cxnIndex',-0x1),E(this,'_unitId',''),E(this,_0x415434(0x363),''),E(this,_0x415434(0x167),!0x1),_0xe542a0&&this[_0x415434(0x27b)](_0xe542a0);}[_0x5e988f(0x294)](){const _0x54d3ed=_0x5e988f;return{'unitId':this[_0x54d3ed(0x308)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x54d3ed(0x18f)],'cxnIndex':this[_0x54d3ed(0x2a8)]};}[_0x5e988f(0x2d2)](_0x51395b){const _0x25c4c3=_0x5e988f;this[_0x25c4c3(0x167)]!==_0x51395b&&(this['_isHighlighted']=_0x51395b,this['makeDirty'](!0x0));}[_0x5e988f(0x265)](){const _0x13ce7c=_0x5e988f;return this[_0x13ce7c(0x167)];}[_0x5e988f(0x27b)](_0x18b282){const _0x210c03=_0x5e988f;_0x18b282[_0x210c03(0x290)]!==void 0x0&&(this[_0x210c03(0x18f)]=_0x18b282['targetShapeId']),_0x18b282['cxnIndex']!==void 0x0&&(this['_cxnIndex']=_0x18b282[_0x210c03(0x4dd)]),_0x18b282['unitId']!==void 0x0&&(this[_0x210c03(0x308)]=_0x18b282[_0x210c03(0x346)]),_0x18b282[_0x210c03(0x369)]!==void 0x0&&(this[_0x210c03(0x363)]=_0x18b282[_0x210c03(0x369)]),_0x18b282[_0x210c03(0x265)]!==void 0x0&&(this['_isHighlighted']=_0x18b282[_0x210c03(0x265)]),this['transformByState']({'width':_0x18b282[_0x210c03(0x254)]??n[_0x210c03(0x291)]['cxnPointRadius']*0x2,'height':_0x18b282[_0x210c03(0x457)]??n[_0x210c03(0x291)][_0x210c03(0x3bb)]*0x2});}[_0x5e988f(0x22c)](_0x2502fb){const _0x1c79a5=_0x5e988f;let _0x17581f=this['_isHighlighted']?bt[_0x1c79a5(0x335)]:bt[_0x1c79a5(0x39f)];c[_0x1c79a5(0x1c8)][_0x1c79a5(0x370)](_0x2502fb,{'radius':n[_0x1c79a5(0x291)][_0x1c79a5(0x3bb)],'fill':_0x17581f[_0x1c79a5(0x35c)],'stroke':_0x17581f[_0x1c79a5(0x413)],'strokeWidth':_0x17581f['strokeWidth'],'evented':!0x0});}};let K=class extends a['Disposable']{constructor(_0x21dd8d,_0x58273f,_0xf98fa9,_0x3fafc5){const _0x4b1472=_0x5e988f;super(),this[_0x4b1472(0x4ac)]=_0x21dd8d,this[_0x4b1472(0x1ea)]=_0x58273f,this[_0x4b1472(0x2f6)]=_0xf98fa9,this[_0x4b1472(0x4d2)]=_0x3fafc5,E(this,_0x4b1472(0x2f1),[]),E(this,'_activeTargetShapeId',null),E(this,_0x4b1472(0x3f8),-0x1),E(this,'_currentScene',null),E(this,'_unitId',''),E(this,_0x4b1472(0x363),''),E(this,_0x4b1472(0x2ed),null);}[_0x5e988f(0x477)](_0x5976db,_0x5c3286,_0x408d3d,_0x2ddfcc){const _0xf71739=_0x5e988f;this['_currentScene']=_0x5976db,this['_unitId']=_0x5c3286,this[_0xf71739(0x363)]=_0x408d3d,this[_0xf71739(0x2ed)]=_0x2ddfcc;}['updateConnectionDetection'](_0x213fa6){const _0x383062=_0x5e988f;if(!this['_currentScene'])return null;let _0x54ca22=this[_0x383062(0x41c)](_0x213fa6);return _0x54ca22?(this['_activeTargetShapeId']!==_0x54ca22[_0x383062(0x3cd)]&&(this['_clearConnectionSites'](),this[_0x383062(0x34f)](_0x54ca22[_0x383062(0x3cd)],_0x54ca22['shapeModel']),this[_0x383062(0x344)]=_0x54ca22[_0x383062(0x3cd)]),this['_findNearestConnectionSite'](_0x213fa6)):(this['_activeTargetShapeId']!==null&&(this[_0x383062(0x19c)](),this[_0x383062(0x344)]=null),null);}[_0x5e988f(0x1f7)](){const _0x42c29f=_0x5e988f;this[_0x42c29f(0x19c)](),this[_0x42c29f(0x414)]=null,this['_activeTargetShapeId']=null,this[_0x42c29f(0x3f8)]=-0x1,this[_0x42c29f(0x2ed)]=null;}[_0x5e988f(0x40f)](){const _0x341f48=_0x5e988f;return this[_0x341f48(0x344)]===null||this[_0x341f48(0x3f8)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x341f48(0x3f8)]};}[_0x5e988f(0x41c)](_0x15bae6){const _0x2579e6=_0x5e988f;let _0x6a375b=this[_0x2579e6(0x2f6)][_0x2579e6(0x454)](this['_unitId'],this[_0x2579e6(0x363)]);for(let _0x770f9b of Object['keys'](_0x6a375b)){if(_0x770f9b===this[_0x2579e6(0x2ed)]||_0x6a375b[_0x770f9b][_0x2579e6(0x2aa)]!==a[_0x2579e6(0x181)][_0x2579e6(0x1d7)])continue;let _0xa3ace6=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this['_subUnitId'],_0x770f9b);if(!_0xa3ace6||(0x0,n['isConnectorShape'])(_0xa3ace6[_0x2579e6(0x2d9)]())||_0xa3ace6['getConnectionSiteList']()['length']===0x0||!this['_currentScene'])continue;let _0x14fe56=(0x0,s[_0x2579e6(0x278)])({'unitId':this['_unitId'],'subUnitId':this[_0x2579e6(0x363)],'drawingId':_0x770f9b}),_0xd89dd1=this[_0x2579e6(0x414)]['getObjectIncludeInGroup'](_0x14fe56);if(!_0xd89dd1)continue;let {left:_0xf54275,top:_0x6fe501,width:_0x1939f7,height:_0x1bdac1}=_0xd89dd1[_0x2579e6(0x27a)](),_0x27ed47=_0xf54275+_0x1939f7/0x2,_0x4a8780=_0x6fe501+_0x1bdac1/0x2,_0x530389=_0xd89dd1[_0x2579e6(0x2fd)][_0x2579e6(0x326)](),_0x457476=new c['Transform']([_0x530389[0x0],_0x530389[0x1],_0x530389[0x2],_0x530389[0x3],_0x27ed47,_0x4a8780]),_0x4d8a8f=_0xd89dd1[_0x2579e6(0x2c9)](),_0x40ce57=(_0xd89dd1[_0x2579e6(0x31d)]&&(_0x4d8a8f==null?void 0x0:_0x4d8a8f[_0x2579e6(0x187)])===c[_0x2579e6(0x40b)][_0x2579e6(0x43b)]?_0x4d8a8f[_0x2579e6(0x173)][_0x2579e6(0x44f)](_0x457476):_0x457476)['invert']()[_0x2579e6(0x42b)](_0x15bae6),_0x2ab3e7=_0x1939f7/0x2,_0x35a820=_0x1bdac1/0x2;if(_0x40ce57['x']>=-_0x2ab3e7-0x5&&_0x40ce57['x']<=_0x2ab3e7+0x5&&_0x40ce57['y']>=-_0x35a820-0x5&&_0x40ce57['y']<=_0x35a820+0x5)return{'shapeId':_0x770f9b,'shapeModel':_0xa3ace6};}return null;}[_0x5e988f(0x34f)](_0x30d3a5,_0x3bc867){const _0x4d70bf=_0x5e988f;if(!this[_0x4d70bf(0x414)])return;let _0xe66e0a=(0x0,s[_0x4d70bf(0x278)])({'unitId':this[_0x4d70bf(0x308)],'subUnitId':this[_0x4d70bf(0x363)],'drawingId':_0x30d3a5}),_0x2da2a6=this[_0x4d70bf(0x414)][_0x4d70bf(0x300)](_0xe66e0a);if(!_0x2da2a6)return;let {left:_0x3bc7b2,top:_0x45b7e0,width:_0x574e8f,height:_0x501179}=_0x2da2a6['getRealBound'](),_0xdae02e=_0x3bc7b2+_0x574e8f/0x2,_0x2b1934=_0x45b7e0+_0x501179/0x2,_0x2267ea=_0x2da2a6[_0x4d70bf(0x2fd)][_0x4d70bf(0x326)](),_0x26af12=new c[(_0x4d70bf(0x4e5))]([_0x2267ea[0x0],_0x2267ea[0x1],_0x2267ea[0x2],_0x2267ea[0x3],_0xdae02e,_0x2b1934]),_0x3c5c23=_0x2da2a6[_0x4d70bf(0x2c9)](),_0x53a693=_0x2da2a6[_0x4d70bf(0x31d)]&&(_0x3c5c23==null?void 0x0:_0x3c5c23[_0x4d70bf(0x187)])===c[_0x4d70bf(0x40b)][_0x4d70bf(0x43b)]?_0x3c5c23[_0x4d70bf(0x173)][_0x4d70bf(0x44f)](_0x26af12):_0x26af12;_0x3bc867['updateContext']({'width':_0x574e8f,'height':_0x501179});let _0x3d265a=_0x3bc867[_0x4d70bf(0x4b2)]();for(let _0x7e615b of _0x3d265a){let _0x12ac33=_0x7e615b['x']-_0x574e8f/0x2,_0x39cce3=_0x7e615b['y']-_0x501179/0x2,_0x321feb=_0x53a693[_0x4d70bf(0x42b)]({'x':_0x12ac33,'y':_0x39cce3}),_0x1fdfef=_0x321feb['x'],_0x55670f=_0x321feb['y'],_0x2466ec=new xt('connection-site-'+_0x30d3a5+'-'+_0x7e615b[_0x4d70bf(0x37a)],{'left':_0x1fdfef-n['ShapeDefaultConfig'][_0x4d70bf(0x3bb)],'top':_0x55670f-n['ShapeDefaultConfig']['cxnPointRadius'],'targetShapeId':_0x30d3a5,'cxnIndex':_0x7e615b['index'],'unitId':this[_0x4d70bf(0x308)],'subUnitId':this[_0x4d70bf(0x363)],'width':n[_0x4d70bf(0x291)][_0x4d70bf(0x3bb)]*0x2,'height':n[_0x4d70bf(0x291)][_0x4d70bf(0x3bb)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x4d70bf(0x2f1)][_0x4d70bf(0x4d5)](_0x2466ec),this[_0x4d70bf(0x414)]['addObject'](_0x2466ec,c[_0x4d70bf(0x245)]+0x2);}}[_0x5e988f(0x494)](_0x269d38){const _0x4f9b94=_0x5e988f;let _0x33c7c5=null,_0x3701c6=0x1/0x0,_0x550ade=null;for(let _0x578602 of this[_0x4f9b94(0x2f1)]){let _0x3fb264=_0x578602['left']+n[_0x4f9b94(0x291)][_0x4f9b94(0x3bb)],_0x366a68=_0x578602[_0x4f9b94(0x480)]+n['ShapeDefaultConfig']['cxnPointRadius'],_0x5e8b75=_0x269d38['x']-_0x3fb264,_0x1640d9=_0x269d38['y']-_0x366a68,_0x517f6c=Math['sqrt'](_0x5e8b75*_0x5e8b75+_0x1640d9*_0x1640d9);_0x517f6c<_0x3701c6&&(_0x3701c6=_0x517f6c,_0x33c7c5=_0x578602,_0x550ade={'x':_0x3fb264,'y':_0x366a68});}let _0x162633=_0x3701c6<=0xa&&_0x33c7c5?_0x33c7c5[_0x4f9b94(0x294)]()[_0x4f9b94(0x4dd)]:-0x1;if(_0x162633!==this[_0x4f9b94(0x3f8)]){for(let _0x86ac90 of this[_0x4f9b94(0x2f1)]){let _0x46df18=_0x86ac90['getConnectionInfo']();_0x86ac90[_0x4f9b94(0x2d2)](_0x46df18[_0x4f9b94(0x4dd)]===_0x162633);}this[_0x4f9b94(0x3f8)]=_0x162633;}if(_0x3701c6<=0xa&&_0x33c7c5&&_0x550ade){let _0x1a73e4=_0x33c7c5['getConnectionInfo'](),_0x190688=this[_0x4f9b94(0x37d)](_0x1a73e4['shapeId'],_0x1a73e4['cxnIndex']);return{'shapeId':_0x1a73e4[_0x4f9b94(0x3cd)],'cxnIndex':_0x1a73e4[_0x4f9b94(0x4dd)],'unitId':_0x1a73e4['unitId'],'subUnitId':_0x1a73e4[_0x4f9b94(0x369)],'worldPoint':_0x550ade,'angle':_0x190688};}return null;}['_getConnectionSiteAngle'](_0x20b1d3,_0x11e3cc){const _0x3a63fb=_0x5e988f;let _0x48b9b9=this[_0x3a63fb(0x4d2)][_0x3a63fb(0x2c6)](this['_unitId'],this[_0x3a63fb(0x363)],_0x20b1d3);if(!_0x48b9b9)return 0x0;let _0x6166f4=this[_0x3a63fb(0x2f6)]['getDrawingByParam']({'unitId':this[_0x3a63fb(0x308)],'subUnitId':this['_subUnitId'],'drawingId':_0x20b1d3});if(!(_0x6166f4!=null&&_0x6166f4[_0x3a63fb(0x2fd)]))return 0x0;let {width:_0x516a28=0x0,height:_0x4c43fc=0x0,flipX:_0x572a54=!0x1,flipY:_0x4f9758=!0x1}=_0x6166f4[_0x3a63fb(0x2fd)];_0x48b9b9[_0x3a63fb(0x162)]({'width':_0x516a28,'height':_0x4c43fc});let _0x4f65fe=_0x48b9b9[_0x3a63fb(0x4b2)]()[_0x3a63fb(0x2d1)](_0x404c4a=>_0x404c4a[_0x3a63fb(0x37a)]===_0x11e3cc);if(!_0x4f65fe)return 0x0;let _0x26bd69=_0x4f65fe[_0x3a63fb(0x47d)]/0xea60;return _0x572a54&&(_0x26bd69=0xb4-_0x26bd69),_0x4f9758&&(_0x26bd69=-_0x26bd69),_0x26bd69=(_0x26bd69%0x168+0x168)%0x168,_0x26bd69;}['_clearConnectionSites'](){const _0x514870=_0x5e988f;for(let _0x3d5f1d of this[_0x514870(0x2f1)])_0x3d5f1d['dispose']();this[_0x514870(0x2f1)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0xe6db14=_0x5e988f;this[_0xe6db14(0x19c)](),super[_0xe6db14(0x4c1)]();}};K=A([k(0x1,(0x0,a['Inject'])(c['IRenderManagerService'])),k(0x2,(0x0,a['Inject'])(s[_0x5e988f(0x1bd)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],K);let q=class extends a[_0x5e988f(0x302)]{constructor(_0x551e07,_0x6cfdd9,_0x1c9088,_0x31ba26,_0x5c30b6){const _0x3fa2d7=_0x5e988f;super(),this[_0x3fa2d7(0x4ce)]=_0x551e07,this[_0x3fa2d7(0x23d)]=_0x6cfdd9,this[_0x3fa2d7(0x345)]=_0x1c9088,this[_0x3fa2d7(0x442)]=_0x31ba26,this['_groupCopyPasteController']=_0x5c30b6,E(this,_0x3fa2d7(0x227),void 0x0),this[_0x3fa2d7(0x372)](),this[_0x3fa2d7(0x356)]();}get['_focusedDrawings'](){const _0x33a4ab=_0x5e988f;return this[_0x33a4ab(0x345)][_0x33a4ab(0x166)]();}[_0x5e988f(0x356)](){const _0x394dae=_0x5e988f;this['_groupCopyPasteController'][_0x394dae(0x2e5)](({fromUnitId:_0x5c33a4,fromSubUnitId:_0x46fb57,toUnitId:_0x5da5ce,toSubUnitId:_0xd91838,idMap:_0x1f5206})=>{const _0x20f6c8=_0x394dae;let _0x2203dc=[],_0x3e44a3=[];for(let [_0x292f87,_0x349f73]of _0x1f5206['entries']()){let _0x42c8d6=this[_0x20f6c8(0x442)][_0x20f6c8(0x2c6)](_0x5c33a4,_0x46fb57,_0x292f87);if(!_0x42c8d6)continue;let _0x5c97c3=_0x42c8d6['getShapeType'](),_0x46c5e5=JSON[_0x20f6c8(0x3ca)](JSON[_0x20f6c8(0x1ad)](_0x42c8d6['getShapeData']()));if(_0x46c5e5[_0x20f6c8(0x316)]){var _0x1ecec9,_0x4e3571;let _0x2505f7=(_0x1ecec9=_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)])==null?void 0x0:_0x1ecec9['shapeId'],_0x2bb729=(_0x4e3571=_0x46c5e5[_0x20f6c8(0x316)]['to'])==null?void 0x0:_0x4e3571[_0x20f6c8(0x3cd)],_0x58db0c=!_0x2505f7||_0x1f5206[_0x20f6c8(0x4ec)](_0x2505f7),_0x1bf82e=!_0x2bb729||_0x1f5206['has'](_0x2bb729);_0x58db0c&&_0x2505f7&&_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)]?_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)]={..._0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)],'shapeId':_0x1f5206[_0x20f6c8(0x329)](_0x2505f7)}:_0x46c5e5['relation']['from']=void 0x0,_0x1bf82e&&_0x2bb729&&_0x46c5e5[_0x20f6c8(0x316)]['to']?_0x46c5e5[_0x20f6c8(0x316)]['to']={..._0x46c5e5[_0x20f6c8(0x316)]['to'],'shapeId':_0x1f5206[_0x20f6c8(0x329)](_0x2bb729)}:_0x46c5e5[_0x20f6c8(0x316)]['to']=void 0x0;}_0x2203dc[_0x20f6c8(0x4d5)]({'id':i[_0x20f6c8(0x2c7)]['id'],'params':{'unitId':_0x5da5ce,'subUnitId':_0xd91838,'shapeId':_0x349f73,'shapeType':_0x5c97c3,'shapeData':_0x46c5e5}}),_0x3e44a3[_0x20f6c8(0x4d5)]({'id':i[_0x20f6c8(0x385)]['id'],'params':{'unitId':_0x5da5ce,'subUnitId':_0xd91838,'shapeId':_0x349f73}});}return{'redos':_0x2203dc,'undos':_0x3e44a3};});}['_initCopyPaste'](){const _0x3933ee=_0x5e988f;this[_0x3933ee(0x36f)](this[_0x3933ee(0x23d)][_0x3933ee(0x353)]({'id':_0x3933ee(0x405),'onBeforeCopyFocusedObject':(_0xc443a3,_0x2e5fd5,_0x37d3bd)=>{const _0x203a9e=_0x3933ee;this[_0x203a9e(0x227)]=null;let _0x22d3d6=this[_0x203a9e(0x476)][_0x203a9e(0x38d)](_0x5f609b=>_0x5f609b[_0x203a9e(0x2aa)]===a[_0x203a9e(0x181)]['DRAWING_SHAPE']);return _0x22d3d6[_0x203a9e(0x2b6)]!==0x0&&(this[_0x203a9e(0x227)]={'unitId':_0xc443a3,'subUnitId':_0x2e5fd5,'copyType':_0x37d3bd,'drawings':_0x22d3d6},!0x0);},'onBeforeCopy':(_0x38d5b6,_0x3cd911,_0x8ef981,_0x193758)=>{const _0x3d3ad8=_0x3933ee;this[_0x3d3ad8(0x227)]=null,this['_createCopyInfoByRange'](_0x38d5b6,_0x3cd911,_0x8ef981,_0x193758);},'onPasteCells':(_0x285e45,_0x581892,_0x5db83d,_0xa32bea)=>{const _0x1b1610=_0x3933ee;if(!_0xa32bea[_0x1b1610(0x47b)]||!_0x285e45||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x96f05e}=_0xa32bea;return _0x96f05e===l[_0x1b1610(0x2d7)][_0x1b1610(0x250)]?this['_generatePasteMutations'](_0x581892,this['_copyInfo'][_0x1b1610(0x201)]===l['COPY_TYPE']['CUT']):{'redos':[],'undos':[]};}}));}[_0x5e988f(0x23e)](_0x57561d,_0x10f2a9,_0x4f5282,_0x4b6b52){const _0x3b3a03=_0x5e988f;let _0x4ee6a2=this[_0x3b3a03(0x4ce)][_0x3b3a03(0x4a3)](_0x57561d,_0x10f2a9);if(!_0x4ee6a2)return;let _0x324426=(0x0,o[_0x3b3a03(0x22a)])(_0x4ee6a2,_0x4f5282);if(!_0x324426)return;let {startX:_0x32d3ee,endX:_0x3c2fc8,startY:_0x30bc9e,endY:_0x45ab8a}=_0x324426,_0x536218=this['_sheetDrawingService'][_0x3b3a03(0x454)](_0x57561d,_0x10f2a9),_0x43e1b5=[];for(let [_0x54e39f,_0x487e7b]of Object['entries'](_0x536218)){if(_0x487e7b['drawingType']!==a[_0x3b3a03(0x181)][_0x3b3a03(0x1d7)])continue;let {transform:_0x1249e5}=_0x487e7b;if(!_0x1249e5)continue;let {left:_0x377d15=0x0,top:_0x19c373=0x0,width:_0x28869c=0x0,height:_0xe17f5e=0x0}=_0x1249e5;_0x32d3ee<=_0x377d15&&_0x3c2fc8>=_0x377d15+_0x28869c&&_0x30bc9e<=_0x19c373&&_0x45ab8a>=_0x19c373+_0xe17f5e&&_0x43e1b5[_0x3b3a03(0x4d5)](_0x487e7b);}_0x43e1b5[_0x3b3a03(0x2b6)]>0x0&&(this[_0x3b3a03(0x227)]={'unitId':_0x57561d,'subUnitId':_0x10f2a9,'copyType':_0x4b6b52,'copyRange':_0x4f5282,'drawings':_0x43e1b5});}[_0x5e988f(0x3a1)](_0xaeb393,_0x37559c){const _0x2e0383=_0x5e988f;let {unitId:_0x49238b,subUnitId:_0x4c595d,range:_0x4c9c8d}=_0xaeb393,_0x365346=this['_sheetSkeletonService'][_0x2e0383(0x4a3)](_0x49238b,_0x4c595d);if(!_0x365346)return{'redos':[],'undos':[]};let _0x37da3c=(0x0,o['discreteRangeToRange'])(_0x4c9c8d),{unitId:_0x23c461,subUnitId:_0x22c9d2,copyRange:_0x1d6a44,drawings:_0x3fb99f}=this[_0x2e0383(0x227)],_0x52e799=this[_0x2e0383(0x4ce)][_0x2e0383(0x4a3)](_0x23c461,_0x22c9d2);if(!_0x52e799)return{'redos':[],'undos':[]};let _0x3d52a4;if(!_0x1d6a44){let _0x338d17=0x1/0x0,_0x5f04f0=0x1/0x0;for(let _0x1b4f17 of _0x3fb99f){let {left:_0x41e3e8=0x0,top:_0x3a7149=0x0}=_0x1b4f17['transform']??{};_0x41e3e8<_0x338d17&&(_0x338d17=_0x41e3e8),_0x3a7149<_0x5f04f0&&(_0x5f04f0=_0x3a7149);}_0x338d17!==0x1/0x0&&_0x5f04f0!==0x1/0x0&&(_0x3d52a4={'left':_0x338d17,'top':_0x5f04f0});}let _0x4afc80=new Map();if(!_0x37559c){for(let _0x4f367b of _0x3fb99f)_0x4afc80[_0x2e0383(0x33d)](_0x4f367b[_0x2e0383(0x456)],(0x0,a['generateRandomId'])());}let _0x3e0bb6=[],_0x49f236=[];for(let _0x37a51e of _0x3fb99f){let {drawingId:_0x571a5d,transform:_0x2c5cce,sheetTransform:_0x107610}=_0x37a51e;if(!_0x2c5cce||!_0x107610)continue;let _0x2349f0=this[_0x2e0383(0x1b6)]({'transform':_0x2c5cce,'sheetTransform':_0x107610},{'skeleton':_0x52e799,'range':_0x1d6a44},{'skeleton':_0x365346,'range':_0x37da3c},_0x3d52a4);if(_0x37559c){let {redos:_0x5a00a1,undos:_0x193dca}=this[_0x2e0383(0x1e4)]({'fromUnitId':_0x23c461,'fromSubUnitId':_0x22c9d2,'toUnitId':_0x49238b,'toSubUnitId':_0x4c595d,'drawing':_0x37a51e,'newTransforms':_0x2349f0});_0x3e0bb6[_0x2e0383(0x4d5)](..._0x5a00a1),_0x49f236[_0x2e0383(0x4d5)](..._0x193dca);continue;}let {redos:_0x5e4126,undos:_0x1f4ee9}=this[_0x2e0383(0x45a)]({'toUnitId':_0x49238b,'toSubUnitId':_0x4c595d,'drawing':_0x37a51e,'newTransforms':_0x2349f0,'newDrawingId':_0x4afc80[_0x2e0383(0x329)](_0x571a5d),'idMap':_0x4afc80});_0x3e0bb6[_0x2e0383(0x4d5)](..._0x5e4126),_0x49f236[_0x2e0383(0x4d5)](..._0x1f4ee9);}return{'redos':_0x3e0bb6,'undos':_0x49f236};}[_0x5e988f(0x1e4)](_0x4c503d){const _0x37c5ba=_0x5e988f;let {fromUnitId:_0x3f4810,fromSubUnitId:_0x502b43,toUnitId:_0x632c61,toSubUnitId:_0x452b3c,drawing:_0x2092c4,newTransforms:_0x49b3f5}=_0x4c503d,_0x3e7543={..._0x2092c4,'unitId':_0x632c61,'subUnitId':_0x452b3c,'transform':_0x49b3f5['transform'],'sheetTransform':_0x49b3f5[_0x37c5ba(0x444)]};if(_0x632c61===_0x3f4810&&_0x452b3c===_0x502b43){let {redo:_0x2feea6,undo:_0x39fb4c,objects:_0x1a45b6}=this[_0x37c5ba(0x345)][_0x37c5ba(0x2f7)]([_0x3e7543]);return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m['DrawingApplyType'][_0x37c5ba(0x4ad)],'op':_0x2feea6,'objects':_0x1a45b6}}],'undos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x4ad)],'op':_0x39fb4c,'objects':_0x1a45b6}}]};}{let _0x4fd500=this['_sheetDrawingService']['getBatchRemoveOp']([_0x2092c4]),_0x3eb4b5=this[_0x37c5ba(0x345)][_0x37c5ba(0x198)]([_0x3e7543]),_0x2a6869=this[_0x37c5ba(0x442)][_0x37c5ba(0x2c6)](_0x2092c4['unitId'],_0x2092c4[_0x37c5ba(0x369)],_0x2092c4[_0x37c5ba(0x456)]);if(!_0x2a6869)return{'redos':[],'undos':[]};let _0x1b5486=_0x2a6869[_0x37c5ba(0x2d9)](),_0x33fa68=JSON[_0x37c5ba(0x3ca)](JSON[_0x37c5ba(0x1ad)](_0x2a6869['getShapeData']()));return{'redos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x4f5)],'op':_0x4fd500[_0x37c5ba(0x331)],'objects':_0x4fd500[_0x37c5ba(0x396)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'shapeId':_0x2092c4[_0x37c5ba(0x456)]}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x30e)],'op':_0x3eb4b5[_0x37c5ba(0x331)],'objects':_0x3eb4b5['objects']}},{'id':i[_0x37c5ba(0x2c7)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'shapeId':_0x2092c4[_0x37c5ba(0x456)],'shapeType':_0x1b5486,'shapeData':_0x33fa68}}],'undos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'type':m['DrawingApplyType'][_0x37c5ba(0x30e)],'op':_0x4fd500[_0x37c5ba(0x4bb)],'objects':_0x4fd500[_0x37c5ba(0x396)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'shapeId':_0x2092c4[_0x37c5ba(0x456)],'shapeType':_0x1b5486,'shapeData':_0x33fa68}},{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)]['REMOVE'],'op':_0x3eb4b5[_0x37c5ba(0x4bb)],'objects':_0x3eb4b5[_0x37c5ba(0x396)]}},{'id':i[_0x37c5ba(0x385)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'shapeId':_0x2092c4[_0x37c5ba(0x456)]}}]};}}['_generateCopyPasteMutations'](_0x599b01){const _0x1d46ab=_0x5e988f;let {toUnitId:_0xa35240,toSubUnitId:_0x27b54a,drawing:_0x3bb414,newTransforms:_0x2d75dc,newDrawingId:_0x1e7f4b,idMap:_0x377006}=_0x599b01,_0x2bc422={..._0x3bb414,'unitId':_0xa35240,'subUnitId':_0x27b54a,'drawingId':_0x1e7f4b,'transform':_0x2d75dc[_0x1d46ab(0x2fd)],'sheetTransform':_0x2d75dc['sheetTransform']},{redo:_0x1ae53c,undo:_0xacbca0,objects:_0x5c1cfd}=this['_sheetDrawingService'][_0x1d46ab(0x198)]([_0x2bc422]),_0x9b56ef=this[_0x1d46ab(0x442)][_0x1d46ab(0x2c6)](_0x3bb414[_0x1d46ab(0x346)],_0x3bb414[_0x1d46ab(0x369)],_0x3bb414[_0x1d46ab(0x456)]);if(!_0x9b56ef)return{'redos':[],'undos':[]};let _0x43d43d=_0x9b56ef[_0x1d46ab(0x2d9)](),_0x3f0e1a=JSON[_0x1d46ab(0x3ca)](JSON[_0x1d46ab(0x1ad)](_0x9b56ef[_0x1d46ab(0x2e3)]()));if(_0x3f0e1a[_0x1d46ab(0x316)]){var _0x44365c,_0x39ebec;let _0x122e13=(_0x44365c=_0x3f0e1a[_0x1d46ab(0x316)]['from'])==null?void 0x0:_0x44365c['shapeId'],_0x583cf8=(_0x39ebec=_0x3f0e1a['relation']['to'])==null?void 0x0:_0x39ebec['shapeId'],_0x2ed0d8=!_0x122e13||_0x377006[_0x1d46ab(0x4ec)](_0x122e13),_0x534bd5=!_0x583cf8||_0x377006[_0x1d46ab(0x4ec)](_0x583cf8);_0x2ed0d8&&_0x122e13&&_0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)]?_0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)]={..._0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)],'shapeId':_0x377006[_0x1d46ab(0x329)](_0x122e13)}:_0x3f0e1a['relation'][_0x1d46ab(0x1e9)]=void 0x0,_0x534bd5&&_0x583cf8&&_0x3f0e1a['relation']['to']?_0x3f0e1a[_0x1d46ab(0x316)]['to']={..._0x3f0e1a[_0x1d46ab(0x316)]['to'],'shapeId':_0x377006[_0x1d46ab(0x329)](_0x583cf8)}:_0x3f0e1a[_0x1d46ab(0x316)]['to']=void 0x0;}return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'type':m['DrawingApplyType'][_0x1d46ab(0x30e)],'op':_0x1ae53c,'objects':_0x5c1cfd}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'shapeId':_0x1e7f4b,'shapeType':_0x43d43d,'shapeData':_0x3f0e1a}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'type':m['DrawingApplyType'][_0x1d46ab(0x4f5)],'op':_0xacbca0,'objects':_0x5c1cfd}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'shapeId':_0x1e7f4b}}]};}[_0x5e988f(0x1b6)](_0x3ce71d,_0x1bfc4b,_0x1a8352,_0x3902a3){const _0x15ad44=_0x5e988f;let {range:_0x4ddd84,skeleton:_0x22da75}=_0x1bfc4b,{range:_0x892c81,skeleton:_0x200e0f}=_0x1a8352,{transform:_0x13bf6c,sheetTransform:_0x26f6af}=_0x3ce71d,_0x16096d={..._0x13bf6c};if(_0x4ddd84){let _0x8db645=(0x0,o[_0x15ad44(0x22a)])(_0x22da75,_0x4ddd84),_0x38db81=(0x0,o[_0x15ad44(0x22a)])(_0x200e0f,_0x892c81);if(_0x8db645&&_0x38db81){let _0x43fc49=_0x38db81[_0x15ad44(0x2ad)]-_0x8db645[_0x15ad44(0x2ad)],_0x5900f9=_0x38db81['startY']-_0x8db645[_0x15ad44(0x160)];_0x16096d[_0x15ad44(0x3d8)]=(_0x16096d['left']??0x0)+_0x43fc49,_0x16096d[_0x15ad44(0x480)]=(_0x16096d[_0x15ad44(0x480)]??0x0)+_0x5900f9;}}else{let _0x39be29=(0x0,o[_0x15ad44(0x22a)])(_0x200e0f,_0x892c81);if(_0x3902a3&&_0x39be29){let _0x364517=(_0x16096d[_0x15ad44(0x3d8)]??0x0)-_0x3902a3[_0x15ad44(0x3d8)],_0x4c5685=(_0x16096d[_0x15ad44(0x480)]??0x0)-_0x3902a3['top'];_0x16096d[_0x15ad44(0x3d8)]=_0x39be29[_0x15ad44(0x2ad)]+_0x364517,_0x16096d[_0x15ad44(0x480)]=_0x39be29[_0x15ad44(0x160)]+_0x4c5685;}else _0x16096d[_0x15ad44(0x3d8)]=_0x39be29==null?void 0x0:_0x39be29[_0x15ad44(0x2ad)],_0x16096d[_0x15ad44(0x480)]=_0x39be29==null?void 0x0:_0x39be29[_0x15ad44(0x160)];}return{'transform':_0x16096d,'sheetTransform':(0x0,m['transformToDrawingPosition'])(_0x16096d,_0x200e0f)??_0x26f6af};}};q=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(o[_0x5e988f(0x451)])),k(0x1,(0x0,a['Inject'])(l[_0x5e988f(0x2dc)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(m[_0x5e988f(0x211)])),k(0x3,(0x0,a['Inject'])(i['SheetsShapeService'])),k(0x4,(0x0,a[_0x5e988f(0x334)])(v[_0x5e988f(0x19b)]))],q);var St=class extends c[_0x5e988f(0x28e)]{constructor(_0x5e4e39,_0x4a7424){const _0x43d8f6=_0x5e988f;super(_0x5e4e39,_0x4a7424),E(this,'_shapeId',null),E(this,_0x43d8f6(0x19d),null),E(this,_0x43d8f6(0x308),null),E(this,'_subUnitId',null),E(this,_0x43d8f6(0x1e2),!0x1),_0x4a7424&&this['setShapeProps'](_0x4a7424);}[_0x5e988f(0x22d)](){const _0x3f4ec3=_0x5e988f;return{'unitId':this[_0x3f4ec3(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3f4ec3(0x447)]};}['setShapeProps'](_0x3b1941){const _0x4bd4ec=_0x5e988f;_0x3b1941['shapeId']!==void 0x0&&(this['_shapeId']=_0x3b1941[_0x4bd4ec(0x3cd)]),_0x3b1941[_0x4bd4ec(0x346)]!==void 0x0&&(this[_0x4bd4ec(0x308)]=_0x3b1941[_0x4bd4ec(0x346)]),_0x3b1941[_0x4bd4ec(0x369)]!==void 0x0&&(this[_0x4bd4ec(0x363)]=_0x3b1941['subUnitId']),_0x3b1941['isStartConnectorPoint']!==void 0x0&&(this[_0x4bd4ec(0x1e2)]=_0x3b1941['isStartConnectorPoint']),this[_0x4bd4ec(0x49b)]({'width':_0x3b1941[_0x4bd4ec(0x254)],'height':_0x3b1941[_0x4bd4ec(0x457)]});}[_0x5e988f(0x22c)](_0x1dd91b){const _0x1ab867=_0x5e988f;c['Circle'][_0x1ab867(0x370)](_0x1dd91b,{'radius':n['ShapeDefaultConfig'][_0x1ab867(0x3bb)],'fill':n[_0x1ab867(0x291)][_0x1ab867(0x49f)],'stroke':n['ShapeDefaultConfig'][_0x1ab867(0x2a2)],'strokeWidth':n[_0x1ab867(0x291)]['cxnPointStrokeWidth'],'evented':!0x0});}};let Ct=class extends a[_0x5e988f(0x302)]{constructor(_0x34fcdd,_0x31ade2,_0x123aa9,_0x53a95f,_0x3a710c,_0x175368,_0x3319d8,_0x2751de){const _0x48e7e3=_0x5e988f;super(),this[_0x48e7e3(0x4ac)]=_0x34fcdd,this[_0x48e7e3(0x263)]=_0x31ade2,this['_renderManagerService']=_0x123aa9,this[_0x48e7e3(0x2f6)]=_0x53a95f,this[_0x48e7e3(0x3fa)]=_0x3a710c,this[_0x48e7e3(0x4d2)]=_0x175368,this[_0x48e7e3(0x409)]=_0x3319d8,this[_0x48e7e3(0x3d6)]=_0x2751de,E(this,_0x48e7e3(0x15e),void 0x0),E(this,'_unitId',void 0x0),E(this,_0x48e7e3(0x363),void 0x0),E(this,'_connectorObjects',[]),E(this,_0x48e7e3(0x2c3),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x48e7e3(0x46c),!0x1),E(this,'_isDrawingShapePointDown',!0x1),E(this,_0x48e7e3(0x286),!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,'_cxtHandlerPointerUp',void 0x0),E(this,_0x48e7e3(0x2cb),null),this[_0x48e7e3(0x2f3)]();}[_0x5e988f(0x2f3)](){const _0x19270e=_0x5e988f;this[_0x19270e(0x3fc)](),this[_0x19270e(0x35e)]();}[_0x5e988f(0x340)](){const _0x2f13aa=_0x5e988f;if(!this['_unitId']||!this[_0x2f13aa(0x363)]||!this['_activeShapeId'])return;let _0x2b6acb={'unitId':this[_0x2f13aa(0x308)],'subUnitId':this[_0x2f13aa(0x363)],'drawingId':this['_activeShapeId']},{transform:_0x58799a}=this[_0x2f13aa(0x2f6)]['getDrawingByParam'](_0x2b6acb);if(_0x58799a)return{'left':_0x58799a['left']||0x0,'top':_0x58799a[_0x2f13aa(0x480)]||0x0,'width':_0x58799a[_0x2f13aa(0x254)]||0x0,'height':_0x58799a[_0x2f13aa(0x457)]||0x0,'flipX':_0x58799a[_0x2f13aa(0x174)]||!0x1,'flipY':_0x58799a['flipY']||!0x1,'angle':_0x58799a[_0x2f13aa(0x1d9)]};}[_0x5e988f(0x2da)](){const _0x3d86b6=_0x5e988f;if(this[_0x3d86b6(0x308)]===void 0x0||this[_0x3d86b6(0x363)]===void 0x0||this[_0x3d86b6(0x15e)]===void 0x0)return;let _0x432757=this[_0x3d86b6(0x1ea)][_0x3d86b6(0x188)](this[_0x3d86b6(0x308)]);if(!_0x432757||!_0x432757['with'](l['SheetSkeletonManagerService'])[_0x3d86b6(0x42e)]())return;let {scene:_0x1e391c}=_0x432757,_0x37a311=this['_getDrawingRect']();if(!_0x37a311)return;let _0x4abe4d=this[_0x3d86b6(0x4d2)][_0x3d86b6(0x2c6)](this[_0x3d86b6(0x308)],this[_0x3d86b6(0x363)],this[_0x3d86b6(0x15e)]);if(!_0x4abe4d||!(0x0,n[_0x3d86b6(0x3a7)])(_0x4abe4d['getShapeType']()))return;let _0x8dbdb0=_0x4abe4d[_0x3d86b6(0x3cf)]();if(_0x8dbdb0[_0x3d86b6(0x2b6)]<0x2)return;let _0x28784c=new n[(_0x3d86b6(0x22f))](_0x37a311),_0x2f2cfe=_0x8dbdb0[0x0],_0x9b9006=_0x8dbdb0[_0x8dbdb0[_0x3d86b6(0x2b6)]-0x1],_0x1e2970=_0x28784c[_0x3d86b6(0x3b8)](_0x2f2cfe),_0x59f02f=_0x28784c['localToWorld'](_0x9b9006);this[_0x3d86b6(0x2d3)](_0x1e391c,{..._0x1e2970},!0x0),this[_0x3d86b6(0x2d3)](_0x1e391c,{..._0x59f02f},!0x1);}[_0x5e988f(0x2d3)](_0x18d330,_0x4c33a7,_0x254a0c){const _0x105885=_0x5e988f;if(this[_0x105885(0x15e)]===void 0x0||this['_unitId']===void 0x0||this[_0x105885(0x363)]===void 0x0)return;let _0x5485cb=_0x105885(0x35b)+this[_0x105885(0x308)]+'-'+this[_0x105885(0x363)]+'-'+this['_activeShapeId']+'-'+(_0x254a0c?_0x105885(0x34e):_0x105885(0x4c3)),_0x2ad02d=_0x18d330[_0x105885(0x300)](_0x5485cb);if(_0x2ad02d){_0x2ad02d['transformByState']({'left':_0x4c33a7['x']-n[_0x105885(0x291)][_0x105885(0x3bb)],'top':_0x4c33a7['y']-n[_0x105885(0x291)][_0x105885(0x3bb)]});return;}let _0x11217a=new St(_0x5485cb,{'left':_0x4c33a7['x']-n[_0x105885(0x291)][_0x105885(0x3bb)],'top':_0x4c33a7['y']-n[_0x105885(0x291)]['cxnPointRadius'],'shapeId':this[_0x105885(0x15e)],'unitId':this[_0x105885(0x308)],'subUnitId':this[_0x105885(0x363)],'isStartConnectorPoint':_0x254a0c,'width':n[_0x105885(0x291)][_0x105885(0x3bb)]*0x2,'height':n[_0x105885(0x291)][_0x105885(0x3bb)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x105885(0x415)][_0x105885(0x4d5)](_0x11217a),this[_0x105885(0x184)](_0x11217a,_0x18d330,_0x254a0c),_0x18d330['addObject'](_0x11217a,c[_0x105885(0x245)]+0x1);}['_getScrollInfo'](_0x79936c,_0xda13){const _0x53b1d3=_0x5e988f;var _0x171526;let _0x42b6d0={'x':0x0,'y':0x0};if(!_0x79936c||!_0xda13)return _0x42b6d0;let _0x2acefa=this[_0x53b1d3(0x1ea)][_0x53b1d3(0x188)](_0x79936c);if(!_0x2acefa||!_0x2acefa[_0x53b1d3(0x246)](l[_0x53b1d3(0x306)])[_0x53b1d3(0x4a3)](_0xda13))return _0x42b6d0;let _0x4711fb=_0x2acefa[_0x53b1d3(0x246)](l[_0x53b1d3(0x49c)]),_0x45891b=_0x4711fb==null?void 0x0:_0x4711fb['getCurrentScrollState']();if(!_0x45891b)return _0x42b6d0;let _0xbe5fb7=(_0x171526=this[_0x53b1d3(0x3fa)][_0x53b1d3(0x499)](_0x79936c))==null?void 0x0:_0x171526[_0x53b1d3(0x422)](_0xda13);if(!_0xbe5fb7)return _0x42b6d0;let _0x27bf1c=(0x0,l[_0x53b1d3(0x3d7)])(_0x45891b[_0x53b1d3(0x2f2)],_0x45891b[_0x53b1d3(0x239)],_0x2acefa[_0x53b1d3(0x466)],_0xbe5fb7);return _0x27bf1c?{'x':_0x27bf1c[_0x53b1d3(0x2ea)],'y':_0x27bf1c[_0x53b1d3(0x1fd)]}:_0x42b6d0;}[_0x5e988f(0x2ca)](_0x539439,_0x1232e7){const _0x417ccf=_0x5e988f;var _0x1a381e;let _0x82e69a=(_0x1a381e=this[_0x417ccf(0x3fa)][_0x417ccf(0x499)](_0x539439))==null?void 0x0:_0x1a381e[_0x417ccf(0x422)](_0x1232e7);return(_0x82e69a==null?void 0x0:_0x82e69a[_0x417ccf(0x24f)]())??0x1;}['_handleConnectorPointerUp'](_0x258952,_0x3901da,_0x2d223c,_0x50b45d,_0x593996){const _0x3d8b2e=_0x5e988f;this[_0x3d8b2e(0x158)]['unsubscribe'](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x3d8b2e(0x409)][_0x3d8b2e(0x3e5)]();let _0x36aa90=this[_0x3d8b2e(0x2cb)];this[_0x3d8b2e(0x3d6)]['endConnectionDetection']();let _0x3f430c=this[_0x3d8b2e(0x37e)](this['_unitId'],this[_0x3d8b2e(0x363)]),_0x529c5a=this[_0x3d8b2e(0x2ca)](this[_0x3d8b2e(0x308)],this['_subUnitId']),_0x46d86e={'x':_0x2d223c[_0x3d8b2e(0x16e)]/_0x529c5a+_0x3f430c['x'],'y':_0x2d223c[_0x3d8b2e(0x3dc)]/_0x529c5a+_0x3f430c['y']},_0x17c334=_0x36aa90?_0x36aa90[_0x3d8b2e(0x3cb)]:_0x46d86e,_0x12692d=_0x50b45d?this[_0x3d8b2e(0x2d6)][_0x3d8b2e(0x36d)]():this['_activeShapeModel'][_0x3d8b2e(0x448)](),_0x49df67=this[_0x3d8b2e(0x2d6)][_0x3d8b2e(0x2d9)]();_0x12692d?this[_0x3d8b2e(0x3ac)](_0x12692d,_0x17c334,_0x50b45d,_0x36aa90,_0x593996):this[_0x3d8b2e(0x20d)](_0x3901da,_0x17c334,_0x50b45d,_0x36aa90,_0x593996,_0x49df67),this[_0x3d8b2e(0x46c)]=!0x1,this[_0x3d8b2e(0x286)]=!0x1,this['_currentConnectionTarget']=null,_0x258952[_0x3d8b2e(0x4b6)]();}['_handleFreeEndpointPointerUp'](_0x32e9fe,_0x9c3e08,_0x4fe529,_0x369328,_0x4564ca,_0x543c2d){const _0x37f310=_0x5e988f;let _0x2841e9=_0x543c2d===n[_0x37f310(0x49d)][_0x37f310(0x1f2)]||_0x543c2d===n[_0x37f310(0x49d)][_0x37f310(0x183)],_0x1ecaba=_0x4fe529?_0x9c3e08:_0x32e9fe,_0x4a4ac7=_0x4fe529?_0x32e9fe:_0x9c3e08,_0x45ccbf=this[_0x37f310(0x2d6)][_0x37f310(0x3cf)](),_0x15b910=this[_0x37f310(0x2d6)][_0x37f310(0x2d9)](),_0x8a37c7=(0x0,n['isCurvedConnectorShape'])(_0x15b910),_0x569f09=n[_0x37f310(0x22f)][_0x37f310(0x301)](_0x45ccbf,_0x8a37c7),_0x202eed=_0x2841e9?n[_0x37f310(0x22f)]['computeStraightConnectorLayout'](_0x1ecaba,_0x4a4ac7):n[_0x37f310(0x22f)][_0x37f310(0x251)](_0x32e9fe,_0x9c3e08,_0x4fe529,_0x569f09);_0x369328?this[_0x37f310(0x3c3)](_0x202eed,_0x369328,_0x4fe529,_0x4564ca):this['_executeResizeCommand'](_0x202eed,_0x4564ca);}[_0x5e988f(0x3ac)](_0x14bf7f,_0x381c51,_0x3a6c13,_0x16a675,_0x46f508){const _0x29ea8e=_0x5e988f;let _0x2afdbf=this['_getConnectPointInfo'](_0x14bf7f);if(!_0x2afdbf)return;let _0x343db5=_0x16a675?_0x16a675[_0x29ea8e(0x1d9)]:this[_0x29ea8e(0x280)](_0x2afdbf[_0x29ea8e(0x4d6)],_0x381c51),_0x20bc20;if(_0x16a675){let _0x17e0de=this[_0x29ea8e(0x2f6)][_0x29ea8e(0x2fc)]({'unitId':_0x16a675[_0x29ea8e(0x346)],'subUnitId':_0x16a675[_0x29ea8e(0x369)],'drawingId':_0x16a675[_0x29ea8e(0x3cd)]});if(_0x17e0de!=null&&_0x17e0de[_0x29ea8e(0x2fd)]){let {left:_0x50d9bf=0x0,top:_0x571cb6=0x0,width:_0xda89a=0x0,height:_0x134636=0x0,angle:_0x255e5f}=_0x17e0de[_0x29ea8e(0x2fd)];_0x20bc20=(0x0,n['getBasicShapeRotateBound'])({'left':_0x50d9bf,'top':_0x571cb6,'width':_0xda89a,'height':_0x134636},_0x255e5f||0x0);}else _0x20bc20={'left':_0x381c51['x'],'top':_0x381c51['y'],'width':0x0,'height':0x0};}else _0x20bc20={'left':_0x381c51['x'],'top':_0x381c51['y'],'width':0x0,'height':0x0};let _0x239896={'point':_0x381c51,'angle':_0x343db5,'bounds':_0x20bc20},_0x2ce6e4=_0x3a6c13?_0x239896:_0x2afdbf,_0xb8157c=_0x3a6c13?_0x2afdbf:_0x239896,_0x136aa2=this[_0x29ea8e(0x2d6)][_0x29ea8e(0x2d9)](),_0x28947b=(0x0,n[_0x29ea8e(0x48e)])(_0x2ce6e4,_0xb8157c,_0x136aa2);this[_0x29ea8e(0x2d6)][_0x29ea8e(0x40c)]();let _0x45bee7=(0x0,n[_0x29ea8e(0x279)])(_0x28947b,_0x136aa2);_0x16a675?this[_0x29ea8e(0x453)](_0x45bee7,_0x16a675,_0x14bf7f,_0x3a6c13,_0x46f508):this['_executeConnectedRouteResizeCommand'](_0x45bee7,_0x14bf7f,_0x3a6c13,_0x46f508);}[_0x5e988f(0x3c3)](_0x6d59aa,_0x1425b9,_0x1b2584,_0x2b6e5b){const _0x2ff871=_0x5e988f;let _0x6df8e0=this['_activeShapeModel']['getShapeData']()[_0x2ff871(0x316)],_0x2c5c85={..._0x6df8e0},_0xcbda7a={'shapeId':_0x1425b9[_0x2ff871(0x3cd)],'cxnIndex':_0x1425b9[_0x2ff871(0x4dd)]};_0x1b2584?_0x2c5c85[_0x2ff871(0x1e9)]=_0xcbda7a:_0x2c5c85['to']=_0xcbda7a;let _0x170eb0=this[_0x2ff871(0x2d6)][_0x2ff871(0x2d9)](),_0x3956a1=(0x0,n['computeConnectorRouteLayout'])(_0x6d59aa[_0x2ff871(0x243)],_0x170eb0),_0x39af82={'unitId':this[_0x2ff871(0x308)],'subUnitId':this[_0x2ff871(0x363)],'connectorShapeId':this['_activeShapeId'],'width':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x254)],'height':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x457)],'left':_0x6d59aa[_0x2ff871(0x391)]['left'],'top':_0x6d59aa[_0x2ff871(0x391)]['top'],'flipX':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x174)]||!0x1,'flipY':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x19a)]||!0x1,'newAdjustValues':_0x3956a1[_0x2ff871(0x441)],'oldAdjustValues':_0x2b6e5b,'oldRelation':_0x6df8e0,'newRelation':_0x2c5c85,'newLineType':_0x3956a1[_0x2ff871(0x176)],'oldLineType':_0x170eb0};this[_0x2ff871(0x263)][_0x2ff871(0x32b)](i[_0x2ff871(0x2c2)]['id'],_0x39af82);}[_0x5e988f(0x1c4)](_0x4f9501,_0xa75e43){const _0x539492=_0x5e988f;let _0x22a493=this[_0x539492(0x2d6)][_0x539492(0x2d9)](),_0x3cb21e=(0x0,n[_0x539492(0x279)])(_0x4f9501[_0x539492(0x243)],_0x22a493),_0x22e860={'unitId':this[_0x539492(0x308)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x539492(0x15e)],'width':_0x4f9501[_0x539492(0x391)][_0x539492(0x254)],'height':_0x4f9501[_0x539492(0x391)][_0x539492(0x457)],'left':_0x4f9501[_0x539492(0x391)][_0x539492(0x3d8)],'top':_0x4f9501['worldRect'][_0x539492(0x480)],'flipX':_0x4f9501['worldRect'][_0x539492(0x174)]||!0x1,'flipY':_0x4f9501['worldRect'][_0x539492(0x19a)]||!0x1,'angle':_0x4f9501[_0x539492(0x391)][_0x539492(0x1d9)]||0x0,'newAdjustValues':_0x3cb21e[_0x539492(0x441)],'oldAdjustValues':_0xa75e43,'newLineType':_0x3cb21e['lineType'],'oldLineType':_0x22a493};this[_0x539492(0x263)][_0x539492(0x32b)](i['UpdateLineShapeResizeCommand']['id'],_0x22e860);}[_0x5e988f(0x453)](_0x9e1e70,_0x53bfc8,_0x59bf1f,_0x77561f,_0x7c2780){const _0x23ad3b=_0x5e988f;let _0x5baa51=this[_0x23ad3b(0x2d6)][_0x23ad3b(0x2e3)]()[_0x23ad3b(0x316)],_0x5d2e53={..._0x5baa51},_0x5c7d63={'shapeId':_0x53bfc8[_0x23ad3b(0x3cd)],'cxnIndex':_0x53bfc8['cxnIndex']};_0x77561f?(_0x5d2e53[_0x23ad3b(0x1e9)]=_0x5c7d63,_0x5d2e53['to']=_0x59bf1f):(_0x5d2e53[_0x23ad3b(0x1e9)]=_0x59bf1f,_0x5d2e53['to']=_0x5c7d63);let _0x371bc7={'unitId':this[_0x23ad3b(0x308)],'subUnitId':this[_0x23ad3b(0x363)],'connectorShapeId':this[_0x23ad3b(0x15e)],'width':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x254)],'height':_0x9e1e70[_0x23ad3b(0x391)]['height'],'left':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x3d8)],'top':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x480)],'flipX':_0x9e1e70[_0x23ad3b(0x391)]['flipX']||!0x1,'flipY':_0x9e1e70[_0x23ad3b(0x391)]['flipY']||!0x1,'oldAdjustValues':_0x7c2780,'newAdjustValues':_0x9e1e70[_0x23ad3b(0x441)],'newLineType':_0x9e1e70['lineType'],'rotation':_0x9e1e70[_0x23ad3b(0x324)],'oldRelation':_0x5baa51,'newRelation':_0x5d2e53};this['_commandService'][_0x23ad3b(0x32b)](i[_0x23ad3b(0x2c2)]['id'],_0x371bc7);}[_0x5e988f(0x47e)](_0x33ff7d,_0x324107,_0x372ef5,_0x59dfef){const _0x4b400c=_0x5e988f;let _0x1697ab=this[_0x4b400c(0x2d6)][_0x4b400c(0x2e3)]()['relation'],_0x23b792={};_0x372ef5?(_0x23b792['to']=_0x324107,_0x23b792[_0x4b400c(0x1e9)]=void 0x0):(_0x23b792['from']=_0x324107,_0x23b792['to']=void 0x0);let _0x57dc64={'unitId':this[_0x4b400c(0x308)],'subUnitId':this[_0x4b400c(0x363)],'connectorShapeId':this[_0x4b400c(0x15e)],'width':_0x33ff7d['worldRect'][_0x4b400c(0x254)],'height':_0x33ff7d[_0x4b400c(0x391)]['height'],'left':_0x33ff7d[_0x4b400c(0x391)]['left'],'top':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x480)],'flipX':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x174)]||!0x1,'flipY':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x19a)]||!0x1,'oldAdjustValues':_0x59dfef,'newAdjustValues':_0x33ff7d[_0x4b400c(0x441)],'newLineType':_0x33ff7d['lineType'],'rotation':_0x33ff7d[_0x4b400c(0x324)],'oldRelation':_0x1697ab,'newRelation':_0x23b792};this[_0x4b400c(0x263)][_0x4b400c(0x32b)](i[_0x4b400c(0x2c2)]['id'],_0x57dc64);}[_0x5e988f(0x184)](_0x546749,_0x56bc19,_0x5bc6cc){const _0x2034de=_0x5e988f;this[_0x2034de(0x36f)]((0x0,a[_0x2034de(0x1cc)])(_0x546749['onPointerDown$']['subscribeEvent']((_0x31fa1f,_0x5db79c)=>{const _0x3657c6=_0x2034de;let _0x14eff9=_0x546749[_0x3657c6(0x22d)]();if(this[_0x3657c6(0x2d6)]=this[_0x3657c6(0x4d2)][_0x3657c6(0x2c6)](_0x14eff9['unitId'],_0x14eff9['subUnitId'],_0x14eff9[_0x3657c6(0x456)]),!this[_0x3657c6(0x2d6)])return;let _0x4411d6={};this[_0x3657c6(0x2d6)][_0x3657c6(0x4bf)]()['forEach'](_0x3b25d7=>{const _0x53d50f=_0x3657c6;let _0xc28858=this[_0x53d50f(0x2d6)]['getAdjustValueByName'](_0x3b25d7);_0xc28858!==void 0x0&&(_0x4411d6[_0x3b25d7]=_0xc28858);});let _0x2b1c74=this[_0x3657c6(0x340)]();if(!_0x2b1c74)return;this[_0x3657c6(0x2c3)]={..._0x2b1c74};let _0x5756fc=new n[(_0x3657c6(0x22f))](this[_0x3657c6(0x2c3)]),_0x538a11=(0x0,s[_0x3657c6(0x278)])({'unitId':this[_0x3657c6(0x308)],'subUnitId':this[_0x3657c6(0x363)],'drawingId':this[_0x3657c6(0x15e)]}),_0x3405f2=_0x56bc19[_0x3657c6(0x300)](_0x538a11);this[_0x3657c6(0x46c)]=!0x0,_0x56bc19[_0x3657c6(0x3a3)](),this[_0x3657c6(0x3d6)][_0x3657c6(0x477)](_0x56bc19,this[_0x3657c6(0x308)],this[_0x3657c6(0x363)],this[_0x3657c6(0x15e)]),this[_0x3657c6(0x2cb)]=null;let _0x2c0fa1=this[_0x3657c6(0x2d6)]['getConnectorLinePoints'](),_0x293c12=_0x2c0fa1[0x0],_0x1c4ab2=_0x2c0fa1[_0x2c0fa1[_0x3657c6(0x2b6)]-0x1],_0x1cc3db=_0x5bc6cc?_0x5756fc[_0x3657c6(0x3b8)](_0x1c4ab2):_0x5756fc['localToWorld'](_0x293c12);this[_0x3657c6(0x158)]=_0x56bc19[_0x3657c6(0x1c2)][_0x3657c6(0x194)]((_0x72b91b,_0x343cef)=>{const _0x45ede2=_0x3657c6;if(!this['_isConnecting']||!this[_0x45ede2(0x2d6)])return;this[_0x45ede2(0x286)]||=(this['_sheetShapeAdjustController'][_0x45ede2(0x274)](),this[_0x45ede2(0x2d6)][_0x45ede2(0x299)](),!0x0);let _0xe01215=this['_getScrollInfo'](this['_unitId'],this[_0x45ede2(0x363)]),_0x41ded1=this[_0x45ede2(0x2ca)](this[_0x45ede2(0x308)],this[_0x45ede2(0x363)]),_0xf3e7f6={'x':_0x72b91b[_0x45ede2(0x16e)]/_0x41ded1+_0xe01215['x'],'y':_0x72b91b['offsetY']/_0x41ded1+_0xe01215['y']},_0x2f53bc=this['_sheetBasicShapeConnectionPointController']['updateConnectionDetection'](_0xf3e7f6);if(_0x2f53bc){let {shapeId:_0xfee07a,unitId:_0x5638a3,subUnitId:_0x173e0a}=_0x2f53bc;if(_0xfee07a&&_0x5638a3&&_0x173e0a){let _0x326863=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5638a3,'subUnitId':_0x173e0a,'drawingId':_0xfee07a});_0x2f53bc[_0x45ede2(0x1d9)]=(_0x56bc19[_0x45ede2(0x300)](_0x326863)['angle']||0x0)+_0x2f53bc[_0x45ede2(0x1d9)];}}this[_0x45ede2(0x2cb)]=_0x2f53bc;let _0x4d0572=_0x5bc6cc?this['_activeShapeModel']['getEndConnectInfo']():this[_0x45ede2(0x2d6)][_0x45ede2(0x448)]();_0x4d0572?this[_0x45ede2(0x1a6)](_0x4d0572,_0xf3e7f6,_0x5bc6cc,_0x3405f2,_0x546749):this[_0x45ede2(0x465)](_0xf3e7f6,_0x1cc3db,_0x5bc6cc,_0x3405f2,_0x546749);}),this[_0x3657c6(0x342)]=_0x56bc19[_0x3657c6(0x4b8)][_0x3657c6(0x194)]((_0x56ba77,_0x1ecd03)=>{const _0x31d0d2=_0x3657c6;this[_0x31d0d2(0x2e1)](_0x56bc19,_0x1cc3db,_0x56ba77,_0x5bc6cc,_0x4411d6);}),_0x5db79c[_0x3657c6(0x238)]();})));}[_0x5e988f(0x46f)](_0x4c27b8,_0x8a83a0,_0xa5cdbb){const _0x5a2e0d=_0x5e988f;let _0x5d8bc1=this[_0x5a2e0d(0x4d2)][_0x5a2e0d(0x3f0)](_0x4c27b8,_0x8a83a0,_0xa5cdbb);if(!_0x5d8bc1||_0x5d8bc1['length']===0x0)return;let _0xe43cae=this[_0x5a2e0d(0x1ea)][_0x5a2e0d(0x188)](_0x4c27b8);if(!_0xe43cae)return;let {scene:_0x489c0c}=_0xe43cae;for(let _0xe0ae87 of _0x5d8bc1){let _0x2b6499=_0xe0ae87[_0x5a2e0d(0x2ac)],_0x2bf70e=this['_sheetsShapeService'][_0x5a2e0d(0x2c6)](_0x4c27b8,_0x8a83a0,_0x2b6499);if(!_0x2bf70e)continue;let _0x596c9a=_0x2bf70e['getStartConnectInfo'](),_0x26c1ef=_0x2bf70e[_0x5a2e0d(0x36d)](),_0x5d0cbe=(_0x596c9a==null?void 0x0:_0x596c9a[_0x5a2e0d(0x3cd)])===_0xa5cdbb,_0x4b15d3=(0x0,s[_0x5a2e0d(0x278)])({'unitId':_0x4c27b8,'subUnitId':_0x8a83a0,'drawingId':_0x2b6499}),_0x289c56=_0x489c0c['getObjectIncludeInGroup'](_0x4b15d3);if(!_0x289c56)continue;let _0x5d7735=this['_drawingManagerService'][_0x5a2e0d(0x2fc)]({'unitId':_0x4c27b8,'subUnitId':_0x8a83a0,'drawingId':_0x2b6499});_0x5d7735!=null&&_0x5d7735[_0x5a2e0d(0x2fd)]&&(_0x596c9a&&_0x26c1ef?this[_0x5a2e0d(0x31e)](_0x4c27b8,_0x8a83a0,_0x2b6499,_0x2bf70e,_0x596c9a,_0x26c1ef,_0x289c56):this['_moveConnectorWithShape'](_0x4c27b8,_0x8a83a0,_0x2b6499,_0x2bf70e,_0x5d0cbe?_0x596c9a:_0x26c1ef,_0x5d0cbe,_0x5d7735,_0x289c56));}}[_0x5e988f(0x31e)](_0xdf3cac,_0xce247,_0x16e1d5,_0x4e7528,_0x509dfc,_0x5c3676,_0x1690fc){const _0x36a291=_0x5e988f;let _0x416069=this[_0x36a291(0x308)],_0x48dea8=this[_0x36a291(0x363)];this[_0x36a291(0x308)]=_0xdf3cac,this[_0x36a291(0x363)]=_0xce247;let _0x3ed6ae=this[_0x36a291(0x1b0)](_0x509dfc),_0x5edd82=this[_0x36a291(0x1b0)](_0x5c3676);if(this[_0x36a291(0x308)]=_0x416069,this[_0x36a291(0x363)]=_0x48dea8,!_0x3ed6ae||!_0x5edd82)return;let _0x4320a0=_0x4e7528['getShapeType'](),_0xf7a18e=(0x0,n[_0x36a291(0x48e)])(_0x3ed6ae,_0x5edd82,_0x4320a0);_0xf7a18e&&_0x4e7528[_0x36a291(0x44d)](_0xf7a18e);let _0x186b8a=(0x0,n['computeConnectorRouteLayout'])(_0xf7a18e,_0x4320a0);_0x186b8a[_0x36a291(0x176)]!==_0x4320a0&&_0x4e7528[_0x36a291(0x3ec)](_0x186b8a[_0x36a291(0x176)]),_0x4e7528[_0x36a291(0x299)]();for(let [_0x16fe9c,_0x42ecf2]of Object[_0x36a291(0x288)](_0x186b8a[_0x36a291(0x441)]))_0x4e7528[_0x36a291(0x431)](_0x16fe9c,_0x42ecf2);_0x4e7528['updateContext']({'width':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x254)],'height':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x457)]}),_0x1690fc[_0x36a291(0x49b)]({'flipX':_0x186b8a['worldRect']['flipX'],'flipY':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x19a)],'left':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x3d8)],'top':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x480)],'width':_0x186b8a[_0x36a291(0x391)]['width'],'height':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x457)],'angle':_0x186b8a[_0x36a291(0x324)]}),_0x4e7528['removeLinePoints']();}[_0x5e988f(0x2f5)](_0x813df4,_0x774ab9,_0x2bffd1,_0x557b53,_0x574d2e,_0x4bd157,_0x50c0c8,_0x1f5be9){const _0x305f73=_0x5e988f;let _0x506195=this['_unitId'],_0x38f68e=this['_subUnitId'];this[_0x305f73(0x308)]=_0x813df4,this[_0x305f73(0x363)]=_0x774ab9;let _0x49d28b=this[_0x305f73(0x1b0)](_0x574d2e);if(this[_0x305f73(0x308)]=_0x506195,this[_0x305f73(0x363)]=_0x38f68e,!_0x49d28b)return;let {left:_0x1b6e32=0x0,top:_0x34183d=0x0,width:_0x29105d=0x0,height:_0x519d50=0x0,flipX:_0x507167=!0x1,flipY:_0x4597d3=!0x1}=_0x50c0c8[_0x305f73(0x2fd)],_0x3b594d=_0x557b53[_0x305f73(0x3cf)]();if(_0x3b594d[_0x305f73(0x2b6)]<0x2)return;let _0x328498=new n[(_0x305f73(0x22f))]({'left':_0x1b6e32,'top':_0x34183d,'width':_0x29105d,'height':_0x519d50,'flipX':_0x507167,'flipY':_0x4597d3}),_0x53c276=_0x4bd157?_0x3b594d[_0x3b594d[_0x305f73(0x2b6)]-0x1]:_0x3b594d[0x0],_0x513bdb=_0x328498[_0x305f73(0x3b8)](_0x53c276),_0x33e7e3=n[_0x305f73(0x22f)][_0x305f73(0x251)](_0x513bdb,_0x49d28b[_0x305f73(0x4d6)],!_0x4bd157);_0x1f5be9[_0x305f73(0x49b)]({'flipX':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x174)],'flipY':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x19a)],'left':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x3d8)],'top':_0x33e7e3['worldRect']['top'],'width':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x254)],'height':_0x33e7e3['worldRect'][_0x305f73(0x457)],'angle':_0x33e7e3['worldRect']['angle']}),_0x1f5be9['makeDirty'](!0x0);}[_0x5e988f(0x1d5)](){const _0x4cd3cf=_0x5e988f;this[_0x4cd3cf(0x415)][_0x4cd3cf(0x2b6)]!==0x0&&(this[_0x4cd3cf(0x415)][_0x4cd3cf(0x424)](_0x391580=>{const _0xb2772d=_0x4cd3cf;_0x391580[_0xb2772d(0x4c1)]();}),this[_0x4cd3cf(0x415)]=[]);}['_registerDrawingMoveHandler'](){const _0x5209a8=_0x5e988f;let _0x3fdb5f=this[_0x5209a8(0x3fa)]['getCurrentTypeOfUnit$'](a[_0x5209a8(0x15d)][_0x5209a8(0x2ba)]);this['disposeWithMe'](_0x3fdb5f[_0x5209a8(0x3d3)]((0x0,u[_0x5209a8(0x430)])(_0x116db5=>_0x116db5?_0x116db5[_0x5209a8(0x18a)][_0x5209a8(0x3d3)]((0x0,u[_0x5209a8(0x430)])(_0x3add11=>{const _0x5d6042=_0x5209a8;if(!_0x3add11)return u[_0x5d6042(0x4c6)];let _0x2cfdbe=_0x116db5[_0x5d6042(0x39d)](),_0x164fd6=this[_0x5d6042(0x1ea)]['getRenderUnitById'](_0x2cfdbe),_0x43deb4=_0x164fd6==null?void 0x0:_0x164fd6[_0x5d6042(0x466)];return _0x43deb4?(0x0,u['of'])(_0x43deb4):u[_0x5d6042(0x4c6)];})):u[_0x5209a8(0x4c6)]))[_0x5209a8(0x24c)](_0x331155=>{const _0x45cdd6=_0x5209a8;let _0x31f184=_0x331155['getTransformerByCreate']();this['disposeWithMe'](_0x331155[_0x45cdd6(0x1c2)][_0x45cdd6(0x194)](_0x3c0685=>{const _0x2b6225=_0x45cdd6;this[_0x2b6225(0x317)]&&this[_0x2b6225(0x15e)]&&this[_0x2b6225(0x1d5)]();})),this['disposeWithMe'](_0x31f184[_0x45cdd6(0x2a4)][_0x45cdd6(0x24c)](_0x13ccc7=>{const _0x31dc33=_0x45cdd6;let {objects:_0x86892}=_0x13ccc7;this[_0x31dc33(0x1d5)](),_0x86892!==null&&_0x86892[_0x31dc33(0x4bd)]===0x1&&_0x86892['values']()[_0x31dc33(0x3b7)]()[_0x31dc33(0x321)]instanceof D&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x45cdd6(0x36f)](_0x31f184[_0x45cdd6(0x2e7)][_0x45cdd6(0x24c)](_0x20c08f=>{const _0x3ac0ce=_0x45cdd6;this[_0x3ac0ce(0x317)]&&this[_0x3ac0ce(0x1d5)]();})),this[_0x45cdd6(0x36f)](_0x331155[_0x45cdd6(0x4b8)][_0x45cdd6(0x194)](()=>{const _0x2637de=_0x45cdd6;this[_0x2637de(0x317)]&&(this[_0x2637de(0x317)]=!0x1,this[_0x2637de(0x2da)]());})),this['disposeWithMe'](_0x31f184[_0x45cdd6(0x403)][_0x45cdd6(0x24c)](()=>{const _0xeb12fd=_0x45cdd6;this[_0xeb12fd(0x308)]&&this[_0xeb12fd(0x363)]&&this['_activeShapeId']&&this[_0xeb12fd(0x2f6)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0xeb12fd(0x363)],'drawingId':this[_0xeb12fd(0x15e)]})&&(this[_0xeb12fd(0x1d5)](),this[_0xeb12fd(0x2da)]());}));}));}[_0x5e988f(0x3fc)](){const _0xba7d67=_0x5e988f;this[_0xba7d67(0x36f)](this[_0xba7d67(0x2f6)]['focus$'][_0xba7d67(0x24c)](_0x82b6a3=>{const _0x3e6af1=_0xba7d67;if(_0x82b6a3[_0x3e6af1(0x2b6)]===0x1){let _0x1336d6=_0x82b6a3[0x0];if(_0x1336d6[_0x3e6af1(0x2aa)]===a['DrawingTypeEnum'][_0x3e6af1(0x1d7)]){let _0x3770ce=this[_0x3e6af1(0x4d2)][_0x3e6af1(0x2c6)](_0x1336d6[_0x3e6af1(0x346)],_0x1336d6['subUnitId'],_0x1336d6[_0x3e6af1(0x456)]);if(_0x3770ce&&(0x0,n[_0x3e6af1(0x3a7)])(_0x3770ce[_0x3e6af1(0x2d9)]())){this[_0x3e6af1(0x15e)]=_0x1336d6[_0x3e6af1(0x456)],this[_0x3e6af1(0x308)]=_0x1336d6[_0x3e6af1(0x346)],this[_0x3e6af1(0x363)]=_0x1336d6[_0x3e6af1(0x369)],this[_0x3e6af1(0x1d5)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x3e6af1(0x308)]=void 0x0,this[_0x3e6af1(0x363)]=void 0x0,this[_0x3e6af1(0x1d5)]();})),this['disposeWithMe'](this[_0xba7d67(0x2f6)][_0xba7d67(0x34d)][_0xba7d67(0x24c)](_0x22506d=>{const _0xe2d800=_0xba7d67;if(_0x22506d['length']===0x1){var _0x2c670b;let _0x53cf2b=_0x22506d[0x0],_0x15cd50=(_0x2c670b=this['_drawingManagerService'][_0xe2d800(0x2fc)](_0x53cf2b))==null?void 0x0:_0x2c670b[_0xe2d800(0x2aa)];_0x15cd50===a[_0xe2d800(0x181)]['DRAWING_SHAPE']&&_0x53cf2b[_0xe2d800(0x456)]===this[_0xe2d800(0x15e)]?(this[_0xe2d800(0x1d5)](),this[_0xe2d800(0x2da)]()):!this['_activeShapeId']&&_0x15cd50===a[_0xe2d800(0x181)][_0xe2d800(0x1d7)]&&this[_0xe2d800(0x46f)](_0x53cf2b[_0xe2d800(0x346)],_0x53cf2b['subUnitId'],_0x53cf2b[_0xe2d800(0x456)]);}})),this[_0xba7d67(0x36f)](this[_0xba7d67(0x2f6)]['remove$'][_0xba7d67(0x24c)](_0x4ed586=>{const _0x5beaea=_0xba7d67;for(let _0x29c8dc of _0x4ed586){let {drawingId:_0x34f080}=_0x29c8dc;if(this['_activeShapeId']===_0x34f080){this[_0x5beaea(0x341)]();return;}}}));}[_0x5e988f(0x1a6)](_0x483359,_0x480191,_0x16e93e,_0x2740bd,_0x19ba8d){const _0x5d2939=_0x5e988f;var _0x86f74e;if(!this[_0x5d2939(0x2d6)])return;let _0x1619e7=this[_0x5d2939(0x1b0)](_0x483359);if(!_0x1619e7)return;let _0x4566e3=this[_0x5d2939(0x2cb)]?this[_0x5d2939(0x2cb)][_0x5d2939(0x3cb)]:_0x480191,_0x3d117b=this[_0x5d2939(0x2cb)]?this[_0x5d2939(0x2cb)][_0x5d2939(0x1d9)]:this[_0x5d2939(0x280)](_0x1619e7[_0x5d2939(0x4d6)],_0x4566e3),_0x548899;if(this[_0x5d2939(0x2cb)]){let _0x31249c=this[_0x5d2939(0x2f6)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x5d2939(0x346)],'subUnitId':this[_0x5d2939(0x2cb)][_0x5d2939(0x369)],'drawingId':this[_0x5d2939(0x2cb)][_0x5d2939(0x3cd)]});if(_0x31249c!=null&&_0x31249c[_0x5d2939(0x2fd)]){let {left:_0x20487b=0x0,top:_0x367f04=0x0,width:_0x59dfec=0x0,height:_0x540b7a=0x0,angle:_0x1be042}=_0x31249c[_0x5d2939(0x2fd)];_0x548899=(0x0,n[_0x5d2939(0x168)])({'left':_0x20487b,'top':_0x367f04,'width':_0x59dfec,'height':_0x540b7a},_0x1be042||0x0);}else _0x548899={'left':_0x4566e3['x'],'top':_0x4566e3['y'],'width':0x0,'height':0x0};}else _0x548899={'left':_0x4566e3['x'],'top':_0x4566e3['y'],'width':0x0,'height':0x0};let _0x5462f0={'point':_0x4566e3,'angle':_0x3d117b,'bounds':_0x548899},_0x4d5e3c=_0x16e93e?_0x5462f0:_0x1619e7,_0x3c3c3d=_0x16e93e?_0x1619e7:_0x5462f0,_0x22b556=this[_0x5d2939(0x2d6)]['getShapeType'](),_0x5244b5=(0x0,n['routeConnectorLineShape'])(_0x4d5e3c,_0x3c3c3d,_0x22b556);_0x5244b5&&this['_activeShapeModel'][_0x5d2939(0x44d)](_0x5244b5);let _0x1c2ca9=(0x0,n[_0x5d2939(0x279)])(_0x5244b5,_0x22b556);_0x1c2ca9[_0x5d2939(0x176)]!==_0x22b556&&this[_0x5d2939(0x2d6)]['changeShapeType'](_0x1c2ca9[_0x5d2939(0x176)]);for(let [_0x492883,_0x370af5]of Object['entries'](_0x1c2ca9[_0x5d2939(0x441)]))this[_0x5d2939(0x2d6)]['setAdjustValueByName'](_0x492883,_0x370af5);this[_0x5d2939(0x2d6)][_0x5d2939(0x162)]({'width':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x254)],'height':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x457)]}),_0x2740bd[_0x5d2939(0x49b)]({'flipX':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x174)],'flipY':_0x1c2ca9['worldRect'][_0x5d2939(0x19a)],'left':_0x1c2ca9[_0x5d2939(0x391)]['left'],'top':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x480)],'width':_0x1c2ca9['worldRect']['width'],'height':_0x1c2ca9[_0x5d2939(0x391)]['height'],'angle':_0x1c2ca9[_0x5d2939(0x324)]}),_0x2740bd[_0x5d2939(0x213)](!0x0);let _0x12425a=((_0x86f74e=this[_0x5d2939(0x2cb)])==null?void 0x0:_0x86f74e['worldPoint'])??_0x480191;_0x19ba8d['transformByState']({'left':_0x12425a['x']-n[_0x5d2939(0x291)][_0x5d2939(0x3bb)],'top':_0x12425a['y']-n['ShapeDefaultConfig'][_0x5d2939(0x3bb)]});}['_handleFreeEndpointMove'](_0x420120,_0xa3c8fa,_0x2bc4ef,_0x5c68f4,_0x562acb){const _0x2620c1=_0x5e988f;var _0xfe70c7,_0x18dfa7;let _0x43a498=((_0xfe70c7=this['_currentConnectionTarget'])==null?void 0x0:_0xfe70c7[_0x2620c1(0x3cb)])??_0x420120,_0x5d95b1=n[_0x2620c1(0x22f)]['computeConnectorResizeLayout'](_0xa3c8fa,_0x43a498,_0x2bc4ef);_0x5c68f4[_0x2620c1(0x49b)]({'flipX':_0x5d95b1['worldRect'][_0x2620c1(0x174)],'flipY':_0x5d95b1['worldRect'][_0x2620c1(0x19a)],'left':_0x5d95b1['worldRect'][_0x2620c1(0x3d8)],'top':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x480)],'width':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x254)],'height':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x457)],'angle':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x1d9)]});let _0x4f54ee=((_0x18dfa7=this[_0x2620c1(0x2cb)])==null?void 0x0:_0x18dfa7['worldPoint'])??_0x420120;_0x562acb['transformByState']({'left':_0x4f54ee['x']-n[_0x2620c1(0x291)][_0x2620c1(0x3bb)],'top':_0x4f54ee['y']-n[_0x2620c1(0x291)][_0x2620c1(0x3bb)]});}[_0x5e988f(0x1b0)](_0x162b2f){const _0x21736f=_0x5e988f;if(!this[_0x21736f(0x308)]||!this['_subUnitId'])return null;let {shapeId:_0x5ee8b7,cxnIndex:_0x54620a}=_0x162b2f,_0x2b3681=this['_sheetsShapeService']['getShapeModel'](this[_0x21736f(0x308)],this[_0x21736f(0x363)],_0x5ee8b7);if(!_0x2b3681)return null;let _0xe31ae1=this[_0x21736f(0x2f6)][_0x21736f(0x2fc)]({'unitId':this[_0x21736f(0x308)],'subUnitId':this[_0x21736f(0x363)],'drawingId':_0x5ee8b7});if(!(_0xe31ae1!=null&&_0xe31ae1['transform']))return null;let {left:_0x2575b7=0x0,top:_0x7926d3=0x0,width:_0x12b583=0x0,height:_0x20a9af=0x0,flipX:_0xe3a411=!0x1,flipY:_0x36129e=!0x1,angle:_0x2d7d}=_0xe31ae1['transform'];_0x2b3681[_0x21736f(0x162)]({'width':_0x12b583,'height':_0x20a9af});let _0xa0728b=_0x2b3681[_0x21736f(0x4b2)]()[_0x21736f(0x2d1)](_0x2f2b06=>_0x2f2b06[_0x21736f(0x37a)]===_0x54620a);if(!_0xa0728b)return null;let _0x41c8cc=_0xe3a411?_0x12b583-_0xa0728b['x']:_0xa0728b['x'],_0x1fc421=_0x36129e?_0x20a9af-_0xa0728b['y']:_0xa0728b['y'];if(_0x2d7d!==0x0&&_0x2d7d!=null){let _0x346584=_0x2d7d*Math['PI']/0xb4,_0x205840=Math['cos'](_0x346584),_0x2857b6=Math['sin'](_0x346584),_0x5e64f2=_0x12b583/0x2,_0x5b4f0b=_0x20a9af/0x2,_0xde88ed=_0x41c8cc-_0x5e64f2,_0x29adbd=_0x1fc421-_0x5b4f0b;_0x41c8cc=_0x5e64f2+_0xde88ed*_0x205840-_0x29adbd*_0x2857b6,_0x1fc421=_0x5b4f0b+_0xde88ed*_0x2857b6+_0x29adbd*_0x205840;}_0x41c8cc+=_0x2575b7,_0x1fc421+=_0x7926d3;let _0x1eae8f=_0xa0728b[_0x21736f(0x47d)]/0xea60;_0xe3a411&&(_0x1eae8f=0xb4-_0x1eae8f),_0x36129e&&(_0x1eae8f=-_0x1eae8f),_0x1eae8f+=_0x2d7d||0x0,_0x1eae8f=(_0x1eae8f%0x168+0x168)%0x168;let _0x15bfb2=(0x0,n[_0x21736f(0x168)])({'left':_0x2575b7,'top':_0x7926d3,'width':_0x12b583,'height':_0x20a9af},_0x2d7d||0x0);return{'point':{'x':_0x41c8cc,'y':_0x1fc421},'angle':_0x1eae8f,'bounds':_0x15bfb2};}['_calculateFreeEndpointAngle'](_0x184455,_0x416958){const _0x728004=_0x5e988f;let _0xbb8903=_0x416958['x']-_0x184455['x'],_0x52d3f8=_0x416958['y']-_0x184455['y'];return Math['abs'](_0xbb8903)>=Math[_0x728004(0x4c0)](_0x52d3f8)?_0xbb8903>=0x0?0xb4:0x0:_0x52d3f8>=0x0?0x10e:0x5a;}['_reset'](){const _0x4ecd95=_0x5e988f;this[_0x4ecd95(0x15e)]=void 0x0,this[_0x4ecd95(0x308)]=void 0x0,this[_0x4ecd95(0x363)]=void 0x0,this[_0x4ecd95(0x1d5)]();}[_0x5e988f(0x4c1)](){const _0x4777b8=_0x5e988f;this['_clearShapeConnectorHandlerObjects'](),super[_0x4777b8(0x4c1)]();}};Ct=A([k(0x1,a['ICommandService']),k(0x2,c[_0x5e988f(0x18e)]),k(0x3,s[_0x5e988f(0x1bd)]),k(0x4,a[_0x5e988f(0x4c8)]),k(0x5,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x6,(0x0,a['Inject'])(M)),k(0x7,(0x0,a[_0x5e988f(0x334)])(K))],Ct);let J=class extends a[_0x5e988f(0x302)]{constructor(_0x31f674,_0x506bfd,_0x19cc65){const _0x33f1a7=_0x5e988f;super(),this[_0x33f1a7(0x377)]=_0x31f674,this[_0x33f1a7(0x2f6)]=_0x506bfd,this['_shapeRenderController']=_0x19cc65,this[_0x33f1a7(0x4b3)]();}[_0x5e988f(0x4b3)](){const _0x5f18d3=_0x5e988f;this['disposeWithMe'](this[_0x5f18d3(0x377)]['interceptor'][_0x5f18d3(0x298)](this['_sheetPrintInterceptorService'][_0x5f18d3(0x45f)][_0x5f18d3(0x37f)]()[_0x5f18d3(0x1a9)],{'handler':(_0x42cde0,_0x2e9a8f,_0x1e7077)=>{const _0x331d5d=_0x5f18d3;var _0x17572a;let {unitId:_0x10dbde,subUnitId:_0x132478,scene:_0x5e221d,resourceCollector:_0x10a341}=_0x2e9a8f,_0x301f5d=(_0x17572a=this[_0x331d5d(0x2f6)][_0x331d5d(0x180)](_0x10dbde))==null?void 0x0:_0x17572a[_0x132478];return _0x301f5d==null||_0x301f5d['order']['forEach'](_0x1bc33b=>{const _0x31d27e=_0x331d5d;let _0x2f34ed=_0x301f5d[_0x31d27e(0x381)][_0x1bc33b];_0x2f34ed[_0x31d27e(0x2aa)]===a[_0x31d27e(0x181)][_0x31d27e(0x1d7)]&&!_0x2f34ed[_0x31d27e(0x404)]&&this[_0x31d27e(0x257)][_0x31d27e(0x461)](_0x2f34ed,_0x5e221d,{'resourceCollector':_0x10a341});}),_0x1e7077(_0x42cde0);}}));}};J=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(l['SheetPrintInterceptorService'])),k(0x1,s[_0x5e988f(0x1bd)]),k(0x2,(0x0,a['Inject'])(j))],J);let Y=class extends a[_0x5e988f(0x302)]{constructor(_0x2cdb2a,_0x5912be,_0x524ddc){const _0x2f0361=_0x5e988f;super(),this[_0x2f0361(0x263)]=_0x2cdb2a,this[_0x2f0361(0x1fb)]=_0x5912be,this[_0x2f0361(0x1f9)]=_0x524ddc,this[_0x2f0361(0x1be)]();}[_0x5e988f(0x1be)](){const _0x41d333=_0x5e988f;this[_0x41d333(0x36f)](this[_0x41d333(0x263)][_0x41d333(0x365)](_0x106c06=>{const _0x4073c0=_0x41d333;let _0x259d59,_0xa5ca8d;if(_0x106c06['id']===i[_0x4073c0(0x323)]['id']||_0x106c06['id']===i[_0x4073c0(0x49e)]['id']||_0x106c06['id']===i['UpdateConnectorRelationCommand']['id']){let _0x42d404=_0x106c06[_0x4073c0(0x217)];_0x259d59=_0x42d404[_0x4073c0(0x346)],_0xa5ca8d=_0x42d404[_0x4073c0(0x369)];}_0x259d59&&_0xa5ca8d&&(this[_0x4073c0(0x1f9)]['permissionCheckWithoutRange']({'workbookTypes':[o[_0x4073c0(0x4ee)]],'worksheetTypes':[o[_0x4073c0(0x33b)]]},_0x259d59,_0xa5ca8d)||this[_0x4073c0(0x1f9)][_0x4073c0(0x2c1)](this[_0x4073c0(0x1fb)]['t']('sheets-shape-ui.permission.editErr')));}));}};Y=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(a['ICommandService'])),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(o[_0x5e988f(0x490)]))],Y);let X=class{constructor(_0x34b8bf){const _0x4de3ca=_0x5e988f;this[_0x4de3ca(0x1ea)]=_0x34b8bf;}['updateShapeFillImage'](_0xfea1a4,_0x5a8884){const _0x1210a0=_0x5e988f;let _0x502246=this['_renderManagerService'][_0x1210a0(0x188)](_0xfea1a4[_0x1210a0(0x346)]),_0x1214e9=_0x502246==null?void 0x0:_0x502246[_0x1210a0(0x466)];if(!_0x1214e9)return;let _0x10388e=(0x0,s['getDrawingShapeKeyByDrawingSearch'])(_0xfea1a4),_0x431310=_0x1214e9[_0x1210a0(0x300)](_0x10388e);_0x431310==null||_0x431310['setFillImage'](_0x5a8884);}};X=A([k(0x0,c[_0x5e988f(0x18e)])],X);let Z=class extends a[_0x5e988f(0x26f)]{constructor(_0x3a222d=lt,_0x1a15ee,_0xa8d1e0,_0x7c44a,_0x3a6e25){const _0x29449f=_0x5e988f;super(),this['_config']=_0x3a222d,this[_0x29449f(0x3f1)]=_0x1a15ee,this['_commandService']=_0xa8d1e0,this[_0x29449f(0x2fe)]=_0x7c44a,this[_0x29449f(0x1ea)]=_0x3a6e25;let {..._0x52ad73}=(0x0,a['merge'])({},lt,this[_0x29449f(0x4e0)]);this['_configService']['setConfig'](ct,_0x52ad73),this[_0x29449f(0x31f)]();}[_0x5e988f(0x3e4)](){const _0x27afe7=_0x5e988f;this[_0x27afe7(0x3f1)][_0x27afe7(0x4b5)]([ht]),this[_0x27afe7(0x3f1)][_0x27afe7(0x329)](ht),(0x0,a[_0x27afe7(0x4da)])(this['_injector'],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x5e988f(0x3d9)](){const _0x13faee=_0x5e988f;(0x0,a['registerDependencies'])(this['_injector'],[[K],[M],[q]]),(0x0,a[_0x13faee(0x1e0)])(this['_injector'],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x13faee(0x424)](_0x511b1f=>{const _0x1b8172=_0x13faee;this['disposeWithMe'](this[_0x1b8172(0x1ea)]['registerRenderModule'](a[_0x1b8172(0x15d)][_0x1b8172(0x2ba)],_0x511b1f));});}[_0x5e988f(0x4e1)](){(0x0,a['touchDependencies'])(this['_injector'],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onSteady'](){const _0x1c057f=_0x5e988f;this[_0x1c057f(0x3f1)]['get'](U)['initShapePopupMenu']();}[_0x5e988f(0x31f)](){const _0x1230f2=_0x5e988f;[P,S,N,st][_0x1230f2(0x424)](_0x32f218=>this['disposeWithMe'](this[_0x1230f2(0x263)]['registerCommand'](_0x32f218)));}};E(Z,_0x5e988f(0x468),a[_0x5e988f(0x15d)][_0x5e988f(0x2ba)]),E(Z,_0x5e988f(0x360),_0x5e988f(0x2bf)),E(Z,_0x5e988f(0x4d3),at),E(Z,_0x5e988f(0x355),ot),Z=A([(0x0,a['DependentOn'])(h[_0x5e988f(0x33c)],g[_0x5e988f(0x268)],s['UniverDrawingPlugin'],c[_0x5e988f(0x2fa)],o[_0x5e988f(0x191)],_[_0x5e988f(0x1cd)],m[_0x5e988f(0x282)],r['UniverShapeEditorPlugin'],v[_0x5e988f(0x15f)],i['UniverSheetsShapePlugin'],l[_0x5e988f(0x233)],e[_0x5e988f(0x199)],t[_0x5e988f(0x157)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x393)])),k(0x2,a['ICommandService']),k(0x3,a[_0x5e988f(0x304)]),k(0x4,c['IRenderManagerService'])],Z);const wt={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function Tt(){const _0x2f40a2=_0x5e988f;let _0x70bc90=(0x0,t[_0x2f40a2(0x252)])(s['IDrawingManagerService']),_0x147491=(0x0,t[_0x2f40a2(0x1bb)])(()=>_0x70bc90['focus$'],_0x70bc90['getFocusDrawings'](),!0x1,[_0x70bc90]);return _0x147491[_0x2f40a2(0x2b6)]===0x0?null:(0x0,p[_0x2f40a2(0x347)])('div',{'children':(0x0,p[_0x2f40a2(0x4f1)])('div',{'className':_0x2f40a2(0x305),'children':[(0x0,p['jsx'])(d[_0x2f40a2(0x2e9)],{'drawings':_0x147491,'hasCropper':!0x1}),(0x0,p['jsx'])(v[_0x2f40a2(0x3ea)],{'drawings':_0x147491})]})});}function Et(_0x3f3169){const _0x2aed4e=_0x5e988f;let {unitId:_0x3b9241,subUnitId:_0x11d7cd,shapeId:_0x4ebc5c}=_0x3f3169,_0x1ebd15=(0x0,t['useDependency'])(a[_0x2aed4e(0x32c)]),_0x389512=(0x0,t[_0x2aed4e(0x252)])(X);return(0x0,p[_0x2aed4e(0x347)])(e['ShapeEditPanel'],{..._0x3f3169,'positionEditor':(0x0,p[_0x2aed4e(0x347)])(Tt,{}),'onUpdateShapeData':(_0x28c14c,_0x4eb6b0)=>{C(_0x1ebd15,_0x3b9241,_0x11d7cd,_0x4ebc5c,_0x28c14c,_0x4eb6b0);},'onUpdateLineShapeData':(_0x48f4d6,_0x1c3912)=>{w(_0x1ebd15,_0x3b9241,_0x11d7cd,_0x4ebc5c,_0x48f4d6,_0x1c3912);},'onUpdateShapeFillImage':_0x57c044=>{const _0x11ff94=_0x2aed4e;_0x389512[_0x11ff94(0x232)]({'unitId':_0x3b9241,'subUnitId':_0x11d7cd,'drawingId':_0x4ebc5c},_0x57c044);}});}function Dt(_0x2ec34d){const _0x1d68dd=_0x5e988f;let _0x3cc355=(0x0,t[_0x1d68dd(0x252)])(e[_0x1d68dd(0x1eb)]),_0x53f810=(0x0,t[_0x1d68dd(0x1bb)])(()=>_0x3cc355[_0x1d68dd(0x41f)],_0x3cc355['getVisible'](),!0x1,[_0x3cc355]),_0x1d892a=_0x2ec34d[_0x1d68dd(0x1a7)][_0x1d68dd(0x23b)];return!_0x1d892a||!_0x53f810?null:(0x0,p[_0x1d68dd(0x347)])(Ot,{..._0x1d892a,'canvasElement':_0x2ec34d[_0x1d68dd(0x1a7)][_0x1d68dd(0x229)]});}function Ot(_0x516d34){const _0x11ddb7=_0x5e988f;let _0x3d6fb7=(0x0,t['useDependency'])(a['ICommandService']),_0x31dc1a=(0x0,t[_0x11ddb7(0x252)])(i[_0x11ddb7(0x44c)]),{unitId:_0xb22403,subUnitId:_0x456762,drawingId:_0x26ab67,drawingType:_0x56b870,shapeType:_0x3860ed}=_0x516d34,[_0x2de04c,_0x349dd2]=(0x0,b['useState'])(_0x516d34[_0x11ddb7(0x192)]),_0x3db22a=(0x0,b[_0x11ddb7(0x21f)])(()=>(0x0,e['getTextStyle'])(_0x2de04c),[_0x2de04c]),_0x38365d=(0x0,b[_0x11ddb7(0x21f)])(()=>(0x0,e[_0x11ddb7(0x210)])(_0x2de04c),[_0x2de04c]);(0x0,b['useEffect'])(()=>{const _0x2c6bdb=_0x11ddb7;let _0x4f4ebb=_0x3d6fb7['onCommandExecuted'](_0x130ded=>{const _0x4686aa=_0x2dd2;if(_0x130ded['id']!==i[_0x4686aa(0x17c)]['id'])return;let _0x25456f=_0x31dc1a[_0x4686aa(0x4ea)](_0xb22403,_0x456762,_0x26ab67);_0x25456f&&_0x349dd2(_0x25456f);});return()=>_0x4f4ebb[_0x2c6bdb(0x4c1)]();},[_0x3d6fb7,_0x26ab67,_0x31dc1a,_0x456762,_0xb22403]);let _0x49af77=_0x556a75=>{_0x349dd2(_0x42fe01=>({..._0x42fe01,..._0x556a75}));},_0x187061=_0xc51163=>{const _0x231dc5=_0x11ddb7;let _0x21097a=(0x0,e[_0x231dc5(0x171)])(_0x2de04c,_0xc51163);C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,{'oldShapeData':{'shapeText':_0x2de04c[_0x231dc5(0x23a)]}},_0x21097a),_0x49af77(_0x21097a);},_0x3dd53a=(0x0,e[_0x11ddb7(0x495)])({'hostType':a[_0x11ddb7(0x15d)][_0x11ddb7(0x2ba)],'unitId':_0xb22403,'subUnitId':_0x456762,'shapeId':_0x26ab67,'shapeData':_0x2de04c,'onUpdateBinding':_0x3c1f93=>{const _0x44cf8d=_0x11ddb7;let _0x30fb5f={'formulaBinding':_0x3c1f93};C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,{'oldShapeData':{'formulaBinding':_0x2de04c[_0x44cf8d(0x425)]}},_0x30fb5f),_0x49af77(_0x30fb5f);}});return(0x0,p[_0x11ddb7(0x4f1)])(p[_0x11ddb7(0x3be)],{'children':[(0x0,p[_0x11ddb7(0x347)])(e['ShapeFloatingToolbar'],{'canvasElement':_0x516d34[_0x11ddb7(0x229)],'shapeData':_0x2de04c,'shapeType':_0x3860ed,'textStyle':{'ff':n['ShapeDefaultConfig'][_0x11ddb7(0x23a)][_0x11ddb7(0x3a6)],'fs':n[_0x11ddb7(0x291)][_0x11ddb7(0x23a)]['fontSize'],'cl':{'rgb':n[_0x11ddb7(0x291)][_0x11ddb7(0x23a)][_0x11ddb7(0x3d4)]},..._0x3db22a},'textModel':_0x38365d?{'ha':_0x38365d['ha']??a[_0x11ddb7(0x412)][_0x11ddb7(0x275)],'va':_0x38365d['va']??a[_0x11ddb7(0x4f3)][_0x11ddb7(0x436)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x11ddb7(0x291)][_0x11ddb7(0x35c)],'defaultGradientEndColor':n[_0x11ddb7(0x291)][_0x11ddb7(0x4cf)],'defaultStrokeColor':n['ShapeDefaultConfig'][_0x11ddb7(0x413)],'extensionGroups':_0x3dd53a[_0x11ddb7(0x16d)],'floatingObjectToolbarPosition':t[_0x11ddb7(0x4a7)]['SHEET'],'onUpdateShapeData':(_0x53ec9e,_0x48df5b)=>{C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,_0x53ec9e,_0x48df5b),_0x48df5b&&_0x49af77(_0x48df5b);},'onUpdateText':_0x187061,'onOpenPanel':()=>{const _0x2ceb71=_0x11ddb7;_0x3d6fb7[_0x2ceb71(0x32b)](z['id'],{'unitId':_0xb22403,'subUnitId':_0x456762,'drawingId':_0x26ab67});},'onDelete':()=>{const _0x2fd15f=_0x11ddb7;_0x3d6fb7[_0x2fd15f(0x32b)](m[_0x2fd15f(0x1b1)]['id'],{'unitId':_0xb22403,'drawings':[{'unitId':_0xb22403,'subUnitId':_0x456762,'drawingId':_0x26ab67,'drawingType':_0x56b870}]});}}),_0x3dd53a[_0x11ddb7(0x4e8)]]});}function kt(_0x2b120f){const _0x47b700=_0x5e988f;return!!_0x2b120f&&_0x47b700(0x418)in _0x2b120f&&_0x47b700(0x444)in _0x2b120f;}const At=(0x0,b[_0x5e988f(0x24b)])(()=>{const _0x56ac0c=_0x5e988f;let _0x304298=(0x0,t['useDependency'])(H),_0x56af57=(0x0,t['useDependency'])(i['SheetsShapeService']),_0x5a250a=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0x5264a0=(0x0,t[_0x56ac0c(0x252)])(a['ICommandService']),_0x27260d=(0x0,t[_0x56ac0c(0x252)])(t[_0x56ac0c(0x255)]),_0xc7200d=(0x0,t[_0x56ac0c(0x252)])(c['IRenderManagerService']),_0x4d663f=(0x0,b[_0x56ac0c(0x21f)])(()=>({'getShapeModel':(_0x4b73f2,_0x245d2f,_0x595516)=>_0x56af57['getShapeModel'](_0x4b73f2,_0x245d2f,_0x595516),'getShapeData':(_0xbfbc80,_0x195e74,_0x36fc4f)=>_0x56af57[_0x56ac0c(0x4ea)](_0xbfbc80,_0x195e74,_0x36fc4f),'getDrawingTransform':(_0x40f4bb,_0xabe2a5,_0x534fc1)=>{const _0x3c3836=_0x56ac0c;let _0x177ec4=_0x5a250a[_0x3c3836(0x2fc)]({'unitId':_0x40f4bb,'subUnitId':_0xabe2a5,'drawingId':_0x534fc1});return _0x177ec4==null?void 0x0:_0x177ec4[_0x3c3836(0x2fd)];},'updateShapeText':({unitId:_0x3c79d8,subUnitId:_0x5d7652,shapeId:_0x43a9bd,shapeText:_0x73850f,oldShapeText:_0x54ef12,hostSize:_0x166411})=>{_0x27260d['run'](_0x3c79d8,()=>{const _0x2fbe00=_0x2dd2;var _0x3290e2;let _0x53224e=_0x5264a0[_0x2fbe00(0x185)](S['id'],{'unitId':_0x3c79d8,'subUnitId':_0x5d7652,'shapeId':_0x43a9bd,'shapeData':{'shapeText':_0x73850f},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x54ef12}}});if(!_0x53224e||!_0x166411)return _0x53224e;let _0x430c37=_0x5a250a[_0x2fbe00(0x2fc)]({'unitId':_0x3c79d8,'subUnitId':_0x5d7652,'drawingId':_0x43a9bd}),_0x5bca8c=_0x430c37==null?void 0x0:_0x430c37[_0x2fbe00(0x2fd)];if(!kt(_0x430c37)||!_0x5bca8c)return!0x1;let _0x4ff088={..._0x5bca8c,'width':_0x166411[_0x2fbe00(0x254)],'height':_0x166411[_0x2fbe00(0x457)]},_0x13e062=(_0x3290e2=_0xc7200d[_0x2fbe00(0x188)](_0x3c79d8))==null||(_0x3290e2=_0x3290e2[_0x2fbe00(0x246)](l['SheetSkeletonManagerService'])[_0x2fbe00(0x328)](_0x5d7652))==null?void 0x0:_0x3290e2['skeleton'];return _0x5264a0[_0x2fbe00(0x185)](m['SetSheetDrawingCommand']['id'],{'unitId':_0x3c79d8,'drawings':[{..._0x430c37,'transform':_0x4ff088,'sheetTransform':_0x13e062?(0x0,m['transformToDrawingPosition'])(_0x4ff088,_0x13e062)??_0x430c37[_0x2fbe00(0x444)]:_0x430c37[_0x2fbe00(0x444)],'axisAlignSheetTransform':_0x13e062?(0x0,m[_0x2fbe00(0x3e8)])(_0x4ff088,_0x13e062)??_0x430c37[_0x2fbe00(0x418)]:_0x430c37[_0x2fbe00(0x418)]}]});});},'updateHostSize':({unitId:_0x199768,subUnitId:_0x52c80b,shapeId:_0x8ae4f3,width:_0x4f38f0,height:_0x59f863})=>{const _0x180911=_0x56ac0c;var _0x19af32;let _0x117ed1=_0x5a250a[_0x180911(0x2fc)]({'unitId':_0x199768,'subUnitId':_0x52c80b,'drawingId':_0x8ae4f3}),_0x3ccb74=_0x117ed1==null?void 0x0:_0x117ed1[_0x180911(0x2fd)];if(!kt(_0x117ed1)||!_0x3ccb74)return;let _0x52ba6e={..._0x3ccb74,'width':_0x4f38f0,'height':_0x59f863},_0xd433be=(_0x19af32=_0xc7200d['getRenderUnitById'](_0x199768))==null||(_0x19af32=_0x19af32[_0x180911(0x246)](l[_0x180911(0x306)])['getSkeletonParam'](_0x52c80b))==null?void 0x0:_0x19af32[_0x180911(0x349)],_0x4173c0=_0xd433be?(0x0,m[_0x180911(0x186)])(_0x52ba6e,_0xd433be)??_0x117ed1['sheetTransform']:_0x117ed1[_0x180911(0x444)],_0x10f9d3=_0xd433be?(0x0,m[_0x180911(0x3e8)])(_0x52ba6e,_0xd433be)??_0x117ed1[_0x180911(0x418)]:_0x117ed1[_0x180911(0x418)];_0x5264a0[_0x180911(0x32b)](m['SetSheetDrawingCommand']['id'],{'unitId':_0x199768,'drawings':[{..._0x117ed1,'transform':_0x52ba6e,'sheetTransform':_0x4173c0,'axisAlignSheetTransform':_0x10f9d3}]});},'allowHostSizeShrink':({unitId:_0x3f0f3f,subUnitId:_0x1eb862,shapeId:_0x9aad02})=>(0x0,e[_0x56ac0c(0x258)])(_0x56af57[_0x56ac0c(0x4ea)](_0x3f0f3f,_0x1eb862,_0x9aad02)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5264a0,_0x5a250a,_0xc7200d,_0x56af57,_0x27260d]),_0x125855=(0x0,b[_0x56ac0c(0x21f)])(()=>({'viewportKeys':{'main':c[_0x56ac0c(0x2e8)][_0x56ac0c(0x3a8)],'leftTop':c[_0x56ac0c(0x2e8)]['VIEW_MAIN_LEFT_TOP'],'top':c['SHEET_VIEWPORT_KEY'][_0x56ac0c(0x439)],'left':c[_0x56ac0c(0x2e8)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x4d577a,_0x5f78bd)=>{const _0x4883f7=_0x56ac0c;var _0x99de9d;return((_0x99de9d=_0x4d577a[_0x4883f7(0x246)](l[_0x4883f7(0x306)])['getSkeletonParam'](_0x5f78bd['subUnitId']))==null?void 0x0:_0x99de9d[_0x4883f7(0x349)])??null;}}),[]);return(0x0,p[_0x56ac0c(0x347)])(e[_0x56ac0c(0x1cf)],{'adapter':_0x4d663f,'editingService':_0x304298,'editorUnitId':re,'positionOptions':_0x125855});});let jt=class extends a[_0x5e988f(0x302)]{constructor(_0xc9e0e5,_0x3ed157){const _0x11391a=_0x5e988f;super(),this['_componentManager']=_0xc9e0e5,this['_iconManager']=_0x3ed157,this[_0x11391a(0x20f)](),this[_0x11391a(0x247)]();}[_0x5e988f(0x20f)](){const _0x59faed=_0x5e988f;this[_0x59faed(0x354)][_0x59faed(0x4ec)]('ObjectLayersIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)]['register']({'ObjectLayersIcon':y[_0x59faed(0x2ef)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x197))||this['disposeWithMe'](this[_0x59faed(0x354)]['register']({'FlipHorizontalIcon':y[_0x59faed(0x197)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x336))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'FlipVerticalIcon':y[_0x59faed(0x336)]})),this['_iconManager'][_0x59faed(0x4ec)]('BottomIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'BottomIcon':y['BottomIcon']})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x29a))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)]['register']({'MoveDownIcon':y[_0x59faed(0x29a)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x4d0))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'MoveUpIcon':y['MoveUpIcon']})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'ShapeFormatSettingIcon':y['ShapeFormatSettingIcon']})),this[_0x59faed(0x354)]['has'](_0x59faed(0x312))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'TopmostIcon':y['TopmostIcon']}));}[_0x5e988f(0x247)](){const _0x329778=_0x5e988f;this[_0x329778(0x36f)](this[_0x329778(0x3a9)]['register'](F,Et)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](I,pt)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](le,he)),this[_0x329778(0x36f)](this['_componentManager']['register'](ue,fe)),this[_0x329778(0x3a9)][_0x329778(0x4ed)](d[_0x329778(0x237)])||this[_0x329778(0x36f)](this['_componentManager'][_0x329778(0x3b6)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],me)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](L,Dt)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)]['register'](Ee,Ae)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](Te,je)),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)](De,Me)),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)](Oe,Ne)),this['disposeWithMe'](this['_componentManager'][_0x329778(0x3b6)](ie,e[_0x329778(0x4d1)])),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)]('SheetShapeTextEditorContainer',At));}};jt=A([k(0x0,(0x0,a['Inject'])(t[_0x5e988f(0x399)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(t['IconManager']))],jt);let Mt=class extends a[_0x5e988f(0x302)]{constructor(_0x2f8045,_0x37ca61,_0x1d6e21,_0x556ebb,_0x4710c9,_0x520c76,_0x26f866,_0x331c5,_0x2f6869){const _0x498e77=_0x5e988f;super();let _0x5c1ebc=_0x51fd82=>{const _0xdcd96d=_0x2dd2;var _0x5a72fd,_0x77c8dd;return(((_0x5a72fd=_0x331c5['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x51fd82['unitId'])['id']))==null?void 0x0:_0x5a72fd[_0xdcd96d(0x321)])??!0x0)&&(((_0x77c8dd=_0x331c5[_0xdcd96d(0x212)](new o[(_0xdcd96d(0x33b))](_0x51fd82[_0xdcd96d(0x346)],_0x51fd82['subUnitId'])['id']))==null?void 0x0:_0x77c8dd[_0xdcd96d(0x321)])??!0x0);},_0x501fbb=_0x17738d=>_0x17738d[_0x498e77(0x3cd)]&&_0x5c1ebc(_0x17738d)?_0x1d6e21[_0x498e77(0x4ea)](_0x17738d['unitId'],_0x17738d[_0x498e77(0x369)],_0x17738d['shapeId'])??null:null,_0x5f5a9b=()=>{const _0x565ffd=_0x498e77;let _0x3ae033=_0x4710c9['getFocusDrawings'](),_0x2022fd=_0x3ae033[_0x565ffd(0x2b6)]===0x1?_0x3ae033[0x0]:null;return(_0x2022fd==null?void 0x0:_0x2022fd['drawingType'])===a[_0x565ffd(0x181)][_0x565ffd(0x1d7)]&&_0x2022fd['unitId']===_0x2f8045[_0x565ffd(0x346)]?{'unitId':_0x2022fd[_0x565ffd(0x346)],'subUnitId':_0x2022fd['subUnitId'],'shapeId':_0x2022fd[_0x565ffd(0x456)]}:null;};this[_0x498e77(0x36f)]((0x0,e[_0x498e77(0x28a)])(_0x2f8045,_0x37ca61,{'changes$':(0x0,u[_0x498e77(0x1c1)])(_0x4710c9['focus$'],_0x556ebb[_0x498e77(0x3db)],_0x331c5['permissionPointUpdate$']),'isActive':()=>{const _0x31c32a=_0x498e77;var _0x36cac1;return((_0x36cac1=_0x520c76[_0x31c32a(0x492)]())==null?void 0x0:_0x36cac1[_0x31c32a(0x39d)]())===_0x2f8045['unitId']&&!_0x26f866[_0x31c32a(0x398)](a[_0x31c32a(0x34c)])&&_0x4710c9[_0x31c32a(0x166)]()[_0x31c32a(0x21d)](_0x4b44cf=>_0x4b44cf[_0x31c32a(0x346)]===_0x2f8045['unitId']);},'getSelectedTarget':_0x5f5a9b,'getSource':()=>{let _0x130c15=_0x5f5a9b();return _0x130c15?_0x501fbb(_0x130c15):null;},'getTarget':_0x2573eb=>{const _0x5626f2=_0x498e77;let _0xa69a7=_0x2f8045[_0x5626f2(0x466)][_0x5626f2(0x462)](new c[(_0x5626f2(0x459))](_0x2573eb[_0x5626f2(0x16e)],_0x2573eb[_0x5626f2(0x3dc)]));if(!(_0xa69a7 instanceof D))return null;let _0x26acbf={'unitId':_0x2f8045[_0x5626f2(0x346)],'subUnitId':_0xa69a7[_0x5626f2(0x369)],'shapeId':_0xa69a7[_0x5626f2(0x3cd)]};return _0x5c1ebc(_0x26acbf)?_0x26acbf:null;},'getShape':_0x501fbb,'update':(_0x5677cf,_0x2d5f96,_0x3993a1)=>_0x2f6869[_0x498e77(0x32b)](S['id'],{..._0x5677cf,'shapeData':_0x3993a1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2d5f96}})}));}};Mt=A([k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x432)])),k(0x2,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(H)),k(0x4,s['IDrawingManagerService']),k(0x5,a[_0x5e988f(0x4c8)]),k(0x6,a[_0x5e988f(0x449)]),k(0x7,a['IPermissionService']),k(0x8,a[_0x5e988f(0x32c)])],Mt);const Nt='sheets-shape-contextual-ribbon';let Pt=class extends a[_0x5e988f(0x302)]{constructor(_0x3dcd9b,_0x22ea04,_0x603115,_0x4595e7,_0x34a9fc,_0x21c014){const _0x1f5a0c=_0x5e988f;super(),this[_0x1f5a0c(0x32e)]=_0x3dcd9b,this[_0x1f5a0c(0x2c5)]=_0x22ea04,this[_0x1f5a0c(0x2f6)]=_0x603115,this['_univerInstanceService']=_0x4595e7,this[_0x1f5a0c(0x1ea)]=_0x34a9fc,this[_0x1f5a0c(0x1d6)]=_0x21c014,E(this,_0x1f5a0c(0x3b4),!0x1),this[_0x1f5a0c(0x32e)][_0x1f5a0c(0x315)](nt),this['disposeWithMe']((0x0,a['toDisposable'])(this[_0x1f5a0c(0x2f6)][_0x1f5a0c(0x15b)][_0x1f5a0c(0x24c)](()=>this[_0x1f5a0c(0x43f)]()))),this[_0x1f5a0c(0x43f)]();}[_0x5e988f(0x4c1)](){const _0x2819aa=_0x5e988f;this[_0x2819aa(0x1d6)]['setFallbackVisible'](!0x1,Nt),this['_hide'](),super[_0x2819aa(0x4c1)]();}['_update'](){const _0x351dd0=_0x5e988f;var _0x27e9ba;let _0x3ecd86=this[_0x351dd0(0x2f6)][_0x351dd0(0x166)](),_0x34e03c=_0x3ecd86[_0x351dd0(0x2b6)]===0x1?_0x3ecd86[0x0]:void 0x0;if((_0x34e03c==null?void 0x0:_0x34e03c[_0x351dd0(0x2aa)])!==a['DrawingTypeEnum']['DRAWING_SHAPE']||this['_univerInstanceService'][_0x351dd0(0x17f)](_0x34e03c[_0x351dd0(0x346)])!==a[_0x351dd0(0x15d)][_0x351dd0(0x2ba)]){this[_0x351dd0(0x1d6)][_0x351dd0(0x379)](!0x1,Nt),this['_hide']();return;}let _0x1c5b4a=(_0x27e9ba=this[_0x351dd0(0x1ea)]['getRenderUnitById'](_0x34e03c[_0x351dd0(0x346)]))==null?void 0x0:_0x27e9ba[_0x351dd0(0x236)][_0x351dd0(0x4e4)](),_0x2f409f=(0x0,e[_0x351dd0(0x4ba)])(_0x1c5b4a)===_0x351dd0(0x313);this[_0x351dd0(0x1d6)][_0x351dd0(0x379)](_0x2f409f,Nt),_0x2f409f?this['_hide']():this['_visible']||(this['_visible']=!0x0,this[_0x351dd0(0x2c5)][_0x351dd0(0x1d3)](R,{'activate':!0x0}));}[_0x5e988f(0x2dd)](){const _0x3bce49=_0x5e988f;this['_visible']&&(this['_visible']=!0x1,this[_0x3bce49(0x2c5)][_0x3bce49(0x196)](R),this['_ribbonService'][_0x3bce49(0x343)]([]));}};Pt=A([k(0x0,t[_0x5e988f(0x222)]),k(0x1,t['IRibbonService']),k(0x2,s[_0x5e988f(0x1bd)]),k(0x3,a['IUniverInstanceService']),k(0x4,c['IRenderManagerService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(e[_0x5e988f(0x1eb)]))],Pt);let Ft=class extends e[_0x5e988f(0x4df)]{constructor(_0x4fd79a,_0x4affb3,_0x43f92d,_0x3c8f2a,_0xe2222,_0x59e67d,_0x62fac7,_0x4661f5,_0x1782ea,_0x5290d0){super(_0x4fd79a,_0x4affb3,_0x43f92d,_0x3c8f2a,_0xe2222,_0x59e67d,_0x62fac7,_0x4661f5,_0x1782ea,_0x5290d0,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a['Inject'])(g[_0x5e988f(0x2cc)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(_['DocCanvasPopManagerService'])),k(0x3,(0x0,a['Inject'])(_[_0x5e988f(0x15c)])),k(0x4,a['ICommandService']),k(0x5,(0x0,a['Inject'])(_[_0x5e988f(0x307)])),k(0x6,(0x0,a['Inject'])(e['ShapeTextHyperLinkPopupService'])),k(0x7,(0x0,a[_0x5e988f(0x334)])(g[_0x5e988f(0x378)])),k(0x8,(0x0,a['Inject'])(_[_0x5e988f(0x446)])),k(0x9,(0x0,a['Inject'])(H))],Ft);let It=class extends e[_0x5e988f(0x182)]{constructor(_0x59dae4,_0x8d1657,_0x2060ad,_0x1c08a1,_0x37a11a){const _0x3b3ec8=_0x5e988f;super(_0x59dae4,_0x8d1657,{'editing$':_0x2060ad[_0x3b3ec8(0x3db)],'resolve':_0x20920f=>{const _0x2b2779=_0x3b3ec8;var _0x2ecdc0,_0x2480e1,_0x17896a;let _0x5b84e8=new c[(_0x2b2779(0x459))](_0x20920f['offsetX'],_0x20920f[_0x2b2779(0x3dc)]),_0x1ce7e8=((_0x2ecdc0=_0x59dae4[_0x2b2779(0x466)][_0x2b2779(0x33f)](_0x5b84e8))==null?void 0x0:_0x2ecdc0[_0x2b2779(0x29e)](_0x5b84e8))??_0x5b84e8,_0x3fbe3b=(0x0,e[_0x2b2779(0x1d0)])(_0x59dae4[_0x2b2779(0x466)][_0x2b2779(0x462)](_0x5b84e8)??null,_0x1ce7e8);if(!(_0x3fbe3b instanceof D))return null;let _0x49a5bb=_0x3fbe3b[_0x2b2779(0x487)](_0x1ce7e8);if(!_0x49a5bb)return null;let _0x41d277=_0x3fbe3b,_0x33b591={'componentKey':e[_0x2b2779(0x407)][_0x2b2779(0x1e7)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x8d1657[_0x2b2779(0x203)]()};return{'object':_0x3fbe3b,'info':{..._0x49a5bb,'unitId':_0x3fbe3b['unitId'],'subUnitId':_0x3fbe3b['subUnitId'],'shapeKey':_0x3fbe3b[_0x2b2779(0x4de)],'readonly':!0x0,'copyable':((_0x2480e1=_0x37a11a[_0x2b2779(0x212)](new o[(_0x2b2779(0x469))](_0x3fbe3b[_0x2b2779(0x346)])['id']))==null?void 0x0:_0x2480e1[_0x2b2779(0x321)])!==!0x1&&((_0x17896a=_0x37a11a['getPermissionPoint'](new o[(_0x2b2779(0x2a5))](_0x3fbe3b[_0x2b2779(0x346)],_0x3fbe3b[_0x2b2779(0x369)])['id']))==null?void 0x0:_0x17896a[_0x2b2779(0x321)])!==!0x1},'attachPopup':()=>_0x1c08a1[_0x2b2779(0x30c)](_0x41d277,_0x33b591)};}}),this[_0x3b3ec8(0x36f)](_0x59dae4[_0x3b3ec8(0x38a)][_0x3b3ec8(0x18a)]['subscribe'](()=>this['clear']()));}};It=A([k(0x1,(0x0,a[_0x5e988f(0x334)])(e[_0x5e988f(0x2f9)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(H)),k(0x3,(0x0,a['Inject'])(l[_0x5e988f(0x309)])),k(0x4,a['IPermissionService'])],It);let Q=class extends a[_0x5e988f(0x302)]{constructor(_0x4329ad,_0x4eb53f,_0x30b76a,_0x4cd441,_0x504f67,_0x2c8613,_0xa58302,_0x1f9a14,_0x1ebff9,_0x2b10e4,_0x2b3f7d){const _0x3b0537=_0x5e988f;super(),this[_0x3b0537(0x3fa)]=_0x4329ad,this[_0x3b0537(0x231)]=_0x4eb53f,this[_0x3b0537(0x32e)]=_0x30b76a,this[_0x3b0537(0x4d2)]=_0x4cd441,this[_0x3b0537(0x1fb)]=_0x504f67,this[_0x3b0537(0x263)]=_0x2c8613,this['_drawingManagerService']=_0xa58302,this[_0x3b0537(0x46d)]=_0x1f9a14,this['_contextService']=_0x1ebff9,this[_0x3b0537(0x1ea)]=_0x2b10e4,this[_0x3b0537(0x28f)]=_0x2b3f7d,E(this,'_sidebarDisposable',null),E(this,'_activeShapeInfo',null),E(this,_0x3b0537(0x3af),!0x1),E(this,_0x3b0537(0x3d5),0x0),E(this,'_shapePopupMenuDisposable',null),E(this,'_disposePopups',[]),this[_0x3b0537(0x23c)](),this[_0x3b0537(0x36f)](this['_univerInstanceService'][_0x3b0537(0x1b9)](a[_0x3b0537(0x15d)][_0x3b0537(0x2ba)])[_0x3b0537(0x24c)](_0x4bb359=>{if(!_0x4bb359){var _0x3281dd;(_0x3281dd=this['_sidebarDisposable'])==null||_0x3281dd['dispose']();}})),this[_0x3b0537(0x28d)](),this[_0x3b0537(0x41e)](),this[_0x3b0537(0x36f)](this['_shapeTextEditingService'][_0x3b0537(0x3db)][_0x3b0537(0x24c)](_0x478285=>{_0x478285&&this['_clearPopups']();}));}[_0x5e988f(0x23c)](){const _0x5e46bf=_0x5e988f;this['_menuManagerService'][_0x5e46bf(0x315)](it);}['initShapePopupMenu'](){const _0xf0d346=_0x5e988f;this[_0xf0d346(0x25e)]||=this[_0xf0d346(0x36f)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0xf0d346(0x1ea)],a[_0xf0d346(0x15d)][_0xf0d346(0x2ba)],_0x1bcb25=>this['_popupMenuListener'](_0x1bcb25)));}[_0x5e988f(0x226)](_0x240468,_0x7bad5d,_0x153f97){const _0x44d1e3=_0x5e988f;let _0x4871da=this[_0x44d1e3(0x4d2)]['getShapeTypeById'](_0x240468,_0x7bad5d,_0x153f97),_0x10ee72=this[_0x44d1e3(0x4d2)]['getShapeDataById'](_0x240468,_0x7bad5d,_0x153f97);return _0x4871da!==void 0x0&&_0x10ee72!==void 0x0?{'shapeData':_0x10ee72,'shapeId':_0x153f97,'shapeType':_0x4871da,'unitId':_0x240468,'subUnitId':_0x7bad5d,'version':this[_0x44d1e3(0x3d5)],'disableShapeOption':!0x1}:null;}[_0x5e988f(0x16b)](){const _0x445de3=_0x5e988f;this[_0x445de3(0x269)][_0x445de3(0x424)](_0x41e6bb=>_0x41e6bb[_0x445de3(0x4c1)]()),this[_0x445de3(0x269)][_0x445de3(0x2b6)]=0x0;}['_popupMenuListener'](_0x3ee1b5){const _0x7ad3f8=_0x5e988f;let _0x2760fe=new a[(_0x7ad3f8(0x1f5))]();return _0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x37c)][_0x7ad3f8(0x24c)](()=>{const _0x4bb0e5=_0x7ad3f8;let _0x14994f=_0x3ee1b5[_0x4bb0e5(0x1f4)]();if(this['_clearPopups'](),this[_0x4bb0e5(0x3af)]||_0x14994f['size']>0x1)return;let _0xde6a29=_0x14994f[_0x4bb0e5(0x3c9)]()['next']()[_0x4bb0e5(0x321)];if(!_0xde6a29)return;let _0x210f31=this[_0x4bb0e5(0x2f6)]['getDrawingOKey'](_0xde6a29[_0x4bb0e5(0x4de)]);if(!_0x210f31||_0x210f31['drawingType']!==a[_0x4bb0e5(0x181)][_0x4bb0e5(0x1d7)])return;let {unitId:_0x20508f,subUnitId:_0x449143,drawingId:_0x6f18cc,drawingType:_0xc9a58d}=_0x210f31,_0x3a25ff=this['_getShapeInfo'](_0x20508f,_0x449143,_0x6f18cc);if(!_0x3a25ff)return;this['_contextService'][_0x4bb0e5(0x1db)](a['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x5a5542=this[_0x4bb0e5(0x1ea)][_0x4bb0e5(0x188)](_0x20508f),_0x5e243e=((_0x5a5542==null?void 0x0:_0x5a5542[_0x4bb0e5(0x3f7)])===!0x1?_0x5a5542[_0x4bb0e5(0x246)](l[_0x4bb0e5(0x309)]):this['_sheetCanvasPopManagerService'])[_0x4bb0e5(0x30c)](_0xde6a29,{'componentKey':L,'direction':_0x4bb0e5(0x2cf),'offset':[0x0,e[_0x4bb0e5(0x23f)]],'extraProps':{'unitId':_0x20508f,'subUnitId':_0x449143,'drawingId':_0x6f18cc,'drawingType':_0xc9a58d,'shapeType':_0x3a25ff[_0x4bb0e5(0x1e6)],'shapeData':_0x3a25ff[_0x4bb0e5(0x192)]}});this[_0x4bb0e5(0x269)]['push'](this[_0x4bb0e5(0x36f)](_0x5e243e)),this['_drawingManagerService'][_0x4bb0e5(0x166)]()[_0x4bb0e5(0x2d1)](_0x45feb0=>_0x45feb0[_0x4bb0e5(0x346)]===_0x20508f&&_0x45feb0['subUnitId']===_0x449143&&_0x45feb0['drawingId']===_0x6f18cc)||this[_0x4bb0e5(0x2f6)][_0x4bb0e5(0x262)]([{'unitId':_0x20508f,'subUnitId':_0x449143,'drawingId':_0x6f18cc}]);})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x384)]['subscribe'](()=>{const _0x419103=_0x7ad3f8;this[_0x419103(0x16b)](),this[_0x419103(0x3c1)][_0x419103(0x1db)](a[_0x419103(0x281)],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5['changing$'][_0x7ad3f8(0x24c)](()=>{const _0x55ae67=_0x7ad3f8;this[_0x55ae67(0x16b)]();})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x2a4)][_0x7ad3f8(0x24c)](()=>{const _0x288506=_0x7ad3f8;this[_0x288506(0x16b)]();})),(0x0,a[_0x7ad3f8(0x1cc)])(()=>{const _0x1ad4ba=_0x7ad3f8;_0x2760fe['dispose'](),this[_0x1ad4ba(0x16b)]();});}['_registerOperations'](){const _0x20afbd=_0x5e988f;this[_0x20afbd(0x36f)](this[_0x20afbd(0x263)]['onCommandExecuted'](_0x592ee3=>{const _0x1f8364=_0x20afbd;if(_0x592ee3['id']===z['id']){let {unitId:_0x488ce4,subUnitId:_0x4b552a,drawingId:_0x17bd73}=_0x592ee3[_0x1f8364(0x217)];this[_0x1f8364(0x3d5)]+=0x1,this['_activeShapeInfo']=this[_0x1f8364(0x226)](_0x488ce4,_0x4b552a,_0x17bd73),this[_0x1f8364(0x16b)](),this[_0x1f8364(0x40e)]();}if(_0x592ee3['id']===wt['id']&&(this[_0x1f8364(0x3f3)]=null,this[_0x1f8364(0x2e2)]()),_0x592ee3['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x1171af,subUnitId:_0x1341bf,shapeId:_0x5ebd12}=_0x592ee3[_0x1f8364(0x217)];if(this[_0x1f8364(0x3f3)]&&this['_activeShapeInfo'][_0x1f8364(0x3cd)]===_0x5ebd12){let _0x315993=this[_0x1f8364(0x226)](_0x1171af,_0x1341bf,_0x5ebd12);_0x315993&&(this[_0x1f8364(0x3d5)]+=0x1,_0x315993['version']=this[_0x1f8364(0x3d5)],this[_0x1f8364(0x3f3)]=_0x315993,this[_0x1f8364(0x3af)]&&this[_0x1f8364(0x40e)]());}}})),this['disposeWithMe'](this[_0x20afbd(0x2f6)][_0x20afbd(0x15b)][_0x20afbd(0x24c)](_0x56197e=>{const _0x37c8f7=_0x20afbd;if(this[_0x37c8f7(0x3af)]===!0x1)return;if(_0x56197e[_0x37c8f7(0x2b6)]===0x0){this[_0x37c8f7(0x3f3)]=null,this['_closeShapeEditPanel']();return;}if(_0x56197e[_0x37c8f7(0x2b6)]===0x1&&_0x56197e[0x0]['drawingType']===a['DrawingTypeEnum'][_0x37c8f7(0x1d7)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x37c8f7(0x226)](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x37c8f7(0x40e)]();return;}let _0x40b99d=_0x56197e[_0x37c8f7(0x38d)](_0x45aaa4=>_0x45aaa4[_0x37c8f7(0x2aa)]===a[_0x37c8f7(0x181)]['DRAWING_SHAPE']);if(_0x56197e[_0x37c8f7(0x2b6)]>0x1&&_0x40b99d[_0x37c8f7(0x2b6)]===_0x56197e[_0x37c8f7(0x2b6)]){if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x37c8f7(0x40e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x37c8f7(0x3f3)]=this[_0x37c8f7(0x226)](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0][_0x37c8f7(0x456)]),this[_0x37c8f7(0x3f3)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x37c8f7(0x40e)]();return;}}this[_0x37c8f7(0x2e2)]();}));}[_0x5e988f(0x40e)](){const _0x96a7a4=_0x5e988f;this[_0x96a7a4(0x3f3)]&&(this[_0x96a7a4(0x234)]=this[_0x96a7a4(0x231)][_0x96a7a4(0x497)]({'id':F,'header':{'title':this[_0x96a7a4(0x1fb)]['t'](_0x96a7a4(0x220))},'width':0x184,'children':{'label':F,...this[_0x96a7a4(0x3f3)]},'onClose':()=>{const _0x525a7b=_0x96a7a4;this[_0x525a7b(0x2f6)]['focusDrawing'](null),this['_contextService'][_0x525a7b(0x1db)](a[_0x525a7b(0x281)],!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x5e988f(0x2e2)](){const _0x270698=_0x5e988f;this[_0x270698(0x3af)]=!0x1,this[_0x270698(0x231)][_0x270698(0x489)](F),this[_0x270698(0x234)]=null,this[_0x270698(0x3c1)][_0x270698(0x1db)](a[_0x270698(0x281)],!0x1),this['_drawingManagerService'][_0x270698(0x262)](null);}};Q=A([k(0x0,a[_0x5e988f(0x4c8)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x1a0)])),k(0x2,t[_0x5e988f(0x222)]),k(0x3,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x4,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x5,a[_0x5e988f(0x32c)]),k(0x6,s['IDrawingManagerService']),k(0x7,(0x0,a[_0x5e988f(0x334)])(l[_0x5e988f(0x309)])),k(0x8,a[_0x5e988f(0x449)]),k(0x9,c[_0x5e988f(0x18e)]),k(0xa,(0x0,a[_0x5e988f(0x334)])(H))],Q);let $=class extends a['Plugin']{constructor(_0x3fd489=lt,_0x1f5bfc,_0x1cbe2c,_0x5c629a,_0x4b70f1){const _0x26badb=_0x5e988f;super(),this[_0x26badb(0x4e0)]=_0x3fd489,this[_0x26badb(0x3f1)]=_0x1f5bfc,this[_0x26badb(0x263)]=_0x1cbe2c,this[_0x26badb(0x2fe)]=_0x5c629a,this[_0x26badb(0x1ea)]=_0x4b70f1;let {..._0x3e28c0}=(0x0,a['merge'])({},lt,this[_0x26badb(0x4e0)]);this[_0x26badb(0x2fe)][_0x26badb(0x2b0)](ct,_0x3e28c0),this[_0x26badb(0x31f)]();}['onRendered'](){const _0x1de467=_0x5e988f;this['_renderManagerService'][_0x1de467(0x242)](a[_0x1de467(0x15d)][_0x1de467(0x175)],[Ft]),(0x0,a['touchDependencies'])(this[_0x1de467(0x3f1)],[[Q],[G],[j],[J]]);}['onSteady'](){const _0x563a5b=_0x5e988f;this[_0x563a5b(0x3f1)][_0x563a5b(0x329)](Q)[_0x563a5b(0x41e)]();}['onReady'](){const _0x45a5e3=_0x5e988f;[[K],[M],[q]][_0x45a5e3(0x424)](_0x499ee3=>this[_0x45a5e3(0x3f1)]['add'](_0x499ee3)),(0x0,a[_0x45a5e3(0x1e0)])(this['_injector'],[[q],[M]]),this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a['UniverInstanceType'][_0x45a5e3(0x2ba)],[K]),this[_0x45a5e3(0x1ea)]['registerRenderModule'](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[ut]),this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[Ct]),this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[gt]),this[_0x45a5e3(0x36f)](this[_0x45a5e3(0x1ea)]['registerRenderModule'](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[It])),this['disposeWithMe'](this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[Mt]));}[_0x5e988f(0x3e4)](){const _0x50bec0=_0x5e988f;this[_0x50bec0(0x3f1)][_0x50bec0(0x4b5)]([jt]),this[_0x50bec0(0x3f1)][_0x50bec0(0x329)](jt);let _0x5f457f=this[_0x50bec0(0x3f1)];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x50bec0(0x424)](_0x30c572=>_0x5f457f[_0x50bec0(0x4b5)](_0x30c572)),(0x0,a[_0x50bec0(0x1e0)])(this['_injector'],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}[_0x5e988f(0x31f)](){const _0x23d3a8=_0x5e988f;[P,S,wt,z,ae,N,se,ce][_0x23d3a8(0x424)](_0x4b3cbd=>this[_0x23d3a8(0x36f)](this[_0x23d3a8(0x263)][_0x23d3a8(0x1ae)](_0x4b3cbd)));}};E($,'type',a[_0x5e988f(0x15d)][_0x5e988f(0x2ba)]),E($,_0x5e988f(0x360),_0x5e988f(0x2bf)),E($,_0x5e988f(0x4d3),at),E($,_0x5e988f(0x355),ot),$=A([(0x0,a[_0x5e988f(0x390)])(h['UniverLicensePlugin'],g['UniverDocsPlugin'],s[_0x5e988f(0x2d4)],d[_0x5e988f(0x2be)],c[_0x5e988f(0x2fa)],o[_0x5e988f(0x191)],_[_0x5e988f(0x1cd)],m[_0x5e988f(0x282)],r['UniverShapeEditorPlugin'],v[_0x5e988f(0x48c)],i[_0x5e988f(0x359)],l[_0x5e988f(0x20c)],e['UniverShapeEditorUIPlugin']),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x393)])),k(0x2,a['ICommandService']),k(0x3,a['IConfigService']),k(0x4,c[_0x5e988f(0x18e)])],$),exports[_0x5e988f(0x21b)]=nt,exports[_0x5e988f(0x22e)]=it,Object[_0x5e988f(0x200)](exports,_0x5e988f(0x39c),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|