@univerjs-pro/sheets-shape-ui 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
  62. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
  63. package/lib/types/controllers/ui.controller.d.ts +1 -2
  64. package/lib/types/index.d.ts +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +20 -20
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58257=_0x48d4;(function(_0x840ca6,_0x22db26){const _0x196a47=_0x48d4,_0x1f3888=_0x840ca6();while(!![]){try{const _0x39393f=parseInt(_0x196a47(0x3ed))/0x1*(-parseInt(_0x196a47(0x43a))/0x2)+parseInt(_0x196a47(0x1cf))/0x3+parseInt(_0x196a47(0x38d))/0x4*(parseInt(_0x196a47(0x3ef))/0x5)+-parseInt(_0x196a47(0x382))/0x6+-parseInt(_0x196a47(0x27f))/0x7+-parseInt(_0x196a47(0x2f9))/0x8*(parseInt(_0x196a47(0x1e2))/0x9)+parseInt(_0x196a47(0x1a6))/0xa;if(_0x39393f===_0x22db26)break;else _0x1f3888['push'](_0x1f3888['shift']());}catch(_0x566f64){_0x1f3888['push'](_0x1f3888['shift']());}}}(_0x188c,0x95858),Object['defineProperty'](exports,Symbol[_0x58257(0x3a9)],{'value':_0x58257(0x1b3)}));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('react/jsx-runtime'),p=require('@univerjs/sheets-drawing'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui'),_=require('@univerjs/sheets-drawing-ui'),v=require('@univerjs/icons'),y=require('react');function b(_0x4e898b,_0x6a6e5c){const _0x1ce397=_0x58257;let _0xa60621={};for(let _0x585616 of Object[_0x1ce397(0x33f)](_0x6a6e5c)){let _0x1d9b76=_0x6a6e5c[_0x585616],_0x58174a=_0x4e898b[_0x585616];if(_0x1d9b76!==void 0x0){if(_0x58174a===void 0x0){_0xa60621[_0x585616]=void 0x0;continue;}typeof _0x1d9b76==_0x1ce397(0x243)&&_0x1d9b76&&!Array['isArray'](_0x1d9b76)&&typeof _0x58174a==_0x1ce397(0x243)&&_0x58174a&&!Array['isArray'](_0x58174a)?_0xa60621[_0x585616]=b(_0x58174a,_0x1d9b76):_0xa60621[_0x585616]=_0x58174a;}}return _0xa60621;}const x={'type':a[_0x58257(0x430)][_0x58257(0x414)],'id':_0x58257(0x211),'handler':(_0x571401,_0x55fcb7)=>{const _0x23bee1=_0x58257;let _0x371322=_0x571401[_0x23bee1(0x27a)](i[_0x23bee1(0x45a)]),{unitId:_0x5129b8,subUnitId:_0x11547d,shapeType:_0x1522f9,shapeId:_0x5c8905,shapeData:_0x2b9b25,replaceShapeData:_0x33ca68,oldShapeJSON:_0x1054b3}=_0x55fcb7;if(!_0x371322[_0x23bee1(0x2f0)](_0x5129b8,_0x11547d,_0x5c8905))return!0x1;let _0x1309a3=_0x571401[_0x23bee1(0x27a)](a[_0x23bee1(0x258)]),_0x3fc429=_0x571401['get'](a[_0x23bee1(0x28b)]),{oldShapeType:_0x218d5d,oldShapeData:_0x5da8cd={}}=_0x1054b3,_0x23794b=_0x33ca68?_0x5da8cd:b(_0x5da8cd,_0x2b9b25||{}),_0x39a8c8={'id':i[_0x23bee1(0x464)]['id'],'params':{'unitId':_0x5129b8,'subUnitId':_0x11547d,'shapeId':_0x5c8905,'shapeType':_0x1522f9,'shapeData':_0x2b9b25,'replace':_0x33ca68}},_0x4c21d4={'id':i['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x5129b8,'subUnitId':_0x11547d,'shapeId':_0x5c8905,'shapeType':_0x218d5d,'shapeData':_0x23794b,'replace':_0x33ca68}};return _0x1309a3['syncExecuteCommand'](_0x39a8c8['id'],_0x39a8c8[_0x23bee1(0x18b)])?(_0x3fc429[_0x23bee1(0x168)]({'unitID':_0x5129b8,'undoMutations':[_0x4c21d4],'redoMutations':[_0x39a8c8]}),!0x0):!0x1;}};function S(_0x31e37d,_0xfc1976,_0x8dde07,_0x3843d8,_0x21048c,_0x51ca99){const _0x4defd5=_0x58257;let _0x2a1596={'unitId':_0xfc1976,'subUnitId':_0x8dde07,'shapeId':_0x3843d8,'shapeData':_0x51ca99,'oldShapeJSON':_0x21048c};return _0x31e37d[_0x4defd5(0x2db)](x['id'],_0x2a1596);}function C(_0x5acbd1,_0x2cb9c3,_0x227dde,_0x498dfd,_0x451dc8,_0xa48f8f){const _0x40d932=_0x58257;let _0x14946f={'unitId':_0x2cb9c3,'subUnitId':_0x227dde,'shapeId':_0x498dfd,'shapeData':_0xa48f8f,'oldShapeJSON':_0x451dc8};return _0x5acbd1[_0x40d932(0x2db)](x['id'],_0x14946f);}function w(_0x1cf46f){'@babel/helpers - typeof';const _0x2e4e2d=_0x58257;return w=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x2e4e2d(0x428)?function(_0x31ed47){return typeof _0x31ed47;}:function(_0xea07d){const _0x55e140=_0x2e4e2d;return _0xea07d&&typeof Symbol=='function'&&_0xea07d[_0x55e140(0x2a1)]===Symbol&&_0xea07d!==Symbol[_0x55e140(0x293)]?_0x55e140(0x428):typeof _0xea07d;},w(_0x1cf46f);}function ee(_0x17eedd,_0x11e744){const _0x5888c9=_0x58257;if(w(_0x17eedd)!='object'||!_0x17eedd)return _0x17eedd;var _0x1f781a=_0x17eedd[Symbol[_0x5888c9(0x328)]];if(_0x1f781a!==void 0x0){var _0x4b8d90=_0x1f781a[_0x5888c9(0x1a1)](_0x17eedd,_0x11e744||'default');if(w(_0x4b8d90)!=_0x5888c9(0x243))return _0x4b8d90;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x11e744===_0x5888c9(0x1aa)?String:Number)(_0x17eedd);}function te(_0x5d07fa){const _0xbc9174=_0x58257;var _0x22def8=ee(_0x5d07fa,_0xbc9174(0x1aa));return w(_0x22def8)==_0xbc9174(0x428)?_0x22def8:_0x22def8+'';}function T(_0x9e2dab,_0x5ad91a,_0x206537){const _0x4308f9=_0x58257;return(_0x5ad91a=te(_0x5ad91a))in _0x9e2dab?Object[_0x4308f9(0x340)](_0x9e2dab,_0x5ad91a,{'value':_0x206537,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9e2dab[_0x5ad91a]=_0x206537,_0x9e2dab;}function ne(_0x21fb7e,_0xbea7fc,_0x2c6a97){const _0x2a2ac8=_0x58257;let _0x363271=(0x0,e['resolveShapeTextEditorBehaviorShapeData'])(_0x21fb7e,{..._0xbea7fc,'dataModel':{..._0xbea7fc[_0x2a2ac8(0x180)]??{},..._0x2c6a97?{'doc':_0x2c6a97}:null}}),_0x52ee2c=(0x0,e[_0x2a2ac8(0x45b)])(_0x363271);return{'clip':(0x0,e[_0x2a2ac8(0x2de)])(_0x363271,_0x52ee2c),'wrapStrategy':_0x52ee2c};}var E=class extends c['Shape']{constructor(_0x417246,_0x209331){const _0x1818ab=_0x58257;super(_0x417246,_0x209331),T(this,_0x1818ab(0x15e),void 0x0),T(this,_0x1818ab(0x459),new e[(_0x1818ab(0x2d1))](()=>this['makeDirty'](!0x0),()=>this[_0x1818ab(0x24c)]())),T(this,_0x1818ab(0x160),!0x0),T(this,_0x1818ab(0x26f),a['DrawingTypeEnum'][_0x1818ab(0x33c)]),T(this,'isDrawingObject',!0x0),this[_0x1818ab(0x15e)]={..._0x209331},this['_formulaAnimation'][_0x1818ab(0x362)](_0x209331[_0x1818ab(0x1d9)],_0x209331[_0x1818ab(0x3b5)]!==!0x1),this[_0x1818ab(0x1c9)](),this[_0x1818ab(0x24c)]();}[_0x58257(0x1c9)](){const _0x1fd4ba=_0x58257;this[_0x1fd4ba(0x2e4)]['subscribeEvent'](_0x340b1c=>{const _0x4d4ba6=_0x1fd4ba;this[_0x4d4ba6(0x15f)](_0x340b1c);});}[_0x58257(0x248)](_0x35dfc8){const _0x560696=_0x58257;this[_0x560696(0x15e)][_0x560696(0x3e2)]=_0x35dfc8;}[_0x58257(0x21b)](_0x25937e){const _0x1d8cf6=_0x58257;this[_0x1d8cf6(0x15e)]['isEditing']=_0x25937e,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x225254,_0x3fde36=!0x0){const _0xebebae=_0x58257;this[_0xebebae(0x459)]['setPresentation'](_0x225254,_0x3fde36),this[_0xebebae(0x15e)][_0xebebae(0x1d9)]=_0x225254,this[_0xebebae(0x24c)](),this[_0xebebae(0x2b4)](!0x0);}[_0x58257(0x24c)](){const _0x5dd7f2=_0x58257;let _0x342dca=this[_0x5dd7f2(0x15e)][_0x5dd7f2(0x2b6)],_0x5ed991=_0x342dca['getShapeTextData'](),_0x5a5372=(0x0,e['normalizeShapeTextModel'])(_0x5ed991==null?void 0x0:_0x5ed991['dataModel']),_0x1df9ec=_0x5a5372==null?void 0x0:_0x5a5372[_0x5dd7f2(0x35e)],_0x1a5028=this[_0x5dd7f2(0x459)]['getAutoFitPresentations']();if(!_0x1df9ec||_0x1a5028[_0x5dd7f2(0x327)]===0x0)return;_0x342dca[_0x5dd7f2(0x272)]({'width':this['width'],'height':this[_0x5dd7f2(0x1da)]});let _0x37b8c9=(0x0,e[_0x5dd7f2(0x38b)])({'documentData':_0x1a5028[_0x5dd7f2(0x30d)](_0x3c5842=>(0x0,r['createShapeFormulaDocument'])(_0x1df9ec,_0x3c5842)),'height':this[_0x5dd7f2(0x1da)],'shapeData':_0x342dca['getShapeData'](),'textRect':_0x342dca[_0x5dd7f2(0x334)]({'left':0x0,'top':0x0,'width':this[_0x5dd7f2(0x22f)],'height':this[_0x5dd7f2(0x1da)]}),'width':this[_0x5dd7f2(0x22f)]});if(_0x37b8c9){var _0x5e0360;this[_0x5dd7f2(0x2dd)](_0x37b8c9[_0x5dd7f2(0x22f)],_0x37b8c9['height']),(_0x5e0360=this[_0x5dd7f2(0x25a)]())==null||(_0x5e0360=_0x5e0360[_0x5dd7f2(0x3f2)]())==null||_0x5e0360['debounceRefreshControls']();}}get['unitId'](){const _0x57d11c=_0x58257;return this[_0x57d11c(0x15e)][_0x57d11c(0x432)];}get[_0x58257(0x44d)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x4c927a){const _0x2c8938=_0x58257;if(this[_0x2c8938(0x15e)][_0x2c8938(0x19b)]==null||!this[_0x2c8938(0x160)])return;let {width:_0x4a6e6e,height:_0x13c187}=this,{width:_0x36d4ba=0x0,height:_0x1eeb1c=0x0}=_0x4c927a[_0x2c8938(0x1c5)],{left:_0x4e4cf5=0x0,top:_0x1dc57a=0x0,right:_0x1c7497=0x0,bottom:_0x527690=0x0}=this[_0x2c8938(0x15e)][_0x2c8938(0x19b)],_0x2de2bf=_0x4e4cf5,_0x324565=_0x1dc57a,_0x4cf21e=_0x1c7497,_0x2ee0d9=_0x527690,_0x41251e=!0x1;if(_0x36d4ba!==0x0&&_0x36d4ba!==_0x4a6e6e){let _0x1521ec=_0x4e4cf5/_0x36d4ba,_0x1ce147=_0x1c7497/_0x36d4ba;_0x2de2bf=_0x4a6e6e*_0x1521ec,_0x4cf21e=_0x4a6e6e*_0x1ce147,_0x41251e=!0x0;}if(_0x1eeb1c!==0x0&&_0x1eeb1c!==_0x13c187){let _0xcb8047=_0x1dc57a/_0x1eeb1c,_0x361a67=_0x527690/_0x1eeb1c;_0x324565=_0x13c187*_0xcb8047,_0x2ee0d9=_0x13c187*_0x361a67,_0x41251e=!0x0;}_0x41251e&&this[_0x2c8938(0x2e0)]({'left':_0x2de2bf,'top':_0x324565,'right':_0x4cf21e,'bottom':_0x2ee0d9});}[_0x58257(0x2e0)](_0x44469a){const _0x491e6e=_0x58257;this[_0x491e6e(0x15e)][_0x491e6e(0x19b)]=_0x44469a,this['makeDirty'](!0x0);}[_0x58257(0x1dc)](_0x37e196){const _0x3616a8=_0x58257;this['_props'][_0x3616a8(0x25e)]=_0x37e196,this[_0x3616a8(0x2b4)](!0x0);}set[_0x58257(0x30a)](_0x348a4a){const _0x3a5414=_0x58257;this[_0x3a5414(0x22b)]=_0x348a4a;}get[_0x58257(0x30a)](){const _0x1b5c0d=_0x58257;this['_transform']||this[_0x1b5c0d(0x346)]();let _0x423494=this[_0x1b5c0d(0x22b)]['clone']();return this[_0x1b5c0d(0x344)](_0x423494);}get[_0x58257(0x2b6)](){const _0x47712c=_0x58257;return this[_0x47712c(0x15e)]['shapeModel'];}get[_0x58257(0x2af)](){return this['_props']['shapeId'];}get['classType'](){const _0x5f04b2=_0x58257;return c[_0x5f04b2(0x326)][_0x5f04b2(0x316)];}['_draw'](_0x4a5cd3,_0x4854f9,_0x3f787c,_0x11c9d1){const _0x4fad70=_0x58257;let _0x2ddcf7=this[_0x4fad70(0x15e)]['shapeModel'];if(!_0x2ddcf7||!_0x4854f9)return;let _0x237721=_0x3f787c??this['width'],_0x17e76a=_0x11c9d1??this[_0x4fad70(0x1da)],_0x416617={'shapeType':_0x2ddcf7[_0x4fad70(0x43c)](),'width':_0x237721,'height':_0x17e76a},_0x1fc1b0={'renderMode':n[_0x4fad70(0x1f1)]['Path'],'oKey':this['oKey'],'image':this[_0x4fad70(0x15e)][_0x4fad70(0x25e)],'angle':this[_0x4fad70(0x39a)]};_0x2ddcf7[_0x4fad70(0x272)](_0x416617),_0x4a5cd3[_0x4fad70(0x2d2)]();let _0x345269={'top':0x0,'left':0x0,'width':_0x237721,'height':_0x17e76a},_0x22649b=_0x2ddcf7[_0x4fad70(0x3c4)](_0x345269);_0x22649b?this['_renderWithCache'](_0x4a5cd3,_0x22649b,_0x386c15=>{const _0x56a074=_0x4fad70;_0x2ddcf7[_0x56a074(0x3d8)](_0x386c15,_0x345269,_0x1fc1b0);}):(this[_0x4fad70(0x313)](),_0x2ddcf7[_0x4fad70(0x3d8)](_0x4a5cd3,_0x345269,_0x1fc1b0)),_0x4a5cd3[_0x4fad70(0x218)]();let _0xe0cc56=_0x2ddcf7[_0x4fad70(0x288)](),_0x2a3019=_0x2ddcf7[_0x4fad70(0x334)](_0x345269),_0x48f1da=_0x2ddcf7[_0x4fad70(0x34d)]();if(_0xe0cc56&&_0x2a3019&&!_0x48f1da){_0x4a5cd3[_0x4fad70(0x2d2)](),this[_0x4fad70(0x46e)]()[_0x4fad70(0x47c)]&&_0x4a5cd3[_0x4fad70(0x324)](-0x1,0x1);let _0x4f6fc2=_0x237721/0x2,_0x2b519c=_0x17e76a/0x2;_0x4a5cd3[_0x4fad70(0x468)](-_0x4f6fc2,-_0x2b519c),_0x4a5cd3['beginPath'](),this[_0x4fad70(0x336)](_0x4a5cd3,_0xe0cc56,_0x2a3019),_0x4a5cd3['restore']();}}[_0x58257(0x285)](_0x408052){}[_0x58257(0x336)](_0x2552ac,_0x533b42,_0x3e92c1){const _0x5cb902=_0x58257;var _0x2c80bd;this[_0x5cb902(0x15e)][_0x5cb902(0x412)]||(!((_0x2c80bd=_0x533b42['dataModel'])!=null&&_0x2c80bd[_0x5cb902(0x35e)])&&_0x5cb902(0x39e)in _0x533b42&&_0x533b42[_0x5cb902(0x39e)]===!0x1?this[_0x5cb902(0x42b)](_0x2552ac,_0x533b42,_0x3e92c1):this['_drawRichText'](_0x2552ac,_0x533b42,_0x3e92c1));}[_0x58257(0x42b)](_0x207d20,_0x3168bf,_0x5860db){const _0xd786fe=_0x58257;this[_0xd786fe(0x2cb)](_0x207d20,{..._0x3168bf,'text':_0x3168bf[_0xd786fe(0x235)]??'','dataModel':{'doc':(0x0,e[_0xd786fe(0x380)])(_0x3168bf,'sheets-shape-text-'+this[_0xd786fe(0x3f9)])}},_0x5860db);}[_0x58257(0x2cb)](_0x473189,_0xfe9a26,_0x2a68c3){const _0x486aa2=_0x58257;(0x0,e['drawFormulaShapeAnimationLayers'])(_0x473189,this[_0x486aa2(0x459)],(_0xeef38c,_0x348d89)=>{const _0x5bb1b7=_0x486aa2;this[_0x5bb1b7(0x1ec)](_0xeef38c,_0xfe9a26,_0x2a68c3,_0x348d89);});}['_drawRichTextLayer'](_0x3cb750,_0x30c67a,_0xbb6c84,_0x5b8581){const _0x45b3ab=_0x58257;let _0x3a5384=this[_0x45b3ab(0x15e)]['localeService'];if(!_0x30c67a[_0x45b3ab(0x180)]||!_0x3a5384)return;let _0x47b73e=(0x0,e['normalizeShapeTextModel'])(_0x30c67a[_0x45b3ab(0x180)]);if(!_0x47b73e)return;let _0x20c87b=_0x47b73e['doc'];if(!_0x20c87b)return;let _0x223119=(0x0,r[_0x45b3ab(0x16c)])(_0x20c87b,_0x5b8581),_0x34d3df=_0x47b73e['va']??a[_0x45b3ab(0x2d3)][_0x45b3ab(0x289)],_0x1aaa20=_0x47b73e['ha']??a[_0x45b3ab(0x1e8)][_0x45b3ab(0x1ef)],_0x21bc8e=ne(this[_0x45b3ab(0x15e)][_0x45b3ab(0x2b6)][_0x45b3ab(0x199)](),_0x30c67a,_0x223119),_0x192df0=_0x30c67a[_0x45b3ab(0x2ad)],_0x2dfa6f=new a[(_0x45b3ab(0x2b9))]((0x0,e[_0x45b3ab(0x37e)])(_0x223119,{'isHorizontal':_0x192df0!==!0x1,'textRect':_0xbb6c84,'verticalAlign':_0x34d3df,'horizontalAlign':_0x1aaa20,'wrapStrategy':_0x21bc8e[_0x45b3ab(0x3d7)]})),_0x5d2d54=new c[(_0x45b3ab(0x228))](_0x2dfa6f),_0x3c9ec1=c[_0x45b3ab(0x33a)][_0x45b3ab(0x36e)](_0x5d2d54,_0x3a5384);_0x3c9ec1[_0x45b3ab(0x2a0)]();let _0x4ecac9=_0x3c9ec1[_0x45b3ab(0x23f)]()[_0x45b3ab(0x46b)],_0x3aa6f5=(0x0,e[_0x45b3ab(0x1df)])({'contentHeight':_0x4ecac9,'verticalAlign':_0x34d3df,'viewportHeight':_0xbb6c84['height']});_0x2dfa6f['updateDocumentStyle']({'pageSize':{'width':_0x192df0===!0x1?_0xbb6c84[_0x45b3ab(0x1da)]:_0xbb6c84[_0x45b3ab(0x22f)],'height':_0x3aa6f5[_0x45b3ab(0x2d7)]}}),_0x2dfa6f[_0x45b3ab(0x153)]({'t':_0x3aa6f5[_0x45b3ab(0x271)]}),_0x3c9ec1[_0x45b3ab(0x2a0)]();let _0x3e7c67=new c['Documents'](_0x45b3ab(0x2d4)+this[_0x45b3ab(0x3f9)],_0x3c9ec1,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x45b3ab(0x2b4)](!0x0)});_0x3e7c67[_0x45b3ab(0x2dd)](_0xbb6c84[_0x45b3ab(0x22f)],_0x3aa6f5['contentHeight']),_0x3cb750[_0x45b3ab(0x2d2)](),_0x3cb750['translateWithPrecision'](_0xbb6c84[_0x45b3ab(0x19c)],_0xbb6c84['top']),_0x21bc8e[_0x45b3ab(0x208)]&&(_0x3cb750[_0x45b3ab(0x2ef)](),_0x3cb750[_0x45b3ab(0x417)](0x0,_0x3aa6f5[_0x45b3ab(0x37f)],_0xbb6c84[_0x45b3ab(0x22f)],_0x3aa6f5[_0x45b3ab(0x2a4)]),_0x3cb750[_0x45b3ab(0x208)]()),_0x3aa6f5['contentVerticalOffset']&&_0x3cb750[_0x45b3ab(0x1db)](0x0,_0x3aa6f5['contentVerticalOffset']),_0x3e7c67['draw'](_0x3cb750),_0x3cb750[_0x45b3ab(0x218)](),_0x3e7c67[_0x45b3ab(0x307)](),_0x3c9ec1['dispose'](),_0x5d2d54[_0x45b3ab(0x307)](),_0x2dfa6f[_0x45b3ab(0x307)]();}[_0x58257(0x3d8)](_0x307c7b,_0x5ba2fa,_0x3f7e5d=!0x1){const _0x2e47bf=_0x58257;if(!this[_0x2e47bf(0x222)])return this['makeDirty'](!0x1),this;let {width:_0x324944,height:_0x39b525,left:_0x599423,top:_0x4e8a79}=this,_0x598000=this[_0x2e47bf(0x360)]();if(_0x324944=_0x598000[_0x2e47bf(0x22f)],_0x39b525=_0x598000['height'],_0x599423=_0x598000['left'],_0x4e8a79=_0x598000[_0x2e47bf(0x44b)],this['isRender'](_0x5ba2fa)){let {top:_0x8b111e,left:_0x562525,bottom:_0x548ff4,right:_0x495063}=_0x5ba2fa[_0x2e47bf(0x238)];if(_0x324944+this[_0x2e47bf(0x3d4)]+_0x599423<_0x562525||_0x495063<_0x599423||_0x39b525+this[_0x2e47bf(0x3d4)]+_0x4e8a79<_0x8b111e||_0x548ff4<_0x4e8a79)return this;}let _0x4066c9=_0x599423+_0x324944/0x2,_0x4422d0=_0x4e8a79+_0x39b525/0x2,_0x1ea2b6=this['transform'][_0x2e47bf(0x3b8)]();if(this[_0x2e47bf(0x15e)][_0x2e47bf(0x412)]){let _0x18507c=this[_0x2e47bf(0x46e)](),_0x2b4d1b=new c[(_0x2e47bf(0x2c0))]();_0x2b4d1b['composeMatrix']({..._0x18507c}),_0x1ea2b6=_0x2b4d1b[_0x2e47bf(0x3b8)]();}return _0x307c7b[_0x2e47bf(0x2d2)](),this[_0x2e47bf(0x15e)][_0x2e47bf(0x2b6)][_0x2e47bf(0x1ed)]===!0x0||_0x307c7b[_0x2e47bf(0x30a)](_0x1ea2b6[0x0],_0x1ea2b6[0x1],_0x1ea2b6[0x2],_0x1ea2b6[0x3],_0x4066c9,_0x4422d0),this[_0x2e47bf(0x215)](_0x307c7b,_0x5ba2fa,_0x324944,_0x39b525),_0x307c7b['restore'](),this[_0x2e47bf(0x2b4)](!0x1),this;}['getInverseCoord'](_0x20fcce){const _0x437329=_0x58257;let {left:_0x541fe1,top:_0x4cae1e,width:_0x1eb40b,height:_0x584012}=this[_0x437329(0x360)](),_0x5aecfc=this['transform'][_0x437329(0x3b8)](),_0x13f527=_0x541fe1+_0x1eb40b/0x2,_0xfa1b9=_0x4cae1e+_0x584012/0x2,_0x157179=new c['Transform']([_0x5aecfc[0x0],_0x5aecfc[0x1],_0x5aecfc[0x2],_0x5aecfc[0x3],_0x13f527,_0xfa1b9]),_0x538eea=this[_0x437329(0x473)]();return(this[_0x437329(0x3ca)]&&(_0x538eea==null?void 0x0:_0x538eea[_0x437329(0x3b3)])===c['RENDER_CLASS_TYPE'][_0x437329(0x170)]?_0x538eea[_0x437329(0x402)][_0x437329(0x36b)](_0x157179):_0x157179)['invert']()['applyPoint'](_0x20fcce);}[_0x58257(0x1c8)](_0x18904a){const _0xcea920=_0x58257;let {left:_0xa41911,top:_0x26a462,width:_0x3f568e,height:_0x51178a}=this[_0xcea920(0x360)](),_0x19eef6=_0xa41911+_0x3f568e/0x2,_0x3dfc0e=_0x26a462+_0x51178a/0x2,_0x21d16a=this['transform'][_0xcea920(0x3b8)](),_0xf77a04=new c[(_0xcea920(0x2c0))]([_0x21d16a[0x0],_0x21d16a[0x1],_0x21d16a[0x2],_0x21d16a[0x3],_0x19eef6,_0x3dfc0e]),_0x3a02a8=this[_0xcea920(0x473)](),_0x34c296=(this['isInGroup']&&(_0x3a02a8==null?void 0x0:_0x3a02a8[_0xcea920(0x3b3)])===c[_0xcea920(0x326)]['GROUP']?_0x3a02a8[_0xcea920(0x402)][_0xcea920(0x36b)](_0xf77a04):_0xf77a04)[_0xcea920(0x46d)]()[_0xcea920(0x372)](_0x18904a),_0x505f22=_0x3f568e/0x2,_0x3657ed=_0x51178a/0x2,_0x313df2=this[_0xcea920(0x15e)][_0xcea920(0x2b6)];return _0x313df2&&_0x313df2[_0xcea920(0x34d)]()?_0x313df2[_0xcea920(0x381)](_0x34c296['x'],_0x34c296['y'],_0x3f568e,_0x51178a):_0x34c296['x']>=-_0x505f22-this[_0xcea920(0x3d4)]/0x2&&_0x34c296['x']<=_0x505f22+this[_0xcea920(0x3d4)]/0x2&&_0x34c296['y']>=-_0x3657ed-this[_0xcea920(0x3d4)]/0x2&&_0x34c296['y']<=_0x3657ed+this[_0xcea920(0x3d4)]/0x2;}['dispose'](){const _0x4d03b1=_0x58257;this[_0x4d03b1(0x459)][_0x4d03b1(0x307)](),this[_0x4d03b1(0x15e)]['shapeModel']=null,super[_0x4d03b1(0x307)]();}},D=class extends c[_0x58257(0x30c)]{constructor(_0xca8c59,_0x30d588){const _0x47e81e=_0x58257;super(_0xca8c59,_0x30d588),T(this,_0x47e81e(0x2a8),null),T(this,_0x47e81e(0x297),null),T(this,_0x47e81e(0x23c),null),T(this,_0x47e81e(0x1d4),null),_0x30d588&&this[_0x47e81e(0x322)](_0x30d588);}[_0x58257(0x189)](){const _0x134b17=_0x58257;return{'unitId':this[_0x134b17(0x23c)],'subUnitId':this[_0x134b17(0x1d4)],'drawingId':this[_0x134b17(0x2a8)]};}[_0x58257(0x322)](_0x5f3421){const _0xc95afb=_0x58257;_0x5f3421[_0xc95afb(0x2af)]!==void 0x0&&(this[_0xc95afb(0x2a8)]=_0x5f3421[_0xc95afb(0x2af)]),_0x5f3421[_0xc95afb(0x36f)]!==void 0x0&&(this['_adjName']=_0x5f3421[_0xc95afb(0x36f)]),_0x5f3421['unitId']!==void 0x0&&(this['_unitId']=_0x5f3421[_0xc95afb(0x432)]),_0x5f3421[_0xc95afb(0x44d)]!==void 0x0&&(this['_subUnitId']=_0x5f3421['subUnitId']),this[_0xc95afb(0x355)]({'width':_0x5f3421[_0xc95afb(0x22f)],'height':_0x5f3421[_0xc95afb(0x1da)]});}['_draw'](_0x44c86d){const _0x1c8d8f=_0x58257;c[_0x1c8d8f(0x268)][_0x1c8d8f(0x3b0)](_0x44c86d,{'radius':n[_0x1c8d8f(0x2f6)][_0x1c8d8f(0x2a3)],'fill':n[_0x1c8d8f(0x2f6)]['adjHandleFill'],'stroke':n[_0x1c8d8f(0x2f6)][_0x1c8d8f(0x1f0)],'strokeWidth':0x1,'evented':!0x0});}};function O(_0x3a10fc,_0x5a9bfe){return function(_0x13bf53,_0x4c3d1c){_0x5a9bfe(_0x13bf53,_0x4c3d1c,_0x3a10fc);};}function k(_0x3f0a6a,_0x5fb33,_0x5c1423,_0x170af2){const _0x13e0f3=_0x58257;var _0x1430ec=arguments[_0x13e0f3(0x327)],_0x3a9781=_0x1430ec<0x3?_0x5fb33:_0x170af2===null?_0x170af2=Object[_0x13e0f3(0x39d)](_0x5fb33,_0x5c1423):_0x170af2,_0x5f2099;if(typeof Reflect==_0x13e0f3(0x243)&&typeof Reflect[_0x13e0f3(0x178)]==_0x13e0f3(0x395))_0x3a9781=Reflect[_0x13e0f3(0x178)](_0x3f0a6a,_0x5fb33,_0x5c1423,_0x170af2);else{for(var _0x5afa45=_0x3f0a6a['length']-0x1;_0x5afa45>=0x0;_0x5afa45--)(_0x5f2099=_0x3f0a6a[_0x5afa45])&&(_0x3a9781=(_0x1430ec<0x3?_0x5f2099(_0x3a9781):_0x1430ec>0x3?_0x5f2099(_0x5fb33,_0x5c1423,_0x3a9781):_0x5f2099(_0x5fb33,_0x5c1423))||_0x3a9781);}return _0x1430ec>0x3&&_0x3a9781&&Object[_0x13e0f3(0x340)](_0x5fb33,_0x5c1423,_0x3a9781),_0x3a9781;}let A=class extends a[_0x58257(0x40f)]{constructor(_0x4cbefd,_0x2ab2b5,_0x1c2d26,_0x30ec20,_0x5f3be7,_0x54efec){const _0x169d46=_0x58257;super(),this[_0x169d46(0x195)]=_0x4cbefd,this[_0x169d46(0x396)]=_0x2ab2b5,this[_0x169d46(0x15c)]=_0x1c2d26,this[_0x169d46(0x3a0)]=_0x30ec20,this['_urlImageService']=_0x5f3be7,this[_0x169d46(0x31d)]=_0x54efec,T(this,'_formulaShapes',new Map()),this[_0x169d46(0x270)](this[_0x169d46(0x31d)][_0x169d46(0x1f6)][_0x169d46(0x220)](_0x39da67=>{const _0x5bc94e=_0x169d46;var _0x562f52;(_0x562f52=this[_0x5bc94e(0x21a)]['get'](this[_0x5bc94e(0x1d5)](_0x39da67[_0x5bc94e(0x432)],_0x39da67['subUnitId'],_0x39da67[_0x5bc94e(0x2af)])))==null||_0x562f52['forEach'](_0x58dfb3=>_0x58dfb3[_0x5bc94e(0x254)](_0x39da67[_0x5bc94e(0x1b5)],_0x39da67['animationEnabled']));})),this[_0x169d46(0x270)](this[_0x169d46(0x195)][_0x169d46(0x409)][_0x169d46(0x220)](_0x5762f2=>{const _0x3d55e5=_0x169d46;_0x5762f2[_0x3d55e5(0x1d0)](_0x188e4e=>{const _0x20a270=_0x3d55e5;this['_shapeFormulaService'][_0x20a270(0x32f)]({'unitId':_0x188e4e[_0x20a270(0x432)],'subUnitId':_0x188e4e['subUnitId'],'shapeId':_0x188e4e[_0x20a270(0x3d0)]}),this[_0x20a270(0x21a)][_0x20a270(0x28c)](this['_formulaKey'](_0x188e4e[_0x20a270(0x432)],_0x188e4e[_0x20a270(0x44d)],_0x188e4e[_0x20a270(0x3d0)]));});}));}[_0x58257(0x338)](_0x5c9b51,_0x26d7db,_0x2693fc){const _0x31d960=_0x58257;let {transform:_0x30cdca,drawingType:_0x18f5b5,srcRect:_0x5a4c36,prstGeom:_0xdc5310,groupId:_0x31d498,unitId:_0x535186,subUnitId:_0x43a874,drawingId:_0x3b865d,isMultiTransform:_0x26c88a,transforms:_0x4b8e6e,hidden:_0x403627,selectable:_0x350ad0}=_0x5c9b51;if(_0x18f5b5!==a[_0x31d960(0x277)]['DRAWING_SHAPE']||!this[_0x31d960(0x195)][_0x31d960(0x3b6)]()||_0x30cdca==null)return;let _0x4a8ab1=this[_0x31d960(0x195)]['getDrawingEditable']();_0x4a8ab1&&_0x26d7db[_0x31d960(0x325)](e['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x8fbbf8=_0x26c88a&&_0x4b8e6e?_0x4b8e6e:[_0x30cdca],_0x2979c1=[];for(let _0x507366 of _0x8fbbf8){let {left:_0x2375be,top:_0x1ffd10,width:_0x56e341,height:_0x29b163,angle:_0x2cdb20,flipX:_0x39bf59,flipY:_0x35424b,skewX:_0x42144f,skewY:_0x4f2220}=_0x507366,_0x17b26c=_0x8fbbf8[_0x31d960(0x1fe)](_0x507366),_0x163516=(0x0,s[_0x31d960(0x389)])({'unitId':_0x535186,'subUnitId':_0x43a874,'drawingId':_0x3b865d},_0x26c88a?_0x17b26c:void 0x0),_0x56444d=_0x26d7db['getObjectIncludeInGroup'](_0x163516);if(_0x56444d!=null){let _0x5dd70f={'unitId':_0x535186,'subUnitId':_0x43a874,'shapeId':_0x3b865d};_0x56444d instanceof E&&this[_0x31d960(0x1ac)](_0x56444d,_0x5dd70f),_0x56444d['transformByState']({'left':_0x2375be,'top':_0x1ffd10,'width':_0x56e341,'height':_0x29b163,'angle':_0x2cdb20,'flipX':_0x39bf59,'flipY':_0x35424b,'skewX':_0x42144f,'skewY':_0x4f2220});continue;}let _0x144265=this[_0x31d960(0x195)][_0x31d960(0x1a0)](_0x535186,_0x43a874),_0x15bf53=_0x144265[_0x31d960(0x1fe)](_0x3b865d);if(_0x26d7db['getObjectIncludeInGroup'](_0x163516)||!this[_0x31d960(0x195)]['getDrawingVisible']())continue;let _0x108c74=this[_0x31d960(0x396)][_0x31d960(0x2f0)](_0x535186,_0x43a874,_0x3b865d);if(!_0x108c74)continue;let _0x22cd50=(0x0,n[_0x31d960(0x34c)])(_0x108c74[_0x31d960(0x43c)]()),_0x1346a1=_0x108c74[_0x31d960(0x199)]()['formulaBinding'],_0x3d8046={'unitId':_0x535186,'subUnitId':_0x43a874,'shapeId':_0x3b865d};_0x1346a1&&this[_0x31d960(0x31d)][_0x31d960(0x2e7)](_0x3d8046,_0x1346a1);let _0x2b5b03=new E(_0x163516,{..._0x22cd50?{..._0x507366,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x507366},'zIndex':_0x15bf53===-0x1?_0x144265[_0x31d960(0x327)]-0x1:_0x15bf53,'shapeModel':_0x108c74,'localeService':this[_0x31d960(0x15c)],'shapeId':_0x3b865d,'unitId':_0x535186,'subUnitId':_0x43a874,'visible':_0x403627!==!0x0,'evented':_0x350ad0!==!0x1,'formulaPresentation':_0x1346a1?this['_shapeFormulaService']['getPresentation'](_0x3d8046):void 0x0,'animateFormulaPresentation':(_0x1346a1==null?void 0x0:_0x1346a1[_0x31d960(0x233)])!==!0x1});if(_0x1346a1){let _0x3fbd3c=this[_0x31d960(0x1d5)](_0x535186,_0x43a874,_0x3b865d),_0x567d01=this[_0x31d960(0x21a)]['get'](_0x3fbd3c)??new Set();_0x567d01[_0x31d960(0x2b3)](_0x2b5b03),this[_0x31d960(0x21a)]['set'](_0x3fbd3c,_0x567d01);}_0x26d7db[_0x31d960(0x1fd)](_0x2b5b03,c[_0x31d960(0x1e6)]),_0x4a8ab1&&_0x26d7db['attachTransformerTo'](_0x2b5b03),_0x31d498&&(0x0,d['insertGroupObject'])({'drawingId':_0x31d498,'unitId':_0x535186,'subUnitId':_0x43a874},_0x2b5b03,_0x26d7db,this[_0x31d960(0x195)]),_0xdc5310!=null&&_0x2b5b03[_0x31d960(0x248)](_0xdc5310),_0x5a4c36!=null&&_0x2b5b03[_0x31d960(0x2e0)](_0x5a4c36);let _0x49d6e4=this[_0x31d960(0x1b1)](_0x2b5b03,_0x108c74[_0x31d960(0x199)]());if(_0x49d6e4){var _0x3bf815;_0x2693fc==null||(_0x3bf815=_0x2693fc[_0x31d960(0x2cc)])==null||_0x3bf815[_0x31d960(0x2b3)](_0x49d6e4);}_0x2979c1[_0x31d960(0x21f)](_0x2b5b03);}return _0x2979c1;}[_0x58257(0x1d5)](_0x3b19d0,_0x3f18e3,_0x263eb7){return _0x3b19d0+'\x00'+_0x3f18e3+'\x00'+_0x263eb7;}['refreshFormulaPresentation'](_0x493406,_0x402913){const _0x78c2ce=_0x58257;let _0x235a82=this[_0x78c2ce(0x396)][_0x78c2ce(0x2f0)](_0x402913['unitId'],_0x402913[_0x78c2ce(0x44d)],_0x402913['shapeId']),_0x841195=_0x235a82==null?void 0x0:_0x235a82[_0x78c2ce(0x199)]()[_0x78c2ce(0x2e9)],_0x1c63ce=this[_0x78c2ce(0x1d5)](_0x402913['unitId'],_0x402913['subUnitId'],_0x402913[_0x78c2ce(0x2af)]);if(_0x841195){this[_0x78c2ce(0x31d)][_0x78c2ce(0x2e7)](_0x402913,_0x841195);let _0x11e9d1=this['_formulaShapes'][_0x78c2ce(0x27a)](_0x1c63ce)??new Set();_0x11e9d1['add'](_0x493406),this[_0x78c2ce(0x21a)][_0x78c2ce(0x281)](_0x1c63ce,_0x11e9d1);}else{var _0x41c989;this[_0x78c2ce(0x31d)]['unregister'](_0x402913),(_0x41c989=this[_0x78c2ce(0x21a)][_0x78c2ce(0x27a)](_0x1c63ce))==null||_0x41c989[_0x78c2ce(0x28c)](_0x493406);}_0x493406[_0x78c2ce(0x254)](_0x841195?this[_0x78c2ce(0x31d)][_0x78c2ce(0x15a)](_0x402913):void 0x0,(_0x841195==null?void 0x0:_0x841195[_0x78c2ce(0x233)])!==!0x1);}[_0x58257(0x3a1)](_0x14e912){const _0x100f7c=_0x58257;let _0x2d296f=_0x14e912[_0x100f7c(0x2b6)][_0x100f7c(0x199)](),_0x2e1fdc=_0x2d296f['fill'];if(!_0x2e1fdc||_0x2e1fdc[_0x100f7c(0x29a)]!==n[_0x100f7c(0x42f)][_0x100f7c(0x206)]||!_0x2e1fdc[_0x100f7c(0x331)]){_0x14e912[_0x100f7c(0x1dc)](void 0x0);return;}this[_0x100f7c(0x1b1)](_0x14e912,_0x2d296f);}['_loadShapePictureFill'](_0x53c845,_0x377005){const _0x4d5a19=_0x58257;let _0x36d4d0=_0x377005['fill'];if(!_0x36d4d0||_0x36d4d0[_0x4d5a19(0x29a)]!==n[_0x4d5a19(0x42f)]['PictureFill']||!_0x36d4d0[_0x4d5a19(0x331)])return;let _0x528fb8=_0x36d4d0[_0x4d5a19(0x331)],_0x48ecf9=_0x36d4d0['fillImageSourceType']??n[_0x4d5a19(0x169)][_0x4d5a19(0x342)],_0x6ba8be=this['_imageIoService'][_0x4d5a19(0x20e)](_0x528fb8,_0x48ecf9);if(_0x6ba8be){_0x53c845['setFillImage'](_0x6ba8be);return;}return this['_loadAndSetImage'](_0x53c845,_0x528fb8,_0x48ecf9);}async[_0x58257(0x364)](_0x582b59,_0xcf840a,_0x32887f){const _0x4fb8b8=_0x58257;let _0x2f7237;try{if(_0x32887f===n[_0x4fb8b8(0x169)][_0x4fb8b8(0x1f9)])_0x2f7237=await this[_0x4fb8b8(0x3a0)][_0x4fb8b8(0x1ee)](_0xcf840a);else{if(_0x32887f===n[_0x4fb8b8(0x169)][_0x4fb8b8(0x342)])try{_0x2f7237=await this[_0x4fb8b8(0x36c)][_0x4fb8b8(0x1ee)](_0xcf840a);}catch{_0x2f7237=_0xcf840a;}else _0x2f7237=_0xcf840a;}}catch(_0x38c11b){console[_0x4fb8b8(0x476)](_0x4fb8b8(0x30e),_0x38c11b);return;}await new Promise(_0x3c08e7=>{const _0x450a45=_0x4fb8b8;let _0x349a8d=new window[(_0x450a45(0x2f1))]();_0x349a8d[_0x450a45(0x32b)]=()=>{const _0x54979b=_0x450a45;this[_0x54979b(0x3a0)][_0x54979b(0x357)](_0xcf840a,_0x32887f,_0x349a8d),_0x582b59['setFillImage'](_0x349a8d),_0x3c08e7();},_0x349a8d[_0x450a45(0x229)]=()=>{const _0x39ad08=_0x450a45;console[_0x39ad08(0x476)](_0x39ad08(0x27c),_0xcf840a),_0x3c08e7();},_0x349a8d[_0x450a45(0x305)]=_0x2f7237;});}};A=k([O(0x0,s[_0x58257(0x14f)]),O(0x1,(0x0,a[_0x58257(0x183)])(i['SheetsShapeService'])),O(0x2,(0x0,a[_0x58257(0x183)])(a[_0x58257(0x20c)])),O(0x3,a['IImageIoService']),O(0x4,a[_0x58257(0x1e4)]),O(0x5,(0x0,a[_0x58257(0x183)])(r[_0x58257(0x3ec)]))],A);let j=class extends a['Disposable']{constructor(_0x181fdc,_0x5de5fc,_0x2d966a,_0x2a1807,_0xedf268,_0x36707f){const _0xd89d9a=_0x58257;super(),this[_0xd89d9a(0x195)]=_0x181fdc,this['_sheetsShapeService']=_0x5de5fc,this[_0xd89d9a(0x1c3)]=_0x2d966a,this[_0xd89d9a(0x309)]=_0x2a1807,this['_univerInstanceService']=_0xedf268,this['_commandService']=_0x36707f,T(this,'_activeShapeId',null),T(this,_0xd89d9a(0x23c),null),T(this,_0xd89d9a(0x1d4),null),T(this,_0xd89d9a(0x41c),void 0x0),T(this,_0xd89d9a(0x150),[]),T(this,_0xd89d9a(0x46a),0x0),T(this,'_baseShapeTop',0x0),T(this,'_baseShapeWidth',0x0),T(this,'_baseShapeHeight',0x0),T(this,'_isStartAdjusting',!0x1),T(this,_0xd89d9a(0x265),void 0x0),T(this,_0xd89d9a(0x1d7),void 0x0),T(this,'_adjHandlerPointerMove',void 0x0),T(this,_0xd89d9a(0x301),void 0x0),T(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0xd89d9a(0x28a)](),this[_0xd89d9a(0x3f8)]();}[_0x58257(0x242)](_0x1d3b1c,_0x354b45,_0x30a754){let _0x46b76f=this['_sheetsShapeService']['getShapeModel'](_0x1d3b1c,_0x354b45,_0x30a754);if(_0x46b76f)return _0x46b76f['getDrawingPoints']();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x58257(0x456)](){this['_updateShapeAdjustControls'](!0x0);}[_0x58257(0x1e9)](_0x5c157f){const _0x55c713=_0x58257;this[_0x55c713(0x3ee)]=_0x5c157f;}[_0x58257(0x475)](_0xfc20ec,_0x345b63,_0x5d5589,_0x1c2121){const _0xdc25c1=_0x58257;let _0x3ab407=this['_sheetsShapeService'][_0xdc25c1(0x2f0)](_0xfc20ec,_0x345b63,_0x5d5589);if(_0x3ab407)return _0x3ab407[_0xdc25c1(0x200)](_0x1c2121);}['_createShapeAdjustControls'](_0x4eaed1=!0x1){const _0x30a907=_0x58257;if(this[_0x30a907(0x23c)]===null||this[_0x30a907(0x1d4)]===null||this[_0x30a907(0x255)]===null)return;let _0x26a21a=this[_0x30a907(0x1c3)][_0x30a907(0x221)](this[_0x30a907(0x23c)]);if(!_0x26a21a||!_0x26a21a['with'](l['SheetSkeletonManagerService'])['getCurrentSkeleton']())return;let {scene:_0x4d2335}=_0x26a21a,_0x5e9276={'unitId':this[_0x30a907(0x23c)],'subUnitId':this[_0x30a907(0x1d4)],'drawingId':this[_0x30a907(0x255)]},_0x221551=this['_drawingManagerService'][_0x30a907(0x463)](_0x5e9276),{transform:_0x10e3f3}=_0x221551;if(!_0x10e3f3||_0x221551[_0x30a907(0x2c9)]!==a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {left:_0x5cad1d,top:_0x283faf,width:_0x59ece4,height:_0x454d07,flipX:_0xb922ec,flipY:_0x27483d,angle:_0x2736be=0x0}=_0x10e3f3;if(_0x5cad1d===void 0x0||_0x283faf===void 0x0)return;if(_0x4eaed1){let _0x39a657=this[_0x30a907(0x396)][_0x30a907(0x2f0)](this[_0x30a907(0x23c)],this[_0x30a907(0x1d4)],this[_0x30a907(0x255)]);_0x39a657==null||_0x39a657[_0x30a907(0x272)]({'width':_0x59ece4??0x0,'height':_0x454d07??0x0}),this[_0x30a907(0x41c)]=_0x39a657==null?void 0x0:_0x39a657[_0x30a907(0x285)]();}let _0x274a20=this['_activeShapeAdjustPointList'];for(let _0x158fc7=0x0;_0x158fc7<_0x274a20[_0x30a907(0x327)];_0x158fc7++){let _0x34f7b8=_0x274a20[_0x158fc7],_0x3d4fc3=_0x34f7b8['x'],_0x1f4eb9=_0x34f7b8['y'];if(_0xb922ec&&(_0x3d4fc3=(_0x59ece4||0x0)-_0x3d4fc3),_0x27483d&&(_0x1f4eb9=(_0x454d07||0x0)-_0x1f4eb9),_0x2736be!==0x0){let _0x1c151f=(_0x59ece4||0x0)/0x2,_0x5ca977=(_0x454d07||0x0)/0x2,_0x2ac92a=_0x2736be*Math['PI']/0xb4,_0x362794=Math['cos'](_0x2ac92a),_0x1f3153=Math[_0x30a907(0x3c7)](_0x2ac92a),_0x27239d=_0x3d4fc3-_0x1c151f,_0x5d3198=_0x1f4eb9-_0x5ca977;_0x3d4fc3=_0x1c151f+(_0x27239d*_0x362794-_0x5d3198*_0x1f3153),_0x1f4eb9=_0x5ca977+(_0x27239d*_0x1f3153+_0x5d3198*_0x362794);}let _0x8f430b={'x':_0x3d4fc3,'y':_0x1f4eb9,'adjName':_0x34f7b8[_0x30a907(0x36f)]};this[_0x30a907(0x36d)](_0x4d2335,_0x8f430b,_0x8f430b['adjName'],_0x5cad1d,_0x283faf,this[_0x30a907(0x23c)],this[_0x30a907(0x1d4)]);}}[_0x58257(0x332)](_0x1e0503=!0x1){const _0x2b371e=_0x58257;_0x1e0503&&(this[_0x2b371e(0x2e1)](),this[_0x2b371e(0x2f5)](_0x1e0503));}['_addShapeAdjustControl'](_0x31a3fa,_0x186c55,_0x1abc4f,_0x38f304,_0x18cb54,_0x222f67,_0xa4de4c){const _0x1790ed=_0x58257;if(!this[_0x1790ed(0x255)])return;let _0x4196cf=_0x31a3fa[_0x1790ed(0x441)](_0x1790ed(0x1de)+this[_0x1790ed(0x255)]+'-'+_0x1abc4f);if(_0x4196cf){_0x4196cf[_0x1790ed(0x355)]({'left':_0x186c55['x']+_0x38f304-n[_0x1790ed(0x2f6)][_0x1790ed(0x2a3)],'top':_0x186c55['y']+_0x18cb54-n[_0x1790ed(0x2f6)][_0x1790ed(0x2a3)]});return;}let _0xf31f58={'left':_0x186c55['x']+_0x38f304-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x186c55['y']+_0x18cb54-n[_0x1790ed(0x2f6)][_0x1790ed(0x2a3)],'adjName':_0x1abc4f,'shapeId':this[_0x1790ed(0x255)],'unitId':_0x222f67,'subUnitId':_0xa4de4c,'width':n[_0x1790ed(0x2f6)][_0x1790ed(0x2a3)]+0x8,'height':n[_0x1790ed(0x2f6)]['adjHandleSize']+0x8,'zIndex':c[_0x1790ed(0x1e6)]+0x1,'evented':!0x0},_0x27c795=new D(_0x1790ed(0x1de)+this[_0x1790ed(0x255)]+'-'+_0x1abc4f,_0xf31f58);this[_0x1790ed(0x150)][_0x1790ed(0x21f)](_0x27c795),this[_0x1790ed(0x45d)](_0x27c795,_0x31a3fa,_0x1abc4f),_0x31a3fa[_0x1790ed(0x1fd)](_0x27c795,c[_0x1790ed(0x1e6)]+0x1);}[_0x58257(0x2e1)](){const _0x500ee0=_0x58257;this[_0x500ee0(0x150)][_0x500ee0(0x327)]!==0x0&&(this[_0x500ee0(0x150)][_0x500ee0(0x1d0)](_0x27d428=>{const _0x3cb445=_0x500ee0;_0x27d428[_0x3cb445(0x307)]();}),this[_0x500ee0(0x150)]=[]);}[_0x58257(0x376)](){const _0x5918aa=_0x58257;this[_0x5918aa(0x2f5)]();}[_0x58257(0x2ce)](_0xd07867,_0x32feae){const _0x5aaa82=_0x58257;var _0x2684a7;let _0x30c8f2={'x':0x0,'y':0x0};if(!_0xd07867||!_0x32feae)return _0x30c8f2;let _0xf3f005=this[_0x5aaa82(0x1c3)][_0x5aaa82(0x221)](_0xd07867);if(!_0xf3f005||!_0xf3f005[_0x5aaa82(0x420)](l[_0x5aaa82(0x247)])[_0x5aaa82(0x317)](_0x32feae))return _0x30c8f2;let _0x3d3b12=_0xf3f005[_0x5aaa82(0x420)](l[_0x5aaa82(0x40a)]),_0x55c617=_0x3d3b12==null?void 0x0:_0x3d3b12['getCurrentScrollState']();if(!_0x55c617)return _0x30c8f2;let _0x36742e=(_0x2684a7=this[_0x5aaa82(0x2e5)][_0x5aaa82(0x30b)](_0xd07867))==null?void 0x0:_0x2684a7['getSheetBySheetId'](_0x32feae);if(!_0x36742e)return _0x30c8f2;let _0xece82a=(0x0,l[_0x5aaa82(0x2f2)])(_0x55c617[_0x5aaa82(0x25b)],_0x55c617[_0x5aaa82(0x413)],_0xf3f005[_0x5aaa82(0x3eb)],_0x36742e);return _0xece82a?{'x':_0xece82a[_0x5aaa82(0x201)],'y':_0xece82a['viewportScrollY']}:_0x30c8f2;}['_getZoomRatio'](_0x3070c2,_0x2e2e17){const _0x5f1eb2=_0x58257;var _0x47e194;let _0x58d684=(_0x47e194=this[_0x5f1eb2(0x2e5)][_0x5f1eb2(0x30b)](_0x3070c2))==null?void 0x0:_0x47e194[_0x5f1eb2(0x401)](_0x2e2e17);return(_0x58d684==null?void 0x0:_0x58d684['getZoomRatio']())??0x1;}['_attachAdjustEvent'](_0x4f23dd,_0x5452ba,_0x61885c){const _0x174b64=_0x58257;this[_0x174b64(0x270)]((0x0,a[_0x174b64(0x19f)])(_0x4f23dd['onPointerDown$'][_0x174b64(0x37c)]((_0xe083cd,_0x3676d3)=>{const _0x5084ba=_0x174b64;var _0x2666d5,_0x359067,_0x4c2fd0,_0x40eb40;let _0x44da11=_0x4f23dd[_0x5084ba(0x189)]();this[_0x5084ba(0x265)]=this[_0x5084ba(0x475)](_0x44da11[_0x5084ba(0x432)],_0x44da11['subUnitId'],_0x44da11[_0x5084ba(0x3d0)],_0x61885c),this[_0x5084ba(0x1d7)]=this['_sheetsShapeService'][_0x5084ba(0x2f0)](_0x44da11[_0x5084ba(0x432)],_0x44da11[_0x5084ba(0x44d)],_0x44da11[_0x5084ba(0x3d0)]);let _0x168bd7=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x5084ba(0x1d4)],'drawingId':this[_0x5084ba(0x255)]}),{transform:_0x48f2b6}=_0x168bd7;if(_0x48f2b6){let {left:_0x2bacf1,top:_0x59c7a8,width:_0x1a26ea,height:_0x231cee}=_0x48f2b6;this[_0x5084ba(0x46a)]=_0x2bacf1||0x0,this[_0x5084ba(0x3b1)]=_0x59c7a8||0x0,this[_0x5084ba(0x295)]=_0x1a26ea||0x0,this[_0x5084ba(0x1e3)]=_0x231cee||0x0;}let _0x1ab29c=!!((_0x2666d5=_0x168bd7[_0x5084ba(0x30a)])!=null&&_0x2666d5[_0x5084ba(0x47c)]),_0x967728=!!((_0x359067=_0x168bd7[_0x5084ba(0x30a)])!=null&&_0x359067[_0x5084ba(0x335)]),_0x44d9a6=((_0x4c2fd0=_0x168bd7[_0x5084ba(0x30a)])==null?void 0x0:_0x4c2fd0[_0x5084ba(0x39a)])||0x0;this[_0x5084ba(0x280)]=!0x0,_0x5452ba['disableObjectsEvent']();let _0x16cffa={...((_0x40eb40=this[_0x5084ba(0x265)])==null?void 0x0:_0x40eb40[_0x5084ba(0x435)])??{}};this[_0x5084ba(0x386)]=_0x5452ba['onPointerMove$'][_0x5084ba(0x37c)]((_0x3dd824,_0x283ea3)=>{const _0x15f6e4=_0x5084ba;if(!this[_0x15f6e4(0x280)])return;let {offsetX:_0x308adf,offsetY:_0x53a011}=_0x3dd824,_0x310a50=this[_0x15f6e4(0x265)];if(this[_0x15f6e4(0x1d7)]&&_0x310a50){_0x5452ba[_0x15f6e4(0x28f)](),_0x5452ba[_0x15f6e4(0x296)](c[_0x15f6e4(0x166)][_0x15f6e4(0x2ca)]);let _0x395082={'left':0x0,'top':0x0,'width':this[_0x15f6e4(0x295)],'height':this[_0x15f6e4(0x1e3)]},_0x346991=this['_getScrollInfo'](this['_unitId'],this[_0x15f6e4(0x1d4)]),_0x1aef5e=this[_0x15f6e4(0x3f3)](this[_0x15f6e4(0x23c)],this[_0x15f6e4(0x1d4)]),_0x37871d=_0x308adf/_0x1aef5e+_0x346991['x']-this[_0x15f6e4(0x46a)],_0x44d00c=_0x53a011/_0x1aef5e+_0x346991['y']-this[_0x15f6e4(0x3b1)];if(_0x44d9a6!==0x0){let _0x4c52fd=this['_baseShapeWidth']/0x2,_0x2a4d13=this['_baseShapeHeight']/0x2,_0x4251c0=_0x44d9a6*Math['PI']/0xb4,_0x5dec89=Math[_0x15f6e4(0x2ee)](_0x4251c0),_0x71ab02=Math[_0x15f6e4(0x3c7)](_0x4251c0),_0x362c80=_0x37871d-_0x4c52fd,_0xf41f54=_0x44d00c-_0x2a4d13;_0x37871d=_0x4c52fd+(_0x362c80*_0x5dec89+_0xf41f54*_0x71ab02),_0x44d00c=_0x2a4d13+(-_0x362c80*_0x71ab02+_0xf41f54*_0x5dec89);}_0x1ab29c&&(_0x37871d=this[_0x15f6e4(0x295)]-_0x37871d),_0x967728&&(_0x44d00c=this[_0x15f6e4(0x1e3)]-_0x44d00c);let _0x4b3d23={'x':_0x37871d,'y':_0x44d00c},_0x58be89=this[_0x15f6e4(0x1d7)]['calcAdjValues'](_0x395082,_0x4b3d23,_0x310a50,_0x1ab29c,_0x967728);if(Object[_0x15f6e4(0x33f)](_0x58be89)[_0x15f6e4(0x327)]===0x0)return;for(let [_0x8aca2c,_0x5b0335]of Object['entries'](_0x58be89))this[_0x15f6e4(0x1d7)][_0x15f6e4(0x3cb)](_0x8aca2c,_0x5b0335);this[_0x15f6e4(0x1d7)][_0x15f6e4(0x272)]({'width':this[_0x15f6e4(0x295)],'height':this[_0x15f6e4(0x1e3)]});let _0x143eee=this[_0x15f6e4(0x195)][_0x15f6e4(0x463)]({'unitId':_0x44da11[_0x15f6e4(0x432)],'subUnitId':_0x44da11[_0x15f6e4(0x44d)],'drawingId':_0x44da11['drawingId']});_0x143eee&&(this[_0x15f6e4(0x309)][_0x15f6e4(0x338)](_0x143eee,_0x5452ba),this[_0x15f6e4(0x41c)]=this[_0x15f6e4(0x242)](_0x44da11['unitId'],_0x44da11[_0x15f6e4(0x44d)],_0x44da11['drawingId']),this[_0x15f6e4(0x376)]());}_0x283ea3[_0x15f6e4(0x352)]();}),this['_adjHandlerPointerUp']=_0x5452ba['onPointerUp$'][_0x5084ba(0x37c)]((_0x3483e8,_0x319345)=>{const _0x1bbd92=_0x5084ba;this[_0x1bbd92(0x386)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x5452ba['resetCursor']();let _0x1a446b=this[_0x1bbd92(0x265)];if(_0x1a446b){let _0x5982be=_0x44da11['unitId'],_0x5c43f5=_0x44da11[_0x1bbd92(0x44d)],_0x4479fb=_0x44da11[_0x1bbd92(0x3d0)],_0x121ab1={};for(let _0x520da2 of Object[_0x1bbd92(0x33f)](_0x1a446b[_0x1bbd92(0x435)])){var _0x1434fa;let _0x51dc8a=(_0x1434fa=this[_0x1bbd92(0x1d7)])==null?void 0x0:_0x1434fa[_0x1bbd92(0x161)](_0x520da2);_0x51dc8a!==void 0x0&&(_0x121ab1[_0x520da2]=_0x51dc8a);}Object[_0x1bbd92(0x33f)](_0x121ab1)[_0x1bbd92(0x327)]>0x0&&S(this[_0x1bbd92(0x25c)],_0x5982be,_0x5c43f5,_0x4479fb,{'oldShapeData':{'adjustValues':_0x16cffa}},{'adjustValues':_0x121ab1});}this[_0x1bbd92(0x265)]=void 0x0,this[_0x1bbd92(0x1d7)]=void 0x0,this[_0x1bbd92(0x280)]=!0x1,_0x319345[_0x1bbd92(0x352)](),_0x5452ba[_0x1bbd92(0x40d)]();}),_0x3676d3['stopPropagation']();})));}[_0x58257(0x3f8)](){const _0x12b853=_0x58257;let _0xca7f02=this[_0x12b853(0x2e5)][_0x12b853(0x1ab)](a['UniverInstanceType'][_0x12b853(0x460)]);this[_0x12b853(0x270)](_0xca7f02[_0x12b853(0x3e1)]((0x0,u[_0x12b853(0x418)])(_0x5899ab=>_0x5899ab?_0x5899ab[_0x12b853(0x31e)][_0x12b853(0x3e1)]((0x0,u[_0x12b853(0x418)])(_0x4d5567=>{const _0x41986e=_0x12b853;if(!_0x4d5567)return u[_0x41986e(0x37b)];let _0x50314c=_0x5899ab[_0x41986e(0x14b)](),_0x5d2b0d=this[_0x41986e(0x1c3)][_0x41986e(0x221)](_0x50314c),_0x381816=_0x5d2b0d==null?void 0x0:_0x5d2b0d['scene'];return _0x381816?(0x0,u['of'])(_0x381816):u[_0x41986e(0x37b)];})):u[_0x12b853(0x37b)]))['subscribe'](_0x4135d3=>{const _0x14f420=_0x12b853;let _0x44201a=_0x4135d3['getTransformerByCreate']();this[_0x14f420(0x270)](_0x4135d3['onPointerMove$']['subscribeEvent'](()=>{const _0x1020e6=_0x14f420;this[_0x1020e6(0x3ee)];})),this[_0x14f420(0x270)](_0x44201a[_0x14f420(0x2bc)][_0x14f420(0x220)](_0xdcd559=>{const _0x5cb6e4=_0x14f420;let {objects:_0x4ea7c4}=_0xdcd559;this[_0x5cb6e4(0x2f5)](),_0x4ea7c4!==null&&_0x4ea7c4[_0x5cb6e4(0x47b)]===0x1&&_0x4ea7c4['values']()['next']()['value']instanceof E&&this[_0x5cb6e4(0x1e9)](!0x0);})),this[_0x14f420(0x270)](_0x44201a['changing$'][_0x14f420(0x220)](()=>{const _0x4c64be=_0x14f420;this['_isShouldShowDrawingShapeAdjust']&&this[_0x4c64be(0x2e1)]();})),this[_0x14f420(0x270)](_0x4135d3[_0x14f420(0x29b)]['subscribeEvent'](()=>{const _0x1abf0a=_0x14f420;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x1abf0a(0x1e9)](!0x1),this['_createShapeAdjustControls']());})),this[_0x14f420(0x270)](_0x44201a['changeEnd$']['subscribe'](()=>{const _0x16a769=_0x14f420;this['_unitId']&&this[_0x16a769(0x1d4)]&&this[_0x16a769(0x255)]&&this[_0x16a769(0x195)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x16a769(0x1d4)],'drawingId':this[_0x16a769(0x255)]})&&(this[_0x16a769(0x41c)]=this[_0x16a769(0x242)](this['_unitId'],this[_0x16a769(0x1d4)],this[_0x16a769(0x255)]),this[_0x16a769(0x376)]());}));}));}[_0x58257(0x28a)](){const _0x396f5c=_0x58257;this[_0x396f5c(0x270)](this[_0x396f5c(0x25c)][_0x396f5c(0x415)](_0x13b515=>{const _0x56def4=_0x396f5c;if(_0x13b515['id']!==i[_0x56def4(0x464)]['id'])return;let {unitId:_0x2afae7,subUnitId:_0x590ae2,shapeId:_0x23a1d1}=_0x13b515['params'];_0x2afae7===this['_unitId']&&_0x590ae2===this[_0x56def4(0x1d4)]&&_0x23a1d1===this[_0x56def4(0x255)]&&this[_0x56def4(0x456)]();})),this[_0x396f5c(0x270)](this['_drawingManagerService'][_0x396f5c(0x440)][_0x396f5c(0x220)](_0x9f1ab4=>{const _0x3c454c=_0x396f5c;if(_0x9f1ab4['length']===0x1){let _0x5df5bd=_0x9f1ab4[0x0];if(_0x5df5bd[_0x3c454c(0x2c9)]===a[_0x3c454c(0x277)][_0x3c454c(0x33c)]&&this[_0x3c454c(0x2e5)][_0x3c454c(0x371)](_0x5df5bd[_0x3c454c(0x432)])===a[_0x3c454c(0x35a)][_0x3c454c(0x460)]){this[_0x3c454c(0x255)]=_0x5df5bd['drawingId'];let {unitId:_0x2b281a,subUnitId:_0x399fec}=_0x5df5bd;this['_activeShapeAdjustPointList']=this[_0x3c454c(0x242)](_0x2b281a,_0x399fec,this[_0x3c454c(0x255)]),this[_0x3c454c(0x23c)]=_0x2b281a,this[_0x3c454c(0x1d4)]=_0x399fec,this['_clearShapeAdjustControls'](),this[_0x3c454c(0x2f5)]();return;}}this['_activeShapeId']=null,this[_0x3c454c(0x41c)]=void 0x0,this[_0x3c454c(0x23c)]=null,this[_0x3c454c(0x1d4)]=null,this[_0x3c454c(0x2e1)]();})),this['disposeWithMe'](this[_0x396f5c(0x195)]['update$'][_0x396f5c(0x220)](_0x13c58f=>{const _0x387f9e=_0x396f5c;if(_0x13c58f[_0x387f9e(0x327)]===0x1){var _0xb242da;let _0x4d50ab=_0x13c58f[0x0];((_0xb242da=this[_0x387f9e(0x195)]['getDrawingByParam'](_0x4d50ab))==null?void 0x0:_0xb242da[_0x387f9e(0x2c9)])===a[_0x387f9e(0x277)][_0x387f9e(0x33c)]&&this['_updateShapeAdjustControls'](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService'][_0x396f5c(0x409)][_0x396f5c(0x220)](_0x291dab=>{const _0x2b17b5=_0x396f5c;for(let _0x3e078c of _0x291dab)this['_activeShapeId']===_0x3e078c[_0x2b17b5(0x3d0)]&&(this[_0x2b17b5(0x255)]=null,this[_0x2b17b5(0x41c)]=void 0x0,this['_unitId']=null,this[_0x2b17b5(0x1d4)]=null,this['_clearShapeAdjustControls']());}));}};j=k([O(0x0,s[_0x58257(0x14f)]),O(0x1,(0x0,a[_0x58257(0x183)])(i[_0x58257(0x45a)])),O(0x2,(0x0,a['Inject'])(c['IRenderManagerService'])),O(0x3,(0x0,a[_0x58257(0x183)])(A)),O(0x4,a['IUniverInstanceService']),O(0x5,a[_0x58257(0x258)])],j);const M={'id':_0x58257(0x397),'type':a['CommandType'][_0x58257(0x425)],'handler':(_0x402831,_0x15f53d)=>{const _0x4cdbc4=_0x58257;let _0x5e6d65=_0x402831[_0x4cdbc4(0x27a)](s['IDrawingManagerService']),_0x52bc13=_0x402831[_0x4cdbc4(0x27a)](c[_0x4cdbc4(0x1a2)]),_0x2506ad=_0x402831[_0x4cdbc4(0x27a)](j);if(_0x15f53d==null)return!0x0;if(_0x15f53d[_0x4cdbc4(0x327)]>0x0){var _0x1252b0;let _0x127369=(_0x1252b0=_0x52bc13['getRenderUnitById'](_0x15f53d[0x0][_0x4cdbc4(0x432)]))==null?void 0x0:_0x1252b0[_0x4cdbc4(0x3eb)];if(_0x127369){let {unitId:_0x335a1c,subUnitId:_0x2a544f,drawingId:_0x31b3c9}=_0x15f53d[0x0],_0xeeb832=(0x0,s[_0x4cdbc4(0x389)])({'unitId':_0x335a1c,'subUnitId':_0x2a544f,'drawingId':_0x31b3c9},void 0x0),_0x3de2db=_0x127369[_0x4cdbc4(0x441)](_0xeeb832);if(_0x3de2db){var _0x39e67b;(_0x39e67b=_0x52bc13[_0x4cdbc4(0x221)](_0x15f53d[0x0][_0x4cdbc4(0x432)]))==null||(_0x39e67b=_0x39e67b[_0x4cdbc4(0x3eb)][_0x4cdbc4(0x3f2)]())==null||_0x39e67b[_0x4cdbc4(0x314)](_0x3de2db);}}_0x5e6d65[_0x4cdbc4(0x18f)](_0x15f53d),_0x2506ad[_0x4cdbc4(0x1e9)](!0x1);}return!0x0;}},N={'type':a[_0x58257(0x430)][_0x58257(0x414)],'id':_0x58257(0x2b8),'handler':async(_0x306391,_0x1cac38)=>{const _0x1807de=_0x58257;let _0x16e39f=(0x0,o[_0x1807de(0x1d6)])(_0x306391[_0x1807de(0x27a)](a[_0x1807de(0x32d)]));if(!_0x16e39f)return!0x1;let _0x281fe2=_0x306391['get'](o[_0x1807de(0x1fa)])['getCurrentLastSelection']();if(!_0x281fe2)return!0x1;let _0x326783=_0x306391[_0x1807de(0x27a)](a[_0x1807de(0x258)]),{unitId:_0xce22ef,subUnitId:_0x14abfb}=_0x16e39f,{value:_0x245857,enhanceParams:_0x443335}=_0x1cac38,{range:_0x30d5e0}=_0x281fe2,_0x435490={'unitId':_0xce22ef,'subUnitId':_0x14abfb,'shapeType':_0x245857,'range':_0x30d5e0,'shapeId':(0x0,a[_0x1807de(0x1b0)])()};if(_0x443335){let _0x1bef58=(0x0,n[_0x1807de(0x34c)])(_0x245857),_0x492a61=_0x245857===n[_0x1807de(0x421)][_0x1807de(0x174)];_0x1bef58&&(_0x443335[_0x1807de(0x3d3)]||_0x443335[_0x1807de(0x205)])&&(_0x435490['shapeData']={'ln':{'startArrow':_0x443335['startArrow']?{'type':n[_0x1807de(0x385)][_0x1807de(0x1a7)],'size':n[_0x1807de(0x1cc)]['Medium']}:void 0x0,'endArrow':_0x443335[_0x1807de(0x205)]?{'type':n['ShapeArrowTypeEnum'][_0x1807de(0x1a7)],'size':n['ShapeArrowSizeEnum']['Large']}:void 0x0}}),_0x492a61&&(_0x443335['horizontal']||_0x443335[_0x1807de(0x1a3)])&&(_0x435490[_0x1807de(0x275)]=(0x0,r[_0x1807de(0x24b)])({'fill':{'fillType':n['ShapeFillEnum']['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x443335[_0x1807de(0x455)],'stroke':{'lineStrokeType':n[_0x1807de(0x17e)]['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x9c0420=_0x326783[_0x1807de(0x193)](i[_0x1807de(0x3a4)]['id'],_0x435490);return setTimeout(()=>{const _0x3f5b64=_0x1807de;_0x326783[_0x3f5b64(0x2db)](M['id'],[{'unitId':_0xce22ef,'subUnitId':_0x14abfb,'drawingId':_0x435490[_0x3f5b64(0x2af)]}]);},0xc8),_0x9c0420;}},P=_0x58257(0x44c),F=_0x58257(0x3f5),I=_0x58257(0x318),L=_0x58257(0x45c),re=(0x0,a['createInternalEditorID'])(_0x58257(0x224)),ie=_0x58257(0x261),ae={'id':_0x58257(0x423),'type':a[_0x58257(0x430)][_0x58257(0x414)],'handler':(_0x26101e,_0x4c5080)=>{const _0x40c149=_0x58257;let _0x5113a4=_0x26101e[_0x40c149(0x27a)](t[_0x40c149(0x172)]),_0x238378=_0x26101e['get'](a[_0x40c149(0x20c)]),_0x3b4e7b=_0x26101e[_0x40c149(0x27a)](a[_0x40c149(0x32d)]),_0x3cadd4=_0x26101e['get'](a[_0x40c149(0x258)]);return(0x0,o[_0x40c149(0x1d6)])(_0x3b4e7b)?(_0x4c5080==null?void 0x0:_0x4c5080[_0x40c149(0x18c)])===_0x40c149(0x330)?(_0x5113a4[_0x40c149(0x330)](F),!0x0):(_0x5113a4['open']({'id':F,'header':{'title':_0x238378['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':F},'onClose':()=>{const _0x2b22e4=_0x40c149;_0x3cadd4[_0x2b22e4(0x193)](s[_0x2b22e4(0x3f1)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},R={'type':a['CommandType']['OPERATION'],'id':_0x58257(0x2c3),'handler'(){return!0x0;}};function oe(_0x404851){const _0x1bbae5=_0x58257;let _0x204441=_0x404851[_0x1bbae5(0x27a)](s[_0x1bbae5(0x14f)])[_0x1bbae5(0x3d2)](),_0x243c86=_0x204441[_0x1bbae5(0x327)]===0x1?_0x204441[0x0]:null;if(!_0x243c86||_0x243c86[_0x1bbae5(0x2c9)]!==a[_0x1bbae5(0x277)]['DRAWING_SHAPE'])return null;let _0x26559f=_0x404851[_0x1bbae5(0x27a)](i[_0x1bbae5(0x45a)]),_0xe22e1c=_0x26559f[_0x1bbae5(0x3de)](_0x243c86[_0x1bbae5(0x432)],_0x243c86[_0x1bbae5(0x44d)],_0x243c86[_0x1bbae5(0x3d0)]),_0x3264b1=_0x26559f[_0x1bbae5(0x188)](_0x243c86[_0x1bbae5(0x432)],_0x243c86[_0x1bbae5(0x44d)],_0x243c86[_0x1bbae5(0x3d0)]);return _0xe22e1c===void 0x0||!_0x3264b1?null:{'drawing':_0x243c86,'shapeData':_0x3264b1,'shapeType':_0xe22e1c};}const z={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x58257(0x430)][_0x58257(0x425)],'handler':(_0x33ed49,_0x1f2425)=>{const _0x4aadc2=_0x58257;let _0xcd4627=oe(_0x33ed49),_0x282982=(0x0,r['getShapeQuickStylePreset'])((_0x1f2425==null?void 0x0:_0x1f2425[_0x4aadc2(0x23a)])??(_0x1f2425==null?void 0x0:_0x1f2425['value'])??'');if(!_0xcd4627||!_0x282982||_0x282982['type']!==(0x0,r[_0x4aadc2(0x311)])(_0xcd4627[_0x4aadc2(0x275)]))return!0x1;let _0x2125ce=(0x0,r[_0x4aadc2(0x42c)])(_0xcd4627[_0x4aadc2(0x275)],_0x282982);if(!_0x2125ce)return!0x1;let {drawing:_0x2e8360}=_0xcd4627;return _0x33ed49['get'](a[_0x4aadc2(0x258)])[_0x4aadc2(0x2db)](x['id'],{'unitId':_0x2e8360[_0x4aadc2(0x432)],'subUnitId':_0x2e8360[_0x4aadc2(0x44d)],'shapeId':_0x2e8360[_0x4aadc2(0x3d0)],'shapeData':_0x2125ce,'oldShapeJSON':{'oldShapeData':_0xcd4627[_0x4aadc2(0x275)]}});}},se={'id':'sheet.operation.update-shape-type','type':a[_0x58257(0x430)][_0x58257(0x425)],'handler':(_0x2905c8,_0x523de4)=>{const _0x1d4bc1=_0x58257;let _0x5dc824=oe(_0x2905c8),_0x87b78c=(_0x523de4==null?void 0x0:_0x523de4[_0x1d4bc1(0x416)])??(_0x523de4==null?void 0x0:_0x523de4[_0x1d4bc1(0x18c)]);if(!_0x5dc824||!_0x87b78c||(0x0,n[_0x1d4bc1(0x34c)])(_0x5dc824[_0x1d4bc1(0x416)])||(0x0,n[_0x1d4bc1(0x34c)])(_0x87b78c))return!0x1;let _0x29ca64=(0x0,r[_0x1d4bc1(0x42d)])(_0x5dc824[_0x1d4bc1(0x275)],_0x87b78c);if(!_0x29ca64)return!0x1;let {drawing:_0x5cbc9a}=_0x5dc824;return _0x2905c8[_0x1d4bc1(0x27a)](a[_0x1d4bc1(0x258)])[_0x1d4bc1(0x2db)](x['id'],{'unitId':_0x5cbc9a[_0x1d4bc1(0x432)],'subUnitId':_0x5cbc9a[_0x1d4bc1(0x44d)],'shapeId':_0x5cbc9a[_0x1d4bc1(0x3d0)],'shapeType':_0x87b78c,'shapeData':_0x29ca64,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x5dc824[_0x1d4bc1(0x416)],'oldShapeData':_0x5dc824[_0x1d4bc1(0x275)]}});}};let B=class extends a[_0x58257(0x40f)]{constructor(_0x5e001a,_0x1e0525){const _0x1c90b6=_0x58257;super(),this[_0x1c90b6(0x21c)]=_0x5e001a,this[_0x1c90b6(0x195)]=_0x1e0525,this['_registerImageShapeClipDelegate'](),this[_0x1c90b6(0x21c)][_0x1c90b6(0x3d9)](!0x0),this[_0x1c90b6(0x270)]({'dispose':()=>this[_0x1c90b6(0x21c)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x3114b7=_0x58257;let _0x359ca2=this['_clipService'],_0x2e3c8c=new Map(),_0x44fea8=_0x359ca2['registerClipDelegate']((_0x1cd726,_0x48f750,_0x2b59f7,_0x51d2d1,_0x4a1c19)=>{const _0x2fd4cc=_0x48d4;let _0x43c7c3=_0x48f750;if(_0x43c7c3===n[_0x2fd4cc(0x421)][_0x2fd4cc(0x20b)]||_0x48f750===_0x2fd4cc(0x3d1))return!0x1;try{let _0x1c681b=_0x2e3c8c[_0x2fd4cc(0x27a)](_0x48f750);return _0x1c681b||(_0x1c681b=new n[(_0x2fd4cc(0x1e5))](_0x43c7c3,_0x2fd4cc(0x22d)+_0x48f750),_0x2e3c8c['set'](_0x48f750,_0x1c681b)),_0x1c681b[_0x2fd4cc(0x443)](),_0x4a1c19&&Object[_0x2fd4cc(0x33f)](_0x4a1c19)['length']>0x0&&_0x1c681b['setShapeData']({'adjustValues':_0x4a1c19},!0x0),_0x1c681b[_0x2fd4cc(0x272)]({'width':_0x2b59f7,'height':_0x51d2d1}),_0x1c681b['buildClipPath'](_0x1cd726,{'left':0x0,'top':0x0,'width':_0x2b59f7,'height':_0x51d2d1});}catch{return!0x1;}});this[_0x3114b7(0x270)](_0x44fea8),this[_0x3114b7(0x270)]({'dispose':()=>_0x2e3c8c[_0x3114b7(0x290)]()});}[_0x58257(0x23b)](_0x42ef56,_0x2a5fa7,_0x48c911,_0x55653a,_0x456d22){const _0x339ecf=_0x58257;let _0x90772e=this[_0x339ecf(0x195)][_0x339ecf(0x19d)](_0x42ef56,_0x2a5fa7);if(!_0x90772e[_0x48c911])return;let _0x538c06={..._0x90772e[_0x48c911],'prstGeom':_0x55653a,'adjustValues':_0x456d22};this['_drawingManagerService'][_0x339ecf(0x185)]([_0x538c06]);}};B=k([O(0x0,(0x0,a[_0x58257(0x183)])(d['DrawingImageClipService'])),O(0x1,(0x0,a['Inject'])(s['IDrawingManagerService']))],B);const ce=_0x58257(0x419),le=_0x58257(0x284);function ue({onShapeClick:_0x46ab8e,excludeGroups:_0x1bfca5}){const _0x1386a7=_0x58257;return(0x0,f['jsx'])(e[_0x1386a7(0x2a5)],{'excludeGroups':_0x1bfca5,'onShapeClick':_0x46ab8e,'scrollContainer':_0x1386a7(0x18a)});}function de(){const _0x2959df=_0x58257;let _0x11fa40=(0x0,t[_0x2959df(0x2f4)])(s[_0x2959df(0x14f)]),_0x41d9c9=(0x0,t[_0x2959df(0x2f4)])(B);return(0x0,f[_0x2959df(0x257)])(e[_0x2959df(0x433)],{'buttonLabel':_0x2959df(0x46f),'excludeGroups':[e[_0x2959df(0x204)][_0x2959df(0x35d)]],'onShapeClick':_0x1301ea=>{const _0x17e845=_0x2959df;let _0x3ce106=_0x11fa40[_0x17e845(0x3d2)]()[_0x17e845(0x40e)](_0x11950f=>_0x11950f[_0x17e845(0x2c9)]===a['DrawingTypeEnum'][_0x17e845(0x253)]);if(!_0x3ce106)return;let {unitId:_0x36fe95,subUnitId:_0x59cdbc,drawingId:_0x5b8b9f}=_0x3ce106;_0x41d9c9[_0x17e845(0x23b)](_0x36fe95,_0x59cdbc,_0x5b8b9f,_0x1301ea['type']);}});}function fe(){const _0x3d0b89=_0x58257;let _0xe90c0f=(0x0,t['useDependency'])(t['ComponentManager']),_0x518d01=(0x0,t[_0x3d0b89(0x2f4)])(s['IDrawingManagerService']),_0x503222=(0x0,t[_0x3d0b89(0x2f4)])(a[_0x3d0b89(0x32d)]),_0x11a567=_0x518d01[_0x3d0b89(0x3d2)]()[0x0],_0x337e84=_0x11a567?_0x503222[_0x3d0b89(0x371)](_0x11a567[_0x3d0b89(0x432)]):void 0x0,_0x17a286=_0x337e84===a[_0x3d0b89(0x35a)]['UNIVER_DOC']?_0x3d0b89(0x1a4):_0x337e84===a['UniverInstanceType'][_0x3d0b89(0x460)]?le:void 0x0,_0x195340=_0x17a286?_0xe90c0f['get'](_0x17a286):void 0x0;return _0x195340?(0x0,f[_0x3d0b89(0x257)])(_0x195340,{}):null;}function pe(){const _0x4232ad=_0x58257;let _0x4b5b37=(0x0,t[_0x4232ad(0x2f4)])(a['ICommandService']);return(0x0,f['jsx'])(ue,{'onShapeClick':_0xce8616=>{const _0x3a1fca=_0x4232ad;_0x4b5b37[_0x3a1fca(0x2db)](N['id'],{'value':_0xce8616[_0x3a1fca(0x1af)],'enhanceParams':{'endArrow':_0xce8616['endArrow'],'startArrow':_0xce8616[_0x3a1fca(0x3d3)],'horizontal':_0xce8616[_0x3a1fca(0x455)],'vertical':_0xce8616['vertical']}});}});}function me(_0x4538fa){const _0x472958=_0x58257;let _0x5054cb=_0x4538fa[_0x472958(0x27a)](a[_0x472958(0x32d)]);return{'id':N['id'],'type':t[_0x472958(0x3fc)][_0x472958(0x359)],'selections':[{'label':{'name':ce,'hoverable':!0x1,'selectable':!0x1,'props':{'id':N['id']}}}],'icon':_0x472958(0x347),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,l['deriveStateFromActiveSheet$'])(_0x5054cb,!0x1,()=>new u[(_0x472958(0x18e))](_0x24aa54=>{const _0x4ed41a=_0x472958;_0x24aa54[_0x4ed41a(0x358)](!0x1);})),'hidden$':(0x0,t[_0x472958(0x179)])(_0x4538fa,a[_0x472958(0x35a)][_0x472958(0x460)]),'disabled$':(0x0,l[_0x472958(0x3cc)])(_0x4538fa)};}function he(_0x5498f0){const _0x1f6e35=_0x58257;let _0x1f0b92=_0x5498f0[_0x1f6e35(0x27a)](a[_0x1f6e35(0x32d)]);return{'id':ae['id'],'type':t[_0x1f6e35(0x3fc)][_0x1f6e35(0x363)],'icon':_0x1f6e35(0x437),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x1f6e35(0x444),'activated$':(0x0,l[_0x1f6e35(0x3c8)])(_0x1f0b92,!0x1,()=>new u[(_0x1f6e35(0x18e))](_0x408254=>{_0x408254['next'](!0x1);})),'hidden$':(0x0,t['getMenuHiddenObservable'])(_0x5498f0,a[_0x1f6e35(0x35a)][_0x1f6e35(0x460)]),'disabled$':(0x0,l[_0x1f6e35(0x3cc)])(_0x5498f0)};}const ge=_0x58257(0x273),_e=_0x58257(0x14e);function ve(_0x1602dd){const _0x50fbc7=_0x58257;let _0x20838f=_0x1602dd[_0x50fbc7(0x27a)](s[_0x50fbc7(0x14f)])[_0x50fbc7(0x3d2)]();return _0x20838f[_0x50fbc7(0x327)]===0x1&&_0x20838f[0x0][_0x50fbc7(0x2c9)]===a['DrawingTypeEnum'][_0x50fbc7(0x33c)]?_0x20838f[0x0]:null;}function ye(_0x192eb2){const _0x2e6ef1=_0x58257;let _0x1fa873=_0x192eb2[_0x2e6ef1(0x27a)](s[_0x2e6ef1(0x14f)]);return _0x1fa873[_0x2e6ef1(0x440)]['pipe']((0x0,u[_0x2e6ef1(0x3ce)])(_0x1fa873['getFocusDrawings']()),(0x0,u[_0x2e6ef1(0x30d)])(_0x5b8eb2=>_0x5b8eb2['length']!==0x1||_0x5b8eb2[0x0][_0x2e6ef1(0x2c9)]!==a[_0x2e6ef1(0x277)][_0x2e6ef1(0x33c)]));}function be(_0x4279f0){const _0x4e1317=_0x58257;return{'id':ge,'commandId':i[_0x4e1317(0x2b5)]['id'],'type':t['MenuItemType'][_0x4e1317(0x363)],'title':_0x4e1317(0x431),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x4e1317(0x157),'hidden$':ye(_0x4279f0),'params':()=>{const _0x1c06c1=_0x4e1317;let _0x4ca5e9=ve(_0x4279f0);return _0x4ca5e9?{'unitId':_0x4ca5e9[_0x1c06c1(0x432)],'subUnitId':_0x4ca5e9[_0x1c06c1(0x44d)],'shapeId':_0x4ca5e9[_0x1c06c1(0x3d0)],'flipH':!0x0}:void 0x0;}};}function xe(_0x6f690b){const _0x593ec7=_0x58257;return{'id':_e,'commandId':i[_0x593ec7(0x2b5)]['id'],'type':t['MenuItemType'][_0x593ec7(0x363)],'title':'sheets-shape-ui.flipVertical','tooltip':_0x593ec7(0x266),'icon':_0x593ec7(0x2df),'hidden$':ye(_0x6f690b),'params':()=>{const _0x16d9ee=_0x593ec7;let _0x3b8788=ve(_0x6f690b);return _0x3b8788?{'unitId':_0x3b8788[_0x16d9ee(0x432)],'subUnitId':_0x3b8788[_0x16d9ee(0x44d)],'shapeId':_0x3b8788['drawingId'],'flipV':!0x0}:void 0x0;}};}const Se=_0x58257(0x282),Ce=_0x58257(0x1b4),we='sheets-shape-ui.shape-format.text-ribbon-control',Te='sheets-shape-ui.shape-format.formula-ribbon-control';function V(){const _0x546db5=_0x58257;let _0x5833d3=(0x0,t[_0x546db5(0x2f4)])(a[_0x546db5(0x258)]),_0x4beb3d=(0x0,t[_0x546db5(0x2f4)])(s[_0x546db5(0x14f)]),_0x84e40d=(0x0,t[_0x546db5(0x2f4)])(i[_0x546db5(0x45a)]),_0x3a1a1e=()=>{const _0x2afbcc=_0x546db5;var _0x5b2976;let _0x37c045=_0x4beb3d[_0x2afbcc(0x3d2)]();if(_0x37c045[_0x2afbcc(0x327)]!==0x1||((_0x5b2976=_0x37c045[0x0])==null?void 0x0:_0x5b2976[_0x2afbcc(0x2c9)])!==a[_0x2afbcc(0x277)][_0x2afbcc(0x33c)])return null;let {unitId:_0x4eea04,subUnitId:_0xd7c105,drawingId:_0x502a69}=_0x37c045[0x0],_0x151239=_0x84e40d[_0x2afbcc(0x3de)](_0x4eea04,_0xd7c105,_0x502a69),_0x405c88=_0x84e40d[_0x2afbcc(0x188)](_0x4eea04,_0xd7c105,_0x502a69);return _0x151239===void 0x0||!_0x405c88?null:{'unitId':_0x4eea04,'subUnitId':_0xd7c105,'drawingId':_0x502a69,'shapeType':_0x151239,'shapeData':_0x405c88};},_0x52b556=(0x0,t['useObservable'])(()=>new u[(_0x546db5(0x18e))](_0x20eae9=>{const _0x4fc1b1=_0x546db5;let _0x358598=()=>_0x20eae9[_0x4fc1b1(0x358)](_0x3a1a1e()),_0x14924a=_0x4beb3d[_0x4fc1b1(0x440)][_0x4fc1b1(0x220)](_0x358598),_0x21a7ef=_0x5833d3[_0x4fc1b1(0x415)](_0x368dbe=>{const _0x1cbf7f=_0x4fc1b1;_0x368dbe['id']===i[_0x1cbf7f(0x464)]['id']&&_0x358598();});return _0x358598(),()=>{const _0x407145=_0x4fc1b1;_0x14924a['unsubscribe'](),_0x21a7ef[_0x407145(0x307)]();};}),_0x3a1a1e(),!0x1,[_0x5833d3,_0x4beb3d,_0x84e40d]);return{'selection':_0x52b556,'updateShapeData':_0x581847=>{const _0x4d1cc5=_0x546db5;_0x52b556&&S(_0x5833d3,_0x52b556[_0x4d1cc5(0x432)],_0x52b556['subUnitId'],_0x52b556[_0x4d1cc5(0x3d0)],{'oldShapeData':_0x52b556[_0x4d1cc5(0x275)]},_0x581847);}};}function Ee(){const _0x6da468=_0x58257;let {selection:_0x3d9049,updateShapeData:_0xd4f0fa}=V();return _0x3d9049?(0x0,f[_0x6da468(0x257)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x3d9049[_0x6da468(0x275)],'shapeType':_0x3d9049['shapeType'],'onUpdateShapeData':_0xd4f0fa}):null;}function De(){const _0x3bbe8a=_0x58257;let _0x5c633a=(0x0,t[_0x3bbe8a(0x2f4)])(a[_0x3bbe8a(0x258)]),_0x1ff5ef=(0x0,t[_0x3bbe8a(0x2f4)])(a[_0x3bbe8a(0x20c)]),{selection:_0x19a4f0}=V();return _0x19a4f0?(0x0,f[_0x3bbe8a(0x257)])(e[_0x3bbe8a(0x426)],{'type':(0x0,r[_0x3bbe8a(0x311)])(_0x19a4f0[_0x3bbe8a(0x275)]),'ariaLabel':_0x1ff5ef['t'](_0x3bbe8a(0x2be)),'activePresetId':(0x0,r[_0x3bbe8a(0x2cf)])(_0x19a4f0[_0x3bbe8a(0x275)]),'onSelect':_0x5496c1=>_0x5c633a[_0x3bbe8a(0x2db)](z['id'],{'presetId':_0x5496c1})}):null;}function Oe(){const _0x3d5265=_0x58257;let {selection:_0x38319e,updateShapeData:_0x5b6ac5}=V();return _0x38319e?(0x0,f[_0x3d5265(0x257)])(e[_0x3d5265(0x1f8)],{'fontFamilyPopupDataComponent':_0x3d5265(0x378),'shapeData':_0x38319e[_0x3d5265(0x275)],'onUpdateShapeData':_0x5b6ac5}):null;}function ke(){const _0x5bfa23=_0x58257;var _0x39bfdb;let {selection:_0x53fba9,updateShapeData:_0x20f55f}=V(),_0x5ba803=(0x0,e['useFormulaShapeToolbar'])({'hostType':a[_0x5bfa23(0x35a)][_0x5bfa23(0x460)],'unitId':(_0x53fba9==null?void 0x0:_0x53fba9[_0x5bfa23(0x432)])??'','subUnitId':(_0x53fba9==null?void 0x0:_0x53fba9[_0x5bfa23(0x44d)])??'','shapeId':(_0x53fba9==null?void 0x0:_0x53fba9['drawingId'])??'','shapeData':_0x53fba9==null?void 0x0:_0x53fba9[_0x5bfa23(0x275)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x5bfa23(0x2b7),'onUpdateBinding':_0x2a85ee=>_0x20f55f({'formulaBinding':_0x2a85ee})}),_0x5062a7=((_0x39bfdb=_0x5ba803[_0x5bfa23(0x1cb)])==null?void 0x0:_0x39bfdb[_0x5bfa23(0x197)](_0x37efed=>_0x37efed[_0x5bfa23(0x1eb)])[_0x5bfa23(0x239)](_0x487ed5=>_0x487ed5[_0x5bfa23(0x222)]!==!0x1))??[];return _0x53fba9!=null&&_0x53fba9['shapeData'][_0x5bfa23(0x2e9)]?(0x0,f[_0x5bfa23(0x257)])(e['ShapeFormulaRibbonControl'],{'actions':_0x5062a7,'panel':_0x5ba803['panel']}):null;}function _0x48d4(_0x31439f,_0x3b307e){_0x31439f=_0x31439f-0x146;const _0x188ced=_0x188c();let _0x48d42f=_0x188ced[_0x31439f];return _0x48d42f;}const Ae=_0x58257(0x278),je=_0x58257(0x1bc),Me=_0x58257(0x3e9),Ne='sheets-shape-ui.ribbon.shape-format.arrange-forward',Pe=_0x58257(0x232),Fe=_0x58257(0x203),Ie=_0x58257(0x384);function Le(_0x37d850){const _0xb892f1=_0x58257;let _0xa6ea96=_0x37d850[_0xb892f1(0x27a)](a['ICommandService']),_0xa88785=_0x37d850[_0xb892f1(0x27a)](s[_0xb892f1(0x14f)]),_0x314c85=_0x37d850[_0xb892f1(0x27a)](i[_0xb892f1(0x45a)]);return new u[(_0xb892f1(0x18e))](_0x31c431=>{const _0x54920a=_0xb892f1;let _0x80d7a0=()=>{const _0x39bbb1=_0x48d4;let _0x161cdb=H(_0x37d850),_0x40196d=_0x161cdb?_0x314c85['getShapeDataById'](_0x161cdb[_0x39bbb1(0x432)],_0x161cdb[_0x39bbb1(0x44d)],_0x161cdb[_0x39bbb1(0x3d0)]):null;_0x31c431[_0x39bbb1(0x358)](_0x40196d?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x40196d)??'':'');},_0x3ac195=_0xa88785[_0x54920a(0x440)]['subscribe'](_0x80d7a0),_0x35282a=_0xa6ea96[_0x54920a(0x415)](_0x3eb57a=>{const _0x1441cf=_0x54920a;_0x3eb57a['id']===i[_0x1441cf(0x464)]['id']&&_0x80d7a0();});return _0x80d7a0(),()=>{const _0xbfbeda=_0x54920a;_0x3ac195[_0xbfbeda(0x244)](),_0x35282a[_0xbfbeda(0x307)]();};});}function H(_0x5f2d81){const _0x4f81aa=_0x58257;var _0x35d589;let _0x34e57e=_0x5f2d81[_0x4f81aa(0x27a)](s['IDrawingManagerService'])[_0x4f81aa(0x3d2)]();return _0x34e57e[_0x4f81aa(0x327)]===0x1&&((_0x35d589=_0x34e57e[0x0])==null?void 0x0:_0x35d589[_0x4f81aa(0x2c9)])===a[_0x4f81aa(0x277)][_0x4f81aa(0x33c)]?_0x34e57e[0x0]:null;}function U(_0xcc543a,_0x3ca059=!0x1){const _0x96e75d=_0x58257;let _0x4f34ab=_0xcc543a[_0x96e75d(0x27a)](a['ICommandService']),_0x3952aa=_0xcc543a['get'](s[_0x96e75d(0x14f)]),_0x308c03=_0xcc543a[_0x96e75d(0x27a)](i[_0x96e75d(0x45a)]);return new u['Observable'](_0x25d0c9=>{const _0xe8fe0d=_0x96e75d;let _0x39f3ed=()=>{const _0x2e100e=_0x48d4;let _0x5299a3=H(_0xcc543a);if(!_0x5299a3){_0x25d0c9[_0x2e100e(0x358)](!0x0);return;}let _0x89c12c=_0x308c03[_0x2e100e(0x188)](_0x5299a3['unitId'],_0x5299a3[_0x2e100e(0x44d)],_0x5299a3[_0x2e100e(0x3d0)]);_0x25d0c9[_0x2e100e(0x358)](!_0x89c12c||_0x3ca059&&_0x89c12c['formulaBinding']==null);},_0xeb46f5=_0x3952aa[_0xe8fe0d(0x440)][_0xe8fe0d(0x220)](_0x39f3ed),_0x1b33dc=_0x4f34ab[_0xe8fe0d(0x415)](_0x12e551=>{_0x12e551['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x39f3ed();});return _0x39f3ed(),()=>{const _0x343ec8=_0xe8fe0d;_0xeb46f5[_0x343ec8(0x244)](),_0x1b33dc['dispose']();};});}function Re(_0x47119f){const _0x274a1e=_0x58257;let _0x3834f9=_0x47119f[_0x274a1e(0x27a)](s[_0x274a1e(0x14f)]),_0x11aa6a=_0x47119f['get'](i[_0x274a1e(0x45a)]);return _0x3834f9[_0x274a1e(0x440)][_0x274a1e(0x3e1)]((0x0,u[_0x274a1e(0x3ce)])(_0x3834f9[_0x274a1e(0x3d2)]()),(0x0,u[_0x274a1e(0x30d)])(()=>{const _0x3991d5=_0x274a1e;let _0x5f55ed=H(_0x47119f),_0x29df99=_0x5f55ed?_0x11aa6a[_0x3991d5(0x3de)](_0x5f55ed['unitId'],_0x5f55ed[_0x3991d5(0x44d)],_0x5f55ed['drawingId']):void 0x0;return _0x29df99===void 0x0||(0x0,n[_0x3991d5(0x34c)])(_0x29df99);}));}function ze(_0xe2d2ad){const _0x170570=_0x58257;return{'id':z['id'],'type':t[_0x170570(0x3fc)][_0x170570(0x359)],'icon':'PaintIcon','title':_0x170570(0x24a),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Se,'hoverable':!0x1,'selectable':!0x1}}],'value$':Le(_0xe2d2ad),'hidden$':U(_0xe2d2ad)};}function Be(_0x25cd36){const _0x4585f6=_0x58257;return{'id':se['id'],'type':t[_0x4585f6(0x3fc)]['SELECTOR'],'icon':_0x4585f6(0x347),'title':_0x4585f6(0x15d),'tooltip':_0x4585f6(0x15d),'slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Re(_0x25cd36)};}function Ve(_0x1824f2,_0x4d9144,_0x10dcf9=!0x1){const _0x38c9e8=_0x58257;return _0x302435=>({'id':_0x1824f2,'type':t[_0x38c9e8(0x3fc)][_0x38c9e8(0x363)],'label':{'name':_0x4d9144,'hoverable':!0x1,'selectable':!0x1},'hidden$':U(_0x302435,_0x10dcf9)});}const He=Ve(Ae,Ce),Ue=Ve(je,we),We=Ve(Me,Te,!0x0);function W(_0x39ccd1,_0x390080,_0x4d8917,_0x3f5cd0){const _0x3b74ad=_0x58257;return _0x1c2aad=>({'id':_0x39ccd1,'commandId':p['SetDrawingArrangeCommand']['id'],'type':t[_0x3b74ad(0x3fc)][_0x3b74ad(0x363)],'icon':_0x4d8917,'title':_0x3f5cd0,'tooltip':_0x3f5cd0,'hidden$':U(_0x1c2aad),'params':()=>{const _0x159539=_0x3b74ad;let _0x28a310=H(_0x1c2aad);return _0x28a310?{'unitId':_0x28a310['unitId'],'subUnitId':_0x28a310[_0x159539(0x44d)],'drawingIds':[_0x28a310['drawingId']],'arrangeType':_0x390080}:void 0x0;}});}const Ge=W(Ne,a[_0x58257(0x321)]['forward'],_0x58257(0x366),_0x58257(0x2e3)),Ke=W(Pe,a[_0x58257(0x321)][_0x58257(0x3c9)],_0x58257(0x2d5),_0x58257(0x45f)),qe=W(Fe,a['ArrangeTypeEnum']['front'],_0x58257(0x1c0),_0x58257(0x27e)),Je=W(Ie,a[_0x58257(0x321)]['back'],_0x58257(0x350),_0x58257(0x25f));function Ye(_0x11eb8e){const _0x3fefb1=_0x58257;return{'id':R['id'],'type':t['MenuItemType'][_0x3fefb1(0x363)],'icon':_0x3fefb1(0x2ae),'title':_0x3fefb1(0x43e),'tooltip':'sheets-shape-ui.formatShape','hidden$':U(_0x11eb8e),'params':()=>{const _0x359c53=_0x3fefb1;let _0xe5c704=H(_0x11eb8e);return _0xe5c704?{'unitId':_0xe5c704['unitId'],'subUnitId':_0xe5c704['subUnitId'],'drawingId':_0xe5c704[_0x359c53(0x3d0)]}:void 0x0;}};}const Xe={[t[_0x58257(0x37a)][_0x58257(0x3ea)]]:{[L]:{'order':0x64,'title':_0x58257(0x43e),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze},[se['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Be}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ae]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':He}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[je]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ue}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ge]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':be},[_e]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':xe},[Ne]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ge},[Pe]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ke},[Fe]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':qe},[Ie]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':We}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[R['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ye},[e[_0x58257(0x2c8)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},Ze={[t[_0x58257(0x2c1)][_0x58257(0x2f8)]]:{[N['id']]:{'order':0x4,'menuItemFactory':me}},[t[_0x58257(0x2c1)]['OTHERS']]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':he}},[t[_0x58257(0x1dd)]['DRAWING']]:{[t[_0x58257(0x1c1)]['OTHERS']]:{[ge]:{'order':0x4,'menuItemFactory':be},[_e]:{'order':0x5,'menuItemFactory':xe}}}};var Qe=_0x58257(0x246),$e=_0x58257(0x478);const et={'type':a[_0x58257(0x430)][_0x58257(0x425)],'id':_0x58257(0x3f7),'handler'(){return!0x0;}},tt={};function nt(_0x4c3a5e){const _0x3e1608=_0x58257;return _0x4c3a5e[_0x3e1608(0x240)]()||void 0x0;}function rt(_0x98e4d0,_0x41d360,_0x1c2ef4){const _0x3f9818=_0x58257;var _0x81456e;return((_0x81456e=_0x98e4d0[_0x3f9818(0x465)])==null?void 0x0:_0x81456e['trim']())||(0x0,d['getObjectListPanelTypeName'])(_0x1c2ef4,(0x0,e[_0x3f9818(0x422)])(_0x98e4d0[_0x3f9818(0x2c9)]))+'\x20'+(_0x41d360+0x1);}function it(){const _0x3d02cf=_0x58257;var _0x4a3f3f;let _0x4dce10=(0x0,t[_0x3d02cf(0x2f4)])(a[_0x3d02cf(0x20c)]),_0xc2eba7=(0x0,t[_0x3d02cf(0x2f4)])(a['ICommandService']),_0x3c1fac=(0x0,t['useDependency'])(a[_0x3d02cf(0x32d)]),_0x32bd9d=(0x0,t[_0x3d02cf(0x2f4)])(p['ISheetDrawingService']),_0x1f329f=(0x0,t[_0x3d02cf(0x2f4)])(s['IDrawingManagerService']),_0x911340=(0x0,t[_0x3d02cf(0x2f4)])(c[_0x3d02cf(0x1a2)]),[,_0x518c09]=(0x0,y[_0x3d02cf(0x2b2)])(_0xa6d477=>_0xa6d477+0x1,0x0),_0x76a0ff=_0x3c1fac[_0x3d02cf(0x3b7)](a['UniverInstanceType']['UNIVER_SHEET']),_0x3baec6=(_0x76a0ff==null?void 0x0:_0x76a0ff[_0x3d02cf(0x14b)]())??'',_0x3c61ea=(_0x76a0ff==null||(_0x4a3f3f=_0x76a0ff['getActiveSheet']())==null?void 0x0:_0x4a3f3f['getSheetId']())??'',_0x26bea0=(0x0,t[_0x3d02cf(0x32c)])(()=>_0x1f329f[_0x3d02cf(0x440)],_0x1f329f['getFocusDrawings'](),!0x1,[_0x1f329f]);(0x0,y[_0x3d02cf(0x368)])(()=>{const _0x3b11b4=_0x3d02cf;let _0x3a57a9=_0xc2eba7[_0x3b11b4(0x415)](()=>_0x518c09());return()=>_0x3a57a9[_0x3b11b4(0x307)]();},[_0xc2eba7]);let _0x5acd78=(0x0,y['useMemo'])(()=>(0x0,d[_0x3d02cf(0x477)])(_0x4dce10),[_0x4dce10]),_0x29dd58=_0x3baec6&&_0x3c61ea?_0x32bd9d[_0x3d02cf(0x19d)](_0x3baec6,_0x3c61ea):{},_0x1f9c7c=(_0x3baec6&&_0x3c61ea?_0x32bd9d[_0x3d02cf(0x1a0)](_0x3baec6,_0x3c61ea):[])['map'](_0x1c530b=>_0x29dd58[_0x1c530b])[_0x3d02cf(0x239)](_0x36f2ae=>!!_0x36f2ae)['reverse'](),_0x13200e=_0x1f9c7c[_0x3d02cf(0x341)]((_0x40f574,_0x11dad9)=>(_0x40f574[(0x0,d[_0x3d02cf(0x410)])(_0x11dad9[_0x3d02cf(0x2c9)])]+=0x1,_0x40f574),{'canvas':0x0,'floating':0x0}),_0x4ffd26={'canvas':0x0,'floating':0x0},_0x59b1c7=_0x1f9c7c[_0x3d02cf(0x30d)]((_0x50e340,_0x24f576)=>{const _0x574cd9=_0x3d02cf;let _0xf118c3=(0x0,d[_0x574cd9(0x410)])(_0x50e340['drawingType']),_0x586a94=_0xf118c3===d[_0x574cd9(0x2fb)],_0x50a8e0=_0x4ffd26[_0xf118c3]++;return{'id':_0x50e340['drawingId'],'name':rt(_0x50e340,_0x24f576,_0x4dce10),'description':_0x50e340['description'],'visible':_0x50e340[_0x574cd9(0x2c2)]!==!0x0,'selectable':_0x50e340[_0x574cd9(0x14c)]!==!0x1,'sectionId':_0xf118c3,'sectionTitle':_0x586a94?_0x5acd78[_0x574cd9(0x182)]:_0x5acd78[_0x574cd9(0x387)],'capabilities':_0x586a94?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x586a94&&_0x50a8e0>0x0,'canMoveBackward':!_0x586a94&&_0x50a8e0<_0x13200e[_0x574cd9(0x1b8)]-0x1,'canReorder':!_0x586a94};}),_0x16ceb2=(0x0,y[_0x3d02cf(0x1fc)])(()=>(_0x26bea0??[])[_0x3d02cf(0x239)](_0x9f683b=>_0x9f683b['unitId']===_0x3baec6&&_0x9f683b[_0x3d02cf(0x44d)]===_0x3c61ea)['map'](_0x399278=>_0x399278[_0x3d02cf(0x3d0)]),[_0x26bea0,_0x3c61ea,_0x3baec6]),_0x113263=_0x16ceb2[_0x16ceb2[_0x3d02cf(0x327)]-0x1]??null,_0x482f2f=_0x439df2=>_0x32bd9d[_0x3d02cf(0x463)]({'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingId':_0x439df2})??null,_0x1134e0=async _0x518598=>{const _0x102654=_0x3d02cf;!_0x3baec6||!_0x518598[_0x102654(0x327)]||await _0xc2eba7[_0x102654(0x2db)](p[_0x102654(0x461)]['id'],{'unitId':_0x3baec6,'drawings':_0x518598});},_0x399fa7=async(_0x558d0d,_0x31ee29)=>{_0x482f2f(_0x558d0d)&&await _0x1134e0([{'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingId':_0x558d0d,..._0x31ee29}]);},_0xbbc914=(_0x36db5c,_0x5a3954)=>{const _0x4dbd6a=_0x3d02cf;if(!_0x3baec6||!_0x3c61ea)return;let _0x42bd50=_0x5a3954?_0x16ceb2[_0x4dbd6a(0x1bf)](_0x36db5c)?_0x16ceb2[_0x4dbd6a(0x239)](_0x490367=>_0x490367!==_0x36db5c):[..._0x16ceb2,_0x36db5c]:[_0x36db5c];_0xc2eba7[_0x4dbd6a(0x193)](s['SetDrawingSelectedOperation']['id'],_0x42bd50[_0x4dbd6a(0x30d)](_0x3f2294=>({'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingId':_0x3f2294})));let _0x4cc337=_0x42bd50[_0x42bd50[_0x4dbd6a(0x327)]-0x1];_0x4cc337?(0x0,e[_0x4dbd6a(0x3ab)])(_0x911340,{'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingId':_0x4cc337}):(0x0,e['clearActiveDrawingObjects'])(_0x911340,_0x3baec6);},_0x2de58b=async(_0x3c74b5,_0x5bc4cb)=>{const _0x48fc48=_0x3d02cf;await _0x1134e0(_0x3c74b5[_0x48fc48(0x30d)](_0x35836a=>_0x482f2f(_0x35836a))[_0x48fc48(0x239)](_0x454298=>!!_0x454298)[_0x48fc48(0x239)](_0x5f4c4b=>_0x5f4c4b['hidden']!==!0x0!==_0x5bc4cb)[_0x48fc48(0x30d)](_0x3e7b62=>({'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingId':_0x3e7b62[_0x48fc48(0x3d0)],'hidden':!_0x5bc4cb})));},_0x5c268f=async _0x18a614=>{const _0x2fb08a=_0x3d02cf;let _0x33308c=_0x482f2f(_0x18a614);_0x33308c&&await _0x399fa7(_0x18a614,{'selectable':_0x33308c[_0x2fb08a(0x14c)]===!0x1&&void 0x0});},_0x35e4a4=async(_0x19e08a,_0x57f264)=>{const _0x317753=_0x3d02cf;var _0x5cac4d;let _0x264d76=nt(_0x57f264);(((_0x5cac4d=_0x482f2f(_0x19e08a))==null?void 0x0:_0x5cac4d[_0x317753(0x465)])??void 0x0)!==_0x264d76&&await _0x399fa7(_0x19e08a,{'name':_0x264d76});},_0x4a150d=async(_0x410856,_0x4ecdf0)=>{const _0x5ae42f=_0x3d02cf;var _0x499375;let _0x30b10b=nt(_0x4ecdf0);(((_0x499375=_0x482f2f(_0x410856))==null?void 0x0:_0x499375[_0x5ae42f(0x260)])??void 0x0)!==_0x30b10b&&await _0x399fa7(_0x410856,{'description':_0x30b10b});},_0x28d87c=async(_0x244397,_0x312eb9)=>{const _0x169d85=_0x3d02cf;!_0x3baec6||!_0x3c61ea||await _0xc2eba7[_0x169d85(0x2db)](p[_0x169d85(0x472)]['id'],{'unitId':_0x3baec6,'subUnitId':_0x3c61ea,'drawingIds':[_0x244397],'arrangeType':_0x312eb9});};return!_0x3baec6||!_0x3c61ea?(0x0,f[_0x3d02cf(0x257)])('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5acd78[_0x3d02cf(0x44e)]}):(0x0,f['jsx'])(d['ObjectListPanelBase'],{'items':_0x59b1c7,'selectedIds':_0x16ceb2,'focusedId':_0x113263,'labels':_0x5acd78,'onSelect':_0xbbc914,'onSetVisible':_0x2de58b,'onCommitName':_0x35e4a4,'onCommitDescription':_0x4a150d,'onMoveForward':async _0x5ef5ca=>_0x28d87c(_0x5ef5ca,a['ArrangeTypeEnum'][_0x3d02cf(0x471)]),'onMoveBackward':async _0x46762b=>_0x28d87c(_0x46762b,a[_0x3d02cf(0x321)][_0x3d02cf(0x3c9)]),'onToggleSelectable':_0x5c268f});}let G=class{constructor(_0xc0c761){const _0x52c540=_0x58257;this[_0x52c540(0x1c3)]=_0xc0c761;}[_0x58257(0x36a)](_0x5ac6a1,_0xdc81bc){const _0xd1ddb5=_0x58257;let _0x1a42bb=this[_0xd1ddb5(0x1c3)][_0xd1ddb5(0x221)](_0x5ac6a1[_0xd1ddb5(0x432)]),_0x356813=_0x1a42bb==null?void 0x0:_0x1a42bb[_0xd1ddb5(0x3eb)];if(!_0x356813)return;let _0x3234a8=(0x0,s[_0xd1ddb5(0x389)])(_0x5ac6a1),_0x2a8349=_0x356813['getObjectIncludeInGroup'](_0x3234a8);_0x2a8349==null||_0x2a8349[_0xd1ddb5(0x1dc)](_0xdc81bc);}};G=k([O(0x0,c[_0x58257(0x1a2)])],G);function at(){const _0x45daaa=_0x58257;let _0x40da9f=(0x0,t[_0x45daaa(0x2f4)])(s[_0x45daaa(0x14f)]),_0x3a570a=(0x0,t['useObservable'])(()=>_0x40da9f[_0x45daaa(0x440)],_0x40da9f[_0x45daaa(0x3d2)](),!0x1,[_0x40da9f]);return _0x3a570a[_0x45daaa(0x327)]===0x0?null:(0x0,f[_0x45daaa(0x257)])(_0x45daaa(0x2ec),{'children':(0x0,f[_0x45daaa(0x45e)])(_0x45daaa(0x2ec),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,f[_0x45daaa(0x257)])(d[_0x45daaa(0x38e)],{'drawings':_0x3a570a,'hasCropper':!0x1}),(0x0,f[_0x45daaa(0x257)])(_[_0x45daaa(0x3e0)],{'drawings':_0x3a570a})]})});}function ot(_0xe81d17){const _0x16e60d=_0x58257;let {unitId:_0x2bedf1,subUnitId:_0x16240b,shapeId:_0x4f5067}=_0xe81d17,_0x21c373=(0x0,t[_0x16e60d(0x2f4)])(a[_0x16e60d(0x258)]),_0x57803c=(0x0,t['useDependency'])(G);return(0x0,f[_0x16e60d(0x257)])(e[_0x16e60d(0x31c)],{..._0xe81d17,'positionEditor':(0x0,f[_0x16e60d(0x257)])(at,{}),'onUpdateShapeData':(_0x540fb9,_0x19df80)=>{S(_0x21c373,_0x2bedf1,_0x16240b,_0x4f5067,_0x540fb9,_0x19df80);},'onUpdateLineShapeData':(_0x520f60,_0x1c6651)=>{C(_0x21c373,_0x2bedf1,_0x16240b,_0x4f5067,_0x520f60,_0x1c6651);},'onUpdateShapeFillImage':_0x21137f=>{const _0x5eaf65=_0x16e60d;_0x57803c[_0x5eaf65(0x36a)]({'unitId':_0x2bedf1,'subUnitId':_0x16240b,'drawingId':_0x4f5067},_0x21137f);}});}function st(_0x128ae9){const _0x459034=_0x58257;let _0xaf7356=(0x0,t[_0x459034(0x2f4)])(e['ShapeFloatingToolbarService']),_0x29afb2=(0x0,t[_0x459034(0x32c)])(()=>_0xaf7356[_0x459034(0x2a7)],_0xaf7356[_0x459034(0x2ac)](),!0x1,[_0xaf7356]),_0x20fd5c=_0x128ae9['popup'][_0x459034(0x46c)];return!_0x20fd5c||!_0x29afb2?null:(0x0,f[_0x459034(0x257)])(ct,{..._0x20fd5c,'canvasElement':_0x128ae9[_0x459034(0x152)][_0x459034(0x24f)]});}function ct(_0x45a7ec){const _0x35fa57=_0x58257;let _0x3ab8fb=(0x0,t[_0x35fa57(0x2f4)])(a['ICommandService']),_0x119c51=(0x0,t['useDependency'])(i[_0x35fa57(0x45a)]),{unitId:_0x551a8b,subUnitId:_0x173940,drawingId:_0x4944a9,drawingType:_0x5cbaed,shapeType:_0x5aed4d}=_0x45a7ec,[_0x4db687,_0x5c8792]=(0x0,y[_0x35fa57(0x467)])(_0x45a7ec[_0x35fa57(0x275)]),_0x550352=(0x0,y[_0x35fa57(0x1fc)])(()=>(0x0,e['getTextStyle'])(_0x4db687),[_0x4db687]),_0x1aaf2b=(0x0,y[_0x35fa57(0x1fc)])(()=>(0x0,e[_0x35fa57(0x3c3)])(_0x4db687),[_0x4db687]);(0x0,y[_0x35fa57(0x368)])(()=>{const _0x3bc2dd=_0x35fa57;let _0x495158=_0x3ab8fb[_0x3bc2dd(0x415)](_0x1702c3=>{const _0x477953=_0x3bc2dd;if(_0x1702c3['id']!==i[_0x477953(0x464)]['id'])return;let _0xfdc2e3=_0x119c51['getShapeDataById'](_0x551a8b,_0x173940,_0x4944a9);_0xfdc2e3&&_0x5c8792(_0xfdc2e3);});return()=>_0x495158[_0x3bc2dd(0x307)]();},[_0x3ab8fb,_0x4944a9,_0x119c51,_0x173940,_0x551a8b]);let _0x331aa0=_0x172185=>{_0x5c8792(_0x47b596=>({..._0x47b596,..._0x172185}));},_0x22bc71=_0x6650a5=>{const _0x15b1e1=_0x35fa57;let _0xbccbb3=(0x0,e['buildShapeTextDataUpdate'])(_0x4db687,_0x6650a5);S(_0x3ab8fb,_0x551a8b,_0x173940,_0x4944a9,{'oldShapeData':{'shapeText':_0x4db687[_0x15b1e1(0x26e)]}},_0xbccbb3),_0x331aa0(_0xbccbb3);},_0x2c7dcc=(0x0,e[_0x35fa57(0x2e6)])({'hostType':a[_0x35fa57(0x35a)][_0x35fa57(0x460)],'unitId':_0x551a8b,'subUnitId':_0x173940,'shapeId':_0x4944a9,'shapeData':_0x4db687,'onUpdateBinding':_0xdd334=>{let _0x8cf3f4={'formulaBinding':_0xdd334};S(_0x3ab8fb,_0x551a8b,_0x173940,_0x4944a9,{'oldShapeData':{'formulaBinding':_0x4db687['formulaBinding']}},_0x8cf3f4),_0x331aa0(_0x8cf3f4);}});return(0x0,f['jsxs'])(f[_0x35fa57(0x274)],{'children':[(0x0,f[_0x35fa57(0x257)])(e[_0x35fa57(0x1e7)],{'canvasElement':_0x45a7ec['canvasElement'],'shapeData':_0x4db687,'shapeType':_0x5aed4d,'textStyle':{'ff':n[_0x35fa57(0x2f6)]['shapeText']['fontFamily'],'fs':n[_0x35fa57(0x2f6)]['shapeText'][_0x35fa57(0x41b)],'cl':{'rgb':n[_0x35fa57(0x2f6)][_0x35fa57(0x26e)][_0x35fa57(0x1bd)]},..._0x550352},'textModel':_0x1aaf2b?{'ha':_0x1aaf2b['ha']??a[_0x35fa57(0x1e8)][_0x35fa57(0x1ef)],'va':_0x1aaf2b['va']??a['VerticalAlign'][_0x35fa57(0x289)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x35fa57(0x2f6)][_0x35fa57(0x348)],'defaultGradientEndColor':n[_0x35fa57(0x2f6)]['gradientEndColor'],'defaultStrokeColor':n[_0x35fa57(0x2f6)][_0x35fa57(0x32a)],'extensionGroups':_0x2c7dcc[_0x35fa57(0x1cb)],'onUpdateShapeData':(_0x54478e,_0x3a42d4)=>{S(_0x3ab8fb,_0x551a8b,_0x173940,_0x4944a9,_0x54478e,_0x3a42d4),_0x3a42d4&&_0x331aa0(_0x3a42d4);},'onUpdateText':_0x22bc71,'onOpenPanel':()=>{const _0x4568cd=_0x35fa57;_0x3ab8fb[_0x4568cd(0x2db)](R['id'],{'unitId':_0x551a8b,'subUnitId':_0x173940,'drawingId':_0x4944a9});},'onDelete':()=>{const _0x178d01=_0x35fa57;_0x3ab8fb[_0x178d01(0x2db)](p[_0x178d01(0x1d1)]['id'],{'unitId':_0x551a8b,'drawings':[{'unitId':_0x551a8b,'subUnitId':_0x173940,'drawingId':_0x4944a9,'drawingType':_0x5cbaed}]});}}),_0x2c7dcc['panel']]});}var K=class extends a[_0x58257(0x40f)]{constructor(..._0x2e28fd){const _0x3cbff1=_0x58257;super(..._0x2e28fd),T(this,_0x3cbff1(0x447),new u[(_0x3cbff1(0x198))](null)),T(this,_0x3cbff1(0x245),this['_editingParams$']['asObservable']()),T(this,_0x3cbff1(0x3ff),new u[(_0x3cbff1(0x198))](!0x1)),T(this,_0x3cbff1(0x21d),this[_0x3cbff1(0x3ff)][_0x3cbff1(0x353)]());}['dispose'](){const _0x48e2d8=_0x58257;this[_0x48e2d8(0x447)][_0x48e2d8(0x358)](null),this[_0x48e2d8(0x447)][_0x48e2d8(0x3d5)](),this[_0x48e2d8(0x3ff)][_0x48e2d8(0x358)](!0x1),this[_0x48e2d8(0x3ff)][_0x48e2d8(0x3d5)](),super['dispose']();}[_0x58257(0x21b)](_0x444272){const _0x574b7b=_0x58257;this[_0x574b7b(0x447)][_0x574b7b(0x358)](_0x444272),_0x444272??this[_0x574b7b(0x3ff)]['next'](!0x1);}[_0x58257(0x383)](_0x56ed78){const _0x2b9054=_0x58257;this[_0x2b9054(0x3ff)][_0x2b9054(0x358)](_0x56ed78);}['getEditing'](){const _0x1ebdf2=_0x58257;return this[_0x1ebdf2(0x447)][_0x1ebdf2(0x151)]();}[_0x58257(0x3a3)](_0x32b97b){this['getEditing']()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x14042b=_0x48d4;this[_0x14042b(0x21b)](null);}));}[_0x58257(0x337)](){const _0x1cea7c=_0x58257;this[_0x1cea7c(0x14a)]()&&this[_0x1cea7c(0x21b)](null);}};function _0x188c(){const _0x4166de=['updateConnectionDetection','getObject','getAdjustNames','ToggleShapeFloatingToolbarOperation','drawingType','CROSSHAIR','_drawRichText','resourceCollector','routeConnectorLineShape','_getScrollInfo','resolveActiveShapeQuickStylePresetId','VIEW_MAIN_LEFT_TOP','FormulaShapeAnimationController','save','VerticalAlign','shape-text-','MoveDownIcon','_generateCopyPasteMutations','contentHeight','_update','connector-handler-','_imageShapeClipController','executeCommand','CopySheetCommand','resize','shouldClipShapeTextDocument','FlipVerticalIcon','setSrcRect','_clearShapeAdjustControls','SHEET_VIEWPORT_KEY','shape-editor-ui.arrange.forward','onTransformChange$','_univerInstanceService','useFormulaShapeToolbar','register','_sheetSkeletonService','formulaBinding','ShapeTextEditorContainer','UniverSheetsDrawingPlugin','div','_handleFreeEndpointPointerUp','cos','beginPath','getShapeModel','Image','getViewportByCell','_baseHeight','useDependency','_createShapeAdjustControls','ShapeDefaultConfig','_currentScene','MEDIA','8nRerVy','_injector','OBJECT_LIST_FLOATING_SECTION_ID','_initPrinting','SheetInterceptorService','intercept','_executeConnectedRouteResizeCommand','abs','_adjHandlerPointerUp','vertical-center','discreteRangeToRange','getBatchUpdateOp','src','UniverShapeEditorPlugin','dispose','CUT','_sheetDrawingShapeRenderController','transform','getUnit','Shape','map','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_getSceneAndTransformerByDrawingSearch','UniverDocsPlugin','getShapeQuickStyleType','pick','_releaseRenderCache','activeAnObject','relation','SHAPE','getSkeleton','sheet.shape.floating-toolbar','_updateTransform','getEndConnectInfo','_executeResizeCommand','ShapeEditPanel','_shapeFormulaService','activeSheet$','InsertSheetsShapeMutation','ISheetDrawingService','ArrangeTypeEnum','setShapeProps','_registerComponents','scale','initTransformer','RENDER_CLASS_TYPE','length','toPrimitive','sheets-shape-ui.permission.editErr','stroke','onload','useObservable','IUniverInstanceService','DEFAULT_PASTE','unregister','close','fillImageSource','_updateShapeAdjustControls','getBatchAddOp','getShapeTextRect','flipY','_drawShapeText','cancelEditing','renderDrawingShape','_getDrawingRect','DocumentSkeleton','sheets-shape-ui.config','DRAWING_SHAPE','setPrstGeomAdjValues','_configService','keys','defineProperty','reduce','URL','registerRenderModule','transformForAngle','_initCopyPaste','_setTransForm','ShapeIcon','fill','UpdateLineShapeResizeCommand','UndoRedoGroupService','computeStraightConnectorLayout','isConnectorShape','isLineShape','offsetY','UniverDrawingUIPlugin','BottomIcon','_handleConnectedEndpointMove','stopPropagation','asObservable','initShapePopupMenu','transformByState','index','addImageSourceCache','next','SELECTOR','UniverInstanceType','_draggingConnectorId','getStartConnectInfo','Line','doc','_registerGroupFeaturePasteHook','getRealBound','normal','setPresentation','BUTTON','_loadAndSetImage','addClipboardHook','MoveUpIcon','_baseDrawingRect','useEffect','updateLinePoints','updateShapeFillImage','multiply','_urlImageService','_addShapeAdjustControl','create','adjName','_currentConnectionTarget','getUnitType','applyPoint','data','StraightConnector1','point','_updateAdjustControlPositions','SheetPermissionCheckController','sheets-shape-format-font-family-menu','_getImageDrawingInfo','MenuManagerPosition','EMPTY','subscribeEvent','stringify','prepareShapeTextDocumentData','clipTop','plainShapeTextToDocumentData','isHitLine','7027602UoRfPF','setOnSavingEditorData','sheets-shape-ui.ribbon.shape-format.arrange-back','ShapeArrowTypeEnum','_adjHandlerPointerMove','sectionCanvas','_hasReset','getDrawingShapeKeyByDrawingSearch','_sidebarDisposable','resolveFormulaShapeAutoFitSize','SheetPrintInterceptorService','9132SBvbPz','DrawingCommonPanel','_handleBasicShapeUpdateConnectorLineShape','worldRect','_clearShapeConnectorHandlerObjects','start','sheets-shape-ui','onStarting','function','_sheetsShapeService','drawing.operation.set-drawing-active','_connectionSiteObjects','_initSheetChange','angle','getConnectorLinePoints','_shapeRenderController','getOwnPropertyDescriptor','isRichText','axisAlignSheetTransform','_imageIoService','refreshShapeFillImage','getBentTypeFromPoints','completeEditing','InsertShapeCommand','SheetCanvasPopManagerService','_executeConnectionCommand','UniverDocsUIPlugin','getCanvasElement','toStringTag','_moveConnectorWithShape','activateDrawingObject','permissionCheckWithoutRange','parse','_generateCutPasteMutations','VIEW_MAIN','drawWith','_baseShapeTop','getConnectionSiteList','classType','endConnectionDetection','animateFormulaPresentation','getDrawingVisible','getCurrentUnitOfType','getMatrix','_getConnectPointInfo','undo','_sheetShapeAdjustController','_baseWidth','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','end','rotation','PREDEFINED_HOOK_NAME','_registerIcons','UNIVER_DOC','getTextModel','getDrawingEffectBounds','_groupCopyPasteController','getBasicShapeRelation','sin','deriveStateFromActiveSheet$','backward','isInGroup','setAdjustValueByName','getCurrentRangeDisable$','changeEnd$','startWith','_activeAdjustPointList','drawingId','custom','getFocusDrawings','startArrow','strokeWidth','complete','UniverSheetsShapePlugin','wrapStrategy','render','setCanUseShapeClip','_shapeUpdateListener','_isOpenedShapeEditPanel','some','onRendered','getShapeTypeById','objects','SheetDrawingAnchor','pipe','prstGeom','open','_addControl','getZoomRatio','registerFeaturePasteHook','DocSelectionRenderService','IConfigService','sheets-shape-ui.ribbon.shape-format.formula-control','RIBBON','scene','ShapeFormulaService','498488WZRngu','_isShouldShowDrawingShapeAdjust','1865UQRmGO','_createControls','SetDrawingSelectedOperation','getTransformer','_getZoomRatio','onPointerMove$','sheet.shape.object-list.panel','offsetX','sheet.operation.close-sheet-shape-format-panel','_registerDrawingMoveHandler','oKey','startConnectionDetection','Injector','MenuItemType','_focusedDrawings','getSkeletonParam','_onSavingEditorData$','UniverShapeEditorUIPlugin','getSheetBySheetId','ancestorTransform','_cxnIndex','_lastEditingShapeKey','removeLinePoints','UniverLicensePlugin','_createShapePopupMenu','version','remove$','SheetScrollManagerService','_getOrCreateShapeModel','_registerOperations','enableObjectsEvent','find','Disposable','getObjectListPanelSectionIdForDrawingType','getBasicShapeRotateBound','isEditing','sheetViewStartColumn','COMMAND','onCommandExecuted','shapeType','rect','switchMap','sheet.shape.picker.component','RemoveSheetsShapeMutation','fontSize','_activeShapeAdjustPointList','setFallbackVisible','worldPoint','_sheetPermissionCheckController','with','ShapeTypeEnum','getDrawingTypeNameKey','sheet.operation.open-shape-object-list-panel','_ribbonService','OPERATION','ShapeQuickStyleGallery','interceptCommand','symbol','highlighted','_openShapeEditPanel','_drawSimpleText','applyQuickStyleToShapeData','cloneShapeDataForType','_initPermission','ShapeFillEnum','CommandType','sheets-shape-ui.flipHorizontal','unitId','ShapePickerDropdown','IContextService','currentAdjustValues','sheets-shape-contextual-ribbon','ObjectLayersIcon','update$','cxnPointFill','4JEREAj','clearAdjustControls','getShapeType','_findNearestConnectionSite','sheets-shape-ui.formatShape','ShapeFloatingToolbarService','focus$','getObjectIncludeInGroup','_activeImageId','clearAdjustValue','sheets-shape-ui.objectListPanel.open','_shapeTextEditingService','_addShapeConnectorHandlerObjects','_editingParams$','_componentManager','changing$','setShapeData','top','sheet.shape.edit.panel','subUnitId','title','order','_initCommands','getCurrentSkeleton','_commandExecutedListener','_clearPopups','_highlightedSiteIndex','horizontal','refreshAdjustControls','IRibbonService','SheetsShapeUIMenuSchema','_formulaAnimation','SheetsShapeService','resolveShapeTextEditorWrapStrategy','sheets-shape-ui.ribbon.shape-format','_attachAdjustEvent','jsxs','shape-editor-ui.arrange.backward','UNIVER_SHEET','SetSheetDrawingCommand','_handleConnectorPointerUp','getDrawingByParam','UpdateSheetsShapeDataMutation','name','_initialize','useState','translate','cxnPointStroke','_baseShapeLeft','actualHeight','extraProps','invert','getState','sheets-shape-ui.imagePanel.crop.shape','_currentUniverService','forward','SetDrawingArrangeCommand','getParent','_activeTargetShapeId','_getShapeAdjustInfosById','error','getObjectListPanelLabels','1.0.0-beta.1','packageName','_baseLeft','size','flipX','_cxtHandlerPointerUp','hideContextualTab','ComponentManager','setCollapsedIds','getEditing','getUnitId','selectable','blockExecuteWithoutPermission','sheet.menu.shape.flip-vertical','IDrawingManagerService','_shapes','getValue','popup','updateDocumentDataMargin','_updateImageAdjValues','_registerFocusChangeHandler','_isDrawingShapePointDown','FlipHorizontalIcon','_handleFreeEndpointMove','FromArray','getPresentation','onPointerDown$','_localeService','shape-editor-ui.toolbar.changeShape','_props','_updateSrcRectByTransform','_transformCalculateSrcRect','getAdjustValueByName','cxnPointStrokeWidth','_isHighlighted','mergeMenu','_initEditingParams','CURSOR_TYPE','attachPopupToObject','pushUndoRedo','ImageSourceTypeEnum','INSERT','_getConnectionSiteAngle','createShapeFormulaDocument','_initEvents','WorkbookEditablePermission','_sheetBasicShapeConnectionPointController','GROUP','_initSelection','ISidebarService','entries','Rect','_attachConnectorObjectEvent','_hide','computeConnectorRouteLayout','decorate','getMenuHiddenObservable','_cxtHandlerPointerMove','getSelectedObjectMap','_generatePasteMutations','UniverSheetsDrawingUIPlugin','ShapeLineTypeEnum','startX','dataModel','connection-site-','sectionFloating','Inject','_sheetClipboardService','featurePluginUpdateNotification','_reset','calcAdjValues','getShapeDataById','getDrawingSearch','parent','params','value','_resetState','Observable','focusDrawing','_handleConnectedEndpointPointerUp','lineType','isHighlighted','syncExecuteCommand','_closeShapeEditPanel','_drawingManagerService','_insertingShapeKeys','flatMap','BehaviorSubject','getShapeData','_executeConnectedRouteConnectionCommand','srcRect','left','getDrawingData','createControl$','toDisposable','getDrawingOrder','call','IRenderManagerService','vertical','doc.image-clip.shape-picker.component','onDblclick$','20746210MHjxON','Arrow','Vector2','from','string','getCurrentTypeOfUnit$','refreshFormulaPresentation','beforeCommandExecuted','_shapeEditPanelVersion','type','generateRandomId','_loadShapePictureFill','engine','Module','sheets-shape-ui.shape-format.style-ribbon-control','presentation','_baseTop','onReady','canvas','getDrawingDataForUnit','_shapeService','changeShapeType','sheets-shape-ui.ribbon.shape-format.text-control','color','_clearConnectionSites','includes','TopmostIcon','ContextMenuGroup','RemoveSheetCommand','_renderManagerService','_isConnecting','preValue','REMOVE','UPDATE','isHit','_init','SheetSkeletonService','extensionGroups','ShapeArrowSizeEnum','_drawingRenderService','redo','1995495uxDmRo','forEach','RemoveSheetDrawingCommand','_targetShapeId','cxnPointRadius','_subUnitId','_formulaKey','getSheetCommandTarget','_activeShapeModel','worldPoints','formulaPresentation','height','translateWithPrecision','setFillImage','ContextMenuPosition','shape-adjust-point-','resolveShapeTextDocumentRenderLayout','copyType','targetShapeId','5866974vefJFo','_baseShapeHeight','IURLImageService','ShapeModel','DRAWING_OBJECT_LAYER_INDEX','ShapeFloatingToolbar','HorizontalAlign','setShouldShowAdjust','ang','actions','_drawRichTextLayer','isRenderLinePointsMode','getImage','LEFT','adjHandleStroke','ShapeRenderModeEnum','transformToDrawingPosition','_disposed','_sheetCanvasPopManagerService','getCurrentScrollState','presentationChanged$','_context','ShapeTextRibbonControl','UUID','SheetsSelectionsService','attachRangeWithCoord','useMemo','addObject','indexOf','FOCUSING_SHAPE_TEXT_EDITOR','getAdjustInfoByName','viewportScrollX','interceptor','sheets-shape-ui.ribbon.shape-format.arrange-front','ShapeGroupEnum','endArrow','PictureFill','viewportScrollY','clip','_registerMoveHandler','setContextValue','None','LocaleService','_sheetDrawingService','getImageSourceCache','add$','getDrawingOKey','sheet.command.update-shape-data','sqrt','cxnIndex','has','_draw','_getShapeInfo','lineShapeId','restore','clearControl$','_formulaShapes','setEditing','_clipService','onSavingEditorData$','COPY_TYPE','push','subscribe','getRenderUnitById','visible','SheetShapeTextEditorContainer','SHAPE_TEXT','_isStartConnectorPoint','_sidebarService','startY','DocumentViewModel','onerror','VIEW_MAIN_LEFT','_transform','transformToAxisAlignPosition','clip-','SetDrawingApplyMutation','width','_clearControls','_shapeFloatingToolbarService','sheets-shape-ui.ribbon.shape-format.arrange-backward','animationEnabled','DocSelectionManagerService','text','_config','_sheetPrintInterceptorService','viewBound','filter','presetId','clipByShape','_unitId','resolveShapeContextualRibbonHostMode','getConnectionInfo','getActualSize','trim','_showConnectionSites','_getShapeAdjustPointListById','object','unsubscribe','editingParams$','@univerjs-pro/sheets-shape-ui','SheetSkeletonManagerService','setPrstGeom','_contextService','shape-editor-ui.toolbar.quickStyles','createShapeTextBoxShapeData','_applyFormulaAutoFitSize','_isImagePointerDown','SetShapeDrawingDataCommand','canvasElement','FOCUSING_COMMON_DRAWINGS','_calculateFreeEndpointAngle','refreshTransform','DRAWING_IMAGE','setFormulaPresentation','_activeShapeId','SHEET_SHAPE_UI_PLUGIN','jsx','ICommandService','getTransformerByCreate','getScene','sheetViewStartRow','_commandService','getBatchRemoveOp','image','shape-editor-ui.arrange.back','description','sheet.shape.text.float-menu','_iconManager','showContextualTab','_copyInfo','_activeAdjustInfo','sheets-shape-ui.flipVertical','_disposePopups','Circle','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_addShapeConnectorHandlerObject','ShapeTextFloatToolbar','_visible','_rerouteConnectorLine','shapeText','_drawingType','disposeWithMe','marginTop','updateContext','sheet.menu.shape.flip-horizontal','Fragment','shapeData','isStartConnectorPoint','DrawingTypeEnum','sheets-shape-ui.ribbon.shape-format.style-control','clip-adj-','get','_menuManagerService','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','values','shape-editor-ui.arrange.front','1111432CCxHOx','_isStartAdjusting','set','sheets-shape-ui.shape-format.quick-style-gallery','_drawingAddListener','sheet.image-clip.shape-picker.component','getDrawingPoints','_activeShapeInfo','_createCopyInfoByRange','getShapeTextData','TOP','_registerDrawingFocusChangeHandler','IUndoRedoService','delete','sheetTransform','computeConnectorResizeLayout','disableObjectsEvent','clear','UniverRenderEnginePlugin','ShapeTextFloatMenuRenderControllerBase','prototype','shapeKey','_baseShapeWidth','setCursor','_adjName','skeleton','shouldAllowShapeTextEditorHostSizeShrink','fillType','onPointerUp$','memo','_connectorObjects','localToWorld','DrawingApplyType','calculate','constructor','adjustValues','adjHandleSize','clipHeight','ShapePickerPanel','_initMenu','visible$','_shapeId','_insertShapes','ConnectorCoordinateTransform','getInterceptPoints','getVisible','isHorizontal','ShapeFormatSettingIcon','shapeId','_getImagePrstGeom','IMenuManagerService','useReducer','add','makeDirty','ToggleSheetsShapeFlipCommand','shapeModel','bottom','sheet.command.menu-insert-shape','DocumentDataModel','UpdateConnectorRelationCommand','_initializedShapePopupMenu','changeStart$','setHighlighted','sheets-shape-ui.quickStyles','isCurvedConnectorShape','Transform','RibbonInsertGroup','hidden','sheet.operation.open-sheet-shape-format-panel','disableShapeOption'];_0x188c=function(){return _0x4166de;};return _0x188c();}function lt(_0x59a98f){const _0x401f26=_0x58257;return!!_0x59a98f&&'axisAlignSheetTransform'in _0x59a98f&&_0x401f26(0x28d)in _0x59a98f;}const ut=(0x0,y[_0x58257(0x29c)])(()=>{const _0x287021=_0x58257;let _0x21bdb9=(0x0,t[_0x287021(0x2f4)])(K),_0x3ac817=(0x0,t[_0x287021(0x2f4)])(i[_0x287021(0x45a)]),_0x1295d3=(0x0,t[_0x287021(0x2f4)])(s[_0x287021(0x14f)]),_0x46a76c=(0x0,t['useDependency'])(a[_0x287021(0x258)]),_0x4be948=(0x0,t[_0x287021(0x2f4)])(t[_0x287021(0x34a)]),_0x1c326a=(0x0,t[_0x287021(0x2f4)])(c[_0x287021(0x1a2)]);return(0x0,f[_0x287021(0x257)])(e[_0x287021(0x2ea)],{'adapter':(0x0,y[_0x287021(0x1fc)])(()=>({'getShapeModel':(_0x5371e1,_0x267c61,_0x4467b4)=>_0x3ac817[_0x287021(0x2f0)](_0x5371e1,_0x267c61,_0x4467b4),'getShapeData':(_0x3c2119,_0x3fa2c9,_0xe9d819)=>_0x3ac817[_0x287021(0x188)](_0x3c2119,_0x3fa2c9,_0xe9d819),'getDrawingTransform':(_0x540338,_0x9db620,_0x4a7cd9)=>{const _0x159087=_0x287021;let _0x47a70c=_0x1295d3[_0x159087(0x463)]({'unitId':_0x540338,'subUnitId':_0x9db620,'drawingId':_0x4a7cd9});return _0x47a70c==null?void 0x0:_0x47a70c['transform'];},'updateShapeText':({unitId:_0x27781f,subUnitId:_0x188c89,shapeId:_0x2ad27c,shapeText:_0x295739,oldShapeText:_0x4dbbde,hostSize:_0x4e729f})=>{_0x4be948['run'](_0x27781f,()=>{const _0x3e010d=_0x48d4;var _0x1573cb;let _0x2d8c1e=_0x46a76c[_0x3e010d(0x193)](x['id'],{'unitId':_0x27781f,'subUnitId':_0x188c89,'shapeId':_0x2ad27c,'shapeData':{'shapeText':_0x295739},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x4dbbde}}});if(!_0x2d8c1e||!_0x4e729f)return _0x2d8c1e;let _0x211688=_0x1295d3[_0x3e010d(0x463)]({'unitId':_0x27781f,'subUnitId':_0x188c89,'drawingId':_0x2ad27c}),_0x114a69=_0x211688==null?void 0x0:_0x211688['transform'];if(!lt(_0x211688)||!_0x114a69)return!0x1;let _0x3de198={..._0x114a69,'width':_0x4e729f[_0x3e010d(0x22f)],'height':_0x4e729f[_0x3e010d(0x1da)]},_0x2cc284=(_0x1573cb=_0x1c326a[_0x3e010d(0x221)](_0x27781f))==null||(_0x1573cb=_0x1573cb['with'](l['SheetSkeletonManagerService'])['getSkeletonParam'](_0x188c89))==null?void 0x0:_0x1573cb[_0x3e010d(0x298)];return _0x46a76c[_0x3e010d(0x193)](p[_0x3e010d(0x461)]['id'],{'unitId':_0x27781f,'drawings':[{..._0x211688,'transform':_0x3de198,'sheetTransform':_0x2cc284?(0x0,p[_0x3e010d(0x1f2)])(_0x3de198,_0x2cc284)??_0x211688[_0x3e010d(0x28d)]:_0x211688['sheetTransform'],'axisAlignSheetTransform':_0x2cc284?(0x0,p['transformToAxisAlignPosition'])(_0x3de198,_0x2cc284)??_0x211688[_0x3e010d(0x39f)]:_0x211688['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x1c6b8c,subUnitId:_0x235d79,shapeId:_0x589545,width:_0x4a8640,height:_0x318b47})=>{const _0x158971=_0x287021;var _0xf640e;let _0x46c59f=_0x1295d3[_0x158971(0x463)]({'unitId':_0x1c6b8c,'subUnitId':_0x235d79,'drawingId':_0x589545}),_0x14bb25=_0x46c59f==null?void 0x0:_0x46c59f['transform'];if(!lt(_0x46c59f)||!_0x14bb25)return;let _0x9bc834={..._0x14bb25,'width':_0x4a8640,'height':_0x318b47},_0x270b41=(_0xf640e=_0x1c326a[_0x158971(0x221)](_0x1c6b8c))==null||(_0xf640e=_0xf640e['with'](l[_0x158971(0x247)])[_0x158971(0x3fe)](_0x235d79))==null?void 0x0:_0xf640e[_0x158971(0x298)],_0x2a01a1=_0x270b41?(0x0,p[_0x158971(0x1f2)])(_0x9bc834,_0x270b41)??_0x46c59f[_0x158971(0x28d)]:_0x46c59f['sheetTransform'],_0x1d6542=_0x270b41?(0x0,p[_0x158971(0x22c)])(_0x9bc834,_0x270b41)??_0x46c59f[_0x158971(0x39f)]:_0x46c59f['axisAlignSheetTransform'];_0x46a76c[_0x158971(0x2db)](p[_0x158971(0x461)]['id'],{'unitId':_0x1c6b8c,'drawings':[{..._0x46c59f,'transform':_0x9bc834,'sheetTransform':_0x2a01a1,'axisAlignSheetTransform':_0x1d6542}]});},'allowHostSizeShrink':({unitId:_0x2a3de0,subUnitId:_0x443922,shapeId:_0x8f9cd})=>(0x0,e[_0x287021(0x299)])(_0x3ac817[_0x287021(0x188)](_0x2a3de0,_0x443922,_0x8f9cd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x46a76c,_0x1295d3,_0x1c326a,_0x3ac817,_0x4be948]),'editingService':_0x21bdb9,'editorUnitId':re,'positionOptions':(0x0,y['useMemo'])(()=>({'viewportKeys':{'main':c[_0x287021(0x2e2)][_0x287021(0x3af)],'leftTop':c[_0x287021(0x2e2)][_0x287021(0x2d0)],'top':c['SHEET_VIEWPORT_KEY']['VIEW_MAIN_TOP'],'left':c[_0x287021(0x2e2)][_0x287021(0x22a)]},'getSkeleton':(_0x357748,_0x1ce0be)=>{const _0x4dcc09=_0x287021;var _0x5335cd;return((_0x5335cd=_0x357748[_0x4dcc09(0x420)](l[_0x4dcc09(0x247)])[_0x4dcc09(0x3fe)](_0x1ce0be[_0x4dcc09(0x44d)]))==null?void 0x0:_0x5335cd[_0x4dcc09(0x298)])??null;}}),[])});});let q=class extends a['Disposable']{constructor(_0x5d5984,_0x40a691){const _0x2e3a66=_0x58257;super(),this[_0x2e3a66(0x448)]=_0x5d5984,this[_0x2e3a66(0x262)]=_0x40a691,this[_0x2e3a66(0x3c1)](),this[_0x2e3a66(0x323)]();}['_registerIcons'](){const _0x2e406c=_0x58257;this['_iconManager'][_0x2e406c(0x214)]('ObjectLayersIcon')||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)][_0x2e406c(0x2e7)]({'ObjectLayersIcon':v[_0x2e406c(0x437)]})),this[_0x2e406c(0x262)]['has'](_0x2e406c(0x157))||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)][_0x2e406c(0x2e7)]({'FlipHorizontalIcon':v[_0x2e406c(0x157)]})),this[_0x2e406c(0x262)][_0x2e406c(0x214)]('FlipVerticalIcon')||this['disposeWithMe'](this[_0x2e406c(0x262)][_0x2e406c(0x2e7)]({'FlipVerticalIcon':v['FlipVerticalIcon']})),this[_0x2e406c(0x262)][_0x2e406c(0x214)]('BottomIcon')||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)][_0x2e406c(0x2e7)]({'BottomIcon':v[_0x2e406c(0x350)]})),this[_0x2e406c(0x262)][_0x2e406c(0x214)](_0x2e406c(0x2d5))||this['disposeWithMe'](this['_iconManager'][_0x2e406c(0x2e7)]({'MoveDownIcon':v[_0x2e406c(0x2d5)]})),this[_0x2e406c(0x262)][_0x2e406c(0x214)](_0x2e406c(0x366))||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)]['register']({'MoveUpIcon':v[_0x2e406c(0x366)]})),this[_0x2e406c(0x262)][_0x2e406c(0x214)](_0x2e406c(0x2ae))||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)][_0x2e406c(0x2e7)]({'ShapeFormatSettingIcon':v['ShapeFormatSettingIcon']})),this['_iconManager'][_0x2e406c(0x214)]('TopmostIcon')||this[_0x2e406c(0x270)](this[_0x2e406c(0x262)]['register']({'TopmostIcon':v[_0x2e406c(0x1c0)]}));}[_0x58257(0x323)](){const _0x4b61ea=_0x58257;this[_0x4b61ea(0x270)](this['_componentManager']['register'](P,ot)),this['disposeWithMe'](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](F,it)),this[_0x4b61ea(0x270)](this['_componentManager'][_0x4b61ea(0x2e7)](ce,pe)),this[_0x4b61ea(0x270)](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](le,de)),this[_0x4b61ea(0x448)][_0x4b61ea(0x27a)](d[_0x4b61ea(0x269)])||this['disposeWithMe'](this['_componentManager'][_0x4b61ea(0x2e7)](d[_0x4b61ea(0x269)],fe)),this[_0x4b61ea(0x270)](this['_componentManager']['register'](I,st)),this[_0x4b61ea(0x270)](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](Ce,Ee)),this[_0x4b61ea(0x270)](this[_0x4b61ea(0x448)]['register'](Se,De)),this['disposeWithMe'](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](we,Oe)),this[_0x4b61ea(0x270)](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](Te,ke)),this[_0x4b61ea(0x270)](this[_0x4b61ea(0x448)][_0x4b61ea(0x2e7)](ie,e[_0x4b61ea(0x26b)])),this['disposeWithMe'](this[_0x4b61ea(0x448)]['register'](_0x4b61ea(0x223),ut));}};q=k([O(0x0,(0x0,a[_0x58257(0x183)])(t[_0x58257(0x148)])),O(0x1,(0x0,a[_0x58257(0x183)])(t['IconManager']))],q);let dt=class extends a[_0x58257(0x40f)]{constructor(_0x5ec6c6,_0x12ed86,_0xf0337d,_0x37d186,_0x207390){const _0x29fb78=_0x58257;super(),this[_0x29fb78(0x1f7)]=_0x5ec6c6,this[_0x29fb78(0x195)]=_0x12ed86,this['_renderManagerService']=_0xf0337d,this[_0x29fb78(0x2e5)]=_0x37d186,this[_0x29fb78(0x2da)]=_0x207390,T(this,_0x29fb78(0x442),null),T(this,'_unitId',null),T(this,_0x29fb78(0x1d4),null),T(this,_0x29fb78(0x3cf),void 0x0),T(this,_0x29fb78(0x150),[]),T(this,'_baseLeft',0x0),T(this,_0x29fb78(0x1b6),0x0),T(this,_0x29fb78(0x3bc),0x0),T(this,'_baseHeight',0x0),T(this,'_isStartAdjusting',!0x1),T(this,_0x29fb78(0x265),void 0x0),T(this,'_activeShapeModel',void 0x0),T(this,'_adjHandlerPointerMove',void 0x0),T(this,_0x29fb78(0x301),void 0x0),T(this,_0x29fb78(0x24d),!0x1),this[_0x29fb78(0x155)](),this[_0x29fb78(0x209)]();}[_0x58257(0x43b)](){const _0x1b593d=_0x58257;this[_0x1b593d(0x230)]();}[_0x58257(0x456)](){const _0x573dd2=_0x58257;this['_clearControls'](),this[_0x573dd2(0x3f0)](!0x0);}['_getOrCreateShapeModel'](_0x3c3574,_0x376622,_0x26ba74,_0x49ad17){const _0x35d516=_0x58257;let _0x5b4017=_0x3c3574;if(_0x5b4017!==n[_0x35d516(0x421)][_0x35d516(0x20b)]&&_0x3c3574!==_0x35d516(0x3d1))try{let _0x37cb2f=new n[(_0x35d516(0x1e5))](_0x5b4017,_0x35d516(0x279)+_0x3c3574);return _0x49ad17&&_0x37cb2f[_0x35d516(0x44a)]({'adjustValues':_0x49ad17},!0x0),_0x37cb2f[_0x35d516(0x272)]({'width':_0x376622,'height':_0x26ba74}),_0x37cb2f;}catch{return;}}[_0x58257(0x379)](_0x343a92,_0x5f2831,_0x3c8079){const _0x3f5ace=_0x58257;let _0x13fbab={'unitId':_0x343a92,'subUnitId':_0x5f2831,'drawingId':_0x3c8079},_0x765cc8=this[_0x3f5ace(0x195)][_0x3f5ace(0x463)](_0x13fbab);if(!(!_0x765cc8||_0x765cc8['drawingType']!==a[_0x3f5ace(0x277)][_0x3f5ace(0x253)]))return _0x765cc8;}[_0x58257(0x2b0)](_0x11755b,_0x362eb9,_0x3718cd){const _0x2ea99f=_0x58257;let _0x16e72b=this[_0x2ea99f(0x1c3)][_0x2ea99f(0x221)](_0x11755b);if(!_0x16e72b)return;let {scene:_0x43a0a2}=_0x16e72b,_0x400c4d=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x11755b,'subUnitId':_0x362eb9,'drawingId':_0x3718cd}),_0x20a68a=_0x43a0a2[_0x2ea99f(0x2c6)](_0x400c4d);if(_0x20a68a instanceof c[_0x2ea99f(0x2f1)]){let _0x107245=_0x20a68a['prstGeom'];if(_0x107245)return{'prstGeom':_0x107245,'adjustValues':_0x20a68a['prstGeomAdjValues']};}}['_createControls'](_0x243f07=!0x1){const _0x443d0f=_0x58257;if(!this[_0x443d0f(0x23c)]||!this[_0x443d0f(0x1d4)]||!this['_activeImageId'])return;let _0x4782d8=this['_renderManagerService'][_0x443d0f(0x221)](this['_unitId']);if(!_0x4782d8||!_0x4782d8[_0x443d0f(0x420)](l[_0x443d0f(0x247)])[_0x443d0f(0x451)]())return;let {scene:_0x2a7a53}=_0x4782d8,_0xdcb644=this[_0x443d0f(0x379)](this['_unitId'],this[_0x443d0f(0x1d4)],this[_0x443d0f(0x442)]);if(!_0xdcb644)return;let {transform:_0x5964b8}=_0xdcb644;if(!_0x5964b8)return;let {left:_0x58f985,top:_0x4993ad,width:_0x3504bc,height:_0x3e1a42,flipX:_0x11cb8e,flipY:_0x4fdb64,angle:_0x23c827=0x0}=_0x5964b8;if(_0x58f985===void 0x0||_0x4993ad===void 0x0)return;let _0x16ef6e=this[_0x443d0f(0x2b0)](this[_0x443d0f(0x23c)],this[_0x443d0f(0x1d4)],this[_0x443d0f(0x442)]);if(!_0x16ef6e)return;if(_0x243f07){let _0xc7dc80=this['_getOrCreateShapeModel'](_0x16ef6e['prstGeom'],_0x3504bc||0x0,_0x3e1a42||0x0,_0x16ef6e[_0x443d0f(0x2a2)]);if(!_0xc7dc80)return;this[_0x443d0f(0x3cf)]=_0xc7dc80[_0x443d0f(0x285)]();}let _0x299f3a=this[_0x443d0f(0x3cf)];if(!(!_0x299f3a||_0x299f3a[_0x443d0f(0x327)]===0x0))for(let _0x3e56a7=0x0;_0x3e56a7<_0x299f3a[_0x443d0f(0x327)];_0x3e56a7++){let _0x2fba6f=_0x299f3a[_0x3e56a7],_0x40979b=_0x2fba6f['x'],_0x24d943=_0x2fba6f['y'];if(_0x11cb8e&&(_0x40979b=(_0x3504bc||0x0)-_0x40979b),_0x4fdb64&&(_0x24d943=(_0x3e1a42||0x0)-_0x24d943),_0x23c827!==0x0){let _0x3fb102=(_0x3504bc||0x0)/0x2,_0xd71dd9=(_0x3e1a42||0x0)/0x2,_0x50f88a=_0x23c827*Math['PI']/0xb4,_0xe6eada=Math[_0x443d0f(0x2ee)](_0x50f88a),_0x10445b=Math[_0x443d0f(0x3c7)](_0x50f88a),_0x923f3e=_0x40979b-_0x3fb102,_0x57a550=_0x24d943-_0xd71dd9;_0x40979b=_0x3fb102+(_0x923f3e*_0xe6eada-_0x57a550*_0x10445b),_0x24d943=_0xd71dd9+(_0x923f3e*_0x10445b+_0x57a550*_0xe6eada);}let _0x3aedfc={'x':_0x40979b,'y':_0x24d943,'adjName':_0x2fba6f['adjName']};this[_0x443d0f(0x3e4)](_0x2a7a53,_0x3aedfc,_0x3aedfc[_0x443d0f(0x36f)],_0x58f985,_0x4993ad,this[_0x443d0f(0x23c)],this[_0x443d0f(0x1d4)]);}}[_0x58257(0x3e4)](_0x1e89a2,_0x599aa8,_0x2c48d3,_0x3c3bb1,_0x17642e,_0x5a0a44,_0x50c321){const _0x283ecb=_0x58257;if(!this[_0x283ecb(0x442)])return;let _0x3b4dfb='image-clip-adjust-point-'+this[_0x283ecb(0x442)]+'-'+_0x2c48d3,_0x3b5049=_0x1e89a2[_0x283ecb(0x441)](_0x3b4dfb);if(_0x3b5049){_0x3b5049[_0x283ecb(0x355)]({'left':_0x599aa8['x']+_0x3c3bb1-n[_0x283ecb(0x2f6)][_0x283ecb(0x2a3)],'top':_0x599aa8['y']+_0x17642e-n[_0x283ecb(0x2f6)][_0x283ecb(0x2a3)]});return;}let _0x539011=new D(_0x3b4dfb,{'left':_0x599aa8['x']+_0x3c3bb1-n[_0x283ecb(0x2f6)]['adjHandleSize'],'top':_0x599aa8['y']+_0x17642e-n[_0x283ecb(0x2f6)][_0x283ecb(0x2a3)],'adjName':_0x2c48d3,'shapeId':this[_0x283ecb(0x442)],'unitId':_0x5a0a44,'subUnitId':_0x50c321,'width':n[_0x283ecb(0x2f6)][_0x283ecb(0x2a3)]+0x8,'height':n['ShapeDefaultConfig'][_0x283ecb(0x2a3)]+0x8,'zIndex':c[_0x283ecb(0x1e6)]+0x1,'evented':!0x0});this[_0x283ecb(0x150)]['push'](_0x539011),this[_0x283ecb(0x45d)](_0x539011,_0x1e89a2,_0x2c48d3),_0x1e89a2[_0x283ecb(0x1fd)](_0x539011,c[_0x283ecb(0x1e6)]+0x1);}[_0x58257(0x230)](){const _0x2952dc=_0x58257;this[_0x2952dc(0x150)][_0x2952dc(0x327)]!==0x0&&(this[_0x2952dc(0x150)][_0x2952dc(0x1d0)](_0x140faf=>_0x140faf[_0x2952dc(0x307)]()),this['_shapes']=[]);}[_0x58257(0x2ce)](_0x18dc32,_0xe0d768){const _0x53aa2d=_0x58257;var _0x2b0be;let _0x5802cd={'x':0x0,'y':0x0},_0x5a64d4=this['_renderManagerService'][_0x53aa2d(0x221)](_0x18dc32);if(!_0x5a64d4||!_0x5a64d4[_0x53aa2d(0x420)](l['SheetSkeletonManagerService'])[_0x53aa2d(0x317)](_0xe0d768))return _0x5802cd;let _0x4b0888=_0x5a64d4[_0x53aa2d(0x420)](l[_0x53aa2d(0x40a)]),_0x5601e4=_0x4b0888==null?void 0x0:_0x4b0888['getCurrentScrollState']();if(!_0x5601e4)return _0x5802cd;let _0x68587c=(_0x2b0be=this[_0x53aa2d(0x2e5)][_0x53aa2d(0x30b)](_0x18dc32))==null?void 0x0:_0x2b0be[_0x53aa2d(0x401)](_0xe0d768);if(!_0x68587c)return _0x5802cd;let _0x1eb87f=(0x0,l[_0x53aa2d(0x2f2)])(_0x5601e4[_0x53aa2d(0x25b)],_0x5601e4['sheetViewStartColumn'],_0x5a64d4[_0x53aa2d(0x3eb)],_0x68587c);return _0x1eb87f?{'x':_0x1eb87f[_0x53aa2d(0x201)],'y':_0x1eb87f[_0x53aa2d(0x207)]}:_0x5802cd;}[_0x58257(0x3f3)](_0x210ed9,_0x5b214f){const _0x6cca60=_0x58257;var _0x2b07e6;let _0x50cad0=(_0x2b07e6=this['_univerInstanceService'][_0x6cca60(0x30b)](_0x210ed9))==null?void 0x0:_0x2b07e6[_0x6cca60(0x401)](_0x5b214f);return(_0x50cad0==null?void 0x0:_0x50cad0[_0x6cca60(0x3e5)]())??0x1;}[_0x58257(0x45d)](_0x3d5bbe,_0x1eefe6,_0x191b6d){const _0x2af71a=_0x58257;this[_0x2af71a(0x270)]((0x0,a[_0x2af71a(0x19f)])(_0x3d5bbe[_0x2af71a(0x15b)][_0x2af71a(0x37c)]((_0x45dec7,_0x42d44a)=>{const _0x42c7aa=_0x2af71a;var _0x5a856f,_0x38b119,_0x357ecf;let {unitId:_0x46c605,subUnitId:_0x13cb8e,drawingId:_0x198f44}=_0x3d5bbe[_0x42c7aa(0x189)](),_0x1144f2=this[_0x42c7aa(0x379)](_0x46c605,_0x13cb8e,_0x198f44);if(!(_0x1144f2!=null&&_0x1144f2['transform']))return;let {left:_0x472676,top:_0x40b8fa,width:_0xa0044c,height:_0xc107c}=_0x1144f2[_0x42c7aa(0x30a)];this[_0x42c7aa(0x47a)]=_0x472676||0x0,this[_0x42c7aa(0x1b6)]=_0x40b8fa||0x0,this['_baseWidth']=_0xa0044c||0x0,this['_baseHeight']=_0xc107c||0x0;let _0x2d4fe0=!!((_0x5a856f=_0x1144f2['transform'])!=null&&_0x5a856f[_0x42c7aa(0x47c)]),_0x556517=!!((_0x38b119=_0x1144f2['transform'])!=null&&_0x38b119[_0x42c7aa(0x335)]),_0x59581c=((_0x357ecf=_0x1144f2[_0x42c7aa(0x30a)])==null?void 0x0:_0x357ecf[_0x42c7aa(0x39a)])||0x0,_0x3e53cf=this[_0x42c7aa(0x2b0)](_0x46c605,_0x13cb8e,_0x198f44);if(!_0x3e53cf)return;let _0x2efe75=this[_0x42c7aa(0x40b)](_0x3e53cf['prstGeom'],this[_0x42c7aa(0x3bc)],this[_0x42c7aa(0x2f3)],_0x3e53cf[_0x42c7aa(0x2a2)]);if(!_0x2efe75||(this['_activeShapeModel']=_0x2efe75,this[_0x42c7aa(0x265)]=_0x2efe75['getAdjustInfoByName'](_0x191b6d),!this['_activeAdjustInfo']))return;this[_0x42c7aa(0x280)]=!0x0,_0x1eefe6[_0x42c7aa(0x28f)]();let _0x2196bb=_0x3e53cf[_0x42c7aa(0x3e2)];this[_0x42c7aa(0x386)]=_0x1eefe6[_0x42c7aa(0x3f4)][_0x42c7aa(0x37c)]((_0x114277,_0x3447b7)=>{const _0x613240=_0x42c7aa;if(!this[_0x613240(0x280)])return;let {offsetX:_0x1c4393,offsetY:_0x690647}=_0x114277,_0x586988=this[_0x613240(0x265)];if(!this[_0x613240(0x1d7)]||!_0x586988)return;_0x1eefe6[_0x613240(0x28f)](),_0x1eefe6['setCursor'](c[_0x613240(0x166)][_0x613240(0x2ca)]);let _0x308c00={'left':0x0,'top':0x0,'width':this[_0x613240(0x3bc)],'height':this[_0x613240(0x2f3)]},_0x366627=this[_0x613240(0x2ce)](_0x46c605,_0x13cb8e),_0x5f04b3=this[_0x613240(0x3f3)](_0x46c605,_0x13cb8e),_0x144ed3=_0x1c4393/_0x5f04b3+_0x366627['x']-this[_0x613240(0x47a)],_0x23ffcf=_0x690647/_0x5f04b3+_0x366627['y']-this[_0x613240(0x1b6)];if(_0x59581c!==0x0){let _0xeab159=this[_0x613240(0x3bc)]/0x2,_0x2de465=this[_0x613240(0x2f3)]/0x2,_0x47de9e=_0x59581c*Math['PI']/0xb4,_0x4140ba=Math[_0x613240(0x2ee)](_0x47de9e),_0x1977c8=Math[_0x613240(0x3c7)](_0x47de9e),_0x593031=_0x144ed3-_0xeab159,_0x372cc5=_0x23ffcf-_0x2de465;_0x144ed3=_0xeab159+(_0x593031*_0x4140ba+_0x372cc5*_0x1977c8),_0x23ffcf=_0x2de465+(-_0x593031*_0x1977c8+_0x372cc5*_0x4140ba);}_0x2d4fe0&&(_0x144ed3=this[_0x613240(0x3bc)]-_0x144ed3),_0x556517&&(_0x23ffcf=this[_0x613240(0x2f3)]-_0x23ffcf);let _0x9b9cb8=this['_activeShapeModel'][_0x613240(0x187)](_0x308c00,{'x':_0x144ed3,'y':_0x23ffcf},_0x586988,_0x2d4fe0,_0x556517);if(Object[_0x613240(0x33f)](_0x9b9cb8)['length']!==0x0){for(let [_0x3108d4,_0x434c3d]of Object[_0x613240(0x173)](_0x9b9cb8))this[_0x613240(0x1d7)]['setAdjustValueByName'](_0x3108d4,_0x434c3d);this['_activeShapeModel'][_0x613240(0x272)]({'width':this[_0x613240(0x3bc)],'height':this[_0x613240(0x2f3)]}),this[_0x613240(0x154)](_0x46c605,_0x13cb8e,_0x198f44,_0x9b9cb8),this[_0x613240(0x3cf)]=this[_0x613240(0x1d7)][_0x613240(0x285)](),this[_0x613240(0x3f0)](),_0x3447b7[_0x613240(0x352)]();}}),this[_0x42c7aa(0x301)]=_0x1eefe6[_0x42c7aa(0x29b)][_0x42c7aa(0x37c)]((_0x1d0009,_0x168ec9)=>{const _0x26b2c0=_0x42c7aa;if(this[_0x26b2c0(0x386)][_0x26b2c0(0x244)](),this[_0x26b2c0(0x301)][_0x26b2c0(0x244)](),_0x1eefe6['resetCursor'](),this[_0x26b2c0(0x1d7)]){let _0x41cf67=this[_0x26b2c0(0x1d7)][_0x26b2c0(0x2c7)](),_0x2fb540={};for(let _0x46aabb of _0x41cf67){let _0x4a45bb=this[_0x26b2c0(0x1d7)][_0x26b2c0(0x161)](_0x46aabb);_0x4a45bb!==void 0x0&&(_0x2fb540[_0x46aabb]=_0x4a45bb);}this[_0x26b2c0(0x2da)][_0x26b2c0(0x23b)](_0x46c605,_0x13cb8e,_0x198f44,_0x2196bb,_0x2fb540);}this[_0x26b2c0(0x265)]=void 0x0,this[_0x26b2c0(0x1d7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x168ec9[_0x26b2c0(0x352)](),_0x1eefe6[_0x26b2c0(0x40d)]();}),_0x42d44a[_0x42c7aa(0x352)]();})));}[_0x58257(0x154)](_0x1d61b2,_0x54ef5e,_0x11542f,_0x80f2dd){const _0xab1a95=_0x58257;let _0x487836=this[_0xab1a95(0x1c3)][_0xab1a95(0x221)](_0x1d61b2);if(!_0x487836)return;let {scene:_0x292e1c}=_0x487836,_0x36391b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1d61b2,'subUnitId':_0x54ef5e,'drawingId':_0x11542f}),_0x24e426=_0x292e1c[_0xab1a95(0x2c6)](_0x36391b);if(_0x24e426 instanceof c['Image']){let _0x52b57a=_0x24e426['prstGeomAdjValues']??{};_0x24e426[_0xab1a95(0x33d)]({..._0x52b57a,..._0x80f2dd}),_0x24e426[_0xab1a95(0x2b4)](!0x0);}}['_registerMoveHandler'](){const _0x1d1415=_0x58257;let _0x44d4f4=this['_univerInstanceService'][_0x1d1415(0x1ab)](a[_0x1d1415(0x35a)]['UNIVER_SHEET']);this['disposeWithMe'](_0x44d4f4[_0x1d1415(0x3e1)]((0x0,u['switchMap'])(_0x35cb51=>_0x35cb51?_0x35cb51['activeSheet$'][_0x1d1415(0x3e1)]((0x0,u['switchMap'])(_0x2a87aa=>{const _0x3dd755=_0x1d1415;if(!_0x2a87aa)return u[_0x3dd755(0x37b)];let _0x495755=_0x35cb51[_0x3dd755(0x14b)](),_0x5db1c9=this[_0x3dd755(0x1c3)][_0x3dd755(0x221)](_0x495755),_0x5808b8=_0x5db1c9==null?void 0x0:_0x5db1c9[_0x3dd755(0x3eb)];return _0x5808b8?(0x0,u['of'])(_0x5808b8):u[_0x3dd755(0x37b)];})):u[_0x1d1415(0x37b)]))[_0x1d1415(0x220)](_0x40a6b3=>{const _0x5b8035=_0x1d1415;let _0x19c32a=_0x40a6b3['getTransformerByCreate']();this[_0x5b8035(0x270)](_0x40a6b3[_0x5b8035(0x3f4)]['subscribeEvent'](()=>{const _0x5820e9=_0x5b8035;this[_0x5820e9(0x24d)]&&this['_clearControls']();})),this[_0x5b8035(0x270)](_0x19c32a[_0x5b8035(0x2bc)][_0x5b8035(0x220)](_0x13020e=>{const _0x229b16=_0x5b8035;let {objects:_0x534908}=_0x13020e;if(this[_0x229b16(0x3f0)](),_0x534908!==null&&_0x534908[_0x229b16(0x47b)]===0x1){let _0x40a777=_0x534908[_0x229b16(0x27d)]()['next']()[_0x229b16(0x18c)];_0x40a777 instanceof c[_0x229b16(0x2f1)]&&_0x40a777['prstGeom']&&(this['_isImagePointerDown']=!0x0);}})),this[_0x5b8035(0x270)](_0x19c32a[_0x5b8035(0x449)][_0x5b8035(0x220)](()=>{const _0x40d862=_0x5b8035;this[_0x40d862(0x24d)]&&this[_0x40d862(0x230)]();})),this['disposeWithMe'](_0x40a6b3['onPointerUp$'][_0x5b8035(0x37c)](()=>{const _0xd283fc=_0x5b8035;this['_isImagePointerDown']&&(this[_0xd283fc(0x24d)]=!0x1,this[_0xd283fc(0x3f0)]());})),this['disposeWithMe'](_0x19c32a[_0x5b8035(0x3cd)][_0x5b8035(0x220)](()=>{const _0x2af567=_0x5b8035;if(this[_0x2af567(0x23c)]&&this[_0x2af567(0x1d4)]&&this[_0x2af567(0x442)]){let _0x183fe8=this[_0x2af567(0x2b0)](this[_0x2af567(0x23c)],this[_0x2af567(0x1d4)],this[_0x2af567(0x442)]);if(_0x183fe8){var _0x13627f,_0x4cdad4;let _0x523de0=this[_0x2af567(0x379)](this[_0x2af567(0x23c)],this[_0x2af567(0x1d4)],this['_activeImageId']),_0x3c874c=(_0x523de0==null||(_0x13627f=_0x523de0[_0x2af567(0x30a)])==null?void 0x0:_0x13627f['width'])||0x0,_0x459a3a=(_0x523de0==null||(_0x4cdad4=_0x523de0['transform'])==null?void 0x0:_0x4cdad4[_0x2af567(0x1da)])||0x0,_0x504742=this[_0x2af567(0x40b)](_0x183fe8['prstGeom'],_0x3c874c,_0x459a3a,_0x183fe8[_0x2af567(0x2a2)]);_0x504742&&(this['_activeAdjustPointList']=_0x504742[_0x2af567(0x285)](),this[_0x2af567(0x230)](),this['_createControls'](!0x0));}}}));}));}[_0x58257(0x155)](){const _0x16656b=_0x58257;this['disposeWithMe'](this['_drawingManagerService'][_0x16656b(0x440)][_0x16656b(0x220)](_0x3b3bd3=>{const _0x5c2db5=_0x16656b;if(_0x3b3bd3['length']===0x1){let _0x4055a8=_0x3b3bd3[0x0];if(_0x4055a8[_0x5c2db5(0x2c9)]===a[_0x5c2db5(0x277)][_0x5c2db5(0x253)]){let {unitId:_0x28aced,subUnitId:_0x342942,drawingId:_0x6c42ab}=_0x4055a8,_0x3e8d9c=this[_0x5c2db5(0x2b0)](_0x28aced,_0x342942,_0x6c42ab);if(_0x3e8d9c){var _0x344ca7,_0x1f5951;this[_0x5c2db5(0x442)]=_0x6c42ab,this['_unitId']=_0x28aced,this[_0x5c2db5(0x1d4)]=_0x342942;let _0x1fe5f1=this[_0x5c2db5(0x379)](_0x28aced,_0x342942,_0x6c42ab),_0x47bb07=(_0x1fe5f1==null||(_0x344ca7=_0x1fe5f1['transform'])==null?void 0x0:_0x344ca7['width'])||0x0,_0x3319d9=(_0x1fe5f1==null||(_0x1f5951=_0x1fe5f1['transform'])==null?void 0x0:_0x1f5951['height'])||0x0,_0x3d9131=this[_0x5c2db5(0x40b)](_0x3e8d9c[_0x5c2db5(0x3e2)],_0x47bb07,_0x3319d9,_0x3e8d9c[_0x5c2db5(0x2a2)]);_0x3d9131&&(this[_0x5c2db5(0x3cf)]=_0x3d9131['getDrawingPoints']()),this[_0x5c2db5(0x230)](),this['_createControls'](!0x0);}else this[_0x5c2db5(0x18d)]();}else this[_0x5c2db5(0x18d)]();}else this[_0x5c2db5(0x18d)]();})),this[_0x16656b(0x270)](this[_0x16656b(0x195)][_0x16656b(0x438)][_0x16656b(0x220)](_0x507fcc=>{const _0x112211=_0x16656b;if(_0x507fcc[_0x112211(0x327)]===0x1){let _0x36226b=_0x507fcc[0x0],_0x324854=this[_0x112211(0x195)][_0x112211(0x463)](_0x36226b);(_0x324854==null?void 0x0:_0x324854[_0x112211(0x2c9)])===a[_0x112211(0x277)][_0x112211(0x253)]&&this['_activeImageId']===_0x36226b['drawingId']&&(this['_clearControls'](),this[_0x112211(0x3f0)](!0x0));}})),this[_0x16656b(0x270)](this[_0x16656b(0x195)]['remove$'][_0x16656b(0x220)](_0x453693=>{const _0x43bc2b=_0x16656b;for(let _0x568c69 of _0x453693)this[_0x43bc2b(0x442)]===_0x568c69['drawingId']&&this['_resetState']();}));}['_resetState'](){const _0x5c500=_0x58257;this[_0x5c500(0x442)]=null,this[_0x5c500(0x23c)]=null,this['_subUnitId']=null,this['_activeAdjustPointList']=void 0x0,this[_0x5c500(0x230)]();}};dt=k([O(0x1,s[_0x58257(0x14f)]),O(0x2,(0x0,a[_0x58257(0x183)])(c[_0x58257(0x1a2)])),O(0x3,a[_0x58257(0x32d)]),O(0x4,(0x0,a['Inject'])(B))],dt);const ft=_0x58257(0x436);let J=class extends a['Disposable']{constructor(_0x55e3f6,_0x2f49da,_0x16ae32,_0x4e270b,_0x307cf3,_0x3fb89c){const _0x58aaf8=_0x58257;super(),this[_0x58aaf8(0x27b)]=_0x55e3f6,this[_0x58aaf8(0x424)]=_0x2f49da,this[_0x58aaf8(0x195)]=_0x16ae32,this[_0x58aaf8(0x2e5)]=_0x4e270b,this[_0x58aaf8(0x1c3)]=_0x307cf3,this['_shapeFloatingToolbarService']=_0x3fb89c,T(this,'_visible',!0x1),this['_menuManagerService'][_0x58aaf8(0x164)](Xe),this[_0x58aaf8(0x270)]((0x0,a['toDisposable'])(this[_0x58aaf8(0x195)]['focus$'][_0x58aaf8(0x220)](()=>this[_0x58aaf8(0x2d8)]()))),this[_0x58aaf8(0x2d8)]();}['dispose'](){const _0x3c87bf=_0x58257;this[_0x3c87bf(0x231)][_0x3c87bf(0x41d)](!0x1,ft),this[_0x3c87bf(0x176)](),super[_0x3c87bf(0x307)]();}['_update'](){const _0x159860=_0x58257;var _0xf5f973;let _0x332c27=this[_0x159860(0x195)][_0x159860(0x3d2)](),_0x2bd620=_0x332c27[_0x159860(0x327)]===0x1?_0x332c27[0x0]:void 0x0;if((_0x2bd620==null?void 0x0:_0x2bd620[_0x159860(0x2c9)])!==a[_0x159860(0x277)][_0x159860(0x33c)]||this[_0x159860(0x2e5)]['getUnitType'](_0x2bd620['unitId'])!==a['UniverInstanceType'][_0x159860(0x460)]){this['_shapeFloatingToolbarService'][_0x159860(0x41d)](!0x1,ft),this[_0x159860(0x176)]();return;}let _0x9be506=(0x0,e[_0x159860(0x23d)])((_0xf5f973=this['_renderManagerService'][_0x159860(0x221)](_0x2bd620[_0x159860(0x432)]))==null?void 0x0:_0xf5f973[_0x159860(0x1b2)][_0x159860(0x3a8)]())==='isolated';if(this['_shapeFloatingToolbarService'][_0x159860(0x41d)](_0x9be506,ft),_0x9be506){this[_0x159860(0x176)]();return;}this[_0x159860(0x26c)]||(this[_0x159860(0x26c)]=!0x0,this['_ribbonService'][_0x159860(0x263)](L,{'activate':!0x0}));}[_0x58257(0x176)](){const _0x2e2a8d=_0x58257;this[_0x2e2a8d(0x26c)]&&(this[_0x2e2a8d(0x26c)]=!0x1,this[_0x2e2a8d(0x424)][_0x2e2a8d(0x147)](L),this['_ribbonService'][_0x2e2a8d(0x149)]([]));}};J=k([O(0x0,t[_0x58257(0x2b1)]),O(0x1,t[_0x58257(0x457)]),O(0x2,s[_0x58257(0x14f)]),O(0x3,a['IUniverInstanceService']),O(0x4,c[_0x58257(0x1a2)]),O(0x5,(0x0,a[_0x58257(0x183)])(e[_0x58257(0x43f)]))],J);let Y=class extends a[_0x58257(0x40f)]{constructor(_0x48910b,_0x2aa240,_0x24153f,_0x20b9a4){const _0xeb32e4=_0x58257;super(),this[_0xeb32e4(0x2e5)]=_0x48910b,this['_sheetInterceptorService']=_0x2aa240,this[_0xeb32e4(0x20d)]=_0x24153f,this[_0xeb32e4(0x396)]=_0x20b9a4,this[_0xeb32e4(0x399)]();}[_0x58257(0x399)](){const _0x20129f=_0x58257;this[_0x20129f(0x270)](this['_sheetInterceptorService'][_0x20129f(0x427)]({'getMutations':_0x46b3a8=>{const _0x356e9d=_0x20129f;if(_0x46b3a8['id']===o[_0x356e9d(0x1c2)]['id']){let _0x44296e=(0x0,o['getSheetCommandTarget'])(this[_0x356e9d(0x2e5)],_0x46b3a8[_0x356e9d(0x18b)]);if(!_0x44296e)return{'redos':[],'undos':[]};let {unitId:_0x1985ce,subUnitId:_0x1a0b79}=_0x44296e,_0x19c368=this[_0x356e9d(0x20d)][_0x356e9d(0x19d)](_0x1985ce,_0x1a0b79),_0x324ab5=Object[_0x356e9d(0x27d)](_0x19c368)['filter'](_0x2f9f3c=>_0x2f9f3c['drawingType']===a[_0x356e9d(0x277)][_0x356e9d(0x33c)]);if(_0x324ab5[_0x356e9d(0x327)]===0x0)return{'redos':[],'undos':[]};let _0x347d12=[],_0x103fb0=[];for(let _0x4b2245=0x0;_0x4b2245<_0x324ab5['length'];_0x4b2245++){let _0xcc08df=_0x324ab5[_0x4b2245],_0x2e25a0=this[_0x356e9d(0x396)]['getShapeModel'](_0xcc08df['unitId'],_0xcc08df[_0x356e9d(0x44d)],_0xcc08df['drawingId']);if(!_0x2e25a0)continue;let {redo:_0x5b62ff,undo:_0x2fae6c,objects:_0x2ac625}=this[_0x356e9d(0x20d)][_0x356e9d(0x25d)]([_0xcc08df]);_0x347d12[_0x356e9d(0x21f)]({'id':i[_0x356e9d(0x41a)]['id'],'params':{'unitId':_0x1985ce,'subUnitId':_0x1a0b79,'shapeId':_0xcc08df[_0x356e9d(0x3d0)]}}),_0x347d12[_0x356e9d(0x21f)]({'id':p[_0x356e9d(0x22e)]['id'],'params':{'unitId':_0x1985ce,'subUnitId':_0x1a0b79,'type':p['DrawingApplyType'][_0x356e9d(0x1c6)],'op':_0x5b62ff,'objects':_0x2ac625}}),_0x103fb0[_0x356e9d(0x21f)]({'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1985ce,'subUnitId':_0x1a0b79,'type':p['DrawingApplyType']['INSERT'],'op':_0x2fae6c,'objects':_0x2ac625}}),_0x103fb0['push']({'id':i[_0x356e9d(0x31f)]['id'],'params':{'unitId':_0x1985ce,'subUnitId':_0x1a0b79,'shapeId':_0xcc08df['drawingId'],'shapeType':_0x2e25a0['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x356e9d(0x37d)](_0x2e25a0[_0x356e9d(0x199)]()))}});}return{'redos':_0x347d12,'undos':_0x103fb0};}else{if(_0x46b3a8['id']===o[_0x356e9d(0x2dc)]['id']){let {unitId:_0x2d0cd7,subUnitId:_0x31f526,targetSubUnitId:_0x336487}=_0x46b3a8[_0x356e9d(0x18b)];if(!_0x2d0cd7||!_0x31f526||!_0x336487)return{'redos':[],'undos':[]};let _0x27e687=this[_0x356e9d(0x20d)][_0x356e9d(0x19d)](_0x2d0cd7,_0x31f526),_0x127aee=Object[_0x356e9d(0x27d)](_0x27e687)[_0x356e9d(0x239)](_0x4164db=>_0x4164db[_0x356e9d(0x2c9)]===a[_0x356e9d(0x277)][_0x356e9d(0x33c)]);if(_0x127aee[_0x356e9d(0x327)]===0x0)return{'redos':[],'undos':[]};let _0xe53182=[],_0x143882=[];for(let _0x229f36=0x0;_0x229f36<_0x127aee[_0x356e9d(0x327)];_0x229f36++){let _0x5f45c2=_0x127aee[_0x229f36],_0x1b4bed=this[_0x356e9d(0x396)][_0x356e9d(0x2f0)](_0x5f45c2[_0x356e9d(0x432)],_0x5f45c2[_0x356e9d(0x44d)],_0x5f45c2[_0x356e9d(0x3d0)]);if(!_0x1b4bed)continue;let _0x11132c=(0x0,a[_0x356e9d(0x1b0)])(),_0x26917d={..._0x5f45c2,'unitId':_0x2d0cd7,'subUnitId':_0x336487,'drawingId':_0x11132c},{redo:_0x5b7663,undo:_0x5419a8,objects:_0xe70c58}=this[_0x356e9d(0x20d)]['getBatchAddOp']([_0x26917d]);_0xe53182[_0x356e9d(0x21f)]({'id':p[_0x356e9d(0x22e)]['id'],'params':{'unitId':_0x2d0cd7,'subUnitId':_0x336487,'type':p[_0x356e9d(0x29f)][_0x356e9d(0x16a)],'op':_0x5b7663,'objects':_0xe70c58}}),_0xe53182[_0x356e9d(0x21f)]({'id':i[_0x356e9d(0x31f)]['id'],'params':{'unitId':_0x2d0cd7,'subUnitId':_0x336487,'shapeId':_0x11132c,'shapeType':_0x1b4bed[_0x356e9d(0x43c)](),'shapeData':JSON[_0x356e9d(0x3ad)](JSON[_0x356e9d(0x37d)](_0x1b4bed[_0x356e9d(0x199)]()))}}),_0x143882[_0x356e9d(0x21f)]({'id':i[_0x356e9d(0x41a)]['id'],'params':{'unitId':_0x2d0cd7,'subUnitId':_0x336487,'shapeId':_0x11132c}}),_0x143882[_0x356e9d(0x21f)]({'id':p[_0x356e9d(0x22e)]['id'],'params':{'unitId':_0x2d0cd7,'subUnitId':_0x336487,'type':p['DrawingApplyType'][_0x356e9d(0x1c6)],'op':_0x5419a8,'objects':_0xe70c58}});}return{'redos':_0xe53182,'undos':_0x143882};}}return{'redos':[],'undos':[]};}}));}};Y=k([O(0x0,(0x0,a['Inject'])(a['IUniverInstanceService'])),O(0x1,(0x0,a[_0x58257(0x183)])(o[_0x58257(0x2fd)])),O(0x2,(0x0,a[_0x58257(0x183)])(p[_0x58257(0x320)])),O(0x3,(0x0,a[_0x58257(0x183)])(i[_0x58257(0x45a)]))],Y);let pt=class extends a[_0x58257(0x40f)]{constructor(_0x376706,_0x3f7030,_0x53b8ec,_0x54abef,_0x475b12){const _0x4cb6c3=_0x58257;super(),this[_0x4cb6c3(0x1f7)]=_0x376706,this['_shapeTextEditingService']=_0x3f7030,this['_drawingManagerService']=_0x53b8ec,this['_contextService']=_0x54abef,this[_0x4cb6c3(0x396)]=_0x475b12,T(this,'_lastEditingShapeKey',null),this[_0x4cb6c3(0x16d)](),this['_initSelection'](),this[_0x4cb6c3(0x165)]();}[_0x58257(0x16d)](){const _0x3febdf=_0x58257;let {scene:_0x4e854e}=this['_context'];this['disposeWithMe'](_0x4e854e[_0x3febdf(0x1a5)][_0x3febdf(0x37c)](_0x5971d0=>{const _0x12c08e=_0x3febdf;let {offsetX:_0x3086b2,offsetY:_0x52ca24}=_0x5971d0,_0x492f09=_0x4e854e[_0x12c08e(0x312)](c[_0x12c08e(0x1a8)][_0x12c08e(0x159)]([_0x3086b2,_0x52ca24]));if(_0x492f09 instanceof E){let _0x5c8438=this[_0x12c08e(0x396)][_0x12c08e(0x2f0)](_0x492f09['unitId'],_0x492f09[_0x12c08e(0x44d)],_0x492f09[_0x12c08e(0x2af)]);if(_0x5c8438!=null&&_0x5c8438[_0x12c08e(0x199)]()[_0x12c08e(0x2e9)]||(0x0,n[_0x12c08e(0x34c)])(this[_0x12c08e(0x396)][_0x12c08e(0x43c)](_0x492f09['unitId'],_0x492f09['subUnitId'],_0x492f09[_0x12c08e(0x2af)])))return;this['_shapeTextEditingService'][_0x12c08e(0x21b)]({'visible':!0x0,'unitId':_0x492f09[_0x12c08e(0x432)],'subUnitId':_0x492f09[_0x12c08e(0x44d)],'shapeId':_0x492f09['shapeId'],'shapeKey':_0x492f09['oKey']});}}));}[_0x58257(0x171)](){const _0x2d01d8=_0x58257;this[_0x2d01d8(0x270)](this['_drawingManagerService']['focus$'][_0x2d01d8(0x220)](_0x44f0ff=>{const _0x179ee6=_0x2d01d8;if(_0x44f0ff[_0x179ee6(0x327)]===0x1){let _0x3cb310=_0x44f0ff[0x0],_0x373d04=this[_0x179ee6(0x195)]['getDrawingByParam'](_0x3cb310);if((_0x373d04==null?void 0x0:_0x373d04['drawingType'])===a[_0x179ee6(0x277)][_0x179ee6(0x33c)]){var _0x20d05a;let _0x56010b=this[_0x179ee6(0x445)][_0x179ee6(0x14a)]();if((_0x56010b==null?void 0x0:_0x56010b['shapeId'])===_0x3cb310['drawingId']&&_0x56010b[_0x179ee6(0x222)])return;let _0x48bb68=(0x0,n[_0x179ee6(0x34c)])(this['_sheetsShapeService'][_0x179ee6(0x43c)](_0x3cb310['unitId'],_0x3cb310[_0x179ee6(0x44d)],_0x3cb310[_0x179ee6(0x3d0)])),_0x2960a6=!!((_0x20d05a=this[_0x179ee6(0x396)][_0x179ee6(0x2f0)](_0x3cb310[_0x179ee6(0x432)],_0x3cb310[_0x179ee6(0x44d)],_0x3cb310[_0x179ee6(0x3d0)]))!=null&&_0x20d05a[_0x179ee6(0x199)]()[_0x179ee6(0x2e9)]);(_0x48bb68||_0x2960a6)&&this[_0x179ee6(0x445)][_0x179ee6(0x21b)](null);}else this[_0x179ee6(0x445)][_0x179ee6(0x14a)]()&&(this[_0x179ee6(0x445)][_0x179ee6(0x383)](!0x0),requestAnimationFrame(()=>{const _0x54168b=_0x179ee6;this[_0x54168b(0x445)][_0x54168b(0x21b)](null);}));}else this[_0x179ee6(0x445)][_0x179ee6(0x14a)]()&&(this[_0x179ee6(0x445)][_0x179ee6(0x383)](!0x0),requestAnimationFrame(()=>{const _0x373f85=_0x179ee6;this[_0x373f85(0x445)][_0x373f85(0x21b)](null);}));})),this[_0x2d01d8(0x270)](this['_drawingManagerService']['remove$']['subscribe'](_0x37e7ec=>{const _0x6e98c2=_0x2d01d8;let _0x2630c6=this[_0x6e98c2(0x445)]['getEditing']();_0x2630c6&&_0x37e7ec[_0x6e98c2(0x3dc)](_0x1611db=>_0x1611db[_0x6e98c2(0x3d0)]===_0x2630c6['shapeId'])&&this[_0x6e98c2(0x445)]['setEditing'](null);}));}[_0x58257(0x165)](){const _0x301db5=_0x58257;this[_0x301db5(0x270)](this[_0x301db5(0x445)][_0x301db5(0x245)]['subscribe'](_0x13f2c9=>{const _0x5537e7=_0x301db5;let {scene:_0x249fd0}=this[_0x5537e7(0x1f7)];if(this[_0x5537e7(0x404)]){let _0x1ed661=_0x249fd0[_0x5537e7(0x441)](this[_0x5537e7(0x404)]);_0x1ed661&&_0x1ed661['setEditing'](!0x1);}if(_0x13f2c9){let _0x17f6f9=!!_0x13f2c9[_0x5537e7(0x222)],_0xa998ef=_0x249fd0[_0x5537e7(0x441)](_0x13f2c9[_0x5537e7(0x294)]);_0xa998ef&&(_0xa998ef[_0x5537e7(0x21b)](_0x17f6f9),this['_lastEditingShapeKey']=_0x13f2c9[_0x5537e7(0x294)]),this['_contextService']['setContextValue'](a[_0x5537e7(0x1ff)],_0x17f6f9);}else this[_0x5537e7(0x404)]=null,this['_contextService'][_0x5537e7(0x20a)](a[_0x5537e7(0x1ff)],!0x1);}));}};pt=k([O(0x1,(0x0,a['Inject'])(K)),O(0x2,s[_0x58257(0x14f)]),O(0x3,a[_0x58257(0x434)]),O(0x4,(0x0,a['Inject'])(i[_0x58257(0x45a)]))],pt);let mt=class extends e[_0x58257(0x292)]{constructor(_0x3ecaa2,_0x30eac8,_0x519dc6,_0x5a53f7){super(_0x3ecaa2,_0x30eac8,_0x519dc6,_0x5a53f7,{'componentKey':ie,'editorUnitId':re});}};mt=k([O(0x1,(0x0,a[_0x58257(0x183)])(h[_0x58257(0x234)])),O(0x2,(0x0,a[_0x58257(0x183)])(g['DocCanvasPopManagerService'])),O(0x3,(0x0,a[_0x58257(0x183)])(g[_0x58257(0x3e7)]))],mt);let X=class extends a[_0x58257(0x40f)]{constructor(_0x5e04a8,_0x20db20,_0x346df7,_0xf067e6,_0x56e1e7,_0x3671e8){const _0x2ee5da=_0x58257;super(),this[_0x2ee5da(0x25c)]=_0x5e04a8,this['_renderManagerService']=_0x20db20,this[_0x2ee5da(0x195)]=_0x346df7,this['_currentUniverService']=_0xf067e6,this[_0x2ee5da(0x1cd)]=_0x56e1e7,this['_sheetDrawingShapeRenderController']=_0x3671e8,T(this,'_insertingShapeKeys',new Set()),this['_initialize']();}[_0x58257(0x466)](){const _0x3d4583=_0x58257;this[_0x3d4583(0x283)](),this['_commandExecutedListener'](),this[_0x3d4583(0x3da)]();}[_0x58257(0x283)](){const _0x27c08d=_0x58257;this[_0x27c08d(0x270)](this[_0x27c08d(0x195)][_0x27c08d(0x20f)][_0x27c08d(0x220)](_0x327ce3=>{const _0x40dbe8=_0x27c08d;this[_0x40dbe8(0x2a9)](_0x327ce3);}));}[_0x58257(0x452)](){const _0x3085a4=_0x58257;this['disposeWithMe'](this[_0x3085a4(0x25c)][_0x3085a4(0x415)](_0x4eda2a=>{const _0x1eb661=_0x3085a4;if(_0x4eda2a['id']===i[_0x1eb661(0x464)]['id']){let {unitId:_0x584c3d,subUnitId:_0x5ef46a,shapeId:_0x545134}=_0x4eda2a['params'],_0x5e18f7=this['_getSceneAndTransformerByDrawingSearch'](_0x584c3d),_0x3772ec=(0x0,s[_0x1eb661(0x389)])({'unitId':_0x584c3d,'subUnitId':_0x5ef46a,'drawingId':_0x545134}),_0x31d3d0=_0x5e18f7==null?void 0x0:_0x5e18f7['scene']['getObjectIncludeInGroup'](_0x3772ec);_0x31d3d0&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x31d3d0),this[_0x1eb661(0x309)]['refreshFormulaPresentation'](_0x31d3d0,{'unitId':_0x584c3d,'subUnitId':_0x5ef46a,'shapeId':_0x545134}),_0x31d3d0[_0x1eb661(0x2b4)](!0x0));return;}if(_0x4eda2a['id']===i[_0x1eb661(0x31f)]['id']){var _0x16c1ae;let {unitId:_0x485759,subUnitId:_0x50c1c6,shapeId:_0x219086}=_0x4eda2a['params'],_0x19fc6a=this['_getSceneAndTransformerByDrawingSearch'](_0x485759);if(_0x19fc6a==null)return;let {scene:_0x57bff1}=_0x19fc6a,_0x3f6eb4=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x485759,'subUnitId':_0x50c1c6,'drawingId':_0x219086}),_0x4a899d=_0x57bff1[_0x1eb661(0x441)](_0x3f6eb4);if(!((_0x16c1ae=this[_0x1eb661(0x1c3)][_0x1eb661(0x221)](_0x485759))!=null&&_0x16c1ae[_0x1eb661(0x420)](l[_0x1eb661(0x247)])[_0x1eb661(0x317)](_0x50c1c6)))return!0x1;if(_0x4a899d)return;this[_0x1eb661(0x2a9)]([{'unitId':_0x485759,'subUnitId':_0x50c1c6,'drawingId':_0x219086}]);}}));}[_0x58257(0x3da)](){const _0x11cb07=_0x58257;this[_0x11cb07(0x270)](this['_drawingManagerService'][_0x11cb07(0x438)][_0x11cb07(0x220)](_0x4a6915=>{const _0x580fa7=_0x11cb07;_0x4a6915[_0x580fa7(0x1d0)](_0x323224=>{const _0x42291d=_0x580fa7;let {unitId:_0x19588b,subUnitId:_0x271230,drawingId:_0x534db4}=_0x323224,_0x48373c=this[_0x42291d(0x195)][_0x42291d(0x463)](_0x323224);if(_0x48373c==null)return;let {transform:_0x4c240b,drawingType:_0x1f6e47,srcRect:_0x1b9b84,prstGeom:_0x2a3310}=_0x48373c;if(_0x1f6e47!==a['DrawingTypeEnum'][_0x42291d(0x33c)])return;let _0x32d05b=this[_0x42291d(0x30f)](_0x19588b);if(_0x32d05b==null)return;let {scene:_0x4db9eb,transformer:_0x11708c}=_0x32d05b;if(_0x4c240b==null)return!0x0;let _0x122931=(0x0,s[_0x42291d(0x389)])({'unitId':_0x19588b,'subUnitId':_0x271230,'drawingId':_0x534db4}),_0xde004e=_0x4db9eb[_0x42291d(0x441)](_0x122931);if(_0xde004e==null)return!0x0;_0xde004e[_0x42291d(0x2e0)](_0x1b9b84),_0xde004e[_0x42291d(0x248)](_0x2a3310);});}));}[_0x58257(0x2a9)](_0x40cfcf){const _0xa22060=_0x58257;for(let _0x521b61 of _0x40cfcf){var _0x40b566;let {unitId:_0x624808,subUnitId:_0x1b1f71,drawingId:_0x1a4927}=_0x521b61,_0x2a2d6f=this[_0xa22060(0x30f)](_0x624808),_0x366caa=(_0x40b566=(0x0,d['getCurrentUnitInfo'])(this[_0xa22060(0x470)],_0x624808))==null?void 0x0:_0x40b566[_0xa22060(0x44d)];if(_0x2a2d6f==null||_0x366caa!==_0x1b1f71)return;let _0x16e7b0=(0x0,s[_0xa22060(0x389)])({'unitId':_0x624808,'subUnitId':_0x1b1f71,'drawingId':_0x1a4927});if(this[_0xa22060(0x196)][_0xa22060(0x214)](_0x16e7b0)||_0x2a2d6f[_0xa22060(0x3eb)][_0xa22060(0x441)](_0x16e7b0)!=null)return;let _0x42ee36=this['_drawingManagerService'][_0xa22060(0x463)](_0x521b61);if(_0x42ee36==null||_0x42ee36[_0xa22060(0x2c9)]!==a['DrawingTypeEnum']['DRAWING_SHAPE'])return;if((0x0,n[_0xa22060(0x34c)])((_0x42ee36[_0xa22060(0x373)]||{})[_0xa22060(0x416)])){let _0x55e2c3=_0x42ee36['transform'];_0x55e2c3&&(_0x42ee36[_0xa22060(0x30a)]={..._0x55e2c3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0xa22060(0x196)][_0xa22060(0x2b3)](_0x16e7b0);try{this[_0xa22060(0x309)]['renderDrawingShape'](_0x42ee36,_0x2a2d6f[_0xa22060(0x3eb)]);}finally{this['_insertingShapeKeys']['delete'](_0x16e7b0);}queueMicrotask(()=>{const _0x5b93f8=_0xa22060;if(this[_0x5b93f8(0x1f3)])return;let _0x2e0a34=(0x0,s[_0x5b93f8(0x389)])(_0x521b61);if(!_0x2a2d6f[_0x5b93f8(0x3eb)][_0x5b93f8(0x441)](_0x2e0a34))return;let _0x1685e6=this[_0x5b93f8(0x195)][_0x5b93f8(0x463)](_0x521b61);_0x1685e6&&this[_0x5b93f8(0x195)][_0x5b93f8(0x252)]([_0x1685e6]);});}}[_0x58257(0x30f)](_0x41a0cf){const _0x2b7519=_0x58257;if(_0x41a0cf==null)return;let _0x3309aa=this['_renderManagerService'][_0x2b7519(0x221)](_0x41a0cf),_0x216b5d=_0x3309aa==null?void 0x0:_0x3309aa['scene'];return _0x216b5d==null?null:{'scene':_0x216b5d,'transformer':_0x216b5d[_0x2b7519(0x259)]()};}};X=k([O(0x0,a[_0x58257(0x258)]),O(0x1,c['IRenderManagerService']),O(0x2,s[_0x58257(0x14f)]),O(0x3,a[_0x58257(0x32d)]),O(0x4,(0x0,a[_0x58257(0x183)])(d['DrawingRenderService'])),O(0x5,(0x0,a['Inject'])(A))],X);const ht={'normal':{'fill':n[_0x58257(0x2f6)][_0x58257(0x439)],'stroke':n[_0x58257(0x2f6)][_0x58257(0x469)],'strokeWidth':n[_0x58257(0x2f6)]['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var gt=class extends c[_0x58257(0x30c)]{constructor(_0x588c52,_0x1f9017){const _0xe63e63=_0x58257;super(_0x588c52,_0x1f9017),T(this,_0xe63e63(0x1d2),''),T(this,'_cxnIndex',-0x1),T(this,_0xe63e63(0x23c),''),T(this,_0xe63e63(0x1d4),''),T(this,_0xe63e63(0x163),!0x1),_0x1f9017&&this['setShapeProps'](_0x1f9017);}[_0x58257(0x23e)](){const _0x5a303f=_0x58257;return{'unitId':this[_0x5a303f(0x23c)],'subUnitId':this[_0x5a303f(0x1d4)],'shapeId':this[_0x5a303f(0x1d2)],'cxnIndex':this['_cxnIndex']};}['setHighlighted'](_0xbc5929){const _0x52f636=_0x58257;this[_0x52f636(0x163)]!==_0xbc5929&&(this[_0x52f636(0x163)]=_0xbc5929,this[_0x52f636(0x2b4)](!0x0));}[_0x58257(0x192)](){const _0x252152=_0x58257;return this[_0x252152(0x163)];}['setShapeProps'](_0x2eb3f0){const _0x2dff9f=_0x58257;_0x2eb3f0[_0x2dff9f(0x1e1)]!==void 0x0&&(this[_0x2dff9f(0x1d2)]=_0x2eb3f0[_0x2dff9f(0x1e1)]),_0x2eb3f0[_0x2dff9f(0x213)]!==void 0x0&&(this[_0x2dff9f(0x403)]=_0x2eb3f0[_0x2dff9f(0x213)]),_0x2eb3f0[_0x2dff9f(0x432)]!==void 0x0&&(this[_0x2dff9f(0x23c)]=_0x2eb3f0['unitId']),_0x2eb3f0[_0x2dff9f(0x44d)]!==void 0x0&&(this['_subUnitId']=_0x2eb3f0[_0x2dff9f(0x44d)]),_0x2eb3f0[_0x2dff9f(0x192)]!==void 0x0&&(this['_isHighlighted']=_0x2eb3f0[_0x2dff9f(0x192)]),this['transformByState']({'width':_0x2eb3f0[_0x2dff9f(0x22f)]??n[_0x2dff9f(0x2f6)]['cxnPointRadius']*0x2,'height':_0x2eb3f0[_0x2dff9f(0x1da)]??n['ShapeDefaultConfig'][_0x2dff9f(0x1d3)]*0x2});}[_0x58257(0x215)](_0x3c11a8){const _0x105197=_0x58257;let _0x3e81a8=this[_0x105197(0x163)]?ht[_0x105197(0x429)]:ht[_0x105197(0x361)];c['Circle']['drawWith'](_0x3c11a8,{'radius':n[_0x105197(0x2f6)]['cxnPointRadius'],'fill':_0x3e81a8[_0x105197(0x348)],'stroke':_0x3e81a8[_0x105197(0x32a)],'strokeWidth':_0x3e81a8['strokeWidth'],'evented':!0x0});}};let Z=class extends a[_0x58257(0x40f)]{constructor(_0x242ea2,_0x2ecbfc,_0xe38727,_0x2f06d0){const _0x508d09=_0x58257;super(),this['_context']=_0x242ea2,this[_0x508d09(0x1c3)]=_0x2ecbfc,this[_0x508d09(0x195)]=_0xe38727,this[_0x508d09(0x396)]=_0x2f06d0,T(this,_0x508d09(0x398),[]),T(this,_0x508d09(0x474),null),T(this,_0x508d09(0x454),-0x1),T(this,_0x508d09(0x2f7),null),T(this,_0x508d09(0x23c),''),T(this,'_subUnitId',''),T(this,_0x508d09(0x35b),null);}['startConnectionDetection'](_0x44b28b,_0x2f9517,_0x15a133,_0x1c87ab){const _0x3ebda3=_0x58257;this['_currentScene']=_0x44b28b,this['_unitId']=_0x2f9517,this['_subUnitId']=_0x15a133,this[_0x3ebda3(0x35b)]=_0x1c87ab;}['updateConnectionDetection'](_0x2d016a){const _0x1be59e=_0x58257;if(!this[_0x1be59e(0x2f7)])return null;let _0x492fcc=this['_findShapeAtPoint'](_0x2d016a);return _0x492fcc?(this['_activeTargetShapeId']!==_0x492fcc['shapeId']&&(this[_0x1be59e(0x1be)](),this[_0x1be59e(0x241)](_0x492fcc[_0x1be59e(0x2af)],_0x492fcc['shapeModel']),this['_activeTargetShapeId']=_0x492fcc[_0x1be59e(0x2af)]),this[_0x1be59e(0x43d)](_0x2d016a)):(this['_activeTargetShapeId']!==null&&(this[_0x1be59e(0x1be)](),this['_activeTargetShapeId']=null),null);}[_0x58257(0x3b4)](){const _0x1e9572=_0x58257;this[_0x1e9572(0x1be)](),this[_0x1e9572(0x2f7)]=null,this['_activeTargetShapeId']=null,this[_0x1e9572(0x454)]=-0x1,this[_0x1e9572(0x35b)]=null;}['getConnectionRelation'](){const _0x20b6d9=_0x58257;return this[_0x20b6d9(0x474)]===null||this[_0x20b6d9(0x454)]<0x0?null:{'shapeId':this[_0x20b6d9(0x474)],'cxnIndex':this['_highlightedSiteIndex']};}['_findShapeAtPoint'](_0x1aac72){const _0x510132=_0x58257;let _0x230787=this[_0x510132(0x195)][_0x510132(0x19d)](this[_0x510132(0x23c)],this['_subUnitId']);for(let _0x3c6140 of Object['keys'](_0x230787)){if(_0x3c6140===this[_0x510132(0x35b)]||_0x230787[_0x3c6140][_0x510132(0x2c9)]!==a[_0x510132(0x277)][_0x510132(0x33c)])continue;let _0x462c15=this[_0x510132(0x396)]['getShapeModel'](this[_0x510132(0x23c)],this[_0x510132(0x1d4)],_0x3c6140);if(!_0x462c15||(0x0,n[_0x510132(0x34c)])(_0x462c15[_0x510132(0x43c)]())||_0x462c15[_0x510132(0x3b2)]()[_0x510132(0x327)]===0x0||!this[_0x510132(0x2f7)])continue;let _0x249851=(0x0,s[_0x510132(0x389)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x3c6140}),_0x15f80e=this[_0x510132(0x2f7)][_0x510132(0x441)](_0x249851);if(!_0x15f80e)continue;let {left:_0x4c633e,top:_0x52ac41,width:_0x2e77c4,height:_0x4bd1f1}=_0x15f80e[_0x510132(0x360)](),_0x5dc156=_0x4c633e+_0x2e77c4/0x2,_0x3a7451=_0x52ac41+_0x4bd1f1/0x2,_0x51445f=_0x15f80e[_0x510132(0x30a)][_0x510132(0x3b8)](),_0x2f1b27=new c[(_0x510132(0x2c0))]([_0x51445f[0x0],_0x51445f[0x1],_0x51445f[0x2],_0x51445f[0x3],_0x5dc156,_0x3a7451]),_0x4316c6=_0x15f80e[_0x510132(0x473)](),_0x476619=(_0x15f80e[_0x510132(0x3ca)]&&(_0x4316c6==null?void 0x0:_0x4316c6[_0x510132(0x3b3)])===c[_0x510132(0x326)][_0x510132(0x170)]?_0x4316c6[_0x510132(0x402)][_0x510132(0x36b)](_0x2f1b27):_0x2f1b27)[_0x510132(0x46d)]()[_0x510132(0x372)](_0x1aac72),_0x382342=_0x2e77c4/0x2,_0x305ec=_0x4bd1f1/0x2;if(_0x476619['x']>=-_0x382342-0x5&&_0x476619['x']<=_0x382342+0x5&&_0x476619['y']>=-_0x305ec-0x5&&_0x476619['y']<=_0x305ec+0x5)return{'shapeId':_0x3c6140,'shapeModel':_0x462c15};}return null;}[_0x58257(0x241)](_0x35b03e,_0x315825){const _0x8a601=_0x58257;if(!this[_0x8a601(0x2f7)])return;let _0x4367ed=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x8a601(0x23c)],'subUnitId':this[_0x8a601(0x1d4)],'drawingId':_0x35b03e}),_0xeb9b39=this[_0x8a601(0x2f7)][_0x8a601(0x441)](_0x4367ed);if(!_0xeb9b39)return;let {left:_0x488f7b,top:_0x133c63,width:_0x27475d,height:_0x371b69}=_0xeb9b39['getRealBound'](),_0x5b801b=_0x488f7b+_0x27475d/0x2,_0x578b07=_0x133c63+_0x371b69/0x2,_0x397b8=_0xeb9b39[_0x8a601(0x30a)][_0x8a601(0x3b8)](),_0xb32820=new c['Transform']([_0x397b8[0x0],_0x397b8[0x1],_0x397b8[0x2],_0x397b8[0x3],_0x5b801b,_0x578b07]),_0x578095=_0xeb9b39[_0x8a601(0x473)](),_0xaaa567=_0xeb9b39[_0x8a601(0x3ca)]&&(_0x578095==null?void 0x0:_0x578095[_0x8a601(0x3b3)])===c['RENDER_CLASS_TYPE'][_0x8a601(0x170)]?_0x578095[_0x8a601(0x402)]['multiply'](_0xb32820):_0xb32820;_0x315825[_0x8a601(0x272)]({'width':_0x27475d,'height':_0x371b69});let _0x329906=_0x315825['getConnectionSiteList']();for(let _0xaf2c99 of _0x329906){let _0x52c1e4=_0xaf2c99['x']-_0x27475d/0x2,_0x4d89bf=_0xaf2c99['y']-_0x371b69/0x2,_0xf7edc4=_0xaaa567[_0x8a601(0x372)]({'x':_0x52c1e4,'y':_0x4d89bf}),_0x8397dc=_0xf7edc4['x'],_0x4a6c02=_0xf7edc4['y'],_0x33b7b5=new gt(_0x8a601(0x181)+_0x35b03e+'-'+_0xaf2c99[_0x8a601(0x356)],{'left':_0x8397dc-n[_0x8a601(0x2f6)][_0x8a601(0x1d3)],'top':_0x4a6c02-n[_0x8a601(0x2f6)]['cxnPointRadius'],'targetShapeId':_0x35b03e,'cxnIndex':_0xaf2c99[_0x8a601(0x356)],'unitId':this[_0x8a601(0x23c)],'subUnitId':this[_0x8a601(0x1d4)],'width':n['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':n[_0x8a601(0x2f6)][_0x8a601(0x1d3)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x8a601(0x398)][_0x8a601(0x21f)](_0x33b7b5),this[_0x8a601(0x2f7)][_0x8a601(0x1fd)](_0x33b7b5,c[_0x8a601(0x1e6)]+0x2);}}[_0x58257(0x43d)](_0x2b8e7f){const _0x3e50f0=_0x58257;let _0xabf292=null,_0x149256=0x1/0x0,_0x129bf2=null;for(let _0x3c1aad of this[_0x3e50f0(0x398)]){let _0x4e4e81=_0x3c1aad[_0x3e50f0(0x19c)]+n['ShapeDefaultConfig'][_0x3e50f0(0x1d3)],_0x316e4a=_0x3c1aad[_0x3e50f0(0x44b)]+n['ShapeDefaultConfig'][_0x3e50f0(0x1d3)],_0x298fbc=_0x2b8e7f['x']-_0x4e4e81,_0x1df100=_0x2b8e7f['y']-_0x316e4a,_0xee8f99=Math[_0x3e50f0(0x212)](_0x298fbc*_0x298fbc+_0x1df100*_0x1df100);_0xee8f99<_0x149256&&(_0x149256=_0xee8f99,_0xabf292=_0x3c1aad,_0x129bf2={'x':_0x4e4e81,'y':_0x316e4a});}let _0x49065d=_0x149256<=0xa&&_0xabf292?_0xabf292['getConnectionInfo']()[_0x3e50f0(0x213)]:-0x1;if(_0x49065d!==this[_0x3e50f0(0x454)]){for(let _0x185a69 of this['_connectionSiteObjects']){let _0x33bb1e=_0x185a69[_0x3e50f0(0x23e)]();_0x185a69[_0x3e50f0(0x2bd)](_0x33bb1e['cxnIndex']===_0x49065d);}this['_highlightedSiteIndex']=_0x49065d;}if(_0x149256<=0xa&&_0xabf292&&_0x129bf2){let _0x1a0a9f=_0xabf292[_0x3e50f0(0x23e)](),_0x24ccd4=this[_0x3e50f0(0x16b)](_0x1a0a9f['shapeId'],_0x1a0a9f['cxnIndex']);return{'shapeId':_0x1a0a9f[_0x3e50f0(0x2af)],'cxnIndex':_0x1a0a9f['cxnIndex'],'unitId':_0x1a0a9f['unitId'],'subUnitId':_0x1a0a9f[_0x3e50f0(0x44d)],'worldPoint':_0x129bf2,'angle':_0x24ccd4};}return null;}[_0x58257(0x16b)](_0x40f289,_0x240396){const _0x3d9d17=_0x58257;let _0x467069=this[_0x3d9d17(0x396)][_0x3d9d17(0x2f0)](this['_unitId'],this[_0x3d9d17(0x1d4)],_0x40f289);if(!_0x467069)return 0x0;let _0x818071=this[_0x3d9d17(0x195)][_0x3d9d17(0x463)]({'unitId':this[_0x3d9d17(0x23c)],'subUnitId':this[_0x3d9d17(0x1d4)],'drawingId':_0x40f289});if(!(_0x818071!=null&&_0x818071[_0x3d9d17(0x30a)]))return 0x0;let {width:_0x5c8a43=0x0,height:_0x39b818=0x0,flipX:_0x2133c6=!0x1,flipY:_0x17c333=!0x1}=_0x818071['transform'];_0x467069['updateContext']({'width':_0x5c8a43,'height':_0x39b818});let _0x1c89fc=_0x467069['getConnectionSiteList']()[_0x3d9d17(0x40e)](_0x2263fe=>_0x2263fe[_0x3d9d17(0x356)]===_0x240396);if(!_0x1c89fc)return 0x0;let _0x44f286=_0x1c89fc['ang']/0xea60;return _0x2133c6&&(_0x44f286=0xb4-_0x44f286),_0x17c333&&(_0x44f286=-_0x44f286),_0x44f286=(_0x44f286%0x168+0x168)%0x168,_0x44f286;}[_0x58257(0x1be)](){const _0x23aba9=_0x58257;for(let _0x1f8df of this[_0x23aba9(0x398)])_0x1f8df[_0x23aba9(0x307)]();this[_0x23aba9(0x398)]=[],this[_0x23aba9(0x454)]=-0x1;}['dispose'](){const _0x57d02a=_0x58257;this[_0x57d02a(0x1be)](),super[_0x57d02a(0x307)]();}};Z=k([O(0x1,(0x0,a[_0x58257(0x183)])(c['IRenderManagerService'])),O(0x2,(0x0,a[_0x58257(0x183)])(s['IDrawingManagerService'])),O(0x3,(0x0,a['Inject'])(i[_0x58257(0x45a)]))],Z);let _t=class extends a['Disposable']{constructor(_0x56fab6,_0x3d2c27,_0x879162,_0x3bff6e,_0x4ce9d4){const _0x466324=_0x58257;super(),this['_sheetSkeletonService']=_0x56fab6,this[_0x466324(0x184)]=_0x3d2c27,this[_0x466324(0x20d)]=_0x879162,this['_shapeService']=_0x3bff6e,this['_groupCopyPasteController']=_0x4ce9d4,T(this,'_copyInfo',void 0x0),this[_0x466324(0x345)](),this[_0x466324(0x35f)]();}get['_focusedDrawings'](){const _0x18f617=_0x58257;return this[_0x18f617(0x20d)][_0x18f617(0x3d2)]();}[_0x58257(0x35f)](){const _0x1f31dd=_0x58257;this[_0x1f31dd(0x3c5)][_0x1f31dd(0x3e6)](({fromUnitId:_0x4a1fe9,fromSubUnitId:_0x52f79b,toUnitId:_0x4dc87a,toSubUnitId:_0x1964a9,idMap:_0x12950e})=>{const _0x7dcc89=_0x1f31dd;let _0x2d9358=[],_0x3a9990=[];for(let [_0x38c489,_0x1680b4]of _0x12950e[_0x7dcc89(0x173)]()){let _0x31eab5=this['_shapeService'][_0x7dcc89(0x2f0)](_0x4a1fe9,_0x52f79b,_0x38c489);if(!_0x31eab5)continue;let _0x18e75b=_0x31eab5[_0x7dcc89(0x43c)](),_0x27080e=JSON[_0x7dcc89(0x3ad)](JSON['stringify'](_0x31eab5[_0x7dcc89(0x199)]()));if(_0x27080e[_0x7dcc89(0x315)]){var _0x18a17e,_0x4550db;let _0x550b53=(_0x18a17e=_0x27080e['relation'][_0x7dcc89(0x1a9)])==null?void 0x0:_0x18a17e['shapeId'],_0x18d2b0=(_0x4550db=_0x27080e[_0x7dcc89(0x315)]['to'])==null?void 0x0:_0x4550db[_0x7dcc89(0x2af)],_0x112e41=!_0x550b53||_0x12950e[_0x7dcc89(0x214)](_0x550b53),_0x1c63c6=!_0x18d2b0||_0x12950e[_0x7dcc89(0x214)](_0x18d2b0);_0x112e41&&_0x550b53&&_0x27080e[_0x7dcc89(0x315)][_0x7dcc89(0x1a9)]?_0x27080e[_0x7dcc89(0x315)][_0x7dcc89(0x1a9)]={..._0x27080e[_0x7dcc89(0x315)][_0x7dcc89(0x1a9)],'shapeId':_0x12950e[_0x7dcc89(0x27a)](_0x550b53)}:_0x27080e['relation'][_0x7dcc89(0x1a9)]=void 0x0,_0x1c63c6&&_0x18d2b0&&_0x27080e[_0x7dcc89(0x315)]['to']?_0x27080e['relation']['to']={..._0x27080e['relation']['to'],'shapeId':_0x12950e['get'](_0x18d2b0)}:_0x27080e[_0x7dcc89(0x315)]['to']=void 0x0;}_0x2d9358[_0x7dcc89(0x21f)]({'id':i[_0x7dcc89(0x31f)]['id'],'params':{'unitId':_0x4dc87a,'subUnitId':_0x1964a9,'shapeId':_0x1680b4,'shapeType':_0x18e75b,'shapeData':_0x27080e}}),_0x3a9990['push']({'id':i[_0x7dcc89(0x41a)]['id'],'params':{'unitId':_0x4dc87a,'subUnitId':_0x1964a9,'shapeId':_0x1680b4}});}return{'redos':_0x2d9358,'undos':_0x3a9990};});}[_0x58257(0x345)](){const _0x35e562=_0x58257;this[_0x35e562(0x270)](this['_sheetClipboardService'][_0x35e562(0x365)]({'id':_0x35e562(0x393),'onBeforeCopy':(_0x4cce14,_0x941c29,_0x2a14e7,_0x2a8d62)=>{const _0x16f081=_0x35e562;this['_copyInfo']=null;let _0x9f13d6=this[_0x16f081(0x3fd)];if(_0x9f13d6[_0x16f081(0x327)]){let _0x5f0520=_0x9f13d6[_0x16f081(0x239)](_0x1ed811=>_0x1ed811[_0x16f081(0x2c9)]===a[_0x16f081(0x277)][_0x16f081(0x33c)]);if(_0x5f0520[_0x16f081(0x327)]===0x0)return;this[_0x16f081(0x264)]={'unitId':_0x4cce14,'subUnitId':_0x941c29,'copyType':_0x2a8d62,'drawings':_0x5f0520};}else this['_createCopyInfoByRange'](_0x4cce14,_0x941c29,_0x2a14e7,_0x2a8d62);},'onPasteCells':(_0x18d805,_0x67e0d2,_0x9936be,_0x2f3837)=>{const _0x3b83aa=_0x35e562;if(!this[_0x3b83aa(0x264)])return{'redos':[],'undos':[]};let {pasteType:_0x223bb8}=_0x2f3837;return _0x223bb8===l[_0x3b83aa(0x3c0)][_0x3b83aa(0x32e)]?this['_generatePasteMutations'](_0x67e0d2,this[_0x3b83aa(0x264)][_0x3b83aa(0x1e0)]===l[_0x3b83aa(0x21e)][_0x3b83aa(0x308)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x46cd2c=>this['_copyInfo']?this[_0x35e562(0x17c)](_0x46cd2c,this[_0x35e562(0x264)][_0x35e562(0x1e0)]===l['COPY_TYPE'][_0x35e562(0x308)]):{'redos':[],'undos':[]}}));}[_0x58257(0x287)](_0x147a27,_0x8b735d,_0x5c27a6,_0x413d2c){const _0x8fd55a=_0x58257;let _0x1326d5=this[_0x8fd55a(0x2e8)][_0x8fd55a(0x317)](_0x147a27,_0x8b735d);if(!_0x1326d5)return;let _0x22f4a5=(0x0,o[_0x8fd55a(0x1fb)])(_0x1326d5,_0x5c27a6);if(!_0x22f4a5)return;let {startX:_0x2ea7a6,endX:_0x149cbe,startY:_0x281484,endY:_0x21e625}=_0x22f4a5,_0x4d8e7d=this['_sheetDrawingService']['getDrawingData'](_0x147a27,_0x8b735d),_0x13f55e=this[_0x8fd55a(0x3fd)]['slice']();for(let [_0x3670f7,_0x15e29f]of Object['entries'](_0x4d8e7d)){if(_0x15e29f[_0x8fd55a(0x2c9)]!==a['DrawingTypeEnum'][_0x8fd55a(0x33c)])continue;let {transform:_0x237ca5}=_0x15e29f;if(!_0x237ca5)continue;let {left:_0x1535f6=0x0,top:_0x2087cf=0x0,width:_0xffc76f=0x0,height:_0x383adc=0x0}=_0x237ca5;_0x2ea7a6<=_0x1535f6&&_0x149cbe>=_0x1535f6+_0xffc76f&&_0x281484<=_0x2087cf&&_0x21e625>=_0x2087cf+_0x383adc&&_0x13f55e[_0x8fd55a(0x21f)](_0x15e29f);}_0x13f55e[_0x8fd55a(0x327)]>0x0&&(this[_0x8fd55a(0x264)]={'unitId':_0x147a27,'subUnitId':_0x8b735d,'copyType':_0x413d2c,'copyRange':_0x5c27a6,'drawings':_0x13f55e});}[_0x58257(0x17c)](_0xa307ba,_0x1de1a1){const _0x6c0d96=_0x58257;let {unitId:_0x6f2f6b,subUnitId:_0x3ca22d,range:_0x52ce3e}=_0xa307ba,_0x3ab982=this[_0x6c0d96(0x2e8)][_0x6c0d96(0x317)](_0x6f2f6b,_0x3ca22d);if(!_0x3ab982)return{'redos':[],'undos':[]};let _0x3868e0=(0x0,o[_0x6c0d96(0x303)])(_0x52ce3e),{unitId:_0x5f192a,subUnitId:_0xb617df,copyRange:_0x36024d,drawings:_0xc2465a}=this[_0x6c0d96(0x264)],_0xf58cbc=this[_0x6c0d96(0x2e8)][_0x6c0d96(0x317)](_0x5f192a,_0xb617df);if(!_0xf58cbc)return{'redos':[],'undos':[]};let _0x180794;if(!_0x36024d){let _0x27f2a3=0x1/0x0,_0x3db196=0x1/0x0;for(let _0x4b512a of _0xc2465a){let {left:_0x1c9e8f=0x0,top:_0x4da73e=0x0}=_0x4b512a[_0x6c0d96(0x30a)]??{};_0x1c9e8f<_0x27f2a3&&(_0x27f2a3=_0x1c9e8f),_0x4da73e<_0x3db196&&(_0x3db196=_0x4da73e);}_0x27f2a3!==0x1/0x0&&_0x3db196!==0x1/0x0&&(_0x180794={'left':_0x27f2a3,'top':_0x3db196});}let _0x36026d=new Map();if(!_0x1de1a1){for(let _0x4c83ed of _0xc2465a)_0x36026d['set'](_0x4c83ed[_0x6c0d96(0x3d0)],(0x0,a[_0x6c0d96(0x1b0)])());}let _0x30b44f=[],_0xb88e15=[];for(let _0x2aad5c of _0xc2465a){let {drawingId:_0x1ce364,transform:_0x402156,sheetTransform:_0x38c535}=_0x2aad5c;if(!_0x402156||!_0x38c535)continue;let _0x154f7c=this[_0x6c0d96(0x319)]({'transform':_0x402156,'sheetTransform':_0x38c535},{'skeleton':_0xf58cbc,'range':_0x36024d},{'skeleton':_0x3ab982,'range':_0x3868e0},_0x180794);if(_0x1de1a1){let {redos:_0x136fd0,undos:_0x2cab5f}=this[_0x6c0d96(0x3ae)]({'fromUnitId':_0x5f192a,'fromSubUnitId':_0xb617df,'toUnitId':_0x6f2f6b,'toSubUnitId':_0x3ca22d,'drawing':_0x2aad5c,'newTransforms':_0x154f7c});_0x30b44f['push'](..._0x136fd0),_0xb88e15[_0x6c0d96(0x21f)](..._0x2cab5f);continue;}let {redos:_0x39a6d7,undos:_0x2dd965}=this[_0x6c0d96(0x2d6)]({'toUnitId':_0x6f2f6b,'toSubUnitId':_0x3ca22d,'drawing':_0x2aad5c,'newTransforms':_0x154f7c,'newDrawingId':_0x36026d[_0x6c0d96(0x27a)](_0x1ce364),'idMap':_0x36026d});_0x30b44f[_0x6c0d96(0x21f)](..._0x39a6d7),_0xb88e15[_0x6c0d96(0x21f)](..._0x2dd965);}return{'redos':_0x30b44f,'undos':_0xb88e15};}[_0x58257(0x3ae)](_0x1c8b80){const _0x36e719=_0x58257;let {fromUnitId:_0x33c4e5,fromSubUnitId:_0x416f29,toUnitId:_0x4f9056,toSubUnitId:_0xb3c9c8,drawing:_0x25997d,newTransforms:_0xbf5872}=_0x1c8b80,_0x54ba7f={..._0x25997d,'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'transform':_0xbf5872[_0x36e719(0x30a)],'sheetTransform':_0xbf5872[_0x36e719(0x28d)]};if(_0x4f9056===_0x33c4e5&&_0xb3c9c8===_0x416f29){let {redo:_0xa91abe,undo:_0x9aed89,objects:_0x10baf9}=this[_0x36e719(0x20d)][_0x36e719(0x304)]([_0x54ba7f]);return{'redos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'type':p['DrawingApplyType'][_0x36e719(0x1c7)],'op':_0xa91abe,'objects':_0x10baf9}}],'undos':[{'id':p[_0x36e719(0x22e)]['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'type':p[_0x36e719(0x29f)][_0x36e719(0x1c7)],'op':_0x9aed89,'objects':_0x10baf9}}]};}else{let _0xe7296=this['_sheetDrawingService'][_0x36e719(0x25d)]([_0x25997d]),_0xcc179d=this[_0x36e719(0x20d)]['getBatchAddOp']([_0x54ba7f]),_0xdd02a9=this[_0x36e719(0x1ba)][_0x36e719(0x2f0)](_0x25997d[_0x36e719(0x432)],_0x25997d[_0x36e719(0x44d)],_0x25997d[_0x36e719(0x3d0)]);if(!_0xdd02a9)return{'redos':[],'undos':[]};let _0x4e32aa=_0xdd02a9[_0x36e719(0x43c)](),_0x129329=JSON[_0x36e719(0x3ad)](JSON[_0x36e719(0x37d)](_0xdd02a9[_0x36e719(0x199)]()));return{'redos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x33c4e5,'subUnitId':_0x416f29,'type':p['DrawingApplyType'][_0x36e719(0x1c6)],'op':_0xe7296['redo'],'objects':_0xe7296[_0x36e719(0x3df)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x33c4e5,'subUnitId':_0x416f29,'shapeId':_0x25997d['drawingId']}},{'id':p[_0x36e719(0x22e)]['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'type':p[_0x36e719(0x29f)]['INSERT'],'op':_0xcc179d[_0x36e719(0x1ce)],'objects':_0xcc179d['objects']}},{'id':i[_0x36e719(0x31f)]['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'shapeId':_0x25997d[_0x36e719(0x3d0)],'shapeType':_0x4e32aa,'shapeData':_0x129329}}],'undos':[{'id':p[_0x36e719(0x22e)]['id'],'params':{'unitId':_0x33c4e5,'subUnitId':_0x416f29,'type':p[_0x36e719(0x29f)][_0x36e719(0x16a)],'op':_0xe7296[_0x36e719(0x3ba)],'objects':_0xe7296[_0x36e719(0x3df)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x33c4e5,'subUnitId':_0x416f29,'shapeId':_0x25997d['drawingId'],'shapeType':_0x4e32aa,'shapeData':_0x129329}},{'id':p[_0x36e719(0x22e)]['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'type':p[_0x36e719(0x29f)][_0x36e719(0x1c6)],'op':_0xcc179d['undo'],'objects':_0xcc179d[_0x36e719(0x3df)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4f9056,'subUnitId':_0xb3c9c8,'shapeId':_0x25997d[_0x36e719(0x3d0)]}}]};}}[_0x58257(0x2d6)](_0xc703c4){const _0x3aded7=_0x58257;let {toUnitId:_0x28fed3,toSubUnitId:_0x51005e,drawing:_0x125755,newTransforms:_0x18bc1a,newDrawingId:_0x4bb55a,idMap:_0x289ea6}=_0xc703c4,_0x16a813={..._0x125755,'unitId':_0x28fed3,'subUnitId':_0x51005e,'drawingId':_0x4bb55a,'transform':_0x18bc1a[_0x3aded7(0x30a)],'sheetTransform':_0x18bc1a[_0x3aded7(0x28d)]},{redo:_0x4a776c,undo:_0x22ea00,objects:_0x44f9ab}=this['_sheetDrawingService'][_0x3aded7(0x333)]([_0x16a813]),_0xca4c78=this[_0x3aded7(0x1ba)]['getShapeModel'](_0x125755[_0x3aded7(0x432)],_0x125755[_0x3aded7(0x44d)],_0x125755[_0x3aded7(0x3d0)]);if(!_0xca4c78)return{'redos':[],'undos':[]};let _0x33df5b=_0xca4c78[_0x3aded7(0x43c)](),_0x21aa16=JSON[_0x3aded7(0x3ad)](JSON['stringify'](_0xca4c78['getShapeData']()));if(_0x21aa16[_0x3aded7(0x315)]){var _0x4fe1a7,_0xaf2a6c;let _0x2f115f=(_0x4fe1a7=_0x21aa16[_0x3aded7(0x315)][_0x3aded7(0x1a9)])==null?void 0x0:_0x4fe1a7[_0x3aded7(0x2af)],_0x543ccb=(_0xaf2a6c=_0x21aa16[_0x3aded7(0x315)]['to'])==null?void 0x0:_0xaf2a6c['shapeId'],_0x2d9d93=!_0x2f115f||_0x289ea6['has'](_0x2f115f),_0x598b93=!_0x543ccb||_0x289ea6[_0x3aded7(0x214)](_0x543ccb);_0x2d9d93&&_0x2f115f&&_0x21aa16[_0x3aded7(0x315)]['from']?_0x21aa16[_0x3aded7(0x315)][_0x3aded7(0x1a9)]={..._0x21aa16['relation'][_0x3aded7(0x1a9)],'shapeId':_0x289ea6[_0x3aded7(0x27a)](_0x2f115f)}:_0x21aa16[_0x3aded7(0x315)][_0x3aded7(0x1a9)]=void 0x0,_0x598b93&&_0x543ccb&&_0x21aa16[_0x3aded7(0x315)]['to']?_0x21aa16['relation']['to']={..._0x21aa16[_0x3aded7(0x315)]['to'],'shapeId':_0x289ea6[_0x3aded7(0x27a)](_0x543ccb)}:_0x21aa16[_0x3aded7(0x315)]['to']=void 0x0;}return{'redos':[{'id':p[_0x3aded7(0x22e)]['id'],'params':{'unitId':_0x28fed3,'subUnitId':_0x51005e,'type':p[_0x3aded7(0x29f)][_0x3aded7(0x16a)],'op':_0x4a776c,'objects':_0x44f9ab}},{'id':i[_0x3aded7(0x31f)]['id'],'params':{'unitId':_0x28fed3,'subUnitId':_0x51005e,'shapeId':_0x4bb55a,'shapeType':_0x33df5b,'shapeData':_0x21aa16}}],'undos':[{'id':p[_0x3aded7(0x22e)]['id'],'params':{'unitId':_0x28fed3,'subUnitId':_0x51005e,'type':p['DrawingApplyType'][_0x3aded7(0x1c6)],'op':_0x22ea00,'objects':_0x44f9ab}},{'id':i[_0x3aded7(0x41a)]['id'],'params':{'unitId':_0x28fed3,'subUnitId':_0x51005e,'shapeId':_0x4bb55a}}]};}[_0x58257(0x319)](_0x58c4e8,_0x60ccb4,_0x305fcf,_0x22570f){const _0x20dba7=_0x58257;let {range:_0x6cd2f5,skeleton:_0x285b9b}=_0x60ccb4,{range:_0x200e5f,skeleton:_0x32a8f7}=_0x305fcf,{transform:_0x47bdea,sheetTransform:_0x3e4aa3}=_0x58c4e8,_0xe5623e={..._0x47bdea};if(_0x6cd2f5){let _0xebbbff=(0x0,o['attachRangeWithCoord'])(_0x285b9b,_0x6cd2f5),_0xa3b18=(0x0,o['attachRangeWithCoord'])(_0x32a8f7,_0x200e5f);if(_0xebbbff&&_0xa3b18){let _0x4da6e3=_0xa3b18[_0x20dba7(0x17f)]-_0xebbbff[_0x20dba7(0x17f)],_0x1a5e9f=_0xa3b18[_0x20dba7(0x227)]-_0xebbbff[_0x20dba7(0x227)];_0xe5623e[_0x20dba7(0x19c)]=(_0xe5623e['left']??0x0)+_0x4da6e3,_0xe5623e['top']=(_0xe5623e['top']??0x0)+_0x1a5e9f;}}else{let _0x381569=(0x0,o[_0x20dba7(0x1fb)])(_0x32a8f7,_0x200e5f);if(_0x22570f&&_0x381569){let _0xe86f1b=(_0xe5623e[_0x20dba7(0x19c)]??0x0)-_0x22570f[_0x20dba7(0x19c)],_0x1285ae=(_0xe5623e[_0x20dba7(0x44b)]??0x0)-_0x22570f[_0x20dba7(0x44b)];_0xe5623e[_0x20dba7(0x19c)]=_0x381569['startX']+_0xe86f1b,_0xe5623e[_0x20dba7(0x44b)]=_0x381569['startY']+_0x1285ae;}else _0xe5623e['left']=_0x381569==null?void 0x0:_0x381569[_0x20dba7(0x17f)],_0xe5623e[_0x20dba7(0x44b)]=_0x381569==null?void 0x0:_0x381569['startY'];}return{'transform':_0xe5623e,'sheetTransform':(0x0,p[_0x20dba7(0x1f2)])(_0xe5623e,_0x32a8f7)??_0x3e4aa3};}};_t=k([O(0x0,(0x0,a['Inject'])(o[_0x58257(0x1ca)])),O(0x1,(0x0,a[_0x58257(0x183)])(l['ISheetClipboardService'])),O(0x2,(0x0,a[_0x58257(0x183)])(p[_0x58257(0x320)])),O(0x3,(0x0,a[_0x58257(0x183)])(i[_0x58257(0x45a)])),O(0x4,(0x0,a[_0x58257(0x183)])(_['SheetsDrawingGroupCopyPasteController']))],_t);var vt=class extends c['Shape']{constructor(_0x17b72e,_0x21e958){const _0x2840bf=_0x58257;super(_0x17b72e,_0x21e958),T(this,'_shapeId',null),T(this,'_index',null),T(this,_0x2840bf(0x23c),null),T(this,_0x2840bf(0x1d4),null),T(this,_0x2840bf(0x225),!0x1),_0x21e958&&this[_0x2840bf(0x322)](_0x21e958);}[_0x58257(0x189)](){const _0x49ba99=_0x58257;return{'unitId':this[_0x49ba99(0x23c)],'subUnitId':this[_0x49ba99(0x1d4)],'drawingId':this['_shapeId']};}[_0x58257(0x322)](_0x2df48b){const _0x3950cd=_0x58257;_0x2df48b[_0x3950cd(0x2af)]!==void 0x0&&(this[_0x3950cd(0x2a8)]=_0x2df48b[_0x3950cd(0x2af)]),_0x2df48b[_0x3950cd(0x432)]!==void 0x0&&(this[_0x3950cd(0x23c)]=_0x2df48b[_0x3950cd(0x432)]),_0x2df48b[_0x3950cd(0x44d)]!==void 0x0&&(this[_0x3950cd(0x1d4)]=_0x2df48b[_0x3950cd(0x44d)]),_0x2df48b[_0x3950cd(0x276)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x2df48b[_0x3950cd(0x276)]),this['transformByState']({'width':_0x2df48b[_0x3950cd(0x22f)],'height':_0x2df48b[_0x3950cd(0x1da)]});}[_0x58257(0x215)](_0x14b9f7){const _0x3712b0=_0x58257;c[_0x3712b0(0x268)][_0x3712b0(0x3b0)](_0x14b9f7,{'radius':n[_0x3712b0(0x2f6)][_0x3712b0(0x1d3)],'fill':n[_0x3712b0(0x2f6)][_0x3712b0(0x439)],'stroke':n[_0x3712b0(0x2f6)][_0x3712b0(0x469)],'strokeWidth':n['ShapeDefaultConfig'][_0x3712b0(0x162)],'evented':!0x0});}};let yt=class extends a[_0x58257(0x40f)]{constructor(_0x4326df,_0x17ab86,_0x11de3c,_0x47afd9,_0x2b7726,_0x12ea69,_0x49e906,_0x454ccd){const _0x4c6c22=_0x58257;super(),this[_0x4c6c22(0x1f7)]=_0x4326df,this['_commandService']=_0x17ab86,this[_0x4c6c22(0x1c3)]=_0x11de3c,this[_0x4c6c22(0x195)]=_0x47afd9,this[_0x4c6c22(0x2e5)]=_0x2b7726,this[_0x4c6c22(0x396)]=_0x12ea69,this[_0x4c6c22(0x3bb)]=_0x49e906,this[_0x4c6c22(0x16f)]=_0x454ccd,T(this,_0x4c6c22(0x255),void 0x0),T(this,_0x4c6c22(0x23c),void 0x0),T(this,_0x4c6c22(0x1d4),void 0x0),T(this,'_connectorObjects',[]),T(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),T(this,'_activeShapeModel',void 0x0),T(this,_0x4c6c22(0x1c4),!0x1),T(this,_0x4c6c22(0x156),!0x1),T(this,'_hasReset',!0x1),T(this,_0x4c6c22(0x17a),void 0x0),T(this,_0x4c6c22(0x146),void 0x0),T(this,_0x4c6c22(0x370),null),this[_0x4c6c22(0x466)]();}[_0x58257(0x466)](){const _0x4052d0=_0x58257;this[_0x4052d0(0x28a)](),this[_0x4052d0(0x3f8)]();}['_getDrawingRect'](){const _0x2ccda4=_0x58257;if(!this[_0x2ccda4(0x23c)]||!this[_0x2ccda4(0x1d4)]||!this['_activeShapeId'])return;let _0x5ecb5f={'unitId':this[_0x2ccda4(0x23c)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2ccda4(0x255)]},{transform:_0x52ecd9}=this[_0x2ccda4(0x195)][_0x2ccda4(0x463)](_0x5ecb5f);if(_0x52ecd9)return{'left':_0x52ecd9[_0x2ccda4(0x19c)]||0x0,'top':_0x52ecd9[_0x2ccda4(0x44b)]||0x0,'width':_0x52ecd9[_0x2ccda4(0x22f)]||0x0,'height':_0x52ecd9['height']||0x0,'flipX':_0x52ecd9['flipX']||!0x1,'flipY':_0x52ecd9['flipY']||!0x1,'angle':_0x52ecd9[_0x2ccda4(0x39a)]};}['_addShapeConnectorHandlerObjects'](){const _0x2fc466=_0x58257;if(this[_0x2fc466(0x23c)]===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x515526=this[_0x2fc466(0x1c3)][_0x2fc466(0x221)](this[_0x2fc466(0x23c)]);if(!_0x515526||!_0x515526['with'](l['SheetSkeletonManagerService'])[_0x2fc466(0x451)]())return;let {scene:_0x1dc194}=_0x515526,_0x26b09a=this[_0x2fc466(0x339)]();if(!_0x26b09a)return;let _0x51f29f=this['_sheetsShapeService'][_0x2fc466(0x2f0)](this[_0x2fc466(0x23c)],this[_0x2fc466(0x1d4)],this[_0x2fc466(0x255)]);if(!_0x51f29f||!(0x0,n[_0x2fc466(0x34c)])(_0x51f29f[_0x2fc466(0x43c)]()))return;let _0x3350c0=_0x51f29f[_0x2fc466(0x39b)]();if(_0x3350c0[_0x2fc466(0x327)]<0x2)return;let _0x6a4c29=new n['ConnectorCoordinateTransform'](_0x26b09a),_0x4563d8=_0x3350c0[0x0],_0x441cda=_0x3350c0[_0x3350c0['length']-0x1],_0x1250e8=_0x6a4c29['localToWorld'](_0x4563d8),_0x1a6150=_0x6a4c29['localToWorld'](_0x441cda);this[_0x2fc466(0x26a)](_0x1dc194,{..._0x1250e8},!0x0),this[_0x2fc466(0x26a)](_0x1dc194,{..._0x1a6150},!0x1);}[_0x58257(0x26a)](_0x461840,_0x1a0dda,_0x219936){const _0x36e9ee=_0x58257;if(this[_0x36e9ee(0x255)]===void 0x0||this[_0x36e9ee(0x23c)]===void 0x0||this[_0x36e9ee(0x1d4)]===void 0x0)return;let _0x51de7b=_0x36e9ee(0x2d9)+this[_0x36e9ee(0x23c)]+'-'+this[_0x36e9ee(0x1d4)]+'-'+this[_0x36e9ee(0x255)]+'-'+(_0x219936?_0x36e9ee(0x392):_0x36e9ee(0x3be)),_0x5b93cd=_0x461840[_0x36e9ee(0x441)](_0x51de7b);if(_0x5b93cd){_0x5b93cd[_0x36e9ee(0x355)]({'left':_0x1a0dda['x']-n[_0x36e9ee(0x2f6)]['cxnPointRadius'],'top':_0x1a0dda['y']-n[_0x36e9ee(0x2f6)]['cxnPointRadius']});return;}let _0x4aa789=new vt(_0x51de7b,{'left':_0x1a0dda['x']-n[_0x36e9ee(0x2f6)][_0x36e9ee(0x1d3)],'top':_0x1a0dda['y']-n[_0x36e9ee(0x2f6)][_0x36e9ee(0x1d3)],'shapeId':this['_activeShapeId'],'unitId':this[_0x36e9ee(0x23c)],'subUnitId':this[_0x36e9ee(0x1d4)],'isStartConnectorPoint':_0x219936,'width':n[_0x36e9ee(0x2f6)][_0x36e9ee(0x1d3)]*0x2,'height':n[_0x36e9ee(0x2f6)]['cxnPointRadius']*0x2,'zIndex':c[_0x36e9ee(0x1e6)]+0x1,'evented':!0x0});this[_0x36e9ee(0x29d)][_0x36e9ee(0x21f)](_0x4aa789),this[_0x36e9ee(0x175)](_0x4aa789,_0x461840,_0x219936),_0x461840[_0x36e9ee(0x1fd)](_0x4aa789,c[_0x36e9ee(0x1e6)]+0x1);}['_getScrollInfo'](_0x2b501c,_0x349e37){const _0x587fba=_0x58257;var _0x4e3a0f;let _0x37fa89={'x':0x0,'y':0x0};if(!_0x2b501c||!_0x349e37)return _0x37fa89;let _0x53b137=this[_0x587fba(0x1c3)][_0x587fba(0x221)](_0x2b501c);if(!_0x53b137||!_0x53b137[_0x587fba(0x420)](l[_0x587fba(0x247)])[_0x587fba(0x317)](_0x349e37))return _0x37fa89;let _0x4c4d82=_0x53b137['with'](l[_0x587fba(0x40a)]),_0x5e92d2=_0x4c4d82==null?void 0x0:_0x4c4d82[_0x587fba(0x1f5)]();if(!_0x5e92d2)return _0x37fa89;let _0x1ceb39=(_0x4e3a0f=this[_0x587fba(0x2e5)][_0x587fba(0x30b)](_0x2b501c))==null?void 0x0:_0x4e3a0f[_0x587fba(0x401)](_0x349e37);if(!_0x1ceb39)return _0x37fa89;let _0x260178=(0x0,l[_0x587fba(0x2f2)])(_0x5e92d2[_0x587fba(0x25b)],_0x5e92d2[_0x587fba(0x413)],_0x53b137['scene'],_0x1ceb39);return _0x260178?{'x':_0x260178[_0x587fba(0x201)],'y':_0x260178[_0x587fba(0x207)]}:_0x37fa89;}[_0x58257(0x3f3)](_0x4b1d5b,_0x22dafb){const _0xd9bbb1=_0x58257;var _0x19bae0;let _0x4d5a6d=(_0x19bae0=this['_univerInstanceService'][_0xd9bbb1(0x30b)](_0x4b1d5b))==null?void 0x0:_0x19bae0[_0xd9bbb1(0x401)](_0x22dafb);return(_0x4d5a6d==null?void 0x0:_0x4d5a6d['getZoomRatio']())??0x1;}[_0x58257(0x462)](_0x4474f7,_0xf661ee,_0x3aaf70,_0x544ed9,_0x4cb333){const _0x3bb5db=_0x58257;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0x3bb5db(0x146)]['unsubscribe'](),this[_0x3bb5db(0x3bb)]['refreshAdjustControls']();let _0x5bc134=this[_0x3bb5db(0x370)];this[_0x3bb5db(0x16f)][_0x3bb5db(0x3b4)]();let _0x26945f=this[_0x3bb5db(0x2ce)](this[_0x3bb5db(0x23c)],this[_0x3bb5db(0x1d4)]),_0x2c5eaa=this['_getZoomRatio'](this[_0x3bb5db(0x23c)],this['_subUnitId']),_0x384852={'x':_0x3aaf70['offsetX']/_0x2c5eaa+_0x26945f['x'],'y':_0x3aaf70[_0x3bb5db(0x34e)]/_0x2c5eaa+_0x26945f['y']},_0x666caf=_0x5bc134?_0x5bc134[_0x3bb5db(0x41e)]:_0x384852,_0x111143=_0x544ed9?this[_0x3bb5db(0x1d7)][_0x3bb5db(0x31a)]():this[_0x3bb5db(0x1d7)][_0x3bb5db(0x35c)](),_0x3a9017=this[_0x3bb5db(0x1d7)][_0x3bb5db(0x43c)]();_0x111143?this['_handleConnectedEndpointPointerUp'](_0x111143,_0x666caf,_0x544ed9,_0x5bc134,_0x4cb333):this[_0x3bb5db(0x2ed)](_0xf661ee,_0x666caf,_0x544ed9,_0x5bc134,_0x4cb333,_0x3a9017),this[_0x3bb5db(0x1c4)]=!0x1,this[_0x3bb5db(0x388)]=!0x1,this[_0x3bb5db(0x370)]=null,_0x4474f7[_0x3bb5db(0x40d)]();}[_0x58257(0x2ed)](_0x37e8ad,_0x43664b,_0xf9059d,_0x816258,_0x5ca721,_0x4ab308){const _0x1ea350=_0x58257;let _0x352495=_0x4ab308===n[_0x1ea350(0x421)]['Line']||_0x4ab308===n[_0x1ea350(0x421)][_0x1ea350(0x374)],_0xb39fb0=_0xf9059d?_0x43664b:_0x37e8ad,_0x3e4977=_0xf9059d?_0x37e8ad:_0x43664b,_0x580299=this[_0x1ea350(0x1d7)][_0x1ea350(0x39b)](),_0x4237ce=(0x0,n[_0x1ea350(0x2bf)])(this[_0x1ea350(0x1d7)]['getShapeType']()),_0x28ec40=n[_0x1ea350(0x2aa)][_0x1ea350(0x3a2)](_0x580299,_0x4237ce),_0x55bae1=_0x352495?n['ConnectorCoordinateTransform'][_0x1ea350(0x34b)](_0xb39fb0,_0x3e4977):n[_0x1ea350(0x2aa)][_0x1ea350(0x28e)](_0x37e8ad,_0x43664b,_0xf9059d,_0x28ec40);_0x816258?this[_0x1ea350(0x3a6)](_0x55bae1,_0x816258,_0xf9059d,_0x5ca721):this['_executeResizeCommand'](_0x55bae1,_0x5ca721);}[_0x58257(0x190)](_0x15945c,_0x476c6b,_0x6fe11e,_0x2d9afd,_0x553611){const _0x2c91a7=_0x58257;let _0xa6fbea=this[_0x2c91a7(0x3b9)](_0x15945c);if(!_0xa6fbea)return;let _0x5180de=_0x2d9afd?_0x2d9afd[_0x2c91a7(0x39a)]:this[_0x2c91a7(0x251)](_0xa6fbea[_0x2c91a7(0x375)],_0x476c6b),_0x1abe74;if(_0x2d9afd){let _0x342e49=this[_0x2c91a7(0x195)][_0x2c91a7(0x463)]({'unitId':_0x2d9afd[_0x2c91a7(0x432)],'subUnitId':_0x2d9afd[_0x2c91a7(0x44d)],'drawingId':_0x2d9afd[_0x2c91a7(0x2af)]});if(_0x342e49!=null&&_0x342e49['transform']){let {left:_0x488b1e=0x0,top:_0x4829c5=0x0,width:_0x4c3c7e=0x0,height:_0x3df83c=0x0,angle:_0x479176}=_0x342e49[_0x2c91a7(0x30a)];_0x1abe74=(0x0,n[_0x2c91a7(0x411)])({'left':_0x488b1e,'top':_0x4829c5,'width':_0x4c3c7e,'height':_0x3df83c},_0x479176||0x0);}else _0x1abe74={'left':_0x476c6b['x'],'top':_0x476c6b['y'],'width':0x0,'height':0x0};}else _0x1abe74={'left':_0x476c6b['x'],'top':_0x476c6b['y'],'width':0x0,'height':0x0};let _0x406fce={'point':_0x476c6b,'angle':_0x5180de,'bounds':_0x1abe74},_0x313dc2=_0x6fe11e?_0x406fce:_0xa6fbea,_0x321960=_0x6fe11e?_0xa6fbea:_0x406fce,_0x632929=this[_0x2c91a7(0x1d7)][_0x2c91a7(0x43c)](),_0x4d95f1=(0x0,n[_0x2c91a7(0x2cd)])(_0x313dc2,_0x321960,_0x632929);this[_0x2c91a7(0x1d7)][_0x2c91a7(0x405)]();let _0x439015=(0x0,n[_0x2c91a7(0x177)])(_0x4d95f1,_0x632929);_0x2d9afd?this[_0x2c91a7(0x19a)](_0x439015,_0x2d9afd,_0x15945c,_0x6fe11e,_0x553611):this[_0x2c91a7(0x2ff)](_0x439015,_0x15945c,_0x6fe11e,_0x553611);}[_0x58257(0x3a6)](_0x16a24d,_0x5c5b5d,_0x4034ee,_0x50ff29){const _0xcd848=_0x58257;let _0x4daa64=this[_0xcd848(0x1d7)]['getShapeData']()[_0xcd848(0x315)],_0x5d7970={..._0x4daa64},_0x534e41={'shapeId':_0x5c5b5d[_0xcd848(0x2af)],'cxnIndex':_0x5c5b5d[_0xcd848(0x213)]};_0x4034ee?_0x5d7970[_0xcd848(0x1a9)]=_0x534e41:_0x5d7970['to']=_0x534e41;let _0x456b42=this[_0xcd848(0x1d7)]['getShapeType'](),_0x3284d7=(0x0,n[_0xcd848(0x177)])(_0x16a24d[_0xcd848(0x1d8)],_0x456b42),_0x1df935={'unitId':this[_0xcd848(0x23c)],'subUnitId':this[_0xcd848(0x1d4)],'connectorShapeId':this[_0xcd848(0x255)],'width':_0x16a24d[_0xcd848(0x390)][_0xcd848(0x22f)],'height':_0x16a24d[_0xcd848(0x390)][_0xcd848(0x1da)],'left':_0x16a24d['worldRect'][_0xcd848(0x19c)],'top':_0x16a24d['worldRect'][_0xcd848(0x44b)],'flipX':_0x16a24d['worldRect'][_0xcd848(0x47c)]||!0x1,'flipY':_0x16a24d[_0xcd848(0x390)]['flipY']||!0x1,'newAdjustValues':_0x3284d7[_0xcd848(0x2a2)],'oldAdjustValues':_0x50ff29,'oldRelation':_0x4daa64,'newRelation':_0x5d7970,'newLineType':_0x3284d7[_0xcd848(0x191)],'oldLineType':_0x456b42};this[_0xcd848(0x25c)][_0xcd848(0x2db)](i[_0xcd848(0x2ba)]['id'],_0x1df935);}[_0x58257(0x31b)](_0x8564bd,_0x5e6aee){const _0x4a9c21=_0x58257;let _0x29162e=this[_0x4a9c21(0x1d7)][_0x4a9c21(0x43c)](),_0x1eb735=(0x0,n[_0x4a9c21(0x177)])(_0x8564bd['worldPoints'],_0x29162e),_0x4f5350={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this[_0x4a9c21(0x255)],'width':_0x8564bd[_0x4a9c21(0x390)][_0x4a9c21(0x22f)],'height':_0x8564bd[_0x4a9c21(0x390)][_0x4a9c21(0x1da)],'left':_0x8564bd['worldRect'][_0x4a9c21(0x19c)],'top':_0x8564bd[_0x4a9c21(0x390)][_0x4a9c21(0x44b)],'flipX':_0x8564bd[_0x4a9c21(0x390)][_0x4a9c21(0x47c)]||!0x1,'flipY':_0x8564bd[_0x4a9c21(0x390)]['flipY']||!0x1,'angle':_0x8564bd['worldRect'][_0x4a9c21(0x39a)]||0x0,'newAdjustValues':_0x1eb735['adjustValues'],'oldAdjustValues':_0x5e6aee,'newLineType':_0x1eb735[_0x4a9c21(0x191)],'oldLineType':_0x29162e};this[_0x4a9c21(0x25c)][_0x4a9c21(0x2db)](i[_0x4a9c21(0x349)]['id'],_0x4f5350);}['_executeConnectedRouteConnectionCommand'](_0x2620cb,_0x33fb80,_0x459e6e,_0x2a3c8d,_0x5cbff6){const _0x50368a=_0x58257;let _0x149b51=this[_0x50368a(0x1d7)][_0x50368a(0x199)]()[_0x50368a(0x315)],_0x18c9a8={..._0x149b51},_0x4ce539={'shapeId':_0x33fb80[_0x50368a(0x2af)],'cxnIndex':_0x33fb80[_0x50368a(0x213)]};_0x2a3c8d?(_0x18c9a8[_0x50368a(0x1a9)]=_0x4ce539,_0x18c9a8['to']=_0x459e6e):(_0x18c9a8[_0x50368a(0x1a9)]=_0x459e6e,_0x18c9a8['to']=_0x4ce539);let _0x17133b={'unitId':this[_0x50368a(0x23c)],'subUnitId':this[_0x50368a(0x1d4)],'connectorShapeId':this[_0x50368a(0x255)],'width':_0x2620cb['worldRect'][_0x50368a(0x22f)],'height':_0x2620cb['worldRect'][_0x50368a(0x1da)],'left':_0x2620cb[_0x50368a(0x390)]['left'],'top':_0x2620cb[_0x50368a(0x390)][_0x50368a(0x44b)],'flipX':_0x2620cb['worldRect'][_0x50368a(0x47c)]||!0x1,'flipY':_0x2620cb[_0x50368a(0x390)][_0x50368a(0x335)]||!0x1,'oldAdjustValues':_0x5cbff6,'newAdjustValues':_0x2620cb[_0x50368a(0x2a2)],'newLineType':_0x2620cb[_0x50368a(0x191)],'rotation':_0x2620cb[_0x50368a(0x3bf)],'oldRelation':_0x149b51,'newRelation':_0x18c9a8};this[_0x50368a(0x25c)][_0x50368a(0x2db)](i[_0x50368a(0x2ba)]['id'],_0x17133b);}[_0x58257(0x2ff)](_0x1c8d7f,_0xcec743,_0x23cc07,_0x1f8565){const _0x1a2b54=_0x58257;let _0x525833=this[_0x1a2b54(0x1d7)][_0x1a2b54(0x199)]()[_0x1a2b54(0x315)],_0x338373={};_0x23cc07?(_0x338373['to']=_0xcec743,_0x338373[_0x1a2b54(0x1a9)]=void 0x0):(_0x338373[_0x1a2b54(0x1a9)]=_0xcec743,_0x338373['to']=void 0x0);let _0x4966de={'unitId':this[_0x1a2b54(0x23c)],'subUnitId':this[_0x1a2b54(0x1d4)],'connectorShapeId':this['_activeShapeId'],'width':_0x1c8d7f['worldRect'][_0x1a2b54(0x22f)],'height':_0x1c8d7f[_0x1a2b54(0x390)]['height'],'left':_0x1c8d7f[_0x1a2b54(0x390)][_0x1a2b54(0x19c)],'top':_0x1c8d7f[_0x1a2b54(0x390)][_0x1a2b54(0x44b)],'flipX':_0x1c8d7f[_0x1a2b54(0x390)]['flipX']||!0x1,'flipY':_0x1c8d7f['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x1f8565,'newAdjustValues':_0x1c8d7f[_0x1a2b54(0x2a2)],'newLineType':_0x1c8d7f[_0x1a2b54(0x191)],'rotation':_0x1c8d7f[_0x1a2b54(0x3bf)],'oldRelation':_0x525833,'newRelation':_0x338373};this[_0x1a2b54(0x25c)][_0x1a2b54(0x2db)](i[_0x1a2b54(0x2ba)]['id'],_0x4966de);}[_0x58257(0x175)](_0x3750bc,_0x5258c4,_0x2ab9e0){const _0x4c2bff=_0x58257;this[_0x4c2bff(0x270)]((0x0,a[_0x4c2bff(0x19f)])(_0x3750bc[_0x4c2bff(0x15b)][_0x4c2bff(0x37c)]((_0x558ad2,_0x3d9997)=>{const _0x12be73=_0x4c2bff;let _0x3212d9=_0x3750bc[_0x12be73(0x189)]();if(this[_0x12be73(0x1d7)]=this[_0x12be73(0x396)][_0x12be73(0x2f0)](_0x3212d9[_0x12be73(0x432)],_0x3212d9['subUnitId'],_0x3212d9[_0x12be73(0x3d0)]),!this[_0x12be73(0x1d7)])return;let _0x20b7db={};this[_0x12be73(0x1d7)]['getAdjustNames']()[_0x12be73(0x1d0)](_0x579b32=>{const _0x41115c=_0x12be73;let _0x24577d=this['_activeShapeModel'][_0x41115c(0x161)](_0x579b32);_0x24577d!==void 0x0&&(_0x20b7db[_0x579b32]=_0x24577d);});let _0x1166ca=this[_0x12be73(0x339)]();if(!_0x1166ca)return;this[_0x12be73(0x367)]={..._0x1166ca};let _0x1f0db0=new n[(_0x12be73(0x2aa))](this['_baseDrawingRect']),_0x23ba65=(0x0,s[_0x12be73(0x389)])({'unitId':this[_0x12be73(0x23c)],'subUnitId':this[_0x12be73(0x1d4)],'drawingId':this['_activeShapeId']}),_0x5daf9a=_0x5258c4[_0x12be73(0x441)](_0x23ba65);this[_0x12be73(0x1c4)]=!0x0,_0x5258c4[_0x12be73(0x28f)](),this[_0x12be73(0x16f)][_0x12be73(0x3fa)](_0x5258c4,this[_0x12be73(0x23c)],this[_0x12be73(0x1d4)],this[_0x12be73(0x255)]),this[_0x12be73(0x370)]=null;let _0x35a3b8=this[_0x12be73(0x1d7)][_0x12be73(0x39b)](),_0x5edfa9=_0x35a3b8[0x0],_0x39be6c=_0x35a3b8[_0x35a3b8[_0x12be73(0x327)]-0x1],_0x5364d3=_0x2ab9e0?_0x1f0db0[_0x12be73(0x29e)](_0x39be6c):_0x1f0db0[_0x12be73(0x29e)](_0x5edfa9);this['_cxtHandlerPointerMove']=_0x5258c4[_0x12be73(0x3f4)][_0x12be73(0x37c)]((_0x24dc03,_0x454288)=>{const _0x126c02=_0x12be73;if(!this[_0x126c02(0x1c4)]||!this[_0x126c02(0x1d7)])return;this['_hasReset']||=(this[_0x126c02(0x3bb)][_0x126c02(0x43b)](),this[_0x126c02(0x1d7)][_0x126c02(0x443)](),!0x0);let _0x1ef659=this[_0x126c02(0x2ce)](this[_0x126c02(0x23c)],this[_0x126c02(0x1d4)]),_0x46fdd1=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x4c2b12={'x':_0x24dc03[_0x126c02(0x3f6)]/_0x46fdd1+_0x1ef659['x'],'y':_0x24dc03['offsetY']/_0x46fdd1+_0x1ef659['y']},_0x5bafc9=this[_0x126c02(0x16f)][_0x126c02(0x2c5)](_0x4c2b12);if(_0x5bafc9){let {shapeId:_0x6c500b,unitId:_0x29c8b9,subUnitId:_0x150e91}=_0x5bafc9;if(_0x6c500b&&_0x29c8b9&&_0x150e91){let _0x232b30=(0x0,s[_0x126c02(0x389)])({'unitId':_0x29c8b9,'subUnitId':_0x150e91,'drawingId':_0x6c500b});_0x5bafc9[_0x126c02(0x39a)]=(_0x5258c4[_0x126c02(0x441)](_0x232b30)['angle']||0x0)+_0x5bafc9[_0x126c02(0x39a)];}}this[_0x126c02(0x370)]=_0x5bafc9;let _0x377e1e=_0x2ab9e0?this[_0x126c02(0x1d7)][_0x126c02(0x31a)]():this['_activeShapeModel'][_0x126c02(0x35c)]();if(_0x377e1e){this[_0x126c02(0x351)](_0x377e1e,_0x4c2b12,_0x2ab9e0,_0x5daf9a,_0x3750bc);return;}this[_0x126c02(0x158)](_0x4c2b12,_0x5364d3,_0x2ab9e0,_0x5daf9a,_0x3750bc);}),this[_0x12be73(0x146)]=_0x5258c4[_0x12be73(0x29b)][_0x12be73(0x37c)]((_0x2d3797,_0x48f64f)=>{const _0x2d4c6b=_0x12be73;this[_0x2d4c6b(0x462)](_0x5258c4,_0x5364d3,_0x2d3797,_0x2ab9e0,_0x20b7db);}),_0x3d9997[_0x12be73(0x352)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x14cc40,_0x243382,_0x41e39e){const _0x551618=_0x58257;let _0x3af741=this['_sheetsShapeService'][_0x551618(0x3c6)](_0x14cc40,_0x243382,_0x41e39e);if(!_0x3af741||_0x3af741[_0x551618(0x327)]===0x0)return;let _0x2b1dfd=this['_renderManagerService'][_0x551618(0x221)](_0x14cc40);if(!_0x2b1dfd)return;let {scene:_0x9e7d4f}=_0x2b1dfd;for(let _0x65b9a6 of _0x3af741){let _0xd9f75c=_0x65b9a6[_0x551618(0x217)],_0x1a8959=this[_0x551618(0x396)][_0x551618(0x2f0)](_0x14cc40,_0x243382,_0xd9f75c);if(!_0x1a8959)continue;let _0x36b003=_0x1a8959[_0x551618(0x35c)](),_0x2d0825=_0x1a8959['getEndConnectInfo'](),_0x517aa2=(_0x36b003==null?void 0x0:_0x36b003[_0x551618(0x2af)])===_0x41e39e,_0x103121=(0x0,s[_0x551618(0x389)])({'unitId':_0x14cc40,'subUnitId':_0x243382,'drawingId':_0xd9f75c}),_0x19966e=_0x9e7d4f[_0x551618(0x441)](_0x103121);if(!_0x19966e)continue;let _0x41c0be=this[_0x551618(0x195)]['getDrawingByParam']({'unitId':_0x14cc40,'subUnitId':_0x243382,'drawingId':_0xd9f75c});_0x41c0be!=null&&_0x41c0be[_0x551618(0x30a)]&&(_0x36b003&&_0x2d0825?this[_0x551618(0x26d)](_0x14cc40,_0x243382,_0xd9f75c,_0x1a8959,_0x36b003,_0x2d0825,_0x19966e):this[_0x551618(0x3aa)](_0x14cc40,_0x243382,_0xd9f75c,_0x1a8959,_0x517aa2?_0x36b003:_0x2d0825,_0x517aa2,_0x41c0be,_0x19966e));}}[_0x58257(0x26d)](_0x3fa0d1,_0x3a837f,_0x6b6cb4,_0x230d40,_0x57ed18,_0x5f2218,_0x4f5804){const _0x2cb457=_0x58257;let _0x1c266b=this[_0x2cb457(0x23c)],_0x5d949b=this[_0x2cb457(0x1d4)];this[_0x2cb457(0x23c)]=_0x3fa0d1,this[_0x2cb457(0x1d4)]=_0x3a837f;let _0x17362a=this['_getConnectPointInfo'](_0x57ed18),_0x448a01=this['_getConnectPointInfo'](_0x5f2218);if(this[_0x2cb457(0x23c)]=_0x1c266b,this['_subUnitId']=_0x5d949b,!_0x17362a||!_0x448a01)return;let _0x690d07=_0x230d40[_0x2cb457(0x43c)](),_0x17aa95=(0x0,n['routeConnectorLineShape'])(_0x17362a,_0x448a01,_0x690d07);_0x17aa95&&_0x230d40[_0x2cb457(0x369)](_0x17aa95);let _0x10597a=(0x0,n['computeConnectorRouteLayout'])(_0x17aa95,_0x690d07);_0x10597a[_0x2cb457(0x191)]!==_0x690d07&&_0x230d40['changeShapeType'](_0x10597a['lineType']),_0x230d40['clearAdjustValue']();for(let [_0x5213ec,_0x45c539]of Object['entries'](_0x10597a['adjustValues']))_0x230d40[_0x2cb457(0x3cb)](_0x5213ec,_0x45c539);_0x230d40[_0x2cb457(0x272)]({'width':_0x10597a['worldRect'][_0x2cb457(0x22f)],'height':_0x10597a['worldRect'][_0x2cb457(0x1da)]}),_0x4f5804['transformByState']({'flipX':_0x10597a[_0x2cb457(0x390)]['flipX'],'flipY':_0x10597a[_0x2cb457(0x390)][_0x2cb457(0x335)],'left':_0x10597a[_0x2cb457(0x390)][_0x2cb457(0x19c)],'top':_0x10597a[_0x2cb457(0x390)][_0x2cb457(0x44b)],'width':_0x10597a[_0x2cb457(0x390)]['width'],'height':_0x10597a['worldRect'][_0x2cb457(0x1da)],'angle':_0x10597a[_0x2cb457(0x3bf)]}),_0x230d40['removeLinePoints']();}[_0x58257(0x3aa)](_0x157d96,_0x451e5a,_0x357693,_0x4dfc7b,_0x15cf52,_0x53899d,_0x2c69b4,_0x13c5d9){const _0x24a201=_0x58257;let _0x50c28b=this[_0x24a201(0x23c)],_0x604d16=this[_0x24a201(0x1d4)];this[_0x24a201(0x23c)]=_0x157d96,this[_0x24a201(0x1d4)]=_0x451e5a;let _0x2a4dd9=this['_getConnectPointInfo'](_0x15cf52);if(this['_unitId']=_0x50c28b,this[_0x24a201(0x1d4)]=_0x604d16,!_0x2a4dd9)return;let {left:_0x4c8abf=0x0,top:_0xa1edb2=0x0,width:_0x4e70eb=0x0,height:_0x145093=0x0,flipX:_0x39be86=!0x1,flipY:_0x1111de=!0x1}=_0x2c69b4[_0x24a201(0x30a)],_0xff7ccd=_0x4dfc7b[_0x24a201(0x39b)]();if(_0xff7ccd[_0x24a201(0x327)]<0x2)return;let _0x255f28=new n[(_0x24a201(0x2aa))]({'left':_0x4c8abf,'top':_0xa1edb2,'width':_0x4e70eb,'height':_0x145093,'flipX':_0x39be86,'flipY':_0x1111de}),_0x68b86b=_0x53899d?_0xff7ccd[_0xff7ccd[_0x24a201(0x327)]-0x1]:_0xff7ccd[0x0],_0x426a2e=_0x255f28[_0x24a201(0x29e)](_0x68b86b),_0x212eef=n[_0x24a201(0x2aa)]['computeConnectorResizeLayout'](_0x426a2e,_0x2a4dd9[_0x24a201(0x375)],!_0x53899d);_0x13c5d9['transformByState']({'flipX':_0x212eef[_0x24a201(0x390)][_0x24a201(0x47c)],'flipY':_0x212eef[_0x24a201(0x390)][_0x24a201(0x335)],'left':_0x212eef[_0x24a201(0x390)][_0x24a201(0x19c)],'top':_0x212eef[_0x24a201(0x390)][_0x24a201(0x44b)],'width':_0x212eef[_0x24a201(0x390)][_0x24a201(0x22f)],'height':_0x212eef[_0x24a201(0x390)][_0x24a201(0x1da)],'angle':_0x212eef[_0x24a201(0x390)][_0x24a201(0x39a)]}),_0x13c5d9[_0x24a201(0x2b4)](!0x0);}[_0x58257(0x391)](){const _0x4055fb=_0x58257;this[_0x4055fb(0x29d)][_0x4055fb(0x327)]!==0x0&&(this[_0x4055fb(0x29d)][_0x4055fb(0x1d0)](_0x5f2d78=>{const _0x45a5e3=_0x4055fb;_0x5f2d78[_0x45a5e3(0x307)]();}),this[_0x4055fb(0x29d)]=[]);}[_0x58257(0x3f8)](){const _0x4b9c11=_0x58257;let _0x102b2d=this['_univerInstanceService'][_0x4b9c11(0x1ab)](a[_0x4b9c11(0x35a)][_0x4b9c11(0x460)]);this['disposeWithMe'](_0x102b2d[_0x4b9c11(0x3e1)]((0x0,u['switchMap'])(_0xe1d183=>_0xe1d183?_0xe1d183[_0x4b9c11(0x31e)][_0x4b9c11(0x3e1)]((0x0,u[_0x4b9c11(0x418)])(_0x196607=>{const _0xb03afb=_0x4b9c11;if(!_0x196607)return u[_0xb03afb(0x37b)];let _0x41ae4a=_0xe1d183[_0xb03afb(0x14b)](),_0x49dbd8=this[_0xb03afb(0x1c3)][_0xb03afb(0x221)](_0x41ae4a),_0x49e56f=_0x49dbd8==null?void 0x0:_0x49dbd8['scene'];return _0x49e56f?(0x0,u['of'])(_0x49e56f):u[_0xb03afb(0x37b)];})):u['EMPTY']))['subscribe'](_0x57800a=>{const _0x4cd3b2=_0x4b9c11;let _0x2ad4f4=_0x57800a[_0x4cd3b2(0x259)]();this[_0x4cd3b2(0x270)](_0x57800a['onPointerMove$'][_0x4cd3b2(0x37c)](_0x2640ff=>{const _0x5b69b6=_0x4cd3b2;this[_0x5b69b6(0x156)]&&this['_activeShapeId']&&this[_0x5b69b6(0x391)]();})),this[_0x4cd3b2(0x270)](_0x2ad4f4[_0x4cd3b2(0x2bc)][_0x4cd3b2(0x220)](_0x4d2c0e=>{const _0x1bdd00=_0x4cd3b2;let {objects:_0x3245eb}=_0x4d2c0e;this['_clearShapeConnectorHandlerObjects'](),_0x3245eb!==null&&_0x3245eb[_0x1bdd00(0x47b)]===0x1&&_0x3245eb[_0x1bdd00(0x27d)]()[_0x1bdd00(0x358)]()[_0x1bdd00(0x18c)]instanceof E&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x4cd3b2(0x270)](_0x2ad4f4[_0x4cd3b2(0x449)]['subscribe'](_0x32de3e=>{const _0x58e33f=_0x4cd3b2;this[_0x58e33f(0x156)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x4cd3b2(0x270)](_0x57800a[_0x4cd3b2(0x29b)]['subscribeEvent'](()=>{const _0x451f35=_0x4cd3b2;this[_0x451f35(0x156)]&&(this[_0x451f35(0x156)]=!0x1,this[_0x451f35(0x446)]());})),this['disposeWithMe'](_0x2ad4f4[_0x4cd3b2(0x3cd)]['subscribe'](()=>{const _0x49a903=_0x4cd3b2;this[_0x49a903(0x23c)]&&this['_subUnitId']&&this[_0x49a903(0x255)]&&this[_0x49a903(0x195)][_0x49a903(0x463)]({'unitId':this[_0x49a903(0x23c)],'subUnitId':this[_0x49a903(0x1d4)],'drawingId':this[_0x49a903(0x255)]})&&(this[_0x49a903(0x391)](),this[_0x49a903(0x446)]());}));}));}[_0x58257(0x28a)](){const _0xb955f2=_0x58257;this[_0xb955f2(0x270)](this[_0xb955f2(0x195)][_0xb955f2(0x440)][_0xb955f2(0x220)](_0x5c96a8=>{const _0x213a9f=_0xb955f2;if(_0x5c96a8[_0x213a9f(0x327)]===0x1){let _0x58c60d=_0x5c96a8[0x0];if(_0x58c60d[_0x213a9f(0x2c9)]===a[_0x213a9f(0x277)]['DRAWING_SHAPE']){let _0x1ed205=this[_0x213a9f(0x396)][_0x213a9f(0x2f0)](_0x58c60d[_0x213a9f(0x432)],_0x58c60d[_0x213a9f(0x44d)],_0x58c60d[_0x213a9f(0x3d0)]);if(_0x1ed205&&(0x0,n[_0x213a9f(0x34c)])(_0x1ed205[_0x213a9f(0x43c)]())){this['_activeShapeId']=_0x58c60d[_0x213a9f(0x3d0)],this[_0x213a9f(0x23c)]=_0x58c60d[_0x213a9f(0x432)],this[_0x213a9f(0x1d4)]=_0x58c60d['subUnitId'],this[_0x213a9f(0x391)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x213a9f(0x255)]=void 0x0,this[_0x213a9f(0x23c)]=void 0x0,this[_0x213a9f(0x1d4)]=void 0x0,this[_0x213a9f(0x391)]();})),this[_0xb955f2(0x270)](this[_0xb955f2(0x195)][_0xb955f2(0x438)][_0xb955f2(0x220)](_0x17a435=>{const _0x1a6643=_0xb955f2;if(_0x17a435[_0x1a6643(0x327)]===0x1){var _0x12c616;let _0xa7fb78=_0x17a435[0x0],_0x169ad3=(_0x12c616=this[_0x1a6643(0x195)][_0x1a6643(0x463)](_0xa7fb78))==null?void 0x0:_0x12c616[_0x1a6643(0x2c9)];_0x169ad3===a['DrawingTypeEnum']['DRAWING_SHAPE']&&_0xa7fb78[_0x1a6643(0x3d0)]===this[_0x1a6643(0x255)]?(this[_0x1a6643(0x391)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x1a6643(0x255)]&&_0x169ad3===a['DrawingTypeEnum'][_0x1a6643(0x33c)]&&this[_0x1a6643(0x38f)](_0xa7fb78[_0x1a6643(0x432)],_0xa7fb78[_0x1a6643(0x44d)],_0xa7fb78[_0x1a6643(0x3d0)]);}})),this[_0xb955f2(0x270)](this['_drawingManagerService'][_0xb955f2(0x409)][_0xb955f2(0x220)](_0x2fc7cb=>{const _0x594f34=_0xb955f2;for(let _0x122676 of _0x2fc7cb){let {drawingId:_0x4d4593}=_0x122676;if(this[_0x594f34(0x255)]===_0x4d4593){this[_0x594f34(0x186)]();return;}}}));}[_0x58257(0x351)](_0x26afa2,_0x40447f,_0x568298,_0x415e18,_0x529fe4){const _0x30510d=_0x58257;var _0x41fdab;if(!this[_0x30510d(0x1d7)])return;let _0x34964a=this['_getConnectPointInfo'](_0x26afa2);if(!_0x34964a)return;let _0x480ffd=this[_0x30510d(0x370)]?this[_0x30510d(0x370)]['worldPoint']:_0x40447f,_0xe9335e=this[_0x30510d(0x370)]?this[_0x30510d(0x370)]['angle']:this['_calculateFreeEndpointAngle'](_0x34964a['point'],_0x480ffd),_0x37c02b;if(this['_currentConnectionTarget']){let _0xda88de=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x30510d(0x370)][_0x30510d(0x432)],'subUnitId':this[_0x30510d(0x370)][_0x30510d(0x44d)],'drawingId':this[_0x30510d(0x370)][_0x30510d(0x2af)]});if(_0xda88de!=null&&_0xda88de[_0x30510d(0x30a)]){let {left:_0x34b213=0x0,top:_0x15969d=0x0,width:_0x243c3b=0x0,height:_0x1b3ab4=0x0,angle:_0x18461c}=_0xda88de['transform'];_0x37c02b=(0x0,n['getBasicShapeRotateBound'])({'left':_0x34b213,'top':_0x15969d,'width':_0x243c3b,'height':_0x1b3ab4},_0x18461c||0x0);}else _0x37c02b={'left':_0x480ffd['x'],'top':_0x480ffd['y'],'width':0x0,'height':0x0};}else _0x37c02b={'left':_0x480ffd['x'],'top':_0x480ffd['y'],'width':0x0,'height':0x0};let _0x3457ad={'point':_0x480ffd,'angle':_0xe9335e,'bounds':_0x37c02b},_0x15f7bf=_0x568298?_0x3457ad:_0x34964a,_0x9b2419=_0x568298?_0x34964a:_0x3457ad,_0x34fada=this[_0x30510d(0x1d7)]['getShapeType'](),_0x235e79=(0x0,n['routeConnectorLineShape'])(_0x15f7bf,_0x9b2419,_0x34fada);_0x235e79&&this[_0x30510d(0x1d7)][_0x30510d(0x369)](_0x235e79);let _0x5bea6b=(0x0,n[_0x30510d(0x177)])(_0x235e79,_0x34fada);_0x5bea6b['lineType']!==_0x34fada&&this[_0x30510d(0x1d7)][_0x30510d(0x1bb)](_0x5bea6b[_0x30510d(0x191)]);for(let [_0x141111,_0x2b6aed]of Object['entries'](_0x5bea6b['adjustValues']))this['_activeShapeModel'][_0x30510d(0x3cb)](_0x141111,_0x2b6aed);this['_activeShapeModel'][_0x30510d(0x272)]({'width':_0x5bea6b[_0x30510d(0x390)][_0x30510d(0x22f)],'height':_0x5bea6b['worldRect'][_0x30510d(0x1da)]}),_0x415e18[_0x30510d(0x355)]({'flipX':_0x5bea6b[_0x30510d(0x390)][_0x30510d(0x47c)],'flipY':_0x5bea6b['worldRect'][_0x30510d(0x335)],'left':_0x5bea6b[_0x30510d(0x390)]['left'],'top':_0x5bea6b[_0x30510d(0x390)][_0x30510d(0x44b)],'width':_0x5bea6b['worldRect'][_0x30510d(0x22f)],'height':_0x5bea6b[_0x30510d(0x390)][_0x30510d(0x1da)],'angle':_0x5bea6b[_0x30510d(0x3bf)]}),_0x415e18[_0x30510d(0x2b4)](!0x0);let _0x3bb64e=((_0x41fdab=this[_0x30510d(0x370)])==null?void 0x0:_0x41fdab[_0x30510d(0x41e)])??_0x40447f;_0x529fe4[_0x30510d(0x355)]({'left':_0x3bb64e['x']-n['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x3bb64e['y']-n['ShapeDefaultConfig'][_0x30510d(0x1d3)]});}[_0x58257(0x158)](_0x50c675,_0x4d82c4,_0x1d0ea5,_0x2220e0,_0x1b83ac){const _0x711cd3=_0x58257;var _0x2253fe,_0xaadaa1;let _0x3fc633=((_0x2253fe=this[_0x711cd3(0x370)])==null?void 0x0:_0x2253fe[_0x711cd3(0x41e)])??_0x50c675,_0xb33f09=n[_0x711cd3(0x2aa)][_0x711cd3(0x28e)](_0x4d82c4,_0x3fc633,_0x1d0ea5);_0x2220e0[_0x711cd3(0x355)]({'flipX':_0xb33f09[_0x711cd3(0x390)][_0x711cd3(0x47c)],'flipY':_0xb33f09[_0x711cd3(0x390)]['flipY'],'left':_0xb33f09[_0x711cd3(0x390)][_0x711cd3(0x19c)],'top':_0xb33f09['worldRect'][_0x711cd3(0x44b)],'width':_0xb33f09[_0x711cd3(0x390)][_0x711cd3(0x22f)],'height':_0xb33f09[_0x711cd3(0x390)][_0x711cd3(0x1da)],'angle':_0xb33f09[_0x711cd3(0x390)][_0x711cd3(0x39a)]});let _0x436332=((_0xaadaa1=this[_0x711cd3(0x370)])==null?void 0x0:_0xaadaa1[_0x711cd3(0x41e)])??_0x50c675;_0x1b83ac[_0x711cd3(0x355)]({'left':_0x436332['x']-n[_0x711cd3(0x2f6)]['cxnPointRadius'],'top':_0x436332['y']-n['ShapeDefaultConfig']['cxnPointRadius']});}[_0x58257(0x3b9)](_0x1507f1){const _0x528358=_0x58257;if(!this[_0x528358(0x23c)]||!this[_0x528358(0x1d4)])return null;let {shapeId:_0x275e24,cxnIndex:_0xccd455}=_0x1507f1,_0x1863e9=this['_sheetsShapeService'][_0x528358(0x2f0)](this['_unitId'],this[_0x528358(0x1d4)],_0x275e24);if(!_0x1863e9)return null;let _0x316007=this['_drawingManagerService'][_0x528358(0x463)]({'unitId':this[_0x528358(0x23c)],'subUnitId':this[_0x528358(0x1d4)],'drawingId':_0x275e24});if(!(_0x316007!=null&&_0x316007[_0x528358(0x30a)]))return null;let {left:_0x3133b9=0x0,top:_0x1c90a8=0x0,width:_0x5ebfd8=0x0,height:_0xafef40=0x0,flipX:_0xc8217e=!0x1,flipY:_0x3b4c94=!0x1,angle:_0x52fb73}=_0x316007[_0x528358(0x30a)];_0x1863e9[_0x528358(0x272)]({'width':_0x5ebfd8,'height':_0xafef40});let _0x504ab5=_0x1863e9['getConnectionSiteList']()[_0x528358(0x40e)](_0x8fe43c=>_0x8fe43c['index']===_0xccd455);if(!_0x504ab5)return null;let _0x12f811=_0xc8217e?_0x5ebfd8-_0x504ab5['x']:_0x504ab5['x'],_0x52b795=_0x3b4c94?_0xafef40-_0x504ab5['y']:_0x504ab5['y'];if(_0x52fb73!==0x0&&_0x52fb73!=null){let _0x5381ec=_0x52fb73*Math['PI']/0xb4,_0x2bf41e=Math[_0x528358(0x2ee)](_0x5381ec),_0x3ab4fb=Math['sin'](_0x5381ec),_0x591bac=_0x5ebfd8/0x2,_0x571689=_0xafef40/0x2,_0x224109=_0x12f811-_0x591bac,_0xab67a=_0x52b795-_0x571689;_0x12f811=_0x591bac+_0x224109*_0x2bf41e-_0xab67a*_0x3ab4fb,_0x52b795=_0x571689+_0x224109*_0x3ab4fb+_0xab67a*_0x2bf41e;}_0x12f811+=_0x3133b9,_0x52b795+=_0x1c90a8;let _0x4e8339=_0x504ab5[_0x528358(0x1ea)]/0xea60;_0xc8217e&&(_0x4e8339=0xb4-_0x4e8339),_0x3b4c94&&(_0x4e8339=-_0x4e8339),_0x4e8339+=_0x52fb73||0x0,_0x4e8339=(_0x4e8339%0x168+0x168)%0x168;let _0x4402e2=(0x0,n[_0x528358(0x411)])({'left':_0x3133b9,'top':_0x1c90a8,'width':_0x5ebfd8,'height':_0xafef40},_0x52fb73||0x0);return{'point':{'x':_0x12f811,'y':_0x52b795},'angle':_0x4e8339,'bounds':_0x4402e2};}[_0x58257(0x251)](_0x130c48,_0x276f63){const _0x2212bf=_0x58257;let _0x2c460a=_0x276f63['x']-_0x130c48['x'],_0x3b2d8c=_0x276f63['y']-_0x130c48['y'];return Math[_0x2212bf(0x300)](_0x2c460a)>=Math[_0x2212bf(0x300)](_0x3b2d8c)?_0x2c460a>=0x0?0xb4:0x0:_0x3b2d8c>=0x0?0x10e:0x5a;}[_0x58257(0x186)](){const _0x9a419c=_0x58257;this[_0x9a419c(0x255)]=void 0x0,this[_0x9a419c(0x23c)]=void 0x0,this[_0x9a419c(0x1d4)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x58257(0x307)](){const _0x23c5a2=_0x58257;this[_0x23c5a2(0x391)](),super[_0x23c5a2(0x307)]();}};yt=k([O(0x1,a[_0x58257(0x258)]),O(0x2,c[_0x58257(0x1a2)]),O(0x3,s['IDrawingManagerService']),O(0x4,a[_0x58257(0x32d)]),O(0x5,(0x0,a[_0x58257(0x183)])(i[_0x58257(0x45a)])),O(0x6,(0x0,a['Inject'])(j)),O(0x7,(0x0,a[_0x58257(0x183)])(Z))],yt);let bt=class extends a[_0x58257(0x40f)]{constructor(_0x54ac45,_0x37f033,_0x26f407){const _0x4a3c1=_0x58257;super(),this['_sheetPrintInterceptorService']=_0x54ac45,this[_0x4a3c1(0x195)]=_0x37f033,this[_0x4a3c1(0x39c)]=_0x26f407,this[_0x4a3c1(0x2fc)]();}[_0x58257(0x2fc)](){const _0x4008ee=_0x58257;this['disposeWithMe'](this[_0x4008ee(0x237)]['interceptor'][_0x4008ee(0x2fe)](this[_0x4008ee(0x237)][_0x4008ee(0x202)][_0x4008ee(0x2ab)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x496d1d,_0x5607b1,_0x9f53f5)=>{const _0x4cf4ac=_0x4008ee;var _0x343f2d;let {unitId:_0xbe7670,subUnitId:_0x4faabc,scene:_0x255aa3,resourceCollector:_0x155708}=_0x5607b1,_0x27828d=(_0x343f2d=this[_0x4cf4ac(0x195)][_0x4cf4ac(0x1b9)](_0xbe7670))==null?void 0x0:_0x343f2d[_0x4faabc];return _0x27828d==null||_0x27828d[_0x4cf4ac(0x44f)][_0x4cf4ac(0x1d0)](_0x533f81=>{const _0x2fc796=_0x4cf4ac;let _0x23f8f2=_0x27828d[_0x2fc796(0x373)][_0x533f81];_0x23f8f2['drawingType']===a['DrawingTypeEnum'][_0x2fc796(0x33c)]&&!_0x23f8f2[_0x2fc796(0x2c2)]&&this['_shapeRenderController'][_0x2fc796(0x338)](_0x23f8f2,_0x255aa3,{'resourceCollector':_0x155708});}),_0x9f53f5(_0x496d1d);}}));}};bt=k([O(0x0,(0x0,a[_0x58257(0x183)])(l[_0x58257(0x38c)])),O(0x1,s[_0x58257(0x14f)]),O(0x2,(0x0,a[_0x58257(0x183)])(A))],bt);let xt=class extends a['Disposable']{constructor(_0x30b873,_0x157db6,_0x2a2aff){const _0x13fc26=_0x58257;super(),this['_commandService']=_0x30b873,this[_0x13fc26(0x15c)]=_0x157db6,this[_0x13fc26(0x41f)]=_0x2a2aff,this['_initPermission']();}[_0x58257(0x42e)](){const _0x440e96=_0x58257;this[_0x440e96(0x270)](this[_0x440e96(0x25c)][_0x440e96(0x1ad)](_0x36363e=>{const _0x15b192=_0x440e96;let _0x388eb1,_0x258edf;if(_0x36363e['id']===i['InsertShapeCommand']['id']||_0x36363e['id']===i[_0x15b192(0x24e)]['id']||_0x36363e['id']===i[_0x15b192(0x2ba)]['id']){let _0x1870e3=_0x36363e[_0x15b192(0x18b)];_0x388eb1=_0x1870e3['unitId'],_0x258edf=_0x1870e3[_0x15b192(0x44d)];}!_0x388eb1||!_0x258edf||this[_0x15b192(0x41f)][_0x15b192(0x3ac)]({'workbookTypes':[o[_0x15b192(0x16e)]],'worksheetTypes':[o['WorksheetEditPermission']]},_0x388eb1,_0x258edf)||this['_sheetPermissionCheckController'][_0x15b192(0x14d)](this['_localeService']['t'](_0x15b192(0x329)));}));}};xt=k([O(0x0,(0x0,a[_0x58257(0x183)])(a['ICommandService'])),O(0x1,(0x0,a[_0x58257(0x183)])(a[_0x58257(0x20c)])),O(0x2,(0x0,a[_0x58257(0x183)])(o[_0x58257(0x377)]))],xt);let Q=class extends a[_0x58257(0x40f)]{constructor(_0x478eb3,_0x3366d3,_0x5d860e,_0xe48a97,_0x569b8f,_0xeed147,_0x165e5b,_0x12f7af,_0x27b607,_0x561fc6,_0x179a12){const _0x4f2442=_0x58257;super(),this[_0x4f2442(0x2e5)]=_0x478eb3,this[_0x4f2442(0x226)]=_0x3366d3,this[_0x4f2442(0x27b)]=_0x5d860e,this[_0x4f2442(0x396)]=_0xe48a97,this[_0x4f2442(0x15c)]=_0x569b8f,this['_commandService']=_0xeed147,this[_0x4f2442(0x195)]=_0x165e5b,this[_0x4f2442(0x1f4)]=_0x12f7af,this[_0x4f2442(0x249)]=_0x27b607,this[_0x4f2442(0x1c3)]=_0x561fc6,this[_0x4f2442(0x445)]=_0x179a12,T(this,'_sidebarDisposable',null),T(this,'_activeShapeInfo',null),T(this,'_isOpenedShapeEditPanel',!0x1),T(this,'_shapeEditPanelVersion',0x0),T(this,_0x4f2442(0x2bb),new Set()),T(this,_0x4f2442(0x267),[]),this[_0x4f2442(0x2a6)](),this['disposeWithMe'](this[_0x4f2442(0x2e5)][_0x4f2442(0x1ab)](a[_0x4f2442(0x35a)]['UNIVER_SHEET'])[_0x4f2442(0x220)](_0x930dfe=>{const _0x3623c3=_0x4f2442;if(!_0x930dfe){var _0x3b9071;(_0x3b9071=this[_0x3623c3(0x38a)])==null||_0x3b9071['dispose']();return;}this[_0x3623c3(0x407)](_0x930dfe);})),this[_0x4f2442(0x40c)](),this[_0x4f2442(0x354)](),this[_0x4f2442(0x270)](this['_shapeTextEditingService'][_0x4f2442(0x245)][_0x4f2442(0x220)](_0x436c3b=>{const _0x169be1=_0x4f2442;_0x436c3b&&this[_0x169be1(0x453)]();}));}[_0x58257(0x2a6)](){const _0x2c01b2=_0x58257;this['_menuManagerService'][_0x2c01b2(0x164)](Ze);}[_0x58257(0x354)](){const _0x2a5b73=_0x58257;this['_univerInstanceService']['getAllUnitsForType'](a['UniverInstanceType'][_0x2a5b73(0x460)])['forEach'](_0x152b72=>this['_createShapePopupMenu'](_0x152b72));}[_0x58257(0x216)](_0x23a790,_0x25ac66,_0x394a56){const _0x46095d=_0x58257;let _0x4b25c3=this[_0x46095d(0x396)][_0x46095d(0x3de)](_0x23a790,_0x25ac66,_0x394a56),_0x339966=this['_sheetsShapeService']['getShapeDataById'](_0x23a790,_0x25ac66,_0x394a56);return _0x4b25c3!==void 0x0&&_0x339966!==void 0x0?{'shapeData':_0x339966,'shapeId':_0x394a56,'shapeType':_0x4b25c3,'unitId':_0x23a790,'subUnitId':_0x25ac66,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x58257(0x407)](_0xf1b757){const _0x66195e=_0x58257;if(!_0xf1b757)return;let _0x40b195=_0xf1b757[_0x66195e(0x14b)]();this[_0x66195e(0x1c3)][_0x66195e(0x214)](_0x40b195)&&!this[_0x66195e(0x2bb)][_0x66195e(0x214)](_0x40b195)&&(this['_popupMenuListener'](_0x40b195),this[_0x66195e(0x2bb)][_0x66195e(0x2b3)](_0x40b195));}['_clearPopups'](){const _0x441201=_0x58257;this['_disposePopups'][_0x441201(0x1d0)](_0x1b90e5=>_0x1b90e5['dispose']()),this['_disposePopups'][_0x441201(0x327)]=0x0;}['_popupMenuListener'](_0x279d28){const _0x37d903=_0x58257;var _0x5c7ea6;let _0x34b91a=(_0x5c7ea6=this[_0x37d903(0x1c3)]['getRenderUnitById'](_0x279d28))==null?void 0x0:_0x5c7ea6[_0x37d903(0x3eb)],_0x255037=_0x34b91a==null?void 0x0:_0x34b91a[_0x37d903(0x259)]();!_0x34b91a||!_0x255037||(this[_0x37d903(0x270)](_0x255037[_0x37d903(0x19e)][_0x37d903(0x220)](()=>{const _0xbc4f9d=_0x37d903;let _0x317617=_0x255037[_0xbc4f9d(0x17b)]();if(this[_0xbc4f9d(0x453)](),this['_isOpenedShapeEditPanel']||_0x317617[_0xbc4f9d(0x47b)]>0x1)return;let _0x16303a=_0x317617['values']()[_0xbc4f9d(0x358)]()['value'];if(!_0x16303a)return;let _0x3af00e=this['_drawingManagerService'][_0xbc4f9d(0x210)](_0x16303a[_0xbc4f9d(0x3f9)]);if(!_0x3af00e||_0x3af00e[_0xbc4f9d(0x2c9)]!==a[_0xbc4f9d(0x277)]['DRAWING_SHAPE'])return;let {unitId:_0x1c6040,subUnitId:_0x3736dc,drawingId:_0xe4bc98,drawingType:_0x3f42c2}=_0x3af00e,_0x1e640b=this['_getShapeInfo'](_0x1c6040,_0x3736dc,_0xe4bc98);if(!_0x1e640b)return;this[_0xbc4f9d(0x249)][_0xbc4f9d(0x20a)](a[_0xbc4f9d(0x250)],!0x0);let _0x4da141=this[_0xbc4f9d(0x1f4)][_0xbc4f9d(0x167)](_0x16303a,{'componentKey':I,'direction':_0xbc4f9d(0x302),'offset':[0x0,e[_0xbc4f9d(0x3bd)]],'extraProps':{'unitId':_0x1c6040,'subUnitId':_0x3736dc,'drawingId':_0xe4bc98,'drawingType':_0x3f42c2,'shapeType':_0x1e640b[_0xbc4f9d(0x416)],'shapeData':_0x1e640b[_0xbc4f9d(0x275)]}});this[_0xbc4f9d(0x267)][_0xbc4f9d(0x21f)](this[_0xbc4f9d(0x270)](_0x4da141)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x2a64ee=>_0x2a64ee[_0xbc4f9d(0x432)]===_0x1c6040&&_0x2a64ee[_0xbc4f9d(0x44d)]===_0x3736dc&&_0x2a64ee[_0xbc4f9d(0x3d0)]===_0xe4bc98)||this[_0xbc4f9d(0x195)]['focusDrawing']([{'unitId':_0x1c6040,'subUnitId':_0x3736dc,'drawingId':_0xe4bc98}]);})),this[_0x37d903(0x270)](_0x255037[_0x37d903(0x219)][_0x37d903(0x220)](()=>{const _0x34b7e=_0x37d903;this[_0x34b7e(0x453)](),this['_contextService'][_0x34b7e(0x20a)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),this[_0x37d903(0x270)](_0x255037[_0x37d903(0x449)][_0x37d903(0x220)](()=>{const _0x46fb8f=_0x37d903;this[_0x46fb8f(0x453)]();})),this[_0x37d903(0x270)](_0x255037['changeStart$']['subscribe'](()=>{this['_clearPopups']();})));}[_0x58257(0x40c)](){const _0x293384=_0x58257;this[_0x293384(0x270)](this[_0x293384(0x25c)]['onCommandExecuted'](_0x1ee67e=>{const _0x14c4a1=_0x293384;if(_0x1ee67e['id']===R['id']){let {unitId:_0x46b6b0,subUnitId:_0x5c1bdf,drawingId:_0x1e9f3f}=_0x1ee67e[_0x14c4a1(0x18b)];this[_0x14c4a1(0x1ae)]+=0x1,this[_0x14c4a1(0x286)]=this['_getShapeInfo'](_0x46b6b0,_0x5c1bdf,_0x1e9f3f),this['_clearPopups'](),this[_0x14c4a1(0x42a)]();}if(_0x1ee67e['id']===et['id']&&(this[_0x14c4a1(0x286)]=null,this[_0x14c4a1(0x194)]()),_0x1ee67e['id']===i[_0x14c4a1(0x464)]['id']){let {unitId:_0x56c5e2,subUnitId:_0x461bca,shapeId:_0x43baaa}=_0x1ee67e[_0x14c4a1(0x18b)];if(this[_0x14c4a1(0x286)]&&this['_activeShapeInfo'][_0x14c4a1(0x2af)]===_0x43baaa){let _0x28614d=this[_0x14c4a1(0x216)](_0x56c5e2,_0x461bca,_0x43baaa);_0x28614d&&(this[_0x14c4a1(0x1ae)]+=0x1,_0x28614d[_0x14c4a1(0x408)]=this[_0x14c4a1(0x1ae)],this[_0x14c4a1(0x286)]=_0x28614d,this[_0x14c4a1(0x3db)]&&this[_0x14c4a1(0x42a)]());}}})),this['disposeWithMe'](this[_0x293384(0x195)][_0x293384(0x440)][_0x293384(0x220)](_0x1a3035=>{const _0x3e3510=_0x293384;if(this[_0x3e3510(0x3db)]===!0x1)return;if(_0x1a3035[_0x3e3510(0x327)]===0x0){this[_0x3e3510(0x286)]=null,this[_0x3e3510(0x194)]();return;}if(_0x1a3035[_0x3e3510(0x327)]===0x1&&_0x1a3035[0x0][_0x3e3510(0x2c9)]===a[_0x3e3510(0x277)][_0x3e3510(0x33c)]&&(this[_0x3e3510(0x1ae)]+=0x1,this['_activeShapeInfo']=this[_0x3e3510(0x216)](_0x1a3035[0x0][_0x3e3510(0x432)],_0x1a3035[0x0][_0x3e3510(0x44d)],_0x1a3035[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x3e3510(0x42a)]();return;}let _0x3cdf77=_0x1a3035[_0x3e3510(0x239)](_0x26be88=>_0x26be88['drawingType']===a[_0x3e3510(0x277)][_0x3e3510(0x33c)]);if(_0x1a3035['length']>0x1&&_0x3cdf77[_0x3e3510(0x327)]===_0x1a3035[_0x3e3510(0x327)]){if(this[_0x3e3510(0x1ae)]+=0x1,this[_0x3e3510(0x286)]=this['_getShapeInfo'](_0x1a3035[0x0][_0x3e3510(0x432)],_0x1a3035[0x0][_0x3e3510(0x44d)],_0x1a3035[0x0][_0x3e3510(0x3d0)]),this[_0x3e3510(0x286)]){this[_0x3e3510(0x42a)]();return;}}else{if(this[_0x3e3510(0x1ae)]+=0x1,this[_0x3e3510(0x286)]=this[_0x3e3510(0x216)](_0x1a3035[0x0][_0x3e3510(0x432)],_0x1a3035[0x0][_0x3e3510(0x44d)],_0x1a3035[0x0][_0x3e3510(0x3d0)]),this[_0x3e3510(0x286)]){this[_0x3e3510(0x286)][_0x3e3510(0x2c4)]=!0x0,this[_0x3e3510(0x42a)]();return;}}this[_0x3e3510(0x194)]();}));}[_0x58257(0x42a)](){const _0x489956=_0x58257;this[_0x489956(0x286)]&&(this['_sidebarDisposable']=this[_0x489956(0x226)][_0x489956(0x3e3)]({'id':P,'header':{'title':this[_0x489956(0x15c)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':P,...this[_0x489956(0x286)]},'onClose':()=>{const _0x3f02b=_0x489956;this['_drawingManagerService'][_0x3f02b(0x18f)](null),this[_0x3f02b(0x249)]['setContextValue'](a[_0x3f02b(0x250)],!0x1),this[_0x3f02b(0x38a)]=null;}}),this[_0x489956(0x3db)]=!0x0);}['_closeShapeEditPanel'](){const _0x271202=_0x58257;this['_isOpenedShapeEditPanel']=!0x1,this['_sidebarService'][_0x271202(0x330)](P),this[_0x271202(0x38a)]=null,this[_0x271202(0x249)][_0x271202(0x20a)](a[_0x271202(0x250)],!0x1),this[_0x271202(0x195)][_0x271202(0x18f)](null);}};Q=k([O(0x0,a[_0x58257(0x32d)]),O(0x1,(0x0,a[_0x58257(0x183)])(t[_0x58257(0x172)])),O(0x2,t['IMenuManagerService']),O(0x3,(0x0,a['Inject'])(i[_0x58257(0x45a)])),O(0x4,(0x0,a[_0x58257(0x183)])(a['LocaleService'])),O(0x5,a[_0x58257(0x258)]),O(0x6,s[_0x58257(0x14f)]),O(0x7,(0x0,a['Inject'])(l[_0x58257(0x3a5)])),O(0x8,a['IContextService']),O(0x9,c[_0x58257(0x1a2)]),O(0xa,(0x0,a[_0x58257(0x183)])(K))],Q);let $=class extends a['Plugin']{constructor(_0x5edafe=tt,_0x5d42be,_0x38253d,_0x45868a,_0x34a771){const _0x293e6e=_0x58257;super(),this[_0x293e6e(0x236)]=_0x5edafe,this[_0x293e6e(0x2fa)]=_0x5d42be,this[_0x293e6e(0x25c)]=_0x38253d,this['_configService']=_0x45868a,this[_0x293e6e(0x1c3)]=_0x34a771;let {..._0x18130f}=(0x0,a['merge'])({},tt,this[_0x293e6e(0x236)]);this[_0x293e6e(0x33e)]['setConfig'](_0x293e6e(0x33b),_0x18130f),this['_initCommands']();}[_0x58257(0x3dd)](){(0x0,a['touchDependencies'])(this['_injector'],[[Q],[X],[A],[bt]]);}['onSteady'](){const _0x16ec85=_0x58257;this[_0x16ec85(0x2fa)][_0x16ec85(0x27a)](Q)[_0x16ec85(0x354)]();}[_0x58257(0x1b7)](){const _0x3f9ad6=_0x58257;[[Z],[j],[_t]][_0x3f9ad6(0x1d0)](_0x2e208=>this['_injector'][_0x3f9ad6(0x2b3)](_0x2e208)),(0x0,a['touchDependencies'])(this[_0x3f9ad6(0x2fa)],[[_t],[j]]),this[_0x3f9ad6(0x1c3)][_0x3f9ad6(0x343)](a[_0x3f9ad6(0x35a)][_0x3f9ad6(0x460)],[Z]),this[_0x3f9ad6(0x1c3)][_0x3f9ad6(0x343)](a[_0x3f9ad6(0x35a)]['UNIVER_SHEET'],[dt]),this[_0x3f9ad6(0x1c3)][_0x3f9ad6(0x343)](a[_0x3f9ad6(0x35a)]['UNIVER_SHEET'],[yt]),this[_0x3f9ad6(0x1c3)][_0x3f9ad6(0x343)](a[_0x3f9ad6(0x35a)][_0x3f9ad6(0x460)],[pt]),this[_0x3f9ad6(0x1c3)][_0x3f9ad6(0x343)](a['UniverInstanceType'][_0x3f9ad6(0x3c2)],[mt]);}[_0x58257(0x394)](){const _0x3a2119=_0x58257;this[_0x3a2119(0x2fa)]['add']([q]),this[_0x3a2119(0x2fa)]['get'](q);let _0x11ba36=this[_0x3a2119(0x2fa)];[[Q],[X],[A],[bt],[G],[K],[Y],[B],[xt],[J]][_0x3a2119(0x1d0)](_0x235dd8=>_0x11ba36[_0x3a2119(0x2b3)](_0x235dd8)),(0x0,a['touchDependencies'])(this[_0x3a2119(0x2fa)],[[Q],[X],[A],[G],[K],[Y],[B],[xt],[J]]);}[_0x58257(0x450)](){const _0x30861d=_0x58257;[N,x,et,R,ae,M,z,se][_0x30861d(0x1d0)](_0x1fd1e0=>this[_0x30861d(0x270)](this[_0x30861d(0x25c)]['registerCommand'](_0x1fd1e0)));}};T($,_0x58257(0x1af),a[_0x58257(0x35a)][_0x58257(0x460)]),T($,'pluginName',_0x58257(0x256)),T($,_0x58257(0x479),Qe),T($,_0x58257(0x408),$e),$=k([(0x0,a['DependentOn'])(m[_0x58257(0x406)],h[_0x58257(0x310)],s['UniverDrawingPlugin'],d[_0x58257(0x34f)],c[_0x58257(0x291)],o['UniverSheetsPlugin'],g[_0x58257(0x3a7)],p[_0x58257(0x2eb)],r[_0x58257(0x306)],_[_0x58257(0x17d)],i[_0x58257(0x3d6)],l['UniverSheetsUIPlugin'],e[_0x58257(0x400)]),O(0x1,(0x0,a[_0x58257(0x183)])(a[_0x58257(0x3fb)])),O(0x2,a[_0x58257(0x258)]),O(0x3,a[_0x58257(0x3e8)]),O(0x4,c[_0x58257(0x1a2)])],$),exports[_0x58257(0x458)]=Ze,Object[_0x58257(0x340)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x46885f=_0x2769;(function(_0x53efb3,_0xf96bf2){const _0xa1ecfb=_0x2769,_0x12924f=_0x53efb3();while(!![]){try{const _0x346ff0=parseInt(_0xa1ecfb(0x49e))/0x1+parseInt(_0xa1ecfb(0x22d))/0x2*(-parseInt(_0xa1ecfb(0x2b5))/0x3)+-parseInt(_0xa1ecfb(0x1fe))/0x4*(parseInt(_0xa1ecfb(0x4a2))/0x5)+-parseInt(_0xa1ecfb(0x2ee))/0x6+-parseInt(_0xa1ecfb(0x409))/0x7*(parseInt(_0xa1ecfb(0x1f7))/0x8)+parseInt(_0xa1ecfb(0x2da))/0x9*(parseInt(_0xa1ecfb(0x1cb))/0xa)+-parseInt(_0xa1ecfb(0x3a9))/0xb*(-parseInt(_0xa1ecfb(0x228))/0xc);if(_0x346ff0===_0xf96bf2)break;else _0x12924f['push'](_0x12924f['shift']());}catch(_0x26d7a1){_0x12924f['push'](_0x12924f['shift']());}}}(_0x569f,0x8a18c),Object['defineProperty'](exports,Symbol[_0x46885f(0x1c1)],{'value':_0x46885f(0x1b6)}));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('react/jsx-runtime'),p=require('@univerjs/sheets-drawing'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui'),_=require('@univerjs/sheets-drawing-ui'),v=require('@univerjs/icons'),y=require('react');function b(_0x492373,_0x5e0c93){const _0x17ca87=_0x46885f;let _0x33150c={};for(let _0x34f9b5 of Object[_0x17ca87(0x460)](_0x5e0c93)){let _0xc87eb3=_0x5e0c93[_0x34f9b5],_0x1abb53=_0x492373[_0x34f9b5];if(_0xc87eb3!==void 0x0){if(_0x1abb53===void 0x0){_0x33150c[_0x34f9b5]=void 0x0;continue;}typeof _0xc87eb3==_0x17ca87(0x197)&&_0xc87eb3&&!Array[_0x17ca87(0x46f)](_0xc87eb3)&&typeof _0x1abb53==_0x17ca87(0x197)&&_0x1abb53&&!Array[_0x17ca87(0x46f)](_0x1abb53)?_0x33150c[_0x34f9b5]=b(_0x1abb53,_0xc87eb3):_0x33150c[_0x34f9b5]=_0x1abb53;}}return _0x33150c;}const x={'type':a[_0x46885f(0x2f4)][_0x46885f(0x39a)],'id':_0x46885f(0x3ca),'handler':(_0x5ae2d5,_0x2afb73)=>{const _0x138790=_0x46885f;let _0x5c3640=_0x5ae2d5[_0x138790(0x3a3)](i['SheetsShapeService']),{unitId:_0x3bfdb6,subUnitId:_0x302dae,shapeType:_0x139608,shapeId:_0x15e17f,shapeData:_0x396f8b,replaceShapeData:_0x269935,oldShapeJSON:_0x42f666}=_0x2afb73;if(!_0x5c3640[_0x138790(0x387)](_0x3bfdb6,_0x302dae,_0x15e17f))return!0x1;let _0x116411=_0x5ae2d5['get'](a[_0x138790(0x4aa)]),_0x147fee=_0x5ae2d5[_0x138790(0x3a3)](a[_0x138790(0x4a7)]),{oldShapeType:_0x954413,oldShapeData:_0x5440b4={}}=_0x42f666,_0x2df733=_0x269935?_0x5440b4:b(_0x5440b4,_0x396f8b||{}),_0x504ded={'id':i[_0x138790(0x44a)]['id'],'params':{'unitId':_0x3bfdb6,'subUnitId':_0x302dae,'shapeId':_0x15e17f,'shapeType':_0x139608,'shapeData':_0x396f8b,'replace':_0x269935}},_0x473c17={'id':i[_0x138790(0x44a)]['id'],'params':{'unitId':_0x3bfdb6,'subUnitId':_0x302dae,'shapeId':_0x15e17f,'shapeType':_0x954413,'shapeData':_0x2df733,'replace':_0x269935}};return _0x116411[_0x138790(0x44d)](_0x504ded['id'],_0x504ded['params'])?(_0x147fee['pushUndoRedo']({'unitID':_0x3bfdb6,'undoMutations':[_0x473c17],'redoMutations':[_0x504ded]}),!0x0):!0x1;}};function S(_0x28c8ac,_0x3344f9,_0x48a498,_0x12feec,_0x42d4fc,_0x4fd0be){const _0x1620a2=_0x46885f;let _0x1684ae={'unitId':_0x3344f9,'subUnitId':_0x48a498,'shapeId':_0x12feec,'shapeData':_0x4fd0be,'oldShapeJSON':_0x42d4fc};return _0x28c8ac[_0x1620a2(0x210)](x['id'],_0x1684ae);}function C(_0x3605f4,_0x34224a,_0x16806b,_0x59efef,_0x291cba,_0x469e5f){const _0x21a247=_0x46885f;let _0x224179={'unitId':_0x34224a,'subUnitId':_0x16806b,'shapeId':_0x59efef,'shapeData':_0x469e5f,'oldShapeJSON':_0x291cba};return _0x3605f4[_0x21a247(0x210)](x['id'],_0x224179);}function w(_0x521cf3){'@babel/helpers - typeof';const _0x3ad6a9=_0x46885f;return w=typeof Symbol==_0x3ad6a9(0x461)&&typeof Symbol['iterator']=='symbol'?function(_0xd33eb1){return typeof _0xd33eb1;}:function(_0x5625c8){const _0x55b328=_0x3ad6a9;return _0x5625c8&&typeof Symbol==_0x55b328(0x461)&&_0x5625c8[_0x55b328(0x285)]===Symbol&&_0x5625c8!==Symbol['prototype']?_0x55b328(0x36e):typeof _0x5625c8;},w(_0x521cf3);}function ee(_0x590c3a,_0x281650){const _0x5870cc=_0x46885f;if(w(_0x590c3a)!='object'||!_0x590c3a)return _0x590c3a;var _0x89365b=_0x590c3a[Symbol[_0x5870cc(0x256)]];if(_0x89365b!==void 0x0){var _0x23706a=_0x89365b['call'](_0x590c3a,_0x281650||_0x5870cc(0x42a));if(w(_0x23706a)!=_0x5870cc(0x197))return _0x23706a;throw TypeError(_0x5870cc(0x40c));}return(_0x281650===_0x5870cc(0x444)?String:Number)(_0x590c3a);}function te(_0x4778e3){const _0x38120d=_0x46885f;var _0x5b3d62=ee(_0x4778e3,_0x38120d(0x444));return w(_0x5b3d62)=='symbol'?_0x5b3d62:_0x5b3d62+'';}function T(_0x282707,_0x5d3eb6,_0x2401d5){const _0x271a92=_0x46885f;return(_0x5d3eb6=te(_0x5d3eb6))in _0x282707?Object[_0x271a92(0x32e)](_0x282707,_0x5d3eb6,{'value':_0x2401d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x282707[_0x5d3eb6]=_0x2401d5,_0x282707;}function ne(_0x4f7420,_0x29c03e,_0x444651){const _0x9c6c16=_0x46885f;let _0x43f3dd=(0x0,e[_0x9c6c16(0x2dc)])(_0x4f7420,{..._0x29c03e,'dataModel':{..._0x29c03e['dataModel']??{},..._0x444651?{'doc':_0x444651}:null}}),_0x149285=(0x0,e[_0x9c6c16(0x4a5)])(_0x43f3dd);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x43f3dd,_0x149285),'wrapStrategy':_0x149285};}var E=class extends c['Shape']{constructor(_0xe1b3d7,_0x273232){const _0x7265e2=_0x46885f;super(_0xe1b3d7,_0x273232),T(this,'_props',void 0x0),T(this,_0x7265e2(0x308),new e[(_0x7265e2(0x30a))](()=>this[_0x7265e2(0x23f)](!0x0),()=>this[_0x7265e2(0x189)]())),T(this,_0x7265e2(0x291),!0x0),T(this,_0x7265e2(0x1aa),a[_0x7265e2(0x196)][_0x7265e2(0x288)]),T(this,_0x7265e2(0x1c9),!0x0),this[_0x7265e2(0x469)]={..._0x273232},this['_formulaAnimation'][_0x7265e2(0x2e1)](_0x273232[_0x7265e2(0x363)],_0x273232[_0x7265e2(0x1a8)]!==!0x1),this[_0x7265e2(0x452)](),this['_applyFormulaAutoFitSize']();}[_0x46885f(0x452)](){const _0x1aefd6=_0x46885f;this[_0x1aefd6(0x241)][_0x1aefd6(0x440)](_0x6a17a6=>{const _0x2548d1=_0x1aefd6;this[_0x2548d1(0x3bc)](_0x6a17a6);});}[_0x46885f(0x268)](_0x163fe1){const _0x1a046f=_0x46885f;this[_0x1a046f(0x469)][_0x1a046f(0x26b)]=_0x163fe1;}['setEditing'](_0xbb2451){const _0x135a5c=_0x46885f;this['_props'][_0x135a5c(0x3b9)]=_0xbb2451,this[_0x135a5c(0x23f)](!0x0);}[_0x46885f(0x1ee)](_0x252eaf,_0x30171b=!0x0){const _0x24d8cb=_0x46885f;this[_0x24d8cb(0x308)][_0x24d8cb(0x2e1)](_0x252eaf,_0x30171b),this[_0x24d8cb(0x469)][_0x24d8cb(0x363)]=_0x252eaf,this[_0x24d8cb(0x189)](),this['makeDirty'](!0x0);}[_0x46885f(0x189)](){const _0x10740f=_0x46885f;let _0x21cc03=this[_0x10740f(0x469)][_0x10740f(0x269)],_0x5db75b=_0x21cc03[_0x10740f(0x215)](),_0x3235fe=(0x0,e[_0x10740f(0x19d)])(_0x5db75b==null?void 0x0:_0x5db75b['dataModel']),_0x36b4f3=_0x3235fe==null?void 0x0:_0x3235fe['doc'],_0x4edbbd=this[_0x10740f(0x308)]['getAutoFitPresentations']();if(!_0x36b4f3||_0x4edbbd[_0x10740f(0x453)]===0x0)return;_0x21cc03[_0x10740f(0x3f7)]({'width':this['width'],'height':this[_0x10740f(0x49b)]});let _0x15d6b7=(0x0,e['resolveFormulaShapeAutoFitSize'])({'documentData':_0x4edbbd[_0x10740f(0x164)](_0x2160a4=>(0x0,r[_0x10740f(0x48b)])(_0x36b4f3,_0x2160a4)),'height':this[_0x10740f(0x49b)],'shapeData':_0x21cc03[_0x10740f(0x279)](),'textRect':_0x21cc03[_0x10740f(0x1d7)]({'left':0x0,'top':0x0,'width':this[_0x10740f(0x322)],'height':this[_0x10740f(0x49b)]}),'width':this[_0x10740f(0x322)]});if(_0x15d6b7){var _0x35d294;this[_0x10740f(0x38e)](_0x15d6b7[_0x10740f(0x322)],_0x15d6b7[_0x10740f(0x49b)]),(_0x35d294=this[_0x10740f(0x37a)]())==null||(_0x35d294=_0x35d294[_0x10740f(0x312)]())==null||_0x35d294['debounceRefreshControls']();}}get[_0x46885f(0x332)](){const _0x1aaa66=_0x46885f;return this[_0x1aaa66(0x469)][_0x1aaa66(0x332)];}get[_0x46885f(0x46b)](){const _0x398d80=_0x46885f;return this[_0x398d80(0x469)][_0x398d80(0x46b)];}[_0x46885f(0x3bc)](_0x216251){const _0x1b5db7=_0x46885f;if(this[_0x1b5db7(0x469)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x37c336,height:_0x6d061}=this,{width:_0x226032=0x0,height:_0x201c09=0x0}=_0x216251[_0x1b5db7(0x416)],{left:_0x2065e0=0x0,top:_0x38614a=0x0,right:_0x1583d2=0x0,bottom:_0x2ced78=0x0}=this['_props'][_0x1b5db7(0x244)],_0x3d71e9=_0x2065e0,_0x355c88=_0x38614a,_0x5ec6d5=_0x1583d2,_0x307447=_0x2ced78,_0x29a084=!0x1;if(_0x226032!==0x0&&_0x226032!==_0x37c336){let _0x39cd74=_0x2065e0/_0x226032,_0x18a8b3=_0x1583d2/_0x226032;_0x3d71e9=_0x37c336*_0x39cd74,_0x5ec6d5=_0x37c336*_0x18a8b3,_0x29a084=!0x0;}if(_0x201c09!==0x0&&_0x201c09!==_0x6d061){let _0x34baef=_0x38614a/_0x201c09,_0x1c4aa6=_0x2ced78/_0x201c09;_0x355c88=_0x6d061*_0x34baef,_0x307447=_0x6d061*_0x1c4aa6,_0x29a084=!0x0;}_0x29a084&&this['setSrcRect']({'left':_0x3d71e9,'top':_0x355c88,'right':_0x5ec6d5,'bottom':_0x307447});}[_0x46885f(0x27f)](_0x239bde){const _0x37f63a=_0x46885f;this[_0x37f63a(0x469)][_0x37f63a(0x244)]=_0x239bde,this[_0x37f63a(0x23f)](!0x0);}['setFillImage'](_0x5628c3){const _0x12b6dd=_0x46885f;this['_props']['image']=_0x5628c3,this[_0x12b6dd(0x23f)](!0x0);}set['transform'](_0x478edc){this['_transform']=_0x478edc;}get[_0x46885f(0x463)](){const _0x54eae0=_0x46885f;this['_transform']||this[_0x54eae0(0x2b4)]();let _0x202cf8=this[_0x54eae0(0x33c)][_0x54eae0(0x384)]();return this[_0x54eae0(0x40f)](_0x202cf8);}get[_0x46885f(0x269)](){const _0x724df8=_0x46885f;return this[_0x724df8(0x469)]['shapeModel'];}get[_0x46885f(0x487)](){const _0x4ebf33=_0x46885f;return this[_0x4ebf33(0x469)]['shapeId'];}get[_0x46885f(0x3af)](){const _0x1c7c10=_0x46885f;return c[_0x1c7c10(0x236)][_0x1c7c10(0x3ad)];}['_draw'](_0x5b7154,_0x367709,_0x283293,_0x4316a7){const _0x1bee0e=_0x46885f;let _0x2972da=this[_0x1bee0e(0x469)][_0x1bee0e(0x269)];if(!_0x2972da||!_0x367709)return;let _0x44ea95=_0x283293??this['width'],_0x598bff=_0x4316a7??this['height'],_0x39c943={'shapeType':_0x2972da[_0x1bee0e(0x449)](),'width':_0x44ea95,'height':_0x598bff},_0x43f12d={'renderMode':n[_0x1bee0e(0x245)][_0x1bee0e(0x20a)],'oKey':this[_0x1bee0e(0x294)],'image':this[_0x1bee0e(0x469)]['image'],'angle':this['angle']};_0x2972da[_0x1bee0e(0x3f7)](_0x39c943),_0x5b7154[_0x1bee0e(0x1d8)]();let _0xfc159={'top':0x0,'left':0x0,'width':_0x44ea95,'height':_0x598bff},_0x4f42fa=_0x2972da[_0x1bee0e(0x3b8)](_0xfc159);_0x4f42fa?this[_0x1bee0e(0x300)](_0x5b7154,_0x4f42fa,_0x435b9a=>{const _0x146c37=_0x1bee0e;_0x2972da[_0x146c37(0x2d5)](_0x435b9a,_0xfc159,_0x43f12d);}):(this[_0x1bee0e(0x18b)](),_0x2972da[_0x1bee0e(0x2d5)](_0x5b7154,_0xfc159,_0x43f12d)),_0x5b7154['restore']();let _0x4c39de=_0x2972da['getShapeTextData'](),_0x830091=_0x2972da[_0x1bee0e(0x1d7)](_0xfc159),_0x283fb1=_0x2972da[_0x1bee0e(0x179)]();if(_0x4c39de&&_0x830091&&!_0x283fb1){_0x5b7154[_0x1bee0e(0x1d8)](),this[_0x1bee0e(0x181)]()[_0x1bee0e(0x271)]&&_0x5b7154[_0x1bee0e(0x213)](-0x1,0x1);let _0x1c9763=_0x44ea95/0x2,_0x4aa227=_0x598bff/0x2;_0x5b7154[_0x1bee0e(0x262)](-_0x1c9763,-_0x4aa227),_0x5b7154['beginPath'](),this[_0x1bee0e(0x49c)](_0x5b7154,_0x4c39de,_0x830091),_0x5b7154[_0x1bee0e(0x4a1)]();}}[_0x46885f(0x2a1)](_0x51a885){}[_0x46885f(0x49c)](_0x42c48d,_0x401437,_0x4d380d){const _0x4ed48f=_0x46885f;var _0x5a02b4;this[_0x4ed48f(0x469)][_0x4ed48f(0x3b9)]||(!((_0x5a02b4=_0x401437[_0x4ed48f(0x328)])!=null&&_0x5a02b4[_0x4ed48f(0x292)])&&_0x4ed48f(0x3dd)in _0x401437&&_0x401437[_0x4ed48f(0x3dd)]===!0x1?this[_0x4ed48f(0x239)](_0x42c48d,_0x401437,_0x4d380d):this[_0x4ed48f(0x1ff)](_0x42c48d,_0x401437,_0x4d380d));}[_0x46885f(0x239)](_0x8f4788,_0x5e4ba5,_0x8dc8eb){const _0x3a11d5=_0x46885f;this[_0x3a11d5(0x1ff)](_0x8f4788,{..._0x5e4ba5,'text':_0x5e4ba5[_0x3a11d5(0x2ac)]??'','dataModel':{'doc':(0x0,e[_0x3a11d5(0x386)])(_0x5e4ba5,_0x3a11d5(0x32b)+this[_0x3a11d5(0x294)])}},_0x8dc8eb);}[_0x46885f(0x1ff)](_0x147b6d,_0xef083e,_0x4b2164){const _0x13181b=_0x46885f;(0x0,e[_0x13181b(0x3d1)])(_0x147b6d,this[_0x13181b(0x308)],(_0x75c192,_0x59973d)=>{this['_drawRichTextLayer'](_0x75c192,_0xef083e,_0x4b2164,_0x59973d);});}['_drawRichTextLayer'](_0x5b92c8,_0xe2f31d,_0x4e7107,_0x168817){const _0x21375c=_0x46885f;let _0x333c4c=this[_0x21375c(0x469)][_0x21375c(0x295)];if(!_0xe2f31d[_0x21375c(0x328)]||!_0x333c4c)return;let _0x51552a=(0x0,e[_0x21375c(0x19d)])(_0xe2f31d[_0x21375c(0x328)]);if(!_0x51552a)return;let _0x1d76fc=_0x51552a['doc'];if(!_0x1d76fc)return;let _0x567414=(0x0,r[_0x21375c(0x48b)])(_0x1d76fc,_0x168817),_0x4ad8bf=_0x51552a['va']??a[_0x21375c(0x1b3)][_0x21375c(0x35e)],_0x5daea2=_0x51552a['ha']??a[_0x21375c(0x1f5)][_0x21375c(0x217)],_0x33ab41=ne(this[_0x21375c(0x469)][_0x21375c(0x269)][_0x21375c(0x279)](),_0xe2f31d,_0x567414),_0x2bd631=_0xe2f31d[_0x21375c(0x206)],_0x2bb879=new a[(_0x21375c(0x17c))]((0x0,e[_0x21375c(0x37e)])(_0x567414,{'isHorizontal':_0x2bd631!==!0x1,'textRect':_0x4e7107,'verticalAlign':_0x4ad8bf,'horizontalAlign':_0x5daea2,'wrapStrategy':_0x33ab41[_0x21375c(0x3f6)]})),_0x54022a=new c[(_0x21375c(0x20d))](_0x2bb879),_0x41596a=c[_0x21375c(0x37d)]['create'](_0x54022a,_0x333c4c);_0x41596a[_0x21375c(0x2c8)]();let _0x2b9545=_0x41596a[_0x21375c(0x374)]()[_0x21375c(0x3b4)],_0x4289e1=(0x0,e[_0x21375c(0x4a9)])({'contentHeight':_0x2b9545,'verticalAlign':_0x4ad8bf,'viewportHeight':_0x4e7107[_0x21375c(0x49b)]});_0x2bb879['updateDocumentStyle']({'pageSize':{'width':_0x2bd631===!0x1?_0x4e7107[_0x21375c(0x49b)]:_0x4e7107[_0x21375c(0x322)],'height':_0x4289e1[_0x21375c(0x47c)]}}),_0x2bb879[_0x21375c(0x1cf)]({'t':_0x4289e1[_0x21375c(0x3eb)]}),_0x41596a[_0x21375c(0x2c8)]();let _0x25636b=new c[(_0x21375c(0x3de))]('shape-text-'+this[_0x21375c(0x294)],_0x41596a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x25636b[_0x21375c(0x38e)](_0x4e7107[_0x21375c(0x322)],_0x4289e1[_0x21375c(0x47c)]),_0x5b92c8[_0x21375c(0x1d8)](),_0x5b92c8[_0x21375c(0x36d)](_0x4e7107[_0x21375c(0x174)],_0x4e7107[_0x21375c(0x4ad)]),_0x33ab41[_0x21375c(0x3fb)]&&(_0x5b92c8['beginPath'](),_0x5b92c8[_0x21375c(0x490)](0x0,_0x4289e1[_0x21375c(0x3e2)],_0x4e7107['width'],_0x4289e1[_0x21375c(0x20f)]),_0x5b92c8[_0x21375c(0x3fb)]()),_0x4289e1['contentVerticalOffset']&&_0x5b92c8['translateWithPrecision'](0x0,_0x4289e1[_0x21375c(0x329)]),_0x25636b['draw'](_0x5b92c8),_0x5b92c8[_0x21375c(0x4a1)](),_0x25636b[_0x21375c(0x169)](),_0x41596a[_0x21375c(0x169)](),_0x54022a[_0x21375c(0x169)](),_0x2bb879['dispose']();}['render'](_0x2f3af7,_0xd2470,_0x46b66c=!0x1){const _0x17e382=_0x46885f;if(!this[_0x17e382(0x399)])return this[_0x17e382(0x23f)](!0x1),this;let {width:_0x4a5b24,height:_0x4ca834,left:_0x31dd08,top:_0x54b8fe}=this,_0x441bd5=this['getRealBound']();if(_0x4a5b24=_0x441bd5['width'],_0x4ca834=_0x441bd5['height'],_0x31dd08=_0x441bd5[_0x17e382(0x174)],_0x54b8fe=_0x441bd5['top'],this[_0x17e382(0x1d4)](_0xd2470)){let {top:_0x5d631e,left:_0x2778e9,bottom:_0x29ea1f,right:_0x24db7d}=_0xd2470['viewBound'];if(_0x4a5b24+this['strokeWidth']+_0x31dd08<_0x2778e9||_0x24db7d<_0x31dd08||_0x4ca834+this['strokeWidth']+_0x54b8fe<_0x5d631e||_0x29ea1f<_0x54b8fe)return this;}let _0x224db9=_0x31dd08+_0x4a5b24/0x2,_0x123694=_0x54b8fe+_0x4ca834/0x2,_0x5c303d=this[_0x17e382(0x463)]['getMatrix']();if(this[_0x17e382(0x469)][_0x17e382(0x3b9)]){let _0x31852c=this[_0x17e382(0x181)](),_0x1652c9=new c[(_0x17e382(0x162))]();_0x1652c9[_0x17e382(0x3d3)]({..._0x31852c}),_0x5c303d=_0x1652c9[_0x17e382(0x28b)]();}return _0x2f3af7[_0x17e382(0x1d8)](),this[_0x17e382(0x469)][_0x17e382(0x269)][_0x17e382(0x3e3)]===!0x0||_0x2f3af7[_0x17e382(0x463)](_0x5c303d[0x0],_0x5c303d[0x1],_0x5c303d[0x2],_0x5c303d[0x3],_0x224db9,_0x123694),this[_0x17e382(0x407)](_0x2f3af7,_0xd2470,_0x4a5b24,_0x4ca834),_0x2f3af7['restore'](),this[_0x17e382(0x23f)](!0x1),this;}[_0x46885f(0x484)](_0x52d53c){const _0x28f74b=_0x46885f;let {left:_0x2df8f9,top:_0x2c90be,width:_0x207f7f,height:_0x756699}=this[_0x28f74b(0x175)](),_0x2ce624=this[_0x28f74b(0x463)][_0x28f74b(0x28b)](),_0x5928c5=_0x2df8f9+_0x207f7f/0x2,_0x4a8be8=_0x2c90be+_0x756699/0x2,_0x2f9cf6=new c[(_0x28f74b(0x162))]([_0x2ce624[0x0],_0x2ce624[0x1],_0x2ce624[0x2],_0x2ce624[0x3],_0x5928c5,_0x4a8be8]),_0x3876e6=this[_0x28f74b(0x430)]();return(this[_0x28f74b(0x242)]&&(_0x3876e6==null?void 0x0:_0x3876e6[_0x28f74b(0x3af)])===c['RENDER_CLASS_TYPE'][_0x28f74b(0x1d2)]?_0x3876e6[_0x28f74b(0x307)][_0x28f74b(0x467)](_0x2f9cf6):_0x2f9cf6)[_0x28f74b(0x187)]()[_0x28f74b(0x1bb)](_0x52d53c);}['isHit'](_0x100b61){const _0x50a20f=_0x46885f;let {left:_0x22ee40,top:_0x1ee4de,width:_0x409bd4,height:_0x18527b}=this[_0x50a20f(0x175)](),_0x938941=_0x22ee40+_0x409bd4/0x2,_0x2280aa=_0x1ee4de+_0x18527b/0x2,_0xfd7d1e=this[_0x50a20f(0x463)][_0x50a20f(0x28b)](),_0x801e0c=new c[(_0x50a20f(0x162))]([_0xfd7d1e[0x0],_0xfd7d1e[0x1],_0xfd7d1e[0x2],_0xfd7d1e[0x3],_0x938941,_0x2280aa]),_0x1ef207=this[_0x50a20f(0x430)](),_0x510709=(this[_0x50a20f(0x242)]&&(_0x1ef207==null?void 0x0:_0x1ef207[_0x50a20f(0x3af)])===c['RENDER_CLASS_TYPE']['GROUP']?_0x1ef207[_0x50a20f(0x307)][_0x50a20f(0x467)](_0x801e0c):_0x801e0c)['invert']()[_0x50a20f(0x1bb)](_0x100b61),_0x4f78cf=_0x409bd4/0x2,_0x31e8c4=_0x18527b/0x2,_0x45ce1d=this[_0x50a20f(0x469)][_0x50a20f(0x269)];return _0x45ce1d&&_0x45ce1d[_0x50a20f(0x179)]()?_0x45ce1d[_0x50a20f(0x1fd)](_0x510709['x'],_0x510709['y'],_0x409bd4,_0x18527b):_0x510709['x']>=-_0x4f78cf-this[_0x50a20f(0x342)]/0x2&&_0x510709['x']<=_0x4f78cf+this[_0x50a20f(0x342)]/0x2&&_0x510709['y']>=-_0x31e8c4-this[_0x50a20f(0x342)]/0x2&&_0x510709['y']<=_0x31e8c4+this[_0x50a20f(0x342)]/0x2;}[_0x46885f(0x169)](){const _0x34c1ae=_0x46885f;this['_formulaAnimation'][_0x34c1ae(0x169)](),this[_0x34c1ae(0x469)][_0x34c1ae(0x269)]=null,super[_0x34c1ae(0x169)]();}},D=class extends c['Shape']{constructor(_0x1543e5,_0x43a80d){const _0x2a63a5=_0x46885f;super(_0x1543e5,_0x43a80d),T(this,_0x2a63a5(0x1a6),null),T(this,'_adjName',null),T(this,_0x2a63a5(0x296),null),T(this,_0x2a63a5(0x40a),null),_0x43a80d&&this[_0x2a63a5(0x222)](_0x43a80d);}['getDrawingSearch'](){const _0xd57ac=_0x46885f;return{'unitId':this[_0xd57ac(0x296)],'subUnitId':this[_0xd57ac(0x40a)],'drawingId':this[_0xd57ac(0x1a6)]};}[_0x46885f(0x222)](_0x4a20c1){const _0x104c9b=_0x46885f;_0x4a20c1[_0x104c9b(0x487)]!==void 0x0&&(this[_0x104c9b(0x1a6)]=_0x4a20c1[_0x104c9b(0x487)]),_0x4a20c1[_0x104c9b(0x26a)]!==void 0x0&&(this[_0x104c9b(0x1e5)]=_0x4a20c1[_0x104c9b(0x26a)]),_0x4a20c1['unitId']!==void 0x0&&(this['_unitId']=_0x4a20c1[_0x104c9b(0x332)]),_0x4a20c1[_0x104c9b(0x46b)]!==void 0x0&&(this['_subUnitId']=_0x4a20c1[_0x104c9b(0x46b)]),this[_0x104c9b(0x414)]({'width':_0x4a20c1[_0x104c9b(0x322)],'height':_0x4a20c1[_0x104c9b(0x49b)]});}['_draw'](_0x26069a){const _0x49adef=_0x46885f;c[_0x49adef(0x462)]['drawWith'](_0x26069a,{'radius':n[_0x49adef(0x2b0)][_0x49adef(0x2a9)],'fill':n[_0x49adef(0x2b0)][_0x49adef(0x406)],'stroke':n[_0x49adef(0x2b0)][_0x49adef(0x20c)],'strokeWidth':0x1,'evented':!0x0});}};function O(_0x11eff2,_0x496b09){return function(_0x5c76ea,_0x38dc2f){_0x496b09(_0x5c76ea,_0x38dc2f,_0x11eff2);};}function k(_0xaba92a,_0x21f559,_0x109606,_0x4975dd){const _0x3aa676=_0x46885f;var _0x4ba058=arguments[_0x3aa676(0x453)],_0x473250=_0x4ba058<0x3?_0x21f559:_0x4975dd===null?_0x4975dd=Object[_0x3aa676(0x2f1)](_0x21f559,_0x109606):_0x4975dd,_0x423982;if(typeof Reflect==_0x3aa676(0x197)&&typeof Reflect[_0x3aa676(0x306)]==_0x3aa676(0x461))_0x473250=Reflect[_0x3aa676(0x306)](_0xaba92a,_0x21f559,_0x109606,_0x4975dd);else{for(var _0x2def25=_0xaba92a[_0x3aa676(0x453)]-0x1;_0x2def25>=0x0;_0x2def25--)(_0x423982=_0xaba92a[_0x2def25])&&(_0x473250=(_0x4ba058<0x3?_0x423982(_0x473250):_0x4ba058>0x3?_0x423982(_0x21f559,_0x109606,_0x473250):_0x423982(_0x21f559,_0x109606))||_0x473250);}return _0x4ba058>0x3&&_0x473250&&Object[_0x3aa676(0x32e)](_0x21f559,_0x109606,_0x473250),_0x473250;}let A=class extends a[_0x46885f(0x468)]{constructor(_0x5bd904,_0x594831,_0x3e0c3a,_0x1a794c,_0x2c4862,_0x44022f){const _0x3e621e=_0x46885f;super(),this[_0x3e621e(0x22e)]=_0x5bd904,this[_0x3e621e(0x464)]=_0x594831,this[_0x3e621e(0x1bf)]=_0x3e0c3a,this[_0x3e621e(0x408)]=_0x1a794c,this[_0x3e621e(0x2cb)]=_0x2c4862,this[_0x3e621e(0x480)]=_0x44022f,T(this,_0x3e621e(0x446),new Map()),this[_0x3e621e(0x428)](this[_0x3e621e(0x480)]['presentationChanged$'][_0x3e621e(0x494)](_0x14e5c7=>{const _0x5a6db1=_0x3e621e;var _0x1b4ae6;(_0x1b4ae6=this[_0x5a6db1(0x446)][_0x5a6db1(0x3a3)](this[_0x5a6db1(0x3e8)](_0x14e5c7[_0x5a6db1(0x332)],_0x14e5c7['subUnitId'],_0x14e5c7[_0x5a6db1(0x487)])))==null||_0x1b4ae6[_0x5a6db1(0x185)](_0x574f3c=>_0x574f3c[_0x5a6db1(0x1ee)](_0x14e5c7['presentation'],_0x14e5c7[_0x5a6db1(0x30f)]));})),this[_0x3e621e(0x428)](this[_0x3e621e(0x22e)][_0x3e621e(0x436)]['subscribe'](_0xeed701=>{_0xeed701['forEach'](_0x3570ad=>{const _0x21b3d8=_0x2769;this[_0x21b3d8(0x480)][_0x21b3d8(0x1b8)]({'unitId':_0x3570ad['unitId'],'subUnitId':_0x3570ad['subUnitId'],'shapeId':_0x3570ad[_0x21b3d8(0x313)]}),this[_0x21b3d8(0x446)][_0x21b3d8(0x2a7)](this[_0x21b3d8(0x3e8)](_0x3570ad['unitId'],_0x3570ad[_0x21b3d8(0x46b)],_0x3570ad['drawingId']));});}));}[_0x46885f(0x448)](_0x16d163,_0x59e708,_0xe97b92){const _0x43210c=_0x46885f;let {transform:_0x5a8bd4,drawingType:_0x4f1352,srcRect:_0x59efb4,prstGeom:_0x17a6ab,groupId:_0x33aa3e,unitId:_0x20aefa,subUnitId:_0x3199c9,drawingId:_0x709784,isMultiTransform:_0x55e1ec,transforms:_0x1fab69,hidden:_0x249454,selectable:_0x240ffa}=_0x16d163;if(_0x4f1352!==a[_0x43210c(0x196)][_0x43210c(0x288)]||!this['_drawingManagerService'][_0x43210c(0x186)]()||_0x5a8bd4==null)return;let _0x1f14c9=this[_0x43210c(0x22e)][_0x43210c(0x3cc)](),_0x14108d=_0x55e1ec&&_0x1fab69?_0x1fab69:[_0x5a8bd4],_0x2caa5d=[];for(let _0x378b07 of _0x14108d){let {left:_0x250830,top:_0x57eeb7,width:_0x60fe71,height:_0x5b6e38,angle:_0x599132,flipX:_0x4664b8,flipY:_0x40bccd,skewX:_0x539eab,skewY:_0x121efa}=_0x378b07,_0x562815=_0x14108d[_0x43210c(0x188)](_0x378b07),_0x455487=(0x0,s[_0x43210c(0x3c7)])({'unitId':_0x20aefa,'subUnitId':_0x3199c9,'drawingId':_0x709784},_0x55e1ec?_0x562815:void 0x0),_0x5ee50d=_0x59e708[_0x43210c(0x3c8)](_0x455487);if(_0x5ee50d!=null){let _0x182062={'unitId':_0x20aefa,'subUnitId':_0x3199c9,'shapeId':_0x709784};_0x5ee50d instanceof E&&this['refreshFormulaPresentation'](_0x5ee50d,_0x182062),_0x5ee50d[_0x43210c(0x414)]({'left':_0x250830,'top':_0x57eeb7,'width':_0x60fe71,'height':_0x5b6e38,'angle':_0x599132,'flipX':_0x4664b8,'flipY':_0x40bccd,'skewX':_0x539eab,'skewY':_0x121efa});continue;}let _0x5f4976=this[_0x43210c(0x22e)][_0x43210c(0x2df)](_0x20aefa,_0x3199c9),_0xf23fdf=_0x5f4976[_0x43210c(0x188)](_0x709784);if(_0x59e708[_0x43210c(0x3c8)](_0x455487)||!this[_0x43210c(0x22e)]['getDrawingVisible']())continue;let _0x350ac2=this[_0x43210c(0x464)]['getShapeModel'](_0x20aefa,_0x3199c9,_0x709784);if(!_0x350ac2)continue;let _0x187cea=(0x0,n['isConnectorShape'])(_0x350ac2[_0x43210c(0x449)]())?{...e[_0x43210c(0x224)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x43210c(0x224)],_0x1517b3=_0x350ac2[_0x43210c(0x279)]()[_0x43210c(0x1d1)],_0x16f3cc={'unitId':_0x20aefa,'subUnitId':_0x3199c9,'shapeId':_0x709784};_0x1517b3&&this[_0x43210c(0x480)][_0x43210c(0x3ec)](_0x16f3cc,_0x1517b3);let _0xc8b0e2=new E(_0x455487,{..._0x378b07,'zIndex':_0xf23fdf===-0x1?_0x5f4976['length']-0x1:_0xf23fdf,'shapeModel':_0x350ac2,'localeService':this[_0x43210c(0x1bf)],'shapeId':_0x709784,'unitId':_0x20aefa,'subUnitId':_0x3199c9,'visible':_0x249454!==!0x0,'evented':_0x240ffa!==!0x1,'formulaPresentation':_0x1517b3?this[_0x43210c(0x480)]['getPresentation'](_0x16f3cc):void 0x0,'animateFormulaPresentation':(_0x1517b3==null?void 0x0:_0x1517b3[_0x43210c(0x30f)])!==!0x1,'transformerConfig':_0x187cea});if(_0x1517b3){let _0x1bf615=this['_formulaKey'](_0x20aefa,_0x3199c9,_0x709784),_0x36ec8f=this[_0x43210c(0x446)]['get'](_0x1bf615)??new Set();_0x36ec8f[_0x43210c(0x36a)](_0xc8b0e2),this[_0x43210c(0x446)][_0x43210c(0x422)](_0x1bf615,_0x36ec8f);}_0x59e708['addObject'](_0xc8b0e2,c[_0x43210c(0x481)]),_0x1f14c9&&_0x59e708[_0x43210c(0x398)](_0xc8b0e2),_0x33aa3e&&(0x0,d[_0x43210c(0x2f9)])({'drawingId':_0x33aa3e,'unitId':_0x20aefa,'subUnitId':_0x3199c9},_0xc8b0e2,_0x59e708,this['_drawingManagerService']),_0x17a6ab!=null&&_0xc8b0e2['setPrstGeom'](_0x17a6ab),_0x59efb4!=null&&_0xc8b0e2['setSrcRect'](_0x59efb4);let _0x3fb94d=this[_0x43210c(0x3c3)](_0xc8b0e2,_0x350ac2['getShapeData']());if(_0x3fb94d){var _0x44c724;_0xe97b92==null||(_0x44c724=_0xe97b92[_0x43210c(0x19a)])==null||_0x44c724[_0x43210c(0x36a)](_0x3fb94d);}_0x2caa5d[_0x43210c(0x18c)](_0xc8b0e2);}return _0x2caa5d;}['_formulaKey'](_0x78afde,_0x531a32,_0x49df23){return _0x78afde+'\x00'+_0x531a32+'\x00'+_0x49df23;}['refreshFormulaPresentation'](_0x1be26b,_0x168b91){const _0x47623e=_0x46885f;let _0x31ab1b=this[_0x47623e(0x464)][_0x47623e(0x387)](_0x168b91[_0x47623e(0x332)],_0x168b91['subUnitId'],_0x168b91['shapeId']),_0x5bbe65=_0x31ab1b==null?void 0x0:_0x31ab1b[_0x47623e(0x279)]()[_0x47623e(0x1d1)],_0x3037c6=this[_0x47623e(0x3e8)](_0x168b91[_0x47623e(0x332)],_0x168b91['subUnitId'],_0x168b91[_0x47623e(0x487)]);if(_0x5bbe65){this[_0x47623e(0x480)][_0x47623e(0x3ec)](_0x168b91,_0x5bbe65);let _0x59e256=this[_0x47623e(0x446)][_0x47623e(0x3a3)](_0x3037c6)??new Set();_0x59e256[_0x47623e(0x36a)](_0x1be26b),this[_0x47623e(0x446)][_0x47623e(0x422)](_0x3037c6,_0x59e256);}else{var _0x16bb56;this['_shapeFormulaService'][_0x47623e(0x1b8)](_0x168b91),(_0x16bb56=this[_0x47623e(0x446)][_0x47623e(0x3a3)](_0x3037c6))==null||_0x16bb56['delete'](_0x1be26b);}_0x1be26b['setFormulaPresentation'](_0x5bbe65?this[_0x47623e(0x480)]['getPresentation'](_0x168b91):void 0x0,(_0x5bbe65==null?void 0x0:_0x5bbe65[_0x47623e(0x30f)])!==!0x1);}[_0x46885f(0x383)](_0x5963ee){const _0x30f118=_0x46885f;let _0x48f63a=_0x5963ee[_0x30f118(0x269)][_0x30f118(0x279)](),_0x587495=_0x48f63a[_0x30f118(0x435)];if(!_0x587495||_0x587495[_0x30f118(0x1bc)]!==n[_0x30f118(0x1b7)]['PictureFill']||!_0x587495[_0x30f118(0x1e4)]){_0x5963ee[_0x30f118(0x4ab)](void 0x0);return;}this[_0x30f118(0x3c3)](_0x5963ee,_0x48f63a);}[_0x46885f(0x3c3)](_0x4c6254,_0x5beb18){const _0x55aecd=_0x46885f;let _0x9eb883=_0x5beb18[_0x55aecd(0x435)];if(!_0x9eb883||_0x9eb883[_0x55aecd(0x1bc)]!==n[_0x55aecd(0x1b7)][_0x55aecd(0x367)]||!_0x9eb883[_0x55aecd(0x1e4)])return;let _0x2e8c37=_0x9eb883[_0x55aecd(0x1e4)],_0x24d672=_0x9eb883[_0x55aecd(0x297)]??n[_0x55aecd(0x1eb)][_0x55aecd(0x34c)],_0x9002db=this[_0x55aecd(0x408)][_0x55aecd(0x431)](_0x2e8c37,_0x24d672);if(_0x9002db){_0x4c6254['setFillImage'](_0x9002db);return;}return this[_0x55aecd(0x391)](_0x4c6254,_0x2e8c37,_0x24d672);}async[_0x46885f(0x391)](_0x58415d,_0x2ba4a8,_0xcf2f0a){const _0x5452b0=_0x46885f;let _0x25095f;try{if(_0xcf2f0a===n[_0x5452b0(0x1eb)][_0x5452b0(0x2f8)])_0x25095f=await this[_0x5452b0(0x408)][_0x5452b0(0x1e1)](_0x2ba4a8);else{if(_0xcf2f0a===n[_0x5452b0(0x1eb)][_0x5452b0(0x34c)])try{_0x25095f=await this[_0x5452b0(0x2cb)]['getImage'](_0x2ba4a8);}catch{_0x25095f=_0x2ba4a8;}else _0x25095f=_0x2ba4a8;}}catch(_0x1db298){console[_0x5452b0(0x24c)](_0x5452b0(0x348),_0x1db298);return;}await new Promise(_0x58259a=>{const _0x28ea2c=_0x5452b0;let _0x4edf85=new window[(_0x28ea2c(0x321))]();_0x4edf85[_0x28ea2c(0x1c6)]=()=>{const _0x5d81aa=_0x28ea2c;this[_0x5d81aa(0x408)]['addImageSourceCache'](_0x2ba4a8,_0xcf2f0a,_0x4edf85),_0x58415d['setFillImage'](_0x4edf85),_0x58259a();},_0x4edf85['onerror']=()=>{const _0x110ef7=_0x28ea2c;console['error'](_0x110ef7(0x28a),_0x2ba4a8),_0x58259a();},_0x4edf85[_0x28ea2c(0x251)]=_0x25095f;});}};A=k([O(0x0,s[_0x46885f(0x19c)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x3,a[_0x46885f(0x344)]),O(0x4,a[_0x46885f(0x471)]),O(0x5,(0x0,a[_0x46885f(0x41b)])(r[_0x46885f(0x2e0)]))],A);let j=class extends a['Disposable']{constructor(_0x11fe3d,_0x1804b9,_0x241454,_0x55edd9,_0x2888c9,_0x9b9d37){const _0x218d3e=_0x46885f;super(),this[_0x218d3e(0x22e)]=_0x11fe3d,this['_sheetsShapeService']=_0x1804b9,this['_renderManagerService']=_0x241454,this[_0x218d3e(0x2c9)]=_0x55edd9,this['_univerInstanceService']=_0x2888c9,this['_commandService']=_0x9b9d37,T(this,'_activeShapeId',null),T(this,_0x218d3e(0x296),null),T(this,'_subUnitId',null),T(this,'_activeShapeAdjustPointList',void 0x0),T(this,'_shapes',[]),T(this,'_baseShapeLeft',0x0),T(this,_0x218d3e(0x36b),0x0),T(this,_0x218d3e(0x207),0x0),T(this,'_baseShapeHeight',0x0),T(this,_0x218d3e(0x1bd),!0x1),T(this,_0x218d3e(0x18f),void 0x0),T(this,_0x218d3e(0x173),void 0x0),T(this,_0x218d3e(0x470),void 0x0),T(this,'_adjHandlerPointerUp',void 0x0),T(this,_0x218d3e(0x42d),!0x1),this[_0x218d3e(0x28c)](),this['_registerDrawingMoveHandler']();}[_0x46885f(0x184)](_0x2ffaca,_0x29ad91,_0x4cadf2){const _0x3d05e8=_0x46885f;let _0x1aa419=this[_0x3d05e8(0x464)]['getShapeModel'](_0x2ffaca,_0x29ad91,_0x4cadf2);if(_0x1aa419)return _0x1aa419['getDrawingPoints']();}[_0x46885f(0x24e)](){this['_clearShapeAdjustControls']();}[_0x46885f(0x1be)](){const _0x5a81ae=_0x46885f;this[_0x5a81ae(0x30c)](!0x0);}['setShouldShowAdjust'](_0x1ae8fc){const _0x273408=_0x46885f;this[_0x273408(0x42d)]=_0x1ae8fc;}[_0x46885f(0x1d3)](_0x3aff0d,_0x5a6573,_0x4ba115,_0x366cd7){const _0xd0b76d=_0x46885f;let _0x1bdaf3=this[_0xd0b76d(0x464)][_0xd0b76d(0x387)](_0x3aff0d,_0x5a6573,_0x4ba115);if(_0x1bdaf3)return _0x1bdaf3[_0xd0b76d(0x23a)](_0x366cd7);}['_createShapeAdjustControls'](_0x2e07f2=!0x1){const _0x1536c7=_0x46885f;if(this[_0x1536c7(0x296)]===null||this[_0x1536c7(0x40a)]===null||this[_0x1536c7(0x43c)]===null)return;let _0x3fea54=this[_0x1536c7(0x49a)][_0x1536c7(0x3c2)](this[_0x1536c7(0x296)]);if(!_0x3fea54||!_0x3fea54['with'](l[_0x1536c7(0x166)])[_0x1536c7(0x3ab)]())return;let {scene:_0x34ccb8}=_0x3fea54,_0x2f68d9={'unitId':this[_0x1536c7(0x296)],'subUnitId':this[_0x1536c7(0x40a)],'drawingId':this[_0x1536c7(0x43c)]},_0x4678d9=this[_0x1536c7(0x22e)][_0x1536c7(0x31f)](_0x2f68d9),{transform:_0x1ecc68}=_0x4678d9;if(!_0x1ecc68||_0x4678d9['drawingType']!==a[_0x1536c7(0x196)][_0x1536c7(0x288)])return;let {left:_0x2c2ca6,top:_0x46bc8c,width:_0x4445cc,height:_0x111c11,flipX:_0x579324,flipY:_0x4cfc2b,angle:_0x162f55=0x0}=_0x1ecc68;if(_0x2c2ca6===void 0x0||_0x46bc8c===void 0x0)return;if(_0x2e07f2){let _0x5e2047=this[_0x1536c7(0x464)][_0x1536c7(0x387)](this[_0x1536c7(0x296)],this['_subUnitId'],this[_0x1536c7(0x43c)]);_0x5e2047==null||_0x5e2047[_0x1536c7(0x3f7)]({'width':_0x4445cc??0x0,'height':_0x111c11??0x0}),this[_0x1536c7(0x234)]=_0x5e2047==null?void 0x0:_0x5e2047[_0x1536c7(0x2a1)]();}let _0x27b974=this[_0x1536c7(0x234)];for(let _0x360cc7=0x0;_0x360cc7<_0x27b974[_0x1536c7(0x453)];_0x360cc7++){let _0x192e2d=_0x27b974[_0x360cc7],_0x37babf=_0x192e2d['x'],_0x2ce8f2=_0x192e2d['y'];if(_0x579324&&(_0x37babf=(_0x4445cc||0x0)-_0x37babf),_0x4cfc2b&&(_0x2ce8f2=(_0x111c11||0x0)-_0x2ce8f2),_0x162f55!==0x0){let _0x378748=(_0x4445cc||0x0)/0x2,_0x128039=(_0x111c11||0x0)/0x2,_0x4e9d63=_0x162f55*Math['PI']/0xb4,_0x5a1497=Math[_0x1536c7(0x2ed)](_0x4e9d63),_0x39f780=Math['sin'](_0x4e9d63),_0x351dc3=_0x37babf-_0x378748,_0x56ad8f=_0x2ce8f2-_0x128039;_0x37babf=_0x378748+(_0x351dc3*_0x5a1497-_0x56ad8f*_0x39f780),_0x2ce8f2=_0x128039+(_0x351dc3*_0x39f780+_0x56ad8f*_0x5a1497);}let _0x29898e={'x':_0x37babf,'y':_0x2ce8f2,'adjName':_0x192e2d['adjName']};this[_0x1536c7(0x272)](_0x34ccb8,_0x29898e,_0x29898e['adjName'],_0x2c2ca6,_0x46bc8c,this[_0x1536c7(0x296)],this[_0x1536c7(0x40a)]);}}['_updateShapeAdjustControls'](_0x394cb6=!0x1){const _0x2916e0=_0x46885f;_0x394cb6&&(this[_0x2916e0(0x433)](),this['_createShapeAdjustControls'](_0x394cb6));}[_0x46885f(0x272)](_0x2c78df,_0x9a1724,_0x46857e,_0x55df7d,_0x73e685,_0x1347d7,_0x608ea4){const _0x1bbbc3=_0x46885f;if(!this[_0x1bbbc3(0x43c)])return;let _0x2c2eda=_0x2c78df[_0x1bbbc3(0x3c8)](_0x1bbbc3(0x493)+this[_0x1bbbc3(0x43c)]+'-'+_0x46857e);if(_0x2c2eda){_0x2c2eda[_0x1bbbc3(0x414)]({'left':_0x9a1724['x']+_0x55df7d-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'top':_0x9a1724['y']+_0x73e685-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)]});return;}let _0x4e82ae={'left':_0x9a1724['x']+_0x55df7d-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'top':_0x9a1724['y']+_0x73e685-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'adjName':_0x46857e,'shapeId':this[_0x1bbbc3(0x43c)],'unitId':_0x1347d7,'subUnitId':_0x608ea4,'width':n['ShapeDefaultConfig'][_0x1bbbc3(0x2a9)]+0x8,'height':n['ShapeDefaultConfig'][_0x1bbbc3(0x2a9)]+0x8,'zIndex':c[_0x1bbbc3(0x481)]+0x1,'evented':!0x0},_0x40af92=new D(_0x1bbbc3(0x493)+this[_0x1bbbc3(0x43c)]+'-'+_0x46857e,_0x4e82ae);this['_shapes'][_0x1bbbc3(0x18c)](_0x40af92),this[_0x1bbbc3(0x3a5)](_0x40af92,_0x2c78df,_0x46857e),_0x2c78df[_0x1bbbc3(0x182)](_0x40af92,c[_0x1bbbc3(0x481)]+0x1);}[_0x46885f(0x433)](){const _0x403bef=_0x46885f;this[_0x403bef(0x32d)][_0x403bef(0x453)]!==0x0&&(this[_0x403bef(0x32d)][_0x403bef(0x185)](_0x3675c7=>{const _0x587d71=_0x403bef;_0x3675c7[_0x587d71(0x169)]();}),this[_0x403bef(0x32d)]=[]);}[_0x46885f(0x1a9)](){const _0x4876b1=_0x46885f;this[_0x4876b1(0x472)]();}['_getScrollInfo'](_0x26e98e,_0x57c1e7){const _0x575b04=_0x46885f;var _0x2c94f9;let _0x421f4a={'x':0x0,'y':0x0};if(!_0x26e98e||!_0x57c1e7)return _0x421f4a;let _0x109382=this[_0x575b04(0x49a)][_0x575b04(0x3c2)](_0x26e98e);if(!_0x109382||!_0x109382[_0x575b04(0x42e)](l['SheetSkeletonManagerService'])[_0x575b04(0x478)](_0x57c1e7))return _0x421f4a;let _0x1ccc45=_0x109382[_0x575b04(0x42e)](l[_0x575b04(0x326)]),_0x2e6140=_0x1ccc45==null?void 0x0:_0x1ccc45[_0x575b04(0x208)]();if(!_0x2e6140)return _0x421f4a;let _0x2241e7=(_0x2c94f9=this[_0x575b04(0x1e6)][_0x575b04(0x47d)](_0x26e98e))==null?void 0x0:_0x2c94f9['getSheetBySheetId'](_0x57c1e7);if(!_0x2241e7)return _0x421f4a;let _0x28f195=(0x0,l[_0x575b04(0x1b0)])(_0x2e6140[_0x575b04(0x381)],_0x2e6140[_0x575b04(0x221)],_0x109382[_0x575b04(0x1c8)],_0x2241e7);return _0x28f195?{'x':_0x28f195[_0x575b04(0x334)],'y':_0x28f195['viewportScrollY']}:_0x421f4a;}[_0x46885f(0x19e)](_0xb019df,_0x9667ac){const _0x317621=_0x46885f;var _0x51bf41;let _0x2ad806=(_0x51bf41=this[_0x317621(0x1e6)][_0x317621(0x47d)](_0xb019df))==null?void 0x0:_0x51bf41[_0x317621(0x231)](_0x9667ac);return(_0x2ad806==null?void 0x0:_0x2ad806[_0x317621(0x3cf)]())??0x1;}[_0x46885f(0x3a5)](_0x23098d,_0x5c73d7,_0xed16c){const _0x4fa4d7=_0x46885f;this['disposeWithMe']((0x0,a[_0x4fa4d7(0x415)])(_0x23098d[_0x4fa4d7(0x3fa)][_0x4fa4d7(0x440)]((_0x57a1b5,_0x5e1a5d)=>{const _0xc56950=_0x4fa4d7;var _0x1825f4,_0x35eef6,_0x15360c,_0x39e7ec;let _0x4fc282=_0x23098d[_0xc56950(0x4ac)]();this[_0xc56950(0x18f)]=this[_0xc56950(0x1d3)](_0x4fc282[_0xc56950(0x332)],_0x4fc282[_0xc56950(0x46b)],_0x4fc282[_0xc56950(0x313)],_0xed16c),this[_0xc56950(0x173)]=this[_0xc56950(0x464)]['getShapeModel'](_0x4fc282[_0xc56950(0x332)],_0x4fc282[_0xc56950(0x46b)],_0x4fc282[_0xc56950(0x313)]);let _0x39addc=this[_0xc56950(0x22e)][_0xc56950(0x31f)]({'unitId':this[_0xc56950(0x296)],'subUnitId':this[_0xc56950(0x40a)],'drawingId':this[_0xc56950(0x43c)]}),{transform:_0x23c91c}=_0x39addc;if(_0x23c91c){let {left:_0xd4ab34,top:_0x57cc8b,width:_0x3d8e86,height:_0x255fd3}=_0x23c91c;this[_0xc56950(0x2d9)]=_0xd4ab34||0x0,this[_0xc56950(0x36b)]=_0x57cc8b||0x0,this['_baseShapeWidth']=_0x3d8e86||0x0,this['_baseShapeHeight']=_0x255fd3||0x0;}let _0x3bee73=!!((_0x1825f4=_0x39addc[_0xc56950(0x463)])!=null&&_0x1825f4['flipX']),_0x5c77a1=!!((_0x35eef6=_0x39addc[_0xc56950(0x463)])!=null&&_0x35eef6[_0xc56950(0x243)]),_0x5d052a=((_0x15360c=_0x39addc[_0xc56950(0x463)])==null?void 0x0:_0x15360c[_0xc56950(0x3f4)])||0x0;this[_0xc56950(0x1bd)]=!0x0,_0x5c73d7[_0xc56950(0x22f)]();let _0x19a2f3={...((_0x39e7ec=this['_activeAdjustInfo'])==null?void 0x0:_0x39e7ec[_0xc56950(0x2e2)])??{}};this[_0xc56950(0x470)]=_0x5c73d7['onPointerMove$']['subscribeEvent']((_0x281408,_0xb5ae8a)=>{const _0x46878d=_0xc56950;if(!this[_0x46878d(0x1bd)])return;let {offsetX:_0x379a42,offsetY:_0x3c5973}=_0x281408,_0x5789be=this[_0x46878d(0x18f)];if(this[_0x46878d(0x173)]&&_0x5789be){_0x5c73d7[_0x46878d(0x22f)](),_0x5c73d7[_0x46878d(0x447)](c['CURSOR_TYPE'][_0x46878d(0x2e6)]);let _0x138be5={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x262914=this[_0x46878d(0x29f)](this[_0x46878d(0x296)],this['_subUnitId']),_0x3c36de=this[_0x46878d(0x19e)](this['_unitId'],this[_0x46878d(0x40a)]),_0x5a5c89=_0x379a42/_0x3c36de+_0x262914['x']-this[_0x46878d(0x2d9)],_0x50e295=_0x3c5973/_0x3c36de+_0x262914['y']-this['_baseShapeTop'];if(_0x5d052a!==0x0){let _0xab6ea9=this[_0x46878d(0x207)]/0x2,_0xbc0f9c=this[_0x46878d(0x31d)]/0x2,_0x3869eb=_0x5d052a*Math['PI']/0xb4,_0x1eccd6=Math[_0x46878d(0x2ed)](_0x3869eb),_0x30a36f=Math['sin'](_0x3869eb),_0x26d818=_0x5a5c89-_0xab6ea9,_0x15fcd8=_0x50e295-_0xbc0f9c;_0x5a5c89=_0xab6ea9+(_0x26d818*_0x1eccd6+_0x15fcd8*_0x30a36f),_0x50e295=_0xbc0f9c+(-_0x26d818*_0x30a36f+_0x15fcd8*_0x1eccd6);}_0x3bee73&&(_0x5a5c89=this[_0x46878d(0x207)]-_0x5a5c89),_0x5c77a1&&(_0x50e295=this[_0x46878d(0x31d)]-_0x50e295);let _0x1fb5f5={'x':_0x5a5c89,'y':_0x50e295},_0x5ec9ea=this[_0x46878d(0x173)]['calcAdjValues'](_0x138be5,_0x1fb5f5,_0x5789be,_0x3bee73,_0x5c77a1);if(Object[_0x46878d(0x460)](_0x5ec9ea)[_0x46878d(0x453)]===0x0)return;for(let [_0x12e636,_0x2bbaaf]of Object[_0x46878d(0x3c5)](_0x5ec9ea))this[_0x46878d(0x173)][_0x46878d(0x3f5)](_0x12e636,_0x2bbaaf);this[_0x46878d(0x173)][_0x46878d(0x3f7)]({'width':this['_baseShapeWidth'],'height':this[_0x46878d(0x31d)]});let _0x1bbe33=this[_0x46878d(0x22e)][_0x46878d(0x31f)]({'unitId':_0x4fc282[_0x46878d(0x332)],'subUnitId':_0x4fc282[_0x46878d(0x46b)],'drawingId':_0x4fc282[_0x46878d(0x313)]});_0x1bbe33&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x1bbe33,_0x5c73d7),this[_0x46878d(0x234)]=this[_0x46878d(0x184)](_0x4fc282[_0x46878d(0x332)],_0x4fc282['subUnitId'],_0x4fc282[_0x46878d(0x313)]),this[_0x46878d(0x1a9)]());}_0xb5ae8a[_0x46878d(0x34e)]();}),this[_0xc56950(0x340)]=_0x5c73d7[_0xc56950(0x1f3)]['subscribeEvent']((_0x5976fd,_0x2aa463)=>{const _0x16009e=_0xc56950;this['_adjHandlerPointerMove'][_0x16009e(0x46a)](),this[_0x16009e(0x340)][_0x16009e(0x46a)](),_0x5c73d7['resetCursor']();let _0x34fffe=this[_0x16009e(0x18f)];if(_0x34fffe){let _0x4e03e3=_0x4fc282[_0x16009e(0x332)],_0x26f8ab=_0x4fc282[_0x16009e(0x46b)],_0x56e141=_0x4fc282[_0x16009e(0x313)],_0x1eca7a={};for(let _0x4b5f2c of Object['keys'](_0x34fffe[_0x16009e(0x2e2)])){var _0x488688;let _0x586ab3=(_0x488688=this[_0x16009e(0x173)])==null?void 0x0:_0x488688[_0x16009e(0x2d8)](_0x4b5f2c);_0x586ab3!==void 0x0&&(_0x1eca7a[_0x4b5f2c]=_0x586ab3);}Object[_0x16009e(0x460)](_0x1eca7a)[_0x16009e(0x453)]>0x0&&S(this['_commandService'],_0x4e03e3,_0x26f8ab,_0x56e141,{'oldShapeData':{'adjustValues':_0x19a2f3}},{'adjustValues':_0x1eca7a});}this[_0x16009e(0x18f)]=void 0x0,this[_0x16009e(0x173)]=void 0x0,this[_0x16009e(0x1bd)]=!0x1,_0x2aa463[_0x16009e(0x34e)](),_0x5c73d7[_0x16009e(0x37b)]();}),_0x5e1a5d['stopPropagation']();})));}[_0x46885f(0x1ef)](){const _0xa7090c=_0x46885f;let _0x14402b=this[_0xa7090c(0x1e6)][_0xa7090c(0x360)](a[_0xa7090c(0x267)]['UNIVER_SHEET']);this['disposeWithMe'](_0x14402b[_0xa7090c(0x24b)]((0x0,u[_0xa7090c(0x3b5)])(_0x3caec8=>_0x3caec8?_0x3caec8[_0xa7090c(0x2c7)][_0xa7090c(0x24b)]((0x0,u['switchMap'])(_0x5ca408=>{const _0x3185b9=_0xa7090c;if(!_0x5ca408)return u[_0x3185b9(0x456)];let _0x3cfe3f=_0x3caec8[_0x3185b9(0x3c4)](),_0x469bb3=this['_renderManagerService'][_0x3185b9(0x3c2)](_0x3cfe3f),_0x9a49f6=_0x469bb3==null?void 0x0:_0x469bb3[_0x3185b9(0x1c8)];return _0x9a49f6?(0x0,u['of'])(_0x9a49f6):u['EMPTY'];})):u[_0xa7090c(0x456)]))['subscribe'](_0x3979d9=>{const _0x3656ee=_0xa7090c;let _0x176def=_0x3979d9[_0x3656ee(0x40d)]();this[_0x3656ee(0x428)](_0x3979d9[_0x3656ee(0x30b)]['subscribeEvent'](()=>{const _0x598fca=_0x3656ee;this[_0x598fca(0x42d)];})),this['disposeWithMe'](_0x176def[_0x3656ee(0x46e)]['subscribe'](_0x471f4e=>{const _0x55962c=_0x3656ee;let {objects:_0x2b1e33}=_0x471f4e;this[_0x55962c(0x472)](),_0x2b1e33!==null&&_0x2b1e33['size']===0x1&&_0x2b1e33['values']()[_0x55962c(0x349)]()[_0x55962c(0x44b)]instanceof E&&this[_0x55962c(0x361)](!0x0);})),this[_0x3656ee(0x428)](_0x176def[_0x3656ee(0x38f)][_0x3656ee(0x494)](()=>{const _0x244582=_0x3656ee;this[_0x244582(0x42d)]&&this['_clearShapeAdjustControls']();})),this[_0x3656ee(0x428)](_0x3979d9[_0x3656ee(0x1f3)][_0x3656ee(0x440)](()=>{const _0x45dfe3=_0x3656ee;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x45dfe3(0x361)](!0x1),this[_0x45dfe3(0x472)]());})),this[_0x3656ee(0x428)](_0x176def['changeEnd$'][_0x3656ee(0x494)](()=>{const _0x782f9a=_0x3656ee;this['_unitId']&&this[_0x782f9a(0x40a)]&&this[_0x782f9a(0x43c)]&&this[_0x782f9a(0x22e)][_0x782f9a(0x31f)]({'unitId':this[_0x782f9a(0x296)],'subUnitId':this[_0x782f9a(0x40a)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this[_0x782f9a(0x184)](this[_0x782f9a(0x296)],this[_0x782f9a(0x40a)],this[_0x782f9a(0x43c)]),this['_updateAdjustControlPositions']());}));}));}[_0x46885f(0x28c)](){const _0x3583eb=_0x46885f;this['disposeWithMe'](this['_commandService'][_0x3583eb(0x2c6)](_0x19dd8d=>{const _0x2c7255=_0x3583eb;if(_0x19dd8d['id']!==i[_0x2c7255(0x44a)]['id'])return;let {unitId:_0x11438d,subUnitId:_0x4683b3,shapeId:_0x2d5dfc}=_0x19dd8d[_0x2c7255(0x211)];_0x11438d===this['_unitId']&&_0x4683b3===this[_0x2c7255(0x40a)]&&_0x2d5dfc===this[_0x2c7255(0x43c)]&&this[_0x2c7255(0x1be)]();})),this[_0x3583eb(0x428)](this[_0x3583eb(0x22e)][_0x3583eb(0x2d7)][_0x3583eb(0x494)](_0x548114=>{const _0x2a2b49=_0x3583eb;if(_0x548114['length']===0x1){let _0x406683=_0x548114[0x0];if(_0x406683[_0x2a2b49(0x218)]===a[_0x2a2b49(0x196)][_0x2a2b49(0x288)]&&this[_0x2a2b49(0x1e6)][_0x2a2b49(0x3d5)](_0x406683[_0x2a2b49(0x332)])===a[_0x2a2b49(0x267)][_0x2a2b49(0x264)]){this['_activeShapeId']=_0x406683[_0x2a2b49(0x313)];let {unitId:_0x4e06d9,subUnitId:_0x2cb6a1}=_0x406683;this[_0x2a2b49(0x234)]=this[_0x2a2b49(0x184)](_0x4e06d9,_0x2cb6a1,this[_0x2a2b49(0x43c)]),this[_0x2a2b49(0x296)]=_0x4e06d9,this[_0x2a2b49(0x40a)]=_0x2cb6a1,this[_0x2a2b49(0x433)](),this[_0x2a2b49(0x472)]();return;}}this[_0x2a2b49(0x43c)]=null,this[_0x2a2b49(0x234)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this[_0x3583eb(0x428)](this[_0x3583eb(0x22e)][_0x3583eb(0x2bd)]['subscribe'](_0xa421ba=>{const _0x56c3a8=_0x3583eb;if(_0xa421ba[_0x56c3a8(0x453)]===0x1){var _0x53f785;let _0x439224=_0xa421ba[0x0];((_0x53f785=this[_0x56c3a8(0x22e)][_0x56c3a8(0x31f)](_0x439224))==null?void 0x0:_0x53f785['drawingType'])===a[_0x56c3a8(0x196)]['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x3583eb(0x428)](this['_drawingManagerService'][_0x3583eb(0x436)][_0x3583eb(0x494)](_0x1b9514=>{const _0x4aa84e=_0x3583eb;for(let _0x265f6c of _0x1b9514)this[_0x4aa84e(0x43c)]===_0x265f6c['drawingId']&&(this[_0x4aa84e(0x43c)]=null,this[_0x4aa84e(0x234)]=void 0x0,this[_0x4aa84e(0x296)]=null,this['_subUnitId']=null,this[_0x4aa84e(0x433)]());}));}};j=k([O(0x0,s['IDrawingManagerService']),O(0x1,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(A)),O(0x4,a[_0x46885f(0x17b)]),O(0x5,a[_0x46885f(0x4aa)])],j);function _0x569f(){const _0x10c30f=['_urlImageService','useDependency','_popupMenuListener','DrawingImageClipService','_clearControls','_executeConnectionCommand','_generateCutPasteMutations','sheets-shape-ui.shape-format.style-ribbon-control','_handleFreeEndpointPointerUp','_generateCopyPasteMutations','render','_shapeFloatingToolbarService','focus$','getAdjustValueByName','_baseShapeLeft','18918rngPqv','_shapeTextEditingService','resolveShapeTextEditorBehaviorShapeData','shapeData','_clipService','getDrawingOrder','ShapeFormulaService','setPresentation','currentAdjustValues','UniverSheetsPlugin','getSheetId','includes','CROSSHAIR','attachPopupToObject','_executeConnectedRouteResizeCommand','registerCommand','_handleBasicShapeUpdateConnectorLineShape','drawWith','MoveUpIcon','cos','422232LoNPig','endArrow','Vector2','getOwnPropertyDescriptor','attachRangeWithCoord','MenuItemType','CommandType','sheet.command.menu-insert-shape','_injector','_getConnectionSiteAngle','UUID','insertGroupObject','hideContextualTab','_copyInfo','getActiveSheet','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','FlipHorizontalIcon','sheets-shape-ui.shape-format.text-ribbon-control','_renderWithCache','prstGeomAdjValues','_getOrCreateShapeModel','ToggleShapeFloatingToolbarOperation','_update','discreteRangeToRange','decorate','ancestorTransform','_formulaAnimation','shape-editor-ui.toolbar.quickStyles','FormulaShapeAnimationController','onPointerMove$','_updateShapeAdjustControls','_shapeRenderController','DrawingApplyType','animationEnabled','getConnectorLinePoints','_handleConnectedEndpointMove','getTransformer','drawingId','sheet.menu.shape.flip-vertical','vertical-center','ArrangeTypeEnum','gradientEndColor','ComponentManager','_cxtHandlerPointerUp','ShapeStyleRibbonControl','_createCopyInfoByRange','buildClipPath','_baseShapeHeight','image-clip-adjust-point-','getDrawingByParam','SHAPE_TEXT','Image','width','_iconManager','shapeKey','OTHERS','SheetScrollManagerService','ShapeFormatSettingIcon','dataModel','contentVerticalOffset','ShapeEditPanel','sheets-shape-text-','getBasicShapeRelation','_shapes','defineProperty','_configService','INSERT','@univerjs-pro/sheets-shape-ui','unitId','useMemo','viewportScrollX','normal','title','SELECTOR','_baseLeft','filter','deriveStateFromActiveSheet$','sheets-shape-ui.ribbon.shape-format.style-control','_transform','computeStraightConnectorLayout','featurePluginUpdateNotification','FOCUSING_COMMON_DRAWINGS','_adjHandlerPointerUp','add$','strokeWidth','_hide','IImageIoService','getTextModel','getDrawingDataForUnit','blockExecuteWithoutPermission','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','next','IContextService','_sheetBasicShapeConnectionPointController','URL','WorkbookEditablePermission','stopPropagation','Observable','MenuManagerPosition','getObjectListPanelLabels','SetDrawingArrangeCommand','UpdateLineShapeResizeCommand','getInterceptPoints','_cxnIndex','getOrCreateDrawingCopyPlan','resetCursor','close','sheets-shape-ui','startY','_commandExecutedListener','_sheetShapeAdjustController','PRINTING_COMPONENT_COLLECT','TOP','getDrawingOKey','getCurrentTypeOfUnit$','setShouldShowAdjust','_getDrawingRect','formulaPresentation','computeConnectorRouteLayout','sheets-shape-ui.ribbon.shape-format.arrange-front','Injector','PictureFill','_getImageDrawingInfo','getShapeDataById','add','_baseShapeTop','type','translateWithPrecision','symbol','shape-editor-ui.arrange.back','sheets-shape-ui.ribbon.shape-format.formula-control','sheet.shape.floating-toolbar','sheets-shape-ui.ribbon.shape-format.arrange-backward','getBatchAddOp','getActualSize','isHighlighted','UniverSheetsShapePlugin','CopySheetCommand','_sidebarService','_showConnectionSites','getScene','enableObjectsEvent','_currentConnectionTarget','DocumentSkeleton','prepareShapeTextDocumentData','sheets-shape-ui.insertShape','SheetsDrawingGroupCopyPasteController','sheetViewStartRow','ShapeTextRibbonControl','refreshShapeFillImage','clone','memo','plainShapeTextToDocumentData','getShapeModel','getCurrentLastSelection','_baseTop','_closeShapeEditPanel','shape-editor-ui.arrange.backward','DRAWING_IMAGE','createControl$','resize','changing$','div','_loadAndSetImage','_sheetSkeletonService','_executeResizeCommand','_focusedDrawings','description','run','useObservable','attachTransformerTo','visible','COMMAND','redo','sheets-shape-ui.config','_initMenu','_menuManagerService','sheet.image-clip.shape-picker.component','UniverDrawingPlugin','_highlightedSiteIndex','shape-editor-ui.arrange.forward','get','ContextMenuGroup','_attachAdjustEvent','_isStartConnectorPoint','_disposePopups','selectable','9141hgBwht','undo','getCurrentSkeleton','getBasicShapeRotateBound','SHAPE','_isHighlighted','classType','shape-editor-ui.toolbar.changeShape','_initCopyPaste','_attachConnectorObjectEvent','_addControl','actualHeight','switchMap','_activeShapeInfo','startConnectionDetection','getDrawingEffectBounds','isEditing','resolveShapeContextualRibbonHostMode','getValue','_updateSrcRectByTransform','_moveConnectorWithShape','_currentUniverService','cxnPointStrokeWidth','horizontal','_openShapeEditPanel','getRenderUnitById','_loadShapePictureFill','getUnitId','entries','disableShapeOption','getDrawingShapeKeyByDrawingSearch','getObjectIncludeInGroup','RemoveSheetsShapeMutation','sheet.command.update-shape-data','has','getDrawingEditable','_drawingRenderService','IRibbonService','getZoomRatio','DrawingRenderService','drawFormulaShapeAnimationLayers','getEndConnectInfo','composeMatrix','complete','getUnitType','IconManager','_insertingShapeKeys','isCurvedConnectorShape','Large','setEditing','connection-site-','setHighlighted','isRichText','Documents','_targetShapeId','onSavingEditorData$','_initSheetChange','clipTop','isRenderLinePointsMode','_context','None','getMenuHiddenObservable','CURSOR_TYPE','_formulaKey','isMainScene','_initEditingParams','marginTop','register','getObject','_onSavingEditorData$','getShapeQuickStyleType','DocEventManagerService','ShapeTypeEnum','rotation','setContextValue','angle','setAdjustValueByName','wrapStrategy','updateContext','SheetsShapeUIMenuSchema','_config','onPointerDown$','clip','worldPoints','onRendered','sheets-shape-ui.objectListPanel.open','_contextService','ang','REMOVE','fromChangeset','getConnectionInfo','canvas','getSelectedObjectMap','adjHandleFill','_draw','_imageIoService','35182MzOLQp','_subUnitId','trim','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getTransformerByCreate','Shape','transformForAngle','_calculateFreeEndpointAngle','useFormulaShapeToolbar','vertical','sqrt','transformByState','toDisposable','preValue','_editingParams$','getShapeTypeById','sheets-shape-ui.shape-format.quick-style-gallery','doc.image-clip.shape-picker.component','Inject','data','CUT','sheets-shape-ui.ribbon.shape-format.text-control','back','from','sheets-shape-ui.formatShape','set','find','lineType','offsetY','cxnIndex','_initPermission','disposeWithMe','ShapeFloatingToolbarService','default','_shapeService','DocSelectionManagerService','_isShouldShowDrawingShapeAdjust','with','localToWorld','getParent','getImageSourceCache','size','_clearShapeAdjustControls','_initEvents','fill','remove$','bottom','cloneShapeDataForType','getBatchRemoveOp','SheetSkeletonService','mergeMenu','_activeShapeId','changeShapeType','_shapePopupMenuDisposable','completeEditing','subscribeEvent','_isImagePointerDown','sheets-shape-format-font-family-menu','name','string','color','_formulaShapes','setCursor','renderDrawingShape','getShapeType','UpdateSheetsShapeDataMutation','value','#4285f4','syncExecuteCommand','custom','_activeTargetShapeId','calcAdjValues','viewportScrollY','_init','length','UniverShapeEditorUIPlugin','_generatePasteMutations','EMPTY','_handleConnectorPointerUp','transformToAxisAlignPosition','SHEET_VIEWPORT_KEY','Medium','cancelEditing','SetDrawingSelectedOperation','_connectionSiteObjects','SheetsShapeService','index','keys','function','Circle','transform','_sheetsShapeService','sheet.operation.update-shape-type','_sheetCanvasPopManagerService','multiply','Disposable','_props','unsubscribe','subUnitId','FromArray','BehaviorSubject','changeStart$','isArray','_adjHandlerPointerMove','IURLImageService','_createShapeAdjustControls','getBatchUpdateOp','_registerComponents','ISidebarService','canvasElement','FlipVerticalIcon','getSkeleton','sheet.shape.object-list.panel','sheets-shape-ui.objectListPanel.title','_reset','contentHeight','getUnit','SheetPermissionCheckController','skeleton','_shapeFormulaService','DRAWING_OBJECT_LAYER_INDEX','ShapeIcon','InsertSheetsShapeMutation','getInverseCoord','createShapeTextBoxShapeData','_rerouteConnectorLine','shapeId','_resetState','ShapeGroupEnum','_registerIcons','createShapeFormulaDocument','removeLinePoints','IMenuManagerService','_visible','useReducer','rect','UniverDocsPlugin','transformToDrawingPosition','shape-adjust-point-','subscribe','_registerMoveHandler','_getSceneAndTransformerByDrawingSearch','asObservable','OBJECT_LIST_FLOATING_SECTION_ID','_handleFreeEndpointMove','_renderManagerService','height','_drawShapeText','getDrawingData','446969AlDjDl','BottomIcon','sheets-shape-ui.shape-format.formula-ribbon-control','restore','150895DWbLva','_ribbonService','#bcbcbc','resolveShapeTextEditorWrapStrategy','getStartConnectInfo','IUndoRedoService','extensionGroups','resolveShapeTextDocumentRenderLayout','ICommandService','setFillImage','getDrawingSearch','top','BUTTON','getVisible','UniverDrawingUIPlugin','Transform','ShapePickerDropdown','map','DocSelectionRenderService','SheetSkeletonManagerService','visible$','_sheetDrawingService','dispose','ObjectLayersIcon','_addShapeConnectorHandlerObject','getConnectionRelation','FOCUSING_SHAPE_TEXT_EDITOR','clearActiveDrawingObjects','sheets-shape-ui.flipVertical','_draggingConnectorId','MoveDownIcon','DocCanvasPopManagerService','_activeShapeModel','left','getRealBound','actions','getEditing','DEFAULT_PASTE','isLineShape','_executeConnectedRouteConnectionCommand','IUniverInstanceService','DocumentDataModel','relation','_registerFocusChangeHandler','packageName','_shapeEditPanelVersion','getState','addObject','_connectorObjects','_getShapeAdjustPointListById','forEach','getDrawingVisible','invert','indexOf','_applyFormulaAutoFitSize','axisAlignSheetTransform','_releaseRenderCache','push','_sidebarDisposable','useEffect','_activeAdjustInfo','activateDrawingObject','values','startWith','VIEW_MAIN_LEFT','_commandService','end','DrawingTypeEnum','object','computeConnectorResizeLayout','copyType','resourceCollector','merge','IDrawingManagerService','normalizeShapeTextModel','_getZoomRatio','clipByShape','ShapeTextFloatMenuRenderControllerBase','reduce','COPY_TYPE','_componentManager','#FFFFFF','_drawingAddListener','_shapeId','setCanUseShapeClip','animateFormulaPresentation','_updateAdjustControlPositions','_drawingType','drawing.operation.set-drawing-active','Arrow','_isDrawingShapePointDown','forward','getObjectListPanelTypeName','getViewportByCell','pluginName','sectionCanvas','VerticalAlign','_insertShapes','clip-adj-','Module','ShapeFillEnum','unregister','adjustValues','registerRenderModule','applyPoint','fillType','_isStartAdjusting','refreshAdjustControls','_localeService','_sheetPrintInterceptorService','toStringTag','_addShapeConnectorHandlerObjects','intercept','ObjectListPanelBase','setShapeData','onload','setOnSavingEditorData','scene','isDrawingObject','SheetShapeTextEditorContainer','3860alnVzm','refreshTransform','focusDrawing','sheets-shape-ui.permission.editErr','updateDocumentDataMargin','_disposed','formulaBinding','GROUP','_getShapeAdjustInfosById','isRender','StraightConnector1','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','save','_clearPopups','extraProps','_initCommands','DocInterceptorService','_sheetClipboardService','_hasReset','_activeAdjustPointList','_findNearestConnectionSite','getImage','sheets-shape-ui.flipHorizontal','Line','fillImageSource','_adjName','_univerInstanceService','offsetX','ISheetDrawingService','sheet.menu.shape.flip-horizontal','isolated','ImageSourceTypeEnum','Plugin','getCurrentUnitOfType','setFormulaPresentation','_registerDrawingMoveHandler','clearAdjustValue','univer-box-border\x20univer-px-4\x20univer-text-sm','fontSize','onPointerUp$','cxnPointStroke','HorizontalAlign','getCanvasElement','1768zffXsg','ShapeQuickStyleGallery','UniverLicensePlugin','backward','sheets-shape-ui.ribbon.shape-format','_handleConnectedEndpointPointerUp','isHitLine','56bpCGLW','_drawRichText','_updateImageAdjValues','getSkeletonParam','onReady','objects','shapeType','_initialize','isHorizontal','_baseShapeWidth','getCurrentScrollState','ShapeFormulaRibbonControl','Path','useState','adjHandleStroke','DocumentViewModel','abs','clipHeight','executeCommand','params','initShapePopupMenu','scale','1.0.0-beta.2','getShapeTextData','WorksheetEditPermission','LEFT','drawingType','presetId','sheet.shape.text.float-menu','SetShapeDrawingDataCommand','touchDependencies','changeEnd$','_groupCopyPasteController','ShapeTextHyperLinkPopupService','sheetTransform','sheetViewStartColumn','setShapeProps','SolidLine','SHAPE_EDITOR_TRANSFORMER_CONFIG','getFocusDrawings','_imageShapeClipController','Rect','23172HwlVVE','updateConnectionDetection','start','UNIVER_DOC','UniverSheetsUIPlugin','693734ARCFSX','_drawingManagerService','disableObjectsEvent','shapeText','getSheetBySheetId','cxnPointFill','_clearShapeConnectorHandlerObjects','_activeShapeAdjustPointList','point','RENDER_CLASS_TYPE','DRAWING','UpdateConnectorRelationCommand','_drawSimpleText','getAdjustInfoByName','UPDATE','updateShapeFillImage','IRenderManagerService','sheet.operation.open-sheet-shape-format-panel','makeDirty','_registerImageShapeClipDelegate','onTransformChange$','isInGroup','flipY','srcRect','ShapeRenderModeEnum','registerClipDelegate','RemoveSheetDrawingCommand','isConnectorShape','open','TopmostIcon','pipe','error','_activeImageId','clearAdjustControls','_shapeUpdateListener','getObjectListPanelSectionIdForDrawingType','src','onSteady','stringify','UniverSheetsDrawingUIPlugin','cxnPointRadius','toPrimitive','routeConnectorLineShape','IConfigService','_updateTransform','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_cxtHandlerPointerMove','UniverShapeEditorPlugin','stroke','SheetPrintInterceptorService','_getShapeInfo','_baseWidth','idMap','translate','worldPoint','UNIVER_SHEET','OPERATION','parse','UniverInstanceType','setPrstGeom','shapeModel','adjName','prstGeom','hidden','SheetsShapeUIContextualRibbonSchema','jsx','SolidFill','_sheetPermissionCheckController','flipX','_addShapeAdjustControl','_initPrinting','showContextualTab','flatMap','version','getConnectionSiteList','clip-','getShapeData','_createControls','worldRect','engine','sheets-shape-ui.ribbon.shape-format.arrange-back','_getImagePrstGeom','setSrcRect','_index','_clearConnectionSites','ShapeArrowTypeEnum','jsxs','_sheetInterceptorService','constructor','sheet.operation.close-sheet-shape-format-panel','ShapeFloatingToolbar','DRAWING_SHAPE','panel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getMatrix','_registerDrawingFocusChangeHandler','getCurrentRangeDisable$','_lastEditingShapeKey','_registerGroupFeaturePasteHook','sheet.operation.open-shape-object-list-panel','_transformCalculateSrcRect','doc','_registerOperations','oKey','localeService','_unitId','fillImageSourceType','getSheetCommandTarget','UniverRenderEnginePlugin','_baseHeight','updateLinePoints','InsertShapeCommand','_baseDrawingRect','Fragment','_getScrollInfo','RibbonInsertGroup','getDrawingPoints','_currentScene','order','LocaleService','activeAnObject','ShapeArrowSizeEnum','delete','_getConnectPointInfo','adjHandleSize','getBentTypeFromPoints','startArrow','text','ConnectorCoordinateTransform','sin','_isOpenedShapeEditPanel','ShapeDefaultConfig','getAdjustNames','SetDrawingApplyMutation','ToggleSheetsShapeFlipCommand','_setTransForm','6pyBEBw','_isConnecting','_findShapeAtPoint','DependentOn','onDblclick$','setFallbackVisible','popup','endConnectionDetection','update$','ShapeTextEditorContainer','SheetCanvasPopManagerService','ShapeModel','startX','editingParams$','getDrawingTypeNameKey','ShapeTextFloatToolbar','SHEET_SHAPE_UI_PLUGIN','onCommandExecuted','activeSheet$','calculate','_sheetDrawingShapeRenderController','targetShapeId'];_0x569f=function(){return _0x10c30f;};return _0x569f();}const M={'id':_0x46885f(0x1ab),'type':a[_0x46885f(0x2f4)]['OPERATION'],'handler':(_0x5c8462,_0x22c1e2)=>{const _0x32d6bb=_0x46885f;let _0x28729f=_0x5c8462[_0x32d6bb(0x3a3)](s[_0x32d6bb(0x19c)]),_0x49ec3f=_0x5c8462[_0x32d6bb(0x3a3)](c[_0x32d6bb(0x23d)]),_0x2cb55d=_0x5c8462['get'](j);if(_0x22c1e2==null)return!0x0;if(_0x22c1e2['length']>0x0){var _0x52bcd1;let _0xe4a8da=(_0x52bcd1=_0x49ec3f[_0x32d6bb(0x3c2)](_0x22c1e2[0x0][_0x32d6bb(0x332)]))==null?void 0x0:_0x52bcd1[_0x32d6bb(0x1c8)];if(_0xe4a8da){let {unitId:_0x24e100,subUnitId:_0x1f94af,drawingId:_0x21ee64}=_0x22c1e2[0x0],_0x56af0d=(0x0,s[_0x32d6bb(0x3c7)])({'unitId':_0x24e100,'subUnitId':_0x1f94af,'drawingId':_0x21ee64},void 0x0),_0x4ee1c7=_0xe4a8da[_0x32d6bb(0x3c8)](_0x56af0d);if(_0x4ee1c7){var _0x42fccc;(_0x42fccc=_0x49ec3f[_0x32d6bb(0x3c2)](_0x22c1e2[0x0][_0x32d6bb(0x332)]))==null||(_0x42fccc=_0x42fccc[_0x32d6bb(0x1c8)][_0x32d6bb(0x312)]())==null||_0x42fccc[_0x32d6bb(0x2a5)](_0x4ee1c7);}}_0x28729f[_0x32d6bb(0x1cd)](_0x22c1e2),_0x2cb55d[_0x32d6bb(0x361)](!0x1);}return!0x0;}},N={'type':a['CommandType'][_0x46885f(0x39a)],'id':_0x46885f(0x2f5),'handler':async(_0x2edd08,_0x5adb77)=>{const _0x34ce95=_0x46885f;let _0x16ac56=(0x0,o[_0x34ce95(0x298)])(_0x2edd08[_0x34ce95(0x3a3)](a[_0x34ce95(0x17b)]));if(!_0x16ac56)return!0x1;let _0x24e4f2=_0x2edd08['get'](o['SheetsSelectionsService'])[_0x34ce95(0x388)]();if(!_0x24e4f2)return!0x1;let _0x4dc79a=_0x2edd08['get'](a[_0x34ce95(0x4aa)]),{unitId:_0x1180ce,subUnitId:_0x3ef158}=_0x16ac56,{value:_0x24f4c9,enhanceParams:_0xa2a17c}=_0x5adb77,{range:_0x58e4d9}=_0x24e4f2,_0x309327={'unitId':_0x1180ce,'subUnitId':_0x3ef158,'shapeType':_0x24f4c9,'range':_0x58e4d9,'shapeId':(0x0,a['generateRandomId'])()};if(_0xa2a17c){let _0x221f30=(0x0,n[_0x34ce95(0x248)])(_0x24f4c9),_0x13545a=_0x24f4c9===n[_0x34ce95(0x3f1)][_0x34ce95(0x227)];_0x221f30&&(_0xa2a17c[_0x34ce95(0x2ab)]||_0xa2a17c['endArrow'])&&(_0x309327[_0x34ce95(0x2dd)]={'ln':{'startArrow':_0xa2a17c['startArrow']?{'type':n['ShapeArrowTypeEnum']['Arrow'],'size':n[_0x34ce95(0x2a6)][_0x34ce95(0x45a)]}:void 0x0,'endArrow':_0xa2a17c[_0x34ce95(0x2ef)]?{'type':n[_0x34ce95(0x282)][_0x34ce95(0x1ac)],'size':n[_0x34ce95(0x2a6)][_0x34ce95(0x3d9)]}:void 0x0}}),_0x13545a&&(_0xa2a17c[_0x34ce95(0x3c0)]||_0xa2a17c[_0x34ce95(0x412)])&&(_0x309327[_0x34ce95(0x2dd)]=(0x0,r[_0x34ce95(0x485)])({'fill':{'fillType':n[_0x34ce95(0x1b7)][_0x34ce95(0x26f)],'color':_0x34ce95(0x1a4)},'isHorizontal':!!_0xa2a17c[_0x34ce95(0x3c0)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x34ce95(0x223)],'width':0x1,'color':_0x34ce95(0x4a4)}}));}let _0x1b8449=_0x4dc79a[_0x34ce95(0x44d)](i[_0x34ce95(0x29c)]['id'],_0x309327);return setTimeout(()=>{const _0x19d904=_0x34ce95;_0x4dc79a[_0x19d904(0x210)](M['id'],[{'unitId':_0x1180ce,'subUnitId':_0x3ef158,'drawingId':_0x309327[_0x19d904(0x487)]}]);},0xc8),_0x1b8449;}},P='sheet.shape.edit.panel',F=_0x46885f(0x479),I=_0x46885f(0x371),L=_0x46885f(0x1fb),R=(0x0,a['createInternalEditorID'])(_0x46885f(0x320)),re=_0x46885f(0x21a),ie={'id':_0x46885f(0x290),'type':a[_0x46885f(0x2f4)][_0x46885f(0x39a)],'handler':(_0x7da2bd,_0x1fb7f3)=>{const _0x4dfbc5=_0x46885f;let _0xca41b7=_0x7da2bd['get'](t['ISidebarService']),_0x178725=_0x7da2bd[_0x4dfbc5(0x3a3)](a[_0x4dfbc5(0x2a4)]),_0xb63ffb=_0x7da2bd[_0x4dfbc5(0x3a3)](a[_0x4dfbc5(0x17b)]),_0x2b7067=_0x7da2bd[_0x4dfbc5(0x3a3)](a['ICommandService']);return(0x0,o[_0x4dfbc5(0x298)])(_0xb63ffb)?(_0x1fb7f3==null?void 0x0:_0x1fb7f3['value'])===_0x4dfbc5(0x358)?(_0xca41b7[_0x4dfbc5(0x358)](F),!0x0):(_0xca41b7['open']({'id':F,'header':{'title':_0x178725['t'](_0x4dfbc5(0x47a))},'children':{'label':F},'onClose':()=>{const _0x3a0f3f=_0x4dfbc5;_0x2b7067[_0x3a0f3f(0x44d)](s[_0x3a0f3f(0x45c)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x46885f(0x2f4)]['OPERATION'],'id':_0x46885f(0x23e),'handler'(){return!0x0;}};function ae(_0x2d9dd0){const _0x1d04ee=_0x46885f;let _0x4a4350=_0x2d9dd0['get'](s[_0x1d04ee(0x19c)])['getFocusDrawings'](),_0x4a8bfb=_0x4a4350['length']===0x1?_0x4a4350[0x0]:null;if(!_0x4a8bfb||_0x4a8bfb[_0x1d04ee(0x218)]!==a[_0x1d04ee(0x196)][_0x1d04ee(0x288)])return null;let _0x314034=_0x2d9dd0['get'](i[_0x1d04ee(0x45e)]),_0x283d28=_0x314034[_0x1d04ee(0x418)](_0x4a8bfb[_0x1d04ee(0x332)],_0x4a8bfb['subUnitId'],_0x4a8bfb[_0x1d04ee(0x313)]),_0x5a4f20=_0x314034[_0x1d04ee(0x369)](_0x4a8bfb[_0x1d04ee(0x332)],_0x4a8bfb[_0x1d04ee(0x46b)],_0x4a8bfb[_0x1d04ee(0x313)]);return _0x283d28===void 0x0||!_0x5a4f20?null:{'drawing':_0x4a8bfb,'shapeData':_0x5a4f20,'shapeType':_0x283d28};}const B={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'handler':(_0x2a835e,_0xf55cb)=>{const _0x13747a=_0x46885f;let _0x3a8819=ae(_0x2a835e),_0x9d4253=(0x0,r['getShapeQuickStylePreset'])((_0xf55cb==null?void 0x0:_0xf55cb[_0x13747a(0x219)])??(_0xf55cb==null?void 0x0:_0xf55cb[_0x13747a(0x44b)])??'');if(!_0x3a8819||!_0x9d4253||_0x9d4253[_0x13747a(0x36c)]!==(0x0,r[_0x13747a(0x3ef)])(_0x3a8819[_0x13747a(0x2dd)]))return!0x1;let _0x5dded2=(0x0,r['applyQuickStyleToShapeData'])(_0x3a8819[_0x13747a(0x2dd)],_0x9d4253);if(!_0x5dded2)return!0x1;let {drawing:_0x3993c7}=_0x3a8819;return _0x2a835e[_0x13747a(0x3a3)](a[_0x13747a(0x4aa)])['executeCommand'](x['id'],{'unitId':_0x3993c7[_0x13747a(0x332)],'subUnitId':_0x3993c7[_0x13747a(0x46b)],'shapeId':_0x3993c7['drawingId'],'shapeData':_0x5dded2,'oldShapeJSON':{'oldShapeData':_0x3a8819['shapeData']}});}},oe={'id':_0x46885f(0x465),'type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'handler':(_0x5b6d48,_0x3ff2bc)=>{const _0x1e2510=_0x46885f;let _0x579544=ae(_0x5b6d48),_0x5ce395=(_0x3ff2bc==null?void 0x0:_0x3ff2bc['shapeType'])??(_0x3ff2bc==null?void 0x0:_0x3ff2bc[_0x1e2510(0x44b)]);if(!_0x579544||!_0x5ce395||(0x0,n[_0x1e2510(0x248)])(_0x579544['shapeType'])||(0x0,n['isConnectorShape'])(_0x5ce395))return!0x1;let _0x5ffdd0=(0x0,r[_0x1e2510(0x438)])(_0x579544[_0x1e2510(0x2dd)],_0x5ce395);if(!_0x5ffdd0)return!0x1;let {drawing:_0x40db80}=_0x579544;return _0x5b6d48[_0x1e2510(0x3a3)](a[_0x1e2510(0x4aa)])[_0x1e2510(0x210)](x['id'],{'unitId':_0x40db80[_0x1e2510(0x332)],'subUnitId':_0x40db80[_0x1e2510(0x46b)],'shapeId':_0x40db80[_0x1e2510(0x313)],'shapeType':_0x5ce395,'shapeData':_0x5ffdd0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x579544[_0x1e2510(0x204)],'oldShapeData':_0x579544[_0x1e2510(0x2dd)]}});}};let V=class extends a[_0x46885f(0x468)]{constructor(_0x1a28fb,_0x331493){const _0x58bb63=_0x46885f;super(),this['_clipService']=_0x1a28fb,this[_0x58bb63(0x22e)]=_0x331493,this[_0x58bb63(0x240)](),this[_0x58bb63(0x2de)]['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x58bb63(0x2de)][_0x58bb63(0x1a7)](!0x1)});}[_0x46885f(0x240)](){const _0xa7575a=_0x46885f;let _0x44301f=this[_0xa7575a(0x2de)],_0x32fead=new Map(),_0xbb1999=_0x44301f[_0xa7575a(0x246)]((_0xa287c5,_0x21a19c,_0x346fa,_0x36f872,_0x11c7ee)=>{const _0x57a548=_0xa7575a;let _0x120de6=_0x21a19c;if(_0x120de6===n[_0x57a548(0x3f1)]['None']||_0x21a19c===_0x57a548(0x44e))return!0x1;try{let _0x4170a6=_0x32fead[_0x57a548(0x3a3)](_0x21a19c);return _0x4170a6||(_0x4170a6=new n[(_0x57a548(0x2c0))](_0x120de6,_0x57a548(0x278)+_0x21a19c),_0x32fead[_0x57a548(0x422)](_0x21a19c,_0x4170a6)),_0x4170a6[_0x57a548(0x1f0)](),_0x11c7ee&&Object[_0x57a548(0x460)](_0x11c7ee)[_0x57a548(0x453)]>0x0&&_0x4170a6[_0x57a548(0x1c5)]({'adjustValues':_0x11c7ee},!0x0),_0x4170a6[_0x57a548(0x3f7)]({'width':_0x346fa,'height':_0x36f872}),_0x4170a6[_0x57a548(0x31c)](_0xa287c5,{'left':0x0,'top':0x0,'width':_0x346fa,'height':_0x36f872});}catch{return!0x1;}});this['disposeWithMe'](_0xbb1999),this[_0xa7575a(0x428)]({'dispose':()=>_0x32fead['clear']()});}['clipByShape'](_0x32921b,_0x29af5d,_0x179498,_0x249178,_0x17553f){const _0x19cb54=_0x46885f;let _0x4074ec=this['_drawingManagerService']['getDrawingData'](_0x32921b,_0x29af5d);if(!_0x4074ec[_0x179498])return;let _0x58101d={..._0x4074ec[_0x179498],'prstGeom':_0x249178,'adjustValues':_0x17553f};this[_0x19cb54(0x22e)][_0x19cb54(0x33e)]([_0x58101d]);}};V=k([O(0x0,(0x0,a['Inject'])(d[_0x46885f(0x2ce)])),O(0x1,(0x0,a['Inject'])(s[_0x46885f(0x19c)]))],V);const se='sheet.shape.picker.component',ce=_0x46885f(0x39f);function le({onShapeClick:_0x66be54,excludeGroups:_0x239bad}){return(0x0,f['jsx'])(e['ShapePickerPanel'],{'excludeGroups':_0x239bad,'onShapeClick':_0x66be54,'scrollContainer':'parent'});}function ue(){const _0x20c213=_0x46885f;let _0x4d045d=(0x0,t[_0x20c213(0x2cc)])(s['IDrawingManagerService']),_0x538ff5=(0x0,t[_0x20c213(0x2cc)])(V);return(0x0,f[_0x20c213(0x26e)])(e[_0x20c213(0x163)],{'buttonLabel':_0x20c213(0x1d6),'excludeGroups':[e[_0x20c213(0x489)][_0x20c213(0x1e3)]],'onShapeClick':_0xf87c0f=>{const _0x4a5417=_0x20c213;let _0x3d13e7=_0x4d045d[_0x4a5417(0x225)]()['find'](_0x4c1365=>_0x4c1365[_0x4a5417(0x218)]===a['DrawingTypeEnum'][_0x4a5417(0x38c)]);if(!_0x3d13e7)return;let {unitId:_0x5a130f,subUnitId:_0x2247d8,drawingId:_0x51336a}=_0x3d13e7;_0x538ff5[_0x4a5417(0x19f)](_0x5a130f,_0x2247d8,_0x51336a,_0xf87c0f[_0x4a5417(0x36c)]);}});}function de(){const _0x3cb9da=_0x46885f;let _0x36394b=(0x0,t[_0x3cb9da(0x2cc)])(t[_0x3cb9da(0x318)]),_0x40c4f9=(0x0,t[_0x3cb9da(0x2cc)])(s['IDrawingManagerService']),_0x32c19b=(0x0,t[_0x3cb9da(0x2cc)])(a[_0x3cb9da(0x17b)]),_0x4c151f=_0x40c4f9['getFocusDrawings']()[0x0],_0x4ecdef=_0x4c151f?_0x32c19b['getUnitType'](_0x4c151f[_0x3cb9da(0x332)]):void 0x0,_0x56e8d6=_0x4ecdef===a[_0x3cb9da(0x267)][_0x3cb9da(0x22b)]?_0x3cb9da(0x41a):_0x4ecdef===a[_0x3cb9da(0x267)][_0x3cb9da(0x264)]?ce:void 0x0,_0x4be213=_0x56e8d6?_0x36394b[_0x3cb9da(0x3a3)](_0x56e8d6):void 0x0;return _0x4be213?(0x0,f[_0x3cb9da(0x26e)])(_0x4be213,{}):null;}function fe(){const _0x47acda=_0x46885f;let _0x3a06e7=(0x0,t[_0x47acda(0x2cc)])(a['ICommandService']);return(0x0,f[_0x47acda(0x26e)])(le,{'onShapeClick':_0x4b5546=>{const _0x87ca70=_0x47acda;_0x3a06e7[_0x87ca70(0x210)](N['id'],{'value':_0x4b5546[_0x87ca70(0x36c)],'enhanceParams':{'endArrow':_0x4b5546[_0x87ca70(0x2ef)],'startArrow':_0x4b5546[_0x87ca70(0x2ab)],'horizontal':_0x4b5546[_0x87ca70(0x3c0)],'vertical':_0x4b5546[_0x87ca70(0x412)]}});}});}function pe(_0x27a8ac){const _0x102189=_0x46885f;let _0x4fdc0b=_0x27a8ac['get'](a[_0x102189(0x17b)]);return{'id':N['id'],'type':t[_0x102189(0x2f3)][_0x102189(0x337)],'selections':[{'label':{'name':se,'hoverable':!0x1,'selectable':!0x1,'props':{'id':N['id']}}}],'icon':_0x102189(0x482),'tooltip':_0x102189(0x37f),'activated$':(0x0,l[_0x102189(0x33a)])(_0x4fdc0b,!0x1,()=>new u['Observable'](_0x14771e=>{const _0x134502=_0x102189;_0x14771e[_0x134502(0x349)](!0x1);})),'hidden$':(0x0,t[_0x102189(0x3e6)])(_0x27a8ac,a[_0x102189(0x267)][_0x102189(0x264)]),'disabled$':(0x0,l['getCurrentRangeDisable$'])(_0x27a8ac)};}function me(_0x257f1e){const _0x1abd2e=_0x46885f;let _0x513532=_0x257f1e[_0x1abd2e(0x3a3)](a[_0x1abd2e(0x17b)]);return{'id':ie['id'],'type':t[_0x1abd2e(0x2f3)][_0x1abd2e(0x4ae)],'icon':_0x1abd2e(0x16a),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x1abd2e(0x3fe),'activated$':(0x0,l[_0x1abd2e(0x33a)])(_0x513532,!0x1,()=>new u[(_0x1abd2e(0x34f))](_0x57b848=>{const _0x1f41b4=_0x1abd2e;_0x57b848[_0x1f41b4(0x349)](!0x1);})),'hidden$':(0x0,t[_0x1abd2e(0x3e6)])(_0x257f1e,a[_0x1abd2e(0x267)][_0x1abd2e(0x264)]),'disabled$':(0x0,l[_0x1abd2e(0x28d)])(_0x257f1e)};}const he=_0x46885f(0x1e9),ge=_0x46885f(0x314);function _e(_0x3ba757){const _0x4d5cdd=_0x46885f;let _0x1fdcfe=_0x3ba757[_0x4d5cdd(0x3a3)](s['IDrawingManagerService'])[_0x4d5cdd(0x225)]();return _0x1fdcfe[_0x4d5cdd(0x453)]===0x1&&_0x1fdcfe[0x0][_0x4d5cdd(0x218)]===a['DrawingTypeEnum'][_0x4d5cdd(0x288)]?_0x1fdcfe[0x0]:null;}function ve(_0x44c505){const _0x1ffcf6=_0x46885f;let _0x30f3aa=_0x44c505[_0x1ffcf6(0x3a3)](s['IDrawingManagerService']);return _0x30f3aa[_0x1ffcf6(0x2d7)]['pipe']((0x0,u['startWith'])(_0x30f3aa[_0x1ffcf6(0x225)]()),(0x0,u['map'])(_0x3e5857=>_0x3e5857[_0x1ffcf6(0x453)]!==0x1||_0x3e5857[0x0][_0x1ffcf6(0x218)]!==a[_0x1ffcf6(0x196)][_0x1ffcf6(0x288)]));}function ye(_0x30edc9){const _0x376428=_0x46885f;return{'id':he,'commandId':i[_0x376428(0x2b3)]['id'],'type':t['MenuItemType'][_0x376428(0x4ae)],'title':_0x376428(0x1e2),'tooltip':_0x376428(0x1e2),'icon':'FlipHorizontalIcon','hidden$':ve(_0x30edc9),'params':()=>{const _0x57b777=_0x376428;let _0x24908b=_e(_0x30edc9);return _0x24908b?{'unitId':_0x24908b[_0x57b777(0x332)],'subUnitId':_0x24908b[_0x57b777(0x46b)],'shapeId':_0x24908b[_0x57b777(0x313)],'flipH':!0x0}:void 0x0;}};}function be(_0x4baf10){const _0x3655f9=_0x46885f;return{'id':ge,'commandId':i[_0x3655f9(0x2b3)]['id'],'type':t['MenuItemType'][_0x3655f9(0x4ae)],'title':_0x3655f9(0x16f),'tooltip':'sheets-shape-ui.flipVertical','icon':'FlipVerticalIcon','hidden$':ve(_0x4baf10),'params':()=>{const _0x45d686=_0x3655f9;let _0x153b4e=_e(_0x4baf10);return _0x153b4e?{'unitId':_0x153b4e['unitId'],'subUnitId':_0x153b4e[_0x45d686(0x46b)],'shapeId':_0x153b4e[_0x45d686(0x313)],'flipV':!0x0}:void 0x0;}};}const xe=_0x46885f(0x419),Se=_0x46885f(0x2d2),Ce=_0x46885f(0x2ff),we=_0x46885f(0x4a0);function H(){const _0x4b13bd=_0x46885f;let _0x371149=(0x0,t[_0x4b13bd(0x2cc)])(a['ICommandService']),_0x91432=(0x0,t[_0x4b13bd(0x2cc)])(s[_0x4b13bd(0x19c)]),_0x1d2624=(0x0,t[_0x4b13bd(0x2cc)])(i[_0x4b13bd(0x45e)]),_0x75f602=()=>{const _0x36f9ef=_0x4b13bd;var _0x39b849;let _0x46c960=_0x91432[_0x36f9ef(0x225)]();if(_0x46c960[_0x36f9ef(0x453)]!==0x1||((_0x39b849=_0x46c960[0x0])==null?void 0x0:_0x39b849[_0x36f9ef(0x218)])!==a[_0x36f9ef(0x196)][_0x36f9ef(0x288)])return null;let {unitId:_0x8d18c0,subUnitId:_0x50fbf0,drawingId:_0x151291}=_0x46c960[0x0],_0x5364ab=_0x1d2624[_0x36f9ef(0x418)](_0x8d18c0,_0x50fbf0,_0x151291),_0x1fb2a0=_0x1d2624['getShapeDataById'](_0x8d18c0,_0x50fbf0,_0x151291);return _0x5364ab===void 0x0||!_0x1fb2a0?null:{'unitId':_0x8d18c0,'subUnitId':_0x50fbf0,'drawingId':_0x151291,'shapeType':_0x5364ab,'shapeData':_0x1fb2a0};},_0x5f3edd=(0x0,t[_0x4b13bd(0x397)])(()=>new u[(_0x4b13bd(0x34f))](_0x363625=>{const _0xfa6f97=_0x4b13bd;let _0x10f3ef=()=>_0x363625[_0xfa6f97(0x349)](_0x75f602()),_0x567088=_0x91432['focus$'][_0xfa6f97(0x494)](_0x10f3ef),_0x322408=_0x371149[_0xfa6f97(0x2c6)](_0x2aae02=>{const _0x7d1586=_0xfa6f97;_0x2aae02['id']===i[_0x7d1586(0x44a)]['id']&&_0x10f3ef();});return _0x10f3ef(),()=>{const _0x52c542=_0xfa6f97;_0x567088[_0x52c542(0x46a)](),_0x322408['dispose']();};}),_0x75f602(),!0x1,[_0x371149,_0x91432,_0x1d2624]);return{'selection':_0x5f3edd,'updateShapeData':_0x554cb6=>{const _0xbd9c6c=_0x4b13bd;_0x5f3edd&&S(_0x371149,_0x5f3edd[_0xbd9c6c(0x332)],_0x5f3edd[_0xbd9c6c(0x46b)],_0x5f3edd[_0xbd9c6c(0x313)],{'oldShapeData':_0x5f3edd[_0xbd9c6c(0x2dd)]},_0x554cb6);}};}function Te(){const _0x57bc07=_0x46885f;let {selection:_0x1b4669,updateShapeData:_0x518ef7}=H();return _0x1b4669?(0x0,f['jsx'])(e[_0x57bc07(0x31a)],{'shapeData':_0x1b4669[_0x57bc07(0x2dd)],'shapeType':_0x1b4669['shapeType'],'onUpdateShapeData':_0x518ef7}):null;}function Ee(){const _0x4d4014=_0x46885f;let _0x144f8a=(0x0,t[_0x4d4014(0x2cc)])(a['ICommandService']),_0x3102b2=(0x0,t['useDependency'])(a['LocaleService']),{selection:_0x287f01}=H();return _0x287f01?(0x0,f[_0x4d4014(0x26e)])(e[_0x4d4014(0x1f8)],{'type':(0x0,r[_0x4d4014(0x3ef)])(_0x287f01[_0x4d4014(0x2dd)]),'ariaLabel':_0x3102b2['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x287f01[_0x4d4014(0x2dd)]),'onSelect':_0x117835=>_0x144f8a['executeCommand'](B['id'],{'presetId':_0x117835})}):null;}function De(){const _0xb3e927=_0x46885f;let {selection:_0x592974,updateShapeData:_0x3379f3}=H();return _0x592974?(0x0,f['jsx'])(e[_0xb3e927(0x382)],{'fontFamilyPopupDataComponent':_0xb3e927(0x442),'shapeData':_0x592974[_0xb3e927(0x2dd)],'onUpdateShapeData':_0x3379f3}):null;}function Oe(){const _0xe817c4=_0x46885f;var _0x5900ec;let {selection:_0x28bc5a,updateShapeData:_0x23386d}=H(),_0x58b2fc=(0x0,e[_0xe817c4(0x411)])({'hostType':a[_0xe817c4(0x267)]['UNIVER_SHEET'],'unitId':(_0x28bc5a==null?void 0x0:_0x28bc5a['unitId'])??'','subUnitId':(_0x28bc5a==null?void 0x0:_0x28bc5a['subUnitId'])??'','shapeId':(_0x28bc5a==null?void 0x0:_0x28bc5a[_0xe817c4(0x313)])??'','shapeData':_0x28bc5a==null?void 0x0:_0x28bc5a[_0xe817c4(0x2dd)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xe817c4(0x437),'onUpdateBinding':_0x5a8fd9=>_0x23386d({'formulaBinding':_0x5a8fd9})}),_0x559662=((_0x5900ec=_0x58b2fc[_0xe817c4(0x4a8)])==null?void 0x0:_0x5900ec[_0xe817c4(0x275)](_0x2e584c=>_0x2e584c[_0xe817c4(0x176)])[_0xe817c4(0x339)](_0x1d63ea=>_0x1d63ea[_0xe817c4(0x399)]!==!0x1))??[];return _0x28bc5a!=null&&_0x28bc5a[_0xe817c4(0x2dd)][_0xe817c4(0x1d1)]?(0x0,f[_0xe817c4(0x26e)])(e[_0xe817c4(0x209)],{'actions':_0x559662,'panel':_0x58b2fc[_0xe817c4(0x289)]}):null;}const ke=_0x46885f(0x33b),Ae=_0x46885f(0x41e),je=_0x46885f(0x370),Me='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ne=_0x46885f(0x372),Pe=_0x46885f(0x365),Fe=_0x46885f(0x27d);function Ie(_0x32fd4b){const _0x1508a1=_0x46885f;let _0x35f4d6=_0x32fd4b[_0x1508a1(0x3a3)](a[_0x1508a1(0x4aa)]),_0x5aa9e0=_0x32fd4b[_0x1508a1(0x3a3)](s[_0x1508a1(0x19c)]),_0x20eb9c=_0x32fd4b[_0x1508a1(0x3a3)](i[_0x1508a1(0x45e)]);return new u[(_0x1508a1(0x34f))](_0x4e7e7a=>{const _0x39c05c=_0x1508a1;let _0x5ff7fb=()=>{const _0x4b9b9c=_0x2769;let _0x5a9593=U(_0x32fd4b),_0x56c1ef=_0x5a9593?_0x20eb9c[_0x4b9b9c(0x369)](_0x5a9593[_0x4b9b9c(0x332)],_0x5a9593[_0x4b9b9c(0x46b)],_0x5a9593[_0x4b9b9c(0x313)]):null;_0x4e7e7a[_0x4b9b9c(0x349)](_0x56c1ef?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x56c1ef)??'':'');},_0x5a6eaf=_0x5aa9e0[_0x39c05c(0x2d7)][_0x39c05c(0x494)](_0x5ff7fb),_0x5c7366=_0x35f4d6[_0x39c05c(0x2c6)](_0x4099ec=>{const _0x33a888=_0x39c05c;_0x4099ec['id']===i[_0x33a888(0x44a)]['id']&&_0x5ff7fb();});return _0x5ff7fb(),()=>{const _0x54f2fa=_0x39c05c;_0x5a6eaf[_0x54f2fa(0x46a)](),_0x5c7366[_0x54f2fa(0x169)]();};});}function U(_0x616823){const _0x1e5faa=_0x46885f;var _0x2cc68d;let _0x26dae3=_0x616823[_0x1e5faa(0x3a3)](s['IDrawingManagerService'])[_0x1e5faa(0x225)]();return _0x26dae3['length']===0x1&&((_0x2cc68d=_0x26dae3[0x0])==null?void 0x0:_0x2cc68d[_0x1e5faa(0x218)])===a[_0x1e5faa(0x196)]['DRAWING_SHAPE']?_0x26dae3[0x0]:null;}function W(_0x3eedd1,_0x13433d=!0x1){const _0x1859b2=_0x46885f;let _0x3d804d=_0x3eedd1['get'](a['ICommandService']),_0x362b69=_0x3eedd1[_0x1859b2(0x3a3)](s[_0x1859b2(0x19c)]),_0x3cfe9a=_0x3eedd1[_0x1859b2(0x3a3)](i[_0x1859b2(0x45e)]);return new u[(_0x1859b2(0x34f))](_0x160ba9=>{const _0x25b87c=_0x1859b2;let _0xd64a5b=()=>{const _0x2f7f57=_0x2769;let _0x57c62f=U(_0x3eedd1);if(!_0x57c62f){_0x160ba9[_0x2f7f57(0x349)](!0x0);return;}let _0x3b2fd9=_0x3cfe9a['getShapeDataById'](_0x57c62f[_0x2f7f57(0x332)],_0x57c62f[_0x2f7f57(0x46b)],_0x57c62f[_0x2f7f57(0x313)]);_0x160ba9[_0x2f7f57(0x349)](!_0x3b2fd9||_0x13433d&&_0x3b2fd9[_0x2f7f57(0x1d1)]==null);},_0x5c23b8=_0x362b69[_0x25b87c(0x2d7)][_0x25b87c(0x494)](_0xd64a5b),_0x3e3866=_0x3d804d[_0x25b87c(0x2c6)](_0x27c3c=>{const _0x254d17=_0x25b87c;_0x27c3c['id']===i[_0x254d17(0x44a)]['id']&&_0xd64a5b();});return _0xd64a5b(),()=>{const _0x3e9ac6=_0x25b87c;_0x5c23b8[_0x3e9ac6(0x46a)](),_0x3e3866[_0x3e9ac6(0x169)]();};});}function Le(_0x2b198a){const _0x4cd0ad=_0x46885f;let _0xed95bf=_0x2b198a[_0x4cd0ad(0x3a3)](s[_0x4cd0ad(0x19c)]),_0x4b143b=_0x2b198a[_0x4cd0ad(0x3a3)](i[_0x4cd0ad(0x45e)]);return _0xed95bf[_0x4cd0ad(0x2d7)][_0x4cd0ad(0x24b)]((0x0,u[_0x4cd0ad(0x192)])(_0xed95bf[_0x4cd0ad(0x225)]()),(0x0,u[_0x4cd0ad(0x164)])(()=>{const _0x4108e7=_0x4cd0ad;let _0x4e0547=U(_0x2b198a),_0x4ec2fd=_0x4e0547?_0x4b143b[_0x4108e7(0x418)](_0x4e0547['unitId'],_0x4e0547[_0x4108e7(0x46b)],_0x4e0547['drawingId']):void 0x0;return _0x4ec2fd===void 0x0||(0x0,n[_0x4108e7(0x248)])(_0x4ec2fd);}));}function Re(_0xfd8571){const _0x30f722=_0x46885f;return{'id':B['id'],'type':t[_0x30f722(0x2f3)][_0x30f722(0x337)],'icon':'PaintIcon','title':_0x30f722(0x309),'tooltip':_0x30f722(0x309),'selections':[{'label':{'name':xe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ie(_0xfd8571),'hidden$':W(_0xfd8571)};}function ze(_0x3bb4f6){const _0x23aee0=_0x46885f;return{'id':oe['id'],'type':t[_0x23aee0(0x2f3)]['SELECTOR'],'icon':_0x23aee0(0x482),'title':_0x23aee0(0x3b0),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x3bb4f6)};}function Be(_0x381af9,_0x18c0df,_0x459c8c=!0x1){const _0x2b4872=_0x46885f;return _0x32447a=>({'id':_0x381af9,'type':t[_0x2b4872(0x2f3)][_0x2b4872(0x4ae)],'label':{'name':_0x18c0df,'hoverable':!0x1,'selectable':!0x1},'hidden$':W(_0x32447a,_0x459c8c)});}const Ve=Be(ke,Se),He=Be(Ae,Ce),Ue=Be(je,we,!0x0);function G(_0x1a2351,_0x1f0c59,_0x214ddc,_0x25fcea){const _0x193334=_0x46885f;return _0x561cf8=>({'id':_0x1a2351,'commandId':p[_0x193334(0x352)]['id'],'type':t[_0x193334(0x2f3)][_0x193334(0x4ae)],'icon':_0x214ddc,'title':_0x25fcea,'tooltip':_0x25fcea,'hidden$':W(_0x561cf8),'params':()=>{const _0x200492=_0x193334;let _0x54c127=U(_0x561cf8);return _0x54c127?{'unitId':_0x54c127[_0x200492(0x332)],'subUnitId':_0x54c127[_0x200492(0x46b)],'drawingIds':[_0x54c127['drawingId']],'arrangeType':_0x1f0c59}:void 0x0;}});}const We=G(Me,a[_0x46885f(0x316)][_0x46885f(0x1ae)],_0x46885f(0x2ec),_0x46885f(0x3a2)),Ge=G(Ne,a[_0x46885f(0x316)][_0x46885f(0x1fa)],_0x46885f(0x171),_0x46885f(0x38b)),Ke=G(Pe,a['ArrangeTypeEnum']['front'],_0x46885f(0x24a),'shape-editor-ui.arrange.front'),qe=G(Fe,a[_0x46885f(0x316)][_0x46885f(0x41f)],_0x46885f(0x49f),_0x46885f(0x36f));function Je(_0x24f88b){const _0x2d504c=_0x46885f;return{'id':z['id'],'type':t[_0x2d504c(0x2f3)]['BUTTON'],'icon':_0x2d504c(0x327),'title':_0x2d504c(0x421),'tooltip':_0x2d504c(0x421),'hidden$':W(_0x24f88b),'params':()=>{const _0x5e25e6=_0x2d504c;let _0x5a3d52=U(_0x24f88b);return _0x5a3d52?{'unitId':_0x5a3d52[_0x5e25e6(0x332)],'subUnitId':_0x5a3d52[_0x5e25e6(0x46b)],'drawingId':_0x5a3d52[_0x5e25e6(0x313)]}:void 0x0;}};}const Ye={[t[_0x46885f(0x350)]['RIBBON']]:{[L]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[B['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[oe['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[ke]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ae]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[he]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ye},[ge]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':be},[Me]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':We},[Ne]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ge},[Pe]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[Fe]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[je]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Je},[e[_0x46885f(0x303)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},Xe={[t[_0x46885f(0x2a0)]['MEDIA']]:{[N['id']]:{'order':0x4,'menuItemFactory':pe}},[t[_0x46885f(0x2a0)][_0x46885f(0x325)]]:{[ie['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':me}},[t['ContextMenuPosition'][_0x46885f(0x237)]]:{[t[_0x46885f(0x3a4)][_0x46885f(0x325)]]:{[he]:{'order':0x4,'menuItemFactory':ye},[ge]:{'order':0x5,'menuItemFactory':be}}}};var Ze=_0x46885f(0x331),Qe=_0x46885f(0x214);const $e={'type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'id':_0x46885f(0x286),'handler'(){return!0x0;}},et={};function tt(_0x336ad2){const _0x4403bc=_0x46885f;return _0x336ad2[_0x4403bc(0x40b)]()||void 0x0;}function nt(_0x10cb78,_0x591a17,_0x4b86ac){const _0x13e083=_0x46885f;var _0x504133;return((_0x504133=_0x10cb78[_0x13e083(0x443)])==null?void 0x0:_0x504133[_0x13e083(0x40b)]())||(0x0,d[_0x13e083(0x1af)])(_0x4b86ac,(0x0,e[_0x13e083(0x2c3)])(_0x10cb78[_0x13e083(0x218)]))+'\x20'+(_0x591a17+0x1);}function rt(){const _0x416124=_0x46885f;var _0x55f3ba;let _0xef49d4=(0x0,t[_0x416124(0x2cc)])(a['LocaleService']),_0x25f692=(0x0,t[_0x416124(0x2cc)])(a[_0x416124(0x4aa)]),_0xccf158=(0x0,t[_0x416124(0x2cc)])(a[_0x416124(0x17b)]),_0x14d7ef=(0x0,t[_0x416124(0x2cc)])(p[_0x416124(0x1e8)]),_0x5a700a=(0x0,t[_0x416124(0x2cc)])(s['IDrawingManagerService']),_0x3f3fb6=(0x0,t[_0x416124(0x2cc)])(c[_0x416124(0x23d)]),[,_0x14b7b5]=(0x0,y[_0x416124(0x48f)])(_0x34feff=>_0x34feff+0x1,0x0),_0x448e5a=_0xccf158[_0x416124(0x1ed)](a['UniverInstanceType'][_0x416124(0x264)]),_0x34599e=(_0x448e5a==null?void 0x0:_0x448e5a[_0x416124(0x3c4)]())??'',_0x459139=(_0x448e5a==null||(_0x55f3ba=_0x448e5a[_0x416124(0x2fc)]())==null?void 0x0:_0x55f3ba[_0x416124(0x2e4)]())??'',_0x1f60b1=(0x0,t[_0x416124(0x397)])(()=>_0x5a700a['focus$'],_0x5a700a[_0x416124(0x225)](),!0x1,[_0x5a700a]);(0x0,y[_0x416124(0x18e)])(()=>{const _0x2e6ae9=_0x416124;let _0x5ce1de=_0x25f692[_0x2e6ae9(0x2c6)](()=>_0x14b7b5());return()=>_0x5ce1de[_0x2e6ae9(0x169)]();},[_0x25f692]);let _0x5434c2=(0x0,y[_0x416124(0x333)])(()=>(0x0,d[_0x416124(0x351)])(_0xef49d4),[_0xef49d4]),_0x6cdc59=_0x34599e&&_0x459139?_0x14d7ef[_0x416124(0x49d)](_0x34599e,_0x459139):{},_0x306312=(_0x34599e&&_0x459139?_0x14d7ef[_0x416124(0x2df)](_0x34599e,_0x459139):[])['map'](_0x11944d=>_0x6cdc59[_0x11944d])[_0x416124(0x339)](_0x4174e8=>!!_0x4174e8)['reverse'](),_0x239285=_0x306312[_0x416124(0x1a1)]((_0x2b6861,_0x4d952c)=>(_0x2b6861[(0x0,d[_0x416124(0x250)])(_0x4d952c[_0x416124(0x218)])]+=0x1,_0x2b6861),{'canvas':0x0,'floating':0x0}),_0x1a5148={'canvas':0x0,'floating':0x0},_0x6593c9=_0x306312[_0x416124(0x164)]((_0x84dbce,_0xbf6447)=>{const _0x58d3ca=_0x416124;let _0xdf4dcd=(0x0,d[_0x58d3ca(0x250)])(_0x84dbce['drawingType']),_0x2fb94b=_0xdf4dcd===d[_0x58d3ca(0x498)],_0x6ae3fc=_0x1a5148[_0xdf4dcd]++;return{'id':_0x84dbce['drawingId'],'name':nt(_0x84dbce,_0xbf6447,_0xef49d4),'description':_0x84dbce[_0x58d3ca(0x395)],'visible':_0x84dbce['hidden']!==!0x0,'selectable':_0x84dbce['selectable']!==!0x1,'sectionId':_0xdf4dcd,'sectionTitle':_0x2fb94b?_0x5434c2['sectionFloating']:_0x5434c2[_0x58d3ca(0x1b2)],'capabilities':_0x2fb94b?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2fb94b&&_0x6ae3fc>0x0,'canMoveBackward':!_0x2fb94b&&_0x6ae3fc<_0x239285[_0x58d3ca(0x404)]-0x1,'canReorder':!_0x2fb94b};}),_0x123f80=(0x0,y['useMemo'])(()=>(_0x1f60b1??[])[_0x416124(0x339)](_0x5b92a4=>_0x5b92a4[_0x416124(0x332)]===_0x34599e&&_0x5b92a4[_0x416124(0x46b)]===_0x459139)[_0x416124(0x164)](_0x4362cd=>_0x4362cd[_0x416124(0x313)]),[_0x1f60b1,_0x459139,_0x34599e]),_0x3fc5a6=_0x123f80[_0x123f80[_0x416124(0x453)]-0x1]??null,_0x328f41=_0x5b27d1=>_0x14d7ef[_0x416124(0x31f)]({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x5b27d1})??null,_0x3c0ae2=async _0x19f6ac=>{const _0x275ec5=_0x416124;!_0x34599e||!_0x19f6ac[_0x275ec5(0x453)]||await _0x25f692[_0x275ec5(0x210)](p['SetSheetDrawingCommand']['id'],{'unitId':_0x34599e,'drawings':_0x19f6ac});},_0x1db84b=async(_0x4edf42,_0x368a40)=>{_0x328f41(_0x4edf42)&&await _0x3c0ae2([{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x4edf42,..._0x368a40}]);},_0x11ac85=(_0x23aecd,_0x1d30a3)=>{const _0xd52e45=_0x416124;if(!_0x34599e||!_0x459139)return;let _0x445980=_0x1d30a3?_0x123f80[_0xd52e45(0x2e5)](_0x23aecd)?_0x123f80[_0xd52e45(0x339)](_0x122404=>_0x122404!==_0x23aecd):[..._0x123f80,_0x23aecd]:[_0x23aecd];_0x25f692[_0xd52e45(0x44d)](s[_0xd52e45(0x45c)]['id'],_0x445980[_0xd52e45(0x164)](_0x5aac32=>({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x5aac32})));let _0x59c84c=_0x445980[_0x445980[_0xd52e45(0x453)]-0x1];_0x59c84c?(0x0,e[_0xd52e45(0x190)])(_0x3f3fb6,{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x59c84c}):(0x0,e[_0xd52e45(0x16e)])(_0x3f3fb6,_0x34599e);},_0x4684bd=async(_0x256ed5,_0x2f8238)=>{const _0x19c7ef=_0x416124;await _0x3c0ae2(_0x256ed5[_0x19c7ef(0x164)](_0x22be19=>_0x328f41(_0x22be19))[_0x19c7ef(0x339)](_0xafbe87=>!!_0xafbe87)[_0x19c7ef(0x339)](_0x513705=>_0x513705['hidden']!==!0x0!==_0x2f8238)[_0x19c7ef(0x164)](_0x545d2e=>({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x545d2e[_0x19c7ef(0x313)],'hidden':!_0x2f8238})));},_0x4adbfe=async _0x2ec2df=>{const _0x1b8cf1=_0x416124;let _0x3532b1=_0x328f41(_0x2ec2df);_0x3532b1&&await _0x1db84b(_0x2ec2df,{'selectable':_0x3532b1[_0x1b8cf1(0x3a8)]===!0x1&&void 0x0});},_0x4ff5a5=async(_0x4c1b23,_0x2f0b3c)=>{const _0x1e837a=_0x416124;var _0x4b54b6;let _0x56ffeb=tt(_0x2f0b3c);(((_0x4b54b6=_0x328f41(_0x4c1b23))==null?void 0x0:_0x4b54b6[_0x1e837a(0x443)])??void 0x0)!==_0x56ffeb&&await _0x1db84b(_0x4c1b23,{'name':_0x56ffeb});},_0x2f7bb4=async(_0x223ac0,_0x54a8b8)=>{var _0x533d8c;let _0xe8bd9d=tt(_0x54a8b8);(((_0x533d8c=_0x328f41(_0x223ac0))==null?void 0x0:_0x533d8c['description'])??void 0x0)!==_0xe8bd9d&&await _0x1db84b(_0x223ac0,{'description':_0xe8bd9d});},_0x23179e=async(_0x332a82,_0x5c2c66)=>{const _0x3ba8d7=_0x416124;!_0x34599e||!_0x459139||await _0x25f692[_0x3ba8d7(0x210)](p[_0x3ba8d7(0x352)]['id'],{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingIds':[_0x332a82],'arrangeType':_0x5c2c66});};return!_0x34599e||!_0x459139?(0x0,f[_0x416124(0x26e)])(_0x416124(0x390),{'className':_0x416124(0x2fd),'children':_0x5434c2[_0x416124(0x336)]}):(0x0,f['jsx'])(d[_0x416124(0x1c4)],{'items':_0x6593c9,'selectedIds':_0x123f80,'focusedId':_0x3fc5a6,'labels':_0x5434c2,'onSelect':_0x11ac85,'onSetVisible':_0x4684bd,'onCommitName':_0x4ff5a5,'onCommitDescription':_0x2f7bb4,'onMoveForward':async _0x583878=>_0x23179e(_0x583878,a['ArrangeTypeEnum'][_0x416124(0x1ae)]),'onMoveBackward':async _0x5bb715=>_0x23179e(_0x5bb715,a[_0x416124(0x316)]['backward']),'onToggleSelectable':_0x4adbfe});}let K=class{constructor(_0x3533c9){const _0x421eaf=_0x46885f;this[_0x421eaf(0x49a)]=_0x3533c9;}[_0x46885f(0x23c)](_0x56410c,_0x5daaa4){const _0x31bb5f=_0x46885f;let _0x5e9e8b=this[_0x31bb5f(0x49a)]['getRenderUnitById'](_0x56410c['unitId']),_0x12cbc7=_0x5e9e8b==null?void 0x0:_0x5e9e8b[_0x31bb5f(0x1c8)];if(!_0x12cbc7)return;let _0xb9f949=(0x0,s[_0x31bb5f(0x3c7)])(_0x56410c),_0x10543e=_0x12cbc7[_0x31bb5f(0x3c8)](_0xb9f949);_0x10543e==null||_0x10543e[_0x31bb5f(0x4ab)](_0x5daaa4);}};K=k([O(0x0,c[_0x46885f(0x23d)])],K);function it(){const _0x3a7c7a=_0x46885f;let _0x27c25e=(0x0,t[_0x3a7c7a(0x2cc)])(s['IDrawingManagerService']),_0x3a9d5a=(0x0,t[_0x3a7c7a(0x397)])(()=>_0x27c25e[_0x3a7c7a(0x2d7)],_0x27c25e[_0x3a7c7a(0x225)](),!0x1,[_0x27c25e]);return _0x3a9d5a['length']===0x0?null:(0x0,f[_0x3a7c7a(0x26e)])(_0x3a7c7a(0x390),{'children':(0x0,f[_0x3a7c7a(0x283)])(_0x3a7c7a(0x390),{'className':_0x3a7c7a(0x1f1),'children':[(0x0,f[_0x3a7c7a(0x26e)])(d['DrawingCommonPanel'],{'drawings':_0x3a9d5a,'hasCropper':!0x1}),(0x0,f[_0x3a7c7a(0x26e)])(_['SheetDrawingAnchor'],{'drawings':_0x3a9d5a})]})});}function _0x2769(_0x1b8e43,_0x4552){_0x1b8e43=_0x1b8e43-0x162;const _0x569f37=_0x569f();let _0x276967=_0x569f37[_0x1b8e43];return _0x276967;}function at(_0x287be3){const _0x437f50=_0x46885f;let {unitId:_0x5b522d,subUnitId:_0x138b5e,shapeId:_0x591204}=_0x287be3,_0x29bbbe=(0x0,t[_0x437f50(0x2cc)])(a[_0x437f50(0x4aa)]),_0x402594=(0x0,t[_0x437f50(0x2cc)])(K);return(0x0,f[_0x437f50(0x26e)])(e[_0x437f50(0x32a)],{..._0x287be3,'positionEditor':(0x0,f[_0x437f50(0x26e)])(it,{}),'onUpdateShapeData':(_0x3239fc,_0x4bf302)=>{S(_0x29bbbe,_0x5b522d,_0x138b5e,_0x591204,_0x3239fc,_0x4bf302);},'onUpdateLineShapeData':(_0x3689f9,_0x4fd679)=>{C(_0x29bbbe,_0x5b522d,_0x138b5e,_0x591204,_0x3689f9,_0x4fd679);},'onUpdateShapeFillImage':_0x1b2fe6=>{const _0x28be8f=_0x437f50;_0x402594[_0x28be8f(0x23c)]({'unitId':_0x5b522d,'subUnitId':_0x138b5e,'drawingId':_0x591204},_0x1b2fe6);}});}function ot(_0x16e8dd){const _0x5c8ddb=_0x46885f;let _0x5bbe94=(0x0,t[_0x5c8ddb(0x2cc)])(e[_0x5c8ddb(0x429)]),_0x5e9ca3=(0x0,t[_0x5c8ddb(0x397)])(()=>_0x5bbe94[_0x5c8ddb(0x167)],_0x5bbe94[_0x5c8ddb(0x4af)](),!0x1,[_0x5bbe94]),_0x30f010=_0x16e8dd[_0x5c8ddb(0x2bb)][_0x5c8ddb(0x1da)];return!_0x30f010||!_0x5e9ca3?null:(0x0,f[_0x5c8ddb(0x26e)])(st,{..._0x30f010,'canvasElement':_0x16e8dd[_0x5c8ddb(0x2bb)][_0x5c8ddb(0x476)]});}function st(_0x19ec3f){const _0x499743=_0x46885f;let _0x30610b=(0x0,t['useDependency'])(a['ICommandService']),_0xd4508=(0x0,t[_0x499743(0x2cc)])(i[_0x499743(0x45e)]),{unitId:_0x433c83,subUnitId:_0x113b83,drawingId:_0x2f314c,drawingType:_0xb93109,shapeType:_0x155597}=_0x19ec3f,[_0x5ce592,_0x20dbd4]=(0x0,y[_0x499743(0x20b)])(_0x19ec3f[_0x499743(0x2dd)]),_0x17cb28=(0x0,y[_0x499743(0x333)])(()=>(0x0,e['getTextStyle'])(_0x5ce592),[_0x5ce592]),_0xd6c854=(0x0,y[_0x499743(0x333)])(()=>(0x0,e[_0x499743(0x345)])(_0x5ce592),[_0x5ce592]);(0x0,y[_0x499743(0x18e)])(()=>{const _0x1daa51=_0x499743;let _0x4b60f4=_0x30610b[_0x1daa51(0x2c6)](_0x89ee98=>{const _0x4747e0=_0x1daa51;if(_0x89ee98['id']!==i[_0x4747e0(0x44a)]['id'])return;let _0x43ebdf=_0xd4508[_0x4747e0(0x369)](_0x433c83,_0x113b83,_0x2f314c);_0x43ebdf&&_0x20dbd4(_0x43ebdf);});return()=>_0x4b60f4['dispose']();},[_0x30610b,_0x2f314c,_0xd4508,_0x113b83,_0x433c83]);let _0x266fbb=_0x1c7442=>{_0x20dbd4(_0xe50af7=>({..._0xe50af7,..._0x1c7442}));},_0x101933=_0x8e083b=>{let _0x4f438c=(0x0,e['buildShapeTextDataUpdate'])(_0x5ce592,_0x8e083b);S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,{'oldShapeData':{'shapeText':_0x5ce592['shapeText']}},_0x4f438c),_0x266fbb(_0x4f438c);},_0x416319=(0x0,e[_0x499743(0x411)])({'hostType':a[_0x499743(0x267)]['UNIVER_SHEET'],'unitId':_0x433c83,'subUnitId':_0x113b83,'shapeId':_0x2f314c,'shapeData':_0x5ce592,'onUpdateBinding':_0x5a673d=>{const _0x410d1b=_0x499743;let _0x19f60c={'formulaBinding':_0x5a673d};S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,{'oldShapeData':{'formulaBinding':_0x5ce592[_0x410d1b(0x1d1)]}},_0x19f60c),_0x266fbb(_0x19f60c);}});return(0x0,f[_0x499743(0x283)])(f[_0x499743(0x29e)],{'children':[(0x0,f[_0x499743(0x26e)])(e[_0x499743(0x287)],{'canvasElement':_0x19ec3f[_0x499743(0x476)],'shapeData':_0x5ce592,'shapeType':_0x155597,'textStyle':{'ff':n['ShapeDefaultConfig'][_0x499743(0x230)]['fontFamily'],'fs':n[_0x499743(0x2b0)]['shapeText'][_0x499743(0x1f2)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x499743(0x230)][_0x499743(0x445)]},..._0x17cb28},'textModel':_0xd6c854?{'ha':_0xd6c854['ha']??a[_0x499743(0x1f5)][_0x499743(0x217)],'va':_0xd6c854['va']??a[_0x499743(0x1b3)][_0x499743(0x35e)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n['ShapeDefaultConfig'][_0x499743(0x435)],'defaultGradientEndColor':n[_0x499743(0x2b0)][_0x499743(0x317)],'defaultStrokeColor':n[_0x499743(0x2b0)]['stroke'],'extensionGroups':_0x416319['extensionGroups'],'onUpdateShapeData':(_0x4d9841,_0x1c21eb)=>{S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,_0x4d9841,_0x1c21eb),_0x1c21eb&&_0x266fbb(_0x1c21eb);},'onUpdateText':_0x101933,'onOpenPanel':()=>{const _0x4f6247=_0x499743;_0x30610b[_0x4f6247(0x210)](z['id'],{'unitId':_0x433c83,'subUnitId':_0x113b83,'drawingId':_0x2f314c});},'onDelete':()=>{const _0x54da52=_0x499743;_0x30610b[_0x54da52(0x210)](p[_0x54da52(0x247)]['id'],{'unitId':_0x433c83,'drawings':[{'unitId':_0x433c83,'subUnitId':_0x113b83,'drawingId':_0x2f314c,'drawingType':_0xb93109}]});}}),_0x416319[_0x499743(0x289)]]});}var q=class extends a[_0x46885f(0x468)]{constructor(..._0x5f3964){const _0x36ce15=_0x46885f;super(..._0x5f3964),T(this,_0x36ce15(0x417),new u[(_0x36ce15(0x46d))](null)),T(this,_0x36ce15(0x2c2),this[_0x36ce15(0x417)][_0x36ce15(0x497)]()),T(this,_0x36ce15(0x3ee),new u[(_0x36ce15(0x46d))](!0x1)),T(this,_0x36ce15(0x3e0),this[_0x36ce15(0x3ee)][_0x36ce15(0x497)]());}[_0x46885f(0x169)](){const _0x284986=_0x46885f;this[_0x284986(0x417)][_0x284986(0x349)](null),this[_0x284986(0x417)][_0x284986(0x3d4)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x284986(0x3ee)][_0x284986(0x3d4)](),super[_0x284986(0x169)]();}[_0x46885f(0x3da)](_0x36d3e6){const _0x18c9b0=_0x46885f;this[_0x18c9b0(0x417)][_0x18c9b0(0x349)](_0x36d3e6),_0x36d3e6??this[_0x18c9b0(0x3ee)]['next'](!0x1);}['setOnSavingEditorData'](_0x30920d){const _0x32b744=_0x46885f;this[_0x32b744(0x3ee)][_0x32b744(0x349)](_0x30920d);}[_0x46885f(0x177)](){const _0x3004d5=_0x46885f;return this[_0x3004d5(0x417)][_0x3004d5(0x3bb)]();}[_0x46885f(0x43f)](_0x9ac15e){const _0x486e9f=_0x46885f;this[_0x486e9f(0x177)]()&&(this[_0x486e9f(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x190a91=_0x486e9f;this[_0x190a91(0x3da)](null);}));}[_0x46885f(0x45b)](){const _0x495cf3=_0x46885f;this[_0x495cf3(0x177)]()&&this[_0x495cf3(0x3da)](null);}};function ct(_0x2c0943){const _0x295218=_0x46885f;return!!_0x2c0943&&_0x295218(0x18a)in _0x2c0943&&_0x295218(0x220)in _0x2c0943;}const lt=(0x0,y[_0x46885f(0x385)])(()=>{const _0x4f9c98=_0x46885f;let _0x20e9ca=(0x0,t[_0x4f9c98(0x2cc)])(q),_0x1bc59c=(0x0,t[_0x4f9c98(0x2cc)])(i[_0x4f9c98(0x45e)]),_0x5f35a4=(0x0,t[_0x4f9c98(0x2cc)])(s[_0x4f9c98(0x19c)]),_0x4b2ee4=(0x0,t[_0x4f9c98(0x2cc)])(a[_0x4f9c98(0x4aa)]),_0x1e2632=(0x0,t[_0x4f9c98(0x2cc)])(t['UndoRedoGroupService']),_0x51ed08=(0x0,t['useDependency'])(c[_0x4f9c98(0x23d)]);return(0x0,f[_0x4f9c98(0x26e)])(e[_0x4f9c98(0x2be)],{'adapter':(0x0,y[_0x4f9c98(0x333)])(()=>({'getShapeModel':(_0x4f8368,_0x3a07a7,_0x1b16ee)=>_0x1bc59c[_0x4f9c98(0x387)](_0x4f8368,_0x3a07a7,_0x1b16ee),'getShapeData':(_0xed37f6,_0x55a4c7,_0x394741)=>_0x1bc59c[_0x4f9c98(0x369)](_0xed37f6,_0x55a4c7,_0x394741),'getDrawingTransform':(_0x1f7736,_0x4bf85c,_0x3369bf)=>{const _0x48b838=_0x4f9c98;let _0x4baeb5=_0x5f35a4['getDrawingByParam']({'unitId':_0x1f7736,'subUnitId':_0x4bf85c,'drawingId':_0x3369bf});return _0x4baeb5==null?void 0x0:_0x4baeb5[_0x48b838(0x463)];},'updateShapeText':({unitId:_0x4e56ee,subUnitId:_0x328366,shapeId:_0x14d2c8,shapeText:_0x26d8df,oldShapeText:_0x24126d,hostSize:_0x176ebe})=>{const _0x3d9a97=_0x4f9c98;_0x1e2632[_0x3d9a97(0x396)](_0x4e56ee,()=>{const _0x4cd38a=_0x3d9a97;var _0xa156ab;let _0xc01ab1=_0x4b2ee4['syncExecuteCommand'](x['id'],{'unitId':_0x4e56ee,'subUnitId':_0x328366,'shapeId':_0x14d2c8,'shapeData':{'shapeText':_0x26d8df},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x24126d}}});if(!_0xc01ab1||!_0x176ebe)return _0xc01ab1;let _0x35fa2e=_0x5f35a4[_0x4cd38a(0x31f)]({'unitId':_0x4e56ee,'subUnitId':_0x328366,'drawingId':_0x14d2c8}),_0x1b903a=_0x35fa2e==null?void 0x0:_0x35fa2e[_0x4cd38a(0x463)];if(!ct(_0x35fa2e)||!_0x1b903a)return!0x1;let _0x3d1a7c={..._0x1b903a,'width':_0x176ebe['width'],'height':_0x176ebe[_0x4cd38a(0x49b)]},_0x5b25c2=(_0xa156ab=_0x51ed08['getRenderUnitById'](_0x4e56ee))==null||(_0xa156ab=_0xa156ab[_0x4cd38a(0x42e)](l[_0x4cd38a(0x166)])[_0x4cd38a(0x201)](_0x328366))==null?void 0x0:_0xa156ab[_0x4cd38a(0x47f)];return _0x4b2ee4[_0x4cd38a(0x44d)](p['SetSheetDrawingCommand']['id'],{'unitId':_0x4e56ee,'drawings':[{..._0x35fa2e,'transform':_0x3d1a7c,'sheetTransform':_0x5b25c2?(0x0,p[_0x4cd38a(0x492)])(_0x3d1a7c,_0x5b25c2)??_0x35fa2e[_0x4cd38a(0x220)]:_0x35fa2e[_0x4cd38a(0x220)],'axisAlignSheetTransform':_0x5b25c2?(0x0,p['transformToAxisAlignPosition'])(_0x3d1a7c,_0x5b25c2)??_0x35fa2e[_0x4cd38a(0x18a)]:_0x35fa2e[_0x4cd38a(0x18a)]}]});});},'updateHostSize':({unitId:_0x51d5d7,subUnitId:_0x9b0716,shapeId:_0x1c69ac,width:_0x25e5fd,height:_0x4987ba})=>{const _0x5733d5=_0x4f9c98;var _0x177098;let _0x201564=_0x5f35a4[_0x5733d5(0x31f)]({'unitId':_0x51d5d7,'subUnitId':_0x9b0716,'drawingId':_0x1c69ac}),_0x1c4a9b=_0x201564==null?void 0x0:_0x201564[_0x5733d5(0x463)];if(!ct(_0x201564)||!_0x1c4a9b)return;let _0x1d490e={..._0x1c4a9b,'width':_0x25e5fd,'height':_0x4987ba},_0x115d03=(_0x177098=_0x51ed08['getRenderUnitById'](_0x51d5d7))==null||(_0x177098=_0x177098[_0x5733d5(0x42e)](l['SheetSkeletonManagerService'])[_0x5733d5(0x201)](_0x9b0716))==null?void 0x0:_0x177098['skeleton'],_0x2c13f4=_0x115d03?(0x0,p[_0x5733d5(0x492)])(_0x1d490e,_0x115d03)??_0x201564['sheetTransform']:_0x201564[_0x5733d5(0x220)],_0x1b9dba=_0x115d03?(0x0,p[_0x5733d5(0x458)])(_0x1d490e,_0x115d03)??_0x201564[_0x5733d5(0x18a)]:_0x201564['axisAlignSheetTransform'];_0x4b2ee4['executeCommand'](p['SetSheetDrawingCommand']['id'],{'unitId':_0x51d5d7,'drawings':[{..._0x201564,'transform':_0x1d490e,'sheetTransform':_0x2c13f4,'axisAlignSheetTransform':_0x1b9dba}]});},'allowHostSizeShrink':({unitId:_0x22c841,subUnitId:_0x1d458b,shapeId:_0x5d3db7})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0x1bc59c['getShapeDataById'](_0x22c841,_0x1d458b,_0x5d3db7)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4b2ee4,_0x5f35a4,_0x51ed08,_0x1bc59c,_0x1e2632]),'editingService':_0x20e9ca,'editorUnitId':R,'positionOptions':(0x0,y[_0x4f9c98(0x333)])(()=>({'viewportKeys':{'main':c[_0x4f9c98(0x459)]['VIEW_MAIN'],'leftTop':c[_0x4f9c98(0x459)]['VIEW_MAIN_LEFT_TOP'],'top':c[_0x4f9c98(0x459)]['VIEW_MAIN_TOP'],'left':c[_0x4f9c98(0x459)][_0x4f9c98(0x193)]},'getSkeleton':(_0x1edc29,_0x207eb3)=>{const _0x381557=_0x4f9c98;var _0x477f67;return((_0x477f67=_0x1edc29[_0x381557(0x42e)](l[_0x381557(0x166)])['getSkeletonParam'](_0x207eb3['subUnitId']))==null?void 0x0:_0x477f67[_0x381557(0x47f)])??null;}}),[])});});let J=class extends a[_0x46885f(0x468)]{constructor(_0x234231,_0x1d7a72){const _0x1d2329=_0x46885f;super(),this['_componentManager']=_0x234231,this[_0x1d2329(0x323)]=_0x1d7a72,this[_0x1d2329(0x48a)](),this[_0x1d2329(0x474)]();}[_0x46885f(0x48a)](){const _0x2cfd54=_0x46885f;this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x16a))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'ObjectLayersIcon':v[_0x2cfd54(0x16a)]})),this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x2fe))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'FlipHorizontalIcon':v[_0x2cfd54(0x2fe)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x477))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'FlipVerticalIcon':v[_0x2cfd54(0x477)]})),this['_iconManager'][_0x2cfd54(0x3cb)](_0x2cfd54(0x49f))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'BottomIcon':v[_0x2cfd54(0x49f)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x171))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'MoveDownIcon':v['MoveDownIcon']})),this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x2ec))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'MoveUpIcon':v[_0x2cfd54(0x2ec)]})),this['_iconManager'][_0x2cfd54(0x3cb)]('ShapeFormatSettingIcon')||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'ShapeFormatSettingIcon':v[_0x2cfd54(0x327)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x24a))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'TopmostIcon':v[_0x2cfd54(0x24a)]}));}[_0x46885f(0x474)](){const _0x3dc499=_0x46885f;this[_0x3dc499(0x428)](this['_componentManager']['register'](P,at)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)]['register'](F,rt)),this['disposeWithMe'](this[_0x3dc499(0x1a3)]['register'](se,fe)),this['disposeWithMe'](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](ce,ue)),this[_0x3dc499(0x1a3)][_0x3dc499(0x3a3)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x3dc499(0x428)](this['_componentManager'][_0x3dc499(0x3ec)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],de)),this[_0x3dc499(0x428)](this['_componentManager'][_0x3dc499(0x3ec)](I,ot)),this['disposeWithMe'](this['_componentManager'][_0x3dc499(0x3ec)](Se,Te)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](xe,Ee)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)]['register'](Ce,De)),this['disposeWithMe'](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](we,Oe)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](re,e[_0x3dc499(0x2c4)])),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](_0x3dc499(0x1ca),lt));}};J=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x318)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x3d6)]))],J);let ut=class extends a[_0x46885f(0x468)]{constructor(_0x371bc9,_0x51bbed,_0x36cfd1,_0x234a9d,_0x56b2c5){const _0x53596b=_0x46885f;super(),this[_0x53596b(0x3e4)]=_0x371bc9,this[_0x53596b(0x22e)]=_0x51bbed,this[_0x53596b(0x49a)]=_0x36cfd1,this[_0x53596b(0x1e6)]=_0x234a9d,this['_imageShapeClipController']=_0x56b2c5,T(this,_0x53596b(0x24d),null),T(this,_0x53596b(0x296),null),T(this,_0x53596b(0x40a),null),T(this,_0x53596b(0x1df),void 0x0),T(this,'_shapes',[]),T(this,_0x53596b(0x338),0x0),T(this,_0x53596b(0x389),0x0),T(this,_0x53596b(0x260),0x0),T(this,_0x53596b(0x29a),0x0),T(this,'_isStartAdjusting',!0x1),T(this,_0x53596b(0x18f),void 0x0),T(this,'_activeShapeModel',void 0x0),T(this,_0x53596b(0x470),void 0x0),T(this,'_adjHandlerPointerUp',void 0x0),T(this,_0x53596b(0x441),!0x1),this[_0x53596b(0x17e)](),this[_0x53596b(0x495)]();}[_0x46885f(0x24e)](){const _0xf37e6=_0x46885f;this[_0xf37e6(0x2cf)]();}['refreshAdjustControls'](){const _0x5e64ea=_0x46885f;this[_0x5e64ea(0x2cf)](),this[_0x5e64ea(0x27a)](!0x0);}[_0x46885f(0x302)](_0x4ee03f,_0x1269b0,_0x55e106,_0x274920){const _0x480e6a=_0x46885f;let _0x10e7c4=_0x4ee03f;if(_0x10e7c4!==n[_0x480e6a(0x3f1)][_0x480e6a(0x3e5)]&&_0x4ee03f!==_0x480e6a(0x44e))try{let _0x2f4faf=new n['ShapeModel'](_0x10e7c4,_0x480e6a(0x1b5)+_0x4ee03f);return _0x274920&&_0x2f4faf[_0x480e6a(0x1c5)]({'adjustValues':_0x274920},!0x0),_0x2f4faf['updateContext']({'width':_0x1269b0,'height':_0x55e106}),_0x2f4faf;}catch{return;}}['_getImageDrawingInfo'](_0x511e28,_0x328730,_0x1b8071){const _0x4d2746=_0x46885f;let _0x4b6fe1={'unitId':_0x511e28,'subUnitId':_0x328730,'drawingId':_0x1b8071},_0x4c00ce=this[_0x4d2746(0x22e)][_0x4d2746(0x31f)](_0x4b6fe1);if(!(!_0x4c00ce||_0x4c00ce[_0x4d2746(0x218)]!==a['DrawingTypeEnum'][_0x4d2746(0x38c)]))return _0x4c00ce;}[_0x46885f(0x27e)](_0x28b445,_0x5238f8,_0x4ede9b){const _0x34ec0c=_0x46885f;let _0x4bc880=this['_renderManagerService'][_0x34ec0c(0x3c2)](_0x28b445);if(!_0x4bc880)return;let {scene:_0x20918b}=_0x4bc880,_0x44e539=(0x0,s[_0x34ec0c(0x3c7)])({'unitId':_0x28b445,'subUnitId':_0x5238f8,'drawingId':_0x4ede9b}),_0x382e72=_0x20918b[_0x34ec0c(0x3ed)](_0x44e539);if(_0x382e72 instanceof c[_0x34ec0c(0x321)]){let _0x52c231=_0x382e72[_0x34ec0c(0x26b)];if(_0x52c231)return{'prstGeom':_0x52c231,'adjustValues':_0x382e72[_0x34ec0c(0x301)]};}}[_0x46885f(0x27a)](_0x4e42eb=!0x1){const _0x4d198c=_0x46885f;if(!this[_0x4d198c(0x296)]||!this[_0x4d198c(0x40a)]||!this['_activeImageId'])return;let _0x3d3bf2=this['_renderManagerService'][_0x4d198c(0x3c2)](this[_0x4d198c(0x296)]);if(!_0x3d3bf2||!_0x3d3bf2['with'](l[_0x4d198c(0x166)])[_0x4d198c(0x3ab)]())return;let {scene:_0x4a3cd1}=_0x3d3bf2,_0x2fe177=this[_0x4d198c(0x368)](this[_0x4d198c(0x296)],this[_0x4d198c(0x40a)],this['_activeImageId']);if(!_0x2fe177)return;let {transform:_0xce0f0c}=_0x2fe177;if(!_0xce0f0c)return;let {left:_0x57f18c,top:_0x532f0a,width:_0x419045,height:_0x520fdc,flipX:_0x3d2dd5,flipY:_0x502ab4,angle:_0x23512d=0x0}=_0xce0f0c;if(_0x57f18c===void 0x0||_0x532f0a===void 0x0)return;let _0xa57a2f=this[_0x4d198c(0x27e)](this[_0x4d198c(0x296)],this[_0x4d198c(0x40a)],this[_0x4d198c(0x24d)]);if(!_0xa57a2f)return;if(_0x4e42eb){let _0x5e3425=this[_0x4d198c(0x302)](_0xa57a2f[_0x4d198c(0x26b)],_0x419045||0x0,_0x520fdc||0x0,_0xa57a2f[_0x4d198c(0x1b9)]);if(!_0x5e3425)return;this[_0x4d198c(0x1df)]=_0x5e3425[_0x4d198c(0x2a1)]();}let _0x14dfe1=this[_0x4d198c(0x1df)];if(!(!_0x14dfe1||_0x14dfe1[_0x4d198c(0x453)]===0x0))for(let _0x286376=0x0;_0x286376<_0x14dfe1[_0x4d198c(0x453)];_0x286376++){let _0x196812=_0x14dfe1[_0x286376],_0x48b9d4=_0x196812['x'],_0x4bf1f8=_0x196812['y'];if(_0x3d2dd5&&(_0x48b9d4=(_0x419045||0x0)-_0x48b9d4),_0x502ab4&&(_0x4bf1f8=(_0x520fdc||0x0)-_0x4bf1f8),_0x23512d!==0x0){let _0x4f3495=(_0x419045||0x0)/0x2,_0x491a12=(_0x520fdc||0x0)/0x2,_0x467956=_0x23512d*Math['PI']/0xb4,_0x1b86f2=Math[_0x4d198c(0x2ed)](_0x467956),_0xa686f0=Math['sin'](_0x467956),_0x25d35c=_0x48b9d4-_0x4f3495,_0x3383b2=_0x4bf1f8-_0x491a12;_0x48b9d4=_0x4f3495+(_0x25d35c*_0x1b86f2-_0x3383b2*_0xa686f0),_0x4bf1f8=_0x491a12+(_0x25d35c*_0xa686f0+_0x3383b2*_0x1b86f2);}let _0x3e9574={'x':_0x48b9d4,'y':_0x4bf1f8,'adjName':_0x196812[_0x4d198c(0x26a)]};this[_0x4d198c(0x3b3)](_0x4a3cd1,_0x3e9574,_0x3e9574['adjName'],_0x57f18c,_0x532f0a,this[_0x4d198c(0x296)],this['_subUnitId']);}}[_0x46885f(0x3b3)](_0x45f207,_0x2fa58c,_0x12c6dd,_0x141421,_0x48263c,_0x36f371,_0x31add7){const _0x472f7c=_0x46885f;if(!this[_0x472f7c(0x24d)])return;let _0x17b466=_0x472f7c(0x31e)+this[_0x472f7c(0x24d)]+'-'+_0x12c6dd,_0x2edf4d=_0x45f207[_0x472f7c(0x3c8)](_0x17b466);if(_0x2edf4d){_0x2edf4d[_0x472f7c(0x414)]({'left':_0x2fa58c['x']+_0x141421-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'top':_0x2fa58c['y']+_0x48263c-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)]});return;}let _0x33a748=new D(_0x17b466,{'left':_0x2fa58c['x']+_0x141421-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'top':_0x2fa58c['y']+_0x48263c-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'adjName':_0x12c6dd,'shapeId':this[_0x472f7c(0x24d)],'unitId':_0x36f371,'subUnitId':_0x31add7,'width':n['ShapeDefaultConfig']['adjHandleSize']+0x8,'height':n[_0x472f7c(0x2b0)]['adjHandleSize']+0x8,'zIndex':c[_0x472f7c(0x481)]+0x1,'evented':!0x0});this[_0x472f7c(0x32d)]['push'](_0x33a748),this['_attachAdjustEvent'](_0x33a748,_0x45f207,_0x12c6dd),_0x45f207[_0x472f7c(0x182)](_0x33a748,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x46885f(0x2cf)](){const _0x501eda=_0x46885f;this['_shapes'][_0x501eda(0x453)]!==0x0&&(this[_0x501eda(0x32d)][_0x501eda(0x185)](_0x4fc5ac=>_0x4fc5ac['dispose']()),this[_0x501eda(0x32d)]=[]);}[_0x46885f(0x29f)](_0x41329d,_0x1b0df0){const _0x20e64d=_0x46885f;var _0x2ef341;let _0x233d76={'x':0x0,'y':0x0},_0x5efb9a=this[_0x20e64d(0x49a)][_0x20e64d(0x3c2)](_0x41329d);if(!_0x5efb9a||!_0x5efb9a[_0x20e64d(0x42e)](l[_0x20e64d(0x166)])['getSkeleton'](_0x1b0df0))return _0x233d76;let _0x3c5ce1=_0x5efb9a[_0x20e64d(0x42e)](l['SheetScrollManagerService']),_0xfe78d0=_0x3c5ce1==null?void 0x0:_0x3c5ce1[_0x20e64d(0x208)]();if(!_0xfe78d0)return _0x233d76;let _0x46bd21=(_0x2ef341=this['_univerInstanceService'][_0x20e64d(0x47d)](_0x41329d))==null?void 0x0:_0x2ef341[_0x20e64d(0x231)](_0x1b0df0);if(!_0x46bd21)return _0x233d76;let _0x5a30e5=(0x0,l[_0x20e64d(0x1b0)])(_0xfe78d0['sheetViewStartRow'],_0xfe78d0['sheetViewStartColumn'],_0x5efb9a[_0x20e64d(0x1c8)],_0x46bd21);return _0x5a30e5?{'x':_0x5a30e5['viewportScrollX'],'y':_0x5a30e5[_0x20e64d(0x451)]}:_0x233d76;}['_getZoomRatio'](_0x5e5947,_0x29bc5e){const _0x398e50=_0x46885f;var _0x2c55a2;let _0x2bda2e=(_0x2c55a2=this['_univerInstanceService']['getUnit'](_0x5e5947))==null?void 0x0:_0x2c55a2['getSheetBySheetId'](_0x29bc5e);return(_0x2bda2e==null?void 0x0:_0x2bda2e[_0x398e50(0x3cf)]())??0x1;}[_0x46885f(0x3a5)](_0x248cd1,_0x2e0ae0,_0x39dd21){const _0x36c0d9=_0x46885f;this[_0x36c0d9(0x428)]((0x0,a[_0x36c0d9(0x415)])(_0x248cd1['onPointerDown$'][_0x36c0d9(0x440)]((_0x446b39,_0x46b878)=>{const _0x43cd7d=_0x36c0d9;var _0x40a630,_0x51b262,_0x36a519;let {unitId:_0x3dfd03,subUnitId:_0x10c507,drawingId:_0x49aeed}=_0x248cd1[_0x43cd7d(0x4ac)](),_0x2db0af=this[_0x43cd7d(0x368)](_0x3dfd03,_0x10c507,_0x49aeed);if(!(_0x2db0af!=null&&_0x2db0af[_0x43cd7d(0x463)]))return;let {left:_0x318bf2,top:_0x3e1510,width:_0x1204f5,height:_0x5432cd}=_0x2db0af[_0x43cd7d(0x463)];this[_0x43cd7d(0x338)]=_0x318bf2||0x0,this['_baseTop']=_0x3e1510||0x0,this[_0x43cd7d(0x260)]=_0x1204f5||0x0,this['_baseHeight']=_0x5432cd||0x0;let _0x4ead83=!!((_0x40a630=_0x2db0af['transform'])!=null&&_0x40a630[_0x43cd7d(0x271)]),_0x34b48e=!!((_0x51b262=_0x2db0af[_0x43cd7d(0x463)])!=null&&_0x51b262[_0x43cd7d(0x243)]),_0x280445=((_0x36a519=_0x2db0af['transform'])==null?void 0x0:_0x36a519['angle'])||0x0,_0x2d5fd0=this[_0x43cd7d(0x27e)](_0x3dfd03,_0x10c507,_0x49aeed);if(!_0x2d5fd0)return;let _0x512497=this[_0x43cd7d(0x302)](_0x2d5fd0[_0x43cd7d(0x26b)],this['_baseWidth'],this['_baseHeight'],_0x2d5fd0['adjustValues']);if(!_0x512497||(this['_activeShapeModel']=_0x512497,this[_0x43cd7d(0x18f)]=_0x512497[_0x43cd7d(0x23a)](_0x39dd21),!this[_0x43cd7d(0x18f)]))return;this[_0x43cd7d(0x1bd)]=!0x0,_0x2e0ae0[_0x43cd7d(0x22f)]();let _0xd2ab8=_0x2d5fd0[_0x43cd7d(0x26b)];this['_adjHandlerPointerMove']=_0x2e0ae0[_0x43cd7d(0x30b)][_0x43cd7d(0x440)]((_0x2b099d,_0x3b737c)=>{const _0x39181d=_0x43cd7d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x366a94,offsetY:_0x45f9e6}=_0x2b099d,_0x501bc5=this[_0x39181d(0x18f)];if(!this['_activeShapeModel']||!_0x501bc5)return;_0x2e0ae0[_0x39181d(0x22f)](),_0x2e0ae0[_0x39181d(0x447)](c[_0x39181d(0x3e7)][_0x39181d(0x2e6)]);let _0x2c7b22={'left':0x0,'top':0x0,'width':this[_0x39181d(0x260)],'height':this[_0x39181d(0x29a)]},_0x531589=this[_0x39181d(0x29f)](_0x3dfd03,_0x10c507),_0xa50d6e=this[_0x39181d(0x19e)](_0x3dfd03,_0x10c507),_0x919149=_0x366a94/_0xa50d6e+_0x531589['x']-this[_0x39181d(0x338)],_0x35131b=_0x45f9e6/_0xa50d6e+_0x531589['y']-this[_0x39181d(0x389)];if(_0x280445!==0x0){let _0x2c1e49=this['_baseWidth']/0x2,_0x15f5df=this[_0x39181d(0x29a)]/0x2,_0x4aa8cc=_0x280445*Math['PI']/0xb4,_0x3e1e5c=Math[_0x39181d(0x2ed)](_0x4aa8cc),_0x131e83=Math[_0x39181d(0x2ae)](_0x4aa8cc),_0x24bc54=_0x919149-_0x2c1e49,_0x5d94c2=_0x35131b-_0x15f5df;_0x919149=_0x2c1e49+(_0x24bc54*_0x3e1e5c+_0x5d94c2*_0x131e83),_0x35131b=_0x15f5df+(-_0x24bc54*_0x131e83+_0x5d94c2*_0x3e1e5c);}_0x4ead83&&(_0x919149=this[_0x39181d(0x260)]-_0x919149),_0x34b48e&&(_0x35131b=this[_0x39181d(0x29a)]-_0x35131b);let _0x292e72=this[_0x39181d(0x173)][_0x39181d(0x450)](_0x2c7b22,{'x':_0x919149,'y':_0x35131b},_0x501bc5,_0x4ead83,_0x34b48e);if(Object[_0x39181d(0x460)](_0x292e72)[_0x39181d(0x453)]!==0x0){for(let [_0x554237,_0x2cf5ac]of Object[_0x39181d(0x3c5)](_0x292e72))this[_0x39181d(0x173)][_0x39181d(0x3f5)](_0x554237,_0x2cf5ac);this[_0x39181d(0x173)][_0x39181d(0x3f7)]({'width':this[_0x39181d(0x260)],'height':this[_0x39181d(0x29a)]}),this[_0x39181d(0x200)](_0x3dfd03,_0x10c507,_0x49aeed,_0x292e72),this['_activeAdjustPointList']=this[_0x39181d(0x173)][_0x39181d(0x2a1)](),this[_0x39181d(0x27a)](),_0x3b737c[_0x39181d(0x34e)]();}}),this[_0x43cd7d(0x340)]=_0x2e0ae0['onPointerUp$'][_0x43cd7d(0x440)]((_0x971a93,_0x4f1631)=>{const _0x1412ff=_0x43cd7d;if(this[_0x1412ff(0x470)][_0x1412ff(0x46a)](),this[_0x1412ff(0x340)][_0x1412ff(0x46a)](),_0x2e0ae0[_0x1412ff(0x357)](),this['_activeShapeModel']){let _0x5005b0=this[_0x1412ff(0x173)][_0x1412ff(0x2b1)](),_0x3f55d9={};for(let _0x5f328f of _0x5005b0){let _0x40b608=this['_activeShapeModel']['getAdjustValueByName'](_0x5f328f);_0x40b608!==void 0x0&&(_0x3f55d9[_0x5f328f]=_0x40b608);}this[_0x1412ff(0x226)]['clipByShape'](_0x3dfd03,_0x10c507,_0x49aeed,_0xd2ab8,_0x3f55d9);}this[_0x1412ff(0x18f)]=void 0x0,this[_0x1412ff(0x173)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f1631[_0x1412ff(0x34e)](),_0x2e0ae0[_0x1412ff(0x37b)]();}),_0x46b878['stopPropagation']();})));}[_0x46885f(0x200)](_0x3c9c7c,_0x564206,_0x3274f6,_0x5c76f4){const _0x3b050d=_0x46885f;let _0x30ee73=this[_0x3b050d(0x49a)]['getRenderUnitById'](_0x3c9c7c);if(!_0x30ee73)return;let {scene:_0x49f500}=_0x30ee73,_0x42a6f1=(0x0,s[_0x3b050d(0x3c7)])({'unitId':_0x3c9c7c,'subUnitId':_0x564206,'drawingId':_0x3274f6}),_0x4da522=_0x49f500['getObject'](_0x42a6f1);if(_0x4da522 instanceof c[_0x3b050d(0x321)]){let _0x12d938=_0x4da522[_0x3b050d(0x301)]??{};_0x4da522['setPrstGeomAdjValues']({..._0x12d938,..._0x5c76f4}),_0x4da522[_0x3b050d(0x23f)](!0x0);}}[_0x46885f(0x495)](){const _0xae6216=_0x46885f;let _0x3d10a5=this[_0xae6216(0x1e6)]['getCurrentTypeOfUnit$'](a[_0xae6216(0x267)][_0xae6216(0x264)]);this[_0xae6216(0x428)](_0x3d10a5[_0xae6216(0x24b)]((0x0,u[_0xae6216(0x3b5)])(_0x84a3fe=>_0x84a3fe?_0x84a3fe[_0xae6216(0x2c7)][_0xae6216(0x24b)]((0x0,u[_0xae6216(0x3b5)])(_0x2c4783=>{const _0x2f68e7=_0xae6216;if(!_0x2c4783)return u[_0x2f68e7(0x456)];let _0x2a482e=_0x84a3fe[_0x2f68e7(0x3c4)](),_0x41a97c=this['_renderManagerService'][_0x2f68e7(0x3c2)](_0x2a482e),_0x4d0ff1=_0x41a97c==null?void 0x0:_0x41a97c[_0x2f68e7(0x1c8)];return _0x4d0ff1?(0x0,u['of'])(_0x4d0ff1):u[_0x2f68e7(0x456)];})):u[_0xae6216(0x456)]))[_0xae6216(0x494)](_0x185e04=>{const _0x148833=_0xae6216;let _0x4357f3=_0x185e04[_0x148833(0x40d)]();this[_0x148833(0x428)](_0x185e04[_0x148833(0x30b)][_0x148833(0x440)](()=>{const _0x4f0d94=_0x148833;this[_0x4f0d94(0x441)]&&this['_clearControls']();})),this['disposeWithMe'](_0x4357f3[_0x148833(0x46e)][_0x148833(0x494)](_0x339c32=>{const _0x3e4fb2=_0x148833;let {objects:_0x4c3562}=_0x339c32;if(this[_0x3e4fb2(0x27a)](),_0x4c3562!==null&&_0x4c3562['size']===0x1){let _0x39a89e=_0x4c3562[_0x3e4fb2(0x191)]()[_0x3e4fb2(0x349)]()[_0x3e4fb2(0x44b)];_0x39a89e instanceof c[_0x3e4fb2(0x321)]&&_0x39a89e[_0x3e4fb2(0x26b)]&&(this[_0x3e4fb2(0x441)]=!0x0);}})),this[_0x148833(0x428)](_0x4357f3[_0x148833(0x38f)][_0x148833(0x494)](()=>{const _0x352fdd=_0x148833;this[_0x352fdd(0x441)]&&this['_clearControls']();})),this[_0x148833(0x428)](_0x185e04[_0x148833(0x1f3)][_0x148833(0x440)](()=>{const _0x2875f4=_0x148833;this[_0x2875f4(0x441)]&&(this[_0x2875f4(0x441)]=!0x1,this[_0x2875f4(0x27a)]());})),this['disposeWithMe'](_0x4357f3[_0x148833(0x21d)][_0x148833(0x494)](()=>{const _0x295177=_0x148833;if(this[_0x295177(0x296)]&&this[_0x295177(0x40a)]&&this['_activeImageId']){let _0x3f5946=this['_getImagePrstGeom'](this[_0x295177(0x296)],this['_subUnitId'],this[_0x295177(0x24d)]);if(_0x3f5946){var _0x515815,_0x5c7908;let _0x24213c=this[_0x295177(0x368)](this[_0x295177(0x296)],this[_0x295177(0x40a)],this['_activeImageId']),_0x2b5e11=(_0x24213c==null||(_0x515815=_0x24213c[_0x295177(0x463)])==null?void 0x0:_0x515815[_0x295177(0x322)])||0x0,_0x2068f1=(_0x24213c==null||(_0x5c7908=_0x24213c['transform'])==null?void 0x0:_0x5c7908[_0x295177(0x49b)])||0x0,_0x4ffc47=this[_0x295177(0x302)](_0x3f5946['prstGeom'],_0x2b5e11,_0x2068f1,_0x3f5946['adjustValues']);_0x4ffc47&&(this[_0x295177(0x1df)]=_0x4ffc47[_0x295177(0x2a1)](),this[_0x295177(0x2cf)](),this['_createControls'](!0x0));}}}));}));}[_0x46885f(0x17e)](){const _0x2430ff=_0x46885f;this['disposeWithMe'](this[_0x2430ff(0x22e)][_0x2430ff(0x2d7)][_0x2430ff(0x494)](_0x66ec87=>{const _0x526923=_0x2430ff;if(_0x66ec87['length']===0x1){let _0x22d4aa=_0x66ec87[0x0];if(_0x22d4aa['drawingType']===a[_0x526923(0x196)][_0x526923(0x38c)]){let {unitId:_0x5dcca6,subUnitId:_0x6b2d09,drawingId:_0x4b056f}=_0x22d4aa,_0x45dd2a=this[_0x526923(0x27e)](_0x5dcca6,_0x6b2d09,_0x4b056f);if(_0x45dd2a){var _0x212150,_0x527e5b;this[_0x526923(0x24d)]=_0x4b056f,this[_0x526923(0x296)]=_0x5dcca6,this[_0x526923(0x40a)]=_0x6b2d09;let _0x38c9b1=this['_getImageDrawingInfo'](_0x5dcca6,_0x6b2d09,_0x4b056f),_0x3afb2b=(_0x38c9b1==null||(_0x212150=_0x38c9b1[_0x526923(0x463)])==null?void 0x0:_0x212150['width'])||0x0,_0x228c1d=(_0x38c9b1==null||(_0x527e5b=_0x38c9b1[_0x526923(0x463)])==null?void 0x0:_0x527e5b[_0x526923(0x49b)])||0x0,_0x1fbca1=this[_0x526923(0x302)](_0x45dd2a[_0x526923(0x26b)],_0x3afb2b,_0x228c1d,_0x45dd2a[_0x526923(0x1b9)]);_0x1fbca1&&(this[_0x526923(0x1df)]=_0x1fbca1[_0x526923(0x2a1)]()),this[_0x526923(0x2cf)](),this[_0x526923(0x27a)](!0x0);}else this[_0x526923(0x488)]();}else this[_0x526923(0x488)]();}else this[_0x526923(0x488)]();})),this['disposeWithMe'](this[_0x2430ff(0x22e)]['update$'][_0x2430ff(0x494)](_0x19b8b4=>{const _0xaceea=_0x2430ff;if(_0x19b8b4[_0xaceea(0x453)]===0x1){let _0x5e31c1=_0x19b8b4[0x0],_0x364747=this['_drawingManagerService'][_0xaceea(0x31f)](_0x5e31c1);(_0x364747==null?void 0x0:_0x364747[_0xaceea(0x218)])===a[_0xaceea(0x196)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x5e31c1[_0xaceea(0x313)]&&(this[_0xaceea(0x2cf)](),this[_0xaceea(0x27a)](!0x0));}})),this['disposeWithMe'](this[_0x2430ff(0x22e)][_0x2430ff(0x436)][_0x2430ff(0x494)](_0x2fe0d1=>{const _0x32e6bf=_0x2430ff;for(let _0x258e76 of _0x2fe0d1)this[_0x32e6bf(0x24d)]===_0x258e76[_0x32e6bf(0x313)]&&this['_resetState']();}));}[_0x46885f(0x488)](){const _0x383d1a=_0x46885f;this['_activeImageId']=null,this[_0x383d1a(0x296)]=null,this[_0x383d1a(0x40a)]=null,this[_0x383d1a(0x1df)]=void 0x0,this[_0x383d1a(0x2cf)]();}};ut=k([O(0x1,s['IDrawingManagerService']),O(0x2,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x3,a[_0x46885f(0x17b)]),O(0x4,(0x0,a['Inject'])(V))],ut);const dt='sheets-shape-contextual-ribbon';let Y=class extends a['Disposable']{constructor(_0x1cbd7b,_0x120ca0,_0x1556b8,_0x39f214,_0x4948ea,_0x2a5925){const _0x3576cf=_0x46885f;super(),this['_menuManagerService']=_0x1cbd7b,this[_0x3576cf(0x4a3)]=_0x120ca0,this[_0x3576cf(0x22e)]=_0x1556b8,this['_univerInstanceService']=_0x39f214,this[_0x3576cf(0x49a)]=_0x4948ea,this[_0x3576cf(0x2d6)]=_0x2a5925,T(this,_0x3576cf(0x48e),!0x1),this['_menuManagerService']['mergeMenu'](Ye),this['disposeWithMe']((0x0,a[_0x3576cf(0x415)])(this[_0x3576cf(0x22e)][_0x3576cf(0x2d7)][_0x3576cf(0x494)](()=>this[_0x3576cf(0x304)]()))),this[_0x3576cf(0x304)]();}['dispose'](){const _0x36e4f3=_0x46885f;this[_0x36e4f3(0x2d6)][_0x36e4f3(0x2ba)](!0x1,dt),this[_0x36e4f3(0x343)](),super[_0x36e4f3(0x169)]();}[_0x46885f(0x304)](){const _0x3ace7e=_0x46885f;var _0x1e23bf;let _0x3fd60a=this[_0x3ace7e(0x22e)][_0x3ace7e(0x225)](),_0x2e5ecc=_0x3fd60a[_0x3ace7e(0x453)]===0x1?_0x3fd60a[0x0]:void 0x0;if((_0x2e5ecc==null?void 0x0:_0x2e5ecc['drawingType'])!==a[_0x3ace7e(0x196)][_0x3ace7e(0x288)]||this[_0x3ace7e(0x1e6)][_0x3ace7e(0x3d5)](_0x2e5ecc[_0x3ace7e(0x332)])!==a[_0x3ace7e(0x267)][_0x3ace7e(0x264)]){this[_0x3ace7e(0x2d6)][_0x3ace7e(0x2ba)](!0x1,dt),this['_hide']();return;}let _0x3fc003=(0x0,e[_0x3ace7e(0x3ba)])((_0x1e23bf=this[_0x3ace7e(0x49a)][_0x3ace7e(0x3c2)](_0x2e5ecc[_0x3ace7e(0x332)]))==null?void 0x0:_0x1e23bf[_0x3ace7e(0x27c)][_0x3ace7e(0x1f6)]())===_0x3ace7e(0x1ea);if(this['_shapeFloatingToolbarService']['setFallbackVisible'](_0x3fc003,dt),_0x3fc003){this[_0x3ace7e(0x343)]();return;}this[_0x3ace7e(0x48e)]||(this['_visible']=!0x0,this[_0x3ace7e(0x4a3)][_0x3ace7e(0x274)](L,{'activate':!0x0}));}[_0x46885f(0x343)](){const _0x52259b=_0x46885f;this['_visible']&&(this['_visible']=!0x1,this[_0x52259b(0x4a3)][_0x52259b(0x2fa)](L),this[_0x52259b(0x4a3)]['setCollapsedIds']([]));}};Y=k([O(0x0,t[_0x46885f(0x48d)]),O(0x1,t[_0x46885f(0x3ce)]),O(0x2,s[_0x46885f(0x19c)]),O(0x3,a['IUniverInstanceService']),O(0x4,c['IRenderManagerService']),O(0x5,(0x0,a[_0x46885f(0x41b)])(e[_0x46885f(0x429)]))],Y);function ft(_0x4c56e1,_0x3a2a6b,_0x42ca2b,_0x53ee02){const _0x1722eb=_0x46885f;let _0x4822a8=(0x0,s[_0x1722eb(0x356)])(_0x4c56e1,_0x3a2a6b,_0x42ca2b),_0x3696c5=[];for(let _0x1db2cd of _0x3a2a6b){let _0xea686e=_0x4822a8[_0x1722eb(0x261)][_0x1722eb(0x3a3)](_0x1db2cd[_0x1722eb(0x313)]),_0x434cb2=_0x53ee02(_0x1db2cd);!_0xea686e||!_0x434cb2||_0x3696c5[_0x1722eb(0x18c)]({'targetShapeId':_0xea686e,'source':_0x434cb2});}return _0x3696c5;}let pt=class extends a[_0x46885f(0x468)]{constructor(_0x270441,_0x456ab5,_0x3d271c,_0x19b433){const _0x5492d5=_0x46885f;super(),this[_0x5492d5(0x1e6)]=_0x270441,this[_0x5492d5(0x284)]=_0x456ab5,this[_0x5492d5(0x168)]=_0x3d271c,this[_0x5492d5(0x464)]=_0x19b433,this[_0x5492d5(0x3e1)]();}[_0x46885f(0x3e1)](){const _0x4d3794=_0x46885f;this[_0x4d3794(0x428)](this[_0x4d3794(0x284)]['interceptCommand']({'getMutations':_0x104b0d=>{const _0x5f31be=_0x4d3794;if(_0x104b0d['id']===o['RemoveSheetCommand']['id']){let _0x1fb546=(0x0,o[_0x5f31be(0x298)])(this['_univerInstanceService'],_0x104b0d[_0x5f31be(0x211)]);if(!_0x1fb546)return{'redos':[],'undos':[]};let {unitId:_0x2c316c,subUnitId:_0x567430}=_0x1fb546,_0x1b76b9=this['_sheetDrawingService']['getDrawingData'](_0x2c316c,_0x567430),_0x146f29=Object['values'](_0x1b76b9)[_0x5f31be(0x339)](_0x29987b=>_0x29987b['drawingType']===a[_0x5f31be(0x196)][_0x5f31be(0x288)]);if(_0x146f29[_0x5f31be(0x453)]===0x0)return{'redos':[],'undos':[]};let _0x16e00c=[],_0x1d7dcf=[];for(let _0x4b1f39=0x0;_0x4b1f39<_0x146f29['length'];_0x4b1f39++){let _0x184103=_0x146f29[_0x4b1f39],_0x5c4e45=this['_sheetsShapeService'][_0x5f31be(0x387)](_0x184103[_0x5f31be(0x332)],_0x184103['subUnitId'],_0x184103[_0x5f31be(0x313)]);_0x5c4e45&&(_0x16e00c['push']({'id':i[_0x5f31be(0x3c9)]['id'],'params':{'unitId':_0x2c316c,'subUnitId':_0x567430,'shapeId':_0x184103[_0x5f31be(0x313)]}}),_0x1d7dcf['push']({'id':i[_0x5f31be(0x483)]['id'],'params':{'unitId':_0x2c316c,'subUnitId':_0x567430,'shapeId':_0x184103[_0x5f31be(0x313)],'shapeType':_0x5c4e45['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x5f31be(0x253)](_0x5c4e45[_0x5f31be(0x279)]()))}}));}return{'redos':_0x16e00c,'undos':_0x1d7dcf};}else{if(_0x104b0d['id']===o[_0x5f31be(0x377)]['id']){let {unitId:_0x298aa6,subUnitId:_0x1ab0ab,targetSubUnitId:_0xc95cc2,copyContext:_0x16ec7b}=_0x104b0d['params'];if(!_0x298aa6||!_0x1ab0ab||!_0xc95cc2)return{'redos':[],'undos':[]};let _0x5b6ff1=this[_0x5f31be(0x168)]['getDrawingData'](_0x298aa6,_0x1ab0ab),_0xec486=Object[_0x5f31be(0x191)](_0x5b6ff1)['filter'](_0xdac139=>_0xdac139[_0x5f31be(0x218)]===a[_0x5f31be(0x196)][_0x5f31be(0x288)]);if(_0xec486['length']===0x0)return{'redos':[],'undos':[]};let _0x4fe440=ft(_0x16ec7b,_0xec486,{'unitId':_0x298aa6,'sourceSubUnitId':_0x1ab0ab,'targetSubUnitId':_0xc95cc2},_0x50c854=>{const _0x1ae55d=_0x5f31be;let _0x5b0e70=this['_sheetsShapeService'][_0x1ae55d(0x387)](_0x50c854[_0x1ae55d(0x332)],_0x50c854[_0x1ae55d(0x46b)],_0x50c854[_0x1ae55d(0x313)]);if(_0x5b0e70)return{'shapeType':_0x5b0e70['getShapeType'](),'shapeData':JSON[_0x1ae55d(0x266)](JSON[_0x1ae55d(0x253)](_0x5b0e70[_0x1ae55d(0x279)]()))};}),_0x2c7c9f=[],_0x5e05e4=[];for(let {targetShapeId:_0x4cc7b8,source:_0x22e836}of _0x4fe440)_0x2c7c9f[_0x5f31be(0x18c)]({'id':i[_0x5f31be(0x483)]['id'],'params':{'unitId':_0x298aa6,'subUnitId':_0xc95cc2,'shapeId':_0x4cc7b8,'shapeType':_0x22e836[_0x5f31be(0x204)],'shapeData':_0x22e836[_0x5f31be(0x2dd)]}}),_0x5e05e4[_0x5f31be(0x18c)]({'id':i[_0x5f31be(0x3c9)]['id'],'params':{'unitId':_0x298aa6,'subUnitId':_0xc95cc2,'shapeId':_0x4cc7b8}});return{'redos':_0x2c7c9f,'undos':_0x5e05e4};}}return{'redos':[],'undos':[]};}}));}};pt=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x17b)])),O(0x1,(0x0,a['Inject'])(o['SheetInterceptorService'])),O(0x2,(0x0,a[_0x46885f(0x41b)])(p['ISheetDrawingService'])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],pt);let mt=class extends a[_0x46885f(0x468)]{constructor(_0x5d05ea,_0xfb6d3f,_0xe8dd09,_0x57e86d,_0x4376c5){const _0xc1bcc2=_0x46885f;super(),this[_0xc1bcc2(0x3e4)]=_0x5d05ea,this[_0xc1bcc2(0x2db)]=_0xfb6d3f,this['_drawingManagerService']=_0xe8dd09,this[_0xc1bcc2(0x3ff)]=_0x57e86d,this[_0xc1bcc2(0x464)]=_0x4376c5,T(this,_0xc1bcc2(0x28e),null),this[_0xc1bcc2(0x434)](),this['_initSelection'](),this['_initEditingParams']();}[_0x46885f(0x434)](){const _0x47430d=_0x46885f;let {scene:_0x465491}=this[_0x47430d(0x3e4)];this[_0x47430d(0x428)](_0x465491[_0x47430d(0x2b9)][_0x47430d(0x440)](_0x35fd10=>{const _0x38a979=_0x47430d;let {offsetX:_0xf2d11d,offsetY:_0x1bb890}=_0x35fd10,_0x4fdabd=_0x465491['pick'](c[_0x38a979(0x2f0)][_0x38a979(0x46c)]([_0xf2d11d,_0x1bb890]));if(_0x4fdabd instanceof E){let _0xe51098=this[_0x38a979(0x464)][_0x38a979(0x387)](_0x4fdabd[_0x38a979(0x332)],_0x4fdabd[_0x38a979(0x46b)],_0x4fdabd['shapeId']);if(_0xe51098!=null&&_0xe51098[_0x38a979(0x279)]()['formulaBinding']||(0x0,n[_0x38a979(0x248)])(this[_0x38a979(0x464)][_0x38a979(0x449)](_0x4fdabd[_0x38a979(0x332)],_0x4fdabd[_0x38a979(0x46b)],_0x4fdabd[_0x38a979(0x487)])))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x4fdabd[_0x38a979(0x332)],'subUnitId':_0x4fdabd[_0x38a979(0x46b)],'shapeId':_0x4fdabd[_0x38a979(0x487)],'shapeKey':_0x4fdabd['oKey']});}}));}['_initSelection'](){const _0x1a973a=_0x46885f;this[_0x1a973a(0x428)](this['_drawingManagerService'][_0x1a973a(0x2d7)]['subscribe'](_0x1b8d45=>{const _0x1dbf59=_0x1a973a;if(_0x1b8d45[_0x1dbf59(0x453)]===0x1){let _0x1059da=_0x1b8d45[0x0],_0x5d6a1d=this['_drawingManagerService'][_0x1dbf59(0x31f)](_0x1059da);if((_0x5d6a1d==null?void 0x0:_0x5d6a1d['drawingType'])===a[_0x1dbf59(0x196)]['DRAWING_SHAPE']){var _0x5663a7;let _0x126a70=this[_0x1dbf59(0x2db)]['getEditing']();if((_0x126a70==null?void 0x0:_0x126a70[_0x1dbf59(0x487)])===_0x1059da[_0x1dbf59(0x313)]&&_0x126a70[_0x1dbf59(0x399)])return;let _0x254a10=(0x0,n[_0x1dbf59(0x248)])(this['_sheetsShapeService'][_0x1dbf59(0x449)](_0x1059da['unitId'],_0x1059da[_0x1dbf59(0x46b)],_0x1059da['drawingId'])),_0xc18b03=!!((_0x5663a7=this[_0x1dbf59(0x464)][_0x1dbf59(0x387)](_0x1059da[_0x1dbf59(0x332)],_0x1059da[_0x1dbf59(0x46b)],_0x1059da['drawingId']))!=null&&_0x5663a7[_0x1dbf59(0x279)]()['formulaBinding']);(_0x254a10||_0xc18b03)&&this[_0x1dbf59(0x2db)]['setEditing'](null);}else this[_0x1dbf59(0x2db)]['getEditing']()&&(this[_0x1dbf59(0x2db)][_0x1dbf59(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x1ea74a=_0x1dbf59;this[_0x1ea74a(0x2db)][_0x1ea74a(0x3da)](null);}));}else this[_0x1dbf59(0x2db)][_0x1dbf59(0x177)]()&&(this['_shapeTextEditingService'][_0x1dbf59(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x244af3=_0x1dbf59;this[_0x244af3(0x2db)][_0x244af3(0x3da)](null);}));})),this['disposeWithMe'](this[_0x1a973a(0x22e)][_0x1a973a(0x436)]['subscribe'](_0x3d1768=>{const _0x208e48=_0x1a973a;let _0x126bd1=this['_shapeTextEditingService'][_0x208e48(0x177)]();_0x126bd1&&_0x3d1768['some'](_0x491abe=>_0x491abe['drawingId']===_0x126bd1[_0x208e48(0x487)])&&this['_shapeTextEditingService'][_0x208e48(0x3da)](null);}));}[_0x46885f(0x3ea)](){const _0x55e086=_0x46885f;this[_0x55e086(0x428)](this[_0x55e086(0x2db)][_0x55e086(0x2c2)][_0x55e086(0x494)](_0x3d6b1d=>{const _0x4ab43d=_0x55e086;let {scene:_0x4da32e}=this['_context'];if(this['_lastEditingShapeKey']){let _0x573d29=_0x4da32e[_0x4ab43d(0x3c8)](this[_0x4ab43d(0x28e)]);_0x573d29&&_0x573d29[_0x4ab43d(0x3da)](!0x1);}if(_0x3d6b1d){let _0x2847b2=!!_0x3d6b1d[_0x4ab43d(0x399)],_0x14f30d=_0x4da32e['getObjectIncludeInGroup'](_0x3d6b1d['shapeKey']);_0x14f30d&&(_0x14f30d[_0x4ab43d(0x3da)](_0x2847b2),this[_0x4ab43d(0x28e)]=_0x3d6b1d[_0x4ab43d(0x324)]),this[_0x4ab43d(0x3ff)][_0x4ab43d(0x3f3)](a[_0x4ab43d(0x16d)],_0x2847b2);}else this['_lastEditingShapeKey']=null,this[_0x4ab43d(0x3ff)][_0x4ab43d(0x3f3)](a[_0x4ab43d(0x16d)],!0x1);}));}};mt=k([O(0x1,(0x0,a[_0x46885f(0x41b)])(q)),O(0x2,s['IDrawingManagerService']),O(0x3,a[_0x46885f(0x34a)]),O(0x4,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],mt);let ht=class extends e[_0x46885f(0x1a0)]{constructor(_0x47b164,_0x1356d3,_0x561562,_0x312f72,_0x223877,_0x115f22,_0xdd5ba3,_0x15ef92,_0x23039c){super(_0x47b164,_0x1356d3,_0x561562,_0x312f72,_0x223877,_0x115f22,_0xdd5ba3,_0x15ef92,_0x23039c,{'componentKey':re,'editorUnitId':R});}};ht=k([O(0x1,(0x0,a['Inject'])(h[_0x46885f(0x42c)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x172)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x165)])),O(0x4,a[_0x46885f(0x4aa)]),O(0x5,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x3f0)])),O(0x6,(0x0,a[_0x46885f(0x41b)])(e[_0x46885f(0x21f)])),O(0x7,(0x0,a[_0x46885f(0x41b)])(h[_0x46885f(0x1dc)])),O(0x8,(0x0,a[_0x46885f(0x41b)])(g['DocRenderController']))],ht);let X=class extends a['Disposable']{constructor(_0x4b145a,_0x138fd6,_0x3f802f,_0x251737,_0x477648,_0x4a6950){const _0x3df41d=_0x46885f;super(),this[_0x3df41d(0x194)]=_0x4b145a,this[_0x3df41d(0x49a)]=_0x138fd6,this[_0x3df41d(0x22e)]=_0x3f802f,this[_0x3df41d(0x3be)]=_0x251737,this[_0x3df41d(0x3cd)]=_0x477648,this[_0x3df41d(0x2c9)]=_0x4a6950,T(this,_0x3df41d(0x3d7),new Set()),this['_initialize']();}[_0x46885f(0x205)](){const _0x5d15b3=_0x46885f;this[_0x5d15b3(0x1a5)](),this[_0x5d15b3(0x35b)](),this[_0x5d15b3(0x24f)]();}[_0x46885f(0x1a5)](){const _0x3d4dd4=_0x46885f;this[_0x3d4dd4(0x428)](this['_drawingManagerService'][_0x3d4dd4(0x341)][_0x3d4dd4(0x494)](_0x430f47=>{this['_insertShapes'](_0x430f47);}));}[_0x46885f(0x35b)](){const _0x326102=_0x46885f;this[_0x326102(0x428)](this[_0x326102(0x194)][_0x326102(0x2c6)]((_0x2f439b,_0x16dbcc)=>{const _0x32c52a=_0x326102;if(_0x2f439b['id']===i[_0x32c52a(0x44a)]['id']){let {unitId:_0x470879,subUnitId:_0x432e4a,shapeId:_0x3969cc}=_0x2f439b[_0x32c52a(0x211)],_0x312394=this[_0x32c52a(0x496)](_0x470879),_0x189533=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x470879,'subUnitId':_0x432e4a,'drawingId':_0x3969cc}),_0x56b520=_0x312394==null?void 0x0:_0x312394[_0x32c52a(0x1c8)][_0x32c52a(0x3c8)](_0x189533);_0x56b520&&(this[_0x32c52a(0x2c9)][_0x32c52a(0x383)](_0x56b520),this[_0x32c52a(0x2c9)]['refreshFormulaPresentation'](_0x56b520,{'unitId':_0x470879,'subUnitId':_0x432e4a,'shapeId':_0x3969cc}),_0x56b520[_0x32c52a(0x23f)](!0x0));return;}if(_0x2f439b['id']===i[_0x32c52a(0x483)]['id']){var _0x4c086f;let {unitId:_0x27d6ec,subUnitId:_0x34d5e7,shapeId:_0x1948c5}=_0x2f439b[_0x32c52a(0x211)],_0x44380b=this[_0x32c52a(0x496)](_0x27d6ec);if(_0x44380b==null)return;let {scene:_0x509566}=_0x44380b,_0x718c54=(0x0,s[_0x32c52a(0x3c7)])({'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}),_0x4fabf2=_0x509566[_0x32c52a(0x3c8)](_0x718c54);if(!((_0x4c086f=this['_renderManagerService'][_0x32c52a(0x3c2)](_0x27d6ec))!=null&&_0x4c086f['with'](l['SheetSkeletonManagerService'])[_0x32c52a(0x478)](_0x34d5e7)))return!0x1;if(_0x4fabf2)return;if(_0x16dbcc!=null&&_0x16dbcc[_0x32c52a(0x402)]){queueMicrotask(()=>{const _0xc5060a=_0x32c52a;this['_disposed']||this[_0xc5060a(0x1b4)]([{'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}]);});return;}this['_insertShapes']([{'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}]);}}));}[_0x46885f(0x24f)](){const _0x5a05fb=_0x46885f;this['disposeWithMe'](this[_0x5a05fb(0x22e)]['update$'][_0x5a05fb(0x494)](_0x59d971=>{_0x59d971['forEach'](_0x4ea543=>{const _0x15f583=_0x2769;let {unitId:_0x35b856,subUnitId:_0x5ddd8b,drawingId:_0x5c096f}=_0x4ea543,_0x2d6367=this[_0x15f583(0x22e)]['getDrawingByParam'](_0x4ea543);if(_0x2d6367==null)return;let {transform:_0x599cf4,drawingType:_0x5d2bf6,srcRect:_0x49cf2c,prstGeom:_0x1f047d}=_0x2d6367;if(_0x5d2bf6!==a[_0x15f583(0x196)][_0x15f583(0x288)])return;let _0x20ef10=this[_0x15f583(0x496)](_0x35b856);if(_0x20ef10==null)return;let {scene:_0x4978cc,transformer:_0x2c4442}=_0x20ef10;if(_0x599cf4==null)return!0x0;let _0x3a9a01=(0x0,s[_0x15f583(0x3c7)])({'unitId':_0x35b856,'subUnitId':_0x5ddd8b,'drawingId':_0x5c096f}),_0x52c220=_0x4978cc[_0x15f583(0x3c8)](_0x3a9a01);if(_0x52c220==null)return!0x0;_0x52c220[_0x15f583(0x27f)](_0x49cf2c),_0x52c220[_0x15f583(0x268)](_0x1f047d);});}));}['_insertShapes'](_0x53b002){const _0x2b1c12=_0x46885f;for(let _0x3c7e56 of _0x53b002){var _0x3dfe77;let {unitId:_0x50bc8b,subUnitId:_0x570250,drawingId:_0x5aeb5f}=_0x3c7e56,_0x43a6fa=this[_0x2b1c12(0x496)](_0x50bc8b),_0x3d31b5=(_0x3dfe77=(0x0,d['getCurrentUnitInfo'])(this[_0x2b1c12(0x3be)],_0x50bc8b))==null?void 0x0:_0x3dfe77[_0x2b1c12(0x46b)];if(_0x43a6fa==null||_0x3d31b5!==_0x570250)return;let _0x1cafe1=(0x0,s[_0x2b1c12(0x3c7)])({'unitId':_0x50bc8b,'subUnitId':_0x570250,'drawingId':_0x5aeb5f});if(this[_0x2b1c12(0x3d7)][_0x2b1c12(0x3cb)](_0x1cafe1)||_0x43a6fa[_0x2b1c12(0x1c8)][_0x2b1c12(0x3c8)](_0x1cafe1)!=null)return;let _0x591249=this[_0x2b1c12(0x22e)]['getDrawingByParam'](_0x3c7e56);if(_0x591249==null||_0x591249[_0x2b1c12(0x218)]!==a[_0x2b1c12(0x196)][_0x2b1c12(0x288)])return;if((0x0,n[_0x2b1c12(0x248)])((_0x591249[_0x2b1c12(0x41c)]||{})['shapeType'])){let _0xa323b6=_0x591249[_0x2b1c12(0x463)];_0xa323b6&&(_0x591249['transform']={..._0xa323b6,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2b1c12(0x3d7)][_0x2b1c12(0x36a)](_0x1cafe1);try{this[_0x2b1c12(0x2c9)][_0x2b1c12(0x448)](_0x591249,_0x43a6fa[_0x2b1c12(0x1c8)]);}finally{this[_0x2b1c12(0x3d7)][_0x2b1c12(0x2a7)](_0x1cafe1);}queueMicrotask(()=>{const _0x5b077f=_0x2b1c12;if(this[_0x5b077f(0x1d0)])return;let _0x193fe4=(0x0,s[_0x5b077f(0x3c7)])(_0x3c7e56);if(!_0x43a6fa[_0x5b077f(0x1c8)][_0x5b077f(0x3c8)](_0x193fe4))return;let _0x17f6c5=this['_drawingManagerService'][_0x5b077f(0x31f)](_0x3c7e56);_0x17f6c5&&this[_0x5b077f(0x22e)][_0x5b077f(0x1cc)]([_0x17f6c5]);});}}[_0x46885f(0x496)](_0x38bc49){const _0x1654bf=_0x46885f;if(_0x38bc49==null)return;let _0x23d5cf=this['_renderManagerService'][_0x1654bf(0x3c2)](_0x38bc49),_0x4d10bf=_0x23d5cf==null?void 0x0:_0x23d5cf[_0x1654bf(0x1c8)];return _0x4d10bf==null?null:{'scene':_0x4d10bf,'transformer':_0x4d10bf[_0x1654bf(0x40d)]()};}};X=k([O(0x0,a['ICommandService']),O(0x1,c[_0x46885f(0x23d)]),O(0x2,s[_0x46885f(0x19c)]),O(0x3,a['IUniverInstanceService']),O(0x4,(0x0,a[_0x46885f(0x41b)])(d[_0x46885f(0x3d0)])),O(0x5,(0x0,a[_0x46885f(0x41b)])(A))],X);const gt={'normal':{'fill':n[_0x46885f(0x2b0)]['cxnPointFill'],'stroke':n[_0x46885f(0x2b0)][_0x46885f(0x1f4)],'strokeWidth':n[_0x46885f(0x2b0)][_0x46885f(0x3bf)]},'highlighted':{'fill':_0x46885f(0x44c),'stroke':'#1a73e8','strokeWidth':0x2}};var _t=class extends c[_0x46885f(0x40e)]{constructor(_0x5615f6,_0x53f255){const _0x155913=_0x46885f;super(_0x5615f6,_0x53f255),T(this,_0x155913(0x3df),''),T(this,_0x155913(0x355),-0x1),T(this,_0x155913(0x296),''),T(this,_0x155913(0x40a),''),T(this,_0x155913(0x3ae),!0x1),_0x53f255&&this[_0x155913(0x222)](_0x53f255);}[_0x46885f(0x403)](){const _0x59c97c=_0x46885f;return{'unitId':this[_0x59c97c(0x296)],'subUnitId':this[_0x59c97c(0x40a)],'shapeId':this[_0x59c97c(0x3df)],'cxnIndex':this[_0x59c97c(0x355)]};}[_0x46885f(0x3dc)](_0x5f0bf3){const _0x95eedc=_0x46885f;this[_0x95eedc(0x3ae)]!==_0x5f0bf3&&(this[_0x95eedc(0x3ae)]=_0x5f0bf3,this['makeDirty'](!0x0));}['isHighlighted'](){return this['_isHighlighted'];}[_0x46885f(0x222)](_0x36fd43){const _0x73dd7c=_0x46885f;_0x36fd43[_0x73dd7c(0x2ca)]!==void 0x0&&(this['_targetShapeId']=_0x36fd43[_0x73dd7c(0x2ca)]),_0x36fd43[_0x73dd7c(0x426)]!==void 0x0&&(this[_0x73dd7c(0x355)]=_0x36fd43[_0x73dd7c(0x426)]),_0x36fd43[_0x73dd7c(0x332)]!==void 0x0&&(this[_0x73dd7c(0x296)]=_0x36fd43[_0x73dd7c(0x332)]),_0x36fd43[_0x73dd7c(0x46b)]!==void 0x0&&(this[_0x73dd7c(0x40a)]=_0x36fd43['subUnitId']),_0x36fd43[_0x73dd7c(0x375)]!==void 0x0&&(this['_isHighlighted']=_0x36fd43[_0x73dd7c(0x375)]),this['transformByState']({'width':_0x36fd43[_0x73dd7c(0x322)]??n[_0x73dd7c(0x2b0)][_0x73dd7c(0x255)]*0x2,'height':_0x36fd43[_0x73dd7c(0x49b)]??n[_0x73dd7c(0x2b0)][_0x73dd7c(0x255)]*0x2});}[_0x46885f(0x407)](_0x5a5503){const _0x2a5ffe=_0x46885f;let _0x4828a8=this['_isHighlighted']?gt['highlighted']:gt[_0x2a5ffe(0x335)];c[_0x2a5ffe(0x462)][_0x2a5ffe(0x2eb)](_0x5a5503,{'radius':n['ShapeDefaultConfig'][_0x2a5ffe(0x255)],'fill':_0x4828a8[_0x2a5ffe(0x435)],'stroke':_0x4828a8[_0x2a5ffe(0x25d)],'strokeWidth':_0x4828a8[_0x2a5ffe(0x342)],'evented':!0x0});}};let Z=class extends a[_0x46885f(0x468)]{constructor(_0x15819c,_0x52a760,_0x14eed4,_0x1e0f98){const _0x5a0253=_0x46885f;super(),this[_0x5a0253(0x3e4)]=_0x15819c,this[_0x5a0253(0x49a)]=_0x52a760,this[_0x5a0253(0x22e)]=_0x14eed4,this[_0x5a0253(0x464)]=_0x1e0f98,T(this,_0x5a0253(0x45d),[]),T(this,'_activeTargetShapeId',null),T(this,_0x5a0253(0x3a1),-0x1),T(this,_0x5a0253(0x2a2),null),T(this,_0x5a0253(0x296),''),T(this,_0x5a0253(0x40a),''),T(this,_0x5a0253(0x170),null);}[_0x46885f(0x3b7)](_0x34181d,_0x595b7f,_0x3d12e9,_0x37e83a){const _0xaa36ab=_0x46885f;this[_0xaa36ab(0x2a2)]=_0x34181d,this[_0xaa36ab(0x296)]=_0x595b7f,this['_subUnitId']=_0x3d12e9,this[_0xaa36ab(0x170)]=_0x37e83a;}[_0x46885f(0x229)](_0x2631bd){const _0x5efcdd=_0x46885f;if(!this[_0x5efcdd(0x2a2)])return null;let _0x215f49=this[_0x5efcdd(0x2b7)](_0x2631bd);return _0x215f49?(this['_activeTargetShapeId']!==_0x215f49[_0x5efcdd(0x487)]&&(this[_0x5efcdd(0x281)](),this[_0x5efcdd(0x379)](_0x215f49[_0x5efcdd(0x487)],_0x215f49['shapeModel']),this[_0x5efcdd(0x44f)]=_0x215f49['shapeId']),this['_findNearestConnectionSite'](_0x2631bd)):(this[_0x5efcdd(0x44f)]!==null&&(this[_0x5efcdd(0x281)](),this[_0x5efcdd(0x44f)]=null),null);}[_0x46885f(0x2bc)](){const _0x2a45dd=_0x46885f;this[_0x2a45dd(0x281)](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x2a45dd(0x3a1)]=-0x1,this[_0x2a45dd(0x170)]=null;}[_0x46885f(0x16c)](){const _0x555304=_0x46885f;return this[_0x555304(0x44f)]===null||this[_0x555304(0x3a1)]<0x0?null:{'shapeId':this[_0x555304(0x44f)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x46885f(0x2b7)](_0x1f2683){const _0x16034c=_0x46885f;let _0x1d8698=this[_0x16034c(0x22e)]['getDrawingData'](this[_0x16034c(0x296)],this['_subUnitId']);for(let _0x29417d of Object['keys'](_0x1d8698)){if(_0x29417d===this[_0x16034c(0x170)]||_0x1d8698[_0x29417d][_0x16034c(0x218)]!==a[_0x16034c(0x196)][_0x16034c(0x288)])continue;let _0x42901f=this[_0x16034c(0x464)][_0x16034c(0x387)](this[_0x16034c(0x296)],this[_0x16034c(0x40a)],_0x29417d);if(!_0x42901f||(0x0,n[_0x16034c(0x248)])(_0x42901f[_0x16034c(0x449)]())||_0x42901f[_0x16034c(0x277)]()[_0x16034c(0x453)]===0x0||!this[_0x16034c(0x2a2)])continue;let _0x58ec98=(0x0,s[_0x16034c(0x3c7)])({'unitId':this[_0x16034c(0x296)],'subUnitId':this[_0x16034c(0x40a)],'drawingId':_0x29417d}),_0x52375d=this[_0x16034c(0x2a2)]['getObjectIncludeInGroup'](_0x58ec98);if(!_0x52375d)continue;let {left:_0x5af65f,top:_0x63e370,width:_0x33106c,height:_0x562833}=_0x52375d[_0x16034c(0x175)](),_0x551e87=_0x5af65f+_0x33106c/0x2,_0x2725b7=_0x63e370+_0x562833/0x2,_0x5b40a5=_0x52375d[_0x16034c(0x463)][_0x16034c(0x28b)](),_0x33226b=new c[(_0x16034c(0x162))]([_0x5b40a5[0x0],_0x5b40a5[0x1],_0x5b40a5[0x2],_0x5b40a5[0x3],_0x551e87,_0x2725b7]),_0x364ea0=_0x52375d[_0x16034c(0x430)](),_0x10b552=(_0x52375d['isInGroup']&&(_0x364ea0==null?void 0x0:_0x364ea0['classType'])===c[_0x16034c(0x236)][_0x16034c(0x1d2)]?_0x364ea0[_0x16034c(0x307)]['multiply'](_0x33226b):_0x33226b)[_0x16034c(0x187)]()[_0x16034c(0x1bb)](_0x1f2683),_0x5241b2=_0x33106c/0x2,_0x3a2d38=_0x562833/0x2;if(_0x10b552['x']>=-_0x5241b2-0x5&&_0x10b552['x']<=_0x5241b2+0x5&&_0x10b552['y']>=-_0x3a2d38-0x5&&_0x10b552['y']<=_0x3a2d38+0x5)return{'shapeId':_0x29417d,'shapeModel':_0x42901f};}return null;}['_showConnectionSites'](_0x4fc525,_0x4c4246){const _0x563d60=_0x46885f;if(!this[_0x563d60(0x2a2)])return;let _0x14218a=(0x0,s[_0x563d60(0x3c7)])({'unitId':this[_0x563d60(0x296)],'subUnitId':this['_subUnitId'],'drawingId':_0x4fc525}),_0x66e64c=this[_0x563d60(0x2a2)][_0x563d60(0x3c8)](_0x14218a);if(!_0x66e64c)return;let {left:_0x108276,top:_0x4fcbd0,width:_0x1ea36e,height:_0x2f58e3}=_0x66e64c[_0x563d60(0x175)](),_0x55b023=_0x108276+_0x1ea36e/0x2,_0x281926=_0x4fcbd0+_0x2f58e3/0x2,_0x3364a5=_0x66e64c['transform'][_0x563d60(0x28b)](),_0x172c50=new c[(_0x563d60(0x162))]([_0x3364a5[0x0],_0x3364a5[0x1],_0x3364a5[0x2],_0x3364a5[0x3],_0x55b023,_0x281926]),_0x34e2c1=_0x66e64c[_0x563d60(0x430)](),_0x223e0b=_0x66e64c['isInGroup']&&(_0x34e2c1==null?void 0x0:_0x34e2c1[_0x563d60(0x3af)])===c[_0x563d60(0x236)][_0x563d60(0x1d2)]?_0x34e2c1[_0x563d60(0x307)][_0x563d60(0x467)](_0x172c50):_0x172c50;_0x4c4246['updateContext']({'width':_0x1ea36e,'height':_0x2f58e3});let _0x373071=_0x4c4246[_0x563d60(0x277)]();for(let _0x2a43ca of _0x373071){let _0x48c865=_0x2a43ca['x']-_0x1ea36e/0x2,_0x3e02bb=_0x2a43ca['y']-_0x2f58e3/0x2,_0x38f419=_0x223e0b[_0x563d60(0x1bb)]({'x':_0x48c865,'y':_0x3e02bb}),_0x11adb5=_0x38f419['x'],_0x365315=_0x38f419['y'],_0x49c27d=new _t(_0x563d60(0x3db)+_0x4fc525+'-'+_0x2a43ca[_0x563d60(0x45f)],{'left':_0x11adb5-n[_0x563d60(0x2b0)][_0x563d60(0x255)],'top':_0x365315-n[_0x563d60(0x2b0)][_0x563d60(0x255)],'targetShapeId':_0x4fc525,'cxnIndex':_0x2a43ca[_0x563d60(0x45f)],'unitId':this[_0x563d60(0x296)],'subUnitId':this['_subUnitId'],'width':n[_0x563d60(0x2b0)][_0x563d60(0x255)]*0x2,'height':n[_0x563d60(0x2b0)][_0x563d60(0x255)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x563d60(0x45d)][_0x563d60(0x18c)](_0x49c27d),this[_0x563d60(0x2a2)][_0x563d60(0x182)](_0x49c27d,c['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x46885f(0x1e0)](_0x2b6336){const _0x14292b=_0x46885f;let _0x3afa56=null,_0x4d292f=0x1/0x0,_0xba1bb4=null;for(let _0x35f6a8 of this[_0x14292b(0x45d)]){let _0x378752=_0x35f6a8[_0x14292b(0x174)]+n[_0x14292b(0x2b0)]['cxnPointRadius'],_0x2665a2=_0x35f6a8[_0x14292b(0x4ad)]+n[_0x14292b(0x2b0)][_0x14292b(0x255)],_0x57180a=_0x2b6336['x']-_0x378752,_0x3aad5d=_0x2b6336['y']-_0x2665a2,_0x1cad0c=Math[_0x14292b(0x413)](_0x57180a*_0x57180a+_0x3aad5d*_0x3aad5d);_0x1cad0c<_0x4d292f&&(_0x4d292f=_0x1cad0c,_0x3afa56=_0x35f6a8,_0xba1bb4={'x':_0x378752,'y':_0x2665a2});}let _0x2a8571=_0x4d292f<=0xa&&_0x3afa56?_0x3afa56['getConnectionInfo']()[_0x14292b(0x426)]:-0x1;if(_0x2a8571!==this[_0x14292b(0x3a1)]){for(let _0x3c6010 of this[_0x14292b(0x45d)]){let _0x28f7d0=_0x3c6010['getConnectionInfo']();_0x3c6010[_0x14292b(0x3dc)](_0x28f7d0['cxnIndex']===_0x2a8571);}this[_0x14292b(0x3a1)]=_0x2a8571;}if(_0x4d292f<=0xa&&_0x3afa56&&_0xba1bb4){let _0x2e8c85=_0x3afa56[_0x14292b(0x403)](),_0x21ebda=this[_0x14292b(0x2f7)](_0x2e8c85[_0x14292b(0x487)],_0x2e8c85['cxnIndex']);return{'shapeId':_0x2e8c85['shapeId'],'cxnIndex':_0x2e8c85[_0x14292b(0x426)],'unitId':_0x2e8c85[_0x14292b(0x332)],'subUnitId':_0x2e8c85['subUnitId'],'worldPoint':_0xba1bb4,'angle':_0x21ebda};}return null;}['_getConnectionSiteAngle'](_0xf575f5,_0x5e3f0b){const _0x4b9ea5=_0x46885f;let _0x2b7132=this['_sheetsShapeService']['getShapeModel'](this[_0x4b9ea5(0x296)],this['_subUnitId'],_0xf575f5);if(!_0x2b7132)return 0x0;let _0x1ac333=this[_0x4b9ea5(0x22e)][_0x4b9ea5(0x31f)]({'unitId':this[_0x4b9ea5(0x296)],'subUnitId':this[_0x4b9ea5(0x40a)],'drawingId':_0xf575f5});if(!(_0x1ac333!=null&&_0x1ac333[_0x4b9ea5(0x463)]))return 0x0;let {width:_0x445b60=0x0,height:_0x2c4e89=0x0,flipX:_0x283fb3=!0x1,flipY:_0x497703=!0x1}=_0x1ac333[_0x4b9ea5(0x463)];_0x2b7132[_0x4b9ea5(0x3f7)]({'width':_0x445b60,'height':_0x2c4e89});let _0x57163b=_0x2b7132[_0x4b9ea5(0x277)]()['find'](_0x56272c=>_0x56272c[_0x4b9ea5(0x45f)]===_0x5e3f0b);if(!_0x57163b)return 0x0;let _0x447f1d=_0x57163b[_0x4b9ea5(0x400)]/0xea60;return _0x283fb3&&(_0x447f1d=0xb4-_0x447f1d),_0x497703&&(_0x447f1d=-_0x447f1d),_0x447f1d=(_0x447f1d%0x168+0x168)%0x168,_0x447f1d;}[_0x46885f(0x281)](){const _0x5142fc=_0x46885f;for(let _0x55c948 of this['_connectionSiteObjects'])_0x55c948['dispose']();this['_connectionSiteObjects']=[],this[_0x5142fc(0x3a1)]=-0x1;}[_0x46885f(0x169)](){const _0x1ac570=_0x46885f;this[_0x1ac570(0x281)](),super[_0x1ac570(0x169)]();}};Z=k([O(0x1,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(s[_0x46885f(0x19c)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],Z);let vt=class extends a[_0x46885f(0x468)]{constructor(_0x519304,_0x1b87e3,_0x3088bc,_0x3f993e,_0x27802d){const _0x39f6cf=_0x46885f;super(),this['_sheetSkeletonService']=_0x519304,this[_0x39f6cf(0x1dd)]=_0x1b87e3,this[_0x39f6cf(0x168)]=_0x3088bc,this[_0x39f6cf(0x42b)]=_0x3f993e,this[_0x39f6cf(0x21e)]=_0x27802d,T(this,_0x39f6cf(0x2fb),void 0x0),this[_0x39f6cf(0x3b1)](),this[_0x39f6cf(0x28f)]();}get[_0x46885f(0x394)](){const _0x576e09=_0x46885f;return this['_sheetDrawingService'][_0x576e09(0x225)]();}[_0x46885f(0x28f)](){const _0xf3e8bf=_0x46885f;this[_0xf3e8bf(0x21e)]['registerFeaturePasteHook'](({fromUnitId:_0x4bff2b,fromSubUnitId:_0x49e748,toUnitId:_0x448ea7,toSubUnitId:_0x30ff2d,idMap:_0x3336af})=>{const _0x1074f3=_0xf3e8bf;let _0x2abeff=[],_0x44149b=[];for(let [_0x30b0d3,_0x251efb]of _0x3336af['entries']()){let _0x8c4636=this['_shapeService']['getShapeModel'](_0x4bff2b,_0x49e748,_0x30b0d3);if(!_0x8c4636)continue;let _0x440dba=_0x8c4636['getShapeType'](),_0x3e2b8b=JSON[_0x1074f3(0x266)](JSON[_0x1074f3(0x253)](_0x8c4636[_0x1074f3(0x279)]()));if(_0x3e2b8b[_0x1074f3(0x17d)]){var _0xe1f309,_0x5d59c0;let _0x42011f=(_0xe1f309=_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)])==null?void 0x0:_0xe1f309['shapeId'],_0x31f14e=(_0x5d59c0=_0x3e2b8b['relation']['to'])==null?void 0x0:_0x5d59c0[_0x1074f3(0x487)],_0x27433a=!_0x42011f||_0x3336af[_0x1074f3(0x3cb)](_0x42011f),_0x1e681c=!_0x31f14e||_0x3336af[_0x1074f3(0x3cb)](_0x31f14e);_0x27433a&&_0x42011f&&_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]?_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]={..._0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)],'shapeId':_0x3336af[_0x1074f3(0x3a3)](_0x42011f)}:_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]=void 0x0,_0x1e681c&&_0x31f14e&&_0x3e2b8b[_0x1074f3(0x17d)]['to']?_0x3e2b8b[_0x1074f3(0x17d)]['to']={..._0x3e2b8b[_0x1074f3(0x17d)]['to'],'shapeId':_0x3336af[_0x1074f3(0x3a3)](_0x31f14e)}:_0x3e2b8b['relation']['to']=void 0x0;}_0x2abeff['push']({'id':i[_0x1074f3(0x483)]['id'],'params':{'unitId':_0x448ea7,'subUnitId':_0x30ff2d,'shapeId':_0x251efb,'shapeType':_0x440dba,'shapeData':_0x3e2b8b}}),_0x44149b[_0x1074f3(0x18c)]({'id':i[_0x1074f3(0x3c9)]['id'],'params':{'unitId':_0x448ea7,'subUnitId':_0x30ff2d,'shapeId':_0x251efb}});}return{'redos':_0x2abeff,'undos':_0x44149b};});}[_0x46885f(0x3b1)](){const _0x4f3c50=_0x46885f;this['disposeWithMe'](this[_0x4f3c50(0x1dd)]['addClipboardHook']({'id':_0x4f3c50(0x359),'onBeforeCopy':(_0x9a6f5a,_0x3bcef1,_0x377b88,_0x31ff44)=>{const _0x52a0d7=_0x4f3c50;this[_0x52a0d7(0x2fb)]=null;let _0x26ac5a=this['_focusedDrawings'];if(_0x26ac5a[_0x52a0d7(0x453)]){let _0x366f1a=_0x26ac5a[_0x52a0d7(0x339)](_0x4f7721=>_0x4f7721['drawingType']===a[_0x52a0d7(0x196)][_0x52a0d7(0x288)]);if(_0x366f1a[_0x52a0d7(0x453)]===0x0)return;this[_0x52a0d7(0x2fb)]={'unitId':_0x9a6f5a,'subUnitId':_0x3bcef1,'copyType':_0x31ff44,'drawings':_0x366f1a};}else this[_0x52a0d7(0x31b)](_0x9a6f5a,_0x3bcef1,_0x377b88,_0x31ff44);},'onPasteCells':(_0x459556,_0xbed739,_0x8d3280,_0x5d6223)=>{const _0x2937f6=_0x4f3c50;if(!this[_0x2937f6(0x2fb)])return{'redos':[],'undos':[]};let {pasteType:_0x21c1f7}=_0x5d6223;return _0x21c1f7===l['PREDEFINED_HOOK_NAME'][_0x2937f6(0x178)]?this[_0x2937f6(0x455)](_0xbed739,this['_copyInfo'][_0x2937f6(0x199)]===l[_0x2937f6(0x1a2)][_0x2937f6(0x41d)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x451309=>this[_0x4f3c50(0x2fb)]?this[_0x4f3c50(0x455)](_0x451309,this[_0x4f3c50(0x2fb)][_0x4f3c50(0x199)]===l[_0x4f3c50(0x1a2)][_0x4f3c50(0x41d)]):{'redos':[],'undos':[]}}));}[_0x46885f(0x31b)](_0x2d91e0,_0x3fb133,_0x1f98b6,_0x283180){const _0xe1461e=_0x46885f;let _0x357044=this['_sheetSkeletonService'][_0xe1461e(0x478)](_0x2d91e0,_0x3fb133);if(!_0x357044)return;let _0x122285=(0x0,o[_0xe1461e(0x2f2)])(_0x357044,_0x1f98b6);if(!_0x122285)return;let {startX:_0xe68968,endX:_0x1e4482,startY:_0x20d0cb,endY:_0x153b14}=_0x122285,_0x3bb6c4=this['_sheetDrawingService']['getDrawingData'](_0x2d91e0,_0x3fb133),_0x3939a8=this[_0xe1461e(0x394)]['slice']();for(let [_0x11f22c,_0x241e7c]of Object[_0xe1461e(0x3c5)](_0x3bb6c4)){if(_0x241e7c[_0xe1461e(0x218)]!==a[_0xe1461e(0x196)][_0xe1461e(0x288)])continue;let {transform:_0x42f925}=_0x241e7c;if(!_0x42f925)continue;let {left:_0x10745b=0x0,top:_0x232987=0x0,width:_0x2b9908=0x0,height:_0x2b99f8=0x0}=_0x42f925;_0xe68968<=_0x10745b&&_0x1e4482>=_0x10745b+_0x2b9908&&_0x20d0cb<=_0x232987&&_0x153b14>=_0x232987+_0x2b99f8&&_0x3939a8['push'](_0x241e7c);}_0x3939a8[_0xe1461e(0x453)]>0x0&&(this['_copyInfo']={'unitId':_0x2d91e0,'subUnitId':_0x3fb133,'copyType':_0x283180,'copyRange':_0x1f98b6,'drawings':_0x3939a8});}[_0x46885f(0x455)](_0x459ed3,_0x5793a8){const _0x2fa643=_0x46885f;let {unitId:_0x4c1870,subUnitId:_0x4a3942,range:_0xc240cb}=_0x459ed3,_0x3a867c=this[_0x2fa643(0x392)][_0x2fa643(0x478)](_0x4c1870,_0x4a3942);if(!_0x3a867c)return{'redos':[],'undos':[]};let _0x5a2a29=(0x0,o[_0x2fa643(0x305)])(_0xc240cb),{unitId:_0x20ee9e,subUnitId:_0x4531f2,copyRange:_0x5692ce,drawings:_0x250d14}=this['_copyInfo'],_0x238488=this['_sheetSkeletonService']['getSkeleton'](_0x20ee9e,_0x4531f2);if(!_0x238488)return{'redos':[],'undos':[]};let _0x291568;if(!_0x5692ce){let _0xcf973a=0x1/0x0,_0x118060=0x1/0x0;for(let _0x36851d of _0x250d14){let {left:_0x303731=0x0,top:_0x2bfd67=0x0}=_0x36851d[_0x2fa643(0x463)]??{};_0x303731<_0xcf973a&&(_0xcf973a=_0x303731),_0x2bfd67<_0x118060&&(_0x118060=_0x2bfd67);}_0xcf973a!==0x1/0x0&&_0x118060!==0x1/0x0&&(_0x291568={'left':_0xcf973a,'top':_0x118060});}let _0x2f68fc=new Map();if(!_0x5793a8){for(let _0x4899c7 of _0x250d14)_0x2f68fc[_0x2fa643(0x422)](_0x4899c7[_0x2fa643(0x313)],(0x0,a['generateRandomId'])());}let _0x555923=[],_0x35cf8e=[];for(let _0x3f172d of _0x250d14){let {drawingId:_0x26dc7f,transform:_0x5ef721,sheetTransform:_0x3ef743}=_0x3f172d;if(!_0x5ef721||!_0x3ef743)continue;let _0x2302ad=this['_updateTransform']({'transform':_0x5ef721,'sheetTransform':_0x3ef743},{'skeleton':_0x238488,'range':_0x5692ce},{'skeleton':_0x3a867c,'range':_0x5a2a29},_0x291568);if(_0x5793a8){let {redos:_0x57f245,undos:_0x3fff86}=this[_0x2fa643(0x2d1)]({'fromUnitId':_0x20ee9e,'fromSubUnitId':_0x4531f2,'toUnitId':_0x4c1870,'toSubUnitId':_0x4a3942,'drawing':_0x3f172d,'newTransforms':_0x2302ad});_0x555923[_0x2fa643(0x18c)](..._0x57f245),_0x35cf8e[_0x2fa643(0x18c)](..._0x3fff86);continue;}let {redos:_0x2cb0d1,undos:_0x5e4ddb}=this['_generateCopyPasteMutations']({'toUnitId':_0x4c1870,'toSubUnitId':_0x4a3942,'drawing':_0x3f172d,'newTransforms':_0x2302ad,'newDrawingId':_0x2f68fc[_0x2fa643(0x3a3)](_0x26dc7f),'idMap':_0x2f68fc});_0x555923[_0x2fa643(0x18c)](..._0x2cb0d1),_0x35cf8e[_0x2fa643(0x18c)](..._0x5e4ddb);}return{'redos':_0x555923,'undos':_0x35cf8e};}[_0x46885f(0x2d1)](_0x4b0dbf){const _0x4a34b8=_0x46885f;let {fromUnitId:_0x4a0f10,fromSubUnitId:_0x94afc3,toUnitId:_0x311cf2,toSubUnitId:_0x412052,drawing:_0x5ca6e1,newTransforms:_0x184ba9}=_0x4b0dbf,_0x33eb73={..._0x5ca6e1,'unitId':_0x311cf2,'subUnitId':_0x412052,'transform':_0x184ba9['transform'],'sheetTransform':_0x184ba9['sheetTransform']};if(_0x311cf2===_0x4a0f10&&_0x412052===_0x94afc3){let {redo:_0x182df4,undo:_0x2b45a6,objects:_0xee3924}=this[_0x4a34b8(0x168)][_0x4a34b8(0x473)]([_0x33eb73]);return{'redos':[{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x23b)],'op':_0x182df4,'objects':_0xee3924}}],'undos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x23b)],'op':_0x2b45a6,'objects':_0xee3924}}]};}else{let _0x39749f=this[_0x4a34b8(0x168)][_0x4a34b8(0x439)]([_0x5ca6e1]),_0x2657ad=this['_sheetDrawingService'][_0x4a34b8(0x373)]([_0x33eb73]),_0x3eeea3=this['_shapeService']['getShapeModel'](_0x5ca6e1[_0x4a34b8(0x332)],_0x5ca6e1[_0x4a34b8(0x46b)],_0x5ca6e1[_0x4a34b8(0x313)]);if(!_0x3eeea3)return{'redos':[],'undos':[]};let _0x3e87b8=_0x3eeea3['getShapeType'](),_0x1bde30=JSON['parse'](JSON[_0x4a34b8(0x253)](_0x3eeea3[_0x4a34b8(0x279)]()));return{'redos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'type':p[_0x4a34b8(0x30e)]['REMOVE'],'op':_0x39749f[_0x4a34b8(0x39b)],'objects':_0x39749f[_0x4a34b8(0x203)]}},{'id':i[_0x4a34b8(0x3c9)]['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)]}},{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x330)],'op':_0x2657ad['redo'],'objects':_0x2657ad[_0x4a34b8(0x203)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)],'shapeType':_0x3e87b8,'shapeData':_0x1bde30}}],'undos':[{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'type':p['DrawingApplyType'][_0x4a34b8(0x330)],'op':_0x39749f['undo'],'objects':_0x39749f[_0x4a34b8(0x203)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'shapeId':_0x5ca6e1['drawingId'],'shapeType':_0x3e87b8,'shapeData':_0x1bde30}},{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x401)],'op':_0x2657ad[_0x4a34b8(0x3aa)],'objects':_0x2657ad[_0x4a34b8(0x203)]}},{'id':i[_0x4a34b8(0x3c9)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)]}}]};}}[_0x46885f(0x2d4)](_0x216a8e){const _0x4b8668=_0x46885f;let {toUnitId:_0x3806b7,toSubUnitId:_0x350bca,drawing:_0x113a5a,newTransforms:_0x428bcc,newDrawingId:_0x8529c0,idMap:_0x45449c}=_0x216a8e,_0x17e4bd={..._0x113a5a,'unitId':_0x3806b7,'subUnitId':_0x350bca,'drawingId':_0x8529c0,'transform':_0x428bcc[_0x4b8668(0x463)],'sheetTransform':_0x428bcc[_0x4b8668(0x220)]},{redo:_0x57c230,undo:_0x312e54,objects:_0x3bb33b}=this['_sheetDrawingService'][_0x4b8668(0x373)]([_0x17e4bd]),_0x1be283=this[_0x4b8668(0x42b)][_0x4b8668(0x387)](_0x113a5a[_0x4b8668(0x332)],_0x113a5a['subUnitId'],_0x113a5a[_0x4b8668(0x313)]);if(!_0x1be283)return{'redos':[],'undos':[]};let _0x5d4e86=_0x1be283[_0x4b8668(0x449)](),_0x128767=JSON[_0x4b8668(0x266)](JSON[_0x4b8668(0x253)](_0x1be283[_0x4b8668(0x279)]()));if(_0x128767[_0x4b8668(0x17d)]){var _0x2cdf5c,_0x365a06;let _0x2baae4=(_0x2cdf5c=_0x128767[_0x4b8668(0x17d)][_0x4b8668(0x420)])==null?void 0x0:_0x2cdf5c['shapeId'],_0x58b2a6=(_0x365a06=_0x128767['relation']['to'])==null?void 0x0:_0x365a06[_0x4b8668(0x487)],_0x244e4f=!_0x2baae4||_0x45449c[_0x4b8668(0x3cb)](_0x2baae4),_0x2f0d04=!_0x58b2a6||_0x45449c[_0x4b8668(0x3cb)](_0x58b2a6);_0x244e4f&&_0x2baae4&&_0x128767[_0x4b8668(0x17d)]['from']?_0x128767[_0x4b8668(0x17d)]['from']={..._0x128767[_0x4b8668(0x17d)][_0x4b8668(0x420)],'shapeId':_0x45449c[_0x4b8668(0x3a3)](_0x2baae4)}:_0x128767['relation'][_0x4b8668(0x420)]=void 0x0,_0x2f0d04&&_0x58b2a6&&_0x128767[_0x4b8668(0x17d)]['to']?_0x128767[_0x4b8668(0x17d)]['to']={..._0x128767['relation']['to'],'shapeId':_0x45449c[_0x4b8668(0x3a3)](_0x58b2a6)}:_0x128767[_0x4b8668(0x17d)]['to']=void 0x0;}return{'redos':[{'id':p[_0x4b8668(0x2b2)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'type':p[_0x4b8668(0x30e)]['INSERT'],'op':_0x57c230,'objects':_0x3bb33b}},{'id':i[_0x4b8668(0x483)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'shapeId':_0x8529c0,'shapeType':_0x5d4e86,'shapeData':_0x128767}}],'undos':[{'id':p[_0x4b8668(0x2b2)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'type':p['DrawingApplyType'][_0x4b8668(0x401)],'op':_0x312e54,'objects':_0x3bb33b}},{'id':i[_0x4b8668(0x3c9)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'shapeId':_0x8529c0}}]};}[_0x46885f(0x259)](_0x38b736,_0x3bdc89,_0x413ea6,_0x444c08){const _0x952914=_0x46885f;let {range:_0x517c5b,skeleton:_0x886f3c}=_0x3bdc89,{range:_0x22d0df,skeleton:_0x4ab49c}=_0x413ea6,{transform:_0x17b38f,sheetTransform:_0x2a6786}=_0x38b736,_0x181874={..._0x17b38f};if(_0x517c5b){let _0x1b3560=(0x0,o[_0x952914(0x2f2)])(_0x886f3c,_0x517c5b),_0x37c9ec=(0x0,o[_0x952914(0x2f2)])(_0x4ab49c,_0x22d0df);if(_0x1b3560&&_0x37c9ec){let _0x3a9137=_0x37c9ec[_0x952914(0x2c1)]-_0x1b3560['startX'],_0xac5692=_0x37c9ec[_0x952914(0x35a)]-_0x1b3560[_0x952914(0x35a)];_0x181874[_0x952914(0x174)]=(_0x181874['left']??0x0)+_0x3a9137,_0x181874['top']=(_0x181874[_0x952914(0x4ad)]??0x0)+_0xac5692;}}else{let _0x5c01a2=(0x0,o[_0x952914(0x2f2)])(_0x4ab49c,_0x22d0df);if(_0x444c08&&_0x5c01a2){let _0x6ddab2=(_0x181874[_0x952914(0x174)]??0x0)-_0x444c08[_0x952914(0x174)],_0x326a29=(_0x181874[_0x952914(0x4ad)]??0x0)-_0x444c08[_0x952914(0x4ad)];_0x181874[_0x952914(0x174)]=_0x5c01a2[_0x952914(0x2c1)]+_0x6ddab2,_0x181874[_0x952914(0x4ad)]=_0x5c01a2[_0x952914(0x35a)]+_0x326a29;}else _0x181874[_0x952914(0x174)]=_0x5c01a2==null?void 0x0:_0x5c01a2[_0x952914(0x2c1)],_0x181874[_0x952914(0x4ad)]=_0x5c01a2==null?void 0x0:_0x5c01a2['startY'];}return{'transform':_0x181874,'sheetTransform':(0x0,p[_0x952914(0x492)])(_0x181874,_0x4ab49c)??_0x2a6786};}};vt=k([O(0x0,(0x0,a['Inject'])(o[_0x46885f(0x43a)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(l['ISheetClipboardService'])),O(0x2,(0x0,a[_0x46885f(0x41b)])(p[_0x46885f(0x1e8)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x4,(0x0,a[_0x46885f(0x41b)])(_[_0x46885f(0x380)]))],vt);var yt=class extends c['Shape']{constructor(_0x4c8469,_0x1c9c2a){const _0x16e690=_0x46885f;super(_0x4c8469,_0x1c9c2a),T(this,_0x16e690(0x1a6),null),T(this,_0x16e690(0x280),null),T(this,_0x16e690(0x296),null),T(this,_0x16e690(0x40a),null),T(this,_0x16e690(0x3a6),!0x1),_0x1c9c2a&&this[_0x16e690(0x222)](_0x1c9c2a);}[_0x46885f(0x4ac)](){const _0x2990a2=_0x46885f;return{'unitId':this[_0x2990a2(0x296)],'subUnitId':this[_0x2990a2(0x40a)],'drawingId':this['_shapeId']};}[_0x46885f(0x222)](_0x5475dd){const _0x4f4f72=_0x46885f;_0x5475dd[_0x4f4f72(0x487)]!==void 0x0&&(this[_0x4f4f72(0x1a6)]=_0x5475dd[_0x4f4f72(0x487)]),_0x5475dd[_0x4f4f72(0x332)]!==void 0x0&&(this['_unitId']=_0x5475dd[_0x4f4f72(0x332)]),_0x5475dd[_0x4f4f72(0x46b)]!==void 0x0&&(this[_0x4f4f72(0x40a)]=_0x5475dd[_0x4f4f72(0x46b)]),_0x5475dd['isStartConnectorPoint']!==void 0x0&&(this[_0x4f4f72(0x3a6)]=_0x5475dd['isStartConnectorPoint']),this[_0x4f4f72(0x414)]({'width':_0x5475dd[_0x4f4f72(0x322)],'height':_0x5475dd[_0x4f4f72(0x49b)]});}['_draw'](_0x2251b8){const _0x1b587a=_0x46885f;c[_0x1b587a(0x462)][_0x1b587a(0x2eb)](_0x2251b8,{'radius':n[_0x1b587a(0x2b0)][_0x1b587a(0x255)],'fill':n[_0x1b587a(0x2b0)][_0x1b587a(0x232)],'stroke':n[_0x1b587a(0x2b0)]['cxnPointStroke'],'strokeWidth':n[_0x1b587a(0x2b0)][_0x1b587a(0x3bf)],'evented':!0x0});}};let bt=class extends a['Disposable']{constructor(_0x3ac1d7,_0x2244df,_0x457be2,_0x44ca75,_0x28d450,_0x52eca2,_0x3938c5,_0x53420b){const _0x2ac8f1=_0x46885f;super(),this[_0x2ac8f1(0x3e4)]=_0x3ac1d7,this['_commandService']=_0x2244df,this[_0x2ac8f1(0x49a)]=_0x457be2,this[_0x2ac8f1(0x22e)]=_0x44ca75,this[_0x2ac8f1(0x1e6)]=_0x28d450,this[_0x2ac8f1(0x464)]=_0x52eca2,this['_sheetShapeAdjustController']=_0x3938c5,this[_0x2ac8f1(0x34b)]=_0x53420b,T(this,_0x2ac8f1(0x43c),void 0x0),T(this,_0x2ac8f1(0x296),void 0x0),T(this,_0x2ac8f1(0x40a),void 0x0),T(this,_0x2ac8f1(0x183),[]),T(this,_0x2ac8f1(0x29d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),T(this,_0x2ac8f1(0x173),void 0x0),T(this,_0x2ac8f1(0x2b6),!0x1),T(this,_0x2ac8f1(0x1ad),!0x1),T(this,'_hasReset',!0x1),T(this,_0x2ac8f1(0x25b),void 0x0),T(this,_0x2ac8f1(0x319),void 0x0),T(this,_0x2ac8f1(0x37c),null),this['_initialize']();}[_0x46885f(0x205)](){const _0x53acd5=_0x46885f;this[_0x53acd5(0x28c)](),this[_0x53acd5(0x1ef)]();}[_0x46885f(0x362)](){const _0x44121b=_0x46885f;if(!this[_0x44121b(0x296)]||!this[_0x44121b(0x40a)]||!this[_0x44121b(0x43c)])return;let _0x445288={'unitId':this[_0x44121b(0x296)],'subUnitId':this[_0x44121b(0x40a)],'drawingId':this[_0x44121b(0x43c)]},{transform:_0x392241}=this[_0x44121b(0x22e)][_0x44121b(0x31f)](_0x445288);if(_0x392241)return{'left':_0x392241[_0x44121b(0x174)]||0x0,'top':_0x392241[_0x44121b(0x4ad)]||0x0,'width':_0x392241[_0x44121b(0x322)]||0x0,'height':_0x392241[_0x44121b(0x49b)]||0x0,'flipX':_0x392241[_0x44121b(0x271)]||!0x1,'flipY':_0x392241[_0x44121b(0x243)]||!0x1,'angle':_0x392241['angle']};}[_0x46885f(0x1c2)](){const _0xc4bd8=_0x46885f;if(this[_0xc4bd8(0x296)]===void 0x0||this[_0xc4bd8(0x40a)]===void 0x0||this[_0xc4bd8(0x43c)]===void 0x0)return;let _0x4b7702=this[_0xc4bd8(0x49a)][_0xc4bd8(0x3c2)](this[_0xc4bd8(0x296)]);if(!_0x4b7702||!_0x4b7702[_0xc4bd8(0x42e)](l[_0xc4bd8(0x166)])[_0xc4bd8(0x3ab)]())return;let {scene:_0x17ad54}=_0x4b7702,_0x1ae5ed=this['_getDrawingRect']();if(!_0x1ae5ed)return;let _0x1ab6ac=this[_0xc4bd8(0x464)][_0xc4bd8(0x387)](this[_0xc4bd8(0x296)],this['_subUnitId'],this[_0xc4bd8(0x43c)]);if(!_0x1ab6ac||!(0x0,n[_0xc4bd8(0x248)])(_0x1ab6ac[_0xc4bd8(0x449)]()))return;let _0x4e9661=_0x1ab6ac[_0xc4bd8(0x310)]();if(_0x4e9661[_0xc4bd8(0x453)]<0x2)return;let _0x3caa9b=new n[(_0xc4bd8(0x2ad))](_0x1ae5ed),_0x541745=_0x4e9661[0x0],_0x249047=_0x4e9661[_0x4e9661[_0xc4bd8(0x453)]-0x1],_0xed47d3=_0x3caa9b['localToWorld'](_0x541745),_0x1b3b56=_0x3caa9b[_0xc4bd8(0x42f)](_0x249047);this['_addShapeConnectorHandlerObject'](_0x17ad54,{..._0xed47d3},!0x0),this[_0xc4bd8(0x16b)](_0x17ad54,{..._0x1b3b56},!0x1);}[_0x46885f(0x16b)](_0x649993,_0x214a93,_0x433538){const _0x42d4fa=_0x46885f;if(this[_0x42d4fa(0x43c)]===void 0x0||this[_0x42d4fa(0x296)]===void 0x0||this[_0x42d4fa(0x40a)]===void 0x0)return;let _0x163ba4='connector-handler-'+this['_unitId']+'-'+this[_0x42d4fa(0x40a)]+'-'+this[_0x42d4fa(0x43c)]+'-'+(_0x433538?_0x42d4fa(0x22a):_0x42d4fa(0x195)),_0x1e4b53=_0x649993[_0x42d4fa(0x3c8)](_0x163ba4);if(_0x1e4b53){_0x1e4b53[_0x42d4fa(0x414)]({'left':_0x214a93['x']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)],'top':_0x214a93['y']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)]});return;}let _0x3461d2=new yt(_0x163ba4,{'left':_0x214a93['x']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)],'top':_0x214a93['y']-n[_0x42d4fa(0x2b0)]['cxnPointRadius'],'shapeId':this[_0x42d4fa(0x43c)],'unitId':this[_0x42d4fa(0x296)],'subUnitId':this[_0x42d4fa(0x40a)],'isStartConnectorPoint':_0x433538,'width':n['ShapeDefaultConfig'][_0x42d4fa(0x255)]*0x2,'height':n['ShapeDefaultConfig'][_0x42d4fa(0x255)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x42d4fa(0x183)]['push'](_0x3461d2),this[_0x42d4fa(0x3b2)](_0x3461d2,_0x649993,_0x433538),_0x649993['addObject'](_0x3461d2,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x46885f(0x29f)](_0xa7b6bd,_0x58bff4){const _0x1beae7=_0x46885f;var _0x1557a7;let _0x1d8eee={'x':0x0,'y':0x0};if(!_0xa7b6bd||!_0x58bff4)return _0x1d8eee;let _0x20f787=this['_renderManagerService'][_0x1beae7(0x3c2)](_0xa7b6bd);if(!_0x20f787||!_0x20f787[_0x1beae7(0x42e)](l['SheetSkeletonManagerService'])[_0x1beae7(0x478)](_0x58bff4))return _0x1d8eee;let _0x5db8c7=_0x20f787[_0x1beae7(0x42e)](l['SheetScrollManagerService']),_0x53ad1a=_0x5db8c7==null?void 0x0:_0x5db8c7[_0x1beae7(0x208)]();if(!_0x53ad1a)return _0x1d8eee;let _0x4d6955=(_0x1557a7=this[_0x1beae7(0x1e6)]['getUnit'](_0xa7b6bd))==null?void 0x0:_0x1557a7['getSheetBySheetId'](_0x58bff4);if(!_0x4d6955)return _0x1d8eee;let _0x45bc7a=(0x0,l[_0x1beae7(0x1b0)])(_0x53ad1a[_0x1beae7(0x381)],_0x53ad1a[_0x1beae7(0x221)],_0x20f787[_0x1beae7(0x1c8)],_0x4d6955);return _0x45bc7a?{'x':_0x45bc7a['viewportScrollX'],'y':_0x45bc7a[_0x1beae7(0x451)]}:_0x1d8eee;}[_0x46885f(0x19e)](_0x1d9698,_0x4a09ad){const _0x52afa2=_0x46885f;var _0x5a374c;let _0x11ad8f=(_0x5a374c=this[_0x52afa2(0x1e6)][_0x52afa2(0x47d)](_0x1d9698))==null?void 0x0:_0x5a374c[_0x52afa2(0x231)](_0x4a09ad);return(_0x11ad8f==null?void 0x0:_0x11ad8f[_0x52afa2(0x3cf)]())??0x1;}[_0x46885f(0x457)](_0x57b55c,_0x305721,_0x823aa0,_0x355d21,_0x299be8){const _0x230f76=_0x46885f;this[_0x230f76(0x25b)][_0x230f76(0x46a)](),this[_0x230f76(0x319)]['unsubscribe'](),this[_0x230f76(0x35c)]['refreshAdjustControls']();let _0x23cf72=this[_0x230f76(0x37c)];this[_0x230f76(0x34b)][_0x230f76(0x2bc)]();let _0x3857d2=this['_getScrollInfo'](this[_0x230f76(0x296)],this['_subUnitId']),_0x2cb34d=this['_getZoomRatio'](this['_unitId'],this[_0x230f76(0x40a)]),_0x23c894={'x':_0x823aa0[_0x230f76(0x1e7)]/_0x2cb34d+_0x3857d2['x'],'y':_0x823aa0[_0x230f76(0x425)]/_0x2cb34d+_0x3857d2['y']},_0x32af11=_0x23cf72?_0x23cf72[_0x230f76(0x263)]:_0x23c894,_0x4a4970=_0x355d21?this[_0x230f76(0x173)][_0x230f76(0x3d2)]():this[_0x230f76(0x173)][_0x230f76(0x4a6)](),_0x880a70=this[_0x230f76(0x173)][_0x230f76(0x449)]();_0x4a4970?this[_0x230f76(0x1fc)](_0x4a4970,_0x32af11,_0x355d21,_0x23cf72,_0x299be8):this['_handleFreeEndpointPointerUp'](_0x305721,_0x32af11,_0x355d21,_0x23cf72,_0x299be8,_0x880a70),this[_0x230f76(0x2b6)]=!0x1,this[_0x230f76(0x1de)]=!0x1,this[_0x230f76(0x37c)]=null,_0x57b55c[_0x230f76(0x37b)]();}[_0x46885f(0x2d3)](_0x3de7c1,_0x55db24,_0x529790,_0x19b5bf,_0x270a06,_0x88ba83){const _0x3831a3=_0x46885f;let _0x539fc9=_0x88ba83===n[_0x3831a3(0x3f1)][_0x3831a3(0x1e3)]||_0x88ba83===n[_0x3831a3(0x3f1)][_0x3831a3(0x1d5)],_0x51e52f=_0x529790?_0x55db24:_0x3de7c1,_0x8fd372=_0x529790?_0x3de7c1:_0x55db24,_0x4ec7e4=this[_0x3831a3(0x173)]['getConnectorLinePoints'](),_0x3c21a1=(0x0,n[_0x3831a3(0x3d8)])(this['_activeShapeModel'][_0x3831a3(0x449)]()),_0x352964=n[_0x3831a3(0x2ad)][_0x3831a3(0x2aa)](_0x4ec7e4,_0x3c21a1),_0x3539b=_0x539fc9?n[_0x3831a3(0x2ad)][_0x3831a3(0x33d)](_0x51e52f,_0x8fd372):n['ConnectorCoordinateTransform'][_0x3831a3(0x198)](_0x3de7c1,_0x55db24,_0x529790,_0x352964);_0x19b5bf?this[_0x3831a3(0x2d0)](_0x3539b,_0x19b5bf,_0x529790,_0x270a06):this[_0x3831a3(0x393)](_0x3539b,_0x270a06);}['_handleConnectedEndpointPointerUp'](_0xa3dc4d,_0x55e83b,_0xbe83e8,_0x3e0138,_0x58d081){const _0x398183=_0x46885f;let _0x3911d0=this['_getConnectPointInfo'](_0xa3dc4d);if(!_0x3911d0)return;let _0x309b7a=_0x3e0138?_0x3e0138[_0x398183(0x3f4)]:this[_0x398183(0x410)](_0x3911d0[_0x398183(0x235)],_0x55e83b),_0x45b12d;if(_0x3e0138){let _0x1a7802=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x3e0138[_0x398183(0x332)],'subUnitId':_0x3e0138[_0x398183(0x46b)],'drawingId':_0x3e0138[_0x398183(0x487)]});if(_0x1a7802!=null&&_0x1a7802['transform']){let {left:_0x154401=0x0,top:_0x23f24c=0x0,width:_0x366d17=0x0,height:_0x41ef2d=0x0,angle:_0x107329}=_0x1a7802[_0x398183(0x463)];_0x45b12d=(0x0,n['getBasicShapeRotateBound'])({'left':_0x154401,'top':_0x23f24c,'width':_0x366d17,'height':_0x41ef2d},_0x107329||0x0);}else _0x45b12d={'left':_0x55e83b['x'],'top':_0x55e83b['y'],'width':0x0,'height':0x0};}else _0x45b12d={'left':_0x55e83b['x'],'top':_0x55e83b['y'],'width':0x0,'height':0x0};let _0x1ed184={'point':_0x55e83b,'angle':_0x309b7a,'bounds':_0x45b12d},_0x5ae864=_0xbe83e8?_0x1ed184:_0x3911d0,_0x1d23d4=_0xbe83e8?_0x3911d0:_0x1ed184,_0x76f18c=this['_activeShapeModel'][_0x398183(0x449)](),_0x5660e1=(0x0,n[_0x398183(0x257)])(_0x5ae864,_0x1d23d4,_0x76f18c);this[_0x398183(0x173)]['removeLinePoints']();let _0x3d3373=(0x0,n[_0x398183(0x364)])(_0x5660e1,_0x76f18c);_0x3e0138?this['_executeConnectedRouteConnectionCommand'](_0x3d3373,_0x3e0138,_0xa3dc4d,_0xbe83e8,_0x58d081):this[_0x398183(0x2e8)](_0x3d3373,_0xa3dc4d,_0xbe83e8,_0x58d081);}[_0x46885f(0x2d0)](_0x532d7f,_0x1f690d,_0x10431d,_0xe32d10){const _0x77362d=_0x46885f;let _0x5ebd4a=this[_0x77362d(0x173)]['getShapeData']()['relation'],_0x2d884c={..._0x5ebd4a},_0x495d45={'shapeId':_0x1f690d[_0x77362d(0x487)],'cxnIndex':_0x1f690d[_0x77362d(0x426)]};_0x10431d?_0x2d884c[_0x77362d(0x420)]=_0x495d45:_0x2d884c['to']=_0x495d45;let _0x37749b=this[_0x77362d(0x173)]['getShapeType'](),_0x1e593d=(0x0,n['computeConnectorRouteLayout'])(_0x532d7f[_0x77362d(0x3fc)],_0x37749b),_0x5c8e0d={'unitId':this[_0x77362d(0x296)],'subUnitId':this[_0x77362d(0x40a)],'connectorShapeId':this[_0x77362d(0x43c)],'width':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x322)],'height':_0x532d7f['worldRect'][_0x77362d(0x49b)],'left':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x174)],'top':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x4ad)],'flipX':_0x532d7f['worldRect'][_0x77362d(0x271)]||!0x1,'flipY':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x243)]||!0x1,'newAdjustValues':_0x1e593d['adjustValues'],'oldAdjustValues':_0xe32d10,'oldRelation':_0x5ebd4a,'newRelation':_0x2d884c,'newLineType':_0x1e593d[_0x77362d(0x424)],'oldLineType':_0x37749b};this[_0x77362d(0x194)][_0x77362d(0x210)](i[_0x77362d(0x238)]['id'],_0x5c8e0d);}[_0x46885f(0x393)](_0x39e693,_0x1a9db5){const _0x34aa9d=_0x46885f;let _0x157112=this[_0x34aa9d(0x173)][_0x34aa9d(0x449)](),_0x442ecb=(0x0,n['computeConnectorRouteLayout'])(_0x39e693[_0x34aa9d(0x3fc)],_0x157112),_0x4d5b8d={'unitId':this['_unitId'],'subUnitId':this[_0x34aa9d(0x40a)],'shapeId':this['_activeShapeId'],'width':_0x39e693[_0x34aa9d(0x27b)][_0x34aa9d(0x322)],'height':_0x39e693[_0x34aa9d(0x27b)]['height'],'left':_0x39e693['worldRect'][_0x34aa9d(0x174)],'top':_0x39e693[_0x34aa9d(0x27b)]['top'],'flipX':_0x39e693['worldRect'][_0x34aa9d(0x271)]||!0x1,'flipY':_0x39e693['worldRect'][_0x34aa9d(0x243)]||!0x1,'angle':_0x39e693[_0x34aa9d(0x27b)][_0x34aa9d(0x3f4)]||0x0,'newAdjustValues':_0x442ecb[_0x34aa9d(0x1b9)],'oldAdjustValues':_0x1a9db5,'newLineType':_0x442ecb[_0x34aa9d(0x424)],'oldLineType':_0x157112};this[_0x34aa9d(0x194)][_0x34aa9d(0x210)](i[_0x34aa9d(0x353)]['id'],_0x4d5b8d);}[_0x46885f(0x17a)](_0x1d079c,_0x986bdb,_0x230a4f,_0x19968c,_0x279080){const _0x5f2b99=_0x46885f;let _0x126985=this[_0x5f2b99(0x173)]['getShapeData']()[_0x5f2b99(0x17d)],_0x5618c4={..._0x126985},_0x3b673f={'shapeId':_0x986bdb[_0x5f2b99(0x487)],'cxnIndex':_0x986bdb[_0x5f2b99(0x426)]};_0x19968c?(_0x5618c4[_0x5f2b99(0x420)]=_0x3b673f,_0x5618c4['to']=_0x230a4f):(_0x5618c4[_0x5f2b99(0x420)]=_0x230a4f,_0x5618c4['to']=_0x3b673f);let _0x411629={'unitId':this[_0x5f2b99(0x296)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5f2b99(0x43c)],'width':_0x1d079c['worldRect'][_0x5f2b99(0x322)],'height':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x49b)],'left':_0x1d079c['worldRect'][_0x5f2b99(0x174)],'top':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x4ad)],'flipX':_0x1d079c[_0x5f2b99(0x27b)]['flipX']||!0x1,'flipY':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x243)]||!0x1,'oldAdjustValues':_0x279080,'newAdjustValues':_0x1d079c[_0x5f2b99(0x1b9)],'newLineType':_0x1d079c[_0x5f2b99(0x424)],'rotation':_0x1d079c[_0x5f2b99(0x3f2)],'oldRelation':_0x126985,'newRelation':_0x5618c4};this[_0x5f2b99(0x194)][_0x5f2b99(0x210)](i[_0x5f2b99(0x238)]['id'],_0x411629);}['_executeConnectedRouteResizeCommand'](_0x5c9c40,_0x5087a0,_0xabf7bb,_0x5affe0){const _0x14e35e=_0x46885f;let _0x509cf2=this['_activeShapeModel']['getShapeData']()[_0x14e35e(0x17d)],_0x5c2cfc={};_0xabf7bb?(_0x5c2cfc['to']=_0x5087a0,_0x5c2cfc[_0x14e35e(0x420)]=void 0x0):(_0x5c2cfc[_0x14e35e(0x420)]=_0x5087a0,_0x5c2cfc['to']=void 0x0);let _0x7d140b={'unitId':this['_unitId'],'subUnitId':this[_0x14e35e(0x40a)],'connectorShapeId':this[_0x14e35e(0x43c)],'width':_0x5c9c40['worldRect']['width'],'height':_0x5c9c40[_0x14e35e(0x27b)]['height'],'left':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x174)],'top':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x4ad)],'flipX':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x271)]||!0x1,'flipY':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x243)]||!0x1,'oldAdjustValues':_0x5affe0,'newAdjustValues':_0x5c9c40['adjustValues'],'newLineType':_0x5c9c40['lineType'],'rotation':_0x5c9c40[_0x14e35e(0x3f2)],'oldRelation':_0x509cf2,'newRelation':_0x5c2cfc};this[_0x14e35e(0x194)]['executeCommand'](i[_0x14e35e(0x238)]['id'],_0x7d140b);}[_0x46885f(0x3b2)](_0x14603e,_0x65fb93,_0x55598f){const _0x1e57a1=_0x46885f;this[_0x1e57a1(0x428)]((0x0,a[_0x1e57a1(0x415)])(_0x14603e[_0x1e57a1(0x3fa)][_0x1e57a1(0x440)]((_0x9d186b,_0x1a2974)=>{const _0x418411=_0x1e57a1;let _0x542464=_0x14603e['getDrawingSearch']();if(this['_activeShapeModel']=this[_0x418411(0x464)]['getShapeModel'](_0x542464[_0x418411(0x332)],_0x542464[_0x418411(0x46b)],_0x542464[_0x418411(0x313)]),!this['_activeShapeModel'])return;let _0x454503={};this['_activeShapeModel'][_0x418411(0x2b1)]()['forEach'](_0x295684=>{const _0x5bb734=_0x418411;let _0x22715c=this[_0x5bb734(0x173)][_0x5bb734(0x2d8)](_0x295684);_0x22715c!==void 0x0&&(_0x454503[_0x295684]=_0x22715c);});let _0x4907ee=this[_0x418411(0x362)]();if(!_0x4907ee)return;this['_baseDrawingRect']={..._0x4907ee};let _0x4eef39=new n['ConnectorCoordinateTransform'](this[_0x418411(0x29d)]),_0x2c04c0=(0x0,s[_0x418411(0x3c7)])({'unitId':this['_unitId'],'subUnitId':this[_0x418411(0x40a)],'drawingId':this[_0x418411(0x43c)]}),_0x3c9eaa=_0x65fb93[_0x418411(0x3c8)](_0x2c04c0);this[_0x418411(0x2b6)]=!0x0,_0x65fb93[_0x418411(0x22f)](),this[_0x418411(0x34b)][_0x418411(0x3b7)](_0x65fb93,this[_0x418411(0x296)],this[_0x418411(0x40a)],this[_0x418411(0x43c)]),this[_0x418411(0x37c)]=null;let _0x474758=this[_0x418411(0x173)][_0x418411(0x310)](),_0x3c801e=_0x474758[0x0],_0x23344f=_0x474758[_0x474758[_0x418411(0x453)]-0x1],_0x3a01fb=_0x55598f?_0x4eef39[_0x418411(0x42f)](_0x23344f):_0x4eef39[_0x418411(0x42f)](_0x3c801e);this[_0x418411(0x25b)]=_0x65fb93['onPointerMove$'][_0x418411(0x440)]((_0x717a17,_0x25a7bc)=>{const _0xb1ae10=_0x418411;if(!this[_0xb1ae10(0x2b6)]||!this[_0xb1ae10(0x173)])return;this[_0xb1ae10(0x1de)]||=(this[_0xb1ae10(0x35c)][_0xb1ae10(0x24e)](),this[_0xb1ae10(0x173)][_0xb1ae10(0x1f0)](),!0x0);let _0x36c409=this['_getScrollInfo'](this[_0xb1ae10(0x296)],this['_subUnitId']),_0x508bfd=this[_0xb1ae10(0x19e)](this['_unitId'],this[_0xb1ae10(0x40a)]),_0x2edd41={'x':_0x717a17[_0xb1ae10(0x1e7)]/_0x508bfd+_0x36c409['x'],'y':_0x717a17[_0xb1ae10(0x425)]/_0x508bfd+_0x36c409['y']},_0x5b229c=this[_0xb1ae10(0x34b)]['updateConnectionDetection'](_0x2edd41);if(_0x5b229c){let {shapeId:_0x598255,unitId:_0xc7c225,subUnitId:_0xa51c0}=_0x5b229c;if(_0x598255&&_0xc7c225&&_0xa51c0){let _0x2c8ae2=(0x0,s[_0xb1ae10(0x3c7)])({'unitId':_0xc7c225,'subUnitId':_0xa51c0,'drawingId':_0x598255});_0x5b229c[_0xb1ae10(0x3f4)]=(_0x65fb93['getObjectIncludeInGroup'](_0x2c8ae2)[_0xb1ae10(0x3f4)]||0x0)+_0x5b229c[_0xb1ae10(0x3f4)];}}this['_currentConnectionTarget']=_0x5b229c;let _0x3c0b86=_0x55598f?this['_activeShapeModel'][_0xb1ae10(0x3d2)]():this[_0xb1ae10(0x173)][_0xb1ae10(0x4a6)]();if(_0x3c0b86){this[_0xb1ae10(0x311)](_0x3c0b86,_0x2edd41,_0x55598f,_0x3c9eaa,_0x14603e);return;}this[_0xb1ae10(0x499)](_0x2edd41,_0x3a01fb,_0x55598f,_0x3c9eaa,_0x14603e);}),this['_cxtHandlerPointerUp']=_0x65fb93['onPointerUp$']['subscribeEvent']((_0x131ff8,_0x655c04)=>{const _0x302278=_0x418411;this[_0x302278(0x457)](_0x65fb93,_0x3a01fb,_0x131ff8,_0x55598f,_0x454503);}),_0x1a2974[_0x418411(0x34e)]();})));}[_0x46885f(0x2ea)](_0x44d6f9,_0x3ea804,_0xedc841){const _0x23dad4=_0x46885f;let _0x22fa20=this['_sheetsShapeService'][_0x23dad4(0x32c)](_0x44d6f9,_0x3ea804,_0xedc841);if(!_0x22fa20||_0x22fa20[_0x23dad4(0x453)]===0x0)return;let _0x3e017c=this[_0x23dad4(0x49a)][_0x23dad4(0x3c2)](_0x44d6f9);if(!_0x3e017c)return;let {scene:_0x222fd5}=_0x3e017c;for(let _0x5e826f of _0x22fa20){let _0x1d91f4=_0x5e826f['lineShapeId'],_0x34b808=this[_0x23dad4(0x464)][_0x23dad4(0x387)](_0x44d6f9,_0x3ea804,_0x1d91f4);if(!_0x34b808)continue;let _0x44b099=_0x34b808[_0x23dad4(0x4a6)](),_0xb5d834=_0x34b808[_0x23dad4(0x3d2)](),_0x24d928=(_0x44b099==null?void 0x0:_0x44b099[_0x23dad4(0x487)])===_0xedc841,_0x534527=(0x0,s[_0x23dad4(0x3c7)])({'unitId':_0x44d6f9,'subUnitId':_0x3ea804,'drawingId':_0x1d91f4}),_0x5b1e90=_0x222fd5[_0x23dad4(0x3c8)](_0x534527);if(!_0x5b1e90)continue;let _0x42b54e=this[_0x23dad4(0x22e)]['getDrawingByParam']({'unitId':_0x44d6f9,'subUnitId':_0x3ea804,'drawingId':_0x1d91f4});_0x42b54e!=null&&_0x42b54e[_0x23dad4(0x463)]&&(_0x44b099&&_0xb5d834?this[_0x23dad4(0x486)](_0x44d6f9,_0x3ea804,_0x1d91f4,_0x34b808,_0x44b099,_0xb5d834,_0x5b1e90):this[_0x23dad4(0x3bd)](_0x44d6f9,_0x3ea804,_0x1d91f4,_0x34b808,_0x24d928?_0x44b099:_0xb5d834,_0x24d928,_0x42b54e,_0x5b1e90));}}[_0x46885f(0x486)](_0x157dd0,_0x274583,_0x49d0d5,_0x595094,_0x56bfdb,_0xdbdabf,_0x4b543d){const _0x7dd11d=_0x46885f;let _0x2fb9a6=this['_unitId'],_0x463979=this[_0x7dd11d(0x40a)];this[_0x7dd11d(0x296)]=_0x157dd0,this[_0x7dd11d(0x40a)]=_0x274583;let _0x1d2b69=this[_0x7dd11d(0x2a8)](_0x56bfdb),_0x4dd1f2=this[_0x7dd11d(0x2a8)](_0xdbdabf);if(this['_unitId']=_0x2fb9a6,this[_0x7dd11d(0x40a)]=_0x463979,!_0x1d2b69||!_0x4dd1f2)return;let _0x39e7fa=_0x595094[_0x7dd11d(0x449)](),_0x45564d=(0x0,n[_0x7dd11d(0x257)])(_0x1d2b69,_0x4dd1f2,_0x39e7fa);_0x45564d&&_0x595094[_0x7dd11d(0x29b)](_0x45564d);let _0x124ab4=(0x0,n[_0x7dd11d(0x364)])(_0x45564d,_0x39e7fa);_0x124ab4[_0x7dd11d(0x424)]!==_0x39e7fa&&_0x595094[_0x7dd11d(0x43d)](_0x124ab4[_0x7dd11d(0x424)]),_0x595094[_0x7dd11d(0x1f0)]();for(let [_0xe60005,_0x60cba4]of Object[_0x7dd11d(0x3c5)](_0x124ab4[_0x7dd11d(0x1b9)]))_0x595094['setAdjustValueByName'](_0xe60005,_0x60cba4);_0x595094[_0x7dd11d(0x3f7)]({'width':_0x124ab4[_0x7dd11d(0x27b)]['width'],'height':_0x124ab4['worldRect']['height']}),_0x4b543d[_0x7dd11d(0x414)]({'flipX':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x271)],'flipY':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x243)],'left':_0x124ab4[_0x7dd11d(0x27b)]['left'],'top':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x4ad)],'width':_0x124ab4[_0x7dd11d(0x27b)]['width'],'height':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x49b)],'angle':_0x124ab4['rotation']}),_0x595094[_0x7dd11d(0x48c)]();}[_0x46885f(0x3bd)](_0x330192,_0x3ad562,_0x261094,_0x36f980,_0x5e02ad,_0x247c6b,_0x491fdd,_0x1132da){const _0x3cead1=_0x46885f;let _0x56f3a2=this[_0x3cead1(0x296)],_0xe69da1=this[_0x3cead1(0x40a)];this[_0x3cead1(0x296)]=_0x330192,this[_0x3cead1(0x40a)]=_0x3ad562;let _0x431988=this[_0x3cead1(0x2a8)](_0x5e02ad);if(this[_0x3cead1(0x296)]=_0x56f3a2,this['_subUnitId']=_0xe69da1,!_0x431988)return;let {left:_0x2406b2=0x0,top:_0x4cd1b4=0x0,width:_0x1cb656=0x0,height:_0xfc7adf=0x0,flipX:_0x59f79f=!0x1,flipY:_0x27ad35=!0x1}=_0x491fdd[_0x3cead1(0x463)],_0x55fd64=_0x36f980[_0x3cead1(0x310)]();if(_0x55fd64['length']<0x2)return;let _0x33a5f0=new n[(_0x3cead1(0x2ad))]({'left':_0x2406b2,'top':_0x4cd1b4,'width':_0x1cb656,'height':_0xfc7adf,'flipX':_0x59f79f,'flipY':_0x27ad35}),_0x3c6e60=_0x247c6b?_0x55fd64[_0x55fd64[_0x3cead1(0x453)]-0x1]:_0x55fd64[0x0],_0xe0cc8c=_0x33a5f0[_0x3cead1(0x42f)](_0x3c6e60),_0x202928=n['ConnectorCoordinateTransform'][_0x3cead1(0x198)](_0xe0cc8c,_0x431988[_0x3cead1(0x235)],!_0x247c6b);_0x1132da[_0x3cead1(0x414)]({'flipX':_0x202928[_0x3cead1(0x27b)][_0x3cead1(0x271)],'flipY':_0x202928['worldRect'][_0x3cead1(0x243)],'left':_0x202928['worldRect'][_0x3cead1(0x174)],'top':_0x202928[_0x3cead1(0x27b)]['top'],'width':_0x202928[_0x3cead1(0x27b)][_0x3cead1(0x322)],'height':_0x202928['worldRect'][_0x3cead1(0x49b)],'angle':_0x202928['worldRect']['angle']}),_0x1132da[_0x3cead1(0x23f)](!0x0);}[_0x46885f(0x233)](){const _0x11e563=_0x46885f;this[_0x11e563(0x183)]['length']!==0x0&&(this[_0x11e563(0x183)]['forEach'](_0x238426=>{const _0x15cb38=_0x11e563;_0x238426[_0x15cb38(0x169)]();}),this[_0x11e563(0x183)]=[]);}[_0x46885f(0x1ef)](){const _0x35933a=_0x46885f;let _0x56c59c=this['_univerInstanceService']['getCurrentTypeOfUnit$'](a[_0x35933a(0x267)]['UNIVER_SHEET']);this[_0x35933a(0x428)](_0x56c59c[_0x35933a(0x24b)]((0x0,u[_0x35933a(0x3b5)])(_0x2bef1d=>_0x2bef1d?_0x2bef1d[_0x35933a(0x2c7)][_0x35933a(0x24b)]((0x0,u[_0x35933a(0x3b5)])(_0x4d7459=>{const _0x17cd07=_0x35933a;if(!_0x4d7459)return u[_0x17cd07(0x456)];let _0x28342c=_0x2bef1d[_0x17cd07(0x3c4)](),_0x5bf4cd=this['_renderManagerService'][_0x17cd07(0x3c2)](_0x28342c),_0x1c2394=_0x5bf4cd==null?void 0x0:_0x5bf4cd[_0x17cd07(0x1c8)];return _0x1c2394?(0x0,u['of'])(_0x1c2394):u[_0x17cd07(0x456)];})):u[_0x35933a(0x456)]))[_0x35933a(0x494)](_0x500058=>{const _0x32894c=_0x35933a;let _0x2d4d63=_0x500058[_0x32894c(0x40d)]();this['disposeWithMe'](_0x500058[_0x32894c(0x30b)]['subscribeEvent'](_0x23211c=>{const _0x47a5fa=_0x32894c;this['_isDrawingShapePointDown']&&this[_0x47a5fa(0x43c)]&&this[_0x47a5fa(0x233)]();})),this[_0x32894c(0x428)](_0x2d4d63[_0x32894c(0x46e)][_0x32894c(0x494)](_0x5d2c3a=>{const _0x40529e=_0x32894c;let {objects:_0x4444c5}=_0x5d2c3a;this[_0x40529e(0x233)](),_0x4444c5!==null&&_0x4444c5[_0x40529e(0x432)]===0x1&&_0x4444c5[_0x40529e(0x191)]()['next']()[_0x40529e(0x44b)]instanceof E&&(this[_0x40529e(0x1ad)]=!0x0);})),this[_0x32894c(0x428)](_0x2d4d63['changing$'][_0x32894c(0x494)](_0x548529=>{const _0x1660c1=_0x32894c;this[_0x1660c1(0x1ad)]&&this[_0x1660c1(0x233)]();})),this[_0x32894c(0x428)](_0x500058[_0x32894c(0x1f3)]['subscribeEvent'](()=>{const _0x5bcfb6=_0x32894c;this['_isDrawingShapePointDown']&&(this[_0x5bcfb6(0x1ad)]=!0x1,this[_0x5bcfb6(0x1c2)]());})),this[_0x32894c(0x428)](_0x2d4d63[_0x32894c(0x21d)]['subscribe'](()=>{const _0x2ddc04=_0x32894c;this[_0x2ddc04(0x296)]&&this['_subUnitId']&&this[_0x2ddc04(0x43c)]&&this[_0x2ddc04(0x22e)][_0x2ddc04(0x31f)]({'unitId':this[_0x2ddc04(0x296)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2ddc04(0x43c)]})&&(this[_0x2ddc04(0x233)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x46885f(0x28c)](){const _0x4dfcc4=_0x46885f;this[_0x4dfcc4(0x428)](this[_0x4dfcc4(0x22e)][_0x4dfcc4(0x2d7)][_0x4dfcc4(0x494)](_0x4cb3d8=>{const _0x1c7059=_0x4dfcc4;if(_0x4cb3d8[_0x1c7059(0x453)]===0x1){let _0x2a5182=_0x4cb3d8[0x0];if(_0x2a5182[_0x1c7059(0x218)]===a[_0x1c7059(0x196)][_0x1c7059(0x288)]){let _0x1ca07d=this[_0x1c7059(0x464)][_0x1c7059(0x387)](_0x2a5182[_0x1c7059(0x332)],_0x2a5182[_0x1c7059(0x46b)],_0x2a5182[_0x1c7059(0x313)]);if(_0x1ca07d&&(0x0,n[_0x1c7059(0x248)])(_0x1ca07d[_0x1c7059(0x449)]())){this[_0x1c7059(0x43c)]=_0x2a5182[_0x1c7059(0x313)],this[_0x1c7059(0x296)]=_0x2a5182[_0x1c7059(0x332)],this['_subUnitId']=_0x2a5182[_0x1c7059(0x46b)],this[_0x1c7059(0x233)](),this[_0x1c7059(0x1c2)]();return;}}}this[_0x1c7059(0x43c)]=void 0x0,this[_0x1c7059(0x296)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x1c7059(0x233)]();})),this[_0x4dfcc4(0x428)](this['_drawingManagerService']['update$']['subscribe'](_0x22e167=>{const _0x123ecd=_0x4dfcc4;if(_0x22e167[_0x123ecd(0x453)]===0x1){var _0x291ae4;let _0x55d38e=_0x22e167[0x0],_0x66927d=(_0x291ae4=this['_drawingManagerService'][_0x123ecd(0x31f)](_0x55d38e))==null?void 0x0:_0x291ae4['drawingType'];_0x66927d===a[_0x123ecd(0x196)]['DRAWING_SHAPE']&&_0x55d38e[_0x123ecd(0x313)]===this[_0x123ecd(0x43c)]?(this[_0x123ecd(0x233)](),this[_0x123ecd(0x1c2)]()):!this['_activeShapeId']&&_0x66927d===a[_0x123ecd(0x196)][_0x123ecd(0x288)]&&this[_0x123ecd(0x2ea)](_0x55d38e[_0x123ecd(0x332)],_0x55d38e[_0x123ecd(0x46b)],_0x55d38e[_0x123ecd(0x313)]);}})),this[_0x4dfcc4(0x428)](this[_0x4dfcc4(0x22e)][_0x4dfcc4(0x436)][_0x4dfcc4(0x494)](_0x456032=>{const _0x1b185c=_0x4dfcc4;for(let _0xc510c2 of _0x456032){let {drawingId:_0x52e3e5}=_0xc510c2;if(this['_activeShapeId']===_0x52e3e5){this[_0x1b185c(0x47b)]();return;}}}));}[_0x46885f(0x311)](_0x388dcd,_0x1cfb94,_0x5da246,_0x41fe97,_0x29de29){const _0x411dc6=_0x46885f;var _0x8ba1f4;if(!this[_0x411dc6(0x173)])return;let _0x16b85b=this[_0x411dc6(0x2a8)](_0x388dcd);if(!_0x16b85b)return;let _0x355b79=this[_0x411dc6(0x37c)]?this[_0x411dc6(0x37c)][_0x411dc6(0x263)]:_0x1cfb94,_0xc3bb79=this['_currentConnectionTarget']?this[_0x411dc6(0x37c)][_0x411dc6(0x3f4)]:this[_0x411dc6(0x410)](_0x16b85b[_0x411dc6(0x235)],_0x355b79),_0x5f1652;if(this[_0x411dc6(0x37c)]){let _0x2dccca=this[_0x411dc6(0x22e)][_0x411dc6(0x31f)]({'unitId':this[_0x411dc6(0x37c)][_0x411dc6(0x332)],'subUnitId':this['_currentConnectionTarget'][_0x411dc6(0x46b)],'drawingId':this[_0x411dc6(0x37c)][_0x411dc6(0x487)]});if(_0x2dccca!=null&&_0x2dccca[_0x411dc6(0x463)]){let {left:_0x5c83e4=0x0,top:_0x12632d=0x0,width:_0x4b8402=0x0,height:_0x4e7edb=0x0,angle:_0x249e21}=_0x2dccca[_0x411dc6(0x463)];_0x5f1652=(0x0,n[_0x411dc6(0x3ac)])({'left':_0x5c83e4,'top':_0x12632d,'width':_0x4b8402,'height':_0x4e7edb},_0x249e21||0x0);}else _0x5f1652={'left':_0x355b79['x'],'top':_0x355b79['y'],'width':0x0,'height':0x0};}else _0x5f1652={'left':_0x355b79['x'],'top':_0x355b79['y'],'width':0x0,'height':0x0};let _0x158d76={'point':_0x355b79,'angle':_0xc3bb79,'bounds':_0x5f1652},_0x47a845=_0x5da246?_0x158d76:_0x16b85b,_0x510714=_0x5da246?_0x16b85b:_0x158d76,_0x5a3a23=this[_0x411dc6(0x173)][_0x411dc6(0x449)](),_0x19c92e=(0x0,n['routeConnectorLineShape'])(_0x47a845,_0x510714,_0x5a3a23);_0x19c92e&&this[_0x411dc6(0x173)][_0x411dc6(0x29b)](_0x19c92e);let _0x39a774=(0x0,n[_0x411dc6(0x364)])(_0x19c92e,_0x5a3a23);_0x39a774['lineType']!==_0x5a3a23&&this[_0x411dc6(0x173)][_0x411dc6(0x43d)](_0x39a774['lineType']);for(let [_0x164a20,_0x3e8269]of Object[_0x411dc6(0x3c5)](_0x39a774[_0x411dc6(0x1b9)]))this['_activeShapeModel'][_0x411dc6(0x3f5)](_0x164a20,_0x3e8269);this[_0x411dc6(0x173)][_0x411dc6(0x3f7)]({'width':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x322)],'height':_0x39a774['worldRect'][_0x411dc6(0x49b)]}),_0x41fe97[_0x411dc6(0x414)]({'flipX':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x271)],'flipY':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x243)],'left':_0x39a774['worldRect'][_0x411dc6(0x174)],'top':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x4ad)],'width':_0x39a774['worldRect'][_0x411dc6(0x322)],'height':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x49b)],'angle':_0x39a774[_0x411dc6(0x3f2)]}),_0x41fe97[_0x411dc6(0x23f)](!0x0);let _0x3cfeeb=((_0x8ba1f4=this[_0x411dc6(0x37c)])==null?void 0x0:_0x8ba1f4[_0x411dc6(0x263)])??_0x1cfb94;_0x29de29[_0x411dc6(0x414)]({'left':_0x3cfeeb['x']-n[_0x411dc6(0x2b0)][_0x411dc6(0x255)],'top':_0x3cfeeb['y']-n[_0x411dc6(0x2b0)][_0x411dc6(0x255)]});}[_0x46885f(0x499)](_0x294bf4,_0x35b0a0,_0x46f28b,_0x464cff,_0xb96bb8){const _0x170e72=_0x46885f;var _0x4cfcd4,_0x411087;let _0x477d49=((_0x4cfcd4=this[_0x170e72(0x37c)])==null?void 0x0:_0x4cfcd4[_0x170e72(0x263)])??_0x294bf4,_0x6f0822=n[_0x170e72(0x2ad)][_0x170e72(0x198)](_0x35b0a0,_0x477d49,_0x46f28b);_0x464cff[_0x170e72(0x414)]({'flipX':_0x6f0822['worldRect'][_0x170e72(0x271)],'flipY':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x243)],'left':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x174)],'top':_0x6f0822['worldRect'][_0x170e72(0x4ad)],'width':_0x6f0822[_0x170e72(0x27b)]['width'],'height':_0x6f0822[_0x170e72(0x27b)]['height'],'angle':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x3f4)]});let _0x449f09=((_0x411087=this['_currentConnectionTarget'])==null?void 0x0:_0x411087[_0x170e72(0x263)])??_0x294bf4;_0xb96bb8[_0x170e72(0x414)]({'left':_0x449f09['x']-n[_0x170e72(0x2b0)][_0x170e72(0x255)],'top':_0x449f09['y']-n['ShapeDefaultConfig'][_0x170e72(0x255)]});}['_getConnectPointInfo'](_0xfc431c){const _0x3bbbbe=_0x46885f;if(!this[_0x3bbbbe(0x296)]||!this[_0x3bbbbe(0x40a)])return null;let {shapeId:_0x3d2159,cxnIndex:_0x1d7824}=_0xfc431c,_0x48cdf6=this[_0x3bbbbe(0x464)]['getShapeModel'](this[_0x3bbbbe(0x296)],this[_0x3bbbbe(0x40a)],_0x3d2159);if(!_0x48cdf6)return null;let _0x2ce673=this[_0x3bbbbe(0x22e)][_0x3bbbbe(0x31f)]({'unitId':this[_0x3bbbbe(0x296)],'subUnitId':this['_subUnitId'],'drawingId':_0x3d2159});if(!(_0x2ce673!=null&&_0x2ce673[_0x3bbbbe(0x463)]))return null;let {left:_0x248e83=0x0,top:_0x4cf404=0x0,width:_0x1c55d8=0x0,height:_0x3f736b=0x0,flipX:_0x407998=!0x1,flipY:_0x258cc8=!0x1,angle:_0x5800b5}=_0x2ce673['transform'];_0x48cdf6[_0x3bbbbe(0x3f7)]({'width':_0x1c55d8,'height':_0x3f736b});let _0x4b01e3=_0x48cdf6[_0x3bbbbe(0x277)]()[_0x3bbbbe(0x423)](_0x3ae537=>_0x3ae537[_0x3bbbbe(0x45f)]===_0x1d7824);if(!_0x4b01e3)return null;let _0x24a419=_0x407998?_0x1c55d8-_0x4b01e3['x']:_0x4b01e3['x'],_0x302a5f=_0x258cc8?_0x3f736b-_0x4b01e3['y']:_0x4b01e3['y'];if(_0x5800b5!==0x0&&_0x5800b5!=null){let _0x44eeee=_0x5800b5*Math['PI']/0xb4,_0x4aa71f=Math[_0x3bbbbe(0x2ed)](_0x44eeee),_0x34650e=Math[_0x3bbbbe(0x2ae)](_0x44eeee),_0x327281=_0x1c55d8/0x2,_0x4a2247=_0x3f736b/0x2,_0x5aaa13=_0x24a419-_0x327281,_0x112b7d=_0x302a5f-_0x4a2247;_0x24a419=_0x327281+_0x5aaa13*_0x4aa71f-_0x112b7d*_0x34650e,_0x302a5f=_0x4a2247+_0x5aaa13*_0x34650e+_0x112b7d*_0x4aa71f;}_0x24a419+=_0x248e83,_0x302a5f+=_0x4cf404;let _0x17f72d=_0x4b01e3[_0x3bbbbe(0x400)]/0xea60;_0x407998&&(_0x17f72d=0xb4-_0x17f72d),_0x258cc8&&(_0x17f72d=-_0x17f72d),_0x17f72d+=_0x5800b5||0x0,_0x17f72d=(_0x17f72d%0x168+0x168)%0x168;let _0x1918c2=(0x0,n[_0x3bbbbe(0x3ac)])({'left':_0x248e83,'top':_0x4cf404,'width':_0x1c55d8,'height':_0x3f736b},_0x5800b5||0x0);return{'point':{'x':_0x24a419,'y':_0x302a5f},'angle':_0x17f72d,'bounds':_0x1918c2};}['_calculateFreeEndpointAngle'](_0x5bae05,_0x2cd4bf){const _0x976c1f=_0x46885f;let _0x1aa4e1=_0x2cd4bf['x']-_0x5bae05['x'],_0x4ce6b8=_0x2cd4bf['y']-_0x5bae05['y'];return Math[_0x976c1f(0x20e)](_0x1aa4e1)>=Math[_0x976c1f(0x20e)](_0x4ce6b8)?_0x1aa4e1>=0x0?0xb4:0x0:_0x4ce6b8>=0x0?0x10e:0x5a;}['_reset'](){const _0x1b9168=_0x46885f;this[_0x1b9168(0x43c)]=void 0x0,this[_0x1b9168(0x296)]=void 0x0,this[_0x1b9168(0x40a)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x46885f(0x169)](){const _0x3e7e45=_0x46885f;this[_0x3e7e45(0x233)](),super['dispose']();}};bt=k([O(0x1,a[_0x46885f(0x4aa)]),O(0x2,c[_0x46885f(0x23d)]),O(0x3,s[_0x46885f(0x19c)]),O(0x4,a['IUniverInstanceService']),O(0x5,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x6,(0x0,a['Inject'])(j)),O(0x7,(0x0,a['Inject'])(Z))],bt);let xt=class extends a[_0x46885f(0x468)]{constructor(_0xd23ddb,_0x231d80,_0x550fea){const _0x596b2d=_0x46885f;super(),this[_0x596b2d(0x1c0)]=_0xd23ddb,this[_0x596b2d(0x22e)]=_0x231d80,this[_0x596b2d(0x30d)]=_0x550fea,this[_0x596b2d(0x273)]();}[_0x46885f(0x273)](){const _0x31430c=_0x46885f;this[_0x31430c(0x428)](this[_0x31430c(0x1c0)]['interceptor'][_0x31430c(0x1c3)](this[_0x31430c(0x1c0)]['interceptor'][_0x31430c(0x354)]()[_0x31430c(0x35d)],{'handler':(_0x313211,_0x1c7845,_0x472abe)=>{const _0x428003=_0x31430c;var _0x3769e3;let {unitId:_0x33e991,subUnitId:_0x3f0525,scene:_0x5ef453,resourceCollector:_0x14cd2c}=_0x1c7845,_0x2d5f4c=(_0x3769e3=this['_drawingManagerService'][_0x428003(0x346)](_0x33e991))==null?void 0x0:_0x3769e3[_0x3f0525];return _0x2d5f4c==null||_0x2d5f4c[_0x428003(0x2a3)]['forEach'](_0x3fa958=>{const _0x37a266=_0x428003;let _0x5f4ba8=_0x2d5f4c[_0x37a266(0x41c)][_0x3fa958];_0x5f4ba8[_0x37a266(0x218)]===a[_0x37a266(0x196)][_0x37a266(0x288)]&&!_0x5f4ba8[_0x37a266(0x26c)]&&this[_0x37a266(0x30d)][_0x37a266(0x448)](_0x5f4ba8,_0x5ef453,{'resourceCollector':_0x14cd2c});}),_0x472abe(_0x313211);}}));}};xt=k([O(0x0,(0x0,a['Inject'])(l[_0x46885f(0x25e)])),O(0x1,s[_0x46885f(0x19c)]),O(0x2,(0x0,a[_0x46885f(0x41b)])(A))],xt);let St=class extends a[_0x46885f(0x468)]{constructor(_0x22e5e7,_0x1c9c85,_0x1c9547){const _0x1c18f1=_0x46885f;super(),this['_commandService']=_0x22e5e7,this[_0x1c18f1(0x1bf)]=_0x1c9c85,this[_0x1c18f1(0x270)]=_0x1c9547,this[_0x1c18f1(0x427)]();}['_initPermission'](){const _0x37294a=_0x46885f;this[_0x37294a(0x428)](this[_0x37294a(0x194)]['beforeCommandExecuted'](_0x106e47=>{const _0x2f6265=_0x37294a;let _0x221f27,_0x5ea995;if(_0x106e47['id']===i[_0x2f6265(0x29c)]['id']||_0x106e47['id']===i[_0x2f6265(0x21b)]['id']||_0x106e47['id']===i[_0x2f6265(0x238)]['id']){let _0x238097=_0x106e47['params'];_0x221f27=_0x238097['unitId'],_0x5ea995=_0x238097['subUnitId'];}!_0x221f27||!_0x5ea995||this[_0x2f6265(0x270)]['permissionCheckWithoutRange']({'workbookTypes':[o[_0x2f6265(0x34d)]],'worksheetTypes':[o[_0x2f6265(0x216)]]},_0x221f27,_0x5ea995)||this[_0x2f6265(0x270)][_0x2f6265(0x347)](this[_0x2f6265(0x1bf)]['t'](_0x2f6265(0x1ce)));}));}};St=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x4aa)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x2,(0x0,a['Inject'])(o[_0x46885f(0x47e)]))],St);let Q=class extends a[_0x46885f(0x468)]{constructor(_0x3dac75,_0x2f8875,_0x1e00b9,_0x395e0d,_0x23b89f,_0x2e03dc,_0x32a4ed,_0x4e6f7c,_0x3097d9,_0x32dd8a,_0x5731b0){const _0x573e5e=_0x46885f;super(),this[_0x573e5e(0x1e6)]=_0x3dac75,this[_0x573e5e(0x378)]=_0x2f8875,this['_menuManagerService']=_0x1e00b9,this[_0x573e5e(0x464)]=_0x395e0d,this[_0x573e5e(0x1bf)]=_0x23b89f,this[_0x573e5e(0x194)]=_0x2e03dc,this[_0x573e5e(0x22e)]=_0x32a4ed,this[_0x573e5e(0x466)]=_0x4e6f7c,this['_contextService']=_0x3097d9,this[_0x573e5e(0x49a)]=_0x32dd8a,this[_0x573e5e(0x2db)]=_0x5731b0,T(this,'_sidebarDisposable',null),T(this,'_activeShapeInfo',null),T(this,'_isOpenedShapeEditPanel',!0x1),T(this,_0x573e5e(0x180),0x0),T(this,_0x573e5e(0x43e),null),T(this,_0x573e5e(0x3a7),[]),this[_0x573e5e(0x39d)](),this[_0x573e5e(0x428)](this[_0x573e5e(0x1e6)]['getCurrentTypeOfUnit$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x573e5e(0x494)](_0x1ccfd4=>{const _0x21550d=_0x573e5e;if(!_0x1ccfd4){var _0x220322;(_0x220322=this[_0x21550d(0x18d)])==null||_0x220322[_0x21550d(0x169)]();}})),this['_registerOperations'](),this[_0x573e5e(0x212)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x573e5e(0x494)](_0x33fb91=>{const _0x486d02=_0x573e5e;_0x33fb91&&this[_0x486d02(0x1d9)]();}));}[_0x46885f(0x39d)](){const _0x370959=_0x46885f;this[_0x370959(0x39e)][_0x370959(0x43b)](Xe);}[_0x46885f(0x212)](){const _0x5deced=_0x46885f;this[_0x5deced(0x43e)]||=this[_0x5deced(0x428)]((0x0,e['bindRenderTransformerLifecycle'])(this['_renderManagerService'],a[_0x5deced(0x267)]['UNIVER_SHEET'],_0x238165=>this[_0x5deced(0x2cd)](_0x238165)));}['_getShapeInfo'](_0x5fe7cd,_0x5059c0,_0x29490d){const _0xf33e4c=_0x46885f;let _0x130397=this[_0xf33e4c(0x464)][_0xf33e4c(0x418)](_0x5fe7cd,_0x5059c0,_0x29490d),_0x289ac0=this[_0xf33e4c(0x464)][_0xf33e4c(0x369)](_0x5fe7cd,_0x5059c0,_0x29490d);return _0x130397!==void 0x0&&_0x289ac0!==void 0x0?{'shapeData':_0x289ac0,'shapeId':_0x29490d,'shapeType':_0x130397,'unitId':_0x5fe7cd,'subUnitId':_0x5059c0,'version':this[_0xf33e4c(0x180)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x297d0c=_0x46885f;this['_disposePopups'][_0x297d0c(0x185)](_0x27b860=>_0x27b860['dispose']()),this[_0x297d0c(0x3a7)]['length']=0x0;}[_0x46885f(0x2cd)](_0x30f062){const _0x69615f=_0x46885f;let _0x52f599=new a['DisposableCollection']();return _0x52f599[_0x69615f(0x36a)](_0x30f062[_0x69615f(0x38d)][_0x69615f(0x494)](()=>{const _0x11ac7d=_0x69615f;let _0x130c4c=_0x30f062[_0x11ac7d(0x405)]();if(this[_0x11ac7d(0x1d9)](),this['_isOpenedShapeEditPanel']||_0x130c4c[_0x11ac7d(0x432)]>0x1)return;let _0x3d8a70=_0x130c4c[_0x11ac7d(0x191)]()[_0x11ac7d(0x349)]()[_0x11ac7d(0x44b)];if(!_0x3d8a70)return;let _0x2ce21f=this[_0x11ac7d(0x22e)][_0x11ac7d(0x35f)](_0x3d8a70[_0x11ac7d(0x294)]);if(!_0x2ce21f||_0x2ce21f[_0x11ac7d(0x218)]!==a[_0x11ac7d(0x196)][_0x11ac7d(0x288)])return;let {unitId:_0x27f959,subUnitId:_0x403b0c,drawingId:_0x5d4519,drawingType:_0x584d4a}=_0x2ce21f,_0x53cbaf=this['_getShapeInfo'](_0x27f959,_0x403b0c,_0x5d4519);if(!_0x53cbaf)return;this[_0x11ac7d(0x3ff)]['setContextValue'](a[_0x11ac7d(0x33f)],!0x0);let _0x247b41=this[_0x11ac7d(0x49a)][_0x11ac7d(0x3c2)](_0x27f959),_0x3333f0=((_0x247b41==null?void 0x0:_0x247b41[_0x11ac7d(0x3e9)])===!0x1?_0x247b41['with'](l[_0x11ac7d(0x2bf)]):this[_0x11ac7d(0x466)])[_0x11ac7d(0x2e7)](_0x3d8a70,{'componentKey':I,'direction':_0x11ac7d(0x315),'offset':[0x0,e[_0x11ac7d(0x25a)]],'extraProps':{'unitId':_0x27f959,'subUnitId':_0x403b0c,'drawingId':_0x5d4519,'drawingType':_0x584d4a,'shapeType':_0x53cbaf['shapeType'],'shapeData':_0x53cbaf[_0x11ac7d(0x2dd)]}});this[_0x11ac7d(0x3a7)][_0x11ac7d(0x18c)](this[_0x11ac7d(0x428)](_0x3333f0)),this[_0x11ac7d(0x22e)]['getFocusDrawings']()[_0x11ac7d(0x423)](_0x77f2d5=>_0x77f2d5[_0x11ac7d(0x332)]===_0x27f959&&_0x77f2d5[_0x11ac7d(0x46b)]===_0x403b0c&&_0x77f2d5[_0x11ac7d(0x313)]===_0x5d4519)||this[_0x11ac7d(0x22e)]['focusDrawing']([{'unitId':_0x27f959,'subUnitId':_0x403b0c,'drawingId':_0x5d4519}]);})),_0x52f599['add'](_0x30f062['clearControl$']['subscribe'](()=>{const _0x4975b5=_0x69615f;this[_0x4975b5(0x1d9)](),this[_0x4975b5(0x3ff)]['setContextValue'](a[_0x4975b5(0x33f)],!0x1),this[_0x4975b5(0x22e)][_0x4975b5(0x1cd)](null);})),_0x52f599[_0x69615f(0x36a)](_0x30f062['changing$'][_0x69615f(0x494)](()=>{const _0x54ffaf=_0x69615f;this[_0x54ffaf(0x1d9)]();})),_0x52f599[_0x69615f(0x36a)](_0x30f062['changeStart$']['subscribe'](()=>{const _0x49e53f=_0x69615f;this[_0x49e53f(0x1d9)]();})),(0x0,a['toDisposable'])(()=>{const _0x1a5e37=_0x69615f;_0x52f599[_0x1a5e37(0x169)](),this[_0x1a5e37(0x1d9)]();});}[_0x46885f(0x293)](){const _0x465985=_0x46885f;this[_0x465985(0x428)](this[_0x465985(0x194)][_0x465985(0x2c6)](_0x19ff91=>{const _0x1401d0=_0x465985;if(_0x19ff91['id']===z['id']){let {unitId:_0x4dd9ad,subUnitId:_0x572379,drawingId:_0xeffb74}=_0x19ff91['params'];this[_0x1401d0(0x180)]+=0x1,this[_0x1401d0(0x3b6)]=this[_0x1401d0(0x25f)](_0x4dd9ad,_0x572379,_0xeffb74),this[_0x1401d0(0x1d9)](),this[_0x1401d0(0x3c1)]();}if(_0x19ff91['id']===$e['id']&&(this[_0x1401d0(0x3b6)]=null,this[_0x1401d0(0x38a)]()),_0x19ff91['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x5db9e0,subUnitId:_0x3df528,shapeId:_0x1fb7b2}=_0x19ff91['params'];if(this['_activeShapeInfo']&&this['_activeShapeInfo']['shapeId']===_0x1fb7b2){let _0x3e4ccd=this[_0x1401d0(0x25f)](_0x5db9e0,_0x3df528,_0x1fb7b2);_0x3e4ccd&&(this['_shapeEditPanelVersion']+=0x1,_0x3e4ccd[_0x1401d0(0x276)]=this[_0x1401d0(0x180)],this['_activeShapeInfo']=_0x3e4ccd,this['_isOpenedShapeEditPanel']&&this['_openShapeEditPanel']());}}})),this[_0x465985(0x428)](this['_drawingManagerService'][_0x465985(0x2d7)]['subscribe'](_0x556ae8=>{const _0x7bfbeb=_0x465985;if(this[_0x7bfbeb(0x2af)]===!0x1)return;if(_0x556ae8[_0x7bfbeb(0x453)]===0x0){this['_activeShapeInfo']=null,this[_0x7bfbeb(0x38a)]();return;}if(_0x556ae8[_0x7bfbeb(0x453)]===0x1&&_0x556ae8[0x0]['drawingType']===a[_0x7bfbeb(0x196)][_0x7bfbeb(0x288)]&&(this[_0x7bfbeb(0x180)]+=0x1,this[_0x7bfbeb(0x3b6)]=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0]['unitId'],_0x556ae8[0x0]['subUnitId'],_0x556ae8[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x7bfbeb(0x3c1)]();return;}let _0x2f87fc=_0x556ae8[_0x7bfbeb(0x339)](_0x2684d4=>_0x2684d4[_0x7bfbeb(0x218)]===a[_0x7bfbeb(0x196)][_0x7bfbeb(0x288)]);if(_0x556ae8['length']>0x1&&_0x2f87fc['length']===_0x556ae8['length']){if(this[_0x7bfbeb(0x180)]+=0x1,this[_0x7bfbeb(0x3b6)]=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0][_0x7bfbeb(0x332)],_0x556ae8[0x0][_0x7bfbeb(0x46b)],_0x556ae8[0x0]['drawingId']),this[_0x7bfbeb(0x3b6)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0][_0x7bfbeb(0x332)],_0x556ae8[0x0][_0x7bfbeb(0x46b)],_0x556ae8[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x7bfbeb(0x3b6)][_0x7bfbeb(0x3c6)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x7bfbeb(0x38a)]();}));}[_0x46885f(0x3c1)](){const _0x3adef4=_0x46885f;this[_0x3adef4(0x3b6)]&&(this[_0x3adef4(0x18d)]=this[_0x3adef4(0x378)][_0x3adef4(0x249)]({'id':P,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':P,...this['_activeShapeInfo']},'onClose':()=>{const _0x54a598=_0x3adef4;this[_0x54a598(0x22e)]['focusDrawing'](null),this[_0x54a598(0x3ff)][_0x54a598(0x3f3)](a[_0x54a598(0x33f)],!0x1),this[_0x54a598(0x18d)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x46885f(0x38a)](){const _0x2af491=_0x46885f;this[_0x2af491(0x2af)]=!0x1,this[_0x2af491(0x378)][_0x2af491(0x358)](P),this[_0x2af491(0x18d)]=null,this[_0x2af491(0x3ff)][_0x2af491(0x3f3)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Q=k([O(0x0,a[_0x46885f(0x17b)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x475)])),O(0x2,t['IMenuManagerService']),O(0x3,(0x0,a['Inject'])(i['SheetsShapeService'])),O(0x4,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x5,a['ICommandService']),O(0x6,s['IDrawingManagerService']),O(0x7,(0x0,a[_0x46885f(0x41b)])(l['SheetCanvasPopManagerService'])),O(0x8,a[_0x46885f(0x34a)]),O(0x9,c[_0x46885f(0x23d)]),O(0xa,(0x0,a['Inject'])(q))],Q);let $=class extends a[_0x46885f(0x1ec)]{constructor(_0x51e47c=et,_0x2c4f53,_0x3a7944,_0x327f7f,_0x448b35){const _0x3f1049=_0x46885f;super(),this[_0x3f1049(0x3f9)]=_0x51e47c,this['_injector']=_0x2c4f53,this[_0x3f1049(0x194)]=_0x3a7944,this[_0x3f1049(0x32f)]=_0x327f7f,this[_0x3f1049(0x49a)]=_0x448b35;let {..._0x327124}=(0x0,a[_0x3f1049(0x19b)])({},et,this[_0x3f1049(0x3f9)]);this['_configService']['setConfig'](_0x3f1049(0x39c),_0x327124),this['_initCommands']();}[_0x46885f(0x3fd)](){const _0x49b92=_0x46885f;this[_0x49b92(0x49a)][_0x49b92(0x1ba)](a['UniverInstanceType'][_0x49b92(0x22b)],[ht]),(0x0,a[_0x49b92(0x21c)])(this['_injector'],[[Q],[X],[A],[xt]]);}[_0x46885f(0x252)](){const _0x92d128=_0x46885f;this['_injector']['get'](Q)[_0x92d128(0x212)]();}[_0x46885f(0x202)](){const _0x2becd0=_0x46885f;[[Z],[j],[vt]]['forEach'](_0x5db16a=>this[_0x2becd0(0x2f6)]['add'](_0x5db16a)),(0x0,a['touchDependencies'])(this['_injector'],[[vt],[j]]),this[_0x2becd0(0x49a)][_0x2becd0(0x1ba)](a[_0x2becd0(0x267)]['UNIVER_SHEET'],[Z]),this[_0x2becd0(0x49a)][_0x2becd0(0x1ba)](a[_0x2becd0(0x267)][_0x2becd0(0x264)],[ut]),this[_0x2becd0(0x49a)]['registerRenderModule'](a[_0x2becd0(0x267)]['UNIVER_SHEET'],[bt]),this['_renderManagerService'][_0x2becd0(0x1ba)](a['UniverInstanceType'][_0x2becd0(0x264)],[mt]);}['onStarting'](){const _0x15bf8d=_0x46885f;this[_0x15bf8d(0x2f6)][_0x15bf8d(0x36a)]([J]),this[_0x15bf8d(0x2f6)][_0x15bf8d(0x3a3)](J);let _0x11dd34=this[_0x15bf8d(0x2f6)];[[Q],[X],[A],[xt],[K],[q],[pt],[V],[St],[Y]][_0x15bf8d(0x185)](_0x35ff08=>_0x11dd34['add'](_0x35ff08)),(0x0,a[_0x15bf8d(0x21c)])(this[_0x15bf8d(0x2f6)],[[Q],[X],[A],[K],[q],[pt],[V],[St],[Y]]);}[_0x46885f(0x1db)](){const _0x5acf73=_0x46885f;[N,x,$e,z,ie,M,B,oe][_0x5acf73(0x185)](_0x5ee3a2=>this[_0x5acf73(0x428)](this['_commandService'][_0x5acf73(0x2e9)](_0x5ee3a2)));}};T($,_0x46885f(0x36c),a[_0x46885f(0x267)]['UNIVER_SHEET']),T($,_0x46885f(0x1b1),_0x46885f(0x2c5)),T($,_0x46885f(0x17f),Ze),T($,'version',Qe),$=k([(0x0,a[_0x46885f(0x2b8)])(m[_0x46885f(0x1f9)],h[_0x46885f(0x491)],s[_0x46885f(0x3a0)],d[_0x46885f(0x4b0)],c[_0x46885f(0x299)],o[_0x46885f(0x2e3)],g['UniverDocsUIPlugin'],p['UniverSheetsDrawingPlugin'],r[_0x46885f(0x25c)],_[_0x46885f(0x254)],i[_0x46885f(0x376)],l[_0x46885f(0x22c)],e[_0x46885f(0x454)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x366)])),O(0x2,a[_0x46885f(0x4aa)]),O(0x3,a[_0x46885f(0x258)]),O(0x4,c[_0x46885f(0x23d)])],$),exports[_0x46885f(0x26d)]=Ye,exports[_0x46885f(0x3f8)]=Xe,Object[_0x46885f(0x32e)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});